Documentation ¶
Overview ¶
Package route53domains provides a client for Amazon Route 53 Domains.
Index ¶
- type CheckDomainAvailabilityInput
- type CheckDomainAvailabilityOutput
- type ContactDetail
- type DeleteTagsForDomainInput
- type DeleteTagsForDomainOutput
- type DisableDomainAutoRenewInput
- type DisableDomainAutoRenewOutput
- type DisableDomainTransferLockInput
- type DisableDomainTransferLockOutput
- type DomainSummary
- type EnableDomainAutoRenewInput
- type EnableDomainAutoRenewOutput
- type EnableDomainTransferLockInput
- type EnableDomainTransferLockOutput
- type ExtraParam
- type GetDomainDetailInput
- type GetDomainDetailOutput
- type GetOperationDetailInput
- type GetOperationDetailOutput
- type ListDomainsInput
- type ListDomainsOutput
- type ListOperationsInput
- type ListOperationsOutput
- type ListTagsForDomainInput
- type ListTagsForDomainOutput
- type Nameserver
- type OperationSummary
- type RegisterDomainInput
- type RegisterDomainOutput
- type RetrieveDomainAuthCodeInput
- type RetrieveDomainAuthCodeOutput
- type Route53Domains
- func (c *Route53Domains) CheckDomainAvailability(input *CheckDomainAvailabilityInput) (*CheckDomainAvailabilityOutput, error)
- func (c *Route53Domains) CheckDomainAvailabilityRequest(input *CheckDomainAvailabilityInput) (req *aws.Request, output *CheckDomainAvailabilityOutput)
- func (c *Route53Domains) DeleteTagsForDomain(input *DeleteTagsForDomainInput) (*DeleteTagsForDomainOutput, error)
- func (c *Route53Domains) DeleteTagsForDomainRequest(input *DeleteTagsForDomainInput) (req *aws.Request, output *DeleteTagsForDomainOutput)
- func (c *Route53Domains) DisableDomainAutoRenew(input *DisableDomainAutoRenewInput) (*DisableDomainAutoRenewOutput, error)
- func (c *Route53Domains) DisableDomainAutoRenewRequest(input *DisableDomainAutoRenewInput) (req *aws.Request, output *DisableDomainAutoRenewOutput)
- func (c *Route53Domains) DisableDomainTransferLock(input *DisableDomainTransferLockInput) (*DisableDomainTransferLockOutput, error)
- func (c *Route53Domains) DisableDomainTransferLockRequest(input *DisableDomainTransferLockInput) (req *aws.Request, output *DisableDomainTransferLockOutput)
- func (c *Route53Domains) EnableDomainAutoRenew(input *EnableDomainAutoRenewInput) (*EnableDomainAutoRenewOutput, error)
- func (c *Route53Domains) EnableDomainAutoRenewRequest(input *EnableDomainAutoRenewInput) (req *aws.Request, output *EnableDomainAutoRenewOutput)
- func (c *Route53Domains) EnableDomainTransferLock(input *EnableDomainTransferLockInput) (*EnableDomainTransferLockOutput, error)
- func (c *Route53Domains) EnableDomainTransferLockRequest(input *EnableDomainTransferLockInput) (req *aws.Request, output *EnableDomainTransferLockOutput)
- func (c *Route53Domains) GetDomainDetail(input *GetDomainDetailInput) (*GetDomainDetailOutput, error)
- func (c *Route53Domains) GetDomainDetailRequest(input *GetDomainDetailInput) (req *aws.Request, output *GetDomainDetailOutput)
- func (c *Route53Domains) GetOperationDetail(input *GetOperationDetailInput) (*GetOperationDetailOutput, error)
- func (c *Route53Domains) GetOperationDetailRequest(input *GetOperationDetailInput) (req *aws.Request, output *GetOperationDetailOutput)
- func (c *Route53Domains) ListDomains(input *ListDomainsInput) (*ListDomainsOutput, error)
- func (c *Route53Domains) ListDomainsPages(input *ListDomainsInput, ...) error
- func (c *Route53Domains) ListDomainsRequest(input *ListDomainsInput) (req *aws.Request, output *ListDomainsOutput)
- func (c *Route53Domains) ListOperations(input *ListOperationsInput) (*ListOperationsOutput, error)
- func (c *Route53Domains) ListOperationsPages(input *ListOperationsInput, ...) error
- func (c *Route53Domains) ListOperationsRequest(input *ListOperationsInput) (req *aws.Request, output *ListOperationsOutput)
- func (c *Route53Domains) ListTagsForDomain(input *ListTagsForDomainInput) (*ListTagsForDomainOutput, error)
- func (c *Route53Domains) ListTagsForDomainRequest(input *ListTagsForDomainInput) (req *aws.Request, output *ListTagsForDomainOutput)
- func (c *Route53Domains) RegisterDomain(input *RegisterDomainInput) (*RegisterDomainOutput, error)
- func (c *Route53Domains) RegisterDomainRequest(input *RegisterDomainInput) (req *aws.Request, output *RegisterDomainOutput)
- func (c *Route53Domains) RetrieveDomainAuthCode(input *RetrieveDomainAuthCodeInput) (*RetrieveDomainAuthCodeOutput, error)
- func (c *Route53Domains) RetrieveDomainAuthCodeRequest(input *RetrieveDomainAuthCodeInput) (req *aws.Request, output *RetrieveDomainAuthCodeOutput)
- func (c *Route53Domains) TransferDomain(input *TransferDomainInput) (*TransferDomainOutput, error)
- func (c *Route53Domains) TransferDomainRequest(input *TransferDomainInput) (req *aws.Request, output *TransferDomainOutput)
- func (c *Route53Domains) UpdateDomainContact(input *UpdateDomainContactInput) (*UpdateDomainContactOutput, error)
- func (c *Route53Domains) UpdateDomainContactPrivacy(input *UpdateDomainContactPrivacyInput) (*UpdateDomainContactPrivacyOutput, error)
- func (c *Route53Domains) UpdateDomainContactPrivacyRequest(input *UpdateDomainContactPrivacyInput) (req *aws.Request, output *UpdateDomainContactPrivacyOutput)
- func (c *Route53Domains) UpdateDomainContactRequest(input *UpdateDomainContactInput) (req *aws.Request, output *UpdateDomainContactOutput)
- func (c *Route53Domains) UpdateDomainNameservers(input *UpdateDomainNameserversInput) (*UpdateDomainNameserversOutput, error)
- func (c *Route53Domains) UpdateDomainNameserversRequest(input *UpdateDomainNameserversInput) (req *aws.Request, output *UpdateDomainNameserversOutput)
- func (c *Route53Domains) UpdateTagsForDomain(input *UpdateTagsForDomainInput) (*UpdateTagsForDomainOutput, error)
- func (c *Route53Domains) UpdateTagsForDomainRequest(input *UpdateTagsForDomainInput) (req *aws.Request, output *UpdateTagsForDomainOutput)
- type Tag
- type TransferDomainInput
- type TransferDomainOutput
- type UpdateDomainContactInput
- type UpdateDomainContactOutput
- type UpdateDomainContactPrivacyInput
- type UpdateDomainContactPrivacyOutput
- type UpdateDomainNameserversInput
- type UpdateDomainNameserversOutput
- type UpdateTagsForDomainInput
- type UpdateTagsForDomainOutput
Examples ¶
- Route53Domains.CheckDomainAvailability
- Route53Domains.DeleteTagsForDomain
- Route53Domains.DisableDomainAutoRenew
- Route53Domains.DisableDomainTransferLock
- Route53Domains.EnableDomainAutoRenew
- Route53Domains.EnableDomainTransferLock
- Route53Domains.GetDomainDetail
- Route53Domains.GetOperationDetail
- Route53Domains.ListDomains
- Route53Domains.ListOperations
- Route53Domains.ListTagsForDomain
- Route53Domains.RegisterDomain
- Route53Domains.RetrieveDomainAuthCode
- Route53Domains.TransferDomain
- Route53Domains.UpdateDomainContact
- Route53Domains.UpdateDomainContactPrivacy
- Route53Domains.UpdateDomainNameservers
- Route53Domains.UpdateTagsForDomain
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckDomainAvailabilityInput ¶
type CheckDomainAvailabilityInput struct { // The name of a domain. // // Type: String // // Default: None // // Constraints: The domain name can contain only the letters a through z, the // numbers 0 through 9, and hyphen (-). Internationalized Domain Names are not // supported. // // Required: Yes DomainName *string `type:"string" required:"true"` // Reserved for future use. IDNLangCode *string `locationName:"IdnLangCode" type:"string"` // contains filtered or unexported fields }
The CheckDomainAvailability request contains the following elements.
func (CheckDomainAvailabilityInput) GoString ¶ added in v0.6.5
func (s CheckDomainAvailabilityInput) GoString() string
GoString returns the string representation
func (CheckDomainAvailabilityInput) String ¶ added in v0.6.5
func (s CheckDomainAvailabilityInput) String() string
String returns the string representation
type CheckDomainAvailabilityOutput ¶
type CheckDomainAvailabilityOutput struct { // Whether the domain name is available for registering. // // You can only register domains designated as AVAILABLE. // // Type: String // // Valid values: // // AVAILABLE – The domain name is available. AVAILABLE_RESERVED – The domain // name is reserved under specific conditions. AVAILABLE_PREORDER – The domain // name is available and can be preordered. UNAVAILABLE – The domain name is // not available. UNAVAILABLE_PREMIUM – The domain name is not available. // UNAVAILABLE_RESTRICTED – The domain name is forbidden. RESERVED – The domain // name has been reserved for another person or organization. DONT_KNOW – The // TLD registry didn't reply with a definitive answer about whether the domain // name is available. Amazon Route 53 can return this response for a variety // of reasons, for example, the registry is performing maintenance. Try again // later. Availability *string `type:"string" required:"true"` // contains filtered or unexported fields }
The CheckDomainAvailability response includes the following elements.
func (CheckDomainAvailabilityOutput) GoString ¶ added in v0.6.5
func (s CheckDomainAvailabilityOutput) GoString() string
GoString returns the string representation
func (CheckDomainAvailabilityOutput) String ¶ added in v0.6.5
func (s CheckDomainAvailabilityOutput) String() string
String returns the string representation
type ContactDetail ¶
type ContactDetail struct { // First line of the contact's address. // // Type: String // // Default: None // // Constraints: Maximum 255 characters. // // Parents: RegistrantContact, AdminContact, TechContact // // Required: Yes AddressLine1 *string `type:"string"` // Second line of contact's address, if any. // // Type: String // // Default: None // // Constraints: Maximum 255 characters. // // Parents: RegistrantContact, AdminContact, TechContact // // Required: No AddressLine2 *string `type:"string"` // The city of the contact's address. // // Type: String // // Default: None // // Constraints: Maximum 255 characters. // // Parents: RegistrantContact, AdminContact, TechContact // // Required: Yes City *string `type:"string"` // Indicates whether the contact is a person, company, association, or public // organization. If you choose an option other than PERSON, you must enter an // organization name, and you can't enable privacy protection for the contact. // // Type: String // // Default: None // // Constraints: Maximum 255 characters. // // Valid values: PERSON | COMPANY | ASSOCIATION | PUBLIC_BODY // // Parents: RegistrantContact, AdminContact, TechContact // // Required: Yes ContactType *string `type:"string"` // Code for the country of the contact's address. // // Type: String // // Default: None // // Constraints: Maximum 255 characters. // // Parents: RegistrantContact, AdminContact, TechContact // // Required: Yes CountryCode *string `type:"string"` // Email address of the contact. // // Type: String // // Default: None // // Constraints: Maximum 254 characters. // // Parents: RegistrantContact, AdminContact, TechContact // // Required: Yes Email *string `type:"string"` // A list of name-value pairs for parameters required by certain top-level domains. // // Type: Complex // // Default: None // // Parents: RegistrantContact, AdminContact, TechContact // // Children: Name, Value // // Required: No ExtraParams []*ExtraParam `type:"list"` // Fax number of the contact. // // Type: String // // Default: None // // Constraints: Phone number must be specified in the format "+[country dialing // code].[number including any area code]". For example, a US phone number might // appear as "+1.1234567890". // // Parents: RegistrantContact, AdminContact, TechContact // // Required: No Fax *string `type:"string"` // First name of contact. // // Type: String // // Default: None // // Constraints: Maximum 255 characters. // // Parents: RegistrantContact, AdminContact, TechContact // // Required: Yes FirstName *string `type:"string"` // Last name of contact. // // Type: String // // Default: None // // Constraints: Maximum 255 characters. // // Parents: RegistrantContact, AdminContact, TechContact // // Required: Yes LastName *string `type:"string"` // Name of the organization for contact types other than PERSON. // // Type: String // // Default: None // // Constraints: Maximum 255 characters. Contact type must not be PERSON. // // Parents: RegistrantContact, AdminContact, TechContact // // Required: No OrganizationName *string `type:"string"` // The phone number of the contact. // // Type: String // // Default: None // // Constraints: Phone number must be specified in the format "+[country dialing // code].[number including any area code>]". For example, a US phone number // might appear as "+1.1234567890". // // Parents: RegistrantContact, AdminContact, TechContact // // Required: Yes PhoneNumber *string `type:"string"` // The state or province of the contact's city. // // Type: String // // Default: None // // Constraints: Maximum 255 characters. // // Parents: RegistrantContact, AdminContact, TechContact // // Required: No State *string `type:"string"` // The zip or postal code of the contact's address. // // Type: String // // Default: None // // Constraints: Maximum 255 characters. // // Parents: RegistrantContact, AdminContact, TechContact // // Required: No ZipCode *string `type:"string"` // contains filtered or unexported fields }
ContactDetail includes the following elements.
func (ContactDetail) GoString ¶ added in v0.6.5
func (s ContactDetail) GoString() string
GoString returns the string representation
func (ContactDetail) String ¶ added in v0.6.5
func (s ContactDetail) String() string
String returns the string representation
type DeleteTagsForDomainInput ¶
type DeleteTagsForDomainInput struct { // The domain for which you want to delete one or more tags. // // The name of a domain. // // Type: String // // Default: None // // Constraints: The domain name can contain only the letters a through z, the // numbers 0 through 9, and hyphen (-). Hyphens are allowed only when theyaposre // surrounded by letters, numbers, or other hyphens. You canapost specify a // hyphen at the beginning or end of a label. To specify an Internationalized // Domain Name, you must convert the name to Punycode. // // Required: Yes DomainName *string `type:"string" required:"true"` // A list of tag keys to delete. // // Type: A list that contains the keys of the tags that you want to delete. // // Default: None // // Required: No // // '> TagsToDelete []*string `type:"list" required:"true"` // contains filtered or unexported fields }
The DeleteTagsForDomainRequest includes the following elements.
func (DeleteTagsForDomainInput) GoString ¶ added in v0.6.5
func (s DeleteTagsForDomainInput) GoString() string
GoString returns the string representation
func (DeleteTagsForDomainInput) String ¶ added in v0.6.5
func (s DeleteTagsForDomainInput) String() string
String returns the string representation
type DeleteTagsForDomainOutput ¶
type DeleteTagsForDomainOutput struct {
// contains filtered or unexported fields
}
func (DeleteTagsForDomainOutput) GoString ¶ added in v0.6.5
func (s DeleteTagsForDomainOutput) GoString() string
GoString returns the string representation
func (DeleteTagsForDomainOutput) String ¶ added in v0.6.5
func (s DeleteTagsForDomainOutput) String() string
String returns the string representation
type DisableDomainAutoRenewInput ¶
type DisableDomainAutoRenewInput struct { DomainName *string `type:"string" required:"true"` // contains filtered or unexported fields }
func (DisableDomainAutoRenewInput) GoString ¶ added in v0.6.5
func (s DisableDomainAutoRenewInput) GoString() string
GoString returns the string representation
func (DisableDomainAutoRenewInput) String ¶ added in v0.6.5
func (s DisableDomainAutoRenewInput) String() string
String returns the string representation
type DisableDomainAutoRenewOutput ¶
type DisableDomainAutoRenewOutput struct {
// contains filtered or unexported fields
}
func (DisableDomainAutoRenewOutput) GoString ¶ added in v0.6.5
func (s DisableDomainAutoRenewOutput) GoString() string
GoString returns the string representation
func (DisableDomainAutoRenewOutput) String ¶ added in v0.6.5
func (s DisableDomainAutoRenewOutput) String() string
String returns the string representation
type DisableDomainTransferLockInput ¶
type DisableDomainTransferLockInput struct { // The name of a domain. // // Type: String // // Default: None // // Constraints: The domain name can contain only the letters a through z, the // numbers 0 through 9, and hyphen (-). Internationalized Domain Names are not // supported. // // Required: Yes DomainName *string `type:"string" required:"true"` // contains filtered or unexported fields }
The DisableDomainTransferLock request includes the following element.
func (DisableDomainTransferLockInput) GoString ¶ added in v0.6.5
func (s DisableDomainTransferLockInput) GoString() string
GoString returns the string representation
func (DisableDomainTransferLockInput) String ¶ added in v0.6.5
func (s DisableDomainTransferLockInput) String() string
String returns the string representation
type DisableDomainTransferLockOutput ¶
type DisableDomainTransferLockOutput struct { // Identifier for tracking the progress of the request. To use this ID to query // the operation status, use GetOperationDetail. // // Type: String // // Default: None // // Constraints: Maximum 255 characters. OperationID *string `locationName:"OperationId" type:"string" required:"true"` // contains filtered or unexported fields }
The DisableDomainTransferLock response includes the following element.
func (DisableDomainTransferLockOutput) GoString ¶ added in v0.6.5
func (s DisableDomainTransferLockOutput) GoString() string
GoString returns the string representation
func (DisableDomainTransferLockOutput) String ¶ added in v0.6.5
func (s DisableDomainTransferLockOutput) String() string
String returns the string representation
type DomainSummary ¶
type DomainSummary struct { // Indicates whether the domain is automatically renewed upon expiration. // // Type: Boolean // // Valid values: True | False AutoRenew *bool `type:"boolean"` // The name of a domain. // // Type: String DomainName *string `type:"string" required:"true"` // Expiration date of the domain in Coordinated Universal Time (UTC). // // Type: Long Expiry *time.Time `type:"timestamp" timestampFormat:"unix"` // Indicates whether a domain is locked from unauthorized transfer to another // party. // // Type: Boolean // // Valid values: True | False TransferLock *bool `type:"boolean"` // contains filtered or unexported fields }
func (DomainSummary) GoString ¶ added in v0.6.5
func (s DomainSummary) GoString() string
GoString returns the string representation
func (DomainSummary) String ¶ added in v0.6.5
func (s DomainSummary) String() string
String returns the string representation
type EnableDomainAutoRenewInput ¶
type EnableDomainAutoRenewInput struct { DomainName *string `type:"string" required:"true"` // contains filtered or unexported fields }
func (EnableDomainAutoRenewInput) GoString ¶ added in v0.6.5
func (s EnableDomainAutoRenewInput) GoString() string
GoString returns the string representation
func (EnableDomainAutoRenewInput) String ¶ added in v0.6.5
func (s EnableDomainAutoRenewInput) String() string
String returns the string representation
type EnableDomainAutoRenewOutput ¶
type EnableDomainAutoRenewOutput struct {
// contains filtered or unexported fields
}
func (EnableDomainAutoRenewOutput) GoString ¶ added in v0.6.5
func (s EnableDomainAutoRenewOutput) GoString() string
GoString returns the string representation
func (EnableDomainAutoRenewOutput) String ¶ added in v0.6.5
func (s EnableDomainAutoRenewOutput) String() string
String returns the string representation
type EnableDomainTransferLockInput ¶
type EnableDomainTransferLockInput struct { // The name of a domain. // // Type: String // // Default: None // // Constraints: The domain name can contain only the letters a through z, the // numbers 0 through 9, and hyphen (-). Internationalized Domain Names are not // supported. // // Required: Yes DomainName *string `type:"string" required:"true"` // contains filtered or unexported fields }
The EnableDomainTransferLock request includes the following element.
func (EnableDomainTransferLockInput) GoString ¶ added in v0.6.5
func (s EnableDomainTransferLockInput) GoString() string
GoString returns the string representation
func (EnableDomainTransferLockInput) String ¶ added in v0.6.5
func (s EnableDomainTransferLockInput) String() string
String returns the string representation
type EnableDomainTransferLockOutput ¶
type EnableDomainTransferLockOutput struct { // Identifier for tracking the progress of the request. To use this ID to query // the operation status, use GetOperationDetail. // // Type: String // // Default: None // // Constraints: Maximum 255 characters. OperationID *string `locationName:"OperationId" type:"string" required:"true"` // contains filtered or unexported fields }
The EnableDomainTransferLock response includes the following elements.
func (EnableDomainTransferLockOutput) GoString ¶ added in v0.6.5
func (s EnableDomainTransferLockOutput) GoString() string
GoString returns the string representation
func (EnableDomainTransferLockOutput) String ¶ added in v0.6.5
func (s EnableDomainTransferLockOutput) String() string
String returns the string representation
type ExtraParam ¶
type ExtraParam struct { // Name of the additional parameter required by the top-level domain. // // Type: String // // Default: None // // Valid values: DUNS_NUMBER | BRAND_NUMBER | BIRTH_DEPARTMENT | BIRTH_DATE_IN_YYYY_MM_DD // | BIRTH_COUNTRY | BIRTH_CITY | DOCUMENT_NUMBER | AU_ID_NUMBER | AU_ID_TYPE // | CA_LEGAL_TYPE | ES_IDENTIFICATION | ES_IDENTIFICATION_TYPE | ES_LEGAL_FORM // | FI_BUSINESS_NUMBER | FI_ID_NUMBER | IT_PIN | RU_PASSPORT_DATA | SE_ID_NUMBER // | SG_ID_NUMBER | VAT_NUMBER // // Parent: ExtraParams // // Required: Yes Name *string `type:"string" required:"true"` // Values corresponding to the additional parameter names required by some top-level // domains. // // Type: String // // Default: None // // Constraints: Maximum 2048 characters. // // Parent: ExtraParams // // Required: Yes Value *string `type:"string" required:"true"` // contains filtered or unexported fields }
ExtraParam includes the following elements.
func (ExtraParam) GoString ¶ added in v0.6.5
func (s ExtraParam) GoString() string
GoString returns the string representation
func (ExtraParam) String ¶ added in v0.6.5
func (s ExtraParam) String() string
String returns the string representation
type GetDomainDetailInput ¶
type GetDomainDetailInput struct { // The name of a domain. // // Type: String // // Default: None // // Constraints: The domain name can contain only the letters a through z, the // numbers 0 through 9, and hyphen (-). Internationalized Domain Names are not // supported. // // Required: Yes DomainName *string `type:"string" required:"true"` // contains filtered or unexported fields }
The GetDomainDetail request includes the following element.
func (GetDomainDetailInput) GoString ¶ added in v0.6.5
func (s GetDomainDetailInput) GoString() string
GoString returns the string representation
func (GetDomainDetailInput) String ¶ added in v0.6.5
func (s GetDomainDetailInput) String() string
String returns the string representation
type GetDomainDetailOutput ¶
type GetDomainDetailOutput struct { // Email address to contact to report incorrect contact information for a domain, // to report that the domain is being used to send spam, to report that someone // is cybersquatting on a domain name, or report some other type of abuse. // // Type: String AbuseContactEmail *string `type:"string"` // Phone number for reporting abuse. // // Type: String AbuseContactPhone *string `type:"string"` // Provides details about the domain administrative contact. // // Type: Complex // // Children: FirstName, MiddleName, LastName, ContactType, OrganizationName, // AddressLine1, AddressLine2, City, State, CountryCode, ZipCode, PhoneNumber, // Email, Fax, ExtraParams AdminContact *ContactDetail `type:"structure" required:"true"` // Specifies whether contact information for the admin contact is concealed // from WHOIS queries. If the value is true, WHOIS ("who is") queries will return // contact information for our registrar partner, Gandi, instead of the contact // information that you enter. // // Type: Boolean AdminPrivacy *bool `type:"boolean"` // Specifies whether the domain registration is set to renew automatically. // // Type: Boolean AutoRenew *bool `type:"boolean"` // The date when the domain was created as found in the response to a WHOIS // query. The date format is Unix time. CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"` // Reserved for future use. DNSSec *string `locationName:"DnsSec" type:"string"` // The name of a domain. // // Type: String DomainName *string `type:"string" required:"true"` // The date when the registration for the domain is set to expire. The date // format is Unix time. ExpirationDate *time.Time `type:"timestamp" timestampFormat:"unix"` // The name of the domain. // // Type: String Nameservers []*Nameserver `type:"list" required:"true"` // Provides details about the domain registrant. // // Type: Complex // // Children: FirstName, MiddleName, LastName, ContactType, OrganizationName, // AddressLine1, AddressLine2, City, State, CountryCode, ZipCode, PhoneNumber, // Email, Fax, ExtraParams RegistrantContact *ContactDetail `type:"structure" required:"true"` // Specifies whether contact information for the registrant contact is concealed // from WHOIS queries. If the value is true, WHOIS ("who is") queries will return // contact information for our registrar partner, Gandi, instead of the contact // information that you enter. // // Type: Boolean RegistrantPrivacy *bool `type:"boolean"` // Name of the registrar of the domain as identified in the registry. Amazon // Route 53 domains are registered by registrar Gandi. The value is "GANDI SAS". // // Type: String RegistrarName *string `type:"string"` // Web address of the registrar. // // Type: String RegistrarURL *string `locationName:"RegistrarUrl" type:"string"` // Reserved for future use. RegistryDomainID *string `locationName:"RegistryDomainId" type:"string"` // Reseller of the domain. Domains registered or transferred using Amazon Route // 53 domains will have "Amazon" as the reseller. // // Type: String Reseller *string `type:"string"` // An array of domain name status codes, also known as Extensible Provisioning // Protocol (EPP) status codes. // // ICANN, the organization that maintains a central database of domain names, // has developed a set of domain name status codes that tell you the status // of a variety of operations on a domain name, for example, registering a domain // name, transferring a domain name to another registrar, renewing the registration // for a domain name, and so on. All registrars use this same set of status // codes. // // For a current list of domain name status codes and an explanation of what // each code means, go to the ICANN website (https://www.icann.org/) and search // for epp status codes. (Search on the ICANN website; web searches sometimes // return an old version of the document.) // // Type: Array of String StatusList []*string `type:"list"` // Provides details about the domain technical contact. // // Type: Complex // // Children: FirstName, MiddleName, LastName, ContactType, OrganizationName, // AddressLine1, AddressLine2, City, State, CountryCode, ZipCode, PhoneNumber, // Email, Fax, ExtraParams TechContact *ContactDetail `type:"structure" required:"true"` // Specifies whether contact information for the tech contact is concealed from // WHOIS queries. If the value is true, WHOIS ("who is") queries will return // contact information for our registrar partner, Gandi, instead of the contact // information that you enter. // // Type: Boolean TechPrivacy *bool `type:"boolean"` // The last updated date of the domain as found in the response to a WHOIS query. // The date format is Unix time. UpdatedDate *time.Time `type:"timestamp" timestampFormat:"unix"` // The fully qualified name of the WHOIS server that can answer the WHOIS query // for the domain. // // Type: String WhoIsServer *string `type:"string"` // contains filtered or unexported fields }
The GetDomainDetail response includes the following elements.
func (GetDomainDetailOutput) GoString ¶ added in v0.6.5
func (s GetDomainDetailOutput) GoString() string
GoString returns the string representation
func (GetDomainDetailOutput) String ¶ added in v0.6.5
func (s GetDomainDetailOutput) String() string
String returns the string representation
type GetOperationDetailInput ¶
type GetOperationDetailInput struct { // The identifier for the operation for which you want to get the status. Amazon // Route 53 returned the identifier in the response to the original request. // // Type: String // // Default: None // // Required: Yes OperationID *string `locationName:"OperationId" type:"string" required:"true"` // contains filtered or unexported fields }
The GetOperationDetail request includes the following element.
func (GetOperationDetailInput) GoString ¶ added in v0.6.5
func (s GetOperationDetailInput) GoString() string
GoString returns the string representation
func (GetOperationDetailInput) String ¶ added in v0.6.5
func (s GetOperationDetailInput) String() string
String returns the string representation
type GetOperationDetailOutput ¶
type GetOperationDetailOutput struct { // The name of a domain. // // Type: String DomainName *string `type:"string"` // Detailed information on the status including possible errors. // // Type: String Message *string `type:"string"` // The identifier for the operation. // // Type: String OperationID *string `locationName:"OperationId" type:"string"` // The current status of the requested operation in the system. // // Type: String Status *string `type:"string"` // The date when the request was submitted. SubmittedDate *time.Time `type:"timestamp" timestampFormat:"unix"` // The type of operation that was requested. // // Type: String Type *string `type:"string"` // contains filtered or unexported fields }
The GetOperationDetail response includes the following elements.
func (GetOperationDetailOutput) GoString ¶ added in v0.6.5
func (s GetOperationDetailOutput) GoString() string
GoString returns the string representation
func (GetOperationDetailOutput) String ¶ added in v0.6.5
func (s GetOperationDetailOutput) String() string
String returns the string representation
type ListDomainsInput ¶
type ListDomainsInput struct { // For an initial request for a list of domains, omit this element. If the number // of domains that are associated with the current AWS account is greater than // the value that you specified for MaxItems, you can use Marker to return additional // domains. Get the value of NextPageMarker from the previous response, and // submit another request that includes the value of NextPageMarker in the Marker // element. // // Type: String // // Default: None // // Constraints: The marker must match the value specified in the previous request. // // Required: No Marker *string `type:"string"` // Number of domains to be returned. // // Type: Integer // // Default: 20 // // Constraints: A numeral between 1 and 100. // // Required: No MaxItems *int64 `type:"integer"` // contains filtered or unexported fields }
The ListDomains request includes the following elements.
func (ListDomainsInput) GoString ¶ added in v0.6.5
func (s ListDomainsInput) GoString() string
GoString returns the string representation
func (ListDomainsInput) String ¶ added in v0.6.5
func (s ListDomainsInput) String() string
String returns the string representation
type ListDomainsOutput ¶
type ListDomainsOutput struct { // A summary of domains. // // Type: Complex type containing a list of domain summaries. // // Children: AutoRenew, DomainName, Expiry, TransferLock Domains []*DomainSummary `type:"list" required:"true"` // If there are more domains than you specified for MaxItems in the request, // submit another request and include the value of NextPageMarker in the value // of Marker. // // Type: String // // Parent: Operations NextPageMarker *string `type:"string"` // contains filtered or unexported fields }
The ListDomains response includes the following elements.
func (ListDomainsOutput) GoString ¶ added in v0.6.5
func (s ListDomainsOutput) GoString() string
GoString returns the string representation
func (ListDomainsOutput) String ¶ added in v0.6.5
func (s ListDomainsOutput) String() string
String returns the string representation
type ListOperationsInput ¶
type ListOperationsInput struct { // For an initial request for a list of operations, omit this element. If the // number of operations that are not yet complete is greater than the value // that you specified for MaxItems, you can use Marker to return additional // operations. Get the value of NextPageMarker from the previous response, and // submit another request that includes the value of NextPageMarker in the Marker // element. // // Type: String // // Default: None // // Required: No Marker *string `type:"string"` // Number of domains to be returned. // // Type: Integer // // Default: 20 // // Constraints: A value between 1 and 100. // // Required: No MaxItems *int64 `type:"integer"` // contains filtered or unexported fields }
The ListOperations request includes the following elements.
func (ListOperationsInput) GoString ¶ added in v0.6.5
func (s ListOperationsInput) GoString() string
GoString returns the string representation
func (ListOperationsInput) String ¶ added in v0.6.5
func (s ListOperationsInput) String() string
String returns the string representation
type ListOperationsOutput ¶
type ListOperationsOutput struct { // If there are more operations than you specified for MaxItems in the request, // submit another request and include the value of NextPageMarker in the value // of Marker. // // Type: String // // Parent: Operations NextPageMarker *string `type:"string"` // Lists summaries of the operations. // // Type: Complex type containing a list of operation summaries // // Children: OperationId, Status, SubmittedDate, Type Operations []*OperationSummary `type:"list" required:"true"` // contains filtered or unexported fields }
The ListOperations response includes the following elements.
func (ListOperationsOutput) GoString ¶ added in v0.6.5
func (s ListOperationsOutput) GoString() string
GoString returns the string representation
func (ListOperationsOutput) String ¶ added in v0.6.5
func (s ListOperationsOutput) String() string
String returns the string representation
type ListTagsForDomainInput ¶
type ListTagsForDomainInput struct { // The domain for which you want to get a list of tags. DomainName *string `type:"string" required:"true"` // contains filtered or unexported fields }
The ListTagsForDomainRequest includes the following elements.
func (ListTagsForDomainInput) GoString ¶ added in v0.6.5
func (s ListTagsForDomainInput) GoString() string
GoString returns the string representation
func (ListTagsForDomainInput) String ¶ added in v0.6.5
func (s ListTagsForDomainInput) String() string
String returns the string representation
type ListTagsForDomainOutput ¶
type ListTagsForDomainOutput struct { // A list of the tags that are associated with the specified domain. // // Type: A complex type containing a list of tags // // Each tag includes the following elements. // // Key // // The key (name) of a tag. // // Type: String // // Value // // The value of a tag. // // Type: String TagList []*Tag `type:"list" required:"true"` // contains filtered or unexported fields }
The ListTagsForDomain response includes the following elements.
func (ListTagsForDomainOutput) GoString ¶ added in v0.6.5
func (s ListTagsForDomainOutput) GoString() string
GoString returns the string representation
func (ListTagsForDomainOutput) String ¶ added in v0.6.5
func (s ListTagsForDomainOutput) String() string
String returns the string representation
type Nameserver ¶
type Nameserver struct { // Glue IP address of a name server entry. Glue IP addresses are required only // when the name of the name server is a subdomain of the domain. For example, // if your domain is example.com and the name server for the domain is ns.example.com, // you need to specify the IP address for ns.example.com. // // Type: List of IP addresses. // // Constraints: The list can contain only one IPv4 and one IPv6 address. // // Parent: Nameservers GlueIPs []*string `locationName:"GlueIps" type:"list"` // The fully qualified host name of the name server. // // Type: String // // Constraint: Maximum 255 characterss // // Parent: Nameservers Name *string `type:"string" required:"true"` // contains filtered or unexported fields }
Nameserver includes the following elements.
func (Nameserver) GoString ¶ added in v0.6.5
func (s Nameserver) GoString() string
GoString returns the string representation
func (Nameserver) String ¶ added in v0.6.5
func (s Nameserver) String() string
String returns the string representation
type OperationSummary ¶
type OperationSummary struct { // Identifier returned to track the requested action. // // Type: String OperationID *string `locationName:"OperationId" type:"string" required:"true"` // The current status of the requested operation in the system. // // Type: String Status *string `type:"string" required:"true"` // The date when the request was submitted. SubmittedDate *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` // Type of the action requested. // // Type: String // // Valid values: REGISTER_DOMAIN | DELETE_DOMAIN | TRANSFER_IN_DOMAIN | UPDATE_DOMAIN_CONTACT // | UPDATE_NAMESERVER | CHANGE_PRIVACY_PROTECTION | DOMAIN_LOCK Type *string `type:"string" required:"true"` // contains filtered or unexported fields }
OperationSummary includes the following elements.
func (OperationSummary) GoString ¶ added in v0.6.5
func (s OperationSummary) GoString() string
GoString returns the string representation
func (OperationSummary) String ¶ added in v0.6.5
func (s OperationSummary) String() string
String returns the string representation
type RegisterDomainInput ¶
type RegisterDomainInput struct { // Provides detailed contact information. // // Type: Complex // // Children: FirstName, MiddleName, LastName, ContactType, OrganizationName, // AddressLine1, AddressLine2, City, State, CountryCode, ZipCode, PhoneNumber, // Email, Fax, ExtraParams // // Required: Yes AdminContact *ContactDetail `type:"structure" required:"true"` // Indicates whether the domain will be automatically renewed (true) or not // (false). Autorenewal only takes effect after the account is charged. // // Type: Boolean // // Valid values: true | false // // Default: true // // Required: No AutoRenew *bool `type:"boolean"` // The name of a domain. // // Type: String // // Default: None // // Constraints: The domain name can contain only the letters a through z, the // numbers 0 through 9, and hyphen (-). Internationalized Domain Names are not // supported. // // Required: Yes DomainName *string `type:"string" required:"true"` // The number of years the domain will be registered. Domains are registered // for a minimum of one year. The maximum period depends on the top-level domain. // // Type: Integer // // Default: 1 // // Valid values: Integer from 1 to 10 // // Required: Yes DurationInYears *int64 `type:"integer" required:"true"` // Reserved for future use. IDNLangCode *string `locationName:"IdnLangCode" type:"string"` // Whether you want to conceal contact information from WHOIS queries. If you // specify true, WHOIS ("who is") queries will return contact information for // our registrar partner, Gandi, instead of the contact information that you // enter. // // Type: Boolean // // Default: true // // Valid values: true | false // // Required: No PrivacyProtectAdminContact *bool `type:"boolean"` // Whether you want to conceal contact information from WHOIS queries. If you // specify true, WHOIS ("who is") queries will return contact information for // our registrar partner, Gandi, instead of the contact information that you // enter. // // Type: Boolean // // Default: true // // Valid values: true | false // // Required: No PrivacyProtectRegistrantContact *bool `type:"boolean"` // Whether you want to conceal contact information from WHOIS queries. If you // specify true, WHOIS ("who is") queries will return contact information for // our registrar partner, Gandi, instead of the contact information that you // enter. // // Type: Boolean // // Default: true // // Valid values: true | false // // Required: No PrivacyProtectTechContact *bool `type:"boolean"` // Provides detailed contact information. // // Type: Complex // // Children: FirstName, MiddleName, LastName, ContactType, OrganizationName, // AddressLine1, AddressLine2, City, State, CountryCode, ZipCode, PhoneNumber, // Email, Fax, ExtraParams // // Required: Yes RegistrantContact *ContactDetail `type:"structure" required:"true"` // Provides detailed contact information. // // Type: Complex // // Children: FirstName, MiddleName, LastName, ContactType, OrganizationName, // AddressLine1, AddressLine2, City, State, CountryCode, ZipCode, PhoneNumber, // Email, Fax, ExtraParams // // Required: Yes TechContact *ContactDetail `type:"structure" required:"true"` // contains filtered or unexported fields }
The RegisterDomain request includes the following elements.
func (RegisterDomainInput) GoString ¶ added in v0.6.5
func (s RegisterDomainInput) GoString() string
GoString returns the string representation
func (RegisterDomainInput) String ¶ added in v0.6.5
func (s RegisterDomainInput) String() string
String returns the string representation
type RegisterDomainOutput ¶
type RegisterDomainOutput struct { // Identifier for tracking the progress of the request. To use this ID to query // the operation status, use GetOperationDetail. // // Type: String // // Default: None // // Constraints: Maximum 255 characters. OperationID *string `locationName:"OperationId" type:"string" required:"true"` // contains filtered or unexported fields }
The RegisterDomain response includes the following element.
func (RegisterDomainOutput) GoString ¶ added in v0.6.5
func (s RegisterDomainOutput) GoString() string
GoString returns the string representation
func (RegisterDomainOutput) String ¶ added in v0.6.5
func (s RegisterDomainOutput) String() string
String returns the string representation
type RetrieveDomainAuthCodeInput ¶
type RetrieveDomainAuthCodeInput struct { // The name of a domain. // // Type: String // // Default: None // // Constraints: The domain name can contain only the letters a through z, the // numbers 0 through 9, and hyphen (-). Internationalized Domain Names are not // supported. // // Required: Yes DomainName *string `type:"string" required:"true"` // contains filtered or unexported fields }
The RetrieveDomainAuthCode request includes the following element.
func (RetrieveDomainAuthCodeInput) GoString ¶ added in v0.6.5
func (s RetrieveDomainAuthCodeInput) GoString() string
GoString returns the string representation
func (RetrieveDomainAuthCodeInput) String ¶ added in v0.6.5
func (s RetrieveDomainAuthCodeInput) String() string
String returns the string representation
type RetrieveDomainAuthCodeOutput ¶
type RetrieveDomainAuthCodeOutput struct { // The authorization code for the domain. // // Type: String AuthCode *string `type:"string" required:"true"` // contains filtered or unexported fields }
The RetrieveDomainAuthCode response includes the following element.
func (RetrieveDomainAuthCodeOutput) GoString ¶ added in v0.6.5
func (s RetrieveDomainAuthCodeOutput) GoString() string
GoString returns the string representation
func (RetrieveDomainAuthCodeOutput) String ¶ added in v0.6.5
func (s RetrieveDomainAuthCodeOutput) String() string
String returns the string representation
type Route53Domains ¶
Route53Domains is a client for Amazon Route 53 Domains.
func (*Route53Domains) CheckDomainAvailability ¶
func (c *Route53Domains) CheckDomainAvailability(input *CheckDomainAvailabilityInput) (*CheckDomainAvailabilityOutput, error)
This operation checks the availability of one domain name. You can access this API without authenticating. Note that if the availability status of a domain is pending, you must submit another request to determine the availability of the domain name.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/route53domains" ) func main() { svc := route53domains.New(nil) params := &route53domains.CheckDomainAvailabilityInput{ DomainName: aws.String("DomainName"), // Required IDNLangCode: aws.String("LangCode"), } resp, err := svc.CheckDomainAvailability(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*Route53Domains) CheckDomainAvailabilityRequest ¶
func (c *Route53Domains) CheckDomainAvailabilityRequest(input *CheckDomainAvailabilityInput) (req *aws.Request, output *CheckDomainAvailabilityOutput)
CheckDomainAvailabilityRequest generates a request for the CheckDomainAvailability operation.
func (*Route53Domains) DeleteTagsForDomain ¶
func (c *Route53Domains) DeleteTagsForDomain(input *DeleteTagsForDomainInput) (*DeleteTagsForDomainOutput, error)
This operation deletes the specified tags for a domain.
All tag operations are eventually consistent; subsequent operations may not immediately represent all issued operations.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/route53domains" ) func main() { svc := route53domains.New(nil) params := &route53domains.DeleteTagsForDomainInput{ DomainName: aws.String("DomainName"), // Required TagsToDelete: []*string{ // Required aws.String("TagKey"), // Required // More values... }, } resp, err := svc.DeleteTagsForDomain(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*Route53Domains) DeleteTagsForDomainRequest ¶
func (c *Route53Domains) DeleteTagsForDomainRequest(input *DeleteTagsForDomainInput) (req *aws.Request, output *DeleteTagsForDomainOutput)
DeleteTagsForDomainRequest generates a request for the DeleteTagsForDomain operation.
func (*Route53Domains) DisableDomainAutoRenew ¶
func (c *Route53Domains) DisableDomainAutoRenew(input *DisableDomainAutoRenewInput) (*DisableDomainAutoRenewOutput, error)
This operation disables automatic renewal of domain registration for the specified domain.
Caution! Amazon Route 53 doesn't have a manual renewal process, so if you disable automatic renewal, registration for the domain will not be renewed when the expiration date passes, and you will lose control of the domain name.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/route53domains" ) func main() { svc := route53domains.New(nil) params := &route53domains.DisableDomainAutoRenewInput{ DomainName: aws.String("DomainName"), // Required } resp, err := svc.DisableDomainAutoRenew(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*Route53Domains) DisableDomainAutoRenewRequest ¶
func (c *Route53Domains) DisableDomainAutoRenewRequest(input *DisableDomainAutoRenewInput) (req *aws.Request, output *DisableDomainAutoRenewOutput)
DisableDomainAutoRenewRequest generates a request for the DisableDomainAutoRenew operation.
func (*Route53Domains) DisableDomainTransferLock ¶
func (c *Route53Domains) DisableDomainTransferLock(input *DisableDomainTransferLockInput) (*DisableDomainTransferLockOutput, error)
This operation removes the transfer lock on the domain (specifically the clientTransferProhibited status) to allow domain transfers. We recommend you refrain from performing this action unless you intend to transfer the domain to a different registrar. Successful submission returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/route53domains" ) func main() { svc := route53domains.New(nil) params := &route53domains.DisableDomainTransferLockInput{ DomainName: aws.String("DomainName"), // Required } resp, err := svc.DisableDomainTransferLock(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*Route53Domains) DisableDomainTransferLockRequest ¶
func (c *Route53Domains) DisableDomainTransferLockRequest(input *DisableDomainTransferLockInput) (req *aws.Request, output *DisableDomainTransferLockOutput)
DisableDomainTransferLockRequest generates a request for the DisableDomainTransferLock operation.
func (*Route53Domains) EnableDomainAutoRenew ¶
func (c *Route53Domains) EnableDomainAutoRenew(input *EnableDomainAutoRenewInput) (*EnableDomainAutoRenewOutput, error)
This operation configures Amazon Route 53 to automatically renew the specified domain before the domain registration expires. The cost of renewing your domain registration is billed to your AWS account.
The period during which you can renew a domain name varies by TLD. For a list of TLDs and their renewal policies, see "Renewal, restoration, and deletion times" (http://wiki.gandi.net/en/domains/renew#renewal_restoration_and_deletion_times) on the website for our registrar partner, Gandi. Route 53 requires that you renew before the end of the renewal period that is listed on the Gandi website so we can complete processing before the deadline.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/route53domains" ) func main() { svc := route53domains.New(nil) params := &route53domains.EnableDomainAutoRenewInput{ DomainName: aws.String("DomainName"), // Required } resp, err := svc.EnableDomainAutoRenew(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*Route53Domains) EnableDomainAutoRenewRequest ¶
func (c *Route53Domains) EnableDomainAutoRenewRequest(input *EnableDomainAutoRenewInput) (req *aws.Request, output *EnableDomainAutoRenewOutput)
EnableDomainAutoRenewRequest generates a request for the EnableDomainAutoRenew operation.
func (*Route53Domains) EnableDomainTransferLock ¶
func (c *Route53Domains) EnableDomainTransferLock(input *EnableDomainTransferLockInput) (*EnableDomainTransferLockOutput, error)
This operation sets the transfer lock on the domain (specifically the clientTransferProhibited status) to prevent domain transfers. Successful submission returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/route53domains" ) func main() { svc := route53domains.New(nil) params := &route53domains.EnableDomainTransferLockInput{ DomainName: aws.String("DomainName"), // Required } resp, err := svc.EnableDomainTransferLock(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*Route53Domains) EnableDomainTransferLockRequest ¶
func (c *Route53Domains) EnableDomainTransferLockRequest(input *EnableDomainTransferLockInput) (req *aws.Request, output *EnableDomainTransferLockOutput)
EnableDomainTransferLockRequest generates a request for the EnableDomainTransferLock operation.
func (*Route53Domains) GetDomainDetail ¶
func (c *Route53Domains) GetDomainDetail(input *GetDomainDetailInput) (*GetDomainDetailOutput, error)
This operation returns detailed information about the domain. The domain's contact information is also returned as part of the output.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/route53domains" ) func main() { svc := route53domains.New(nil) params := &route53domains.GetDomainDetailInput{ DomainName: aws.String("DomainName"), // Required } resp, err := svc.GetDomainDetail(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*Route53Domains) GetDomainDetailRequest ¶
func (c *Route53Domains) GetDomainDetailRequest(input *GetDomainDetailInput) (req *aws.Request, output *GetDomainDetailOutput)
GetDomainDetailRequest generates a request for the GetDomainDetail operation.
func (*Route53Domains) GetOperationDetail ¶
func (c *Route53Domains) GetOperationDetail(input *GetOperationDetailInput) (*GetOperationDetailOutput, error)
This operation returns the current status of an operation that is not completed.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/route53domains" ) func main() { svc := route53domains.New(nil) params := &route53domains.GetOperationDetailInput{ OperationID: aws.String("OperationId"), // Required } resp, err := svc.GetOperationDetail(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*Route53Domains) GetOperationDetailRequest ¶
func (c *Route53Domains) GetOperationDetailRequest(input *GetOperationDetailInput) (req *aws.Request, output *GetOperationDetailOutput)
GetOperationDetailRequest generates a request for the GetOperationDetail operation.
func (*Route53Domains) ListDomains ¶
func (c *Route53Domains) ListDomains(input *ListDomainsInput) (*ListDomainsOutput, error)
This operation returns all the domain names registered with Amazon Route 53 for the current AWS account.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/route53domains" ) func main() { svc := route53domains.New(nil) params := &route53domains.ListDomainsInput{ Marker: aws.String("PageMarker"), MaxItems: aws.Long(1), } resp, err := svc.ListDomains(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*Route53Domains) ListDomainsPages ¶
func (c *Route53Domains) ListDomainsPages(input *ListDomainsInput, fn func(p *ListDomainsOutput, lastPage bool) (shouldContinue bool)) error
func (*Route53Domains) ListDomainsRequest ¶
func (c *Route53Domains) ListDomainsRequest(input *ListDomainsInput) (req *aws.Request, output *ListDomainsOutput)
ListDomainsRequest generates a request for the ListDomains operation.
func (*Route53Domains) ListOperations ¶
func (c *Route53Domains) ListOperations(input *ListOperationsInput) (*ListOperationsOutput, error)
This operation returns the operation IDs of operations that are not yet complete.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/route53domains" ) func main() { svc := route53domains.New(nil) params := &route53domains.ListOperationsInput{ Marker: aws.String("PageMarker"), MaxItems: aws.Long(1), } resp, err := svc.ListOperations(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*Route53Domains) ListOperationsPages ¶
func (c *Route53Domains) ListOperationsPages(input *ListOperationsInput, fn func(p *ListOperationsOutput, lastPage bool) (shouldContinue bool)) error
func (*Route53Domains) ListOperationsRequest ¶
func (c *Route53Domains) ListOperationsRequest(input *ListOperationsInput) (req *aws.Request, output *ListOperationsOutput)
ListOperationsRequest generates a request for the ListOperations operation.
func (*Route53Domains) ListTagsForDomain ¶
func (c *Route53Domains) ListTagsForDomain(input *ListTagsForDomainInput) (*ListTagsForDomainOutput, error)
This operation returns all of the tags that are associated with the specified domain.
All tag operations are eventually consistent; subsequent operations may not immediately represent all issued operations.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/route53domains" ) func main() { svc := route53domains.New(nil) params := &route53domains.ListTagsForDomainInput{ DomainName: aws.String("DomainName"), // Required } resp, err := svc.ListTagsForDomain(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*Route53Domains) ListTagsForDomainRequest ¶
func (c *Route53Domains) ListTagsForDomainRequest(input *ListTagsForDomainInput) (req *aws.Request, output *ListTagsForDomainOutput)
ListTagsForDomainRequest generates a request for the ListTagsForDomain operation.
func (*Route53Domains) RegisterDomain ¶
func (c *Route53Domains) RegisterDomain(input *RegisterDomainInput) (*RegisterDomainOutput, error)
This operation registers a domain. Domains are registered by the AWS registrar partner, Gandi. For some top-level domains (TLDs), this operation requires extra parameters.
When you register a domain, Amazon Route 53 does the following:
Creates a Amazon Route 53 hosted zone that has the same name as the domain.
Amazon Route 53 assigns four name servers to your hosted zone and automatically updates your domain registration with the names of these name servers. Enables autorenew, so your domain registration will renew automatically each year. We'll notify you in advance of the renewal date so you can choose whether to renew the registration. Optionally enables privacy protection, so WHOIS queries return contact information for our registrar partner, Gandi, instead of the information you entered for registrant, admin, and tech contacts. If registration is successful, returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant is notified by email. Charges your AWS account an amount based on the top-level domain. For more information, see Amazon Route 53 Pricing (http://aws.amazon.com/route53/pricing/).
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/route53domains" ) func main() { svc := route53domains.New(nil) params := &route53domains.RegisterDomainInput{ AdminContact: &route53domains.ContactDetail{ // Required AddressLine1: aws.String("AddressLine"), AddressLine2: aws.String("AddressLine"), City: aws.String("City"), ContactType: aws.String("ContactType"), CountryCode: aws.String("CountryCode"), Email: aws.String("Email"), ExtraParams: []*route53domains.ExtraParam{ { // Required Name: aws.String("ExtraParamName"), // Required Value: aws.String("ExtraParamValue"), // Required }, // More values... }, Fax: aws.String("ContactNumber"), FirstName: aws.String("ContactName"), LastName: aws.String("ContactName"), OrganizationName: aws.String("ContactName"), PhoneNumber: aws.String("ContactNumber"), State: aws.String("State"), ZipCode: aws.String("ZipCode"), }, DomainName: aws.String("DomainName"), // Required DurationInYears: aws.Long(1), // Required RegistrantContact: &route53domains.ContactDetail{ // Required AddressLine1: aws.String("AddressLine"), AddressLine2: aws.String("AddressLine"), City: aws.String("City"), ContactType: aws.String("ContactType"), CountryCode: aws.String("CountryCode"), Email: aws.String("Email"), ExtraParams: []*route53domains.ExtraParam{ { // Required Name: aws.String("ExtraParamName"), // Required Value: aws.String("ExtraParamValue"), // Required }, // More values... }, Fax: aws.String("ContactNumber"), FirstName: aws.String("ContactName"), LastName: aws.String("ContactName"), OrganizationName: aws.String("ContactName"), PhoneNumber: aws.String("ContactNumber"), State: aws.String("State"), ZipCode: aws.String("ZipCode"), }, TechContact: &route53domains.ContactDetail{ // Required AddressLine1: aws.String("AddressLine"), AddressLine2: aws.String("AddressLine"), City: aws.String("City"), ContactType: aws.String("ContactType"), CountryCode: aws.String("CountryCode"), Email: aws.String("Email"), ExtraParams: []*route53domains.ExtraParam{ { // Required Name: aws.String("ExtraParamName"), // Required Value: aws.String("ExtraParamValue"), // Required }, // More values... }, Fax: aws.String("ContactNumber"), FirstName: aws.String("ContactName"), LastName: aws.String("ContactName"), OrganizationName: aws.String("ContactName"), PhoneNumber: aws.String("ContactNumber"), State: aws.String("State"), ZipCode: aws.String("ZipCode"), }, AutoRenew: aws.Boolean(true), IDNLangCode: aws.String("LangCode"), PrivacyProtectAdminContact: aws.Boolean(true), PrivacyProtectRegistrantContact: aws.Boolean(true), PrivacyProtectTechContact: aws.Boolean(true), } resp, err := svc.RegisterDomain(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*Route53Domains) RegisterDomainRequest ¶
func (c *Route53Domains) RegisterDomainRequest(input *RegisterDomainInput) (req *aws.Request, output *RegisterDomainOutput)
RegisterDomainRequest generates a request for the RegisterDomain operation.
func (*Route53Domains) RetrieveDomainAuthCode ¶
func (c *Route53Domains) RetrieveDomainAuthCode(input *RetrieveDomainAuthCodeInput) (*RetrieveDomainAuthCodeOutput, error)
This operation returns the AuthCode for the domain. To transfer a domain to another registrar, you provide this value to the new registrar.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/route53domains" ) func main() { svc := route53domains.New(nil) params := &route53domains.RetrieveDomainAuthCodeInput{ DomainName: aws.String("DomainName"), // Required } resp, err := svc.RetrieveDomainAuthCode(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*Route53Domains) RetrieveDomainAuthCodeRequest ¶
func (c *Route53Domains) RetrieveDomainAuthCodeRequest(input *RetrieveDomainAuthCodeInput) (req *aws.Request, output *RetrieveDomainAuthCodeOutput)
RetrieveDomainAuthCodeRequest generates a request for the RetrieveDomainAuthCode operation.
func (*Route53Domains) TransferDomain ¶
func (c *Route53Domains) TransferDomain(input *TransferDomainInput) (*TransferDomainOutput, error)
This operation transfers a domain from another registrar to Amazon Route 53. When the transfer is complete, the domain is registered with the AWS registrar partner, Gandi.
For transfer requirements, a detailed procedure, and information about viewing the status of a domain transfer, see Transferring Registration for a Domain to Amazon Route 53 (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/domain-transfer-to-route-53.html) in the Amazon Route 53 Developer Guide.
If the registrar for your domain is also the DNS service provider for the domain, we highly recommend that you consider transferring your DNS service to Amazon Route 53 or to another DNS service provider before you transfer your registration. Some registrars provide free DNS service when you purchase a domain registration. When you transfer the registration, the previous registrar will not renew your domain registration and could end your DNS service at any time.
Caution! If the registrar for your domain is also the DNS service provider for the domain and you don't transfer DNS service to another provider, your website, email, and the web applications associated with the domain might become unavailable. If the transfer is successful, this method returns an operation ID that you can use to track the progress and completion of the action. If the transfer doesn't complete successfully, the domain registrant will be notified by email.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/route53domains" ) func main() { svc := route53domains.New(nil) params := &route53domains.TransferDomainInput{ AdminContact: &route53domains.ContactDetail{ // Required AddressLine1: aws.String("AddressLine"), AddressLine2: aws.String("AddressLine"), City: aws.String("City"), ContactType: aws.String("ContactType"), CountryCode: aws.String("CountryCode"), Email: aws.String("Email"), ExtraParams: []*route53domains.ExtraParam{ { // Required Name: aws.String("ExtraParamName"), // Required Value: aws.String("ExtraParamValue"), // Required }, // More values... }, Fax: aws.String("ContactNumber"), FirstName: aws.String("ContactName"), LastName: aws.String("ContactName"), OrganizationName: aws.String("ContactName"), PhoneNumber: aws.String("ContactNumber"), State: aws.String("State"), ZipCode: aws.String("ZipCode"), }, DomainName: aws.String("DomainName"), // Required DurationInYears: aws.Long(1), // Required RegistrantContact: &route53domains.ContactDetail{ // Required AddressLine1: aws.String("AddressLine"), AddressLine2: aws.String("AddressLine"), City: aws.String("City"), ContactType: aws.String("ContactType"), CountryCode: aws.String("CountryCode"), Email: aws.String("Email"), ExtraParams: []*route53domains.ExtraParam{ { // Required Name: aws.String("ExtraParamName"), // Required Value: aws.String("ExtraParamValue"), // Required }, // More values... }, Fax: aws.String("ContactNumber"), FirstName: aws.String("ContactName"), LastName: aws.String("ContactName"), OrganizationName: aws.String("ContactName"), PhoneNumber: aws.String("ContactNumber"), State: aws.String("State"), ZipCode: aws.String("ZipCode"), }, TechContact: &route53domains.ContactDetail{ // Required AddressLine1: aws.String("AddressLine"), AddressLine2: aws.String("AddressLine"), City: aws.String("City"), ContactType: aws.String("ContactType"), CountryCode: aws.String("CountryCode"), Email: aws.String("Email"), ExtraParams: []*route53domains.ExtraParam{ { // Required Name: aws.String("ExtraParamName"), // Required Value: aws.String("ExtraParamValue"), // Required }, // More values... }, Fax: aws.String("ContactNumber"), FirstName: aws.String("ContactName"), LastName: aws.String("ContactName"), OrganizationName: aws.String("ContactName"), PhoneNumber: aws.String("ContactNumber"), State: aws.String("State"), ZipCode: aws.String("ZipCode"), }, AuthCode: aws.String("DomainAuthCode"), AutoRenew: aws.Boolean(true), IDNLangCode: aws.String("LangCode"), Nameservers: []*route53domains.Nameserver{ { // Required Name: aws.String("HostName"), // Required GlueIPs: []*string{ aws.String("GlueIp"), // Required // More values... }, }, // More values... }, PrivacyProtectAdminContact: aws.Boolean(true), PrivacyProtectRegistrantContact: aws.Boolean(true), PrivacyProtectTechContact: aws.Boolean(true), } resp, err := svc.TransferDomain(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*Route53Domains) TransferDomainRequest ¶
func (c *Route53Domains) TransferDomainRequest(input *TransferDomainInput) (req *aws.Request, output *TransferDomainOutput)
TransferDomainRequest generates a request for the TransferDomain operation.
func (*Route53Domains) UpdateDomainContact ¶
func (c *Route53Domains) UpdateDomainContact(input *UpdateDomainContactInput) (*UpdateDomainContactOutput, error)
This operation updates the contact information for a particular domain. Information for at least one contact (registrant, administrator, or technical) must be supplied for update.
If the update is successful, this method returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/route53domains" ) func main() { svc := route53domains.New(nil) params := &route53domains.UpdateDomainContactInput{ DomainName: aws.String("DomainName"), // Required AdminContact: &route53domains.ContactDetail{ AddressLine1: aws.String("AddressLine"), AddressLine2: aws.String("AddressLine"), City: aws.String("City"), ContactType: aws.String("ContactType"), CountryCode: aws.String("CountryCode"), Email: aws.String("Email"), ExtraParams: []*route53domains.ExtraParam{ { // Required Name: aws.String("ExtraParamName"), // Required Value: aws.String("ExtraParamValue"), // Required }, // More values... }, Fax: aws.String("ContactNumber"), FirstName: aws.String("ContactName"), LastName: aws.String("ContactName"), OrganizationName: aws.String("ContactName"), PhoneNumber: aws.String("ContactNumber"), State: aws.String("State"), ZipCode: aws.String("ZipCode"), }, RegistrantContact: &route53domains.ContactDetail{ AddressLine1: aws.String("AddressLine"), AddressLine2: aws.String("AddressLine"), City: aws.String("City"), ContactType: aws.String("ContactType"), CountryCode: aws.String("CountryCode"), Email: aws.String("Email"), ExtraParams: []*route53domains.ExtraParam{ { // Required Name: aws.String("ExtraParamName"), // Required Value: aws.String("ExtraParamValue"), // Required }, // More values... }, Fax: aws.String("ContactNumber"), FirstName: aws.String("ContactName"), LastName: aws.String("ContactName"), OrganizationName: aws.String("ContactName"), PhoneNumber: aws.String("ContactNumber"), State: aws.String("State"), ZipCode: aws.String("ZipCode"), }, TechContact: &route53domains.ContactDetail{ AddressLine1: aws.String("AddressLine"), AddressLine2: aws.String("AddressLine"), City: aws.String("City"), ContactType: aws.String("ContactType"), CountryCode: aws.String("CountryCode"), Email: aws.String("Email"), ExtraParams: []*route53domains.ExtraParam{ { // Required Name: aws.String("ExtraParamName"), // Required Value: aws.String("ExtraParamValue"), // Required }, // More values... }, Fax: aws.String("ContactNumber"), FirstName: aws.String("ContactName"), LastName: aws.String("ContactName"), OrganizationName: aws.String("ContactName"), PhoneNumber: aws.String("ContactNumber"), State: aws.String("State"), ZipCode: aws.String("ZipCode"), }, } resp, err := svc.UpdateDomainContact(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*Route53Domains) UpdateDomainContactPrivacy ¶
func (c *Route53Domains) UpdateDomainContactPrivacy(input *UpdateDomainContactPrivacyInput) (*UpdateDomainContactPrivacyOutput, error)
This operation updates the specified domain contact's privacy setting. When the privacy option is enabled, personal information such as postal or email address is hidden from the results of a public WHOIS query. The privacy services are provided by the AWS registrar, Gandi. For more information, see the Gandi privacy features (http://www.gandi.net/domain/whois/?currency=USD&lang=en).
This operation only affects the privacy of the specified contact type (registrant, administrator, or tech). Successful acceptance returns an operation ID that you can use with GetOperationDetail to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/route53domains" ) func main() { svc := route53domains.New(nil) params := &route53domains.UpdateDomainContactPrivacyInput{ DomainName: aws.String("DomainName"), // Required AdminPrivacy: aws.Boolean(true), RegistrantPrivacy: aws.Boolean(true), TechPrivacy: aws.Boolean(true), } resp, err := svc.UpdateDomainContactPrivacy(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*Route53Domains) UpdateDomainContactPrivacyRequest ¶
func (c *Route53Domains) UpdateDomainContactPrivacyRequest(input *UpdateDomainContactPrivacyInput) (req *aws.Request, output *UpdateDomainContactPrivacyOutput)
UpdateDomainContactPrivacyRequest generates a request for the UpdateDomainContactPrivacy operation.
func (*Route53Domains) UpdateDomainContactRequest ¶
func (c *Route53Domains) UpdateDomainContactRequest(input *UpdateDomainContactInput) (req *aws.Request, output *UpdateDomainContactOutput)
UpdateDomainContactRequest generates a request for the UpdateDomainContact operation.
func (*Route53Domains) UpdateDomainNameservers ¶
func (c *Route53Domains) UpdateDomainNameservers(input *UpdateDomainNameserversInput) (*UpdateDomainNameserversOutput, error)
This operation replaces the current set of name servers for the domain with the specified set of name servers. If you use Amazon Route 53 as your DNS service, specify the four name servers in the delegation set for the hosted zone for the domain.
If successful, this operation returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/route53domains" ) func main() { svc := route53domains.New(nil) params := &route53domains.UpdateDomainNameserversInput{ DomainName: aws.String("DomainName"), // Required Nameservers: []*route53domains.Nameserver{ // Required { // Required Name: aws.String("HostName"), // Required GlueIPs: []*string{ aws.String("GlueIp"), // Required // More values... }, }, // More values... }, FIAuthKey: aws.String("FIAuthKey"), } resp, err := svc.UpdateDomainNameservers(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*Route53Domains) UpdateDomainNameserversRequest ¶
func (c *Route53Domains) UpdateDomainNameserversRequest(input *UpdateDomainNameserversInput) (req *aws.Request, output *UpdateDomainNameserversOutput)
UpdateDomainNameserversRequest generates a request for the UpdateDomainNameservers operation.
func (*Route53Domains) UpdateTagsForDomain ¶
func (c *Route53Domains) UpdateTagsForDomain(input *UpdateTagsForDomainInput) (*UpdateTagsForDomainOutput, error)
This operation adds or updates tags for a specified domain.
All tag operations are eventually consistent; subsequent operations may not immediately represent all issued operations.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/route53domains" ) func main() { svc := route53domains.New(nil) params := &route53domains.UpdateTagsForDomainInput{ DomainName: aws.String("DomainName"), // Required TagsToUpdate: []*route53domains.Tag{ { // Required Key: aws.String("TagKey"), Value: aws.String("TagValue"), }, // More values... }, } resp, err := svc.UpdateTagsForDomain(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*Route53Domains) UpdateTagsForDomainRequest ¶
func (c *Route53Domains) UpdateTagsForDomainRequest(input *UpdateTagsForDomainInput) (req *aws.Request, output *UpdateTagsForDomainOutput)
UpdateTagsForDomainRequest generates a request for the UpdateTagsForDomain operation.
type Tag ¶
type Tag struct { // The key (name) of a tag. // // Type: String // // Default: None // // Valid values: A-Z, a-z, 0-9, space, ".:/=+\-@" // // Constraints: Each key can be 1-128 characters long. // // Required: Yes Key *string `type:"string"` // The value of a tag. // // Type: String // // Default: None // // Valid values: A-Z, a-z, 0-9, space, ".:/=+\-@" // // Constraints: Each value can be 0-256 characters long. // // Required: Yes Value *string `type:"string"` // contains filtered or unexported fields }
Each tag includes the following elements.
type TransferDomainInput ¶
type TransferDomainInput struct { // Provides detailed contact information. // // Type: Complex // // Children: FirstName, MiddleName, LastName, ContactType, OrganizationName, // AddressLine1, AddressLine2, City, State, CountryCode, ZipCode, PhoneNumber, // Email, Fax, ExtraParams // // Required: Yes AdminContact *ContactDetail `type:"structure" required:"true"` // The authorization code for the domain. You get this value from the current // registrar. // // Type: String // // Required: Yes AuthCode *string `type:"string"` // Indicates whether the domain will be automatically renewed (true) or not // (false). Autorenewal only takes effect after the account is charged. // // Type: Boolean // // Valid values: true | false // // Default: true // // Required: No AutoRenew *bool `type:"boolean"` // The name of a domain. // // Type: String // // Default: None // // Constraints: The domain name can contain only the letters a through z, the // numbers 0 through 9, and hyphen (-). Internationalized Domain Names are not // supported. // // Required: Yes DomainName *string `type:"string" required:"true"` // The number of years the domain will be registered. Domains are registered // for a minimum of one year. The maximum period depends on the top-level domain. // // Type: Integer // // Default: 1 // // Valid values: Integer from 1 to 10 // // Required: Yes DurationInYears *int64 `type:"integer" required:"true"` // Reserved for future use. IDNLangCode *string `locationName:"IdnLangCode" type:"string"` // Contains details for the host and glue IP addresses. // // Type: Complex // // Children: GlueIps, Name // // Required: No Nameservers []*Nameserver `type:"list"` // Whether you want to conceal contact information from WHOIS queries. If you // specify true, WHOIS ("who is") queries will return contact information for // our registrar partner, Gandi, instead of the contact information that you // enter. // // Type: Boolean // // Default: true // // Valid values: true | false // // Required: No PrivacyProtectAdminContact *bool `type:"boolean"` // Whether you want to conceal contact information from WHOIS queries. If you // specify true, WHOIS ("who is") queries will return contact information for // our registrar partner, Gandi, instead of the contact information that you // enter. // // Type: Boolean // // Default: true // // Valid values: true | false // // Required: No PrivacyProtectRegistrantContact *bool `type:"boolean"` // Whether you want to conceal contact information from WHOIS queries. If you // specify true, WHOIS ("who is") queries will return contact information for // our registrar partner, Gandi, instead of the contact information that you // enter. // // Type: Boolean // // Default: true // // Valid values: true | false // // Required: No PrivacyProtectTechContact *bool `type:"boolean"` // Provides detailed contact information. // // Type: Complex // // Children: FirstName, MiddleName, LastName, ContactType, OrganizationName, // AddressLine1, AddressLine2, City, State, CountryCode, ZipCode, PhoneNumber, // Email, Fax, ExtraParams // // Required: Yes RegistrantContact *ContactDetail `type:"structure" required:"true"` // Provides detailed contact information. // // Type: Complex // // Children: FirstName, MiddleName, LastName, ContactType, OrganizationName, // AddressLine1, AddressLine2, City, State, CountryCode, ZipCode, PhoneNumber, // Email, Fax, ExtraParams // // Required: Yes TechContact *ContactDetail `type:"structure" required:"true"` // contains filtered or unexported fields }
The TransferDomain request includes the following elements.
func (TransferDomainInput) GoString ¶ added in v0.6.5
func (s TransferDomainInput) GoString() string
GoString returns the string representation
func (TransferDomainInput) String ¶ added in v0.6.5
func (s TransferDomainInput) String() string
String returns the string representation
type TransferDomainOutput ¶
type TransferDomainOutput struct { // Identifier for tracking the progress of the request. To use this ID to query // the operation status, use GetOperationDetail. // // Type: String // // Default: None // // Constraints: Maximum 255 characters. OperationID *string `locationName:"OperationId" type:"string" required:"true"` // contains filtered or unexported fields }
The TranserDomain response includes the following element.
func (TransferDomainOutput) GoString ¶ added in v0.6.5
func (s TransferDomainOutput) GoString() string
GoString returns the string representation
func (TransferDomainOutput) String ¶ added in v0.6.5
func (s TransferDomainOutput) String() string
String returns the string representation
type UpdateDomainContactInput ¶
type UpdateDomainContactInput struct { // Provides detailed contact information. // // Type: Complex // // Children: FirstName, MiddleName, LastName, ContactType, OrganizationName, // AddressLine1, AddressLine2, City, State, CountryCode, ZipCode, PhoneNumber, // Email, Fax, ExtraParams // // Required: Yes AdminContact *ContactDetail `type:"structure"` // The name of a domain. // // Type: String // // Default: None // // Constraints: The domain name can contain only the letters a through z, the // numbers 0 through 9, and hyphen (-). Internationalized Domain Names are not // supported. // // Required: Yes DomainName *string `type:"string" required:"true"` // Provides detailed contact information. // // Type: Complex // // Children: FirstName, MiddleName, LastName, ContactType, OrganizationName, // AddressLine1, AddressLine2, City, State, CountryCode, ZipCode, PhoneNumber, // Email, Fax, ExtraParams // // Required: Yes RegistrantContact *ContactDetail `type:"structure"` // Provides detailed contact information. // // Type: Complex // // Children: FirstName, MiddleName, LastName, ContactType, OrganizationName, // AddressLine1, AddressLine2, City, State, CountryCode, ZipCode, PhoneNumber, // Email, Fax, ExtraParams // // Required: Yes TechContact *ContactDetail `type:"structure"` // contains filtered or unexported fields }
The UpdateDomainContact request includes the following elements.
func (UpdateDomainContactInput) GoString ¶ added in v0.6.5
func (s UpdateDomainContactInput) GoString() string
GoString returns the string representation
func (UpdateDomainContactInput) String ¶ added in v0.6.5
func (s UpdateDomainContactInput) String() string
String returns the string representation
type UpdateDomainContactOutput ¶
type UpdateDomainContactOutput struct { // Identifier for tracking the progress of the request. To use this ID to query // the operation status, use GetOperationDetail. // // Type: String // // Default: None // // Constraints: Maximum 255 characters. OperationID *string `locationName:"OperationId" type:"string" required:"true"` // contains filtered or unexported fields }
The UpdateDomainContact response includes the following element.
func (UpdateDomainContactOutput) GoString ¶ added in v0.6.5
func (s UpdateDomainContactOutput) GoString() string
GoString returns the string representation
func (UpdateDomainContactOutput) String ¶ added in v0.6.5
func (s UpdateDomainContactOutput) String() string
String returns the string representation
type UpdateDomainContactPrivacyInput ¶
type UpdateDomainContactPrivacyInput struct { // Whether you want to conceal contact information from WHOIS queries. If you // specify true, WHOIS ("who is") queries will return contact information for // our registrar partner, Gandi, instead of the contact information that you // enter. // // Type: Boolean // // Default: None // // Valid values: true | false // // Required: No AdminPrivacy *bool `type:"boolean"` // The name of a domain. // // Type: String // // Default: None // // Constraints: The domain name can contain only the letters a through z, the // numbers 0 through 9, and hyphen (-). Internationalized Domain Names are not // supported. // // Required: Yes DomainName *string `type:"string" required:"true"` // Whether you want to conceal contact information from WHOIS queries. If you // specify true, WHOIS ("who is") queries will return contact information for // our registrar partner, Gandi, instead of the contact information that you // enter. // // Type: Boolean // // Default: None // // Valid values: true | false // // Required: No RegistrantPrivacy *bool `type:"boolean"` // Whether you want to conceal contact information from WHOIS queries. If you // specify true, WHOIS ("who is") queries will return contact information for // our registrar partner, Gandi, instead of the contact information that you // enter. // // Type: Boolean // // Default: None // // Valid values: true | false // // Required: No TechPrivacy *bool `type:"boolean"` // contains filtered or unexported fields }
The UpdateDomainContactPrivacy request includes the following elements.
func (UpdateDomainContactPrivacyInput) GoString ¶ added in v0.6.5
func (s UpdateDomainContactPrivacyInput) GoString() string
GoString returns the string representation
func (UpdateDomainContactPrivacyInput) String ¶ added in v0.6.5
func (s UpdateDomainContactPrivacyInput) String() string
String returns the string representation
type UpdateDomainContactPrivacyOutput ¶
type UpdateDomainContactPrivacyOutput struct { // Identifier for tracking the progress of the request. To use this ID to query // the operation status, use GetOperationDetail. // // Type: String // // Default: None // // Constraints: Maximum 255 characters. OperationID *string `locationName:"OperationId" type:"string" required:"true"` // contains filtered or unexported fields }
The UpdateDomainContactPrivacy response includes the following element.
func (UpdateDomainContactPrivacyOutput) GoString ¶ added in v0.6.5
func (s UpdateDomainContactPrivacyOutput) GoString() string
GoString returns the string representation
func (UpdateDomainContactPrivacyOutput) String ¶ added in v0.6.5
func (s UpdateDomainContactPrivacyOutput) String() string
String returns the string representation
type UpdateDomainNameserversInput ¶
type UpdateDomainNameserversInput struct { // The name of a domain. // // Type: String // // Default: None // // Constraints: The domain name can contain only the letters a through z, the // numbers 0 through 9, and hyphen (-). Internationalized Domain Names are not // supported. // // Required: Yes DomainName *string `type:"string" required:"true"` // The authorization key for .fi domains FIAuthKey *string `type:"string"` // A list of new name servers for the domain. // // Type: Complex // // Children: Name, GlueIps // // Required: Yes Nameservers []*Nameserver `type:"list" required:"true"` // contains filtered or unexported fields }
The UpdateDomainNameserver request includes the following elements.
func (UpdateDomainNameserversInput) GoString ¶ added in v0.6.5
func (s UpdateDomainNameserversInput) GoString() string
GoString returns the string representation
func (UpdateDomainNameserversInput) String ¶ added in v0.6.5
func (s UpdateDomainNameserversInput) String() string
String returns the string representation
type UpdateDomainNameserversOutput ¶
type UpdateDomainNameserversOutput struct { // Identifier for tracking the progress of the request. To use this ID to query // the operation status, use GetOperationDetail. // // Type: String // // Default: None // // Constraints: Maximum 255 characters. OperationID *string `locationName:"OperationId" type:"string" required:"true"` // contains filtered or unexported fields }
The UpdateDomainNameservers response includes the following element.
func (UpdateDomainNameserversOutput) GoString ¶ added in v0.6.5
func (s UpdateDomainNameserversOutput) GoString() string
GoString returns the string representation
func (UpdateDomainNameserversOutput) String ¶ added in v0.6.5
func (s UpdateDomainNameserversOutput) String() string
String returns the string representation
type UpdateTagsForDomainInput ¶
type UpdateTagsForDomainInput struct { // The domain for which you want to add or update tags. // // The name of a domain. // // Type: String // // Default: None // // Constraints: The domain name can contain only the letters a through z, the // numbers 0 through 9, and hyphen (-). Hyphens are allowed only when theyaposre // surrounded by letters, numbers, or other hyphens. You canapost specify a // hyphen at the beginning or end of a label. To specify an Internationalized // Domain Name, you must convert the name to Punycode. // // Required: Yes DomainName *string `type:"string" required:"true"` // A list of the tag keys and values that you want to add or update. If you // specify a key that already exists, the corresponding value will be replaced. // // Type: A complex type containing a list of tags // // Default: None // // Required: No // // '> Each tag includes the following elements: // // Key // // The key (name) of a tag. // // Type: String // // Default: None // // Valid values: Unicode characters including alphanumeric, space, and ".:/=+\-@" // // Constraints: Each key can be 1-128 characters long. // // Required: Yes // // Value // // The value of a tag. // // Type: String // // Default: None // // Valid values: Unicode characters including alphanumeric, space, and ".:/=+\-@" // // Constraints: Each value can be 0-256 characters long. // // Required: Yes TagsToUpdate []*Tag `type:"list"` // contains filtered or unexported fields }
The UpdateTagsForDomainRequest includes the following elements.
func (UpdateTagsForDomainInput) GoString ¶ added in v0.6.5
func (s UpdateTagsForDomainInput) GoString() string
GoString returns the string representation
func (UpdateTagsForDomainInput) String ¶ added in v0.6.5
func (s UpdateTagsForDomainInput) String() string
String returns the string representation
type UpdateTagsForDomainOutput ¶
type UpdateTagsForDomainOutput struct {
// contains filtered or unexported fields
}
func (UpdateTagsForDomainOutput) GoString ¶ added in v0.6.5
func (s UpdateTagsForDomainOutput) GoString() string
GoString returns the string representation
func (UpdateTagsForDomainOutput) String ¶ added in v0.6.5
func (s UpdateTagsForDomainOutput) String() string
String returns the string representation
Directories ¶
Path | Synopsis |
---|---|
Package route53domainsiface provides an interface for the Amazon Route 53 Domains.
|
Package route53domainsiface provides an interface for the Amazon Route 53 Domains. |