Class: AWSCDK::DevOpsAgent::CfnService::NewRelicAPIKeyConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DevOpsAgent::CfnService::NewRelicAPIKeyConfigProperty
- Defined in:
- dev_ops_agent/cfn_service.rb
Overview
New Relic API key configuration.
Instance Attribute Summary collapse
-
#account_id ⇒ String
readonly
New Relic Account ID.
-
#alert_policy_ids ⇒ Array<String>?
readonly
List of alert policy IDs.
-
#api_key ⇒ String
readonly
New Relic User API Key.
-
#application_ids ⇒ Array<String>?
readonly
List of monitored APM application IDs.
-
#entity_guids ⇒ Array<String>?
readonly
List of globally unique IDs for New Relic resources.
-
#region ⇒ String
readonly
New Relic region.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(account_id:, api_key:, region:, alert_policy_ids: nil, application_ids: nil, entity_guids: nil) ⇒ NewRelicAPIKeyConfigProperty
constructor
A new instance of NewRelicAPIKeyConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(account_id:, api_key:, region:, alert_policy_ids: nil, application_ids: nil, entity_guids: nil) ⇒ NewRelicAPIKeyConfigProperty
Returns a new instance of NewRelicAPIKeyConfigProperty.
1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 |
# File 'dev_ops_agent/cfn_service.rb', line 1549 def initialize(account_id:, api_key:, region:, alert_policy_ids: nil, application_ids: nil, entity_guids: nil) @account_id = account_id Jsii::Type.check_type(@account_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accountId") @api_key = api_key Jsii::Type.check_type(@api_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "apiKey") @region = region Jsii::Type.check_type(@region, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "region") @alert_policy_ids = alert_policy_ids Jsii::Type.check_type(@alert_policy_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "alertPolicyIds") unless @alert_policy_ids.nil? @application_ids = application_ids Jsii::Type.check_type(@application_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "applicationIds") unless @application_ids.nil? @entity_guids = entity_guids Jsii::Type.check_type(@entity_guids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "entityGuids") unless @entity_guids.nil? end |
Instance Attribute Details
#account_id ⇒ String (readonly)
New Relic Account ID.
1568 1569 1570 |
# File 'dev_ops_agent/cfn_service.rb', line 1568 def account_id @account_id end |
#alert_policy_ids ⇒ Array<String>? (readonly)
List of alert policy IDs.
1583 1584 1585 |
# File 'dev_ops_agent/cfn_service.rb', line 1583 def alert_policy_ids @alert_policy_ids end |
#api_key ⇒ String (readonly)
New Relic User API Key.
1573 1574 1575 |
# File 'dev_ops_agent/cfn_service.rb', line 1573 def api_key @api_key end |
#application_ids ⇒ Array<String>? (readonly)
List of monitored APM application IDs.
1588 1589 1590 |
# File 'dev_ops_agent/cfn_service.rb', line 1588 def application_ids @application_ids end |
#entity_guids ⇒ Array<String>? (readonly)
List of globally unique IDs for New Relic resources.
1593 1594 1595 |
# File 'dev_ops_agent/cfn_service.rb', line 1593 def entity_guids @entity_guids end |
#region ⇒ String (readonly)
New Relic region.
1578 1579 1580 |
# File 'dev_ops_agent/cfn_service.rb', line 1578 def region @region end |
Class Method Details
.jsii_properties ⇒ Object
1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 |
# File 'dev_ops_agent/cfn_service.rb', line 1595 def self.jsii_properties { :account_id => "accountId", :api_key => "apiKey", :region => "region", :alert_policy_ids => "alertPolicyIds", :application_ids => "applicationIds", :entity_guids => "entityGuids", } end |
Instance Method Details
#to_jsii ⇒ Object
1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 |
# File 'dev_ops_agent/cfn_service.rb', line 1606 def to_jsii result = {} result.merge!({ "accountId" => @account_id, "apiKey" => @api_key, "region" => @region, "alertPolicyIds" => @alert_policy_ids, "applicationIds" => @application_ids, "entityGuids" => @entity_guids, }) result.compact end |