@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.712Z") @Stability(value=Stable) public class AccessKey extends Resource implements IAccessKey
Example:
// Creates a new IAM user, access and secret keys, and stores the secret access key in a Secret.
User user = new User(this, "User");
AccessKey accessKey = AccessKey.Builder.create(this, "AccessKey").user(user).build();
Secret secret = Secret.Builder.create(this, "Secret")
.secretStringValue(accessKey.getSecretAccessKey())
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
AccessKey.Builder
A fluent builder for
AccessKey. |
software.amazon.jsii.JsiiObject.InitializationModeIAccessKey.Jsii$Default, IAccessKey.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
AccessKey(software.constructs.Construct scope,
String id,
AccessKeyProps props) |
protected |
AccessKey(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
AccessKey(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessKeyId()
The Access Key ID.
|
SecretValue |
getSecretAccessKey()
The Secret Access Key.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackprotected AccessKey(software.amazon.jsii.JsiiObjectRef objRef)
protected AccessKey(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public AccessKey(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
AccessKeyProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public String getAccessKeyId()
getAccessKeyId in interface IAccessKey@Stability(value=Stable) @NotNull public SecretValue getSecretAccessKey()
getSecretAccessKey in interface IAccessKeyCopyright © 2022. All rights reserved.