Class IamRoleConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.iam_role.IamRoleConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<IamRoleConfig>
- Enclosing interface:
- IamRoleConfig
@Stability(Stable) public static final class IamRoleConfig.Builder extends Object implements software.amazon.jsii.Builder<IamRoleConfig>
A builder forIamRoleConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IamRoleConfig.BuilderassumeRolePolicy(String assumeRolePolicy)Sets the value ofIamRoleConfig.getAssumeRolePolicy()IamRoleConfigbuild()Builds the configured instance.IamRoleConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()IamRoleConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()IamRoleConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()IamRoleConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()IamRoleConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()IamRoleConfig.Builderdescription(String description)Sets the value ofIamRoleConfig.getDescription()IamRoleConfig.BuilderforceDetachPolicies(com.hashicorp.cdktf.IResolvable forceDetachPolicies)Sets the value ofIamRoleConfig.getForceDetachPolicies()IamRoleConfig.BuilderforceDetachPolicies(Boolean forceDetachPolicies)Sets the value ofIamRoleConfig.getForceDetachPolicies()IamRoleConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()IamRoleConfig.Builderid(String id)Sets the value ofIamRoleConfig.getId()IamRoleConfig.BuilderinlinePolicy(com.hashicorp.cdktf.IResolvable inlinePolicy)Sets the value ofIamRoleConfig.getInlinePolicy()IamRoleConfig.BuilderinlinePolicy(List<? extends IamRoleInlinePolicy> inlinePolicy)Sets the value ofIamRoleConfig.getInlinePolicy()IamRoleConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()IamRoleConfig.BuildermanagedPolicyArns(List<String> managedPolicyArns)Sets the value ofIamRoleConfig.getManagedPolicyArns()IamRoleConfig.BuildermaxSessionDuration(Number maxSessionDuration)Sets the value ofIamRoleConfig.getMaxSessionDuration()IamRoleConfig.Buildername(String name)Sets the value ofIamRoleConfig.getName()IamRoleConfig.BuildernamePrefix(String namePrefix)Sets the value ofIamRoleConfig.getNamePrefix()IamRoleConfig.Builderpath(String path)Sets the value ofIamRoleConfig.getPath()IamRoleConfig.BuilderpermissionsBoundary(String permissionsBoundary)Sets the value ofIamRoleConfig.getPermissionsBoundary()IamRoleConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()IamRoleConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()IamRoleConfig.Buildertags(Map<String,String> tags)Sets the value ofIamRoleConfig.getTags()IamRoleConfig.BuildertagsAll(Map<String,String> tagsAll)Sets the value ofIamRoleConfig.getTagsAll()
-
-
-
Method Detail
-
assumeRolePolicy
@Stability(Stable) public IamRoleConfig.Builder assumeRolePolicy(String assumeRolePolicy)
Sets the value ofIamRoleConfig.getAssumeRolePolicy()- Parameters:
assumeRolePolicy- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/iam_role#assume_role_policy IamRole#assume_role_policy}. This parameter is required.- Returns:
this
-
description
@Stability(Stable) public IamRoleConfig.Builder description(String description)
Sets the value ofIamRoleConfig.getDescription()- Parameters:
description- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/iam_role#description IamRole#description}.- Returns:
this
-
forceDetachPolicies
@Stability(Stable) public IamRoleConfig.Builder forceDetachPolicies(Boolean forceDetachPolicies)
Sets the value ofIamRoleConfig.getForceDetachPolicies()- Parameters:
forceDetachPolicies- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/iam_role#force_detach_policies IamRole#force_detach_policies}.- Returns:
this
-
forceDetachPolicies
@Stability(Stable) public IamRoleConfig.Builder forceDetachPolicies(com.hashicorp.cdktf.IResolvable forceDetachPolicies)
Sets the value ofIamRoleConfig.getForceDetachPolicies()- Parameters:
forceDetachPolicies- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/iam_role#force_detach_policies IamRole#force_detach_policies}.- Returns:
this
-
id
@Stability(Stable) public IamRoleConfig.Builder id(String id)
Sets the value ofIamRoleConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/iam_role#id IamRole#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
inlinePolicy
@Stability(Stable) public IamRoleConfig.Builder inlinePolicy(com.hashicorp.cdktf.IResolvable inlinePolicy)
Sets the value ofIamRoleConfig.getInlinePolicy()- Parameters:
inlinePolicy- inline_policy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/iam_role#inline_policy IamRole#inline_policy}- Returns:
this
-
inlinePolicy
@Stability(Stable) public IamRoleConfig.Builder inlinePolicy(List<? extends IamRoleInlinePolicy> inlinePolicy)
Sets the value ofIamRoleConfig.getInlinePolicy()- Parameters:
inlinePolicy- inline_policy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/iam_role#inline_policy IamRole#inline_policy}- Returns:
this
-
managedPolicyArns
@Stability(Stable) public IamRoleConfig.Builder managedPolicyArns(List<String> managedPolicyArns)
Sets the value ofIamRoleConfig.getManagedPolicyArns()- Parameters:
managedPolicyArns- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/iam_role#managed_policy_arns IamRole#managed_policy_arns}.- Returns:
this
-
maxSessionDuration
@Stability(Stable) public IamRoleConfig.Builder maxSessionDuration(Number maxSessionDuration)
Sets the value ofIamRoleConfig.getMaxSessionDuration()- Parameters:
maxSessionDuration- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/iam_role#max_session_duration IamRole#max_session_duration}.- Returns:
this
-
name
@Stability(Stable) public IamRoleConfig.Builder name(String name)
Sets the value ofIamRoleConfig.getName()- Parameters:
name- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/iam_role#name IamRole#name}.- Returns:
this
-
namePrefix
@Stability(Stable) public IamRoleConfig.Builder namePrefix(String namePrefix)
Sets the value ofIamRoleConfig.getNamePrefix()- Parameters:
namePrefix- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/iam_role#name_prefix IamRole#name_prefix}.- Returns:
this
-
path
@Stability(Stable) public IamRoleConfig.Builder path(String path)
Sets the value ofIamRoleConfig.getPath()- Parameters:
path- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/iam_role#path IamRole#path}.- Returns:
this
-
permissionsBoundary
@Stability(Stable) public IamRoleConfig.Builder permissionsBoundary(String permissionsBoundary)
Sets the value ofIamRoleConfig.getPermissionsBoundary()- Parameters:
permissionsBoundary- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/iam_role#permissions_boundary IamRole#permissions_boundary}.- Returns:
this
-
tags
@Stability(Stable) public IamRoleConfig.Builder tags(Map<String,String> tags)
Sets the value ofIamRoleConfig.getTags()- Parameters:
tags- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/iam_role#tags IamRole#tags}.- Returns:
this
-
tagsAll
@Stability(Stable) public IamRoleConfig.Builder tagsAll(Map<String,String> tagsAll)
Sets the value ofIamRoleConfig.getTagsAll()- Parameters:
tagsAll- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/iam_role#tags_all IamRole#tags_all}.- Returns:
this
-
connection
@Stability(Experimental) public IamRoleConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public IamRoleConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public IamRoleConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public IamRoleConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public IamRoleConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public IamRoleConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public IamRoleConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public IamRoleConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public IamRoleConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public IamRoleConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<IamRoleConfig>- Returns:
- a new instance of
IamRoleConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-