getNotificationChannel function
Future<GetNotificationChannelResult>
getNotificationChannel(
- GetNotificationChannelArgs args, {
- InvokeOptions? options,
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")
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 main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/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
})
}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
data "aws_devopsguru_getnotificationchannel" "example" {
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.ArrayList;
import java.util.Arrays;
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
args Arguments passed to this invoke. Arguments for getNotificationChannel.
options Invoke options controlling this call.
Implementation
Future<GetNotificationChannelResult> getNotificationChannel(
GetNotificationChannelArgs args, {
pulumi.InvokeOptions? options,
}) async {
final deployment = pulumi.Deployment.instance;
final result = await deployment.invoke<Map<String, dynamic>>(
'aws:devopsguru/getNotificationChannel:getNotificationChannel',
args.toMap(),
options: pulumi.toDeploymentInvokeOptions(options),
);
return GetNotificationChannelResult.fromMap(result);
}