get Notification Channel
suspend fun getNotificationChannel(argument: GetNotificationChannelPlainArgs): GetNotificationChannelResult
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",
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.devopsguru.get_notification_channel(id="channel-1234")
Content copied to clipboard
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
variables:
example:
fn::invoke:
function: aws:devopsguru:getNotificationChannel
arguments:
id: channel-1234
Content copied to clipboard
Return
A collection of values returned by getNotificationChannel.
Parameters
argument
A collection of arguments for invoking getNotificationChannel.
suspend fun getNotificationChannel(filters: List<GetNotificationChannelFilter>? = null, id: String, sns: List<GetNotificationChannelSn>? = null): GetNotificationChannelResult
Return
A collection of values returned by getNotificationChannel.
Parameters
filters
Filter configurations for the Amazon SNS notification topic. See the filters
attribute reference below.
id
Unique identifier for the notification channel.
sns
SNS noficiation channel configurations. See the sns
attribute reference below.
See also
suspend fun getNotificationChannel(argument: suspend GetNotificationChannelPlainArgsBuilder.() -> Unit): GetNotificationChannelResult
Return
A collection of values returned by getNotificationChannel.
Parameters
argument
Builder for com.pulumi.aws.devopsguru.kotlin.inputs.GetNotificationChannelPlainArgs.