inspector2

package
v5.43.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 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 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 Amazon Inspector Delegated Admin Account.

## Example Usage ### Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws"
"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 {
		current, err := aws.GetCallerIdentity(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = inspector2.NewDelegatedAdminAccount(ctx, "example", &inspector2.DelegatedAdminAccountArgs{
			AccountId: *pulumi.String(current.AccountId),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Inspector 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) Index added in v5.18.0

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) MapIndex added in v5.18.0

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

Account to enable as delegated admin account.

func (DelegatedAdminAccountOutput) ElementType added in v5.18.0

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.
	// Can contain one of: the Organization's Administrator Account, or one or more Member Accounts.
	AccountIds pulumi.StringArrayOutput `pulumi:"accountIds"`
	// Type of resources to scan.
	// Valid values are `EC2`, `ECR`, and `LAMBDA`.
	// At least one item is required.
	ResourceTypes pulumi.StringArrayOutput `pulumi:"resourceTypes"`
}

Resource for enabling Amazon Inspector resource scans.

This resource must be created in the Organization's Administrator Account.

## 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("123456789012"),
			},
			ResourceTypes: pulumi.StringArray{
				pulumi.String("EC2"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### For the Calling Account

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws"
"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 {
		current, err := aws.GetCallerIdentity(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = inspector2.NewEnabler(ctx, "test", &inspector2.EnablerArgs{
			AccountIds: pulumi.StringArray{
				*pulumi.String(current.AccountId),
			},
			ResourceTypes: pulumi.StringArray{
				pulumi.String("ECR"),
				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) ElementType() reflect.Type

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.
	// Can contain one of: the Organization's Administrator Account, or one or more Member Accounts.
	AccountIds pulumi.StringArrayInput
	// Type of resources to scan.
	// Valid values are `EC2`, `ECR`, and `LAMBDA`.
	// At least one item is required.
	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 (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 (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. Can contain one of: the Organization's Administrator Account, or one or more Member Accounts.

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`, `ECR`, and `LAMBDA`. At least one item is required.

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.
	// Can contain one of: the Organization's Administrator Account, or one or more Member Accounts.
	AccountIds pulumi.StringArrayInput
	// Type of resources to scan.
	// Valid values are `EC2`, `ECR`, and `LAMBDA`.
	// At least one item is required.
	ResourceTypes pulumi.StringArrayInput
}

func (EnablerState) ElementType added in v5.20.0

func (EnablerState) ElementType() reflect.Type

type MemberAssociation added in v5.36.0

type MemberAssociation struct {
	pulumi.CustomResourceState

	// ID of the account to associate
	AccountId pulumi.StringOutput `pulumi:"accountId"`
	// Account ID of the delegated administrator account
	DelegatedAdminAccountId pulumi.StringOutput `pulumi:"delegatedAdminAccountId"`
	// Status of the member relationship
	RelationshipStatus pulumi.StringOutput `pulumi:"relationshipStatus"`
	// Date and time of the last update of the relationship
	UpdatedAt pulumi.StringOutput `pulumi:"updatedAt"`
}

Resource for associating accounts to existing Inspector instances.

## 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.NewMemberAssociation(ctx, "example", &inspector2.MemberAssociationArgs{
			AccountId: pulumi.String("123456789012"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Amazon Inspector Member Association can be imported using the `account_id`, e.g.,

```sh

$ pulumi import aws:inspector2/memberAssociation:MemberAssociation example 123456789012

```

func GetMemberAssociation added in v5.36.0

func GetMemberAssociation(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *MemberAssociationState, opts ...pulumi.ResourceOption) (*MemberAssociation, error)

GetMemberAssociation gets an existing MemberAssociation 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 NewMemberAssociation added in v5.36.0

func NewMemberAssociation(ctx *pulumi.Context,
	name string, args *MemberAssociationArgs, opts ...pulumi.ResourceOption) (*MemberAssociation, error)

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

func (*MemberAssociation) ElementType added in v5.36.0

func (*MemberAssociation) ElementType() reflect.Type

func (*MemberAssociation) ToMemberAssociationOutput added in v5.36.0

func (i *MemberAssociation) ToMemberAssociationOutput() MemberAssociationOutput

func (*MemberAssociation) ToMemberAssociationOutputWithContext added in v5.36.0

func (i *MemberAssociation) ToMemberAssociationOutputWithContext(ctx context.Context) MemberAssociationOutput

type MemberAssociationArgs added in v5.36.0

type MemberAssociationArgs struct {
	// ID of the account to associate
	AccountId pulumi.StringInput
}

The set of arguments for constructing a MemberAssociation resource.

func (MemberAssociationArgs) ElementType added in v5.36.0

func (MemberAssociationArgs) ElementType() reflect.Type

type MemberAssociationArray added in v5.36.0

type MemberAssociationArray []MemberAssociationInput

func (MemberAssociationArray) ElementType added in v5.36.0

func (MemberAssociationArray) ElementType() reflect.Type

func (MemberAssociationArray) ToMemberAssociationArrayOutput added in v5.36.0

func (i MemberAssociationArray) ToMemberAssociationArrayOutput() MemberAssociationArrayOutput

func (MemberAssociationArray) ToMemberAssociationArrayOutputWithContext added in v5.36.0

func (i MemberAssociationArray) ToMemberAssociationArrayOutputWithContext(ctx context.Context) MemberAssociationArrayOutput

type MemberAssociationArrayInput added in v5.36.0

type MemberAssociationArrayInput interface {
	pulumi.Input

	ToMemberAssociationArrayOutput() MemberAssociationArrayOutput
	ToMemberAssociationArrayOutputWithContext(context.Context) MemberAssociationArrayOutput
}

MemberAssociationArrayInput is an input type that accepts MemberAssociationArray and MemberAssociationArrayOutput values. You can construct a concrete instance of `MemberAssociationArrayInput` via:

MemberAssociationArray{ MemberAssociationArgs{...} }

type MemberAssociationArrayOutput added in v5.36.0

type MemberAssociationArrayOutput struct{ *pulumi.OutputState }

func (MemberAssociationArrayOutput) ElementType added in v5.36.0

func (MemberAssociationArrayOutput) Index added in v5.36.0

func (MemberAssociationArrayOutput) ToMemberAssociationArrayOutput added in v5.36.0

func (o MemberAssociationArrayOutput) ToMemberAssociationArrayOutput() MemberAssociationArrayOutput

func (MemberAssociationArrayOutput) ToMemberAssociationArrayOutputWithContext added in v5.36.0

func (o MemberAssociationArrayOutput) ToMemberAssociationArrayOutputWithContext(ctx context.Context) MemberAssociationArrayOutput

type MemberAssociationInput added in v5.36.0

type MemberAssociationInput interface {
	pulumi.Input

	ToMemberAssociationOutput() MemberAssociationOutput
	ToMemberAssociationOutputWithContext(ctx context.Context) MemberAssociationOutput
}

type MemberAssociationMap added in v5.36.0

type MemberAssociationMap map[string]MemberAssociationInput

func (MemberAssociationMap) ElementType added in v5.36.0

func (MemberAssociationMap) ElementType() reflect.Type

func (MemberAssociationMap) ToMemberAssociationMapOutput added in v5.36.0

func (i MemberAssociationMap) ToMemberAssociationMapOutput() MemberAssociationMapOutput

func (MemberAssociationMap) ToMemberAssociationMapOutputWithContext added in v5.36.0

func (i MemberAssociationMap) ToMemberAssociationMapOutputWithContext(ctx context.Context) MemberAssociationMapOutput

type MemberAssociationMapInput added in v5.36.0

type MemberAssociationMapInput interface {
	pulumi.Input

	ToMemberAssociationMapOutput() MemberAssociationMapOutput
	ToMemberAssociationMapOutputWithContext(context.Context) MemberAssociationMapOutput
}

MemberAssociationMapInput is an input type that accepts MemberAssociationMap and MemberAssociationMapOutput values. You can construct a concrete instance of `MemberAssociationMapInput` via:

MemberAssociationMap{ "key": MemberAssociationArgs{...} }

type MemberAssociationMapOutput added in v5.36.0

type MemberAssociationMapOutput struct{ *pulumi.OutputState }

func (MemberAssociationMapOutput) ElementType added in v5.36.0

func (MemberAssociationMapOutput) ElementType() reflect.Type

func (MemberAssociationMapOutput) MapIndex added in v5.36.0

func (MemberAssociationMapOutput) ToMemberAssociationMapOutput added in v5.36.0

func (o MemberAssociationMapOutput) ToMemberAssociationMapOutput() MemberAssociationMapOutput

func (MemberAssociationMapOutput) ToMemberAssociationMapOutputWithContext added in v5.36.0

func (o MemberAssociationMapOutput) ToMemberAssociationMapOutputWithContext(ctx context.Context) MemberAssociationMapOutput

type MemberAssociationOutput added in v5.36.0

type MemberAssociationOutput struct{ *pulumi.OutputState }

func (MemberAssociationOutput) AccountId added in v5.36.0

ID of the account to associate

func (MemberAssociationOutput) DelegatedAdminAccountId added in v5.41.0

func (o MemberAssociationOutput) DelegatedAdminAccountId() pulumi.StringOutput

Account ID of the delegated administrator account

func (MemberAssociationOutput) ElementType added in v5.36.0

func (MemberAssociationOutput) ElementType() reflect.Type

func (MemberAssociationOutput) RelationshipStatus added in v5.41.0

func (o MemberAssociationOutput) RelationshipStatus() pulumi.StringOutput

Status of the member relationship

func (MemberAssociationOutput) ToMemberAssociationOutput added in v5.36.0

func (o MemberAssociationOutput) ToMemberAssociationOutput() MemberAssociationOutput

func (MemberAssociationOutput) ToMemberAssociationOutputWithContext added in v5.36.0

func (o MemberAssociationOutput) ToMemberAssociationOutputWithContext(ctx context.Context) MemberAssociationOutput

func (MemberAssociationOutput) UpdatedAt added in v5.41.0

Date and time of the last update of the relationship

type MemberAssociationState added in v5.36.0

type MemberAssociationState struct {
	// ID of the account to associate
	AccountId pulumi.StringPtrInput
	// Account ID of the delegated administrator account
	DelegatedAdminAccountId pulumi.StringPtrInput
	// Status of the member relationship
	RelationshipStatus pulumi.StringPtrInput
	// Date and time of the last update of the relationship
	UpdatedAt pulumi.StringPtrInput
}

func (MemberAssociationState) ElementType added in v5.36.0

func (MemberAssociationState) 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 Amazon Inspector Organization Configuration.

> **NOTE:** In order for this resource to work, the account you use must be an Inspector Delegated Admin Account.

> **NOTE:** When this resource is deleted, EC2, ECR and Lambda 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),
				Lambda: pulumi.Bool(true),
			},
		})
		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

type OrganizationConfigurationArray

type OrganizationConfigurationArray []OrganizationConfigurationInput

func (OrganizationConfigurationArray) ElementType

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

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"`
	// Whether Lambda Function scans are automatically enabled for new members of your Amazon Inspector organization.
	Lambda *bool `pulumi:"lambda"`
}

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"`
	// Whether Lambda Function scans are automatically enabled for new members of your Amazon Inspector organization.
	Lambda pulumi.BoolPtrInput `pulumi:"lambda"`
}

func (OrganizationConfigurationAutoEnableArgs) ElementType

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

Whether Amazon EC2 scans are automatically enabled for new members of your Amazon Inspector organization.

func (OrganizationConfigurationAutoEnableOutput) Ecr

Whether Amazon ECR scans are automatically enabled for new members of your Amazon Inspector organization.

func (OrganizationConfigurationAutoEnableOutput) ElementType

func (OrganizationConfigurationAutoEnableOutput) Lambda added in v5.33.0

Whether Lambda Function scans are automatically enabled for new members of your Amazon Inspector organization.

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

type OrganizationConfigurationAutoEnablePtrOutput

type OrganizationConfigurationAutoEnablePtrOutput struct{ *pulumi.OutputState }

func (OrganizationConfigurationAutoEnablePtrOutput) Ec2

Whether Amazon EC2 scans are automatically enabled for new members of your Amazon Inspector organization.

func (OrganizationConfigurationAutoEnablePtrOutput) Ecr

Whether Amazon ECR scans are automatically enabled for new members of your Amazon Inspector organization.

func (OrganizationConfigurationAutoEnablePtrOutput) Elem

func (OrganizationConfigurationAutoEnablePtrOutput) ElementType

func (OrganizationConfigurationAutoEnablePtrOutput) Lambda added in v5.33.0

Whether Lambda Function scans are automatically enabled for new members of your Amazon Inspector organization.

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

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

Configuration block for auto enabling. See below.

func (OrganizationConfigurationOutput) ElementType

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

Jump to

Keyboard shortcuts

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