Interface AwsIamRoleDetails.Builder

  • Method Details

    • 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.
    • attachedManagedPolicies

      AwsIamRoleDetails.Builder attachedManagedPolicies(Consumer<AwsIamAttachedManagedPolicy.Builder>... attachedManagedPolicies)

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

      This is a convenience method that creates an instance of the AwsIamAttachedManagedPolicy.Builder avoiding the need to create one manually via AwsIamAttachedManagedPolicy.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to attachedManagedPolicies(List<AwsIamAttachedManagedPolicy>).

      Parameters:
      attachedManagedPolicies - a consumer that will call methods on AwsIamAttachedManagedPolicy.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.
    • instanceProfileList

      AwsIamRoleDetails.Builder instanceProfileList(Consumer<AwsIamInstanceProfile.Builder>... instanceProfileList)

      The list of instance profiles that contain this role.

      This is a convenience method that creates an instance of the AwsIamInstanceProfile.Builder avoiding the need to create one manually via AwsIamInstanceProfile.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to instanceProfileList(List<AwsIamInstanceProfile>).

      Parameters:
      instanceProfileList - a consumer that will call methods on AwsIamInstanceProfile.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.
    • permissionsBoundary

      default AwsIamRoleDetails.Builder permissionsBoundary(Consumer<AwsIamPermissionsBoundary.Builder> permissionsBoundary)
      Sets the value of the PermissionsBoundary property for this object. This is a convenience method that creates an instance of the AwsIamPermissionsBoundary.Builder avoiding the need to create one manually via AwsIamPermissionsBoundary.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to permissionsBoundary(AwsIamPermissionsBoundary).

      Parameters:
      permissionsBoundary - a consumer that will call methods on AwsIamPermissionsBoundary.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.
    • rolePolicyList

      AwsIamRoleDetails.Builder rolePolicyList(Consumer<AwsIamRolePolicy.Builder>... rolePolicyList)

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

      This is a convenience method that creates an instance of the AwsIamRolePolicy.Builder avoiding the need to create one manually via AwsIamRolePolicy.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to rolePolicyList(List<AwsIamRolePolicy>).

      Parameters:
      rolePolicyList - a consumer that will call methods on AwsIamRolePolicy.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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.