@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.084Z") @Stability(value=Stable) public interface ApiKeyOptions extends software.amazon.jsii.JsiiSerializable, ResourceOptions
Example:
RestApi api;
IApiKey key = api.addApiKey("ApiKey", ApiKeyOptions.builder()
.apiKeyName("myApiKey1")
.value("MyApiKeyThatIsAtLeast20Characters")
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
ApiKeyOptions.Builder
A builder for
ApiKeyOptions |
static class |
ApiKeyOptions.Jsii$Proxy
An implementation for
ApiKeyOptions |
| Modifier and Type | Method and Description |
|---|---|
static ApiKeyOptions.Builder |
builder() |
default String |
getApiKeyName()
A name for the API key.
|
default String |
getDescription()
A description of the purpose of the API key.
|
default String |
getValue()
The value of the API key.
|
getDefaultCorsPreflightOptions, getDefaultIntegration, getDefaultMethodOptions@Stability(value=Stable) @Nullable default String getApiKeyName()
If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the API key name.
Default: automically generated name
@Stability(value=Stable) @Nullable default String getDescription()
Default: none
@Stability(value=Stable) @Nullable default String getValue()
Must be at least 20 characters long.
Default: none
@Stability(value=Stable) static ApiKeyOptions.Builder builder()
builder in interface ResourceOptionsApiKeyOptions.Builder of ApiKeyOptionsCopyright © 2022. All rights reserved.