Class: AWSCDK::DevOpsAgent::CfnAssociation::AWSConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
dev_ops_agent/cfn_association.rb

Overview

Configuration for AWS monitor account integration.

Specifies the account ID, assumable role ARN, and resources to be monitored in the primary monitoring account.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(account_id:, account_type:, assumable_role_arn:, resources: nil, tags: nil) ⇒ AWSConfigurationProperty

Returns a new instance of AWSConfigurationProperty.

Parameters:



562
563
564
565
566
567
568
569
570
571
572
573
# File 'dev_ops_agent/cfn_association.rb', line 562

def initialize(account_id:, account_type:, assumable_role_arn:, resources: nil, tags: nil)
  @account_id = 
  Jsii::Type.check_type(@account_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accountId")
  @account_type = 
  Jsii::Type.check_type(@account_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accountType")
  @assumable_role_arn = assumable_role_arn
  Jsii::Type.check_type(@assumable_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "assumableRoleArn")
  @resources = resources
  Jsii::Type.check_type(@resources, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZGV2b3BzYWdlbnQuQ2ZuQXNzb2NpYXRpb24uQVdTUmVzb3VyY2VQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "resources") unless @resources.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::DevOpsAgent::CfnAssociation::KeyValuePairProperty.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kZXZvcHNhZ2VudC5DZm5Bc3NvY2lhdGlvbi5LZXlWYWx1ZVBhaXJQcm9wZXJ0eSJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#account_idString (readonly)

Account ID corresponding to the provided resources.



579
580
581
# File 'dev_ops_agent/cfn_association.rb', line 579

def 
  @account_id
end

#account_typeString (readonly)

Account Type 'monitor' for AWS DevOps Agent monitoring.



584
585
586
# File 'dev_ops_agent/cfn_association.rb', line 584

def 
  @account_type
end

#assumable_role_arnString (readonly)

Role ARN used by AWS DevOps Agent to access resources in the primary account.



589
590
591
# File 'dev_ops_agent/cfn_association.rb', line 589

def assumable_role_arn
  @assumable_role_arn
end

#resourcesAWSCDK::IResolvable, ... (readonly)

List of resources to monitor.



594
595
596
# File 'dev_ops_agent/cfn_association.rb', line 594

def resources
  @resources
end

#tagsArray<AWSCDK::DevOpsAgent::CfnAssociation::KeyValuePairProperty>? (readonly)

List of tags as key-value pairs, used to identify resources for topology crawl.



599
600
601
# File 'dev_ops_agent/cfn_association.rb', line 599

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



601
602
603
604
605
606
607
608
609
# File 'dev_ops_agent/cfn_association.rb', line 601

def self.jsii_properties
  {
    :account_id => "accountId",
    :account_type => "accountType",
    :assumable_role_arn => "assumableRoleArn",
    :resources => "resources",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



611
612
613
614
615
616
617
618
619
620
621
# File 'dev_ops_agent/cfn_association.rb', line 611

def to_jsii
  result = {}
  result.merge!({
    "accountId" => @account_id,
    "accountType" => @account_type,
    "assumableRoleArn" => @assumable_role_arn,
    "resources" => @resources,
    "tags" => @tags,
  })
  result.compact
end