Documentation ¶
Index ¶
- type AlternativeContact
- type AlternativeContactArgs
- type AlternativeContactArray
- type AlternativeContactArrayInput
- type AlternativeContactArrayOutput
- func (AlternativeContactArrayOutput) ElementType() reflect.Type
- func (o AlternativeContactArrayOutput) Index(i pulumi.IntInput) AlternativeContactOutput
- func (o AlternativeContactArrayOutput) ToAlternativeContactArrayOutput() AlternativeContactArrayOutput
- func (o AlternativeContactArrayOutput) ToAlternativeContactArrayOutputWithContext(ctx context.Context) AlternativeContactArrayOutput
- type AlternativeContactInput
- type AlternativeContactMap
- type AlternativeContactMapInput
- type AlternativeContactMapOutput
- func (AlternativeContactMapOutput) ElementType() reflect.Type
- func (o AlternativeContactMapOutput) MapIndex(k pulumi.StringInput) AlternativeContactOutput
- func (o AlternativeContactMapOutput) ToAlternativeContactMapOutput() AlternativeContactMapOutput
- func (o AlternativeContactMapOutput) ToAlternativeContactMapOutputWithContext(ctx context.Context) AlternativeContactMapOutput
- type AlternativeContactOutput
- func (o AlternativeContactOutput) AccountId() pulumi.StringPtrOutput
- func (o AlternativeContactOutput) AlternateContactType() pulumi.StringOutput
- func (AlternativeContactOutput) ElementType() reflect.Type
- func (o AlternativeContactOutput) EmailAddress() pulumi.StringOutput
- func (o AlternativeContactOutput) Name() pulumi.StringOutput
- func (o AlternativeContactOutput) PhoneNumber() pulumi.StringOutput
- func (o AlternativeContactOutput) Title() pulumi.StringOutput
- func (o AlternativeContactOutput) ToAlternativeContactOutput() AlternativeContactOutput
- func (o AlternativeContactOutput) ToAlternativeContactOutputWithContext(ctx context.Context) AlternativeContactOutput
- type AlternativeContactState
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/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 { // 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) ElementType() reflect.Type
func (AlternativeContactArrayOutput) Index ¶
func (o AlternativeContactArrayOutput) Index(i pulumi.IntInput) AlternativeContactOutput
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) ElementType() reflect.Type
func (AlternativeContactMapOutput) MapIndex ¶
func (o AlternativeContactMapOutput) MapIndex(k pulumi.StringInput) AlternativeContactOutput
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
func (o AlternativeContactOutput) AccountId() pulumi.StringPtrOutput
The 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
The 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
func (o AlternativeContactOutput) Name() pulumi.StringOutput
The name of the alternate contact.
func (AlternativeContactOutput) PhoneNumber ¶ added in v5.4.0
func (o AlternativeContactOutput) PhoneNumber() pulumi.StringOutput
A phone number for the alternate contact.
func (AlternativeContactOutput) Title ¶ added in v5.4.0
func (o AlternativeContactOutput) Title() pulumi.StringOutput
A 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 { // 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