UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

111 lines (110 loc) 3.34 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Data source for managing an AWS CloudWatch Observability Access Manager Link. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.oam.getLink({ * linkIdentifier: "arn:aws:oam:us-west-1:111111111111:link/abcd1234-a123-456a-a12b-a123b456c789", * }); * ``` */ export declare function getLink(args: GetLinkArgs, opts?: pulumi.InvokeOptions): Promise<GetLinkResult>; /** * A collection of arguments for invoking getLink. */ export interface GetLinkArgs { /** * ARN of the link. */ linkIdentifier: string; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: string; tags?: { [key: string]: string; }; } /** * A collection of values returned by getLink. */ export interface GetLinkResult { /** * ARN of the link. */ readonly arn: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Label that is assigned to this link. */ readonly label: string; /** * Human-readable name used to identify this source account when you are viewing data from it in the monitoring account. */ readonly labelTemplate: string; /** * Configuration for creating filters that specify that only some metric namespaces or log groups are to be shared from the source account to the monitoring account. See `linkConfiguration` Block for details. */ readonly linkConfigurations: outputs.oam.GetLinkLinkConfiguration[]; /** * ID string that AWS generated as part of the link ARN. */ readonly linkId: string; readonly linkIdentifier: string; readonly region: string; /** * Types of data that the source account shares with the monitoring account. */ readonly resourceTypes: string[]; /** * ARN of the sink that is used for this link. */ readonly sinkArn: string; readonly tags: { [key: string]: string; }; } /** * Data source for managing an AWS CloudWatch Observability Access Manager Link. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.oam.getLink({ * linkIdentifier: "arn:aws:oam:us-west-1:111111111111:link/abcd1234-a123-456a-a12b-a123b456c789", * }); * ``` */ export declare function getLinkOutput(args: GetLinkOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetLinkResult>; /** * A collection of arguments for invoking getLink. */ export interface GetLinkOutputArgs { /** * ARN of the link. */ linkIdentifier: pulumi.Input<string>; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input<string>; tags?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; }