Class: AWSCDK::Interfaces::AWSDatazone::PolicyGrantReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSDatazone::PolicyGrantReference
- Defined in:
- interfaces/aws_datazone/policy_grant_reference.rb
Overview
A reference to a PolicyGrant resource.
Instance Attribute Summary collapse
-
#domain_identifier ⇒ String
readonly
The DomainIdentifier of the PolicyGrant resource.
-
#entity_identifier ⇒ String
readonly
The EntityIdentifier of the PolicyGrant resource.
-
#entity_type ⇒ String
readonly
The EntityType of the PolicyGrant resource.
-
#grant_id ⇒ String
readonly
The GrantId of the PolicyGrant resource.
-
#policy_type ⇒ String
readonly
The PolicyType of the PolicyGrant resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(domain_identifier:, entity_identifier:, entity_type:, grant_id:, policy_type:) ⇒ PolicyGrantReference
constructor
A new instance of PolicyGrantReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(domain_identifier:, entity_identifier:, entity_type:, grant_id:, policy_type:) ⇒ PolicyGrantReference
Returns a new instance of PolicyGrantReference.
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'interfaces/aws_datazone/policy_grant_reference.rb', line 12 def initialize(domain_identifier:, entity_identifier:, entity_type:, grant_id:, policy_type:) @domain_identifier = domain_identifier Jsii::Type.check_type(@domain_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainIdentifier") @entity_identifier = entity_identifier Jsii::Type.check_type(@entity_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "entityIdentifier") @entity_type = entity_type Jsii::Type.check_type(@entity_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "entityType") @grant_id = grant_id Jsii::Type.check_type(@grant_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "grantId") @policy_type = policy_type Jsii::Type.check_type(@policy_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "policyType") end |
Instance Attribute Details
#domain_identifier ⇒ String (readonly)
The DomainIdentifier of the PolicyGrant resource.
28 29 30 |
# File 'interfaces/aws_datazone/policy_grant_reference.rb', line 28 def domain_identifier @domain_identifier end |
#entity_identifier ⇒ String (readonly)
The EntityIdentifier of the PolicyGrant resource.
32 33 34 |
# File 'interfaces/aws_datazone/policy_grant_reference.rb', line 32 def entity_identifier @entity_identifier end |
#entity_type ⇒ String (readonly)
The EntityType of the PolicyGrant resource.
36 37 38 |
# File 'interfaces/aws_datazone/policy_grant_reference.rb', line 36 def entity_type @entity_type end |
#grant_id ⇒ String (readonly)
The GrantId of the PolicyGrant resource.
40 41 42 |
# File 'interfaces/aws_datazone/policy_grant_reference.rb', line 40 def grant_id @grant_id end |
#policy_type ⇒ String (readonly)
The PolicyType of the PolicyGrant resource.
44 45 46 |
# File 'interfaces/aws_datazone/policy_grant_reference.rb', line 44 def policy_type @policy_type end |
Class Method Details
.jsii_properties ⇒ Object
46 47 48 49 50 51 52 53 54 |
# File 'interfaces/aws_datazone/policy_grant_reference.rb', line 46 def self.jsii_properties { :domain_identifier => "domainIdentifier", :entity_identifier => "entityIdentifier", :entity_type => "entityType", :grant_id => "grantId", :policy_type => "policyType", } end |
Instance Method Details
#to_jsii ⇒ Object
56 57 58 59 60 61 62 63 64 65 66 |
# File 'interfaces/aws_datazone/policy_grant_reference.rb', line 56 def to_jsii result = {} result.merge!({ "domainIdentifier" => @domain_identifier, "entityIdentifier" => @entity_identifier, "entityType" => @entity_type, "grantId" => @grant_id, "policyType" => @policy_type, }) result.compact end |