Class: AWSCDK::Interfaces::AWSLogs::AccountPolicyReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_logs/account_policy_reference.rb

Overview

A reference to a AccountPolicy resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(account_id:, policy_name:, policy_type:) ⇒ AccountPolicyReference

Returns a new instance of AccountPolicyReference.

Parameters:

  • account_id (String)

    The AccountId of the AccountPolicy resource.

  • policy_name (String)

    The PolicyName of the AccountPolicy resource.

  • policy_type (String)

    The PolicyType of the AccountPolicy resource.



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 = 
  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_idString (readonly)

The AccountId of the AccountPolicy resource.

Returns:

  • (String)


22
23
24
# File 'interfaces/aws_logs/account_policy_reference.rb', line 22

def 
  @account_id
end

#policy_nameString (readonly)

The PolicyName of the AccountPolicy resource.

Returns:

  • (String)


26
27
28
# File 'interfaces/aws_logs/account_policy_reference.rb', line 26

def policy_name
  @policy_name
end

#policy_typeString (readonly)

The PolicyType of the AccountPolicy resource.

Returns:

  • (String)


30
31
32
# File 'interfaces/aws_logs/account_policy_reference.rb', line 30

def policy_type
  @policy_type
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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