ElasticBeanstalkEnvironmentEndpointTarget

class aws_cdk.aws_route53_targets.ElasticBeanstalkEnvironmentEndpointTarget(environment_endpoint)

Bases: object

Use an Elastic Beanstalk environment URL as an alias record target. E.g. mysampleenvironment.xyz.us-east-1.elasticbeanstalk.com or mycustomcnameprefix.us-east-1.elasticbeanstalk.com.

Only supports Elastic Beanstalk environments created after 2016 that have a regional endpoint.

ExampleMetadata:

infused

Example:

# zone: route53.HostedZone
# ebs_environment_url: str


route53.ARecord(self, "AliasRecord",
    zone=zone,
    target=route53.RecordTarget.from_alias(targets.ElasticBeanstalkEnvironmentEndpointTarget(ebs_environment_url))
)
Parameters:

environment_endpoint (str) –

Methods

bind(_record, _zone=None)

Return hosted zone ID and DNS name, usable for Route53 alias targets.

Parameters:
Return type:

AliasRecordTargetConfig