account

package
v4.38.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 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

	// 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 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"`
	// The name of the alternate contact.
	Name pulumi.StringOutput `pulumi:"name"`
	// A phone number for the alternate contact.
	PhoneNumber pulumi.StringOutput `pulumi:"phoneNumber"`
	// A 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/v4/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 {
	// The ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
	AccountId pulumi.StringPtrInput
	// The type of the alternate contact. Allowed values are: `BILLING`, `OPERATIONS`, `SECURITY`.
	AlternateContactType pulumi.StringInput
	// An email address for the alternate contact.
	EmailAddress pulumi.StringInput
	// The name of the alternate contact.
	Name pulumi.StringPtrInput
	// A phone number for the alternate contact.
	PhoneNumber pulumi.StringInput
	// A 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) ElementType

func (AlternativeContactOutput) ElementType() reflect.Type

func (AlternativeContactOutput) ToAlternativeContactOutput

func (o AlternativeContactOutput) ToAlternativeContactOutput() AlternativeContactOutput

func (AlternativeContactOutput) ToAlternativeContactOutputWithContext

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

type AlternativeContactState

type AlternativeContactState 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 type of the alternate contact. Allowed values are: `BILLING`, `OPERATIONS`, `SECURITY`.
	AlternateContactType pulumi.StringPtrInput
	// An email address for the alternate contact.
	EmailAddress pulumi.StringPtrInput
	// The name of the alternate contact.
	Name pulumi.StringPtrInput
	// A phone number for the alternate contact.
	PhoneNumber pulumi.StringPtrInput
	// A title for the alternate contact.
	Title pulumi.StringPtrInput
}

func (AlternativeContactState) ElementType

func (AlternativeContactState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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