account

package
v6.18.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 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/v6/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

Import the Alternate Contact for another account using the `account_id` and `alternate_contact_type` separated by a forward slash (`/`):

__Using `pulumi import` to import__ the Alternate Contact for the current or another account using the `alternate_contact_type`. For example:

Import the Alternate Contact for the current account:

```sh

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

```

Import the Alternate Contact for another account using the `account_id` and `alternate_contact_type` separated by a forward slash (`/`):

```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

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

func (AlternativeContactOutput) AlternateContactType

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

func (o AlternativeContactOutput) EmailAddress() pulumi.StringOutput

An email address for the alternate contact.

func (AlternativeContactOutput) Name

Name of the alternate contact.

func (AlternativeContactOutput) PhoneNumber

Phone number for the alternate contact.

func (AlternativeContactOutput) Title

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

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/v6/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
	})
}

```

## Import

Using `pulumi import`, import the Primary Contact using the `account_id`. For example:

```sh

$ pulumi import aws:account/primaryContact:PrimaryContact test 1234567890

```

func GetPrimaryContact

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

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

func (*PrimaryContact) ElementType() reflect.Type

func (*PrimaryContact) ToPrimaryContactOutput

func (i *PrimaryContact) ToPrimaryContactOutput() PrimaryContactOutput

func (*PrimaryContact) ToPrimaryContactOutputWithContext

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

type PrimaryContactArgs

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

func (PrimaryContactArgs) ElementType() reflect.Type

type PrimaryContactArray

type PrimaryContactArray []PrimaryContactInput

func (PrimaryContactArray) ElementType

func (PrimaryContactArray) ElementType() reflect.Type

func (PrimaryContactArray) ToPrimaryContactArrayOutput

func (i PrimaryContactArray) ToPrimaryContactArrayOutput() PrimaryContactArrayOutput

func (PrimaryContactArray) ToPrimaryContactArrayOutputWithContext

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

type PrimaryContactArrayInput

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

type PrimaryContactArrayOutput struct{ *pulumi.OutputState }

func (PrimaryContactArrayOutput) ElementType

func (PrimaryContactArrayOutput) ElementType() reflect.Type

func (PrimaryContactArrayOutput) Index

func (PrimaryContactArrayOutput) ToPrimaryContactArrayOutput

func (o PrimaryContactArrayOutput) ToPrimaryContactArrayOutput() PrimaryContactArrayOutput

func (PrimaryContactArrayOutput) ToPrimaryContactArrayOutputWithContext

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

type PrimaryContactInput

type PrimaryContactInput interface {
	pulumi.Input

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

type PrimaryContactMap

type PrimaryContactMap map[string]PrimaryContactInput

func (PrimaryContactMap) ElementType

func (PrimaryContactMap) ElementType() reflect.Type

func (PrimaryContactMap) ToPrimaryContactMapOutput

func (i PrimaryContactMap) ToPrimaryContactMapOutput() PrimaryContactMapOutput

func (PrimaryContactMap) ToPrimaryContactMapOutputWithContext

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

type PrimaryContactMapInput

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

type PrimaryContactMapOutput struct{ *pulumi.OutputState }

func (PrimaryContactMapOutput) ElementType

func (PrimaryContactMapOutput) ElementType() reflect.Type

func (PrimaryContactMapOutput) MapIndex

func (PrimaryContactMapOutput) ToPrimaryContactMapOutput

func (o PrimaryContactMapOutput) ToPrimaryContactMapOutput() PrimaryContactMapOutput

func (PrimaryContactMapOutput) ToPrimaryContactMapOutputWithContext

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

type PrimaryContactOutput

type PrimaryContactOutput struct{ *pulumi.OutputState }

func (PrimaryContactOutput) AccountId

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

func (PrimaryContactOutput) AddressLine1

func (o PrimaryContactOutput) AddressLine1() pulumi.StringOutput

The first line of the primary contact address.

func (PrimaryContactOutput) AddressLine2

func (o PrimaryContactOutput) AddressLine2() pulumi.StringPtrOutput

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

func (PrimaryContactOutput) AddressLine3

func (o PrimaryContactOutput) AddressLine3() pulumi.StringPtrOutput

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

func (PrimaryContactOutput) City

The city of the primary contact address.

func (PrimaryContactOutput) CompanyName

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

func (PrimaryContactOutput) CountryCode

func (o PrimaryContactOutput) CountryCode() pulumi.StringOutput

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

func (PrimaryContactOutput) DistrictOrCounty

func (o PrimaryContactOutput) DistrictOrCounty() pulumi.StringPtrOutput

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

func (PrimaryContactOutput) ElementType

func (PrimaryContactOutput) ElementType() reflect.Type

func (PrimaryContactOutput) FullName

The full name of the primary contact address.

func (PrimaryContactOutput) PhoneNumber

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

func (o PrimaryContactOutput) PostalCode() pulumi.StringOutput

The postal code of the primary contact address.

func (PrimaryContactOutput) StateOrRegion

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

func (o PrimaryContactOutput) ToPrimaryContactOutput() PrimaryContactOutput

func (PrimaryContactOutput) ToPrimaryContactOutputWithContext

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

func (PrimaryContactOutput) WebsiteUrl

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

type PrimaryContactState

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

func (PrimaryContactState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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