account

package
v5.42.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 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 AlternativeContact

type AlternativeContact struct {
	pulumi.CustomResourceState

	// ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
	AccountId pulumi.StringPtrOutput `pulumi:"accountId"`
	// Type of the alternate contact. Allowed values are: `BILLING`, `OPERATIONS`, `SECURITY`.
	AlternateContactType pulumi.StringOutput `pulumi:"alternateContactType"`
	// An email address for the alternate contact.
	EmailAddress pulumi.StringOutput `pulumi:"emailAddress"`
	// Name of the alternate contact.
	Name pulumi.StringOutput `pulumi:"name"`
	// Phone number for the alternate contact.
	PhoneNumber pulumi.StringOutput `pulumi:"phoneNumber"`
	// Title for the alternate contact.
	Title pulumi.StringOutput `pulumi:"title"`
}

Manages the specified alternate contact attached to an AWS Account.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/account"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := account.NewAlternativeContact(ctx, "operations", &account.AlternativeContactArgs{
			AlternateContactType: pulumi.String("OPERATIONS"),
			EmailAddress:         pulumi.String("test@example.com"),
			PhoneNumber:          pulumi.String("+1234567890"),
			Title:                pulumi.String("Example"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

The Alternate Contact for the current account can be imported using the `alternate_contact_type`, e.g.,

```sh

$ pulumi import aws:account/alternativeContact:AlternativeContact operations OPERATIONS

```

If you provide an account ID, the Alternate Contact can be imported using the `account_id` and `alternate_contact_type` separated by a forward slash (`/`) e.g.,

```sh

$ pulumi import aws:account/alternativeContact:AlternativeContact operations 1234567890/OPERATIONS

```

func GetAlternativeContact

func GetAlternativeContact(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AlternativeContactState, opts ...pulumi.ResourceOption) (*AlternativeContact, error)

GetAlternativeContact gets an existing AlternativeContact 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 NewAlternativeContact

func NewAlternativeContact(ctx *pulumi.Context,
	name string, args *AlternativeContactArgs, opts ...pulumi.ResourceOption) (*AlternativeContact, error)

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

func (*AlternativeContact) ElementType

func (*AlternativeContact) ElementType() reflect.Type

func (*AlternativeContact) ToAlternativeContactOutput

func (i *AlternativeContact) ToAlternativeContactOutput() AlternativeContactOutput

func (*AlternativeContact) ToAlternativeContactOutputWithContext

func (i *AlternativeContact) ToAlternativeContactOutputWithContext(ctx context.Context) AlternativeContactOutput

type AlternativeContactArgs

type AlternativeContactArgs struct {
	// ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
	AccountId pulumi.StringPtrInput
	// Type of the alternate contact. Allowed values are: `BILLING`, `OPERATIONS`, `SECURITY`.
	AlternateContactType pulumi.StringInput
	// An email address for the alternate contact.
	EmailAddress pulumi.StringInput
	// Name of the alternate contact.
	Name pulumi.StringPtrInput
	// Phone number for the alternate contact.
	PhoneNumber pulumi.StringInput
	// Title for the alternate contact.
	Title pulumi.StringInput
}

The set of arguments for constructing a AlternativeContact resource.

func (AlternativeContactArgs) ElementType

func (AlternativeContactArgs) ElementType() reflect.Type

type AlternativeContactArray

type AlternativeContactArray []AlternativeContactInput

func (AlternativeContactArray) ElementType

func (AlternativeContactArray) ElementType() reflect.Type

func (AlternativeContactArray) ToAlternativeContactArrayOutput

func (i AlternativeContactArray) ToAlternativeContactArrayOutput() AlternativeContactArrayOutput

func (AlternativeContactArray) ToAlternativeContactArrayOutputWithContext

func (i AlternativeContactArray) ToAlternativeContactArrayOutputWithContext(ctx context.Context) AlternativeContactArrayOutput

type AlternativeContactArrayInput

type AlternativeContactArrayInput interface {
	pulumi.Input

	ToAlternativeContactArrayOutput() AlternativeContactArrayOutput
	ToAlternativeContactArrayOutputWithContext(context.Context) AlternativeContactArrayOutput
}

AlternativeContactArrayInput is an input type that accepts AlternativeContactArray and AlternativeContactArrayOutput values. You can construct a concrete instance of `AlternativeContactArrayInput` via:

AlternativeContactArray{ AlternativeContactArgs{...} }

type AlternativeContactArrayOutput

type AlternativeContactArrayOutput struct{ *pulumi.OutputState }

func (AlternativeContactArrayOutput) ElementType

func (AlternativeContactArrayOutput) Index

func (AlternativeContactArrayOutput) ToAlternativeContactArrayOutput

func (o AlternativeContactArrayOutput) ToAlternativeContactArrayOutput() AlternativeContactArrayOutput

func (AlternativeContactArrayOutput) ToAlternativeContactArrayOutputWithContext

func (o AlternativeContactArrayOutput) ToAlternativeContactArrayOutputWithContext(ctx context.Context) AlternativeContactArrayOutput

type AlternativeContactInput

type AlternativeContactInput interface {
	pulumi.Input

	ToAlternativeContactOutput() AlternativeContactOutput
	ToAlternativeContactOutputWithContext(ctx context.Context) AlternativeContactOutput
}

type AlternativeContactMap

type AlternativeContactMap map[string]AlternativeContactInput

func (AlternativeContactMap) ElementType

func (AlternativeContactMap) ElementType() reflect.Type

func (AlternativeContactMap) ToAlternativeContactMapOutput

func (i AlternativeContactMap) ToAlternativeContactMapOutput() AlternativeContactMapOutput

func (AlternativeContactMap) ToAlternativeContactMapOutputWithContext

func (i AlternativeContactMap) ToAlternativeContactMapOutputWithContext(ctx context.Context) AlternativeContactMapOutput

type AlternativeContactMapInput

type AlternativeContactMapInput interface {
	pulumi.Input

	ToAlternativeContactMapOutput() AlternativeContactMapOutput
	ToAlternativeContactMapOutputWithContext(context.Context) AlternativeContactMapOutput
}

AlternativeContactMapInput is an input type that accepts AlternativeContactMap and AlternativeContactMapOutput values. You can construct a concrete instance of `AlternativeContactMapInput` via:

AlternativeContactMap{ "key": AlternativeContactArgs{...} }

type AlternativeContactMapOutput

type AlternativeContactMapOutput struct{ *pulumi.OutputState }

func (AlternativeContactMapOutput) ElementType

func (AlternativeContactMapOutput) MapIndex

func (AlternativeContactMapOutput) ToAlternativeContactMapOutput

func (o AlternativeContactMapOutput) ToAlternativeContactMapOutput() AlternativeContactMapOutput

func (AlternativeContactMapOutput) ToAlternativeContactMapOutputWithContext

func (o AlternativeContactMapOutput) ToAlternativeContactMapOutputWithContext(ctx context.Context) AlternativeContactMapOutput

type AlternativeContactOutput

type AlternativeContactOutput struct{ *pulumi.OutputState }

func (AlternativeContactOutput) AccountId added in v5.4.0

ID of the target account when managing member accounts. Will manage current user's account by default if omitted.

func (AlternativeContactOutput) AlternateContactType added in v5.4.0

func (o AlternativeContactOutput) AlternateContactType() pulumi.StringOutput

Type of the alternate contact. Allowed values are: `BILLING`, `OPERATIONS`, `SECURITY`.

func (AlternativeContactOutput) ElementType

func (AlternativeContactOutput) ElementType() reflect.Type

func (AlternativeContactOutput) EmailAddress added in v5.4.0

func (o AlternativeContactOutput) EmailAddress() pulumi.StringOutput

An email address for the alternate contact.

func (AlternativeContactOutput) Name added in v5.4.0

Name of the alternate contact.

func (AlternativeContactOutput) PhoneNumber added in v5.4.0

Phone number for the alternate contact.

func (AlternativeContactOutput) Title added in v5.4.0

Title for the alternate contact.

func (AlternativeContactOutput) ToAlternativeContactOutput

func (o AlternativeContactOutput) ToAlternativeContactOutput() AlternativeContactOutput

func (AlternativeContactOutput) ToAlternativeContactOutputWithContext

func (o AlternativeContactOutput) ToAlternativeContactOutputWithContext(ctx context.Context) AlternativeContactOutput

type AlternativeContactState

type AlternativeContactState struct {
	// ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
	AccountId pulumi.StringPtrInput
	// Type of the alternate contact. Allowed values are: `BILLING`, `OPERATIONS`, `SECURITY`.
	AlternateContactType pulumi.StringPtrInput
	// An email address for the alternate contact.
	EmailAddress pulumi.StringPtrInput
	// Name of the alternate contact.
	Name pulumi.StringPtrInput
	// Phone number for the alternate contact.
	PhoneNumber pulumi.StringPtrInput
	// Title for the alternate contact.
	Title pulumi.StringPtrInput
}

func (AlternativeContactState) ElementType

func (AlternativeContactState) ElementType() reflect.Type

type PrimaryContact added in v5.41.0

type PrimaryContact struct {
	pulumi.CustomResourceState

	// The ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
	AccountId pulumi.StringPtrOutput `pulumi:"accountId"`
	// The first line of the primary contact address.
	AddressLine1 pulumi.StringOutput `pulumi:"addressLine1"`
	// The second line of the primary contact address, if any.
	AddressLine2 pulumi.StringPtrOutput `pulumi:"addressLine2"`
	// The third line of the primary contact address, if any.
	AddressLine3 pulumi.StringPtrOutput `pulumi:"addressLine3"`
	// The city of the primary contact address.
	City pulumi.StringOutput `pulumi:"city"`
	// The name of the company associated with the primary contact information, if any.
	CompanyName pulumi.StringPtrOutput `pulumi:"companyName"`
	// The ISO-3166 two-letter country code for the primary contact address.
	CountryCode pulumi.StringOutput `pulumi:"countryCode"`
	// The district or county of the primary contact address, if any.
	DistrictOrCounty pulumi.StringPtrOutput `pulumi:"districtOrCounty"`
	// The full name of the primary contact address.
	FullName pulumi.StringOutput `pulumi:"fullName"`
	// The phone number of the primary contact information. The number will be validated and, in some countries, checked for activation.
	PhoneNumber pulumi.StringOutput `pulumi:"phoneNumber"`
	// The postal code of the primary contact address.
	PostalCode pulumi.StringOutput `pulumi:"postalCode"`
	// The state or region of the primary contact address. This field is required in selected countries.
	StateOrRegion pulumi.StringPtrOutput `pulumi:"stateOrRegion"`
	// The URL of the website associated with the primary contact information, if any.
	WebsiteUrl pulumi.StringPtrOutput `pulumi:"websiteUrl"`
}

Manages the specified primary contact information associated with an AWS Account.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/account"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := account.NewPrimaryContact(ctx, "test", &account.PrimaryContactArgs{
			AddressLine1:     pulumi.String("123 Any Street"),
			City:             pulumi.String("Seattle"),
			CompanyName:      pulumi.String("Example Corp, Inc."),
			CountryCode:      pulumi.String("US"),
			DistrictOrCounty: pulumi.String("King"),
			FullName:         pulumi.String("My Name"),
			PhoneNumber:      pulumi.String("+64211111111"),
			PostalCode:       pulumi.String("98101"),
			StateOrRegion:    pulumi.String("WA"),
			WebsiteUrl:       pulumi.String("https://www.examplecorp.com"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetPrimaryContact added in v5.41.0

func GetPrimaryContact(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PrimaryContactState, opts ...pulumi.ResourceOption) (*PrimaryContact, error)

GetPrimaryContact gets an existing PrimaryContact 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 NewPrimaryContact added in v5.41.0

func NewPrimaryContact(ctx *pulumi.Context,
	name string, args *PrimaryContactArgs, opts ...pulumi.ResourceOption) (*PrimaryContact, error)

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

func (*PrimaryContact) ElementType added in v5.41.0

func (*PrimaryContact) ElementType() reflect.Type

func (*PrimaryContact) ToPrimaryContactOutput added in v5.41.0

func (i *PrimaryContact) ToPrimaryContactOutput() PrimaryContactOutput

func (*PrimaryContact) ToPrimaryContactOutputWithContext added in v5.41.0

func (i *PrimaryContact) ToPrimaryContactOutputWithContext(ctx context.Context) PrimaryContactOutput

type PrimaryContactArgs added in v5.41.0

type PrimaryContactArgs struct {
	// The ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
	AccountId pulumi.StringPtrInput
	// The first line of the primary contact address.
	AddressLine1 pulumi.StringInput
	// The second line of the primary contact address, if any.
	AddressLine2 pulumi.StringPtrInput
	// The third line of the primary contact address, if any.
	AddressLine3 pulumi.StringPtrInput
	// The city of the primary contact address.
	City pulumi.StringInput
	// The name of the company associated with the primary contact information, if any.
	CompanyName pulumi.StringPtrInput
	// The ISO-3166 two-letter country code for the primary contact address.
	CountryCode pulumi.StringInput
	// The district or county of the primary contact address, if any.
	DistrictOrCounty pulumi.StringPtrInput
	// The full name of the primary contact address.
	FullName pulumi.StringInput
	// The phone number of the primary contact information. The number will be validated and, in some countries, checked for activation.
	PhoneNumber pulumi.StringInput
	// The postal code of the primary contact address.
	PostalCode pulumi.StringInput
	// The state or region of the primary contact address. This field is required in selected countries.
	StateOrRegion pulumi.StringPtrInput
	// The URL of the website associated with the primary contact information, if any.
	WebsiteUrl pulumi.StringPtrInput
}

The set of arguments for constructing a PrimaryContact resource.

func (PrimaryContactArgs) ElementType added in v5.41.0

func (PrimaryContactArgs) ElementType() reflect.Type

type PrimaryContactArray added in v5.41.0

type PrimaryContactArray []PrimaryContactInput

func (PrimaryContactArray) ElementType added in v5.41.0

func (PrimaryContactArray) ElementType() reflect.Type

func (PrimaryContactArray) ToPrimaryContactArrayOutput added in v5.41.0

func (i PrimaryContactArray) ToPrimaryContactArrayOutput() PrimaryContactArrayOutput

func (PrimaryContactArray) ToPrimaryContactArrayOutputWithContext added in v5.41.0

func (i PrimaryContactArray) ToPrimaryContactArrayOutputWithContext(ctx context.Context) PrimaryContactArrayOutput

type PrimaryContactArrayInput added in v5.41.0

type PrimaryContactArrayInput interface {
	pulumi.Input

	ToPrimaryContactArrayOutput() PrimaryContactArrayOutput
	ToPrimaryContactArrayOutputWithContext(context.Context) PrimaryContactArrayOutput
}

PrimaryContactArrayInput is an input type that accepts PrimaryContactArray and PrimaryContactArrayOutput values. You can construct a concrete instance of `PrimaryContactArrayInput` via:

PrimaryContactArray{ PrimaryContactArgs{...} }

type PrimaryContactArrayOutput added in v5.41.0

type PrimaryContactArrayOutput struct{ *pulumi.OutputState }

func (PrimaryContactArrayOutput) ElementType added in v5.41.0

func (PrimaryContactArrayOutput) ElementType() reflect.Type

func (PrimaryContactArrayOutput) Index added in v5.41.0

func (PrimaryContactArrayOutput) ToPrimaryContactArrayOutput added in v5.41.0

func (o PrimaryContactArrayOutput) ToPrimaryContactArrayOutput() PrimaryContactArrayOutput

func (PrimaryContactArrayOutput) ToPrimaryContactArrayOutputWithContext added in v5.41.0

func (o PrimaryContactArrayOutput) ToPrimaryContactArrayOutputWithContext(ctx context.Context) PrimaryContactArrayOutput

type PrimaryContactInput added in v5.41.0

type PrimaryContactInput interface {
	pulumi.Input

	ToPrimaryContactOutput() PrimaryContactOutput
	ToPrimaryContactOutputWithContext(ctx context.Context) PrimaryContactOutput
}

type PrimaryContactMap added in v5.41.0

type PrimaryContactMap map[string]PrimaryContactInput

func (PrimaryContactMap) ElementType added in v5.41.0

func (PrimaryContactMap) ElementType() reflect.Type

func (PrimaryContactMap) ToPrimaryContactMapOutput added in v5.41.0

func (i PrimaryContactMap) ToPrimaryContactMapOutput() PrimaryContactMapOutput

func (PrimaryContactMap) ToPrimaryContactMapOutputWithContext added in v5.41.0

func (i PrimaryContactMap) ToPrimaryContactMapOutputWithContext(ctx context.Context) PrimaryContactMapOutput

type PrimaryContactMapInput added in v5.41.0

type PrimaryContactMapInput interface {
	pulumi.Input

	ToPrimaryContactMapOutput() PrimaryContactMapOutput
	ToPrimaryContactMapOutputWithContext(context.Context) PrimaryContactMapOutput
}

PrimaryContactMapInput is an input type that accepts PrimaryContactMap and PrimaryContactMapOutput values. You can construct a concrete instance of `PrimaryContactMapInput` via:

PrimaryContactMap{ "key": PrimaryContactArgs{...} }

type PrimaryContactMapOutput added in v5.41.0

type PrimaryContactMapOutput struct{ *pulumi.OutputState }

func (PrimaryContactMapOutput) ElementType added in v5.41.0

func (PrimaryContactMapOutput) ElementType() reflect.Type

func (PrimaryContactMapOutput) MapIndex added in v5.41.0

func (PrimaryContactMapOutput) ToPrimaryContactMapOutput added in v5.41.0

func (o PrimaryContactMapOutput) ToPrimaryContactMapOutput() PrimaryContactMapOutput

func (PrimaryContactMapOutput) ToPrimaryContactMapOutputWithContext added in v5.41.0

func (o PrimaryContactMapOutput) ToPrimaryContactMapOutputWithContext(ctx context.Context) PrimaryContactMapOutput

type PrimaryContactOutput added in v5.41.0

type PrimaryContactOutput struct{ *pulumi.OutputState }

func (PrimaryContactOutput) AccountId added in v5.41.0

The ID of the target account when managing member accounts. Will manage current user's account by default if omitted.

func (PrimaryContactOutput) AddressLine1 added in v5.41.0

func (o PrimaryContactOutput) AddressLine1() pulumi.StringOutput

The first line of the primary contact address.

func (PrimaryContactOutput) AddressLine2 added in v5.41.0

func (o PrimaryContactOutput) AddressLine2() pulumi.StringPtrOutput

The second line of the primary contact address, if any.

func (PrimaryContactOutput) AddressLine3 added in v5.41.0

func (o PrimaryContactOutput) AddressLine3() pulumi.StringPtrOutput

The third line of the primary contact address, if any.

func (PrimaryContactOutput) City added in v5.41.0

The city of the primary contact address.

func (PrimaryContactOutput) CompanyName added in v5.41.0

The name of the company associated with the primary contact information, if any.

func (PrimaryContactOutput) CountryCode added in v5.41.0

func (o PrimaryContactOutput) CountryCode() pulumi.StringOutput

The ISO-3166 two-letter country code for the primary contact address.

func (PrimaryContactOutput) DistrictOrCounty added in v5.41.0

func (o PrimaryContactOutput) DistrictOrCounty() pulumi.StringPtrOutput

The district or county of the primary contact address, if any.

func (PrimaryContactOutput) ElementType added in v5.41.0

func (PrimaryContactOutput) ElementType() reflect.Type

func (PrimaryContactOutput) FullName added in v5.41.0

The full name of the primary contact address.

func (PrimaryContactOutput) PhoneNumber added in v5.41.0

func (o PrimaryContactOutput) PhoneNumber() pulumi.StringOutput

The phone number of the primary contact information. The number will be validated and, in some countries, checked for activation.

func (PrimaryContactOutput) PostalCode added in v5.41.0

func (o PrimaryContactOutput) PostalCode() pulumi.StringOutput

The postal code of the primary contact address.

func (PrimaryContactOutput) StateOrRegion added in v5.41.0

func (o PrimaryContactOutput) StateOrRegion() pulumi.StringPtrOutput

The state or region of the primary contact address. This field is required in selected countries.

func (PrimaryContactOutput) ToPrimaryContactOutput added in v5.41.0

func (o PrimaryContactOutput) ToPrimaryContactOutput() PrimaryContactOutput

func (PrimaryContactOutput) ToPrimaryContactOutputWithContext added in v5.41.0

func (o PrimaryContactOutput) ToPrimaryContactOutputWithContext(ctx context.Context) PrimaryContactOutput

func (PrimaryContactOutput) WebsiteUrl added in v5.41.0

The URL of the website associated with the primary contact information, if any.

type PrimaryContactState added in v5.41.0

type PrimaryContactState struct {
	// The ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
	AccountId pulumi.StringPtrInput
	// The first line of the primary contact address.
	AddressLine1 pulumi.StringPtrInput
	// The second line of the primary contact address, if any.
	AddressLine2 pulumi.StringPtrInput
	// The third line of the primary contact address, if any.
	AddressLine3 pulumi.StringPtrInput
	// The city of the primary contact address.
	City pulumi.StringPtrInput
	// The name of the company associated with the primary contact information, if any.
	CompanyName pulumi.StringPtrInput
	// The ISO-3166 two-letter country code for the primary contact address.
	CountryCode pulumi.StringPtrInput
	// The district or county of the primary contact address, if any.
	DistrictOrCounty pulumi.StringPtrInput
	// The full name of the primary contact address.
	FullName pulumi.StringPtrInput
	// The phone number of the primary contact information. The number will be validated and, in some countries, checked for activation.
	PhoneNumber pulumi.StringPtrInput
	// The postal code of the primary contact address.
	PostalCode pulumi.StringPtrInput
	// The state or region of the primary contact address. This field is required in selected countries.
	StateOrRegion pulumi.StringPtrInput
	// The URL of the website associated with the primary contact information, if any.
	WebsiteUrl pulumi.StringPtrInput
}

func (PrimaryContactState) ElementType added in v5.41.0

func (PrimaryContactState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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