AddressRecordTarget
- class aws_cdk.aws_route53.AddressRecordTarget(values=None, alias_target=None)
Bases:
RecordTarget
(deprecated) Target for a DNS A Record.
- Deprecated:
Use RecordTarget
- Stability:
deprecated
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_route53 as route53 # alias_record_target: route53.IAliasRecordTarget address_record_target = route53.AddressRecordTarget.from_alias(alias_record_target)
- Parameters:
values (
Optional
[Sequence
[str
]]) – correspond with the chosen record type (e.g. for ‘A’ Type, specify one or more IP addresses).alias_target (
Optional
[IAliasRecordTarget
]) – alias for targets such as CloudFront distribution to route traffic to.
Attributes
- alias_target
alias for targets such as CloudFront distribution to route traffic to.
- values
correspond with the chosen record type (e.g. for ‘A’ Type, specify one or more IP addresses).
Static Methods
- classmethod from_alias(alias_target)
Use an alias as target.
- Parameters:
alias_target (
IAliasRecordTarget
) –- Return type:
- classmethod from_ip_addresses(*ip_addresses)
Use ip addresses as target.
- Parameters:
ip_addresses (
str
) –- Return type:
- classmethod from_values(*values)
Use string values as target.
- Parameters:
values (
str
) –- Return type: