Documentation ¶
Overview ¶
Package route53 provides a client for Amazon Route 53.
Index ¶
- type AliasTarget
- type AssociateVPCWithHostedZoneInput
- type AssociateVPCWithHostedZoneOutput
- type Change
- type ChangeBatch
- type ChangeInfo
- type ChangeResourceRecordSetsInput
- type ChangeResourceRecordSetsOutput
- type ChangeTagsForResourceInput
- type ChangeTagsForResourceOutput
- type CreateHealthCheckInput
- type CreateHealthCheckOutput
- type CreateHostedZoneInput
- type CreateHostedZoneOutput
- type CreateReusableDelegationSetInput
- type CreateReusableDelegationSetOutput
- type DelegationSet
- type DeleteHealthCheckInput
- type DeleteHealthCheckOutput
- type DeleteHostedZoneInput
- type DeleteHostedZoneOutput
- type DeleteReusableDelegationSetInput
- type DeleteReusableDelegationSetOutput
- type DisassociateVPCFromHostedZoneInput
- type DisassociateVPCFromHostedZoneOutput
- type GeoLocation
- type GeoLocationDetails
- type GetChangeInput
- type GetChangeOutput
- type GetCheckerIPRangesInput
- type GetCheckerIPRangesOutput
- type GetGeoLocationInput
- type GetGeoLocationOutput
- type GetHealthCheckCountInput
- type GetHealthCheckCountOutput
- type GetHealthCheckInput
- type GetHealthCheckLastFailureReasonInput
- type GetHealthCheckLastFailureReasonOutput
- type GetHealthCheckOutput
- type GetHealthCheckStatusInput
- type GetHealthCheckStatusOutput
- type GetHostedZoneCountInput
- type GetHostedZoneCountOutput
- type GetHostedZoneInput
- type GetHostedZoneOutput
- type GetReusableDelegationSetInput
- type GetReusableDelegationSetOutput
- type HealthCheck
- type HealthCheckConfig
- type HealthCheckObservation
- type HostedZone
- type HostedZoneConfig
- type ListGeoLocationsInput
- type ListGeoLocationsOutput
- type ListHealthChecksInput
- type ListHealthChecksOutput
- type ListHostedZonesByNameInput
- type ListHostedZonesByNameOutput
- type ListHostedZonesInput
- type ListHostedZonesOutput
- type ListResourceRecordSetsInput
- type ListResourceRecordSetsOutput
- type ListReusableDelegationSetsInput
- type ListReusableDelegationSetsOutput
- type ListTagsForResourceInput
- type ListTagsForResourceOutput
- type ListTagsForResourcesInput
- type ListTagsForResourcesOutput
- type ResourceRecord
- type ResourceRecordSet
- type ResourceTagSet
- type Route53
- func (c *Route53) AssociateVPCWithHostedZone(input *AssociateVPCWithHostedZoneInput) (*AssociateVPCWithHostedZoneOutput, error)
- func (c *Route53) AssociateVPCWithHostedZoneRequest(input *AssociateVPCWithHostedZoneInput) (req *aws.Request, output *AssociateVPCWithHostedZoneOutput)
- func (c *Route53) ChangeResourceRecordSets(input *ChangeResourceRecordSetsInput) (*ChangeResourceRecordSetsOutput, error)
- func (c *Route53) ChangeResourceRecordSetsRequest(input *ChangeResourceRecordSetsInput) (req *aws.Request, output *ChangeResourceRecordSetsOutput)
- func (c *Route53) ChangeTagsForResource(input *ChangeTagsForResourceInput) (*ChangeTagsForResourceOutput, error)
- func (c *Route53) ChangeTagsForResourceRequest(input *ChangeTagsForResourceInput) (req *aws.Request, output *ChangeTagsForResourceOutput)
- func (c *Route53) CreateHealthCheck(input *CreateHealthCheckInput) (*CreateHealthCheckOutput, error)
- func (c *Route53) CreateHealthCheckRequest(input *CreateHealthCheckInput) (req *aws.Request, output *CreateHealthCheckOutput)
- func (c *Route53) CreateHostedZone(input *CreateHostedZoneInput) (*CreateHostedZoneOutput, error)
- func (c *Route53) CreateHostedZoneRequest(input *CreateHostedZoneInput) (req *aws.Request, output *CreateHostedZoneOutput)
- func (c *Route53) CreateReusableDelegationSet(input *CreateReusableDelegationSetInput) (*CreateReusableDelegationSetOutput, error)
- func (c *Route53) CreateReusableDelegationSetRequest(input *CreateReusableDelegationSetInput) (req *aws.Request, output *CreateReusableDelegationSetOutput)
- func (c *Route53) DeleteHealthCheck(input *DeleteHealthCheckInput) (*DeleteHealthCheckOutput, error)
- func (c *Route53) DeleteHealthCheckRequest(input *DeleteHealthCheckInput) (req *aws.Request, output *DeleteHealthCheckOutput)
- func (c *Route53) DeleteHostedZone(input *DeleteHostedZoneInput) (*DeleteHostedZoneOutput, error)
- func (c *Route53) DeleteHostedZoneRequest(input *DeleteHostedZoneInput) (req *aws.Request, output *DeleteHostedZoneOutput)
- func (c *Route53) DeleteReusableDelegationSet(input *DeleteReusableDelegationSetInput) (*DeleteReusableDelegationSetOutput, error)
- func (c *Route53) DeleteReusableDelegationSetRequest(input *DeleteReusableDelegationSetInput) (req *aws.Request, output *DeleteReusableDelegationSetOutput)
- func (c *Route53) DisassociateVPCFromHostedZone(input *DisassociateVPCFromHostedZoneInput) (*DisassociateVPCFromHostedZoneOutput, error)
- func (c *Route53) DisassociateVPCFromHostedZoneRequest(input *DisassociateVPCFromHostedZoneInput) (req *aws.Request, output *DisassociateVPCFromHostedZoneOutput)
- func (c *Route53) GetChange(input *GetChangeInput) (*GetChangeOutput, error)
- func (c *Route53) GetChangeRequest(input *GetChangeInput) (req *aws.Request, output *GetChangeOutput)
- func (c *Route53) GetCheckerIPRanges(input *GetCheckerIPRangesInput) (*GetCheckerIPRangesOutput, error)
- func (c *Route53) GetCheckerIPRangesRequest(input *GetCheckerIPRangesInput) (req *aws.Request, output *GetCheckerIPRangesOutput)
- func (c *Route53) GetGeoLocation(input *GetGeoLocationInput) (*GetGeoLocationOutput, error)
- func (c *Route53) GetGeoLocationRequest(input *GetGeoLocationInput) (req *aws.Request, output *GetGeoLocationOutput)
- func (c *Route53) GetHealthCheck(input *GetHealthCheckInput) (*GetHealthCheckOutput, error)
- func (c *Route53) GetHealthCheckCount(input *GetHealthCheckCountInput) (*GetHealthCheckCountOutput, error)
- func (c *Route53) GetHealthCheckCountRequest(input *GetHealthCheckCountInput) (req *aws.Request, output *GetHealthCheckCountOutput)
- func (c *Route53) GetHealthCheckLastFailureReason(input *GetHealthCheckLastFailureReasonInput) (*GetHealthCheckLastFailureReasonOutput, error)
- func (c *Route53) GetHealthCheckLastFailureReasonRequest(input *GetHealthCheckLastFailureReasonInput) (req *aws.Request, output *GetHealthCheckLastFailureReasonOutput)
- func (c *Route53) GetHealthCheckRequest(input *GetHealthCheckInput) (req *aws.Request, output *GetHealthCheckOutput)
- func (c *Route53) GetHealthCheckStatus(input *GetHealthCheckStatusInput) (*GetHealthCheckStatusOutput, error)
- func (c *Route53) GetHealthCheckStatusRequest(input *GetHealthCheckStatusInput) (req *aws.Request, output *GetHealthCheckStatusOutput)
- func (c *Route53) GetHostedZone(input *GetHostedZoneInput) (*GetHostedZoneOutput, error)
- func (c *Route53) GetHostedZoneCount(input *GetHostedZoneCountInput) (*GetHostedZoneCountOutput, error)
- func (c *Route53) GetHostedZoneCountRequest(input *GetHostedZoneCountInput) (req *aws.Request, output *GetHostedZoneCountOutput)
- func (c *Route53) GetHostedZoneRequest(input *GetHostedZoneInput) (req *aws.Request, output *GetHostedZoneOutput)
- func (c *Route53) GetReusableDelegationSet(input *GetReusableDelegationSetInput) (*GetReusableDelegationSetOutput, error)
- func (c *Route53) GetReusableDelegationSetRequest(input *GetReusableDelegationSetInput) (req *aws.Request, output *GetReusableDelegationSetOutput)
- func (c *Route53) ListGeoLocations(input *ListGeoLocationsInput) (*ListGeoLocationsOutput, error)
- func (c *Route53) ListGeoLocationsRequest(input *ListGeoLocationsInput) (req *aws.Request, output *ListGeoLocationsOutput)
- func (c *Route53) ListHealthChecks(input *ListHealthChecksInput) (*ListHealthChecksOutput, error)
- func (c *Route53) ListHealthChecksPages(input *ListHealthChecksInput, ...) error
- func (c *Route53) ListHealthChecksRequest(input *ListHealthChecksInput) (req *aws.Request, output *ListHealthChecksOutput)
- func (c *Route53) ListHostedZones(input *ListHostedZonesInput) (*ListHostedZonesOutput, error)
- func (c *Route53) ListHostedZonesByName(input *ListHostedZonesByNameInput) (*ListHostedZonesByNameOutput, error)
- func (c *Route53) ListHostedZonesByNameRequest(input *ListHostedZonesByNameInput) (req *aws.Request, output *ListHostedZonesByNameOutput)
- func (c *Route53) ListHostedZonesPages(input *ListHostedZonesInput, ...) error
- func (c *Route53) ListHostedZonesRequest(input *ListHostedZonesInput) (req *aws.Request, output *ListHostedZonesOutput)
- func (c *Route53) ListResourceRecordSets(input *ListResourceRecordSetsInput) (*ListResourceRecordSetsOutput, error)
- func (c *Route53) ListResourceRecordSetsPages(input *ListResourceRecordSetsInput, ...) error
- func (c *Route53) ListResourceRecordSetsRequest(input *ListResourceRecordSetsInput) (req *aws.Request, output *ListResourceRecordSetsOutput)
- func (c *Route53) ListReusableDelegationSets(input *ListReusableDelegationSetsInput) (*ListReusableDelegationSetsOutput, error)
- func (c *Route53) ListReusableDelegationSetsRequest(input *ListReusableDelegationSetsInput) (req *aws.Request, output *ListReusableDelegationSetsOutput)
- func (c *Route53) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error)
- func (c *Route53) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *aws.Request, output *ListTagsForResourceOutput)
- func (c *Route53) ListTagsForResources(input *ListTagsForResourcesInput) (*ListTagsForResourcesOutput, error)
- func (c *Route53) ListTagsForResourcesRequest(input *ListTagsForResourcesInput) (req *aws.Request, output *ListTagsForResourcesOutput)
- func (c *Route53) UpdateHealthCheck(input *UpdateHealthCheckInput) (*UpdateHealthCheckOutput, error)
- func (c *Route53) UpdateHealthCheckRequest(input *UpdateHealthCheckInput) (req *aws.Request, output *UpdateHealthCheckOutput)
- func (c *Route53) UpdateHostedZoneComment(input *UpdateHostedZoneCommentInput) (*UpdateHostedZoneCommentOutput, error)
- func (c *Route53) UpdateHostedZoneCommentRequest(input *UpdateHostedZoneCommentInput) (req *aws.Request, output *UpdateHostedZoneCommentOutput)
- type StatusReport
- type Tag
- type UpdateHealthCheckInput
- type UpdateHealthCheckOutput
- type UpdateHostedZoneCommentInput
- type UpdateHostedZoneCommentOutput
- type VPC
Examples ¶
- Route53.AssociateVPCWithHostedZone
- Route53.ChangeResourceRecordSets
- Route53.ChangeTagsForResource
- Route53.CreateHealthCheck
- Route53.CreateHostedZone
- Route53.CreateReusableDelegationSet
- Route53.DeleteHealthCheck
- Route53.DeleteHostedZone
- Route53.DeleteReusableDelegationSet
- Route53.DisassociateVPCFromHostedZone
- Route53.GetChange
- Route53.GetCheckerIPRanges
- Route53.GetGeoLocation
- Route53.GetHealthCheck
- Route53.GetHealthCheckCount
- Route53.GetHealthCheckLastFailureReason
- Route53.GetHealthCheckStatus
- Route53.GetHostedZone
- Route53.GetHostedZoneCount
- Route53.GetReusableDelegationSet
- Route53.ListGeoLocations
- Route53.ListHealthChecks
- Route53.ListHostedZones
- Route53.ListHostedZonesByName
- Route53.ListResourceRecordSets
- Route53.ListReusableDelegationSets
- Route53.ListTagsForResource
- Route53.ListTagsForResources
- Route53.UpdateHealthCheck
- Route53.UpdateHostedZoneComment
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliasTarget ¶
type AliasTarget struct { // Alias resource record sets only: The external DNS name associated with the // AWS Resource. // // For more information and an example, see Creating Alias Resource Record // Sets (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/CreatingAliasRRSets.html) // in the Amazon Route 53 Developer Guide // // . DNSName *string `type:"string" required:"true"` // Alias resource record sets only: A boolean value that indicates whether this // Resource Record Set should respect the health status of any health checks // associated with the ALIAS target record which it is linked to. // // For more information and an example, see Creating Alias Resource Record // Sets (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/CreatingAliasRRSets.html) // in the Amazon Route 53 Developer Guide // // . EvaluateTargetHealth *bool `type:"boolean" required:"true"` // Alias resource record sets only: The value of the hosted zone ID for the // AWS resource. // // For more information and an example, see Creating Alias Resource Record // Sets (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/CreatingAliasRRSets.html) // in the Amazon Route 53 Developer Guide // // . HostedZoneID *string `locationName:"HostedZoneId" type:"string" required:"true"` // contains filtered or unexported fields }
Alias resource record sets only: Information about the domain to which you are redirecting traffic.
For more information and an example, see Creating Alias Resource Record Sets (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/CreatingAliasRRSets.html) in the Amazon Route 53 Developer Guide
.
type AssociateVPCWithHostedZoneInput ¶
type AssociateVPCWithHostedZoneInput struct { // Optional: Any comments you want to include about a AssociateVPCWithHostedZoneRequest. Comment *string `type:"string"` // The ID of the hosted zone you want to associate your VPC with. // // Note that you cannot associate a VPC with a hosted zone that doesn't have // an existing VPC association. HostedZoneID *string `location:"uri" locationName:"Id" type:"string" required:"true"` // The VPC that you want your hosted zone to be associated with. VPC *VPC `type:"structure" required:"true"` // contains filtered or unexported fields }
A complex type that contains information about the request to associate a VPC with an hosted zone.
type AssociateVPCWithHostedZoneOutput ¶
type AssociateVPCWithHostedZoneOutput struct { // A complex type that contains the ID, the status, and the date and time of // your AssociateVPCWithHostedZoneRequest. ChangeInfo *ChangeInfo `type:"structure" required:"true"` // contains filtered or unexported fields }
A complex type containing the response information for the request.
type Change ¶
type Change struct { // The action to perform. // // Valid values: CREATE | DELETE | UPSERT Action *string `type:"string" required:"true"` // Information about the resource record set to create or delete. ResourceRecordSet *ResourceRecordSet `type:"structure" required:"true"` // contains filtered or unexported fields }
A complex type that contains the information for each change in a change batch request.
type ChangeBatch ¶
type ChangeBatch struct { // A complex type that contains one Change element for each resource record // set that you want to create or delete. Changes []*Change `locationNameList:"Change" type:"list" required:"true"` // Optional: Any comments you want to include about a change batch request. Comment *string `type:"string"` // contains filtered or unexported fields }
A complex type that contains an optional comment and the changes that you want to make with a change batch request.
type ChangeInfo ¶
type ChangeInfo struct { // A complex type that describes change information about changes made to your // hosted zone. // // This element contains an ID that you use when performing a GetChange action // to get detailed information about the change. Comment *string `type:"string"` // The ID of the request. Use this ID to track when the change has completed // across all Amazon Route 53 DNS servers. ID *string `locationName:"Id" type:"string" required:"true"` // The current state of the request. PENDING indicates that this request has // not yet been applied to all Amazon Route 53 DNS servers. // // Valid Values: PENDING | INSYNC Status *string `type:"string" required:"true"` // The date and time the change was submitted, in the format YYYY-MM-DDThh:mm:ssZ, // as specified in the ISO 8601 standard (for example, 2009-11-19T19:37:58Z). // The Z after the time indicates that the time is listed in Coordinated Universal // Time (UTC), which is synonymous with Greenwich Mean Time in this context. SubmittedAt *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` // contains filtered or unexported fields }
A complex type that describes change information about changes made to your hosted zone.
This element contains an ID that you use when performing a GetChange action to get detailed information about the change.
type ChangeResourceRecordSetsInput ¶
type ChangeResourceRecordSetsInput struct { // A complex type that contains an optional comment and the Changes element. ChangeBatch *ChangeBatch `type:"structure" required:"true"` // The ID of the hosted zone that contains the resource record sets that you // want to change. HostedZoneID *string `location:"uri" locationName:"Id" type:"string" required:"true"` // contains filtered or unexported fields }
A complex type that contains a change batch.
type ChangeResourceRecordSetsOutput ¶
type ChangeResourceRecordSetsOutput struct { // A complex type that contains information about changes made to your hosted // zone. // // This element contains an ID that you use when performing a GetChange action // to get detailed information about the change. ChangeInfo *ChangeInfo `type:"structure" required:"true"` // contains filtered or unexported fields }
A complex type containing the response for the request.
type ChangeTagsForResourceInput ¶
type ChangeTagsForResourceInput struct { // A complex type that contains a list of Tag elements. Each Tag element identifies // a tag that you want to add or update for the specified resource. AddTags []*Tag `locationNameList:"Tag" type:"list"` // A list of Tag keys that you want to remove from the specified resource. RemoveTagKeys []*string `locationNameList:"Key" type:"list"` // The ID of the resource for which you want to add, change, or delete tags. ResourceID *string `location:"uri" locationName:"ResourceId" type:"string" required:"true"` // The type of the resource. // // - The resource type for health checks is healthcheck. // // - The resource type for hosted zones is hostedzone. ResourceType *string `location:"uri" locationName:"ResourceType" type:"string" required:"true"` // contains filtered or unexported fields }
A complex type containing information about a request to add, change, or delete the tags that are associated with a resource.
type ChangeTagsForResourceOutput ¶
type ChangeTagsForResourceOutput struct {
// contains filtered or unexported fields
}
Empty response for the request.
type CreateHealthCheckInput ¶
type CreateHealthCheckInput struct { // A unique string that identifies the request and that allows failed CreateHealthCheck // requests to be retried without the risk of executing the operation twice. // You must use a unique CallerReference string every time you create a health // check. CallerReference can be any unique string; you might choose to use // a string that identifies your project. // // Valid characters are any Unicode code points that are legal in an XML 1.0 // document. The UTF-8 encoding of the value must be less than 128 bytes. CallerReference *string `type:"string" required:"true"` // A complex type that contains health check configuration. HealthCheckConfig *HealthCheckConfig `type:"structure" required:"true"` // contains filtered or unexported fields }
>A complex type that contains information about the request to create a health check.
type CreateHealthCheckOutput ¶
type CreateHealthCheckOutput struct { // A complex type that contains identifying information about the health check. HealthCheck *HealthCheck `type:"structure" required:"true"` // The unique URL representing the new health check. Location *string `location:"header" locationName:"Location" type:"string" required:"true"` // contains filtered or unexported fields }
A complex type containing the response information for the new health check.
type CreateHostedZoneInput ¶
type CreateHostedZoneInput struct { // A unique string that identifies the request and that allows failed CreateHostedZone // requests to be retried without the risk of executing the operation twice. // You must use a unique CallerReference string every time you create a hosted // zone. CallerReference can be any unique string; you might choose to use a // string that identifies your project, such as DNSMigration_01. // // Valid characters are any Unicode code points that are legal in an XML 1.0 // document. The UTF-8 encoding of the value must be less than 128 bytes. CallerReference *string `type:"string" required:"true"` // The delegation set id of the reusable delgation set whose NS records you // want to assign to the new hosted zone. DelegationSetID *string `locationName:"DelegationSetId" type:"string"` // A complex type that contains an optional comment about your hosted zone. HostedZoneConfig *HostedZoneConfig `type:"structure"` // The name of the domain. This must be a fully-specified domain, for example, // www.example.com. The trailing dot is optional; Route 53 assumes that the // domain name is fully qualified. This means that Route 53 treats www.example.com // (without a trailing dot) and www.example.com. (with a trailing dot) as identical. // // This is the name you have registered with your DNS registrar. You should // ask your registrar to change the authoritative name servers for your domain // to the set of NameServers elements returned in DelegationSet. Name *string `type:"string" required:"true"` // The VPC that you want your hosted zone to be associated with. By providing // this parameter, your newly created hosted cannot be resolved anywhere other // than the given VPC. VPC *VPC `type:"structure"` // contains filtered or unexported fields }
A complex type that contains information about the request to create a hosted zone.
type CreateHostedZoneOutput ¶
type CreateHostedZoneOutput struct { // A complex type that contains information about the request to create a hosted // zone. This includes an ID that you use when you call the GetChange action // to get the current status of the change request. ChangeInfo *ChangeInfo `type:"structure" required:"true"` // A complex type that contains name server information. DelegationSet *DelegationSet `type:"structure" required:"true"` // A complex type that contains identifying information about the hosted zone. HostedZone *HostedZone `type:"structure" required:"true"` // The unique URL representing the new hosted zone. Location *string `location:"header" locationName:"Location" type:"string" required:"true"` VPC *VPC `type:"structure"` // contains filtered or unexported fields }
A complex type containing the response information for the new hosted zone.
type CreateReusableDelegationSetInput ¶
type CreateReusableDelegationSetInput struct { // A unique string that identifies the request and that allows failed CreateReusableDelegationSet // requests to be retried without the risk of executing the operation twice. // You must use a unique CallerReference string every time you create a reusable // delegation set. CallerReference can be any unique string; you might choose // to use a string that identifies your project, such as DNSMigration_01. // // Valid characters are any Unicode code points that are legal in an XML 1.0 // document. The UTF-8 encoding of the value must be less than 128 bytes. CallerReference *string `type:"string" required:"true"` // The ID of the hosted zone whose delegation set you want to mark as reusable. // It is an optional parameter. HostedZoneID *string `locationName:"HostedZoneId" type:"string"` // contains filtered or unexported fields }
type CreateReusableDelegationSetOutput ¶
type CreateReusableDelegationSetOutput struct { // A complex type that contains name server information. DelegationSet *DelegationSet `type:"structure" required:"true"` // The unique URL representing the new reusbale delegation set. Location *string `location:"header" locationName:"Location" type:"string" required:"true"` // contains filtered or unexported fields }
type DelegationSet ¶
type DelegationSet struct { CallerReference *string `type:"string"` ID *string `locationName:"Id" type:"string"` // A complex type that contains the authoritative name servers for the hosted // zone. Use the method provided by your domain registrar to add an NS record // to your domain for each NameServer that is assigned to your hosted zone. NameServers []*string `locationNameList:"NameServer" type:"list" required:"true"` // contains filtered or unexported fields }
A complex type that contains name server information.
type DeleteHealthCheckInput ¶
type DeleteHealthCheckInput struct { // The ID of the health check to delete. HealthCheckID *string `location:"uri" locationName:"HealthCheckId" type:"string" required:"true"` // contains filtered or unexported fields }
A complex type containing the request information for delete health check.
type DeleteHealthCheckOutput ¶
type DeleteHealthCheckOutput struct {
// contains filtered or unexported fields
}
Empty response for the request.
type DeleteHostedZoneInput ¶
type DeleteHostedZoneInput struct { // The ID of the hosted zone you want to delete. ID *string `location:"uri" locationName:"Id" type:"string" required:"true"` // contains filtered or unexported fields }
A complex type that contains information about the hosted zone that you want to delete.
type DeleteHostedZoneOutput ¶
type DeleteHostedZoneOutput struct { // A complex type that contains the ID, the status, and the date and time of // your delete request. ChangeInfo *ChangeInfo `type:"structure" required:"true"` // contains filtered or unexported fields }
A complex type containing the response information for the request.
type DeleteReusableDelegationSetInput ¶
type DeleteReusableDelegationSetInput struct { // The ID of the reusable delegation set you want to delete. ID *string `location:"uri" locationName:"Id" type:"string" required:"true"` // contains filtered or unexported fields }
A complex type containing the information for the delete request.
type DeleteReusableDelegationSetOutput ¶
type DeleteReusableDelegationSetOutput struct {
// contains filtered or unexported fields
}
Empty response for the request.
type DisassociateVPCFromHostedZoneInput ¶
type DisassociateVPCFromHostedZoneInput struct { // Optional: Any comments you want to include about a DisassociateVPCFromHostedZoneRequest. Comment *string `type:"string"` // The ID of the hosted zone you want to disassociate your VPC from. // // Note that you cannot disassociate the last VPC from a hosted zone. HostedZoneID *string `location:"uri" locationName:"Id" type:"string" required:"true"` // The VPC that you want your hosted zone to be disassociated from. VPC *VPC `type:"structure" required:"true"` // contains filtered or unexported fields }
A complex type that contains information about the request to disassociate a VPC from an hosted zone.
type DisassociateVPCFromHostedZoneOutput ¶
type DisassociateVPCFromHostedZoneOutput struct { // A complex type that contains the ID, the status, and the date and time of // your DisassociateVPCFromHostedZoneRequest. ChangeInfo *ChangeInfo `type:"structure" required:"true"` // contains filtered or unexported fields }
A complex type containing the response information for the request.
type GeoLocation ¶
type GeoLocation struct { // The code for a continent geo location. Note: only continent locations have // a continent code. // // Valid values: AF | AN | AS | EU | OC | NA | SA // // Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode // returns an InvalidInput error. ContinentCode *string `type:"string"` // The code for a country geo location. The default location uses '*' for the // country code and will match all locations that are not matched by a geo location. // // The default geo location uses a * for the country code. All other country // codes follow the ISO 3166 two-character code. CountryCode *string `type:"string"` // The code for a country's subdivision (e.g., a province of Canada). A subdivision // code is only valid with the appropriate country code. // // Constraint: Specifying SubdivisionCode without CountryCode returns an InvalidInput // error. SubdivisionCode *string `type:"string"` // contains filtered or unexported fields }
A complex type that contains information about a geo location.
type GeoLocationDetails ¶
type GeoLocationDetails struct { // The code for a continent geo location. Note: only continent locations have // a continent code. ContinentCode *string `type:"string"` // The name of the continent. This element is only present if ContinentCode // is also present. ContinentName *string `type:"string"` // The code for a country geo location. The default location uses '*' for the // country code and will match all locations that are not matched by a geo location. // // The default geo location uses a * for the country code. All other country // codes follow the ISO 3166 two-character code. CountryCode *string `type:"string"` // The name of the country. This element is only present if CountryCode is also // present. CountryName *string `type:"string"` // The code for a country's subdivision (e.g., a province of Canada). A subdivision // code is only valid with the appropriate country code. SubdivisionCode *string `type:"string"` // The name of the subdivision. This element is only present if SubdivisionCode // is also present. SubdivisionName *string `type:"string"` // contains filtered or unexported fields }
A complex type that contains information about a GeoLocation.
type GetChangeInput ¶
type GetChangeInput struct { // The ID of the change batch request. The value that you specify here is the // value that ChangeResourceRecordSets returned in the Id element when you submitted // the request. ID *string `location:"uri" locationName:"Id" type:"string" required:"true"` // contains filtered or unexported fields }
The input for a GetChange request.
type GetChangeOutput ¶
type GetChangeOutput struct { // A complex type that contains information about the specified change batch, // including the change batch ID, the status of the change, and the date and // time of the request. ChangeInfo *ChangeInfo `type:"structure" required:"true"` // contains filtered or unexported fields }
A complex type that contains the ChangeInfo element.
type GetCheckerIPRangesInput ¶
type GetCheckerIPRangesInput struct {
// contains filtered or unexported fields
}
Empty request.
type GetCheckerIPRangesOutput ¶
type GetCheckerIPRangesOutput struct { // A complex type that contains sorted list of IP ranges in CIDR format for // Amazon Route 53 health checkers. CheckerIPRanges []*string `locationName:"CheckerIpRanges" type:"list" required:"true"` // contains filtered or unexported fields }
A complex type that contains the CheckerIpRanges element.
type GetGeoLocationInput ¶
type GetGeoLocationInput struct { // The code for a continent geo location. Note: only continent locations have // a continent code. // // Valid values: AF | AN | AS | EU | OC | NA | SA // // Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode // returns an InvalidInput error. ContinentCode *string `location:"querystring" locationName:"continentcode" type:"string"` // The code for a country geo location. The default location uses '*' for the // country code and will match all locations that are not matched by a geo location. // // The default geo location uses a * for the country code. All other country // codes follow the ISO 3166 two-character code. CountryCode *string `location:"querystring" locationName:"countrycode" type:"string"` // The code for a country's subdivision (e.g., a province of Canada). A subdivision // code is only valid with the appropriate country code. // // Constraint: Specifying SubdivisionCode without CountryCode returns an InvalidInput // error. SubdivisionCode *string `location:"querystring" locationName:"subdivisioncode" type:"string"` // contains filtered or unexported fields }
A complex type that contains information about the request to get a geo location.
type GetGeoLocationOutput ¶
type GetGeoLocationOutput struct { // A complex type that contains the information about the specified geo location. GeoLocationDetails *GeoLocationDetails `type:"structure" required:"true"` // contains filtered or unexported fields }
A complex type containing information about the specified geo location.
type GetHealthCheckCountInput ¶
type GetHealthCheckCountInput struct {
// contains filtered or unexported fields
}
To retrieve a count of all your health checks, send a GET request to the 2013-04-01/healthcheckcount resource.
type GetHealthCheckCountOutput ¶
type GetHealthCheckCountOutput struct { // The number of health checks associated with the current AWS account. HealthCheckCount *int64 `type:"long" required:"true"` // contains filtered or unexported fields }
A complex type that contains the count of health checks associated with the current AWS account.
type GetHealthCheckInput ¶
type GetHealthCheckInput struct { // The ID of the health check to retrieve. HealthCheckID *string `location:"uri" locationName:"HealthCheckId" type:"string" required:"true"` // contains filtered or unexported fields }
A complex type that contains information about the request to get a health check.
type GetHealthCheckLastFailureReasonInput ¶
type GetHealthCheckLastFailureReasonInput struct { // The ID of the health check for which you want to retrieve the reason for // the most recent failure. HealthCheckID *string `location:"uri" locationName:"HealthCheckId" type:"string" required:"true"` // contains filtered or unexported fields }
A complex type that contains information about the request to get the most recent failure reason for a health check.
type GetHealthCheckLastFailureReasonOutput ¶
type GetHealthCheckLastFailureReasonOutput struct { // A list that contains one HealthCheckObservation element for each Route 53 // health checker. HealthCheckObservations []*HealthCheckObservation `locationNameList:"HealthCheckObservation" type:"list" required:"true"` // contains filtered or unexported fields }
A complex type that contains information about the most recent failure for the specified health check.
type GetHealthCheckOutput ¶
type GetHealthCheckOutput struct { // A complex type that contains the information about the specified health check. HealthCheck *HealthCheck `type:"structure" required:"true"` // contains filtered or unexported fields }
A complex type containing information about the specified health check.
type GetHealthCheckStatusInput ¶
type GetHealthCheckStatusInput struct { // The ID of the health check for which you want to retrieve the most recent // status. HealthCheckID *string `location:"uri" locationName:"HealthCheckId" type:"string" required:"true"` // contains filtered or unexported fields }
A complex type that contains information about the request to get health check status for a health check.
type GetHealthCheckStatusOutput ¶
type GetHealthCheckStatusOutput struct { // A list that contains one HealthCheckObservation element for each Route 53 // health checker. HealthCheckObservations []*HealthCheckObservation `locationNameList:"HealthCheckObservation" type:"list" required:"true"` // contains filtered or unexported fields }
A complex type that contains information about the status of the specified health check.
type GetHostedZoneCountInput ¶
type GetHostedZoneCountInput struct {
// contains filtered or unexported fields
}
To retrieve a count of all your hosted zones, send a GET request to the 2013-04-01/hostedzonecount resource.
type GetHostedZoneCountOutput ¶
type GetHostedZoneCountOutput struct { // The number of hosted zones associated with the current AWS account. HostedZoneCount *int64 `type:"long" required:"true"` // contains filtered or unexported fields }
A complex type that contains the count of hosted zones associated with the current AWS account.
type GetHostedZoneInput ¶
type GetHostedZoneInput struct { // The ID of the hosted zone for which you want to get a list of the name servers // in the delegation set. ID *string `location:"uri" locationName:"Id" type:"string" required:"true"` // contains filtered or unexported fields }
The input for a GetHostedZone request.
type GetHostedZoneOutput ¶
type GetHostedZoneOutput struct { // A complex type that contains information about the name servers for the specified // hosted zone. DelegationSet *DelegationSet `type:"structure"` // A complex type that contains the information about the specified hosted zone. HostedZone *HostedZone `type:"structure" required:"true"` // A complex type that contains information about VPCs associated with the specified // hosted zone. VPCs []*VPC `locationNameList:"VPC" type:"list"` // contains filtered or unexported fields }
A complex type containing information about the specified hosted zone.
type GetReusableDelegationSetInput ¶
type GetReusableDelegationSetInput struct { // The ID of the reusable delegation set for which you want to get a list of // the name server. ID *string `location:"uri" locationName:"Id" type:"string" required:"true"` // contains filtered or unexported fields }
The input for a GetReusableDelegationSet request.
type GetReusableDelegationSetOutput ¶
type GetReusableDelegationSetOutput struct { // A complex type that contains the information about the nameservers for the // specified delegation set ID. DelegationSet *DelegationSet `type:"structure" required:"true"` // contains filtered or unexported fields }
A complex type containing information about the specified reusable delegation set.
type HealthCheck ¶
type HealthCheck struct { // A unique string that identifies the request to create the health check. CallerReference *string `type:"string" required:"true"` // A complex type that contains the health check configuration. HealthCheckConfig *HealthCheckConfig `type:"structure" required:"true"` // The version of the health check. You can optionally pass this value in a // call to UpdateHealthCheck to prevent overwriting another change to the health // check. HealthCheckVersion *int64 `type:"long" required:"true"` // The ID of the specified health check. ID *string `locationName:"Id" type:"string" required:"true"` // contains filtered or unexported fields }
A complex type that contains identifying information about the health check.
type HealthCheckConfig ¶
type HealthCheckConfig struct { // The number of consecutive health checks that an endpoint must pass or fail // for Route 53 to change the current status of the endpoint from unhealthy // to healthy or vice versa. // // Valid values are integers between 1 and 10. For more information, see "How // Amazon Route 53 Determines Whether an Endpoint Is Healthy" in the Amazon // Route 53 Developer Guide. FailureThreshold *int64 `type:"integer"` // Fully qualified domain name of the instance to be health checked. FullyQualifiedDomainName *string `type:"string"` // IP Address of the instance being checked. IPAddress *string `type:"string"` // Port on which connection will be opened to the instance to health check. // For HTTP and HTTP_STR_MATCH this defaults to 80 if the port is not specified. // For HTTPS and HTTPS_STR_MATCH this defaults to 443 if the port is not specified. Port *int64 `type:"integer"` // The number of seconds between the time that Route 53 gets a response from // your endpoint and the time that it sends the next health-check request. // // Each Route 53 health checker makes requests at this interval. Valid values // are 10 and 30. The default value is 30. RequestInterval *int64 `type:"integer"` // Path to ping on the instance to check the health. Required for HTTP, HTTPS, // HTTP_STR_MATCH, and HTTPS_STR_MATCH health checks, HTTP request is issued // to the instance on the given port and path. ResourcePath *string `type:"string"` // A string to search for in the body of a health check response. Required for // HTTP_STR_MATCH and HTTPS_STR_MATCH health checks. SearchString *string `type:"string"` // The type of health check to be performed. Currently supported types are TCP, // HTTP, HTTPS, HTTP_STR_MATCH, and HTTPS_STR_MATCH. Type *string `type:"string" required:"true"` // contains filtered or unexported fields }
A complex type that contains the health check configuration.
type HealthCheckObservation ¶
type HealthCheckObservation struct { // The IP address of the Route 53 health checker that performed the health check. IPAddress *string `type:"string"` // A complex type that contains information about the health check status for // the current observation. StatusReport *StatusReport `type:"structure"` // contains filtered or unexported fields }
A complex type that contains the IP address of a Route 53 health checker and the reason for the health check status.
type HostedZone ¶
type HostedZone struct { // A unique string that identifies the request to create the hosted zone. CallerReference *string `type:"string" required:"true"` // A complex type that contains the Comment element. Config *HostedZoneConfig `type:"structure"` // The ID of the specified hosted zone. ID *string `locationName:"Id" type:"string" required:"true"` // The name of the domain. This must be a fully-specified domain, for example, // www.example.com. The trailing dot is optional; Route 53 assumes that the // domain name is fully qualified. This means that Route 53 treats www.example.com // (without a trailing dot) and www.example.com. (with a trailing dot) as identical. // // This is the name you have registered with your DNS registrar. You should // ask your registrar to change the authoritative name servers for your domain // to the set of NameServers elements returned in DelegationSet. Name *string `type:"string" required:"true"` // Total number of resource record sets in the hosted zone. ResourceRecordSetCount *int64 `type:"long"` // contains filtered or unexported fields }
A complex type that contain information about the specified hosted zone.
type HostedZoneConfig ¶
type HostedZoneConfig struct { // An optional comment about your hosted zone. If you don't want to specify // a comment, you can omit the HostedZoneConfig and Comment elements from the // XML document. Comment *string `type:"string"` // A value that indicates whether this is a private hosted zone. The value is // returned in the response; do not specify it in the request. PrivateZone *bool `type:"boolean"` // contains filtered or unexported fields }
A complex type that contains an optional comment about your hosted zone. If you don't want to specify a comment, you can omit the HostedZoneConfig and Comment elements from the XML document.
type ListGeoLocationsInput ¶
type ListGeoLocationsInput struct { // The maximum number of geo locations you want in the response body. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"` // The first continent code in the lexicographic ordering of geo locations that // you want the ListGeoLocations request to list. For non-continent geo locations, // this should be null. // // Valid values: AF | AN | AS | EU | OC | NA | SA // // Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode // returns an InvalidInput error. StartContinentCode *string `location:"querystring" locationName:"startcontinentcode" type:"string"` // The first country code in the lexicographic ordering of geo locations that // you want the ListGeoLocations request to list. // // The default geo location uses a * for the country code. All other country // codes follow the ISO 3166 two-character code. StartCountryCode *string `location:"querystring" locationName:"startcountrycode" type:"string"` // The first subdivision code in the lexicographic ordering of geo locations // that you want the ListGeoLocations request to list. // // Constraint: Specifying SubdivisionCode without CountryCode returns an InvalidInput // error. StartSubdivisionCode *string `location:"querystring" locationName:"startsubdivisioncode" type:"string"` // contains filtered or unexported fields }
The input for a ListGeoLocations request.
type ListGeoLocationsOutput ¶
type ListGeoLocationsOutput struct { // A complex type that contains information about the geo locations that are // returned by the request. GeoLocationDetailsList []*GeoLocationDetails `locationNameList:"GeoLocationDetails" type:"list" required:"true"` // A flag that indicates whether there are more geo locations to be listed. // If your results were truncated, you can make a follow-up request for the // next page of results by using the values included in the ListGeoLocationsResponse$NextContinentCode, // ListGeoLocationsResponse$NextCountryCode and ListGeoLocationsResponse$NextSubdivisionCode // elements. // // Valid Values: true | false IsTruncated *bool `type:"boolean" required:"true"` // The maximum number of records you requested. The maximum value of MaxItems // is 100. MaxItems *string `type:"string" required:"true"` // If the results were truncated, the continent code of the next geo location // in the list. This element is present only if ListGeoLocationsResponse$IsTruncated // is true and the next geo location to list is a continent location. NextContinentCode *string `type:"string"` // If the results were truncated, the country code of the next geo location // in the list. This element is present only if ListGeoLocationsResponse$IsTruncated // is true and the next geo location to list is not a continent location. NextCountryCode *string `type:"string"` // If the results were truncated, the subdivision code of the next geo location // in the list. This element is present only if ListGeoLocationsResponse$IsTruncated // is true and the next geo location has a subdivision. NextSubdivisionCode *string `type:"string"` // contains filtered or unexported fields }
A complex type that contains information about the geo locations that are returned by the request and information about the response.
type ListHealthChecksInput ¶
type ListHealthChecksInput struct { // If the request returned more than one page of results, submit another request // and specify the value of NextMarker from the last response in the marker // parameter to get the next page of results. Marker *string `location:"querystring" locationName:"marker" type:"string"` // Specify the maximum number of health checks to return per page of results. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"` // contains filtered or unexported fields }
To retrieve a list of your health checks, send a GET request to the 2013-04-01/healthcheck resource. The response to this request includes a HealthChecks element with zero or more HealthCheck child elements. By default, the list of health checks is displayed on a single page. You can control the length of the page that is displayed by using the MaxItems parameter. You can use the Marker parameter to control the health check that the list begins with.
Route 53 returns a maximum of 100 items. If you set MaxItems to a value
greater than 100, Route 53 returns only the first 100.
type ListHealthChecksOutput ¶
type ListHealthChecksOutput struct { // A complex type that contains information about the health checks associated // with the current AWS account. HealthChecks []*HealthCheck `locationNameList:"HealthCheck" type:"list" required:"true"` // A flag indicating whether there are more health checks to be listed. If your // results were truncated, you can make a follow-up request for the next page // of results by using the Marker element. // // Valid Values: true | false IsTruncated *bool `type:"boolean" required:"true"` // If the request returned more than one page of results, submit another request // and specify the value of NextMarker from the last response in the marker // parameter to get the next page of results. Marker *string `type:"string" required:"true"` // The maximum number of health checks to be included in the response body. // If the number of health checks associated with this AWS account exceeds MaxItems, // the value of ListHealthChecksResponse$IsTruncated in the response is true. // Call ListHealthChecks again and specify the value of ListHealthChecksResponse$NextMarker // in the ListHostedZonesRequest$Marker element to get the next page of results. MaxItems *string `type:"string" required:"true"` // Indicates where to continue listing health checks. If ListHealthChecksResponse$IsTruncated // is true, make another request to ListHealthChecks and include the value of // the NextMarker element in the Marker element to get the next page of results. NextMarker *string `type:"string"` // contains filtered or unexported fields }
A complex type that contains the response for the request.
type ListHostedZonesByNameInput ¶
type ListHostedZonesByNameInput struct { // The first name in the lexicographic ordering of domain names that you want // the ListHostedZonesByNameRequest request to list. // // If the request returned more than one page of results, submit another request // and specify the value of NextDNSName and NextHostedZoneId from the last response // in the DNSName and HostedZoneId parameters to get the next page of results. DNSName *string `location:"querystring" locationName:"dnsname" type:"string"` // If the request returned more than one page of results, submit another request // and specify the value of NextDNSName and NextHostedZoneId from the last response // in the DNSName and HostedZoneId parameters to get the next page of results. HostedZoneID *string `location:"querystring" locationName:"hostedzoneid" type:"string"` // Specify the maximum number of hosted zones to return per page of results. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"` // contains filtered or unexported fields }
To retrieve a list of your hosted zones in lexicographic order, send a GET request to the 2013-04-01/hostedzonesbyname resource. The response to this request includes a HostedZones element with zero or more HostedZone child elements lexicographically ordered by DNS name. By default, the list of hosted zones is displayed on a single page. You can control the length of the page that is displayed by using the MaxItems parameter. You can use the DNSName and HostedZoneId parameters to control the hosted zone that the list begins with.
For more information about listing hosted zones, see Listing the Hosted Zones for an AWS Account (http://docs.amazonwebservices.com/Route53/latest/DeveloperGuide/ListInfoOnHostedZone.html) in the Amazon Route 53 Developer Guide.
type ListHostedZonesByNameOutput ¶
type ListHostedZonesByNameOutput struct { // The DNSName value sent in the request. DNSName *string `type:"string"` // The HostedZoneId value sent in the request. HostedZoneID *string `locationName:"HostedZoneId" type:"string"` // A complex type that contains information about the hosted zones associated // with the current AWS account. HostedZones []*HostedZone `locationNameList:"HostedZone" type:"list" required:"true"` // A flag indicating whether there are more hosted zones to be listed. If your // results were truncated, you can make a follow-up request for the next page // of results by using the NextDNSName and NextHostedZoneId elements. // // Valid Values: true | false IsTruncated *bool `type:"boolean" required:"true"` // The maximum number of hosted zones to be included in the response body. If // the number of hosted zones associated with this AWS account exceeds MaxItems, // the value of ListHostedZonesByNameResponse$IsTruncated in the response is // true. Call ListHostedZonesByName again and specify the value of ListHostedZonesByNameResponse$NextDNSName // and ListHostedZonesByNameResponse$NextHostedZoneId elements respectively // to get the next page of results. MaxItems *string `type:"string" required:"true"` // If ListHostedZonesByNameResponse$IsTruncated is true, there are more hosted // zones associated with the current AWS account. To get the next page of results, // make another request to ListHostedZonesByName. Specify the value of ListHostedZonesByNameResponse$NextDNSName // in the ListHostedZonesByNameRequest$DNSName element and ListHostedZonesByNameResponse$NextHostedZoneId // in the ListHostedZonesByNameRequest$HostedZoneId element. NextDNSName *string `type:"string"` // If ListHostedZonesByNameResponse$IsTruncated is true, there are more hosted // zones associated with the current AWS account. To get the next page of results, // make another request to ListHostedZonesByName. Specify the value of ListHostedZonesByNameResponse$NextDNSName // in the ListHostedZonesByNameRequest$DNSName element and ListHostedZonesByNameResponse$NextHostedZoneId // in the ListHostedZonesByNameRequest$HostedZoneId element. NextHostedZoneID *string `locationName:"NextHostedZoneId" type:"string"` // contains filtered or unexported fields }
A complex type that contains the response for the request.
type ListHostedZonesInput ¶
type ListHostedZonesInput struct { DelegationSetID *string `location:"querystring" locationName:"delegationsetid" type:"string"` // If the request returned more than one page of results, submit another request // and specify the value of NextMarker from the last response in the marker // parameter to get the next page of results. Marker *string `location:"querystring" locationName:"marker" type:"string"` // Specify the maximum number of hosted zones to return per page of results. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"` // contains filtered or unexported fields }
To retrieve a list of your hosted zones, send a GET request to the 2013-04-01/hostedzone resource. The response to this request includes a HostedZones element with zero or more HostedZone child elements. By default, the list of hosted zones is displayed on a single page. You can control the length of the page that is displayed by using the MaxItems parameter. You can use the Marker parameter to control the hosted zone that the list begins with. For more information about listing hosted zones, see Listing the Hosted Zones for an AWS Account (http://docs.amazonwebservices.com/Route53/latest/DeveloperGuide/ListInfoOnHostedZone.html) in the Amazon Route 53 Developer Guide.
Route 53 returns a maximum of 100 items. If you set MaxItems to a value
greater than 100, Route 53 returns only the first 100.
type ListHostedZonesOutput ¶
type ListHostedZonesOutput struct { // A complex type that contains information about the hosted zones associated // with the current AWS account. HostedZones []*HostedZone `locationNameList:"HostedZone" type:"list" required:"true"` // A flag indicating whether there are more hosted zones to be listed. If your // results were truncated, you can make a follow-up request for the next page // of results by using the Marker element. // // Valid Values: true | false IsTruncated *bool `type:"boolean" required:"true"` // If the request returned more than one page of results, submit another request // and specify the value of NextMarker from the last response in the marker // parameter to get the next page of results. Marker *string `type:"string" required:"true"` // The maximum number of hosted zones to be included in the response body. If // the number of hosted zones associated with this AWS account exceeds MaxItems, // the value of ListHostedZonesResponse$IsTruncated in the response is true. // Call ListHostedZones again and specify the value of ListHostedZonesResponse$NextMarker // in the ListHostedZonesRequest$Marker element to get the next page of results. MaxItems *string `type:"string" required:"true"` // Indicates where to continue listing hosted zones. If ListHostedZonesResponse$IsTruncated // is true, make another request to ListHostedZones and include the value of // the NextMarker element in the Marker element to get the next page of results. NextMarker *string `type:"string"` // contains filtered or unexported fields }
A complex type that contains the response for the request.
type ListResourceRecordSetsInput ¶
type ListResourceRecordSetsInput struct { // The ID of the hosted zone that contains the resource record sets that you // want to get. HostedZoneID *string `location:"uri" locationName:"Id" type:"string" required:"true"` // The maximum number of records you want in the response body. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"` // Weighted resource record sets only: If results were truncated for a given // DNS name and type, specify the value of ListResourceRecordSetsResponse$NextRecordIdentifier // from the previous response to get the next resource record set that has the // current DNS name and type. StartRecordIdentifier *string `location:"querystring" locationName:"identifier" type:"string"` // The first name in the lexicographic ordering of domain names that you want // the ListResourceRecordSets request to list. StartRecordName *string `location:"querystring" locationName:"name" type:"string"` // The DNS type at which to begin the listing of resource record sets. // // Valid values: A | AAAA | CNAME | MX | NS | PTR | SOA | SPF | SRV | TXT // // Values for Weighted Resource Record Sets: A | AAAA | CNAME | TXT // // Values for Regional Resource Record Sets: A | AAAA | CNAME | TXT // // Values for Alias Resource Record Sets: A | AAAA // // Constraint: Specifying type without specifying name returns an InvalidInput // error. StartRecordType *string `location:"querystring" locationName:"type" type:"string"` // contains filtered or unexported fields }
The input for a ListResourceRecordSets request.
type ListResourceRecordSetsOutput ¶
type ListResourceRecordSetsOutput struct { // A flag that indicates whether there are more resource record sets to be listed. // If your results were truncated, you can make a follow-up request for the // next page of results by using the ListResourceRecordSetsResponse$NextRecordName // element. // // Valid Values: true | false IsTruncated *bool `type:"boolean" required:"true"` // The maximum number of records you requested. The maximum value of MaxItems // is 100. MaxItems *string `type:"string" required:"true"` // Weighted resource record sets only: If results were truncated for a given // DNS name and type, the value of SetIdentifier for the next resource record // set that has the current DNS name and type. NextRecordIdentifier *string `type:"string"` // If the results were truncated, the name of the next record in the list. This // element is present only if ListResourceRecordSetsResponse$IsTruncated is // true. NextRecordName *string `type:"string"` // If the results were truncated, the type of the next record in the list. This // element is present only if ListResourceRecordSetsResponse$IsTruncated is // true. NextRecordType *string `type:"string"` // A complex type that contains information about the resource record sets that // are returned by the request. ResourceRecordSets []*ResourceRecordSet `locationNameList:"ResourceRecordSet" type:"list" required:"true"` // contains filtered or unexported fields }
A complex type that contains information about the resource record sets that are returned by the request and information about the response.
type ListReusableDelegationSetsInput ¶
type ListReusableDelegationSetsInput struct { // If the request returned more than one page of results, submit another request // and specify the value of NextMarker from the last response in the marker // parameter to get the next page of results. Marker *string `location:"querystring" locationName:"marker" type:"string"` // Specify the maximum number of reusable delegation sets to return per page // of results. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"` // contains filtered or unexported fields }
To retrieve a list of your reusable delegation sets, send a GET request to the 2013-04-01/delegationset resource. The response to this request includes a DelegationSets element with zero or more DelegationSet child elements. By default, the list of reusable delegation sets is displayed on a single page. You can control the length of the page that is displayed by using the MaxItems parameter. You can use the Marker parameter to control the delegation set that the list begins with.
Route 53 returns a maximum of 100 items. If you set MaxItems to a value
greater than 100, Route 53 returns only the first 100.
type ListReusableDelegationSetsOutput ¶
type ListReusableDelegationSetsOutput struct { // A complex type that contains information about the reusable delegation sets // associated with the current AWS account. DelegationSets []*DelegationSet `locationNameList:"DelegationSet" type:"list" required:"true"` // A flag indicating whether there are more reusable delegation sets to be listed. // If your results were truncated, you can make a follow-up request for the // next page of results by using the Marker element. // // Valid Values: true | false IsTruncated *bool `type:"boolean" required:"true"` // If the request returned more than one page of results, submit another request // and specify the value of NextMarker from the last response in the marker // parameter to get the next page of results. Marker *string `type:"string" required:"true"` // The maximum number of reusable delegation sets to be included in the response // body. If the number of reusable delegation sets associated with this AWS // account exceeds MaxItems, the value of ListReusablDelegationSetsResponse$IsTruncated // in the response is true. Call ListReusableDelegationSets again and specify // the value of ListReusableDelegationSetsResponse$NextMarker in the ListReusableDelegationSetsRequest$Marker // element to get the next page of results. MaxItems *string `type:"string" required:"true"` // Indicates where to continue listing reusable delegation sets. If ListReusableDelegationSetsResponse$IsTruncated // is true, make another request to ListReusableDelegationSets and include the // value of the NextMarker element in the Marker element to get the next page // of results. NextMarker *string `type:"string"` // contains filtered or unexported fields }
A complex type that contains the response for the request.
type ListTagsForResourceInput ¶
type ListTagsForResourceInput struct { // The ID of the resource for which you want to retrieve tags. ResourceID *string `location:"uri" locationName:"ResourceId" type:"string" required:"true"` // The type of the resource. // // - The resource type for health checks is healthcheck. // // - The resource type for hosted zones is hostedzone. ResourceType *string `location:"uri" locationName:"ResourceType" type:"string" required:"true"` // contains filtered or unexported fields }
A complex type containing information about a request for a list of the tags that are associated with an individual resource.
type ListTagsForResourceOutput ¶
type ListTagsForResourceOutput struct { // A ResourceTagSet containing tags associated with the specified resource. ResourceTagSet *ResourceTagSet `type:"structure" required:"true"` // contains filtered or unexported fields }
A complex type containing tags for the specified resource.
type ListTagsForResourcesInput ¶
type ListTagsForResourcesInput struct { // A complex type that contains the ResourceId element for each resource for // which you want to get a list of tags. ResourceIDs []*string `locationName:"ResourceIds" locationNameList:"ResourceId" type:"list" required:"true"` // The type of the resources. // // - The resource type for health checks is healthcheck. // // - The resource type for hosted zones is hostedzone. ResourceType *string `location:"uri" locationName:"ResourceType" type:"string" required:"true"` // contains filtered or unexported fields }
A complex type containing information about a request for a list of the tags that are associated with up to 10 specified resources.
type ListTagsForResourcesOutput ¶
type ListTagsForResourcesOutput struct { // A list of ResourceTagSets containing tags associated with the specified resources. ResourceTagSets []*ResourceTagSet `locationNameList:"ResourceTagSet" type:"list" required:"true"` // contains filtered or unexported fields }
A complex type containing tags for the specified resources.
type ResourceRecord ¶
type ResourceRecord struct { // The value of the Value element for the current resource record set. Value *string `type:"string" required:"true"` // contains filtered or unexported fields }
A complex type that contains the value of the Value element for the current resource record set.
type ResourceRecordSet ¶
type ResourceRecordSet struct { // Alias resource record sets only: Information about the AWS resource to which // you are redirecting traffic. AliasTarget *AliasTarget `type:"structure"` // Failover resource record sets only: Among resource record sets that have // the same combination of DNS name and type, a value that indicates whether // the current resource record set is a primary or secondary resource record // set. A failover set may contain at most one resource record set marked as // primary and one resource record set marked as secondary. A resource record // set marked as primary will be returned if any of the following are true: // (1) an associated health check is passing, (2) if the resource record set // is an alias with the evaluate target health and at least one target resource // record set is healthy, (3) both the primary and secondary resource record // set are failing health checks or (4) there is no secondary resource record // set. A secondary resource record set will be returned if: (1) the primary // is failing a health check and either the secondary is passing a health check // or has no associated health check, or (2) there is no primary resource record // set. // // Valid values: PRIMARY | SECONDARY Failover *string `type:"string"` // Geo location resource record sets only: Among resource record sets that have // the same combination of DNS name and type, a value that specifies the geo // location for the current resource record set. GeoLocation *GeoLocation `type:"structure"` // Health Check resource record sets only, not required for alias resource record // sets: An identifier that is used to identify health check associated with // the resource record set. HealthCheckID *string `locationName:"HealthCheckId" type:"string"` // The domain name of the current resource record set. Name *string `type:"string" required:"true"` // Latency-based resource record sets only: Among resource record sets that // have the same combination of DNS name and type, a value that specifies the // AWS region for the current resource record set. Region *string `type:"string"` // A complex type that contains the resource records for the current resource // record set. ResourceRecords []*ResourceRecord `locationNameList:"ResourceRecord" type:"list"` // Weighted, Latency, Geo, and Failover resource record sets only: An identifier // that differentiates among multiple resource record sets that have the same // combination of DNS name and type. SetIdentifier *string `type:"string"` // The cache time to live for the current resource record set. TTL *int64 `type:"long"` // The type of the current resource record set. Type *string `type:"string" required:"true"` // Weighted resource record sets only: Among resource record sets that have // the same combination of DNS name and type, a value that determines what portion // of traffic for the current resource record set is routed to the associated // location. Weight *int64 `type:"long"` // contains filtered or unexported fields }
A complex type that contains information about the current resource record set.
type ResourceTagSet ¶
type ResourceTagSet struct { // The ID for the specified resource. ResourceID *string `locationName:"ResourceId" type:"string"` // The type of the resource. // // - The resource type for health checks is healthcheck. // // - The resource type for hosted zones is hostedzone. ResourceType *string `type:"string"` // The tags associated with the specified resource. Tags []*Tag `locationNameList:"Tag" type:"list"` // contains filtered or unexported fields }
A complex type containing a resource and its associated tags.
type Route53 ¶
Route53 is a client for Route 53.
func (*Route53) AssociateVPCWithHostedZone ¶
func (c *Route53) AssociateVPCWithHostedZone(input *AssociateVPCWithHostedZoneInput) (*AssociateVPCWithHostedZoneOutput, error)
This action associates a VPC with an hosted zone.
To associate a VPC with an hosted zone, send a POST request to the 2013-04-01/hostedzone/hosted
zone ID/associatevpc resource. The request body must include an XML document with a AssociateVPCWithHostedZoneRequest element. The response returns the AssociateVPCWithHostedZoneResponse element that contains ChangeInfo for you to track the progress of the AssociateVPCWithHostedZoneRequest you made. See GetChange operation for how to track the progress of your change.
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/route53" ) func main() { svc := route53.New(nil) params := &route53.AssociateVPCWithHostedZoneInput{ HostedZoneID: aws.String("ResourceId"), // Required VPC: &route53.VPC{ // Required VPCID: aws.String("VPCId"), VPCRegion: aws.String("VPCRegion"), }, Comment: aws.String("AssociateVPCComment"), } resp, err := svc.AssociateVPCWithHostedZone(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 alwsy 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 (*Route53) AssociateVPCWithHostedZoneRequest ¶
func (c *Route53) AssociateVPCWithHostedZoneRequest(input *AssociateVPCWithHostedZoneInput) (req *aws.Request, output *AssociateVPCWithHostedZoneOutput)
AssociateVPCWithHostedZoneRequest generates a request for the AssociateVPCWithHostedZone operation.
func (*Route53) ChangeResourceRecordSets ¶
func (c *Route53) ChangeResourceRecordSets(input *ChangeResourceRecordSetsInput) (*ChangeResourceRecordSetsOutput, error)
Use this action to create or change your authoritative DNS information. To use this action, send a POST request to the 2013-04-01/hostedzone/hosted Zone ID/rrset resource. The request body must include an XML document with a ChangeResourceRecordSetsRequest element.
Changes are a list of change items and are considered transactional. For more information on transactional changes, also known as change batches, see Creating, Changing, and Deleting Resource Record Sets Using the Route 53 API (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/RRSchanges.html#RRSchanges_API) in the Amazon Route 53 Developer Guide.
Due to the nature of transactional changes, you cannot delete the same resource record set more than once in a single change batch. If you attempt to delete the same change batch more than once, Route 53 returns an InvalidChangeBatch error. In response to a ChangeResourceRecordSets request, your DNS data is changed on all Route 53 DNS servers. Initially, the status of a change is PENDING. This means the change has not yet propagated to all the authoritative Route 53 DNS servers. When the change is propagated to all hosts, the change returns a status of INSYNC.
Note the following limitations on a ChangeResourceRecordSets request:
- A request cannot contain more than 100 Change elements.
- A request cannot contain more than 1000 ResourceRecord elements.
The sum of the number of characters (including spaces) in all Value elements in a request cannot exceed 32,000 characters.
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/route53" ) func main() { svc := route53.New(nil) params := &route53.ChangeResourceRecordSetsInput{ ChangeBatch: &route53.ChangeBatch{ // Required Changes: []*route53.Change{ // Required &route53.Change{ // Required Action: aws.String("ChangeAction"), // Required ResourceRecordSet: &route53.ResourceRecordSet{ // Required Name: aws.String("DNSName"), // Required Type: aws.String("RRType"), // Required AliasTarget: &route53.AliasTarget{ DNSName: aws.String("DNSName"), // Required EvaluateTargetHealth: aws.Boolean(true), // Required HostedZoneID: aws.String("ResourceId"), // Required }, Failover: aws.String("ResourceRecordSetFailover"), GeoLocation: &route53.GeoLocation{ ContinentCode: aws.String("GeoLocationContinentCode"), CountryCode: aws.String("GeoLocationCountryCode"), SubdivisionCode: aws.String("GeoLocationSubdivisionCode"), }, HealthCheckID: aws.String("HealthCheckId"), Region: aws.String("ResourceRecordSetRegion"), ResourceRecords: []*route53.ResourceRecord{ &route53.ResourceRecord{ // Required Value: aws.String("RData"), // Required }, // More values... }, SetIdentifier: aws.String("ResourceRecordSetIdentifier"), TTL: aws.Long(1), Weight: aws.Long(1), }, }, // More values... }, Comment: aws.String("ResourceDescription"), }, HostedZoneID: aws.String("ResourceId"), // Required } resp, err := svc.ChangeResourceRecordSets(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 alwsy 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 (*Route53) ChangeResourceRecordSetsRequest ¶
func (c *Route53) ChangeResourceRecordSetsRequest(input *ChangeResourceRecordSetsInput) (req *aws.Request, output *ChangeResourceRecordSetsOutput)
ChangeResourceRecordSetsRequest generates a request for the ChangeResourceRecordSets operation.
func (*Route53) ChangeTagsForResource ¶
func (c *Route53) ChangeTagsForResource(input *ChangeTagsForResourceInput) (*ChangeTagsForResourceOutput, error)
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/route53" ) func main() { svc := route53.New(nil) params := &route53.ChangeTagsForResourceInput{ ResourceID: aws.String("TagResourceId"), // Required ResourceType: aws.String("TagResourceType"), // Required AddTags: []*route53.Tag{ &route53.Tag{ // Required Key: aws.String("TagKey"), Value: aws.String("TagValue"), }, // More values... }, RemoveTagKeys: []*string{ aws.String("TagKey"), // Required // More values... }, } resp, err := svc.ChangeTagsForResource(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 alwsy 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 (*Route53) ChangeTagsForResourceRequest ¶
func (c *Route53) ChangeTagsForResourceRequest(input *ChangeTagsForResourceInput) (req *aws.Request, output *ChangeTagsForResourceOutput)
ChangeTagsForResourceRequest generates a request for the ChangeTagsForResource operation.
func (*Route53) CreateHealthCheck ¶
func (c *Route53) CreateHealthCheck(input *CreateHealthCheckInput) (*CreateHealthCheckOutput, error)
This action creates a new health check.
To create a new health check, send a POST request to the 2013-04-01/healthcheck
resource. The request body must include an XML document with a CreateHealthCheckRequest element. The response returns the CreateHealthCheckResponse element that contains metadata about the health check.
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/route53" ) func main() { svc := route53.New(nil) params := &route53.CreateHealthCheckInput{ CallerReference: aws.String("HealthCheckNonce"), // Required HealthCheckConfig: &route53.HealthCheckConfig{ // Required Type: aws.String("HealthCheckType"), // Required FailureThreshold: aws.Long(1), FullyQualifiedDomainName: aws.String("FullyQualifiedDomainName"), IPAddress: aws.String("IPAddress"), Port: aws.Long(1), RequestInterval: aws.Long(1), ResourcePath: aws.String("ResourcePath"), SearchString: aws.String("SearchString"), }, } resp, err := svc.CreateHealthCheck(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 alwsy 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 (*Route53) CreateHealthCheckRequest ¶
func (c *Route53) CreateHealthCheckRequest(input *CreateHealthCheckInput) (req *aws.Request, output *CreateHealthCheckOutput)
CreateHealthCheckRequest generates a request for the CreateHealthCheck operation.
func (*Route53) CreateHostedZone ¶
func (c *Route53) CreateHostedZone(input *CreateHostedZoneInput) (*CreateHostedZoneOutput, error)
This action creates a new hosted zone.
To create a new hosted zone, send a POST request to the 2013-04-01/hostedzone resource. The request body must include an XML document with a CreateHostedZoneRequest element. The response returns the CreateHostedZoneResponse element that contains metadata about the hosted zone.
Route 53 automatically creates a default SOA record and four NS records for the zone. The NS records in the hosted zone are the name servers you give your registrar to delegate your domain to. For more information about SOA and NS records, see NS and SOA Records that Route 53 Creates for a Hosted Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/SOA-NSrecords.html) in the Amazon Route 53 Developer Guide.
When you create a zone, its initial status is PENDING. This means that it is not yet available on all DNS servers. The status of the zone changes to INSYNC when the NS and SOA records are available on all Route 53 DNS servers.
When trying to create a hosted zone using a reusable delegation set, you could specify an optional DelegationSetId, and Route53 would assign those 4 NS records for the zone, instead of alloting a new one.
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/route53" ) func main() { svc := route53.New(nil) params := &route53.CreateHostedZoneInput{ CallerReference: aws.String("Nonce"), // Required Name: aws.String("DNSName"), // Required DelegationSetID: aws.String("ResourceId"), HostedZoneConfig: &route53.HostedZoneConfig{ Comment: aws.String("ResourceDescription"), PrivateZone: aws.Boolean(true), }, VPC: &route53.VPC{ VPCID: aws.String("VPCId"), VPCRegion: aws.String("VPCRegion"), }, } resp, err := svc.CreateHostedZone(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 alwsy 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 (*Route53) CreateHostedZoneRequest ¶
func (c *Route53) CreateHostedZoneRequest(input *CreateHostedZoneInput) (req *aws.Request, output *CreateHostedZoneOutput)
CreateHostedZoneRequest generates a request for the CreateHostedZone operation.
func (*Route53) CreateReusableDelegationSet ¶
func (c *Route53) CreateReusableDelegationSet(input *CreateReusableDelegationSetInput) (*CreateReusableDelegationSetOutput, error)
This action creates a reusable delegationSet.
To create a new reusable delegationSet, send a POST request to the 2013-04-01/delegationset
resource. The request body must include an XML document with a CreateReusableDelegationSetRequest element. The response returns the CreateReusableDelegationSetResponse element that contains metadata about the delegationSet.
If the optional parameter HostedZoneId is specified, it marks the delegationSet
associated with that particular hosted zone as reusable.
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/route53" ) func main() { svc := route53.New(nil) params := &route53.CreateReusableDelegationSetInput{ CallerReference: aws.String("Nonce"), // Required HostedZoneID: aws.String("ResourceId"), } resp, err := svc.CreateReusableDelegationSet(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 alwsy 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 (*Route53) CreateReusableDelegationSetRequest ¶
func (c *Route53) CreateReusableDelegationSetRequest(input *CreateReusableDelegationSetInput) (req *aws.Request, output *CreateReusableDelegationSetOutput)
CreateReusableDelegationSetRequest generates a request for the CreateReusableDelegationSet operation.
func (*Route53) DeleteHealthCheck ¶
func (c *Route53) DeleteHealthCheck(input *DeleteHealthCheckInput) (*DeleteHealthCheckOutput, error)
This action deletes a health check. To delete a health check, send a DELETE request to the 2013-04-01/healthcheck/health check ID resource.
You can delete a health check only if there are no resource record sets
associated with this health check. If resource record sets are associated with this health check, you must disassociate them before you can delete your health check. If you try to delete a health check that is associated with resource record sets, Route 53 will deny your request with a HealthCheckInUse error. For information about disassociating the records from your health check, see ChangeResourceRecordSets.
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/route53" ) func main() { svc := route53.New(nil) params := &route53.DeleteHealthCheckInput{ HealthCheckID: aws.String("HealthCheckId"), // Required } resp, err := svc.DeleteHealthCheck(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 alwsy 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 (*Route53) DeleteHealthCheckRequest ¶
func (c *Route53) DeleteHealthCheckRequest(input *DeleteHealthCheckInput) (req *aws.Request, output *DeleteHealthCheckOutput)
DeleteHealthCheckRequest generates a request for the DeleteHealthCheck operation.
func (*Route53) DeleteHostedZone ¶
func (c *Route53) DeleteHostedZone(input *DeleteHostedZoneInput) (*DeleteHostedZoneOutput, error)
This action deletes a hosted zone. To delete a hosted zone, send a DELETE request to the 2013-04-01/hostedzone/hosted zone ID resource.
For more information about deleting a hosted zone, see Deleting a Hosted Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DeleteHostedZone.html) in the Amazon Route 53 Developer Guide.
You can delete a hosted zone only if there are no resource record sets
other than the default SOA record and NS resource record sets. If your hosted zone contains other resource record sets, you must delete them before you can delete your hosted zone. If you try to delete a hosted zone that contains other resource record sets, Route 53 will deny your request with a HostedZoneNotEmpty error. For information about deleting records from your hosted zone, see ChangeResourceRecordSets.
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/route53" ) func main() { svc := route53.New(nil) params := &route53.DeleteHostedZoneInput{ ID: aws.String("ResourceId"), // Required } resp, err := svc.DeleteHostedZone(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 alwsy 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 (*Route53) DeleteHostedZoneRequest ¶
func (c *Route53) DeleteHostedZoneRequest(input *DeleteHostedZoneInput) (req *aws.Request, output *DeleteHostedZoneOutput)
DeleteHostedZoneRequest generates a request for the DeleteHostedZone operation.
func (*Route53) DeleteReusableDelegationSet ¶
func (c *Route53) DeleteReusableDelegationSet(input *DeleteReusableDelegationSetInput) (*DeleteReusableDelegationSetOutput, error)
This action deletes a reusable delegation set. To delete a reusable delegation set, send a DELETE request to the 2013-04-01/delegationset/delegation set ID resource.
You can delete a reusable delegation set only if there are no associated
hosted zones. If your reusable delegation set contains associated hosted zones, you must delete them before you can delete your reusable delegation set. If you try to delete a reusable delegation set that contains associated hosted zones, Route 53 will deny your request with a DelegationSetInUse error.
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/route53" ) func main() { svc := route53.New(nil) params := &route53.DeleteReusableDelegationSetInput{ ID: aws.String("ResourceId"), // Required } resp, err := svc.DeleteReusableDelegationSet(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 alwsy 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 (*Route53) DeleteReusableDelegationSetRequest ¶
func (c *Route53) DeleteReusableDelegationSetRequest(input *DeleteReusableDelegationSetInput) (req *aws.Request, output *DeleteReusableDelegationSetOutput)
DeleteReusableDelegationSetRequest generates a request for the DeleteReusableDelegationSet operation.
func (*Route53) DisassociateVPCFromHostedZone ¶
func (c *Route53) DisassociateVPCFromHostedZone(input *DisassociateVPCFromHostedZoneInput) (*DisassociateVPCFromHostedZoneOutput, error)
This action disassociates a VPC from an hosted zone.
To disassociate a VPC to a hosted zone, send a POST request to the 2013-04-01/hostedzone/hosted
zone ID/disassociatevpc resource. The request body must include an XML document with a DisassociateVPCFromHostedZoneRequest element. The response returns the DisassociateVPCFromHostedZoneResponse element that contains ChangeInfo for you to track the progress of the DisassociateVPCFromHostedZoneRequest you made. See GetChange operation for how to track the progress of your change.
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/route53" ) func main() { svc := route53.New(nil) params := &route53.DisassociateVPCFromHostedZoneInput{ HostedZoneID: aws.String("ResourceId"), // Required VPC: &route53.VPC{ // Required VPCID: aws.String("VPCId"), VPCRegion: aws.String("VPCRegion"), }, Comment: aws.String("DisassociateVPCComment"), } resp, err := svc.DisassociateVPCFromHostedZone(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 alwsy 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 (*Route53) DisassociateVPCFromHostedZoneRequest ¶
func (c *Route53) DisassociateVPCFromHostedZoneRequest(input *DisassociateVPCFromHostedZoneInput) (req *aws.Request, output *DisassociateVPCFromHostedZoneOutput)
DisassociateVPCFromHostedZoneRequest generates a request for the DisassociateVPCFromHostedZone operation.
func (*Route53) GetChange ¶
func (c *Route53) GetChange(input *GetChangeInput) (*GetChangeOutput, error)
This action returns the current status of a change batch request. The status is one of the following values:
- PENDING indicates that the changes in this request have not replicated to all Route 53 DNS servers. This is the initial status of all change batch requests.
- INSYNC indicates that the changes have replicated to all Amazon Route 53 DNS servers.
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/route53" ) func main() { svc := route53.New(nil) params := &route53.GetChangeInput{ ID: aws.String("ResourceId"), // Required } resp, err := svc.GetChange(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 alwsy 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 (*Route53) GetChangeRequest ¶
func (c *Route53) GetChangeRequest(input *GetChangeInput) (req *aws.Request, output *GetChangeOutput)
GetChangeRequest generates a request for the GetChange operation.
func (*Route53) GetCheckerIPRanges ¶
func (c *Route53) GetCheckerIPRanges(input *GetCheckerIPRangesInput) (*GetCheckerIPRangesOutput, error)
To retrieve a list of the IP ranges used by Amazon Route 53 health checkers to check the health of your resources, send a GET request to the 2013-04-01/checkeripranges resource. You can use these IP addresses to configure router and firewall rules to allow health checkers to check the health of your resources.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/route53" ) func main() { svc := route53.New(nil) var params *route53.GetCheckerIPRangesInput resp, err := svc.GetCheckerIPRanges(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 alwsy 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 (*Route53) GetCheckerIPRangesRequest ¶
func (c *Route53) GetCheckerIPRangesRequest(input *GetCheckerIPRangesInput) (req *aws.Request, output *GetCheckerIPRangesOutput)
GetCheckerIPRangesRequest generates a request for the GetCheckerIPRanges operation.
func (*Route53) GetGeoLocation ¶
func (c *Route53) GetGeoLocation(input *GetGeoLocationInput) (*GetGeoLocationOutput, error)
To retrieve a single geo location, send a GET request to the 2013-04-01/geolocation resource with one of these options: continentcode | countrycode | countrycode and subdivisioncode.
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/route53" ) func main() { svc := route53.New(nil) params := &route53.GetGeoLocationInput{ ContinentCode: aws.String("GeoLocationContinentCode"), CountryCode: aws.String("GeoLocationCountryCode"), SubdivisionCode: aws.String("GeoLocationSubdivisionCode"), } resp, err := svc.GetGeoLocation(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 alwsy 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 (*Route53) GetGeoLocationRequest ¶
func (c *Route53) GetGeoLocationRequest(input *GetGeoLocationInput) (req *aws.Request, output *GetGeoLocationOutput)
GetGeoLocationRequest generates a request for the GetGeoLocation operation.
func (*Route53) GetHealthCheck ¶
func (c *Route53) GetHealthCheck(input *GetHealthCheckInput) (*GetHealthCheckOutput, error)
To retrieve the health check, send a GET request to the 2013-04-01/healthcheck/health check ID resource.
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/route53" ) func main() { svc := route53.New(nil) params := &route53.GetHealthCheckInput{ HealthCheckID: aws.String("HealthCheckId"), // Required } resp, err := svc.GetHealthCheck(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 alwsy 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 (*Route53) GetHealthCheckCount ¶
func (c *Route53) GetHealthCheckCount(input *GetHealthCheckCountInput) (*GetHealthCheckCountOutput, error)
To retrieve a count of all your health checks, send a GET request to the 2013-04-01/healthcheckcount resource.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/route53" ) func main() { svc := route53.New(nil) var params *route53.GetHealthCheckCountInput resp, err := svc.GetHealthCheckCount(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 alwsy 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 (*Route53) GetHealthCheckCountRequest ¶
func (c *Route53) GetHealthCheckCountRequest(input *GetHealthCheckCountInput) (req *aws.Request, output *GetHealthCheckCountOutput)
GetHealthCheckCountRequest generates a request for the GetHealthCheckCount operation.
func (*Route53) GetHealthCheckLastFailureReason ¶
func (c *Route53) GetHealthCheckLastFailureReason(input *GetHealthCheckLastFailureReasonInput) (*GetHealthCheckLastFailureReasonOutput, error)
If you want to learn why a health check is currently failing or why it failed most recently (if at all), you can get the failure reason for the most recent failure. Send a GET request to the 2013-04-01/healthcheck/health check ID/lastfailurereason resource.
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/route53" ) func main() { svc := route53.New(nil) params := &route53.GetHealthCheckLastFailureReasonInput{ HealthCheckID: aws.String("HealthCheckId"), // Required } resp, err := svc.GetHealthCheckLastFailureReason(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 alwsy 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 (*Route53) GetHealthCheckLastFailureReasonRequest ¶
func (c *Route53) GetHealthCheckLastFailureReasonRequest(input *GetHealthCheckLastFailureReasonInput) (req *aws.Request, output *GetHealthCheckLastFailureReasonOutput)
GetHealthCheckLastFailureReasonRequest generates a request for the GetHealthCheckLastFailureReason operation.
func (*Route53) GetHealthCheckRequest ¶
func (c *Route53) GetHealthCheckRequest(input *GetHealthCheckInput) (req *aws.Request, output *GetHealthCheckOutput)
GetHealthCheckRequest generates a request for the GetHealthCheck operation.
func (*Route53) GetHealthCheckStatus ¶
func (c *Route53) GetHealthCheckStatus(input *GetHealthCheckStatusInput) (*GetHealthCheckStatusOutput, error)
To retrieve the health check status, send a GET request to the 2013-04-01/healthcheck/health check ID/status resource. You can use this call to get a health check's current status.
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/route53" ) func main() { svc := route53.New(nil) params := &route53.GetHealthCheckStatusInput{ HealthCheckID: aws.String("HealthCheckId"), // Required } resp, err := svc.GetHealthCheckStatus(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 alwsy 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 (*Route53) GetHealthCheckStatusRequest ¶
func (c *Route53) GetHealthCheckStatusRequest(input *GetHealthCheckStatusInput) (req *aws.Request, output *GetHealthCheckStatusOutput)
GetHealthCheckStatusRequest generates a request for the GetHealthCheckStatus operation.
func (*Route53) GetHostedZone ¶
func (c *Route53) GetHostedZone(input *GetHostedZoneInput) (*GetHostedZoneOutput, error)
To retrieve the delegation set for a hosted zone, send a GET request to the 2013-04-01/hostedzone/hosted zone ID resource. The delegation set is the four Route 53 name servers that were assigned to the hosted zone when you created it.
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/route53" ) func main() { svc := route53.New(nil) params := &route53.GetHostedZoneInput{ ID: aws.String("ResourceId"), // Required } resp, err := svc.GetHostedZone(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 alwsy 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 (*Route53) GetHostedZoneCount ¶
func (c *Route53) GetHostedZoneCount(input *GetHostedZoneCountInput) (*GetHostedZoneCountOutput, error)
To retrieve a count of all your hosted zones, send a GET request to the 2013-04-01/hostedzonecount resource.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/route53" ) func main() { svc := route53.New(nil) var params *route53.GetHostedZoneCountInput resp, err := svc.GetHostedZoneCount(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 alwsy 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 (*Route53) GetHostedZoneCountRequest ¶
func (c *Route53) GetHostedZoneCountRequest(input *GetHostedZoneCountInput) (req *aws.Request, output *GetHostedZoneCountOutput)
GetHostedZoneCountRequest generates a request for the GetHostedZoneCount operation.
func (*Route53) GetHostedZoneRequest ¶
func (c *Route53) GetHostedZoneRequest(input *GetHostedZoneInput) (req *aws.Request, output *GetHostedZoneOutput)
GetHostedZoneRequest generates a request for the GetHostedZone operation.
func (*Route53) GetReusableDelegationSet ¶
func (c *Route53) GetReusableDelegationSet(input *GetReusableDelegationSetInput) (*GetReusableDelegationSetOutput, error)
To retrieve the reusable delegation set, send a GET request to the 2013-04-01/delegationset/delegation set ID resource.
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/route53" ) func main() { svc := route53.New(nil) params := &route53.GetReusableDelegationSetInput{ ID: aws.String("ResourceId"), // Required } resp, err := svc.GetReusableDelegationSet(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 alwsy 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 (*Route53) GetReusableDelegationSetRequest ¶
func (c *Route53) GetReusableDelegationSetRequest(input *GetReusableDelegationSetInput) (req *aws.Request, output *GetReusableDelegationSetOutput)
GetReusableDelegationSetRequest generates a request for the GetReusableDelegationSet operation.
func (*Route53) ListGeoLocations ¶
func (c *Route53) ListGeoLocations(input *ListGeoLocationsInput) (*ListGeoLocationsOutput, error)
To retrieve a list of supported geo locations, send a GET request to the 2013-04-01/geolocations resource. The response to this request includes a GeoLocationDetailsList element with zero, one, or multiple GeoLocationDetails child elements. The list is sorted by country code, and then subdivision code, followed by continents at the end of the list.
By default, the list of geo locations is displayed on a single page. You
can control the length of the page that is displayed by using the MaxItems parameter. If the list is truncated, IsTruncated will be set to true and a combination of NextContinentCode, NextCountryCode, NextSubdivisionCode will be populated. You can pass these as parameters to StartContinentCode, StartCountryCode, StartSubdivisionCode to control the geo location that the list begins with.
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/route53" ) func main() { svc := route53.New(nil) params := &route53.ListGeoLocationsInput{ MaxItems: aws.String("PageMaxItems"), StartContinentCode: aws.String("GeoLocationContinentCode"), StartCountryCode: aws.String("GeoLocationCountryCode"), StartSubdivisionCode: aws.String("GeoLocationSubdivisionCode"), } resp, err := svc.ListGeoLocations(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 alwsy 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 (*Route53) ListGeoLocationsRequest ¶
func (c *Route53) ListGeoLocationsRequest(input *ListGeoLocationsInput) (req *aws.Request, output *ListGeoLocationsOutput)
ListGeoLocationsRequest generates a request for the ListGeoLocations operation.
func (*Route53) ListHealthChecks ¶
func (c *Route53) ListHealthChecks(input *ListHealthChecksInput) (*ListHealthChecksOutput, error)
To retrieve a list of your health checks, send a GET request to the 2013-04-01/healthcheck resource. The response to this request includes a HealthChecks element with zero, one, or multiple HealthCheck child elements. By default, the list of health checks is displayed on a single page. You can control the length of the page that is displayed by using the MaxItems parameter. You can use the Marker parameter to control the health check that the list begins with.
Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to
a value greater than 100, Amazon Route 53 returns only the first 100.
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/route53" ) func main() { svc := route53.New(nil) params := &route53.ListHealthChecksInput{ Marker: aws.String("PageMarker"), MaxItems: aws.String("PageMaxItems"), } resp, err := svc.ListHealthChecks(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 alwsy 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 (*Route53) ListHealthChecksPages ¶
func (c *Route53) ListHealthChecksPages(input *ListHealthChecksInput, fn func(p *ListHealthChecksOutput, lastPage bool) (shouldContinue bool)) error
func (*Route53) ListHealthChecksRequest ¶
func (c *Route53) ListHealthChecksRequest(input *ListHealthChecksInput) (req *aws.Request, output *ListHealthChecksOutput)
ListHealthChecksRequest generates a request for the ListHealthChecks operation.
func (*Route53) ListHostedZones ¶
func (c *Route53) ListHostedZones(input *ListHostedZonesInput) (*ListHostedZonesOutput, error)
To retrieve a list of your hosted zones, send a GET request to the 2013-04-01/hostedzone resource. The response to this request includes a HostedZones element with zero, one, or multiple HostedZone child elements. By default, the list of hosted zones is displayed on a single page. You can control the length of the page that is displayed by using the MaxItems parameter. You can use the Marker parameter to control the hosted zone that the list begins with.
Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to
a value greater than 100, Amazon Route 53 returns only the first 100.
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/route53" ) func main() { svc := route53.New(nil) params := &route53.ListHostedZonesInput{ DelegationSetID: aws.String("ResourceId"), Marker: aws.String("PageMarker"), MaxItems: aws.String("PageMaxItems"), } resp, err := svc.ListHostedZones(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 alwsy 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 (*Route53) ListHostedZonesByName ¶
func (c *Route53) ListHostedZonesByName(input *ListHostedZonesByNameInput) (*ListHostedZonesByNameOutput, error)
To retrieve a list of your hosted zones in lexicographic order, send a GET request to the 2013-04-01/hostedzonesbyname resource. The response to this request includes a HostedZones element with zero or more HostedZone child elements lexicographically ordered by DNS name. By default, the list of hosted zones is displayed on a single page. You can control the length of the page that is displayed by using the MaxItems parameter. You can use the DNSName and HostedZoneId parameters to control the hosted zone that the list begins with.
Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to
a value greater than 100, Amazon Route 53 returns only the first 100.
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/route53" ) func main() { svc := route53.New(nil) params := &route53.ListHostedZonesByNameInput{ DNSName: aws.String("DNSName"), HostedZoneID: aws.String("ResourceId"), MaxItems: aws.String("PageMaxItems"), } resp, err := svc.ListHostedZonesByName(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 alwsy 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 (*Route53) ListHostedZonesByNameRequest ¶
func (c *Route53) ListHostedZonesByNameRequest(input *ListHostedZonesByNameInput) (req *aws.Request, output *ListHostedZonesByNameOutput)
ListHostedZonesByNameRequest generates a request for the ListHostedZonesByName operation.
func (*Route53) ListHostedZonesPages ¶
func (c *Route53) ListHostedZonesPages(input *ListHostedZonesInput, fn func(p *ListHostedZonesOutput, lastPage bool) (shouldContinue bool)) error
func (*Route53) ListHostedZonesRequest ¶
func (c *Route53) ListHostedZonesRequest(input *ListHostedZonesInput) (req *aws.Request, output *ListHostedZonesOutput)
ListHostedZonesRequest generates a request for the ListHostedZones operation.
func (*Route53) ListResourceRecordSets ¶
func (c *Route53) ListResourceRecordSets(input *ListResourceRecordSetsInput) (*ListResourceRecordSetsOutput, error)
Imagine all the resource record sets in a zone listed out in front of you. Imagine them sorted lexicographically first by DNS name (with the labels reversed, like "com.amazon.www" for example), and secondarily, lexicographically by record type. This operation retrieves at most MaxItems resource record sets from this list, in order, starting at a position specified by the Name and Type arguments:
If both Name and Type are omitted, this means start the results at the
first RRSET in the HostedZone. If Name is specified but Type is omitted, this means start the results at the first RRSET in the list whose name is greater than or equal to Name. If both Name and Type are specified, this means start the results at the first RRSET in the list whose name is greater than or equal to Name and whose type is greater than or equal to Type. It is an error to specify the Type but not the Name. Use ListResourceRecordSets to retrieve a single known record set by specifying the record set's name and type, and setting MaxItems = 1
To retrieve all the records in a HostedZone, first pause any processes making calls to ChangeResourceRecordSets. Initially call ListResourceRecordSets without a Name and Type to get the first page of record sets. For subsequent calls, set Name and Type to the NextName and NextType values returned by the previous response.
In the presence of concurrent ChangeResourceRecordSets calls, there is no consistency of results across calls to ListResourceRecordSets. The only way to get a consistent multi-page snapshot of all RRSETs in a zone is to stop making changes while pagination is in progress.
However, the results from ListResourceRecordSets are consistent within a page. If MakeChange calls are taking place concurrently, the result of each one will either be completely visible in your results or not at all. You will not see partial changes, or changes that do not ultimately succeed. (This follows from the fact that MakeChange is atomic)
The results from ListResourceRecordSets are strongly consistent with ChangeResourceRecordSets. To be precise, if a single process makes a call to ChangeResourceRecordSets and receives a successful response, the effects of that change will be visible in a subsequent call to ListResourceRecordSets by that process.
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/route53" ) func main() { svc := route53.New(nil) params := &route53.ListResourceRecordSetsInput{ HostedZoneID: aws.String("ResourceId"), // Required MaxItems: aws.String("PageMaxItems"), StartRecordIdentifier: aws.String("ResourceRecordSetIdentifier"), StartRecordName: aws.String("DNSName"), StartRecordType: aws.String("RRType"), } resp, err := svc.ListResourceRecordSets(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 alwsy 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 (*Route53) ListResourceRecordSetsPages ¶
func (c *Route53) ListResourceRecordSetsPages(input *ListResourceRecordSetsInput, fn func(p *ListResourceRecordSetsOutput, lastPage bool) (shouldContinue bool)) error
func (*Route53) ListResourceRecordSetsRequest ¶
func (c *Route53) ListResourceRecordSetsRequest(input *ListResourceRecordSetsInput) (req *aws.Request, output *ListResourceRecordSetsOutput)
ListResourceRecordSetsRequest generates a request for the ListResourceRecordSets operation.
func (*Route53) ListReusableDelegationSets ¶
func (c *Route53) ListReusableDelegationSets(input *ListReusableDelegationSetsInput) (*ListReusableDelegationSetsOutput, error)
To retrieve a list of your reusable delegation sets, send a GET request to the 2013-04-01/delegationset resource. The response to this request includes a DelegationSets element with zero, one, or multiple DelegationSet child elements. By default, the list of delegation sets is displayed on a single page. You can control the length of the page that is displayed by using the MaxItems parameter. You can use the Marker parameter to control the delegation set that the list begins with.
Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to
a value greater than 100, Amazon Route 53 returns only the first 100.
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/route53" ) func main() { svc := route53.New(nil) params := &route53.ListReusableDelegationSetsInput{ Marker: aws.String("PageMarker"), MaxItems: aws.String("PageMaxItems"), } resp, err := svc.ListReusableDelegationSets(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 alwsy 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 (*Route53) ListReusableDelegationSetsRequest ¶
func (c *Route53) ListReusableDelegationSetsRequest(input *ListReusableDelegationSetsInput) (req *aws.Request, output *ListReusableDelegationSetsOutput)
ListReusableDelegationSetsRequest generates a request for the ListReusableDelegationSets operation.
func (*Route53) ListTagsForResource ¶
func (c *Route53) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error)
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/route53" ) func main() { svc := route53.New(nil) params := &route53.ListTagsForResourceInput{ ResourceID: aws.String("TagResourceId"), // Required ResourceType: aws.String("TagResourceType"), // Required } resp, err := svc.ListTagsForResource(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 alwsy 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 (*Route53) ListTagsForResourceRequest ¶
func (c *Route53) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *aws.Request, output *ListTagsForResourceOutput)
ListTagsForResourceRequest generates a request for the ListTagsForResource operation.
func (*Route53) ListTagsForResources ¶
func (c *Route53) ListTagsForResources(input *ListTagsForResourcesInput) (*ListTagsForResourcesOutput, error)
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/route53" ) func main() { svc := route53.New(nil) params := &route53.ListTagsForResourcesInput{ ResourceIDs: []*string{ // Required aws.String("TagResourceId"), // Required // More values... }, ResourceType: aws.String("TagResourceType"), // Required } resp, err := svc.ListTagsForResources(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 alwsy 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 (*Route53) ListTagsForResourcesRequest ¶
func (c *Route53) ListTagsForResourcesRequest(input *ListTagsForResourcesInput) (req *aws.Request, output *ListTagsForResourcesOutput)
ListTagsForResourcesRequest generates a request for the ListTagsForResources operation.
func (*Route53) UpdateHealthCheck ¶
func (c *Route53) UpdateHealthCheck(input *UpdateHealthCheckInput) (*UpdateHealthCheckOutput, error)
This action updates an existing health check.
To update a health check, send a POST request to the 2013-04-01/healthcheck/health
check ID resource. The request body must include an XML document with an UpdateHealthCheckRequest element. The response returns an UpdateHealthCheckResponse element, which contains metadata about the health check.
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/route53" ) func main() { svc := route53.New(nil) params := &route53.UpdateHealthCheckInput{ HealthCheckID: aws.String("HealthCheckId"), // Required FailureThreshold: aws.Long(1), FullyQualifiedDomainName: aws.String("FullyQualifiedDomainName"), HealthCheckVersion: aws.Long(1), IPAddress: aws.String("IPAddress"), Port: aws.Long(1), ResourcePath: aws.String("ResourcePath"), SearchString: aws.String("SearchString"), } resp, err := svc.UpdateHealthCheck(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 alwsy 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 (*Route53) UpdateHealthCheckRequest ¶
func (c *Route53) UpdateHealthCheckRequest(input *UpdateHealthCheckInput) (req *aws.Request, output *UpdateHealthCheckOutput)
UpdateHealthCheckRequest generates a request for the UpdateHealthCheck operation.
func (*Route53) UpdateHostedZoneComment ¶
func (c *Route53) UpdateHostedZoneComment(input *UpdateHostedZoneCommentInput) (*UpdateHostedZoneCommentOutput, error)
To update the hosted zone comment, send a POST request to the 2013-04-01/hostedzone/hosted zone ID resource. The request body must include an XML document with a UpdateHostedZoneCommentRequest element. The response to this request includes the modified HostedZone element.
The comment can have a maximum length of 256 characters.
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/route53" ) func main() { svc := route53.New(nil) params := &route53.UpdateHostedZoneCommentInput{ ID: aws.String("ResourceId"), // Required Comment: aws.String("ResourceDescription"), } resp, err := svc.UpdateHostedZoneComment(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 alwsy 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 (*Route53) UpdateHostedZoneCommentRequest ¶
func (c *Route53) UpdateHostedZoneCommentRequest(input *UpdateHostedZoneCommentInput) (req *aws.Request, output *UpdateHostedZoneCommentOutput)
UpdateHostedZoneCommentRequest generates a request for the UpdateHostedZoneComment operation.
type StatusReport ¶
type StatusReport struct { // The date and time the health check status was observed, in the format YYYY-MM-DDThh:mm:ssZ, // as specified in the ISO 8601 standard (for example, 2009-11-19T19:37:58Z). // The Z after the time indicates that the time is listed in Coordinated Universal // Time (UTC), which is synonymous with Greenwich Mean Time in this context. CheckedTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` // The observed health check status. Status *string `type:"string"` // contains filtered or unexported fields }
A complex type that contains information about the health check status for the current observation.
type Tag ¶
type Tag struct { // The key for a Tag. Key *string `type:"string"` // The value for a Tag. Value *string `type:"string"` // contains filtered or unexported fields }
A single tag containing a key and value.
type UpdateHealthCheckInput ¶
type UpdateHealthCheckInput struct { // The number of consecutive health checks that an endpoint must pass or fail // for Route 53 to change the current status of the endpoint from unhealthy // to healthy or vice versa. // // Valid values are integers between 1 and 10. For more information, see "How // Amazon Route 53 Determines Whether an Endpoint Is Healthy" in the Amazon // Route 53 Developer Guide. // // Specify this value only if you want to change it. FailureThreshold *int64 `type:"integer"` // Fully qualified domain name of the instance to be health checked. // // Specify this value only if you want to change it. FullyQualifiedDomainName *string `type:"string"` // The ID of the health check to update. HealthCheckID *string `location:"uri" locationName:"HealthCheckId" type:"string" required:"true"` // Optional. When you specify a health check version, Route 53 compares this // value with the current value in the health check, which prevents you from // updating the health check when the versions don't match. Using HealthCheckVersion // lets you prevent overwriting another change to the health check. HealthCheckVersion *int64 `type:"long"` // The IP address of the resource that you want to check. // // Specify this value only if you want to change it. IPAddress *string `type:"string"` // The port on which you want Route 53 to open a connection to perform health // checks. // // Specify this value only if you want to change it. Port *int64 `type:"integer"` // The path that you want Amazon Route 53 to request when performing health // checks. The path can be any value for which your endpoint will return an // HTTP status code of 2xx or 3xx when the endpoint is healthy, for example // the file /docs/route53-health-check.html. // // Specify this value only if you want to change it. ResourcePath *string `type:"string"` // If the value of Type is HTTP_STR_MATCH or HTTP_STR_MATCH, the string that // you want Route 53 to search for in the response body from the specified resource. // If the string appears in the response body, Route 53 considers the resource // healthy. // // Specify this value only if you want to change it. SearchString *string `type:"string"` // contains filtered or unexported fields }
>A complex type that contains information about the request to update a health check.
type UpdateHealthCheckOutput ¶
type UpdateHealthCheckOutput struct { // A complex type that contains identifying information about the health check. HealthCheck *HealthCheck `type:"structure" required:"true"` // contains filtered or unexported fields }
type UpdateHostedZoneCommentInput ¶
type UpdateHostedZoneCommentInput struct { // A comment about your hosted zone. Comment *string `type:"string"` // The ID of the hosted zone you want to update. ID *string `location:"uri" locationName:"Id" type:"string" required:"true"` // contains filtered or unexported fields }
A complex type that contains information about the request to update a hosted zone comment.
type UpdateHostedZoneCommentOutput ¶
type UpdateHostedZoneCommentOutput struct { // A complex type that contain information about the specified hosted zone. HostedZone *HostedZone `type:"structure" required:"true"` // contains filtered or unexported fields }
A complex type containing information about the specified hosted zone after the update.
Directories ¶
Path | Synopsis |
---|---|
Package route53iface provides an interface for the Amazon Route 53.
|
Package route53iface provides an interface for the Amazon Route 53. |