1. Packages
  2. AWS Classic
  3. API Docs
  4. oam
  5. getSink

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws.oam.getSink

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

    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:

    SinkIdentifier string
    ARN of the sink.
    Tags Dictionary<string, string>
    Tags assigned to the sink.
    SinkIdentifier string
    ARN of the sink.
    Tags map[string]string
    Tags assigned to the sink.
    sinkIdentifier String
    ARN of the sink.
    tags Map<String,String>
    Tags assigned to the sink.
    sinkIdentifier string
    ARN of the sink.
    tags {[key: string]: string}
    Tags assigned to the sink.
    sink_identifier str
    ARN of the sink.
    tags Mapping[str, str]
    Tags assigned to the sink.
    sinkIdentifier String
    ARN of the sink.
    tags 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.
    SinkId string
    Random ID string that AWS generated as part of the sink ARN.
    SinkIdentifier string
    Tags 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.
    SinkId string
    Random ID string that AWS generated as part of the sink ARN.
    SinkIdentifier string
    Tags 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.
    sinkId String
    Random ID string that AWS generated as part of the sink ARN.
    sinkIdentifier String
    tags 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.
    sinkId string
    Random ID string that AWS generated as part of the sink ARN.
    sinkIdentifier string
    tags {[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
    tags 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.
    sinkId String
    Random ID string that AWS generated as part of the sink ARN.
    sinkIdentifier String
    tags 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.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi