1. Packages
  2. AWS
  3. API Docs
  4. devopsguru
  5. getNotificationChannel
AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi

aws.devopsguru.getNotificationChannel

Explore with Pulumi AI

aws logo
AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:devopsguru/getNotificationChannel:getNotificationChannel
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id 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 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 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 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 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 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 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 aws Terraform Provider.
    aws logo
    AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi