Class IamRole

  • All Implemented Interfaces:
    com.hashicorp.cdktf.IInterpolatingParent, com.hashicorp.cdktf.ITerraformAddressable, com.hashicorp.cdktf.ITerraformDependable, com.hashicorp.cdktf.ITerraformResource, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

    @Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
               date="2023-06-30T04:56:53.284Z")
    @Stability(Stable)
    public class IamRole
    extends com.hashicorp.cdktf.TerraformResource
    Represents a {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/iam_role aws_iam_role}.
    • Field Detail

      • TF_RESOURCE_TYPE

        @Stability(Stable)
        public static final String TF_RESOURCE_TYPE
    • Constructor Detail

      • IamRole

        protected IamRole​(software.amazon.jsii.JsiiObjectRef objRef)
      • IamRole

        protected IamRole​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      • IamRole

        @Stability(Stable)
        public IamRole​(@NotNull
                       software.constructs.Construct scope,
                       @NotNull
                       String id,
                       @NotNull
                       IamRoleConfig config)
        Create a new {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/iam_role aws_iam_role} Resource.

        Parameters:
        scope - The scope in which to define this construct. This parameter is required.
        id - The scoped construct ID. This parameter is required.
        config - This parameter is required.
    • Method Detail

      • putInlinePolicy

        @Stability(Stable)
        public void putInlinePolicy​(@NotNull
                                    Object value)
        Parameters:
        value - This parameter is required.
      • resetDescription

        @Stability(Stable)
        public void resetDescription()
      • resetForceDetachPolicies

        @Stability(Stable)
        public void resetForceDetachPolicies()
      • resetId

        @Stability(Stable)
        public void resetId()
      • resetInlinePolicy

        @Stability(Stable)
        public void resetInlinePolicy()
      • resetManagedPolicyArns

        @Stability(Stable)
        public void resetManagedPolicyArns()
      • resetMaxSessionDuration

        @Stability(Stable)
        public void resetMaxSessionDuration()
      • resetName

        @Stability(Stable)
        public void resetName()
      • resetNamePrefix

        @Stability(Stable)
        public void resetNamePrefix()
      • resetPath

        @Stability(Stable)
        public void resetPath()
      • resetPermissionsBoundary

        @Stability(Stable)
        public void resetPermissionsBoundary()
      • resetTags

        @Stability(Stable)
        public void resetTags()
      • resetTagsAll

        @Stability(Stable)
        public void resetTagsAll()
      • synthesizeAttributes

        @Stability(Stable)
        @NotNull
        protected Map<String,​Object> synthesizeAttributes()
        Overrides:
        synthesizeAttributes in class com.hashicorp.cdktf.TerraformResource
      • getArn

        @Stability(Stable)
        @NotNull
        public String getArn()
      • getCreateDate

        @Stability(Stable)
        @NotNull
        public String getCreateDate()
      • getUniqueId

        @Stability(Stable)
        @NotNull
        public String getUniqueId()
      • getAssumeRolePolicyInput

        @Stability(Stable)
        @Nullable
        public String getAssumeRolePolicyInput()
      • getDescriptionInput

        @Stability(Stable)
        @Nullable
        public String getDescriptionInput()
      • getForceDetachPoliciesInput

        @Stability(Stable)
        @Nullable
        public Object getForceDetachPoliciesInput()
      • getIdInput

        @Stability(Stable)
        @Nullable
        public String getIdInput()
      • getInlinePolicyInput

        @Stability(Stable)
        @Nullable
        public Object getInlinePolicyInput()
      • getManagedPolicyArnsInput

        @Stability(Stable)
        @Nullable
        public List<String> getManagedPolicyArnsInput()
      • getMaxSessionDurationInput

        @Stability(Stable)
        @Nullable
        public Number getMaxSessionDurationInput()
      • getNameInput

        @Stability(Stable)
        @Nullable
        public String getNameInput()
      • getNamePrefixInput

        @Stability(Stable)
        @Nullable
        public String getNamePrefixInput()
      • getPathInput

        @Stability(Stable)
        @Nullable
        public String getPathInput()
      • getPermissionsBoundaryInput

        @Stability(Stable)
        @Nullable
        public String getPermissionsBoundaryInput()
      • getTagsAllInput

        @Stability(Stable)
        @Nullable
        public Map<String,​String> getTagsAllInput()
      • getTagsInput

        @Stability(Stable)
        @Nullable
        public Map<String,​String> getTagsInput()
      • getAssumeRolePolicy

        @Stability(Stable)
        @NotNull
        public String getAssumeRolePolicy()
      • setAssumeRolePolicy

        @Stability(Stable)
        public void setAssumeRolePolicy​(@NotNull
                                        String value)
      • getDescription

        @Stability(Stable)
        @NotNull
        public String getDescription()
      • setDescription

        @Stability(Stable)
        public void setDescription​(@NotNull
                                   String value)
      • getForceDetachPolicies

        @Stability(Stable)
        @NotNull
        public Object getForceDetachPolicies()
      • setForceDetachPolicies

        @Stability(Stable)
        public void setForceDetachPolicies​(@NotNull
                                           Boolean value)
      • setForceDetachPolicies

        @Stability(Stable)
        public void setForceDetachPolicies​(@NotNull
                                           com.hashicorp.cdktf.IResolvable value)
      • getId

        @Stability(Stable)
        @NotNull
        public String getId()
      • setId

        @Stability(Stable)
        public void setId​(@NotNull
                          String value)
      • getManagedPolicyArns

        @Stability(Stable)
        @NotNull
        public List<String> getManagedPolicyArns()
      • setManagedPolicyArns

        @Stability(Stable)
        public void setManagedPolicyArns​(@NotNull
                                         List<String> value)
      • getMaxSessionDuration

        @Stability(Stable)
        @NotNull
        public Number getMaxSessionDuration()
      • setMaxSessionDuration

        @Stability(Stable)
        public void setMaxSessionDuration​(@NotNull
                                          Number value)
      • getName

        @Stability(Stable)
        @NotNull
        public String getName()
      • setName

        @Stability(Stable)
        public void setName​(@NotNull
                            String value)
      • getNamePrefix

        @Stability(Stable)
        @NotNull
        public String getNamePrefix()
      • setNamePrefix

        @Stability(Stable)
        public void setNamePrefix​(@NotNull
                                  String value)
      • getPath

        @Stability(Stable)
        @NotNull
        public String getPath()
      • setPath

        @Stability(Stable)
        public void setPath​(@NotNull
                            String value)
      • getPermissionsBoundary

        @Stability(Stable)
        @NotNull
        public String getPermissionsBoundary()
      • setPermissionsBoundary

        @Stability(Stable)
        public void setPermissionsBoundary​(@NotNull
                                           String value)
      • getTags

        @Stability(Stable)
        @NotNull
        public Map<String,​String> getTags()
      • setTags

        @Stability(Stable)
        public void setTags​(@NotNull
                            Map<String,​String> value)
      • getTagsAll

        @Stability(Stable)
        @NotNull
        public Map<String,​String> getTagsAll()
      • setTagsAll

        @Stability(Stable)
        public void setTagsAll​(@NotNull
                               Map<String,​String> value)