Class: AWSCDK::DevOpsAgent::CfnAssociation::MCPServerNewRelicConfigurationProperty

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

Overview

Configuration for New Relic MCP server integration.

Defines the New Relic account ID and MCP server endpoint URL required for the Agent Space to authenticate and query observability data from New Relic.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(account_id:, endpoint:) ⇒ MCPServerNewRelicConfigurationProperty

Returns a new instance of MCPServerNewRelicConfigurationProperty.

Parameters:



1178
1179
1180
1181
1182
1183
# File 'dev_ops_agent/cfn_association.rb', line 1178

def initialize(account_id:, endpoint:)
  @account_id = 
  Jsii::Type.check_type(@account_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accountId")
  @endpoint = endpoint
  Jsii::Type.check_type(@endpoint, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "endpoint")
end

Instance Attribute Details

#account_idString (readonly)

New Relic Account ID.



1189
1190
1191
# File 'dev_ops_agent/cfn_association.rb', line 1189

def 
  @account_id
end

#endpointString (readonly)

MCP server endpoint URL (e.g., https://mcp.newrelic.com/mcp/).



1194
1195
1196
# File 'dev_ops_agent/cfn_association.rb', line 1194

def endpoint
  @endpoint
end

Class Method Details

.jsii_propertiesObject



1196
1197
1198
1199
1200
1201
# File 'dev_ops_agent/cfn_association.rb', line 1196

def self.jsii_properties
  {
    :account_id => "accountId",
    :endpoint => "endpoint",
  }
end

Instance Method Details

#to_jsiiObject



1203
1204
1205
1206
1207
1208
1209
1210
# File 'dev_ops_agent/cfn_association.rb', line 1203

def to_jsii
  result = {}
  result.merge!({
    "accountId" => @account_id,
    "endpoint" => @endpoint,
  })
  result.compact
end