aws-sdk-evs 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-evs/client.rb +1392 -0
- data/lib/aws-sdk-evs/client_api.rb +523 -0
- data/lib/aws-sdk-evs/customizations.rb +0 -0
- data/lib/aws-sdk-evs/endpoint_parameters.rb +69 -0
- data/lib/aws-sdk-evs/endpoint_provider.rb +50 -0
- data/lib/aws-sdk-evs/endpoints.rb +20 -0
- data/lib/aws-sdk-evs/errors.rb +147 -0
- data/lib/aws-sdk-evs/plugins/endpoints.rb +77 -0
- data/lib/aws-sdk-evs/resource.rb +26 -0
- data/lib/aws-sdk-evs/types.rb +1376 -0
- data/lib/aws-sdk-evs/waiters.rb +15 -0
- data/lib/aws-sdk-evs.rb +62 -0
- data/sig/client.rbs +287 -0
- data/sig/errors.rbs +36 -0
- data/sig/resource.rbs +85 -0
- data/sig/types.rbs +324 -0
- data/sig/waiters.rbs +13 -0
- metadata +97 -0
@@ -0,0 +1,523 @@
|
|
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::Evs
|
12
|
+
# @api private
|
13
|
+
module ClientApi
|
14
|
+
|
15
|
+
include Seahorse::Model
|
16
|
+
|
17
|
+
Arn = Shapes::StringShape.new(name: 'Arn')
|
18
|
+
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
19
|
+
Check = Shapes::StructureShape.new(name: 'Check')
|
20
|
+
CheckResult = Shapes::StringShape.new(name: 'CheckResult')
|
21
|
+
CheckType = Shapes::StringShape.new(name: 'CheckType')
|
22
|
+
ChecksList = Shapes::ListShape.new(name: 'ChecksList')
|
23
|
+
Cidr = Shapes::StringShape.new(name: 'Cidr')
|
24
|
+
ClientToken = Shapes::StringShape.new(name: 'ClientToken')
|
25
|
+
ConnectivityInfo = Shapes::StructureShape.new(name: 'ConnectivityInfo')
|
26
|
+
CreateEnvironmentHostRequest = Shapes::StructureShape.new(name: 'CreateEnvironmentHostRequest')
|
27
|
+
CreateEnvironmentHostResponse = Shapes::StructureShape.new(name: 'CreateEnvironmentHostResponse')
|
28
|
+
CreateEnvironmentRequest = Shapes::StructureShape.new(name: 'CreateEnvironmentRequest')
|
29
|
+
CreateEnvironmentResponse = Shapes::StructureShape.new(name: 'CreateEnvironmentResponse')
|
30
|
+
DedicatedHostId = Shapes::StringShape.new(name: 'DedicatedHostId')
|
31
|
+
DeleteEnvironmentHostRequest = Shapes::StructureShape.new(name: 'DeleteEnvironmentHostRequest')
|
32
|
+
DeleteEnvironmentHostResponse = Shapes::StructureShape.new(name: 'DeleteEnvironmentHostResponse')
|
33
|
+
DeleteEnvironmentRequest = Shapes::StructureShape.new(name: 'DeleteEnvironmentRequest')
|
34
|
+
DeleteEnvironmentResponse = Shapes::StructureShape.new(name: 'DeleteEnvironmentResponse')
|
35
|
+
Environment = Shapes::StructureShape.new(name: 'Environment')
|
36
|
+
EnvironmentId = Shapes::StringShape.new(name: 'EnvironmentId')
|
37
|
+
EnvironmentName = Shapes::StringShape.new(name: 'EnvironmentName')
|
38
|
+
EnvironmentState = Shapes::StringShape.new(name: 'EnvironmentState')
|
39
|
+
EnvironmentStateList = Shapes::ListShape.new(name: 'EnvironmentStateList')
|
40
|
+
EnvironmentSummary = Shapes::StructureShape.new(name: 'EnvironmentSummary')
|
41
|
+
EnvironmentSummaryList = Shapes::ListShape.new(name: 'EnvironmentSummaryList')
|
42
|
+
GetEnvironmentRequest = Shapes::StructureShape.new(name: 'GetEnvironmentRequest')
|
43
|
+
GetEnvironmentResponse = Shapes::StructureShape.new(name: 'GetEnvironmentResponse')
|
44
|
+
Host = Shapes::StructureShape.new(name: 'Host')
|
45
|
+
HostInfoForCreate = Shapes::StructureShape.new(name: 'HostInfoForCreate')
|
46
|
+
HostInfoForCreateList = Shapes::ListShape.new(name: 'HostInfoForCreateList')
|
47
|
+
HostList = Shapes::ListShape.new(name: 'HostList')
|
48
|
+
HostName = Shapes::StringShape.new(name: 'HostName')
|
49
|
+
HostState = Shapes::StringShape.new(name: 'HostState')
|
50
|
+
InitialVlanInfo = Shapes::StructureShape.new(name: 'InitialVlanInfo')
|
51
|
+
InitialVlans = Shapes::StructureShape.new(name: 'InitialVlans')
|
52
|
+
InstanceType = Shapes::StringShape.new(name: 'InstanceType')
|
53
|
+
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
54
|
+
IpAddress = Shapes::StringShape.new(name: 'IpAddress')
|
55
|
+
KeyName = Shapes::StringShape.new(name: 'KeyName')
|
56
|
+
LicenseInfo = Shapes::StructureShape.new(name: 'LicenseInfo')
|
57
|
+
LicenseInfoList = Shapes::ListShape.new(name: 'LicenseInfoList')
|
58
|
+
ListEnvironmentHostsRequest = Shapes::StructureShape.new(name: 'ListEnvironmentHostsRequest')
|
59
|
+
ListEnvironmentHostsResponse = Shapes::StructureShape.new(name: 'ListEnvironmentHostsResponse')
|
60
|
+
ListEnvironmentVlansRequest = Shapes::StructureShape.new(name: 'ListEnvironmentVlansRequest')
|
61
|
+
ListEnvironmentVlansResponse = Shapes::StructureShape.new(name: 'ListEnvironmentVlansResponse')
|
62
|
+
ListEnvironmentsRequest = Shapes::StructureShape.new(name: 'ListEnvironmentsRequest')
|
63
|
+
ListEnvironmentsResponse = Shapes::StructureShape.new(name: 'ListEnvironmentsResponse')
|
64
|
+
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
65
|
+
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
66
|
+
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
67
|
+
NetworkInterface = Shapes::StructureShape.new(name: 'NetworkInterface')
|
68
|
+
NetworkInterfaceId = Shapes::StringShape.new(name: 'NetworkInterfaceId')
|
69
|
+
NetworkInterfaceList = Shapes::ListShape.new(name: 'NetworkInterfaceList')
|
70
|
+
PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
|
71
|
+
PlacementGroupId = Shapes::StringShape.new(name: 'PlacementGroupId')
|
72
|
+
RequestTagMap = Shapes::MapShape.new(name: 'RequestTagMap')
|
73
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
74
|
+
ResponseTagMap = Shapes::MapShape.new(name: 'ResponseTagMap')
|
75
|
+
RouteServerPeering = Shapes::StringShape.new(name: 'RouteServerPeering')
|
76
|
+
RouteServerPeeringList = Shapes::ListShape.new(name: 'RouteServerPeeringList')
|
77
|
+
Secret = Shapes::StructureShape.new(name: 'Secret')
|
78
|
+
SecretList = Shapes::ListShape.new(name: 'SecretList')
|
79
|
+
SecurityGroupId = Shapes::StringShape.new(name: 'SecurityGroupId')
|
80
|
+
SecurityGroups = Shapes::ListShape.new(name: 'SecurityGroups')
|
81
|
+
ServiceAccessSecurityGroups = Shapes::StructureShape.new(name: 'ServiceAccessSecurityGroups')
|
82
|
+
SolutionKey = Shapes::StringShape.new(name: 'SolutionKey')
|
83
|
+
StateDetails = Shapes::StringShape.new(name: 'StateDetails')
|
84
|
+
String = Shapes::StringShape.new(name: 'String')
|
85
|
+
SubnetId = Shapes::StringShape.new(name: 'SubnetId')
|
86
|
+
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
87
|
+
TagKeys = Shapes::ListShape.new(name: 'TagKeys')
|
88
|
+
TagPolicyException = Shapes::StructureShape.new(name: 'TagPolicyException')
|
89
|
+
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
90
|
+
TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
|
91
|
+
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
92
|
+
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
93
|
+
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
94
|
+
TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
|
95
|
+
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
96
|
+
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
97
|
+
VSanLicenseKey = Shapes::StringShape.new(name: 'VSanLicenseKey')
|
98
|
+
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
99
|
+
ValidationExceptionField = Shapes::StructureShape.new(name: 'ValidationExceptionField')
|
100
|
+
ValidationExceptionFieldList = Shapes::ListShape.new(name: 'ValidationExceptionFieldList')
|
101
|
+
ValidationExceptionReason = Shapes::StringShape.new(name: 'ValidationExceptionReason')
|
102
|
+
VcfHostnames = Shapes::StructureShape.new(name: 'VcfHostnames')
|
103
|
+
VcfVersion = Shapes::StringShape.new(name: 'VcfVersion')
|
104
|
+
Vlan = Shapes::StructureShape.new(name: 'Vlan')
|
105
|
+
VlanId = Shapes::IntegerShape.new(name: 'VlanId')
|
106
|
+
VlanList = Shapes::ListShape.new(name: 'VlanList')
|
107
|
+
VlanState = Shapes::StringShape.new(name: 'VlanState')
|
108
|
+
VpcId = Shapes::StringShape.new(name: 'VpcId')
|
109
|
+
|
110
|
+
Check.add_member(:type, Shapes::ShapeRef.new(shape: CheckType, location_name: "type"))
|
111
|
+
Check.add_member(:result, Shapes::ShapeRef.new(shape: CheckResult, location_name: "result"))
|
112
|
+
Check.add_member(:impaired_since, Shapes::ShapeRef.new(shape: Timestamp, location_name: "impairedSince"))
|
113
|
+
Check.struct_class = Types::Check
|
114
|
+
|
115
|
+
ChecksList.member = Shapes::ShapeRef.new(shape: Check)
|
116
|
+
|
117
|
+
ConnectivityInfo.add_member(:private_route_server_peerings, Shapes::ShapeRef.new(shape: RouteServerPeeringList, required: true, location_name: "privateRouteServerPeerings"))
|
118
|
+
ConnectivityInfo.struct_class = Types::ConnectivityInfo
|
119
|
+
|
120
|
+
CreateEnvironmentHostRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
|
121
|
+
CreateEnvironmentHostRequest.add_member(:environment_id, Shapes::ShapeRef.new(shape: EnvironmentId, required: true, location_name: "environmentId"))
|
122
|
+
CreateEnvironmentHostRequest.add_member(:host, Shapes::ShapeRef.new(shape: HostInfoForCreate, required: true, location_name: "host"))
|
123
|
+
CreateEnvironmentHostRequest.struct_class = Types::CreateEnvironmentHostRequest
|
124
|
+
|
125
|
+
CreateEnvironmentHostResponse.add_member(:environment_summary, Shapes::ShapeRef.new(shape: EnvironmentSummary, location_name: "environmentSummary"))
|
126
|
+
CreateEnvironmentHostResponse.add_member(:host, Shapes::ShapeRef.new(shape: Host, location_name: "host"))
|
127
|
+
CreateEnvironmentHostResponse.struct_class = Types::CreateEnvironmentHostResponse
|
128
|
+
|
129
|
+
CreateEnvironmentRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
|
130
|
+
CreateEnvironmentRequest.add_member(:environment_name, Shapes::ShapeRef.new(shape: EnvironmentName, location_name: "environmentName"))
|
131
|
+
CreateEnvironmentRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: String, location_name: "kmsKeyId"))
|
132
|
+
CreateEnvironmentRequest.add_member(:tags, Shapes::ShapeRef.new(shape: RequestTagMap, location_name: "tags"))
|
133
|
+
CreateEnvironmentRequest.add_member(:service_access_security_groups, Shapes::ShapeRef.new(shape: ServiceAccessSecurityGroups, location_name: "serviceAccessSecurityGroups"))
|
134
|
+
CreateEnvironmentRequest.add_member(:vpc_id, Shapes::ShapeRef.new(shape: VpcId, required: true, location_name: "vpcId"))
|
135
|
+
CreateEnvironmentRequest.add_member(:service_access_subnet_id, Shapes::ShapeRef.new(shape: SubnetId, required: true, location_name: "serviceAccessSubnetId"))
|
136
|
+
CreateEnvironmentRequest.add_member(:vcf_version, Shapes::ShapeRef.new(shape: VcfVersion, required: true, location_name: "vcfVersion"))
|
137
|
+
CreateEnvironmentRequest.add_member(:terms_accepted, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "termsAccepted"))
|
138
|
+
CreateEnvironmentRequest.add_member(:license_info, Shapes::ShapeRef.new(shape: LicenseInfoList, required: true, location_name: "licenseInfo"))
|
139
|
+
CreateEnvironmentRequest.add_member(:initial_vlans, Shapes::ShapeRef.new(shape: InitialVlans, required: true, location_name: "initialVlans"))
|
140
|
+
CreateEnvironmentRequest.add_member(:hosts, Shapes::ShapeRef.new(shape: HostInfoForCreateList, required: true, location_name: "hosts"))
|
141
|
+
CreateEnvironmentRequest.add_member(:connectivity_info, Shapes::ShapeRef.new(shape: ConnectivityInfo, required: true, location_name: "connectivityInfo"))
|
142
|
+
CreateEnvironmentRequest.add_member(:vcf_hostnames, Shapes::ShapeRef.new(shape: VcfHostnames, required: true, location_name: "vcfHostnames"))
|
143
|
+
CreateEnvironmentRequest.add_member(:site_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "siteId"))
|
144
|
+
CreateEnvironmentRequest.struct_class = Types::CreateEnvironmentRequest
|
145
|
+
|
146
|
+
CreateEnvironmentResponse.add_member(:environment, Shapes::ShapeRef.new(shape: Environment, location_name: "environment"))
|
147
|
+
CreateEnvironmentResponse.struct_class = Types::CreateEnvironmentResponse
|
148
|
+
|
149
|
+
DeleteEnvironmentHostRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
|
150
|
+
DeleteEnvironmentHostRequest.add_member(:environment_id, Shapes::ShapeRef.new(shape: EnvironmentId, required: true, location_name: "environmentId"))
|
151
|
+
DeleteEnvironmentHostRequest.add_member(:host_name, Shapes::ShapeRef.new(shape: HostName, required: true, location_name: "hostName"))
|
152
|
+
DeleteEnvironmentHostRequest.struct_class = Types::DeleteEnvironmentHostRequest
|
153
|
+
|
154
|
+
DeleteEnvironmentHostResponse.add_member(:environment_summary, Shapes::ShapeRef.new(shape: EnvironmentSummary, location_name: "environmentSummary"))
|
155
|
+
DeleteEnvironmentHostResponse.add_member(:host, Shapes::ShapeRef.new(shape: Host, location_name: "host"))
|
156
|
+
DeleteEnvironmentHostResponse.struct_class = Types::DeleteEnvironmentHostResponse
|
157
|
+
|
158
|
+
DeleteEnvironmentRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
|
159
|
+
DeleteEnvironmentRequest.add_member(:environment_id, Shapes::ShapeRef.new(shape: EnvironmentId, required: true, location_name: "environmentId"))
|
160
|
+
DeleteEnvironmentRequest.struct_class = Types::DeleteEnvironmentRequest
|
161
|
+
|
162
|
+
DeleteEnvironmentResponse.add_member(:environment, Shapes::ShapeRef.new(shape: Environment, location_name: "environment"))
|
163
|
+
DeleteEnvironmentResponse.struct_class = Types::DeleteEnvironmentResponse
|
164
|
+
|
165
|
+
Environment.add_member(:environment_id, Shapes::ShapeRef.new(shape: EnvironmentId, location_name: "environmentId"))
|
166
|
+
Environment.add_member(:environment_state, Shapes::ShapeRef.new(shape: EnvironmentState, location_name: "environmentState"))
|
167
|
+
Environment.add_member(:state_details, Shapes::ShapeRef.new(shape: StateDetails, location_name: "stateDetails"))
|
168
|
+
Environment.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdAt"))
|
169
|
+
Environment.add_member(:modified_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "modifiedAt"))
|
170
|
+
Environment.add_member(:environment_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "environmentArn"))
|
171
|
+
Environment.add_member(:environment_name, Shapes::ShapeRef.new(shape: EnvironmentName, location_name: "environmentName"))
|
172
|
+
Environment.add_member(:vpc_id, Shapes::ShapeRef.new(shape: VpcId, location_name: "vpcId"))
|
173
|
+
Environment.add_member(:service_access_subnet_id, Shapes::ShapeRef.new(shape: SubnetId, location_name: "serviceAccessSubnetId"))
|
174
|
+
Environment.add_member(:vcf_version, Shapes::ShapeRef.new(shape: VcfVersion, location_name: "vcfVersion"))
|
175
|
+
Environment.add_member(:terms_accepted, Shapes::ShapeRef.new(shape: Boolean, location_name: "termsAccepted"))
|
176
|
+
Environment.add_member(:license_info, Shapes::ShapeRef.new(shape: LicenseInfoList, location_name: "licenseInfo"))
|
177
|
+
Environment.add_member(:site_id, Shapes::ShapeRef.new(shape: String, location_name: "siteId"))
|
178
|
+
Environment.add_member(:environment_status, Shapes::ShapeRef.new(shape: CheckResult, location_name: "environmentStatus"))
|
179
|
+
Environment.add_member(:checks, Shapes::ShapeRef.new(shape: ChecksList, location_name: "checks"))
|
180
|
+
Environment.add_member(:connectivity_info, Shapes::ShapeRef.new(shape: ConnectivityInfo, location_name: "connectivityInfo"))
|
181
|
+
Environment.add_member(:vcf_hostnames, Shapes::ShapeRef.new(shape: VcfHostnames, location_name: "vcfHostnames"))
|
182
|
+
Environment.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: String, location_name: "kmsKeyId"))
|
183
|
+
Environment.add_member(:service_access_security_groups, Shapes::ShapeRef.new(shape: ServiceAccessSecurityGroups, location_name: "serviceAccessSecurityGroups"))
|
184
|
+
Environment.add_member(:credentials, Shapes::ShapeRef.new(shape: SecretList, location_name: "credentials"))
|
185
|
+
Environment.struct_class = Types::Environment
|
186
|
+
|
187
|
+
EnvironmentStateList.member = Shapes::ShapeRef.new(shape: EnvironmentState)
|
188
|
+
|
189
|
+
EnvironmentSummary.add_member(:environment_id, Shapes::ShapeRef.new(shape: EnvironmentId, location_name: "environmentId"))
|
190
|
+
EnvironmentSummary.add_member(:environment_name, Shapes::ShapeRef.new(shape: EnvironmentName, location_name: "environmentName"))
|
191
|
+
EnvironmentSummary.add_member(:vcf_version, Shapes::ShapeRef.new(shape: VcfVersion, location_name: "vcfVersion"))
|
192
|
+
EnvironmentSummary.add_member(:environment_status, Shapes::ShapeRef.new(shape: CheckResult, location_name: "environmentStatus"))
|
193
|
+
EnvironmentSummary.add_member(:environment_state, Shapes::ShapeRef.new(shape: EnvironmentState, location_name: "environmentState"))
|
194
|
+
EnvironmentSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdAt"))
|
195
|
+
EnvironmentSummary.add_member(:modified_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "modifiedAt"))
|
196
|
+
EnvironmentSummary.add_member(:environment_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "environmentArn"))
|
197
|
+
EnvironmentSummary.struct_class = Types::EnvironmentSummary
|
198
|
+
|
199
|
+
EnvironmentSummaryList.member = Shapes::ShapeRef.new(shape: EnvironmentSummary)
|
200
|
+
|
201
|
+
GetEnvironmentRequest.add_member(:environment_id, Shapes::ShapeRef.new(shape: EnvironmentId, required: true, location_name: "environmentId"))
|
202
|
+
GetEnvironmentRequest.struct_class = Types::GetEnvironmentRequest
|
203
|
+
|
204
|
+
GetEnvironmentResponse.add_member(:environment, Shapes::ShapeRef.new(shape: Environment, location_name: "environment"))
|
205
|
+
GetEnvironmentResponse.struct_class = Types::GetEnvironmentResponse
|
206
|
+
|
207
|
+
Host.add_member(:host_name, Shapes::ShapeRef.new(shape: HostName, location_name: "hostName"))
|
208
|
+
Host.add_member(:ip_address, Shapes::ShapeRef.new(shape: IpAddress, location_name: "ipAddress"))
|
209
|
+
Host.add_member(:key_name, Shapes::ShapeRef.new(shape: KeyName, location_name: "keyName"))
|
210
|
+
Host.add_member(:instance_type, Shapes::ShapeRef.new(shape: InstanceType, location_name: "instanceType"))
|
211
|
+
Host.add_member(:placement_group_id, Shapes::ShapeRef.new(shape: PlacementGroupId, location_name: "placementGroupId"))
|
212
|
+
Host.add_member(:dedicated_host_id, Shapes::ShapeRef.new(shape: DedicatedHostId, location_name: "dedicatedHostId"))
|
213
|
+
Host.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdAt"))
|
214
|
+
Host.add_member(:modified_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "modifiedAt"))
|
215
|
+
Host.add_member(:host_state, Shapes::ShapeRef.new(shape: HostState, location_name: "hostState"))
|
216
|
+
Host.add_member(:state_details, Shapes::ShapeRef.new(shape: StateDetails, location_name: "stateDetails"))
|
217
|
+
Host.add_member(:ec2_instance_id, Shapes::ShapeRef.new(shape: String, location_name: "ec2InstanceId"))
|
218
|
+
Host.add_member(:network_interfaces, Shapes::ShapeRef.new(shape: NetworkInterfaceList, location_name: "networkInterfaces"))
|
219
|
+
Host.struct_class = Types::Host
|
220
|
+
|
221
|
+
HostInfoForCreate.add_member(:host_name, Shapes::ShapeRef.new(shape: HostName, required: true, location_name: "hostName"))
|
222
|
+
HostInfoForCreate.add_member(:key_name, Shapes::ShapeRef.new(shape: KeyName, required: true, location_name: "keyName"))
|
223
|
+
HostInfoForCreate.add_member(:instance_type, Shapes::ShapeRef.new(shape: InstanceType, required: true, location_name: "instanceType"))
|
224
|
+
HostInfoForCreate.add_member(:placement_group_id, Shapes::ShapeRef.new(shape: PlacementGroupId, location_name: "placementGroupId"))
|
225
|
+
HostInfoForCreate.add_member(:dedicated_host_id, Shapes::ShapeRef.new(shape: DedicatedHostId, location_name: "dedicatedHostId"))
|
226
|
+
HostInfoForCreate.struct_class = Types::HostInfoForCreate
|
227
|
+
|
228
|
+
HostInfoForCreateList.member = Shapes::ShapeRef.new(shape: HostInfoForCreate)
|
229
|
+
|
230
|
+
HostList.member = Shapes::ShapeRef.new(shape: Host)
|
231
|
+
|
232
|
+
InitialVlanInfo.add_member(:cidr, Shapes::ShapeRef.new(shape: Cidr, required: true, location_name: "cidr"))
|
233
|
+
InitialVlanInfo.struct_class = Types::InitialVlanInfo
|
234
|
+
|
235
|
+
InitialVlans.add_member(:vmk_management, Shapes::ShapeRef.new(shape: InitialVlanInfo, required: true, location_name: "vmkManagement"))
|
236
|
+
InitialVlans.add_member(:vm_management, Shapes::ShapeRef.new(shape: InitialVlanInfo, required: true, location_name: "vmManagement"))
|
237
|
+
InitialVlans.add_member(:v_motion, Shapes::ShapeRef.new(shape: InitialVlanInfo, required: true, location_name: "vMotion"))
|
238
|
+
InitialVlans.add_member(:v_san, Shapes::ShapeRef.new(shape: InitialVlanInfo, required: true, location_name: "vSan"))
|
239
|
+
InitialVlans.add_member(:v_tep, Shapes::ShapeRef.new(shape: InitialVlanInfo, required: true, location_name: "vTep"))
|
240
|
+
InitialVlans.add_member(:edge_v_tep, Shapes::ShapeRef.new(shape: InitialVlanInfo, required: true, location_name: "edgeVTep"))
|
241
|
+
InitialVlans.add_member(:nsx_uplink, Shapes::ShapeRef.new(shape: InitialVlanInfo, required: true, location_name: "nsxUplink"))
|
242
|
+
InitialVlans.add_member(:hcx, Shapes::ShapeRef.new(shape: InitialVlanInfo, required: true, location_name: "hcx"))
|
243
|
+
InitialVlans.add_member(:expansion_vlan_1, Shapes::ShapeRef.new(shape: InitialVlanInfo, required: true, location_name: "expansionVlan1"))
|
244
|
+
InitialVlans.add_member(:expansion_vlan_2, Shapes::ShapeRef.new(shape: InitialVlanInfo, required: true, location_name: "expansionVlan2"))
|
245
|
+
InitialVlans.struct_class = Types::InitialVlans
|
246
|
+
|
247
|
+
LicenseInfo.add_member(:solution_key, Shapes::ShapeRef.new(shape: SolutionKey, required: true, location_name: "solutionKey"))
|
248
|
+
LicenseInfo.add_member(:vsan_key, Shapes::ShapeRef.new(shape: VSanLicenseKey, required: true, location_name: "vsanKey"))
|
249
|
+
LicenseInfo.struct_class = Types::LicenseInfo
|
250
|
+
|
251
|
+
LicenseInfoList.member = Shapes::ShapeRef.new(shape: LicenseInfo)
|
252
|
+
|
253
|
+
ListEnvironmentHostsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
|
254
|
+
ListEnvironmentHostsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
|
255
|
+
ListEnvironmentHostsRequest.add_member(:environment_id, Shapes::ShapeRef.new(shape: EnvironmentId, required: true, location_name: "environmentId"))
|
256
|
+
ListEnvironmentHostsRequest.struct_class = Types::ListEnvironmentHostsRequest
|
257
|
+
|
258
|
+
ListEnvironmentHostsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
|
259
|
+
ListEnvironmentHostsResponse.add_member(:environment_hosts, Shapes::ShapeRef.new(shape: HostList, location_name: "environmentHosts"))
|
260
|
+
ListEnvironmentHostsResponse.struct_class = Types::ListEnvironmentHostsResponse
|
261
|
+
|
262
|
+
ListEnvironmentVlansRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
|
263
|
+
ListEnvironmentVlansRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
|
264
|
+
ListEnvironmentVlansRequest.add_member(:environment_id, Shapes::ShapeRef.new(shape: EnvironmentId, required: true, location_name: "environmentId"))
|
265
|
+
ListEnvironmentVlansRequest.struct_class = Types::ListEnvironmentVlansRequest
|
266
|
+
|
267
|
+
ListEnvironmentVlansResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
|
268
|
+
ListEnvironmentVlansResponse.add_member(:environment_vlans, Shapes::ShapeRef.new(shape: VlanList, location_name: "environmentVlans"))
|
269
|
+
ListEnvironmentVlansResponse.struct_class = Types::ListEnvironmentVlansResponse
|
270
|
+
|
271
|
+
ListEnvironmentsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
|
272
|
+
ListEnvironmentsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
|
273
|
+
ListEnvironmentsRequest.add_member(:state, Shapes::ShapeRef.new(shape: EnvironmentStateList, location_name: "state"))
|
274
|
+
ListEnvironmentsRequest.struct_class = Types::ListEnvironmentsRequest
|
275
|
+
|
276
|
+
ListEnvironmentsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
|
277
|
+
ListEnvironmentsResponse.add_member(:environment_summaries, Shapes::ShapeRef.new(shape: EnvironmentSummaryList, location_name: "environmentSummaries"))
|
278
|
+
ListEnvironmentsResponse.struct_class = Types::ListEnvironmentsResponse
|
279
|
+
|
280
|
+
ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "resourceArn"))
|
281
|
+
ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
|
282
|
+
|
283
|
+
ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: ResponseTagMap, location_name: "tags"))
|
284
|
+
ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
|
285
|
+
|
286
|
+
NetworkInterface.add_member(:network_interface_id, Shapes::ShapeRef.new(shape: NetworkInterfaceId, location_name: "networkInterfaceId"))
|
287
|
+
NetworkInterface.struct_class = Types::NetworkInterface
|
288
|
+
|
289
|
+
NetworkInterfaceList.member = Shapes::ShapeRef.new(shape: NetworkInterface)
|
290
|
+
|
291
|
+
RequestTagMap.key = Shapes::ShapeRef.new(shape: TagKey)
|
292
|
+
RequestTagMap.value = Shapes::ShapeRef.new(shape: TagValue)
|
293
|
+
|
294
|
+
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
295
|
+
ResourceNotFoundException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceId"))
|
296
|
+
ResourceNotFoundException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
|
297
|
+
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
298
|
+
|
299
|
+
ResponseTagMap.key = Shapes::ShapeRef.new(shape: TagKey)
|
300
|
+
ResponseTagMap.value = Shapes::ShapeRef.new(shape: TagValue)
|
301
|
+
|
302
|
+
RouteServerPeeringList.member = Shapes::ShapeRef.new(shape: RouteServerPeering)
|
303
|
+
|
304
|
+
Secret.add_member(:secret_arn, Shapes::ShapeRef.new(shape: String, location_name: "secretArn"))
|
305
|
+
Secret.struct_class = Types::Secret
|
306
|
+
|
307
|
+
SecretList.member = Shapes::ShapeRef.new(shape: Secret)
|
308
|
+
|
309
|
+
SecurityGroups.member = Shapes::ShapeRef.new(shape: SecurityGroupId)
|
310
|
+
|
311
|
+
ServiceAccessSecurityGroups.add_member(:security_groups, Shapes::ShapeRef.new(shape: SecurityGroups, location_name: "securityGroups"))
|
312
|
+
ServiceAccessSecurityGroups.struct_class = Types::ServiceAccessSecurityGroups
|
313
|
+
|
314
|
+
TagKeys.member = Shapes::ShapeRef.new(shape: TagKey)
|
315
|
+
|
316
|
+
TagPolicyException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
317
|
+
TagPolicyException.struct_class = Types::TagPolicyException
|
318
|
+
|
319
|
+
TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "resourceArn"))
|
320
|
+
TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: RequestTagMap, required: true, location_name: "tags"))
|
321
|
+
TagResourceRequest.struct_class = Types::TagResourceRequest
|
322
|
+
|
323
|
+
TagResourceResponse.struct_class = Types::TagResourceResponse
|
324
|
+
|
325
|
+
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
326
|
+
ThrottlingException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location_name: "retryAfterSeconds"))
|
327
|
+
ThrottlingException.struct_class = Types::ThrottlingException
|
328
|
+
|
329
|
+
TooManyTagsException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
330
|
+
TooManyTagsException.struct_class = Types::TooManyTagsException
|
331
|
+
|
332
|
+
UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "resourceArn"))
|
333
|
+
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeys, required: true, location_name: "tagKeys"))
|
334
|
+
UntagResourceRequest.struct_class = Types::UntagResourceRequest
|
335
|
+
|
336
|
+
UntagResourceResponse.struct_class = Types::UntagResourceResponse
|
337
|
+
|
338
|
+
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
339
|
+
ValidationException.add_member(:reason, Shapes::ShapeRef.new(shape: ValidationExceptionReason, required: true, location_name: "reason"))
|
340
|
+
ValidationException.add_member(:field_list, Shapes::ShapeRef.new(shape: ValidationExceptionFieldList, location_name: "fieldList"))
|
341
|
+
ValidationException.struct_class = Types::ValidationException
|
342
|
+
|
343
|
+
ValidationExceptionField.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name"))
|
344
|
+
ValidationExceptionField.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
345
|
+
ValidationExceptionField.struct_class = Types::ValidationExceptionField
|
346
|
+
|
347
|
+
ValidationExceptionFieldList.member = Shapes::ShapeRef.new(shape: ValidationExceptionField)
|
348
|
+
|
349
|
+
VcfHostnames.add_member(:v_center, Shapes::ShapeRef.new(shape: HostName, required: true, location_name: "vCenter"))
|
350
|
+
VcfHostnames.add_member(:nsx, Shapes::ShapeRef.new(shape: HostName, required: true, location_name: "nsx"))
|
351
|
+
VcfHostnames.add_member(:nsx_manager_1, Shapes::ShapeRef.new(shape: HostName, required: true, location_name: "nsxManager1"))
|
352
|
+
VcfHostnames.add_member(:nsx_manager_2, Shapes::ShapeRef.new(shape: HostName, required: true, location_name: "nsxManager2"))
|
353
|
+
VcfHostnames.add_member(:nsx_manager_3, Shapes::ShapeRef.new(shape: HostName, required: true, location_name: "nsxManager3"))
|
354
|
+
VcfHostnames.add_member(:nsx_edge_1, Shapes::ShapeRef.new(shape: HostName, required: true, location_name: "nsxEdge1"))
|
355
|
+
VcfHostnames.add_member(:nsx_edge_2, Shapes::ShapeRef.new(shape: HostName, required: true, location_name: "nsxEdge2"))
|
356
|
+
VcfHostnames.add_member(:sddc_manager, Shapes::ShapeRef.new(shape: HostName, required: true, location_name: "sddcManager"))
|
357
|
+
VcfHostnames.add_member(:cloud_builder, Shapes::ShapeRef.new(shape: HostName, required: true, location_name: "cloudBuilder"))
|
358
|
+
VcfHostnames.struct_class = Types::VcfHostnames
|
359
|
+
|
360
|
+
Vlan.add_member(:vlan_id, Shapes::ShapeRef.new(shape: VlanId, location_name: "vlanId"))
|
361
|
+
Vlan.add_member(:cidr, Shapes::ShapeRef.new(shape: Cidr, location_name: "cidr"))
|
362
|
+
Vlan.add_member(:availability_zone, Shapes::ShapeRef.new(shape: String, location_name: "availabilityZone"))
|
363
|
+
Vlan.add_member(:function_name, Shapes::ShapeRef.new(shape: String, location_name: "functionName"))
|
364
|
+
Vlan.add_member(:subnet_id, Shapes::ShapeRef.new(shape: SubnetId, location_name: "subnetId"))
|
365
|
+
Vlan.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdAt"))
|
366
|
+
Vlan.add_member(:modified_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "modifiedAt"))
|
367
|
+
Vlan.add_member(:vlan_state, Shapes::ShapeRef.new(shape: VlanState, location_name: "vlanState"))
|
368
|
+
Vlan.add_member(:state_details, Shapes::ShapeRef.new(shape: StateDetails, location_name: "stateDetails"))
|
369
|
+
Vlan.struct_class = Types::Vlan
|
370
|
+
|
371
|
+
VlanList.member = Shapes::ShapeRef.new(shape: Vlan)
|
372
|
+
|
373
|
+
|
374
|
+
# @api private
|
375
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
376
|
+
|
377
|
+
api.version = "2023-07-27"
|
378
|
+
|
379
|
+
api.metadata = {
|
380
|
+
"apiVersion" => "2023-07-27",
|
381
|
+
"auth" => ["aws.auth#sigv4"],
|
382
|
+
"endpointPrefix" => "evs",
|
383
|
+
"jsonVersion" => "1.0",
|
384
|
+
"protocol" => "json",
|
385
|
+
"protocols" => ["json"],
|
386
|
+
"serviceAbbreviation" => "EVS",
|
387
|
+
"serviceFullName" => "Amazon Elastic VMware Service",
|
388
|
+
"serviceId" => "evs",
|
389
|
+
"signatureVersion" => "v4",
|
390
|
+
"signingName" => "evs",
|
391
|
+
"targetPrefix" => "AmazonElasticVMwareService",
|
392
|
+
"uid" => "evs-2023-07-27",
|
393
|
+
}
|
394
|
+
|
395
|
+
api.add_operation(:create_environment, Seahorse::Model::Operation.new.tap do |o|
|
396
|
+
o.name = "CreateEnvironment"
|
397
|
+
o.http_method = "POST"
|
398
|
+
o.http_request_uri = "/"
|
399
|
+
o.input = Shapes::ShapeRef.new(shape: CreateEnvironmentRequest)
|
400
|
+
o.output = Shapes::ShapeRef.new(shape: CreateEnvironmentResponse)
|
401
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
402
|
+
end)
|
403
|
+
|
404
|
+
api.add_operation(:create_environment_host, Seahorse::Model::Operation.new.tap do |o|
|
405
|
+
o.name = "CreateEnvironmentHost"
|
406
|
+
o.http_method = "POST"
|
407
|
+
o.http_request_uri = "/"
|
408
|
+
o.input = Shapes::ShapeRef.new(shape: CreateEnvironmentHostRequest)
|
409
|
+
o.output = Shapes::ShapeRef.new(shape: CreateEnvironmentHostResponse)
|
410
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
411
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
412
|
+
end)
|
413
|
+
|
414
|
+
api.add_operation(:delete_environment, Seahorse::Model::Operation.new.tap do |o|
|
415
|
+
o.name = "DeleteEnvironment"
|
416
|
+
o.http_method = "POST"
|
417
|
+
o.http_request_uri = "/"
|
418
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteEnvironmentRequest)
|
419
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteEnvironmentResponse)
|
420
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
421
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
422
|
+
end)
|
423
|
+
|
424
|
+
api.add_operation(:delete_environment_host, Seahorse::Model::Operation.new.tap do |o|
|
425
|
+
o.name = "DeleteEnvironmentHost"
|
426
|
+
o.http_method = "POST"
|
427
|
+
o.http_request_uri = "/"
|
428
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteEnvironmentHostRequest)
|
429
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteEnvironmentHostResponse)
|
430
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
431
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
432
|
+
end)
|
433
|
+
|
434
|
+
api.add_operation(:get_environment, Seahorse::Model::Operation.new.tap do |o|
|
435
|
+
o.name = "GetEnvironment"
|
436
|
+
o.http_method = "POST"
|
437
|
+
o.http_request_uri = "/"
|
438
|
+
o.input = Shapes::ShapeRef.new(shape: GetEnvironmentRequest)
|
439
|
+
o.output = Shapes::ShapeRef.new(shape: GetEnvironmentResponse)
|
440
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
441
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
442
|
+
end)
|
443
|
+
|
444
|
+
api.add_operation(:list_environment_hosts, Seahorse::Model::Operation.new.tap do |o|
|
445
|
+
o.name = "ListEnvironmentHosts"
|
446
|
+
o.http_method = "POST"
|
447
|
+
o.http_request_uri = "/"
|
448
|
+
o.input = Shapes::ShapeRef.new(shape: ListEnvironmentHostsRequest)
|
449
|
+
o.output = Shapes::ShapeRef.new(shape: ListEnvironmentHostsResponse)
|
450
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
451
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
452
|
+
o[:pager] = Aws::Pager.new(
|
453
|
+
limit_key: "max_results",
|
454
|
+
tokens: {
|
455
|
+
"next_token" => "next_token"
|
456
|
+
}
|
457
|
+
)
|
458
|
+
end)
|
459
|
+
|
460
|
+
api.add_operation(:list_environment_vlans, Seahorse::Model::Operation.new.tap do |o|
|
461
|
+
o.name = "ListEnvironmentVlans"
|
462
|
+
o.http_method = "POST"
|
463
|
+
o.http_request_uri = "/"
|
464
|
+
o.input = Shapes::ShapeRef.new(shape: ListEnvironmentVlansRequest)
|
465
|
+
o.output = Shapes::ShapeRef.new(shape: ListEnvironmentVlansResponse)
|
466
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
467
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
468
|
+
o[:pager] = Aws::Pager.new(
|
469
|
+
limit_key: "max_results",
|
470
|
+
tokens: {
|
471
|
+
"next_token" => "next_token"
|
472
|
+
}
|
473
|
+
)
|
474
|
+
end)
|
475
|
+
|
476
|
+
api.add_operation(:list_environments, Seahorse::Model::Operation.new.tap do |o|
|
477
|
+
o.name = "ListEnvironments"
|
478
|
+
o.http_method = "POST"
|
479
|
+
o.http_request_uri = "/"
|
480
|
+
o.input = Shapes::ShapeRef.new(shape: ListEnvironmentsRequest)
|
481
|
+
o.output = Shapes::ShapeRef.new(shape: ListEnvironmentsResponse)
|
482
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
483
|
+
o[:pager] = Aws::Pager.new(
|
484
|
+
limit_key: "max_results",
|
485
|
+
tokens: {
|
486
|
+
"next_token" => "next_token"
|
487
|
+
}
|
488
|
+
)
|
489
|
+
end)
|
490
|
+
|
491
|
+
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
492
|
+
o.name = "ListTagsForResource"
|
493
|
+
o.http_method = "POST"
|
494
|
+
o.http_request_uri = "/"
|
495
|
+
o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
|
496
|
+
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
|
497
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
498
|
+
end)
|
499
|
+
|
500
|
+
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
501
|
+
o.name = "TagResource"
|
502
|
+
o.http_method = "POST"
|
503
|
+
o.http_request_uri = "/"
|
504
|
+
o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
|
505
|
+
o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
|
506
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
507
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
508
|
+
o.errors << Shapes::ShapeRef.new(shape: TagPolicyException)
|
509
|
+
end)
|
510
|
+
|
511
|
+
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
512
|
+
o.name = "UntagResource"
|
513
|
+
o.http_method = "POST"
|
514
|
+
o.http_request_uri = "/"
|
515
|
+
o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
|
516
|
+
o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
|
517
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
518
|
+
o.errors << Shapes::ShapeRef.new(shape: TagPolicyException)
|
519
|
+
end)
|
520
|
+
end
|
521
|
+
|
522
|
+
end
|
523
|
+
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::Evs
|
11
|
+
# Endpoint parameters used to influence endpoints per request.
|
12
|
+
#
|
13
|
+
# @!attribute region
|
14
|
+
# The AWS region used to dispatch the request.
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @!attribute use_dual_stack
|
19
|
+
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
#
|
23
|
+
# @!attribute use_fips
|
24
|
+
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
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_dual_stack,
|
36
|
+
:use_fips,
|
37
|
+
:endpoint,
|
38
|
+
) do
|
39
|
+
include Aws::Structure
|
40
|
+
|
41
|
+
# @api private
|
42
|
+
class << self
|
43
|
+
PARAM_MAP = {
|
44
|
+
'Region' => :region,
|
45
|
+
'UseDualStack' => :use_dual_stack,
|
46
|
+
'UseFIPS' => :use_fips,
|
47
|
+
'Endpoint' => :endpoint,
|
48
|
+
}.freeze
|
49
|
+
end
|
50
|
+
|
51
|
+
def initialize(options = {})
|
52
|
+
self[:region] = options[:region]
|
53
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
54
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
|
+
self[:use_fips] = options[:use_fips]
|
56
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
57
|
+
self[:endpoint] = options[:endpoint]
|
58
|
+
end
|
59
|
+
|
60
|
+
def self.create(config, options={})
|
61
|
+
new({
|
62
|
+
region: config.region,
|
63
|
+
use_dual_stack: config.use_dualstack_endpoint,
|
64
|
+
use_fips: config.use_fips_endpoint,
|
65
|
+
endpoint: (config.endpoint.to_s unless config.regional_endpoint),
|
66
|
+
}.merge(options))
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,50 @@
|
|
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::Evs
|
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, headers: {}, properties: {})
|
21
|
+
end
|
22
|
+
if Aws::Endpoints::Matchers.set?(parameters.region)
|
23
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
|
24
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
25
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
26
|
+
return Aws::Endpoints::Endpoint.new(url: "https://evs-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
27
|
+
end
|
28
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
29
|
+
end
|
30
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
31
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
32
|
+
return Aws::Endpoints::Endpoint.new(url: "https://evs-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
33
|
+
end
|
34
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
35
|
+
end
|
36
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
37
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
38
|
+
return Aws::Endpoints::Endpoint.new(url: "https://evs.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
39
|
+
end
|
40
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
41
|
+
end
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://evs.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
43
|
+
end
|
44
|
+
end
|
45
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
46
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
47
|
+
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|