Class AccessKey.Builder
java.lang.Object
software.amazon.awscdk.services.iam.AccessKey.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AccessKey>
- Enclosing class:
AccessKey
@Stability(Stable)
public static final class AccessKey.Builder
extends Object
implements software.amazon.jsii.Builder<AccessKey>
A fluent builder for
AccessKey
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static AccessKey.Builder
A CloudFormation-specific value that signifies the access key should be replaced/rotated.status
(AccessKeyStatus status) The status of the access key.The IAM user this key will belong to.
-
Method Details
-
create
@Stability(Stable) public static AccessKey.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
AccessKey.Builder
.
-
user
The IAM user this key will belong to.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.
- Parameters:
user
- The IAM user this key will belong to. This parameter is required.- Returns:
this
-
serial
A CloudFormation-specific value that signifies the access key should be replaced/rotated.This value can only be incremented. Incrementing this value will cause CloudFormation to replace the Access Key resource.
Default: - No serial value
- Parameters:
serial
- A CloudFormation-specific value that signifies the access key should be replaced/rotated. This parameter is required.- Returns:
this
-
status
The status of the access key.An Active access key is allowed to be used to make API calls; An Inactive key cannot.
Default: - The access key is active
- Parameters:
status
- The status of the access key. This parameter is required.- Returns:
this
-
build
-