Class: AWSCDK::DevOpsAgent::CfnService::NewRelicAuthorizationConfigProperty

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

Overview

New Relic authorization configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key:) ⇒ NewRelicAuthorizationConfigProperty

Returns a new instance of NewRelicAuthorizationConfigProperty.

Parameters:



1627
1628
1629
1630
# File 'dev_ops_agent/cfn_service.rb', line 1627

def initialize(api_key:)
  @api_key = api_key.is_a?(Hash) ? ::AWSCDK::DevOpsAgent::CfnService::NewRelicAPIKeyConfigProperty.new(**api_key.transform_keys(&:to_sym)) : api_key
  Jsii::Type.check_type(@api_key, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kZXZvcHNhZ2VudC5DZm5TZXJ2aWNlLk5ld1JlbGljQXBpS2V5Q29uZmlnUHJvcGVydHkifV19fQ==")), "apiKey")
end

Class Method Details

.jsii_propertiesObject



1638
1639
1640
1641
1642
# File 'dev_ops_agent/cfn_service.rb', line 1638

def self.jsii_properties
  {
    :api_key => "apiKey",
  }
end

Instance Method Details

#to_jsiiObject



1644
1645
1646
1647
1648
1649
1650
# File 'dev_ops_agent/cfn_service.rb', line 1644

def to_jsii
  result = {}
  result.merge!({
    "apiKey" => @api_key,
  })
  result.compact
end