Class: AWSCDK::Verifiedpermissions::CfnPolicy::EntityIdentifierProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
verifiedpermissions/cfn_policy.rb

Overview

Contains the identifier of an entity in a policy, including its ID and type.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entity_id:, entity_type:) ⇒ EntityIdentifierProperty

Returns a new instance of EntityIdentifierProperty.

Parameters:

  • entity_id (String)

    The identifier of an entity.

  • entity_type (String)

    The type of an entity.



557
558
559
560
561
562
# File 'verifiedpermissions/cfn_policy.rb', line 557

def initialize(entity_id:, entity_type:)
  @entity_id = entity_id
  Jsii::Type.check_type(@entity_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "entityId")
  @entity_type = entity_type
  Jsii::Type.check_type(@entity_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "entityType")
end

Instance Attribute Details

#entity_idString (readonly)

The identifier of an entity.

"entityId":" *identifier* "



570
571
572
# File 'verifiedpermissions/cfn_policy.rb', line 570

def entity_id
  @entity_id
end

#entity_typeString (readonly)

The type of an entity.

Example: "entityType":" *typeName* "



577
578
579
# File 'verifiedpermissions/cfn_policy.rb', line 577

def entity_type
  @entity_type
end

Class Method Details

.jsii_propertiesObject



579
580
581
582
583
584
# File 'verifiedpermissions/cfn_policy.rb', line 579

def self.jsii_properties
  {
    :entity_id => "entityId",
    :entity_type => "entityType",
  }
end

Instance Method Details

#to_jsiiObject



586
587
588
589
590
591
592
593
# File 'verifiedpermissions/cfn_policy.rb', line 586

def to_jsii
  result = {}
  result.merge!({
    "entityId" => @entity_id,
    "entityType" => @entity_type,
  })
  result.compact
end