@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.676Z") @Stability(value=Stable) public class RecordTarget extends software.amazon.jsii.JsiiObject
Example:
import software.amazon.awscdk.services.apigateway.*;
HostedZone zone;
LambdaRestApi restApi;
ARecord.Builder.create(this, "AliasRecord")
.zone(zone)
.target(RecordTarget.fromAlias(new ApiGateway(restApi)))
.build();
| Modifier | Constructor and Description |
|---|---|
protected |
RecordTarget() |
protected |
RecordTarget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
RecordTarget(software.amazon.jsii.JsiiObjectRef objRef) |
protected |
RecordTarget(List<String> values) |
protected |
RecordTarget(List<String> values,
IAliasRecordTarget aliasTarget) |
| Modifier and Type | Method and Description |
|---|---|
static RecordTarget |
fromAlias(IAliasRecordTarget aliasTarget)
Use an alias as target.
|
static RecordTarget |
fromIpAddresses(String... ipAddresses)
Use ip addresses as target.
|
static RecordTarget |
fromValues(String... values)
Use string values as target.
|
IAliasRecordTarget |
getAliasTarget()
alias for targets such as CloudFront distribution to route traffic to.
|
List<String> |
getValues()
correspond with the chosen record type (e.g.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected RecordTarget(software.amazon.jsii.JsiiObjectRef objRef)
protected RecordTarget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
protected RecordTarget(@Nullable
List<String> values,
@Nullable
IAliasRecordTarget aliasTarget)
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.@Stability(value=Stable)
protected RecordTarget(@Nullable
List<String> values)
values - correspond with the chosen record type (e.g. for 'A' Type, specify one or more IP addresses).@Stability(value=Stable) protected RecordTarget()
@Stability(value=Stable) @NotNull public static RecordTarget fromAlias(@NotNull IAliasRecordTarget aliasTarget)
aliasTarget - This parameter is required.@Stability(value=Stable) @NotNull public static RecordTarget fromIpAddresses(@NotNull String... ipAddresses)
ipAddresses - This parameter is required.@Stability(value=Stable) @NotNull public static RecordTarget fromValues(@NotNull String... values)
values - This parameter is required.@Stability(value=Stable) @Nullable public IAliasRecordTarget getAliasTarget()
Copyright © 2022. All rights reserved.