@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:50.015Z") @Stability(value=Experimental) 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();
SecretStringValueBeta1 secretValue = SecretStringValueBeta1.fromToken(accessKey.secretAccessKey.toString());
Secret.Builder.create(this, "Secret")
.secretStringBeta1(secretValue)
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
AccessKey.Builder
(experimental) 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()
(experimental) The Access Key ID.
|
SecretValue |
getSecretAccessKey()
(experimental) The Secret Access Key.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackgetNodeprotected AccessKey(software.amazon.jsii.JsiiObjectRef objRef)
protected AccessKey(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
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=Experimental) @NotNull public String getAccessKeyId()
getAccessKeyId in interface IAccessKey@Stability(value=Experimental) @NotNull public SecretValue getSecretAccessKey()
getSecretAccessKey in interface IAccessKeyCopyright © 2022. All rights reserved.