Documentation ¶
Index ¶
- type Account
- func (*Account) ElementType() reflect.Type
- func (i *Account) ToAccountOutput() AccountOutput
- func (i *Account) ToAccountOutputWithContext(ctx context.Context) AccountOutput
- func (i *Account) ToAccountPtrOutput() AccountPtrOutput
- func (i *Account) ToAccountPtrOutputWithContext(ctx context.Context) AccountPtrOutput
- type AccountArgs
- type AccountArray
- type AccountArrayInput
- type AccountArrayOutput
- type AccountInput
- type AccountMap
- type AccountMapInput
- type AccountMapOutput
- type AccountOutput
- func (AccountOutput) ElementType() reflect.Type
- func (o AccountOutput) ToAccountOutput() AccountOutput
- func (o AccountOutput) ToAccountOutputWithContext(ctx context.Context) AccountOutput
- func (o AccountOutput) ToAccountPtrOutput() AccountPtrOutput
- func (o AccountOutput) ToAccountPtrOutputWithContext(ctx context.Context) AccountPtrOutput
- type AccountPtrInput
- type AccountPtrOutput
- type AccountState
- type ActionTarget
- func (*ActionTarget) ElementType() reflect.Type
- func (i *ActionTarget) ToActionTargetOutput() ActionTargetOutput
- func (i *ActionTarget) ToActionTargetOutputWithContext(ctx context.Context) ActionTargetOutput
- func (i *ActionTarget) ToActionTargetPtrOutput() ActionTargetPtrOutput
- func (i *ActionTarget) ToActionTargetPtrOutputWithContext(ctx context.Context) ActionTargetPtrOutput
- type ActionTargetArgs
- type ActionTargetArray
- type ActionTargetArrayInput
- type ActionTargetArrayOutput
- func (ActionTargetArrayOutput) ElementType() reflect.Type
- func (o ActionTargetArrayOutput) Index(i pulumi.IntInput) ActionTargetOutput
- func (o ActionTargetArrayOutput) ToActionTargetArrayOutput() ActionTargetArrayOutput
- func (o ActionTargetArrayOutput) ToActionTargetArrayOutputWithContext(ctx context.Context) ActionTargetArrayOutput
- type ActionTargetInput
- type ActionTargetMap
- type ActionTargetMapInput
- type ActionTargetMapOutput
- func (ActionTargetMapOutput) ElementType() reflect.Type
- func (o ActionTargetMapOutput) MapIndex(k pulumi.StringInput) ActionTargetOutput
- func (o ActionTargetMapOutput) ToActionTargetMapOutput() ActionTargetMapOutput
- func (o ActionTargetMapOutput) ToActionTargetMapOutputWithContext(ctx context.Context) ActionTargetMapOutput
- type ActionTargetOutput
- func (ActionTargetOutput) ElementType() reflect.Type
- func (o ActionTargetOutput) ToActionTargetOutput() ActionTargetOutput
- func (o ActionTargetOutput) ToActionTargetOutputWithContext(ctx context.Context) ActionTargetOutput
- func (o ActionTargetOutput) ToActionTargetPtrOutput() ActionTargetPtrOutput
- func (o ActionTargetOutput) ToActionTargetPtrOutputWithContext(ctx context.Context) ActionTargetPtrOutput
- type ActionTargetPtrInput
- type ActionTargetPtrOutput
- type ActionTargetState
- type Member
- func (*Member) ElementType() reflect.Type
- func (i *Member) ToMemberOutput() MemberOutput
- func (i *Member) ToMemberOutputWithContext(ctx context.Context) MemberOutput
- func (i *Member) ToMemberPtrOutput() MemberPtrOutput
- func (i *Member) ToMemberPtrOutputWithContext(ctx context.Context) MemberPtrOutput
- type MemberArgs
- type MemberArray
- type MemberArrayInput
- type MemberArrayOutput
- type MemberInput
- type MemberMap
- type MemberMapInput
- type MemberMapOutput
- type MemberOutput
- func (MemberOutput) ElementType() reflect.Type
- func (o MemberOutput) ToMemberOutput() MemberOutput
- func (o MemberOutput) ToMemberOutputWithContext(ctx context.Context) MemberOutput
- func (o MemberOutput) ToMemberPtrOutput() MemberPtrOutput
- func (o MemberOutput) ToMemberPtrOutputWithContext(ctx context.Context) MemberPtrOutput
- type MemberPtrInput
- type MemberPtrOutput
- type MemberState
- type ProductSubscription
- func (*ProductSubscription) ElementType() reflect.Type
- func (i *ProductSubscription) ToProductSubscriptionOutput() ProductSubscriptionOutput
- func (i *ProductSubscription) ToProductSubscriptionOutputWithContext(ctx context.Context) ProductSubscriptionOutput
- func (i *ProductSubscription) ToProductSubscriptionPtrOutput() ProductSubscriptionPtrOutput
- func (i *ProductSubscription) ToProductSubscriptionPtrOutputWithContext(ctx context.Context) ProductSubscriptionPtrOutput
- type ProductSubscriptionArgs
- type ProductSubscriptionArray
- type ProductSubscriptionArrayInput
- type ProductSubscriptionArrayOutput
- func (ProductSubscriptionArrayOutput) ElementType() reflect.Type
- func (o ProductSubscriptionArrayOutput) Index(i pulumi.IntInput) ProductSubscriptionOutput
- func (o ProductSubscriptionArrayOutput) ToProductSubscriptionArrayOutput() ProductSubscriptionArrayOutput
- func (o ProductSubscriptionArrayOutput) ToProductSubscriptionArrayOutputWithContext(ctx context.Context) ProductSubscriptionArrayOutput
- type ProductSubscriptionInput
- type ProductSubscriptionMap
- type ProductSubscriptionMapInput
- type ProductSubscriptionMapOutput
- func (ProductSubscriptionMapOutput) ElementType() reflect.Type
- func (o ProductSubscriptionMapOutput) MapIndex(k pulumi.StringInput) ProductSubscriptionOutput
- func (o ProductSubscriptionMapOutput) ToProductSubscriptionMapOutput() ProductSubscriptionMapOutput
- func (o ProductSubscriptionMapOutput) ToProductSubscriptionMapOutputWithContext(ctx context.Context) ProductSubscriptionMapOutput
- type ProductSubscriptionOutput
- func (ProductSubscriptionOutput) ElementType() reflect.Type
- func (o ProductSubscriptionOutput) ToProductSubscriptionOutput() ProductSubscriptionOutput
- func (o ProductSubscriptionOutput) ToProductSubscriptionOutputWithContext(ctx context.Context) ProductSubscriptionOutput
- func (o ProductSubscriptionOutput) ToProductSubscriptionPtrOutput() ProductSubscriptionPtrOutput
- func (o ProductSubscriptionOutput) ToProductSubscriptionPtrOutputWithContext(ctx context.Context) ProductSubscriptionPtrOutput
- type ProductSubscriptionPtrInput
- type ProductSubscriptionPtrOutput
- type ProductSubscriptionState
- type StandardsSubscription
- func (*StandardsSubscription) ElementType() reflect.Type
- func (i *StandardsSubscription) ToStandardsSubscriptionOutput() StandardsSubscriptionOutput
- func (i *StandardsSubscription) ToStandardsSubscriptionOutputWithContext(ctx context.Context) StandardsSubscriptionOutput
- func (i *StandardsSubscription) ToStandardsSubscriptionPtrOutput() StandardsSubscriptionPtrOutput
- func (i *StandardsSubscription) ToStandardsSubscriptionPtrOutputWithContext(ctx context.Context) StandardsSubscriptionPtrOutput
- type StandardsSubscriptionArgs
- type StandardsSubscriptionArray
- func (StandardsSubscriptionArray) ElementType() reflect.Type
- func (i StandardsSubscriptionArray) ToStandardsSubscriptionArrayOutput() StandardsSubscriptionArrayOutput
- func (i StandardsSubscriptionArray) ToStandardsSubscriptionArrayOutputWithContext(ctx context.Context) StandardsSubscriptionArrayOutput
- type StandardsSubscriptionArrayInput
- type StandardsSubscriptionArrayOutput
- func (StandardsSubscriptionArrayOutput) ElementType() reflect.Type
- func (o StandardsSubscriptionArrayOutput) Index(i pulumi.IntInput) StandardsSubscriptionOutput
- func (o StandardsSubscriptionArrayOutput) ToStandardsSubscriptionArrayOutput() StandardsSubscriptionArrayOutput
- func (o StandardsSubscriptionArrayOutput) ToStandardsSubscriptionArrayOutputWithContext(ctx context.Context) StandardsSubscriptionArrayOutput
- type StandardsSubscriptionInput
- type StandardsSubscriptionMap
- type StandardsSubscriptionMapInput
- type StandardsSubscriptionMapOutput
- func (StandardsSubscriptionMapOutput) ElementType() reflect.Type
- func (o StandardsSubscriptionMapOutput) MapIndex(k pulumi.StringInput) StandardsSubscriptionOutput
- func (o StandardsSubscriptionMapOutput) ToStandardsSubscriptionMapOutput() StandardsSubscriptionMapOutput
- func (o StandardsSubscriptionMapOutput) ToStandardsSubscriptionMapOutputWithContext(ctx context.Context) StandardsSubscriptionMapOutput
- type StandardsSubscriptionOutput
- func (StandardsSubscriptionOutput) ElementType() reflect.Type
- func (o StandardsSubscriptionOutput) ToStandardsSubscriptionOutput() StandardsSubscriptionOutput
- func (o StandardsSubscriptionOutput) ToStandardsSubscriptionOutputWithContext(ctx context.Context) StandardsSubscriptionOutput
- func (o StandardsSubscriptionOutput) ToStandardsSubscriptionPtrOutput() StandardsSubscriptionPtrOutput
- func (o StandardsSubscriptionOutput) ToStandardsSubscriptionPtrOutputWithContext(ctx context.Context) StandardsSubscriptionPtrOutput
- type StandardsSubscriptionPtrInput
- type StandardsSubscriptionPtrOutput
- func (StandardsSubscriptionPtrOutput) ElementType() reflect.Type
- func (o StandardsSubscriptionPtrOutput) ToStandardsSubscriptionPtrOutput() StandardsSubscriptionPtrOutput
- func (o StandardsSubscriptionPtrOutput) ToStandardsSubscriptionPtrOutputWithContext(ctx context.Context) StandardsSubscriptionPtrOutput
- type StandardsSubscriptionState
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) 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 (o AccountArrayOutput) Index(i pulumi.IntInput) AccountOutput
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 (o AccountMapOutput) MapIndex(k pulumi.StringInput) AccountOutput
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 (o ActionTargetArrayOutput) Index(i pulumi.IntInput) ActionTargetOutput
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 (o ActionTargetMapOutput) MapIndex(k pulumi.StringInput) ActionTargetOutput
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 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) 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 (o MemberArrayOutput) Index(i pulumi.IntInput) MemberOutput
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) 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 (o MemberMapOutput) MapIndex(k pulumi.StringInput) MemberOutput
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 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) ElementType() reflect.Type
func (ProductSubscriptionArrayOutput) Index ¶ added in v3.25.0
func (o ProductSubscriptionArrayOutput) Index(i pulumi.IntInput) ProductSubscriptionOutput
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) ElementType() reflect.Type
func (ProductSubscriptionMapOutput) MapIndex ¶ added in v3.25.0
func (o ProductSubscriptionMapOutput) MapIndex(k pulumi.StringInput) ProductSubscriptionOutput
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) ElementType() reflect.Type
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) ElementType() reflect.Type
func (StandardsSubscriptionArrayOutput) Index ¶ added in v3.25.0
func (o StandardsSubscriptionArrayOutput) Index(i pulumi.IntInput) StandardsSubscriptionOutput
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) ElementType() reflect.Type
func (StandardsSubscriptionMapOutput) MapIndex ¶ added in v3.25.0
func (o StandardsSubscriptionMapOutput) MapIndex(k pulumi.StringInput) StandardsSubscriptionOutput
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) ElementType() reflect.Type
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) ElementType() reflect.Type
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