software.amazon.awscdk.services.route53.targets.ApiGatewayv2DomainProperties Maven / Gradle / Ivy
Show all versions of route53-targets Show documentation
package software.amazon.awscdk.services.route53.targets;
/**
* Defines an API Gateway V2 domain name as the alias target.
*
* Example:
*
*
* import software.amazon.awscdk.services.apigatewayv2.*;
* HostedZone zone;
* DomainName domainName;
* ARecord.Builder.create(this, "AliasRecord")
* .zone(zone)
* .target(RecordTarget.fromAlias(new ApiGatewayv2DomainProperties(domainName.getRegionalDomainName(), domainName.getRegionalHostedZoneId())))
* .build();
*
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.71.0 (build f1f58ae)", date = "2022-11-18T02:14:15.630Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.route53.targets.$Module.class, fqn = "@aws-cdk/aws-route53-targets.ApiGatewayv2DomainProperties")
public class ApiGatewayv2DomainProperties extends software.amazon.jsii.JsiiObject implements software.amazon.awscdk.services.route53.IAliasRecordTarget {
protected ApiGatewayv2DomainProperties(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected ApiGatewayv2DomainProperties(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* @param regionalDomainName the domain name associated with the regional endpoint for this custom domain name. This parameter is required.
* @param regionalHostedZoneId the region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public ApiGatewayv2DomainProperties(final @org.jetbrains.annotations.NotNull java.lang.String regionalDomainName, final @org.jetbrains.annotations.NotNull java.lang.String regionalHostedZoneId) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(regionalDomainName, "regionalDomainName is required"), java.util.Objects.requireNonNull(regionalHostedZoneId, "regionalHostedZoneId is required") });
}
/**
* Return hosted zone ID and DNS name, usable for Route53 alias targets.
*
* @param _record This parameter is required.
* @param _zone
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.route53.AliasRecordTargetConfig bind(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.route53.IRecordSet _record, final @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.route53.IHostedZone _zone) {
return software.amazon.jsii.Kernel.call(this, "bind", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.route53.AliasRecordTargetConfig.class), new Object[] { java.util.Objects.requireNonNull(_record, "_record is required"), _zone });
}
/**
* Return hosted zone ID and DNS name, usable for Route53 alias targets.
*
* @param _record This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.route53.AliasRecordTargetConfig bind(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.route53.IRecordSet _record) {
return software.amazon.jsii.Kernel.call(this, "bind", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.route53.AliasRecordTargetConfig.class), new Object[] { java.util.Objects.requireNonNull(_record, "_record is required") });
}
}