Module Values.UpdateResourcePolicyRequestSource

Replaces the existing resource policy for a bot or bot alias with a new one. If the policy doesn't exist, Amazon Lex returns an exception.

Sourcetype nonrec t = {
  1. resourceArn : AmazonResourceName.t;
    (*

    The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.

    *)
  2. policy : Policy.t;
    (*

    A resource policy to add to the resource. The policy is a JSON structure that contains one or more statements that define the policy. The policy must follow the IAM syntax. For more information about the contents of a JSON policy document, see IAM JSON policy reference . If the policy isn't valid, Amazon Lex returns a validation exception.

    *)
  3. expectedRevisionId : RevisionId.t option;
    (*

    The identifier of the revision of the policy to update. If this revision ID doesn't match the current revision ID, Amazon Lex throws an exception. If you don't specify a revision, Amazon Lex overwrites the contents of the policy with the new values.

    *)
}
Sourceval context_ : string
Sourceval make : ?expectedRevisionId:??? -> resourceArn:AmazonResourceName.t -> policy:Policy.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of AmazonResourceName.t ]) 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