We recommend new projects start with resources from the AWS provider.
Viewing docs for AWS Cloud Control v1.78.0
published on Monday, Sep 7, 2026 by Pulumi
published on Monday, Sep 7, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
Viewing docs for AWS Cloud Control v1.78.0
published on Monday, Sep 7, 2026 by Pulumi
published on Monday, Sep 7, 2026 by Pulumi
Resource Type definition for AWS::Route53::RecordSet.
Using getRecordSet
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getRecordSet(args: GetRecordSetArgs, opts?: InvokeOptions): Promise<GetRecordSetResult>
function getRecordSetOutput(args: GetRecordSetOutputArgs, opts?: InvokeOutputOptions): Output<GetRecordSetResult>def get_record_set(hosted_zone_id: Optional[str] = None,
name: Optional[str] = None,
set_identifier: Optional[str] = None,
type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRecordSetResult
def get_record_set_output(hosted_zone_id: pulumi.Input[Optional[str]] = None,
name: pulumi.Input[Optional[str]] = None,
set_identifier: pulumi.Input[Optional[str]] = None,
type: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetRecordSetResult]func LookupRecordSet(ctx *Context, args *LookupRecordSetArgs, opts ...InvokeOption) (*LookupRecordSetResult, error)
func LookupRecordSetOutput(ctx *Context, args *LookupRecordSetOutputArgs, opts ...InvokeOption) LookupRecordSetResultOutput> Note: This function is named LookupRecordSet in the Go SDK.
public static class GetRecordSet
{
public static Task<GetRecordSetResult> InvokeAsync(GetRecordSetArgs args, InvokeOptions? opts = null)
public static Output<GetRecordSetResult> Invoke(GetRecordSetInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetRecordSetResult> Invoke(GetRecordSetInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetRecordSetResult> getRecordSet(GetRecordSetArgs args, InvokeOptions options)
public static Output<GetRecordSetResult> getRecordSet(GetRecordSetArgs args, InvokeOptions options)
public static Output<GetRecordSetResult> getRecordSet(GetRecordSetArgs args, InvokeOutputOptions options)
fn::invoke:
function: aws-native:route53:getRecordSet
arguments:
# arguments dictionarydata "aws-native_route53_get_record_set" "name" {
# arguments
}The following arguments are supported:
- Hosted
Zone stringId - The ID of the hosted zone that you want to create records in.
- Name string
- The name of the record that you want to create, update, or delete.
- Set
Identifier string - An identifier that differentiates among multiple resource record sets that have the same combination of name and type.
- Type string
- The DNS record type.
- Hosted
Zone stringId - The ID of the hosted zone that you want to create records in.
- Name string
- The name of the record that you want to create, update, or delete.
- Set
Identifier string - An identifier that differentiates among multiple resource record sets that have the same combination of name and type.
- Type string
- The DNS record type.
- hosted_
zone_ stringid - The ID of the hosted zone that you want to create records in.
- name string
- The name of the record that you want to create, update, or delete.
- set_
identifier string - An identifier that differentiates among multiple resource record sets that have the same combination of name and type.
- type string
- The DNS record type.
- hosted
Zone StringId - The ID of the hosted zone that you want to create records in.
- name String
- The name of the record that you want to create, update, or delete.
- set
Identifier String - An identifier that differentiates among multiple resource record sets that have the same combination of name and type.
- type String
- The DNS record type.
- hosted
Zone stringId - The ID of the hosted zone that you want to create records in.
- name string
- The name of the record that you want to create, update, or delete.
- set
Identifier string - An identifier that differentiates among multiple resource record sets that have the same combination of name and type.
- type string
- The DNS record type.
- hosted_
zone_ strid - The ID of the hosted zone that you want to create records in.
- name str
- The name of the record that you want to create, update, or delete.
- set_
identifier str - An identifier that differentiates among multiple resource record sets that have the same combination of name and type.
- type str
- The DNS record type.
- hosted
Zone StringId - The ID of the hosted zone that you want to create records in.
- name String
- The name of the record that you want to create, update, or delete.
- set
Identifier String - An identifier that differentiates among multiple resource record sets that have the same combination of name and type.
- type String
- The DNS record type.
getRecordSet Result
The following output properties are available:
- Alias
Target Pulumi.Aws Native. Route53. Outputs. Record Set Alias Target - Alias resource record sets only: Information about the AWS resource, such as a CloudFront distribution or an Amazon S3 bucket, that you want to route traffic to.
- Cidr
Routing Pulumi.Config Aws Native. Route53. Outputs. Record Set Cidr Routing Config - The object that is specified in resource record set object when you are linking a resource record set to a CIDR location.
- Failover
Pulumi.
Aws Native. Route53. Record Set Failover - To configure failover, you add the Failover element to two resource record sets. For one resource record set, you specify PRIMARY as the value for Failover; for the other resource record set, you specify SECONDARY. In addition, you include the HealthCheckId element and specify the health check that you want Amazon Route 53 to perform for each resource record set.
- Geo
Location Pulumi.Aws Native. Route53. Outputs. Record Set Geo Location - A complex type that lets you control how Amazon Route 53 responds to DNS queries based on the geographic origin of the query.
- Health
Check stringId - If you want Amazon Route 53 to return this resource record set in response to a DNS query only when the status of a health check is healthy, include the HealthCheckId element and specify the ID of the applicable health check.
- Multi
Value boolAnswer - To route traffic approximately randomly to multiple resources, such as web servers, create one multivalue answer record for each resource and specify true for MultiValueAnswer.
- Name string
- The name of the record that you want to create, update, or delete.
- Region string
- The Amazon EC2 Region where you created the resource that this resource record set refers to.
- Resource
Records List<string> - One or more values that correspond with the value that you specified for the Type property.
- Set
Identifier string - An identifier that differentiates among multiple resource record sets that have the same combination of name and type.
- Ttl string
- The resource record cache time to live (TTL), in seconds.
- Type string
- The DNS record type.
- Weight int
- Among resource record sets that have the same combination of DNS name and type, a value that determines the proportion of DNS queries that Amazon Route 53 responds to using the current resource record set. Route 53 calculates the sum of the weights for the resource record sets that have the same combination of DNS name and type. Route 53 then responds to queries based on the ratio of a resource's weight to the total.
- Alias
Target RecordSet Alias Target - Alias resource record sets only: Information about the AWS resource, such as a CloudFront distribution or an Amazon S3 bucket, that you want to route traffic to.
- Cidr
Routing RecordConfig Set Cidr Routing Config - The object that is specified in resource record set object when you are linking a resource record set to a CIDR location.
- Failover
Record
Set Failover - To configure failover, you add the Failover element to two resource record sets. For one resource record set, you specify PRIMARY as the value for Failover; for the other resource record set, you specify SECONDARY. In addition, you include the HealthCheckId element and specify the health check that you want Amazon Route 53 to perform for each resource record set.
- Geo
Location RecordSet Geo Location - A complex type that lets you control how Amazon Route 53 responds to DNS queries based on the geographic origin of the query.
- Health
Check stringId - If you want Amazon Route 53 to return this resource record set in response to a DNS query only when the status of a health check is healthy, include the HealthCheckId element and specify the ID of the applicable health check.
- Multi
Value boolAnswer - To route traffic approximately randomly to multiple resources, such as web servers, create one multivalue answer record for each resource and specify true for MultiValueAnswer.
- Name string
- The name of the record that you want to create, update, or delete.
- Region string
- The Amazon EC2 Region where you created the resource that this resource record set refers to.
- Resource
Records []string - One or more values that correspond with the value that you specified for the Type property.
- Set
Identifier string - An identifier that differentiates among multiple resource record sets that have the same combination of name and type.
- Ttl string
- The resource record cache time to live (TTL), in seconds.
- Type string
- The DNS record type.
- Weight int
- Among resource record sets that have the same combination of DNS name and type, a value that determines the proportion of DNS queries that Amazon Route 53 responds to using the current resource record set. Route 53 calculates the sum of the weights for the resource record sets that have the same combination of DNS name and type. Route 53 then responds to queries based on the ratio of a resource's weight to the total.
- alias_
target object - Alias resource record sets only: Information about the AWS resource, such as a CloudFront distribution or an Amazon S3 bucket, that you want to route traffic to.
- cidr_
routing_ objectconfig - The object that is specified in resource record set object when you are linking a resource record set to a CIDR location.
- failover "PRIMARY" | "SECONDARY"
- To configure failover, you add the Failover element to two resource record sets. For one resource record set, you specify PRIMARY as the value for Failover; for the other resource record set, you specify SECONDARY. In addition, you include the HealthCheckId element and specify the health check that you want Amazon Route 53 to perform for each resource record set.
- geo_
location object - A complex type that lets you control how Amazon Route 53 responds to DNS queries based on the geographic origin of the query.
- health_
check_ stringid - If you want Amazon Route 53 to return this resource record set in response to a DNS query only when the status of a health check is healthy, include the HealthCheckId element and specify the ID of the applicable health check.
- multi_
value_ boolanswer - To route traffic approximately randomly to multiple resources, such as web servers, create one multivalue answer record for each resource and specify true for MultiValueAnswer.
- name string
- The name of the record that you want to create, update, or delete.
- region string
- The Amazon EC2 Region where you created the resource that this resource record set refers to.
- resource_
records list(string) - One or more values that correspond with the value that you specified for the Type property.
- set_
identifier string - An identifier that differentiates among multiple resource record sets that have the same combination of name and type.
- ttl string
- The resource record cache time to live (TTL), in seconds.
- type string
- The DNS record type.
- weight number
- Among resource record sets that have the same combination of DNS name and type, a value that determines the proportion of DNS queries that Amazon Route 53 responds to using the current resource record set. Route 53 calculates the sum of the weights for the resource record sets that have the same combination of DNS name and type. Route 53 then responds to queries based on the ratio of a resource's weight to the total.
- alias
Target RecordSet Alias Target - Alias resource record sets only: Information about the AWS resource, such as a CloudFront distribution or an Amazon S3 bucket, that you want to route traffic to.
- cidr
Routing RecordConfig Set Cidr Routing Config - The object that is specified in resource record set object when you are linking a resource record set to a CIDR location.
- failover
Record
Set Failover - To configure failover, you add the Failover element to two resource record sets. For one resource record set, you specify PRIMARY as the value for Failover; for the other resource record set, you specify SECONDARY. In addition, you include the HealthCheckId element and specify the health check that you want Amazon Route 53 to perform for each resource record set.
- geo
Location RecordSet Geo Location - A complex type that lets you control how Amazon Route 53 responds to DNS queries based on the geographic origin of the query.
- health
Check StringId - If you want Amazon Route 53 to return this resource record set in response to a DNS query only when the status of a health check is healthy, include the HealthCheckId element and specify the ID of the applicable health check.
- multi
Value BooleanAnswer - To route traffic approximately randomly to multiple resources, such as web servers, create one multivalue answer record for each resource and specify true for MultiValueAnswer.
- name String
- The name of the record that you want to create, update, or delete.
- region String
- The Amazon EC2 Region where you created the resource that this resource record set refers to.
- resource
Records List<String> - One or more values that correspond with the value that you specified for the Type property.
- set
Identifier String - An identifier that differentiates among multiple resource record sets that have the same combination of name and type.
- ttl String
- The resource record cache time to live (TTL), in seconds.
- type String
- The DNS record type.
- weight Integer
- Among resource record sets that have the same combination of DNS name and type, a value that determines the proportion of DNS queries that Amazon Route 53 responds to using the current resource record set. Route 53 calculates the sum of the weights for the resource record sets that have the same combination of DNS name and type. Route 53 then responds to queries based on the ratio of a resource's weight to the total.
- alias
Target RecordSet Alias Target - Alias resource record sets only: Information about the AWS resource, such as a CloudFront distribution or an Amazon S3 bucket, that you want to route traffic to.
- cidr
Routing RecordConfig Set Cidr Routing Config - The object that is specified in resource record set object when you are linking a resource record set to a CIDR location.
- failover
Record
Set Failover - To configure failover, you add the Failover element to two resource record sets. For one resource record set, you specify PRIMARY as the value for Failover; for the other resource record set, you specify SECONDARY. In addition, you include the HealthCheckId element and specify the health check that you want Amazon Route 53 to perform for each resource record set.
- geo
Location RecordSet Geo Location - A complex type that lets you control how Amazon Route 53 responds to DNS queries based on the geographic origin of the query.
- health
Check stringId - If you want Amazon Route 53 to return this resource record set in response to a DNS query only when the status of a health check is healthy, include the HealthCheckId element and specify the ID of the applicable health check.
- multi
Value booleanAnswer - To route traffic approximately randomly to multiple resources, such as web servers, create one multivalue answer record for each resource and specify true for MultiValueAnswer.
- name string
- The name of the record that you want to create, update, or delete.
- region string
- The Amazon EC2 Region where you created the resource that this resource record set refers to.
- resource
Records string[] - One or more values that correspond with the value that you specified for the Type property.
- set
Identifier string - An identifier that differentiates among multiple resource record sets that have the same combination of name and type.
- ttl string
- The resource record cache time to live (TTL), in seconds.
- type string
- The DNS record type.
- weight number
- Among resource record sets that have the same combination of DNS name and type, a value that determines the proportion of DNS queries that Amazon Route 53 responds to using the current resource record set. Route 53 calculates the sum of the weights for the resource record sets that have the same combination of DNS name and type. Route 53 then responds to queries based on the ratio of a resource's weight to the total.
- alias_
target RecordSet Alias Target - Alias resource record sets only: Information about the AWS resource, such as a CloudFront distribution or an Amazon S3 bucket, that you want to route traffic to.
- cidr_
routing_ Recordconfig Set Cidr Routing Config - The object that is specified in resource record set object when you are linking a resource record set to a CIDR location.
- failover
Record
Set Failover - To configure failover, you add the Failover element to two resource record sets. For one resource record set, you specify PRIMARY as the value for Failover; for the other resource record set, you specify SECONDARY. In addition, you include the HealthCheckId element and specify the health check that you want Amazon Route 53 to perform for each resource record set.
- geo_
location RecordSet Geo Location - A complex type that lets you control how Amazon Route 53 responds to DNS queries based on the geographic origin of the query.
- health_
check_ strid - If you want Amazon Route 53 to return this resource record set in response to a DNS query only when the status of a health check is healthy, include the HealthCheckId element and specify the ID of the applicable health check.
- multi_
value_ boolanswer - To route traffic approximately randomly to multiple resources, such as web servers, create one multivalue answer record for each resource and specify true for MultiValueAnswer.
- name str
- The name of the record that you want to create, update, or delete.
- region str
- The Amazon EC2 Region where you created the resource that this resource record set refers to.
- resource_
records Sequence[str] - One or more values that correspond with the value that you specified for the Type property.
- set_
identifier str - An identifier that differentiates among multiple resource record sets that have the same combination of name and type.
- ttl str
- The resource record cache time to live (TTL), in seconds.
- type str
- The DNS record type.
- weight int
- Among resource record sets that have the same combination of DNS name and type, a value that determines the proportion of DNS queries that Amazon Route 53 responds to using the current resource record set. Route 53 calculates the sum of the weights for the resource record sets that have the same combination of DNS name and type. Route 53 then responds to queries based on the ratio of a resource's weight to the total.
- alias
Target Property Map - Alias resource record sets only: Information about the AWS resource, such as a CloudFront distribution or an Amazon S3 bucket, that you want to route traffic to.
- cidr
Routing Property MapConfig - The object that is specified in resource record set object when you are linking a resource record set to a CIDR location.
- failover "PRIMARY" | "SECONDARY"
- To configure failover, you add the Failover element to two resource record sets. For one resource record set, you specify PRIMARY as the value for Failover; for the other resource record set, you specify SECONDARY. In addition, you include the HealthCheckId element and specify the health check that you want Amazon Route 53 to perform for each resource record set.
- geo
Location Property Map - A complex type that lets you control how Amazon Route 53 responds to DNS queries based on the geographic origin of the query.
- health
Check StringId - If you want Amazon Route 53 to return this resource record set in response to a DNS query only when the status of a health check is healthy, include the HealthCheckId element and specify the ID of the applicable health check.
- multi
Value BooleanAnswer - To route traffic approximately randomly to multiple resources, such as web servers, create one multivalue answer record for each resource and specify true for MultiValueAnswer.
- name String
- The name of the record that you want to create, update, or delete.
- region String
- The Amazon EC2 Region where you created the resource that this resource record set refers to.
- resource
Records List<String> - One or more values that correspond with the value that you specified for the Type property.
- set
Identifier String - An identifier that differentiates among multiple resource record sets that have the same combination of name and type.
- ttl String
- The resource record cache time to live (TTL), in seconds.
- type String
- The DNS record type.
- weight Number
- Among resource record sets that have the same combination of DNS name and type, a value that determines the proportion of DNS queries that Amazon Route 53 responds to using the current resource record set. Route 53 calculates the sum of the weights for the resource record sets that have the same combination of DNS name and type. Route 53 then responds to queries based on the ratio of a resource's weight to the total.
Supporting Types
RecordSetAliasTarget
- Dns
Name string - The value that you specify depends on where you want to route queries.
- Hosted
Zone stringId - The value used depends on where you want to route traffic.
- Evaluate
Target boolHealth - When EvaluateTargetHealth is true, an alias resource record set inherits the health of the referenced AWS resource, such as an ELB load balancer or another resource record set in the hosted zone.
- Dns
Name string - The value that you specify depends on where you want to route queries.
- Hosted
Zone stringId - The value used depends on where you want to route traffic.
- Evaluate
Target boolHealth - When EvaluateTargetHealth is true, an alias resource record set inherits the health of the referenced AWS resource, such as an ELB load balancer or another resource record set in the hosted zone.
- dns_
name string - The value that you specify depends on where you want to route queries.
- hosted_
zone_ stringid - The value used depends on where you want to route traffic.
- evaluate_
target_ boolhealth - When EvaluateTargetHealth is true, an alias resource record set inherits the health of the referenced AWS resource, such as an ELB load balancer or another resource record set in the hosted zone.
- dns
Name String - The value that you specify depends on where you want to route queries.
- hosted
Zone StringId - The value used depends on where you want to route traffic.
- evaluate
Target BooleanHealth - When EvaluateTargetHealth is true, an alias resource record set inherits the health of the referenced AWS resource, such as an ELB load balancer or another resource record set in the hosted zone.
- dns
Name string - The value that you specify depends on where you want to route queries.
- hosted
Zone stringId - The value used depends on where you want to route traffic.
- evaluate
Target booleanHealth - When EvaluateTargetHealth is true, an alias resource record set inherits the health of the referenced AWS resource, such as an ELB load balancer or another resource record set in the hosted zone.
- dns_
name str - The value that you specify depends on where you want to route queries.
- hosted_
zone_ strid - The value used depends on where you want to route traffic.
- evaluate_
target_ boolhealth - When EvaluateTargetHealth is true, an alias resource record set inherits the health of the referenced AWS resource, such as an ELB load balancer or another resource record set in the hosted zone.
- dns
Name String - The value that you specify depends on where you want to route queries.
- hosted
Zone StringId - The value used depends on where you want to route traffic.
- evaluate
Target BooleanHealth - When EvaluateTargetHealth is true, an alias resource record set inherits the health of the referenced AWS resource, such as an ELB load balancer or another resource record set in the hosted zone.
RecordSetCidrRoutingConfig
- Collection
Id string - The CIDR collection ID.
- Location
Name string - The CIDR collection location name.
- Collection
Id string - The CIDR collection ID.
- Location
Name string - The CIDR collection location name.
- collection_
id string - The CIDR collection ID.
- location_
name string - The CIDR collection location name.
- collection
Id String - The CIDR collection ID.
- location
Name String - The CIDR collection location name.
- collection
Id string - The CIDR collection ID.
- location
Name string - The CIDR collection location name.
- collection_
id str - The CIDR collection ID.
- location_
name str - The CIDR collection location name.
- collection
Id String - The CIDR collection ID.
- location
Name String - The CIDR collection location name.
RecordSetFailover
RecordSetGeoLocation
- Continent
Code string - For geolocation resource record sets, a two-letter abbreviation that identifies a continent.
- Country
Code string - For geolocation resource record sets, the two-letter code for a country.
- Subdivision
Code string - For geolocation resource record sets, the two-letter code for a state of the United States.
- Continent
Code string - For geolocation resource record sets, a two-letter abbreviation that identifies a continent.
- Country
Code string - For geolocation resource record sets, the two-letter code for a country.
- Subdivision
Code string - For geolocation resource record sets, the two-letter code for a state of the United States.
- continent_
code string - For geolocation resource record sets, a two-letter abbreviation that identifies a continent.
- country_
code string - For geolocation resource record sets, the two-letter code for a country.
- subdivision_
code string - For geolocation resource record sets, the two-letter code for a state of the United States.
- continent
Code String - For geolocation resource record sets, a two-letter abbreviation that identifies a continent.
- country
Code String - For geolocation resource record sets, the two-letter code for a country.
- subdivision
Code String - For geolocation resource record sets, the two-letter code for a state of the United States.
- continent
Code string - For geolocation resource record sets, a two-letter abbreviation that identifies a continent.
- country
Code string - For geolocation resource record sets, the two-letter code for a country.
- subdivision
Code string - For geolocation resource record sets, the two-letter code for a state of the United States.
- continent_
code str - For geolocation resource record sets, a two-letter abbreviation that identifies a continent.
- country_
code str - For geolocation resource record sets, the two-letter code for a country.
- subdivision_
code str - For geolocation resource record sets, the two-letter code for a state of the United States.
- continent
Code String - For geolocation resource record sets, a two-letter abbreviation that identifies a continent.
- country
Code String - For geolocation resource record sets, the two-letter code for a country.
- subdivision
Code String - For geolocation resource record sets, the two-letter code for a state of the United States.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
Viewing docs for AWS Cloud Control v1.78.0
published on Monday, Sep 7, 2026 by Pulumi
published on Monday, Sep 7, 2026 by Pulumi