Class: AWSCDK::DevOpsAgent::CfnService::MCPServerSigV4DetailsProperty

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

Overview

SigV4-authenticated MCP server configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of MCPServerSigV4DetailsProperty.

Parameters:



1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
# File 'dev_ops_agent/cfn_service.rb', line 1388

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



1418
1419
1420
# File 'dev_ops_agent/cfn_service.rb', line 1418

def description
  @description
end

#endpointString (readonly)

MCP server endpoint URL.



1408
1409
1410
# File 'dev_ops_agent/cfn_service.rb', line 1408

def endpoint
  @endpoint
end

#nameString (readonly)

MCP server name.



1413
1414
1415
# File 'dev_ops_agent/cfn_service.rb', line 1413

def name
  @name
end

Class Method Details

.jsii_propertiesObject



1420
1421
1422
1423
1424
1425
1426
1427
# File 'dev_ops_agent/cfn_service.rb', line 1420

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

Instance Method Details

#to_jsiiObject



1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
# File 'dev_ops_agent/cfn_service.rb', line 1429

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