Interface AwsIamRoleDetails.Builder

    • Method Detail

      • assumeRolePolicyDocument

        AwsIamRoleDetails.Builder assumeRolePolicyDocument​(String assumeRolePolicyDocument)

        The trust policy that grants permission to assume the role.

        Parameters:
        assumeRolePolicyDocument - The trust policy that grants permission to assume the role.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • attachedManagedPolicies

        AwsIamRoleDetails.Builder attachedManagedPolicies​(Collection<AwsIamAttachedManagedPolicy> attachedManagedPolicies)

        The list of the managed policies that are attached to the role.

        Parameters:
        attachedManagedPolicies - The list of the managed policies that are attached to the role.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • attachedManagedPolicies

        AwsIamRoleDetails.Builder attachedManagedPolicies​(AwsIamAttachedManagedPolicy... attachedManagedPolicies)

        The list of the managed policies that are attached to the role.

        Parameters:
        attachedManagedPolicies - The list of the managed policies that are attached to the role.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • createDate

        AwsIamRoleDetails.Builder createDate​(String createDate)

        Indicates when the role was created.

        This field accepts only the specified formats. Timestamps can end with Z or ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:

        • YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z)

        • YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z)

        • YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59)

        • YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759)

        • YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59)

        Parameters:
        createDate - Indicates when the role was created.

        This field accepts only the specified formats. Timestamps can end with Z or ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:

        • YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z)

        • YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z)

        • YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59)

        • YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759)

        • YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59)

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • instanceProfileList

        AwsIamRoleDetails.Builder instanceProfileList​(Collection<AwsIamInstanceProfile> instanceProfileList)

        The list of instance profiles that contain this role.

        Parameters:
        instanceProfileList - The list of instance profiles that contain this role.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • instanceProfileList

        AwsIamRoleDetails.Builder instanceProfileList​(AwsIamInstanceProfile... instanceProfileList)

        The list of instance profiles that contain this role.

        Parameters:
        instanceProfileList - The list of instance profiles that contain this role.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • permissionsBoundary

        AwsIamRoleDetails.Builder permissionsBoundary​(AwsIamPermissionsBoundary permissionsBoundary)
        Sets the value of the PermissionsBoundary property for this object.
        Parameters:
        permissionsBoundary - The new value for the PermissionsBoundary property for this object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • roleId

        AwsIamRoleDetails.Builder roleId​(String roleId)

        The stable and unique string identifying the role.

        Parameters:
        roleId - The stable and unique string identifying the role.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • roleName

        AwsIamRoleDetails.Builder roleName​(String roleName)

        The friendly name that identifies the role.

        Parameters:
        roleName - The friendly name that identifies the role.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • rolePolicyList

        AwsIamRoleDetails.Builder rolePolicyList​(Collection<AwsIamRolePolicy> rolePolicyList)

        The list of inline policies that are embedded in the role.

        Parameters:
        rolePolicyList - The list of inline policies that are embedded in the role.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • rolePolicyList

        AwsIamRoleDetails.Builder rolePolicyList​(AwsIamRolePolicy... rolePolicyList)

        The list of inline policies that are embedded in the role.

        Parameters:
        rolePolicyList - The list of inline policies that are embedded in the role.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • maxSessionDuration

        AwsIamRoleDetails.Builder maxSessionDuration​(Integer maxSessionDuration)

        The maximum session duration (in seconds) that you want to set for the specified role.

        Parameters:
        maxSessionDuration - The maximum session duration (in seconds) that you want to set for the specified role.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • path

        AwsIamRoleDetails.Builder path​(String path)

        The path to the role.

        Parameters:
        path - The path to the role.
        Returns:
        Returns a reference to this object so that method calls can be chained together.