aws-cdk-lib.aws_route53_targets.ElasticBeanstalkEnvironmentEndpointTarget

class ElasticBeanstalkEnvironmentEndpointTarget

LanguageType name
.NETAmazon.CDK.AWS.Route53.Targets.ElasticBeanstalkEnvironmentEndpointTarget
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsroute53targets#ElasticBeanstalkEnvironmentEndpointTarget
Javasoftware.amazon.awscdk.services.route53.targets.ElasticBeanstalkEnvironmentEndpointTarget
Pythonaws_cdk.aws_route53_targets.ElasticBeanstalkEnvironmentEndpointTarget
TypeScript (source)aws-cdk-lib » aws_route53_targets » ElasticBeanstalkEnvironmentEndpointTarget

Implements IAliasRecordTarget

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.

Example

declare const zone: route53.HostedZone;
declare const ebsEnvironmentUrl: string;

new route53.ARecord(this, 'AliasRecord', {
  zone,
  target: route53.RecordTarget.fromAlias(new targets.ElasticBeanstalkEnvironmentEndpointTarget(ebsEnvironmentUrl)),
});

Initializer

new ElasticBeanstalkEnvironmentEndpointTarget(environmentEndpoint: string)

Parameters

  • environmentEndpoint string

Methods

NameDescription
bind(_record, _zone?)Return hosted zone ID and DNS name, usable for Route53 alias targets.

bind(_record, _zone?)

public bind(_record: IRecordSet, _zone?: IHostedZone): AliasRecordTargetConfig

Parameters

  • _record IRecordSet
  • _zone IHostedZone

Returns

  • AliasRecordTargetConfig

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