Class CfnAccessKeyMixinProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.iam.mixins.CfnAccessKeyMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAccessKeyMixinProps>
- Enclosing interface:
CfnAccessKeyMixinProps
@Stability(Stable)
public static final class CfnAccessKeyMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAccessKeyMixinProps>
A builder for
CfnAccessKeyMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnAccessKeyMixinProps.getSerial()Sets the value ofCfnAccessKeyMixinProps.getStatus()Sets the value ofCfnAccessKeyMixinProps.getUserName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
serial
Sets the value ofCfnAccessKeyMixinProps.getSerial()- Parameters:
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.- Returns:
this
-
status
Sets the value ofCfnAccessKeyMixinProps.getStatus()- Parameters:
status- The status of the access key.Activemeans that the key is valid for API calls, whileInactivemeans it is not.- Returns:
this
-
userName
Sets the value ofCfnAccessKeyMixinProps.getUserName()- Parameters:
userName- The name of the IAM user that the new key will belong to. 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: _+=,.@-- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAccessKeyMixinProps>- Returns:
- a new instance of
CfnAccessKeyMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-