AWS v6.73.0 published on Wednesday, Mar 19, 2025 by Pulumi
aws.devopsguru.getNotificationChannel
Explore with Pulumi AI
Data source for managing an AWS DevOps Guru Notification Channel.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.devopsguru.getNotificationChannel({
    id: "channel-1234",
});
import pulumi
import pulumi_aws as aws
example = aws.devopsguru.get_notification_channel(id="channel-1234")
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/devopsguru"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := devopsguru.LookupNotificationChannel(ctx, &devopsguru.LookupNotificationChannelArgs{
			Id: "channel-1234",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var example = Aws.DevOpsGuru.GetNotificationChannel.Invoke(new()
    {
        Id = "channel-1234",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.devopsguru.DevopsguruFunctions;
import com.pulumi.aws.devopsguru.inputs.GetNotificationChannelArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var example = DevopsguruFunctions.getNotificationChannel(GetNotificationChannelArgs.builder()
            .id("channel-1234")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: aws:devopsguru:getNotificationChannel
      arguments:
        id: channel-1234
Using getNotificationChannel
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getNotificationChannel(args: GetNotificationChannelArgs, opts?: InvokeOptions): Promise<GetNotificationChannelResult>
function getNotificationChannelOutput(args: GetNotificationChannelOutputArgs, opts?: InvokeOptions): Output<GetNotificationChannelResult>def get_notification_channel(filters: Optional[Sequence[GetNotificationChannelFilter]] = None,
                             id: Optional[str] = None,
                             sns: Optional[Sequence[GetNotificationChannelSn]] = None,
                             opts: Optional[InvokeOptions] = None) -> GetNotificationChannelResult
def get_notification_channel_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetNotificationChannelFilterArgs]]]] = None,
                             id: Optional[pulumi.Input[str]] = None,
                             sns: Optional[pulumi.Input[Sequence[pulumi.Input[GetNotificationChannelSnArgs]]]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetNotificationChannelResult]func LookupNotificationChannel(ctx *Context, args *LookupNotificationChannelArgs, opts ...InvokeOption) (*LookupNotificationChannelResult, error)
func LookupNotificationChannelOutput(ctx *Context, args *LookupNotificationChannelOutputArgs, opts ...InvokeOption) LookupNotificationChannelResultOutput> Note: This function is named LookupNotificationChannel in the Go SDK.
public static class GetNotificationChannel 
{
    public static Task<GetNotificationChannelResult> InvokeAsync(GetNotificationChannelArgs args, InvokeOptions? opts = null)
    public static Output<GetNotificationChannelResult> Invoke(GetNotificationChannelInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNotificationChannelResult> getNotificationChannel(GetNotificationChannelArgs args, InvokeOptions options)
public static Output<GetNotificationChannelResult> getNotificationChannel(GetNotificationChannelArgs args, InvokeOptions options)
fn::invoke:
  function: aws:devopsguru/getNotificationChannel:getNotificationChannel
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Id string
- Unique identifier for the notification channel.
- Filters
List<GetNotification Channel Filter> 
- Filter configurations for the Amazon SNS notification topic. See the filtersattribute reference below.
- Sns
List<GetNotification Channel Sn> 
- SNS noficiation channel configurations. See the snsattribute reference below.
- Id string
- Unique identifier for the notification channel.
- Filters
[]GetNotification Channel Filter 
- Filter configurations for the Amazon SNS notification topic. See the filtersattribute reference below.
- Sns
[]GetNotification Channel Sn 
- SNS noficiation channel configurations. See the snsattribute reference below.
- id String
- Unique identifier for the notification channel.
- filters
List<GetNotification Channel Filter> 
- Filter configurations for the Amazon SNS notification topic. See the filtersattribute reference below.
- sns
List<GetNotification Channel Sn> 
- SNS noficiation channel configurations. See the snsattribute reference below.
- id string
- Unique identifier for the notification channel.
- filters
GetNotification Channel Filter[] 
- Filter configurations for the Amazon SNS notification topic. See the filtersattribute reference below.
- sns
GetNotification Channel Sn[] 
- SNS noficiation channel configurations. See the snsattribute reference below.
- id str
- Unique identifier for the notification channel.
- filters
Sequence[GetNotification Channel Filter] 
- Filter configurations for the Amazon SNS notification topic. See the filtersattribute reference below.
- sns
Sequence[GetNotification Channel Sn] 
- SNS noficiation channel configurations. See the snsattribute reference below.
- id String
- Unique identifier for the notification channel.
- filters List<Property Map>
- Filter configurations for the Amazon SNS notification topic. See the filtersattribute reference below.
- sns List<Property Map>
- SNS noficiation channel configurations. See the snsattribute reference below.
getNotificationChannel Result
The following output properties are available:
- Id string
- Filters
List<GetNotification Channel Filter> 
- Filter configurations for the Amazon SNS notification topic. See the filtersattribute reference below.
- Sns
List<GetNotification Channel Sn> 
- SNS noficiation channel configurations. See the snsattribute reference below.
- Id string
- Filters
[]GetNotification Channel Filter 
- Filter configurations for the Amazon SNS notification topic. See the filtersattribute reference below.
- Sns
[]GetNotification Channel Sn 
- SNS noficiation channel configurations. See the snsattribute reference below.
- id String
- filters
List<GetNotification Channel Filter> 
- Filter configurations for the Amazon SNS notification topic. See the filtersattribute reference below.
- sns
List<GetNotification Channel Sn> 
- SNS noficiation channel configurations. See the snsattribute reference below.
- id string
- filters
GetNotification Channel Filter[] 
- Filter configurations for the Amazon SNS notification topic. See the filtersattribute reference below.
- sns
GetNotification Channel Sn[] 
- SNS noficiation channel configurations. See the snsattribute reference below.
- id str
- filters
Sequence[GetNotification Channel Filter] 
- Filter configurations for the Amazon SNS notification topic. See the filtersattribute reference below.
- sns
Sequence[GetNotification Channel Sn] 
- SNS noficiation channel configurations. See the snsattribute reference below.
- id String
- filters List<Property Map>
- Filter configurations for the Amazon SNS notification topic. See the filtersattribute reference below.
- sns List<Property Map>
- SNS noficiation channel configurations. See the snsattribute reference below.
Supporting Types
GetNotificationChannelFilter   
- MessageTypes List<string>
- Events to receive notifications for.
- Severities List<string>
- Severity levels to receive notifications for.
- MessageTypes []string
- Events to receive notifications for.
- Severities []string
- Severity levels to receive notifications for.
- messageTypes List<String>
- Events to receive notifications for.
- severities List<String>
- Severity levels to receive notifications for.
- messageTypes string[]
- Events to receive notifications for.
- severities string[]
- Severity levels to receive notifications for.
- message_types Sequence[str]
- Events to receive notifications for.
- severities Sequence[str]
- Severity levels to receive notifications for.
- messageTypes List<String>
- Events to receive notifications for.
- severities List<String>
- Severity levels to receive notifications for.
GetNotificationChannelSn   
- TopicArn string
- Amazon Resource Name (ARN) of an Amazon Simple Notification Service topic.
- TopicArn string
- Amazon Resource Name (ARN) of an Amazon Simple Notification Service topic.
- topicArn String
- Amazon Resource Name (ARN) of an Amazon Simple Notification Service topic.
- topicArn string
- Amazon Resource Name (ARN) of an Amazon Simple Notification Service topic.
- topic_arn str
- Amazon Resource Name (ARN) of an Amazon Simple Notification Service topic.
- topicArn String
- Amazon Resource Name (ARN) of an Amazon Simple Notification Service topic.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.