@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-22T00:23:08.200Z") @Stability(value=Stable) public class Names extends software.amazon.jsii.JsiiObject
Modifier | Constructor and Description |
---|---|
protected |
Names(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Names(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
static String |
toDnsLabel(software.constructs.Construct scope)
Generates a unique and stable name compatible DNS_LABEL from RFC-1123 from a path.
|
static String |
toDnsLabel(software.constructs.Construct scope,
NameOptions options)
Generates a unique and stable name compatible DNS_LABEL from RFC-1123 from a path.
|
static String |
toLabelValue(software.constructs.Construct scope)
Generates a unique and stable name compatible label key name segment and label value from a path.
|
static String |
toLabelValue(software.constructs.Construct scope,
NameOptions options)
Generates a unique and stable name compatible label key name segment and label value from a path.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
protected Names(software.amazon.jsii.JsiiObjectRef objRef)
protected Names(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) @NotNull public static String toDnsLabel(@NotNull software.constructs.Construct scope, @Nullable NameOptions options)
The generated name will:
The generated name will have the form:
Where
Note that if the total length is longer than 63 characters, we will trim
the first components since the last components usually encode more meaning.
scope
- The construct for which to render the DNS label. This parameter is required.options
- Name options.@Stability(value=Stable) @NotNull public static String toDnsLabel(@NotNull software.constructs.Construct scope)
The generated name will:
The generated name will have the form:
Where
Note that if the total length is longer than 63 characters, we will trim
the first components since the last components usually encode more meaning.
scope
- The construct for which to render the DNS label. This parameter is required.@Stability(value=Stable) @NotNull public static String toLabelValue(@NotNull software.constructs.Construct scope, @Nullable NameOptions options)
The name segment is required and must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between.
Valid label values must be 63 characters or less and must be empty or begin and end with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between.
The generated name will have the form:
Where
Note that if the total length is longer than 63 characters, we will trim
the first components since the last components usually encode more meaning.
scope
- The construct for which to render the DNS label. This parameter is required.options
- Name options.@Stability(value=Stable) @NotNull public static String toLabelValue(@NotNull software.constructs.Construct scope)
The name segment is required and must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between.
Valid label values must be 63 characters or less and must be empty or begin and end with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between.
The generated name will have the form:
Where
Note that if the total length is longer than 63 characters, we will trim
the first components since the last components usually encode more meaning.
scope
- The construct for which to render the DNS label. This parameter is required.Copyright © 2021. All rights reserved.