AWS Native

Pulumi Official
Package maintained by Pulumi
v0.19.0 published on Wednesday, Jun 8, 2022 by Pulumi

NotificationChannel

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

Example Usage

Example

using Pulumi;
using AwsNative = Pulumi.AwsNative;

class MyStack : Stack
{
    public MyStack()
    {
        var myNotificationChannel = new AwsNative.DevOpsGuru.NotificationChannel("myNotificationChannel", new AwsNative.DevOpsGuru.NotificationChannelArgs
        {
            Config = new AwsNative.DevOpsGuru.Inputs.NotificationChannelConfigArgs
            {
                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{
				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(
    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: {
    sns: {
        topicArn: "arn:aws:sns:us-east-1:123456789012:DefaultNotificationChannel",
    },
}});

Coming soon!

Example

using Pulumi;
using AwsNative = Pulumi.AwsNative;

class MyStack : Stack
{
    public MyStack()
    {
        var myNotificationChannel = new AwsNative.DevOpsGuru.NotificationChannel("myNotificationChannel", new AwsNative.DevOpsGuru.NotificationChannelArgs
        {
            Config = new AwsNative.DevOpsGuru.Inputs.NotificationChannelConfigArgs
            {
                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{
				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(
    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: {
    sns: {
        topicArn: "arn:aws:sns:us-east-1:123456789012:DefaultNotificationChannel",
    },
}});

Coming soon!

Example

using Pulumi;
using AwsNative = Pulumi.AwsNative;

class MyStack : Stack
{
    public MyStack()
    {
        var myNotificationChannel1 = new AwsNative.DevOpsGuru.NotificationChannel("myNotificationChannel1", new AwsNative.DevOpsGuru.NotificationChannelArgs
        {
            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 AwsNative.DevOpsGuru.NotificationChannelArgs
        {
            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 Pulumi;
using AwsNative = Pulumi.AwsNative;

class MyStack : Stack
{
    public MyStack()
    {
        var myNotificationChannel1 = new AwsNative.DevOpsGuru.NotificationChannel("myNotificationChannel1", new AwsNative.DevOpsGuru.NotificationChannelArgs
        {
            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 AwsNative.DevOpsGuru.NotificationChannelArgs
        {
            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 a NotificationChannel Resource

new NotificationChannel(name: string, args: NotificationChannelArgs, opts?: CustomResourceOptions);
@overload
def NotificationChannel(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        config: Optional[NotificationChannelConfigArgs] = None)
@overload
def NotificationChannel(resource_name: str,
                        args: NotificationChannelArgs,
                        opts: Optional[ResourceOptions] = 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.

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.

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:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Supporting Types

NotificationChannelConfig

NotificationChannelSnsChannelConfig

TopicArn string
TopicArn string
topicArn String
topicArn string
topicArn String

Package Details

Repository
https://github.com/pulumi/pulumi-aws-native
License
Apache-2.0