Module Values.DeleteResourcePolicyStatementRequestSource

Deletes a policy statement from a resource policy. If you delete the last statement from a policy, the policy is deleted. If you specify a statement ID that doesn't exist in the policy, or if the bot or bot alias doesn't have a policy attached, Amazon Lex returns an exception. You need to add the DeleteResourcePolicy or UpdateResourcePolicy action to the bot role in order to call the API.

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. statementId : Name.t;
    (*

    The name of the statement (SID) to delete from the policy.

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

    The identifier of the revision of the policy to delete the statement from. 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 removes the current contents of the statement.

    *)
}
Sourceval context_ : string
Sourceval make : ?expectedRevisionId:??? -> resourceArn:AmazonResourceName.t -> statementId:Name.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