Class: AWSCDK::DevOpsAgent::CfnAssociation::MCPServerGrafanaConfigurationProperty

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

Overview

Grafana MCP server configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(endpoint:, enable_webhook_updates: nil, tools: nil) ⇒ MCPServerGrafanaConfigurationProperty

Returns a new instance of MCPServerGrafanaConfigurationProperty.

Parameters:

  • endpoint (String)

    MCP server endpoint URL.

  • enable_webhook_updates (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    When set to true, enables the Agent Space to create and update webhooks for receiving notifications and events from the service.

  • tools (Array<String>, nil) (defaults to: nil)

    List of tool categories to enable for the Grafana MCP server.



1124
1125
1126
1127
1128
1129
1130
1131
# File 'dev_ops_agent/cfn_association.rb', line 1124

def initialize(endpoint:, enable_webhook_updates: nil, tools: nil)
  @endpoint = endpoint
  Jsii::Type.check_type(@endpoint, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "endpoint")
  @enable_webhook_updates = enable_webhook_updates
  Jsii::Type.check_type(@enable_webhook_updates, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enableWebhookUpdates") unless @enable_webhook_updates.nil?
  @tools = tools
  Jsii::Type.check_type(@tools, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tools") unless @tools.nil?
end

Instance Attribute Details

#enable_webhook_updatesBoolean, ... (readonly)

When set to true, enables the Agent Space to create and update webhooks for receiving notifications and events from the service.



1142
1143
1144
# File 'dev_ops_agent/cfn_association.rb', line 1142

def enable_webhook_updates
  @enable_webhook_updates
end

#endpointString (readonly)

MCP server endpoint URL.



1137
1138
1139
# File 'dev_ops_agent/cfn_association.rb', line 1137

def endpoint
  @endpoint
end

#toolsArray<String>? (readonly)

List of tool categories to enable for the Grafana MCP server.



1147
1148
1149
# File 'dev_ops_agent/cfn_association.rb', line 1147

def tools
  @tools
end

Class Method Details

.jsii_propertiesObject



1149
1150
1151
1152
1153
1154
1155
# File 'dev_ops_agent/cfn_association.rb', line 1149

def self.jsii_properties
  {
    :endpoint => "endpoint",
    :enable_webhook_updates => "enableWebhookUpdates",
    :tools => "tools",
  }
end

Instance Method Details

#to_jsiiObject



1157
1158
1159
1160
1161
1162
1163
1164
1165
# File 'dev_ops_agent/cfn_association.rb', line 1157

def to_jsii
  result = {}
  result.merge!({
    "endpoint" => @endpoint,
    "enableWebhookUpdates" => @enable_webhook_updates,
    "tools" => @tools,
  })
  result.compact
end