aws-sdk-agentdiscovery 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,162 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::AgentDiscovery
12
+ # @api private
13
+ module ClientApi
14
+
15
+ include Seahorse::Model
16
+
17
+ ArdErrorCode = Shapes::StringShape.new(name: 'ArdErrorCode')
18
+ DescriptorEntry = Shapes::StructureShape.new(name: 'DescriptorEntry')
19
+ DescriptorMap = Shapes::MapShape.new(name: 'DescriptorMap')
20
+ DescriptorSource = Shapes::StructureShape.new(name: 'DescriptorSource')
21
+ DescriptorSourceUrl = Shapes::StructureShape.new(name: 'DescriptorSourceUrl')
22
+ DomainName = Shapes::StringShape.new(name: 'DomainName')
23
+ Identifier = Shapes::UnionShape.new(name: 'Identifier')
24
+ InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
25
+ ProvenanceLink = Shapes::StructureShape.new(name: 'ProvenanceLink')
26
+ ProvenanceLinkList = Shapes::ListShape.new(name: 'ProvenanceLinkList')
27
+ ProvenanceRelation = Shapes::StringShape.new(name: 'ProvenanceRelation')
28
+ PublicRecord = Shapes::StructureShape.new(name: 'PublicRecord')
29
+ PublicRecordList = Shapes::ListShape.new(name: 'PublicRecordList')
30
+ RecordType = Shapes::StringShape.new(name: 'RecordType')
31
+ SearchFilterExpression = Shapes::DocumentShape.new(name: 'SearchFilterExpression', document: true)
32
+ SearchPublicRecordsRequest = Shapes::StructureShape.new(name: 'SearchPublicRecordsRequest')
33
+ SearchPublicRecordsResponse = Shapes::StructureShape.new(name: 'SearchPublicRecordsResponse')
34
+ ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
35
+ Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
36
+ TrustManifest = Shapes::StructureShape.new(name: 'TrustManifest')
37
+ TrustManifestList = Shapes::ListShape.new(name: 'TrustManifestList')
38
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
39
+ description = Shapes::StringShape.new(name: 'description')
40
+ descriptorData = Shapes::StringShape.new(name: 'descriptorData')
41
+ descriptorSlotKey = Shapes::StringShape.new(name: 'descriptorSlotKey')
42
+ descriptorTypeVersion = Shapes::StringShape.new(name: 'descriptorTypeVersion')
43
+ displayName = Shapes::StringShape.new(name: 'displayName')
44
+ errorMessage = Shapes::StringShape.new(name: 'errorMessage')
45
+ identifierUri = Shapes::StringShape.new(name: 'identifierUri')
46
+ maxResults = Shapes::IntegerShape.new(name: 'maxResults')
47
+ nextToken = Shapes::StringShape.new(name: 'nextToken')
48
+ recordVersion = Shapes::StringShape.new(name: 'recordVersion')
49
+ searchQuery = Shapes::StringShape.new(name: 'searchQuery')
50
+ trustUri = Shapes::StringShape.new(name: 'trustUri')
51
+ url = Shapes::StringShape.new(name: 'url')
52
+
53
+ DescriptorEntry.add_member(:data, Shapes::ShapeRef.new(shape: descriptorData, location_name: "data"))
54
+ DescriptorEntry.add_member(:version, Shapes::ShapeRef.new(shape: descriptorTypeVersion, location_name: "version"))
55
+ DescriptorEntry.add_member(:source, Shapes::ShapeRef.new(shape: DescriptorSource, location_name: "source"))
56
+ DescriptorEntry.add_member(:additional_data, Shapes::ShapeRef.new(shape: DescriptorMap, location_name: "additionalData"))
57
+ DescriptorEntry.struct_class = Types::DescriptorEntry
58
+
59
+ DescriptorMap.key = Shapes::ShapeRef.new(shape: descriptorSlotKey)
60
+ DescriptorMap.value = Shapes::ShapeRef.new(shape: DescriptorEntry)
61
+
62
+ DescriptorSource.add_member(:from_url, Shapes::ShapeRef.new(shape: DescriptorSourceUrl, location_name: "fromUrl"))
63
+ DescriptorSource.struct_class = Types::DescriptorSource
64
+
65
+ DescriptorSourceUrl.add_member(:url, Shapes::ShapeRef.new(shape: url, required: true, location_name: "url"))
66
+ DescriptorSourceUrl.struct_class = Types::DescriptorSourceUrl
67
+
68
+ Identifier.add_member(:domain, Shapes::ShapeRef.new(shape: DomainName, location_name: "domain"))
69
+ Identifier.add_member(:uri, Shapes::ShapeRef.new(shape: identifierUri, location_name: "uri"))
70
+ Identifier.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
71
+ Identifier.add_member_subclass(:domain, Types::Identifier::Domain)
72
+ Identifier.add_member_subclass(:uri, Types::Identifier::Uri)
73
+ Identifier.add_member_subclass(:unknown, Types::Identifier::Unknown)
74
+ Identifier.struct_class = Types::Identifier
75
+
76
+ InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
77
+ InternalServerException.add_member(:error_code, Shapes::ShapeRef.new(shape: ArdErrorCode, location_name: "errorCode"))
78
+ InternalServerException.struct_class = Types::InternalServerException
79
+
80
+ ProvenanceLink.add_member(:relation, Shapes::ShapeRef.new(shape: ProvenanceRelation, required: true, location_name: "relation"))
81
+ ProvenanceLink.add_member(:source_id, Shapes::ShapeRef.new(shape: trustUri, required: true, location_name: "sourceId"))
82
+ ProvenanceLink.struct_class = Types::ProvenanceLink
83
+
84
+ ProvenanceLinkList.member = Shapes::ShapeRef.new(shape: ProvenanceLink)
85
+
86
+ PublicRecord.add_member(:identifier, Shapes::ShapeRef.new(shape: Identifier, required: true, location_name: "identifier"))
87
+ PublicRecord.add_member(:display_name, Shapes::ShapeRef.new(shape: displayName, required: true, location_name: "displayName"))
88
+ PublicRecord.add_member(:description, Shapes::ShapeRef.new(shape: description, location_name: "description"))
89
+ PublicRecord.add_member(:record_type, Shapes::ShapeRef.new(shape: RecordType, required: true, location_name: "recordType"))
90
+ PublicRecord.add_member(:domain, Shapes::ShapeRef.new(shape: DomainName, location_name: "domain"))
91
+ PublicRecord.add_member(:descriptors, Shapes::ShapeRef.new(shape: DescriptorMap, location_name: "descriptors"))
92
+ PublicRecord.add_member(:trust_manifests, Shapes::ShapeRef.new(shape: TrustManifestList, location_name: "trustManifests"))
93
+ PublicRecord.add_member(:record_version, Shapes::ShapeRef.new(shape: recordVersion, location_name: "recordVersion"))
94
+ PublicRecord.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdAt"))
95
+ PublicRecord.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "updatedAt"))
96
+ PublicRecord.struct_class = Types::PublicRecord
97
+
98
+ PublicRecordList.member = Shapes::ShapeRef.new(shape: PublicRecord)
99
+
100
+ SearchPublicRecordsRequest.add_member(:search_query, Shapes::ShapeRef.new(shape: searchQuery, location_name: "query"))
101
+ SearchPublicRecordsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: SearchFilterExpression, location_name: "filters"))
102
+ SearchPublicRecordsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: maxResults, location_name: "maxResults"))
103
+ SearchPublicRecordsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "nextToken"))
104
+ SearchPublicRecordsRequest.struct_class = Types::SearchPublicRecordsRequest
105
+
106
+ SearchPublicRecordsResponse.add_member(:records, Shapes::ShapeRef.new(shape: PublicRecordList, required: true, location_name: "records"))
107
+ SearchPublicRecordsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "nextToken"))
108
+ SearchPublicRecordsResponse.struct_class = Types::SearchPublicRecordsResponse
109
+
110
+ ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
111
+ ThrottlingException.add_member(:error_code, Shapes::ShapeRef.new(shape: ArdErrorCode, location_name: "errorCode"))
112
+ ThrottlingException.struct_class = Types::ThrottlingException
113
+
114
+ TrustManifest.add_member(:contributor, Shapes::ShapeRef.new(shape: trustUri, required: true, location_name: "contributor"))
115
+ TrustManifest.add_member(:provenance, Shapes::ShapeRef.new(shape: ProvenanceLinkList, location_name: "provenance"))
116
+ TrustManifest.struct_class = Types::TrustManifest
117
+
118
+ TrustManifestList.member = Shapes::ShapeRef.new(shape: TrustManifest)
119
+
120
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
121
+ ValidationException.add_member(:error_code, Shapes::ShapeRef.new(shape: ArdErrorCode, location_name: "errorCode"))
122
+ ValidationException.struct_class = Types::ValidationException
123
+
124
+
125
+ # @api private
126
+ API = Seahorse::Model::Api.new.tap do |api|
127
+
128
+ api.version = "2022-07-26"
129
+
130
+ api.metadata = {
131
+ "apiVersion" => "2022-07-26",
132
+ "auth" => ["aws.auth#sigv4"],
133
+ "endpointPrefix" => "agent-discovery",
134
+ "protocol" => "rest-json",
135
+ "protocols" => ["rest-json"],
136
+ "serviceFullName" => "Agent Discovery",
137
+ "serviceId" => "Agent Discovery",
138
+ "signatureVersion" => "v4",
139
+ "signingName" => "agent-discovery",
140
+ "uid" => "agent-discovery-2022-07-26",
141
+ }
142
+
143
+ api.add_operation(:search_public_records, Seahorse::Model::Operation.new.tap do |o|
144
+ o.name = "SearchPublicRecords"
145
+ o.http_method = "POST"
146
+ o.http_request_uri = "/records/search"
147
+ o.input = Shapes::ShapeRef.new(shape: SearchPublicRecordsRequest)
148
+ o.output = Shapes::ShapeRef.new(shape: SearchPublicRecordsResponse)
149
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
150
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
151
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
152
+ o[:pager] = Aws::Pager.new(
153
+ limit_key: "max_results",
154
+ tokens: {
155
+ "next_token" => "next_token"
156
+ }
157
+ )
158
+ end)
159
+ end
160
+
161
+ end
162
+ end
File without changes
@@ -0,0 +1,69 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::AgentDiscovery
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS Region the client is configured for. us-east-1, eu-west-1 and ap-northeast-1 resolve to their own Regional endpoint; any other Region resolves to the standard Regional pattern, which Agent Discovery does not serve.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_fips
19
+ # When true, send the request to a FIPS-compliant endpoint. Agent Discovery has none, so this is an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_dual_stack
24
+ # When true, send the request to a dual-stack endpoint. Agent Discovery&#39;s Regional endpoints already are, so they resolve unchanged.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request.
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_fips,
36
+ :use_dual_stack,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseFIPS' => :use_fips,
46
+ 'UseDualStack' => :use_dual_stack,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_fips] = options[:use_fips]
54
+ self[:use_fips] = false if self[:use_fips].nil?
55
+ self[:use_dual_stack] = options[:use_dual_stack]
56
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
57
+ self[:endpoint] = options[:endpoint]
58
+ end
59
+
60
+ def self.create(config, options={})
61
+ new({
62
+ region: config.region,
63
+ use_fips: config.use_fips_endpoint,
64
+ use_dual_stack: config.use_dualstack_endpoint,
65
+ endpoint: (config.endpoint.to_s unless config.regional_endpoint),
66
+ }.merge(options))
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::AgentDiscovery
11
+ class EndpointProvider
12
+ def resolve_endpoint(parameters)
13
+ if Aws::Endpoints::Matchers.set?(parameters.endpoint)
14
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
15
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
16
+ end
17
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
18
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
19
+ end
20
+ return Aws::Endpoints::Endpoint.new(url: parameters.endpoint)
21
+ end
22
+ if Aws::Endpoints::Matchers.set?(parameters.region) && (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
23
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
24
+ raise ArgumentError, "FIPS is enabled but Agent Discovery does not have a FIPS endpoint"
25
+ end
26
+ if Aws::Endpoints::Matchers.string_equals?(parameters.region, "us-east-1")
27
+ return Aws::Endpoints::Endpoint.new(url: "https://agent-discovery.us-east-1.api.aws", properties: {"authSchemes" => [{"name" => "sigv4", "signingName" => "agent-discovery", "signingRegion" => "us-east-1"}]})
28
+ end
29
+ if Aws::Endpoints::Matchers.string_equals?(parameters.region, "eu-west-1")
30
+ return Aws::Endpoints::Endpoint.new(url: "https://agent-discovery.eu-west-1.api.aws", properties: {"authSchemes" => [{"name" => "sigv4", "signingName" => "agent-discovery", "signingRegion" => "eu-west-1"}]})
31
+ end
32
+ if Aws::Endpoints::Matchers.string_equals?(parameters.region, "ap-northeast-1")
33
+ return Aws::Endpoints::Endpoint.new(url: "https://agent-discovery.ap-northeast-1.api.aws", properties: {"authSchemes" => [{"name" => "sigv4", "signingName" => "agent-discovery", "signingRegion" => "ap-northeast-1"}]})
34
+ end
35
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
36
+ return Aws::Endpoints::Endpoint.new(url: "https://agent-discovery.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}")
37
+ end
38
+ return Aws::Endpoints::Endpoint.new(url: "https://agent-discovery.#{parameters.region}.#{partition_result['dnsSuffix']}")
39
+ end
40
+ raise ArgumentError, "Invalid Configuration: Missing Region"
41
+ raise ArgumentError, 'No endpoint could be resolved'
42
+
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::AgentDiscovery
12
+ # @api private
13
+ module Endpoints
14
+
15
+
16
+ def self.parameters_for_operation(context)
17
+ Aws::AgentDiscovery::EndpointParameters.create(context.config)
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,109 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::AgentDiscovery
11
+
12
+ # When AgentDiscovery returns an error response, the Ruby SDK constructs and raises an error.
13
+ # These errors all extend Aws::AgentDiscovery::Errors::ServiceError < {Aws::Errors::ServiceError}
14
+ #
15
+ # You can rescue all AgentDiscovery errors using ServiceError:
16
+ #
17
+ # begin
18
+ # # do stuff
19
+ # rescue Aws::AgentDiscovery::Errors::ServiceError
20
+ # # rescues all AgentDiscovery API errors
21
+ # end
22
+ #
23
+ #
24
+ # ## Request Context
25
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
26
+ # information about the request that generated the error.
27
+ # See {Seahorse::Client::RequestContext} for more information.
28
+ #
29
+ # ## Error Classes
30
+ # * {InternalServerException}
31
+ # * {ThrottlingException}
32
+ # * {ValidationException}
33
+ #
34
+ # Additionally, error classes are dynamically generated for service errors based on the error code
35
+ # if they are not defined above.
36
+ module Errors
37
+
38
+ extend Aws::Errors::DynamicErrors
39
+
40
+ class InternalServerException < ServiceError
41
+
42
+ # @param [Seahorse::Client::RequestContext] context
43
+ # @param [String] message
44
+ # @param [Aws::AgentDiscovery::Types::InternalServerException] data
45
+ def initialize(context, message, data = Aws::EmptyStructure.new)
46
+ super(context, message, data)
47
+ end
48
+
49
+ # @return [String]
50
+ def message
51
+ @message || @data[:message]
52
+ end
53
+
54
+ # @return [String]
55
+ def error_code
56
+ @data[:error_code]
57
+ end
58
+ end
59
+
60
+ class ThrottlingException < ServiceError
61
+
62
+ # @param [Seahorse::Client::RequestContext] context
63
+ # @param [String] message
64
+ # @param [Aws::AgentDiscovery::Types::ThrottlingException] data
65
+ def initialize(context, message, data = Aws::EmptyStructure.new)
66
+ super(context, message, data)
67
+ end
68
+
69
+ # @return [String]
70
+ def message
71
+ @message || @data[:message]
72
+ end
73
+
74
+ # @return [String]
75
+ def error_code
76
+ @data[:error_code]
77
+ end
78
+
79
+ def retryable?
80
+ true
81
+ end
82
+
83
+ def throttling?
84
+ true
85
+ end
86
+ end
87
+
88
+ class ValidationException < ServiceError
89
+
90
+ # @param [Seahorse::Client::RequestContext] context
91
+ # @param [String] message
92
+ # @param [Aws::AgentDiscovery::Types::ValidationException] data
93
+ def initialize(context, message, data = Aws::EmptyStructure.new)
94
+ super(context, message, data)
95
+ end
96
+
97
+ # @return [String]
98
+ def message
99
+ @message || @data[:message]
100
+ end
101
+
102
+ # @return [String]
103
+ def error_code
104
+ @data[:error_code]
105
+ end
106
+ end
107
+
108
+ end
109
+ end
@@ -0,0 +1,77 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::AgentDiscovery
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::AgentDiscovery::EndpointProvider',
17
+ rbs_type: 'untyped',
18
+ docstring: <<~DOCS) do |_cfg|
19
+ The endpoint provider used to resolve endpoints. Any object that responds to
20
+ `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
21
+ `Aws::AgentDiscovery::EndpointParameters`.
22
+ DOCS
23
+ Aws::AgentDiscovery::EndpointProvider.new
24
+ end
25
+
26
+ # @api private
27
+ class Handler < Seahorse::Client::Handler
28
+ def call(context)
29
+ unless context[:discovered_endpoint]
30
+ params = Aws::AgentDiscovery::Endpoints.parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+
36
+ context[:endpoint_params] = params
37
+ context[:endpoint_properties] = endpoint.properties
38
+ end
39
+
40
+ context[:auth_scheme] =
41
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
42
+
43
+ with_metrics(context) { @handler.call(context) }
44
+ end
45
+
46
+ private
47
+
48
+ def with_metrics(context, &block)
49
+ metrics = []
50
+ metrics << 'ENDPOINT_OVERRIDE' unless context.config.regional_endpoint
51
+ if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a'
52
+ metrics << 'SIGV4A_SIGNING'
53
+ end
54
+ if context.config.credentials&.credentials&.account_id
55
+ metrics << 'RESOLVED_ACCOUNT_ID'
56
+ end
57
+ Aws::Plugins::UserAgent.metric(*metrics, &block)
58
+ end
59
+
60
+ def apply_endpoint_headers(context, headers)
61
+ headers.each do |key, values|
62
+ value = values
63
+ .compact
64
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
65
+ .join(',')
66
+
67
+ context.http_request.headers[key] = value
68
+ end
69
+ end
70
+ end
71
+
72
+ def add_handlers(handlers, _config)
73
+ handlers.add(Handler, step: :build, priority: 75)
74
+ end
75
+ end
76
+ end
77
+ end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::AgentDiscovery
11
+
12
+ class Resource
13
+
14
+ # @param options ({})
15
+ # @option options [Client] :client
16
+ def initialize(options = {})
17
+ @client = options[:client] || Client.new(options)
18
+ end
19
+
20
+ # @return [Client]
21
+ def client
22
+ @client
23
+ end
24
+
25
+ end
26
+ end