Interface UpdatePolicyRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<UpdatePolicyRequest.Builder,UpdatePolicyRequest>, SdkBuilder<UpdatePolicyRequest.Builder,UpdatePolicyRequest>, SdkPojo, SdkRequest.Builder, VerifiedPermissionsRequest.Builder
Enclosing class:
UpdatePolicyRequest

  • Method Details

    • policyStoreId

      UpdatePolicyRequest.Builder policyStoreId(String policyStoreId)

      Specifies the ID of the policy store that contains the policy that you want to update.

      Parameters:
      policyStoreId - Specifies the ID of the policy store that contains the policy that you want to update.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policyId

      UpdatePolicyRequest.Builder policyId(String policyId)

      Specifies the ID of the policy that you want to update. To find this value, you can use ListPolicies.

      Parameters:
      policyId - Specifies the ID of the policy that you want to update. To find this value, you can use ListPolicies.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • definition

      Specifies the updated policy content that you want to replace on the specified policy. The content must be valid Cedar policy language text.

      You can change only the following elements from the policy definition:

      • The action referenced by the policy.

      • Any conditional clauses, such as when or unless clauses.

      You can't change the following elements:

      • Changing from static to templateLinked.

      • Changing the effect of the policy from permit or forbid.

      • The principal referenced by the policy.

      • The resource referenced by the policy.

      Parameters:
      definition - Specifies the updated policy content that you want to replace on the specified policy. The content must be valid Cedar policy language text.

      You can change only the following elements from the policy definition:

      • The action referenced by the policy.

      • Any conditional clauses, such as when or unless clauses.

      You can't change the following elements:

      • Changing from static to templateLinked.

      • Changing the effect of the policy from permit or forbid.

      • The principal referenced by the policy.

      • The resource referenced by the policy.

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

      Specifies the updated policy content that you want to replace on the specified policy. The content must be valid Cedar policy language text.

      You can change only the following elements from the policy definition:

      • The action referenced by the policy.

      • Any conditional clauses, such as when or unless clauses.

      You can't change the following elements:

      • Changing from static to templateLinked.

      • Changing the effect of the policy from permit or forbid.

      • The principal referenced by the policy.

      • The resource referenced by the policy.

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

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

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

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