Class: AWSCDK::Interfaces::AWSLogs::AccountPolicyReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSLogs::AccountPolicyReference
- Defined in:
- interfaces/aws_logs/account_policy_reference.rb
Overview
A reference to a AccountPolicy resource.
Instance Attribute Summary collapse
-
#account_id ⇒ String
readonly
The AccountId of the AccountPolicy resource.
-
#policy_name ⇒ String
readonly
The PolicyName of the AccountPolicy resource.
-
#policy_type ⇒ String
readonly
The PolicyType of the AccountPolicy resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(account_id:, policy_name:, policy_type:) ⇒ AccountPolicyReference
constructor
A new instance of AccountPolicyReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(account_id:, policy_name:, policy_type:) ⇒ AccountPolicyReference
Returns a new instance of AccountPolicyReference.
10 11 12 13 14 15 16 17 |
# File 'interfaces/aws_logs/account_policy_reference.rb', line 10 def initialize(account_id:, policy_name:, policy_type:) @account_id = account_id Jsii::Type.check_type(@account_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accountId") @policy_name = policy_name Jsii::Type.check_type(@policy_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "policyName") @policy_type = policy_type Jsii::Type.check_type(@policy_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "policyType") end |
Instance Attribute Details
#account_id ⇒ String (readonly)
The AccountId of the AccountPolicy resource.
22 23 24 |
# File 'interfaces/aws_logs/account_policy_reference.rb', line 22 def account_id @account_id end |
#policy_name ⇒ String (readonly)
The PolicyName of the AccountPolicy resource.
26 27 28 |
# File 'interfaces/aws_logs/account_policy_reference.rb', line 26 def policy_name @policy_name end |
#policy_type ⇒ String (readonly)
The PolicyType of the AccountPolicy resource.
30 31 32 |
# File 'interfaces/aws_logs/account_policy_reference.rb', line 30 def policy_type @policy_type end |
Class Method Details
.jsii_properties ⇒ Object
32 33 34 35 36 37 38 |
# File 'interfaces/aws_logs/account_policy_reference.rb', line 32 def self.jsii_properties { :account_id => "accountId", :policy_name => "policyName", :policy_type => "policyType", } end |
Instance Method Details
#to_jsii ⇒ Object
40 41 42 43 44 45 46 47 48 |
# File 'interfaces/aws_logs/account_policy_reference.rb', line 40 def to_jsii result = {} result.merge!({ "accountId" => @account_id, "policyName" => @policy_name, "policyType" => @policy_type, }) result.compact end |