Class: AWSCDK::Verifiedpermissions::CfnPolicy::EntityIdentifierProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Verifiedpermissions::CfnPolicy::EntityIdentifierProperty
- 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
-
#entity_id ⇒ String
readonly
The identifier of an entity.
-
#entity_type ⇒ String
readonly
The type of an entity.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(entity_id:, entity_type:) ⇒ EntityIdentifierProperty
constructor
A new instance of EntityIdentifierProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(entity_id:, entity_type:) ⇒ EntityIdentifierProperty
Returns a new instance of EntityIdentifierProperty.
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_id ⇒ String (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_type ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |