Class CfnAccessKeyProps.Builder

java.lang.Object
software.amazon.awscdk.services.iam.CfnAccessKeyProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAccessKeyProps>
Enclosing interface:
CfnAccessKeyProps

@Stability(Stable) public static final class CfnAccessKeyProps.Builder extends Object implements software.amazon.jsii.Builder<CfnAccessKeyProps>
A builder for CfnAccessKeyProps
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • userName

      @Stability(Stable) public CfnAccessKeyProps.Builder userName(String userName)
      Parameters:
      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: _+=,.@-
      Returns:
      this
    • serial

      @Stability(Stable) public CfnAccessKeyProps.Builder serial(Number serial)
      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

      @Stability(Stable) public CfnAccessKeyProps.Builder status(String status)
      Parameters:
      status - The status of the access key. Active means that the key is valid for API calls, while Inactive means it is not.
      Returns:
      this
    • build

      @Stability(Stable) public CfnAccessKeyProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnAccessKeyProps>
      Returns:
      a new instance of CfnAccessKeyProps
      Throws:
      NullPointerException - if any required attribute was not provided