AWS v6.60.0 published on Tuesday, Nov 19, 2024 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",
});
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<Get
Notification Channel Filter> - Filter configurations for the Amazon SNS notification topic. See the
filters
attribute reference below. - Sns
List<Get
Notification Channel Sn> - SNS noficiation channel configurations. See the
sns
attribute reference below.
- Id string
- Unique identifier for the notification channel.
- Filters
[]Get
Notification Channel Filter - Filter configurations for the Amazon SNS notification topic. See the
filters
attribute reference below. - Sns
[]Get
Notification Channel Sn - SNS noficiation channel configurations. See the
sns
attribute reference below.
- id String
- Unique identifier for the notification channel.
- filters
List<Get
Notification Channel Filter> - Filter configurations for the Amazon SNS notification topic. See the
filters
attribute reference below. - sns
List<Get
Notification Channel Sn> - SNS noficiation channel configurations. See the
sns
attribute reference below.
- id string
- Unique identifier for the notification channel.
- filters
Get
Notification Channel Filter[] - Filter configurations for the Amazon SNS notification topic. See the
filters
attribute reference below. - sns
Get
Notification Channel Sn[] - SNS noficiation channel configurations. See the
sns
attribute reference below.
- id str
- Unique identifier for the notification channel.
- filters
Sequence[Get
Notification Channel Filter] - Filter configurations for the Amazon SNS notification topic. See the
filters
attribute reference below. - sns
Sequence[Get
Notification Channel Sn] - 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<Get
Notification Channel Filter> - Filter configurations for the Amazon SNS notification topic. See the
filters
attribute reference below. - Sns
List<Get
Notification Channel Sn> - SNS noficiation channel configurations. See the
sns
attribute reference below.
- Id string
- Filters
[]Get
Notification Channel Filter - Filter configurations for the Amazon SNS notification topic. See the
filters
attribute reference below. - Sns
[]Get
Notification Channel Sn - SNS noficiation channel configurations. See the
sns
attribute reference below.
- id String
- filters
List<Get
Notification Channel Filter> - Filter configurations for the Amazon SNS notification topic. See the
filters
attribute reference below. - sns
List<Get
Notification Channel Sn> - SNS noficiation channel configurations. See the
sns
attribute reference below.
- id string
- filters
Get
Notification Channel Filter[] - Filter configurations for the Amazon SNS notification topic. See the
filters
attribute reference below. - sns
Get
Notification Channel Sn[] - SNS noficiation channel configurations. See the
sns
attribute reference below.
- id str
- filters
Sequence[Get
Notification Channel Filter] - Filter configurations for the Amazon SNS notification topic. See the
filters
attribute reference below. - sns
Sequence[Get
Notification Channel Sn] - 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
- Message
Types List<string> - Events to receive notifications for.
- Severities List<string>
- Severity levels to receive notifications for.
- Message
Types []string - Events to receive notifications for.
- Severities []string
- Severity levels to receive notifications for.
- message
Types List<String> - Events to receive notifications for.
- severities List<String>
- Severity levels to receive notifications for.
- message
Types 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.
- message
Types List<String> - Events to receive notifications for.
- severities List<String>
- Severity levels to receive notifications for.
GetNotificationChannelSn
- Topic
Arn string - Amazon Resource Name (ARN) of an Amazon Simple Notification Service topic.
- Topic
Arn string - Amazon Resource Name (ARN) of an Amazon Simple Notification Service topic.
- topic
Arn String - Amazon Resource Name (ARN) of an Amazon Simple Notification Service topic.
- topic
Arn 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.
- topic
Arn 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.