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
- type LookupPrimaryContactArgs
- type LookupPrimaryContactOutputArgs
- type LookupPrimaryContactResult
- type LookupPrimaryContactResultOutput
- func (o LookupPrimaryContactResultOutput) AccountId() pulumi.StringOutput
- func (o LookupPrimaryContactResultOutput) AddressLine1() pulumi.StringOutput
- func (o LookupPrimaryContactResultOutput) AddressLine2() pulumi.StringOutput
- func (o LookupPrimaryContactResultOutput) AddressLine3() pulumi.StringOutput
- func (o LookupPrimaryContactResultOutput) City() pulumi.StringOutput
- func (o LookupPrimaryContactResultOutput) CompanyName() pulumi.StringOutput
- func (o LookupPrimaryContactResultOutput) CountryCode() pulumi.StringOutput
- func (o LookupPrimaryContactResultOutput) DistrictOrCounty() pulumi.StringOutput
- func (LookupPrimaryContactResultOutput) ElementType() reflect.Type
- func (o LookupPrimaryContactResultOutput) FullName() pulumi.StringOutput
- func (o LookupPrimaryContactResultOutput) Id() pulumi.StringOutput
- func (o LookupPrimaryContactResultOutput) PhoneNumber() pulumi.StringOutput
- func (o LookupPrimaryContactResultOutput) PostalCode() pulumi.StringOutput
- func (o LookupPrimaryContactResultOutput) StateOrRegion() pulumi.StringOutput
- func (o LookupPrimaryContactResultOutput) ToLookupPrimaryContactResultOutput() LookupPrimaryContactResultOutput
- func (o LookupPrimaryContactResultOutput) ToLookupPrimaryContactResultOutputWithContext(ctx context.Context) LookupPrimaryContactResultOutput
- func (o LookupPrimaryContactResultOutput) WebsiteUrl() pulumi.StringOutput
- type PrimaryContact
- type PrimaryContactArgs
- type PrimaryContactArray
- type PrimaryContactArrayInput
- type PrimaryContactArrayOutput
- func (PrimaryContactArrayOutput) ElementType() reflect.Type
- func (o PrimaryContactArrayOutput) Index(i pulumi.IntInput) PrimaryContactOutput
- func (o PrimaryContactArrayOutput) ToPrimaryContactArrayOutput() PrimaryContactArrayOutput
- func (o PrimaryContactArrayOutput) ToPrimaryContactArrayOutputWithContext(ctx context.Context) PrimaryContactArrayOutput
- type PrimaryContactInput
- type PrimaryContactMap
- type PrimaryContactMapInput
- type PrimaryContactMapOutput
- func (PrimaryContactMapOutput) ElementType() reflect.Type
- func (o PrimaryContactMapOutput) MapIndex(k pulumi.StringInput) PrimaryContactOutput
- func (o PrimaryContactMapOutput) ToPrimaryContactMapOutput() PrimaryContactMapOutput
- func (o PrimaryContactMapOutput) ToPrimaryContactMapOutputWithContext(ctx context.Context) PrimaryContactMapOutput
- type PrimaryContactOutput
- func (o PrimaryContactOutput) AccountId() pulumi.StringPtrOutput
- func (o PrimaryContactOutput) AddressLine1() pulumi.StringOutput
- func (o PrimaryContactOutput) AddressLine2() pulumi.StringPtrOutput
- func (o PrimaryContactOutput) AddressLine3() pulumi.StringPtrOutput
- func (o PrimaryContactOutput) City() pulumi.StringOutput
- func (o PrimaryContactOutput) CompanyName() pulumi.StringPtrOutput
- func (o PrimaryContactOutput) CountryCode() pulumi.StringOutput
- func (o PrimaryContactOutput) DistrictOrCounty() pulumi.StringPtrOutput
- func (PrimaryContactOutput) ElementType() reflect.Type
- func (o PrimaryContactOutput) FullName() pulumi.StringOutput
- func (o PrimaryContactOutput) PhoneNumber() pulumi.StringOutput
- func (o PrimaryContactOutput) PostalCode() pulumi.StringOutput
- func (o PrimaryContactOutput) StateOrRegion() pulumi.StringPtrOutput
- func (o PrimaryContactOutput) ToPrimaryContactOutput() PrimaryContactOutput
- func (o PrimaryContactOutput) ToPrimaryContactOutputWithContext(ctx context.Context) PrimaryContactOutput
- func (o PrimaryContactOutput) WebsiteUrl() pulumi.StringPtrOutput
- type PrimaryContactState
- type Region
- type RegionArgs
- type RegionArray
- type RegionArrayInput
- type RegionArrayOutput
- type RegionInput
- type RegionMap
- type RegionMapInput
- type RegionMapOutput
- type RegionOutput
- func (o RegionOutput) AccountId() pulumi.StringPtrOutput
- func (RegionOutput) ElementType() reflect.Type
- func (o RegionOutput) Enabled() pulumi.BoolOutput
- func (o RegionOutput) OptStatus() pulumi.StringOutput
- func (o RegionOutput) RegionName() pulumi.StringOutput
- func (o RegionOutput) ToRegionOutput() RegionOutput
- func (o RegionOutput) ToRegionOutputWithContext(ctx context.Context) RegionOutput
- type RegionState
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/v7/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"),
Name: pulumi.String("Example"),
Title: pulumi.String("Example"),
EmailAddress: pulumi.String("test@example.com"),
PhoneNumber: pulumi.String("+1234567890"),
})
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) 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 ¶
func (o AlternativeContactOutput) AccountId() pulumi.StringPtrOutput
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 ¶
func (o AlternativeContactOutput) Name() pulumi.StringOutput
Name of the alternate contact.
func (AlternativeContactOutput) PhoneNumber ¶
func (o AlternativeContactOutput) PhoneNumber() pulumi.StringOutput
Phone number for the alternate contact.
func (AlternativeContactOutput) Title ¶
func (o AlternativeContactOutput) Title() pulumi.StringOutput
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 LookupPrimaryContactArgs ¶
type LookupPrimaryContactArgs struct {
// The ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
AccountId *string `pulumi:"accountId"`
}
A collection of arguments for invoking getPrimaryContact.
type LookupPrimaryContactOutputArgs ¶
type LookupPrimaryContactOutputArgs struct {
// The ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
AccountId pulumi.StringPtrInput `pulumi:"accountId"`
}
A collection of arguments for invoking getPrimaryContact.
func (LookupPrimaryContactOutputArgs) ElementType ¶
func (LookupPrimaryContactOutputArgs) ElementType() reflect.Type
type LookupPrimaryContactResult ¶
type LookupPrimaryContactResult struct {
AccountId string `pulumi:"accountId"`
// The first line of the primary contact address.
AddressLine1 string `pulumi:"addressLine1"`
// The second line of the primary contact address.
AddressLine2 string `pulumi:"addressLine2"`
// The third line of the primary contact address.
AddressLine3 string `pulumi:"addressLine3"`
// The city of the primary contact address.
City string `pulumi:"city"`
// The name of the company associated with the primary contact information.
CompanyName string `pulumi:"companyName"`
// The ISO-3166 two-letter country code for the primary contact address.
CountryCode string `pulumi:"countryCode"`
// The district or county of the primary contact address.
DistrictOrCounty string `pulumi:"districtOrCounty"`
// The full name of the primary contact address.
FullName string `pulumi:"fullName"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// The phone number of the primary contact information.
PhoneNumber string `pulumi:"phoneNumber"`
// The postal code of the primary contact address.
PostalCode string `pulumi:"postalCode"`
// The state or region of the primary contact address.
StateOrRegion string `pulumi:"stateOrRegion"`
// The URL of the website associated with the primary contact information.
WebsiteUrl string `pulumi:"websiteUrl"`
}
A collection of values returned by getPrimaryContact.
func LookupPrimaryContact ¶
func LookupPrimaryContact(ctx *pulumi.Context, args *LookupPrimaryContactArgs, opts ...pulumi.InvokeOption) (*LookupPrimaryContactResult, error)
Data source for the primary contact information associated with an AWS Account.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/account" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := account.LookupPrimaryContact(ctx, &account.LookupPrimaryContactArgs{}, nil)
if err != nil {
return err
}
return nil
})
}
```
type LookupPrimaryContactResultOutput ¶
type LookupPrimaryContactResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getPrimaryContact.
func LookupPrimaryContactOutput ¶
func LookupPrimaryContactOutput(ctx *pulumi.Context, args LookupPrimaryContactOutputArgs, opts ...pulumi.InvokeOption) LookupPrimaryContactResultOutput
func (LookupPrimaryContactResultOutput) AccountId ¶
func (o LookupPrimaryContactResultOutput) AccountId() pulumi.StringOutput
func (LookupPrimaryContactResultOutput) AddressLine1 ¶
func (o LookupPrimaryContactResultOutput) AddressLine1() pulumi.StringOutput
The first line of the primary contact address.
func (LookupPrimaryContactResultOutput) AddressLine2 ¶
func (o LookupPrimaryContactResultOutput) AddressLine2() pulumi.StringOutput
The second line of the primary contact address.
func (LookupPrimaryContactResultOutput) AddressLine3 ¶
func (o LookupPrimaryContactResultOutput) AddressLine3() pulumi.StringOutput
The third line of the primary contact address.
func (LookupPrimaryContactResultOutput) City ¶
func (o LookupPrimaryContactResultOutput) City() pulumi.StringOutput
The city of the primary contact address.
func (LookupPrimaryContactResultOutput) CompanyName ¶
func (o LookupPrimaryContactResultOutput) CompanyName() pulumi.StringOutput
The name of the company associated with the primary contact information.
func (LookupPrimaryContactResultOutput) CountryCode ¶
func (o LookupPrimaryContactResultOutput) CountryCode() pulumi.StringOutput
The ISO-3166 two-letter country code for the primary contact address.
func (LookupPrimaryContactResultOutput) DistrictOrCounty ¶
func (o LookupPrimaryContactResultOutput) DistrictOrCounty() pulumi.StringOutput
The district or county of the primary contact address.
func (LookupPrimaryContactResultOutput) ElementType ¶
func (LookupPrimaryContactResultOutput) ElementType() reflect.Type
func (LookupPrimaryContactResultOutput) FullName ¶
func (o LookupPrimaryContactResultOutput) FullName() pulumi.StringOutput
The full name of the primary contact address.
func (LookupPrimaryContactResultOutput) Id ¶
func (o LookupPrimaryContactResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupPrimaryContactResultOutput) PhoneNumber ¶
func (o LookupPrimaryContactResultOutput) PhoneNumber() pulumi.StringOutput
The phone number of the primary contact information.
func (LookupPrimaryContactResultOutput) PostalCode ¶
func (o LookupPrimaryContactResultOutput) PostalCode() pulumi.StringOutput
The postal code of the primary contact address.
func (LookupPrimaryContactResultOutput) StateOrRegion ¶
func (o LookupPrimaryContactResultOutput) StateOrRegion() pulumi.StringOutput
The state or region of the primary contact address.
func (LookupPrimaryContactResultOutput) ToLookupPrimaryContactResultOutput ¶
func (o LookupPrimaryContactResultOutput) ToLookupPrimaryContactResultOutput() LookupPrimaryContactResultOutput
func (LookupPrimaryContactResultOutput) ToLookupPrimaryContactResultOutputWithContext ¶
func (o LookupPrimaryContactResultOutput) ToLookupPrimaryContactResultOutputWithContext(ctx context.Context) LookupPrimaryContactResultOutput
func (LookupPrimaryContactResultOutput) WebsiteUrl ¶
func (o LookupPrimaryContactResultOutput) WebsiteUrl() pulumi.StringOutput
The URL of the website associated with the primary contact information.
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/v7/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 (o PrimaryContactArrayOutput) Index(i pulumi.IntInput) PrimaryContactOutput
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 (o PrimaryContactMapOutput) MapIndex(k pulumi.StringInput) PrimaryContactOutput
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 ¶
func (o PrimaryContactOutput) AccountId() pulumi.StringPtrOutput
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 ¶
func (o PrimaryContactOutput) City() pulumi.StringOutput
The city of the primary contact address.
func (PrimaryContactOutput) CompanyName ¶
func (o PrimaryContactOutput) CompanyName() pulumi.StringPtrOutput
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 ¶
func (o PrimaryContactOutput) FullName() pulumi.StringOutput
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 ¶
func (o PrimaryContactOutput) WebsiteUrl() pulumi.StringPtrOutput
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
type Region ¶
type Region struct {
pulumi.CustomResourceState
// The ID of the target account when managing member accounts. Will manage current user's account by default if omitted. To use this parameter, the caller must be an identity in the organization's management account or a delegated administrator account. The specified account ID must also be a member account in the same organization. The organization must have all features enabled, and the organization must have trusted access enabled for the Account Management service, and optionally a delegated admin account assigned.
AccountId pulumi.StringPtrOutput `pulumi:"accountId"`
// Whether the region is enabled.
Enabled pulumi.BoolOutput `pulumi:"enabled"`
// The region opt status.
OptStatus pulumi.StringOutput `pulumi:"optStatus"`
// The region name to manage.
RegionName pulumi.StringOutput `pulumi:"regionName"`
}
Enable (Opt-In) or Disable (Opt-Out) a particular Region for an AWS account.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/account" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := account.NewRegion(ctx, "example", &account.RegionArgs{
RegionName: pulumi.String("ap-southeast-3"),
Enabled: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
```
## Import
Using `pulumi import`. For example:
```sh $ pulumi import aws:account/region:Region example ap-southeast-3 ```
func GetRegion ¶
func GetRegion(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RegionState, opts ...pulumi.ResourceOption) (*Region, error)
GetRegion gets an existing Region 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 NewRegion ¶
func NewRegion(ctx *pulumi.Context, name string, args *RegionArgs, opts ...pulumi.ResourceOption) (*Region, error)
NewRegion registers a new resource with the given unique name, arguments, and options.
func (*Region) ElementType ¶
func (*Region) ToRegionOutput ¶
func (i *Region) ToRegionOutput() RegionOutput
func (*Region) ToRegionOutputWithContext ¶
func (i *Region) ToRegionOutputWithContext(ctx context.Context) RegionOutput
type RegionArgs ¶
type RegionArgs struct {
// The ID of the target account when managing member accounts. Will manage current user's account by default if omitted. To use this parameter, the caller must be an identity in the organization's management account or a delegated administrator account. The specified account ID must also be a member account in the same organization. The organization must have all features enabled, and the organization must have trusted access enabled for the Account Management service, and optionally a delegated admin account assigned.
AccountId pulumi.StringPtrInput
// Whether the region is enabled.
Enabled pulumi.BoolInput
// The region name to manage.
RegionName pulumi.StringInput
}
The set of arguments for constructing a Region resource.
func (RegionArgs) ElementType ¶
func (RegionArgs) ElementType() reflect.Type
type RegionArray ¶
type RegionArray []RegionInput
func (RegionArray) ElementType ¶
func (RegionArray) ElementType() reflect.Type
func (RegionArray) ToRegionArrayOutput ¶
func (i RegionArray) ToRegionArrayOutput() RegionArrayOutput
func (RegionArray) ToRegionArrayOutputWithContext ¶
func (i RegionArray) ToRegionArrayOutputWithContext(ctx context.Context) RegionArrayOutput
type RegionArrayInput ¶
type RegionArrayInput interface {
pulumi.Input
ToRegionArrayOutput() RegionArrayOutput
ToRegionArrayOutputWithContext(context.Context) RegionArrayOutput
}
RegionArrayInput is an input type that accepts RegionArray and RegionArrayOutput values. You can construct a concrete instance of `RegionArrayInput` via:
RegionArray{ RegionArgs{...} }
type RegionArrayOutput ¶
type RegionArrayOutput struct{ *pulumi.OutputState }
func (RegionArrayOutput) ElementType ¶
func (RegionArrayOutput) ElementType() reflect.Type
func (RegionArrayOutput) Index ¶
func (o RegionArrayOutput) Index(i pulumi.IntInput) RegionOutput
func (RegionArrayOutput) ToRegionArrayOutput ¶
func (o RegionArrayOutput) ToRegionArrayOutput() RegionArrayOutput
func (RegionArrayOutput) ToRegionArrayOutputWithContext ¶
func (o RegionArrayOutput) ToRegionArrayOutputWithContext(ctx context.Context) RegionArrayOutput
type RegionInput ¶
type RegionInput interface {
pulumi.Input
ToRegionOutput() RegionOutput
ToRegionOutputWithContext(ctx context.Context) RegionOutput
}
type RegionMap ¶
type RegionMap map[string]RegionInput
func (RegionMap) ElementType ¶
func (RegionMap) ToRegionMapOutput ¶
func (i RegionMap) ToRegionMapOutput() RegionMapOutput
func (RegionMap) ToRegionMapOutputWithContext ¶
func (i RegionMap) ToRegionMapOutputWithContext(ctx context.Context) RegionMapOutput
type RegionMapInput ¶
type RegionMapInput interface {
pulumi.Input
ToRegionMapOutput() RegionMapOutput
ToRegionMapOutputWithContext(context.Context) RegionMapOutput
}
RegionMapInput is an input type that accepts RegionMap and RegionMapOutput values. You can construct a concrete instance of `RegionMapInput` via:
RegionMap{ "key": RegionArgs{...} }
type RegionMapOutput ¶
type RegionMapOutput struct{ *pulumi.OutputState }
func (RegionMapOutput) ElementType ¶
func (RegionMapOutput) ElementType() reflect.Type
func (RegionMapOutput) MapIndex ¶
func (o RegionMapOutput) MapIndex(k pulumi.StringInput) RegionOutput
func (RegionMapOutput) ToRegionMapOutput ¶
func (o RegionMapOutput) ToRegionMapOutput() RegionMapOutput
func (RegionMapOutput) ToRegionMapOutputWithContext ¶
func (o RegionMapOutput) ToRegionMapOutputWithContext(ctx context.Context) RegionMapOutput
type RegionOutput ¶
type RegionOutput struct{ *pulumi.OutputState }
func (RegionOutput) AccountId ¶
func (o RegionOutput) AccountId() pulumi.StringPtrOutput
The ID of the target account when managing member accounts. Will manage current user's account by default if omitted. To use this parameter, the caller must be an identity in the organization's management account or a delegated administrator account. The specified account ID must also be a member account in the same organization. The organization must have all features enabled, and the organization must have trusted access enabled for the Account Management service, and optionally a delegated admin account assigned.
func (RegionOutput) ElementType ¶
func (RegionOutput) ElementType() reflect.Type
func (RegionOutput) Enabled ¶
func (o RegionOutput) Enabled() pulumi.BoolOutput
Whether the region is enabled.
func (RegionOutput) OptStatus ¶
func (o RegionOutput) OptStatus() pulumi.StringOutput
The region opt status.
func (RegionOutput) RegionName ¶
func (o RegionOutput) RegionName() pulumi.StringOutput
The region name to manage.
func (RegionOutput) ToRegionOutput ¶
func (o RegionOutput) ToRegionOutput() RegionOutput
func (RegionOutput) ToRegionOutputWithContext ¶
func (o RegionOutput) ToRegionOutputWithContext(ctx context.Context) RegionOutput
type RegionState ¶
type RegionState struct {
// The ID of the target account when managing member accounts. Will manage current user's account by default if omitted. To use this parameter, the caller must be an identity in the organization's management account or a delegated administrator account. The specified account ID must also be a member account in the same organization. The organization must have all features enabled, and the organization must have trusted access enabled for the Account Management service, and optionally a delegated admin account assigned.
AccountId pulumi.StringPtrInput
// Whether the region is enabled.
Enabled pulumi.BoolPtrInput
// The region opt status.
OptStatus pulumi.StringPtrInput
// The region name to manage.
RegionName pulumi.StringPtrInput
}
func (RegionState) ElementType ¶
func (RegionState) ElementType() reflect.Type