AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the DeleteResourcePolicyStatement operation. 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.
Namespace: Amazon.LexModelsV2.Model
Assembly: AWSSDK.LexModelsV2.dll
Version: 3.x.y.z
public class DeleteResourcePolicyStatementRequest : AmazonLexModelsV2Request IAmazonWebServiceRequest
The DeleteResourcePolicyStatementRequest type exposes the following members
Name | Description | |
---|---|---|
DeleteResourcePolicyStatementRequest() |
Name | Type | Description | |
---|---|---|---|
ExpectedRevisionId | System.String |
Gets and sets the property ExpectedRevisionId. 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. |
|
ResourceArn | System.String |
Gets and sets the property ResourceArn. The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to. |
|
StatementId | System.String |
Gets and sets the property StatementId. The name of the statement (SID) to delete from the policy. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5