securityhub

package
v4.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 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/v4/go/aws/securityhub"
"github.com/pulumi/pulumi/sdk/v3/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

func (*Account) ElementType() reflect.Type

func (*Account) ToAccountOutput

func (i *Account) ToAccountOutput() AccountOutput

func (*Account) ToAccountOutputWithContext

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

func (*Account) ToAccountPtrOutput

func (i *Account) ToAccountPtrOutput() AccountPtrOutput

func (*Account) ToAccountPtrOutputWithContext

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

type AccountArray []AccountInput

func (AccountArray) ElementType

func (AccountArray) ElementType() reflect.Type

func (AccountArray) ToAccountArrayOutput

func (i AccountArray) ToAccountArrayOutput() AccountArrayOutput

func (AccountArray) ToAccountArrayOutputWithContext

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

type AccountArrayInput

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

type AccountArrayOutput struct{ *pulumi.OutputState }

func (AccountArrayOutput) ElementType

func (AccountArrayOutput) ElementType() reflect.Type

func (AccountArrayOutput) Index

func (AccountArrayOutput) ToAccountArrayOutput

func (o AccountArrayOutput) ToAccountArrayOutput() AccountArrayOutput

func (AccountArrayOutput) ToAccountArrayOutputWithContext

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

type AccountInput

type AccountInput interface {
	pulumi.Input

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

type AccountMap

type AccountMap map[string]AccountInput

func (AccountMap) ElementType

func (AccountMap) ElementType() reflect.Type

func (AccountMap) ToAccountMapOutput

func (i AccountMap) ToAccountMapOutput() AccountMapOutput

func (AccountMap) ToAccountMapOutputWithContext

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

type AccountMapInput

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

type AccountMapOutput struct{ *pulumi.OutputState }

func (AccountMapOutput) ElementType

func (AccountMapOutput) ElementType() reflect.Type

func (AccountMapOutput) MapIndex

func (AccountMapOutput) ToAccountMapOutput

func (o AccountMapOutput) ToAccountMapOutput() AccountMapOutput

func (AccountMapOutput) ToAccountMapOutputWithContext

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

type AccountOutput

type AccountOutput struct {
	*pulumi.OutputState
}

func (AccountOutput) ElementType

func (AccountOutput) ElementType() reflect.Type

func (AccountOutput) ToAccountOutput

func (o AccountOutput) ToAccountOutput() AccountOutput

func (AccountOutput) ToAccountOutputWithContext

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

func (AccountOutput) ToAccountPtrOutput

func (o AccountOutput) ToAccountPtrOutput() AccountPtrOutput

func (AccountOutput) ToAccountPtrOutputWithContext

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

type AccountPtrInput

type AccountPtrInput interface {
	pulumi.Input

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

type AccountPtrOutput

type AccountPtrOutput struct {
	*pulumi.OutputState
}

func (AccountPtrOutput) ElementType

func (AccountPtrOutput) ElementType() reflect.Type

func (AccountPtrOutput) ToAccountPtrOutput

func (o AccountPtrOutput) ToAccountPtrOutput() AccountPtrOutput

func (AccountPtrOutput) ToAccountPtrOutputWithContext

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

type AccountState

type AccountState struct {
}

func (AccountState) ElementType

func (AccountState) ElementType() reflect.Type

type ActionTarget

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/v4/go/aws/securityhub"
"github.com/pulumi/pulumi/sdk/v3/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

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

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

func (*ActionTarget) ElementType() reflect.Type

func (*ActionTarget) ToActionTargetOutput

func (i *ActionTarget) ToActionTargetOutput() ActionTargetOutput

func (*ActionTarget) ToActionTargetOutputWithContext

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

func (*ActionTarget) ToActionTargetPtrOutput

func (i *ActionTarget) ToActionTargetPtrOutput() ActionTargetPtrOutput

func (*ActionTarget) ToActionTargetPtrOutputWithContext

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

type ActionTargetArgs

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

func (ActionTargetArgs) ElementType() reflect.Type

type ActionTargetArray

type ActionTargetArray []ActionTargetInput

func (ActionTargetArray) ElementType

func (ActionTargetArray) ElementType() reflect.Type

func (ActionTargetArray) ToActionTargetArrayOutput

func (i ActionTargetArray) ToActionTargetArrayOutput() ActionTargetArrayOutput

func (ActionTargetArray) ToActionTargetArrayOutputWithContext

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

type ActionTargetArrayInput

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

type ActionTargetArrayOutput struct{ *pulumi.OutputState }

func (ActionTargetArrayOutput) ElementType

func (ActionTargetArrayOutput) ElementType() reflect.Type

func (ActionTargetArrayOutput) Index

func (ActionTargetArrayOutput) ToActionTargetArrayOutput

func (o ActionTargetArrayOutput) ToActionTargetArrayOutput() ActionTargetArrayOutput

func (ActionTargetArrayOutput) ToActionTargetArrayOutputWithContext

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

type ActionTargetInput

type ActionTargetInput interface {
	pulumi.Input

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

type ActionTargetMap

type ActionTargetMap map[string]ActionTargetInput

func (ActionTargetMap) ElementType

func (ActionTargetMap) ElementType() reflect.Type

func (ActionTargetMap) ToActionTargetMapOutput

func (i ActionTargetMap) ToActionTargetMapOutput() ActionTargetMapOutput

func (ActionTargetMap) ToActionTargetMapOutputWithContext

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

type ActionTargetMapInput

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

type ActionTargetMapOutput struct{ *pulumi.OutputState }

func (ActionTargetMapOutput) ElementType

func (ActionTargetMapOutput) ElementType() reflect.Type

func (ActionTargetMapOutput) MapIndex

func (ActionTargetMapOutput) ToActionTargetMapOutput

func (o ActionTargetMapOutput) ToActionTargetMapOutput() ActionTargetMapOutput

func (ActionTargetMapOutput) ToActionTargetMapOutputWithContext

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

type ActionTargetOutput

type ActionTargetOutput struct {
	*pulumi.OutputState
}

func (ActionTargetOutput) ElementType

func (ActionTargetOutput) ElementType() reflect.Type

func (ActionTargetOutput) ToActionTargetOutput

func (o ActionTargetOutput) ToActionTargetOutput() ActionTargetOutput

func (ActionTargetOutput) ToActionTargetOutputWithContext

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

func (ActionTargetOutput) ToActionTargetPtrOutput

func (o ActionTargetOutput) ToActionTargetPtrOutput() ActionTargetPtrOutput

func (ActionTargetOutput) ToActionTargetPtrOutputWithContext

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

type ActionTargetPtrInput

type ActionTargetPtrInput interface {
	pulumi.Input

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

type ActionTargetPtrOutput

type ActionTargetPtrOutput struct {
	*pulumi.OutputState
}

func (ActionTargetPtrOutput) ElementType

func (ActionTargetPtrOutput) ElementType() reflect.Type

func (ActionTargetPtrOutput) ToActionTargetPtrOutput

func (o ActionTargetPtrOutput) ToActionTargetPtrOutput() ActionTargetPtrOutput

func (ActionTargetPtrOutput) ToActionTargetPtrOutputWithContext

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

type ActionTargetState

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

func (ActionTargetState) ElementType() reflect.Type

type InviteAccepter

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/v4/go/aws/securityhub"
"github.com/pulumi/pulumi/sdk/v3/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

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

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

func (*InviteAccepter) ElementType() reflect.Type

func (*InviteAccepter) ToInviteAccepterOutput

func (i *InviteAccepter) ToInviteAccepterOutput() InviteAccepterOutput

func (*InviteAccepter) ToInviteAccepterOutputWithContext

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

func (*InviteAccepter) ToInviteAccepterPtrOutput

func (i *InviteAccepter) ToInviteAccepterPtrOutput() InviteAccepterPtrOutput

func (*InviteAccepter) ToInviteAccepterPtrOutputWithContext

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

type InviteAccepterArgs

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

func (InviteAccepterArgs) ElementType() reflect.Type

type InviteAccepterArray

type InviteAccepterArray []InviteAccepterInput

func (InviteAccepterArray) ElementType

func (InviteAccepterArray) ElementType() reflect.Type

func (InviteAccepterArray) ToInviteAccepterArrayOutput

func (i InviteAccepterArray) ToInviteAccepterArrayOutput() InviteAccepterArrayOutput

func (InviteAccepterArray) ToInviteAccepterArrayOutputWithContext

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

type InviteAccepterArrayInput

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

type InviteAccepterArrayOutput struct{ *pulumi.OutputState }

func (InviteAccepterArrayOutput) ElementType

func (InviteAccepterArrayOutput) ElementType() reflect.Type

func (InviteAccepterArrayOutput) Index

func (InviteAccepterArrayOutput) ToInviteAccepterArrayOutput

func (o InviteAccepterArrayOutput) ToInviteAccepterArrayOutput() InviteAccepterArrayOutput

func (InviteAccepterArrayOutput) ToInviteAccepterArrayOutputWithContext

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

type InviteAccepterInput

type InviteAccepterInput interface {
	pulumi.Input

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

type InviteAccepterMap

type InviteAccepterMap map[string]InviteAccepterInput

func (InviteAccepterMap) ElementType

func (InviteAccepterMap) ElementType() reflect.Type

func (InviteAccepterMap) ToInviteAccepterMapOutput

func (i InviteAccepterMap) ToInviteAccepterMapOutput() InviteAccepterMapOutput

func (InviteAccepterMap) ToInviteAccepterMapOutputWithContext

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

type InviteAccepterMapInput

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

type InviteAccepterMapOutput struct{ *pulumi.OutputState }

func (InviteAccepterMapOutput) ElementType

func (InviteAccepterMapOutput) ElementType() reflect.Type

func (InviteAccepterMapOutput) MapIndex

func (InviteAccepterMapOutput) ToInviteAccepterMapOutput

func (o InviteAccepterMapOutput) ToInviteAccepterMapOutput() InviteAccepterMapOutput

func (InviteAccepterMapOutput) ToInviteAccepterMapOutputWithContext

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

type InviteAccepterOutput

type InviteAccepterOutput struct {
	*pulumi.OutputState
}

func (InviteAccepterOutput) ElementType

func (InviteAccepterOutput) ElementType() reflect.Type

func (InviteAccepterOutput) ToInviteAccepterOutput

func (o InviteAccepterOutput) ToInviteAccepterOutput() InviteAccepterOutput

func (InviteAccepterOutput) ToInviteAccepterOutputWithContext

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

func (InviteAccepterOutput) ToInviteAccepterPtrOutput

func (o InviteAccepterOutput) ToInviteAccepterPtrOutput() InviteAccepterPtrOutput

func (InviteAccepterOutput) ToInviteAccepterPtrOutputWithContext

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

type InviteAccepterPtrInput

type InviteAccepterPtrInput interface {
	pulumi.Input

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

type InviteAccepterPtrOutput

type InviteAccepterPtrOutput struct {
	*pulumi.OutputState
}

func (InviteAccepterPtrOutput) ElementType

func (InviteAccepterPtrOutput) ElementType() reflect.Type

func (InviteAccepterPtrOutput) ToInviteAccepterPtrOutput

func (o InviteAccepterPtrOutput) ToInviteAccepterPtrOutput() InviteAccepterPtrOutput

func (InviteAccepterPtrOutput) ToInviteAccepterPtrOutputWithContext

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

type InviteAccepterState

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

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/v4/go/aws/securityhub"
"github.com/pulumi/pulumi/sdk/v3/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

func (*Member) ElementType() reflect.Type

func (*Member) ToMemberOutput

func (i *Member) ToMemberOutput() MemberOutput

func (*Member) ToMemberOutputWithContext

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

func (*Member) ToMemberPtrOutput

func (i *Member) ToMemberPtrOutput() MemberPtrOutput

func (*Member) ToMemberPtrOutputWithContext

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

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

func (MemberOutput) ElementType() reflect.Type

func (MemberOutput) ToMemberOutput

func (o MemberOutput) ToMemberOutput() MemberOutput

func (MemberOutput) ToMemberOutputWithContext

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

func (MemberOutput) ToMemberPtrOutput

func (o MemberOutput) ToMemberPtrOutput() MemberPtrOutput

func (MemberOutput) ToMemberPtrOutputWithContext

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

type MemberPtrInput

type MemberPtrInput interface {
	pulumi.Input

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

type MemberPtrOutput

type MemberPtrOutput struct {
	*pulumi.OutputState
}

func (MemberPtrOutput) ElementType

func (MemberPtrOutput) ElementType() reflect.Type

func (MemberPtrOutput) ToMemberPtrOutput

func (o MemberPtrOutput) ToMemberPtrOutput() MemberPtrOutput

func (MemberPtrOutput) ToMemberPtrOutputWithContext

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

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/v4/go/aws/organizations"
"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/securityhub"
"github.com/pulumi/pulumi/sdk/v3/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

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

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

func (*OrganizationAdminAccount) ElementType() reflect.Type

func (*OrganizationAdminAccount) ToOrganizationAdminAccountOutput

func (i *OrganizationAdminAccount) ToOrganizationAdminAccountOutput() OrganizationAdminAccountOutput

func (*OrganizationAdminAccount) ToOrganizationAdminAccountOutputWithContext

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

func (*OrganizationAdminAccount) ToOrganizationAdminAccountPtrOutput

func (i *OrganizationAdminAccount) ToOrganizationAdminAccountPtrOutput() OrganizationAdminAccountPtrOutput

func (*OrganizationAdminAccount) ToOrganizationAdminAccountPtrOutputWithContext

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

type OrganizationAdminAccountArgs

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

type OrganizationAdminAccountArray

type OrganizationAdminAccountArray []OrganizationAdminAccountInput

func (OrganizationAdminAccountArray) ElementType

func (OrganizationAdminAccountArray) ToOrganizationAdminAccountArrayOutput

func (i OrganizationAdminAccountArray) ToOrganizationAdminAccountArrayOutput() OrganizationAdminAccountArrayOutput

func (OrganizationAdminAccountArray) ToOrganizationAdminAccountArrayOutputWithContext

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

type OrganizationAdminAccountArrayInput

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

type OrganizationAdminAccountArrayOutput struct{ *pulumi.OutputState }

func (OrganizationAdminAccountArrayOutput) ElementType

func (OrganizationAdminAccountArrayOutput) Index

func (OrganizationAdminAccountArrayOutput) ToOrganizationAdminAccountArrayOutput

func (o OrganizationAdminAccountArrayOutput) ToOrganizationAdminAccountArrayOutput() OrganizationAdminAccountArrayOutput

func (OrganizationAdminAccountArrayOutput) ToOrganizationAdminAccountArrayOutputWithContext

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

type OrganizationAdminAccountInput

type OrganizationAdminAccountInput interface {
	pulumi.Input

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

type OrganizationAdminAccountMap

type OrganizationAdminAccountMap map[string]OrganizationAdminAccountInput

func (OrganizationAdminAccountMap) ElementType

func (OrganizationAdminAccountMap) ToOrganizationAdminAccountMapOutput

func (i OrganizationAdminAccountMap) ToOrganizationAdminAccountMapOutput() OrganizationAdminAccountMapOutput

func (OrganizationAdminAccountMap) ToOrganizationAdminAccountMapOutputWithContext

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

type OrganizationAdminAccountMapInput

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

type OrganizationAdminAccountMapOutput struct{ *pulumi.OutputState }

func (OrganizationAdminAccountMapOutput) ElementType

func (OrganizationAdminAccountMapOutput) MapIndex

func (OrganizationAdminAccountMapOutput) ToOrganizationAdminAccountMapOutput

func (o OrganizationAdminAccountMapOutput) ToOrganizationAdminAccountMapOutput() OrganizationAdminAccountMapOutput

func (OrganizationAdminAccountMapOutput) ToOrganizationAdminAccountMapOutputWithContext

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

type OrganizationAdminAccountOutput

type OrganizationAdminAccountOutput struct {
	*pulumi.OutputState
}

func (OrganizationAdminAccountOutput) ElementType

func (OrganizationAdminAccountOutput) ToOrganizationAdminAccountOutput

func (o OrganizationAdminAccountOutput) ToOrganizationAdminAccountOutput() OrganizationAdminAccountOutput

func (OrganizationAdminAccountOutput) ToOrganizationAdminAccountOutputWithContext

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

func (OrganizationAdminAccountOutput) ToOrganizationAdminAccountPtrOutput

func (o OrganizationAdminAccountOutput) ToOrganizationAdminAccountPtrOutput() OrganizationAdminAccountPtrOutput

func (OrganizationAdminAccountOutput) ToOrganizationAdminAccountPtrOutputWithContext

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

type OrganizationAdminAccountPtrInput

type OrganizationAdminAccountPtrInput interface {
	pulumi.Input

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

type OrganizationAdminAccountPtrOutput

type OrganizationAdminAccountPtrOutput struct {
	*pulumi.OutputState
}

func (OrganizationAdminAccountPtrOutput) ElementType

func (OrganizationAdminAccountPtrOutput) ToOrganizationAdminAccountPtrOutput

func (o OrganizationAdminAccountPtrOutput) ToOrganizationAdminAccountPtrOutput() OrganizationAdminAccountPtrOutput

func (OrganizationAdminAccountPtrOutput) ToOrganizationAdminAccountPtrOutputWithContext

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

type OrganizationAdminAccountState

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

func (OrganizationAdminAccountState) ElementType

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/v4/go/aws"
"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/securityhub"
"github.com/pulumi/pulumi/sdk/v3/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

func (*ProductSubscription) ElementType() reflect.Type

func (*ProductSubscription) ToProductSubscriptionOutput

func (i *ProductSubscription) ToProductSubscriptionOutput() ProductSubscriptionOutput

func (*ProductSubscription) ToProductSubscriptionOutputWithContext

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

func (*ProductSubscription) ToProductSubscriptionPtrOutput

func (i *ProductSubscription) ToProductSubscriptionPtrOutput() ProductSubscriptionPtrOutput

func (*ProductSubscription) ToProductSubscriptionPtrOutputWithContext

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

type ProductSubscriptionArray []ProductSubscriptionInput

func (ProductSubscriptionArray) ElementType

func (ProductSubscriptionArray) ElementType() reflect.Type

func (ProductSubscriptionArray) ToProductSubscriptionArrayOutput

func (i ProductSubscriptionArray) ToProductSubscriptionArrayOutput() ProductSubscriptionArrayOutput

func (ProductSubscriptionArray) ToProductSubscriptionArrayOutputWithContext

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

type ProductSubscriptionArrayInput

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

type ProductSubscriptionArrayOutput struct{ *pulumi.OutputState }

func (ProductSubscriptionArrayOutput) ElementType

func (ProductSubscriptionArrayOutput) Index

func (ProductSubscriptionArrayOutput) ToProductSubscriptionArrayOutput

func (o ProductSubscriptionArrayOutput) ToProductSubscriptionArrayOutput() ProductSubscriptionArrayOutput

func (ProductSubscriptionArrayOutput) ToProductSubscriptionArrayOutputWithContext

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

type ProductSubscriptionInput

type ProductSubscriptionInput interface {
	pulumi.Input

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

type ProductSubscriptionMap

type ProductSubscriptionMap map[string]ProductSubscriptionInput

func (ProductSubscriptionMap) ElementType

func (ProductSubscriptionMap) ElementType() reflect.Type

func (ProductSubscriptionMap) ToProductSubscriptionMapOutput

func (i ProductSubscriptionMap) ToProductSubscriptionMapOutput() ProductSubscriptionMapOutput

func (ProductSubscriptionMap) ToProductSubscriptionMapOutputWithContext

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

type ProductSubscriptionMapInput

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

type ProductSubscriptionMapOutput struct{ *pulumi.OutputState }

func (ProductSubscriptionMapOutput) ElementType

func (ProductSubscriptionMapOutput) MapIndex

func (ProductSubscriptionMapOutput) ToProductSubscriptionMapOutput

func (o ProductSubscriptionMapOutput) ToProductSubscriptionMapOutput() ProductSubscriptionMapOutput

func (ProductSubscriptionMapOutput) ToProductSubscriptionMapOutputWithContext

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

type ProductSubscriptionOutput

type ProductSubscriptionOutput struct {
	*pulumi.OutputState
}

func (ProductSubscriptionOutput) ElementType

func (ProductSubscriptionOutput) ElementType() reflect.Type

func (ProductSubscriptionOutput) ToProductSubscriptionOutput

func (o ProductSubscriptionOutput) ToProductSubscriptionOutput() ProductSubscriptionOutput

func (ProductSubscriptionOutput) ToProductSubscriptionOutputWithContext

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

func (ProductSubscriptionOutput) ToProductSubscriptionPtrOutput

func (o ProductSubscriptionOutput) ToProductSubscriptionPtrOutput() ProductSubscriptionPtrOutput

func (ProductSubscriptionOutput) ToProductSubscriptionPtrOutputWithContext

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

type ProductSubscriptionPtrInput

type ProductSubscriptionPtrInput interface {
	pulumi.Input

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

type ProductSubscriptionPtrOutput

type ProductSubscriptionPtrOutput struct {
	*pulumi.OutputState
}

func (ProductSubscriptionPtrOutput) ElementType

func (ProductSubscriptionPtrOutput) ToProductSubscriptionPtrOutput

func (o ProductSubscriptionPtrOutput) ToProductSubscriptionPtrOutput() ProductSubscriptionPtrOutput

func (ProductSubscriptionPtrOutput) ToProductSubscriptionPtrOutputWithContext

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/v4/go/aws/securityhub"
"github.com/pulumi/pulumi/sdk/v3/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

func (*StandardsSubscription) ElementType() reflect.Type

func (*StandardsSubscription) ToStandardsSubscriptionOutput

func (i *StandardsSubscription) ToStandardsSubscriptionOutput() StandardsSubscriptionOutput

func (*StandardsSubscription) ToStandardsSubscriptionOutputWithContext

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

func (*StandardsSubscription) ToStandardsSubscriptionPtrOutput

func (i *StandardsSubscription) ToStandardsSubscriptionPtrOutput() StandardsSubscriptionPtrOutput

func (*StandardsSubscription) ToStandardsSubscriptionPtrOutputWithContext

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

type StandardsSubscriptionArray []StandardsSubscriptionInput

func (StandardsSubscriptionArray) ElementType

func (StandardsSubscriptionArray) ElementType() reflect.Type

func (StandardsSubscriptionArray) ToStandardsSubscriptionArrayOutput

func (i StandardsSubscriptionArray) ToStandardsSubscriptionArrayOutput() StandardsSubscriptionArrayOutput

func (StandardsSubscriptionArray) ToStandardsSubscriptionArrayOutputWithContext

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

type StandardsSubscriptionArrayInput

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

type StandardsSubscriptionArrayOutput struct{ *pulumi.OutputState }

func (StandardsSubscriptionArrayOutput) ElementType

func (StandardsSubscriptionArrayOutput) Index

func (StandardsSubscriptionArrayOutput) ToStandardsSubscriptionArrayOutput

func (o StandardsSubscriptionArrayOutput) ToStandardsSubscriptionArrayOutput() StandardsSubscriptionArrayOutput

func (StandardsSubscriptionArrayOutput) ToStandardsSubscriptionArrayOutputWithContext

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

type StandardsSubscriptionInput

type StandardsSubscriptionInput interface {
	pulumi.Input

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

type StandardsSubscriptionMap

type StandardsSubscriptionMap map[string]StandardsSubscriptionInput

func (StandardsSubscriptionMap) ElementType

func (StandardsSubscriptionMap) ElementType() reflect.Type

func (StandardsSubscriptionMap) ToStandardsSubscriptionMapOutput

func (i StandardsSubscriptionMap) ToStandardsSubscriptionMapOutput() StandardsSubscriptionMapOutput

func (StandardsSubscriptionMap) ToStandardsSubscriptionMapOutputWithContext

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

type StandardsSubscriptionMapInput

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

type StandardsSubscriptionMapOutput struct{ *pulumi.OutputState }

func (StandardsSubscriptionMapOutput) ElementType

func (StandardsSubscriptionMapOutput) MapIndex

func (StandardsSubscriptionMapOutput) ToStandardsSubscriptionMapOutput

func (o StandardsSubscriptionMapOutput) ToStandardsSubscriptionMapOutput() StandardsSubscriptionMapOutput

func (StandardsSubscriptionMapOutput) ToStandardsSubscriptionMapOutputWithContext

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

type StandardsSubscriptionOutput

type StandardsSubscriptionOutput struct {
	*pulumi.OutputState
}

func (StandardsSubscriptionOutput) ElementType

func (StandardsSubscriptionOutput) ToStandardsSubscriptionOutput

func (o StandardsSubscriptionOutput) ToStandardsSubscriptionOutput() StandardsSubscriptionOutput

func (StandardsSubscriptionOutput) ToStandardsSubscriptionOutputWithContext

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

func (StandardsSubscriptionOutput) ToStandardsSubscriptionPtrOutput

func (o StandardsSubscriptionOutput) ToStandardsSubscriptionPtrOutput() StandardsSubscriptionPtrOutput

func (StandardsSubscriptionOutput) ToStandardsSubscriptionPtrOutputWithContext

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

type StandardsSubscriptionPtrInput

type StandardsSubscriptionPtrInput interface {
	pulumi.Input

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

type StandardsSubscriptionPtrOutput

type StandardsSubscriptionPtrOutput struct {
	*pulumi.OutputState
}

func (StandardsSubscriptionPtrOutput) ElementType

func (StandardsSubscriptionPtrOutput) ToStandardsSubscriptionPtrOutput

func (o StandardsSubscriptionPtrOutput) ToStandardsSubscriptionPtrOutput() StandardsSubscriptionPtrOutput

func (StandardsSubscriptionPtrOutput) ToStandardsSubscriptionPtrOutputWithContext

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