Class: Aws::LexModelsV2::Types::Principal

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 Principal data as a hash:

{
  service: "ServicePrincipal",
  arn: "PrincipalArn",
}

The IAM principal that you allowing or denying access to an Amazon Lex action. You must provide a service or an arn, but not both in the same statement. For more information, see AWS JSON policy elements: Principal .

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#arnString

The Amazon Resource Name (ARN) of the principal.

Returns:

  • (String)


6646
6647
6648
6649
6650
6651
# File 'gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb', line 6646

class Principal < Struct.new(
  :service,
  :arn)
  SENSITIVE = []
  include Aws::Structure
end

#serviceString

The name of the AWS service that should allowed or denied access to an Amazon Lex action.

Returns:

  • (String)


6646
6647
6648
6649
6650
6651
# File 'gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb', line 6646

class Principal < Struct.new(
  :service,
  :arn)
  SENSITIVE = []
  include Aws::Structure
end