Interface PutResourcePolicyRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CloudTrailRequest.Builder,CopyableBuilder<PutResourcePolicyRequest.Builder,PutResourcePolicyRequest>,SdkBuilder<PutResourcePolicyRequest.Builder,PutResourcePolicyRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- PutResourcePolicyRequest
public static interface PutResourcePolicyRequest.Builder extends CloudTrailRequest.Builder, SdkPojo, CopyableBuilder<PutResourcePolicyRequest.Builder,PutResourcePolicyRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PutResourcePolicyRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)PutResourcePolicyRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)PutResourcePolicyRequest.BuilderresourceArn(String resourceArn)The Amazon Resource Name (ARN) of the CloudTrail channel attached to the resource-based policy.PutResourcePolicyRequest.BuilderresourcePolicy(String resourcePolicy)A JSON-formatted string for an Amazon Web Services resource-based policy.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.cloudtrail.model.CloudTrailRequest.Builder
build
-
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 Detail
-
resourceArn
PutResourcePolicyRequest.Builder resourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the CloudTrail channel attached to the resource-based policy. The following is the format of a resource ARN:
arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel.- Parameters:
resourceArn- The Amazon Resource Name (ARN) of the CloudTrail channel attached to the resource-based policy. The following is the format of a resource ARN:arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourcePolicy
PutResourcePolicyRequest.Builder resourcePolicy(String resourcePolicy)
A JSON-formatted string for an Amazon Web Services resource-based policy.
The following are requirements for the resource policy:
-
Contains only one action: cloudtrail-data:PutAuditEvents
-
Contains at least one statement. The policy can have a maximum of 20 statements.
-
Each statement contains at least one principal. A statement can have a maximum of 50 principals.
- Parameters:
resourcePolicy- A JSON-formatted string for an Amazon Web Services resource-based policy.The following are requirements for the resource policy:
-
Contains only one action: cloudtrail-data:PutAuditEvents
-
Contains at least one statement. The policy can have a maximum of 20 statements.
-
Each statement contains at least one principal. A statement can have a maximum of 50 principals.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
overrideConfiguration
PutResourcePolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
PutResourcePolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-