public static interface UpdatePolicyRequest.Builder extends VerifiedPermissionsRequest.Builder, SdkPojo, CopyableBuilder<UpdatePolicyRequest.Builder,UpdatePolicyRequest>
| Modifier and Type | Method and Description |
|---|---|
default UpdatePolicyRequest.Builder |
definition(Consumer<UpdatePolicyDefinition.Builder> definition)
Specifies the updated policy content that you want to replace on the specified policy.
|
UpdatePolicyRequest.Builder |
definition(UpdatePolicyDefinition definition)
Specifies the updated policy content that you want to replace on the specified policy.
|
UpdatePolicyRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
UpdatePolicyRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
UpdatePolicyRequest.Builder |
policyId(String policyId)
Specifies the ID of the policy that you want to update.
|
UpdatePolicyRequest.Builder |
policyStoreId(String policyStoreId)
Specifies the ID of the policy store that contains the policy that you want to update.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildUpdatePolicyRequest.Builder policyStoreId(String policyStoreId)
Specifies the ID of the policy store that contains the policy that you want to update.
policyStoreId - Specifies the ID of the policy store that contains the policy that you want to update.UpdatePolicyRequest.Builder policyId(String policyId)
Specifies the ID of the policy that you want to update. To find this value, you can use ListPolicies.
policyId - Specifies the ID of the policy that you want to update. To find this value, you can use ListPolicies.UpdatePolicyRequest.Builder definition(UpdatePolicyDefinition 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.
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.
default UpdatePolicyRequest.Builder definition(Consumer<UpdatePolicyDefinition.Builder> 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.
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).
definition - a consumer that will call methods on UpdatePolicyDefinition.Builderdefinition(UpdatePolicyDefinition)UpdatePolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderUpdatePolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.