Class LogResourcePolicyState


  • public final class LogResourcePolicyState
    extends com.pulumi.resources.ResourceArgs
    • Method Detail

      • policyDocument

        public java.util.Optional<com.pulumi.core.Output<com.pulumi.core.Either<java.lang.String,​PolicyDocumentArgs>>> policyDocument()
        Returns:
        Details of the resource policy, including the identity of the principal that is enabled to put logs to this account. This is formatted as a JSON string. Maximum length of 5120 characters.
      • policyName

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> policyName()
        Returns:
        Name of the resource policy. Exactly one of `policyName` or `resourceArn` must be specified and this argument is required for account-scoped policies. Note that the number of resource policies without `resourceArn` is limited to 10 per region.
      • policyScope

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> policyScope()
        Returns:
        Scope of the resource policy (`ACCOUNT` or `RESOURCE`).
      • region

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> region()
        Returns:
        Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
      • resourceArn

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> resourceArn()
        Returns:
        ARN of the CloudWatch Logs resource to which the resource policy is attached. Exactly one of `policyName` or `resourceArn` must be specified and this argument is required for resource-scoped policies. Only one policy can be attached per log group resource ARN.
      • revisionId

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> revisionId()
        Returns:
        Revision ID of the resource policy. Only populated for resource-scoped policies.