@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.713Z") @Stability(value=Stable) public interface AccessKeyProps extends software.amazon.jsii.JsiiSerializable
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 | Interface and Description |
|---|---|
static class |
AccessKeyProps.Builder
A builder for
AccessKeyProps |
static class |
AccessKeyProps.Jsii$Proxy
An implementation for
AccessKeyProps |
| Modifier and Type | Method and Description |
|---|---|
static AccessKeyProps.Builder |
builder() |
default Number |
getSerial()
A CloudFormation-specific value that signifies the access key should be replaced/rotated.
|
default AccessKeyStatus |
getStatus()
The status of the access key.
|
IUser |
getUser()
The IAM user this key will belong to.
|
@Stability(value=Stable) @NotNull IUser getUser()
Changing this value will result in the access key being deleted and a new access key (with a different ID and secret value) being assigned to the new user.
@Stability(value=Stable) @Nullable default Number getSerial()
This value can only be incremented. Incrementing this value will cause CloudFormation to replace the Access Key resource.
Default: - No serial value
@Stability(value=Stable) @Nullable default AccessKeyStatus getStatus()
An Active access key is allowed to be used to make API calls; An Inactive key cannot.
Default: - The access key is active
@Stability(value=Stable) static AccessKeyProps.Builder builder()
AccessKeyProps.Builder of AccessKeyPropsCopyright © 2022. All rights reserved.