Class CfnAccessKeyPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.iam.CfnAccessKeyPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAccessKeyPropsMixin>
- Enclosing class:
CfnAccessKeyPropsMixin
@Stability(Stable)
public static final class CfnAccessKeyPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAccessKeyPropsMixin>
A fluent builder for
CfnAccessKeyPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()create()create(CfnPropertyMixinOptions options) This value is specific to CloudFormation and can only be incremented .The status of the access key.The name of the IAM user that the new key will belong to.
-
Method Details
-
create
@Stability(Stable) public static CfnAccessKeyPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnAccessKeyPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnAccessKeyPropsMixin.Builder.
-
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.
- Parameters:
serial- This value is specific to CloudFormation and can only be incremented . This parameter is required.- Returns:
this- See Also:
-
status
The status of the access key.Activemeans that the key is valid for API calls, whileInactivemeans it is not.- Parameters:
status- The status of the access key. This parameter is required.- Returns:
this- See Also:
-
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: _+=,.@-
- Parameters:
userName- The name of the IAM user that the new key will belong to. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAccessKeyPropsMixin>- Returns:
- a newly built instance of
CfnAccessKeyPropsMixin.
-