@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:36.536Z") 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
A fluent builder for
AccessKey . |
IAccessKey.Jsii$Default, IAccessKey.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
AccessKey(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
AccessKey(software.amazon.jsii.JsiiObjectRef objRef) |
|
AccessKey(software.constructs.Construct scope,
java.lang.String id,
AccessKeyProps props) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAccessKeyId()
The Access Key ID.
|
SecretValue |
getSecretAccessKey()
The Secret Access Key.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected AccessKey(software.amazon.jsii.JsiiObjectRef objRef)
protected AccessKey(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public AccessKey(software.constructs.Construct scope, java.lang.String id, AccessKeyProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public java.lang.String getAccessKeyId()
getAccessKeyId
in interface IAccessKey
public SecretValue getSecretAccessKey()
getSecretAccessKey
in interface IAccessKey