oam

package
v6.22.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 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 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"`
	// 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(aws_oam_sink.Test.Id),
			Tags: pulumi.StringMap{
				"Env": pulumi.String("prod"),
			},
		})
		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
	// 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 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) 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
	// 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"`
	// 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) 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{
			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 {
		exampleSink, err := oam.NewSink(ctx, "exampleSink", nil)
		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, "exampleSinkPolicy", &oam.SinkPolicyArgs{
			SinkIdentifier: exampleSink.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