Class CfnRoleAlias.Builder

java.lang.Object
software.amazon.awscdk.services.iot.CfnRoleAlias.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRoleAlias>
Enclosing class:
CfnRoleAlias

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

    • create

      @Stability(Stable) public static CfnRoleAlias.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnRoleAlias.Builder.
    • roleArn

      @Stability(Stable) public CfnRoleAlias.Builder roleArn(String roleArn)
      The role ARN.

      Parameters:
      roleArn - The role ARN. This parameter is required.
      Returns:
      this
    • credentialDurationSeconds

      @Stability(Stable) public CfnRoleAlias.Builder credentialDurationSeconds(Number credentialDurationSeconds)
      The number of seconds for which the credential is valid.

      Parameters:
      credentialDurationSeconds - The number of seconds for which the credential is valid. This parameter is required.
      Returns:
      this
    • roleAlias

      @Stability(Stable) public CfnRoleAlias.Builder roleAlias(String roleAlias)
      The role alias.

      Parameters:
      roleAlias - The role alias. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnRoleAlias.Builder tags(List<? extends CfnTag> tags)
      An array of key-value pairs to apply to this resource.

      For more information, see Tag .

      Parameters:
      tags - An array of key-value pairs to apply to this resource. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnRoleAlias build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnRoleAlias>
      Returns:
      a newly built instance of CfnRoleAlias.