accessanalyzer

package
v6.34.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 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 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"`
	// A block that specifies the configuration of the analyzer. Documented below
	Configuration AnalyzerConfigurationPtrOutput `pulumi:"configuration"`
	// 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.
	//
	// Deprecated: Please use `tags` instead.
	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
	// Type of Analyzer. Valid values are `ACCOUNT`, `ORGANIZATION`, ` ACCOUNT_UNUSED_ACCESS  `, `ORGANIZATION_UNUSED_ACCESS`. 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 {
		example, err := organizations.NewOrganization(ctx, "example", &organizations.OrganizationArgs{
			AwsServiceAccessPrincipals: pulumi.StringArray{
				pulumi.String("access-analyzer.amazonaws.com"),
			},
		})
		if err != nil {
			return err
		}
		_, err = accessanalyzer.NewAnalyzer(ctx, "example", &accessanalyzer.AnalyzerArgs{
			AnalyzerName: pulumi.String("example"),
			Type:         pulumi.String("ORGANIZATION"),
		}, pulumi.DependsOn([]pulumi.Resource{
			example,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Using `pulumi import`, import Access Analyzer Analyzers using the `analyzer_name`. For example:

```sh $ pulumi import aws:accessanalyzer/analyzer: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
	// A block that specifies the configuration of the analyzer. Documented below
	Configuration AnalyzerConfigurationPtrInput
	// 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`, `ORGANIZATION`, ` ACCOUNT_UNUSED_ACCESS  `, `ORGANIZATION_UNUSED_ACCESS`. 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 AnalyzerConfiguration added in v6.19.0

type AnalyzerConfiguration struct {
	// A block that specifies the configuration of an unused access analyzer for an AWS organization or account. Documented below
	UnusedAccess *AnalyzerConfigurationUnusedAccess `pulumi:"unusedAccess"`
}

type AnalyzerConfigurationArgs added in v6.19.0

type AnalyzerConfigurationArgs struct {
	// A block that specifies the configuration of an unused access analyzer for an AWS organization or account. Documented below
	UnusedAccess AnalyzerConfigurationUnusedAccessPtrInput `pulumi:"unusedAccess"`
}

func (AnalyzerConfigurationArgs) ElementType added in v6.19.0

func (AnalyzerConfigurationArgs) ElementType() reflect.Type

func (AnalyzerConfigurationArgs) ToAnalyzerConfigurationOutput added in v6.19.0

func (i AnalyzerConfigurationArgs) ToAnalyzerConfigurationOutput() AnalyzerConfigurationOutput

func (AnalyzerConfigurationArgs) ToAnalyzerConfigurationOutputWithContext added in v6.19.0

func (i AnalyzerConfigurationArgs) ToAnalyzerConfigurationOutputWithContext(ctx context.Context) AnalyzerConfigurationOutput

func (AnalyzerConfigurationArgs) ToAnalyzerConfigurationPtrOutput added in v6.19.0

func (i AnalyzerConfigurationArgs) ToAnalyzerConfigurationPtrOutput() AnalyzerConfigurationPtrOutput

func (AnalyzerConfigurationArgs) ToAnalyzerConfigurationPtrOutputWithContext added in v6.19.0

func (i AnalyzerConfigurationArgs) ToAnalyzerConfigurationPtrOutputWithContext(ctx context.Context) AnalyzerConfigurationPtrOutput

type AnalyzerConfigurationInput added in v6.19.0

type AnalyzerConfigurationInput interface {
	pulumi.Input

	ToAnalyzerConfigurationOutput() AnalyzerConfigurationOutput
	ToAnalyzerConfigurationOutputWithContext(context.Context) AnalyzerConfigurationOutput
}

AnalyzerConfigurationInput is an input type that accepts AnalyzerConfigurationArgs and AnalyzerConfigurationOutput values. You can construct a concrete instance of `AnalyzerConfigurationInput` via:

AnalyzerConfigurationArgs{...}

type AnalyzerConfigurationOutput added in v6.19.0

type AnalyzerConfigurationOutput struct{ *pulumi.OutputState }

func (AnalyzerConfigurationOutput) ElementType added in v6.19.0

func (AnalyzerConfigurationOutput) ToAnalyzerConfigurationOutput added in v6.19.0

func (o AnalyzerConfigurationOutput) ToAnalyzerConfigurationOutput() AnalyzerConfigurationOutput

func (AnalyzerConfigurationOutput) ToAnalyzerConfigurationOutputWithContext added in v6.19.0

func (o AnalyzerConfigurationOutput) ToAnalyzerConfigurationOutputWithContext(ctx context.Context) AnalyzerConfigurationOutput

func (AnalyzerConfigurationOutput) ToAnalyzerConfigurationPtrOutput added in v6.19.0

func (o AnalyzerConfigurationOutput) ToAnalyzerConfigurationPtrOutput() AnalyzerConfigurationPtrOutput

func (AnalyzerConfigurationOutput) ToAnalyzerConfigurationPtrOutputWithContext added in v6.19.0

func (o AnalyzerConfigurationOutput) ToAnalyzerConfigurationPtrOutputWithContext(ctx context.Context) AnalyzerConfigurationPtrOutput

func (AnalyzerConfigurationOutput) UnusedAccess added in v6.19.0

A block that specifies the configuration of an unused access analyzer for an AWS organization or account. Documented below

type AnalyzerConfigurationPtrInput added in v6.19.0

type AnalyzerConfigurationPtrInput interface {
	pulumi.Input

	ToAnalyzerConfigurationPtrOutput() AnalyzerConfigurationPtrOutput
	ToAnalyzerConfigurationPtrOutputWithContext(context.Context) AnalyzerConfigurationPtrOutput
}

AnalyzerConfigurationPtrInput is an input type that accepts AnalyzerConfigurationArgs, AnalyzerConfigurationPtr and AnalyzerConfigurationPtrOutput values. You can construct a concrete instance of `AnalyzerConfigurationPtrInput` via:

        AnalyzerConfigurationArgs{...}

or:

        nil

func AnalyzerConfigurationPtr added in v6.19.0

func AnalyzerConfigurationPtr(v *AnalyzerConfigurationArgs) AnalyzerConfigurationPtrInput

type AnalyzerConfigurationPtrOutput added in v6.19.0

type AnalyzerConfigurationPtrOutput struct{ *pulumi.OutputState }

func (AnalyzerConfigurationPtrOutput) Elem added in v6.19.0

func (AnalyzerConfigurationPtrOutput) ElementType added in v6.19.0

func (AnalyzerConfigurationPtrOutput) ToAnalyzerConfigurationPtrOutput added in v6.19.0

func (o AnalyzerConfigurationPtrOutput) ToAnalyzerConfigurationPtrOutput() AnalyzerConfigurationPtrOutput

func (AnalyzerConfigurationPtrOutput) ToAnalyzerConfigurationPtrOutputWithContext added in v6.19.0

func (o AnalyzerConfigurationPtrOutput) ToAnalyzerConfigurationPtrOutputWithContext(ctx context.Context) AnalyzerConfigurationPtrOutput

func (AnalyzerConfigurationPtrOutput) UnusedAccess added in v6.19.0

A block that specifies the configuration of an unused access analyzer for an AWS organization or account. Documented below

type AnalyzerConfigurationUnusedAccess added in v6.19.0

type AnalyzerConfigurationUnusedAccess struct {
	// The specified access age in days for which to generate findings for unused access.
	UnusedAccessAge *int `pulumi:"unusedAccessAge"`
}

type AnalyzerConfigurationUnusedAccessArgs added in v6.19.0

type AnalyzerConfigurationUnusedAccessArgs struct {
	// The specified access age in days for which to generate findings for unused access.
	UnusedAccessAge pulumi.IntPtrInput `pulumi:"unusedAccessAge"`
}

func (AnalyzerConfigurationUnusedAccessArgs) ElementType added in v6.19.0

func (AnalyzerConfigurationUnusedAccessArgs) ToAnalyzerConfigurationUnusedAccessOutput added in v6.19.0

func (i AnalyzerConfigurationUnusedAccessArgs) ToAnalyzerConfigurationUnusedAccessOutput() AnalyzerConfigurationUnusedAccessOutput

func (AnalyzerConfigurationUnusedAccessArgs) ToAnalyzerConfigurationUnusedAccessOutputWithContext added in v6.19.0

func (i AnalyzerConfigurationUnusedAccessArgs) ToAnalyzerConfigurationUnusedAccessOutputWithContext(ctx context.Context) AnalyzerConfigurationUnusedAccessOutput

func (AnalyzerConfigurationUnusedAccessArgs) ToAnalyzerConfigurationUnusedAccessPtrOutput added in v6.19.0

func (i AnalyzerConfigurationUnusedAccessArgs) ToAnalyzerConfigurationUnusedAccessPtrOutput() AnalyzerConfigurationUnusedAccessPtrOutput

func (AnalyzerConfigurationUnusedAccessArgs) ToAnalyzerConfigurationUnusedAccessPtrOutputWithContext added in v6.19.0

func (i AnalyzerConfigurationUnusedAccessArgs) ToAnalyzerConfigurationUnusedAccessPtrOutputWithContext(ctx context.Context) AnalyzerConfigurationUnusedAccessPtrOutput

type AnalyzerConfigurationUnusedAccessInput added in v6.19.0

type AnalyzerConfigurationUnusedAccessInput interface {
	pulumi.Input

	ToAnalyzerConfigurationUnusedAccessOutput() AnalyzerConfigurationUnusedAccessOutput
	ToAnalyzerConfigurationUnusedAccessOutputWithContext(context.Context) AnalyzerConfigurationUnusedAccessOutput
}

AnalyzerConfigurationUnusedAccessInput is an input type that accepts AnalyzerConfigurationUnusedAccessArgs and AnalyzerConfigurationUnusedAccessOutput values. You can construct a concrete instance of `AnalyzerConfigurationUnusedAccessInput` via:

AnalyzerConfigurationUnusedAccessArgs{...}

type AnalyzerConfigurationUnusedAccessOutput added in v6.19.0

type AnalyzerConfigurationUnusedAccessOutput struct{ *pulumi.OutputState }

func (AnalyzerConfigurationUnusedAccessOutput) ElementType added in v6.19.0

func (AnalyzerConfigurationUnusedAccessOutput) ToAnalyzerConfigurationUnusedAccessOutput added in v6.19.0

func (o AnalyzerConfigurationUnusedAccessOutput) ToAnalyzerConfigurationUnusedAccessOutput() AnalyzerConfigurationUnusedAccessOutput

func (AnalyzerConfigurationUnusedAccessOutput) ToAnalyzerConfigurationUnusedAccessOutputWithContext added in v6.19.0

func (o AnalyzerConfigurationUnusedAccessOutput) ToAnalyzerConfigurationUnusedAccessOutputWithContext(ctx context.Context) AnalyzerConfigurationUnusedAccessOutput

func (AnalyzerConfigurationUnusedAccessOutput) ToAnalyzerConfigurationUnusedAccessPtrOutput added in v6.19.0

func (o AnalyzerConfigurationUnusedAccessOutput) ToAnalyzerConfigurationUnusedAccessPtrOutput() AnalyzerConfigurationUnusedAccessPtrOutput

func (AnalyzerConfigurationUnusedAccessOutput) ToAnalyzerConfigurationUnusedAccessPtrOutputWithContext added in v6.19.0

func (o AnalyzerConfigurationUnusedAccessOutput) ToAnalyzerConfigurationUnusedAccessPtrOutputWithContext(ctx context.Context) AnalyzerConfigurationUnusedAccessPtrOutput

func (AnalyzerConfigurationUnusedAccessOutput) UnusedAccessAge added in v6.19.0

The specified access age in days for which to generate findings for unused access.

type AnalyzerConfigurationUnusedAccessPtrInput added in v6.19.0

type AnalyzerConfigurationUnusedAccessPtrInput interface {
	pulumi.Input

	ToAnalyzerConfigurationUnusedAccessPtrOutput() AnalyzerConfigurationUnusedAccessPtrOutput
	ToAnalyzerConfigurationUnusedAccessPtrOutputWithContext(context.Context) AnalyzerConfigurationUnusedAccessPtrOutput
}

AnalyzerConfigurationUnusedAccessPtrInput is an input type that accepts AnalyzerConfigurationUnusedAccessArgs, AnalyzerConfigurationUnusedAccessPtr and AnalyzerConfigurationUnusedAccessPtrOutput values. You can construct a concrete instance of `AnalyzerConfigurationUnusedAccessPtrInput` via:

        AnalyzerConfigurationUnusedAccessArgs{...}

or:

        nil

type AnalyzerConfigurationUnusedAccessPtrOutput added in v6.19.0

type AnalyzerConfigurationUnusedAccessPtrOutput struct{ *pulumi.OutputState }

func (AnalyzerConfigurationUnusedAccessPtrOutput) Elem added in v6.19.0

func (AnalyzerConfigurationUnusedAccessPtrOutput) ElementType added in v6.19.0

func (AnalyzerConfigurationUnusedAccessPtrOutput) ToAnalyzerConfigurationUnusedAccessPtrOutput added in v6.19.0

func (o AnalyzerConfigurationUnusedAccessPtrOutput) ToAnalyzerConfigurationUnusedAccessPtrOutput() AnalyzerConfigurationUnusedAccessPtrOutput

func (AnalyzerConfigurationUnusedAccessPtrOutput) ToAnalyzerConfigurationUnusedAccessPtrOutputWithContext added in v6.19.0

func (o AnalyzerConfigurationUnusedAccessPtrOutput) ToAnalyzerConfigurationUnusedAccessPtrOutputWithContext(ctx context.Context) AnalyzerConfigurationUnusedAccessPtrOutput

func (AnalyzerConfigurationUnusedAccessPtrOutput) UnusedAccessAge added in v6.19.0

The specified access age in days for which to generate findings for unused access.

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) Configuration added in v6.19.0

A block that specifies the configuration of the analyzer. Documented below

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 deprecated

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

Deprecated: Please use `tags` instead.

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`, `ORGANIZATION`, ` ACCOUNT_UNUSED_ACCESS `, `ORGANIZATION_UNUSED_ACCESS`. 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
	// A block that specifies the configuration of the analyzer. Documented below
	Configuration AnalyzerConfigurationPtrInput
	// 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.
	//
	// Deprecated: Please use `tags` instead.
	TagsAll pulumi.StringMapInput
	// Type of Analyzer. Valid values are `ACCOUNT`, `ORGANIZATION`, ` ACCOUNT_UNUSED_ACCESS  `, `ORGANIZATION_UNUSED_ACCESS`. 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"),
			RuleName:     pulumi.String("example-rule"),
			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"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Using `pulumi import`, import AccessAnalyzer ArchiveRule using the `analyzer_name/rule_name`. For example:

```sh $ pulumi import aws:accessanalyzer/archiveRule:ArchiveRule 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