accessanalyzer

package
v6.0.0-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 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 Analyzer

type Analyzer struct {
	pulumi.CustomResourceState

	// Name of the Analyzer.
	//
	// The following arguments are optional:
	AnalyzerName pulumi.StringOutput `pulumi:"analyzerName"`
	// ARN of the Analyzer.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// Key-value map of resource tags. 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"`
	// Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
	// Type of Analyzer. Valid values are `ACCOUNT` or `ORGANIZATION`. Defaults to `ACCOUNT`.
	Type pulumi.StringPtrOutput `pulumi:"type"`
}

Manages an Access Analyzer Analyzer. More information can be found in the [Access Analyzer User Guide](https://docs.aws.amazon.com/IAM/latest/UserGuide/what-is-access-analyzer.html).

## Example Usage ### Account Analyzer

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/accessanalyzer"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := accessanalyzer.NewAnalyzer(ctx, "example", &accessanalyzer.AnalyzerArgs{
			AnalyzerName: pulumi.String("example"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Organization Analyzer

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/accessanalyzer"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/organizations"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleOrganization, err := organizations.NewOrganization(ctx, "exampleOrganization", &organizations.OrganizationArgs{
			AwsServiceAccessPrincipals: pulumi.StringArray{
				pulumi.String("access-analyzer.amazonaws.com"),
			},
		})
		if err != nil {
			return err
		}
		_, err = accessanalyzer.NewAnalyzer(ctx, "exampleAnalyzer", &accessanalyzer.AnalyzerArgs{
			AnalyzerName: pulumi.String("example"),
			Type:         pulumi.String("ORGANIZATION"),
		}, pulumi.DependsOn([]pulumi.Resource{
			exampleOrganization,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

terraform import {

to = aws_accessanalyzer_analyzer.example

id = "example" } Using `pulumi import`, import Access Analyzer Analyzers using the `analyzer_name`. For exampleconsole % pulumi import aws_accessanalyzer_analyzer.example example

func GetAnalyzer

func GetAnalyzer(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AnalyzerState, opts ...pulumi.ResourceOption) (*Analyzer, error)

GetAnalyzer gets an existing Analyzer 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 NewAnalyzer

func NewAnalyzer(ctx *pulumi.Context,
	name string, args *AnalyzerArgs, opts ...pulumi.ResourceOption) (*Analyzer, error)

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

func (*Analyzer) ElementType

func (*Analyzer) ElementType() reflect.Type

func (*Analyzer) ToAnalyzerOutput

func (i *Analyzer) ToAnalyzerOutput() AnalyzerOutput

func (*Analyzer) ToAnalyzerOutputWithContext

func (i *Analyzer) ToAnalyzerOutputWithContext(ctx context.Context) AnalyzerOutput

type AnalyzerArgs

type AnalyzerArgs struct {
	// Name of the Analyzer.
	//
	// The following arguments are optional:
	AnalyzerName pulumi.StringInput
	// Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
	Tags pulumi.StringMapInput
	// Type of Analyzer. Valid values are `ACCOUNT` or `ORGANIZATION`. Defaults to `ACCOUNT`.
	Type pulumi.StringPtrInput
}

The set of arguments for constructing a Analyzer resource.

func (AnalyzerArgs) ElementType

func (AnalyzerArgs) ElementType() reflect.Type

type AnalyzerArray

type AnalyzerArray []AnalyzerInput

func (AnalyzerArray) ElementType

func (AnalyzerArray) ElementType() reflect.Type

func (AnalyzerArray) ToAnalyzerArrayOutput

func (i AnalyzerArray) ToAnalyzerArrayOutput() AnalyzerArrayOutput

func (AnalyzerArray) ToAnalyzerArrayOutputWithContext

func (i AnalyzerArray) ToAnalyzerArrayOutputWithContext(ctx context.Context) AnalyzerArrayOutput

type AnalyzerArrayInput

type AnalyzerArrayInput interface {
	pulumi.Input

	ToAnalyzerArrayOutput() AnalyzerArrayOutput
	ToAnalyzerArrayOutputWithContext(context.Context) AnalyzerArrayOutput
}

AnalyzerArrayInput is an input type that accepts AnalyzerArray and AnalyzerArrayOutput values. You can construct a concrete instance of `AnalyzerArrayInput` via:

AnalyzerArray{ AnalyzerArgs{...} }

type AnalyzerArrayOutput

type AnalyzerArrayOutput struct{ *pulumi.OutputState }

func (AnalyzerArrayOutput) ElementType

func (AnalyzerArrayOutput) ElementType() reflect.Type

func (AnalyzerArrayOutput) Index

func (AnalyzerArrayOutput) ToAnalyzerArrayOutput

func (o AnalyzerArrayOutput) ToAnalyzerArrayOutput() AnalyzerArrayOutput

func (AnalyzerArrayOutput) ToAnalyzerArrayOutputWithContext

func (o AnalyzerArrayOutput) ToAnalyzerArrayOutputWithContext(ctx context.Context) AnalyzerArrayOutput

type AnalyzerInput

type AnalyzerInput interface {
	pulumi.Input

	ToAnalyzerOutput() AnalyzerOutput
	ToAnalyzerOutputWithContext(ctx context.Context) AnalyzerOutput
}

type AnalyzerMap

type AnalyzerMap map[string]AnalyzerInput

func (AnalyzerMap) ElementType

func (AnalyzerMap) ElementType() reflect.Type

func (AnalyzerMap) ToAnalyzerMapOutput

func (i AnalyzerMap) ToAnalyzerMapOutput() AnalyzerMapOutput

func (AnalyzerMap) ToAnalyzerMapOutputWithContext

func (i AnalyzerMap) ToAnalyzerMapOutputWithContext(ctx context.Context) AnalyzerMapOutput

type AnalyzerMapInput

type AnalyzerMapInput interface {
	pulumi.Input

	ToAnalyzerMapOutput() AnalyzerMapOutput
	ToAnalyzerMapOutputWithContext(context.Context) AnalyzerMapOutput
}

AnalyzerMapInput is an input type that accepts AnalyzerMap and AnalyzerMapOutput values. You can construct a concrete instance of `AnalyzerMapInput` via:

AnalyzerMap{ "key": AnalyzerArgs{...} }

type AnalyzerMapOutput

type AnalyzerMapOutput struct{ *pulumi.OutputState }

func (AnalyzerMapOutput) ElementType

func (AnalyzerMapOutput) ElementType() reflect.Type

func (AnalyzerMapOutput) MapIndex

func (AnalyzerMapOutput) ToAnalyzerMapOutput

func (o AnalyzerMapOutput) ToAnalyzerMapOutput() AnalyzerMapOutput

func (AnalyzerMapOutput) ToAnalyzerMapOutputWithContext

func (o AnalyzerMapOutput) ToAnalyzerMapOutputWithContext(ctx context.Context) AnalyzerMapOutput

type AnalyzerOutput

type AnalyzerOutput struct{ *pulumi.OutputState }

func (AnalyzerOutput) AnalyzerName

func (o AnalyzerOutput) AnalyzerName() pulumi.StringOutput

Name of the Analyzer.

The following arguments are optional:

func (AnalyzerOutput) Arn

ARN of the Analyzer.

func (AnalyzerOutput) ElementType

func (AnalyzerOutput) ElementType() reflect.Type

func (AnalyzerOutput) Tags

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

func (AnalyzerOutput) TagsAll

Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.

func (AnalyzerOutput) ToAnalyzerOutput

func (o AnalyzerOutput) ToAnalyzerOutput() AnalyzerOutput

func (AnalyzerOutput) ToAnalyzerOutputWithContext

func (o AnalyzerOutput) ToAnalyzerOutputWithContext(ctx context.Context) AnalyzerOutput

func (AnalyzerOutput) Type

Type of Analyzer. Valid values are `ACCOUNT` or `ORGANIZATION`. Defaults to `ACCOUNT`.

type AnalyzerState

type AnalyzerState struct {
	// Name of the Analyzer.
	//
	// The following arguments are optional:
	AnalyzerName pulumi.StringPtrInput
	// ARN of the Analyzer.
	Arn pulumi.StringPtrInput
	// Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
	Tags pulumi.StringMapInput
	// Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
	TagsAll pulumi.StringMapInput
	// Type of Analyzer. Valid values are `ACCOUNT` or `ORGANIZATION`. Defaults to `ACCOUNT`.
	Type pulumi.StringPtrInput
}

func (AnalyzerState) ElementType

func (AnalyzerState) ElementType() reflect.Type

type ArchiveRule

type ArchiveRule struct {
	pulumi.CustomResourceState

	// Analyzer name.
	AnalyzerName pulumi.StringOutput `pulumi:"analyzerName"`
	// Filter criteria for the archive rule. See Filter for more details.
	Filters ArchiveRuleFilterArrayOutput `pulumi:"filters"`
	// Rule name.
	RuleName pulumi.StringOutput `pulumi:"ruleName"`
}

Resource for managing an AWS AccessAnalyzer Archive Rule.

## Example Usage ### Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/accessanalyzer"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := accessanalyzer.NewArchiveRule(ctx, "example", &accessanalyzer.ArchiveRuleArgs{
			AnalyzerName: pulumi.String("example-analyzer"),
			Filters: accessanalyzer.ArchiveRuleFilterArray{
				&accessanalyzer.ArchiveRuleFilterArgs{
					Criteria: pulumi.String("condition.aws:UserId"),
					Eqs: pulumi.StringArray{
						pulumi.String("userid"),
					},
				},
				&accessanalyzer.ArchiveRuleFilterArgs{
					Criteria: pulumi.String("error"),
					Exists:   pulumi.String("true"),
				},
				&accessanalyzer.ArchiveRuleFilterArgs{
					Criteria: pulumi.String("isPublic"),
					Eqs: pulumi.StringArray{
						pulumi.String("false"),
					},
				},
			},
			RuleName: pulumi.String("example-rule"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

terraform import {

to = aws_accessanalyzer_archive_rule.example

id = "example-analyzer/example-rule" } Using `pulumi import`, import AccessAnalyzer ArchiveRule using the `analyzer_name/rule_name`. For exampleconsole % pulumi import aws_accessanalyzer_archive_rule.example example-analyzer/example-rule

func GetArchiveRule

func GetArchiveRule(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ArchiveRuleState, opts ...pulumi.ResourceOption) (*ArchiveRule, error)

GetArchiveRule gets an existing ArchiveRule 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 NewArchiveRule

func NewArchiveRule(ctx *pulumi.Context,
	name string, args *ArchiveRuleArgs, opts ...pulumi.ResourceOption) (*ArchiveRule, error)

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

func (*ArchiveRule) ElementType

func (*ArchiveRule) ElementType() reflect.Type

func (*ArchiveRule) ToArchiveRuleOutput

func (i *ArchiveRule) ToArchiveRuleOutput() ArchiveRuleOutput

func (*ArchiveRule) ToArchiveRuleOutputWithContext

func (i *ArchiveRule) ToArchiveRuleOutputWithContext(ctx context.Context) ArchiveRuleOutput

type ArchiveRuleArgs

type ArchiveRuleArgs struct {
	// Analyzer name.
	AnalyzerName pulumi.StringInput
	// Filter criteria for the archive rule. See Filter for more details.
	Filters ArchiveRuleFilterArrayInput
	// Rule name.
	RuleName pulumi.StringInput
}

The set of arguments for constructing a ArchiveRule resource.

func (ArchiveRuleArgs) ElementType

func (ArchiveRuleArgs) ElementType() reflect.Type

type ArchiveRuleArray

type ArchiveRuleArray []ArchiveRuleInput

func (ArchiveRuleArray) ElementType

func (ArchiveRuleArray) ElementType() reflect.Type

func (ArchiveRuleArray) ToArchiveRuleArrayOutput

func (i ArchiveRuleArray) ToArchiveRuleArrayOutput() ArchiveRuleArrayOutput

func (ArchiveRuleArray) ToArchiveRuleArrayOutputWithContext

func (i ArchiveRuleArray) ToArchiveRuleArrayOutputWithContext(ctx context.Context) ArchiveRuleArrayOutput

type ArchiveRuleArrayInput

type ArchiveRuleArrayInput interface {
	pulumi.Input

	ToArchiveRuleArrayOutput() ArchiveRuleArrayOutput
	ToArchiveRuleArrayOutputWithContext(context.Context) ArchiveRuleArrayOutput
}

ArchiveRuleArrayInput is an input type that accepts ArchiveRuleArray and ArchiveRuleArrayOutput values. You can construct a concrete instance of `ArchiveRuleArrayInput` via:

ArchiveRuleArray{ ArchiveRuleArgs{...} }

type ArchiveRuleArrayOutput

type ArchiveRuleArrayOutput struct{ *pulumi.OutputState }

func (ArchiveRuleArrayOutput) ElementType

func (ArchiveRuleArrayOutput) ElementType() reflect.Type

func (ArchiveRuleArrayOutput) Index

func (ArchiveRuleArrayOutput) ToArchiveRuleArrayOutput

func (o ArchiveRuleArrayOutput) ToArchiveRuleArrayOutput() ArchiveRuleArrayOutput

func (ArchiveRuleArrayOutput) ToArchiveRuleArrayOutputWithContext

func (o ArchiveRuleArrayOutput) ToArchiveRuleArrayOutputWithContext(ctx context.Context) ArchiveRuleArrayOutput

type ArchiveRuleFilter

type ArchiveRuleFilter struct {
	// Contains comparator.
	Contains []string `pulumi:"contains"`
	// Filter criteria.
	Criteria string `pulumi:"criteria"`
	// Equals comparator.
	Eqs []string `pulumi:"eqs"`
	// Boolean comparator.
	Exists *string `pulumi:"exists"`
	// Not Equals comparator.
	Neqs []string `pulumi:"neqs"`
}

type ArchiveRuleFilterArgs

type ArchiveRuleFilterArgs struct {
	// Contains comparator.
	Contains pulumi.StringArrayInput `pulumi:"contains"`
	// Filter criteria.
	Criteria pulumi.StringInput `pulumi:"criteria"`
	// Equals comparator.
	Eqs pulumi.StringArrayInput `pulumi:"eqs"`
	// Boolean comparator.
	Exists pulumi.StringPtrInput `pulumi:"exists"`
	// Not Equals comparator.
	Neqs pulumi.StringArrayInput `pulumi:"neqs"`
}

func (ArchiveRuleFilterArgs) ElementType

func (ArchiveRuleFilterArgs) ElementType() reflect.Type

func (ArchiveRuleFilterArgs) ToArchiveRuleFilterOutput

func (i ArchiveRuleFilterArgs) ToArchiveRuleFilterOutput() ArchiveRuleFilterOutput

func (ArchiveRuleFilterArgs) ToArchiveRuleFilterOutputWithContext

func (i ArchiveRuleFilterArgs) ToArchiveRuleFilterOutputWithContext(ctx context.Context) ArchiveRuleFilterOutput

type ArchiveRuleFilterArray

type ArchiveRuleFilterArray []ArchiveRuleFilterInput

func (ArchiveRuleFilterArray) ElementType

func (ArchiveRuleFilterArray) ElementType() reflect.Type

func (ArchiveRuleFilterArray) ToArchiveRuleFilterArrayOutput

func (i ArchiveRuleFilterArray) ToArchiveRuleFilterArrayOutput() ArchiveRuleFilterArrayOutput

func (ArchiveRuleFilterArray) ToArchiveRuleFilterArrayOutputWithContext

func (i ArchiveRuleFilterArray) ToArchiveRuleFilterArrayOutputWithContext(ctx context.Context) ArchiveRuleFilterArrayOutput

type ArchiveRuleFilterArrayInput

type ArchiveRuleFilterArrayInput interface {
	pulumi.Input

	ToArchiveRuleFilterArrayOutput() ArchiveRuleFilterArrayOutput
	ToArchiveRuleFilterArrayOutputWithContext(context.Context) ArchiveRuleFilterArrayOutput
}

ArchiveRuleFilterArrayInput is an input type that accepts ArchiveRuleFilterArray and ArchiveRuleFilterArrayOutput values. You can construct a concrete instance of `ArchiveRuleFilterArrayInput` via:

ArchiveRuleFilterArray{ ArchiveRuleFilterArgs{...} }

type ArchiveRuleFilterArrayOutput

type ArchiveRuleFilterArrayOutput struct{ *pulumi.OutputState }

func (ArchiveRuleFilterArrayOutput) ElementType

func (ArchiveRuleFilterArrayOutput) Index

func (ArchiveRuleFilterArrayOutput) ToArchiveRuleFilterArrayOutput

func (o ArchiveRuleFilterArrayOutput) ToArchiveRuleFilterArrayOutput() ArchiveRuleFilterArrayOutput

func (ArchiveRuleFilterArrayOutput) ToArchiveRuleFilterArrayOutputWithContext

func (o ArchiveRuleFilterArrayOutput) ToArchiveRuleFilterArrayOutputWithContext(ctx context.Context) ArchiveRuleFilterArrayOutput

type ArchiveRuleFilterInput

type ArchiveRuleFilterInput interface {
	pulumi.Input

	ToArchiveRuleFilterOutput() ArchiveRuleFilterOutput
	ToArchiveRuleFilterOutputWithContext(context.Context) ArchiveRuleFilterOutput
}

ArchiveRuleFilterInput is an input type that accepts ArchiveRuleFilterArgs and ArchiveRuleFilterOutput values. You can construct a concrete instance of `ArchiveRuleFilterInput` via:

ArchiveRuleFilterArgs{...}

type ArchiveRuleFilterOutput

type ArchiveRuleFilterOutput struct{ *pulumi.OutputState }

func (ArchiveRuleFilterOutput) Contains

Contains comparator.

func (ArchiveRuleFilterOutput) Criteria

Filter criteria.

func (ArchiveRuleFilterOutput) ElementType

func (ArchiveRuleFilterOutput) ElementType() reflect.Type

func (ArchiveRuleFilterOutput) Eqs

Equals comparator.

func (ArchiveRuleFilterOutput) Exists

Boolean comparator.

func (ArchiveRuleFilterOutput) Neqs

Not Equals comparator.

func (ArchiveRuleFilterOutput) ToArchiveRuleFilterOutput

func (o ArchiveRuleFilterOutput) ToArchiveRuleFilterOutput() ArchiveRuleFilterOutput

func (ArchiveRuleFilterOutput) ToArchiveRuleFilterOutputWithContext

func (o ArchiveRuleFilterOutput) ToArchiveRuleFilterOutputWithContext(ctx context.Context) ArchiveRuleFilterOutput

type ArchiveRuleInput

type ArchiveRuleInput interface {
	pulumi.Input

	ToArchiveRuleOutput() ArchiveRuleOutput
	ToArchiveRuleOutputWithContext(ctx context.Context) ArchiveRuleOutput
}

type ArchiveRuleMap

type ArchiveRuleMap map[string]ArchiveRuleInput

func (ArchiveRuleMap) ElementType

func (ArchiveRuleMap) ElementType() reflect.Type

func (ArchiveRuleMap) ToArchiveRuleMapOutput

func (i ArchiveRuleMap) ToArchiveRuleMapOutput() ArchiveRuleMapOutput

func (ArchiveRuleMap) ToArchiveRuleMapOutputWithContext

func (i ArchiveRuleMap) ToArchiveRuleMapOutputWithContext(ctx context.Context) ArchiveRuleMapOutput

type ArchiveRuleMapInput

type ArchiveRuleMapInput interface {
	pulumi.Input

	ToArchiveRuleMapOutput() ArchiveRuleMapOutput
	ToArchiveRuleMapOutputWithContext(context.Context) ArchiveRuleMapOutput
}

ArchiveRuleMapInput is an input type that accepts ArchiveRuleMap and ArchiveRuleMapOutput values. You can construct a concrete instance of `ArchiveRuleMapInput` via:

ArchiveRuleMap{ "key": ArchiveRuleArgs{...} }

type ArchiveRuleMapOutput

type ArchiveRuleMapOutput struct{ *pulumi.OutputState }

func (ArchiveRuleMapOutput) ElementType

func (ArchiveRuleMapOutput) ElementType() reflect.Type

func (ArchiveRuleMapOutput) MapIndex

func (ArchiveRuleMapOutput) ToArchiveRuleMapOutput

func (o ArchiveRuleMapOutput) ToArchiveRuleMapOutput() ArchiveRuleMapOutput

func (ArchiveRuleMapOutput) ToArchiveRuleMapOutputWithContext

func (o ArchiveRuleMapOutput) ToArchiveRuleMapOutputWithContext(ctx context.Context) ArchiveRuleMapOutput

type ArchiveRuleOutput

type ArchiveRuleOutput struct{ *pulumi.OutputState }

func (ArchiveRuleOutput) AnalyzerName

func (o ArchiveRuleOutput) AnalyzerName() pulumi.StringOutput

Analyzer name.

func (ArchiveRuleOutput) ElementType

func (ArchiveRuleOutput) ElementType() reflect.Type

func (ArchiveRuleOutput) Filters

Filter criteria for the archive rule. See Filter for more details.

func (ArchiveRuleOutput) RuleName

func (o ArchiveRuleOutput) RuleName() pulumi.StringOutput

Rule name.

func (ArchiveRuleOutput) ToArchiveRuleOutput

func (o ArchiveRuleOutput) ToArchiveRuleOutput() ArchiveRuleOutput

func (ArchiveRuleOutput) ToArchiveRuleOutputWithContext

func (o ArchiveRuleOutput) ToArchiveRuleOutputWithContext(ctx context.Context) ArchiveRuleOutput

type ArchiveRuleState

type ArchiveRuleState struct {
	// Analyzer name.
	AnalyzerName pulumi.StringPtrInput
	// Filter criteria for the archive rule. See Filter for more details.
	Filters ArchiveRuleFilterArrayInput
	// Rule name.
	RuleName pulumi.StringPtrInput
}

func (ArchiveRuleState) ElementType

func (ArchiveRuleState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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