Class ApiKey
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.location.alpha.ApiKey
- All Implemented Interfaces:
IEnvironmentAware,IResource,IApiKey,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:40:18.311Z")
@Stability(Experimental)
public class ApiKey
extends Resource
implements IApiKey
(experimental) An API Key.
Example:
ApiKey.Builder.create(this, "APIKeyAny")
// specify allowed actions
.allowMapsActions(List.of(AllowMapsAction.GET_STATIC_MAP))
.allowPlacesActions(List.of(AllowPlacesAction.GET_PLACE))
.allowRoutesActions(List.of(AllowRoutesAction.CALCULATE_ISOLINES))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.location.alpha.IApiKey
IApiKey.Jsii$Default, IApiKey.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String(experimental) Uniquely identifies this class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedApiKey(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedApiKey(software.amazon.jsii.JsiiObjectRef objRef) ApiKey(software.constructs.Construct scope, String id, ApiKeyProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IApiKeyfromApiKeyArn(software.constructs.Construct scope, String id, String apiKeyArn) (experimental) Use an existing api key by ARN.static IApiKeyfromApiKeyName(software.constructs.Construct scope, String id, String apiKeyName) (experimental) Use an existing api key by name.(experimental) The Amazon Resource Name (ARN) of the api key resource.(experimental) The timestamp for when the api key resource was created in ISO 8601 format.(experimental) The name of the api key.(experimental) The timestamp for when the api key resource was last updated in ISO 8601 format.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
-
-
Constructor Details
-
ApiKey
protected ApiKey(software.amazon.jsii.JsiiObjectRef objRef) -
ApiKey
protected ApiKey(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
ApiKey
@Stability(Experimental) public ApiKey(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable ApiKeyProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
ApiKey
@Stability(Experimental) public ApiKey(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Details
-
fromApiKeyArn
@Stability(Experimental) @NotNull public static IApiKey fromApiKeyArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String apiKeyArn) (experimental) Use an existing api key by ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.apiKeyArn- This parameter is required.
-
fromApiKeyName
@Stability(Experimental) @NotNull public static IApiKey fromApiKeyName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String apiKeyName) (experimental) Use an existing api key by name.- Parameters:
scope- This parameter is required.id- This parameter is required.apiKeyName- This parameter is required.
-
getApiKeyArn
(experimental) The Amazon Resource Name (ARN) of the api key resource.- Specified by:
getApiKeyArnin interfaceIApiKey
-
getApiKeyCreateTime
(experimental) The timestamp for when the api key resource was created in ISO 8601 format. -
getApiKeyName
(experimental) The name of the api key.- Specified by:
getApiKeyNamein interfaceIApiKey
-
getApiKeyUpdateTime
(experimental) The timestamp for when the api key resource was last updated in ISO 8601 format.
-