1. Packages
  2. AWS
  3. API Docs
  4. devopsguru
  5. getNotificationChannel
AWS v6.77.0 published on Wednesday, Apr 9, 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",
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.devopsguru.get_notification_channel(id="channel-1234")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: aws:devopsguru:getNotificationChannel
      arguments:
        id: channel-1234
Copy

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>
Copy
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]
Copy
func LookupNotificationChannel(ctx *Context, args *LookupNotificationChannelArgs, opts ...InvokeOption) (*LookupNotificationChannelResult, error)
func LookupNotificationChannelOutput(ctx *Context, args *LookupNotificationChannelOutputArgs, opts ...InvokeOption) LookupNotificationChannelResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetNotificationChannelResult> getNotificationChannel(GetNotificationChannelArgs args, InvokeOptions options)
public static Output<GetNotificationChannelResult> getNotificationChannel(GetNotificationChannelArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws:devopsguru/getNotificationChannel:getNotificationChannel
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id This property is required. string
Unique identifier for the notification channel.
Filters List<GetNotificationChannelFilter>
Filter configurations for the Amazon SNS notification topic. See the filters attribute reference below.
Sns List<GetNotificationChannelSn>
SNS noficiation channel configurations. See the sns attribute reference below.
Id This property is required. string
Unique identifier for the notification channel.
Filters []GetNotificationChannelFilter
Filter configurations for the Amazon SNS notification topic. See the filters attribute reference below.
Sns []GetNotificationChannelSn
SNS noficiation channel configurations. See the sns attribute reference below.
id This property is required. String
Unique identifier for the notification channel.
filters List<GetNotificationChannelFilter>
Filter configurations for the Amazon SNS notification topic. See the filters attribute reference below.
sns List<GetNotificationChannelSn>
SNS noficiation channel configurations. See the sns attribute reference below.
id This property is required. string
Unique identifier for the notification channel.
filters GetNotificationChannelFilter[]
Filter configurations for the Amazon SNS notification topic. See the filters attribute reference below.
sns GetNotificationChannelSn[]
SNS noficiation channel configurations. See the sns attribute reference below.
id This property is required. str
Unique identifier for the notification channel.
filters Sequence[GetNotificationChannelFilter]
Filter configurations for the Amazon SNS notification topic. See the filters attribute reference below.
sns Sequence[GetNotificationChannelSn]
SNS noficiation channel configurations. See the sns attribute reference below.
id This property is required. String
Unique identifier for the notification channel.
filters List<Property Map>
Filter configurations for the Amazon SNS notification topic. See the filters attribute reference below.
sns List<Property Map>
SNS noficiation channel configurations. See the sns attribute reference below.

getNotificationChannel Result

The following output properties are available:

Id string
Filters List<GetNotificationChannelFilter>
Filter configurations for the Amazon SNS notification topic. See the filters attribute reference below.
Sns List<GetNotificationChannelSn>
SNS noficiation channel configurations. See the sns attribute reference below.
Id string
Filters []GetNotificationChannelFilter
Filter configurations for the Amazon SNS notification topic. See the filters attribute reference below.
Sns []GetNotificationChannelSn
SNS noficiation channel configurations. See the sns attribute reference below.
id String
filters List<GetNotificationChannelFilter>
Filter configurations for the Amazon SNS notification topic. See the filters attribute reference below.
sns List<GetNotificationChannelSn>
SNS noficiation channel configurations. See the sns attribute reference below.
id string
filters GetNotificationChannelFilter[]
Filter configurations for the Amazon SNS notification topic. See the filters attribute reference below.
sns GetNotificationChannelSn[]
SNS noficiation channel configurations. See the sns attribute reference below.
id str
filters Sequence[GetNotificationChannelFilter]
Filter configurations for the Amazon SNS notification topic. See the filters attribute reference below.
sns Sequence[GetNotificationChannelSn]
SNS noficiation channel configurations. See the sns attribute reference below.
id String
filters List<Property Map>
Filter configurations for the Amazon SNS notification topic. See the filters attribute reference below.
sns List<Property Map>
SNS noficiation channel configurations. See the sns attribute reference below.

Supporting Types

GetNotificationChannelFilter

MessageTypes This property is required. List<string>
Events to receive notifications for.
Severities This property is required. List<string>
Severity levels to receive notifications for.
MessageTypes This property is required. []string
Events to receive notifications for.
Severities This property is required. []string
Severity levels to receive notifications for.
messageTypes This property is required. List<String>
Events to receive notifications for.
severities This property is required. List<String>
Severity levels to receive notifications for.
messageTypes This property is required. string[]
Events to receive notifications for.
severities This property is required. string[]
Severity levels to receive notifications for.
message_types This property is required. Sequence[str]
Events to receive notifications for.
severities This property is required. Sequence[str]
Severity levels to receive notifications for.
messageTypes This property is required. List<String>
Events to receive notifications for.
severities This property is required. List<String>
Severity levels to receive notifications for.

GetNotificationChannelSn

TopicArn This property is required. string
Amazon Resource Name (ARN) of an Amazon Simple Notification Service topic.
TopicArn This property is required. string
Amazon Resource Name (ARN) of an Amazon Simple Notification Service topic.
topicArn This property is required. String
Amazon Resource Name (ARN) of an Amazon Simple Notification Service topic.
topicArn This property is required. string
Amazon Resource Name (ARN) of an Amazon Simple Notification Service topic.
topic_arn This property is required. str
Amazon Resource Name (ARN) of an Amazon Simple Notification Service topic.
topicArn This property is required. 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 aws Terraform Provider.