@Stability(value=Stable) public static final class CfnAccessKeyProps.Builder extends Object implements software.amazon.jsii.Builder<CfnAccessKeyProps>
CfnAccessKeyProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnAccessKeyProps |
build()
Builds the configured instance.
|
CfnAccessKeyProps.Builder |
serial(Number serial)
Sets the value of
CfnAccessKeyProps.getSerial() |
CfnAccessKeyProps.Builder |
status(String status)
Sets the value of
CfnAccessKeyProps.getStatus() |
CfnAccessKeyProps.Builder |
userName(String userName)
Sets the value of
CfnAccessKeyProps.getUserName() |
@Stability(value=Stable) public CfnAccessKeyProps.Builder userName(String userName)
CfnAccessKeyProps.getUserName()userName - The name of the IAM user that the new key will belong to. This parameter is required.
This parameter allows (through its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-this@Stability(value=Stable) public CfnAccessKeyProps.Builder serial(Number serial)
CfnAccessKeyProps.getSerial()serial - This value is specific to CloudFormation and can only be *incremented* .
Incrementing this value notifies CloudFormation that you want to rotate your access key. When you update your stack, CloudFormation will replace the existing access key with a new key.this@Stability(value=Stable) public CfnAccessKeyProps.Builder status(String status)
CfnAccessKeyProps.getStatus()status - The status of the access key.
Active means that the key is valid for API calls, while Inactive means it is not.this@Stability(value=Stable) public CfnAccessKeyProps build()
build in interface software.amazon.jsii.Builder<CfnAccessKeyProps>CfnAccessKeyPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.