Interface AddPolicyStatementRequest.Builder

  • Method Details

    • arn

      The Amazon Resource Name (ARN) of the resource that will be accessed by the principal.

      Parameters:
      arn - The Amazon Resource Name (ARN) of the resource that will be accessed by the principal.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • statementId

      AddPolicyStatementRequest.Builder statementId(String statementId)

      A statement identifier that differentiates the statement from others in the same policy.

      Parameters:
      statementId - A statement identifier that differentiates the statement from others in the same policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • effect

      Determines whether the permissions specified in the policy are to be allowed (Allow) or denied ( Deny).

      If you set the value of the effect parameter to Deny for the AddPolicyStatement operation, you must also set the value of the effect parameter in the policy to Deny for the PutPolicy operation.

      Parameters:
      effect - Determines whether the permissions specified in the policy are to be allowed (Allow) or denied (Deny).

      If you set the value of the effect parameter to Deny for the AddPolicyStatement operation, you must also set the value of the effect parameter in the policy to Deny for the PutPolicy operation.

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

      Determines whether the permissions specified in the policy are to be allowed (Allow) or denied ( Deny).

      If you set the value of the effect parameter to Deny for the AddPolicyStatement operation, you must also set the value of the effect parameter in the policy to Deny for the PutPolicy operation.

      Parameters:
      effect - Determines whether the permissions specified in the policy are to be allowed (Allow) or denied (Deny).

      If you set the value of the effect parameter to Deny for the AddPolicyStatement operation, you must also set the value of the effect parameter in the policy to Deny for the PutPolicy operation.

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

      The action that the principal can use on the resource.

      For example, entityresolution:GetIdMappingJob, entityresolution:GetMatchingJob.

      Parameters:
      action - The action that the principal can use on the resource.

      For example, entityresolution:GetIdMappingJob, entityresolution:GetMatchingJob.

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

      The action that the principal can use on the resource.

      For example, entityresolution:GetIdMappingJob, entityresolution:GetMatchingJob.

      Parameters:
      action - The action that the principal can use on the resource.

      For example, entityresolution:GetIdMappingJob, entityresolution:GetMatchingJob.

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

      The Amazon Web Services service or Amazon Web Services account that can access the resource defined as ARN.

      Parameters:
      principal - The Amazon Web Services service or Amazon Web Services account that can access the resource defined as ARN.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • principal

      AddPolicyStatementRequest.Builder principal(String... principal)

      The Amazon Web Services service or Amazon Web Services account that can access the resource defined as ARN.

      Parameters:
      principal - The Amazon Web Services service or Amazon Web Services account that can access the resource defined as ARN.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • condition

      A set of condition keys that you can use in key policies.

      Parameters:
      condition - A set of condition keys that you can use in key policies.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      AddPolicyStatementRequest.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.