@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:00:46.007Z") @Stability(value=Experimental) public class ApiKey extends Resource implements IApiKey
An ApiKey can be distributed to API clients that are executing requests for Method resources that require an Api Key.
| Modifier and Type | Class and Description |
|---|---|
static class |
ApiKey.Builder
(experimental) A fluent builder for
ApiKey. |
software.amazon.jsii.JsiiObject.InitializationModeIApiKey.Jsii$Default, IApiKey.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
ApiKey(software.constructs.Construct scope,
String id) |
|
ApiKey(software.constructs.Construct scope,
String id,
ApiKeyProps props) |
protected |
ApiKey(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ApiKey(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static IApiKey |
fromApiKeyId(software.constructs.Construct scope,
String id,
String apiKeyId)
(experimental) Import an ApiKey by its Id.
|
String |
getKeyArn()
(experimental) The API key ARN.
|
String |
getKeyId()
(experimental) The API key ID.
|
Grant |
grantRead(IGrantable grantee)
(experimental) Permits the IAM principal all read operations through this key.
|
Grant |
grantReadWrite(IGrantable grantee)
(experimental) Permits the IAM principal all read and write operations through this key.
|
Grant |
grantWrite(IGrantable grantee)
(experimental) Permits the IAM principal all write operations through this key.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected ApiKey(software.amazon.jsii.JsiiObjectRef objRef)
protected ApiKey(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public ApiKey(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
ApiKeyProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Experimental)
public ApiKey(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Experimental) @NotNull public static IApiKey fromApiKeyId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String apiKeyId)
scope - This parameter is required.id - This parameter is required.apiKeyId - This parameter is required.@Stability(value=Experimental) @NotNull public Grant grantRead(@NotNull IGrantable grantee)
grantee - The principal to grant access to. This parameter is required.@Stability(value=Experimental) @NotNull public Grant grantReadWrite(@NotNull IGrantable grantee)
grantee - The principal to grant access to. This parameter is required.@Stability(value=Experimental) @NotNull public Grant grantWrite(@NotNull IGrantable grantee)
grantee - The principal to grant access to. This parameter is required.@Stability(value=Experimental) @NotNull public String getKeyArn()
Copyright © 2021. All rights reserved.