Module Values.PutResourcePolicyResponseSource

Creates or updates a resource policy allowing other Amazon Web Services services to put log events to this account, such as Amazon Route 53. This API has the following restrictions: Supported actions - Policy only supports logs:PutLogEvents and logs:CreateLogStream actions Supported principals - Policy only applies when operations are invoked by Amazon Web Services service principals (not IAM users, roles, or cross-account principals Policy limits - An account can have a maximum of 10 policies without resourceARN and one per LogGroup resourceARN Resource policies with actions invoked by non-Amazon Web Services service principals (such as IAM users, roles, or other Amazon Web Services accounts) will not be enforced. For access control involving these principals, use the IAM policies.

Sourcetype nonrec t = {
  1. resourcePolicy : ResourcePolicy.t option;
    (*

    The new policy.

    *)
  2. revisionId : ExpectedRevisionId.t option;
    (*

    The revision ID of the created or updated resource policy. Only returned for resource-scoped policies.

    *)
}
Sourcetype nonrec error = [
  1. | `InvalidParameterException of InvalidParameterException.t
  2. | `LimitExceededException of LimitExceededException.t
  3. | `OperationAbortedException of OperationAbortedException.t
  4. | `ResourceNotFoundException of ResourceNotFoundException.t
  5. | `ServiceUnavailableException of ServiceUnavailableException.t
  6. | `Unknown_operation_error of string * string option
]
Sourceval make : ?resourcePolicy:??? -> ?revisionId:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `InvalidParameterException of unit | `LimitExceededException of unit | `OperationAbortedException of unit | `ResourceNotFoundException of unit | `ServiceUnavailableException of unit | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `InvalidParameterException of unit | `LimitExceededException of unit | `OperationAbortedException of unit | `ResourceNotFoundException of unit | `ServiceUnavailableException of unit | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `String of ExpectedRevisionId.t | `Structure of (string * [> `Enum of string | `Long of Timestamp.t | `String of PolicyName.t ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t