Class LogResourcePolicyState.Builder

  • Enclosing class:
    LogResourcePolicyState

    public static final class LogResourcePolicyState.Builder
    extends java.lang.Object
    • Method Detail

      • policyDocument

        public LogResourcePolicyState.Builder policyDocument​(@Nullable
                                                             com.pulumi.core.Output<com.pulumi.core.Either<java.lang.String,​PolicyDocumentArgs>> policyDocument)
        Parameters:
        policyDocument - 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.
        Returns:
        builder
      • policyDocument

        public LogResourcePolicyState.Builder policyDocument​(com.pulumi.core.Either<java.lang.String,​PolicyDocumentArgs> policyDocument)
        Parameters:
        policyDocument - 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.
        Returns:
        builder
      • policyDocument

        public LogResourcePolicyState.Builder policyDocument​(java.lang.String policyDocument)
        Parameters:
        policyDocument - 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.
        Returns:
        builder
      • policyDocument

        public LogResourcePolicyState.Builder policyDocument​(PolicyDocumentArgs policyDocument)
        Parameters:
        policyDocument - 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.
        Returns:
        builder
      • policyName

        public LogResourcePolicyState.Builder policyName​(@Nullable
                                                         com.pulumi.core.Output<java.lang.String> policyName)
        Parameters:
        policyName - 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.
        Returns:
        builder
      • policyName

        public LogResourcePolicyState.Builder policyName​(java.lang.String policyName)
        Parameters:
        policyName - 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.
        Returns:
        builder
      • policyScope

        public LogResourcePolicyState.Builder policyScope​(@Nullable
                                                          com.pulumi.core.Output<java.lang.String> policyScope)
        Parameters:
        policyScope - Scope of the resource policy (`ACCOUNT` or `RESOURCE`).
        Returns:
        builder
      • policyScope

        public LogResourcePolicyState.Builder policyScope​(java.lang.String policyScope)
        Parameters:
        policyScope - Scope of the resource policy (`ACCOUNT` or `RESOURCE`).
        Returns:
        builder
      • region

        public LogResourcePolicyState.Builder region​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - 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.
        Returns:
        builder
      • region

        public LogResourcePolicyState.Builder region​(java.lang.String region)
        Parameters:
        region - 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.
        Returns:
        builder
      • resourceArn

        public LogResourcePolicyState.Builder resourceArn​(@Nullable
                                                          com.pulumi.core.Output<java.lang.String> resourceArn)
        Parameters:
        resourceArn - 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.
        Returns:
        builder
      • resourceArn

        public LogResourcePolicyState.Builder resourceArn​(java.lang.String resourceArn)
        Parameters:
        resourceArn - 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.
        Returns:
        builder
      • revisionId

        public LogResourcePolicyState.Builder revisionId​(@Nullable
                                                         com.pulumi.core.Output<java.lang.String> revisionId)
        Parameters:
        revisionId - Revision ID of the resource policy. Only populated for resource-scoped policies.
        Returns:
        builder
      • revisionId

        public LogResourcePolicyState.Builder revisionId​(java.lang.String revisionId)
        Parameters:
        revisionId - Revision ID of the resource policy. Only populated for resource-scoped policies.
        Returns:
        builder