Interface PutPolicyRequest.Builder
- All Superinterfaces:
AcmPcaRequest.Builder
,AwsRequest.Builder
,Buildable
,CopyableBuilder<PutPolicyRequest.Builder,
,PutPolicyRequest> SdkBuilder<PutPolicyRequest.Builder,
,PutPolicyRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
PutPolicyRequest
public static interface PutPolicyRequest.Builder
extends AcmPcaRequest.Builder, SdkPojo, CopyableBuilder<PutPolicyRequest.Builder,PutPolicyRequest>
-
Method Summary
Modifier and TypeMethodDescriptionoverrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The path and file name of a JSON-formatted IAM policy to attach to the specified private CA resource.resourceArn
(String resourceArn) The Amazon Resource Number (ARN) of the private CA to associate with the policy.Methods inherited from interface software.amazon.awssdk.services.acmpca.model.AcmPcaRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
resourceArn
The Amazon Resource Number (ARN) of the private CA to associate with the policy. The ARN of the CA can be found by calling the ListCertificateAuthorities action.
- Parameters:
resourceArn
- The Amazon Resource Number (ARN) of the private CA to associate with the policy. The ARN of the CA can be found by calling the ListCertificateAuthorities action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policy
The path and file name of a JSON-formatted IAM policy to attach to the specified private CA resource. If this policy does not contain all required statements or if it includes any statement that is not allowed, the
PutPolicy
action returns anInvalidPolicyException
. For information about IAM policy and statement structure, see Overview of JSON Policies.- Parameters:
policy
- The path and file name of a JSON-formatted IAM policy to attach to the specified private CA resource. If this policy does not contain all required statements or if it includes any statement that is not allowed, thePutPolicy
action returns anInvalidPolicyException
. For information about IAM policy and statement structure, see Overview of JSON Policies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
PutPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
PutPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-