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 Details

    • 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)
      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.