oam

package
v6.45.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetLinkLinkConfiguration added in v6.45.0

type GetLinkLinkConfiguration struct {
	// Configuration for filtering which log groups are to send log events from the source account to the monitoring account. See `logGroupConfiguration` Block for details.
	LogGroupConfigurations []GetLinkLinkConfigurationLogGroupConfiguration `pulumi:"logGroupConfigurations"`
	// Configuration for filtering which metric namespaces are to be shared from the source account to the monitoring account. See `metricConfiguration` Block for details.
	MetricConfigurations []GetLinkLinkConfigurationMetricConfiguration `pulumi:"metricConfigurations"`
}

type GetLinkLinkConfigurationArgs added in v6.45.0

type GetLinkLinkConfigurationArgs struct {
	// Configuration for filtering which log groups are to send log events from the source account to the monitoring account. See `logGroupConfiguration` Block for details.
	LogGroupConfigurations GetLinkLinkConfigurationLogGroupConfigurationArrayInput `pulumi:"logGroupConfigurations"`
	// Configuration for filtering which metric namespaces are to be shared from the source account to the monitoring account. See `metricConfiguration` Block for details.
	MetricConfigurations GetLinkLinkConfigurationMetricConfigurationArrayInput `pulumi:"metricConfigurations"`
}

func (GetLinkLinkConfigurationArgs) ElementType added in v6.45.0

func (GetLinkLinkConfigurationArgs) ToGetLinkLinkConfigurationOutput added in v6.45.0

func (i GetLinkLinkConfigurationArgs) ToGetLinkLinkConfigurationOutput() GetLinkLinkConfigurationOutput

func (GetLinkLinkConfigurationArgs) ToGetLinkLinkConfigurationOutputWithContext added in v6.45.0

func (i GetLinkLinkConfigurationArgs) ToGetLinkLinkConfigurationOutputWithContext(ctx context.Context) GetLinkLinkConfigurationOutput

type GetLinkLinkConfigurationArray added in v6.45.0

type GetLinkLinkConfigurationArray []GetLinkLinkConfigurationInput

func (GetLinkLinkConfigurationArray) ElementType added in v6.45.0

func (GetLinkLinkConfigurationArray) ToGetLinkLinkConfigurationArrayOutput added in v6.45.0

func (i GetLinkLinkConfigurationArray) ToGetLinkLinkConfigurationArrayOutput() GetLinkLinkConfigurationArrayOutput

func (GetLinkLinkConfigurationArray) ToGetLinkLinkConfigurationArrayOutputWithContext added in v6.45.0

func (i GetLinkLinkConfigurationArray) ToGetLinkLinkConfigurationArrayOutputWithContext(ctx context.Context) GetLinkLinkConfigurationArrayOutput

type GetLinkLinkConfigurationArrayInput added in v6.45.0

type GetLinkLinkConfigurationArrayInput interface {
	pulumi.Input

	ToGetLinkLinkConfigurationArrayOutput() GetLinkLinkConfigurationArrayOutput
	ToGetLinkLinkConfigurationArrayOutputWithContext(context.Context) GetLinkLinkConfigurationArrayOutput
}

GetLinkLinkConfigurationArrayInput is an input type that accepts GetLinkLinkConfigurationArray and GetLinkLinkConfigurationArrayOutput values. You can construct a concrete instance of `GetLinkLinkConfigurationArrayInput` via:

GetLinkLinkConfigurationArray{ GetLinkLinkConfigurationArgs{...} }

type GetLinkLinkConfigurationArrayOutput added in v6.45.0

type GetLinkLinkConfigurationArrayOutput struct{ *pulumi.OutputState }

func (GetLinkLinkConfigurationArrayOutput) ElementType added in v6.45.0

func (GetLinkLinkConfigurationArrayOutput) Index added in v6.45.0

func (GetLinkLinkConfigurationArrayOutput) ToGetLinkLinkConfigurationArrayOutput added in v6.45.0

func (o GetLinkLinkConfigurationArrayOutput) ToGetLinkLinkConfigurationArrayOutput() GetLinkLinkConfigurationArrayOutput

func (GetLinkLinkConfigurationArrayOutput) ToGetLinkLinkConfigurationArrayOutputWithContext added in v6.45.0

func (o GetLinkLinkConfigurationArrayOutput) ToGetLinkLinkConfigurationArrayOutputWithContext(ctx context.Context) GetLinkLinkConfigurationArrayOutput

type GetLinkLinkConfigurationInput added in v6.45.0

type GetLinkLinkConfigurationInput interface {
	pulumi.Input

	ToGetLinkLinkConfigurationOutput() GetLinkLinkConfigurationOutput
	ToGetLinkLinkConfigurationOutputWithContext(context.Context) GetLinkLinkConfigurationOutput
}

GetLinkLinkConfigurationInput is an input type that accepts GetLinkLinkConfigurationArgs and GetLinkLinkConfigurationOutput values. You can construct a concrete instance of `GetLinkLinkConfigurationInput` via:

GetLinkLinkConfigurationArgs{...}

type GetLinkLinkConfigurationLogGroupConfiguration added in v6.45.0

type GetLinkLinkConfigurationLogGroupConfiguration struct {
	// Filter string that specifies  which metrics are to be shared with the monitoring account. See [MetricConfiguration](https://docs.aws.amazon.com/OAM/latest/APIReference/API_MetricConfiguration.html) for details.
	Filter string `pulumi:"filter"`
}

type GetLinkLinkConfigurationLogGroupConfigurationArgs added in v6.45.0

type GetLinkLinkConfigurationLogGroupConfigurationArgs struct {
	// Filter string that specifies  which metrics are to be shared with the monitoring account. See [MetricConfiguration](https://docs.aws.amazon.com/OAM/latest/APIReference/API_MetricConfiguration.html) for details.
	Filter pulumi.StringInput `pulumi:"filter"`
}

func (GetLinkLinkConfigurationLogGroupConfigurationArgs) ElementType added in v6.45.0

func (GetLinkLinkConfigurationLogGroupConfigurationArgs) ToGetLinkLinkConfigurationLogGroupConfigurationOutput added in v6.45.0

func (i GetLinkLinkConfigurationLogGroupConfigurationArgs) ToGetLinkLinkConfigurationLogGroupConfigurationOutput() GetLinkLinkConfigurationLogGroupConfigurationOutput

func (GetLinkLinkConfigurationLogGroupConfigurationArgs) ToGetLinkLinkConfigurationLogGroupConfigurationOutputWithContext added in v6.45.0

func (i GetLinkLinkConfigurationLogGroupConfigurationArgs) ToGetLinkLinkConfigurationLogGroupConfigurationOutputWithContext(ctx context.Context) GetLinkLinkConfigurationLogGroupConfigurationOutput

type GetLinkLinkConfigurationLogGroupConfigurationArray added in v6.45.0

type GetLinkLinkConfigurationLogGroupConfigurationArray []GetLinkLinkConfigurationLogGroupConfigurationInput

func (GetLinkLinkConfigurationLogGroupConfigurationArray) ElementType added in v6.45.0

func (GetLinkLinkConfigurationLogGroupConfigurationArray) ToGetLinkLinkConfigurationLogGroupConfigurationArrayOutput added in v6.45.0

func (i GetLinkLinkConfigurationLogGroupConfigurationArray) ToGetLinkLinkConfigurationLogGroupConfigurationArrayOutput() GetLinkLinkConfigurationLogGroupConfigurationArrayOutput

func (GetLinkLinkConfigurationLogGroupConfigurationArray) ToGetLinkLinkConfigurationLogGroupConfigurationArrayOutputWithContext added in v6.45.0

func (i GetLinkLinkConfigurationLogGroupConfigurationArray) ToGetLinkLinkConfigurationLogGroupConfigurationArrayOutputWithContext(ctx context.Context) GetLinkLinkConfigurationLogGroupConfigurationArrayOutput

type GetLinkLinkConfigurationLogGroupConfigurationArrayInput added in v6.45.0

type GetLinkLinkConfigurationLogGroupConfigurationArrayInput interface {
	pulumi.Input

	ToGetLinkLinkConfigurationLogGroupConfigurationArrayOutput() GetLinkLinkConfigurationLogGroupConfigurationArrayOutput
	ToGetLinkLinkConfigurationLogGroupConfigurationArrayOutputWithContext(context.Context) GetLinkLinkConfigurationLogGroupConfigurationArrayOutput
}

GetLinkLinkConfigurationLogGroupConfigurationArrayInput is an input type that accepts GetLinkLinkConfigurationLogGroupConfigurationArray and GetLinkLinkConfigurationLogGroupConfigurationArrayOutput values. You can construct a concrete instance of `GetLinkLinkConfigurationLogGroupConfigurationArrayInput` via:

GetLinkLinkConfigurationLogGroupConfigurationArray{ GetLinkLinkConfigurationLogGroupConfigurationArgs{...} }

type GetLinkLinkConfigurationLogGroupConfigurationArrayOutput added in v6.45.0

type GetLinkLinkConfigurationLogGroupConfigurationArrayOutput struct{ *pulumi.OutputState }

func (GetLinkLinkConfigurationLogGroupConfigurationArrayOutput) ElementType added in v6.45.0

func (GetLinkLinkConfigurationLogGroupConfigurationArrayOutput) Index added in v6.45.0

func (GetLinkLinkConfigurationLogGroupConfigurationArrayOutput) ToGetLinkLinkConfigurationLogGroupConfigurationArrayOutput added in v6.45.0

func (GetLinkLinkConfigurationLogGroupConfigurationArrayOutput) ToGetLinkLinkConfigurationLogGroupConfigurationArrayOutputWithContext added in v6.45.0

func (o GetLinkLinkConfigurationLogGroupConfigurationArrayOutput) ToGetLinkLinkConfigurationLogGroupConfigurationArrayOutputWithContext(ctx context.Context) GetLinkLinkConfigurationLogGroupConfigurationArrayOutput

type GetLinkLinkConfigurationLogGroupConfigurationInput added in v6.45.0

type GetLinkLinkConfigurationLogGroupConfigurationInput interface {
	pulumi.Input

	ToGetLinkLinkConfigurationLogGroupConfigurationOutput() GetLinkLinkConfigurationLogGroupConfigurationOutput
	ToGetLinkLinkConfigurationLogGroupConfigurationOutputWithContext(context.Context) GetLinkLinkConfigurationLogGroupConfigurationOutput
}

GetLinkLinkConfigurationLogGroupConfigurationInput is an input type that accepts GetLinkLinkConfigurationLogGroupConfigurationArgs and GetLinkLinkConfigurationLogGroupConfigurationOutput values. You can construct a concrete instance of `GetLinkLinkConfigurationLogGroupConfigurationInput` via:

GetLinkLinkConfigurationLogGroupConfigurationArgs{...}

type GetLinkLinkConfigurationLogGroupConfigurationOutput added in v6.45.0

type GetLinkLinkConfigurationLogGroupConfigurationOutput struct{ *pulumi.OutputState }

func (GetLinkLinkConfigurationLogGroupConfigurationOutput) ElementType added in v6.45.0

func (GetLinkLinkConfigurationLogGroupConfigurationOutput) Filter added in v6.45.0

Filter string that specifies which metrics are to be shared with the monitoring account. See [MetricConfiguration](https://docs.aws.amazon.com/OAM/latest/APIReference/API_MetricConfiguration.html) for details.

func (GetLinkLinkConfigurationLogGroupConfigurationOutput) ToGetLinkLinkConfigurationLogGroupConfigurationOutput added in v6.45.0

func (o GetLinkLinkConfigurationLogGroupConfigurationOutput) ToGetLinkLinkConfigurationLogGroupConfigurationOutput() GetLinkLinkConfigurationLogGroupConfigurationOutput

func (GetLinkLinkConfigurationLogGroupConfigurationOutput) ToGetLinkLinkConfigurationLogGroupConfigurationOutputWithContext added in v6.45.0

func (o GetLinkLinkConfigurationLogGroupConfigurationOutput) ToGetLinkLinkConfigurationLogGroupConfigurationOutputWithContext(ctx context.Context) GetLinkLinkConfigurationLogGroupConfigurationOutput

type GetLinkLinkConfigurationMetricConfiguration added in v6.45.0

type GetLinkLinkConfigurationMetricConfiguration struct {
	// Filter string that specifies  which metrics are to be shared with the monitoring account. See [MetricConfiguration](https://docs.aws.amazon.com/OAM/latest/APIReference/API_MetricConfiguration.html) for details.
	Filter string `pulumi:"filter"`
}

type GetLinkLinkConfigurationMetricConfigurationArgs added in v6.45.0

type GetLinkLinkConfigurationMetricConfigurationArgs struct {
	// Filter string that specifies  which metrics are to be shared with the monitoring account. See [MetricConfiguration](https://docs.aws.amazon.com/OAM/latest/APIReference/API_MetricConfiguration.html) for details.
	Filter pulumi.StringInput `pulumi:"filter"`
}

func (GetLinkLinkConfigurationMetricConfigurationArgs) ElementType added in v6.45.0

func (GetLinkLinkConfigurationMetricConfigurationArgs) ToGetLinkLinkConfigurationMetricConfigurationOutput added in v6.45.0

func (i GetLinkLinkConfigurationMetricConfigurationArgs) ToGetLinkLinkConfigurationMetricConfigurationOutput() GetLinkLinkConfigurationMetricConfigurationOutput

func (GetLinkLinkConfigurationMetricConfigurationArgs) ToGetLinkLinkConfigurationMetricConfigurationOutputWithContext added in v6.45.0

func (i GetLinkLinkConfigurationMetricConfigurationArgs) ToGetLinkLinkConfigurationMetricConfigurationOutputWithContext(ctx context.Context) GetLinkLinkConfigurationMetricConfigurationOutput

type GetLinkLinkConfigurationMetricConfigurationArray added in v6.45.0

type GetLinkLinkConfigurationMetricConfigurationArray []GetLinkLinkConfigurationMetricConfigurationInput

func (GetLinkLinkConfigurationMetricConfigurationArray) ElementType added in v6.45.0

func (GetLinkLinkConfigurationMetricConfigurationArray) ToGetLinkLinkConfigurationMetricConfigurationArrayOutput added in v6.45.0

func (i GetLinkLinkConfigurationMetricConfigurationArray) ToGetLinkLinkConfigurationMetricConfigurationArrayOutput() GetLinkLinkConfigurationMetricConfigurationArrayOutput

func (GetLinkLinkConfigurationMetricConfigurationArray) ToGetLinkLinkConfigurationMetricConfigurationArrayOutputWithContext added in v6.45.0

func (i GetLinkLinkConfigurationMetricConfigurationArray) ToGetLinkLinkConfigurationMetricConfigurationArrayOutputWithContext(ctx context.Context) GetLinkLinkConfigurationMetricConfigurationArrayOutput

type GetLinkLinkConfigurationMetricConfigurationArrayInput added in v6.45.0

type GetLinkLinkConfigurationMetricConfigurationArrayInput interface {
	pulumi.Input

	ToGetLinkLinkConfigurationMetricConfigurationArrayOutput() GetLinkLinkConfigurationMetricConfigurationArrayOutput
	ToGetLinkLinkConfigurationMetricConfigurationArrayOutputWithContext(context.Context) GetLinkLinkConfigurationMetricConfigurationArrayOutput
}

GetLinkLinkConfigurationMetricConfigurationArrayInput is an input type that accepts GetLinkLinkConfigurationMetricConfigurationArray and GetLinkLinkConfigurationMetricConfigurationArrayOutput values. You can construct a concrete instance of `GetLinkLinkConfigurationMetricConfigurationArrayInput` via:

GetLinkLinkConfigurationMetricConfigurationArray{ GetLinkLinkConfigurationMetricConfigurationArgs{...} }

type GetLinkLinkConfigurationMetricConfigurationArrayOutput added in v6.45.0

type GetLinkLinkConfigurationMetricConfigurationArrayOutput struct{ *pulumi.OutputState }

func (GetLinkLinkConfigurationMetricConfigurationArrayOutput) ElementType added in v6.45.0

func (GetLinkLinkConfigurationMetricConfigurationArrayOutput) Index added in v6.45.0

func (GetLinkLinkConfigurationMetricConfigurationArrayOutput) ToGetLinkLinkConfigurationMetricConfigurationArrayOutput added in v6.45.0

func (GetLinkLinkConfigurationMetricConfigurationArrayOutput) ToGetLinkLinkConfigurationMetricConfigurationArrayOutputWithContext added in v6.45.0

func (o GetLinkLinkConfigurationMetricConfigurationArrayOutput) ToGetLinkLinkConfigurationMetricConfigurationArrayOutputWithContext(ctx context.Context) GetLinkLinkConfigurationMetricConfigurationArrayOutput

type GetLinkLinkConfigurationMetricConfigurationInput added in v6.45.0

type GetLinkLinkConfigurationMetricConfigurationInput interface {
	pulumi.Input

	ToGetLinkLinkConfigurationMetricConfigurationOutput() GetLinkLinkConfigurationMetricConfigurationOutput
	ToGetLinkLinkConfigurationMetricConfigurationOutputWithContext(context.Context) GetLinkLinkConfigurationMetricConfigurationOutput
}

GetLinkLinkConfigurationMetricConfigurationInput is an input type that accepts GetLinkLinkConfigurationMetricConfigurationArgs and GetLinkLinkConfigurationMetricConfigurationOutput values. You can construct a concrete instance of `GetLinkLinkConfigurationMetricConfigurationInput` via:

GetLinkLinkConfigurationMetricConfigurationArgs{...}

type GetLinkLinkConfigurationMetricConfigurationOutput added in v6.45.0

type GetLinkLinkConfigurationMetricConfigurationOutput struct{ *pulumi.OutputState }

func (GetLinkLinkConfigurationMetricConfigurationOutput) ElementType added in v6.45.0

func (GetLinkLinkConfigurationMetricConfigurationOutput) Filter added in v6.45.0

Filter string that specifies which metrics are to be shared with the monitoring account. See [MetricConfiguration](https://docs.aws.amazon.com/OAM/latest/APIReference/API_MetricConfiguration.html) for details.

func (GetLinkLinkConfigurationMetricConfigurationOutput) ToGetLinkLinkConfigurationMetricConfigurationOutput added in v6.45.0

func (o GetLinkLinkConfigurationMetricConfigurationOutput) ToGetLinkLinkConfigurationMetricConfigurationOutput() GetLinkLinkConfigurationMetricConfigurationOutput

func (GetLinkLinkConfigurationMetricConfigurationOutput) ToGetLinkLinkConfigurationMetricConfigurationOutputWithContext added in v6.45.0

func (o GetLinkLinkConfigurationMetricConfigurationOutput) ToGetLinkLinkConfigurationMetricConfigurationOutputWithContext(ctx context.Context) GetLinkLinkConfigurationMetricConfigurationOutput

type GetLinkLinkConfigurationOutput added in v6.45.0

type GetLinkLinkConfigurationOutput struct{ *pulumi.OutputState }

func (GetLinkLinkConfigurationOutput) ElementType added in v6.45.0

func (GetLinkLinkConfigurationOutput) LogGroupConfigurations added in v6.45.0

Configuration for filtering which log groups are to send log events from the source account to the monitoring account. See `logGroupConfiguration` Block for details.

func (GetLinkLinkConfigurationOutput) MetricConfigurations added in v6.45.0

Configuration for filtering which metric namespaces are to be shared from the source account to the monitoring account. See `metricConfiguration` Block for details.

func (GetLinkLinkConfigurationOutput) ToGetLinkLinkConfigurationOutput added in v6.45.0

func (o GetLinkLinkConfigurationOutput) ToGetLinkLinkConfigurationOutput() GetLinkLinkConfigurationOutput

func (GetLinkLinkConfigurationOutput) ToGetLinkLinkConfigurationOutputWithContext added in v6.45.0

func (o GetLinkLinkConfigurationOutput) ToGetLinkLinkConfigurationOutputWithContext(ctx context.Context) GetLinkLinkConfigurationOutput

type GetLinksResult

type GetLinksResult struct {
	// Set of ARN of the Links.
	Arns []string `pulumi:"arns"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
}

A collection of values returned by getLinks.

func GetLinks(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetLinksResult, error)

Data source for managing an AWS CloudWatch Observability Access Manager Links.

## Example Usage

### Basic Usage

```go 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.GetLinks(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetLinksResultOutput added in v6.6.1

type GetLinksResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getLinks.

func GetLinksOutput added in v6.6.1

func GetLinksOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetLinksResultOutput

func (GetLinksResultOutput) Arns added in v6.6.1

Set of ARN of the Links.

func (GetLinksResultOutput) ElementType added in v6.6.1

func (GetLinksResultOutput) ElementType() reflect.Type

func (GetLinksResultOutput) Id added in v6.6.1

The provider-assigned unique ID for this managed resource.

func (GetLinksResultOutput) ToGetLinksResultOutput added in v6.6.1

func (o GetLinksResultOutput) ToGetLinksResultOutput() GetLinksResultOutput

func (GetLinksResultOutput) ToGetLinksResultOutputWithContext added in v6.6.1

func (o GetLinksResultOutput) ToGetLinksResultOutputWithContext(ctx context.Context) GetLinksResultOutput

type GetSinksResult

type GetSinksResult struct {
	// Set of ARN of the Sinks.
	Arns []string `pulumi:"arns"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
}

A collection of values returned by getSinks.

func GetSinks

func GetSinks(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetSinksResult, error)

Data source for managing an AWS CloudWatch Observability Access Manager Sinks.

## Example Usage

### Basic Usage

```go 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.GetSinks(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetSinksResultOutput added in v6.6.1

type GetSinksResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSinks.

func GetSinksOutput added in v6.6.1

func GetSinksOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetSinksResultOutput

func (GetSinksResultOutput) Arns added in v6.6.1

Set of ARN of the Sinks.

func (GetSinksResultOutput) ElementType added in v6.6.1

func (GetSinksResultOutput) ElementType() reflect.Type

func (GetSinksResultOutput) Id added in v6.6.1

The provider-assigned unique ID for this managed resource.

func (GetSinksResultOutput) ToGetSinksResultOutput added in v6.6.1

func (o GetSinksResultOutput) ToGetSinksResultOutput() GetSinksResultOutput

func (GetSinksResultOutput) ToGetSinksResultOutputWithContext added in v6.6.1

func (o GetSinksResultOutput) ToGetSinksResultOutputWithContext(ctx context.Context) GetSinksResultOutput
type Link struct {
	pulumi.CustomResourceState

	// ARN of the link.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// Label that is assigned to this link.
	Label pulumi.StringOutput `pulumi:"label"`
	// Human-readable name to use to identify this source account when you are viewing data from it in the monitoring account.
	LabelTemplate pulumi.StringOutput `pulumi:"labelTemplate"`
	// 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.
	LinkConfiguration LinkLinkConfigurationPtrOutput `pulumi:"linkConfiguration"`
	// ID string that AWS generated as part of the link ARN.
	LinkId pulumi.StringOutput `pulumi:"linkId"`
	// Types of data that the source account shares with the monitoring account.
	ResourceTypes pulumi.StringArrayOutput `pulumi:"resourceTypes"`
	// ARN of the sink that is used for this link.
	SinkArn pulumi.StringOutput `pulumi:"sinkArn"`
	// Identifier of the sink to use to create this link.
	//
	// The following arguments are optional:
	SinkIdentifier pulumi.StringOutput `pulumi:"sinkIdentifier"`
	// A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// Deprecated: Please use `tags` instead.
	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
}

Resource for managing an AWS CloudWatch Observability Access Manager Link.

## Example Usage

### Basic Usage

```go 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.NewLink(ctx, "example", &oam.LinkArgs{
			LabelTemplate: pulumi.String("$AccountName"),
			ResourceTypes: pulumi.StringArray{
				pulumi.String("AWS::CloudWatch::Metric"),
			},
			SinkIdentifier: pulumi.Any(test.Id),
			Tags: pulumi.StringMap{
				"Env": pulumi.String("prod"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

### Log Group Filtering

```go 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.NewLink(ctx, "example", &oam.LinkArgs{
			LabelTemplate: pulumi.String("$AccountName"),
			LinkConfiguration: &oam.LinkLinkConfigurationArgs{
				LogGroupConfiguration: &oam.LinkLinkConfigurationLogGroupConfigurationArgs{
					Filter: pulumi.String("LogGroupName LIKE 'aws/lambda/%' OR LogGroupName LIKE 'AWSLogs%'"),
				},
			},
			ResourceTypes: pulumi.StringArray{
				pulumi.String("AWS::Logs::LogGroup"),
			},
			SinkIdentifier: pulumi.Any(test.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

### Metric Filtering

```go 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.NewLink(ctx, "example", &oam.LinkArgs{
			LabelTemplate: pulumi.String("$AccountName"),
			LinkConfiguration: &oam.LinkLinkConfigurationArgs{
				MetricConfiguration: &oam.LinkLinkConfigurationMetricConfigurationArgs{
					Filter: pulumi.String("Namespace IN ('AWS/EC2', 'AWS/ELB', 'AWS/S3')"),
				},
			},
			ResourceTypes: pulumi.StringArray{
				pulumi.String("AWS::CloudWatch::Metric"),
			},
			SinkIdentifier: pulumi.Any(test.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Using `pulumi import`, import CloudWatch Observability Access Manager Link using the `arn`. For example:

```sh $ pulumi import aws:oam/link:Link example arn:aws:oam:us-west-2:123456789012:link/link-id ```

func GetLink(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *LinkState, opts ...pulumi.ResourceOption) (*Link, error)

GetLink gets an existing Link resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewLink(ctx *pulumi.Context,
	name string, args *LinkArgs, opts ...pulumi.ResourceOption) (*Link, error)

NewLink registers a new resource with the given unique name, arguments, and options.

func (*Link) ElementType

func (*Link) ElementType() reflect.Type

func (*Link) ToLinkOutput

func (i *Link) ToLinkOutput() LinkOutput

func (*Link) ToLinkOutputWithContext

func (i *Link) ToLinkOutputWithContext(ctx context.Context) LinkOutput

type LinkArgs

type LinkArgs struct {
	// Human-readable name to use to identify this source account when you are viewing data from it in the monitoring account.
	LabelTemplate pulumi.StringInput
	// 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.
	LinkConfiguration LinkLinkConfigurationPtrInput
	// Types of data that the source account shares with the monitoring account.
	ResourceTypes pulumi.StringArrayInput
	// Identifier of the sink to use to create this link.
	//
	// The following arguments are optional:
	SinkIdentifier pulumi.StringInput
	// A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
	Tags pulumi.StringMapInput
}

The set of arguments for constructing a Link resource.

func (LinkArgs) ElementType

func (LinkArgs) ElementType() reflect.Type

type LinkArray

type LinkArray []LinkInput

func (LinkArray) ElementType

func (LinkArray) ElementType() reflect.Type

func (LinkArray) ToLinkArrayOutput

func (i LinkArray) ToLinkArrayOutput() LinkArrayOutput

func (LinkArray) ToLinkArrayOutputWithContext

func (i LinkArray) ToLinkArrayOutputWithContext(ctx context.Context) LinkArrayOutput

type LinkArrayInput

type LinkArrayInput interface {
	pulumi.Input

	ToLinkArrayOutput() LinkArrayOutput
	ToLinkArrayOutputWithContext(context.Context) LinkArrayOutput
}

LinkArrayInput is an input type that accepts LinkArray and LinkArrayOutput values. You can construct a concrete instance of `LinkArrayInput` via:

LinkArray{ LinkArgs{...} }

type LinkArrayOutput

type LinkArrayOutput struct{ *pulumi.OutputState }

func (LinkArrayOutput) ElementType

func (LinkArrayOutput) ElementType() reflect.Type

func (LinkArrayOutput) Index

func (LinkArrayOutput) ToLinkArrayOutput

func (o LinkArrayOutput) ToLinkArrayOutput() LinkArrayOutput

func (LinkArrayOutput) ToLinkArrayOutputWithContext

func (o LinkArrayOutput) ToLinkArrayOutputWithContext(ctx context.Context) LinkArrayOutput

type LinkInput

type LinkInput interface {
	pulumi.Input

	ToLinkOutput() LinkOutput
	ToLinkOutputWithContext(ctx context.Context) LinkOutput
}

type LinkLinkConfiguration added in v6.45.0

type LinkLinkConfiguration struct {
	// Configuration for filtering which log groups are to send log events from the source account to the monitoring account. See `logGroupConfiguration` Block for details.
	LogGroupConfiguration *LinkLinkConfigurationLogGroupConfiguration `pulumi:"logGroupConfiguration"`
	// Configuration for filtering which metric namespaces are to be shared from the source account to the monitoring account. See `metricConfiguration` Block for details.
	MetricConfiguration *LinkLinkConfigurationMetricConfiguration `pulumi:"metricConfiguration"`
}

type LinkLinkConfigurationArgs added in v6.45.0

type LinkLinkConfigurationArgs struct {
	// Configuration for filtering which log groups are to send log events from the source account to the monitoring account. See `logGroupConfiguration` Block for details.
	LogGroupConfiguration LinkLinkConfigurationLogGroupConfigurationPtrInput `pulumi:"logGroupConfiguration"`
	// Configuration for filtering which metric namespaces are to be shared from the source account to the monitoring account. See `metricConfiguration` Block for details.
	MetricConfiguration LinkLinkConfigurationMetricConfigurationPtrInput `pulumi:"metricConfiguration"`
}

func (LinkLinkConfigurationArgs) ElementType added in v6.45.0

func (LinkLinkConfigurationArgs) ElementType() reflect.Type

func (LinkLinkConfigurationArgs) ToLinkLinkConfigurationOutput added in v6.45.0

func (i LinkLinkConfigurationArgs) ToLinkLinkConfigurationOutput() LinkLinkConfigurationOutput

func (LinkLinkConfigurationArgs) ToLinkLinkConfigurationOutputWithContext added in v6.45.0

func (i LinkLinkConfigurationArgs) ToLinkLinkConfigurationOutputWithContext(ctx context.Context) LinkLinkConfigurationOutput

func (LinkLinkConfigurationArgs) ToLinkLinkConfigurationPtrOutput added in v6.45.0

func (i LinkLinkConfigurationArgs) ToLinkLinkConfigurationPtrOutput() LinkLinkConfigurationPtrOutput

func (LinkLinkConfigurationArgs) ToLinkLinkConfigurationPtrOutputWithContext added in v6.45.0

func (i LinkLinkConfigurationArgs) ToLinkLinkConfigurationPtrOutputWithContext(ctx context.Context) LinkLinkConfigurationPtrOutput

type LinkLinkConfigurationInput added in v6.45.0

type LinkLinkConfigurationInput interface {
	pulumi.Input

	ToLinkLinkConfigurationOutput() LinkLinkConfigurationOutput
	ToLinkLinkConfigurationOutputWithContext(context.Context) LinkLinkConfigurationOutput
}

LinkLinkConfigurationInput is an input type that accepts LinkLinkConfigurationArgs and LinkLinkConfigurationOutput values. You can construct a concrete instance of `LinkLinkConfigurationInput` via:

LinkLinkConfigurationArgs{...}

type LinkLinkConfigurationLogGroupConfiguration added in v6.45.0

type LinkLinkConfigurationLogGroupConfiguration struct {
	// Filter string that specifies which log groups are to share their log events with the monitoring account. See [LogGroupConfiguration](https://docs.aws.amazon.com/OAM/latest/APIReference/API_LogGroupConfiguration.html) for details.
	Filter string `pulumi:"filter"`
}

type LinkLinkConfigurationLogGroupConfigurationArgs added in v6.45.0

type LinkLinkConfigurationLogGroupConfigurationArgs struct {
	// Filter string that specifies which log groups are to share their log events with the monitoring account. See [LogGroupConfiguration](https://docs.aws.amazon.com/OAM/latest/APIReference/API_LogGroupConfiguration.html) for details.
	Filter pulumi.StringInput `pulumi:"filter"`
}

func (LinkLinkConfigurationLogGroupConfigurationArgs) ElementType added in v6.45.0

func (LinkLinkConfigurationLogGroupConfigurationArgs) ToLinkLinkConfigurationLogGroupConfigurationOutput added in v6.45.0

func (i LinkLinkConfigurationLogGroupConfigurationArgs) ToLinkLinkConfigurationLogGroupConfigurationOutput() LinkLinkConfigurationLogGroupConfigurationOutput

func (LinkLinkConfigurationLogGroupConfigurationArgs) ToLinkLinkConfigurationLogGroupConfigurationOutputWithContext added in v6.45.0

func (i LinkLinkConfigurationLogGroupConfigurationArgs) ToLinkLinkConfigurationLogGroupConfigurationOutputWithContext(ctx context.Context) LinkLinkConfigurationLogGroupConfigurationOutput

func (LinkLinkConfigurationLogGroupConfigurationArgs) ToLinkLinkConfigurationLogGroupConfigurationPtrOutput added in v6.45.0

func (i LinkLinkConfigurationLogGroupConfigurationArgs) ToLinkLinkConfigurationLogGroupConfigurationPtrOutput() LinkLinkConfigurationLogGroupConfigurationPtrOutput

func (LinkLinkConfigurationLogGroupConfigurationArgs) ToLinkLinkConfigurationLogGroupConfigurationPtrOutputWithContext added in v6.45.0

func (i LinkLinkConfigurationLogGroupConfigurationArgs) ToLinkLinkConfigurationLogGroupConfigurationPtrOutputWithContext(ctx context.Context) LinkLinkConfigurationLogGroupConfigurationPtrOutput

type LinkLinkConfigurationLogGroupConfigurationInput added in v6.45.0

type LinkLinkConfigurationLogGroupConfigurationInput interface {
	pulumi.Input

	ToLinkLinkConfigurationLogGroupConfigurationOutput() LinkLinkConfigurationLogGroupConfigurationOutput
	ToLinkLinkConfigurationLogGroupConfigurationOutputWithContext(context.Context) LinkLinkConfigurationLogGroupConfigurationOutput
}

LinkLinkConfigurationLogGroupConfigurationInput is an input type that accepts LinkLinkConfigurationLogGroupConfigurationArgs and LinkLinkConfigurationLogGroupConfigurationOutput values. You can construct a concrete instance of `LinkLinkConfigurationLogGroupConfigurationInput` via:

LinkLinkConfigurationLogGroupConfigurationArgs{...}

type LinkLinkConfigurationLogGroupConfigurationOutput added in v6.45.0

type LinkLinkConfigurationLogGroupConfigurationOutput struct{ *pulumi.OutputState }

func (LinkLinkConfigurationLogGroupConfigurationOutput) ElementType added in v6.45.0

func (LinkLinkConfigurationLogGroupConfigurationOutput) Filter added in v6.45.0

Filter string that specifies which log groups are to share their log events with the monitoring account. See [LogGroupConfiguration](https://docs.aws.amazon.com/OAM/latest/APIReference/API_LogGroupConfiguration.html) for details.

func (LinkLinkConfigurationLogGroupConfigurationOutput) ToLinkLinkConfigurationLogGroupConfigurationOutput added in v6.45.0

func (o LinkLinkConfigurationLogGroupConfigurationOutput) ToLinkLinkConfigurationLogGroupConfigurationOutput() LinkLinkConfigurationLogGroupConfigurationOutput

func (LinkLinkConfigurationLogGroupConfigurationOutput) ToLinkLinkConfigurationLogGroupConfigurationOutputWithContext added in v6.45.0

func (o LinkLinkConfigurationLogGroupConfigurationOutput) ToLinkLinkConfigurationLogGroupConfigurationOutputWithContext(ctx context.Context) LinkLinkConfigurationLogGroupConfigurationOutput

func (LinkLinkConfigurationLogGroupConfigurationOutput) ToLinkLinkConfigurationLogGroupConfigurationPtrOutput added in v6.45.0

func (o LinkLinkConfigurationLogGroupConfigurationOutput) ToLinkLinkConfigurationLogGroupConfigurationPtrOutput() LinkLinkConfigurationLogGroupConfigurationPtrOutput

func (LinkLinkConfigurationLogGroupConfigurationOutput) ToLinkLinkConfigurationLogGroupConfigurationPtrOutputWithContext added in v6.45.0

func (o LinkLinkConfigurationLogGroupConfigurationOutput) ToLinkLinkConfigurationLogGroupConfigurationPtrOutputWithContext(ctx context.Context) LinkLinkConfigurationLogGroupConfigurationPtrOutput

type LinkLinkConfigurationLogGroupConfigurationPtrInput added in v6.45.0

type LinkLinkConfigurationLogGroupConfigurationPtrInput interface {
	pulumi.Input

	ToLinkLinkConfigurationLogGroupConfigurationPtrOutput() LinkLinkConfigurationLogGroupConfigurationPtrOutput
	ToLinkLinkConfigurationLogGroupConfigurationPtrOutputWithContext(context.Context) LinkLinkConfigurationLogGroupConfigurationPtrOutput
}

LinkLinkConfigurationLogGroupConfigurationPtrInput is an input type that accepts LinkLinkConfigurationLogGroupConfigurationArgs, LinkLinkConfigurationLogGroupConfigurationPtr and LinkLinkConfigurationLogGroupConfigurationPtrOutput values. You can construct a concrete instance of `LinkLinkConfigurationLogGroupConfigurationPtrInput` via:

        LinkLinkConfigurationLogGroupConfigurationArgs{...}

or:

        nil

type LinkLinkConfigurationLogGroupConfigurationPtrOutput added in v6.45.0

type LinkLinkConfigurationLogGroupConfigurationPtrOutput struct{ *pulumi.OutputState }

func (LinkLinkConfigurationLogGroupConfigurationPtrOutput) Elem added in v6.45.0

func (LinkLinkConfigurationLogGroupConfigurationPtrOutput) ElementType added in v6.45.0

func (LinkLinkConfigurationLogGroupConfigurationPtrOutput) Filter added in v6.45.0

Filter string that specifies which log groups are to share their log events with the monitoring account. See [LogGroupConfiguration](https://docs.aws.amazon.com/OAM/latest/APIReference/API_LogGroupConfiguration.html) for details.

func (LinkLinkConfigurationLogGroupConfigurationPtrOutput) ToLinkLinkConfigurationLogGroupConfigurationPtrOutput added in v6.45.0

func (o LinkLinkConfigurationLogGroupConfigurationPtrOutput) ToLinkLinkConfigurationLogGroupConfigurationPtrOutput() LinkLinkConfigurationLogGroupConfigurationPtrOutput

func (LinkLinkConfigurationLogGroupConfigurationPtrOutput) ToLinkLinkConfigurationLogGroupConfigurationPtrOutputWithContext added in v6.45.0

func (o LinkLinkConfigurationLogGroupConfigurationPtrOutput) ToLinkLinkConfigurationLogGroupConfigurationPtrOutputWithContext(ctx context.Context) LinkLinkConfigurationLogGroupConfigurationPtrOutput

type LinkLinkConfigurationMetricConfiguration added in v6.45.0

type LinkLinkConfigurationMetricConfiguration struct {
	// Filter string that specifies  which metrics are to be shared with the monitoring account. See [MetricConfiguration](https://docs.aws.amazon.com/OAM/latest/APIReference/API_MetricConfiguration.html) for details.
	Filter string `pulumi:"filter"`
}

type LinkLinkConfigurationMetricConfigurationArgs added in v6.45.0

type LinkLinkConfigurationMetricConfigurationArgs struct {
	// Filter string that specifies  which metrics are to be shared with the monitoring account. See [MetricConfiguration](https://docs.aws.amazon.com/OAM/latest/APIReference/API_MetricConfiguration.html) for details.
	Filter pulumi.StringInput `pulumi:"filter"`
}

func (LinkLinkConfigurationMetricConfigurationArgs) ElementType added in v6.45.0

func (LinkLinkConfigurationMetricConfigurationArgs) ToLinkLinkConfigurationMetricConfigurationOutput added in v6.45.0

func (i LinkLinkConfigurationMetricConfigurationArgs) ToLinkLinkConfigurationMetricConfigurationOutput() LinkLinkConfigurationMetricConfigurationOutput

func (LinkLinkConfigurationMetricConfigurationArgs) ToLinkLinkConfigurationMetricConfigurationOutputWithContext added in v6.45.0

func (i LinkLinkConfigurationMetricConfigurationArgs) ToLinkLinkConfigurationMetricConfigurationOutputWithContext(ctx context.Context) LinkLinkConfigurationMetricConfigurationOutput

func (LinkLinkConfigurationMetricConfigurationArgs) ToLinkLinkConfigurationMetricConfigurationPtrOutput added in v6.45.0

func (i LinkLinkConfigurationMetricConfigurationArgs) ToLinkLinkConfigurationMetricConfigurationPtrOutput() LinkLinkConfigurationMetricConfigurationPtrOutput

func (LinkLinkConfigurationMetricConfigurationArgs) ToLinkLinkConfigurationMetricConfigurationPtrOutputWithContext added in v6.45.0

func (i LinkLinkConfigurationMetricConfigurationArgs) ToLinkLinkConfigurationMetricConfigurationPtrOutputWithContext(ctx context.Context) LinkLinkConfigurationMetricConfigurationPtrOutput

type LinkLinkConfigurationMetricConfigurationInput added in v6.45.0

type LinkLinkConfigurationMetricConfigurationInput interface {
	pulumi.Input

	ToLinkLinkConfigurationMetricConfigurationOutput() LinkLinkConfigurationMetricConfigurationOutput
	ToLinkLinkConfigurationMetricConfigurationOutputWithContext(context.Context) LinkLinkConfigurationMetricConfigurationOutput
}

LinkLinkConfigurationMetricConfigurationInput is an input type that accepts LinkLinkConfigurationMetricConfigurationArgs and LinkLinkConfigurationMetricConfigurationOutput values. You can construct a concrete instance of `LinkLinkConfigurationMetricConfigurationInput` via:

LinkLinkConfigurationMetricConfigurationArgs{...}

type LinkLinkConfigurationMetricConfigurationOutput added in v6.45.0

type LinkLinkConfigurationMetricConfigurationOutput struct{ *pulumi.OutputState }

func (LinkLinkConfigurationMetricConfigurationOutput) ElementType added in v6.45.0

func (LinkLinkConfigurationMetricConfigurationOutput) Filter added in v6.45.0

Filter string that specifies which metrics are to be shared with the monitoring account. See [MetricConfiguration](https://docs.aws.amazon.com/OAM/latest/APIReference/API_MetricConfiguration.html) for details.

func (LinkLinkConfigurationMetricConfigurationOutput) ToLinkLinkConfigurationMetricConfigurationOutput added in v6.45.0

func (o LinkLinkConfigurationMetricConfigurationOutput) ToLinkLinkConfigurationMetricConfigurationOutput() LinkLinkConfigurationMetricConfigurationOutput

func (LinkLinkConfigurationMetricConfigurationOutput) ToLinkLinkConfigurationMetricConfigurationOutputWithContext added in v6.45.0

func (o LinkLinkConfigurationMetricConfigurationOutput) ToLinkLinkConfigurationMetricConfigurationOutputWithContext(ctx context.Context) LinkLinkConfigurationMetricConfigurationOutput

func (LinkLinkConfigurationMetricConfigurationOutput) ToLinkLinkConfigurationMetricConfigurationPtrOutput added in v6.45.0

func (o LinkLinkConfigurationMetricConfigurationOutput) ToLinkLinkConfigurationMetricConfigurationPtrOutput() LinkLinkConfigurationMetricConfigurationPtrOutput

func (LinkLinkConfigurationMetricConfigurationOutput) ToLinkLinkConfigurationMetricConfigurationPtrOutputWithContext added in v6.45.0

func (o LinkLinkConfigurationMetricConfigurationOutput) ToLinkLinkConfigurationMetricConfigurationPtrOutputWithContext(ctx context.Context) LinkLinkConfigurationMetricConfigurationPtrOutput

type LinkLinkConfigurationMetricConfigurationPtrInput added in v6.45.0

type LinkLinkConfigurationMetricConfigurationPtrInput interface {
	pulumi.Input

	ToLinkLinkConfigurationMetricConfigurationPtrOutput() LinkLinkConfigurationMetricConfigurationPtrOutput
	ToLinkLinkConfigurationMetricConfigurationPtrOutputWithContext(context.Context) LinkLinkConfigurationMetricConfigurationPtrOutput
}

LinkLinkConfigurationMetricConfigurationPtrInput is an input type that accepts LinkLinkConfigurationMetricConfigurationArgs, LinkLinkConfigurationMetricConfigurationPtr and LinkLinkConfigurationMetricConfigurationPtrOutput values. You can construct a concrete instance of `LinkLinkConfigurationMetricConfigurationPtrInput` via:

        LinkLinkConfigurationMetricConfigurationArgs{...}

or:

        nil

type LinkLinkConfigurationMetricConfigurationPtrOutput added in v6.45.0

type LinkLinkConfigurationMetricConfigurationPtrOutput struct{ *pulumi.OutputState }

func (LinkLinkConfigurationMetricConfigurationPtrOutput) Elem added in v6.45.0

func (LinkLinkConfigurationMetricConfigurationPtrOutput) ElementType added in v6.45.0

func (LinkLinkConfigurationMetricConfigurationPtrOutput) Filter added in v6.45.0

Filter string that specifies which metrics are to be shared with the monitoring account. See [MetricConfiguration](https://docs.aws.amazon.com/OAM/latest/APIReference/API_MetricConfiguration.html) for details.

func (LinkLinkConfigurationMetricConfigurationPtrOutput) ToLinkLinkConfigurationMetricConfigurationPtrOutput added in v6.45.0

func (o LinkLinkConfigurationMetricConfigurationPtrOutput) ToLinkLinkConfigurationMetricConfigurationPtrOutput() LinkLinkConfigurationMetricConfigurationPtrOutput

func (LinkLinkConfigurationMetricConfigurationPtrOutput) ToLinkLinkConfigurationMetricConfigurationPtrOutputWithContext added in v6.45.0

func (o LinkLinkConfigurationMetricConfigurationPtrOutput) ToLinkLinkConfigurationMetricConfigurationPtrOutputWithContext(ctx context.Context) LinkLinkConfigurationMetricConfigurationPtrOutput

type LinkLinkConfigurationOutput added in v6.45.0

type LinkLinkConfigurationOutput struct{ *pulumi.OutputState }

func (LinkLinkConfigurationOutput) ElementType added in v6.45.0

func (LinkLinkConfigurationOutput) LogGroupConfiguration added in v6.45.0

Configuration for filtering which log groups are to send log events from the source account to the monitoring account. See `logGroupConfiguration` Block for details.

func (LinkLinkConfigurationOutput) MetricConfiguration added in v6.45.0

Configuration for filtering which metric namespaces are to be shared from the source account to the monitoring account. See `metricConfiguration` Block for details.

func (LinkLinkConfigurationOutput) ToLinkLinkConfigurationOutput added in v6.45.0

func (o LinkLinkConfigurationOutput) ToLinkLinkConfigurationOutput() LinkLinkConfigurationOutput

func (LinkLinkConfigurationOutput) ToLinkLinkConfigurationOutputWithContext added in v6.45.0

func (o LinkLinkConfigurationOutput) ToLinkLinkConfigurationOutputWithContext(ctx context.Context) LinkLinkConfigurationOutput

func (LinkLinkConfigurationOutput) ToLinkLinkConfigurationPtrOutput added in v6.45.0

func (o LinkLinkConfigurationOutput) ToLinkLinkConfigurationPtrOutput() LinkLinkConfigurationPtrOutput

func (LinkLinkConfigurationOutput) ToLinkLinkConfigurationPtrOutputWithContext added in v6.45.0

func (o LinkLinkConfigurationOutput) ToLinkLinkConfigurationPtrOutputWithContext(ctx context.Context) LinkLinkConfigurationPtrOutput

type LinkLinkConfigurationPtrInput added in v6.45.0

type LinkLinkConfigurationPtrInput interface {
	pulumi.Input

	ToLinkLinkConfigurationPtrOutput() LinkLinkConfigurationPtrOutput
	ToLinkLinkConfigurationPtrOutputWithContext(context.Context) LinkLinkConfigurationPtrOutput
}

LinkLinkConfigurationPtrInput is an input type that accepts LinkLinkConfigurationArgs, LinkLinkConfigurationPtr and LinkLinkConfigurationPtrOutput values. You can construct a concrete instance of `LinkLinkConfigurationPtrInput` via:

        LinkLinkConfigurationArgs{...}

or:

        nil

func LinkLinkConfigurationPtr added in v6.45.0

func LinkLinkConfigurationPtr(v *LinkLinkConfigurationArgs) LinkLinkConfigurationPtrInput

type LinkLinkConfigurationPtrOutput added in v6.45.0

type LinkLinkConfigurationPtrOutput struct{ *pulumi.OutputState }

func (LinkLinkConfigurationPtrOutput) Elem added in v6.45.0

func (LinkLinkConfigurationPtrOutput) ElementType added in v6.45.0

func (LinkLinkConfigurationPtrOutput) LogGroupConfiguration added in v6.45.0

Configuration for filtering which log groups are to send log events from the source account to the monitoring account. See `logGroupConfiguration` Block for details.

func (LinkLinkConfigurationPtrOutput) MetricConfiguration added in v6.45.0

Configuration for filtering which metric namespaces are to be shared from the source account to the monitoring account. See `metricConfiguration` Block for details.

func (LinkLinkConfigurationPtrOutput) ToLinkLinkConfigurationPtrOutput added in v6.45.0

func (o LinkLinkConfigurationPtrOutput) ToLinkLinkConfigurationPtrOutput() LinkLinkConfigurationPtrOutput

func (LinkLinkConfigurationPtrOutput) ToLinkLinkConfigurationPtrOutputWithContext added in v6.45.0

func (o LinkLinkConfigurationPtrOutput) ToLinkLinkConfigurationPtrOutputWithContext(ctx context.Context) LinkLinkConfigurationPtrOutput

type LinkMap

type LinkMap map[string]LinkInput

func (LinkMap) ElementType

func (LinkMap) ElementType() reflect.Type

func (LinkMap) ToLinkMapOutput

func (i LinkMap) ToLinkMapOutput() LinkMapOutput

func (LinkMap) ToLinkMapOutputWithContext

func (i LinkMap) ToLinkMapOutputWithContext(ctx context.Context) LinkMapOutput

type LinkMapInput

type LinkMapInput interface {
	pulumi.Input

	ToLinkMapOutput() LinkMapOutput
	ToLinkMapOutputWithContext(context.Context) LinkMapOutput
}

LinkMapInput is an input type that accepts LinkMap and LinkMapOutput values. You can construct a concrete instance of `LinkMapInput` via:

LinkMap{ "key": LinkArgs{...} }

type LinkMapOutput

type LinkMapOutput struct{ *pulumi.OutputState }

func (LinkMapOutput) ElementType

func (LinkMapOutput) ElementType() reflect.Type

func (LinkMapOutput) MapIndex

func (LinkMapOutput) ToLinkMapOutput

func (o LinkMapOutput) ToLinkMapOutput() LinkMapOutput

func (LinkMapOutput) ToLinkMapOutputWithContext

func (o LinkMapOutput) ToLinkMapOutputWithContext(ctx context.Context) LinkMapOutput

type LinkOutput

type LinkOutput struct{ *pulumi.OutputState }

func (LinkOutput) Arn

func (o LinkOutput) Arn() pulumi.StringOutput

ARN of the link.

func (LinkOutput) ElementType

func (LinkOutput) ElementType() reflect.Type

func (LinkOutput) Label

func (o LinkOutput) Label() pulumi.StringOutput

Label that is assigned to this link.

func (LinkOutput) LabelTemplate

func (o LinkOutput) LabelTemplate() pulumi.StringOutput

Human-readable name to use to identify this source account when you are viewing data from it in the monitoring account.

func (LinkOutput) LinkConfiguration added in v6.45.0

func (o LinkOutput) LinkConfiguration() LinkLinkConfigurationPtrOutput

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.

func (LinkOutput) LinkId

func (o LinkOutput) LinkId() pulumi.StringOutput

ID string that AWS generated as part of the link ARN.

func (LinkOutput) ResourceTypes

func (o LinkOutput) ResourceTypes() pulumi.StringArrayOutput

Types of data that the source account shares with the monitoring account.

func (LinkOutput) SinkArn

func (o LinkOutput) SinkArn() pulumi.StringOutput

ARN of the sink that is used for this link.

func (LinkOutput) SinkIdentifier

func (o LinkOutput) SinkIdentifier() pulumi.StringOutput

Identifier of the sink to use to create this link.

The following arguments are optional:

func (LinkOutput) Tags

A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

func (LinkOutput) TagsAll deprecated

func (o LinkOutput) TagsAll() pulumi.StringMapOutput

Deprecated: Please use `tags` instead.

func (LinkOutput) ToLinkOutput

func (o LinkOutput) ToLinkOutput() LinkOutput

func (LinkOutput) ToLinkOutputWithContext

func (o LinkOutput) ToLinkOutputWithContext(ctx context.Context) LinkOutput

type LinkState

type LinkState struct {
	// ARN of the link.
	Arn pulumi.StringPtrInput
	// Label that is assigned to this link.
	Label pulumi.StringPtrInput
	// Human-readable name to use to identify this source account when you are viewing data from it in the monitoring account.
	LabelTemplate pulumi.StringPtrInput
	// 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.
	LinkConfiguration LinkLinkConfigurationPtrInput
	// ID string that AWS generated as part of the link ARN.
	LinkId pulumi.StringPtrInput
	// Types of data that the source account shares with the monitoring account.
	ResourceTypes pulumi.StringArrayInput
	// ARN of the sink that is used for this link.
	SinkArn pulumi.StringPtrInput
	// Identifier of the sink to use to create this link.
	//
	// The following arguments are optional:
	SinkIdentifier pulumi.StringPtrInput
	// A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
	Tags pulumi.StringMapInput
	// Deprecated: Please use `tags` instead.
	TagsAll pulumi.StringMapInput
}

func (LinkState) ElementType

func (LinkState) ElementType() reflect.Type

type LookupLinkArgs

type LookupLinkArgs struct {
	// ARN of the link.
	LinkIdentifier string            `pulumi:"linkIdentifier"`
	Tags           map[string]string `pulumi:"tags"`
}

A collection of arguments for invoking getLink.

type LookupLinkOutputArgs

type LookupLinkOutputArgs struct {
	// ARN of the link.
	LinkIdentifier pulumi.StringInput    `pulumi:"linkIdentifier"`
	Tags           pulumi.StringMapInput `pulumi:"tags"`
}

A collection of arguments for invoking getLink.

func (LookupLinkOutputArgs) ElementType

func (LookupLinkOutputArgs) ElementType() reflect.Type

type LookupLinkResult

type LookupLinkResult struct {
	// ARN of the link.
	Arn string `pulumi:"arn"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Label that is assigned to this link.
	Label string `pulumi:"label"`
	// Human-readable name used to identify this source account when you are viewing data from it in the monitoring account.
	LabelTemplate string `pulumi:"labelTemplate"`
	// 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.
	LinkConfigurations []GetLinkLinkConfiguration `pulumi:"linkConfigurations"`
	// ID string that AWS generated as part of the link ARN.
	LinkId         string `pulumi:"linkId"`
	LinkIdentifier string `pulumi:"linkIdentifier"`
	// Types of data that the source account shares with the monitoring account.
	ResourceTypes []string `pulumi:"resourceTypes"`
	// ARN of the sink that is used for this link.
	SinkArn string            `pulumi:"sinkArn"`
	Tags    map[string]string `pulumi:"tags"`
}

A collection of values returned by getLink.

func LookupLink(ctx *pulumi.Context, args *LookupLinkArgs, opts ...pulumi.InvokeOption) (*LookupLinkResult, error)

Data source for managing an AWS CloudWatch Observability Access Manager Link.

## Example Usage

### Basic Usage

```go 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.LookupLink(ctx, &oam.LookupLinkArgs{
			LinkIdentifier: "arn:aws:oam:us-west-1:111111111111:link/abcd1234-a123-456a-a12b-a123b456c789",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupLinkResultOutput

type LookupLinkResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getLink.

func (LookupLinkResultOutput) Arn

ARN of the link.

func (LookupLinkResultOutput) ElementType

func (LookupLinkResultOutput) ElementType() reflect.Type

func (LookupLinkResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupLinkResultOutput) Label

Label that is assigned to this link.

func (LookupLinkResultOutput) LabelTemplate

func (o LookupLinkResultOutput) LabelTemplate() pulumi.StringOutput

Human-readable name used to identify this source account when you are viewing data from it in the monitoring account.

func (LookupLinkResultOutput) LinkConfigurations added in v6.45.0

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.

func (LookupLinkResultOutput) LinkId

ID string that AWS generated as part of the link ARN.

func (LookupLinkResultOutput) LinkIdentifier

func (o LookupLinkResultOutput) LinkIdentifier() pulumi.StringOutput

func (LookupLinkResultOutput) ResourceTypes

Types of data that the source account shares with the monitoring account.

func (LookupLinkResultOutput) SinkArn

ARN of the sink that is used for this link.

func (LookupLinkResultOutput) Tags

func (LookupLinkResultOutput) ToLookupLinkResultOutput

func (o LookupLinkResultOutput) ToLookupLinkResultOutput() LookupLinkResultOutput

func (LookupLinkResultOutput) ToLookupLinkResultOutputWithContext

func (o LookupLinkResultOutput) ToLookupLinkResultOutputWithContext(ctx context.Context) LookupLinkResultOutput

type LookupSinkArgs

type LookupSinkArgs struct {
	// ARN of the sink.
	SinkIdentifier string `pulumi:"sinkIdentifier"`
	// Tags assigned to the sink.
	Tags map[string]string `pulumi:"tags"`
}

A collection of arguments for invoking getSink.

type LookupSinkOutputArgs

type LookupSinkOutputArgs struct {
	// ARN of the sink.
	SinkIdentifier pulumi.StringInput `pulumi:"sinkIdentifier"`
	// Tags assigned to the sink.
	Tags pulumi.StringMapInput `pulumi:"tags"`
}

A collection of arguments for invoking getSink.

func (LookupSinkOutputArgs) ElementType

func (LookupSinkOutputArgs) ElementType() reflect.Type

type LookupSinkResult

type LookupSinkResult struct {
	// ARN of the sink.
	Arn string `pulumi:"arn"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Name of the sink.
	Name string `pulumi:"name"`
	// Random ID string that AWS generated as part of the sink ARN.
	SinkId         string `pulumi:"sinkId"`
	SinkIdentifier string `pulumi:"sinkIdentifier"`
	// Tags assigned to the sink.
	Tags map[string]string `pulumi:"tags"`
}

A collection of values returned by getSink.

func LookupSink

func LookupSink(ctx *pulumi.Context, args *LookupSinkArgs, opts ...pulumi.InvokeOption) (*LookupSinkResult, error)

Data source for managing an AWS CloudWatch Observability Access Manager Sink.

## Example Usage

### Basic Usage

```go 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
	})
}

```

type LookupSinkResultOutput

type LookupSinkResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSink.

func (LookupSinkResultOutput) Arn

ARN of the sink.

func (LookupSinkResultOutput) ElementType

func (LookupSinkResultOutput) ElementType() reflect.Type

func (LookupSinkResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupSinkResultOutput) Name

Name of the sink.

func (LookupSinkResultOutput) SinkId

Random ID string that AWS generated as part of the sink ARN.

func (LookupSinkResultOutput) SinkIdentifier

func (o LookupSinkResultOutput) SinkIdentifier() pulumi.StringOutput

func (LookupSinkResultOutput) Tags

Tags assigned to the sink.

func (LookupSinkResultOutput) ToLookupSinkResultOutput

func (o LookupSinkResultOutput) ToLookupSinkResultOutput() LookupSinkResultOutput

func (LookupSinkResultOutput) ToLookupSinkResultOutputWithContext

func (o LookupSinkResultOutput) ToLookupSinkResultOutputWithContext(ctx context.Context) LookupSinkResultOutput

type Sink

type Sink struct {
	pulumi.CustomResourceState

	// ARN of the Sink.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// Name for the sink.
	//
	// The following arguments are optional:
	Name pulumi.StringOutput `pulumi:"name"`
	// ID string that AWS generated as part of the sink ARN.
	SinkId pulumi.StringOutput `pulumi:"sinkId"`
	// A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// Deprecated: Please use `tags` instead.
	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
}

Resource for managing an AWS CloudWatch Observability Access Manager Sink.

## Example Usage

### Basic Usage

```go 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.NewSink(ctx, "example", &oam.SinkArgs{
			Name: pulumi.String("ExampleSink"),
			Tags: pulumi.StringMap{
				"Env": pulumi.String("prod"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Using `pulumi import`, import CloudWatch Observability Access Manager Sink using the `arn`. For example:

```sh $ pulumi import aws:oam/sink:Sink example arn:aws:oam:us-west-2:123456789012:sink/sink-id ```

func GetSink

func GetSink(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SinkState, opts ...pulumi.ResourceOption) (*Sink, error)

GetSink gets an existing Sink resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSink

func NewSink(ctx *pulumi.Context,
	name string, args *SinkArgs, opts ...pulumi.ResourceOption) (*Sink, error)

NewSink registers a new resource with the given unique name, arguments, and options.

func (*Sink) ElementType

func (*Sink) ElementType() reflect.Type

func (*Sink) ToSinkOutput

func (i *Sink) ToSinkOutput() SinkOutput

func (*Sink) ToSinkOutputWithContext

func (i *Sink) ToSinkOutputWithContext(ctx context.Context) SinkOutput

type SinkArgs

type SinkArgs struct {
	// Name for the sink.
	//
	// The following arguments are optional:
	Name pulumi.StringPtrInput
	// A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
	Tags pulumi.StringMapInput
}

The set of arguments for constructing a Sink resource.

func (SinkArgs) ElementType

func (SinkArgs) ElementType() reflect.Type

type SinkArray

type SinkArray []SinkInput

func (SinkArray) ElementType

func (SinkArray) ElementType() reflect.Type

func (SinkArray) ToSinkArrayOutput

func (i SinkArray) ToSinkArrayOutput() SinkArrayOutput

func (SinkArray) ToSinkArrayOutputWithContext

func (i SinkArray) ToSinkArrayOutputWithContext(ctx context.Context) SinkArrayOutput

type SinkArrayInput

type SinkArrayInput interface {
	pulumi.Input

	ToSinkArrayOutput() SinkArrayOutput
	ToSinkArrayOutputWithContext(context.Context) SinkArrayOutput
}

SinkArrayInput is an input type that accepts SinkArray and SinkArrayOutput values. You can construct a concrete instance of `SinkArrayInput` via:

SinkArray{ SinkArgs{...} }

type SinkArrayOutput

type SinkArrayOutput struct{ *pulumi.OutputState }

func (SinkArrayOutput) ElementType

func (SinkArrayOutput) ElementType() reflect.Type

func (SinkArrayOutput) Index

func (SinkArrayOutput) ToSinkArrayOutput

func (o SinkArrayOutput) ToSinkArrayOutput() SinkArrayOutput

func (SinkArrayOutput) ToSinkArrayOutputWithContext

func (o SinkArrayOutput) ToSinkArrayOutputWithContext(ctx context.Context) SinkArrayOutput

type SinkInput

type SinkInput interface {
	pulumi.Input

	ToSinkOutput() SinkOutput
	ToSinkOutputWithContext(ctx context.Context) SinkOutput
}

type SinkMap

type SinkMap map[string]SinkInput

func (SinkMap) ElementType

func (SinkMap) ElementType() reflect.Type

func (SinkMap) ToSinkMapOutput

func (i SinkMap) ToSinkMapOutput() SinkMapOutput

func (SinkMap) ToSinkMapOutputWithContext

func (i SinkMap) ToSinkMapOutputWithContext(ctx context.Context) SinkMapOutput

type SinkMapInput

type SinkMapInput interface {
	pulumi.Input

	ToSinkMapOutput() SinkMapOutput
	ToSinkMapOutputWithContext(context.Context) SinkMapOutput
}

SinkMapInput is an input type that accepts SinkMap and SinkMapOutput values. You can construct a concrete instance of `SinkMapInput` via:

SinkMap{ "key": SinkArgs{...} }

type SinkMapOutput

type SinkMapOutput struct{ *pulumi.OutputState }

func (SinkMapOutput) ElementType

func (SinkMapOutput) ElementType() reflect.Type

func (SinkMapOutput) MapIndex

func (SinkMapOutput) ToSinkMapOutput

func (o SinkMapOutput) ToSinkMapOutput() SinkMapOutput

func (SinkMapOutput) ToSinkMapOutputWithContext

func (o SinkMapOutput) ToSinkMapOutputWithContext(ctx context.Context) SinkMapOutput

type SinkOutput

type SinkOutput struct{ *pulumi.OutputState }

func (SinkOutput) Arn

func (o SinkOutput) Arn() pulumi.StringOutput

ARN of the Sink.

func (SinkOutput) ElementType

func (SinkOutput) ElementType() reflect.Type

func (SinkOutput) Name

func (o SinkOutput) Name() pulumi.StringOutput

Name for the sink.

The following arguments are optional:

func (SinkOutput) SinkId

func (o SinkOutput) SinkId() pulumi.StringOutput

ID string that AWS generated as part of the sink ARN.

func (SinkOutput) Tags

A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

func (SinkOutput) TagsAll deprecated

func (o SinkOutput) TagsAll() pulumi.StringMapOutput

Deprecated: Please use `tags` instead.

func (SinkOutput) ToSinkOutput

func (o SinkOutput) ToSinkOutput() SinkOutput

func (SinkOutput) ToSinkOutputWithContext

func (o SinkOutput) ToSinkOutputWithContext(ctx context.Context) SinkOutput

type SinkPolicy

type SinkPolicy struct {
	pulumi.CustomResourceState

	// ARN of the Sink.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// JSON policy to use. If you are updating an existing policy, the entire existing policy is replaced by what you specify here.
	Policy pulumi.StringOutput `pulumi:"policy"`
	// ID string that AWS generated as part of the sink ARN.
	SinkId pulumi.StringOutput `pulumi:"sinkId"`
	// ARN of the sink to attach this policy to.
	SinkIdentifier pulumi.StringOutput `pulumi:"sinkIdentifier"`
}

Resource for managing an AWS CloudWatch Observability Access Manager Sink Policy.

## Example Usage

### Basic Usage

```go package main

import (

"encoding/json"

"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 {
		example, err := oam.NewSink(ctx, "example", &oam.SinkArgs{
			Name: pulumi.String("ExampleSink"),
		})
		if err != nil {
			return err
		}
		tmpJSON0, err := json.Marshal(map[string]interface{}{
			"Version": "2012-10-17",
			"Statement": []map[string]interface{}{
				map[string]interface{}{
					"Action": []string{
						"oam:CreateLink",
						"oam:UpdateLink",
					},
					"Effect":   "Allow",
					"Resource": "*",
					"Principal": map[string]interface{}{
						"AWS": []string{
							"1111111111111",
							"222222222222",
						},
					},
					"Condition": map[string]interface{}{
						"ForAllValues:StringEquals": map[string]interface{}{
							"oam:ResourceTypes": []string{
								"AWS::CloudWatch::Metric",
								"AWS::Logs::LogGroup",
							},
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		json0 := string(tmpJSON0)
		_, err = oam.NewSinkPolicy(ctx, "example", &oam.SinkPolicyArgs{
			SinkIdentifier: example.ID(),
			Policy:         pulumi.String(json0),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Using `pulumi import`, import CloudWatch Observability Access Manager Sink Policy using the `sink_identifier`. For example:

```sh $ pulumi import aws:oam/sinkPolicy:SinkPolicy example arn:aws:oam:us-west-2:123456789012:sink/sink-id ```

func GetSinkPolicy

func GetSinkPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SinkPolicyState, opts ...pulumi.ResourceOption) (*SinkPolicy, error)

GetSinkPolicy gets an existing SinkPolicy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSinkPolicy

func NewSinkPolicy(ctx *pulumi.Context,
	name string, args *SinkPolicyArgs, opts ...pulumi.ResourceOption) (*SinkPolicy, error)

NewSinkPolicy registers a new resource with the given unique name, arguments, and options.

func (*SinkPolicy) ElementType

func (*SinkPolicy) ElementType() reflect.Type

func (*SinkPolicy) ToSinkPolicyOutput

func (i *SinkPolicy) ToSinkPolicyOutput() SinkPolicyOutput

func (*SinkPolicy) ToSinkPolicyOutputWithContext

func (i *SinkPolicy) ToSinkPolicyOutputWithContext(ctx context.Context) SinkPolicyOutput

type SinkPolicyArgs

type SinkPolicyArgs struct {
	// JSON policy to use. If you are updating an existing policy, the entire existing policy is replaced by what you specify here.
	Policy pulumi.StringInput
	// ARN of the sink to attach this policy to.
	SinkIdentifier pulumi.StringInput
}

The set of arguments for constructing a SinkPolicy resource.

func (SinkPolicyArgs) ElementType

func (SinkPolicyArgs) ElementType() reflect.Type

type SinkPolicyArray

type SinkPolicyArray []SinkPolicyInput

func (SinkPolicyArray) ElementType

func (SinkPolicyArray) ElementType() reflect.Type

func (SinkPolicyArray) ToSinkPolicyArrayOutput

func (i SinkPolicyArray) ToSinkPolicyArrayOutput() SinkPolicyArrayOutput

func (SinkPolicyArray) ToSinkPolicyArrayOutputWithContext

func (i SinkPolicyArray) ToSinkPolicyArrayOutputWithContext(ctx context.Context) SinkPolicyArrayOutput

type SinkPolicyArrayInput

type SinkPolicyArrayInput interface {
	pulumi.Input

	ToSinkPolicyArrayOutput() SinkPolicyArrayOutput
	ToSinkPolicyArrayOutputWithContext(context.Context) SinkPolicyArrayOutput
}

SinkPolicyArrayInput is an input type that accepts SinkPolicyArray and SinkPolicyArrayOutput values. You can construct a concrete instance of `SinkPolicyArrayInput` via:

SinkPolicyArray{ SinkPolicyArgs{...} }

type SinkPolicyArrayOutput

type SinkPolicyArrayOutput struct{ *pulumi.OutputState }

func (SinkPolicyArrayOutput) ElementType

func (SinkPolicyArrayOutput) ElementType() reflect.Type

func (SinkPolicyArrayOutput) Index

func (SinkPolicyArrayOutput) ToSinkPolicyArrayOutput

func (o SinkPolicyArrayOutput) ToSinkPolicyArrayOutput() SinkPolicyArrayOutput

func (SinkPolicyArrayOutput) ToSinkPolicyArrayOutputWithContext

func (o SinkPolicyArrayOutput) ToSinkPolicyArrayOutputWithContext(ctx context.Context) SinkPolicyArrayOutput

type SinkPolicyInput

type SinkPolicyInput interface {
	pulumi.Input

	ToSinkPolicyOutput() SinkPolicyOutput
	ToSinkPolicyOutputWithContext(ctx context.Context) SinkPolicyOutput
}

type SinkPolicyMap

type SinkPolicyMap map[string]SinkPolicyInput

func (SinkPolicyMap) ElementType

func (SinkPolicyMap) ElementType() reflect.Type

func (SinkPolicyMap) ToSinkPolicyMapOutput

func (i SinkPolicyMap) ToSinkPolicyMapOutput() SinkPolicyMapOutput

func (SinkPolicyMap) ToSinkPolicyMapOutputWithContext

func (i SinkPolicyMap) ToSinkPolicyMapOutputWithContext(ctx context.Context) SinkPolicyMapOutput

type SinkPolicyMapInput

type SinkPolicyMapInput interface {
	pulumi.Input

	ToSinkPolicyMapOutput() SinkPolicyMapOutput
	ToSinkPolicyMapOutputWithContext(context.Context) SinkPolicyMapOutput
}

SinkPolicyMapInput is an input type that accepts SinkPolicyMap and SinkPolicyMapOutput values. You can construct a concrete instance of `SinkPolicyMapInput` via:

SinkPolicyMap{ "key": SinkPolicyArgs{...} }

type SinkPolicyMapOutput

type SinkPolicyMapOutput struct{ *pulumi.OutputState }

func (SinkPolicyMapOutput) ElementType

func (SinkPolicyMapOutput) ElementType() reflect.Type

func (SinkPolicyMapOutput) MapIndex

func (SinkPolicyMapOutput) ToSinkPolicyMapOutput

func (o SinkPolicyMapOutput) ToSinkPolicyMapOutput() SinkPolicyMapOutput

func (SinkPolicyMapOutput) ToSinkPolicyMapOutputWithContext

func (o SinkPolicyMapOutput) ToSinkPolicyMapOutputWithContext(ctx context.Context) SinkPolicyMapOutput

type SinkPolicyOutput

type SinkPolicyOutput struct{ *pulumi.OutputState }

func (SinkPolicyOutput) Arn

ARN of the Sink.

func (SinkPolicyOutput) ElementType

func (SinkPolicyOutput) ElementType() reflect.Type

func (SinkPolicyOutput) Policy

JSON policy to use. If you are updating an existing policy, the entire existing policy is replaced by what you specify here.

func (SinkPolicyOutput) SinkId

ID string that AWS generated as part of the sink ARN.

func (SinkPolicyOutput) SinkIdentifier

func (o SinkPolicyOutput) SinkIdentifier() pulumi.StringOutput

ARN of the sink to attach this policy to.

func (SinkPolicyOutput) ToSinkPolicyOutput

func (o SinkPolicyOutput) ToSinkPolicyOutput() SinkPolicyOutput

func (SinkPolicyOutput) ToSinkPolicyOutputWithContext

func (o SinkPolicyOutput) ToSinkPolicyOutputWithContext(ctx context.Context) SinkPolicyOutput

type SinkPolicyState

type SinkPolicyState struct {
	// ARN of the Sink.
	Arn pulumi.StringPtrInput
	// JSON policy to use. If you are updating an existing policy, the entire existing policy is replaced by what you specify here.
	Policy pulumi.StringPtrInput
	// ID string that AWS generated as part of the sink ARN.
	SinkId pulumi.StringPtrInput
	// ARN of the sink to attach this policy to.
	SinkIdentifier pulumi.StringPtrInput
}

func (SinkPolicyState) ElementType

func (SinkPolicyState) ElementType() reflect.Type

type SinkState

type SinkState struct {
	// ARN of the Sink.
	Arn pulumi.StringPtrInput
	// Name for the sink.
	//
	// The following arguments are optional:
	Name pulumi.StringPtrInput
	// ID string that AWS generated as part of the sink ARN.
	SinkId pulumi.StringPtrInput
	// A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
	Tags pulumi.StringMapInput
	// Deprecated: Please use `tags` instead.
	TagsAll pulumi.StringMapInput
}

func (SinkState) ElementType

func (SinkState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL