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.
@@ -0,0 +1,15 @@
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
+ require 'aws-sdk-core/waiters'
11
+
12
+ module Aws::Evs
13
+ module Waiters
14
+ end
15
+ end
@@ -0,0 +1,62 @@
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
+ require 'aws-sdk-core'
12
+ require 'aws-sigv4'
13
+
14
+ Aws::Plugins::GlobalConfiguration.add_identifier(:evs)
15
+
16
+ # This module provides support for Amazon Elastic VMware Service. This module is available in the
17
+ # `aws-sdk-evs` gem.
18
+ #
19
+ # # Client
20
+ #
21
+ # The {Client} class provides one method for each API operation. Operation
22
+ # methods each accept a hash of request parameters and return a response
23
+ # structure.
24
+ #
25
+ # evs = Aws::Evs::Client.new
26
+ # resp = evs.create_environment(params)
27
+ #
28
+ # See {Client} for more information.
29
+ #
30
+ # # Errors
31
+ #
32
+ # Errors returned from Amazon Elastic VMware Service are defined in the
33
+ # {Errors} module and all extend {Errors::ServiceError}.
34
+ #
35
+ # begin
36
+ # # do stuff
37
+ # rescue Aws::Evs::Errors::ServiceError
38
+ # # rescues all Amazon Elastic VMware Service API errors
39
+ # end
40
+ #
41
+ # See {Errors} for more information.
42
+ #
43
+ # @!group service
44
+ module Aws::Evs
45
+ autoload :Types, 'aws-sdk-evs/types'
46
+ autoload :ClientApi, 'aws-sdk-evs/client_api'
47
+ module Plugins
48
+ autoload :Endpoints, 'aws-sdk-evs/plugins/endpoints.rb'
49
+ end
50
+ autoload :Client, 'aws-sdk-evs/client'
51
+ autoload :Errors, 'aws-sdk-evs/errors'
52
+ autoload :Waiters, 'aws-sdk-evs/waiters'
53
+ autoload :Resource, 'aws-sdk-evs/resource'
54
+ autoload :EndpointParameters, 'aws-sdk-evs/endpoint_parameters'
55
+ autoload :EndpointProvider, 'aws-sdk-evs/endpoint_provider'
56
+ autoload :Endpoints, 'aws-sdk-evs/endpoints'
57
+
58
+ GEM_VERSION = '1.0.0'
59
+
60
+ end
61
+
62
+ require_relative 'aws-sdk-evs/customizations'
data/sig/client.rbs ADDED
@@ -0,0 +1,287 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module Evs
10
+ class Client < ::Seahorse::Client::Base
11
+ include ::Aws::ClientStubs
12
+
13
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Evs/Client.html#initialize-instance_method
14
+ def self.new: (
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?account_id: String,
19
+ ?active_endpoint_cache: bool,
20
+ ?adaptive_retry_wait_to_fill: bool,
21
+ ?client_side_monitoring: bool,
22
+ ?client_side_monitoring_client_id: String,
23
+ ?client_side_monitoring_host: String,
24
+ ?client_side_monitoring_port: Integer,
25
+ ?client_side_monitoring_publisher: untyped,
26
+ ?convert_params: bool,
27
+ ?correct_clock_skew: bool,
28
+ ?defaults_mode: String,
29
+ ?disable_host_prefix_injection: bool,
30
+ ?disable_request_compression: bool,
31
+ ?endpoint: String,
32
+ ?endpoint_cache_max_entries: Integer,
33
+ ?endpoint_cache_max_threads: Integer,
34
+ ?endpoint_cache_poll_interval: Integer,
35
+ ?endpoint_discovery: bool,
36
+ ?ignore_configured_endpoint_urls: bool,
37
+ ?log_formatter: untyped,
38
+ ?log_level: Symbol,
39
+ ?logger: untyped,
40
+ ?max_attempts: Integer,
41
+ ?profile: String,
42
+ ?request_checksum_calculation: String,
43
+ ?request_min_compression_size_bytes: Integer,
44
+ ?response_checksum_validation: String,
45
+ ?retry_backoff: Proc,
46
+ ?retry_base_delay: Float,
47
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
48
+ ?retry_limit: Integer,
49
+ ?retry_max_delay: Integer,
50
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
51
+ ?sdk_ua_app_id: String,
52
+ ?secret_access_key: String,
53
+ ?session_token: String,
54
+ ?sigv4a_signing_region_set: Array[String],
55
+ ?simple_json: bool,
56
+ ?stub_responses: untyped,
57
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
58
+ ?token_provider: untyped,
59
+ ?use_dualstack_endpoint: bool,
60
+ ?use_fips_endpoint: bool,
61
+ ?validate_params: bool,
62
+ ?endpoint_provider: untyped,
63
+ ?http_proxy: String,
64
+ ?http_open_timeout: (Float | Integer),
65
+ ?http_read_timeout: (Float | Integer),
66
+ ?http_idle_timeout: (Float | Integer),
67
+ ?http_continue_timeout: (Float | Integer),
68
+ ?ssl_timeout: (Float | Integer | nil),
69
+ ?http_wire_trace: bool,
70
+ ?ssl_verify_peer: bool,
71
+ ?ssl_ca_bundle: String,
72
+ ?ssl_ca_directory: String,
73
+ ?ssl_ca_store: String,
74
+ ?on_chunk_received: Proc,
75
+ ?on_chunk_sent: Proc,
76
+ ?raise_response_errors: bool
77
+ ) -> instance
78
+ | (?Hash[Symbol, untyped]) -> instance
79
+
80
+
81
+ interface _CreateEnvironmentResponseSuccess
82
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateEnvironmentResponse]
83
+ def environment: () -> Types::Environment
84
+ end
85
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Evs/Client.html#create_environment-instance_method
86
+ def create_environment: (
87
+ ?client_token: ::String,
88
+ ?environment_name: ::String,
89
+ ?kms_key_id: ::String,
90
+ ?tags: Hash[::String, ::String],
91
+ ?service_access_security_groups: {
92
+ security_groups: Array[::String]?
93
+ },
94
+ vpc_id: ::String,
95
+ service_access_subnet_id: ::String,
96
+ vcf_version: ("VCF-5.2.1"),
97
+ terms_accepted: bool,
98
+ license_info: Array[
99
+ {
100
+ solution_key: ::String,
101
+ vsan_key: ::String
102
+ },
103
+ ],
104
+ initial_vlans: {
105
+ vmk_management: {
106
+ cidr: ::String
107
+ },
108
+ vm_management: {
109
+ cidr: ::String
110
+ },
111
+ v_motion: {
112
+ cidr: ::String
113
+ },
114
+ v_san: {
115
+ cidr: ::String
116
+ },
117
+ v_tep: {
118
+ cidr: ::String
119
+ },
120
+ edge_v_tep: {
121
+ cidr: ::String
122
+ },
123
+ nsx_uplink: {
124
+ cidr: ::String
125
+ },
126
+ hcx: {
127
+ cidr: ::String
128
+ },
129
+ expansion_vlan_1: {
130
+ cidr: ::String
131
+ },
132
+ expansion_vlan_2: {
133
+ cidr: ::String
134
+ }
135
+ },
136
+ hosts: Array[
137
+ {
138
+ host_name: ::String,
139
+ key_name: ::String,
140
+ instance_type: ("i4i.metal"),
141
+ placement_group_id: ::String?,
142
+ dedicated_host_id: ::String?
143
+ },
144
+ ],
145
+ connectivity_info: {
146
+ private_route_server_peerings: Array[::String]
147
+ },
148
+ vcf_hostnames: {
149
+ v_center: ::String,
150
+ nsx: ::String,
151
+ nsx_manager_1: ::String,
152
+ nsx_manager_2: ::String,
153
+ nsx_manager_3: ::String,
154
+ nsx_edge_1: ::String,
155
+ nsx_edge_2: ::String,
156
+ sddc_manager: ::String,
157
+ cloud_builder: ::String
158
+ },
159
+ site_id: ::String
160
+ ) -> _CreateEnvironmentResponseSuccess
161
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateEnvironmentResponseSuccess
162
+
163
+ interface _CreateEnvironmentHostResponseSuccess
164
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateEnvironmentHostResponse]
165
+ def environment_summary: () -> Types::EnvironmentSummary
166
+ def host: () -> Types::Host
167
+ end
168
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Evs/Client.html#create_environment_host-instance_method
169
+ def create_environment_host: (
170
+ ?client_token: ::String,
171
+ environment_id: ::String,
172
+ host: {
173
+ host_name: ::String,
174
+ key_name: ::String,
175
+ instance_type: ("i4i.metal"),
176
+ placement_group_id: ::String?,
177
+ dedicated_host_id: ::String?
178
+ }
179
+ ) -> _CreateEnvironmentHostResponseSuccess
180
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateEnvironmentHostResponseSuccess
181
+
182
+ interface _DeleteEnvironmentResponseSuccess
183
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteEnvironmentResponse]
184
+ def environment: () -> Types::Environment
185
+ end
186
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Evs/Client.html#delete_environment-instance_method
187
+ def delete_environment: (
188
+ ?client_token: ::String,
189
+ environment_id: ::String
190
+ ) -> _DeleteEnvironmentResponseSuccess
191
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteEnvironmentResponseSuccess
192
+
193
+ interface _DeleteEnvironmentHostResponseSuccess
194
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteEnvironmentHostResponse]
195
+ def environment_summary: () -> Types::EnvironmentSummary
196
+ def host: () -> Types::Host
197
+ end
198
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Evs/Client.html#delete_environment_host-instance_method
199
+ def delete_environment_host: (
200
+ ?client_token: ::String,
201
+ environment_id: ::String,
202
+ host_name: ::String
203
+ ) -> _DeleteEnvironmentHostResponseSuccess
204
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteEnvironmentHostResponseSuccess
205
+
206
+ interface _GetEnvironmentResponseSuccess
207
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetEnvironmentResponse]
208
+ def environment: () -> Types::Environment
209
+ end
210
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Evs/Client.html#get_environment-instance_method
211
+ def get_environment: (
212
+ environment_id: ::String
213
+ ) -> _GetEnvironmentResponseSuccess
214
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetEnvironmentResponseSuccess
215
+
216
+ interface _ListEnvironmentHostsResponseSuccess
217
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListEnvironmentHostsResponse]
218
+ def next_token: () -> ::String
219
+ def environment_hosts: () -> ::Array[Types::Host]
220
+ end
221
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Evs/Client.html#list_environment_hosts-instance_method
222
+ def list_environment_hosts: (
223
+ ?next_token: ::String,
224
+ ?max_results: ::Integer,
225
+ environment_id: ::String
226
+ ) -> _ListEnvironmentHostsResponseSuccess
227
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListEnvironmentHostsResponseSuccess
228
+
229
+ interface _ListEnvironmentVlansResponseSuccess
230
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListEnvironmentVlansResponse]
231
+ def next_token: () -> ::String
232
+ def environment_vlans: () -> ::Array[Types::Vlan]
233
+ end
234
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Evs/Client.html#list_environment_vlans-instance_method
235
+ def list_environment_vlans: (
236
+ ?next_token: ::String,
237
+ ?max_results: ::Integer,
238
+ environment_id: ::String
239
+ ) -> _ListEnvironmentVlansResponseSuccess
240
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListEnvironmentVlansResponseSuccess
241
+
242
+ interface _ListEnvironmentsResponseSuccess
243
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListEnvironmentsResponse]
244
+ def next_token: () -> ::String
245
+ def environment_summaries: () -> ::Array[Types::EnvironmentSummary]
246
+ end
247
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Evs/Client.html#list_environments-instance_method
248
+ def list_environments: (
249
+ ?next_token: ::String,
250
+ ?max_results: ::Integer,
251
+ ?state: Array[("CREATING" | "CREATED" | "DELETING" | "DELETED" | "CREATE_FAILED")]
252
+ ) -> _ListEnvironmentsResponseSuccess
253
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListEnvironmentsResponseSuccess
254
+
255
+ interface _ListTagsForResourceResponseSuccess
256
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListTagsForResourceResponse]
257
+ def tags: () -> ::Hash[::String, ::String]
258
+ end
259
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Evs/Client.html#list_tags_for_resource-instance_method
260
+ def list_tags_for_resource: (
261
+ resource_arn: ::String
262
+ ) -> _ListTagsForResourceResponseSuccess
263
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTagsForResourceResponseSuccess
264
+
265
+ interface _TagResourceResponseSuccess
266
+ include ::Seahorse::Client::_ResponseSuccess[Types::TagResourceResponse]
267
+ end
268
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Evs/Client.html#tag_resource-instance_method
269
+ def tag_resource: (
270
+ resource_arn: ::String,
271
+ tags: Hash[::String, ::String]
272
+ ) -> _TagResourceResponseSuccess
273
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TagResourceResponseSuccess
274
+
275
+ interface _UntagResourceResponseSuccess
276
+ include ::Seahorse::Client::_ResponseSuccess[Types::UntagResourceResponse]
277
+ end
278
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Evs/Client.html#untag_resource-instance_method
279
+ def untag_resource: (
280
+ resource_arn: ::String,
281
+ tag_keys: Array[::String]
282
+ ) -> _UntagResourceResponseSuccess
283
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UntagResourceResponseSuccess
284
+ end
285
+ end
286
+ end
287
+
data/sig/errors.rbs ADDED
@@ -0,0 +1,36 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module Evs
10
+ module Errors
11
+ class ServiceError < ::Aws::Errors::ServiceError
12
+ end
13
+
14
+ class ResourceNotFoundException < ::Aws::Errors::ServiceError
15
+ def message: () -> ::String
16
+ def resource_id: () -> ::String
17
+ def resource_type: () -> ::String
18
+ end
19
+ class TagPolicyException < ::Aws::Errors::ServiceError
20
+ def message: () -> ::String
21
+ end
22
+ class ThrottlingException < ::Aws::Errors::ServiceError
23
+ def message: () -> ::String
24
+ def retry_after_seconds: () -> ::String
25
+ end
26
+ class TooManyTagsException < ::Aws::Errors::ServiceError
27
+ def message: () -> ::String
28
+ end
29
+ class ValidationException < ::Aws::Errors::ServiceError
30
+ def message: () -> ::String
31
+ def reason: () -> ::String
32
+ def field_list: () -> ::String
33
+ end
34
+ end
35
+ end
36
+ end
data/sig/resource.rbs ADDED
@@ -0,0 +1,85 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module Evs
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Evs/Resource.html
11
+ class Resource
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Evs/Resource.html#initialize-instance_method
13
+ def initialize: (
14
+ ?client: Client,
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?account_id: String,
19
+ ?active_endpoint_cache: bool,
20
+ ?adaptive_retry_wait_to_fill: bool,
21
+ ?client_side_monitoring: bool,
22
+ ?client_side_monitoring_client_id: String,
23
+ ?client_side_monitoring_host: String,
24
+ ?client_side_monitoring_port: Integer,
25
+ ?client_side_monitoring_publisher: untyped,
26
+ ?convert_params: bool,
27
+ ?correct_clock_skew: bool,
28
+ ?defaults_mode: String,
29
+ ?disable_host_prefix_injection: bool,
30
+ ?disable_request_compression: bool,
31
+ ?endpoint: String,
32
+ ?endpoint_cache_max_entries: Integer,
33
+ ?endpoint_cache_max_threads: Integer,
34
+ ?endpoint_cache_poll_interval: Integer,
35
+ ?endpoint_discovery: bool,
36
+ ?ignore_configured_endpoint_urls: bool,
37
+ ?log_formatter: untyped,
38
+ ?log_level: Symbol,
39
+ ?logger: untyped,
40
+ ?max_attempts: Integer,
41
+ ?profile: String,
42
+ ?request_checksum_calculation: String,
43
+ ?request_min_compression_size_bytes: Integer,
44
+ ?response_checksum_validation: String,
45
+ ?retry_backoff: Proc,
46
+ ?retry_base_delay: Float,
47
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
48
+ ?retry_limit: Integer,
49
+ ?retry_max_delay: Integer,
50
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
51
+ ?sdk_ua_app_id: String,
52
+ ?secret_access_key: String,
53
+ ?session_token: String,
54
+ ?sigv4a_signing_region_set: Array[String],
55
+ ?simple_json: bool,
56
+ ?stub_responses: untyped,
57
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
58
+ ?token_provider: untyped,
59
+ ?use_dualstack_endpoint: bool,
60
+ ?use_fips_endpoint: bool,
61
+ ?validate_params: bool,
62
+ ?endpoint_provider: untyped,
63
+ ?http_proxy: String,
64
+ ?http_open_timeout: (Float | Integer),
65
+ ?http_read_timeout: (Float | Integer),
66
+ ?http_idle_timeout: (Float | Integer),
67
+ ?http_continue_timeout: (Float | Integer),
68
+ ?ssl_timeout: (Float | Integer | nil),
69
+ ?http_wire_trace: bool,
70
+ ?ssl_verify_peer: bool,
71
+ ?ssl_ca_bundle: String,
72
+ ?ssl_ca_directory: String,
73
+ ?ssl_ca_store: String,
74
+ ?on_chunk_received: Proc,
75
+ ?on_chunk_sent: Proc,
76
+ ?raise_response_errors: bool
77
+ ) -> void
78
+ | (?Hash[Symbol, untyped]) -> void
79
+
80
+ def client: () -> Client
81
+
82
+
83
+ end
84
+ end
85
+ end