securityhub

package
v3.34.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 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 Account

type Account struct {
	pulumi.CustomResourceState
}

Enables Security Hub for this AWS account.

> **NOTE:** Destroying this resource will disable Security Hub for this AWS account.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v3/go/aws/securityhub"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := securityhub.NewAccount(ctx, "example", nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

An existing Security Hub enabled account can be imported using the AWS account ID, e.g.

```sh

$ pulumi import aws:securityhub/account:Account example 123456789012

```

func GetAccount

func GetAccount(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AccountState, opts ...pulumi.ResourceOption) (*Account, error)

GetAccount gets an existing Account 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 NewAccount

func NewAccount(ctx *pulumi.Context,
	name string, args *AccountArgs, opts ...pulumi.ResourceOption) (*Account, error)

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

func (*Account) ElementType added in v3.13.0

func (*Account) ElementType() reflect.Type

func (*Account) ToAccountOutput added in v3.13.0

func (i *Account) ToAccountOutput() AccountOutput

func (*Account) ToAccountOutputWithContext added in v3.13.0

func (i *Account) ToAccountOutputWithContext(ctx context.Context) AccountOutput

func (*Account) ToAccountPtrOutput added in v3.25.0

func (i *Account) ToAccountPtrOutput() AccountPtrOutput

func (*Account) ToAccountPtrOutputWithContext added in v3.25.0

func (i *Account) ToAccountPtrOutputWithContext(ctx context.Context) AccountPtrOutput

type AccountArgs

type AccountArgs struct {
}

The set of arguments for constructing a Account resource.

func (AccountArgs) ElementType

func (AccountArgs) ElementType() reflect.Type

type AccountArray added in v3.25.0

type AccountArray []AccountInput

func (AccountArray) ElementType added in v3.25.0

func (AccountArray) ElementType() reflect.Type

func (AccountArray) ToAccountArrayOutput added in v3.25.0

func (i AccountArray) ToAccountArrayOutput() AccountArrayOutput

func (AccountArray) ToAccountArrayOutputWithContext added in v3.25.0

func (i AccountArray) ToAccountArrayOutputWithContext(ctx context.Context) AccountArrayOutput

type AccountArrayInput added in v3.25.0

type AccountArrayInput interface {
	pulumi.Input

	ToAccountArrayOutput() AccountArrayOutput
	ToAccountArrayOutputWithContext(context.Context) AccountArrayOutput
}

AccountArrayInput is an input type that accepts AccountArray and AccountArrayOutput values. You can construct a concrete instance of `AccountArrayInput` via:

AccountArray{ AccountArgs{...} }

type AccountArrayOutput added in v3.25.0

type AccountArrayOutput struct{ *pulumi.OutputState }

func (AccountArrayOutput) ElementType added in v3.25.0

func (AccountArrayOutput) ElementType() reflect.Type

func (AccountArrayOutput) Index added in v3.25.0

func (AccountArrayOutput) ToAccountArrayOutput added in v3.25.0

func (o AccountArrayOutput) ToAccountArrayOutput() AccountArrayOutput

func (AccountArrayOutput) ToAccountArrayOutputWithContext added in v3.25.0

func (o AccountArrayOutput) ToAccountArrayOutputWithContext(ctx context.Context) AccountArrayOutput

type AccountInput added in v3.13.0

type AccountInput interface {
	pulumi.Input

	ToAccountOutput() AccountOutput
	ToAccountOutputWithContext(ctx context.Context) AccountOutput
}

type AccountMap added in v3.25.0

type AccountMap map[string]AccountInput

func (AccountMap) ElementType added in v3.25.0

func (AccountMap) ElementType() reflect.Type

func (AccountMap) ToAccountMapOutput added in v3.25.0

func (i AccountMap) ToAccountMapOutput() AccountMapOutput

func (AccountMap) ToAccountMapOutputWithContext added in v3.25.0

func (i AccountMap) ToAccountMapOutputWithContext(ctx context.Context) AccountMapOutput

type AccountMapInput added in v3.25.0

type AccountMapInput interface {
	pulumi.Input

	ToAccountMapOutput() AccountMapOutput
	ToAccountMapOutputWithContext(context.Context) AccountMapOutput
}

AccountMapInput is an input type that accepts AccountMap and AccountMapOutput values. You can construct a concrete instance of `AccountMapInput` via:

AccountMap{ "key": AccountArgs{...} }

type AccountMapOutput added in v3.25.0

type AccountMapOutput struct{ *pulumi.OutputState }

func (AccountMapOutput) ElementType added in v3.25.0

func (AccountMapOutput) ElementType() reflect.Type

func (AccountMapOutput) MapIndex added in v3.25.0

func (AccountMapOutput) ToAccountMapOutput added in v3.25.0

func (o AccountMapOutput) ToAccountMapOutput() AccountMapOutput

func (AccountMapOutput) ToAccountMapOutputWithContext added in v3.25.0

func (o AccountMapOutput) ToAccountMapOutputWithContext(ctx context.Context) AccountMapOutput

type AccountOutput added in v3.13.0

type AccountOutput struct {
	*pulumi.OutputState
}

func (AccountOutput) ElementType added in v3.13.0

func (AccountOutput) ElementType() reflect.Type

func (AccountOutput) ToAccountOutput added in v3.13.0

func (o AccountOutput) ToAccountOutput() AccountOutput

func (AccountOutput) ToAccountOutputWithContext added in v3.13.0

func (o AccountOutput) ToAccountOutputWithContext(ctx context.Context) AccountOutput

func (AccountOutput) ToAccountPtrOutput added in v3.25.0

func (o AccountOutput) ToAccountPtrOutput() AccountPtrOutput

func (AccountOutput) ToAccountPtrOutputWithContext added in v3.25.0

func (o AccountOutput) ToAccountPtrOutputWithContext(ctx context.Context) AccountPtrOutput

type AccountPtrInput added in v3.25.0

type AccountPtrInput interface {
	pulumi.Input

	ToAccountPtrOutput() AccountPtrOutput
	ToAccountPtrOutputWithContext(ctx context.Context) AccountPtrOutput
}

type AccountPtrOutput added in v3.25.0

type AccountPtrOutput struct {
	*pulumi.OutputState
}

func (AccountPtrOutput) ElementType added in v3.25.0

func (AccountPtrOutput) ElementType() reflect.Type

func (AccountPtrOutput) ToAccountPtrOutput added in v3.25.0

func (o AccountPtrOutput) ToAccountPtrOutput() AccountPtrOutput

func (AccountPtrOutput) ToAccountPtrOutputWithContext added in v3.25.0

func (o AccountPtrOutput) ToAccountPtrOutputWithContext(ctx context.Context) AccountPtrOutput

type AccountState

type AccountState struct {
}

func (AccountState) ElementType

func (AccountState) ElementType() reflect.Type

type ActionTarget added in v3.3.0

type ActionTarget struct {
	pulumi.CustomResourceState

	// Amazon Resource Name (ARN) of the Security Hub custom action target.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// The name of the custom action target.
	Description pulumi.StringOutput `pulumi:"description"`
	// The ID for the custom action target.
	Identifier pulumi.StringOutput `pulumi:"identifier"`
	// The description for the custom action target.
	Name pulumi.StringOutput `pulumi:"name"`
}

Creates Security Hub custom action.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v3/go/aws/securityhub"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleAccount, err := securityhub.NewAccount(ctx, "exampleAccount", nil)
		if err != nil {
			return err
		}
		_, err = securityhub.NewActionTarget(ctx, "exampleActionTarget", &securityhub.ActionTargetArgs{
			Identifier:  pulumi.String("SendToChat"),
			Description: pulumi.String("This is custom action sends selected findings to chat"),
		}, pulumi.DependsOn([]pulumi.Resource{
			exampleAccount,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Security Hub custom action can be imported using the action target ARN e.g.

```sh

$ pulumi import aws:securityhub/actionTarget:ActionTarget example arn:aws:securityhub:eu-west-1:312940875350:action/custom/a

```

func GetActionTarget added in v3.3.0

func GetActionTarget(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ActionTargetState, opts ...pulumi.ResourceOption) (*ActionTarget, error)

GetActionTarget gets an existing ActionTarget 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 NewActionTarget added in v3.3.0

func NewActionTarget(ctx *pulumi.Context,
	name string, args *ActionTargetArgs, opts ...pulumi.ResourceOption) (*ActionTarget, error)

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

func (*ActionTarget) ElementType added in v3.13.0

func (*ActionTarget) ElementType() reflect.Type

func (*ActionTarget) ToActionTargetOutput added in v3.13.0

func (i *ActionTarget) ToActionTargetOutput() ActionTargetOutput

func (*ActionTarget) ToActionTargetOutputWithContext added in v3.13.0

func (i *ActionTarget) ToActionTargetOutputWithContext(ctx context.Context) ActionTargetOutput

func (*ActionTarget) ToActionTargetPtrOutput added in v3.25.0

func (i *ActionTarget) ToActionTargetPtrOutput() ActionTargetPtrOutput

func (*ActionTarget) ToActionTargetPtrOutputWithContext added in v3.25.0

func (i *ActionTarget) ToActionTargetPtrOutputWithContext(ctx context.Context) ActionTargetPtrOutput

type ActionTargetArgs added in v3.3.0

type ActionTargetArgs struct {
	// The name of the custom action target.
	Description pulumi.StringInput
	// The ID for the custom action target.
	Identifier pulumi.StringInput
	// The description for the custom action target.
	Name pulumi.StringPtrInput
}

The set of arguments for constructing a ActionTarget resource.

func (ActionTargetArgs) ElementType added in v3.3.0

func (ActionTargetArgs) ElementType() reflect.Type

type ActionTargetArray added in v3.25.0

type ActionTargetArray []ActionTargetInput

func (ActionTargetArray) ElementType added in v3.25.0

func (ActionTargetArray) ElementType() reflect.Type

func (ActionTargetArray) ToActionTargetArrayOutput added in v3.25.0

func (i ActionTargetArray) ToActionTargetArrayOutput() ActionTargetArrayOutput

func (ActionTargetArray) ToActionTargetArrayOutputWithContext added in v3.25.0

func (i ActionTargetArray) ToActionTargetArrayOutputWithContext(ctx context.Context) ActionTargetArrayOutput

type ActionTargetArrayInput added in v3.25.0

type ActionTargetArrayInput interface {
	pulumi.Input

	ToActionTargetArrayOutput() ActionTargetArrayOutput
	ToActionTargetArrayOutputWithContext(context.Context) ActionTargetArrayOutput
}

ActionTargetArrayInput is an input type that accepts ActionTargetArray and ActionTargetArrayOutput values. You can construct a concrete instance of `ActionTargetArrayInput` via:

ActionTargetArray{ ActionTargetArgs{...} }

type ActionTargetArrayOutput added in v3.25.0

type ActionTargetArrayOutput struct{ *pulumi.OutputState }

func (ActionTargetArrayOutput) ElementType added in v3.25.0

func (ActionTargetArrayOutput) ElementType() reflect.Type

func (ActionTargetArrayOutput) Index added in v3.25.0

func (ActionTargetArrayOutput) ToActionTargetArrayOutput added in v3.25.0

func (o ActionTargetArrayOutput) ToActionTargetArrayOutput() ActionTargetArrayOutput

func (ActionTargetArrayOutput) ToActionTargetArrayOutputWithContext added in v3.25.0

func (o ActionTargetArrayOutput) ToActionTargetArrayOutputWithContext(ctx context.Context) ActionTargetArrayOutput

type ActionTargetInput added in v3.13.0

type ActionTargetInput interface {
	pulumi.Input

	ToActionTargetOutput() ActionTargetOutput
	ToActionTargetOutputWithContext(ctx context.Context) ActionTargetOutput
}

type ActionTargetMap added in v3.25.0

type ActionTargetMap map[string]ActionTargetInput

func (ActionTargetMap) ElementType added in v3.25.0

func (ActionTargetMap) ElementType() reflect.Type

func (ActionTargetMap) ToActionTargetMapOutput added in v3.25.0

func (i ActionTargetMap) ToActionTargetMapOutput() ActionTargetMapOutput

func (ActionTargetMap) ToActionTargetMapOutputWithContext added in v3.25.0

func (i ActionTargetMap) ToActionTargetMapOutputWithContext(ctx context.Context) ActionTargetMapOutput

type ActionTargetMapInput added in v3.25.0

type ActionTargetMapInput interface {
	pulumi.Input

	ToActionTargetMapOutput() ActionTargetMapOutput
	ToActionTargetMapOutputWithContext(context.Context) ActionTargetMapOutput
}

ActionTargetMapInput is an input type that accepts ActionTargetMap and ActionTargetMapOutput values. You can construct a concrete instance of `ActionTargetMapInput` via:

ActionTargetMap{ "key": ActionTargetArgs{...} }

type ActionTargetMapOutput added in v3.25.0

type ActionTargetMapOutput struct{ *pulumi.OutputState }

func (ActionTargetMapOutput) ElementType added in v3.25.0

func (ActionTargetMapOutput) ElementType() reflect.Type

func (ActionTargetMapOutput) MapIndex added in v3.25.0

func (ActionTargetMapOutput) ToActionTargetMapOutput added in v3.25.0

func (o ActionTargetMapOutput) ToActionTargetMapOutput() ActionTargetMapOutput

func (ActionTargetMapOutput) ToActionTargetMapOutputWithContext added in v3.25.0

func (o ActionTargetMapOutput) ToActionTargetMapOutputWithContext(ctx context.Context) ActionTargetMapOutput

type ActionTargetOutput added in v3.13.0

type ActionTargetOutput struct {
	*pulumi.OutputState
}

func (ActionTargetOutput) ElementType added in v3.13.0

func (ActionTargetOutput) ElementType() reflect.Type

func (ActionTargetOutput) ToActionTargetOutput added in v3.13.0

func (o ActionTargetOutput) ToActionTargetOutput() ActionTargetOutput

func (ActionTargetOutput) ToActionTargetOutputWithContext added in v3.13.0

func (o ActionTargetOutput) ToActionTargetOutputWithContext(ctx context.Context) ActionTargetOutput

func (ActionTargetOutput) ToActionTargetPtrOutput added in v3.25.0

func (o ActionTargetOutput) ToActionTargetPtrOutput() ActionTargetPtrOutput

func (ActionTargetOutput) ToActionTargetPtrOutputWithContext added in v3.25.0

func (o ActionTargetOutput) ToActionTargetPtrOutputWithContext(ctx context.Context) ActionTargetPtrOutput

type ActionTargetPtrInput added in v3.25.0

type ActionTargetPtrInput interface {
	pulumi.Input

	ToActionTargetPtrOutput() ActionTargetPtrOutput
	ToActionTargetPtrOutputWithContext(ctx context.Context) ActionTargetPtrOutput
}

type ActionTargetPtrOutput added in v3.25.0

type ActionTargetPtrOutput struct {
	*pulumi.OutputState
}

func (ActionTargetPtrOutput) ElementType added in v3.25.0

func (ActionTargetPtrOutput) ElementType() reflect.Type

func (ActionTargetPtrOutput) ToActionTargetPtrOutput added in v3.25.0

func (o ActionTargetPtrOutput) ToActionTargetPtrOutput() ActionTargetPtrOutput

func (ActionTargetPtrOutput) ToActionTargetPtrOutputWithContext added in v3.25.0

func (o ActionTargetPtrOutput) ToActionTargetPtrOutputWithContext(ctx context.Context) ActionTargetPtrOutput

type ActionTargetState added in v3.3.0

type ActionTargetState struct {
	// Amazon Resource Name (ARN) of the Security Hub custom action target.
	Arn pulumi.StringPtrInput
	// The name of the custom action target.
	Description pulumi.StringPtrInput
	// The ID for the custom action target.
	Identifier pulumi.StringPtrInput
	// The description for the custom action target.
	Name pulumi.StringPtrInput
}

func (ActionTargetState) ElementType added in v3.3.0

func (ActionTargetState) ElementType() reflect.Type

type InviteAccepter added in v3.30.0

type InviteAccepter struct {
	pulumi.CustomResourceState

	// The ID of the invitation.
	InvitationId pulumi.StringOutput `pulumi:"invitationId"`
	// The account ID of the master Security Hub account whose invitation you're accepting.
	MasterId pulumi.StringOutput `pulumi:"masterId"`
}

> **Note:** AWS accounts can only be associated with a single Security Hub master account. Destroying this resource will disassociate the member account from the master account.

Accepts a Security Hub invitation.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v3/go/aws/securityhub"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := securityhub.NewAccount(ctx, "exampleAccount", nil)
		if err != nil {
			return err
		}
		exampleMember, err := securityhub.NewMember(ctx, "exampleMember", &securityhub.MemberArgs{
			AccountId: pulumi.String("123456789012"),
			Email:     pulumi.String("example@example.com"),
			Invite:    pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = securityhub.NewAccount(ctx, "inviteeAccount", nil, pulumi.Provider("aws.invitee"))
		if err != nil {
			return err
		}
		_, err = securityhub.NewInviteAccepter(ctx, "inviteeInviteAccepter", &securityhub.InviteAccepterArgs{
			MasterId: exampleMember.MasterId,
		}, pulumi.Provider("aws.invitee"), pulumi.DependsOn([]pulumi.Resource{
			aws_securityhub_account.Accepter,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Security Hub invite acceptance can be imported using the account ID, e.g.

```sh

$ pulumi import aws:securityhub/inviteAccepter:InviteAccepter example 123456789012

```

func GetInviteAccepter added in v3.30.0

func GetInviteAccepter(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *InviteAccepterState, opts ...pulumi.ResourceOption) (*InviteAccepter, error)

GetInviteAccepter gets an existing InviteAccepter 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 NewInviteAccepter added in v3.30.0

func NewInviteAccepter(ctx *pulumi.Context,
	name string, args *InviteAccepterArgs, opts ...pulumi.ResourceOption) (*InviteAccepter, error)

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

func (*InviteAccepter) ElementType added in v3.30.0

func (*InviteAccepter) ElementType() reflect.Type

func (*InviteAccepter) ToInviteAccepterOutput added in v3.30.0

func (i *InviteAccepter) ToInviteAccepterOutput() InviteAccepterOutput

func (*InviteAccepter) ToInviteAccepterOutputWithContext added in v3.30.0

func (i *InviteAccepter) ToInviteAccepterOutputWithContext(ctx context.Context) InviteAccepterOutput

func (*InviteAccepter) ToInviteAccepterPtrOutput added in v3.30.0

func (i *InviteAccepter) ToInviteAccepterPtrOutput() InviteAccepterPtrOutput

func (*InviteAccepter) ToInviteAccepterPtrOutputWithContext added in v3.30.0

func (i *InviteAccepter) ToInviteAccepterPtrOutputWithContext(ctx context.Context) InviteAccepterPtrOutput

type InviteAccepterArgs added in v3.30.0

type InviteAccepterArgs struct {
	// The account ID of the master Security Hub account whose invitation you're accepting.
	MasterId pulumi.StringInput
}

The set of arguments for constructing a InviteAccepter resource.

func (InviteAccepterArgs) ElementType added in v3.30.0

func (InviteAccepterArgs) ElementType() reflect.Type

type InviteAccepterArray added in v3.30.0

type InviteAccepterArray []InviteAccepterInput

func (InviteAccepterArray) ElementType added in v3.30.0

func (InviteAccepterArray) ElementType() reflect.Type

func (InviteAccepterArray) ToInviteAccepterArrayOutput added in v3.30.0

func (i InviteAccepterArray) ToInviteAccepterArrayOutput() InviteAccepterArrayOutput

func (InviteAccepterArray) ToInviteAccepterArrayOutputWithContext added in v3.30.0

func (i InviteAccepterArray) ToInviteAccepterArrayOutputWithContext(ctx context.Context) InviteAccepterArrayOutput

type InviteAccepterArrayInput added in v3.30.0

type InviteAccepterArrayInput interface {
	pulumi.Input

	ToInviteAccepterArrayOutput() InviteAccepterArrayOutput
	ToInviteAccepterArrayOutputWithContext(context.Context) InviteAccepterArrayOutput
}

InviteAccepterArrayInput is an input type that accepts InviteAccepterArray and InviteAccepterArrayOutput values. You can construct a concrete instance of `InviteAccepterArrayInput` via:

InviteAccepterArray{ InviteAccepterArgs{...} }

type InviteAccepterArrayOutput added in v3.30.0

type InviteAccepterArrayOutput struct{ *pulumi.OutputState }

func (InviteAccepterArrayOutput) ElementType added in v3.30.0

func (InviteAccepterArrayOutput) ElementType() reflect.Type

func (InviteAccepterArrayOutput) Index added in v3.30.0

func (InviteAccepterArrayOutput) ToInviteAccepterArrayOutput added in v3.30.0

func (o InviteAccepterArrayOutput) ToInviteAccepterArrayOutput() InviteAccepterArrayOutput

func (InviteAccepterArrayOutput) ToInviteAccepterArrayOutputWithContext added in v3.30.0

func (o InviteAccepterArrayOutput) ToInviteAccepterArrayOutputWithContext(ctx context.Context) InviteAccepterArrayOutput

type InviteAccepterInput added in v3.30.0

type InviteAccepterInput interface {
	pulumi.Input

	ToInviteAccepterOutput() InviteAccepterOutput
	ToInviteAccepterOutputWithContext(ctx context.Context) InviteAccepterOutput
}

type InviteAccepterMap added in v3.30.0

type InviteAccepterMap map[string]InviteAccepterInput

func (InviteAccepterMap) ElementType added in v3.30.0

func (InviteAccepterMap) ElementType() reflect.Type

func (InviteAccepterMap) ToInviteAccepterMapOutput added in v3.30.0

func (i InviteAccepterMap) ToInviteAccepterMapOutput() InviteAccepterMapOutput

func (InviteAccepterMap) ToInviteAccepterMapOutputWithContext added in v3.30.0

func (i InviteAccepterMap) ToInviteAccepterMapOutputWithContext(ctx context.Context) InviteAccepterMapOutput

type InviteAccepterMapInput added in v3.30.0

type InviteAccepterMapInput interface {
	pulumi.Input

	ToInviteAccepterMapOutput() InviteAccepterMapOutput
	ToInviteAccepterMapOutputWithContext(context.Context) InviteAccepterMapOutput
}

InviteAccepterMapInput is an input type that accepts InviteAccepterMap and InviteAccepterMapOutput values. You can construct a concrete instance of `InviteAccepterMapInput` via:

InviteAccepterMap{ "key": InviteAccepterArgs{...} }

type InviteAccepterMapOutput added in v3.30.0

type InviteAccepterMapOutput struct{ *pulumi.OutputState }

func (InviteAccepterMapOutput) ElementType added in v3.30.0

func (InviteAccepterMapOutput) ElementType() reflect.Type

func (InviteAccepterMapOutput) MapIndex added in v3.30.0

func (InviteAccepterMapOutput) ToInviteAccepterMapOutput added in v3.30.0

func (o InviteAccepterMapOutput) ToInviteAccepterMapOutput() InviteAccepterMapOutput

func (InviteAccepterMapOutput) ToInviteAccepterMapOutputWithContext added in v3.30.0

func (o InviteAccepterMapOutput) ToInviteAccepterMapOutputWithContext(ctx context.Context) InviteAccepterMapOutput

type InviteAccepterOutput added in v3.30.0

type InviteAccepterOutput struct {
	*pulumi.OutputState
}

func (InviteAccepterOutput) ElementType added in v3.30.0

func (InviteAccepterOutput) ElementType() reflect.Type

func (InviteAccepterOutput) ToInviteAccepterOutput added in v3.30.0

func (o InviteAccepterOutput) ToInviteAccepterOutput() InviteAccepterOutput

func (InviteAccepterOutput) ToInviteAccepterOutputWithContext added in v3.30.0

func (o InviteAccepterOutput) ToInviteAccepterOutputWithContext(ctx context.Context) InviteAccepterOutput

func (InviteAccepterOutput) ToInviteAccepterPtrOutput added in v3.30.0

func (o InviteAccepterOutput) ToInviteAccepterPtrOutput() InviteAccepterPtrOutput

func (InviteAccepterOutput) ToInviteAccepterPtrOutputWithContext added in v3.30.0

func (o InviteAccepterOutput) ToInviteAccepterPtrOutputWithContext(ctx context.Context) InviteAccepterPtrOutput

type InviteAccepterPtrInput added in v3.30.0

type InviteAccepterPtrInput interface {
	pulumi.Input

	ToInviteAccepterPtrOutput() InviteAccepterPtrOutput
	ToInviteAccepterPtrOutputWithContext(ctx context.Context) InviteAccepterPtrOutput
}

type InviteAccepterPtrOutput added in v3.30.0

type InviteAccepterPtrOutput struct {
	*pulumi.OutputState
}

func (InviteAccepterPtrOutput) ElementType added in v3.30.0

func (InviteAccepterPtrOutput) ElementType() reflect.Type

func (InviteAccepterPtrOutput) ToInviteAccepterPtrOutput added in v3.30.0

func (o InviteAccepterPtrOutput) ToInviteAccepterPtrOutput() InviteAccepterPtrOutput

func (InviteAccepterPtrOutput) ToInviteAccepterPtrOutputWithContext added in v3.30.0

func (o InviteAccepterPtrOutput) ToInviteAccepterPtrOutputWithContext(ctx context.Context) InviteAccepterPtrOutput

type InviteAccepterState added in v3.30.0

type InviteAccepterState struct {
	// The ID of the invitation.
	InvitationId pulumi.StringPtrInput
	// The account ID of the master Security Hub account whose invitation you're accepting.
	MasterId pulumi.StringPtrInput
}

func (InviteAccepterState) ElementType added in v3.30.0

func (InviteAccepterState) ElementType() reflect.Type

type Member

type Member struct {
	pulumi.CustomResourceState

	// The ID of the member AWS account.
	AccountId pulumi.StringOutput `pulumi:"accountId"`
	// The email of the member AWS account.
	Email pulumi.StringOutput `pulumi:"email"`
	// Boolean whether to invite the account to Security Hub as a member. Defaults to `false`.
	Invite pulumi.BoolPtrOutput `pulumi:"invite"`
	// The ID of the master Security Hub AWS account.
	MasterId pulumi.StringOutput `pulumi:"masterId"`
	// The status of the member account relationship.
	MemberStatus pulumi.StringOutput `pulumi:"memberStatus"`
}

Provides a Security Hub member resource.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v3/go/aws/securityhub"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleAccount, err := securityhub.NewAccount(ctx, "exampleAccount", nil)
		if err != nil {
			return err
		}
		_, err = securityhub.NewMember(ctx, "exampleMember", &securityhub.MemberArgs{
			AccountId: pulumi.String("123456789012"),
			Email:     pulumi.String("example@example.com"),
			Invite:    pulumi.Bool(true),
		}, pulumi.DependsOn([]pulumi.Resource{
			exampleAccount,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Security Hub members can be imported using their account ID, e.g.

```sh

$ pulumi import aws:securityhub/member:Member example 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 added in v3.13.0

func (*Member) ElementType() reflect.Type

func (*Member) ToMemberOutput added in v3.13.0

func (i *Member) ToMemberOutput() MemberOutput

func (*Member) ToMemberOutputWithContext added in v3.13.0

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

func (*Member) ToMemberPtrOutput added in v3.25.0

func (i *Member) ToMemberPtrOutput() MemberPtrOutput

func (*Member) ToMemberPtrOutputWithContext added in v3.25.0

func (i *Member) ToMemberPtrOutputWithContext(ctx context.Context) MemberPtrOutput

type MemberArgs

type MemberArgs struct {
	// The ID of the member AWS account.
	AccountId pulumi.StringInput
	// The email of the member AWS account.
	Email pulumi.StringInput
	// Boolean whether to invite the account to Security Hub as a member. Defaults to `false`.
	Invite pulumi.BoolPtrInput
}

The set of arguments for constructing a Member resource.

func (MemberArgs) ElementType

func (MemberArgs) ElementType() reflect.Type

type MemberArray added in v3.25.0

type MemberArray []MemberInput

func (MemberArray) ElementType added in v3.25.0

func (MemberArray) ElementType() reflect.Type

func (MemberArray) ToMemberArrayOutput added in v3.25.0

func (i MemberArray) ToMemberArrayOutput() MemberArrayOutput

func (MemberArray) ToMemberArrayOutputWithContext added in v3.25.0

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

type MemberArrayInput added in v3.25.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 v3.25.0

type MemberArrayOutput struct{ *pulumi.OutputState }

func (MemberArrayOutput) ElementType added in v3.25.0

func (MemberArrayOutput) ElementType() reflect.Type

func (MemberArrayOutput) Index added in v3.25.0

func (MemberArrayOutput) ToMemberArrayOutput added in v3.25.0

func (o MemberArrayOutput) ToMemberArrayOutput() MemberArrayOutput

func (MemberArrayOutput) ToMemberArrayOutputWithContext added in v3.25.0

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

type MemberInput added in v3.13.0

type MemberInput interface {
	pulumi.Input

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

type MemberMap added in v3.25.0

type MemberMap map[string]MemberInput

func (MemberMap) ElementType added in v3.25.0

func (MemberMap) ElementType() reflect.Type

func (MemberMap) ToMemberMapOutput added in v3.25.0

func (i MemberMap) ToMemberMapOutput() MemberMapOutput

func (MemberMap) ToMemberMapOutputWithContext added in v3.25.0

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

type MemberMapInput added in v3.25.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 v3.25.0

type MemberMapOutput struct{ *pulumi.OutputState }

func (MemberMapOutput) ElementType added in v3.25.0

func (MemberMapOutput) ElementType() reflect.Type

func (MemberMapOutput) MapIndex added in v3.25.0

func (MemberMapOutput) ToMemberMapOutput added in v3.25.0

func (o MemberMapOutput) ToMemberMapOutput() MemberMapOutput

func (MemberMapOutput) ToMemberMapOutputWithContext added in v3.25.0

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

type MemberOutput added in v3.13.0

type MemberOutput struct {
	*pulumi.OutputState
}

func (MemberOutput) ElementType added in v3.13.0

func (MemberOutput) ElementType() reflect.Type

func (MemberOutput) ToMemberOutput added in v3.13.0

func (o MemberOutput) ToMemberOutput() MemberOutput

func (MemberOutput) ToMemberOutputWithContext added in v3.13.0

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

func (MemberOutput) ToMemberPtrOutput added in v3.25.0

func (o MemberOutput) ToMemberPtrOutput() MemberPtrOutput

func (MemberOutput) ToMemberPtrOutputWithContext added in v3.25.0

func (o MemberOutput) ToMemberPtrOutputWithContext(ctx context.Context) MemberPtrOutput

type MemberPtrInput added in v3.25.0

type MemberPtrInput interface {
	pulumi.Input

	ToMemberPtrOutput() MemberPtrOutput
	ToMemberPtrOutputWithContext(ctx context.Context) MemberPtrOutput
}

type MemberPtrOutput added in v3.25.0

type MemberPtrOutput struct {
	*pulumi.OutputState
}

func (MemberPtrOutput) ElementType added in v3.25.0

func (MemberPtrOutput) ElementType() reflect.Type

func (MemberPtrOutput) ToMemberPtrOutput added in v3.25.0

func (o MemberPtrOutput) ToMemberPtrOutput() MemberPtrOutput

func (MemberPtrOutput) ToMemberPtrOutputWithContext added in v3.25.0

func (o MemberPtrOutput) ToMemberPtrOutputWithContext(ctx context.Context) MemberPtrOutput

type MemberState

type MemberState struct {
	// The ID of the member AWS account.
	AccountId pulumi.StringPtrInput
	// The email of the member AWS account.
	Email pulumi.StringPtrInput
	// Boolean whether to invite the account to Security Hub as a member. Defaults to `false`.
	Invite pulumi.BoolPtrInput
	// The ID of the master Security Hub AWS account.
	MasterId pulumi.StringPtrInput
	// The status of the member account relationship.
	MemberStatus pulumi.StringPtrInput
}

func (MemberState) ElementType

func (MemberState) ElementType() reflect.Type

type OrganizationAdminAccount added in v3.29.0

type OrganizationAdminAccount struct {
	pulumi.CustomResourceState

	// The AWS account identifier of the account to designate as the Security Hub administrator account.
	AdminAccountId pulumi.StringOutput `pulumi:"adminAccountId"`
}

Manages a Security Hub administrator account for an organization. The AWS account utilizing this resource must be an Organizations primary account. More information about Organizations support in Security Hub can be found in the [Security Hub User Guide](https://docs.aws.amazon.com/securityhub/latest/userguide/designate-orgs-admin-account.html).

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v3/go/aws/organizations"
"github.com/pulumi/pulumi-aws/sdk/v3/go/aws/securityhub"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleOrganization, err := organizations.NewOrganization(ctx, "exampleOrganization", &organizations.OrganizationArgs{
			AwsServiceAccessPrincipals: pulumi.StringArray{
				pulumi.String("securityhub.amazonaws.com"),
			},
			FeatureSet: pulumi.String("ALL"),
		})
		if err != nil {
			return err
		}
		_, err = securityhub.NewAccount(ctx, "exampleAccount", nil)
		if err != nil {
			return err
		}
		_, err = securityhub.NewOrganizationAdminAccount(ctx, "exampleOrganizationAdminAccount", &securityhub.OrganizationAdminAccountArgs{
			AdminAccountId: pulumi.String("123456789012"),
		}, pulumi.DependsOn([]pulumi.Resource{
			exampleOrganization,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Security Hub Organization Admin Accounts can be imported using the AWS account ID, e.g.

```sh

$ pulumi import aws:securityhub/organizationAdminAccount:OrganizationAdminAccount example 123456789012

```

func GetOrganizationAdminAccount added in v3.29.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 v3.29.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 v3.29.0

func (*OrganizationAdminAccount) ElementType() reflect.Type

func (*OrganizationAdminAccount) ToOrganizationAdminAccountOutput added in v3.29.0

func (i *OrganizationAdminAccount) ToOrganizationAdminAccountOutput() OrganizationAdminAccountOutput

func (*OrganizationAdminAccount) ToOrganizationAdminAccountOutputWithContext added in v3.29.0

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

func (*OrganizationAdminAccount) ToOrganizationAdminAccountPtrOutput added in v3.29.0

func (i *OrganizationAdminAccount) ToOrganizationAdminAccountPtrOutput() OrganizationAdminAccountPtrOutput

func (*OrganizationAdminAccount) ToOrganizationAdminAccountPtrOutputWithContext added in v3.29.0

func (i *OrganizationAdminAccount) ToOrganizationAdminAccountPtrOutputWithContext(ctx context.Context) OrganizationAdminAccountPtrOutput

type OrganizationAdminAccountArgs added in v3.29.0

type OrganizationAdminAccountArgs struct {
	// The AWS account identifier of the account to designate as the Security Hub administrator account.
	AdminAccountId pulumi.StringInput
}

The set of arguments for constructing a OrganizationAdminAccount resource.

func (OrganizationAdminAccountArgs) ElementType added in v3.29.0

type OrganizationAdminAccountArray added in v3.29.0

type OrganizationAdminAccountArray []OrganizationAdminAccountInput

func (OrganizationAdminAccountArray) ElementType added in v3.29.0

func (OrganizationAdminAccountArray) ToOrganizationAdminAccountArrayOutput added in v3.29.0

func (i OrganizationAdminAccountArray) ToOrganizationAdminAccountArrayOutput() OrganizationAdminAccountArrayOutput

func (OrganizationAdminAccountArray) ToOrganizationAdminAccountArrayOutputWithContext added in v3.29.0

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

type OrganizationAdminAccountArrayInput added in v3.29.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 v3.29.0

type OrganizationAdminAccountArrayOutput struct{ *pulumi.OutputState }

func (OrganizationAdminAccountArrayOutput) ElementType added in v3.29.0

func (OrganizationAdminAccountArrayOutput) Index added in v3.29.0

func (OrganizationAdminAccountArrayOutput) ToOrganizationAdminAccountArrayOutput added in v3.29.0

func (o OrganizationAdminAccountArrayOutput) ToOrganizationAdminAccountArrayOutput() OrganizationAdminAccountArrayOutput

func (OrganizationAdminAccountArrayOutput) ToOrganizationAdminAccountArrayOutputWithContext added in v3.29.0

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

type OrganizationAdminAccountInput added in v3.29.0

type OrganizationAdminAccountInput interface {
	pulumi.Input

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

type OrganizationAdminAccountMap added in v3.29.0

type OrganizationAdminAccountMap map[string]OrganizationAdminAccountInput

func (OrganizationAdminAccountMap) ElementType added in v3.29.0

func (OrganizationAdminAccountMap) ToOrganizationAdminAccountMapOutput added in v3.29.0

func (i OrganizationAdminAccountMap) ToOrganizationAdminAccountMapOutput() OrganizationAdminAccountMapOutput

func (OrganizationAdminAccountMap) ToOrganizationAdminAccountMapOutputWithContext added in v3.29.0

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

type OrganizationAdminAccountMapInput added in v3.29.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 v3.29.0

type OrganizationAdminAccountMapOutput struct{ *pulumi.OutputState }

func (OrganizationAdminAccountMapOutput) ElementType added in v3.29.0

func (OrganizationAdminAccountMapOutput) MapIndex added in v3.29.0

func (OrganizationAdminAccountMapOutput) ToOrganizationAdminAccountMapOutput added in v3.29.0

func (o OrganizationAdminAccountMapOutput) ToOrganizationAdminAccountMapOutput() OrganizationAdminAccountMapOutput

func (OrganizationAdminAccountMapOutput) ToOrganizationAdminAccountMapOutputWithContext added in v3.29.0

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

type OrganizationAdminAccountOutput added in v3.29.0

type OrganizationAdminAccountOutput struct {
	*pulumi.OutputState
}

func (OrganizationAdminAccountOutput) ElementType added in v3.29.0

func (OrganizationAdminAccountOutput) ToOrganizationAdminAccountOutput added in v3.29.0

func (o OrganizationAdminAccountOutput) ToOrganizationAdminAccountOutput() OrganizationAdminAccountOutput

func (OrganizationAdminAccountOutput) ToOrganizationAdminAccountOutputWithContext added in v3.29.0

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

func (OrganizationAdminAccountOutput) ToOrganizationAdminAccountPtrOutput added in v3.29.0

func (o OrganizationAdminAccountOutput) ToOrganizationAdminAccountPtrOutput() OrganizationAdminAccountPtrOutput

func (OrganizationAdminAccountOutput) ToOrganizationAdminAccountPtrOutputWithContext added in v3.29.0

func (o OrganizationAdminAccountOutput) ToOrganizationAdminAccountPtrOutputWithContext(ctx context.Context) OrganizationAdminAccountPtrOutput

type OrganizationAdminAccountPtrInput added in v3.29.0

type OrganizationAdminAccountPtrInput interface {
	pulumi.Input

	ToOrganizationAdminAccountPtrOutput() OrganizationAdminAccountPtrOutput
	ToOrganizationAdminAccountPtrOutputWithContext(ctx context.Context) OrganizationAdminAccountPtrOutput
}

type OrganizationAdminAccountPtrOutput added in v3.29.0

type OrganizationAdminAccountPtrOutput struct {
	*pulumi.OutputState
}

func (OrganizationAdminAccountPtrOutput) ElementType added in v3.29.0

func (OrganizationAdminAccountPtrOutput) ToOrganizationAdminAccountPtrOutput added in v3.29.0

func (o OrganizationAdminAccountPtrOutput) ToOrganizationAdminAccountPtrOutput() OrganizationAdminAccountPtrOutput

func (OrganizationAdminAccountPtrOutput) ToOrganizationAdminAccountPtrOutputWithContext added in v3.29.0

func (o OrganizationAdminAccountPtrOutput) ToOrganizationAdminAccountPtrOutputWithContext(ctx context.Context) OrganizationAdminAccountPtrOutput

type OrganizationAdminAccountState added in v3.29.0

type OrganizationAdminAccountState struct {
	// The AWS account identifier of the account to designate as the Security Hub administrator account.
	AdminAccountId pulumi.StringPtrInput
}

func (OrganizationAdminAccountState) ElementType added in v3.29.0

type ProductSubscription

type ProductSubscription struct {
	pulumi.CustomResourceState

	// The ARN of a resource that represents your subscription to the product that generates the findings that you want to import into Security Hub.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// The ARN of the product that generates findings that you want to import into Security Hub - see below.
	ProductArn pulumi.StringOutput `pulumi:"productArn"`
}

Subscribes to a Security Hub product.

## Example Usage

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-aws/sdk/v3/go/aws"
"github.com/pulumi/pulumi-aws/sdk/v3/go/aws/securityhub"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleAccount, err := securityhub.NewAccount(ctx, "exampleAccount", nil)
		if err != nil {
			return err
		}
		current, err := aws.GetRegion(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = securityhub.NewProductSubscription(ctx, "exampleProductSubscription", &securityhub.ProductSubscriptionArgs{
			ProductArn: pulumi.String(fmt.Sprintf("%v%v%v", "arn:aws:securityhub:", current.Name, ":733251395267:product/alertlogic/althreatmanagement")),
		}, pulumi.DependsOn([]pulumi.Resource{
			exampleAccount,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Security Hub product subscriptions can be imported in the form `product_arn,arn`, e.g.

```sh

$ pulumi import aws:securityhub/productSubscription:ProductSubscription example arn:aws:securityhub:eu-west-1:733251395267:product/alertlogic/althreatmanagement,arn:aws:securityhub:eu-west-1:123456789012:product-subscription/alertlogic/althreatmanagement

```

func GetProductSubscription

func GetProductSubscription(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ProductSubscriptionState, opts ...pulumi.ResourceOption) (*ProductSubscription, error)

GetProductSubscription gets an existing ProductSubscription 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 NewProductSubscription

func NewProductSubscription(ctx *pulumi.Context,
	name string, args *ProductSubscriptionArgs, opts ...pulumi.ResourceOption) (*ProductSubscription, error)

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

func (*ProductSubscription) ElementType added in v3.13.0

func (*ProductSubscription) ElementType() reflect.Type

func (*ProductSubscription) ToProductSubscriptionOutput added in v3.13.0

func (i *ProductSubscription) ToProductSubscriptionOutput() ProductSubscriptionOutput

func (*ProductSubscription) ToProductSubscriptionOutputWithContext added in v3.13.0

func (i *ProductSubscription) ToProductSubscriptionOutputWithContext(ctx context.Context) ProductSubscriptionOutput

func (*ProductSubscription) ToProductSubscriptionPtrOutput added in v3.25.0

func (i *ProductSubscription) ToProductSubscriptionPtrOutput() ProductSubscriptionPtrOutput

func (*ProductSubscription) ToProductSubscriptionPtrOutputWithContext added in v3.25.0

func (i *ProductSubscription) ToProductSubscriptionPtrOutputWithContext(ctx context.Context) ProductSubscriptionPtrOutput

type ProductSubscriptionArgs

type ProductSubscriptionArgs struct {
	// The ARN of the product that generates findings that you want to import into Security Hub - see below.
	ProductArn pulumi.StringInput
}

The set of arguments for constructing a ProductSubscription resource.

func (ProductSubscriptionArgs) ElementType

func (ProductSubscriptionArgs) ElementType() reflect.Type

type ProductSubscriptionArray added in v3.25.0

type ProductSubscriptionArray []ProductSubscriptionInput

func (ProductSubscriptionArray) ElementType added in v3.25.0

func (ProductSubscriptionArray) ElementType() reflect.Type

func (ProductSubscriptionArray) ToProductSubscriptionArrayOutput added in v3.25.0

func (i ProductSubscriptionArray) ToProductSubscriptionArrayOutput() ProductSubscriptionArrayOutput

func (ProductSubscriptionArray) ToProductSubscriptionArrayOutputWithContext added in v3.25.0

func (i ProductSubscriptionArray) ToProductSubscriptionArrayOutputWithContext(ctx context.Context) ProductSubscriptionArrayOutput

type ProductSubscriptionArrayInput added in v3.25.0

type ProductSubscriptionArrayInput interface {
	pulumi.Input

	ToProductSubscriptionArrayOutput() ProductSubscriptionArrayOutput
	ToProductSubscriptionArrayOutputWithContext(context.Context) ProductSubscriptionArrayOutput
}

ProductSubscriptionArrayInput is an input type that accepts ProductSubscriptionArray and ProductSubscriptionArrayOutput values. You can construct a concrete instance of `ProductSubscriptionArrayInput` via:

ProductSubscriptionArray{ ProductSubscriptionArgs{...} }

type ProductSubscriptionArrayOutput added in v3.25.0

type ProductSubscriptionArrayOutput struct{ *pulumi.OutputState }

func (ProductSubscriptionArrayOutput) ElementType added in v3.25.0

func (ProductSubscriptionArrayOutput) Index added in v3.25.0

func (ProductSubscriptionArrayOutput) ToProductSubscriptionArrayOutput added in v3.25.0

func (o ProductSubscriptionArrayOutput) ToProductSubscriptionArrayOutput() ProductSubscriptionArrayOutput

func (ProductSubscriptionArrayOutput) ToProductSubscriptionArrayOutputWithContext added in v3.25.0

func (o ProductSubscriptionArrayOutput) ToProductSubscriptionArrayOutputWithContext(ctx context.Context) ProductSubscriptionArrayOutput

type ProductSubscriptionInput added in v3.13.0

type ProductSubscriptionInput interface {
	pulumi.Input

	ToProductSubscriptionOutput() ProductSubscriptionOutput
	ToProductSubscriptionOutputWithContext(ctx context.Context) ProductSubscriptionOutput
}

type ProductSubscriptionMap added in v3.25.0

type ProductSubscriptionMap map[string]ProductSubscriptionInput

func (ProductSubscriptionMap) ElementType added in v3.25.0

func (ProductSubscriptionMap) ElementType() reflect.Type

func (ProductSubscriptionMap) ToProductSubscriptionMapOutput added in v3.25.0

func (i ProductSubscriptionMap) ToProductSubscriptionMapOutput() ProductSubscriptionMapOutput

func (ProductSubscriptionMap) ToProductSubscriptionMapOutputWithContext added in v3.25.0

func (i ProductSubscriptionMap) ToProductSubscriptionMapOutputWithContext(ctx context.Context) ProductSubscriptionMapOutput

type ProductSubscriptionMapInput added in v3.25.0

type ProductSubscriptionMapInput interface {
	pulumi.Input

	ToProductSubscriptionMapOutput() ProductSubscriptionMapOutput
	ToProductSubscriptionMapOutputWithContext(context.Context) ProductSubscriptionMapOutput
}

ProductSubscriptionMapInput is an input type that accepts ProductSubscriptionMap and ProductSubscriptionMapOutput values. You can construct a concrete instance of `ProductSubscriptionMapInput` via:

ProductSubscriptionMap{ "key": ProductSubscriptionArgs{...} }

type ProductSubscriptionMapOutput added in v3.25.0

type ProductSubscriptionMapOutput struct{ *pulumi.OutputState }

func (ProductSubscriptionMapOutput) ElementType added in v3.25.0

func (ProductSubscriptionMapOutput) MapIndex added in v3.25.0

func (ProductSubscriptionMapOutput) ToProductSubscriptionMapOutput added in v3.25.0

func (o ProductSubscriptionMapOutput) ToProductSubscriptionMapOutput() ProductSubscriptionMapOutput

func (ProductSubscriptionMapOutput) ToProductSubscriptionMapOutputWithContext added in v3.25.0

func (o ProductSubscriptionMapOutput) ToProductSubscriptionMapOutputWithContext(ctx context.Context) ProductSubscriptionMapOutput

type ProductSubscriptionOutput added in v3.13.0

type ProductSubscriptionOutput struct {
	*pulumi.OutputState
}

func (ProductSubscriptionOutput) ElementType added in v3.13.0

func (ProductSubscriptionOutput) ElementType() reflect.Type

func (ProductSubscriptionOutput) ToProductSubscriptionOutput added in v3.13.0

func (o ProductSubscriptionOutput) ToProductSubscriptionOutput() ProductSubscriptionOutput

func (ProductSubscriptionOutput) ToProductSubscriptionOutputWithContext added in v3.13.0

func (o ProductSubscriptionOutput) ToProductSubscriptionOutputWithContext(ctx context.Context) ProductSubscriptionOutput

func (ProductSubscriptionOutput) ToProductSubscriptionPtrOutput added in v3.25.0

func (o ProductSubscriptionOutput) ToProductSubscriptionPtrOutput() ProductSubscriptionPtrOutput

func (ProductSubscriptionOutput) ToProductSubscriptionPtrOutputWithContext added in v3.25.0

func (o ProductSubscriptionOutput) ToProductSubscriptionPtrOutputWithContext(ctx context.Context) ProductSubscriptionPtrOutput

type ProductSubscriptionPtrInput added in v3.25.0

type ProductSubscriptionPtrInput interface {
	pulumi.Input

	ToProductSubscriptionPtrOutput() ProductSubscriptionPtrOutput
	ToProductSubscriptionPtrOutputWithContext(ctx context.Context) ProductSubscriptionPtrOutput
}

type ProductSubscriptionPtrOutput added in v3.25.0

type ProductSubscriptionPtrOutput struct {
	*pulumi.OutputState
}

func (ProductSubscriptionPtrOutput) ElementType added in v3.25.0

func (ProductSubscriptionPtrOutput) ToProductSubscriptionPtrOutput added in v3.25.0

func (o ProductSubscriptionPtrOutput) ToProductSubscriptionPtrOutput() ProductSubscriptionPtrOutput

func (ProductSubscriptionPtrOutput) ToProductSubscriptionPtrOutputWithContext added in v3.25.0

func (o ProductSubscriptionPtrOutput) ToProductSubscriptionPtrOutputWithContext(ctx context.Context) ProductSubscriptionPtrOutput

type ProductSubscriptionState

type ProductSubscriptionState struct {
	// The ARN of a resource that represents your subscription to the product that generates the findings that you want to import into Security Hub.
	Arn pulumi.StringPtrInput
	// The ARN of the product that generates findings that you want to import into Security Hub - see below.
	ProductArn pulumi.StringPtrInput
}

func (ProductSubscriptionState) ElementType

func (ProductSubscriptionState) ElementType() reflect.Type

type StandardsSubscription

type StandardsSubscription struct {
	pulumi.CustomResourceState

	// The ARN of a standard - see below.
	StandardsArn pulumi.StringOutput `pulumi:"standardsArn"`
}

Subscribes to a Security Hub standard.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v3/go/aws/securityhub"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := securityhub.NewAccount(ctx, "example", nil)
		if err != nil {
			return err
		}
		_, err = securityhub.NewStandardsSubscription(ctx, "cis", &securityhub.StandardsSubscriptionArgs{
			StandardsArn: pulumi.String("arn:aws:securityhub:::ruleset/cis-aws-foundations-benchmark/v/1.2.0"),
		}, pulumi.DependsOn([]pulumi.Resource{
			example,
		}))
		if err != nil {
			return err
		}
		_, err = securityhub.NewStandardsSubscription(ctx, "pci321", &securityhub.StandardsSubscriptionArgs{
			StandardsArn: pulumi.String("arn:aws:securityhub:us-east-1::standards/pci-dss/v/3.2.1"),
		}, pulumi.DependsOn([]pulumi.Resource{
			example,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Security Hub standards subscriptions can be imported using the standards subscription ARN, e.g.

```sh

$ pulumi import aws:securityhub/standardsSubscription:StandardsSubscription cis arn:aws:securityhub:eu-west-1:123456789012:subscription/cis-aws-foundations-benchmark/v/1.2.0

```

```sh

$ pulumi import aws:securityhub/standardsSubscription:StandardsSubscription pci_321 arn:aws:securityhub:eu-west-1:123456789012:subscription/pci-dss/v/3.2.1

```

func GetStandardsSubscription

func GetStandardsSubscription(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *StandardsSubscriptionState, opts ...pulumi.ResourceOption) (*StandardsSubscription, error)

GetStandardsSubscription gets an existing StandardsSubscription 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 NewStandardsSubscription

func NewStandardsSubscription(ctx *pulumi.Context,
	name string, args *StandardsSubscriptionArgs, opts ...pulumi.ResourceOption) (*StandardsSubscription, error)

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

func (*StandardsSubscription) ElementType added in v3.13.0

func (*StandardsSubscription) ElementType() reflect.Type

func (*StandardsSubscription) ToStandardsSubscriptionOutput added in v3.13.0

func (i *StandardsSubscription) ToStandardsSubscriptionOutput() StandardsSubscriptionOutput

func (*StandardsSubscription) ToStandardsSubscriptionOutputWithContext added in v3.13.0

func (i *StandardsSubscription) ToStandardsSubscriptionOutputWithContext(ctx context.Context) StandardsSubscriptionOutput

func (*StandardsSubscription) ToStandardsSubscriptionPtrOutput added in v3.25.0

func (i *StandardsSubscription) ToStandardsSubscriptionPtrOutput() StandardsSubscriptionPtrOutput

func (*StandardsSubscription) ToStandardsSubscriptionPtrOutputWithContext added in v3.25.0

func (i *StandardsSubscription) ToStandardsSubscriptionPtrOutputWithContext(ctx context.Context) StandardsSubscriptionPtrOutput

type StandardsSubscriptionArgs

type StandardsSubscriptionArgs struct {
	// The ARN of a standard - see below.
	StandardsArn pulumi.StringInput
}

The set of arguments for constructing a StandardsSubscription resource.

func (StandardsSubscriptionArgs) ElementType

func (StandardsSubscriptionArgs) ElementType() reflect.Type

type StandardsSubscriptionArray added in v3.25.0

type StandardsSubscriptionArray []StandardsSubscriptionInput

func (StandardsSubscriptionArray) ElementType added in v3.25.0

func (StandardsSubscriptionArray) ElementType() reflect.Type

func (StandardsSubscriptionArray) ToStandardsSubscriptionArrayOutput added in v3.25.0

func (i StandardsSubscriptionArray) ToStandardsSubscriptionArrayOutput() StandardsSubscriptionArrayOutput

func (StandardsSubscriptionArray) ToStandardsSubscriptionArrayOutputWithContext added in v3.25.0

func (i StandardsSubscriptionArray) ToStandardsSubscriptionArrayOutputWithContext(ctx context.Context) StandardsSubscriptionArrayOutput

type StandardsSubscriptionArrayInput added in v3.25.0

type StandardsSubscriptionArrayInput interface {
	pulumi.Input

	ToStandardsSubscriptionArrayOutput() StandardsSubscriptionArrayOutput
	ToStandardsSubscriptionArrayOutputWithContext(context.Context) StandardsSubscriptionArrayOutput
}

StandardsSubscriptionArrayInput is an input type that accepts StandardsSubscriptionArray and StandardsSubscriptionArrayOutput values. You can construct a concrete instance of `StandardsSubscriptionArrayInput` via:

StandardsSubscriptionArray{ StandardsSubscriptionArgs{...} }

type StandardsSubscriptionArrayOutput added in v3.25.0

type StandardsSubscriptionArrayOutput struct{ *pulumi.OutputState }

func (StandardsSubscriptionArrayOutput) ElementType added in v3.25.0

func (StandardsSubscriptionArrayOutput) Index added in v3.25.0

func (StandardsSubscriptionArrayOutput) ToStandardsSubscriptionArrayOutput added in v3.25.0

func (o StandardsSubscriptionArrayOutput) ToStandardsSubscriptionArrayOutput() StandardsSubscriptionArrayOutput

func (StandardsSubscriptionArrayOutput) ToStandardsSubscriptionArrayOutputWithContext added in v3.25.0

func (o StandardsSubscriptionArrayOutput) ToStandardsSubscriptionArrayOutputWithContext(ctx context.Context) StandardsSubscriptionArrayOutput

type StandardsSubscriptionInput added in v3.13.0

type StandardsSubscriptionInput interface {
	pulumi.Input

	ToStandardsSubscriptionOutput() StandardsSubscriptionOutput
	ToStandardsSubscriptionOutputWithContext(ctx context.Context) StandardsSubscriptionOutput
}

type StandardsSubscriptionMap added in v3.25.0

type StandardsSubscriptionMap map[string]StandardsSubscriptionInput

func (StandardsSubscriptionMap) ElementType added in v3.25.0

func (StandardsSubscriptionMap) ElementType() reflect.Type

func (StandardsSubscriptionMap) ToStandardsSubscriptionMapOutput added in v3.25.0

func (i StandardsSubscriptionMap) ToStandardsSubscriptionMapOutput() StandardsSubscriptionMapOutput

func (StandardsSubscriptionMap) ToStandardsSubscriptionMapOutputWithContext added in v3.25.0

func (i StandardsSubscriptionMap) ToStandardsSubscriptionMapOutputWithContext(ctx context.Context) StandardsSubscriptionMapOutput

type StandardsSubscriptionMapInput added in v3.25.0

type StandardsSubscriptionMapInput interface {
	pulumi.Input

	ToStandardsSubscriptionMapOutput() StandardsSubscriptionMapOutput
	ToStandardsSubscriptionMapOutputWithContext(context.Context) StandardsSubscriptionMapOutput
}

StandardsSubscriptionMapInput is an input type that accepts StandardsSubscriptionMap and StandardsSubscriptionMapOutput values. You can construct a concrete instance of `StandardsSubscriptionMapInput` via:

StandardsSubscriptionMap{ "key": StandardsSubscriptionArgs{...} }

type StandardsSubscriptionMapOutput added in v3.25.0

type StandardsSubscriptionMapOutput struct{ *pulumi.OutputState }

func (StandardsSubscriptionMapOutput) ElementType added in v3.25.0

func (StandardsSubscriptionMapOutput) MapIndex added in v3.25.0

func (StandardsSubscriptionMapOutput) ToStandardsSubscriptionMapOutput added in v3.25.0

func (o StandardsSubscriptionMapOutput) ToStandardsSubscriptionMapOutput() StandardsSubscriptionMapOutput

func (StandardsSubscriptionMapOutput) ToStandardsSubscriptionMapOutputWithContext added in v3.25.0

func (o StandardsSubscriptionMapOutput) ToStandardsSubscriptionMapOutputWithContext(ctx context.Context) StandardsSubscriptionMapOutput

type StandardsSubscriptionOutput added in v3.13.0

type StandardsSubscriptionOutput struct {
	*pulumi.OutputState
}

func (StandardsSubscriptionOutput) ElementType added in v3.13.0

func (StandardsSubscriptionOutput) ToStandardsSubscriptionOutput added in v3.13.0

func (o StandardsSubscriptionOutput) ToStandardsSubscriptionOutput() StandardsSubscriptionOutput

func (StandardsSubscriptionOutput) ToStandardsSubscriptionOutputWithContext added in v3.13.0

func (o StandardsSubscriptionOutput) ToStandardsSubscriptionOutputWithContext(ctx context.Context) StandardsSubscriptionOutput

func (StandardsSubscriptionOutput) ToStandardsSubscriptionPtrOutput added in v3.25.0

func (o StandardsSubscriptionOutput) ToStandardsSubscriptionPtrOutput() StandardsSubscriptionPtrOutput

func (StandardsSubscriptionOutput) ToStandardsSubscriptionPtrOutputWithContext added in v3.25.0

func (o StandardsSubscriptionOutput) ToStandardsSubscriptionPtrOutputWithContext(ctx context.Context) StandardsSubscriptionPtrOutput

type StandardsSubscriptionPtrInput added in v3.25.0

type StandardsSubscriptionPtrInput interface {
	pulumi.Input

	ToStandardsSubscriptionPtrOutput() StandardsSubscriptionPtrOutput
	ToStandardsSubscriptionPtrOutputWithContext(ctx context.Context) StandardsSubscriptionPtrOutput
}

type StandardsSubscriptionPtrOutput added in v3.25.0

type StandardsSubscriptionPtrOutput struct {
	*pulumi.OutputState
}

func (StandardsSubscriptionPtrOutput) ElementType added in v3.25.0

func (StandardsSubscriptionPtrOutput) ToStandardsSubscriptionPtrOutput added in v3.25.0

func (o StandardsSubscriptionPtrOutput) ToStandardsSubscriptionPtrOutput() StandardsSubscriptionPtrOutput

func (StandardsSubscriptionPtrOutput) ToStandardsSubscriptionPtrOutputWithContext added in v3.25.0

func (o StandardsSubscriptionPtrOutput) ToStandardsSubscriptionPtrOutputWithContext(ctx context.Context) StandardsSubscriptionPtrOutput

type StandardsSubscriptionState

type StandardsSubscriptionState struct {
	// The ARN of a standard - see below.
	StandardsArn pulumi.StringPtrInput
}

func (StandardsSubscriptionState) ElementType

func (StandardsSubscriptionState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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