aws-sdk-lightsail 1.0.0.rc2 → 1.0.0.rc3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e36e776518dbb2e8554d53faec4f65bac6fb72d
4
- data.tar.gz: fe8c9ca379ec964ec79ae08b0a51b44fff24d645
3
+ metadata.gz: bd9e7fa54e79209f32dc2eca42e1ba268902b642
4
+ data.tar.gz: ab361267c4387a192c93fcf408837e648dc3700d
5
5
  SHA512:
6
- metadata.gz: f1a330a4c53d6eac6954a71cf071d51b2a98c370018bd57abff78dc5d2721a73b5490a10932bd1125839b5bc3d1a3faf979ec62b8b66b32fd7281406ed83dbc5
7
- data.tar.gz: 1f375452a4b08d5c358d8327e49edd4ff67b3d17b866e6cb9ada03091992e42c5681b589da877c45d0f68250c57ffe7ce776e4aecda81750adc0a26ba4bca3a9
6
+ metadata.gz: 164091e018ac8e32901db8e813459fb7e42ccbc82f81d5c836a8f6a4435cf944b13859efd34d56b4ed84b0366cac0978a3123bb128172494aff7185d917ec50b
7
+ data.tar.gz: d160a64aaf55b35451f367f068cec5800d93d83ce36f06dd92355af994edce8344a785f1d156aebd6bf79bb0a7bdbc8d2fd92ea0cc4959765375d77764cd5c16
@@ -1,6 +1,6 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
3
+ # This file is generated. See the contributing guide for more information:
4
4
  # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
5
  #
6
6
  # WARNING ABOUT GENERATED CODE
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-lightsail/customizations'
42
42
  # @service
43
43
  module Aws::Lightsail
44
44
 
45
- GEM_VERSION = '1.0.0.rc2'
45
+ GEM_VERSION = '1.0.0.rc3'
46
46
 
47
47
  end
@@ -1,6 +1,6 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
3
+ # This file is generated. See the contributing guide for more information:
4
4
  # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
5
  #
6
6
  # WARNING ABOUT GENERATED CODE
@@ -18,1946 +18,2299 @@ require 'aws-sdk-core/plugins/regional_endpoint.rb'
18
18
  require 'aws-sdk-core/plugins/response_paging.rb'
19
19
  require 'aws-sdk-core/plugins/stub_responses.rb'
20
20
  require 'aws-sdk-core/plugins/idempotency_token.rb'
21
+ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
21
22
  require 'aws-sdk-core/plugins/signature_v4.rb'
22
23
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
23
24
 
24
25
  Aws::Plugins::GlobalConfiguration.add_identifier(:lightsail)
25
26
 
26
- module Aws
27
- module Lightsail
28
- class Client < Seahorse::Client::Base
27
+ module Aws::Lightsail
28
+ class Client < Seahorse::Client::Base
29
29
 
30
- include Aws::ClientStubs
30
+ include Aws::ClientStubs
31
31
 
32
- @identifier = :lightsail
32
+ @identifier = :lightsail
33
33
 
34
- set_api(ClientApi::API)
34
+ set_api(ClientApi::API)
35
35
 
36
- add_plugin(Seahorse::Client::Plugins::ContentLength)
37
- add_plugin(Aws::Plugins::CredentialsConfiguration)
38
- add_plugin(Aws::Plugins::Logging)
39
- add_plugin(Aws::Plugins::ParamConverter)
40
- add_plugin(Aws::Plugins::ParamValidator)
41
- add_plugin(Aws::Plugins::UserAgent)
42
- add_plugin(Aws::Plugins::HelpfulSocketErrors)
43
- add_plugin(Aws::Plugins::RetryErrors)
44
- add_plugin(Aws::Plugins::GlobalConfiguration)
45
- add_plugin(Aws::Plugins::RegionalEndpoint)
46
- add_plugin(Aws::Plugins::ResponsePaging)
47
- add_plugin(Aws::Plugins::StubResponses)
48
- add_plugin(Aws::Plugins::IdempotencyToken)
49
- add_plugin(Aws::Plugins::SignatureV4)
50
- add_plugin(Aws::Plugins::Protocols::JsonRpc)
36
+ add_plugin(Seahorse::Client::Plugins::ContentLength)
37
+ add_plugin(Aws::Plugins::CredentialsConfiguration)
38
+ add_plugin(Aws::Plugins::Logging)
39
+ add_plugin(Aws::Plugins::ParamConverter)
40
+ add_plugin(Aws::Plugins::ParamValidator)
41
+ add_plugin(Aws::Plugins::UserAgent)
42
+ add_plugin(Aws::Plugins::HelpfulSocketErrors)
43
+ add_plugin(Aws::Plugins::RetryErrors)
44
+ add_plugin(Aws::Plugins::GlobalConfiguration)
45
+ add_plugin(Aws::Plugins::RegionalEndpoint)
46
+ add_plugin(Aws::Plugins::ResponsePaging)
47
+ add_plugin(Aws::Plugins::StubResponses)
48
+ add_plugin(Aws::Plugins::IdempotencyToken)
49
+ add_plugin(Aws::Plugins::JsonvalueConverter)
50
+ add_plugin(Aws::Plugins::SignatureV4)
51
+ add_plugin(Aws::Plugins::Protocols::JsonRpc)
51
52
 
52
- # @option options [required, Aws::CredentialProvider] :credentials
53
- # Your AWS credentials. This can be an instance of any one of the
54
- # following classes:
55
- #
56
- # * `Aws::Credentials` - Used for configuring static, non-refreshing
57
- # credentials.
58
- #
59
- # * `Aws::InstanceProfileCredentials` - Used for loading credentials
60
- # from an EC2 IMDS on an EC2 instance.
61
- #
62
- # * `Aws::SharedCredentials` - Used for loading credentials from a
63
- # shared file, such as `~/.aws/config`.
64
- #
65
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
66
- #
67
- # When `:credentials` are not configured directly, the following
68
- # locations will be searched for credentials:
69
- #
70
- # * `Aws.config[:credentials]`
71
- # * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
72
- # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
73
- # * `~/.aws/credentials`
74
- # * `~/.aws/config`
75
- # * EC2 IMDS instance profile - When used by default, the timeouts are
76
- # very aggressive. Construct and pass an instance of
77
- # `Aws::InstanceProfileCredentails` to enable retries and extended
78
- # timeouts.
79
- # @option options [required, String] :region
80
- # The AWS region to connect to. The configured `:region` is
81
- # used to determine the service `:endpoint`. When not passed,
82
- # a default `:region` is search for in the following locations:
83
- #
84
- # * `Aws.config[:region]`
85
- # * `ENV['AWS_REGION']`
86
- # * `ENV['AMAZON_REGION']`
87
- # * `ENV['AWS_DEFAULT_REGION']`
88
- # * `~/.aws/credentials`
89
- # * `~/.aws/config`
90
- # @option options [String] :access_key_id
91
- # @option options [Boolean] :convert_params (true)
92
- # When `true`, an attempt is made to coerce request parameters into
93
- # the required types.
94
- # @option options [String] :endpoint
95
- # The client endpoint is normally constructed from the `:region`
96
- # option. You should only configure an `:endpoint` when connecting
97
- # to test endpoints. This should be avalid HTTP(S) URI.
98
- # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
99
- # The log formatter.
100
- # @option options [Symbol] :log_level (:info)
101
- # The log level to send messages to the `:logger` at.
102
- # @option options [Logger] :logger
103
- # The Logger instance to send log messages to. If this option
104
- # is not set, logging will be disabled.
105
- # @option options [String] :profile ("default")
106
- # Used when loading credentials from the shared credentials file
107
- # at HOME/.aws/credentials. When not specified, 'default' is used.
108
- # @option options [Integer] :retry_limit (3)
109
- # The maximum number of times to retry failed requests. Only
110
- # ~ 500 level server errors and certain ~ 400 level client errors
111
- # are retried. Generally, these are throttling errors, data
112
- # checksum errors, networking errors, timeout errors and auth
113
- # errors from expired credentials.
114
- # @option options [String] :secret_access_key
115
- # @option options [String] :session_token
116
- # @option options [Boolean] :simple_json (false)
117
- # Disables request parameter conversion, validation, and formatting.
118
- # Also disable response data type conversions. This option is useful
119
- # when you want to ensure the highest level of performance by
120
- # avoiding overhead of walking request parameters and response data
121
- # structures.
122
- #
123
- # When `:simple_json` is enabled, the request parameters hash must
124
- # be formatted exactly as the DynamoDB API expects.
125
- # @option options [Boolean] :stub_responses (false)
126
- # Causes the client to return stubbed responses. By default
127
- # fake responses are generated and returned. You can specify
128
- # the response data to return or errors to raise by calling
129
- # {ClientStubs#stub_responses}. See {ClientStubs} for more information.
130
- #
131
- # ** Please note ** When response stubbing is enabled, no HTTP
132
- # requests are made, and retries are disabled.
133
- # @option options [Boolean] :validate_params (true)
134
- # When `true`, request parameters are validated before
135
- # sending the request.
136
- def initialize(*args)
137
- super
138
- end
139
-
140
- # @!group API Operations
53
+ # @option options [required, Aws::CredentialProvider] :credentials
54
+ # Your AWS credentials. This can be an instance of any one of the
55
+ # following classes:
56
+ #
57
+ # * `Aws::Credentials` - Used for configuring static, non-refreshing
58
+ # credentials.
59
+ #
60
+ # * `Aws::InstanceProfileCredentials` - Used for loading credentials
61
+ # from an EC2 IMDS on an EC2 instance.
62
+ #
63
+ # * `Aws::SharedCredentials` - Used for loading credentials from a
64
+ # shared file, such as `~/.aws/config`.
65
+ #
66
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
67
+ #
68
+ # When `:credentials` are not configured directly, the following
69
+ # locations will be searched for credentials:
70
+ #
71
+ # * `Aws.config[:credentials]`
72
+ # * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
73
+ # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
74
+ # * `~/.aws/credentials`
75
+ # * `~/.aws/config`
76
+ # * EC2 IMDS instance profile - When used by default, the timeouts are
77
+ # very aggressive. Construct and pass an instance of
78
+ # `Aws::InstanceProfileCredentails` to enable retries and extended
79
+ # timeouts.
80
+ #
81
+ # @option options [required, String] :region
82
+ # The AWS region to connect to. The configured `:region` is
83
+ # used to determine the service `:endpoint`. When not passed,
84
+ # a default `:region` is search for in the following locations:
85
+ #
86
+ # * `Aws.config[:region]`
87
+ # * `ENV['AWS_REGION']`
88
+ # * `ENV['AMAZON_REGION']`
89
+ # * `ENV['AWS_DEFAULT_REGION']`
90
+ # * `~/.aws/credentials`
91
+ # * `~/.aws/config`
92
+ #
93
+ # @option options [String] :access_key_id
94
+ #
95
+ # @option options [Boolean] :convert_params (true)
96
+ # When `true`, an attempt is made to coerce request parameters into
97
+ # the required types.
98
+ #
99
+ # @option options [String] :endpoint
100
+ # The client endpoint is normally constructed from the `:region`
101
+ # option. You should only configure an `:endpoint` when connecting
102
+ # to test endpoints. This should be avalid HTTP(S) URI.
103
+ #
104
+ # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
105
+ # The log formatter.
106
+ #
107
+ # @option options [Symbol] :log_level (:info)
108
+ # The log level to send messages to the `:logger` at.
109
+ #
110
+ # @option options [Logger] :logger
111
+ # The Logger instance to send log messages to. If this option
112
+ # is not set, logging will be disabled.
113
+ #
114
+ # @option options [String] :profile ("default")
115
+ # Used when loading credentials from the shared credentials file
116
+ # at HOME/.aws/credentials. When not specified, 'default' is used.
117
+ #
118
+ # @option options [Integer] :retry_limit (3)
119
+ # The maximum number of times to retry failed requests. Only
120
+ # ~ 500 level server errors and certain ~ 400 level client errors
121
+ # are retried. Generally, these are throttling errors, data
122
+ # checksum errors, networking errors, timeout errors and auth
123
+ # errors from expired credentials.
124
+ #
125
+ # @option options [String] :secret_access_key
126
+ #
127
+ # @option options [String] :session_token
128
+ #
129
+ # @option options [Boolean] :simple_json (false)
130
+ # Disables request parameter conversion, validation, and formatting.
131
+ # Also disable response data type conversions. This option is useful
132
+ # when you want to ensure the highest level of performance by
133
+ # avoiding overhead of walking request parameters and response data
134
+ # structures.
135
+ #
136
+ # When `:simple_json` is enabled, the request parameters hash must
137
+ # be formatted exactly as the DynamoDB API expects.
138
+ #
139
+ # @option options [Boolean] :stub_responses (false)
140
+ # Causes the client to return stubbed responses. By default
141
+ # fake responses are generated and returned. You can specify
142
+ # the response data to return or errors to raise by calling
143
+ # {ClientStubs#stub_responses}. See {ClientStubs} for more information.
144
+ #
145
+ # ** Please note ** When response stubbing is enabled, no HTTP
146
+ # requests are made, and retries are disabled.
147
+ #
148
+ # @option options [Boolean] :validate_params (true)
149
+ # When `true`, request parameters are validated before
150
+ # sending the request.
151
+ #
152
+ def initialize(*args)
153
+ super
154
+ end
141
155
 
142
- # Allocates a static IP address.
143
- # @option params [required, String] :static_ip_name
144
- # The name of the static IP address.
145
- # @return [Types::AllocateStaticIpResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
146
- #
147
- # * {Types::AllocateStaticIpResult#operations #operations} => Array&lt;Types::Operation&gt;
148
- #
149
- # @example Request syntax with placeholder values
150
- # resp = client.allocate_static_ip({
151
- # static_ip_name: "ResourceName", # required
152
- # })
153
- #
154
- # @example Response structure
155
- # resp.operations #=> Array
156
- # resp.operations[0].id #=> String
157
- # resp.operations[0].resource_name #=> String
158
- # resp.operations[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
159
- # resp.operations[0].created_at #=> Time
160
- # resp.operations[0].location.availability_zone #=> String
161
- # resp.operations[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
162
- # resp.operations[0].is_terminal #=> Boolean
163
- # resp.operations[0].operation_details #=> String
164
- # resp.operations[0].operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
165
- # resp.operations[0].status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
166
- # resp.operations[0].status_changed_at #=> Time
167
- # resp.operations[0].error_code #=> String
168
- # resp.operations[0].error_details #=> String
169
- # @overload allocate_static_ip(params = {})
170
- # @param [Hash] params ({})
171
- def allocate_static_ip(params = {}, options = {})
172
- req = build_request(:allocate_static_ip, params)
173
- req.send_request(options)
174
- end
156
+ # @!group API Operations
175
157
 
176
- # Attaches a static IP address to a specific Amazon Lightsail instance.
177
- # @option params [required, String] :static_ip_name
178
- # The name of the static IP.
179
- # @option params [required, String] :instance_name
180
- # The instance name to which you want to attach the static IP address.
181
- # @return [Types::AttachStaticIpResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
182
- #
183
- # * {Types::AttachStaticIpResult#operations #operations} => Array&lt;Types::Operation&gt;
184
- #
185
- # @example Request syntax with placeholder values
186
- # resp = client.attach_static_ip({
187
- # static_ip_name: "ResourceName", # required
188
- # instance_name: "ResourceName", # required
189
- # })
190
- #
191
- # @example Response structure
192
- # resp.operations #=> Array
193
- # resp.operations[0].id #=> String
194
- # resp.operations[0].resource_name #=> String
195
- # resp.operations[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
196
- # resp.operations[0].created_at #=> Time
197
- # resp.operations[0].location.availability_zone #=> String
198
- # resp.operations[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
199
- # resp.operations[0].is_terminal #=> Boolean
200
- # resp.operations[0].operation_details #=> String
201
- # resp.operations[0].operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
202
- # resp.operations[0].status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
203
- # resp.operations[0].status_changed_at #=> Time
204
- # resp.operations[0].error_code #=> String
205
- # resp.operations[0].error_details #=> String
206
- # @overload attach_static_ip(params = {})
207
- # @param [Hash] params ({})
208
- def attach_static_ip(params = {}, options = {})
209
- req = build_request(:attach_static_ip, params)
210
- req.send_request(options)
211
- end
158
+ # Allocates a static IP address.
159
+ #
160
+ # @option params [required, String] :static_ip_name
161
+ # The name of the static IP address.
162
+ #
163
+ # @return [Types::AllocateStaticIpResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
164
+ #
165
+ # * {Types::AllocateStaticIpResult#operations #operations} => Array&lt;Types::Operation&gt;
166
+ #
167
+ # @example Request syntax with placeholder values
168
+ #
169
+ # resp = client.allocate_static_ip({
170
+ # static_ip_name: "ResourceName", # required
171
+ # })
172
+ #
173
+ # @example Response structure
174
+ #
175
+ # resp.operations #=> Array
176
+ # resp.operations[0].id #=> String
177
+ # resp.operations[0].resource_name #=> String
178
+ # resp.operations[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
179
+ # resp.operations[0].created_at #=> Time
180
+ # resp.operations[0].location.availability_zone #=> String
181
+ # resp.operations[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
182
+ # resp.operations[0].is_terminal #=> Boolean
183
+ # resp.operations[0].operation_details #=> String
184
+ # resp.operations[0].operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
185
+ # resp.operations[0].status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
186
+ # resp.operations[0].status_changed_at #=> Time
187
+ # resp.operations[0].error_code #=> String
188
+ # resp.operations[0].error_details #=> String
189
+ #
190
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/AllocateStaticIp AWS API Documentation
191
+ #
192
+ # @overload allocate_static_ip(params = {})
193
+ # @param [Hash] params ({})
194
+ def allocate_static_ip(params = {}, options = {})
195
+ req = build_request(:allocate_static_ip, params)
196
+ req.send_request(options)
197
+ end
212
198
 
213
- # Closes the public ports on a specific Amazon Lightsail instance.
214
- # @option params [required, Types::PortInfo] :port_info
215
- # Information about the public port you are trying to close.
216
- # @option params [required, String] :instance_name
217
- # The name of the instance on which you're attempting to close the
218
- # public ports.
219
- # @return [Types::CloseInstancePublicPortsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
220
- #
221
- # * {Types::CloseInstancePublicPortsResult#operation #operation} => Types::Operation
222
- #
223
- # @example Request syntax with placeholder values
224
- # resp = client.close_instance_public_ports({
225
- # port_info: { # required
226
- # from_port: 1,
227
- # to_port: 1,
228
- # protocol: "tcp", # accepts tcp, all, udp
229
- # },
230
- # instance_name: "ResourceName", # required
231
- # })
232
- #
233
- # @example Response structure
234
- # resp.operation.id #=> String
235
- # resp.operation.resource_name #=> String
236
- # resp.operation.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
237
- # resp.operation.created_at #=> Time
238
- # resp.operation.location.availability_zone #=> String
239
- # resp.operation.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
240
- # resp.operation.is_terminal #=> Boolean
241
- # resp.operation.operation_details #=> String
242
- # resp.operation.operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
243
- # resp.operation.status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
244
- # resp.operation.status_changed_at #=> Time
245
- # resp.operation.error_code #=> String
246
- # resp.operation.error_details #=> String
247
- # @overload close_instance_public_ports(params = {})
248
- # @param [Hash] params ({})
249
- def close_instance_public_ports(params = {}, options = {})
250
- req = build_request(:close_instance_public_ports, params)
251
- req.send_request(options)
252
- end
199
+ # Attaches a static IP address to a specific Amazon Lightsail instance.
200
+ #
201
+ # @option params [required, String] :static_ip_name
202
+ # The name of the static IP.
203
+ #
204
+ # @option params [required, String] :instance_name
205
+ # The instance name to which you want to attach the static IP address.
206
+ #
207
+ # @return [Types::AttachStaticIpResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
208
+ #
209
+ # * {Types::AttachStaticIpResult#operations #operations} => Array&lt;Types::Operation&gt;
210
+ #
211
+ # @example Request syntax with placeholder values
212
+ #
213
+ # resp = client.attach_static_ip({
214
+ # static_ip_name: "ResourceName", # required
215
+ # instance_name: "ResourceName", # required
216
+ # })
217
+ #
218
+ # @example Response structure
219
+ #
220
+ # resp.operations #=> Array
221
+ # resp.operations[0].id #=> String
222
+ # resp.operations[0].resource_name #=> String
223
+ # resp.operations[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
224
+ # resp.operations[0].created_at #=> Time
225
+ # resp.operations[0].location.availability_zone #=> String
226
+ # resp.operations[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
227
+ # resp.operations[0].is_terminal #=> Boolean
228
+ # resp.operations[0].operation_details #=> String
229
+ # resp.operations[0].operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
230
+ # resp.operations[0].status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
231
+ # resp.operations[0].status_changed_at #=> Time
232
+ # resp.operations[0].error_code #=> String
233
+ # resp.operations[0].error_details #=> String
234
+ #
235
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/AttachStaticIp AWS API Documentation
236
+ #
237
+ # @overload attach_static_ip(params = {})
238
+ # @param [Hash] params ({})
239
+ def attach_static_ip(params = {}, options = {})
240
+ req = build_request(:attach_static_ip, params)
241
+ req.send_request(options)
242
+ end
253
243
 
254
- # Creates a domain resource for the specified domain (e.g.,
255
- # example.com).
256
- # @option params [required, String] :domain_name
257
- # The domain name to manage (e.g., `example.com`).
258
- #
259
- # <note markdown="1"> You cannot register a new domain name using Lightsail. You must
260
- # register a domain name using Amazon Route 53 or another domain name
261
- # registrar. If you have already registered your domain, you can enter
262
- # its name in this parameter to manage the DNS records for that domain.
263
- #
264
- # </note>
265
- # @return [Types::CreateDomainResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
266
- #
267
- # * {Types::CreateDomainResult#operation #operation} => Types::Operation
268
- #
269
- # @example Request syntax with placeholder values
270
- # resp = client.create_domain({
271
- # domain_name: "DomainName", # required
272
- # })
273
- #
274
- # @example Response structure
275
- # resp.operation.id #=> String
276
- # resp.operation.resource_name #=> String
277
- # resp.operation.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
278
- # resp.operation.created_at #=> Time
279
- # resp.operation.location.availability_zone #=> String
280
- # resp.operation.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
281
- # resp.operation.is_terminal #=> Boolean
282
- # resp.operation.operation_details #=> String
283
- # resp.operation.operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
284
- # resp.operation.status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
285
- # resp.operation.status_changed_at #=> Time
286
- # resp.operation.error_code #=> String
287
- # resp.operation.error_details #=> String
288
- # @overload create_domain(params = {})
289
- # @param [Hash] params ({})
290
- def create_domain(params = {}, options = {})
291
- req = build_request(:create_domain, params)
292
- req.send_request(options)
293
- end
244
+ # Closes the public ports on a specific Amazon Lightsail instance.
245
+ #
246
+ # @option params [required, Types::PortInfo] :port_info
247
+ # Information about the public port you are trying to close.
248
+ #
249
+ # @option params [required, String] :instance_name
250
+ # The name of the instance on which you're attempting to close the
251
+ # public ports.
252
+ #
253
+ # @return [Types::CloseInstancePublicPortsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
254
+ #
255
+ # * {Types::CloseInstancePublicPortsResult#operation #operation} => Types::Operation
256
+ #
257
+ # @example Request syntax with placeholder values
258
+ #
259
+ # resp = client.close_instance_public_ports({
260
+ # port_info: { # required
261
+ # from_port: 1,
262
+ # to_port: 1,
263
+ # protocol: "tcp", # accepts tcp, all, udp
264
+ # },
265
+ # instance_name: "ResourceName", # required
266
+ # })
267
+ #
268
+ # @example Response structure
269
+ #
270
+ # resp.operation.id #=> String
271
+ # resp.operation.resource_name #=> String
272
+ # resp.operation.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
273
+ # resp.operation.created_at #=> Time
274
+ # resp.operation.location.availability_zone #=> String
275
+ # resp.operation.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
276
+ # resp.operation.is_terminal #=> Boolean
277
+ # resp.operation.operation_details #=> String
278
+ # resp.operation.operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
279
+ # resp.operation.status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
280
+ # resp.operation.status_changed_at #=> Time
281
+ # resp.operation.error_code #=> String
282
+ # resp.operation.error_details #=> String
283
+ #
284
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CloseInstancePublicPorts AWS API Documentation
285
+ #
286
+ # @overload close_instance_public_ports(params = {})
287
+ # @param [Hash] params ({})
288
+ def close_instance_public_ports(params = {}, options = {})
289
+ req = build_request(:close_instance_public_ports, params)
290
+ req.send_request(options)
291
+ end
294
292
 
295
- # Creates one of the following entry records associated with the domain:
296
- # A record, CNAME record, TXT record, or MX record.
297
- # @option params [required, String] :domain_name
298
- # The domain name (e.g., `example.com`) for which you want to create the
299
- # domain entry.
300
- # @option params [required, Types::DomainEntry] :domain_entry
301
- # An array of key-value pairs containing information about the domain
302
- # entry request.
303
- # @return [Types::CreateDomainEntryResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
304
- #
305
- # * {Types::CreateDomainEntryResult#operation #operation} => Types::Operation
306
- #
307
- # @example Request syntax with placeholder values
308
- # resp = client.create_domain_entry({
309
- # domain_name: "DomainName", # required
310
- # domain_entry: { # required
311
- # id: "NonEmptyString",
312
- # name: "DomainName",
313
- # target: "string",
314
- # type: "DomainEntryType",
315
- # options: {
316
- # "DomainEntryOptionsKeys" => "string",
317
- # },
318
- # },
319
- # })
320
- #
321
- # @example Response structure
322
- # resp.operation.id #=> String
323
- # resp.operation.resource_name #=> String
324
- # resp.operation.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
325
- # resp.operation.created_at #=> Time
326
- # resp.operation.location.availability_zone #=> String
327
- # resp.operation.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
328
- # resp.operation.is_terminal #=> Boolean
329
- # resp.operation.operation_details #=> String
330
- # resp.operation.operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
331
- # resp.operation.status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
332
- # resp.operation.status_changed_at #=> Time
333
- # resp.operation.error_code #=> String
334
- # resp.operation.error_details #=> String
335
- # @overload create_domain_entry(params = {})
336
- # @param [Hash] params ({})
337
- def create_domain_entry(params = {}, options = {})
338
- req = build_request(:create_domain_entry, params)
339
- req.send_request(options)
340
- end
293
+ # Creates a domain resource for the specified domain (e.g.,
294
+ # example.com).
295
+ #
296
+ # @option params [required, String] :domain_name
297
+ # The domain name to manage (e.g., `example.com`).
298
+ #
299
+ # <note markdown="1"> You cannot register a new domain name using Lightsail. You must
300
+ # register a domain name using Amazon Route 53 or another domain name
301
+ # registrar. If you have already registered your domain, you can enter
302
+ # its name in this parameter to manage the DNS records for that domain.
303
+ #
304
+ # </note>
305
+ #
306
+ # @return [Types::CreateDomainResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
307
+ #
308
+ # * {Types::CreateDomainResult#operation #operation} => Types::Operation
309
+ #
310
+ # @example Request syntax with placeholder values
311
+ #
312
+ # resp = client.create_domain({
313
+ # domain_name: "DomainName", # required
314
+ # })
315
+ #
316
+ # @example Response structure
317
+ #
318
+ # resp.operation.id #=> String
319
+ # resp.operation.resource_name #=> String
320
+ # resp.operation.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
321
+ # resp.operation.created_at #=> Time
322
+ # resp.operation.location.availability_zone #=> String
323
+ # resp.operation.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
324
+ # resp.operation.is_terminal #=> Boolean
325
+ # resp.operation.operation_details #=> String
326
+ # resp.operation.operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
327
+ # resp.operation.status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
328
+ # resp.operation.status_changed_at #=> Time
329
+ # resp.operation.error_code #=> String
330
+ # resp.operation.error_details #=> String
331
+ #
332
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateDomain AWS API Documentation
333
+ #
334
+ # @overload create_domain(params = {})
335
+ # @param [Hash] params ({})
336
+ def create_domain(params = {}, options = {})
337
+ req = build_request(:create_domain, params)
338
+ req.send_request(options)
339
+ end
341
340
 
342
- # Creates a snapshot of a specific virtual private server, or
343
- # *instance*. You can use a snapshot to create a new instance that is
344
- # based on that snapshot.
345
- # @option params [required, String] :instance_snapshot_name
346
- # The name for your new snapshot.
347
- # @option params [required, String] :instance_name
348
- # The Lightsail instance on which to base your snapshot.
349
- # @return [Types::CreateInstanceSnapshotResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
350
- #
351
- # * {Types::CreateInstanceSnapshotResult#operations #operations} => Array&lt;Types::Operation&gt;
352
- #
353
- # @example Request syntax with placeholder values
354
- # resp = client.create_instance_snapshot({
355
- # instance_snapshot_name: "ResourceName", # required
356
- # instance_name: "ResourceName", # required
357
- # })
358
- #
359
- # @example Response structure
360
- # resp.operations #=> Array
361
- # resp.operations[0].id #=> String
362
- # resp.operations[0].resource_name #=> String
363
- # resp.operations[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
364
- # resp.operations[0].created_at #=> Time
365
- # resp.operations[0].location.availability_zone #=> String
366
- # resp.operations[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
367
- # resp.operations[0].is_terminal #=> Boolean
368
- # resp.operations[0].operation_details #=> String
369
- # resp.operations[0].operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
370
- # resp.operations[0].status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
371
- # resp.operations[0].status_changed_at #=> Time
372
- # resp.operations[0].error_code #=> String
373
- # resp.operations[0].error_details #=> String
374
- # @overload create_instance_snapshot(params = {})
375
- # @param [Hash] params ({})
376
- def create_instance_snapshot(params = {}, options = {})
377
- req = build_request(:create_instance_snapshot, params)
378
- req.send_request(options)
379
- end
341
+ # Creates one of the following entry records associated with the domain:
342
+ # A record, CNAME record, TXT record, or MX record.
343
+ #
344
+ # @option params [required, String] :domain_name
345
+ # The domain name (e.g., `example.com`) for which you want to create the
346
+ # domain entry.
347
+ #
348
+ # @option params [required, Types::DomainEntry] :domain_entry
349
+ # An array of key-value pairs containing information about the domain
350
+ # entry request.
351
+ #
352
+ # @return [Types::CreateDomainEntryResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
353
+ #
354
+ # * {Types::CreateDomainEntryResult#operation #operation} => Types::Operation
355
+ #
356
+ # @example Request syntax with placeholder values
357
+ #
358
+ # resp = client.create_domain_entry({
359
+ # domain_name: "DomainName", # required
360
+ # domain_entry: { # required
361
+ # id: "NonEmptyString",
362
+ # name: "DomainName",
363
+ # target: "string",
364
+ # type: "DomainEntryType",
365
+ # options: {
366
+ # "DomainEntryOptionsKeys" => "string",
367
+ # },
368
+ # },
369
+ # })
370
+ #
371
+ # @example Response structure
372
+ #
373
+ # resp.operation.id #=> String
374
+ # resp.operation.resource_name #=> String
375
+ # resp.operation.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
376
+ # resp.operation.created_at #=> Time
377
+ # resp.operation.location.availability_zone #=> String
378
+ # resp.operation.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
379
+ # resp.operation.is_terminal #=> Boolean
380
+ # resp.operation.operation_details #=> String
381
+ # resp.operation.operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
382
+ # resp.operation.status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
383
+ # resp.operation.status_changed_at #=> Time
384
+ # resp.operation.error_code #=> String
385
+ # resp.operation.error_details #=> String
386
+ #
387
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateDomainEntry AWS API Documentation
388
+ #
389
+ # @overload create_domain_entry(params = {})
390
+ # @param [Hash] params ({})
391
+ def create_domain_entry(params = {}, options = {})
392
+ req = build_request(:create_domain_entry, params)
393
+ req.send_request(options)
394
+ end
380
395
 
381
- # Creates one or more Amazon Lightsail virtual private servers, or
382
- # *instances*.
383
- # @option params [required, Array<String>] :instance_names
384
- # The names to use for your new Lightsail instances. Separate multiple
385
- # values using quotation marks and commas, for example:
386
- # `["MyFirstInstance","MySecondInstance"]`
387
- # @option params [required, String] :availability_zone
388
- # The Availability Zone in which to create your instance. Use the
389
- # following format: `us-east-1a` (case sensitive).
390
- # @option params [String] :custom_image_name
391
- # The name for your custom image.
392
- # @option params [required, String] :blueprint_id
393
- # The ID for a virtual private server image (e.g., `app_wordpress_4_4`
394
- # or `app_lamp_7_0`). Use the get blueprints operation to return a list
395
- # of available images (or *blueprints*).
396
- # @option params [required, String] :bundle_id
397
- # The bundle of specification information for your virtual private
398
- # server (or *instance*), including the pricing plan (e.g.,
399
- # `micro_1_0`).
400
- # @option params [String] :user_data
401
- # A launch script you can create that configures a server with
402
- # additional user data. For example, you might want to run `apt-get –y
403
- # update`.
404
- #
405
- # <note markdown="1"> Depending on the machine image you choose, the command to get software
406
- # on your instance varies. Amazon Linux and CentOS use `yum`, Debian and
407
- # Ubuntu use `apt-get`, and FreeBSD uses `pkg`. For a complete list, see
408
- # the [Dev Guide][1].
409
- #
410
- # </note>
411
- #
412
- #
413
- #
414
- # [1]: http://lightsail.aws.amazon.com/ls/docs/getting-started/articles/pre-installed-apps
415
- # @option params [String] :key_pair_name
416
- # The name of your key pair.
417
- # @return [Types::CreateInstancesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
418
- #
419
- # * {Types::CreateInstancesResult#operations #operations} => Array&lt;Types::Operation&gt;
420
- #
421
- # @example Request syntax with placeholder values
422
- # resp = client.create_instances({
423
- # instance_names: ["string"], # required
424
- # availability_zone: "string", # required
425
- # custom_image_name: "ResourceName",
426
- # blueprint_id: "NonEmptyString", # required
427
- # bundle_id: "NonEmptyString", # required
428
- # user_data: "string",
429
- # key_pair_name: "ResourceName",
430
- # })
431
- #
432
- # @example Response structure
433
- # resp.operations #=> Array
434
- # resp.operations[0].id #=> String
435
- # resp.operations[0].resource_name #=> String
436
- # resp.operations[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
437
- # resp.operations[0].created_at #=> Time
438
- # resp.operations[0].location.availability_zone #=> String
439
- # resp.operations[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
440
- # resp.operations[0].is_terminal #=> Boolean
441
- # resp.operations[0].operation_details #=> String
442
- # resp.operations[0].operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
443
- # resp.operations[0].status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
444
- # resp.operations[0].status_changed_at #=> Time
445
- # resp.operations[0].error_code #=> String
446
- # resp.operations[0].error_details #=> String
447
- # @overload create_instances(params = {})
448
- # @param [Hash] params ({})
449
- def create_instances(params = {}, options = {})
450
- req = build_request(:create_instances, params)
451
- req.send_request(options)
452
- end
396
+ # Creates a snapshot of a specific virtual private server, or
397
+ # *instance*. You can use a snapshot to create a new instance that is
398
+ # based on that snapshot.
399
+ #
400
+ # @option params [required, String] :instance_snapshot_name
401
+ # The name for your new snapshot.
402
+ #
403
+ # @option params [required, String] :instance_name
404
+ # The Lightsail instance on which to base your snapshot.
405
+ #
406
+ # @return [Types::CreateInstanceSnapshotResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
407
+ #
408
+ # * {Types::CreateInstanceSnapshotResult#operations #operations} => Array&lt;Types::Operation&gt;
409
+ #
410
+ # @example Request syntax with placeholder values
411
+ #
412
+ # resp = client.create_instance_snapshot({
413
+ # instance_snapshot_name: "ResourceName", # required
414
+ # instance_name: "ResourceName", # required
415
+ # })
416
+ #
417
+ # @example Response structure
418
+ #
419
+ # resp.operations #=> Array
420
+ # resp.operations[0].id #=> String
421
+ # resp.operations[0].resource_name #=> String
422
+ # resp.operations[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
423
+ # resp.operations[0].created_at #=> Time
424
+ # resp.operations[0].location.availability_zone #=> String
425
+ # resp.operations[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
426
+ # resp.operations[0].is_terminal #=> Boolean
427
+ # resp.operations[0].operation_details #=> String
428
+ # resp.operations[0].operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
429
+ # resp.operations[0].status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
430
+ # resp.operations[0].status_changed_at #=> Time
431
+ # resp.operations[0].error_code #=> String
432
+ # resp.operations[0].error_details #=> String
433
+ #
434
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateInstanceSnapshot AWS API Documentation
435
+ #
436
+ # @overload create_instance_snapshot(params = {})
437
+ # @param [Hash] params ({})
438
+ def create_instance_snapshot(params = {}, options = {})
439
+ req = build_request(:create_instance_snapshot, params)
440
+ req.send_request(options)
441
+ end
453
442
 
454
- # Uses a specific snapshot as a blueprint for creating one or more new
455
- # instances that are based on that identical configuration.
456
- # @option params [required, Array<String>] :instance_names
457
- # The names for your new instances.
458
- # @option params [required, String] :availability_zone
459
- # The Availability Zone where you want to create your instances. Use the
460
- # following formatting: `us-east-1a` (case sensitive).
461
- # @option params [required, String] :instance_snapshot_name
462
- # The name of the instance snapshot on which you are basing your new
463
- # instances. Use the get instance snapshots operation to return
464
- # information about your existing snapshots.
465
- # @option params [required, String] :bundle_id
466
- # The bundle of specification information for your virtual private
467
- # server (or *instance*), including the pricing plan (e.g.,
468
- # `micro_1_0`).
469
- # @option params [String] :user_data
470
- # You can create a launch script that configures a server with
471
- # additional user data. For example, `apt-get –y update`.
472
- #
473
- # <note markdown="1"> Depending on the machine image you choose, the command to get software
474
- # on your instance varies. Amazon Linux and CentOS use `yum`, Debian and
475
- # Ubuntu use `apt-get`, and FreeBSD uses `pkg`. For a complete list, see
476
- # the [Dev Guide][1].
477
- #
478
- # </note>
479
- #
480
- #
481
- #
482
- # [1]: http://lightsail.aws.amazon.com/ls/docs/getting-started/articles/pre-installed-apps
483
- # @option params [String] :key_pair_name
484
- # The name for your key pair.
485
- # @return [Types::CreateInstancesFromSnapshotResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
486
- #
487
- # * {Types::CreateInstancesFromSnapshotResult#operations #operations} => Array&lt;Types::Operation&gt;
488
- #
489
- # @example Request syntax with placeholder values
490
- # resp = client.create_instances_from_snapshot({
491
- # instance_names: ["string"], # required
492
- # availability_zone: "string", # required
493
- # instance_snapshot_name: "ResourceName", # required
494
- # bundle_id: "NonEmptyString", # required
495
- # user_data: "string",
496
- # key_pair_name: "ResourceName",
497
- # })
498
- #
499
- # @example Response structure
500
- # resp.operations #=> Array
501
- # resp.operations[0].id #=> String
502
- # resp.operations[0].resource_name #=> String
503
- # resp.operations[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
504
- # resp.operations[0].created_at #=> Time
505
- # resp.operations[0].location.availability_zone #=> String
506
- # resp.operations[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
507
- # resp.operations[0].is_terminal #=> Boolean
508
- # resp.operations[0].operation_details #=> String
509
- # resp.operations[0].operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
510
- # resp.operations[0].status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
511
- # resp.operations[0].status_changed_at #=> Time
512
- # resp.operations[0].error_code #=> String
513
- # resp.operations[0].error_details #=> String
514
- # @overload create_instances_from_snapshot(params = {})
515
- # @param [Hash] params ({})
516
- def create_instances_from_snapshot(params = {}, options = {})
517
- req = build_request(:create_instances_from_snapshot, params)
518
- req.send_request(options)
519
- end
443
+ # Creates one or more Amazon Lightsail virtual private servers, or
444
+ # *instances*.
445
+ #
446
+ # @option params [required, Array<String>] :instance_names
447
+ # The names to use for your new Lightsail instances. Separate multiple
448
+ # values using quotation marks and commas, for example:
449
+ # `["MyFirstInstance","MySecondInstance"]`
450
+ #
451
+ # @option params [required, String] :availability_zone
452
+ # The Availability Zone in which to create your instance. Use the
453
+ # following format: `us-east-1a` (case sensitive).
454
+ #
455
+ # @option params [String] :custom_image_name
456
+ # The name for your custom image.
457
+ #
458
+ # @option params [required, String] :blueprint_id
459
+ # The ID for a virtual private server image (e.g., `app_wordpress_4_4`
460
+ # or `app_lamp_7_0`). Use the get blueprints operation to return a list
461
+ # of available images (or *blueprints*).
462
+ #
463
+ # @option params [required, String] :bundle_id
464
+ # The bundle of specification information for your virtual private
465
+ # server (or *instance*), including the pricing plan (e.g.,
466
+ # `micro_1_0`).
467
+ #
468
+ # @option params [String] :user_data
469
+ # A launch script you can create that configures a server with
470
+ # additional user data. For example, you might want to run `apt-get –y
471
+ # update`.
472
+ #
473
+ # <note markdown="1"> Depending on the machine image you choose, the command to get software
474
+ # on your instance varies. Amazon Linux and CentOS use `yum`, Debian and
475
+ # Ubuntu use `apt-get`, and FreeBSD uses `pkg`. For a complete list, see
476
+ # the [Dev Guide][1].
477
+ #
478
+ # </note>
479
+ #
480
+ #
481
+ #
482
+ # [1]: http://lightsail.aws.amazon.com/ls/docs/getting-started/articles/pre-installed-apps
483
+ #
484
+ # @option params [String] :key_pair_name
485
+ # The name of your key pair.
486
+ #
487
+ # @return [Types::CreateInstancesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
488
+ #
489
+ # * {Types::CreateInstancesResult#operations #operations} => Array&lt;Types::Operation&gt;
490
+ #
491
+ # @example Request syntax with placeholder values
492
+ #
493
+ # resp = client.create_instances({
494
+ # instance_names: ["string"], # required
495
+ # availability_zone: "string", # required
496
+ # custom_image_name: "ResourceName",
497
+ # blueprint_id: "NonEmptyString", # required
498
+ # bundle_id: "NonEmptyString", # required
499
+ # user_data: "string",
500
+ # key_pair_name: "ResourceName",
501
+ # })
502
+ #
503
+ # @example Response structure
504
+ #
505
+ # resp.operations #=> Array
506
+ # resp.operations[0].id #=> String
507
+ # resp.operations[0].resource_name #=> String
508
+ # resp.operations[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
509
+ # resp.operations[0].created_at #=> Time
510
+ # resp.operations[0].location.availability_zone #=> String
511
+ # resp.operations[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
512
+ # resp.operations[0].is_terminal #=> Boolean
513
+ # resp.operations[0].operation_details #=> String
514
+ # resp.operations[0].operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
515
+ # resp.operations[0].status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
516
+ # resp.operations[0].status_changed_at #=> Time
517
+ # resp.operations[0].error_code #=> String
518
+ # resp.operations[0].error_details #=> String
519
+ #
520
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateInstances AWS API Documentation
521
+ #
522
+ # @overload create_instances(params = {})
523
+ # @param [Hash] params ({})
524
+ def create_instances(params = {}, options = {})
525
+ req = build_request(:create_instances, params)
526
+ req.send_request(options)
527
+ end
520
528
 
521
- # Creates sn SSH key pair.
522
- # @option params [required, String] :key_pair_name
523
- # The name for your new key pair.
524
- # @return [Types::CreateKeyPairResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
525
- #
526
- # * {Types::CreateKeyPairResult#key_pair #keyPair} => Types::KeyPair
527
- # * {Types::CreateKeyPairResult#public_key_base_64 #publicKeyBase64} => String
528
- # * {Types::CreateKeyPairResult#private_key_base_64 #privateKeyBase64} => String
529
- # * {Types::CreateKeyPairResult#operation #operation} => Types::Operation
530
- #
531
- # @example Request syntax with placeholder values
532
- # resp = client.create_key_pair({
533
- # key_pair_name: "ResourceName", # required
534
- # })
535
- #
536
- # @example Response structure
537
- # resp.key_pair.name #=> String
538
- # resp.key_pair.arn #=> String
539
- # resp.key_pair.support_code #=> String
540
- # resp.key_pair.created_at #=> Time
541
- # resp.key_pair.location.availability_zone #=> String
542
- # resp.key_pair.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
543
- # resp.key_pair.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
544
- # resp.key_pair.fingerprint #=> String
545
- # resp.public_key_base_64 #=> String
546
- # resp.private_key_base_64 #=> String
547
- # resp.operation.id #=> String
548
- # resp.operation.resource_name #=> String
549
- # resp.operation.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
550
- # resp.operation.created_at #=> Time
551
- # resp.operation.location.availability_zone #=> String
552
- # resp.operation.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
553
- # resp.operation.is_terminal #=> Boolean
554
- # resp.operation.operation_details #=> String
555
- # resp.operation.operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
556
- # resp.operation.status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
557
- # resp.operation.status_changed_at #=> Time
558
- # resp.operation.error_code #=> String
559
- # resp.operation.error_details #=> String
560
- # @overload create_key_pair(params = {})
561
- # @param [Hash] params ({})
562
- def create_key_pair(params = {}, options = {})
563
- req = build_request(:create_key_pair, params)
564
- req.send_request(options)
565
- end
529
+ # Uses a specific snapshot as a blueprint for creating one or more new
530
+ # instances that are based on that identical configuration.
531
+ #
532
+ # @option params [required, Array<String>] :instance_names
533
+ # The names for your new instances.
534
+ #
535
+ # @option params [required, String] :availability_zone
536
+ # The Availability Zone where you want to create your instances. Use the
537
+ # following formatting: `us-east-1a` (case sensitive).
538
+ #
539
+ # @option params [required, String] :instance_snapshot_name
540
+ # The name of the instance snapshot on which you are basing your new
541
+ # instances. Use the get instance snapshots operation to return
542
+ # information about your existing snapshots.
543
+ #
544
+ # @option params [required, String] :bundle_id
545
+ # The bundle of specification information for your virtual private
546
+ # server (or *instance*), including the pricing plan (e.g.,
547
+ # `micro_1_0`).
548
+ #
549
+ # @option params [String] :user_data
550
+ # You can create a launch script that configures a server with
551
+ # additional user data. For example, `apt-get –y update`.
552
+ #
553
+ # <note markdown="1"> Depending on the machine image you choose, the command to get software
554
+ # on your instance varies. Amazon Linux and CentOS use `yum`, Debian and
555
+ # Ubuntu use `apt-get`, and FreeBSD uses `pkg`. For a complete list, see
556
+ # the [Dev Guide][1].
557
+ #
558
+ # </note>
559
+ #
560
+ #
561
+ #
562
+ # [1]: http://lightsail.aws.amazon.com/ls/docs/getting-started/articles/pre-installed-apps
563
+ #
564
+ # @option params [String] :key_pair_name
565
+ # The name for your key pair.
566
+ #
567
+ # @return [Types::CreateInstancesFromSnapshotResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
568
+ #
569
+ # * {Types::CreateInstancesFromSnapshotResult#operations #operations} => Array&lt;Types::Operation&gt;
570
+ #
571
+ # @example Request syntax with placeholder values
572
+ #
573
+ # resp = client.create_instances_from_snapshot({
574
+ # instance_names: ["string"], # required
575
+ # availability_zone: "string", # required
576
+ # instance_snapshot_name: "ResourceName", # required
577
+ # bundle_id: "NonEmptyString", # required
578
+ # user_data: "string",
579
+ # key_pair_name: "ResourceName",
580
+ # })
581
+ #
582
+ # @example Response structure
583
+ #
584
+ # resp.operations #=> Array
585
+ # resp.operations[0].id #=> String
586
+ # resp.operations[0].resource_name #=> String
587
+ # resp.operations[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
588
+ # resp.operations[0].created_at #=> Time
589
+ # resp.operations[0].location.availability_zone #=> String
590
+ # resp.operations[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
591
+ # resp.operations[0].is_terminal #=> Boolean
592
+ # resp.operations[0].operation_details #=> String
593
+ # resp.operations[0].operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
594
+ # resp.operations[0].status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
595
+ # resp.operations[0].status_changed_at #=> Time
596
+ # resp.operations[0].error_code #=> String
597
+ # resp.operations[0].error_details #=> String
598
+ #
599
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateInstancesFromSnapshot AWS API Documentation
600
+ #
601
+ # @overload create_instances_from_snapshot(params = {})
602
+ # @param [Hash] params ({})
603
+ def create_instances_from_snapshot(params = {}, options = {})
604
+ req = build_request(:create_instances_from_snapshot, params)
605
+ req.send_request(options)
606
+ end
566
607
 
567
- # Deletes the specified domain recordset and all of its domain records.
568
- # @option params [required, String] :domain_name
569
- # The specific domain name to delete.
570
- # @return [Types::DeleteDomainResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
571
- #
572
- # * {Types::DeleteDomainResult#operation #operation} => Types::Operation
573
- #
574
- # @example Request syntax with placeholder values
575
- # resp = client.delete_domain({
576
- # domain_name: "DomainName", # required
577
- # })
578
- #
579
- # @example Response structure
580
- # resp.operation.id #=> String
581
- # resp.operation.resource_name #=> String
582
- # resp.operation.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
583
- # resp.operation.created_at #=> Time
584
- # resp.operation.location.availability_zone #=> String
585
- # resp.operation.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
586
- # resp.operation.is_terminal #=> Boolean
587
- # resp.operation.operation_details #=> String
588
- # resp.operation.operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
589
- # resp.operation.status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
590
- # resp.operation.status_changed_at #=> Time
591
- # resp.operation.error_code #=> String
592
- # resp.operation.error_details #=> String
593
- # @overload delete_domain(params = {})
594
- # @param [Hash] params ({})
595
- def delete_domain(params = {}, options = {})
596
- req = build_request(:delete_domain, params)
597
- req.send_request(options)
598
- end
608
+ # Creates sn SSH key pair.
609
+ #
610
+ # @option params [required, String] :key_pair_name
611
+ # The name for your new key pair.
612
+ #
613
+ # @return [Types::CreateKeyPairResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
614
+ #
615
+ # * {Types::CreateKeyPairResult#key_pair #key_pair} => Types::KeyPair
616
+ # * {Types::CreateKeyPairResult#public_key_base_64 #public_key_base_64} => String
617
+ # * {Types::CreateKeyPairResult#private_key_base_64 #private_key_base_64} => String
618
+ # * {Types::CreateKeyPairResult#operation #operation} => Types::Operation
619
+ #
620
+ # @example Request syntax with placeholder values
621
+ #
622
+ # resp = client.create_key_pair({
623
+ # key_pair_name: "ResourceName", # required
624
+ # })
625
+ #
626
+ # @example Response structure
627
+ #
628
+ # resp.key_pair.name #=> String
629
+ # resp.key_pair.arn #=> String
630
+ # resp.key_pair.support_code #=> String
631
+ # resp.key_pair.created_at #=> Time
632
+ # resp.key_pair.location.availability_zone #=> String
633
+ # resp.key_pair.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
634
+ # resp.key_pair.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
635
+ # resp.key_pair.fingerprint #=> String
636
+ # resp.public_key_base_64 #=> String
637
+ # resp.private_key_base_64 #=> String
638
+ # resp.operation.id #=> String
639
+ # resp.operation.resource_name #=> String
640
+ # resp.operation.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
641
+ # resp.operation.created_at #=> Time
642
+ # resp.operation.location.availability_zone #=> String
643
+ # resp.operation.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
644
+ # resp.operation.is_terminal #=> Boolean
645
+ # resp.operation.operation_details #=> String
646
+ # resp.operation.operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
647
+ # resp.operation.status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
648
+ # resp.operation.status_changed_at #=> Time
649
+ # resp.operation.error_code #=> String
650
+ # resp.operation.error_details #=> String
651
+ #
652
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateKeyPair AWS API Documentation
653
+ #
654
+ # @overload create_key_pair(params = {})
655
+ # @param [Hash] params ({})
656
+ def create_key_pair(params = {}, options = {})
657
+ req = build_request(:create_key_pair, params)
658
+ req.send_request(options)
659
+ end
599
660
 
600
- # Deletes a specific domain entry.
601
- # @option params [required, String] :domain_name
602
- # The name of the domain entry to delete.
603
- # @option params [required, Types::DomainEntry] :domain_entry
604
- # An array of key-value pairs containing information about your domain
605
- # entries.
606
- # @return [Types::DeleteDomainEntryResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
607
- #
608
- # * {Types::DeleteDomainEntryResult#operation #operation} => Types::Operation
609
- #
610
- # @example Request syntax with placeholder values
611
- # resp = client.delete_domain_entry({
612
- # domain_name: "DomainName", # required
613
- # domain_entry: { # required
614
- # id: "NonEmptyString",
615
- # name: "DomainName",
616
- # target: "string",
617
- # type: "DomainEntryType",
618
- # options: {
619
- # "DomainEntryOptionsKeys" => "string",
620
- # },
621
- # },
622
- # })
623
- #
624
- # @example Response structure
625
- # resp.operation.id #=> String
626
- # resp.operation.resource_name #=> String
627
- # resp.operation.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
628
- # resp.operation.created_at #=> Time
629
- # resp.operation.location.availability_zone #=> String
630
- # resp.operation.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
631
- # resp.operation.is_terminal #=> Boolean
632
- # resp.operation.operation_details #=> String
633
- # resp.operation.operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
634
- # resp.operation.status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
635
- # resp.operation.status_changed_at #=> Time
636
- # resp.operation.error_code #=> String
637
- # resp.operation.error_details #=> String
638
- # @overload delete_domain_entry(params = {})
639
- # @param [Hash] params ({})
640
- def delete_domain_entry(params = {}, options = {})
641
- req = build_request(:delete_domain_entry, params)
642
- req.send_request(options)
643
- end
661
+ # Deletes the specified domain recordset and all of its domain records.
662
+ #
663
+ # @option params [required, String] :domain_name
664
+ # The specific domain name to delete.
665
+ #
666
+ # @return [Types::DeleteDomainResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
667
+ #
668
+ # * {Types::DeleteDomainResult#operation #operation} => Types::Operation
669
+ #
670
+ # @example Request syntax with placeholder values
671
+ #
672
+ # resp = client.delete_domain({
673
+ # domain_name: "DomainName", # required
674
+ # })
675
+ #
676
+ # @example Response structure
677
+ #
678
+ # resp.operation.id #=> String
679
+ # resp.operation.resource_name #=> String
680
+ # resp.operation.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
681
+ # resp.operation.created_at #=> Time
682
+ # resp.operation.location.availability_zone #=> String
683
+ # resp.operation.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
684
+ # resp.operation.is_terminal #=> Boolean
685
+ # resp.operation.operation_details #=> String
686
+ # resp.operation.operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
687
+ # resp.operation.status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
688
+ # resp.operation.status_changed_at #=> Time
689
+ # resp.operation.error_code #=> String
690
+ # resp.operation.error_details #=> String
691
+ #
692
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDomain AWS API Documentation
693
+ #
694
+ # @overload delete_domain(params = {})
695
+ # @param [Hash] params ({})
696
+ def delete_domain(params = {}, options = {})
697
+ req = build_request(:delete_domain, params)
698
+ req.send_request(options)
699
+ end
644
700
 
645
- # Deletes a specific Amazon Lightsail virtual private server, or
646
- # *instance*.
647
- # @option params [required, String] :instance_name
648
- # The name of the instance to delete.
649
- # @return [Types::DeleteInstanceResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
650
- #
651
- # * {Types::DeleteInstanceResult#operations #operations} => Array&lt;Types::Operation&gt;
652
- #
653
- # @example Request syntax with placeholder values
654
- # resp = client.delete_instance({
655
- # instance_name: "ResourceName", # required
656
- # })
657
- #
658
- # @example Response structure
659
- # resp.operations #=> Array
660
- # resp.operations[0].id #=> String
661
- # resp.operations[0].resource_name #=> String
662
- # resp.operations[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
663
- # resp.operations[0].created_at #=> Time
664
- # resp.operations[0].location.availability_zone #=> String
665
- # resp.operations[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
666
- # resp.operations[0].is_terminal #=> Boolean
667
- # resp.operations[0].operation_details #=> String
668
- # resp.operations[0].operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
669
- # resp.operations[0].status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
670
- # resp.operations[0].status_changed_at #=> Time
671
- # resp.operations[0].error_code #=> String
672
- # resp.operations[0].error_details #=> String
673
- # @overload delete_instance(params = {})
674
- # @param [Hash] params ({})
675
- def delete_instance(params = {}, options = {})
676
- req = build_request(:delete_instance, params)
677
- req.send_request(options)
678
- end
701
+ # Deletes a specific domain entry.
702
+ #
703
+ # @option params [required, String] :domain_name
704
+ # The name of the domain entry to delete.
705
+ #
706
+ # @option params [required, Types::DomainEntry] :domain_entry
707
+ # An array of key-value pairs containing information about your domain
708
+ # entries.
709
+ #
710
+ # @return [Types::DeleteDomainEntryResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
711
+ #
712
+ # * {Types::DeleteDomainEntryResult#operation #operation} => Types::Operation
713
+ #
714
+ # @example Request syntax with placeholder values
715
+ #
716
+ # resp = client.delete_domain_entry({
717
+ # domain_name: "DomainName", # required
718
+ # domain_entry: { # required
719
+ # id: "NonEmptyString",
720
+ # name: "DomainName",
721
+ # target: "string",
722
+ # type: "DomainEntryType",
723
+ # options: {
724
+ # "DomainEntryOptionsKeys" => "string",
725
+ # },
726
+ # },
727
+ # })
728
+ #
729
+ # @example Response structure
730
+ #
731
+ # resp.operation.id #=> String
732
+ # resp.operation.resource_name #=> String
733
+ # resp.operation.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
734
+ # resp.operation.created_at #=> Time
735
+ # resp.operation.location.availability_zone #=> String
736
+ # resp.operation.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
737
+ # resp.operation.is_terminal #=> Boolean
738
+ # resp.operation.operation_details #=> String
739
+ # resp.operation.operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
740
+ # resp.operation.status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
741
+ # resp.operation.status_changed_at #=> Time
742
+ # resp.operation.error_code #=> String
743
+ # resp.operation.error_details #=> String
744
+ #
745
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDomainEntry AWS API Documentation
746
+ #
747
+ # @overload delete_domain_entry(params = {})
748
+ # @param [Hash] params ({})
749
+ def delete_domain_entry(params = {}, options = {})
750
+ req = build_request(:delete_domain_entry, params)
751
+ req.send_request(options)
752
+ end
679
753
 
680
- # Deletes a specific snapshot of a virtual private server (or
681
- # *instance*).
682
- # @option params [required, String] :instance_snapshot_name
683
- # The name of the snapshot to delete.
684
- # @return [Types::DeleteInstanceSnapshotResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
685
- #
686
- # * {Types::DeleteInstanceSnapshotResult#operations #operations} => Array&lt;Types::Operation&gt;
687
- #
688
- # @example Request syntax with placeholder values
689
- # resp = client.delete_instance_snapshot({
690
- # instance_snapshot_name: "ResourceName", # required
691
- # })
692
- #
693
- # @example Response structure
694
- # resp.operations #=> Array
695
- # resp.operations[0].id #=> String
696
- # resp.operations[0].resource_name #=> String
697
- # resp.operations[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
698
- # resp.operations[0].created_at #=> Time
699
- # resp.operations[0].location.availability_zone #=> String
700
- # resp.operations[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
701
- # resp.operations[0].is_terminal #=> Boolean
702
- # resp.operations[0].operation_details #=> String
703
- # resp.operations[0].operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
704
- # resp.operations[0].status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
705
- # resp.operations[0].status_changed_at #=> Time
706
- # resp.operations[0].error_code #=> String
707
- # resp.operations[0].error_details #=> String
708
- # @overload delete_instance_snapshot(params = {})
709
- # @param [Hash] params ({})
710
- def delete_instance_snapshot(params = {}, options = {})
711
- req = build_request(:delete_instance_snapshot, params)
712
- req.send_request(options)
713
- end
754
+ # Deletes a specific Amazon Lightsail virtual private server, or
755
+ # *instance*.
756
+ #
757
+ # @option params [required, String] :instance_name
758
+ # The name of the instance to delete.
759
+ #
760
+ # @return [Types::DeleteInstanceResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
761
+ #
762
+ # * {Types::DeleteInstanceResult#operations #operations} => Array&lt;Types::Operation&gt;
763
+ #
764
+ # @example Request syntax with placeholder values
765
+ #
766
+ # resp = client.delete_instance({
767
+ # instance_name: "ResourceName", # required
768
+ # })
769
+ #
770
+ # @example Response structure
771
+ #
772
+ # resp.operations #=> Array
773
+ # resp.operations[0].id #=> String
774
+ # resp.operations[0].resource_name #=> String
775
+ # resp.operations[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
776
+ # resp.operations[0].created_at #=> Time
777
+ # resp.operations[0].location.availability_zone #=> String
778
+ # resp.operations[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
779
+ # resp.operations[0].is_terminal #=> Boolean
780
+ # resp.operations[0].operation_details #=> String
781
+ # resp.operations[0].operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
782
+ # resp.operations[0].status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
783
+ # resp.operations[0].status_changed_at #=> Time
784
+ # resp.operations[0].error_code #=> String
785
+ # resp.operations[0].error_details #=> String
786
+ #
787
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteInstance AWS API Documentation
788
+ #
789
+ # @overload delete_instance(params = {})
790
+ # @param [Hash] params ({})
791
+ def delete_instance(params = {}, options = {})
792
+ req = build_request(:delete_instance, params)
793
+ req.send_request(options)
794
+ end
714
795
 
715
- # Deletes a specific SSH key pair.
716
- # @option params [required, String] :key_pair_name
717
- # The name of the key pair to delete.
718
- # @return [Types::DeleteKeyPairResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
719
- #
720
- # * {Types::DeleteKeyPairResult#operation #operation} => Types::Operation
721
- #
722
- # @example Request syntax with placeholder values
723
- # resp = client.delete_key_pair({
724
- # key_pair_name: "ResourceName", # required
725
- # })
726
- #
727
- # @example Response structure
728
- # resp.operation.id #=> String
729
- # resp.operation.resource_name #=> String
730
- # resp.operation.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
731
- # resp.operation.created_at #=> Time
732
- # resp.operation.location.availability_zone #=> String
733
- # resp.operation.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
734
- # resp.operation.is_terminal #=> Boolean
735
- # resp.operation.operation_details #=> String
736
- # resp.operation.operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
737
- # resp.operation.status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
738
- # resp.operation.status_changed_at #=> Time
739
- # resp.operation.error_code #=> String
740
- # resp.operation.error_details #=> String
741
- # @overload delete_key_pair(params = {})
742
- # @param [Hash] params ({})
743
- def delete_key_pair(params = {}, options = {})
744
- req = build_request(:delete_key_pair, params)
745
- req.send_request(options)
746
- end
796
+ # Deletes a specific snapshot of a virtual private server (or
797
+ # *instance*).
798
+ #
799
+ # @option params [required, String] :instance_snapshot_name
800
+ # The name of the snapshot to delete.
801
+ #
802
+ # @return [Types::DeleteInstanceSnapshotResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
803
+ #
804
+ # * {Types::DeleteInstanceSnapshotResult#operations #operations} => Array&lt;Types::Operation&gt;
805
+ #
806
+ # @example Request syntax with placeholder values
807
+ #
808
+ # resp = client.delete_instance_snapshot({
809
+ # instance_snapshot_name: "ResourceName", # required
810
+ # })
811
+ #
812
+ # @example Response structure
813
+ #
814
+ # resp.operations #=> Array
815
+ # resp.operations[0].id #=> String
816
+ # resp.operations[0].resource_name #=> String
817
+ # resp.operations[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
818
+ # resp.operations[0].created_at #=> Time
819
+ # resp.operations[0].location.availability_zone #=> String
820
+ # resp.operations[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
821
+ # resp.operations[0].is_terminal #=> Boolean
822
+ # resp.operations[0].operation_details #=> String
823
+ # resp.operations[0].operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
824
+ # resp.operations[0].status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
825
+ # resp.operations[0].status_changed_at #=> Time
826
+ # resp.operations[0].error_code #=> String
827
+ # resp.operations[0].error_details #=> String
828
+ #
829
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteInstanceSnapshot AWS API Documentation
830
+ #
831
+ # @overload delete_instance_snapshot(params = {})
832
+ # @param [Hash] params ({})
833
+ def delete_instance_snapshot(params = {}, options = {})
834
+ req = build_request(:delete_instance_snapshot, params)
835
+ req.send_request(options)
836
+ end
747
837
 
748
- # Detaches a static IP from the Amazon Lightsail instance to which it is
749
- # attached.
750
- # @option params [required, String] :static_ip_name
751
- # The name of the static IP to detach from the instance.
752
- # @return [Types::DetachStaticIpResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
753
- #
754
- # * {Types::DetachStaticIpResult#operations #operations} => Array&lt;Types::Operation&gt;
755
- #
756
- # @example Request syntax with placeholder values
757
- # resp = client.detach_static_ip({
758
- # static_ip_name: "ResourceName", # required
759
- # })
760
- #
761
- # @example Response structure
762
- # resp.operations #=> Array
763
- # resp.operations[0].id #=> String
764
- # resp.operations[0].resource_name #=> String
765
- # resp.operations[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
766
- # resp.operations[0].created_at #=> Time
767
- # resp.operations[0].location.availability_zone #=> String
768
- # resp.operations[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
769
- # resp.operations[0].is_terminal #=> Boolean
770
- # resp.operations[0].operation_details #=> String
771
- # resp.operations[0].operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
772
- # resp.operations[0].status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
773
- # resp.operations[0].status_changed_at #=> Time
774
- # resp.operations[0].error_code #=> String
775
- # resp.operations[0].error_details #=> String
776
- # @overload detach_static_ip(params = {})
777
- # @param [Hash] params ({})
778
- def detach_static_ip(params = {}, options = {})
779
- req = build_request(:detach_static_ip, params)
780
- req.send_request(options)
781
- end
838
+ # Deletes a specific SSH key pair.
839
+ #
840
+ # @option params [required, String] :key_pair_name
841
+ # The name of the key pair to delete.
842
+ #
843
+ # @return [Types::DeleteKeyPairResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
844
+ #
845
+ # * {Types::DeleteKeyPairResult#operation #operation} => Types::Operation
846
+ #
847
+ # @example Request syntax with placeholder values
848
+ #
849
+ # resp = client.delete_key_pair({
850
+ # key_pair_name: "ResourceName", # required
851
+ # })
852
+ #
853
+ # @example Response structure
854
+ #
855
+ # resp.operation.id #=> String
856
+ # resp.operation.resource_name #=> String
857
+ # resp.operation.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
858
+ # resp.operation.created_at #=> Time
859
+ # resp.operation.location.availability_zone #=> String
860
+ # resp.operation.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
861
+ # resp.operation.is_terminal #=> Boolean
862
+ # resp.operation.operation_details #=> String
863
+ # resp.operation.operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
864
+ # resp.operation.status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
865
+ # resp.operation.status_changed_at #=> Time
866
+ # resp.operation.error_code #=> String
867
+ # resp.operation.error_details #=> String
868
+ #
869
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteKeyPair AWS API Documentation
870
+ #
871
+ # @overload delete_key_pair(params = {})
872
+ # @param [Hash] params ({})
873
+ def delete_key_pair(params = {}, options = {})
874
+ req = build_request(:delete_key_pair, params)
875
+ req.send_request(options)
876
+ end
782
877
 
783
- # Downloads the default SSH key pair from the user's account.
784
- # @return [Types::DownloadDefaultKeyPairResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
785
- #
786
- # * {Types::DownloadDefaultKeyPairResult#public_key_base_64 #publicKeyBase64} => String
787
- # * {Types::DownloadDefaultKeyPairResult#private_key_base_64 #privateKeyBase64} => String
788
- #
789
- # @example Request syntax with placeholder values
790
- # resp = client.download_default_key_pair()
791
- #
792
- # @example Response structure
793
- # resp.public_key_base_64 #=> String
794
- # resp.private_key_base_64 #=> String
795
- # @overload download_default_key_pair(params = {})
796
- # @param [Hash] params ({})
797
- def download_default_key_pair(params = {}, options = {})
798
- req = build_request(:download_default_key_pair, params)
799
- req.send_request(options)
800
- end
878
+ # Detaches a static IP from the Amazon Lightsail instance to which it is
879
+ # attached.
880
+ #
881
+ # @option params [required, String] :static_ip_name
882
+ # The name of the static IP to detach from the instance.
883
+ #
884
+ # @return [Types::DetachStaticIpResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
885
+ #
886
+ # * {Types::DetachStaticIpResult#operations #operations} => Array&lt;Types::Operation&gt;
887
+ #
888
+ # @example Request syntax with placeholder values
889
+ #
890
+ # resp = client.detach_static_ip({
891
+ # static_ip_name: "ResourceName", # required
892
+ # })
893
+ #
894
+ # @example Response structure
895
+ #
896
+ # resp.operations #=> Array
897
+ # resp.operations[0].id #=> String
898
+ # resp.operations[0].resource_name #=> String
899
+ # resp.operations[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
900
+ # resp.operations[0].created_at #=> Time
901
+ # resp.operations[0].location.availability_zone #=> String
902
+ # resp.operations[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
903
+ # resp.operations[0].is_terminal #=> Boolean
904
+ # resp.operations[0].operation_details #=> String
905
+ # resp.operations[0].operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
906
+ # resp.operations[0].status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
907
+ # resp.operations[0].status_changed_at #=> Time
908
+ # resp.operations[0].error_code #=> String
909
+ # resp.operations[0].error_details #=> String
910
+ #
911
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DetachStaticIp AWS API Documentation
912
+ #
913
+ # @overload detach_static_ip(params = {})
914
+ # @param [Hash] params ({})
915
+ def detach_static_ip(params = {}, options = {})
916
+ req = build_request(:detach_static_ip, params)
917
+ req.send_request(options)
918
+ end
801
919
 
802
- # Returns the names of all active (not deleted) resources.
803
- # @option params [String] :page_token
804
- # A token used for paginating results from your get active names
805
- # request.
806
- # @return [Types::GetActiveNamesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
807
- #
808
- # * {Types::GetActiveNamesResult#active_names #activeNames} => Array&lt;String&gt;
809
- # * {Types::GetActiveNamesResult#next_page_token #nextPageToken} => String
810
- #
811
- # @example Request syntax with placeholder values
812
- # resp = client.get_active_names({
813
- # page_token: "string",
814
- # })
815
- #
816
- # @example Response structure
817
- # resp.active_names #=> Array
818
- # resp.active_names[0] #=> String
819
- # resp.next_page_token #=> String
820
- # @overload get_active_names(params = {})
821
- # @param [Hash] params ({})
822
- def get_active_names(params = {}, options = {})
823
- req = build_request(:get_active_names, params)
824
- req.send_request(options)
825
- end
920
+ # Downloads the default SSH key pair from the user's account.
921
+ #
922
+ # @return [Types::DownloadDefaultKeyPairResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
923
+ #
924
+ # * {Types::DownloadDefaultKeyPairResult#public_key_base_64 #public_key_base_64} => String
925
+ # * {Types::DownloadDefaultKeyPairResult#private_key_base_64 #private_key_base_64} => String
926
+ #
927
+ # @example Response structure
928
+ #
929
+ # resp.public_key_base_64 #=> String
930
+ # resp.private_key_base_64 #=> String
931
+ #
932
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DownloadDefaultKeyPair AWS API Documentation
933
+ #
934
+ # @overload download_default_key_pair(params = {})
935
+ # @param [Hash] params ({})
936
+ def download_default_key_pair(params = {}, options = {})
937
+ req = build_request(:download_default_key_pair, params)
938
+ req.send_request(options)
939
+ end
826
940
 
827
- # Returns the list of available instance images, or *blueprints*. You
828
- # can use a blueprint to create a new virtual private server already
829
- # running a specific operating system, as well as a preinstalled app or
830
- # development stack. The software each instance is running depends on
831
- # the blueprint image you choose.
832
- # @option params [Boolean] :include_inactive
833
- # A Boolean value indicating whether to include inactive results in your
834
- # request.
835
- # @option params [String] :page_token
836
- # A token used for advancing to the next page of results from your get
837
- # blueprints request.
838
- # @return [Types::GetBlueprintsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
839
- #
840
- # * {Types::GetBlueprintsResult#blueprints #blueprints} => Array&lt;Types::Blueprint&gt;
841
- # * {Types::GetBlueprintsResult#next_page_token #nextPageToken} => String
842
- #
843
- # @example Request syntax with placeholder values
844
- # resp = client.get_blueprints({
845
- # include_inactive: false,
846
- # page_token: "string",
847
- # })
848
- #
849
- # @example Response structure
850
- # resp.blueprints #=> Array
851
- # resp.blueprints[0].blueprint_id #=> String
852
- # resp.blueprints[0].name #=> String
853
- # resp.blueprints[0].group #=> String
854
- # resp.blueprints[0].type #=> String, one of "os", "app"
855
- # resp.blueprints[0].description #=> String
856
- # resp.blueprints[0].is_active #=> Boolean
857
- # resp.blueprints[0].min_power #=> Integer
858
- # resp.blueprints[0].version #=> String
859
- # resp.blueprints[0].version_code #=> String
860
- # resp.blueprints[0].product_url #=> String
861
- # resp.blueprints[0].license_url #=> String
862
- # resp.next_page_token #=> String
863
- # @overload get_blueprints(params = {})
864
- # @param [Hash] params ({})
865
- def get_blueprints(params = {}, options = {})
866
- req = build_request(:get_blueprints, params)
867
- req.send_request(options)
868
- end
941
+ # Returns the names of all active (not deleted) resources.
942
+ #
943
+ # @option params [String] :page_token
944
+ # A token used for paginating results from your get active names
945
+ # request.
946
+ #
947
+ # @return [Types::GetActiveNamesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
948
+ #
949
+ # * {Types::GetActiveNamesResult#active_names #active_names} => Array&lt;String&gt;
950
+ # * {Types::GetActiveNamesResult#next_page_token #next_page_token} => String
951
+ #
952
+ # @example Request syntax with placeholder values
953
+ #
954
+ # resp = client.get_active_names({
955
+ # page_token: "string",
956
+ # })
957
+ #
958
+ # @example Response structure
959
+ #
960
+ # resp.active_names #=> Array
961
+ # resp.active_names[0] #=> String
962
+ # resp.next_page_token #=> String
963
+ #
964
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetActiveNames AWS API Documentation
965
+ #
966
+ # @overload get_active_names(params = {})
967
+ # @param [Hash] params ({})
968
+ def get_active_names(params = {}, options = {})
969
+ req = build_request(:get_active_names, params)
970
+ req.send_request(options)
971
+ end
869
972
 
870
- # Returns the list of bundles that are available for purchase. A bundle
871
- # describes the specs for your virtual private server (or *instance*).
872
- # @option params [Boolean] :include_inactive
873
- # A Boolean value that indicates whether to include inactive bundle
874
- # results in your request.
875
- # @option params [String] :page_token
876
- # A token used for advancing to the next page of results from your get
877
- # bundles request.
878
- # @return [Types::GetBundlesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
879
- #
880
- # * {Types::GetBundlesResult#bundles #bundles} => Array&lt;Types::Bundle&gt;
881
- # * {Types::GetBundlesResult#next_page_token #nextPageToken} => String
882
- #
883
- # @example Request syntax with placeholder values
884
- # resp = client.get_bundles({
885
- # include_inactive: false,
886
- # page_token: "string",
887
- # })
888
- #
889
- # @example Response structure
890
- # resp.bundles #=> Array
891
- # resp.bundles[0].price #=> Float
892
- # resp.bundles[0].cpu_count #=> Integer
893
- # resp.bundles[0].disk_size_in_gb #=> Integer
894
- # resp.bundles[0].bundle_id #=> String
895
- # resp.bundles[0].instance_type #=> String
896
- # resp.bundles[0].is_active #=> Boolean
897
- # resp.bundles[0].name #=> String
898
- # resp.bundles[0].power #=> Integer
899
- # resp.bundles[0].ram_size_in_gb #=> Float
900
- # resp.bundles[0].transfer_per_month_in_gb #=> Integer
901
- # resp.next_page_token #=> String
902
- # @overload get_bundles(params = {})
903
- # @param [Hash] params ({})
904
- def get_bundles(params = {}, options = {})
905
- req = build_request(:get_bundles, params)
906
- req.send_request(options)
907
- end
973
+ # Returns the list of available instance images, or *blueprints*. You
974
+ # can use a blueprint to create a new virtual private server already
975
+ # running a specific operating system, as well as a preinstalled app or
976
+ # development stack. The software each instance is running depends on
977
+ # the blueprint image you choose.
978
+ #
979
+ # @option params [Boolean] :include_inactive
980
+ # A Boolean value indicating whether to include inactive results in your
981
+ # request.
982
+ #
983
+ # @option params [String] :page_token
984
+ # A token used for advancing to the next page of results from your get
985
+ # blueprints request.
986
+ #
987
+ # @return [Types::GetBlueprintsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
988
+ #
989
+ # * {Types::GetBlueprintsResult#blueprints #blueprints} => Array&lt;Types::Blueprint&gt;
990
+ # * {Types::GetBlueprintsResult#next_page_token #next_page_token} => String
991
+ #
992
+ # @example Request syntax with placeholder values
993
+ #
994
+ # resp = client.get_blueprints({
995
+ # include_inactive: false,
996
+ # page_token: "string",
997
+ # })
998
+ #
999
+ # @example Response structure
1000
+ #
1001
+ # resp.blueprints #=> Array
1002
+ # resp.blueprints[0].blueprint_id #=> String
1003
+ # resp.blueprints[0].name #=> String
1004
+ # resp.blueprints[0].group #=> String
1005
+ # resp.blueprints[0].type #=> String, one of "os", "app"
1006
+ # resp.blueprints[0].description #=> String
1007
+ # resp.blueprints[0].is_active #=> Boolean
1008
+ # resp.blueprints[0].min_power #=> Integer
1009
+ # resp.blueprints[0].version #=> String
1010
+ # resp.blueprints[0].version_code #=> String
1011
+ # resp.blueprints[0].product_url #=> String
1012
+ # resp.blueprints[0].license_url #=> String
1013
+ # resp.next_page_token #=> String
1014
+ #
1015
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetBlueprints AWS API Documentation
1016
+ #
1017
+ # @overload get_blueprints(params = {})
1018
+ # @param [Hash] params ({})
1019
+ def get_blueprints(params = {}, options = {})
1020
+ req = build_request(:get_blueprints, params)
1021
+ req.send_request(options)
1022
+ end
908
1023
 
909
- # Returns information about a specific domain recordset.
910
- # @option params [required, String] :domain_name
911
- # The domain name for which your want to return information about.
912
- # @return [Types::GetDomainResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
913
- #
914
- # * {Types::GetDomainResult#domain #domain} => Types::Domain
915
- #
916
- # @example Request syntax with placeholder values
917
- # resp = client.get_domain({
918
- # domain_name: "DomainName", # required
919
- # })
920
- #
921
- # @example Response structure
922
- # resp.domain.name #=> String
923
- # resp.domain.arn #=> String
924
- # resp.domain.support_code #=> String
925
- # resp.domain.created_at #=> Time
926
- # resp.domain.location.availability_zone #=> String
927
- # resp.domain.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
928
- # resp.domain.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
929
- # resp.domain.domain_entries #=> Array
930
- # resp.domain.domain_entries[0].id #=> String
931
- # resp.domain.domain_entries[0].name #=> String
932
- # resp.domain.domain_entries[0].target #=> String
933
- # resp.domain.domain_entries[0].type #=> String
934
- # resp.domain.domain_entries[0].options #=> Hash
935
- # resp.domain.domain_entries[0].options["DomainEntryOptionsKeys"] #=> String
936
- # @overload get_domain(params = {})
937
- # @param [Hash] params ({})
938
- def get_domain(params = {}, options = {})
939
- req = build_request(:get_domain, params)
940
- req.send_request(options)
941
- end
1024
+ # Returns the list of bundles that are available for purchase. A bundle
1025
+ # describes the specs for your virtual private server (or *instance*).
1026
+ #
1027
+ # @option params [Boolean] :include_inactive
1028
+ # A Boolean value that indicates whether to include inactive bundle
1029
+ # results in your request.
1030
+ #
1031
+ # @option params [String] :page_token
1032
+ # A token used for advancing to the next page of results from your get
1033
+ # bundles request.
1034
+ #
1035
+ # @return [Types::GetBundlesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1036
+ #
1037
+ # * {Types::GetBundlesResult#bundles #bundles} => Array&lt;Types::Bundle&gt;
1038
+ # * {Types::GetBundlesResult#next_page_token #next_page_token} => String
1039
+ #
1040
+ # @example Request syntax with placeholder values
1041
+ #
1042
+ # resp = client.get_bundles({
1043
+ # include_inactive: false,
1044
+ # page_token: "string",
1045
+ # })
1046
+ #
1047
+ # @example Response structure
1048
+ #
1049
+ # resp.bundles #=> Array
1050
+ # resp.bundles[0].price #=> Float
1051
+ # resp.bundles[0].cpu_count #=> Integer
1052
+ # resp.bundles[0].disk_size_in_gb #=> Integer
1053
+ # resp.bundles[0].bundle_id #=> String
1054
+ # resp.bundles[0].instance_type #=> String
1055
+ # resp.bundles[0].is_active #=> Boolean
1056
+ # resp.bundles[0].name #=> String
1057
+ # resp.bundles[0].power #=> Integer
1058
+ # resp.bundles[0].ram_size_in_gb #=> Float
1059
+ # resp.bundles[0].transfer_per_month_in_gb #=> Integer
1060
+ # resp.next_page_token #=> String
1061
+ #
1062
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetBundles AWS API Documentation
1063
+ #
1064
+ # @overload get_bundles(params = {})
1065
+ # @param [Hash] params ({})
1066
+ def get_bundles(params = {}, options = {})
1067
+ req = build_request(:get_bundles, params)
1068
+ req.send_request(options)
1069
+ end
942
1070
 
943
- # Returns a list of all domains in the user's account.
944
- # @option params [String] :page_token
945
- # A token used for advancing to the next page of results from your get
946
- # domains request.
947
- # @return [Types::GetDomainsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
948
- #
949
- # * {Types::GetDomainsResult#domains #domains} => Array&lt;Types::Domain&gt;
950
- # * {Types::GetDomainsResult#next_page_token #nextPageToken} => String
951
- #
952
- # @example Request syntax with placeholder values
953
- # resp = client.get_domains({
954
- # page_token: "string",
955
- # })
956
- #
957
- # @example Response structure
958
- # resp.domains #=> Array
959
- # resp.domains[0].name #=> String
960
- # resp.domains[0].arn #=> String
961
- # resp.domains[0].support_code #=> String
962
- # resp.domains[0].created_at #=> Time
963
- # resp.domains[0].location.availability_zone #=> String
964
- # resp.domains[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
965
- # resp.domains[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
966
- # resp.domains[0].domain_entries #=> Array
967
- # resp.domains[0].domain_entries[0].id #=> String
968
- # resp.domains[0].domain_entries[0].name #=> String
969
- # resp.domains[0].domain_entries[0].target #=> String
970
- # resp.domains[0].domain_entries[0].type #=> String
971
- # resp.domains[0].domain_entries[0].options #=> Hash
972
- # resp.domains[0].domain_entries[0].options["DomainEntryOptionsKeys"] #=> String
973
- # resp.next_page_token #=> String
974
- # @overload get_domains(params = {})
975
- # @param [Hash] params ({})
976
- def get_domains(params = {}, options = {})
977
- req = build_request(:get_domains, params)
978
- req.send_request(options)
979
- end
1071
+ # Returns information about a specific domain recordset.
1072
+ #
1073
+ # @option params [required, String] :domain_name
1074
+ # The domain name for which your want to return information about.
1075
+ #
1076
+ # @return [Types::GetDomainResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1077
+ #
1078
+ # * {Types::GetDomainResult#domain #domain} => Types::Domain
1079
+ #
1080
+ # @example Request syntax with placeholder values
1081
+ #
1082
+ # resp = client.get_domain({
1083
+ # domain_name: "DomainName", # required
1084
+ # })
1085
+ #
1086
+ # @example Response structure
1087
+ #
1088
+ # resp.domain.name #=> String
1089
+ # resp.domain.arn #=> String
1090
+ # resp.domain.support_code #=> String
1091
+ # resp.domain.created_at #=> Time
1092
+ # resp.domain.location.availability_zone #=> String
1093
+ # resp.domain.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1094
+ # resp.domain.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1095
+ # resp.domain.domain_entries #=> Array
1096
+ # resp.domain.domain_entries[0].id #=> String
1097
+ # resp.domain.domain_entries[0].name #=> String
1098
+ # resp.domain.domain_entries[0].target #=> String
1099
+ # resp.domain.domain_entries[0].type #=> String
1100
+ # resp.domain.domain_entries[0].options #=> Hash
1101
+ # resp.domain.domain_entries[0].options["DomainEntryOptionsKeys"] #=> String
1102
+ #
1103
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDomain AWS API Documentation
1104
+ #
1105
+ # @overload get_domain(params = {})
1106
+ # @param [Hash] params ({})
1107
+ def get_domain(params = {}, options = {})
1108
+ req = build_request(:get_domain, params)
1109
+ req.send_request(options)
1110
+ end
980
1111
 
981
- # Returns information about a specific Amazon Lightsail instance, which
982
- # is a virtual private server.
983
- # @option params [required, String] :instance_name
984
- # The name of the instance.
985
- # @return [Types::GetInstanceResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
986
- #
987
- # * {Types::GetInstanceResult#instance #instance} => Types::Instance
988
- #
989
- # @example Request syntax with placeholder values
990
- # resp = client.get_instance({
991
- # instance_name: "ResourceName", # required
992
- # })
993
- #
994
- # @example Response structure
995
- # resp.instance.name #=> String
996
- # resp.instance.arn #=> String
997
- # resp.instance.support_code #=> String
998
- # resp.instance.created_at #=> Time
999
- # resp.instance.location.availability_zone #=> String
1000
- # resp.instance.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1001
- # resp.instance.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1002
- # resp.instance.blueprint_id #=> String
1003
- # resp.instance.blueprint_name #=> String
1004
- # resp.instance.bundle_id #=> String
1005
- # resp.instance.is_static_ip #=> Boolean
1006
- # resp.instance.private_ip_address #=> String
1007
- # resp.instance.public_ip_address #=> String
1008
- # resp.instance.ipv6_address #=> String
1009
- # resp.instance.hardware.cpu_count #=> Integer
1010
- # resp.instance.hardware.disks #=> Array
1011
- # resp.instance.hardware.disks[0].name #=> String
1012
- # resp.instance.hardware.disks[0].arn #=> String
1013
- # resp.instance.hardware.disks[0].support_code #=> String
1014
- # resp.instance.hardware.disks[0].created_at #=> Time
1015
- # resp.instance.hardware.disks[0].location.availability_zone #=> String
1016
- # resp.instance.hardware.disks[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1017
- # resp.instance.hardware.disks[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1018
- # resp.instance.hardware.disks[0].size_in_gb #=> Integer
1019
- # resp.instance.hardware.disks[0].gb_in_use #=> Integer
1020
- # resp.instance.hardware.disks[0].is_system_disk #=> Boolean
1021
- # resp.instance.hardware.disks[0].iops #=> Integer
1022
- # resp.instance.hardware.disks[0].path #=> String
1023
- # resp.instance.hardware.disks[0].attached_to #=> String
1024
- # resp.instance.hardware.disks[0].is_attached #=> Boolean
1025
- # resp.instance.hardware.disks[0].attachment_state #=> String
1026
- # resp.instance.hardware.ram_size_in_gb #=> Float
1027
- # resp.instance.networking.monthly_transfer.gb_per_month_allocated #=> Integer
1028
- # resp.instance.networking.ports #=> Array
1029
- # resp.instance.networking.ports[0].from_port #=> Integer
1030
- # resp.instance.networking.ports[0].to_port #=> Integer
1031
- # resp.instance.networking.ports[0].protocol #=> String, one of "tcp", "all", "udp"
1032
- # resp.instance.networking.ports[0].access_from #=> String
1033
- # resp.instance.networking.ports[0].access_type #=> String, one of "Public", "Private"
1034
- # resp.instance.networking.ports[0].common_name #=> String
1035
- # resp.instance.networking.ports[0].access_direction #=> String, one of "inbound", "outbound"
1036
- # resp.instance.state.code #=> Integer
1037
- # resp.instance.state.name #=> String
1038
- # resp.instance.username #=> String
1039
- # resp.instance.ssh_key_name #=> String
1040
- # @overload get_instance(params = {})
1041
- # @param [Hash] params ({})
1042
- def get_instance(params = {}, options = {})
1043
- req = build_request(:get_instance, params)
1044
- req.send_request(options)
1045
- end
1112
+ # Returns a list of all domains in the user's account.
1113
+ #
1114
+ # @option params [String] :page_token
1115
+ # A token used for advancing to the next page of results from your get
1116
+ # domains request.
1117
+ #
1118
+ # @return [Types::GetDomainsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1119
+ #
1120
+ # * {Types::GetDomainsResult#domains #domains} => Array&lt;Types::Domain&gt;
1121
+ # * {Types::GetDomainsResult#next_page_token #next_page_token} => String
1122
+ #
1123
+ # @example Request syntax with placeholder values
1124
+ #
1125
+ # resp = client.get_domains({
1126
+ # page_token: "string",
1127
+ # })
1128
+ #
1129
+ # @example Response structure
1130
+ #
1131
+ # resp.domains #=> Array
1132
+ # resp.domains[0].name #=> String
1133
+ # resp.domains[0].arn #=> String
1134
+ # resp.domains[0].support_code #=> String
1135
+ # resp.domains[0].created_at #=> Time
1136
+ # resp.domains[0].location.availability_zone #=> String
1137
+ # resp.domains[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1138
+ # resp.domains[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1139
+ # resp.domains[0].domain_entries #=> Array
1140
+ # resp.domains[0].domain_entries[0].id #=> String
1141
+ # resp.domains[0].domain_entries[0].name #=> String
1142
+ # resp.domains[0].domain_entries[0].target #=> String
1143
+ # resp.domains[0].domain_entries[0].type #=> String
1144
+ # resp.domains[0].domain_entries[0].options #=> Hash
1145
+ # resp.domains[0].domain_entries[0].options["DomainEntryOptionsKeys"] #=> String
1146
+ # resp.next_page_token #=> String
1147
+ #
1148
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDomains AWS API Documentation
1149
+ #
1150
+ # @overload get_domains(params = {})
1151
+ # @param [Hash] params ({})
1152
+ def get_domains(params = {}, options = {})
1153
+ req = build_request(:get_domains, params)
1154
+ req.send_request(options)
1155
+ end
1046
1156
 
1047
- # Returns temporary SSH keys you can use to connect to a specific
1048
- # virtual private server, or *instance*.
1049
- # @option params [required, String] :instance_name
1050
- # The name of the instance to access.
1051
- # @option params [String] :protocol
1052
- # The protocol to use to connect to your instance. Defaults to `ssh`.
1053
- # @return [Types::GetInstanceAccessDetailsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1054
- #
1055
- # * {Types::GetInstanceAccessDetailsResult#access_details #accessDetails} => Types::InstanceAccessDetails
1056
- #
1057
- # @example Request syntax with placeholder values
1058
- # resp = client.get_instance_access_details({
1059
- # instance_name: "ResourceName", # required
1060
- # protocol: "ssh", # accepts ssh, rdp
1061
- # })
1062
- #
1063
- # @example Response structure
1064
- # resp.access_details.cert_key #=> String
1065
- # resp.access_details.expires_at #=> Time
1066
- # resp.access_details.ip_address #=> String
1067
- # resp.access_details.password #=> String
1068
- # resp.access_details.private_key #=> String
1069
- # resp.access_details.protocol #=> String, one of "ssh", "rdp"
1070
- # resp.access_details.instance_name #=> String
1071
- # resp.access_details.username #=> String
1072
- # @overload get_instance_access_details(params = {})
1073
- # @param [Hash] params ({})
1074
- def get_instance_access_details(params = {}, options = {})
1075
- req = build_request(:get_instance_access_details, params)
1076
- req.send_request(options)
1077
- end
1157
+ # Returns information about a specific Amazon Lightsail instance, which
1158
+ # is a virtual private server.
1159
+ #
1160
+ # @option params [required, String] :instance_name
1161
+ # The name of the instance.
1162
+ #
1163
+ # @return [Types::GetInstanceResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1164
+ #
1165
+ # * {Types::GetInstanceResult#instance #instance} => Types::Instance
1166
+ #
1167
+ # @example Request syntax with placeholder values
1168
+ #
1169
+ # resp = client.get_instance({
1170
+ # instance_name: "ResourceName", # required
1171
+ # })
1172
+ #
1173
+ # @example Response structure
1174
+ #
1175
+ # resp.instance.name #=> String
1176
+ # resp.instance.arn #=> String
1177
+ # resp.instance.support_code #=> String
1178
+ # resp.instance.created_at #=> Time
1179
+ # resp.instance.location.availability_zone #=> String
1180
+ # resp.instance.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1181
+ # resp.instance.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1182
+ # resp.instance.blueprint_id #=> String
1183
+ # resp.instance.blueprint_name #=> String
1184
+ # resp.instance.bundle_id #=> String
1185
+ # resp.instance.is_static_ip #=> Boolean
1186
+ # resp.instance.private_ip_address #=> String
1187
+ # resp.instance.public_ip_address #=> String
1188
+ # resp.instance.ipv6_address #=> String
1189
+ # resp.instance.hardware.cpu_count #=> Integer
1190
+ # resp.instance.hardware.disks #=> Array
1191
+ # resp.instance.hardware.disks[0].name #=> String
1192
+ # resp.instance.hardware.disks[0].arn #=> String
1193
+ # resp.instance.hardware.disks[0].support_code #=> String
1194
+ # resp.instance.hardware.disks[0].created_at #=> Time
1195
+ # resp.instance.hardware.disks[0].location.availability_zone #=> String
1196
+ # resp.instance.hardware.disks[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1197
+ # resp.instance.hardware.disks[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1198
+ # resp.instance.hardware.disks[0].size_in_gb #=> Integer
1199
+ # resp.instance.hardware.disks[0].gb_in_use #=> Integer
1200
+ # resp.instance.hardware.disks[0].is_system_disk #=> Boolean
1201
+ # resp.instance.hardware.disks[0].iops #=> Integer
1202
+ # resp.instance.hardware.disks[0].path #=> String
1203
+ # resp.instance.hardware.disks[0].attached_to #=> String
1204
+ # resp.instance.hardware.disks[0].is_attached #=> Boolean
1205
+ # resp.instance.hardware.disks[0].attachment_state #=> String
1206
+ # resp.instance.hardware.ram_size_in_gb #=> Float
1207
+ # resp.instance.networking.monthly_transfer.gb_per_month_allocated #=> Integer
1208
+ # resp.instance.networking.ports #=> Array
1209
+ # resp.instance.networking.ports[0].from_port #=> Integer
1210
+ # resp.instance.networking.ports[0].to_port #=> Integer
1211
+ # resp.instance.networking.ports[0].protocol #=> String, one of "tcp", "all", "udp"
1212
+ # resp.instance.networking.ports[0].access_from #=> String
1213
+ # resp.instance.networking.ports[0].access_type #=> String, one of "Public", "Private"
1214
+ # resp.instance.networking.ports[0].common_name #=> String
1215
+ # resp.instance.networking.ports[0].access_direction #=> String, one of "inbound", "outbound"
1216
+ # resp.instance.state.code #=> Integer
1217
+ # resp.instance.state.name #=> String
1218
+ # resp.instance.username #=> String
1219
+ # resp.instance.ssh_key_name #=> String
1220
+ #
1221
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstance AWS API Documentation
1222
+ #
1223
+ # @overload get_instance(params = {})
1224
+ # @param [Hash] params ({})
1225
+ def get_instance(params = {}, options = {})
1226
+ req = build_request(:get_instance, params)
1227
+ req.send_request(options)
1228
+ end
1078
1229
 
1079
- # Returns the data points for the specified Amazon Lightsail instance
1080
- # metric, given an instance name.
1081
- # @option params [required, String] :instance_name
1082
- # The name of the instance for which you want to get metrics data.
1083
- # @option params [required, String] :metric_name
1084
- # The metric name to get data about.
1085
- # @option params [required, Integer] :period
1086
- # The time period for which you are requesting data.
1087
- # @option params [required, Time,DateTime,Date,Integer,String] :start_time
1088
- # The start time of the time period.
1089
- # @option params [required, Time,DateTime,Date,Integer,String] :end_time
1090
- # The end time of the time period.
1091
- # @option params [required, String] :unit
1092
- # The unit. The list of valid values is below.
1093
- # @option params [required, Array<String>] :statistics
1094
- # The instance statistics.
1095
- # @return [Types::GetInstanceMetricDataResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1096
- #
1097
- # * {Types::GetInstanceMetricDataResult#metric_name #metricName} => String
1098
- # * {Types::GetInstanceMetricDataResult#metric_data #metricData} => Array&lt;Types::MetricDatapoint&gt;
1099
- #
1100
- # @example Request syntax with placeholder values
1101
- # resp = client.get_instance_metric_data({
1102
- # instance_name: "ResourceName", # required
1103
- # metric_name: "CPUUtilization", # required, accepts CPUUtilization, NetworkIn, NetworkOut, StatusCheckFailed, StatusCheckFailed_Instance, StatusCheckFailed_System
1104
- # period: 1, # required
1105
- # start_time: Time.now, # required
1106
- # end_time: Time.now, # required
1107
- # unit: "Seconds", # required, accepts Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None
1108
- # statistics: ["Minimum"], # required, accepts Minimum, Maximum, Sum, Average, SampleCount
1109
- # })
1110
- #
1111
- # @example Response structure
1112
- # resp.metric_name #=> String, one of "CPUUtilization", "NetworkIn", "NetworkOut", "StatusCheckFailed", "StatusCheckFailed_Instance", "StatusCheckFailed_System"
1113
- # resp.metric_data #=> Array
1114
- # resp.metric_data[0].average #=> Float
1115
- # resp.metric_data[0].maximum #=> Float
1116
- # resp.metric_data[0].minimum #=> Float
1117
- # resp.metric_data[0].sample_count #=> Float
1118
- # resp.metric_data[0].sum #=> Float
1119
- # resp.metric_data[0].timestamp #=> Time
1120
- # resp.metric_data[0].unit #=> String, one of "Seconds", "Microseconds", "Milliseconds", "Bytes", "Kilobytes", "Megabytes", "Gigabytes", "Terabytes", "Bits", "Kilobits", "Megabits", "Gigabits", "Terabits", "Percent", "Count", "Bytes/Second", "Kilobytes/Second", "Megabytes/Second", "Gigabytes/Second", "Terabytes/Second", "Bits/Second", "Kilobits/Second", "Megabits/Second", "Gigabits/Second", "Terabits/Second", "Count/Second", "None"
1121
- # @overload get_instance_metric_data(params = {})
1122
- # @param [Hash] params ({})
1123
- def get_instance_metric_data(params = {}, options = {})
1124
- req = build_request(:get_instance_metric_data, params)
1125
- req.send_request(options)
1126
- end
1230
+ # Returns temporary SSH keys you can use to connect to a specific
1231
+ # virtual private server, or *instance*.
1232
+ #
1233
+ # @option params [required, String] :instance_name
1234
+ # The name of the instance to access.
1235
+ #
1236
+ # @option params [String] :protocol
1237
+ # The protocol to use to connect to your instance. Defaults to `ssh`.
1238
+ #
1239
+ # @return [Types::GetInstanceAccessDetailsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1240
+ #
1241
+ # * {Types::GetInstanceAccessDetailsResult#access_details #access_details} => Types::InstanceAccessDetails
1242
+ #
1243
+ # @example Request syntax with placeholder values
1244
+ #
1245
+ # resp = client.get_instance_access_details({
1246
+ # instance_name: "ResourceName", # required
1247
+ # protocol: "ssh", # accepts ssh, rdp
1248
+ # })
1249
+ #
1250
+ # @example Response structure
1251
+ #
1252
+ # resp.access_details.cert_key #=> String
1253
+ # resp.access_details.expires_at #=> Time
1254
+ # resp.access_details.ip_address #=> String
1255
+ # resp.access_details.password #=> String
1256
+ # resp.access_details.private_key #=> String
1257
+ # resp.access_details.protocol #=> String, one of "ssh", "rdp"
1258
+ # resp.access_details.instance_name #=> String
1259
+ # resp.access_details.username #=> String
1260
+ #
1261
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceAccessDetails AWS API Documentation
1262
+ #
1263
+ # @overload get_instance_access_details(params = {})
1264
+ # @param [Hash] params ({})
1265
+ def get_instance_access_details(params = {}, options = {})
1266
+ req = build_request(:get_instance_access_details, params)
1267
+ req.send_request(options)
1268
+ end
1127
1269
 
1128
- # Returns the port states for a specific virtual private server, or
1129
- # *instance*.
1130
- # @option params [required, String] :instance_name
1131
- # The name of the instance.
1132
- # @return [Types::GetInstancePortStatesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1133
- #
1134
- # * {Types::GetInstancePortStatesResult#port_states #portStates} => Array&lt;String&gt;
1135
- #
1136
- # @example Request syntax with placeholder values
1137
- # resp = client.get_instance_port_states({
1138
- # instance_name: "ResourceName", # required
1139
- # })
1140
- #
1141
- # @example Response structure
1142
- # resp.port_states #=> Array
1143
- # resp.port_states[0] #=> String, one of "open", "closed"
1144
- # @overload get_instance_port_states(params = {})
1145
- # @param [Hash] params ({})
1146
- def get_instance_port_states(params = {}, options = {})
1147
- req = build_request(:get_instance_port_states, params)
1148
- req.send_request(options)
1149
- end
1270
+ # Returns the data points for the specified Amazon Lightsail instance
1271
+ # metric, given an instance name.
1272
+ #
1273
+ # @option params [required, String] :instance_name
1274
+ # The name of the instance for which you want to get metrics data.
1275
+ #
1276
+ # @option params [required, String] :metric_name
1277
+ # The metric name to get data about.
1278
+ #
1279
+ # @option params [required, Integer] :period
1280
+ # The time period for which you are requesting data.
1281
+ #
1282
+ # @option params [required, Time,DateTime,Date,Integer,String] :start_time
1283
+ # The start time of the time period.
1284
+ #
1285
+ # @option params [required, Time,DateTime,Date,Integer,String] :end_time
1286
+ # The end time of the time period.
1287
+ #
1288
+ # @option params [required, String] :unit
1289
+ # The unit. The list of valid values is below.
1290
+ #
1291
+ # @option params [required, Array<String>] :statistics
1292
+ # The instance statistics.
1293
+ #
1294
+ # @return [Types::GetInstanceMetricDataResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1295
+ #
1296
+ # * {Types::GetInstanceMetricDataResult#metric_name #metric_name} => String
1297
+ # * {Types::GetInstanceMetricDataResult#metric_data #metric_data} => Array&lt;Types::MetricDatapoint&gt;
1298
+ #
1299
+ # @example Request syntax with placeholder values
1300
+ #
1301
+ # resp = client.get_instance_metric_data({
1302
+ # instance_name: "ResourceName", # required
1303
+ # metric_name: "CPUUtilization", # required, accepts CPUUtilization, NetworkIn, NetworkOut, StatusCheckFailed, StatusCheckFailed_Instance, StatusCheckFailed_System
1304
+ # period: 1, # required
1305
+ # start_time: Time.now, # required
1306
+ # end_time: Time.now, # required
1307
+ # unit: "Seconds", # required, accepts Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None
1308
+ # statistics: ["Minimum"], # required, accepts Minimum, Maximum, Sum, Average, SampleCount
1309
+ # })
1310
+ #
1311
+ # @example Response structure
1312
+ #
1313
+ # resp.metric_name #=> String, one of "CPUUtilization", "NetworkIn", "NetworkOut", "StatusCheckFailed", "StatusCheckFailed_Instance", "StatusCheckFailed_System"
1314
+ # resp.metric_data #=> Array
1315
+ # resp.metric_data[0].average #=> Float
1316
+ # resp.metric_data[0].maximum #=> Float
1317
+ # resp.metric_data[0].minimum #=> Float
1318
+ # resp.metric_data[0].sample_count #=> Float
1319
+ # resp.metric_data[0].sum #=> Float
1320
+ # resp.metric_data[0].timestamp #=> Time
1321
+ # resp.metric_data[0].unit #=> String, one of "Seconds", "Microseconds", "Milliseconds", "Bytes", "Kilobytes", "Megabytes", "Gigabytes", "Terabytes", "Bits", "Kilobits", "Megabits", "Gigabits", "Terabits", "Percent", "Count", "Bytes/Second", "Kilobytes/Second", "Megabytes/Second", "Gigabytes/Second", "Terabytes/Second", "Bits/Second", "Kilobits/Second", "Megabits/Second", "Gigabits/Second", "Terabits/Second", "Count/Second", "None"
1322
+ #
1323
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceMetricData AWS API Documentation
1324
+ #
1325
+ # @overload get_instance_metric_data(params = {})
1326
+ # @param [Hash] params ({})
1327
+ def get_instance_metric_data(params = {}, options = {})
1328
+ req = build_request(:get_instance_metric_data, params)
1329
+ req.send_request(options)
1330
+ end
1150
1331
 
1151
- # Returns information about a specific instance snapshot.
1152
- # @option params [required, String] :instance_snapshot_name
1153
- # The name of the snapshot for which you are requesting information.
1154
- # @return [Types::GetInstanceSnapshotResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1155
- #
1156
- # * {Types::GetInstanceSnapshotResult#instance_snapshot #instanceSnapshot} => Types::InstanceSnapshot
1157
- #
1158
- # @example Request syntax with placeholder values
1159
- # resp = client.get_instance_snapshot({
1160
- # instance_snapshot_name: "ResourceName", # required
1161
- # })
1162
- #
1163
- # @example Response structure
1164
- # resp.instance_snapshot.name #=> String
1165
- # resp.instance_snapshot.arn #=> String
1166
- # resp.instance_snapshot.support_code #=> String
1167
- # resp.instance_snapshot.created_at #=> Time
1168
- # resp.instance_snapshot.location.availability_zone #=> String
1169
- # resp.instance_snapshot.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1170
- # resp.instance_snapshot.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1171
- # resp.instance_snapshot.state #=> String, one of "pending", "error", "available"
1172
- # resp.instance_snapshot.progress #=> String
1173
- # resp.instance_snapshot.from_instance_name #=> String
1174
- # resp.instance_snapshot.from_instance_arn #=> String
1175
- # resp.instance_snapshot.from_blueprint_id #=> String
1176
- # resp.instance_snapshot.from_bundle_id #=> String
1177
- # resp.instance_snapshot.size_in_gb #=> Integer
1178
- # @overload get_instance_snapshot(params = {})
1179
- # @param [Hash] params ({})
1180
- def get_instance_snapshot(params = {}, options = {})
1181
- req = build_request(:get_instance_snapshot, params)
1182
- req.send_request(options)
1183
- end
1332
+ # Returns the port states for a specific virtual private server, or
1333
+ # *instance*.
1334
+ #
1335
+ # @option params [required, String] :instance_name
1336
+ # The name of the instance.
1337
+ #
1338
+ # @return [Types::GetInstancePortStatesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1339
+ #
1340
+ # * {Types::GetInstancePortStatesResult#port_states #port_states} => Array&lt;String&gt;
1341
+ #
1342
+ # @example Request syntax with placeholder values
1343
+ #
1344
+ # resp = client.get_instance_port_states({
1345
+ # instance_name: "ResourceName", # required
1346
+ # })
1347
+ #
1348
+ # @example Response structure
1349
+ #
1350
+ # resp.port_states #=> Array
1351
+ # resp.port_states[0] #=> String, one of "open", "closed"
1352
+ #
1353
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstancePortStates AWS API Documentation
1354
+ #
1355
+ # @overload get_instance_port_states(params = {})
1356
+ # @param [Hash] params ({})
1357
+ def get_instance_port_states(params = {}, options = {})
1358
+ req = build_request(:get_instance_port_states, params)
1359
+ req.send_request(options)
1360
+ end
1184
1361
 
1185
- # Returns all instance snapshots for the user's account.
1186
- # @option params [String] :page_token
1187
- # A token used for advancing to the next page of results from your get
1188
- # instance snapshots request.
1189
- # @return [Types::GetInstanceSnapshotsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1190
- #
1191
- # * {Types::GetInstanceSnapshotsResult#instance_snapshots #instanceSnapshots} => Array&lt;Types::InstanceSnapshot&gt;
1192
- # * {Types::GetInstanceSnapshotsResult#next_page_token #nextPageToken} => String
1193
- #
1194
- # @example Request syntax with placeholder values
1195
- # resp = client.get_instance_snapshots({
1196
- # page_token: "string",
1197
- # })
1198
- #
1199
- # @example Response structure
1200
- # resp.instance_snapshots #=> Array
1201
- # resp.instance_snapshots[0].name #=> String
1202
- # resp.instance_snapshots[0].arn #=> String
1203
- # resp.instance_snapshots[0].support_code #=> String
1204
- # resp.instance_snapshots[0].created_at #=> Time
1205
- # resp.instance_snapshots[0].location.availability_zone #=> String
1206
- # resp.instance_snapshots[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1207
- # resp.instance_snapshots[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1208
- # resp.instance_snapshots[0].state #=> String, one of "pending", "error", "available"
1209
- # resp.instance_snapshots[0].progress #=> String
1210
- # resp.instance_snapshots[0].from_instance_name #=> String
1211
- # resp.instance_snapshots[0].from_instance_arn #=> String
1212
- # resp.instance_snapshots[0].from_blueprint_id #=> String
1213
- # resp.instance_snapshots[0].from_bundle_id #=> String
1214
- # resp.instance_snapshots[0].size_in_gb #=> Integer
1215
- # resp.next_page_token #=> String
1216
- # @overload get_instance_snapshots(params = {})
1217
- # @param [Hash] params ({})
1218
- def get_instance_snapshots(params = {}, options = {})
1219
- req = build_request(:get_instance_snapshots, params)
1220
- req.send_request(options)
1221
- end
1362
+ # Returns information about a specific instance snapshot.
1363
+ #
1364
+ # @option params [required, String] :instance_snapshot_name
1365
+ # The name of the snapshot for which you are requesting information.
1366
+ #
1367
+ # @return [Types::GetInstanceSnapshotResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1368
+ #
1369
+ # * {Types::GetInstanceSnapshotResult#instance_snapshot #instance_snapshot} => Types::InstanceSnapshot
1370
+ #
1371
+ # @example Request syntax with placeholder values
1372
+ #
1373
+ # resp = client.get_instance_snapshot({
1374
+ # instance_snapshot_name: "ResourceName", # required
1375
+ # })
1376
+ #
1377
+ # @example Response structure
1378
+ #
1379
+ # resp.instance_snapshot.name #=> String
1380
+ # resp.instance_snapshot.arn #=> String
1381
+ # resp.instance_snapshot.support_code #=> String
1382
+ # resp.instance_snapshot.created_at #=> Time
1383
+ # resp.instance_snapshot.location.availability_zone #=> String
1384
+ # resp.instance_snapshot.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1385
+ # resp.instance_snapshot.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1386
+ # resp.instance_snapshot.state #=> String, one of "pending", "error", "available"
1387
+ # resp.instance_snapshot.progress #=> String
1388
+ # resp.instance_snapshot.from_instance_name #=> String
1389
+ # resp.instance_snapshot.from_instance_arn #=> String
1390
+ # resp.instance_snapshot.from_blueprint_id #=> String
1391
+ # resp.instance_snapshot.from_bundle_id #=> String
1392
+ # resp.instance_snapshot.size_in_gb #=> Integer
1393
+ #
1394
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceSnapshot AWS API Documentation
1395
+ #
1396
+ # @overload get_instance_snapshot(params = {})
1397
+ # @param [Hash] params ({})
1398
+ def get_instance_snapshot(params = {}, options = {})
1399
+ req = build_request(:get_instance_snapshot, params)
1400
+ req.send_request(options)
1401
+ end
1222
1402
 
1223
- # Returns the state of a specific instance. Works on one instance at a
1224
- # time.
1225
- # @option params [required, String] :instance_name
1226
- # The name of the instance to get state information about.
1227
- # @return [Types::GetInstanceStateResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1228
- #
1229
- # * {Types::GetInstanceStateResult#state #state} => Types::InstanceState
1230
- #
1231
- # @example Request syntax with placeholder values
1232
- # resp = client.get_instance_state({
1233
- # instance_name: "ResourceName", # required
1234
- # })
1235
- #
1236
- # @example Response structure
1237
- # resp.state.code #=> Integer
1238
- # resp.state.name #=> String
1239
- # @overload get_instance_state(params = {})
1240
- # @param [Hash] params ({})
1241
- def get_instance_state(params = {}, options = {})
1242
- req = build_request(:get_instance_state, params)
1243
- req.send_request(options)
1244
- end
1403
+ # Returns all instance snapshots for the user's account.
1404
+ #
1405
+ # @option params [String] :page_token
1406
+ # A token used for advancing to the next page of results from your get
1407
+ # instance snapshots request.
1408
+ #
1409
+ # @return [Types::GetInstanceSnapshotsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1410
+ #
1411
+ # * {Types::GetInstanceSnapshotsResult#instance_snapshots #instance_snapshots} => Array&lt;Types::InstanceSnapshot&gt;
1412
+ # * {Types::GetInstanceSnapshotsResult#next_page_token #next_page_token} => String
1413
+ #
1414
+ # @example Request syntax with placeholder values
1415
+ #
1416
+ # resp = client.get_instance_snapshots({
1417
+ # page_token: "string",
1418
+ # })
1419
+ #
1420
+ # @example Response structure
1421
+ #
1422
+ # resp.instance_snapshots #=> Array
1423
+ # resp.instance_snapshots[0].name #=> String
1424
+ # resp.instance_snapshots[0].arn #=> String
1425
+ # resp.instance_snapshots[0].support_code #=> String
1426
+ # resp.instance_snapshots[0].created_at #=> Time
1427
+ # resp.instance_snapshots[0].location.availability_zone #=> String
1428
+ # resp.instance_snapshots[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1429
+ # resp.instance_snapshots[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1430
+ # resp.instance_snapshots[0].state #=> String, one of "pending", "error", "available"
1431
+ # resp.instance_snapshots[0].progress #=> String
1432
+ # resp.instance_snapshots[0].from_instance_name #=> String
1433
+ # resp.instance_snapshots[0].from_instance_arn #=> String
1434
+ # resp.instance_snapshots[0].from_blueprint_id #=> String
1435
+ # resp.instance_snapshots[0].from_bundle_id #=> String
1436
+ # resp.instance_snapshots[0].size_in_gb #=> Integer
1437
+ # resp.next_page_token #=> String
1438
+ #
1439
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceSnapshots AWS API Documentation
1440
+ #
1441
+ # @overload get_instance_snapshots(params = {})
1442
+ # @param [Hash] params ({})
1443
+ def get_instance_snapshots(params = {}, options = {})
1444
+ req = build_request(:get_instance_snapshots, params)
1445
+ req.send_request(options)
1446
+ end
1245
1447
 
1246
- # Returns information about all Amazon Lightsail virtual private
1247
- # servers, or *instances*.
1248
- # @option params [String] :page_token
1249
- # A token used for advancing to the next page of results from your get
1250
- # instances request.
1251
- # @return [Types::GetInstancesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1252
- #
1253
- # * {Types::GetInstancesResult#instances #instances} => Array&lt;Types::Instance&gt;
1254
- # * {Types::GetInstancesResult#next_page_token #nextPageToken} => String
1255
- #
1256
- # @example Request syntax with placeholder values
1257
- # resp = client.get_instances({
1258
- # page_token: "string",
1259
- # })
1260
- #
1261
- # @example Response structure
1262
- # resp.instances #=> Array
1263
- # resp.instances[0].name #=> String
1264
- # resp.instances[0].arn #=> String
1265
- # resp.instances[0].support_code #=> String
1266
- # resp.instances[0].created_at #=> Time
1267
- # resp.instances[0].location.availability_zone #=> String
1268
- # resp.instances[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1269
- # resp.instances[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1270
- # resp.instances[0].blueprint_id #=> String
1271
- # resp.instances[0].blueprint_name #=> String
1272
- # resp.instances[0].bundle_id #=> String
1273
- # resp.instances[0].is_static_ip #=> Boolean
1274
- # resp.instances[0].private_ip_address #=> String
1275
- # resp.instances[0].public_ip_address #=> String
1276
- # resp.instances[0].ipv6_address #=> String
1277
- # resp.instances[0].hardware.cpu_count #=> Integer
1278
- # resp.instances[0].hardware.disks #=> Array
1279
- # resp.instances[0].hardware.disks[0].name #=> String
1280
- # resp.instances[0].hardware.disks[0].arn #=> String
1281
- # resp.instances[0].hardware.disks[0].support_code #=> String
1282
- # resp.instances[0].hardware.disks[0].created_at #=> Time
1283
- # resp.instances[0].hardware.disks[0].location.availability_zone #=> String
1284
- # resp.instances[0].hardware.disks[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1285
- # resp.instances[0].hardware.disks[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1286
- # resp.instances[0].hardware.disks[0].size_in_gb #=> Integer
1287
- # resp.instances[0].hardware.disks[0].gb_in_use #=> Integer
1288
- # resp.instances[0].hardware.disks[0].is_system_disk #=> Boolean
1289
- # resp.instances[0].hardware.disks[0].iops #=> Integer
1290
- # resp.instances[0].hardware.disks[0].path #=> String
1291
- # resp.instances[0].hardware.disks[0].attached_to #=> String
1292
- # resp.instances[0].hardware.disks[0].is_attached #=> Boolean
1293
- # resp.instances[0].hardware.disks[0].attachment_state #=> String
1294
- # resp.instances[0].hardware.ram_size_in_gb #=> Float
1295
- # resp.instances[0].networking.monthly_transfer.gb_per_month_allocated #=> Integer
1296
- # resp.instances[0].networking.ports #=> Array
1297
- # resp.instances[0].networking.ports[0].from_port #=> Integer
1298
- # resp.instances[0].networking.ports[0].to_port #=> Integer
1299
- # resp.instances[0].networking.ports[0].protocol #=> String, one of "tcp", "all", "udp"
1300
- # resp.instances[0].networking.ports[0].access_from #=> String
1301
- # resp.instances[0].networking.ports[0].access_type #=> String, one of "Public", "Private"
1302
- # resp.instances[0].networking.ports[0].common_name #=> String
1303
- # resp.instances[0].networking.ports[0].access_direction #=> String, one of "inbound", "outbound"
1304
- # resp.instances[0].state.code #=> Integer
1305
- # resp.instances[0].state.name #=> String
1306
- # resp.instances[0].username #=> String
1307
- # resp.instances[0].ssh_key_name #=> String
1308
- # resp.next_page_token #=> String
1309
- # @overload get_instances(params = {})
1310
- # @param [Hash] params ({})
1311
- def get_instances(params = {}, options = {})
1312
- req = build_request(:get_instances, params)
1313
- req.send_request(options)
1314
- end
1448
+ # Returns the state of a specific instance. Works on one instance at a
1449
+ # time.
1450
+ #
1451
+ # @option params [required, String] :instance_name
1452
+ # The name of the instance to get state information about.
1453
+ #
1454
+ # @return [Types::GetInstanceStateResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1455
+ #
1456
+ # * {Types::GetInstanceStateResult#state #state} => Types::InstanceState
1457
+ #
1458
+ # @example Request syntax with placeholder values
1459
+ #
1460
+ # resp = client.get_instance_state({
1461
+ # instance_name: "ResourceName", # required
1462
+ # })
1463
+ #
1464
+ # @example Response structure
1465
+ #
1466
+ # resp.state.code #=> Integer
1467
+ # resp.state.name #=> String
1468
+ #
1469
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceState AWS API Documentation
1470
+ #
1471
+ # @overload get_instance_state(params = {})
1472
+ # @param [Hash] params ({})
1473
+ def get_instance_state(params = {}, options = {})
1474
+ req = build_request(:get_instance_state, params)
1475
+ req.send_request(options)
1476
+ end
1315
1477
 
1316
- # Returns information about a specific key pair.
1317
- # @option params [required, String] :key_pair_name
1318
- # The name of the key pair for which you are requesting information.
1319
- # @return [Types::GetKeyPairResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1320
- #
1321
- # * {Types::GetKeyPairResult#key_pair #keyPair} => Types::KeyPair
1322
- #
1323
- # @example Request syntax with placeholder values
1324
- # resp = client.get_key_pair({
1325
- # key_pair_name: "ResourceName", # required
1326
- # })
1327
- #
1328
- # @example Response structure
1329
- # resp.key_pair.name #=> String
1330
- # resp.key_pair.arn #=> String
1331
- # resp.key_pair.support_code #=> String
1332
- # resp.key_pair.created_at #=> Time
1333
- # resp.key_pair.location.availability_zone #=> String
1334
- # resp.key_pair.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1335
- # resp.key_pair.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1336
- # resp.key_pair.fingerprint #=> String
1337
- # @overload get_key_pair(params = {})
1338
- # @param [Hash] params ({})
1339
- def get_key_pair(params = {}, options = {})
1340
- req = build_request(:get_key_pair, params)
1341
- req.send_request(options)
1342
- end
1478
+ # Returns information about all Amazon Lightsail virtual private
1479
+ # servers, or *instances*.
1480
+ #
1481
+ # @option params [String] :page_token
1482
+ # A token used for advancing to the next page of results from your get
1483
+ # instances request.
1484
+ #
1485
+ # @return [Types::GetInstancesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1486
+ #
1487
+ # * {Types::GetInstancesResult#instances #instances} => Array&lt;Types::Instance&gt;
1488
+ # * {Types::GetInstancesResult#next_page_token #next_page_token} => String
1489
+ #
1490
+ # @example Request syntax with placeholder values
1491
+ #
1492
+ # resp = client.get_instances({
1493
+ # page_token: "string",
1494
+ # })
1495
+ #
1496
+ # @example Response structure
1497
+ #
1498
+ # resp.instances #=> Array
1499
+ # resp.instances[0].name #=> String
1500
+ # resp.instances[0].arn #=> String
1501
+ # resp.instances[0].support_code #=> String
1502
+ # resp.instances[0].created_at #=> Time
1503
+ # resp.instances[0].location.availability_zone #=> String
1504
+ # resp.instances[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1505
+ # resp.instances[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1506
+ # resp.instances[0].blueprint_id #=> String
1507
+ # resp.instances[0].blueprint_name #=> String
1508
+ # resp.instances[0].bundle_id #=> String
1509
+ # resp.instances[0].is_static_ip #=> Boolean
1510
+ # resp.instances[0].private_ip_address #=> String
1511
+ # resp.instances[0].public_ip_address #=> String
1512
+ # resp.instances[0].ipv6_address #=> String
1513
+ # resp.instances[0].hardware.cpu_count #=> Integer
1514
+ # resp.instances[0].hardware.disks #=> Array
1515
+ # resp.instances[0].hardware.disks[0].name #=> String
1516
+ # resp.instances[0].hardware.disks[0].arn #=> String
1517
+ # resp.instances[0].hardware.disks[0].support_code #=> String
1518
+ # resp.instances[0].hardware.disks[0].created_at #=> Time
1519
+ # resp.instances[0].hardware.disks[0].location.availability_zone #=> String
1520
+ # resp.instances[0].hardware.disks[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1521
+ # resp.instances[0].hardware.disks[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1522
+ # resp.instances[0].hardware.disks[0].size_in_gb #=> Integer
1523
+ # resp.instances[0].hardware.disks[0].gb_in_use #=> Integer
1524
+ # resp.instances[0].hardware.disks[0].is_system_disk #=> Boolean
1525
+ # resp.instances[0].hardware.disks[0].iops #=> Integer
1526
+ # resp.instances[0].hardware.disks[0].path #=> String
1527
+ # resp.instances[0].hardware.disks[0].attached_to #=> String
1528
+ # resp.instances[0].hardware.disks[0].is_attached #=> Boolean
1529
+ # resp.instances[0].hardware.disks[0].attachment_state #=> String
1530
+ # resp.instances[0].hardware.ram_size_in_gb #=> Float
1531
+ # resp.instances[0].networking.monthly_transfer.gb_per_month_allocated #=> Integer
1532
+ # resp.instances[0].networking.ports #=> Array
1533
+ # resp.instances[0].networking.ports[0].from_port #=> Integer
1534
+ # resp.instances[0].networking.ports[0].to_port #=> Integer
1535
+ # resp.instances[0].networking.ports[0].protocol #=> String, one of "tcp", "all", "udp"
1536
+ # resp.instances[0].networking.ports[0].access_from #=> String
1537
+ # resp.instances[0].networking.ports[0].access_type #=> String, one of "Public", "Private"
1538
+ # resp.instances[0].networking.ports[0].common_name #=> String
1539
+ # resp.instances[0].networking.ports[0].access_direction #=> String, one of "inbound", "outbound"
1540
+ # resp.instances[0].state.code #=> Integer
1541
+ # resp.instances[0].state.name #=> String
1542
+ # resp.instances[0].username #=> String
1543
+ # resp.instances[0].ssh_key_name #=> String
1544
+ # resp.next_page_token #=> String
1545
+ #
1546
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstances AWS API Documentation
1547
+ #
1548
+ # @overload get_instances(params = {})
1549
+ # @param [Hash] params ({})
1550
+ def get_instances(params = {}, options = {})
1551
+ req = build_request(:get_instances, params)
1552
+ req.send_request(options)
1553
+ end
1343
1554
 
1344
- # Returns information about all key pairs in the user's account.
1345
- # @option params [String] :page_token
1346
- # A token used for advancing to the next page of results from your get
1347
- # key pairs request.
1348
- # @return [Types::GetKeyPairsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1349
- #
1350
- # * {Types::GetKeyPairsResult#key_pairs #keyPairs} => Array&lt;Types::KeyPair&gt;
1351
- # * {Types::GetKeyPairsResult#next_page_token #nextPageToken} => String
1352
- #
1353
- # @example Request syntax with placeholder values
1354
- # resp = client.get_key_pairs({
1355
- # page_token: "string",
1356
- # })
1357
- #
1358
- # @example Response structure
1359
- # resp.key_pairs #=> Array
1360
- # resp.key_pairs[0].name #=> String
1361
- # resp.key_pairs[0].arn #=> String
1362
- # resp.key_pairs[0].support_code #=> String
1363
- # resp.key_pairs[0].created_at #=> Time
1364
- # resp.key_pairs[0].location.availability_zone #=> String
1365
- # resp.key_pairs[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1366
- # resp.key_pairs[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1367
- # resp.key_pairs[0].fingerprint #=> String
1368
- # resp.next_page_token #=> String
1369
- # @overload get_key_pairs(params = {})
1370
- # @param [Hash] params ({})
1371
- def get_key_pairs(params = {}, options = {})
1372
- req = build_request(:get_key_pairs, params)
1373
- req.send_request(options)
1374
- end
1555
+ # Returns information about a specific key pair.
1556
+ #
1557
+ # @option params [required, String] :key_pair_name
1558
+ # The name of the key pair for which you are requesting information.
1559
+ #
1560
+ # @return [Types::GetKeyPairResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1561
+ #
1562
+ # * {Types::GetKeyPairResult#key_pair #key_pair} => Types::KeyPair
1563
+ #
1564
+ # @example Request syntax with placeholder values
1565
+ #
1566
+ # resp = client.get_key_pair({
1567
+ # key_pair_name: "ResourceName", # required
1568
+ # })
1569
+ #
1570
+ # @example Response structure
1571
+ #
1572
+ # resp.key_pair.name #=> String
1573
+ # resp.key_pair.arn #=> String
1574
+ # resp.key_pair.support_code #=> String
1575
+ # resp.key_pair.created_at #=> Time
1576
+ # resp.key_pair.location.availability_zone #=> String
1577
+ # resp.key_pair.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1578
+ # resp.key_pair.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1579
+ # resp.key_pair.fingerprint #=> String
1580
+ #
1581
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetKeyPair AWS API Documentation
1582
+ #
1583
+ # @overload get_key_pair(params = {})
1584
+ # @param [Hash] params ({})
1585
+ def get_key_pair(params = {}, options = {})
1586
+ req = build_request(:get_key_pair, params)
1587
+ req.send_request(options)
1588
+ end
1375
1589
 
1376
- # Returns information about a specific operation. Operations include
1377
- # events such as when you create an instance, allocate a static IP,
1378
- # attach a static IP, and so on.
1379
- # @option params [required, String] :operation_id
1380
- # A GUID used to identify the operation.
1381
- # @return [Types::GetOperationResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1382
- #
1383
- # * {Types::GetOperationResult#operation #operation} => Types::Operation
1384
- #
1385
- # @example Request syntax with placeholder values
1386
- # resp = client.get_operation({
1387
- # operation_id: "NonEmptyString", # required
1388
- # })
1389
- #
1390
- # @example Response structure
1391
- # resp.operation.id #=> String
1392
- # resp.operation.resource_name #=> String
1393
- # resp.operation.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1394
- # resp.operation.created_at #=> Time
1395
- # resp.operation.location.availability_zone #=> String
1396
- # resp.operation.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1397
- # resp.operation.is_terminal #=> Boolean
1398
- # resp.operation.operation_details #=> String
1399
- # resp.operation.operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
1400
- # resp.operation.status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
1401
- # resp.operation.status_changed_at #=> Time
1402
- # resp.operation.error_code #=> String
1403
- # resp.operation.error_details #=> String
1404
- # @overload get_operation(params = {})
1405
- # @param [Hash] params ({})
1406
- def get_operation(params = {}, options = {})
1407
- req = build_request(:get_operation, params)
1408
- req.send_request(options)
1409
- end
1590
+ # Returns information about all key pairs in the user's account.
1591
+ #
1592
+ # @option params [String] :page_token
1593
+ # A token used for advancing to the next page of results from your get
1594
+ # key pairs request.
1595
+ #
1596
+ # @return [Types::GetKeyPairsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1597
+ #
1598
+ # * {Types::GetKeyPairsResult#key_pairs #key_pairs} => Array&lt;Types::KeyPair&gt;
1599
+ # * {Types::GetKeyPairsResult#next_page_token #next_page_token} => String
1600
+ #
1601
+ # @example Request syntax with placeholder values
1602
+ #
1603
+ # resp = client.get_key_pairs({
1604
+ # page_token: "string",
1605
+ # })
1606
+ #
1607
+ # @example Response structure
1608
+ #
1609
+ # resp.key_pairs #=> Array
1610
+ # resp.key_pairs[0].name #=> String
1611
+ # resp.key_pairs[0].arn #=> String
1612
+ # resp.key_pairs[0].support_code #=> String
1613
+ # resp.key_pairs[0].created_at #=> Time
1614
+ # resp.key_pairs[0].location.availability_zone #=> String
1615
+ # resp.key_pairs[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1616
+ # resp.key_pairs[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1617
+ # resp.key_pairs[0].fingerprint #=> String
1618
+ # resp.next_page_token #=> String
1619
+ #
1620
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetKeyPairs AWS API Documentation
1621
+ #
1622
+ # @overload get_key_pairs(params = {})
1623
+ # @param [Hash] params ({})
1624
+ def get_key_pairs(params = {}, options = {})
1625
+ req = build_request(:get_key_pairs, params)
1626
+ req.send_request(options)
1627
+ end
1410
1628
 
1411
- # Returns information about all operations.
1412
- #
1413
- # Results are returned from oldest to newest, up to a maximum of 200.
1414
- # Results can be paged by making each subsequent call to `GetOperations`
1415
- # use the maximum (last) `statusChangedAt` value from the previous
1416
- # request.
1417
- # @option params [String] :page_token
1418
- # A token used for advancing to the next page of results from your get
1419
- # operations request.
1420
- # @return [Types::GetOperationsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1421
- #
1422
- # * {Types::GetOperationsResult#operations #operations} => Array&lt;Types::Operation&gt;
1423
- # * {Types::GetOperationsResult#next_page_token #nextPageToken} => String
1424
- #
1425
- # @example Request syntax with placeholder values
1426
- # resp = client.get_operations({
1427
- # page_token: "string",
1428
- # })
1429
- #
1430
- # @example Response structure
1431
- # resp.operations #=> Array
1432
- # resp.operations[0].id #=> String
1433
- # resp.operations[0].resource_name #=> String
1434
- # resp.operations[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1435
- # resp.operations[0].created_at #=> Time
1436
- # resp.operations[0].location.availability_zone #=> String
1437
- # resp.operations[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1438
- # resp.operations[0].is_terminal #=> Boolean
1439
- # resp.operations[0].operation_details #=> String
1440
- # resp.operations[0].operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
1441
- # resp.operations[0].status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
1442
- # resp.operations[0].status_changed_at #=> Time
1443
- # resp.operations[0].error_code #=> String
1444
- # resp.operations[0].error_details #=> String
1445
- # resp.next_page_token #=> String
1446
- # @overload get_operations(params = {})
1447
- # @param [Hash] params ({})
1448
- def get_operations(params = {}, options = {})
1449
- req = build_request(:get_operations, params)
1450
- req.send_request(options)
1451
- end
1629
+ # Returns information about a specific operation. Operations include
1630
+ # events such as when you create an instance, allocate a static IP,
1631
+ # attach a static IP, and so on.
1632
+ #
1633
+ # @option params [required, String] :operation_id
1634
+ # A GUID used to identify the operation.
1635
+ #
1636
+ # @return [Types::GetOperationResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1637
+ #
1638
+ # * {Types::GetOperationResult#operation #operation} => Types::Operation
1639
+ #
1640
+ # @example Request syntax with placeholder values
1641
+ #
1642
+ # resp = client.get_operation({
1643
+ # operation_id: "NonEmptyString", # required
1644
+ # })
1645
+ #
1646
+ # @example Response structure
1647
+ #
1648
+ # resp.operation.id #=> String
1649
+ # resp.operation.resource_name #=> String
1650
+ # resp.operation.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1651
+ # resp.operation.created_at #=> Time
1652
+ # resp.operation.location.availability_zone #=> String
1653
+ # resp.operation.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1654
+ # resp.operation.is_terminal #=> Boolean
1655
+ # resp.operation.operation_details #=> String
1656
+ # resp.operation.operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
1657
+ # resp.operation.status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
1658
+ # resp.operation.status_changed_at #=> Time
1659
+ # resp.operation.error_code #=> String
1660
+ # resp.operation.error_details #=> String
1661
+ #
1662
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperation AWS API Documentation
1663
+ #
1664
+ # @overload get_operation(params = {})
1665
+ # @param [Hash] params ({})
1666
+ def get_operation(params = {}, options = {})
1667
+ req = build_request(:get_operation, params)
1668
+ req.send_request(options)
1669
+ end
1452
1670
 
1453
- # Gets operations for a specific resource (e.g., an instance or a static
1454
- # IP).
1455
- # @option params [required, String] :resource_name
1456
- # The name of the resource for which you are requesting information.
1457
- # @option params [String] :page_token
1458
- # A token used for advancing to the next page of results from your get
1459
- # operations for resource request.
1460
- # @return [Types::GetOperationsForResourceResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1461
- #
1462
- # * {Types::GetOperationsForResourceResult#operations #operations} => Array&lt;Types::Operation&gt;
1463
- # * {Types::GetOperationsForResourceResult#next_page_count #nextPageCount} => String
1464
- #
1465
- # @example Request syntax with placeholder values
1466
- # resp = client.get_operations_for_resource({
1467
- # resource_name: "ResourceName", # required
1468
- # page_token: "string",
1469
- # })
1470
- #
1471
- # @example Response structure
1472
- # resp.operations #=> Array
1473
- # resp.operations[0].id #=> String
1474
- # resp.operations[0].resource_name #=> String
1475
- # resp.operations[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1476
- # resp.operations[0].created_at #=> Time
1477
- # resp.operations[0].location.availability_zone #=> String
1478
- # resp.operations[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1479
- # resp.operations[0].is_terminal #=> Boolean
1480
- # resp.operations[0].operation_details #=> String
1481
- # resp.operations[0].operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
1482
- # resp.operations[0].status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
1483
- # resp.operations[0].status_changed_at #=> Time
1484
- # resp.operations[0].error_code #=> String
1485
- # resp.operations[0].error_details #=> String
1486
- # resp.next_page_count #=> String
1487
- # @overload get_operations_for_resource(params = {})
1488
- # @param [Hash] params ({})
1489
- def get_operations_for_resource(params = {}, options = {})
1490
- req = build_request(:get_operations_for_resource, params)
1491
- req.send_request(options)
1492
- end
1671
+ # Returns information about all operations.
1672
+ #
1673
+ # Results are returned from oldest to newest, up to a maximum of 200.
1674
+ # Results can be paged by making each subsequent call to `GetOperations`
1675
+ # use the maximum (last) `statusChangedAt` value from the previous
1676
+ # request.
1677
+ #
1678
+ # @option params [String] :page_token
1679
+ # A token used for advancing to the next page of results from your get
1680
+ # operations request.
1681
+ #
1682
+ # @return [Types::GetOperationsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1683
+ #
1684
+ # * {Types::GetOperationsResult#operations #operations} => Array&lt;Types::Operation&gt;
1685
+ # * {Types::GetOperationsResult#next_page_token #next_page_token} => String
1686
+ #
1687
+ # @example Request syntax with placeholder values
1688
+ #
1689
+ # resp = client.get_operations({
1690
+ # page_token: "string",
1691
+ # })
1692
+ #
1693
+ # @example Response structure
1694
+ #
1695
+ # resp.operations #=> Array
1696
+ # resp.operations[0].id #=> String
1697
+ # resp.operations[0].resource_name #=> String
1698
+ # resp.operations[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1699
+ # resp.operations[0].created_at #=> Time
1700
+ # resp.operations[0].location.availability_zone #=> String
1701
+ # resp.operations[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1702
+ # resp.operations[0].is_terminal #=> Boolean
1703
+ # resp.operations[0].operation_details #=> String
1704
+ # resp.operations[0].operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
1705
+ # resp.operations[0].status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
1706
+ # resp.operations[0].status_changed_at #=> Time
1707
+ # resp.operations[0].error_code #=> String
1708
+ # resp.operations[0].error_details #=> String
1709
+ # resp.next_page_token #=> String
1710
+ #
1711
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperations AWS API Documentation
1712
+ #
1713
+ # @overload get_operations(params = {})
1714
+ # @param [Hash] params ({})
1715
+ def get_operations(params = {}, options = {})
1716
+ req = build_request(:get_operations, params)
1717
+ req.send_request(options)
1718
+ end
1493
1719
 
1494
- # Returns a list of all valid regions for Amazon Lightsail.
1495
- # @option params [Boolean] :include_availability_zones
1496
- # A Boolean value indicating whether to also include Availability Zones
1497
- # in your get regions request. Availability Zones are indicated with a
1498
- # letter: e.g., `us-east-1a`.
1499
- # @return [Types::GetRegionsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1500
- #
1501
- # * {Types::GetRegionsResult#regions #regions} => Array&lt;Types::Region&gt;
1502
- #
1503
- # @example Request syntax with placeholder values
1504
- # resp = client.get_regions({
1505
- # include_availability_zones: false,
1506
- # })
1507
- #
1508
- # @example Response structure
1509
- # resp.regions #=> Array
1510
- # resp.regions[0].continent_code #=> String
1511
- # resp.regions[0].description #=> String
1512
- # resp.regions[0].display_name #=> String
1513
- # resp.regions[0].name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1514
- # resp.regions[0].availability_zones #=> Array
1515
- # resp.regions[0].availability_zones[0].zone_name #=> String
1516
- # resp.regions[0].availability_zones[0].state #=> String
1517
- # @overload get_regions(params = {})
1518
- # @param [Hash] params ({})
1519
- def get_regions(params = {}, options = {})
1520
- req = build_request(:get_regions, params)
1521
- req.send_request(options)
1522
- end
1720
+ # Gets operations for a specific resource (e.g., an instance or a static
1721
+ # IP).
1722
+ #
1723
+ # @option params [required, String] :resource_name
1724
+ # The name of the resource for which you are requesting information.
1725
+ #
1726
+ # @option params [String] :page_token
1727
+ # A token used for advancing to the next page of results from your get
1728
+ # operations for resource request.
1729
+ #
1730
+ # @return [Types::GetOperationsForResourceResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1731
+ #
1732
+ # * {Types::GetOperationsForResourceResult#operations #operations} => Array&lt;Types::Operation&gt;
1733
+ # * {Types::GetOperationsForResourceResult#next_page_count #next_page_count} => String
1734
+ #
1735
+ # @example Request syntax with placeholder values
1736
+ #
1737
+ # resp = client.get_operations_for_resource({
1738
+ # resource_name: "ResourceName", # required
1739
+ # page_token: "string",
1740
+ # })
1741
+ #
1742
+ # @example Response structure
1743
+ #
1744
+ # resp.operations #=> Array
1745
+ # resp.operations[0].id #=> String
1746
+ # resp.operations[0].resource_name #=> String
1747
+ # resp.operations[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1748
+ # resp.operations[0].created_at #=> Time
1749
+ # resp.operations[0].location.availability_zone #=> String
1750
+ # resp.operations[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1751
+ # resp.operations[0].is_terminal #=> Boolean
1752
+ # resp.operations[0].operation_details #=> String
1753
+ # resp.operations[0].operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
1754
+ # resp.operations[0].status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
1755
+ # resp.operations[0].status_changed_at #=> Time
1756
+ # resp.operations[0].error_code #=> String
1757
+ # resp.operations[0].error_details #=> String
1758
+ # resp.next_page_count #=> String
1759
+ #
1760
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperationsForResource AWS API Documentation
1761
+ #
1762
+ # @overload get_operations_for_resource(params = {})
1763
+ # @param [Hash] params ({})
1764
+ def get_operations_for_resource(params = {}, options = {})
1765
+ req = build_request(:get_operations_for_resource, params)
1766
+ req.send_request(options)
1767
+ end
1523
1768
 
1524
- # Returns information about a specific static IP.
1525
- # @option params [required, String] :static_ip_name
1526
- # The name of the static IP in Lightsail.
1527
- # @return [Types::GetStaticIpResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1528
- #
1529
- # * {Types::GetStaticIpResult#static_ip #staticIp} => Types::StaticIp
1530
- #
1531
- # @example Request syntax with placeholder values
1532
- # resp = client.get_static_ip({
1533
- # static_ip_name: "ResourceName", # required
1534
- # })
1535
- #
1536
- # @example Response structure
1537
- # resp.static_ip.name #=> String
1538
- # resp.static_ip.arn #=> String
1539
- # resp.static_ip.support_code #=> String
1540
- # resp.static_ip.created_at #=> Time
1541
- # resp.static_ip.location.availability_zone #=> String
1542
- # resp.static_ip.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1543
- # resp.static_ip.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1544
- # resp.static_ip.ip_address #=> String
1545
- # resp.static_ip.attached_to #=> String
1546
- # resp.static_ip.is_attached #=> Boolean
1547
- # @overload get_static_ip(params = {})
1548
- # @param [Hash] params ({})
1549
- def get_static_ip(params = {}, options = {})
1550
- req = build_request(:get_static_ip, params)
1551
- req.send_request(options)
1552
- end
1769
+ # Returns a list of all valid regions for Amazon Lightsail.
1770
+ #
1771
+ # @option params [Boolean] :include_availability_zones
1772
+ # A Boolean value indicating whether to also include Availability Zones
1773
+ # in your get regions request. Availability Zones are indicated with a
1774
+ # letter: e.g., `us-east-1a`.
1775
+ #
1776
+ # @return [Types::GetRegionsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1777
+ #
1778
+ # * {Types::GetRegionsResult#regions #regions} => Array&lt;Types::Region&gt;
1779
+ #
1780
+ # @example Request syntax with placeholder values
1781
+ #
1782
+ # resp = client.get_regions({
1783
+ # include_availability_zones: false,
1784
+ # })
1785
+ #
1786
+ # @example Response structure
1787
+ #
1788
+ # resp.regions #=> Array
1789
+ # resp.regions[0].continent_code #=> String
1790
+ # resp.regions[0].description #=> String
1791
+ # resp.regions[0].display_name #=> String
1792
+ # resp.regions[0].name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1793
+ # resp.regions[0].availability_zones #=> Array
1794
+ # resp.regions[0].availability_zones[0].zone_name #=> String
1795
+ # resp.regions[0].availability_zones[0].state #=> String
1796
+ #
1797
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRegions AWS API Documentation
1798
+ #
1799
+ # @overload get_regions(params = {})
1800
+ # @param [Hash] params ({})
1801
+ def get_regions(params = {}, options = {})
1802
+ req = build_request(:get_regions, params)
1803
+ req.send_request(options)
1804
+ end
1553
1805
 
1554
- # Returns information about all static IPs in the user's account.
1555
- # @option params [String] :page_token
1556
- # A token used for advancing to the next page of results from your get
1557
- # static IPs request.
1558
- # @return [Types::GetStaticIpsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1559
- #
1560
- # * {Types::GetStaticIpsResult#static_ips #staticIps} => Array&lt;Types::StaticIp&gt;
1561
- # * {Types::GetStaticIpsResult#next_page_token #nextPageToken} => String
1562
- #
1563
- # @example Request syntax with placeholder values
1564
- # resp = client.get_static_ips({
1565
- # page_token: "string",
1566
- # })
1567
- #
1568
- # @example Response structure
1569
- # resp.static_ips #=> Array
1570
- # resp.static_ips[0].name #=> String
1571
- # resp.static_ips[0].arn #=> String
1572
- # resp.static_ips[0].support_code #=> String
1573
- # resp.static_ips[0].created_at #=> Time
1574
- # resp.static_ips[0].location.availability_zone #=> String
1575
- # resp.static_ips[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1576
- # resp.static_ips[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1577
- # resp.static_ips[0].ip_address #=> String
1578
- # resp.static_ips[0].attached_to #=> String
1579
- # resp.static_ips[0].is_attached #=> Boolean
1580
- # resp.next_page_token #=> String
1581
- # @overload get_static_ips(params = {})
1582
- # @param [Hash] params ({})
1583
- def get_static_ips(params = {}, options = {})
1584
- req = build_request(:get_static_ips, params)
1585
- req.send_request(options)
1586
- end
1806
+ # Returns information about a specific static IP.
1807
+ #
1808
+ # @option params [required, String] :static_ip_name
1809
+ # The name of the static IP in Lightsail.
1810
+ #
1811
+ # @return [Types::GetStaticIpResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1812
+ #
1813
+ # * {Types::GetStaticIpResult#static_ip #static_ip} => Types::StaticIp
1814
+ #
1815
+ # @example Request syntax with placeholder values
1816
+ #
1817
+ # resp = client.get_static_ip({
1818
+ # static_ip_name: "ResourceName", # required
1819
+ # })
1820
+ #
1821
+ # @example Response structure
1822
+ #
1823
+ # resp.static_ip.name #=> String
1824
+ # resp.static_ip.arn #=> String
1825
+ # resp.static_ip.support_code #=> String
1826
+ # resp.static_ip.created_at #=> Time
1827
+ # resp.static_ip.location.availability_zone #=> String
1828
+ # resp.static_ip.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1829
+ # resp.static_ip.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1830
+ # resp.static_ip.ip_address #=> String
1831
+ # resp.static_ip.attached_to #=> String
1832
+ # resp.static_ip.is_attached #=> Boolean
1833
+ #
1834
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetStaticIp AWS API Documentation
1835
+ #
1836
+ # @overload get_static_ip(params = {})
1837
+ # @param [Hash] params ({})
1838
+ def get_static_ip(params = {}, options = {})
1839
+ req = build_request(:get_static_ip, params)
1840
+ req.send_request(options)
1841
+ end
1587
1842
 
1588
- # Imports a public SSH key from a specific key pair.
1589
- # @option params [required, String] :key_pair_name
1590
- # The name of the key pair for which you want to import the public key.
1591
- # @option params [required, String] :public_key_base_64
1592
- # A base64-encoded public key of the `ssh-rsa` type.
1593
- # @return [Types::ImportKeyPairResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1594
- #
1595
- # * {Types::ImportKeyPairResult#operation #operation} => Types::Operation
1596
- #
1597
- # @example Request syntax with placeholder values
1598
- # resp = client.import_key_pair({
1599
- # key_pair_name: "ResourceName", # required
1600
- # public_key_base_64: "Base64", # required
1601
- # })
1602
- #
1603
- # @example Response structure
1604
- # resp.operation.id #=> String
1605
- # resp.operation.resource_name #=> String
1606
- # resp.operation.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1607
- # resp.operation.created_at #=> Time
1608
- # resp.operation.location.availability_zone #=> String
1609
- # resp.operation.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1610
- # resp.operation.is_terminal #=> Boolean
1611
- # resp.operation.operation_details #=> String
1612
- # resp.operation.operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
1613
- # resp.operation.status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
1614
- # resp.operation.status_changed_at #=> Time
1615
- # resp.operation.error_code #=> String
1616
- # resp.operation.error_details #=> String
1617
- # @overload import_key_pair(params = {})
1618
- # @param [Hash] params ({})
1619
- def import_key_pair(params = {}, options = {})
1620
- req = build_request(:import_key_pair, params)
1621
- req.send_request(options)
1622
- end
1843
+ # Returns information about all static IPs in the user's account.
1844
+ #
1845
+ # @option params [String] :page_token
1846
+ # A token used for advancing to the next page of results from your get
1847
+ # static IPs request.
1848
+ #
1849
+ # @return [Types::GetStaticIpsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1850
+ #
1851
+ # * {Types::GetStaticIpsResult#static_ips #static_ips} => Array&lt;Types::StaticIp&gt;
1852
+ # * {Types::GetStaticIpsResult#next_page_token #next_page_token} => String
1853
+ #
1854
+ # @example Request syntax with placeholder values
1855
+ #
1856
+ # resp = client.get_static_ips({
1857
+ # page_token: "string",
1858
+ # })
1859
+ #
1860
+ # @example Response structure
1861
+ #
1862
+ # resp.static_ips #=> Array
1863
+ # resp.static_ips[0].name #=> String
1864
+ # resp.static_ips[0].arn #=> String
1865
+ # resp.static_ips[0].support_code #=> String
1866
+ # resp.static_ips[0].created_at #=> Time
1867
+ # resp.static_ips[0].location.availability_zone #=> String
1868
+ # resp.static_ips[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1869
+ # resp.static_ips[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1870
+ # resp.static_ips[0].ip_address #=> String
1871
+ # resp.static_ips[0].attached_to #=> String
1872
+ # resp.static_ips[0].is_attached #=> Boolean
1873
+ # resp.next_page_token #=> String
1874
+ #
1875
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetStaticIps AWS API Documentation
1876
+ #
1877
+ # @overload get_static_ips(params = {})
1878
+ # @param [Hash] params ({})
1879
+ def get_static_ips(params = {}, options = {})
1880
+ req = build_request(:get_static_ips, params)
1881
+ req.send_request(options)
1882
+ end
1623
1883
 
1624
- # Returns a Boolean value indicating whether your Lightsail VPC is
1625
- # peered.
1626
- # @return [Types::IsVpcPeeredResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1627
- #
1628
- # * {Types::IsVpcPeeredResult#is_peered #isPeered} => Boolean
1629
- #
1630
- # @example Request syntax with placeholder values
1631
- # resp = client.is_vpc_peered()
1632
- #
1633
- # @example Response structure
1634
- # resp.is_peered #=> Boolean
1635
- # @overload is_vpc_peered(params = {})
1636
- # @param [Hash] params ({})
1637
- def is_vpc_peered(params = {}, options = {})
1638
- req = build_request(:is_vpc_peered, params)
1639
- req.send_request(options)
1640
- end
1884
+ # Imports a public SSH key from a specific key pair.
1885
+ #
1886
+ # @option params [required, String] :key_pair_name
1887
+ # The name of the key pair for which you want to import the public key.
1888
+ #
1889
+ # @option params [required, String] :public_key_base_64
1890
+ # A base64-encoded public key of the `ssh-rsa` type.
1891
+ #
1892
+ # @return [Types::ImportKeyPairResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1893
+ #
1894
+ # * {Types::ImportKeyPairResult#operation #operation} => Types::Operation
1895
+ #
1896
+ # @example Request syntax with placeholder values
1897
+ #
1898
+ # resp = client.import_key_pair({
1899
+ # key_pair_name: "ResourceName", # required
1900
+ # public_key_base_64: "Base64", # required
1901
+ # })
1902
+ #
1903
+ # @example Response structure
1904
+ #
1905
+ # resp.operation.id #=> String
1906
+ # resp.operation.resource_name #=> String
1907
+ # resp.operation.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1908
+ # resp.operation.created_at #=> Time
1909
+ # resp.operation.location.availability_zone #=> String
1910
+ # resp.operation.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1911
+ # resp.operation.is_terminal #=> Boolean
1912
+ # resp.operation.operation_details #=> String
1913
+ # resp.operation.operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
1914
+ # resp.operation.status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
1915
+ # resp.operation.status_changed_at #=> Time
1916
+ # resp.operation.error_code #=> String
1917
+ # resp.operation.error_details #=> String
1918
+ #
1919
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/ImportKeyPair AWS API Documentation
1920
+ #
1921
+ # @overload import_key_pair(params = {})
1922
+ # @param [Hash] params ({})
1923
+ def import_key_pair(params = {}, options = {})
1924
+ req = build_request(:import_key_pair, params)
1925
+ req.send_request(options)
1926
+ end
1641
1927
 
1642
- # Adds public ports to an Amazon Lightsail instance.
1643
- # @option params [required, Types::PortInfo] :port_info
1644
- # An array of key-value pairs containing information about the port
1645
- # mappings.
1646
- # @option params [required, String] :instance_name
1647
- # The name of the instance for which you want to open the public ports.
1648
- # @return [Types::OpenInstancePublicPortsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1649
- #
1650
- # * {Types::OpenInstancePublicPortsResult#operation #operation} => Types::Operation
1651
- #
1652
- # @example Request syntax with placeholder values
1653
- # resp = client.open_instance_public_ports({
1654
- # port_info: { # required
1655
- # from_port: 1,
1656
- # to_port: 1,
1657
- # protocol: "tcp", # accepts tcp, all, udp
1658
- # },
1659
- # instance_name: "ResourceName", # required
1660
- # })
1661
- #
1662
- # @example Response structure
1663
- # resp.operation.id #=> String
1664
- # resp.operation.resource_name #=> String
1665
- # resp.operation.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1666
- # resp.operation.created_at #=> Time
1667
- # resp.operation.location.availability_zone #=> String
1668
- # resp.operation.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1669
- # resp.operation.is_terminal #=> Boolean
1670
- # resp.operation.operation_details #=> String
1671
- # resp.operation.operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
1672
- # resp.operation.status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
1673
- # resp.operation.status_changed_at #=> Time
1674
- # resp.operation.error_code #=> String
1675
- # resp.operation.error_details #=> String
1676
- # @overload open_instance_public_ports(params = {})
1677
- # @param [Hash] params ({})
1678
- def open_instance_public_ports(params = {}, options = {})
1679
- req = build_request(:open_instance_public_ports, params)
1680
- req.send_request(options)
1681
- end
1928
+ # Returns a Boolean value indicating whether your Lightsail VPC is
1929
+ # peered.
1930
+ #
1931
+ # @return [Types::IsVpcPeeredResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1932
+ #
1933
+ # * {Types::IsVpcPeeredResult#is_peered #is_peered} => Boolean
1934
+ #
1935
+ # @example Response structure
1936
+ #
1937
+ # resp.is_peered #=> Boolean
1938
+ #
1939
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/IsVpcPeered AWS API Documentation
1940
+ #
1941
+ # @overload is_vpc_peered(params = {})
1942
+ # @param [Hash] params ({})
1943
+ def is_vpc_peered(params = {}, options = {})
1944
+ req = build_request(:is_vpc_peered, params)
1945
+ req.send_request(options)
1946
+ end
1682
1947
 
1683
- # Tries to peer the Lightsail VPC with the user's default VPC.
1684
- # @return [Types::PeerVpcResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1685
- #
1686
- # * {Types::PeerVpcResult#operation #operation} => Types::Operation
1687
- #
1688
- # @example Request syntax with placeholder values
1689
- # resp = client.peer_vpc()
1690
- #
1691
- # @example Response structure
1692
- # resp.operation.id #=> String
1693
- # resp.operation.resource_name #=> String
1694
- # resp.operation.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1695
- # resp.operation.created_at #=> Time
1696
- # resp.operation.location.availability_zone #=> String
1697
- # resp.operation.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1698
- # resp.operation.is_terminal #=> Boolean
1699
- # resp.operation.operation_details #=> String
1700
- # resp.operation.operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
1701
- # resp.operation.status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
1702
- # resp.operation.status_changed_at #=> Time
1703
- # resp.operation.error_code #=> String
1704
- # resp.operation.error_details #=> String
1705
- # @overload peer_vpc(params = {})
1706
- # @param [Hash] params ({})
1707
- def peer_vpc(params = {}, options = {})
1708
- req = build_request(:peer_vpc, params)
1709
- req.send_request(options)
1710
- end
1948
+ # Adds public ports to an Amazon Lightsail instance.
1949
+ #
1950
+ # @option params [required, Types::PortInfo] :port_info
1951
+ # An array of key-value pairs containing information about the port
1952
+ # mappings.
1953
+ #
1954
+ # @option params [required, String] :instance_name
1955
+ # The name of the instance for which you want to open the public ports.
1956
+ #
1957
+ # @return [Types::OpenInstancePublicPortsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1958
+ #
1959
+ # * {Types::OpenInstancePublicPortsResult#operation #operation} => Types::Operation
1960
+ #
1961
+ # @example Request syntax with placeholder values
1962
+ #
1963
+ # resp = client.open_instance_public_ports({
1964
+ # port_info: { # required
1965
+ # from_port: 1,
1966
+ # to_port: 1,
1967
+ # protocol: "tcp", # accepts tcp, all, udp
1968
+ # },
1969
+ # instance_name: "ResourceName", # required
1970
+ # })
1971
+ #
1972
+ # @example Response structure
1973
+ #
1974
+ # resp.operation.id #=> String
1975
+ # resp.operation.resource_name #=> String
1976
+ # resp.operation.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1977
+ # resp.operation.created_at #=> Time
1978
+ # resp.operation.location.availability_zone #=> String
1979
+ # resp.operation.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1980
+ # resp.operation.is_terminal #=> Boolean
1981
+ # resp.operation.operation_details #=> String
1982
+ # resp.operation.operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
1983
+ # resp.operation.status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
1984
+ # resp.operation.status_changed_at #=> Time
1985
+ # resp.operation.error_code #=> String
1986
+ # resp.operation.error_details #=> String
1987
+ #
1988
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/OpenInstancePublicPorts AWS API Documentation
1989
+ #
1990
+ # @overload open_instance_public_ports(params = {})
1991
+ # @param [Hash] params ({})
1992
+ def open_instance_public_ports(params = {}, options = {})
1993
+ req = build_request(:open_instance_public_ports, params)
1994
+ req.send_request(options)
1995
+ end
1711
1996
 
1712
- # Restarts a specific instance. When your Amazon Lightsail instance is
1713
- # finished rebooting, Lightsail assigns a new public IP address. To use
1714
- # the same IP address after restarting, create a static IP address and
1715
- # attach it to the instance.
1716
- # @option params [required, String] :instance_name
1717
- # The name of the instance to reboot.
1718
- # @return [Types::RebootInstanceResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1719
- #
1720
- # * {Types::RebootInstanceResult#operations #operations} => Array&lt;Types::Operation&gt;
1721
- #
1722
- # @example Request syntax with placeholder values
1723
- # resp = client.reboot_instance({
1724
- # instance_name: "ResourceName", # required
1725
- # })
1726
- #
1727
- # @example Response structure
1728
- # resp.operations #=> Array
1729
- # resp.operations[0].id #=> String
1730
- # resp.operations[0].resource_name #=> String
1731
- # resp.operations[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1732
- # resp.operations[0].created_at #=> Time
1733
- # resp.operations[0].location.availability_zone #=> String
1734
- # resp.operations[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1735
- # resp.operations[0].is_terminal #=> Boolean
1736
- # resp.operations[0].operation_details #=> String
1737
- # resp.operations[0].operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
1738
- # resp.operations[0].status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
1739
- # resp.operations[0].status_changed_at #=> Time
1740
- # resp.operations[0].error_code #=> String
1741
- # resp.operations[0].error_details #=> String
1742
- # @overload reboot_instance(params = {})
1743
- # @param [Hash] params ({})
1744
- def reboot_instance(params = {}, options = {})
1745
- req = build_request(:reboot_instance, params)
1746
- req.send_request(options)
1747
- end
1997
+ # Tries to peer the Lightsail VPC with the user's default VPC.
1998
+ #
1999
+ # @return [Types::PeerVpcResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2000
+ #
2001
+ # * {Types::PeerVpcResult#operation #operation} => Types::Operation
2002
+ #
2003
+ # @example Response structure
2004
+ #
2005
+ # resp.operation.id #=> String
2006
+ # resp.operation.resource_name #=> String
2007
+ # resp.operation.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
2008
+ # resp.operation.created_at #=> Time
2009
+ # resp.operation.location.availability_zone #=> String
2010
+ # resp.operation.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
2011
+ # resp.operation.is_terminal #=> Boolean
2012
+ # resp.operation.operation_details #=> String
2013
+ # resp.operation.operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
2014
+ # resp.operation.status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
2015
+ # resp.operation.status_changed_at #=> Time
2016
+ # resp.operation.error_code #=> String
2017
+ # resp.operation.error_details #=> String
2018
+ #
2019
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/PeerVpc AWS API Documentation
2020
+ #
2021
+ # @overload peer_vpc(params = {})
2022
+ # @param [Hash] params ({})
2023
+ def peer_vpc(params = {}, options = {})
2024
+ req = build_request(:peer_vpc, params)
2025
+ req.send_request(options)
2026
+ end
1748
2027
 
1749
- # Deletes a specific static IP from your account.
1750
- # @option params [required, String] :static_ip_name
1751
- # The name of the static IP to delete.
1752
- # @return [Types::ReleaseStaticIpResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1753
- #
1754
- # * {Types::ReleaseStaticIpResult#operations #operations} => Array&lt;Types::Operation&gt;
1755
- #
1756
- # @example Request syntax with placeholder values
1757
- # resp = client.release_static_ip({
1758
- # static_ip_name: "ResourceName", # required
1759
- # })
1760
- #
1761
- # @example Response structure
1762
- # resp.operations #=> Array
1763
- # resp.operations[0].id #=> String
1764
- # resp.operations[0].resource_name #=> String
1765
- # resp.operations[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1766
- # resp.operations[0].created_at #=> Time
1767
- # resp.operations[0].location.availability_zone #=> String
1768
- # resp.operations[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1769
- # resp.operations[0].is_terminal #=> Boolean
1770
- # resp.operations[0].operation_details #=> String
1771
- # resp.operations[0].operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
1772
- # resp.operations[0].status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
1773
- # resp.operations[0].status_changed_at #=> Time
1774
- # resp.operations[0].error_code #=> String
1775
- # resp.operations[0].error_details #=> String
1776
- # @overload release_static_ip(params = {})
1777
- # @param [Hash] params ({})
1778
- def release_static_ip(params = {}, options = {})
1779
- req = build_request(:release_static_ip, params)
1780
- req.send_request(options)
1781
- end
2028
+ # Restarts a specific instance. When your Amazon Lightsail instance is
2029
+ # finished rebooting, Lightsail assigns a new public IP address. To use
2030
+ # the same IP address after restarting, create a static IP address and
2031
+ # attach it to the instance.
2032
+ #
2033
+ # @option params [required, String] :instance_name
2034
+ # The name of the instance to reboot.
2035
+ #
2036
+ # @return [Types::RebootInstanceResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2037
+ #
2038
+ # * {Types::RebootInstanceResult#operations #operations} => Array&lt;Types::Operation&gt;
2039
+ #
2040
+ # @example Request syntax with placeholder values
2041
+ #
2042
+ # resp = client.reboot_instance({
2043
+ # instance_name: "ResourceName", # required
2044
+ # })
2045
+ #
2046
+ # @example Response structure
2047
+ #
2048
+ # resp.operations #=> Array
2049
+ # resp.operations[0].id #=> String
2050
+ # resp.operations[0].resource_name #=> String
2051
+ # resp.operations[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
2052
+ # resp.operations[0].created_at #=> Time
2053
+ # resp.operations[0].location.availability_zone #=> String
2054
+ # resp.operations[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
2055
+ # resp.operations[0].is_terminal #=> Boolean
2056
+ # resp.operations[0].operation_details #=> String
2057
+ # resp.operations[0].operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
2058
+ # resp.operations[0].status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
2059
+ # resp.operations[0].status_changed_at #=> Time
2060
+ # resp.operations[0].error_code #=> String
2061
+ # resp.operations[0].error_details #=> String
2062
+ #
2063
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/RebootInstance AWS API Documentation
2064
+ #
2065
+ # @overload reboot_instance(params = {})
2066
+ # @param [Hash] params ({})
2067
+ def reboot_instance(params = {}, options = {})
2068
+ req = build_request(:reboot_instance, params)
2069
+ req.send_request(options)
2070
+ end
1782
2071
 
1783
- # Starts a specific Amazon Lightsail instance from a stopped state. To
1784
- # restart an instance, use the reboot instance operation.
1785
- # @option params [required, String] :instance_name
1786
- # The name of the instance (a virtual private server) to start.
1787
- # @return [Types::StartInstanceResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1788
- #
1789
- # * {Types::StartInstanceResult#operations #operations} => Array&lt;Types::Operation&gt;
1790
- #
1791
- # @example Request syntax with placeholder values
1792
- # resp = client.start_instance({
1793
- # instance_name: "ResourceName", # required
1794
- # })
1795
- #
1796
- # @example Response structure
1797
- # resp.operations #=> Array
1798
- # resp.operations[0].id #=> String
1799
- # resp.operations[0].resource_name #=> String
1800
- # resp.operations[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1801
- # resp.operations[0].created_at #=> Time
1802
- # resp.operations[0].location.availability_zone #=> String
1803
- # resp.operations[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1804
- # resp.operations[0].is_terminal #=> Boolean
1805
- # resp.operations[0].operation_details #=> String
1806
- # resp.operations[0].operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
1807
- # resp.operations[0].status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
1808
- # resp.operations[0].status_changed_at #=> Time
1809
- # resp.operations[0].error_code #=> String
1810
- # resp.operations[0].error_details #=> String
1811
- # @overload start_instance(params = {})
1812
- # @param [Hash] params ({})
1813
- def start_instance(params = {}, options = {})
1814
- req = build_request(:start_instance, params)
1815
- req.send_request(options)
1816
- end
2072
+ # Deletes a specific static IP from your account.
2073
+ #
2074
+ # @option params [required, String] :static_ip_name
2075
+ # The name of the static IP to delete.
2076
+ #
2077
+ # @return [Types::ReleaseStaticIpResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2078
+ #
2079
+ # * {Types::ReleaseStaticIpResult#operations #operations} => Array&lt;Types::Operation&gt;
2080
+ #
2081
+ # @example Request syntax with placeholder values
2082
+ #
2083
+ # resp = client.release_static_ip({
2084
+ # static_ip_name: "ResourceName", # required
2085
+ # })
2086
+ #
2087
+ # @example Response structure
2088
+ #
2089
+ # resp.operations #=> Array
2090
+ # resp.operations[0].id #=> String
2091
+ # resp.operations[0].resource_name #=> String
2092
+ # resp.operations[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
2093
+ # resp.operations[0].created_at #=> Time
2094
+ # resp.operations[0].location.availability_zone #=> String
2095
+ # resp.operations[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
2096
+ # resp.operations[0].is_terminal #=> Boolean
2097
+ # resp.operations[0].operation_details #=> String
2098
+ # resp.operations[0].operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
2099
+ # resp.operations[0].status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
2100
+ # resp.operations[0].status_changed_at #=> Time
2101
+ # resp.operations[0].error_code #=> String
2102
+ # resp.operations[0].error_details #=> String
2103
+ #
2104
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/ReleaseStaticIp AWS API Documentation
2105
+ #
2106
+ # @overload release_static_ip(params = {})
2107
+ # @param [Hash] params ({})
2108
+ def release_static_ip(params = {}, options = {})
2109
+ req = build_request(:release_static_ip, params)
2110
+ req.send_request(options)
2111
+ end
1817
2112
 
1818
- # Stops a specific Amazon Lightsail instance that is currently running.
1819
- # @option params [required, String] :instance_name
1820
- # The name of the instance (a virtual private server) to stop.
1821
- # @return [Types::StopInstanceResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1822
- #
1823
- # * {Types::StopInstanceResult#operations #operations} => Array&lt;Types::Operation&gt;
1824
- #
1825
- # @example Request syntax with placeholder values
1826
- # resp = client.stop_instance({
1827
- # instance_name: "ResourceName", # required
1828
- # })
1829
- #
1830
- # @example Response structure
1831
- # resp.operations #=> Array
1832
- # resp.operations[0].id #=> String
1833
- # resp.operations[0].resource_name #=> String
1834
- # resp.operations[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1835
- # resp.operations[0].created_at #=> Time
1836
- # resp.operations[0].location.availability_zone #=> String
1837
- # resp.operations[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1838
- # resp.operations[0].is_terminal #=> Boolean
1839
- # resp.operations[0].operation_details #=> String
1840
- # resp.operations[0].operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
1841
- # resp.operations[0].status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
1842
- # resp.operations[0].status_changed_at #=> Time
1843
- # resp.operations[0].error_code #=> String
1844
- # resp.operations[0].error_details #=> String
1845
- # @overload stop_instance(params = {})
1846
- # @param [Hash] params ({})
1847
- def stop_instance(params = {}, options = {})
1848
- req = build_request(:stop_instance, params)
1849
- req.send_request(options)
1850
- end
2113
+ # Starts a specific Amazon Lightsail instance from a stopped state. To
2114
+ # restart an instance, use the reboot instance operation.
2115
+ #
2116
+ # @option params [required, String] :instance_name
2117
+ # The name of the instance (a virtual private server) to start.
2118
+ #
2119
+ # @return [Types::StartInstanceResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2120
+ #
2121
+ # * {Types::StartInstanceResult#operations #operations} => Array&lt;Types::Operation&gt;
2122
+ #
2123
+ # @example Request syntax with placeholder values
2124
+ #
2125
+ # resp = client.start_instance({
2126
+ # instance_name: "ResourceName", # required
2127
+ # })
2128
+ #
2129
+ # @example Response structure
2130
+ #
2131
+ # resp.operations #=> Array
2132
+ # resp.operations[0].id #=> String
2133
+ # resp.operations[0].resource_name #=> String
2134
+ # resp.operations[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
2135
+ # resp.operations[0].created_at #=> Time
2136
+ # resp.operations[0].location.availability_zone #=> String
2137
+ # resp.operations[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
2138
+ # resp.operations[0].is_terminal #=> Boolean
2139
+ # resp.operations[0].operation_details #=> String
2140
+ # resp.operations[0].operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
2141
+ # resp.operations[0].status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
2142
+ # resp.operations[0].status_changed_at #=> Time
2143
+ # resp.operations[0].error_code #=> String
2144
+ # resp.operations[0].error_details #=> String
2145
+ #
2146
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/StartInstance AWS API Documentation
2147
+ #
2148
+ # @overload start_instance(params = {})
2149
+ # @param [Hash] params ({})
2150
+ def start_instance(params = {}, options = {})
2151
+ req = build_request(:start_instance, params)
2152
+ req.send_request(options)
2153
+ end
1851
2154
 
1852
- # Attempts to unpeer the Lightsail VPC from the user's default VPC.
1853
- # @return [Types::UnpeerVpcResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1854
- #
1855
- # * {Types::UnpeerVpcResult#operation #operation} => Types::Operation
1856
- #
1857
- # @example Request syntax with placeholder values
1858
- # resp = client.unpeer_vpc()
1859
- #
1860
- # @example Response structure
1861
- # resp.operation.id #=> String
1862
- # resp.operation.resource_name #=> String
1863
- # resp.operation.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1864
- # resp.operation.created_at #=> Time
1865
- # resp.operation.location.availability_zone #=> String
1866
- # resp.operation.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1867
- # resp.operation.is_terminal #=> Boolean
1868
- # resp.operation.operation_details #=> String
1869
- # resp.operation.operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
1870
- # resp.operation.status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
1871
- # resp.operation.status_changed_at #=> Time
1872
- # resp.operation.error_code #=> String
1873
- # resp.operation.error_details #=> String
1874
- # @overload unpeer_vpc(params = {})
1875
- # @param [Hash] params ({})
1876
- def unpeer_vpc(params = {}, options = {})
1877
- req = build_request(:unpeer_vpc, params)
1878
- req.send_request(options)
1879
- end
2155
+ # Stops a specific Amazon Lightsail instance that is currently running.
2156
+ #
2157
+ # @option params [required, String] :instance_name
2158
+ # The name of the instance (a virtual private server) to stop.
2159
+ #
2160
+ # @return [Types::StopInstanceResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2161
+ #
2162
+ # * {Types::StopInstanceResult#operations #operations} => Array&lt;Types::Operation&gt;
2163
+ #
2164
+ # @example Request syntax with placeholder values
2165
+ #
2166
+ # resp = client.stop_instance({
2167
+ # instance_name: "ResourceName", # required
2168
+ # })
2169
+ #
2170
+ # @example Response structure
2171
+ #
2172
+ # resp.operations #=> Array
2173
+ # resp.operations[0].id #=> String
2174
+ # resp.operations[0].resource_name #=> String
2175
+ # resp.operations[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
2176
+ # resp.operations[0].created_at #=> Time
2177
+ # resp.operations[0].location.availability_zone #=> String
2178
+ # resp.operations[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
2179
+ # resp.operations[0].is_terminal #=> Boolean
2180
+ # resp.operations[0].operation_details #=> String
2181
+ # resp.operations[0].operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
2182
+ # resp.operations[0].status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
2183
+ # resp.operations[0].status_changed_at #=> Time
2184
+ # resp.operations[0].error_code #=> String
2185
+ # resp.operations[0].error_details #=> String
2186
+ #
2187
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/StopInstance AWS API Documentation
2188
+ #
2189
+ # @overload stop_instance(params = {})
2190
+ # @param [Hash] params ({})
2191
+ def stop_instance(params = {}, options = {})
2192
+ req = build_request(:stop_instance, params)
2193
+ req.send_request(options)
2194
+ end
1880
2195
 
1881
- # Updates a domain recordset after it is created.
1882
- # @option params [required, String] :domain_name
1883
- # The name of the domain recordset to update.
1884
- # @option params [required, Types::DomainEntry] :domain_entry
1885
- # An array of key-value pairs containing information about the domain
1886
- # entry.
1887
- # @return [Types::UpdateDomainEntryResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1888
- #
1889
- # * {Types::UpdateDomainEntryResult#operations #operations} => Array&lt;Types::Operation&gt;
1890
- #
1891
- # @example Request syntax with placeholder values
1892
- # resp = client.update_domain_entry({
1893
- # domain_name: "DomainName", # required
1894
- # domain_entry: { # required
1895
- # id: "NonEmptyString",
1896
- # name: "DomainName",
1897
- # target: "string",
1898
- # type: "DomainEntryType",
1899
- # options: {
1900
- # "DomainEntryOptionsKeys" => "string",
1901
- # },
1902
- # },
1903
- # })
1904
- #
1905
- # @example Response structure
1906
- # resp.operations #=> Array
1907
- # resp.operations[0].id #=> String
1908
- # resp.operations[0].resource_name #=> String
1909
- # resp.operations[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
1910
- # resp.operations[0].created_at #=> Time
1911
- # resp.operations[0].location.availability_zone #=> String
1912
- # resp.operations[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
1913
- # resp.operations[0].is_terminal #=> Boolean
1914
- # resp.operations[0].operation_details #=> String
1915
- # resp.operations[0].operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
1916
- # resp.operations[0].status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
1917
- # resp.operations[0].status_changed_at #=> Time
1918
- # resp.operations[0].error_code #=> String
1919
- # resp.operations[0].error_details #=> String
1920
- # @overload update_domain_entry(params = {})
1921
- # @param [Hash] params ({})
1922
- def update_domain_entry(params = {}, options = {})
1923
- req = build_request(:update_domain_entry, params)
1924
- req.send_request(options)
1925
- end
2196
+ # Attempts to unpeer the Lightsail VPC from the user's default VPC.
2197
+ #
2198
+ # @return [Types::UnpeerVpcResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2199
+ #
2200
+ # * {Types::UnpeerVpcResult#operation #operation} => Types::Operation
2201
+ #
2202
+ # @example Response structure
2203
+ #
2204
+ # resp.operation.id #=> String
2205
+ # resp.operation.resource_name #=> String
2206
+ # resp.operation.resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
2207
+ # resp.operation.created_at #=> Time
2208
+ # resp.operation.location.availability_zone #=> String
2209
+ # resp.operation.location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
2210
+ # resp.operation.is_terminal #=> Boolean
2211
+ # resp.operation.operation_details #=> String
2212
+ # resp.operation.operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
2213
+ # resp.operation.status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
2214
+ # resp.operation.status_changed_at #=> Time
2215
+ # resp.operation.error_code #=> String
2216
+ # resp.operation.error_details #=> String
2217
+ #
2218
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UnpeerVpc AWS API Documentation
2219
+ #
2220
+ # @overload unpeer_vpc(params = {})
2221
+ # @param [Hash] params ({})
2222
+ def unpeer_vpc(params = {}, options = {})
2223
+ req = build_request(:unpeer_vpc, params)
2224
+ req.send_request(options)
2225
+ end
1926
2226
 
1927
- # @!endgroup
2227
+ # Updates a domain recordset after it is created.
2228
+ #
2229
+ # @option params [required, String] :domain_name
2230
+ # The name of the domain recordset to update.
2231
+ #
2232
+ # @option params [required, Types::DomainEntry] :domain_entry
2233
+ # An array of key-value pairs containing information about the domain
2234
+ # entry.
2235
+ #
2236
+ # @return [Types::UpdateDomainEntryResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2237
+ #
2238
+ # * {Types::UpdateDomainEntryResult#operations #operations} => Array&lt;Types::Operation&gt;
2239
+ #
2240
+ # @example Request syntax with placeholder values
2241
+ #
2242
+ # resp = client.update_domain_entry({
2243
+ # domain_name: "DomainName", # required
2244
+ # domain_entry: { # required
2245
+ # id: "NonEmptyString",
2246
+ # name: "DomainName",
2247
+ # target: "string",
2248
+ # type: "DomainEntryType",
2249
+ # options: {
2250
+ # "DomainEntryOptionsKeys" => "string",
2251
+ # },
2252
+ # },
2253
+ # })
2254
+ #
2255
+ # @example Response structure
2256
+ #
2257
+ # resp.operations #=> Array
2258
+ # resp.operations[0].id #=> String
2259
+ # resp.operations[0].resource_name #=> String
2260
+ # resp.operations[0].resource_type #=> String, one of "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc"
2261
+ # resp.operations[0].created_at #=> Time
2262
+ # resp.operations[0].location.availability_zone #=> String
2263
+ # resp.operations[0].location.region_name #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2"
2264
+ # resp.operations[0].is_terminal #=> Boolean
2265
+ # resp.operations[0].operation_details #=> String
2266
+ # resp.operations[0].operation_type #=> String, one of "DeleteInstance", "CreateInstance", "StopInstance", "StartInstance", "RebootInstance", "OpenInstancePublicPorts", "CloseInstancePublicPorts", "AllocateStaticIp", "ReleaseStaticIp", "AttachStaticIp", "DetachStaticIp", "UpdateDomainEntry", "DeleteDomainEntry", "CreateDomain", "DeleteDomain", "CreateInstanceSnapshot", "DeleteInstanceSnapshot", "CreateInstancesFromSnapshot"
2267
+ # resp.operations[0].status #=> String, one of "NotStarted", "Started", "Failed", "Completed"
2268
+ # resp.operations[0].status_changed_at #=> Time
2269
+ # resp.operations[0].error_code #=> String
2270
+ # resp.operations[0].error_details #=> String
2271
+ #
2272
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UpdateDomainEntry AWS API Documentation
2273
+ #
2274
+ # @overload update_domain_entry(params = {})
2275
+ # @param [Hash] params ({})
2276
+ def update_domain_entry(params = {}, options = {})
2277
+ req = build_request(:update_domain_entry, params)
2278
+ req.send_request(options)
2279
+ end
1928
2280
 
1929
- # @param params ({})
1930
- # @api private
1931
- def build_request(operation_name, params = {})
1932
- handlers = @handlers.for(operation_name)
1933
- context = Seahorse::Client::RequestContext.new(
1934
- operation_name: operation_name,
1935
- operation: config.api.operation(operation_name),
1936
- client: self,
1937
- params: params,
1938
- config: config)
1939
- context[:gem_name] = 'aws-sdk-lightsail'
1940
- context[:gem_version] = '1.0.0.rc2'
1941
- Seahorse::Client::Request.new(handlers, context)
1942
- end
2281
+ # @!endgroup
1943
2282
 
1944
- # @api private
1945
- # @deprecated
1946
- def waiter_names
1947
- []
1948
- end
2283
+ # @param params ({})
2284
+ # @api private
2285
+ def build_request(operation_name, params = {})
2286
+ handlers = @handlers.for(operation_name)
2287
+ context = Seahorse::Client::RequestContext.new(
2288
+ operation_name: operation_name,
2289
+ operation: config.api.operation(operation_name),
2290
+ client: self,
2291
+ params: params,
2292
+ config: config)
2293
+ context[:gem_name] = 'aws-sdk-lightsail'
2294
+ context[:gem_version] = '1.0.0.rc3'
2295
+ Seahorse::Client::Request.new(handlers, context)
2296
+ end
1949
2297
 
1950
- class << self
2298
+ # @api private
2299
+ # @deprecated
2300
+ def waiter_names
2301
+ []
2302
+ end
1951
2303
 
1952
- # @api private
1953
- attr_reader :identifier
2304
+ class << self
1954
2305
 
1955
- # @api private
1956
- def errors_module
1957
- Errors
1958
- end
2306
+ # @api private
2307
+ attr_reader :identifier
1959
2308
 
2309
+ # @api private
2310
+ def errors_module
2311
+ Errors
1960
2312
  end
2313
+
1961
2314
  end
1962
2315
  end
1963
2316
  end