Documentation ¶
Index ¶
- type DelegatedAdminAccount
- type DelegatedAdminAccountArgs
- type DelegatedAdminAccountArray
- func (DelegatedAdminAccountArray) ElementType() reflect.Type
- func (i DelegatedAdminAccountArray) ToDelegatedAdminAccountArrayOutput() DelegatedAdminAccountArrayOutput
- func (i DelegatedAdminAccountArray) ToDelegatedAdminAccountArrayOutputWithContext(ctx context.Context) DelegatedAdminAccountArrayOutput
- type DelegatedAdminAccountArrayInput
- type DelegatedAdminAccountArrayOutput
- func (DelegatedAdminAccountArrayOutput) ElementType() reflect.Type
- func (o DelegatedAdminAccountArrayOutput) Index(i pulumi.IntInput) DelegatedAdminAccountOutput
- func (o DelegatedAdminAccountArrayOutput) ToDelegatedAdminAccountArrayOutput() DelegatedAdminAccountArrayOutput
- func (o DelegatedAdminAccountArrayOutput) ToDelegatedAdminAccountArrayOutputWithContext(ctx context.Context) DelegatedAdminAccountArrayOutput
- type DelegatedAdminAccountInput
- type DelegatedAdminAccountMap
- type DelegatedAdminAccountMapInput
- type DelegatedAdminAccountMapOutput
- func (DelegatedAdminAccountMapOutput) ElementType() reflect.Type
- func (o DelegatedAdminAccountMapOutput) MapIndex(k pulumi.StringInput) DelegatedAdminAccountOutput
- func (o DelegatedAdminAccountMapOutput) ToDelegatedAdminAccountMapOutput() DelegatedAdminAccountMapOutput
- func (o DelegatedAdminAccountMapOutput) ToDelegatedAdminAccountMapOutputWithContext(ctx context.Context) DelegatedAdminAccountMapOutput
- type DelegatedAdminAccountOutput
- func (o DelegatedAdminAccountOutput) AccountId() pulumi.StringOutput
- func (DelegatedAdminAccountOutput) ElementType() reflect.Type
- func (o DelegatedAdminAccountOutput) RelationshipStatus() pulumi.StringOutput
- func (o DelegatedAdminAccountOutput) ToDelegatedAdminAccountOutput() DelegatedAdminAccountOutput
- func (o DelegatedAdminAccountOutput) ToDelegatedAdminAccountOutputWithContext(ctx context.Context) DelegatedAdminAccountOutput
- type DelegatedAdminAccountState
- type Enabler
- type EnablerArgs
- type EnablerArray
- type EnablerArrayInput
- type EnablerArrayOutput
- type EnablerInput
- type EnablerMap
- type EnablerMapInput
- type EnablerMapOutput
- type EnablerOutput
- func (o EnablerOutput) AccountIds() pulumi.StringArrayOutput
- func (EnablerOutput) ElementType() reflect.Type
- func (o EnablerOutput) ResourceTypes() pulumi.StringArrayOutput
- func (o EnablerOutput) ToEnablerOutput() EnablerOutput
- func (o EnablerOutput) ToEnablerOutputWithContext(ctx context.Context) EnablerOutput
- type EnablerState
- type OrganizationConfiguration
- type OrganizationConfigurationArgs
- type OrganizationConfigurationArray
- func (OrganizationConfigurationArray) ElementType() reflect.Type
- func (i OrganizationConfigurationArray) ToOrganizationConfigurationArrayOutput() OrganizationConfigurationArrayOutput
- func (i OrganizationConfigurationArray) ToOrganizationConfigurationArrayOutputWithContext(ctx context.Context) OrganizationConfigurationArrayOutput
- type OrganizationConfigurationArrayInput
- type OrganizationConfigurationArrayOutput
- func (OrganizationConfigurationArrayOutput) ElementType() reflect.Type
- func (o OrganizationConfigurationArrayOutput) Index(i pulumi.IntInput) OrganizationConfigurationOutput
- func (o OrganizationConfigurationArrayOutput) ToOrganizationConfigurationArrayOutput() OrganizationConfigurationArrayOutput
- func (o OrganizationConfigurationArrayOutput) ToOrganizationConfigurationArrayOutputWithContext(ctx context.Context) OrganizationConfigurationArrayOutput
- type OrganizationConfigurationAutoEnable
- type OrganizationConfigurationAutoEnableArgs
- func (OrganizationConfigurationAutoEnableArgs) ElementType() reflect.Type
- func (i OrganizationConfigurationAutoEnableArgs) ToOrganizationConfigurationAutoEnableOutput() OrganizationConfigurationAutoEnableOutput
- func (i OrganizationConfigurationAutoEnableArgs) ToOrganizationConfigurationAutoEnableOutputWithContext(ctx context.Context) OrganizationConfigurationAutoEnableOutput
- func (i OrganizationConfigurationAutoEnableArgs) ToOrganizationConfigurationAutoEnablePtrOutput() OrganizationConfigurationAutoEnablePtrOutput
- func (i OrganizationConfigurationAutoEnableArgs) ToOrganizationConfigurationAutoEnablePtrOutputWithContext(ctx context.Context) OrganizationConfigurationAutoEnablePtrOutput
- type OrganizationConfigurationAutoEnableInput
- type OrganizationConfigurationAutoEnableOutput
- func (o OrganizationConfigurationAutoEnableOutput) Ec2() pulumi.BoolOutput
- func (o OrganizationConfigurationAutoEnableOutput) Ecr() pulumi.BoolOutput
- func (OrganizationConfigurationAutoEnableOutput) ElementType() reflect.Type
- func (o OrganizationConfigurationAutoEnableOutput) ToOrganizationConfigurationAutoEnableOutput() OrganizationConfigurationAutoEnableOutput
- func (o OrganizationConfigurationAutoEnableOutput) ToOrganizationConfigurationAutoEnableOutputWithContext(ctx context.Context) OrganizationConfigurationAutoEnableOutput
- func (o OrganizationConfigurationAutoEnableOutput) ToOrganizationConfigurationAutoEnablePtrOutput() OrganizationConfigurationAutoEnablePtrOutput
- func (o OrganizationConfigurationAutoEnableOutput) ToOrganizationConfigurationAutoEnablePtrOutputWithContext(ctx context.Context) OrganizationConfigurationAutoEnablePtrOutput
- type OrganizationConfigurationAutoEnablePtrInput
- type OrganizationConfigurationAutoEnablePtrOutput
- func (o OrganizationConfigurationAutoEnablePtrOutput) Ec2() pulumi.BoolPtrOutput
- func (o OrganizationConfigurationAutoEnablePtrOutput) Ecr() pulumi.BoolPtrOutput
- func (o OrganizationConfigurationAutoEnablePtrOutput) Elem() OrganizationConfigurationAutoEnableOutput
- func (OrganizationConfigurationAutoEnablePtrOutput) ElementType() reflect.Type
- func (o OrganizationConfigurationAutoEnablePtrOutput) ToOrganizationConfigurationAutoEnablePtrOutput() OrganizationConfigurationAutoEnablePtrOutput
- func (o OrganizationConfigurationAutoEnablePtrOutput) ToOrganizationConfigurationAutoEnablePtrOutputWithContext(ctx context.Context) OrganizationConfigurationAutoEnablePtrOutput
- type OrganizationConfigurationInput
- type OrganizationConfigurationMap
- func (OrganizationConfigurationMap) ElementType() reflect.Type
- func (i OrganizationConfigurationMap) ToOrganizationConfigurationMapOutput() OrganizationConfigurationMapOutput
- func (i OrganizationConfigurationMap) ToOrganizationConfigurationMapOutputWithContext(ctx context.Context) OrganizationConfigurationMapOutput
- type OrganizationConfigurationMapInput
- type OrganizationConfigurationMapOutput
- func (OrganizationConfigurationMapOutput) ElementType() reflect.Type
- func (o OrganizationConfigurationMapOutput) MapIndex(k pulumi.StringInput) OrganizationConfigurationOutput
- func (o OrganizationConfigurationMapOutput) ToOrganizationConfigurationMapOutput() OrganizationConfigurationMapOutput
- func (o OrganizationConfigurationMapOutput) ToOrganizationConfigurationMapOutputWithContext(ctx context.Context) OrganizationConfigurationMapOutput
- type OrganizationConfigurationOutput
- func (o OrganizationConfigurationOutput) AutoEnable() OrganizationConfigurationAutoEnableOutput
- func (OrganizationConfigurationOutput) ElementType() reflect.Type
- func (o OrganizationConfigurationOutput) MaxAccountLimitReached() pulumi.BoolOutput
- func (o OrganizationConfigurationOutput) ToOrganizationConfigurationOutput() OrganizationConfigurationOutput
- func (o OrganizationConfigurationOutput) ToOrganizationConfigurationOutputWithContext(ctx context.Context) OrganizationConfigurationOutput
- type OrganizationConfigurationState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DelegatedAdminAccount ¶ added in v5.18.0
type DelegatedAdminAccount struct { pulumi.CustomResourceState // Account to enable as delegated admin account. AccountId pulumi.StringOutput `pulumi:"accountId"` // Status of this delegated admin account. RelationshipStatus pulumi.StringOutput `pulumi:"relationshipStatus"` }
Resource for managing an AWS Inspector V2 Delegated Admin Account.
## Example Usage
## Import
Inspector V2 Delegated Admin Account can be imported using the `account_id`, e.g.,
```sh
$ pulumi import aws:inspector2/delegatedAdminAccount:DelegatedAdminAccount example 012345678901
```
func GetDelegatedAdminAccount ¶ added in v5.18.0
func GetDelegatedAdminAccount(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DelegatedAdminAccountState, opts ...pulumi.ResourceOption) (*DelegatedAdminAccount, error)
GetDelegatedAdminAccount gets an existing DelegatedAdminAccount 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 NewDelegatedAdminAccount ¶ added in v5.18.0
func NewDelegatedAdminAccount(ctx *pulumi.Context, name string, args *DelegatedAdminAccountArgs, opts ...pulumi.ResourceOption) (*DelegatedAdminAccount, error)
NewDelegatedAdminAccount registers a new resource with the given unique name, arguments, and options.
func (*DelegatedAdminAccount) ElementType ¶ added in v5.18.0
func (*DelegatedAdminAccount) ElementType() reflect.Type
func (*DelegatedAdminAccount) ToDelegatedAdminAccountOutput ¶ added in v5.18.0
func (i *DelegatedAdminAccount) ToDelegatedAdminAccountOutput() DelegatedAdminAccountOutput
func (*DelegatedAdminAccount) ToDelegatedAdminAccountOutputWithContext ¶ added in v5.18.0
func (i *DelegatedAdminAccount) ToDelegatedAdminAccountOutputWithContext(ctx context.Context) DelegatedAdminAccountOutput
type DelegatedAdminAccountArgs ¶ added in v5.18.0
type DelegatedAdminAccountArgs struct { // Account to enable as delegated admin account. AccountId pulumi.StringInput }
The set of arguments for constructing a DelegatedAdminAccount resource.
func (DelegatedAdminAccountArgs) ElementType ¶ added in v5.18.0
func (DelegatedAdminAccountArgs) ElementType() reflect.Type
type DelegatedAdminAccountArray ¶ added in v5.18.0
type DelegatedAdminAccountArray []DelegatedAdminAccountInput
func (DelegatedAdminAccountArray) ElementType ¶ added in v5.18.0
func (DelegatedAdminAccountArray) ElementType() reflect.Type
func (DelegatedAdminAccountArray) ToDelegatedAdminAccountArrayOutput ¶ added in v5.18.0
func (i DelegatedAdminAccountArray) ToDelegatedAdminAccountArrayOutput() DelegatedAdminAccountArrayOutput
func (DelegatedAdminAccountArray) ToDelegatedAdminAccountArrayOutputWithContext ¶ added in v5.18.0
func (i DelegatedAdminAccountArray) ToDelegatedAdminAccountArrayOutputWithContext(ctx context.Context) DelegatedAdminAccountArrayOutput
type DelegatedAdminAccountArrayInput ¶ added in v5.18.0
type DelegatedAdminAccountArrayInput interface { pulumi.Input ToDelegatedAdminAccountArrayOutput() DelegatedAdminAccountArrayOutput ToDelegatedAdminAccountArrayOutputWithContext(context.Context) DelegatedAdminAccountArrayOutput }
DelegatedAdminAccountArrayInput is an input type that accepts DelegatedAdminAccountArray and DelegatedAdminAccountArrayOutput values. You can construct a concrete instance of `DelegatedAdminAccountArrayInput` via:
DelegatedAdminAccountArray{ DelegatedAdminAccountArgs{...} }
type DelegatedAdminAccountArrayOutput ¶ added in v5.18.0
type DelegatedAdminAccountArrayOutput struct{ *pulumi.OutputState }
func (DelegatedAdminAccountArrayOutput) ElementType ¶ added in v5.18.0
func (DelegatedAdminAccountArrayOutput) ElementType() reflect.Type
func (DelegatedAdminAccountArrayOutput) Index ¶ added in v5.18.0
func (o DelegatedAdminAccountArrayOutput) Index(i pulumi.IntInput) DelegatedAdminAccountOutput
func (DelegatedAdminAccountArrayOutput) ToDelegatedAdminAccountArrayOutput ¶ added in v5.18.0
func (o DelegatedAdminAccountArrayOutput) ToDelegatedAdminAccountArrayOutput() DelegatedAdminAccountArrayOutput
func (DelegatedAdminAccountArrayOutput) ToDelegatedAdminAccountArrayOutputWithContext ¶ added in v5.18.0
func (o DelegatedAdminAccountArrayOutput) ToDelegatedAdminAccountArrayOutputWithContext(ctx context.Context) DelegatedAdminAccountArrayOutput
type DelegatedAdminAccountInput ¶ added in v5.18.0
type DelegatedAdminAccountInput interface { pulumi.Input ToDelegatedAdminAccountOutput() DelegatedAdminAccountOutput ToDelegatedAdminAccountOutputWithContext(ctx context.Context) DelegatedAdminAccountOutput }
type DelegatedAdminAccountMap ¶ added in v5.18.0
type DelegatedAdminAccountMap map[string]DelegatedAdminAccountInput
func (DelegatedAdminAccountMap) ElementType ¶ added in v5.18.0
func (DelegatedAdminAccountMap) ElementType() reflect.Type
func (DelegatedAdminAccountMap) ToDelegatedAdminAccountMapOutput ¶ added in v5.18.0
func (i DelegatedAdminAccountMap) ToDelegatedAdminAccountMapOutput() DelegatedAdminAccountMapOutput
func (DelegatedAdminAccountMap) ToDelegatedAdminAccountMapOutputWithContext ¶ added in v5.18.0
func (i DelegatedAdminAccountMap) ToDelegatedAdminAccountMapOutputWithContext(ctx context.Context) DelegatedAdminAccountMapOutput
type DelegatedAdminAccountMapInput ¶ added in v5.18.0
type DelegatedAdminAccountMapInput interface { pulumi.Input ToDelegatedAdminAccountMapOutput() DelegatedAdminAccountMapOutput ToDelegatedAdminAccountMapOutputWithContext(context.Context) DelegatedAdminAccountMapOutput }
DelegatedAdminAccountMapInput is an input type that accepts DelegatedAdminAccountMap and DelegatedAdminAccountMapOutput values. You can construct a concrete instance of `DelegatedAdminAccountMapInput` via:
DelegatedAdminAccountMap{ "key": DelegatedAdminAccountArgs{...} }
type DelegatedAdminAccountMapOutput ¶ added in v5.18.0
type DelegatedAdminAccountMapOutput struct{ *pulumi.OutputState }
func (DelegatedAdminAccountMapOutput) ElementType ¶ added in v5.18.0
func (DelegatedAdminAccountMapOutput) ElementType() reflect.Type
func (DelegatedAdminAccountMapOutput) MapIndex ¶ added in v5.18.0
func (o DelegatedAdminAccountMapOutput) MapIndex(k pulumi.StringInput) DelegatedAdminAccountOutput
func (DelegatedAdminAccountMapOutput) ToDelegatedAdminAccountMapOutput ¶ added in v5.18.0
func (o DelegatedAdminAccountMapOutput) ToDelegatedAdminAccountMapOutput() DelegatedAdminAccountMapOutput
func (DelegatedAdminAccountMapOutput) ToDelegatedAdminAccountMapOutputWithContext ¶ added in v5.18.0
func (o DelegatedAdminAccountMapOutput) ToDelegatedAdminAccountMapOutputWithContext(ctx context.Context) DelegatedAdminAccountMapOutput
type DelegatedAdminAccountOutput ¶ added in v5.18.0
type DelegatedAdminAccountOutput struct{ *pulumi.OutputState }
func (DelegatedAdminAccountOutput) AccountId ¶ added in v5.18.0
func (o DelegatedAdminAccountOutput) AccountId() pulumi.StringOutput
Account to enable as delegated admin account.
func (DelegatedAdminAccountOutput) ElementType ¶ added in v5.18.0
func (DelegatedAdminAccountOutput) ElementType() reflect.Type
func (DelegatedAdminAccountOutput) RelationshipStatus ¶ added in v5.18.0
func (o DelegatedAdminAccountOutput) RelationshipStatus() pulumi.StringOutput
Status of this delegated admin account.
func (DelegatedAdminAccountOutput) ToDelegatedAdminAccountOutput ¶ added in v5.18.0
func (o DelegatedAdminAccountOutput) ToDelegatedAdminAccountOutput() DelegatedAdminAccountOutput
func (DelegatedAdminAccountOutput) ToDelegatedAdminAccountOutputWithContext ¶ added in v5.18.0
func (o DelegatedAdminAccountOutput) ToDelegatedAdminAccountOutputWithContext(ctx context.Context) DelegatedAdminAccountOutput
type DelegatedAdminAccountState ¶ added in v5.18.0
type DelegatedAdminAccountState struct { // Account to enable as delegated admin account. AccountId pulumi.StringPtrInput // Status of this delegated admin account. RelationshipStatus pulumi.StringPtrInput }
func (DelegatedAdminAccountState) ElementType ¶ added in v5.18.0
func (DelegatedAdminAccountState) ElementType() reflect.Type
type Enabler ¶ added in v5.20.0
type Enabler struct { pulumi.CustomResourceState // Set of account IDs. AccountIds pulumi.StringArrayOutput `pulumi:"accountIds"` // Type of resources to scan. Valid values are `EC2` and `ECR`. If you only use one type, the provider will ignore the status of the other type. ResourceTypes pulumi.StringArrayOutput `pulumi:"resourceTypes"` }
Resource for enabling AWS Inspector V2 resource scans.
> **NOTE:** Due to testing limitations, we provide this resource as best effort. If you use it or have the ability to test it, and notice problems, please consider reaching out to us on GitHub.
## Example Usage ### Basic Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/inspector2" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := inspector2.NewEnabler(ctx, "example", &inspector2.EnablerArgs{ AccountIds: pulumi.StringArray{ pulumi.String("012345678901"), }, ResourceTypes: pulumi.StringArray{ pulumi.String("EC2"), }, }) if err != nil { return err } return nil }) }
```
func GetEnabler ¶ added in v5.20.0
func GetEnabler(ctx *pulumi.Context, name string, id pulumi.IDInput, state *EnablerState, opts ...pulumi.ResourceOption) (*Enabler, error)
GetEnabler gets an existing Enabler 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 NewEnabler ¶ added in v5.20.0
func NewEnabler(ctx *pulumi.Context, name string, args *EnablerArgs, opts ...pulumi.ResourceOption) (*Enabler, error)
NewEnabler registers a new resource with the given unique name, arguments, and options.
func (*Enabler) ElementType ¶ added in v5.20.0
func (*Enabler) ToEnablerOutput ¶ added in v5.20.0
func (i *Enabler) ToEnablerOutput() EnablerOutput
func (*Enabler) ToEnablerOutputWithContext ¶ added in v5.20.0
func (i *Enabler) ToEnablerOutputWithContext(ctx context.Context) EnablerOutput
type EnablerArgs ¶ added in v5.20.0
type EnablerArgs struct { // Set of account IDs. AccountIds pulumi.StringArrayInput // Type of resources to scan. Valid values are `EC2` and `ECR`. If you only use one type, the provider will ignore the status of the other type. ResourceTypes pulumi.StringArrayInput }
The set of arguments for constructing a Enabler resource.
func (EnablerArgs) ElementType ¶ added in v5.20.0
func (EnablerArgs) ElementType() reflect.Type
type EnablerArray ¶ added in v5.20.0
type EnablerArray []EnablerInput
func (EnablerArray) ElementType ¶ added in v5.20.0
func (EnablerArray) ElementType() reflect.Type
func (EnablerArray) ToEnablerArrayOutput ¶ added in v5.20.0
func (i EnablerArray) ToEnablerArrayOutput() EnablerArrayOutput
func (EnablerArray) ToEnablerArrayOutputWithContext ¶ added in v5.20.0
func (i EnablerArray) ToEnablerArrayOutputWithContext(ctx context.Context) EnablerArrayOutput
type EnablerArrayInput ¶ added in v5.20.0
type EnablerArrayInput interface { pulumi.Input ToEnablerArrayOutput() EnablerArrayOutput ToEnablerArrayOutputWithContext(context.Context) EnablerArrayOutput }
EnablerArrayInput is an input type that accepts EnablerArray and EnablerArrayOutput values. You can construct a concrete instance of `EnablerArrayInput` via:
EnablerArray{ EnablerArgs{...} }
type EnablerArrayOutput ¶ added in v5.20.0
type EnablerArrayOutput struct{ *pulumi.OutputState }
func (EnablerArrayOutput) ElementType ¶ added in v5.20.0
func (EnablerArrayOutput) ElementType() reflect.Type
func (EnablerArrayOutput) Index ¶ added in v5.20.0
func (o EnablerArrayOutput) Index(i pulumi.IntInput) EnablerOutput
func (EnablerArrayOutput) ToEnablerArrayOutput ¶ added in v5.20.0
func (o EnablerArrayOutput) ToEnablerArrayOutput() EnablerArrayOutput
func (EnablerArrayOutput) ToEnablerArrayOutputWithContext ¶ added in v5.20.0
func (o EnablerArrayOutput) ToEnablerArrayOutputWithContext(ctx context.Context) EnablerArrayOutput
type EnablerInput ¶ added in v5.20.0
type EnablerInput interface { pulumi.Input ToEnablerOutput() EnablerOutput ToEnablerOutputWithContext(ctx context.Context) EnablerOutput }
type EnablerMap ¶ added in v5.20.0
type EnablerMap map[string]EnablerInput
func (EnablerMap) ElementType ¶ added in v5.20.0
func (EnablerMap) ElementType() reflect.Type
func (EnablerMap) ToEnablerMapOutput ¶ added in v5.20.0
func (i EnablerMap) ToEnablerMapOutput() EnablerMapOutput
func (EnablerMap) ToEnablerMapOutputWithContext ¶ added in v5.20.0
func (i EnablerMap) ToEnablerMapOutputWithContext(ctx context.Context) EnablerMapOutput
type EnablerMapInput ¶ added in v5.20.0
type EnablerMapInput interface { pulumi.Input ToEnablerMapOutput() EnablerMapOutput ToEnablerMapOutputWithContext(context.Context) EnablerMapOutput }
EnablerMapInput is an input type that accepts EnablerMap and EnablerMapOutput values. You can construct a concrete instance of `EnablerMapInput` via:
EnablerMap{ "key": EnablerArgs{...} }
type EnablerMapOutput ¶ added in v5.20.0
type EnablerMapOutput struct{ *pulumi.OutputState }
func (EnablerMapOutput) ElementType ¶ added in v5.20.0
func (EnablerMapOutput) ElementType() reflect.Type
func (EnablerMapOutput) MapIndex ¶ added in v5.20.0
func (o EnablerMapOutput) MapIndex(k pulumi.StringInput) EnablerOutput
func (EnablerMapOutput) ToEnablerMapOutput ¶ added in v5.20.0
func (o EnablerMapOutput) ToEnablerMapOutput() EnablerMapOutput
func (EnablerMapOutput) ToEnablerMapOutputWithContext ¶ added in v5.20.0
func (o EnablerMapOutput) ToEnablerMapOutputWithContext(ctx context.Context) EnablerMapOutput
type EnablerOutput ¶ added in v5.20.0
type EnablerOutput struct{ *pulumi.OutputState }
func (EnablerOutput) AccountIds ¶ added in v5.20.0
func (o EnablerOutput) AccountIds() pulumi.StringArrayOutput
Set of account IDs.
func (EnablerOutput) ElementType ¶ added in v5.20.0
func (EnablerOutput) ElementType() reflect.Type
func (EnablerOutput) ResourceTypes ¶ added in v5.20.0
func (o EnablerOutput) ResourceTypes() pulumi.StringArrayOutput
Type of resources to scan. Valid values are `EC2` and `ECR`. If you only use one type, the provider will ignore the status of the other type.
func (EnablerOutput) ToEnablerOutput ¶ added in v5.20.0
func (o EnablerOutput) ToEnablerOutput() EnablerOutput
func (EnablerOutput) ToEnablerOutputWithContext ¶ added in v5.20.0
func (o EnablerOutput) ToEnablerOutputWithContext(ctx context.Context) EnablerOutput
type EnablerState ¶ added in v5.20.0
type EnablerState struct { // Set of account IDs. AccountIds pulumi.StringArrayInput // Type of resources to scan. Valid values are `EC2` and `ECR`. If you only use one type, the provider will ignore the status of the other type. ResourceTypes pulumi.StringArrayInput }
func (EnablerState) ElementType ¶ added in v5.20.0
func (EnablerState) ElementType() reflect.Type
type OrganizationConfiguration ¶
type OrganizationConfiguration struct { pulumi.CustomResourceState // Configuration block for auto enabling. See below. AutoEnable OrganizationConfigurationAutoEnableOutput `pulumi:"autoEnable"` // Whether your configuration reached the max account limit. MaxAccountLimitReached pulumi.BoolOutput `pulumi:"maxAccountLimitReached"` }
Resource for managing an AWS Inspector V2 Organization Configuration.
> **NOTE:** In order for this resource to work, the account you use must be an Inspector V2 Delegated Admin Account.
> **NOTE:** When this resource is deleted, EC2 and ECR scans will no longer be automatically enabled for new members of your Amazon Inspector organization.
## Example Usage ### Basic Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/inspector2" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := inspector2.NewOrganizationConfiguration(ctx, "example", &inspector2.OrganizationConfigurationArgs{ AutoEnable: &inspector2.OrganizationConfigurationAutoEnableArgs{ Ec2: pulumi.Bool(true), Ecr: pulumi.Bool(false), }, }) if err != nil { return err } return nil }) }
```
func GetOrganizationConfiguration ¶
func GetOrganizationConfiguration(ctx *pulumi.Context, name string, id pulumi.IDInput, state *OrganizationConfigurationState, opts ...pulumi.ResourceOption) (*OrganizationConfiguration, error)
GetOrganizationConfiguration gets an existing OrganizationConfiguration resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewOrganizationConfiguration ¶
func NewOrganizationConfiguration(ctx *pulumi.Context, name string, args *OrganizationConfigurationArgs, opts ...pulumi.ResourceOption) (*OrganizationConfiguration, error)
NewOrganizationConfiguration registers a new resource with the given unique name, arguments, and options.
func (*OrganizationConfiguration) ElementType ¶
func (*OrganizationConfiguration) ElementType() reflect.Type
func (*OrganizationConfiguration) ToOrganizationConfigurationOutput ¶
func (i *OrganizationConfiguration) ToOrganizationConfigurationOutput() OrganizationConfigurationOutput
func (*OrganizationConfiguration) ToOrganizationConfigurationOutputWithContext ¶
func (i *OrganizationConfiguration) ToOrganizationConfigurationOutputWithContext(ctx context.Context) OrganizationConfigurationOutput
type OrganizationConfigurationArgs ¶
type OrganizationConfigurationArgs struct { // Configuration block for auto enabling. See below. AutoEnable OrganizationConfigurationAutoEnableInput }
The set of arguments for constructing a OrganizationConfiguration resource.
func (OrganizationConfigurationArgs) ElementType ¶
func (OrganizationConfigurationArgs) ElementType() reflect.Type
type OrganizationConfigurationArray ¶
type OrganizationConfigurationArray []OrganizationConfigurationInput
func (OrganizationConfigurationArray) ElementType ¶
func (OrganizationConfigurationArray) ElementType() reflect.Type
func (OrganizationConfigurationArray) ToOrganizationConfigurationArrayOutput ¶
func (i OrganizationConfigurationArray) ToOrganizationConfigurationArrayOutput() OrganizationConfigurationArrayOutput
func (OrganizationConfigurationArray) ToOrganizationConfigurationArrayOutputWithContext ¶
func (i OrganizationConfigurationArray) ToOrganizationConfigurationArrayOutputWithContext(ctx context.Context) OrganizationConfigurationArrayOutput
type OrganizationConfigurationArrayInput ¶
type OrganizationConfigurationArrayInput interface { pulumi.Input ToOrganizationConfigurationArrayOutput() OrganizationConfigurationArrayOutput ToOrganizationConfigurationArrayOutputWithContext(context.Context) OrganizationConfigurationArrayOutput }
OrganizationConfigurationArrayInput is an input type that accepts OrganizationConfigurationArray and OrganizationConfigurationArrayOutput values. You can construct a concrete instance of `OrganizationConfigurationArrayInput` via:
OrganizationConfigurationArray{ OrganizationConfigurationArgs{...} }
type OrganizationConfigurationArrayOutput ¶
type OrganizationConfigurationArrayOutput struct{ *pulumi.OutputState }
func (OrganizationConfigurationArrayOutput) ElementType ¶
func (OrganizationConfigurationArrayOutput) ElementType() reflect.Type
func (OrganizationConfigurationArrayOutput) Index ¶
func (o OrganizationConfigurationArrayOutput) Index(i pulumi.IntInput) OrganizationConfigurationOutput
func (OrganizationConfigurationArrayOutput) ToOrganizationConfigurationArrayOutput ¶
func (o OrganizationConfigurationArrayOutput) ToOrganizationConfigurationArrayOutput() OrganizationConfigurationArrayOutput
func (OrganizationConfigurationArrayOutput) ToOrganizationConfigurationArrayOutputWithContext ¶
func (o OrganizationConfigurationArrayOutput) ToOrganizationConfigurationArrayOutputWithContext(ctx context.Context) OrganizationConfigurationArrayOutput
type OrganizationConfigurationAutoEnable ¶
type OrganizationConfigurationAutoEnable struct { // Whether Amazon EC2 scans are automatically enabled for new members of your Amazon Inspector organization. Ec2 bool `pulumi:"ec2"` // Whether Amazon ECR scans are automatically enabled for new members of your Amazon Inspector organization. Ecr bool `pulumi:"ecr"` }
type OrganizationConfigurationAutoEnableArgs ¶
type OrganizationConfigurationAutoEnableArgs struct { // Whether Amazon EC2 scans are automatically enabled for new members of your Amazon Inspector organization. Ec2 pulumi.BoolInput `pulumi:"ec2"` // Whether Amazon ECR scans are automatically enabled for new members of your Amazon Inspector organization. Ecr pulumi.BoolInput `pulumi:"ecr"` }
func (OrganizationConfigurationAutoEnableArgs) ElementType ¶
func (OrganizationConfigurationAutoEnableArgs) ElementType() reflect.Type
func (OrganizationConfigurationAutoEnableArgs) ToOrganizationConfigurationAutoEnableOutput ¶
func (i OrganizationConfigurationAutoEnableArgs) ToOrganizationConfigurationAutoEnableOutput() OrganizationConfigurationAutoEnableOutput
func (OrganizationConfigurationAutoEnableArgs) ToOrganizationConfigurationAutoEnableOutputWithContext ¶
func (i OrganizationConfigurationAutoEnableArgs) ToOrganizationConfigurationAutoEnableOutputWithContext(ctx context.Context) OrganizationConfigurationAutoEnableOutput
func (OrganizationConfigurationAutoEnableArgs) ToOrganizationConfigurationAutoEnablePtrOutput ¶
func (i OrganizationConfigurationAutoEnableArgs) ToOrganizationConfigurationAutoEnablePtrOutput() OrganizationConfigurationAutoEnablePtrOutput
func (OrganizationConfigurationAutoEnableArgs) ToOrganizationConfigurationAutoEnablePtrOutputWithContext ¶
func (i OrganizationConfigurationAutoEnableArgs) ToOrganizationConfigurationAutoEnablePtrOutputWithContext(ctx context.Context) OrganizationConfigurationAutoEnablePtrOutput
type OrganizationConfigurationAutoEnableInput ¶
type OrganizationConfigurationAutoEnableInput interface { pulumi.Input ToOrganizationConfigurationAutoEnableOutput() OrganizationConfigurationAutoEnableOutput ToOrganizationConfigurationAutoEnableOutputWithContext(context.Context) OrganizationConfigurationAutoEnableOutput }
OrganizationConfigurationAutoEnableInput is an input type that accepts OrganizationConfigurationAutoEnableArgs and OrganizationConfigurationAutoEnableOutput values. You can construct a concrete instance of `OrganizationConfigurationAutoEnableInput` via:
OrganizationConfigurationAutoEnableArgs{...}
type OrganizationConfigurationAutoEnableOutput ¶
type OrganizationConfigurationAutoEnableOutput struct{ *pulumi.OutputState }
func (OrganizationConfigurationAutoEnableOutput) Ec2 ¶
func (o OrganizationConfigurationAutoEnableOutput) Ec2() pulumi.BoolOutput
Whether Amazon EC2 scans are automatically enabled for new members of your Amazon Inspector organization.
func (OrganizationConfigurationAutoEnableOutput) Ecr ¶
func (o OrganizationConfigurationAutoEnableOutput) Ecr() pulumi.BoolOutput
Whether Amazon ECR scans are automatically enabled for new members of your Amazon Inspector organization.
func (OrganizationConfigurationAutoEnableOutput) ElementType ¶
func (OrganizationConfigurationAutoEnableOutput) ElementType() reflect.Type
func (OrganizationConfigurationAutoEnableOutput) ToOrganizationConfigurationAutoEnableOutput ¶
func (o OrganizationConfigurationAutoEnableOutput) ToOrganizationConfigurationAutoEnableOutput() OrganizationConfigurationAutoEnableOutput
func (OrganizationConfigurationAutoEnableOutput) ToOrganizationConfigurationAutoEnableOutputWithContext ¶
func (o OrganizationConfigurationAutoEnableOutput) ToOrganizationConfigurationAutoEnableOutputWithContext(ctx context.Context) OrganizationConfigurationAutoEnableOutput
func (OrganizationConfigurationAutoEnableOutput) ToOrganizationConfigurationAutoEnablePtrOutput ¶
func (o OrganizationConfigurationAutoEnableOutput) ToOrganizationConfigurationAutoEnablePtrOutput() OrganizationConfigurationAutoEnablePtrOutput
func (OrganizationConfigurationAutoEnableOutput) ToOrganizationConfigurationAutoEnablePtrOutputWithContext ¶
func (o OrganizationConfigurationAutoEnableOutput) ToOrganizationConfigurationAutoEnablePtrOutputWithContext(ctx context.Context) OrganizationConfigurationAutoEnablePtrOutput
type OrganizationConfigurationAutoEnablePtrInput ¶
type OrganizationConfigurationAutoEnablePtrInput interface { pulumi.Input ToOrganizationConfigurationAutoEnablePtrOutput() OrganizationConfigurationAutoEnablePtrOutput ToOrganizationConfigurationAutoEnablePtrOutputWithContext(context.Context) OrganizationConfigurationAutoEnablePtrOutput }
OrganizationConfigurationAutoEnablePtrInput is an input type that accepts OrganizationConfigurationAutoEnableArgs, OrganizationConfigurationAutoEnablePtr and OrganizationConfigurationAutoEnablePtrOutput values. You can construct a concrete instance of `OrganizationConfigurationAutoEnablePtrInput` via:
OrganizationConfigurationAutoEnableArgs{...} or: nil
func OrganizationConfigurationAutoEnablePtr ¶
func OrganizationConfigurationAutoEnablePtr(v *OrganizationConfigurationAutoEnableArgs) OrganizationConfigurationAutoEnablePtrInput
type OrganizationConfigurationAutoEnablePtrOutput ¶
type OrganizationConfigurationAutoEnablePtrOutput struct{ *pulumi.OutputState }
func (OrganizationConfigurationAutoEnablePtrOutput) Ec2 ¶
func (o OrganizationConfigurationAutoEnablePtrOutput) Ec2() pulumi.BoolPtrOutput
Whether Amazon EC2 scans are automatically enabled for new members of your Amazon Inspector organization.
func (OrganizationConfigurationAutoEnablePtrOutput) Ecr ¶
func (o OrganizationConfigurationAutoEnablePtrOutput) Ecr() pulumi.BoolPtrOutput
Whether Amazon ECR scans are automatically enabled for new members of your Amazon Inspector organization.
func (OrganizationConfigurationAutoEnablePtrOutput) ElementType ¶
func (OrganizationConfigurationAutoEnablePtrOutput) ElementType() reflect.Type
func (OrganizationConfigurationAutoEnablePtrOutput) ToOrganizationConfigurationAutoEnablePtrOutput ¶
func (o OrganizationConfigurationAutoEnablePtrOutput) ToOrganizationConfigurationAutoEnablePtrOutput() OrganizationConfigurationAutoEnablePtrOutput
func (OrganizationConfigurationAutoEnablePtrOutput) ToOrganizationConfigurationAutoEnablePtrOutputWithContext ¶
func (o OrganizationConfigurationAutoEnablePtrOutput) ToOrganizationConfigurationAutoEnablePtrOutputWithContext(ctx context.Context) OrganizationConfigurationAutoEnablePtrOutput
type OrganizationConfigurationInput ¶
type OrganizationConfigurationInput interface { pulumi.Input ToOrganizationConfigurationOutput() OrganizationConfigurationOutput ToOrganizationConfigurationOutputWithContext(ctx context.Context) OrganizationConfigurationOutput }
type OrganizationConfigurationMap ¶
type OrganizationConfigurationMap map[string]OrganizationConfigurationInput
func (OrganizationConfigurationMap) ElementType ¶
func (OrganizationConfigurationMap) ElementType() reflect.Type
func (OrganizationConfigurationMap) ToOrganizationConfigurationMapOutput ¶
func (i OrganizationConfigurationMap) ToOrganizationConfigurationMapOutput() OrganizationConfigurationMapOutput
func (OrganizationConfigurationMap) ToOrganizationConfigurationMapOutputWithContext ¶
func (i OrganizationConfigurationMap) ToOrganizationConfigurationMapOutputWithContext(ctx context.Context) OrganizationConfigurationMapOutput
type OrganizationConfigurationMapInput ¶
type OrganizationConfigurationMapInput interface { pulumi.Input ToOrganizationConfigurationMapOutput() OrganizationConfigurationMapOutput ToOrganizationConfigurationMapOutputWithContext(context.Context) OrganizationConfigurationMapOutput }
OrganizationConfigurationMapInput is an input type that accepts OrganizationConfigurationMap and OrganizationConfigurationMapOutput values. You can construct a concrete instance of `OrganizationConfigurationMapInput` via:
OrganizationConfigurationMap{ "key": OrganizationConfigurationArgs{...} }
type OrganizationConfigurationMapOutput ¶
type OrganizationConfigurationMapOutput struct{ *pulumi.OutputState }
func (OrganizationConfigurationMapOutput) ElementType ¶
func (OrganizationConfigurationMapOutput) ElementType() reflect.Type
func (OrganizationConfigurationMapOutput) MapIndex ¶
func (o OrganizationConfigurationMapOutput) MapIndex(k pulumi.StringInput) OrganizationConfigurationOutput
func (OrganizationConfigurationMapOutput) ToOrganizationConfigurationMapOutput ¶
func (o OrganizationConfigurationMapOutput) ToOrganizationConfigurationMapOutput() OrganizationConfigurationMapOutput
func (OrganizationConfigurationMapOutput) ToOrganizationConfigurationMapOutputWithContext ¶
func (o OrganizationConfigurationMapOutput) ToOrganizationConfigurationMapOutputWithContext(ctx context.Context) OrganizationConfigurationMapOutput
type OrganizationConfigurationOutput ¶
type OrganizationConfigurationOutput struct{ *pulumi.OutputState }
func (OrganizationConfigurationOutput) AutoEnable ¶
func (o OrganizationConfigurationOutput) AutoEnable() OrganizationConfigurationAutoEnableOutput
Configuration block for auto enabling. See below.
func (OrganizationConfigurationOutput) ElementType ¶
func (OrganizationConfigurationOutput) ElementType() reflect.Type
func (OrganizationConfigurationOutput) MaxAccountLimitReached ¶
func (o OrganizationConfigurationOutput) MaxAccountLimitReached() pulumi.BoolOutput
Whether your configuration reached the max account limit.
func (OrganizationConfigurationOutput) ToOrganizationConfigurationOutput ¶
func (o OrganizationConfigurationOutput) ToOrganizationConfigurationOutput() OrganizationConfigurationOutput
func (OrganizationConfigurationOutput) ToOrganizationConfigurationOutputWithContext ¶
func (o OrganizationConfigurationOutput) ToOrganizationConfigurationOutputWithContext(ctx context.Context) OrganizationConfigurationOutput
type OrganizationConfigurationState ¶
type OrganizationConfigurationState struct { // Configuration block for auto enabling. See below. AutoEnable OrganizationConfigurationAutoEnablePtrInput // Whether your configuration reached the max account limit. MaxAccountLimitReached pulumi.BoolPtrInput }
func (OrganizationConfigurationState) ElementType ¶
func (OrganizationConfigurationState) ElementType() reflect.Type