Interface ApprovalPolicy.Builder

  • Method Details

    • policyId

      ApprovalPolicy.Builder policyId(String policyId)

      The unique identifier of the approval policy.

      Parameters:
      policyId - The unique identifier of the approval policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policyArn

      ApprovalPolicy.Builder policyArn(String policyArn)

      The Amazon Resource Name (ARN) of the approval policy.

      Parameters:
      policyArn - The Amazon Resource Name (ARN) of the approval policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the approval policy.

      Parameters:
      name - The name of the approval policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      ApprovalPolicy.Builder description(String description)

      A description of the approval policy.

      Parameters:
      description - A description of the approval policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • actionsWithStrings

      ApprovalPolicy.Builder actionsWithStrings(Collection<String> actions)

      The list of governed actions that trigger the approval workflow.

      Parameters:
      actions - The list of governed actions that trigger the approval workflow.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • actionsWithStrings

      ApprovalPolicy.Builder actionsWithStrings(String... actions)

      The list of governed actions that trigger the approval workflow.

      Parameters:
      actions - The list of governed actions that trigger the approval workflow.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • actions

      The list of governed actions that trigger the approval workflow.

      Parameters:
      actions - The list of governed actions that trigger the approval workflow.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • actions

      The list of governed actions that trigger the approval workflow.

      Parameters:
      actions - The list of governed actions that trigger the approval workflow.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • assetTypesWithStrings

      ApprovalPolicy.Builder assetTypesWithStrings(Collection<String> assetTypes)

      The list of asset types that the approval policy applies to.

      Parameters:
      assetTypes - The list of asset types that the approval policy applies to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • assetTypesWithStrings

      ApprovalPolicy.Builder assetTypesWithStrings(String... assetTypes)

      The list of asset types that the approval policy applies to.

      Parameters:
      assetTypes - The list of asset types that the approval policy applies to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • assetTypes

      ApprovalPolicy.Builder assetTypes(Collection<AssetType> assetTypes)

      The list of asset types that the approval policy applies to.

      Parameters:
      assetTypes - The list of asset types that the approval policy applies to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • assetTypes

      ApprovalPolicy.Builder assetTypes(AssetType... assetTypes)

      The list of asset types that the approval policy applies to.

      Parameters:
      assetTypes - The list of asset types that the approval policy applies to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • applicableTo

      ApprovalPolicy.Builder applicableTo(ApplicableTo applicableTo)

      The scoping configuration that determines who the approval policy applies to.

      Parameters:
      applicableTo - The scoping configuration that determines who the approval policy applies to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • applicableTo

      default ApprovalPolicy.Builder applicableTo(Consumer<ApplicableTo.Builder> applicableTo)

      The scoping configuration that determines who the approval policy applies to.

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

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

      Parameters:
      applicableTo - a consumer that will call methods on ApplicableTo.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • approvalGroups

      ApprovalPolicy.Builder approvalGroups(Collection<String> approvalGroups)

      The list of group ARNs whose members can approve requests.

      Parameters:
      approvalGroups - The list of group ARNs whose members can approve requests.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • approvalGroups

      ApprovalPolicy.Builder approvalGroups(String... approvalGroups)

      The list of group ARNs whose members can approve requests.

      Parameters:
      approvalGroups - The list of group ARNs whose members can approve requests.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      ApprovalPolicy.Builder createdAt(Instant createdAt)

      The date and time that the approval policy was created.

      Parameters:
      createdAt - The date and time that the approval policy was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      ApprovalPolicy.Builder updatedAt(Instant updatedAt)

      The date and time that the approval policy was last updated.

      Parameters:
      updatedAt - The date and time that the approval policy was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.