Class: AWSCDK::DevOpsAgent::CfnService::MCPServerDetailsProperty

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

Overview

MCP server configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of MCPServerDetailsProperty.

Parameters:



1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
# File 'dev_ops_agent/cfn_service.rb', line 1081

def initialize(authorization_config:, endpoint:, name:, description: nil)
  @authorization_config = authorization_config.is_a?(Hash) ? ::AWSCDK::DevOpsAgent::CfnService::MCPServerAuthorizationConfigProperty.new(**authorization_config.transform_keys(&:to_sym)) : authorization_config
  Jsii::Type.check_type(@authorization_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kZXZvcHNhZ2VudC5DZm5TZXJ2aWNlLk1DUFNlcnZlckF1dGhvcml6YXRpb25Db25maWdQcm9wZXJ0eSJ9XX19")), "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.



1111
1112
1113
# File 'dev_ops_agent/cfn_service.rb', line 1111

def description
  @description
end

#endpointString (readonly)

MCP server endpoint URL.



1101
1102
1103
# File 'dev_ops_agent/cfn_service.rb', line 1101

def endpoint
  @endpoint
end

#nameString (readonly)

MCP server name.



1106
1107
1108
# File 'dev_ops_agent/cfn_service.rb', line 1106

def name
  @name
end

Class Method Details

.jsii_propertiesObject



1113
1114
1115
1116
1117
1118
1119
1120
# File 'dev_ops_agent/cfn_service.rb', line 1113

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

Instance Method Details

#to_jsiiObject



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

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