detective

package
v6.30.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 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 Graph

type Graph struct {
	pulumi.CustomResourceState

	// Date and time, in UTC and extended RFC 3339 format, when the Amazon Detective Graph was created.
	CreatedTime pulumi.StringOutput `pulumi:"createdTime"`
	// ARN of the Detective Graph.
	GraphArn pulumi.StringOutput `pulumi:"graphArn"`
	// A map of tags to assign to the instance. 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"`
}

Provides a resource to manage an [AWS Detective Graph](https://docs.aws.amazon.com/detective/latest/APIReference/API_CreateGraph.html). As an AWS account may own only one Detective graph per region, provisioning multiple Detective graphs requires a separate provider configuration for each graph.

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := detective.NewGraph(ctx, "example", &detective.GraphArgs{
			Tags: pulumi.StringMap{
				"Name": pulumi.String("example-detective-graph"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Using `pulumi import`, import `aws_detective_graph` using the ARN. For example:

```sh $ pulumi import aws:detective/graph:Graph example arn:aws:detective:us-east-1:123456789101:graph:231684d34gh74g4bae1dbc7bd807d02d ```

func GetGraph

func GetGraph(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *GraphState, opts ...pulumi.ResourceOption) (*Graph, error)

GetGraph gets an existing Graph 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 NewGraph

func NewGraph(ctx *pulumi.Context,
	name string, args *GraphArgs, opts ...pulumi.ResourceOption) (*Graph, error)

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

func (*Graph) ElementType

func (*Graph) ElementType() reflect.Type

func (*Graph) ToGraphOutput

func (i *Graph) ToGraphOutput() GraphOutput

func (*Graph) ToGraphOutputWithContext

func (i *Graph) ToGraphOutputWithContext(ctx context.Context) GraphOutput

type GraphArgs

type GraphArgs struct {
	// A map of tags to assign to the instance. 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 Graph resource.

func (GraphArgs) ElementType

func (GraphArgs) ElementType() reflect.Type

type GraphArray

type GraphArray []GraphInput

func (GraphArray) ElementType

func (GraphArray) ElementType() reflect.Type

func (GraphArray) ToGraphArrayOutput

func (i GraphArray) ToGraphArrayOutput() GraphArrayOutput

func (GraphArray) ToGraphArrayOutputWithContext

func (i GraphArray) ToGraphArrayOutputWithContext(ctx context.Context) GraphArrayOutput

type GraphArrayInput

type GraphArrayInput interface {
	pulumi.Input

	ToGraphArrayOutput() GraphArrayOutput
	ToGraphArrayOutputWithContext(context.Context) GraphArrayOutput
}

GraphArrayInput is an input type that accepts GraphArray and GraphArrayOutput values. You can construct a concrete instance of `GraphArrayInput` via:

GraphArray{ GraphArgs{...} }

type GraphArrayOutput

type GraphArrayOutput struct{ *pulumi.OutputState }

func (GraphArrayOutput) ElementType

func (GraphArrayOutput) ElementType() reflect.Type

func (GraphArrayOutput) Index

func (GraphArrayOutput) ToGraphArrayOutput

func (o GraphArrayOutput) ToGraphArrayOutput() GraphArrayOutput

func (GraphArrayOutput) ToGraphArrayOutputWithContext

func (o GraphArrayOutput) ToGraphArrayOutputWithContext(ctx context.Context) GraphArrayOutput

type GraphInput

type GraphInput interface {
	pulumi.Input

	ToGraphOutput() GraphOutput
	ToGraphOutputWithContext(ctx context.Context) GraphOutput
}

type GraphMap

type GraphMap map[string]GraphInput

func (GraphMap) ElementType

func (GraphMap) ElementType() reflect.Type

func (GraphMap) ToGraphMapOutput

func (i GraphMap) ToGraphMapOutput() GraphMapOutput

func (GraphMap) ToGraphMapOutputWithContext

func (i GraphMap) ToGraphMapOutputWithContext(ctx context.Context) GraphMapOutput

type GraphMapInput

type GraphMapInput interface {
	pulumi.Input

	ToGraphMapOutput() GraphMapOutput
	ToGraphMapOutputWithContext(context.Context) GraphMapOutput
}

GraphMapInput is an input type that accepts GraphMap and GraphMapOutput values. You can construct a concrete instance of `GraphMapInput` via:

GraphMap{ "key": GraphArgs{...} }

type GraphMapOutput

type GraphMapOutput struct{ *pulumi.OutputState }

func (GraphMapOutput) ElementType

func (GraphMapOutput) ElementType() reflect.Type

func (GraphMapOutput) MapIndex

func (GraphMapOutput) ToGraphMapOutput

func (o GraphMapOutput) ToGraphMapOutput() GraphMapOutput

func (GraphMapOutput) ToGraphMapOutputWithContext

func (o GraphMapOutput) ToGraphMapOutputWithContext(ctx context.Context) GraphMapOutput

type GraphOutput

type GraphOutput struct{ *pulumi.OutputState }

func (GraphOutput) CreatedTime

func (o GraphOutput) CreatedTime() pulumi.StringOutput

Date and time, in UTC and extended RFC 3339 format, when the Amazon Detective Graph was created.

func (GraphOutput) ElementType

func (GraphOutput) ElementType() reflect.Type

func (GraphOutput) GraphArn

func (o GraphOutput) GraphArn() pulumi.StringOutput

ARN of the Detective Graph.

func (GraphOutput) Tags

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

func (GraphOutput) TagsAll deprecated

func (o GraphOutput) TagsAll() pulumi.StringMapOutput

Deprecated: Please use `tags` instead.

func (GraphOutput) ToGraphOutput

func (o GraphOutput) ToGraphOutput() GraphOutput

func (GraphOutput) ToGraphOutputWithContext

func (o GraphOutput) ToGraphOutputWithContext(ctx context.Context) GraphOutput

type GraphState

type GraphState struct {
	// Date and time, in UTC and extended RFC 3339 format, when the Amazon Detective Graph was created.
	CreatedTime pulumi.StringPtrInput
	// ARN of the Detective Graph.
	GraphArn pulumi.StringPtrInput
	// A map of tags to assign to the instance. 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 (GraphState) ElementType

func (GraphState) ElementType() reflect.Type

type InvitationAccepter

type InvitationAccepter struct {
	pulumi.CustomResourceState

	// ARN of the behavior graph that the member account is accepting the invitation for.
	GraphArn pulumi.StringOutput `pulumi:"graphArn"`
}

Provides a resource to manage an [Amazon Detective Invitation Accepter](https://docs.aws.amazon.com/detective/latest/APIReference/API_AcceptInvitation.html). Ensure that the accepter is configured to use the AWS account you wish to _accept_ the invitation from the primary graph owner account.

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		primary, err := detective.NewGraph(ctx, "primary", nil)
		if err != nil {
			return err
		}
		primaryMember, err := detective.NewMember(ctx, "primary", &detective.MemberArgs{
			AccountId:    pulumi.String("ACCOUNT ID"),
			EmailAddress: pulumi.String("EMAIL"),
			GraphArn:     primary.ID(),
			Message:      pulumi.String("Message of the invite"),
		})
		if err != nil {
			return err
		}
		_, err = detective.NewInvitationAccepter(ctx, "member", &detective.InvitationAccepterArgs{
			GraphArn: primary.GraphArn,
		}, pulumi.DependsOn([]pulumi.Resource{
			primaryMember,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Using `pulumi import`, import `aws_detective_invitation_accepter` using the graph ARN. For example:

```sh $ pulumi import aws:detective/invitationAccepter:InvitationAccepter example arn:aws:detective:us-east-1:123456789101:graph:231684d34gh74g4bae1dbc7bd807d02d ```

func GetInvitationAccepter

func GetInvitationAccepter(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *InvitationAccepterState, opts ...pulumi.ResourceOption) (*InvitationAccepter, error)

GetInvitationAccepter gets an existing InvitationAccepter 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 NewInvitationAccepter

func NewInvitationAccepter(ctx *pulumi.Context,
	name string, args *InvitationAccepterArgs, opts ...pulumi.ResourceOption) (*InvitationAccepter, error)

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

func (*InvitationAccepter) ElementType

func (*InvitationAccepter) ElementType() reflect.Type

func (*InvitationAccepter) ToInvitationAccepterOutput

func (i *InvitationAccepter) ToInvitationAccepterOutput() InvitationAccepterOutput

func (*InvitationAccepter) ToInvitationAccepterOutputWithContext

func (i *InvitationAccepter) ToInvitationAccepterOutputWithContext(ctx context.Context) InvitationAccepterOutput

type InvitationAccepterArgs

type InvitationAccepterArgs struct {
	// ARN of the behavior graph that the member account is accepting the invitation for.
	GraphArn pulumi.StringInput
}

The set of arguments for constructing a InvitationAccepter resource.

func (InvitationAccepterArgs) ElementType

func (InvitationAccepterArgs) ElementType() reflect.Type

type InvitationAccepterArray

type InvitationAccepterArray []InvitationAccepterInput

func (InvitationAccepterArray) ElementType

func (InvitationAccepterArray) ElementType() reflect.Type

func (InvitationAccepterArray) ToInvitationAccepterArrayOutput

func (i InvitationAccepterArray) ToInvitationAccepterArrayOutput() InvitationAccepterArrayOutput

func (InvitationAccepterArray) ToInvitationAccepterArrayOutputWithContext

func (i InvitationAccepterArray) ToInvitationAccepterArrayOutputWithContext(ctx context.Context) InvitationAccepterArrayOutput

type InvitationAccepterArrayInput

type InvitationAccepterArrayInput interface {
	pulumi.Input

	ToInvitationAccepterArrayOutput() InvitationAccepterArrayOutput
	ToInvitationAccepterArrayOutputWithContext(context.Context) InvitationAccepterArrayOutput
}

InvitationAccepterArrayInput is an input type that accepts InvitationAccepterArray and InvitationAccepterArrayOutput values. You can construct a concrete instance of `InvitationAccepterArrayInput` via:

InvitationAccepterArray{ InvitationAccepterArgs{...} }

type InvitationAccepterArrayOutput

type InvitationAccepterArrayOutput struct{ *pulumi.OutputState }

func (InvitationAccepterArrayOutput) ElementType

func (InvitationAccepterArrayOutput) Index

func (InvitationAccepterArrayOutput) ToInvitationAccepterArrayOutput

func (o InvitationAccepterArrayOutput) ToInvitationAccepterArrayOutput() InvitationAccepterArrayOutput

func (InvitationAccepterArrayOutput) ToInvitationAccepterArrayOutputWithContext

func (o InvitationAccepterArrayOutput) ToInvitationAccepterArrayOutputWithContext(ctx context.Context) InvitationAccepterArrayOutput

type InvitationAccepterInput

type InvitationAccepterInput interface {
	pulumi.Input

	ToInvitationAccepterOutput() InvitationAccepterOutput
	ToInvitationAccepterOutputWithContext(ctx context.Context) InvitationAccepterOutput
}

type InvitationAccepterMap

type InvitationAccepterMap map[string]InvitationAccepterInput

func (InvitationAccepterMap) ElementType

func (InvitationAccepterMap) ElementType() reflect.Type

func (InvitationAccepterMap) ToInvitationAccepterMapOutput

func (i InvitationAccepterMap) ToInvitationAccepterMapOutput() InvitationAccepterMapOutput

func (InvitationAccepterMap) ToInvitationAccepterMapOutputWithContext

func (i InvitationAccepterMap) ToInvitationAccepterMapOutputWithContext(ctx context.Context) InvitationAccepterMapOutput

type InvitationAccepterMapInput

type InvitationAccepterMapInput interface {
	pulumi.Input

	ToInvitationAccepterMapOutput() InvitationAccepterMapOutput
	ToInvitationAccepterMapOutputWithContext(context.Context) InvitationAccepterMapOutput
}

InvitationAccepterMapInput is an input type that accepts InvitationAccepterMap and InvitationAccepterMapOutput values. You can construct a concrete instance of `InvitationAccepterMapInput` via:

InvitationAccepterMap{ "key": InvitationAccepterArgs{...} }

type InvitationAccepterMapOutput

type InvitationAccepterMapOutput struct{ *pulumi.OutputState }

func (InvitationAccepterMapOutput) ElementType

func (InvitationAccepterMapOutput) MapIndex

func (InvitationAccepterMapOutput) ToInvitationAccepterMapOutput

func (o InvitationAccepterMapOutput) ToInvitationAccepterMapOutput() InvitationAccepterMapOutput

func (InvitationAccepterMapOutput) ToInvitationAccepterMapOutputWithContext

func (o InvitationAccepterMapOutput) ToInvitationAccepterMapOutputWithContext(ctx context.Context) InvitationAccepterMapOutput

type InvitationAccepterOutput

type InvitationAccepterOutput struct{ *pulumi.OutputState }

func (InvitationAccepterOutput) ElementType

func (InvitationAccepterOutput) ElementType() reflect.Type

func (InvitationAccepterOutput) GraphArn

ARN of the behavior graph that the member account is accepting the invitation for.

func (InvitationAccepterOutput) ToInvitationAccepterOutput

func (o InvitationAccepterOutput) ToInvitationAccepterOutput() InvitationAccepterOutput

func (InvitationAccepterOutput) ToInvitationAccepterOutputWithContext

func (o InvitationAccepterOutput) ToInvitationAccepterOutputWithContext(ctx context.Context) InvitationAccepterOutput

type InvitationAccepterState

type InvitationAccepterState struct {
	// ARN of the behavior graph that the member account is accepting the invitation for.
	GraphArn pulumi.StringPtrInput
}

func (InvitationAccepterState) ElementType

func (InvitationAccepterState) ElementType() reflect.Type

type Member

type Member struct {
	pulumi.CustomResourceState

	// AWS account ID for the account.
	AccountId pulumi.StringOutput `pulumi:"accountId"`
	// AWS account ID for the administrator account.
	AdministratorId pulumi.StringOutput `pulumi:"administratorId"`
	// If set to true, then the root user of the invited account will _not_ receive an email notification. This notification is in addition to an alert that the root user receives in AWS Personal Health Dashboard. By default, this is set to `false`.
	DisableEmailNotification pulumi.BoolPtrOutput `pulumi:"disableEmailNotification"`
	DisabledReason           pulumi.StringOutput  `pulumi:"disabledReason"`
	// Email address for the account.
	EmailAddress pulumi.StringOutput `pulumi:"emailAddress"`
	// ARN of the behavior graph to invite the member accounts to contribute their data to.
	GraphArn pulumi.StringOutput `pulumi:"graphArn"`
	// Date and time, in UTC and extended RFC 3339 format, when an Amazon Detective membership invitation was last sent to the account.
	InvitedTime pulumi.StringOutput `pulumi:"invitedTime"`
	// A custom message to include in the invitation. Amazon Detective adds this message to the standard content that it sends for an invitation.
	Message pulumi.StringPtrOutput `pulumi:"message"`
	// Current membership status of the member account.
	Status pulumi.StringOutput `pulumi:"status"`
	// Date and time, in UTC and extended RFC 3339 format, of the most recent change to the member account's status.
	UpdatedTime pulumi.StringOutput `pulumi:"updatedTime"`
	// Data volume in bytes per day for the member account.
	VolumeUsageInBytes pulumi.StringOutput `pulumi:"volumeUsageInBytes"`
}

Provides a resource to manage an [Amazon Detective Member](https://docs.aws.amazon.com/detective/latest/APIReference/API_CreateMembers.html).

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := detective.NewGraph(ctx, "example", nil)
		if err != nil {
			return err
		}
		_, err = detective.NewMember(ctx, "example", &detective.MemberArgs{
			AccountId:                pulumi.String("AWS ACCOUNT ID"),
			EmailAddress:             pulumi.String("EMAIL"),
			GraphArn:                 example.ID(),
			Message:                  pulumi.String("Message of the invitation"),
			DisableEmailNotification: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Using `pulumi import`, import `aws_detective_member` using the ARN of the graph followed by the account ID of the member account. For example:

```sh $ pulumi import aws:detective/member:Member example arn:aws:detective:us-east-1:123456789101:graph:231684d34gh74g4bae1dbc7bd807d02d/123456789012 ```

func GetMember

func GetMember(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *MemberState, opts ...pulumi.ResourceOption) (*Member, error)

GetMember gets an existing Member 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 NewMember

func NewMember(ctx *pulumi.Context,
	name string, args *MemberArgs, opts ...pulumi.ResourceOption) (*Member, error)

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

func (*Member) ElementType

func (*Member) ElementType() reflect.Type

func (*Member) ToMemberOutput

func (i *Member) ToMemberOutput() MemberOutput

func (*Member) ToMemberOutputWithContext

func (i *Member) ToMemberOutputWithContext(ctx context.Context) MemberOutput

type MemberArgs

type MemberArgs struct {
	// AWS account ID for the account.
	AccountId pulumi.StringInput
	// If set to true, then the root user of the invited account will _not_ receive an email notification. This notification is in addition to an alert that the root user receives in AWS Personal Health Dashboard. By default, this is set to `false`.
	DisableEmailNotification pulumi.BoolPtrInput
	// Email address for the account.
	EmailAddress pulumi.StringInput
	// ARN of the behavior graph to invite the member accounts to contribute their data to.
	GraphArn pulumi.StringInput
	// A custom message to include in the invitation. Amazon Detective adds this message to the standard content that it sends for an invitation.
	Message pulumi.StringPtrInput
}

The set of arguments for constructing a Member resource.

func (MemberArgs) ElementType

func (MemberArgs) ElementType() reflect.Type

type MemberArray

type MemberArray []MemberInput

func (MemberArray) ElementType

func (MemberArray) ElementType() reflect.Type

func (MemberArray) ToMemberArrayOutput

func (i MemberArray) ToMemberArrayOutput() MemberArrayOutput

func (MemberArray) ToMemberArrayOutputWithContext

func (i MemberArray) ToMemberArrayOutputWithContext(ctx context.Context) MemberArrayOutput

type MemberArrayInput

type MemberArrayInput interface {
	pulumi.Input

	ToMemberArrayOutput() MemberArrayOutput
	ToMemberArrayOutputWithContext(context.Context) MemberArrayOutput
}

MemberArrayInput is an input type that accepts MemberArray and MemberArrayOutput values. You can construct a concrete instance of `MemberArrayInput` via:

MemberArray{ MemberArgs{...} }

type MemberArrayOutput

type MemberArrayOutput struct{ *pulumi.OutputState }

func (MemberArrayOutput) ElementType

func (MemberArrayOutput) ElementType() reflect.Type

func (MemberArrayOutput) Index

func (MemberArrayOutput) ToMemberArrayOutput

func (o MemberArrayOutput) ToMemberArrayOutput() MemberArrayOutput

func (MemberArrayOutput) ToMemberArrayOutputWithContext

func (o MemberArrayOutput) ToMemberArrayOutputWithContext(ctx context.Context) MemberArrayOutput

type MemberInput

type MemberInput interface {
	pulumi.Input

	ToMemberOutput() MemberOutput
	ToMemberOutputWithContext(ctx context.Context) MemberOutput
}

type MemberMap

type MemberMap map[string]MemberInput

func (MemberMap) ElementType

func (MemberMap) ElementType() reflect.Type

func (MemberMap) ToMemberMapOutput

func (i MemberMap) ToMemberMapOutput() MemberMapOutput

func (MemberMap) ToMemberMapOutputWithContext

func (i MemberMap) ToMemberMapOutputWithContext(ctx context.Context) MemberMapOutput

type MemberMapInput

type MemberMapInput interface {
	pulumi.Input

	ToMemberMapOutput() MemberMapOutput
	ToMemberMapOutputWithContext(context.Context) MemberMapOutput
}

MemberMapInput is an input type that accepts MemberMap and MemberMapOutput values. You can construct a concrete instance of `MemberMapInput` via:

MemberMap{ "key": MemberArgs{...} }

type MemberMapOutput

type MemberMapOutput struct{ *pulumi.OutputState }

func (MemberMapOutput) ElementType

func (MemberMapOutput) ElementType() reflect.Type

func (MemberMapOutput) MapIndex

func (MemberMapOutput) ToMemberMapOutput

func (o MemberMapOutput) ToMemberMapOutput() MemberMapOutput

func (MemberMapOutput) ToMemberMapOutputWithContext

func (o MemberMapOutput) ToMemberMapOutputWithContext(ctx context.Context) MemberMapOutput

type MemberOutput

type MemberOutput struct{ *pulumi.OutputState }

func (MemberOutput) AccountId

func (o MemberOutput) AccountId() pulumi.StringOutput

AWS account ID for the account.

func (MemberOutput) AdministratorId

func (o MemberOutput) AdministratorId() pulumi.StringOutput

AWS account ID for the administrator account.

func (MemberOutput) DisableEmailNotification

func (o MemberOutput) DisableEmailNotification() pulumi.BoolPtrOutput

If set to true, then the root user of the invited account will _not_ receive an email notification. This notification is in addition to an alert that the root user receives in AWS Personal Health Dashboard. By default, this is set to `false`.

func (MemberOutput) DisabledReason

func (o MemberOutput) DisabledReason() pulumi.StringOutput

func (MemberOutput) ElementType

func (MemberOutput) ElementType() reflect.Type

func (MemberOutput) EmailAddress

func (o MemberOutput) EmailAddress() pulumi.StringOutput

Email address for the account.

func (MemberOutput) GraphArn

func (o MemberOutput) GraphArn() pulumi.StringOutput

ARN of the behavior graph to invite the member accounts to contribute their data to.

func (MemberOutput) InvitedTime

func (o MemberOutput) InvitedTime() pulumi.StringOutput

Date and time, in UTC and extended RFC 3339 format, when an Amazon Detective membership invitation was last sent to the account.

func (MemberOutput) Message

func (o MemberOutput) Message() pulumi.StringPtrOutput

A custom message to include in the invitation. Amazon Detective adds this message to the standard content that it sends for an invitation.

func (MemberOutput) Status

func (o MemberOutput) Status() pulumi.StringOutput

Current membership status of the member account.

func (MemberOutput) ToMemberOutput

func (o MemberOutput) ToMemberOutput() MemberOutput

func (MemberOutput) ToMemberOutputWithContext

func (o MemberOutput) ToMemberOutputWithContext(ctx context.Context) MemberOutput

func (MemberOutput) UpdatedTime

func (o MemberOutput) UpdatedTime() pulumi.StringOutput

Date and time, in UTC and extended RFC 3339 format, of the most recent change to the member account's status.

func (MemberOutput) VolumeUsageInBytes

func (o MemberOutput) VolumeUsageInBytes() pulumi.StringOutput

Data volume in bytes per day for the member account.

type MemberState

type MemberState struct {
	// AWS account ID for the account.
	AccountId pulumi.StringPtrInput
	// AWS account ID for the administrator account.
	AdministratorId pulumi.StringPtrInput
	// If set to true, then the root user of the invited account will _not_ receive an email notification. This notification is in addition to an alert that the root user receives in AWS Personal Health Dashboard. By default, this is set to `false`.
	DisableEmailNotification pulumi.BoolPtrInput
	DisabledReason           pulumi.StringPtrInput
	// Email address for the account.
	EmailAddress pulumi.StringPtrInput
	// ARN of the behavior graph to invite the member accounts to contribute their data to.
	GraphArn pulumi.StringPtrInput
	// Date and time, in UTC and extended RFC 3339 format, when an Amazon Detective membership invitation was last sent to the account.
	InvitedTime pulumi.StringPtrInput
	// A custom message to include in the invitation. Amazon Detective adds this message to the standard content that it sends for an invitation.
	Message pulumi.StringPtrInput
	// Current membership status of the member account.
	Status pulumi.StringPtrInput
	// Date and time, in UTC and extended RFC 3339 format, of the most recent change to the member account's status.
	UpdatedTime pulumi.StringPtrInput
	// Data volume in bytes per day for the member account.
	VolumeUsageInBytes pulumi.StringPtrInput
}

func (MemberState) ElementType

func (MemberState) ElementType() reflect.Type

type OrganizationAdminAccount added in v6.8.0

type OrganizationAdminAccount struct {
	pulumi.CustomResourceState

	// AWS account identifier to designate as a delegated administrator for Detective.
	AccountId pulumi.StringOutput `pulumi:"accountId"`
}

Manages a Detective Organization Admin Account. The AWS account utilizing this resource must be an Organizations primary account. More information about Organizations support in Detective can be found in the [Detective User Guide](https://docs.aws.amazon.com/detective/latest/adminguide/accounts-orgs-transition.html).

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/detective"
"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("detective.amazonaws.com"),
			},
			FeatureSet: pulumi.String("ALL"),
		})
		if err != nil {
			return err
		}
		_, err = detective.NewOrganizationAdminAccount(ctx, "example", &detective.OrganizationAdminAccountArgs{
			AccountId: pulumi.String("123456789012"),
		}, pulumi.DependsOn([]pulumi.Resource{
			example,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Using `pulumi import`, import `aws_detective_organization_admin_account` using `account_id`. For example:

```sh $ pulumi import aws:detective/organizationAdminAccount:OrganizationAdminAccount example 123456789012 ```

func GetOrganizationAdminAccount added in v6.8.0

func GetOrganizationAdminAccount(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *OrganizationAdminAccountState, opts ...pulumi.ResourceOption) (*OrganizationAdminAccount, error)

GetOrganizationAdminAccount gets an existing OrganizationAdminAccount 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 NewOrganizationAdminAccount added in v6.8.0

func NewOrganizationAdminAccount(ctx *pulumi.Context,
	name string, args *OrganizationAdminAccountArgs, opts ...pulumi.ResourceOption) (*OrganizationAdminAccount, error)

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

func (*OrganizationAdminAccount) ElementType added in v6.8.0

func (*OrganizationAdminAccount) ElementType() reflect.Type

func (*OrganizationAdminAccount) ToOrganizationAdminAccountOutput added in v6.8.0

func (i *OrganizationAdminAccount) ToOrganizationAdminAccountOutput() OrganizationAdminAccountOutput

func (*OrganizationAdminAccount) ToOrganizationAdminAccountOutputWithContext added in v6.8.0

func (i *OrganizationAdminAccount) ToOrganizationAdminAccountOutputWithContext(ctx context.Context) OrganizationAdminAccountOutput

type OrganizationAdminAccountArgs added in v6.8.0

type OrganizationAdminAccountArgs struct {
	// AWS account identifier to designate as a delegated administrator for Detective.
	AccountId pulumi.StringInput
}

The set of arguments for constructing a OrganizationAdminAccount resource.

func (OrganizationAdminAccountArgs) ElementType added in v6.8.0

type OrganizationAdminAccountArray added in v6.8.0

type OrganizationAdminAccountArray []OrganizationAdminAccountInput

func (OrganizationAdminAccountArray) ElementType added in v6.8.0

func (OrganizationAdminAccountArray) ToOrganizationAdminAccountArrayOutput added in v6.8.0

func (i OrganizationAdminAccountArray) ToOrganizationAdminAccountArrayOutput() OrganizationAdminAccountArrayOutput

func (OrganizationAdminAccountArray) ToOrganizationAdminAccountArrayOutputWithContext added in v6.8.0

func (i OrganizationAdminAccountArray) ToOrganizationAdminAccountArrayOutputWithContext(ctx context.Context) OrganizationAdminAccountArrayOutput

type OrganizationAdminAccountArrayInput added in v6.8.0

type OrganizationAdminAccountArrayInput interface {
	pulumi.Input

	ToOrganizationAdminAccountArrayOutput() OrganizationAdminAccountArrayOutput
	ToOrganizationAdminAccountArrayOutputWithContext(context.Context) OrganizationAdminAccountArrayOutput
}

OrganizationAdminAccountArrayInput is an input type that accepts OrganizationAdminAccountArray and OrganizationAdminAccountArrayOutput values. You can construct a concrete instance of `OrganizationAdminAccountArrayInput` via:

OrganizationAdminAccountArray{ OrganizationAdminAccountArgs{...} }

type OrganizationAdminAccountArrayOutput added in v6.8.0

type OrganizationAdminAccountArrayOutput struct{ *pulumi.OutputState }

func (OrganizationAdminAccountArrayOutput) ElementType added in v6.8.0

func (OrganizationAdminAccountArrayOutput) Index added in v6.8.0

func (OrganizationAdminAccountArrayOutput) ToOrganizationAdminAccountArrayOutput added in v6.8.0

func (o OrganizationAdminAccountArrayOutput) ToOrganizationAdminAccountArrayOutput() OrganizationAdminAccountArrayOutput

func (OrganizationAdminAccountArrayOutput) ToOrganizationAdminAccountArrayOutputWithContext added in v6.8.0

func (o OrganizationAdminAccountArrayOutput) ToOrganizationAdminAccountArrayOutputWithContext(ctx context.Context) OrganizationAdminAccountArrayOutput

type OrganizationAdminAccountInput added in v6.8.0

type OrganizationAdminAccountInput interface {
	pulumi.Input

	ToOrganizationAdminAccountOutput() OrganizationAdminAccountOutput
	ToOrganizationAdminAccountOutputWithContext(ctx context.Context) OrganizationAdminAccountOutput
}

type OrganizationAdminAccountMap added in v6.8.0

type OrganizationAdminAccountMap map[string]OrganizationAdminAccountInput

func (OrganizationAdminAccountMap) ElementType added in v6.8.0

func (OrganizationAdminAccountMap) ToOrganizationAdminAccountMapOutput added in v6.8.0

func (i OrganizationAdminAccountMap) ToOrganizationAdminAccountMapOutput() OrganizationAdminAccountMapOutput

func (OrganizationAdminAccountMap) ToOrganizationAdminAccountMapOutputWithContext added in v6.8.0

func (i OrganizationAdminAccountMap) ToOrganizationAdminAccountMapOutputWithContext(ctx context.Context) OrganizationAdminAccountMapOutput

type OrganizationAdminAccountMapInput added in v6.8.0

type OrganizationAdminAccountMapInput interface {
	pulumi.Input

	ToOrganizationAdminAccountMapOutput() OrganizationAdminAccountMapOutput
	ToOrganizationAdminAccountMapOutputWithContext(context.Context) OrganizationAdminAccountMapOutput
}

OrganizationAdminAccountMapInput is an input type that accepts OrganizationAdminAccountMap and OrganizationAdminAccountMapOutput values. You can construct a concrete instance of `OrganizationAdminAccountMapInput` via:

OrganizationAdminAccountMap{ "key": OrganizationAdminAccountArgs{...} }

type OrganizationAdminAccountMapOutput added in v6.8.0

type OrganizationAdminAccountMapOutput struct{ *pulumi.OutputState }

func (OrganizationAdminAccountMapOutput) ElementType added in v6.8.0

func (OrganizationAdminAccountMapOutput) MapIndex added in v6.8.0

func (OrganizationAdminAccountMapOutput) ToOrganizationAdminAccountMapOutput added in v6.8.0

func (o OrganizationAdminAccountMapOutput) ToOrganizationAdminAccountMapOutput() OrganizationAdminAccountMapOutput

func (OrganizationAdminAccountMapOutput) ToOrganizationAdminAccountMapOutputWithContext added in v6.8.0

func (o OrganizationAdminAccountMapOutput) ToOrganizationAdminAccountMapOutputWithContext(ctx context.Context) OrganizationAdminAccountMapOutput

type OrganizationAdminAccountOutput added in v6.8.0

type OrganizationAdminAccountOutput struct{ *pulumi.OutputState }

func (OrganizationAdminAccountOutput) AccountId added in v6.8.0

AWS account identifier to designate as a delegated administrator for Detective.

func (OrganizationAdminAccountOutput) ElementType added in v6.8.0

func (OrganizationAdminAccountOutput) ToOrganizationAdminAccountOutput added in v6.8.0

func (o OrganizationAdminAccountOutput) ToOrganizationAdminAccountOutput() OrganizationAdminAccountOutput

func (OrganizationAdminAccountOutput) ToOrganizationAdminAccountOutputWithContext added in v6.8.0

func (o OrganizationAdminAccountOutput) ToOrganizationAdminAccountOutputWithContext(ctx context.Context) OrganizationAdminAccountOutput

type OrganizationAdminAccountState added in v6.8.0

type OrganizationAdminAccountState struct {
	// AWS account identifier to designate as a delegated administrator for Detective.
	AccountId pulumi.StringPtrInput
}

func (OrganizationAdminAccountState) ElementType added in v6.8.0

type OrganizationConfiguration added in v6.8.0

type OrganizationConfiguration struct {
	pulumi.CustomResourceState

	// When this setting is enabled, all new accounts that are created in, or added to, the organization are added as a member accounts of the organization’s Detective delegated administrator and Detective is enabled in that AWS Region.
	AutoEnable pulumi.BoolOutput `pulumi:"autoEnable"`
	// ARN of the behavior graph.
	GraphArn pulumi.StringOutput `pulumi:"graphArn"`
}

## Example Usage

## Import

Using `pulumi import`, import `aws_detective_organization_admin_account` using the Detective Graph ID. For example:

```sh $ pulumi import aws:detective/organizationConfiguration:OrganizationConfiguration example 00b00fd5aecc0ab60a708659477e9617 ```

func GetOrganizationConfiguration added in v6.8.0

func GetOrganizationConfiguration(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *OrganizationConfigurationState, opts ...pulumi.ResourceOption) (*OrganizationConfiguration, error)

GetOrganizationConfiguration gets an existing OrganizationConfiguration 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 NewOrganizationConfiguration added in v6.8.0

func NewOrganizationConfiguration(ctx *pulumi.Context,
	name string, args *OrganizationConfigurationArgs, opts ...pulumi.ResourceOption) (*OrganizationConfiguration, error)

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

func (*OrganizationConfiguration) ElementType added in v6.8.0

func (*OrganizationConfiguration) ElementType() reflect.Type

func (*OrganizationConfiguration) ToOrganizationConfigurationOutput added in v6.8.0

func (i *OrganizationConfiguration) ToOrganizationConfigurationOutput() OrganizationConfigurationOutput

func (*OrganizationConfiguration) ToOrganizationConfigurationOutputWithContext added in v6.8.0

func (i *OrganizationConfiguration) ToOrganizationConfigurationOutputWithContext(ctx context.Context) OrganizationConfigurationOutput

type OrganizationConfigurationArgs added in v6.8.0

type OrganizationConfigurationArgs struct {
	// When this setting is enabled, all new accounts that are created in, or added to, the organization are added as a member accounts of the organization’s Detective delegated administrator and Detective is enabled in that AWS Region.
	AutoEnable pulumi.BoolInput
	// ARN of the behavior graph.
	GraphArn pulumi.StringInput
}

The set of arguments for constructing a OrganizationConfiguration resource.

func (OrganizationConfigurationArgs) ElementType added in v6.8.0

type OrganizationConfigurationArray added in v6.8.0

type OrganizationConfigurationArray []OrganizationConfigurationInput

func (OrganizationConfigurationArray) ElementType added in v6.8.0

func (OrganizationConfigurationArray) ToOrganizationConfigurationArrayOutput added in v6.8.0

func (i OrganizationConfigurationArray) ToOrganizationConfigurationArrayOutput() OrganizationConfigurationArrayOutput

func (OrganizationConfigurationArray) ToOrganizationConfigurationArrayOutputWithContext added in v6.8.0

func (i OrganizationConfigurationArray) ToOrganizationConfigurationArrayOutputWithContext(ctx context.Context) OrganizationConfigurationArrayOutput

type OrganizationConfigurationArrayInput added in v6.8.0

type OrganizationConfigurationArrayInput interface {
	pulumi.Input

	ToOrganizationConfigurationArrayOutput() OrganizationConfigurationArrayOutput
	ToOrganizationConfigurationArrayOutputWithContext(context.Context) OrganizationConfigurationArrayOutput
}

OrganizationConfigurationArrayInput is an input type that accepts OrganizationConfigurationArray and OrganizationConfigurationArrayOutput values. You can construct a concrete instance of `OrganizationConfigurationArrayInput` via:

OrganizationConfigurationArray{ OrganizationConfigurationArgs{...} }

type OrganizationConfigurationArrayOutput added in v6.8.0

type OrganizationConfigurationArrayOutput struct{ *pulumi.OutputState }

func (OrganizationConfigurationArrayOutput) ElementType added in v6.8.0

func (OrganizationConfigurationArrayOutput) Index added in v6.8.0

func (OrganizationConfigurationArrayOutput) ToOrganizationConfigurationArrayOutput added in v6.8.0

func (o OrganizationConfigurationArrayOutput) ToOrganizationConfigurationArrayOutput() OrganizationConfigurationArrayOutput

func (OrganizationConfigurationArrayOutput) ToOrganizationConfigurationArrayOutputWithContext added in v6.8.0

func (o OrganizationConfigurationArrayOutput) ToOrganizationConfigurationArrayOutputWithContext(ctx context.Context) OrganizationConfigurationArrayOutput

type OrganizationConfigurationInput added in v6.8.0

type OrganizationConfigurationInput interface {
	pulumi.Input

	ToOrganizationConfigurationOutput() OrganizationConfigurationOutput
	ToOrganizationConfigurationOutputWithContext(ctx context.Context) OrganizationConfigurationOutput
}

type OrganizationConfigurationMap added in v6.8.0

type OrganizationConfigurationMap map[string]OrganizationConfigurationInput

func (OrganizationConfigurationMap) ElementType added in v6.8.0

func (OrganizationConfigurationMap) ToOrganizationConfigurationMapOutput added in v6.8.0

func (i OrganizationConfigurationMap) ToOrganizationConfigurationMapOutput() OrganizationConfigurationMapOutput

func (OrganizationConfigurationMap) ToOrganizationConfigurationMapOutputWithContext added in v6.8.0

func (i OrganizationConfigurationMap) ToOrganizationConfigurationMapOutputWithContext(ctx context.Context) OrganizationConfigurationMapOutput

type OrganizationConfigurationMapInput added in v6.8.0

type OrganizationConfigurationMapInput interface {
	pulumi.Input

	ToOrganizationConfigurationMapOutput() OrganizationConfigurationMapOutput
	ToOrganizationConfigurationMapOutputWithContext(context.Context) OrganizationConfigurationMapOutput
}

OrganizationConfigurationMapInput is an input type that accepts OrganizationConfigurationMap and OrganizationConfigurationMapOutput values. You can construct a concrete instance of `OrganizationConfigurationMapInput` via:

OrganizationConfigurationMap{ "key": OrganizationConfigurationArgs{...} }

type OrganizationConfigurationMapOutput added in v6.8.0

type OrganizationConfigurationMapOutput struct{ *pulumi.OutputState }

func (OrganizationConfigurationMapOutput) ElementType added in v6.8.0

func (OrganizationConfigurationMapOutput) MapIndex added in v6.8.0

func (OrganizationConfigurationMapOutput) ToOrganizationConfigurationMapOutput added in v6.8.0

func (o OrganizationConfigurationMapOutput) ToOrganizationConfigurationMapOutput() OrganizationConfigurationMapOutput

func (OrganizationConfigurationMapOutput) ToOrganizationConfigurationMapOutputWithContext added in v6.8.0

func (o OrganizationConfigurationMapOutput) ToOrganizationConfigurationMapOutputWithContext(ctx context.Context) OrganizationConfigurationMapOutput

type OrganizationConfigurationOutput added in v6.8.0

type OrganizationConfigurationOutput struct{ *pulumi.OutputState }

func (OrganizationConfigurationOutput) AutoEnable added in v6.8.0

When this setting is enabled, all new accounts that are created in, or added to, the organization are added as a member accounts of the organization’s Detective delegated administrator and Detective is enabled in that AWS Region.

func (OrganizationConfigurationOutput) ElementType added in v6.8.0

func (OrganizationConfigurationOutput) GraphArn added in v6.8.0

ARN of the behavior graph.

func (OrganizationConfigurationOutput) ToOrganizationConfigurationOutput added in v6.8.0

func (o OrganizationConfigurationOutput) ToOrganizationConfigurationOutput() OrganizationConfigurationOutput

func (OrganizationConfigurationOutput) ToOrganizationConfigurationOutputWithContext added in v6.8.0

func (o OrganizationConfigurationOutput) ToOrganizationConfigurationOutputWithContext(ctx context.Context) OrganizationConfigurationOutput

type OrganizationConfigurationState added in v6.8.0

type OrganizationConfigurationState struct {
	// When this setting is enabled, all new accounts that are created in, or added to, the organization are added as a member accounts of the organization’s Detective delegated administrator and Detective is enabled in that AWS Region.
	AutoEnable pulumi.BoolPtrInput
	// ARN of the behavior graph.
	GraphArn pulumi.StringPtrInput
}

func (OrganizationConfigurationState) ElementType added in v6.8.0

Jump to

Keyboard shortcuts

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