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 UpdateResourcePolicy operation. 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.
Namespace: Amazon.LexModelsV2.Model
Assembly: AWSSDK.LexModelsV2.dll
Version: 3.x.y.z
public class UpdateResourcePolicyRequest : AmazonLexModelsV2Request IAmazonWebServiceRequest
The UpdateResourcePolicyRequest type exposes the following members
Name | Description | |
---|---|---|
![]() |
UpdateResourcePolicyRequest() |
Name | Type | Description | |
---|---|---|---|
![]() |
ExpectedRevisionId | System.String |
Gets and sets the property ExpectedRevisionId. 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. |
![]() |
Policy | System.String |
Gets and sets the property Policy. 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. |
![]() |
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. |
.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