class Aws::LexModelsV2::Types::Principal

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 ][1].

[1]: docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html

@note When making an API call, you may pass Principal

data as a hash:

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

@!attribute [rw] service

The name of the AWS service that should allowed or denied access to
an Amazon Lex action.
@return [String]

@!attribute [rw] arn

The Amazon Resource Name (ARN) of the principal.
@return [String]

@see docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/Principal AWS API Documentation

Constants

SENSITIVE