detective

package
v4.38.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 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"`
	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

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v4/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
	})
}

```

## Import

`aws_detective_graph` can be imported using the ARN, e.g.

```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
	TagsAll 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) ElementType

func (GraphOutput) ElementType() reflect.Type

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
	TagsAll pulumi.StringMapInput
}

func (GraphState) ElementType

func (GraphState) ElementType() reflect.Type

type InvitationAccepter added in v4.36.0

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.

## Import

`aws_detective_invitation_accepter` can be imported using the graph ARN, e.g.

```sh

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

```

func GetInvitationAccepter added in v4.36.0

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 added in v4.36.0

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 added in v4.36.0

func (*InvitationAccepter) ElementType() reflect.Type

func (*InvitationAccepter) ToInvitationAccepterOutput added in v4.36.0

func (i *InvitationAccepter) ToInvitationAccepterOutput() InvitationAccepterOutput

func (*InvitationAccepter) ToInvitationAccepterOutputWithContext added in v4.36.0

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

type InvitationAccepterArgs added in v4.36.0

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 added in v4.36.0

func (InvitationAccepterArgs) ElementType() reflect.Type

type InvitationAccepterArray added in v4.36.0

type InvitationAccepterArray []InvitationAccepterInput

func (InvitationAccepterArray) ElementType added in v4.36.0

func (InvitationAccepterArray) ElementType() reflect.Type

func (InvitationAccepterArray) ToInvitationAccepterArrayOutput added in v4.36.0

func (i InvitationAccepterArray) ToInvitationAccepterArrayOutput() InvitationAccepterArrayOutput

func (InvitationAccepterArray) ToInvitationAccepterArrayOutputWithContext added in v4.36.0

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

type InvitationAccepterArrayInput added in v4.36.0

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 added in v4.36.0

type InvitationAccepterArrayOutput struct{ *pulumi.OutputState }

func (InvitationAccepterArrayOutput) ElementType added in v4.36.0

func (InvitationAccepterArrayOutput) Index added in v4.36.0

func (InvitationAccepterArrayOutput) ToInvitationAccepterArrayOutput added in v4.36.0

func (o InvitationAccepterArrayOutput) ToInvitationAccepterArrayOutput() InvitationAccepterArrayOutput

func (InvitationAccepterArrayOutput) ToInvitationAccepterArrayOutputWithContext added in v4.36.0

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

type InvitationAccepterInput added in v4.36.0

type InvitationAccepterInput interface {
	pulumi.Input

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

type InvitationAccepterMap added in v4.36.0

type InvitationAccepterMap map[string]InvitationAccepterInput

func (InvitationAccepterMap) ElementType added in v4.36.0

func (InvitationAccepterMap) ElementType() reflect.Type

func (InvitationAccepterMap) ToInvitationAccepterMapOutput added in v4.36.0

func (i InvitationAccepterMap) ToInvitationAccepterMapOutput() InvitationAccepterMapOutput

func (InvitationAccepterMap) ToInvitationAccepterMapOutputWithContext added in v4.36.0

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

type InvitationAccepterMapInput added in v4.36.0

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 added in v4.36.0

type InvitationAccepterMapOutput struct{ *pulumi.OutputState }

func (InvitationAccepterMapOutput) ElementType added in v4.36.0

func (InvitationAccepterMapOutput) MapIndex added in v4.36.0

func (InvitationAccepterMapOutput) ToInvitationAccepterMapOutput added in v4.36.0

func (o InvitationAccepterMapOutput) ToInvitationAccepterMapOutput() InvitationAccepterMapOutput

func (InvitationAccepterMapOutput) ToInvitationAccepterMapOutputWithContext added in v4.36.0

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

type InvitationAccepterOutput added in v4.36.0

type InvitationAccepterOutput struct{ *pulumi.OutputState }

func (InvitationAccepterOutput) ElementType added in v4.36.0

func (InvitationAccepterOutput) ElementType() reflect.Type

func (InvitationAccepterOutput) ToInvitationAccepterOutput added in v4.36.0

func (o InvitationAccepterOutput) ToInvitationAccepterOutput() InvitationAccepterOutput

func (InvitationAccepterOutput) ToInvitationAccepterOutputWithContext added in v4.36.0

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

type InvitationAccepterState added in v4.36.0

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

func (InvitationAccepterState) ElementType added in v4.36.0

func (InvitationAccepterState) ElementType() reflect.Type

type Member added in v4.36.0

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).

## Import

`aws_detective_member` can be imported using the ARN of the graph followed by the account ID of the member account, e.g.

```sh

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

```

func GetMember added in v4.36.0

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 added in v4.36.0

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 added in v4.36.0

func (*Member) ElementType() reflect.Type

func (*Member) ToMemberOutput added in v4.36.0

func (i *Member) ToMemberOutput() MemberOutput

func (*Member) ToMemberOutputWithContext added in v4.36.0

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

type MemberArgs added in v4.36.0

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 added in v4.36.0

func (MemberArgs) ElementType() reflect.Type

type MemberArray added in v4.36.0

type MemberArray []MemberInput

func (MemberArray) ElementType added in v4.36.0

func (MemberArray) ElementType() reflect.Type

func (MemberArray) ToMemberArrayOutput added in v4.36.0

func (i MemberArray) ToMemberArrayOutput() MemberArrayOutput

func (MemberArray) ToMemberArrayOutputWithContext added in v4.36.0

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

type MemberArrayInput added in v4.36.0

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 added in v4.36.0

type MemberArrayOutput struct{ *pulumi.OutputState }

func (MemberArrayOutput) ElementType added in v4.36.0

func (MemberArrayOutput) ElementType() reflect.Type

func (MemberArrayOutput) Index added in v4.36.0

func (MemberArrayOutput) ToMemberArrayOutput added in v4.36.0

func (o MemberArrayOutput) ToMemberArrayOutput() MemberArrayOutput

func (MemberArrayOutput) ToMemberArrayOutputWithContext added in v4.36.0

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

type MemberInput added in v4.36.0

type MemberInput interface {
	pulumi.Input

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

type MemberMap added in v4.36.0

type MemberMap map[string]MemberInput

func (MemberMap) ElementType added in v4.36.0

func (MemberMap) ElementType() reflect.Type

func (MemberMap) ToMemberMapOutput added in v4.36.0

func (i MemberMap) ToMemberMapOutput() MemberMapOutput

func (MemberMap) ToMemberMapOutputWithContext added in v4.36.0

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

type MemberMapInput added in v4.36.0

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 added in v4.36.0

type MemberMapOutput struct{ *pulumi.OutputState }

func (MemberMapOutput) ElementType added in v4.36.0

func (MemberMapOutput) ElementType() reflect.Type

func (MemberMapOutput) MapIndex added in v4.36.0

func (MemberMapOutput) ToMemberMapOutput added in v4.36.0

func (o MemberMapOutput) ToMemberMapOutput() MemberMapOutput

func (MemberMapOutput) ToMemberMapOutputWithContext added in v4.36.0

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

type MemberOutput added in v4.36.0

type MemberOutput struct{ *pulumi.OutputState }

func (MemberOutput) ElementType added in v4.36.0

func (MemberOutput) ElementType() reflect.Type

func (MemberOutput) ToMemberOutput added in v4.36.0

func (o MemberOutput) ToMemberOutput() MemberOutput

func (MemberOutput) ToMemberOutputWithContext added in v4.36.0

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

type MemberState added in v4.36.0

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 added in v4.36.0

func (MemberState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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