public static interface CreateKeyRequest.Builder extends LocationRequest.Builder, SdkPojo, CopyableBuilder<CreateKeyRequest.Builder,CreateKeyRequest>
| Modifier and Type | Method and Description |
|---|---|
CreateKeyRequest.Builder |
description(String description)
An optional description for the API key resource.
|
CreateKeyRequest.Builder |
expireTime(Instant expireTime)
The optional timestamp for when the API key resource will expire in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ. |
CreateKeyRequest.Builder |
keyName(String keyName)
A custom name for the API key resource.
|
CreateKeyRequest.Builder |
noExpiry(Boolean noExpiry)
Optionally set to
true to set no expiration time for the API key. |
CreateKeyRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
CreateKeyRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
CreateKeyRequest.Builder |
restrictions(ApiKeyRestrictions restrictions)
The API key restrictions for the API key resource.
|
default CreateKeyRequest.Builder |
restrictions(Consumer<ApiKeyRestrictions.Builder> restrictions)
The API key restrictions for the API key resource.
|
CreateKeyRequest.Builder |
tags(Map<String,String> tags)
Applies one or more tags to the map resource.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildCreateKeyRequest.Builder description(String description)
An optional description for the API key resource.
description - An optional description for the API key resource.CreateKeyRequest.Builder expireTime(Instant expireTime)
The optional timestamp for when the API key resource will expire in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ. One of NoExpiry or ExpireTime must be set.
expireTime - The optional timestamp for when the API key resource will expire in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ. One of NoExpiry or ExpireTime must be
set.CreateKeyRequest.Builder keyName(String keyName)
A custom name for the API key resource.
Requirements:
Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_).
Must be a unique API key name.
No spaces allowed. For example, ExampleAPIKey.
keyName - A custom name for the API key resource.
Requirements:
Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_).
Must be a unique API key name.
No spaces allowed. For example, ExampleAPIKey.
CreateKeyRequest.Builder noExpiry(Boolean noExpiry)
Optionally set to true to set no expiration time for the API key. One of NoExpiry
or ExpireTime must be set.
noExpiry - Optionally set to true to set no expiration time for the API key. One of
NoExpiry or ExpireTime must be set.CreateKeyRequest.Builder restrictions(ApiKeyRestrictions restrictions)
The API key restrictions for the API key resource.
restrictions - The API key restrictions for the API key resource.default CreateKeyRequest.Builder restrictions(Consumer<ApiKeyRestrictions.Builder> restrictions)
The API key restrictions for the API key resource.
This is a convenience method that creates an instance of theApiKeyRestrictions.Builder avoiding the
need to create one manually via ApiKeyRestrictions.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to restrictions(ApiKeyRestrictions).
restrictions - a consumer that will call methods on ApiKeyRestrictions.Builderrestrictions(ApiKeyRestrictions)CreateKeyRequest.Builder tags(Map<String,String> tags)
Applies one or more tags to the map resource. A tag is a key-value pair that helps manage, identify, search, and filter your resources by labelling them.
Format: "key" : "value"
Restrictions:
Maximum 50 tags per resource
Each resource tag must be unique with a maximum of one value.
Maximum key length: 128 Unicode characters in UTF-8
Maximum value length: 256 Unicode characters in UTF-8
Can use alphanumeric characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : / @.
Cannot use "aws:" as a prefix for a key.
tags - Applies one or more tags to the map resource. A tag is a key-value pair that helps manage, identify,
search, and filter your resources by labelling them.
Format: "key" : "value"
Restrictions:
Maximum 50 tags per resource
Each resource tag must be unique with a maximum of one value.
Maximum key length: 128 Unicode characters in UTF-8
Maximum value length: 256 Unicode characters in UTF-8
Can use alphanumeric characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : / @.
Cannot use "aws:" as a prefix for a key.
CreateKeyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderCreateKeyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.