Class CfnRoleAliasProps.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnRoleAliasProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRoleAliasProps>
- Enclosing interface:
CfnRoleAliasProps
@Stability(Stable)
public static final class CfnRoleAliasProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRoleAliasProps>
A builder for
CfnRoleAliasProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.credentialDurationSeconds
(Number credentialDurationSeconds) Sets the value ofCfnRoleAliasProps.getCredentialDurationSeconds()
Sets the value ofCfnRoleAliasProps.getRoleAlias()
Sets the value ofCfnRoleAliasProps.getRoleArn()
Sets the value ofCfnRoleAliasProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
roleArn
Sets the value ofCfnRoleAliasProps.getRoleArn()
- Parameters:
roleArn
- The role ARN. This parameter is required.- Returns:
this
-
credentialDurationSeconds
@Stability(Stable) public CfnRoleAliasProps.Builder credentialDurationSeconds(Number credentialDurationSeconds) Sets the value ofCfnRoleAliasProps.getCredentialDurationSeconds()
- Parameters:
credentialDurationSeconds
- The number of seconds for which the credential is valid.- Returns:
this
-
roleAlias
Sets the value ofCfnRoleAliasProps.getRoleAlias()
- Parameters:
roleAlias
- The role alias.- Returns:
this
-
tags
Sets the value ofCfnRoleAliasProps.getTags()
- Parameters:
tags
- An array of key-value pairs to apply to this resource. For more information, see Tag .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRoleAliasProps>
- Returns:
- a new instance of
CfnRoleAliasProps
- Throws:
NullPointerException
- if any required attribute was not provided
-