Class RecordTarget
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.route53.RecordTarget
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:44.298Z")
@Stability(Stable)
public class RecordTarget
extends software.amazon.jsii.JsiiObject
Type union for a record that accepts multiple types of 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();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedRecordTarget(List<String> values) protectedRecordTarget(List<String> values, IAliasRecordTarget aliasTarget) protectedRecordTarget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedRecordTarget(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic RecordTargetfromAlias(IAliasRecordTarget aliasTarget) Use an alias as target.static RecordTargetfromIpAddresses(String... ipAddresses) Use ip addresses as target.static RecordTargetfromValues(String... values) Use string values as target.alias for targets such as CloudFront distribution to route traffic to.correspond with the chosen record type (e.g.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
RecordTarget
protected RecordTarget(software.amazon.jsii.JsiiObjectRef objRef) -
RecordTarget
protected RecordTarget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
RecordTarget
@Stability(Stable) protected RecordTarget(@Nullable List<String> values, @Nullable IAliasRecordTarget aliasTarget) - Parameters:
values- correspond with the chosen record type (e.g. for 'A' Type, specify one or more IP addresses).aliasTarget- alias for targets such as CloudFront distribution to route traffic to.
-
RecordTarget
- Parameters:
values- correspond with the chosen record type (e.g. for 'A' Type, specify one or more IP addresses).
-
RecordTarget
@Stability(Stable) protected RecordTarget()
-
-
Method Details
-
fromAlias
@Stability(Stable) @NotNull public static RecordTarget fromAlias(@NotNull IAliasRecordTarget aliasTarget) Use an alias as target.- Parameters:
aliasTarget- This parameter is required.
-
fromIpAddresses
@Stability(Stable) @NotNull public static RecordTarget fromIpAddresses(@NotNull String... ipAddresses) Use ip addresses as target.- Parameters:
ipAddresses- This parameter is required.
-
fromValues
Use string values as target.- Parameters:
values- This parameter is required.
-
getAliasTarget
alias for targets such as CloudFront distribution to route traffic to. -
getValues
correspond with the chosen record type (e.g. for 'A' Type, specify one or more IP addresses).
-