Class CfnAPIKey
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.location.CfnAPIKey
- All Implemented Interfaces:
IInspectable
,ITaggableV2
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-05T03:43:45.853Z")
@Stability(Stable)
public class CfnAPIKey
extends CfnResource
implements IInspectable, ITaggableV2
The API key resource in your AWS account, which lets you grant actions for Amazon Location resources to the API key bearer.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.location.*; CfnAPIKey cfnAPIKey = CfnAPIKey.Builder.create(this, "MyCfnAPIKey") .keyName("keyName") .restrictions(ApiKeyRestrictionsProperty.builder() .allowActions(List.of("allowActions")) .allowResources(List.of("allowResources")) // the properties below are optional .allowReferers(List.of("allowReferers")) .build()) // the properties below are optional .description("description") .expireTime("expireTime") .forceDelete(false) .forceUpdate(false) .noExpiry(false) .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
API Restrictions on the allowed actions, resources, and referers for an API key resource.static final class
A fluent builder forCfnAPIKey
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnAPIKey
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnAPIKey
(software.amazon.jsii.JsiiObjectRef objRef) CfnAPIKey
(software.constructs.Construct scope, String id, CfnAPIKeyProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) for the resource.The timestamp for when the API key resource was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.The Amazon Resource Name (ARN) for the API key resource.The timestamp for when the API key resource was last updated in ISO 8601 format:YYYY-MM-DDThh:mm:ss.sssZ
.Tag Manager which manages the tags for this resource.Updates the description for the API key resource.The optional timestamp for when the API key resource will expire in ISO 8601 format .ForceDelete bypasses an API key's expiry conditions and deletes the key.The boolean flag to be included for updatingExpireTime
or Restrictions details.A custom name for the API key resource.Whether the API key should expire.The API key restrictions for the API key resource.getTags()
Applies one or more tags to the map resource.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setDescription
(String value) Updates the description for the API key resource.void
setExpireTime
(String value) The optional timestamp for when the API key resource will expire in ISO 8601 format .void
setForceDelete
(Boolean value) ForceDelete bypasses an API key's expiry conditions and deletes the key.void
setForceDelete
(IResolvable value) ForceDelete bypasses an API key's expiry conditions and deletes the key.void
setForceUpdate
(Boolean value) The boolean flag to be included for updatingExpireTime
or Restrictions details.void
setForceUpdate
(IResolvable value) The boolean flag to be included for updatingExpireTime
or Restrictions details.void
setKeyName
(String value) A custom name for the API key resource.void
setNoExpiry
(Boolean value) Whether the API key should expire.void
setNoExpiry
(IResolvable value) Whether the API key should expire.void
setRestrictions
(IResolvable value) The API key restrictions for the API key resource.void
The API key restrictions for the API key resource.void
Applies one or more tags to the map resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnAPIKey
protected CfnAPIKey(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAPIKey
protected CfnAPIKey(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAPIKey
@Stability(Stable) public CfnAPIKey(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnAPIKeyProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) for the resource.Used when you need to specify a resource across all AWS .
-
getAttrCreateTime
The timestamp for when the API key resource was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ. -
getAttrKeyArn
The Amazon Resource Name (ARN) for the API key resource.Used when you need to specify a resource across all AWS .
-
getAttrUpdateTime
The timestamp for when the API key resource was last updated in ISO 8601 format:YYYY-MM-DDThh:mm:ss.sssZ
. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManager
in interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getKeyName
A custom name for the API key resource. -
setKeyName
A custom name for the API key resource. -
getRestrictions
The API key restrictions for the API key resource. -
setRestrictions
The API key restrictions for the API key resource. -
setRestrictions
The API key restrictions for the API key resource. -
getDescription
Updates the description for the API key resource. -
setDescription
Updates the description for the API key resource. -
getExpireTime
The optional timestamp for when the API key resource will expire in ISO 8601 format . -
setExpireTime
The optional timestamp for when the API key resource will expire in ISO 8601 format . -
getForceDelete
ForceDelete bypasses an API key's expiry conditions and deletes the key. -
setForceDelete
ForceDelete bypasses an API key's expiry conditions and deletes the key. -
setForceDelete
ForceDelete bypasses an API key's expiry conditions and deletes the key. -
getForceUpdate
The boolean flag to be included for updatingExpireTime
or Restrictions details. -
setForceUpdate
The boolean flag to be included for updatingExpireTime
or Restrictions details. -
setForceUpdate
The boolean flag to be included for updatingExpireTime
or Restrictions details. -
getNoExpiry
Whether the API key should expire. -
setNoExpiry
Whether the API key should expire. -
setNoExpiry
Whether the API key should expire. -
getTags
Applies one or more tags to the map resource. -
setTags
Applies one or more tags to the map resource.
-