deleteResourcePolicyStatement
inline suspend fun LexModelsV2Client.deleteResourcePolicyStatement(crossinline block: DeleteResourcePolicyStatementRequest.Builder.() -> Unit): DeleteResourcePolicyStatementResponse
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.