Interface PutResourcePolicyRequest.Builder

  • Method Details

    • workspaceId

      PutResourcePolicyRequest.Builder workspaceId(String workspaceId)

      The ID of the workspace to attach the resource-based policy to.

      Parameters:
      workspaceId - The ID of the workspace to attach the resource-based policy to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policyDocument

      PutResourcePolicyRequest.Builder policyDocument(String policyDocument)

      The JSON policy document to use as the resource-based policy. This policy defines the permissions that other AWS accounts or services have to access your workspace.

      Parameters:
      policyDocument - The JSON policy document to use as the resource-based policy. This policy defines the permissions that other AWS accounts or services have to access your workspace.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • clientToken

      PutResourcePolicyRequest.Builder clientToken(String clientToken)

      A unique, case-sensitive identifier that you provide to ensure the request is safe to retry (idempotent).

      Parameters:
      clientToken - A unique, case-sensitive identifier that you provide to ensure the request is safe to retry (idempotent).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • revisionId

      PutResourcePolicyRequest.Builder revisionId(String revisionId)

      The revision ID of the policy to update. Use this parameter to ensure that you are updating the correct version of the policy. If you don't specify a revision ID, the policy is updated regardless of its current revision.

      For the first PUT request on a workspace that doesn't have an existing resource policy, you can specify NO_POLICY as the revision ID.

      Parameters:
      revisionId - The revision ID of the policy to update. Use this parameter to ensure that you are updating the correct version of the policy. If you don't specify a revision ID, the policy is updated regardless of its current revision.

      For the first PUT request on a workspace that doesn't have an existing resource policy, you can specify NO_POLICY as the revision ID.

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

      PutResourcePolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.