AWS SDK Version 3 for .NET
API Reference

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 DeleteResourcePolicy operation. Removes an existing policy from a bot or bot alias. If the resource doesn't have a policy attached, Amazon Lex returns an exception.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.LexModelsV2.AmazonLexModelsV2Request
      Amazon.LexModelsV2.Model.DeleteResourcePolicyRequest

Namespace: Amazon.LexModelsV2.Model
Assembly: AWSSDK.LexModelsV2.dll
Version: 3.x.y.z

Syntax

C#
public class DeleteResourcePolicyRequest : AmazonLexModelsV2Request
         IAmazonWebServiceRequest

The DeleteResourcePolicyRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property ExpectedRevisionId System.String

Gets and sets the property ExpectedRevisionId.

The identifier of the revision to edit. If this ID doesn't match the current revision number, Amazon Lex returns an exception

If you don't specify a revision ID, Amazon Lex will delete the current policy.

Public Property ResourceArn System.String

Gets and sets the property ResourceArn.

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

Version Information

.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