Class: AWSCDK::DevOpsAgent::CfnService::MCPServerSplunkDetailsProperty

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

Overview

Splunk MCP server configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(authorization_config:, endpoint:, name:, description: nil) ⇒ MCPServerSplunkDetailsProperty

Returns a new instance of MCPServerSplunkDetailsProperty.

Parameters:



1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
# File 'dev_ops_agent/cfn_service.rb', line 1484

def initialize(authorization_config:, endpoint:, name:, description: nil)
  @authorization_config = authorization_config.is_a?(Hash) ? ::AWSCDK::DevOpsAgent::CfnService::MCPServerSplunkAuthorizationConfigProperty.new(**authorization_config.transform_keys(&:to_sym)) : authorization_config
  Jsii::Type.check_type(@authorization_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kZXZvcHNhZ2VudC5DZm5TZXJ2aWNlLk1DUFNlcnZlclNwbHVua0F1dGhvcml6YXRpb25Db25maWdQcm9wZXJ0eSJ9XX19")), "authorizationConfig")
  @endpoint = endpoint
  Jsii::Type.check_type(@endpoint, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "endpoint")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
end

Instance Attribute Details

#descriptionString? (readonly)

Optional description for the MCP server.



1514
1515
1516
# File 'dev_ops_agent/cfn_service.rb', line 1514

def description
  @description
end

#endpointString (readonly)

MCP server endpoint URL.



1504
1505
1506
# File 'dev_ops_agent/cfn_service.rb', line 1504

def endpoint
  @endpoint
end

#nameString (readonly)

MCP server name.



1509
1510
1511
# File 'dev_ops_agent/cfn_service.rb', line 1509

def name
  @name
end

Class Method Details

.jsii_propertiesObject



1516
1517
1518
1519
1520
1521
1522
1523
# File 'dev_ops_agent/cfn_service.rb', line 1516

def self.jsii_properties
  {
    :authorization_config => "authorizationConfig",
    :endpoint => "endpoint",
    :name => "name",
    :description => "description",
  }
end

Instance Method Details

#to_jsiiObject



1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
# File 'dev_ops_agent/cfn_service.rb', line 1525

def to_jsii
  result = {}
  result.merge!({
    "authorizationConfig" => @authorization_config,
    "endpoint" => @endpoint,
    "name" => @name,
    "description" => @description,
  })
  result.compact
end