Class IamRoleConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • assumeRolePolicy

        @Stability(Stable)
        public IamRoleConfig.Builder assumeRolePolicy​(String assumeRolePolicy)
        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)
        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)
        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)
        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 of IamRoleConfig.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)
        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)
        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)
        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)
        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 of IamRoleConfig.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)
        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 of IamRoleConfig.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)
        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 of IamRoleConfig.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 of IamRoleConfig.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 of TerraformMetaArguments.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 of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public IamRoleConfig.Builder count​(Number count)
        Sets the value of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.getProvider()
        Parameters:
        provider - the value to be set.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public IamRoleConfig.Builder provisioners​(List<? extends Object> provisioners)
        Sets the value of TerraformMetaArguments.getProvisioners()
        Parameters:
        provisioners - the value to be set.
        Returns:
        this