Class: Aws::LexModelsV2::Types::UpdateResourcePolicyRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb

Overview

Note:

When making an API call, you may pass UpdateResourcePolicyRequest data as a hash:

{
  resource_arn: "AmazonResourceName", # required
  policy: "Policy", # required
  expected_revision_id: "RevisionId",
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#expected_revision_idString

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.

Returns:

  • (String)


10699
10700
10701
10702
10703
10704
10705
# File 'gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb', line 10699

class UpdateResourcePolicyRequest < Struct.new(
  :resource_arn,
  :policy,
  :expected_revision_id)
  SENSITIVE = []
  include Aws::Structure
end

#policyString

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.

Returns:

  • (String)


10699
10700
10701
10702
10703
10704
10705
# File 'gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb', line 10699

class UpdateResourcePolicyRequest < Struct.new(
  :resource_arn,
  :policy,
  :expected_revision_id)
  SENSITIVE = []
  include Aws::Structure
end

#resource_arnString

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

Returns:

  • (String)


10699
10700
10701
10702
10703
10704
10705
# File 'gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb', line 10699

class UpdateResourcePolicyRequest < Struct.new(
  :resource_arn,
  :policy,
  :expected_revision_id)
  SENSITIVE = []
  include Aws::Structure
end