macie

package
v2.13.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemberAccountAssociation

type MemberAccountAssociation struct {
	pulumi.CustomResourceState

	// The ID of the AWS account that you want to associate with Amazon Macie as a member account.
	MemberAccountId pulumi.StringOutput `pulumi:"memberAccountId"`
}

> **NOTE:** This resource interacts with [Amazon Macie Classic](https://docs.aws.amazon.com/macie/latest/userguide/what-is-macie.html). Macie Classic cannot be activated in new accounts. See the [FAQ](https://aws.amazon.com/macie/classic-faqs/) for more details.

Associates an AWS account with Amazon Macie as a member account.

> **NOTE:** Before using Amazon Macie for the first time it must be enabled manually. Instructions are [here](https://docs.aws.amazon.com/macie/latest/userguide/macie-setting-up.html#macie-setting-up-enable).

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/macie"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := macie.NewMemberAccountAssociation(ctx, "example", &macie.MemberAccountAssociationArgs{
			MemberAccountId: pulumi.String("123456789012"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetMemberAccountAssociation

func GetMemberAccountAssociation(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *MemberAccountAssociationState, opts ...pulumi.ResourceOption) (*MemberAccountAssociation, error)

GetMemberAccountAssociation gets an existing MemberAccountAssociation 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 NewMemberAccountAssociation

func NewMemberAccountAssociation(ctx *pulumi.Context,
	name string, args *MemberAccountAssociationArgs, opts ...pulumi.ResourceOption) (*MemberAccountAssociation, error)

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

type MemberAccountAssociationArgs

type MemberAccountAssociationArgs struct {
	// The ID of the AWS account that you want to associate with Amazon Macie as a member account.
	MemberAccountId pulumi.StringInput
}

The set of arguments for constructing a MemberAccountAssociation resource.

func (MemberAccountAssociationArgs) ElementType

type MemberAccountAssociationState

type MemberAccountAssociationState struct {
	// The ID of the AWS account that you want to associate with Amazon Macie as a member account.
	MemberAccountId pulumi.StringPtrInput
}

func (MemberAccountAssociationState) ElementType

type S3BucketAssociation

type S3BucketAssociation struct {
	pulumi.CustomResourceState

	// The name of the S3 bucket that you want to associate with Amazon Macie.
	BucketName pulumi.StringOutput `pulumi:"bucketName"`
	// The configuration of how Amazon Macie classifies the S3 objects.
	ClassificationType S3BucketAssociationClassificationTypeOutput `pulumi:"classificationType"`
	// The ID of the Amazon Macie member account whose S3 resources you want to associate with Macie. If `memberAccountId` isn't specified, the action associates specified S3 resources with Macie for the current master account.
	MemberAccountId pulumi.StringPtrOutput `pulumi:"memberAccountId"`
	// Object key prefix identifying one or more S3 objects to which the association applies.
	Prefix pulumi.StringPtrOutput `pulumi:"prefix"`
}

> **NOTE:** This resource interacts with [Amazon Macie Classic](https://docs.aws.amazon.com/macie/latest/userguide/what-is-macie.html). Macie Classic cannot be activated in new accounts. See the [FAQ](https://aws.amazon.com/macie/classic-faqs/) for more details.

Associates an S3 resource with Amazon Macie for monitoring and data classification.

> **NOTE:** Before using Amazon Macie for the first time it must be enabled manually. Instructions are [here](https://docs.aws.amazon.com/macie/latest/userguide/macie-setting-up.html#macie-setting-up-enable).

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/macie"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := macie.NewS3BucketAssociation(ctx, "example", &macie.S3BucketAssociationArgs{
			BucketName: pulumi.String("tf-macie-example"),
			ClassificationType: &macie.S3BucketAssociationClassificationTypeArgs{
				OneTime: pulumi.String("FULL"),
			},
			Prefix: pulumi.String("data"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetS3BucketAssociation

func GetS3BucketAssociation(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *S3BucketAssociationState, opts ...pulumi.ResourceOption) (*S3BucketAssociation, error)

GetS3BucketAssociation gets an existing S3BucketAssociation 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 NewS3BucketAssociation

func NewS3BucketAssociation(ctx *pulumi.Context,
	name string, args *S3BucketAssociationArgs, opts ...pulumi.ResourceOption) (*S3BucketAssociation, error)

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

type S3BucketAssociationArgs

type S3BucketAssociationArgs struct {
	// The name of the S3 bucket that you want to associate with Amazon Macie.
	BucketName pulumi.StringInput
	// The configuration of how Amazon Macie classifies the S3 objects.
	ClassificationType S3BucketAssociationClassificationTypePtrInput
	// The ID of the Amazon Macie member account whose S3 resources you want to associate with Macie. If `memberAccountId` isn't specified, the action associates specified S3 resources with Macie for the current master account.
	MemberAccountId pulumi.StringPtrInput
	// Object key prefix identifying one or more S3 objects to which the association applies.
	Prefix pulumi.StringPtrInput
}

The set of arguments for constructing a S3BucketAssociation resource.

func (S3BucketAssociationArgs) ElementType

func (S3BucketAssociationArgs) ElementType() reflect.Type

type S3BucketAssociationClassificationType

type S3BucketAssociationClassificationType struct {
	// A string value indicating that Macie perform a one-time classification of all of the existing objects in the bucket.
	// The only valid value is the default value, `FULL`.
	Continuous *string `pulumi:"continuous"`
	// A string value indicating whether or not Macie performs a one-time classification of all of the existing objects in the bucket.
	// Valid values are `NONE` and `FULL`. Defaults to `NONE` indicating that Macie only classifies objects that are added after the association was created.
	OneTime *string `pulumi:"oneTime"`
}

type S3BucketAssociationClassificationTypeArgs

type S3BucketAssociationClassificationTypeArgs struct {
	// A string value indicating that Macie perform a one-time classification of all of the existing objects in the bucket.
	// The only valid value is the default value, `FULL`.
	Continuous pulumi.StringPtrInput `pulumi:"continuous"`
	// A string value indicating whether or not Macie performs a one-time classification of all of the existing objects in the bucket.
	// Valid values are `NONE` and `FULL`. Defaults to `NONE` indicating that Macie only classifies objects that are added after the association was created.
	OneTime pulumi.StringPtrInput `pulumi:"oneTime"`
}

func (S3BucketAssociationClassificationTypeArgs) ElementType

func (S3BucketAssociationClassificationTypeArgs) ToS3BucketAssociationClassificationTypeOutput

func (i S3BucketAssociationClassificationTypeArgs) ToS3BucketAssociationClassificationTypeOutput() S3BucketAssociationClassificationTypeOutput

func (S3BucketAssociationClassificationTypeArgs) ToS3BucketAssociationClassificationTypeOutputWithContext

func (i S3BucketAssociationClassificationTypeArgs) ToS3BucketAssociationClassificationTypeOutputWithContext(ctx context.Context) S3BucketAssociationClassificationTypeOutput

func (S3BucketAssociationClassificationTypeArgs) ToS3BucketAssociationClassificationTypePtrOutput

func (i S3BucketAssociationClassificationTypeArgs) ToS3BucketAssociationClassificationTypePtrOutput() S3BucketAssociationClassificationTypePtrOutput

func (S3BucketAssociationClassificationTypeArgs) ToS3BucketAssociationClassificationTypePtrOutputWithContext

func (i S3BucketAssociationClassificationTypeArgs) ToS3BucketAssociationClassificationTypePtrOutputWithContext(ctx context.Context) S3BucketAssociationClassificationTypePtrOutput

type S3BucketAssociationClassificationTypeInput

type S3BucketAssociationClassificationTypeInput interface {
	pulumi.Input

	ToS3BucketAssociationClassificationTypeOutput() S3BucketAssociationClassificationTypeOutput
	ToS3BucketAssociationClassificationTypeOutputWithContext(context.Context) S3BucketAssociationClassificationTypeOutput
}

S3BucketAssociationClassificationTypeInput is an input type that accepts S3BucketAssociationClassificationTypeArgs and S3BucketAssociationClassificationTypeOutput values. You can construct a concrete instance of `S3BucketAssociationClassificationTypeInput` via:

S3BucketAssociationClassificationTypeArgs{...}

type S3BucketAssociationClassificationTypeOutput

type S3BucketAssociationClassificationTypeOutput struct{ *pulumi.OutputState }

func (S3BucketAssociationClassificationTypeOutput) Continuous

A string value indicating that Macie perform a one-time classification of all of the existing objects in the bucket. The only valid value is the default value, `FULL`.

func (S3BucketAssociationClassificationTypeOutput) ElementType

func (S3BucketAssociationClassificationTypeOutput) OneTime

A string value indicating whether or not Macie performs a one-time classification of all of the existing objects in the bucket. Valid values are `NONE` and `FULL`. Defaults to `NONE` indicating that Macie only classifies objects that are added after the association was created.

func (S3BucketAssociationClassificationTypeOutput) ToS3BucketAssociationClassificationTypeOutput

func (o S3BucketAssociationClassificationTypeOutput) ToS3BucketAssociationClassificationTypeOutput() S3BucketAssociationClassificationTypeOutput

func (S3BucketAssociationClassificationTypeOutput) ToS3BucketAssociationClassificationTypeOutputWithContext

func (o S3BucketAssociationClassificationTypeOutput) ToS3BucketAssociationClassificationTypeOutputWithContext(ctx context.Context) S3BucketAssociationClassificationTypeOutput

func (S3BucketAssociationClassificationTypeOutput) ToS3BucketAssociationClassificationTypePtrOutput

func (o S3BucketAssociationClassificationTypeOutput) ToS3BucketAssociationClassificationTypePtrOutput() S3BucketAssociationClassificationTypePtrOutput

func (S3BucketAssociationClassificationTypeOutput) ToS3BucketAssociationClassificationTypePtrOutputWithContext

func (o S3BucketAssociationClassificationTypeOutput) ToS3BucketAssociationClassificationTypePtrOutputWithContext(ctx context.Context) S3BucketAssociationClassificationTypePtrOutput

type S3BucketAssociationClassificationTypePtrInput

type S3BucketAssociationClassificationTypePtrInput interface {
	pulumi.Input

	ToS3BucketAssociationClassificationTypePtrOutput() S3BucketAssociationClassificationTypePtrOutput
	ToS3BucketAssociationClassificationTypePtrOutputWithContext(context.Context) S3BucketAssociationClassificationTypePtrOutput
}

S3BucketAssociationClassificationTypePtrInput is an input type that accepts S3BucketAssociationClassificationTypeArgs, S3BucketAssociationClassificationTypePtr and S3BucketAssociationClassificationTypePtrOutput values. You can construct a concrete instance of `S3BucketAssociationClassificationTypePtrInput` via:

        S3BucketAssociationClassificationTypeArgs{...}

or:

        nil

type S3BucketAssociationClassificationTypePtrOutput

type S3BucketAssociationClassificationTypePtrOutput struct{ *pulumi.OutputState }

func (S3BucketAssociationClassificationTypePtrOutput) Continuous

A string value indicating that Macie perform a one-time classification of all of the existing objects in the bucket. The only valid value is the default value, `FULL`.

func (S3BucketAssociationClassificationTypePtrOutput) Elem

func (S3BucketAssociationClassificationTypePtrOutput) ElementType

func (S3BucketAssociationClassificationTypePtrOutput) OneTime

A string value indicating whether or not Macie performs a one-time classification of all of the existing objects in the bucket. Valid values are `NONE` and `FULL`. Defaults to `NONE` indicating that Macie only classifies objects that are added after the association was created.

func (S3BucketAssociationClassificationTypePtrOutput) ToS3BucketAssociationClassificationTypePtrOutput

func (o S3BucketAssociationClassificationTypePtrOutput) ToS3BucketAssociationClassificationTypePtrOutput() S3BucketAssociationClassificationTypePtrOutput

func (S3BucketAssociationClassificationTypePtrOutput) ToS3BucketAssociationClassificationTypePtrOutputWithContext

func (o S3BucketAssociationClassificationTypePtrOutput) ToS3BucketAssociationClassificationTypePtrOutputWithContext(ctx context.Context) S3BucketAssociationClassificationTypePtrOutput

type S3BucketAssociationState

type S3BucketAssociationState struct {
	// The name of the S3 bucket that you want to associate with Amazon Macie.
	BucketName pulumi.StringPtrInput
	// The configuration of how Amazon Macie classifies the S3 objects.
	ClassificationType S3BucketAssociationClassificationTypePtrInput
	// The ID of the Amazon Macie member account whose S3 resources you want to associate with Macie. If `memberAccountId` isn't specified, the action associates specified S3 resources with Macie for the current master account.
	MemberAccountId pulumi.StringPtrInput
	// Object key prefix identifying one or more S3 objects to which the association applies.
	Prefix pulumi.StringPtrInput
}

func (S3BucketAssociationState) ElementType

func (S3BucketAssociationState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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