class ElasticBeanstalkEnvironmentEndpointTarget
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Route53.Targets.ElasticBeanstalkEnvironmentEndpointTarget |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsroute53targets#ElasticBeanstalkEnvironmentEndpointTarget |
Java | software.amazon.awscdk.services.route53.targets.ElasticBeanstalkEnvironmentEndpointTarget |
Python | aws_cdk.aws_route53_targets.ElasticBeanstalkEnvironmentEndpointTarget |
TypeScript (source) | aws-cdk-lib » aws_route53_targets » ElasticBeanstalkEnvironmentEndpointTarget |
Implements
IAlias
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
Name | Description |
---|---|
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
IRecord
Set - _zone
IHosted
Zone
Returns
Return hosted zone ID and DNS name, usable for Route53 alias targets.