Class: Aws::VerifiedPermissions::Types::EntityReference

Inherits:
Struct
  • Object
show all
Includes:
Structure, Structure::Union
Defined in:
lib/aws-sdk-verifiedpermissions/types.rb

Overview

Note:

EntityReference is a union - when making an API calls you must set exactly one of the members.

Contains information about a principal or resource that can be referenced in a Cedar policy.

This data type is used as part of the [PolicyFilter] structure that is used as a request parameter for the [ListPolicies] operation..

[1]: docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_PolicyFilter.html [2]: docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_ListPolicies.html

Direct Known Subclasses

Identifier, Unknown, Unspecified

Defined Under Namespace

Classes: Identifier, Unknown, Unspecified

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#identifierTypes::EntityIdentifier

The identifier of the entity. It can consist of either an EntityType and EntityId, a principal, or a resource.



1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
# File 'lib/aws-sdk-verifiedpermissions/types.rb', line 1656

class EntityReference < Struct.new(
  :unspecified,
  :identifier,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class Unspecified < EntityReference; end
  class Identifier < EntityReference; end
  class Unknown < EntityReference; end
end

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



1656
1657
1658
# File 'lib/aws-sdk-verifiedpermissions/types.rb', line 1656

def unknown
  @unknown
end

#unspecifiedBoolean

Used to indicate that a principal or resource is not specified. This can be used to search for policies that are not associated with a specific principal or resource.

Returns:

  • (Boolean)


1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
# File 'lib/aws-sdk-verifiedpermissions/types.rb', line 1656

class EntityReference < Struct.new(
  :unspecified,
  :identifier,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class Unspecified < EntityReference; end
  class Identifier < EntityReference; end
  class Unknown < EntityReference; end
end