AddressRecordTarget

class aws_cdk.aws_route53.AddressRecordTarget(values=None, alias_target=None)

Bases: aws_cdk.aws_route53.RecordTarget

Target for a DNS A Record.

deprecated :deprecated: Use RecordTarget

stability :stability: deprecated

__init__(values=None, alias_target=None)
Parameters
  • values (Optional[List[str]]) – correspond with the chosen record type (e.g. for ‘A’ Type, specify one ore more IP addresses).

  • alias_target (Optional[IAliasRecordTarget]) – alias for targets such as CloudFront distribution to route traffic to.

Return type

None

Attributes

alias_target

alias for targets such as CloudFront distribution to route traffic to.

Return type

Optional[IAliasRecordTarget]

values

correspond with the chosen record type (e.g. for ‘A’ Type, specify one ore more IP addresses).

Return type

Optional[List[str]]

Static Methods

classmethod from_alias(alias_target)

Use an alias as target.

Parameters

alias_target (IAliasRecordTarget) –

Return type

RecordTarget

classmethod from_ip_addresses(*ip_addresses)

Use ip addresses as target.

Parameters

ip_addresses (str) –

Return type

RecordTarget

classmethod from_values(*values)

Use string values as target.

Parameters

values (str) –

Return type

RecordTarget