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.104.0 (build e79254c)",
date="2024-12-27T17:02:09.222Z")
@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.cloudfront.*; HostedZone myZone; CloudFrontWebDistribution distribution; AaaaRecord.Builder.create(this, "Alias") .zone(myZone) .target(RecordTarget.fromAlias(new CloudFrontTarget(distribution))) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
RecordTarget
(List<String> values) protected
RecordTarget
(List<String> values, IAliasRecordTarget aliasTarget) protected
RecordTarget
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
RecordTarget
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic RecordTarget
fromAlias
(IAliasRecordTarget aliasTarget) Use an alias as target.static RecordTarget
fromIpAddresses
(@NotNull String... ipAddresses) Use ip addresses as target.static RecordTarget
fromValues
(@NotNull 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, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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 @NotNull String... ipAddresses) Use ip addresses as target.- Parameters:
ipAddresses
- This parameter is required.
-
fromValues
@Stability(Stable) @NotNull public static RecordTarget fromValues(@NotNull @NotNull String... values) 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).
-