aws-sdk-agentregistry 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.
- checksums.yaml +7 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-agentregistry/client.rb +725 -0
- data/lib/aws-sdk-agentregistry/client_api.rb +306 -0
- data/lib/aws-sdk-agentregistry/customizations.rb +0 -0
- data/lib/aws-sdk-agentregistry/endpoint_parameters.rb +49 -0
- data/lib/aws-sdk-agentregistry/endpoint_provider.rb +24 -0
- data/lib/aws-sdk-agentregistry/endpoints.rb +20 -0
- data/lib/aws-sdk-agentregistry/errors.rb +144 -0
- data/lib/aws-sdk-agentregistry/plugins/endpoints.rb +77 -0
- data/lib/aws-sdk-agentregistry/resource.rb +26 -0
- data/lib/aws-sdk-agentregistry/types.rb +680 -0
- data/lib/aws-sdk-agentregistry.rb +61 -0
- data/sig/client.rbs +132 -0
- data/sig/errors.rbs +36 -0
- data/sig/resource.rbs +85 -0
- data/sig/types.rbs +206 -0
- metadata +95 -0
|
@@ -0,0 +1,306 @@
|
|
|
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::AgentRegistry
|
|
12
|
+
# @api private
|
|
13
|
+
module ClientApi
|
|
14
|
+
|
|
15
|
+
include Seahorse::Model
|
|
16
|
+
|
|
17
|
+
A2aAgentCardDescriptor = Shapes::StructureShape.new(name: 'A2aAgentCardDescriptor')
|
|
18
|
+
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
|
19
|
+
AgentSkillsAdditionalData = Shapes::StructureShape.new(name: 'AgentSkillsAdditionalData')
|
|
20
|
+
AgentSkillsDefinitionDescriptor = Shapes::StructureShape.new(name: 'AgentSkillsDefinitionDescriptor')
|
|
21
|
+
AgentSkillsMdDescriptor = Shapes::StructureShape.new(name: 'AgentSkillsMdDescriptor')
|
|
22
|
+
BatchGetDiscoverableRegistryRecordError = Shapes::StructureShape.new(name: 'BatchGetDiscoverableRegistryRecordError')
|
|
23
|
+
BatchGetDiscoverableRegistryRecordErrorCode = Shapes::StringShape.new(name: 'BatchGetDiscoverableRegistryRecordErrorCode')
|
|
24
|
+
BatchGetDiscoverableRegistryRecordErrorList = Shapes::ListShape.new(name: 'BatchGetDiscoverableRegistryRecordErrorList')
|
|
25
|
+
BatchGetDiscoverableRegistryRecordRequest = Shapes::StructureShape.new(name: 'BatchGetDiscoverableRegistryRecordRequest')
|
|
26
|
+
BatchGetDiscoverableRegistryRecordRequestEntriesList = Shapes::ListShape.new(name: 'BatchGetDiscoverableRegistryRecordRequestEntriesList')
|
|
27
|
+
BatchGetDiscoverableRegistryRecordResponse = Shapes::StructureShape.new(name: 'BatchGetDiscoverableRegistryRecordResponse')
|
|
28
|
+
CustomDescriptor = Shapes::StructureShape.new(name: 'CustomDescriptor')
|
|
29
|
+
DataSchemaVersion = Shapes::StringShape.new(name: 'DataSchemaVersion')
|
|
30
|
+
DateTimestamp = Shapes::TimestampShape.new(name: 'DateTimestamp', timestampFormat: "iso8601")
|
|
31
|
+
Description = Shapes::StringShape.new(name: 'Description')
|
|
32
|
+
DescriptorData = Shapes::StringShape.new(name: 'DescriptorData')
|
|
33
|
+
DescriptorSource = Shapes::StructureShape.new(name: 'DescriptorSource')
|
|
34
|
+
DescriptorSourceFromUrl = Shapes::StructureShape.new(name: 'DescriptorSourceFromUrl')
|
|
35
|
+
DescriptorSourceUrl = Shapes::StringShape.new(name: 'DescriptorSourceUrl')
|
|
36
|
+
Descriptors = Shapes::StructureShape.new(name: 'Descriptors')
|
|
37
|
+
DiscoverableFilterValues = Shapes::ListShape.new(name: 'DiscoverableFilterValues')
|
|
38
|
+
DiscoverableRegistryRecordSummary = Shapes::StructureShape.new(name: 'DiscoverableRegistryRecordSummary')
|
|
39
|
+
DiscoverableRegistryRecordSummaryList = Shapes::ListShape.new(name: 'DiscoverableRegistryRecordSummaryList')
|
|
40
|
+
FilterValue = Shapes::StringShape.new(name: 'FilterValue')
|
|
41
|
+
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
|
42
|
+
ListDiscoverableRegistryRecordsRequest = Shapes::StructureShape.new(name: 'ListDiscoverableRegistryRecordsRequest')
|
|
43
|
+
ListDiscoverableRegistryRecordsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListDiscoverableRegistryRecordsRequestMaxResultsInteger')
|
|
44
|
+
ListDiscoverableRegistryRecordsRequestNextTokenString = Shapes::StringShape.new(name: 'ListDiscoverableRegistryRecordsRequestNextTokenString')
|
|
45
|
+
ListDiscoverableRegistryRecordsResponse = Shapes::StructureShape.new(name: 'ListDiscoverableRegistryRecordsResponse')
|
|
46
|
+
McpServerAdditionalData = Shapes::StructureShape.new(name: 'McpServerAdditionalData')
|
|
47
|
+
McpServerDescriptor = Shapes::StructureShape.new(name: 'McpServerDescriptor')
|
|
48
|
+
McpToolsDescriptor = Shapes::StructureShape.new(name: 'McpToolsDescriptor')
|
|
49
|
+
MetadataFilterExpression = Shapes::DocumentShape.new(name: 'MetadataFilterExpression', document: true)
|
|
50
|
+
NonBlankString = Shapes::StringShape.new(name: 'NonBlankString')
|
|
51
|
+
RecordIdentifier = Shapes::StringShape.new(name: 'RecordIdentifier')
|
|
52
|
+
RecordType = Shapes::StringShape.new(name: 'RecordType')
|
|
53
|
+
RegistryArn = Shapes::StringShape.new(name: 'RegistryArn')
|
|
54
|
+
RegistryIdentifier = Shapes::StringShape.new(name: 'RegistryIdentifier')
|
|
55
|
+
RegistryRecordArn = Shapes::StringShape.new(name: 'RegistryRecordArn')
|
|
56
|
+
RegistryRecordDisplayName = Shapes::StringShape.new(name: 'RegistryRecordDisplayName')
|
|
57
|
+
RegistryRecordFilter = Shapes::StructureShape.new(name: 'RegistryRecordFilter')
|
|
58
|
+
RegistryRecordFilterList = Shapes::ListShape.new(name: 'RegistryRecordFilterList')
|
|
59
|
+
RegistryRecordFilterName = Shapes::StringShape.new(name: 'RegistryRecordFilterName')
|
|
60
|
+
RegistryRecordId = Shapes::StringShape.new(name: 'RegistryRecordId')
|
|
61
|
+
RegistryRecordName = Shapes::StringShape.new(name: 'RegistryRecordName')
|
|
62
|
+
RegistryRecordStatus = Shapes::StringShape.new(name: 'RegistryRecordStatus')
|
|
63
|
+
RegistryRecordSummary = Shapes::StructureShape.new(name: 'RegistryRecordSummary')
|
|
64
|
+
RegistryRecordSummaryList = Shapes::ListShape.new(name: 'RegistryRecordSummaryList')
|
|
65
|
+
RegistryRecordVersion = Shapes::StringShape.new(name: 'RegistryRecordVersion')
|
|
66
|
+
RegistryRecordsEntry = Shapes::StructureShape.new(name: 'RegistryRecordsEntry')
|
|
67
|
+
RegistryRecordsEntryRecordIdsList = Shapes::ListShape.new(name: 'RegistryRecordsEntryRecordIdsList')
|
|
68
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
|
69
|
+
SearchDiscoverableRegistryRecordsRequest = Shapes::StructureShape.new(name: 'SearchDiscoverableRegistryRecordsRequest')
|
|
70
|
+
SearchDiscoverableRegistryRecordsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'SearchDiscoverableRegistryRecordsRequestMaxResultsInteger')
|
|
71
|
+
SearchDiscoverableRegistryRecordsRequestRegistryIdsList = Shapes::ListShape.new(name: 'SearchDiscoverableRegistryRecordsRequestRegistryIdsList')
|
|
72
|
+
SearchDiscoverableRegistryRecordsResponse = Shapes::StructureShape.new(name: 'SearchDiscoverableRegistryRecordsResponse')
|
|
73
|
+
SearchQuery = Shapes::StringShape.new(name: 'SearchQuery')
|
|
74
|
+
String = Shapes::StringShape.new(name: 'String')
|
|
75
|
+
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
|
76
|
+
UnauthorizedException = Shapes::StructureShape.new(name: 'UnauthorizedException')
|
|
77
|
+
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
|
78
|
+
ValidationExceptionField = Shapes::StructureShape.new(name: 'ValidationExceptionField')
|
|
79
|
+
ValidationExceptionFieldList = Shapes::ListShape.new(name: 'ValidationExceptionFieldList')
|
|
80
|
+
ValidationExceptionReason = Shapes::StringShape.new(name: 'ValidationExceptionReason')
|
|
81
|
+
|
|
82
|
+
A2aAgentCardDescriptor.add_member(:data, Shapes::ShapeRef.new(shape: DescriptorData, location_name: "data"))
|
|
83
|
+
A2aAgentCardDescriptor.add_member(:data_schema_version, Shapes::ShapeRef.new(shape: DataSchemaVersion, location_name: "dataSchemaVersion"))
|
|
84
|
+
A2aAgentCardDescriptor.add_member(:source, Shapes::ShapeRef.new(shape: DescriptorSource, location_name: "source"))
|
|
85
|
+
A2aAgentCardDescriptor.struct_class = Types::A2aAgentCardDescriptor
|
|
86
|
+
|
|
87
|
+
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
|
88
|
+
AccessDeniedException.struct_class = Types::AccessDeniedException
|
|
89
|
+
|
|
90
|
+
AgentSkillsAdditionalData.add_member(:skill_md, Shapes::ShapeRef.new(shape: AgentSkillsMdDescriptor, location_name: "skillMd"))
|
|
91
|
+
AgentSkillsAdditionalData.struct_class = Types::AgentSkillsAdditionalData
|
|
92
|
+
|
|
93
|
+
AgentSkillsDefinitionDescriptor.add_member(:data, Shapes::ShapeRef.new(shape: DescriptorData, location_name: "data"))
|
|
94
|
+
AgentSkillsDefinitionDescriptor.add_member(:data_schema_version, Shapes::ShapeRef.new(shape: DataSchemaVersion, location_name: "dataSchemaVersion"))
|
|
95
|
+
AgentSkillsDefinitionDescriptor.add_member(:additional_data, Shapes::ShapeRef.new(shape: AgentSkillsAdditionalData, location_name: "additionalData"))
|
|
96
|
+
AgentSkillsDefinitionDescriptor.struct_class = Types::AgentSkillsDefinitionDescriptor
|
|
97
|
+
|
|
98
|
+
AgentSkillsMdDescriptor.add_member(:data, Shapes::ShapeRef.new(shape: DescriptorData, location_name: "data"))
|
|
99
|
+
AgentSkillsMdDescriptor.add_member(:data_schema_version, Shapes::ShapeRef.new(shape: DataSchemaVersion, location_name: "dataSchemaVersion"))
|
|
100
|
+
AgentSkillsMdDescriptor.add_member(:source, Shapes::ShapeRef.new(shape: DescriptorSource, location_name: "source"))
|
|
101
|
+
AgentSkillsMdDescriptor.struct_class = Types::AgentSkillsMdDescriptor
|
|
102
|
+
|
|
103
|
+
BatchGetDiscoverableRegistryRecordError.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryIdentifier, required: true, location_name: "registryId"))
|
|
104
|
+
BatchGetDiscoverableRegistryRecordError.add_member(:record_id, Shapes::ShapeRef.new(shape: RecordIdentifier, required: true, location_name: "recordId"))
|
|
105
|
+
BatchGetDiscoverableRegistryRecordError.add_member(:error_code, Shapes::ShapeRef.new(shape: BatchGetDiscoverableRegistryRecordErrorCode, required: true, location_name: "errorCode"))
|
|
106
|
+
BatchGetDiscoverableRegistryRecordError.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
|
107
|
+
BatchGetDiscoverableRegistryRecordError.struct_class = Types::BatchGetDiscoverableRegistryRecordError
|
|
108
|
+
|
|
109
|
+
BatchGetDiscoverableRegistryRecordErrorList.member = Shapes::ShapeRef.new(shape: BatchGetDiscoverableRegistryRecordError)
|
|
110
|
+
|
|
111
|
+
BatchGetDiscoverableRegistryRecordRequest.add_member(:entries, Shapes::ShapeRef.new(shape: BatchGetDiscoverableRegistryRecordRequestEntriesList, required: true, location_name: "entries"))
|
|
112
|
+
BatchGetDiscoverableRegistryRecordRequest.struct_class = Types::BatchGetDiscoverableRegistryRecordRequest
|
|
113
|
+
|
|
114
|
+
BatchGetDiscoverableRegistryRecordRequestEntriesList.member = Shapes::ShapeRef.new(shape: RegistryRecordsEntry)
|
|
115
|
+
|
|
116
|
+
BatchGetDiscoverableRegistryRecordResponse.add_member(:registry_records, Shapes::ShapeRef.new(shape: RegistryRecordSummaryList, required: true, location_name: "registryRecords"))
|
|
117
|
+
BatchGetDiscoverableRegistryRecordResponse.add_member(:errors, Shapes::ShapeRef.new(shape: BatchGetDiscoverableRegistryRecordErrorList, required: true, location_name: "errors"))
|
|
118
|
+
BatchGetDiscoverableRegistryRecordResponse.struct_class = Types::BatchGetDiscoverableRegistryRecordResponse
|
|
119
|
+
|
|
120
|
+
CustomDescriptor.add_member(:data, Shapes::ShapeRef.new(shape: DescriptorData, location_name: "data"))
|
|
121
|
+
CustomDescriptor.struct_class = Types::CustomDescriptor
|
|
122
|
+
|
|
123
|
+
DescriptorSource.add_member(:from_url, Shapes::ShapeRef.new(shape: DescriptorSourceFromUrl, location_name: "fromUrl"))
|
|
124
|
+
DescriptorSource.struct_class = Types::DescriptorSource
|
|
125
|
+
|
|
126
|
+
DescriptorSourceFromUrl.add_member(:url, Shapes::ShapeRef.new(shape: DescriptorSourceUrl, required: true, location_name: "url"))
|
|
127
|
+
DescriptorSourceFromUrl.struct_class = Types::DescriptorSourceFromUrl
|
|
128
|
+
|
|
129
|
+
Descriptors.add_member(:mcp_server, Shapes::ShapeRef.new(shape: McpServerDescriptor, location_name: "mcpServer"))
|
|
130
|
+
Descriptors.add_member(:a2a_agent_card, Shapes::ShapeRef.new(shape: A2aAgentCardDescriptor, location_name: "a2aAgentCard"))
|
|
131
|
+
Descriptors.add_member(:agent_skills_definition, Shapes::ShapeRef.new(shape: AgentSkillsDefinitionDescriptor, location_name: "agentSkillsDefinition"))
|
|
132
|
+
Descriptors.add_member(:custom, Shapes::ShapeRef.new(shape: CustomDescriptor, location_name: "custom"))
|
|
133
|
+
Descriptors.struct_class = Types::Descriptors
|
|
134
|
+
|
|
135
|
+
DiscoverableFilterValues.member = Shapes::ShapeRef.new(shape: FilterValue)
|
|
136
|
+
|
|
137
|
+
DiscoverableRegistryRecordSummary.add_member(:registry_arn, Shapes::ShapeRef.new(shape: RegistryArn, required: true, location_name: "registryArn"))
|
|
138
|
+
DiscoverableRegistryRecordSummary.add_member(:record_arn, Shapes::ShapeRef.new(shape: RegistryRecordArn, required: true, location_name: "recordArn"))
|
|
139
|
+
DiscoverableRegistryRecordSummary.add_member(:record_id, Shapes::ShapeRef.new(shape: RegistryRecordId, required: true, location_name: "recordId"))
|
|
140
|
+
DiscoverableRegistryRecordSummary.add_member(:name, Shapes::ShapeRef.new(shape: RegistryRecordName, required: true, location_name: "name"))
|
|
141
|
+
DiscoverableRegistryRecordSummary.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
|
|
142
|
+
DiscoverableRegistryRecordSummary.add_member(:display_name, Shapes::ShapeRef.new(shape: RegistryRecordDisplayName, location_name: "displayName"))
|
|
143
|
+
DiscoverableRegistryRecordSummary.add_member(:record_type, Shapes::ShapeRef.new(shape: RecordType, required: true, location_name: "recordType"))
|
|
144
|
+
DiscoverableRegistryRecordSummary.add_member(:record_version, Shapes::ShapeRef.new(shape: RegistryRecordVersion, required: true, location_name: "recordVersion"))
|
|
145
|
+
DiscoverableRegistryRecordSummary.add_member(:status, Shapes::ShapeRef.new(shape: RegistryRecordStatus, required: true, location_name: "status"))
|
|
146
|
+
DiscoverableRegistryRecordSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: DateTimestamp, required: true, location_name: "createdAt"))
|
|
147
|
+
DiscoverableRegistryRecordSummary.add_member(:updated_at, Shapes::ShapeRef.new(shape: DateTimestamp, required: true, location_name: "updatedAt"))
|
|
148
|
+
DiscoverableRegistryRecordSummary.struct_class = Types::DiscoverableRegistryRecordSummary
|
|
149
|
+
|
|
150
|
+
DiscoverableRegistryRecordSummaryList.member = Shapes::ShapeRef.new(shape: DiscoverableRegistryRecordSummary)
|
|
151
|
+
|
|
152
|
+
InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
|
153
|
+
InternalServerException.struct_class = Types::InternalServerException
|
|
154
|
+
|
|
155
|
+
ListDiscoverableRegistryRecordsRequest.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryIdentifier, required: true, location: "uri", location_name: "registryId"))
|
|
156
|
+
ListDiscoverableRegistryRecordsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListDiscoverableRegistryRecordsRequestMaxResultsInteger, location_name: "maxResults"))
|
|
157
|
+
ListDiscoverableRegistryRecordsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: ListDiscoverableRegistryRecordsRequestNextTokenString, location_name: "nextToken"))
|
|
158
|
+
ListDiscoverableRegistryRecordsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: RegistryRecordFilterList, location_name: "filters"))
|
|
159
|
+
ListDiscoverableRegistryRecordsRequest.struct_class = Types::ListDiscoverableRegistryRecordsRequest
|
|
160
|
+
|
|
161
|
+
ListDiscoverableRegistryRecordsResponse.add_member(:registry_records, Shapes::ShapeRef.new(shape: DiscoverableRegistryRecordSummaryList, required: true, location_name: "registryRecords"))
|
|
162
|
+
ListDiscoverableRegistryRecordsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
|
163
|
+
ListDiscoverableRegistryRecordsResponse.struct_class = Types::ListDiscoverableRegistryRecordsResponse
|
|
164
|
+
|
|
165
|
+
McpServerAdditionalData.add_member(:tools, Shapes::ShapeRef.new(shape: McpToolsDescriptor, location_name: "tools"))
|
|
166
|
+
McpServerAdditionalData.struct_class = Types::McpServerAdditionalData
|
|
167
|
+
|
|
168
|
+
McpServerDescriptor.add_member(:data, Shapes::ShapeRef.new(shape: DescriptorData, location_name: "data"))
|
|
169
|
+
McpServerDescriptor.add_member(:data_schema_version, Shapes::ShapeRef.new(shape: DataSchemaVersion, location_name: "dataSchemaVersion"))
|
|
170
|
+
McpServerDescriptor.add_member(:additional_data, Shapes::ShapeRef.new(shape: McpServerAdditionalData, location_name: "additionalData"))
|
|
171
|
+
McpServerDescriptor.add_member(:source, Shapes::ShapeRef.new(shape: DescriptorSource, location_name: "source"))
|
|
172
|
+
McpServerDescriptor.struct_class = Types::McpServerDescriptor
|
|
173
|
+
|
|
174
|
+
McpToolsDescriptor.add_member(:data, Shapes::ShapeRef.new(shape: DescriptorData, location_name: "data"))
|
|
175
|
+
McpToolsDescriptor.add_member(:data_schema_version, Shapes::ShapeRef.new(shape: DataSchemaVersion, location_name: "dataSchemaVersion"))
|
|
176
|
+
McpToolsDescriptor.struct_class = Types::McpToolsDescriptor
|
|
177
|
+
|
|
178
|
+
RegistryRecordFilter.add_member(:name, Shapes::ShapeRef.new(shape: RegistryRecordFilterName, required: true, location_name: "name"))
|
|
179
|
+
RegistryRecordFilter.add_member(:values, Shapes::ShapeRef.new(shape: DiscoverableFilterValues, required: true, location_name: "values"))
|
|
180
|
+
RegistryRecordFilter.struct_class = Types::RegistryRecordFilter
|
|
181
|
+
|
|
182
|
+
RegistryRecordFilterList.member = Shapes::ShapeRef.new(shape: RegistryRecordFilter)
|
|
183
|
+
|
|
184
|
+
RegistryRecordSummary.add_member(:registry_arn, Shapes::ShapeRef.new(shape: RegistryArn, required: true, location_name: "registryArn"))
|
|
185
|
+
RegistryRecordSummary.add_member(:record_arn, Shapes::ShapeRef.new(shape: RegistryRecordArn, required: true, location_name: "recordArn"))
|
|
186
|
+
RegistryRecordSummary.add_member(:record_id, Shapes::ShapeRef.new(shape: RegistryRecordId, required: true, location_name: "recordId"))
|
|
187
|
+
RegistryRecordSummary.add_member(:name, Shapes::ShapeRef.new(shape: RegistryRecordName, required: true, location_name: "name"))
|
|
188
|
+
RegistryRecordSummary.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
|
|
189
|
+
RegistryRecordSummary.add_member(:display_name, Shapes::ShapeRef.new(shape: RegistryRecordDisplayName, location_name: "displayName"))
|
|
190
|
+
RegistryRecordSummary.add_member(:record_type, Shapes::ShapeRef.new(shape: RecordType, required: true, location_name: "recordType"))
|
|
191
|
+
RegistryRecordSummary.add_member(:descriptors, Shapes::ShapeRef.new(shape: Descriptors, required: true, location_name: "descriptors"))
|
|
192
|
+
RegistryRecordSummary.add_member(:record_version, Shapes::ShapeRef.new(shape: RegistryRecordVersion, required: true, location_name: "recordVersion"))
|
|
193
|
+
RegistryRecordSummary.add_member(:status, Shapes::ShapeRef.new(shape: RegistryRecordStatus, required: true, location_name: "status"))
|
|
194
|
+
RegistryRecordSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: DateTimestamp, required: true, location_name: "createdAt"))
|
|
195
|
+
RegistryRecordSummary.add_member(:updated_at, Shapes::ShapeRef.new(shape: DateTimestamp, required: true, location_name: "updatedAt"))
|
|
196
|
+
RegistryRecordSummary.struct_class = Types::RegistryRecordSummary
|
|
197
|
+
|
|
198
|
+
RegistryRecordSummaryList.member = Shapes::ShapeRef.new(shape: RegistryRecordSummary)
|
|
199
|
+
|
|
200
|
+
RegistryRecordsEntry.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryIdentifier, required: true, location_name: "registryId"))
|
|
201
|
+
RegistryRecordsEntry.add_member(:record_ids, Shapes::ShapeRef.new(shape: RegistryRecordsEntryRecordIdsList, required: true, location_name: "recordIds"))
|
|
202
|
+
RegistryRecordsEntry.struct_class = Types::RegistryRecordsEntry
|
|
203
|
+
|
|
204
|
+
RegistryRecordsEntryRecordIdsList.member = Shapes::ShapeRef.new(shape: RecordIdentifier)
|
|
205
|
+
|
|
206
|
+
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
|
207
|
+
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
|
208
|
+
|
|
209
|
+
SearchDiscoverableRegistryRecordsRequest.add_member(:search_query, Shapes::ShapeRef.new(shape: SearchQuery, required: true, location_name: "searchQuery"))
|
|
210
|
+
SearchDiscoverableRegistryRecordsRequest.add_member(:registry_ids, Shapes::ShapeRef.new(shape: SearchDiscoverableRegistryRecordsRequestRegistryIdsList, required: true, location_name: "registryIds"))
|
|
211
|
+
SearchDiscoverableRegistryRecordsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: SearchDiscoverableRegistryRecordsRequestMaxResultsInteger, location_name: "maxResults"))
|
|
212
|
+
SearchDiscoverableRegistryRecordsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: MetadataFilterExpression, location_name: "filters"))
|
|
213
|
+
SearchDiscoverableRegistryRecordsRequest.struct_class = Types::SearchDiscoverableRegistryRecordsRequest
|
|
214
|
+
|
|
215
|
+
SearchDiscoverableRegistryRecordsRequestRegistryIdsList.member = Shapes::ShapeRef.new(shape: RegistryIdentifier)
|
|
216
|
+
|
|
217
|
+
SearchDiscoverableRegistryRecordsResponse.add_member(:registry_records, Shapes::ShapeRef.new(shape: RegistryRecordSummaryList, required: true, location_name: "registryRecords"))
|
|
218
|
+
SearchDiscoverableRegistryRecordsResponse.struct_class = Types::SearchDiscoverableRegistryRecordsResponse
|
|
219
|
+
|
|
220
|
+
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
|
221
|
+
ThrottlingException.struct_class = Types::ThrottlingException
|
|
222
|
+
|
|
223
|
+
UnauthorizedException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
|
224
|
+
UnauthorizedException.struct_class = Types::UnauthorizedException
|
|
225
|
+
|
|
226
|
+
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
227
|
+
ValidationException.add_member(:reason, Shapes::ShapeRef.new(shape: ValidationExceptionReason, required: true, location_name: "reason"))
|
|
228
|
+
ValidationException.add_member(:field_list, Shapes::ShapeRef.new(shape: ValidationExceptionFieldList, location_name: "fieldList"))
|
|
229
|
+
ValidationException.struct_class = Types::ValidationException
|
|
230
|
+
|
|
231
|
+
ValidationExceptionField.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name"))
|
|
232
|
+
ValidationExceptionField.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
233
|
+
ValidationExceptionField.struct_class = Types::ValidationExceptionField
|
|
234
|
+
|
|
235
|
+
ValidationExceptionFieldList.member = Shapes::ShapeRef.new(shape: ValidationExceptionField)
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
# @api private
|
|
239
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
|
240
|
+
|
|
241
|
+
api.version = "2025-12-01"
|
|
242
|
+
|
|
243
|
+
api.metadata = {
|
|
244
|
+
"apiVersion" => "2025-12-01",
|
|
245
|
+
"auth" => ["aws.auth#sigv4"],
|
|
246
|
+
"endpointPrefix" => "agent-registry",
|
|
247
|
+
"protocol" => "rest-json",
|
|
248
|
+
"protocols" => ["rest-json"],
|
|
249
|
+
"serviceFullName" => "Agent Registry",
|
|
250
|
+
"serviceId" => "Agent Registry",
|
|
251
|
+
"signatureVersion" => "v4",
|
|
252
|
+
"signingName" => "agent-registry",
|
|
253
|
+
"uid" => "agent-registry-2025-12-01",
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
api.add_operation(:batch_get_discoverable_registry_record, Seahorse::Model::Operation.new.tap do |o|
|
|
257
|
+
o.name = "BatchGetDiscoverableRegistryRecord"
|
|
258
|
+
o.http_method = "POST"
|
|
259
|
+
o.http_request_uri = "/discoverable-records-batch"
|
|
260
|
+
o.input = Shapes::ShapeRef.new(shape: BatchGetDiscoverableRegistryRecordRequest)
|
|
261
|
+
o.output = Shapes::ShapeRef.new(shape: BatchGetDiscoverableRegistryRecordResponse)
|
|
262
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
263
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
264
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
265
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
266
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
|
267
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
268
|
+
end)
|
|
269
|
+
|
|
270
|
+
api.add_operation(:list_discoverable_registry_records, Seahorse::Model::Operation.new.tap do |o|
|
|
271
|
+
o.name = "ListDiscoverableRegistryRecords"
|
|
272
|
+
o.http_method = "POST"
|
|
273
|
+
o.http_request_uri = "/registries/{registryId}/discoverable-records-list"
|
|
274
|
+
o.input = Shapes::ShapeRef.new(shape: ListDiscoverableRegistryRecordsRequest)
|
|
275
|
+
o.output = Shapes::ShapeRef.new(shape: ListDiscoverableRegistryRecordsResponse)
|
|
276
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
277
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
278
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
279
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
280
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
|
281
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
282
|
+
o[:pager] = Aws::Pager.new(
|
|
283
|
+
limit_key: "max_results",
|
|
284
|
+
tokens: {
|
|
285
|
+
"next_token" => "next_token"
|
|
286
|
+
}
|
|
287
|
+
)
|
|
288
|
+
end)
|
|
289
|
+
|
|
290
|
+
api.add_operation(:search_discoverable_registry_records, Seahorse::Model::Operation.new.tap do |o|
|
|
291
|
+
o.name = "SearchDiscoverableRegistryRecords"
|
|
292
|
+
o.http_method = "POST"
|
|
293
|
+
o.http_request_uri = "/discoverable-records-search"
|
|
294
|
+
o.input = Shapes::ShapeRef.new(shape: SearchDiscoverableRegistryRecordsRequest)
|
|
295
|
+
o.output = Shapes::ShapeRef.new(shape: SearchDiscoverableRegistryRecordsResponse)
|
|
296
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
297
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
298
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
299
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
300
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
|
301
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
302
|
+
end)
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
end
|
|
306
|
+
end
|
|
File without changes
|
|
@@ -0,0 +1,49 @@
|
|
|
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::AgentRegistry
|
|
11
|
+
# Endpoint parameters used to influence endpoints per request.
|
|
12
|
+
#
|
|
13
|
+
# @!attribute region
|
|
14
|
+
# The AWS region of the service.
|
|
15
|
+
#
|
|
16
|
+
# @return [String]
|
|
17
|
+
#
|
|
18
|
+
# @!attribute endpoint
|
|
19
|
+
# Override the endpoint used to send requests.
|
|
20
|
+
#
|
|
21
|
+
# @return [String]
|
|
22
|
+
#
|
|
23
|
+
EndpointParameters = Struct.new(
|
|
24
|
+
:region,
|
|
25
|
+
:endpoint,
|
|
26
|
+
) do
|
|
27
|
+
include Aws::Structure
|
|
28
|
+
|
|
29
|
+
# @api private
|
|
30
|
+
class << self
|
|
31
|
+
PARAM_MAP = {
|
|
32
|
+
'Region' => :region,
|
|
33
|
+
'Endpoint' => :endpoint,
|
|
34
|
+
}.freeze
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def initialize(options = {})
|
|
38
|
+
self[:region] = options[:region]
|
|
39
|
+
self[:endpoint] = options[:endpoint]
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def self.create(config, options={})
|
|
43
|
+
new({
|
|
44
|
+
region: config.region,
|
|
45
|
+
endpoint: (config.endpoint.to_s unless config.regional_endpoint),
|
|
46
|
+
}.merge(options))
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
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::AgentRegistry
|
|
11
|
+
class EndpointProvider
|
|
12
|
+
def resolve_endpoint(parameters)
|
|
13
|
+
if Aws::Endpoints::Matchers.set?(parameters.endpoint)
|
|
14
|
+
return Aws::Endpoints::Endpoint.new(url: parameters.endpoint)
|
|
15
|
+
end
|
|
16
|
+
if Aws::Endpoints::Matchers.set?(parameters.region)
|
|
17
|
+
return Aws::Endpoints::Endpoint.new(url: "https://agent-registry.#{parameters.region}.api.aws")
|
|
18
|
+
end
|
|
19
|
+
raise ArgumentError, "Unable to resolve an Agent Registry endpoint: Region was not set and no explicit Endpoint override was provided."
|
|
20
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
|
21
|
+
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
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::AgentRegistry
|
|
12
|
+
# @api private
|
|
13
|
+
module Endpoints
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def self.parameters_for_operation(context)
|
|
17
|
+
Aws::AgentRegistry::EndpointParameters.create(context.config)
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,144 @@
|
|
|
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::AgentRegistry
|
|
11
|
+
|
|
12
|
+
# When AgentRegistry returns an error response, the Ruby SDK constructs and raises an error.
|
|
13
|
+
# These errors all extend Aws::AgentRegistry::Errors::ServiceError < {Aws::Errors::ServiceError}
|
|
14
|
+
#
|
|
15
|
+
# You can rescue all AgentRegistry errors using ServiceError:
|
|
16
|
+
#
|
|
17
|
+
# begin
|
|
18
|
+
# # do stuff
|
|
19
|
+
# rescue Aws::AgentRegistry::Errors::ServiceError
|
|
20
|
+
# # rescues all AgentRegistry 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
|
+
# * {AccessDeniedException}
|
|
31
|
+
# * {InternalServerException}
|
|
32
|
+
# * {ResourceNotFoundException}
|
|
33
|
+
# * {ThrottlingException}
|
|
34
|
+
# * {UnauthorizedException}
|
|
35
|
+
# * {ValidationException}
|
|
36
|
+
#
|
|
37
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
|
38
|
+
# if they are not defined above.
|
|
39
|
+
module Errors
|
|
40
|
+
|
|
41
|
+
extend Aws::Errors::DynamicErrors
|
|
42
|
+
|
|
43
|
+
class AccessDeniedException < ServiceError
|
|
44
|
+
|
|
45
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
46
|
+
# @param [String] message
|
|
47
|
+
# @param [Aws::AgentRegistry::Types::AccessDeniedException] data
|
|
48
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
49
|
+
super(context, message, data)
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# @return [String]
|
|
53
|
+
def message
|
|
54
|
+
@message || @data[:message]
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
class InternalServerException < ServiceError
|
|
59
|
+
|
|
60
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
61
|
+
# @param [String] message
|
|
62
|
+
# @param [Aws::AgentRegistry::Types::InternalServerException] data
|
|
63
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
64
|
+
super(context, message, data)
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# @return [String]
|
|
68
|
+
def message
|
|
69
|
+
@message || @data[:message]
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
class ResourceNotFoundException < ServiceError
|
|
74
|
+
|
|
75
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
76
|
+
# @param [String] message
|
|
77
|
+
# @param [Aws::AgentRegistry::Types::ResourceNotFoundException] data
|
|
78
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
79
|
+
super(context, message, data)
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# @return [String]
|
|
83
|
+
def message
|
|
84
|
+
@message || @data[:message]
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
class ThrottlingException < ServiceError
|
|
89
|
+
|
|
90
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
91
|
+
# @param [String] message
|
|
92
|
+
# @param [Aws::AgentRegistry::Types::ThrottlingException] 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
|
+
end
|
|
102
|
+
|
|
103
|
+
class UnauthorizedException < ServiceError
|
|
104
|
+
|
|
105
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
106
|
+
# @param [String] message
|
|
107
|
+
# @param [Aws::AgentRegistry::Types::UnauthorizedException] data
|
|
108
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
109
|
+
super(context, message, data)
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# @return [String]
|
|
113
|
+
def message
|
|
114
|
+
@message || @data[:message]
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
class ValidationException < ServiceError
|
|
119
|
+
|
|
120
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
121
|
+
# @param [String] message
|
|
122
|
+
# @param [Aws::AgentRegistry::Types::ValidationException] data
|
|
123
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
124
|
+
super(context, message, data)
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# @return [String]
|
|
128
|
+
def message
|
|
129
|
+
@message || @data[:message]
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# @return [String]
|
|
133
|
+
def reason
|
|
134
|
+
@data[:reason]
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# @return [String]
|
|
138
|
+
def field_list
|
|
139
|
+
@data[:field_list]
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
end
|
|
144
|
+
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::AgentRegistry
|
|
12
|
+
module Plugins
|
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
|
14
|
+
option(
|
|
15
|
+
:endpoint_provider,
|
|
16
|
+
doc_type: 'Aws::AgentRegistry::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::AgentRegistry::EndpointParameters`.
|
|
22
|
+
DOCS
|
|
23
|
+
Aws::AgentRegistry::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::AgentRegistry::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::AgentRegistry
|
|
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
|