public static final class CfnAccessKeyProps.Builder
extends java.lang.Object
CfnAccessKeyProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnAccessKeyProps |
build()
Builds the configured instance.
|
CfnAccessKeyProps.Builder |
serial(java.lang.Number serial)
Sets the value of
CfnAccessKeyProps.getSerial() |
CfnAccessKeyProps.Builder |
status(java.lang.String status)
Sets the value of
CfnAccessKeyProps.getStatus() |
CfnAccessKeyProps.Builder |
userName(java.lang.String userName)
Sets the value of
CfnAccessKeyProps.getUserName() |
public CfnAccessKeyProps.Builder userName(java.lang.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
public CfnAccessKeyProps.Builder serial(java.lang.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
public CfnAccessKeyProps.Builder status(java.lang.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
public CfnAccessKeyProps build()
CfnAccessKeyProps
java.lang.NullPointerException
- if any required attribute was not provided