Class PutResourcePolicyRequest

    • Method Detail

      • resourceArn

        public final 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.

        Returns:
        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.
      • resourcePolicy

        public final 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.

        Returns:
        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.

      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object