public static interface CreatePolicyRequest.Builder extends VerifiedPermissionsRequest.Builder, SdkPojo, CopyableBuilder<CreatePolicyRequest.Builder,CreatePolicyRequest>
| Modifier and Type | Method and Description |
|---|---|
CreatePolicyRequest.Builder |
clientToken(String clientToken)
Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request.
|
default CreatePolicyRequest.Builder |
definition(Consumer<PolicyDefinition.Builder> definition)
A structure that specifies the policy type and content to use for the new policy.
|
CreatePolicyRequest.Builder |
definition(PolicyDefinition definition)
A structure that specifies the policy type and content to use for the new policy.
|
CreatePolicyRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
CreatePolicyRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
CreatePolicyRequest.Builder |
policyStoreId(String policyStoreId)
Specifies the
PolicyStoreId of the policy store you want to store the policy in. |
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildCreatePolicyRequest.Builder clientToken(String clientToken)
Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same ClientToken, but with different parameters, the retry
fails with an IdempotentParameterMismatch error.
clientToken - Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. This
lets you safely retry the request without accidentally performing the same operation a second time.
Passing the same value to a later call to an operation requires that you also pass the same value for
all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same ClientToken, but with different parameters, the
retry fails with an IdempotentParameterMismatch error.
CreatePolicyRequest.Builder policyStoreId(String policyStoreId)
Specifies the PolicyStoreId of the policy store you want to store the policy in.
policyStoreId - Specifies the PolicyStoreId of the policy store you want to store the policy in.CreatePolicyRequest.Builder definition(PolicyDefinition definition)
A structure that specifies the policy type and content to use for the new policy. You must include either a static or a templateLinked element. The policy content must be written in the Cedar policy language.
definition - A structure that specifies the policy type and content to use for the new policy. You must include
either a static or a templateLinked element. The policy content must be written in the Cedar policy
language.default CreatePolicyRequest.Builder definition(Consumer<PolicyDefinition.Builder> definition)
A structure that specifies the policy type and content to use for the new policy. You must include either a static or a templateLinked element. The policy content must be written in the Cedar policy language.
This is a convenience method that creates an instance of thePolicyDefinition.Builder avoiding the
need to create one manually via PolicyDefinition.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to definition(PolicyDefinition).
definition - a consumer that will call methods on PolicyDefinition.Builderdefinition(PolicyDefinition)CreatePolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderCreatePolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.