AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi
aws.oam.getSink
Explore with Pulumi AI
Data source for managing an AWS CloudWatch Observability Access Manager Sink.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.oam.getSink({
sinkIdentifier: "arn:aws:oam:us-west-1:111111111111:sink/abcd1234-a123-456a-a12b-a123b456c789",
});
import pulumi
import pulumi_aws as aws
example = aws.oam.get_sink(sink_identifier="arn:aws:oam:us-west-1:111111111111:sink/abcd1234-a123-456a-a12b-a123b456c789")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/oam"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := oam.LookupSink(ctx, &oam.LookupSinkArgs{
SinkIdentifier: "arn:aws:oam:us-west-1:111111111111:sink/abcd1234-a123-456a-a12b-a123b456c789",
}, 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.Oam.GetSink.Invoke(new()
{
SinkIdentifier = "arn:aws:oam:us-west-1:111111111111:sink/abcd1234-a123-456a-a12b-a123b456c789",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.oam.OamFunctions;
import com.pulumi.aws.oam.inputs.GetSinkArgs;
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 = OamFunctions.getSink(GetSinkArgs.builder()
.sinkIdentifier("arn:aws:oam:us-west-1:111111111111:sink/abcd1234-a123-456a-a12b-a123b456c789")
.build());
}
}
variables:
example:
fn::invoke:
Function: aws:oam:getSink
Arguments:
sinkIdentifier: arn:aws:oam:us-west-1:111111111111:sink/abcd1234-a123-456a-a12b-a123b456c789
Using getSink
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 getSink(args: GetSinkArgs, opts?: InvokeOptions): Promise<GetSinkResult>
function getSinkOutput(args: GetSinkOutputArgs, opts?: InvokeOptions): Output<GetSinkResult>
def get_sink(sink_identifier: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetSinkResult
def get_sink_output(sink_identifier: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSinkResult]
func LookupSink(ctx *Context, args *LookupSinkArgs, opts ...InvokeOption) (*LookupSinkResult, error)
func LookupSinkOutput(ctx *Context, args *LookupSinkOutputArgs, opts ...InvokeOption) LookupSinkResultOutput
> Note: This function is named LookupSink
in the Go SDK.
public static class GetSink
{
public static Task<GetSinkResult> InvokeAsync(GetSinkArgs args, InvokeOptions? opts = null)
public static Output<GetSinkResult> Invoke(GetSinkInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSinkResult> getSink(GetSinkArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:oam/getSink:getSink
arguments:
# arguments dictionary
The following arguments are supported:
- Sink
Identifier string - ARN of the sink.
- Dictionary<string, string>
- Tags assigned to the sink.
- Sink
Identifier string - ARN of the sink.
- map[string]string
- Tags assigned to the sink.
- sink
Identifier String - ARN of the sink.
- Map<String,String>
- Tags assigned to the sink.
- sink
Identifier string - ARN of the sink.
- {[key: string]: string}
- Tags assigned to the sink.
- sink_
identifier str - ARN of the sink.
- Mapping[str, str]
- Tags assigned to the sink.
- sink
Identifier String - ARN of the sink.
- Map<String>
- Tags assigned to the sink.
getSink Result
The following output properties are available:
- Arn string
- ARN of the sink.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the sink.
- Sink
Id string - Random ID string that AWS generated as part of the sink ARN.
- Sink
Identifier string - Dictionary<string, string>
- Tags assigned to the sink.
- Arn string
- ARN of the sink.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the sink.
- Sink
Id string - Random ID string that AWS generated as part of the sink ARN.
- Sink
Identifier string - map[string]string
- Tags assigned to the sink.
- arn String
- ARN of the sink.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the sink.
- sink
Id String - Random ID string that AWS generated as part of the sink ARN.
- sink
Identifier String - Map<String,String>
- Tags assigned to the sink.
- arn string
- ARN of the sink.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name of the sink.
- sink
Id string - Random ID string that AWS generated as part of the sink ARN.
- sink
Identifier string - {[key: string]: string}
- Tags assigned to the sink.
- arn str
- ARN of the sink.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Name of the sink.
- sink_
id str - Random ID string that AWS generated as part of the sink ARN.
- sink_
identifier str - Mapping[str, str]
- Tags assigned to the sink.
- arn String
- ARN of the sink.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the sink.
- sink
Id String - Random ID string that AWS generated as part of the sink ARN.
- sink
Identifier String - Map<String>
- Tags assigned to the sink.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.