1. Packages
  2. AWS Native
  3. API Docs
  4. devopsguru
  5. NotificationChannel

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.102.0 published on Tuesday, Apr 16, 2024 by Pulumi

aws-native.devopsguru.NotificationChannel

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.102.0 published on Tuesday, Apr 16, 2024 by Pulumi

    This resource schema represents the NotificationChannel resource in the Amazon DevOps Guru.

    Example Usage

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var myNotificationChannel = new AwsNative.DevOpsGuru.NotificationChannel("myNotificationChannel", new()
        {
            Config = new AwsNative.DevOpsGuru.Inputs.NotificationChannelConfigArgs
            {
                Filters = new AwsNative.DevOpsGuru.Inputs.NotificationChannelNotificationFilterConfigArgs
                {
                    MessageTypes = new[]
                    {
                        AwsNative.DevOpsGuru.NotificationChannelNotificationMessageType.NewInsight,
                        AwsNative.DevOpsGuru.NotificationChannelNotificationMessageType.ClosedInsight,
                        AwsNative.DevOpsGuru.NotificationChannelNotificationMessageType.SeverityUpgraded,
                    },
                    Severities = new[]
                    {
                        AwsNative.DevOpsGuru.NotificationChannelInsightSeverity.Medium,
                        AwsNative.DevOpsGuru.NotificationChannelInsightSeverity.High,
                    },
                },
                Sns = new AwsNative.DevOpsGuru.Inputs.NotificationChannelSnsChannelConfigArgs
                {
                    TopicArn = "arn:aws:sns:us-east-1:123456789012:DefaultNotificationChannel",
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/devopsguru"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := devopsguru.NewNotificationChannel(ctx, "myNotificationChannel", &devopsguru.NotificationChannelArgs{
    			Config: &devopsguru.NotificationChannelConfigArgs{
    				Filters: &devopsguru.NotificationChannelNotificationFilterConfigArgs{
    					MessageTypes: devopsguru.NotificationChannelNotificationMessageTypeArray{
    						devopsguru.NotificationChannelNotificationMessageTypeNewInsight,
    						devopsguru.NotificationChannelNotificationMessageTypeClosedInsight,
    						devopsguru.NotificationChannelNotificationMessageTypeSeverityUpgraded,
    					},
    					Severities: devopsguru.NotificationChannelInsightSeverityArray{
    						devopsguru.NotificationChannelInsightSeverityMedium,
    						devopsguru.NotificationChannelInsightSeverityHigh,
    					},
    				},
    				Sns: &devopsguru.NotificationChannelSnsChannelConfigArgs{
    					TopicArn: pulumi.String("arn:aws:sns:us-east-1:123456789012:DefaultNotificationChannel"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Coming soon!

    import pulumi
    import pulumi_aws_native as aws_native
    
    my_notification_channel = aws_native.devopsguru.NotificationChannel("myNotificationChannel", config=aws_native.devopsguru.NotificationChannelConfigArgs(
        filters=aws_native.devopsguru.NotificationChannelNotificationFilterConfigArgs(
            message_types=[
                aws_native.devopsguru.NotificationChannelNotificationMessageType.NEW_INSIGHT,
                aws_native.devopsguru.NotificationChannelNotificationMessageType.CLOSED_INSIGHT,
                aws_native.devopsguru.NotificationChannelNotificationMessageType.SEVERITY_UPGRADED,
            ],
            severities=[
                aws_native.devopsguru.NotificationChannelInsightSeverity.MEDIUM,
                aws_native.devopsguru.NotificationChannelInsightSeverity.HIGH,
            ],
        ),
        sns=aws_native.devopsguru.NotificationChannelSnsChannelConfigArgs(
            topic_arn="arn:aws:sns:us-east-1:123456789012:DefaultNotificationChannel",
        ),
    ))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const myNotificationChannel = new aws_native.devopsguru.NotificationChannel("myNotificationChannel", {config: {
        filters: {
            messageTypes: [
                aws_native.devopsguru.NotificationChannelNotificationMessageType.NewInsight,
                aws_native.devopsguru.NotificationChannelNotificationMessageType.ClosedInsight,
                aws_native.devopsguru.NotificationChannelNotificationMessageType.SeverityUpgraded,
            ],
            severities: [
                aws_native.devopsguru.NotificationChannelInsightSeverity.Medium,
                aws_native.devopsguru.NotificationChannelInsightSeverity.High,
            ],
        },
        sns: {
            topicArn: "arn:aws:sns:us-east-1:123456789012:DefaultNotificationChannel",
        },
    }});
    

    Coming soon!

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var myNotificationChannel1 = new AwsNative.DevOpsGuru.NotificationChannel("myNotificationChannel1", new()
        {
            Config = new AwsNative.DevOpsGuru.Inputs.NotificationChannelConfigArgs
            {
                Sns = new AwsNative.DevOpsGuru.Inputs.NotificationChannelSnsChannelConfigArgs
                {
                    TopicArn = "arn:aws:sns:us-east-1:123456789012:DefaultNotificationChannel",
                },
            },
        });
    
        var myNotificationChannel2 = new AwsNative.DevOpsGuru.NotificationChannel("myNotificationChannel2", new()
        {
            Config = new AwsNative.DevOpsGuru.Inputs.NotificationChannelConfigArgs
            {
                Sns = new AwsNative.DevOpsGuru.Inputs.NotificationChannelSnsChannelConfigArgs
                {
                    TopicArn = "arn:aws:sns:us-east-1:123456789012:DefaultNotificationChannel2",
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/devopsguru"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := devopsguru.NewNotificationChannel(ctx, "myNotificationChannel1", &devopsguru.NotificationChannelArgs{
    			Config: &devopsguru.NotificationChannelConfigArgs{
    				Sns: &devopsguru.NotificationChannelSnsChannelConfigArgs{
    					TopicArn: pulumi.String("arn:aws:sns:us-east-1:123456789012:DefaultNotificationChannel"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = devopsguru.NewNotificationChannel(ctx, "myNotificationChannel2", &devopsguru.NotificationChannelArgs{
    			Config: &devopsguru.NotificationChannelConfigArgs{
    				Sns: &devopsguru.NotificationChannelSnsChannelConfigArgs{
    					TopicArn: pulumi.String("arn:aws:sns:us-east-1:123456789012:DefaultNotificationChannel2"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Coming soon!

    import pulumi
    import pulumi_aws_native as aws_native
    
    my_notification_channel1 = aws_native.devopsguru.NotificationChannel("myNotificationChannel1", config=aws_native.devopsguru.NotificationChannelConfigArgs(
        sns=aws_native.devopsguru.NotificationChannelSnsChannelConfigArgs(
            topic_arn="arn:aws:sns:us-east-1:123456789012:DefaultNotificationChannel",
        ),
    ))
    my_notification_channel2 = aws_native.devopsguru.NotificationChannel("myNotificationChannel2", config=aws_native.devopsguru.NotificationChannelConfigArgs(
        sns=aws_native.devopsguru.NotificationChannelSnsChannelConfigArgs(
            topic_arn="arn:aws:sns:us-east-1:123456789012:DefaultNotificationChannel2",
        ),
    ))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const myNotificationChannel1 = new aws_native.devopsguru.NotificationChannel("myNotificationChannel1", {config: {
        sns: {
            topicArn: "arn:aws:sns:us-east-1:123456789012:DefaultNotificationChannel",
        },
    }});
    const myNotificationChannel2 = new aws_native.devopsguru.NotificationChannel("myNotificationChannel2", {config: {
        sns: {
            topicArn: "arn:aws:sns:us-east-1:123456789012:DefaultNotificationChannel2",
        },
    }});
    

    Coming soon!

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var myNotificationChannel1 = new AwsNative.DevOpsGuru.NotificationChannel("myNotificationChannel1", new()
        {
            Config = new AwsNative.DevOpsGuru.Inputs.NotificationChannelConfigArgs
            {
                Sns = new AwsNative.DevOpsGuru.Inputs.NotificationChannelSnsChannelConfigArgs
                {
                    TopicArn = "arn:aws:sns:us-east-1:123456789012:DefaultNotificationChannel",
                },
            },
        });
    
        var myNotificationChannel2 = new AwsNative.DevOpsGuru.NotificationChannel("myNotificationChannel2", new()
        {
            Config = new AwsNative.DevOpsGuru.Inputs.NotificationChannelConfigArgs
            {
                Sns = new AwsNative.DevOpsGuru.Inputs.NotificationChannelSnsChannelConfigArgs
                {
                    TopicArn = "arn:aws:sns:us-east-1:123456789012:DefaultNotificationChannel2",
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/devopsguru"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := devopsguru.NewNotificationChannel(ctx, "myNotificationChannel1", &devopsguru.NotificationChannelArgs{
    			Config: &devopsguru.NotificationChannelConfigArgs{
    				Sns: &devopsguru.NotificationChannelSnsChannelConfigArgs{
    					TopicArn: pulumi.String("arn:aws:sns:us-east-1:123456789012:DefaultNotificationChannel"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = devopsguru.NewNotificationChannel(ctx, "myNotificationChannel2", &devopsguru.NotificationChannelArgs{
    			Config: &devopsguru.NotificationChannelConfigArgs{
    				Sns: &devopsguru.NotificationChannelSnsChannelConfigArgs{
    					TopicArn: pulumi.String("arn:aws:sns:us-east-1:123456789012:DefaultNotificationChannel2"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Coming soon!

    import pulumi
    import pulumi_aws_native as aws_native
    
    my_notification_channel1 = aws_native.devopsguru.NotificationChannel("myNotificationChannel1", config=aws_native.devopsguru.NotificationChannelConfigArgs(
        sns=aws_native.devopsguru.NotificationChannelSnsChannelConfigArgs(
            topic_arn="arn:aws:sns:us-east-1:123456789012:DefaultNotificationChannel",
        ),
    ))
    my_notification_channel2 = aws_native.devopsguru.NotificationChannel("myNotificationChannel2", config=aws_native.devopsguru.NotificationChannelConfigArgs(
        sns=aws_native.devopsguru.NotificationChannelSnsChannelConfigArgs(
            topic_arn="arn:aws:sns:us-east-1:123456789012:DefaultNotificationChannel2",
        ),
    ))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const myNotificationChannel1 = new aws_native.devopsguru.NotificationChannel("myNotificationChannel1", {config: {
        sns: {
            topicArn: "arn:aws:sns:us-east-1:123456789012:DefaultNotificationChannel",
        },
    }});
    const myNotificationChannel2 = new aws_native.devopsguru.NotificationChannel("myNotificationChannel2", {config: {
        sns: {
            topicArn: "arn:aws:sns:us-east-1:123456789012:DefaultNotificationChannel2",
        },
    }});
    

    Coming soon!

    Create NotificationChannel Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new NotificationChannel(name: string, args: NotificationChannelArgs, opts?: CustomResourceOptions);
    @overload
    def NotificationChannel(resource_name: str,
                            args: NotificationChannelArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def NotificationChannel(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            config: Optional[NotificationChannelConfigArgs] = None)
    func NewNotificationChannel(ctx *Context, name string, args NotificationChannelArgs, opts ...ResourceOption) (*NotificationChannel, error)
    public NotificationChannel(string name, NotificationChannelArgs args, CustomResourceOptions? opts = null)
    public NotificationChannel(String name, NotificationChannelArgs args)
    public NotificationChannel(String name, NotificationChannelArgs args, CustomResourceOptions options)
    
    type: aws-native:devopsguru:NotificationChannel
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args NotificationChannelArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args NotificationChannelArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args NotificationChannelArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NotificationChannelArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NotificationChannelArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    const notificationChannelResource = new aws_native.devopsguru.NotificationChannel("notificationChannelResource", {config: {
        filters: {
            messageTypes: [aws_native.devopsguru.NotificationChannelNotificationMessageType.NewInsight],
            severities: [aws_native.devopsguru.NotificationChannelInsightSeverity.Low],
        },
        sns: {
            topicArn: "string",
        },
    }});
    
    Coming soon!
    

    NotificationChannel Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The NotificationChannel resource accepts the following input properties:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NotificationChannel resource produces the following output properties:

    AwsId string
    The ID of a notification channel.
    Id string
    The provider-assigned unique ID for this managed resource.
    AwsId string
    The ID of a notification channel.
    Id string
    The provider-assigned unique ID for this managed resource.
    awsId String
    The ID of a notification channel.
    id String
    The provider-assigned unique ID for this managed resource.
    awsId string
    The ID of a notification channel.
    id string
    The provider-assigned unique ID for this managed resource.
    aws_id str
    The ID of a notification channel.
    id str
    The provider-assigned unique ID for this managed resource.
    awsId String
    The ID of a notification channel.
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    NotificationChannelConfig, NotificationChannelConfigArgs

    NotificationChannelInsightSeverity, NotificationChannelInsightSeverityArgs

    Low
    LOW
    Medium
    MEDIUM
    High
    HIGH
    NotificationChannelInsightSeverityLow
    LOW
    NotificationChannelInsightSeverityMedium
    MEDIUM
    NotificationChannelInsightSeverityHigh
    HIGH
    Low
    LOW
    Medium
    MEDIUM
    High
    HIGH
    Low
    LOW
    Medium
    MEDIUM
    High
    HIGH
    LOW
    LOW
    MEDIUM
    MEDIUM
    HIGH
    HIGH
    "LOW"
    LOW
    "MEDIUM"
    MEDIUM
    "HIGH"
    HIGH

    NotificationChannelNotificationFilterConfig, NotificationChannelNotificationFilterConfigArgs

    NotificationChannelNotificationMessageType, NotificationChannelNotificationMessageTypeArgs

    NewInsight
    NEW_INSIGHT
    ClosedInsight
    CLOSED_INSIGHT
    NewAssociation
    NEW_ASSOCIATION
    SeverityUpgraded
    SEVERITY_UPGRADED
    NewRecommendation
    NEW_RECOMMENDATION
    NotificationChannelNotificationMessageTypeNewInsight
    NEW_INSIGHT
    NotificationChannelNotificationMessageTypeClosedInsight
    CLOSED_INSIGHT
    NotificationChannelNotificationMessageTypeNewAssociation
    NEW_ASSOCIATION
    NotificationChannelNotificationMessageTypeSeverityUpgraded
    SEVERITY_UPGRADED
    NotificationChannelNotificationMessageTypeNewRecommendation
    NEW_RECOMMENDATION
    NewInsight
    NEW_INSIGHT
    ClosedInsight
    CLOSED_INSIGHT
    NewAssociation
    NEW_ASSOCIATION
    SeverityUpgraded
    SEVERITY_UPGRADED
    NewRecommendation
    NEW_RECOMMENDATION
    NewInsight
    NEW_INSIGHT
    ClosedInsight
    CLOSED_INSIGHT
    NewAssociation
    NEW_ASSOCIATION
    SeverityUpgraded
    SEVERITY_UPGRADED
    NewRecommendation
    NEW_RECOMMENDATION
    NEW_INSIGHT
    NEW_INSIGHT
    CLOSED_INSIGHT
    CLOSED_INSIGHT
    NEW_ASSOCIATION
    NEW_ASSOCIATION
    SEVERITY_UPGRADED
    SEVERITY_UPGRADED
    NEW_RECOMMENDATION
    NEW_RECOMMENDATION
    "NEW_INSIGHT"
    NEW_INSIGHT
    "CLOSED_INSIGHT"
    CLOSED_INSIGHT
    "NEW_ASSOCIATION"
    NEW_ASSOCIATION
    "SEVERITY_UPGRADED"
    SEVERITY_UPGRADED
    "NEW_RECOMMENDATION"
    NEW_RECOMMENDATION

    NotificationChannelSnsChannelConfig, NotificationChannelSnsChannelConfigArgs

    TopicArn string
    TopicArn string
    topicArn String
    topicArn string
    topicArn String

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.102.0 published on Tuesday, Apr 16, 2024 by Pulumi