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 +4 -4
- data/lib/aws-sdk-lightsail.rb +2 -2
- data/lib/aws-sdk-lightsail/client.rb +2229 -1876
- data/lib/aws-sdk-lightsail/client_api.rb +1407 -1409
- data/lib/aws-sdk-lightsail/errors.rb +4 -13
- data/lib/aws-sdk-lightsail/resource.rb +12 -14
- data/lib/aws-sdk-lightsail/types.rb +2706 -2297
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd9e7fa54e79209f32dc2eca42e1ba268902b642
|
4
|
+
data.tar.gz: ab361267c4387a192c93fcf408837e648dc3700d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 164091e018ac8e32901db8e813459fb7e42ccbc82f81d5c836a8f6a4435cf944b13859efd34d56b4ed84b0366cac0978a3123bb128172494aff7185d917ec50b
|
7
|
+
data.tar.gz: d160a64aaf55b35451f367f068cec5800d93d83ce36f06dd92355af994edce8344a785f1d156aebd6bf79bb0a7bdbc8d2fd92ea0cc4959765375d77764cd5c16
|
data/lib/aws-sdk-lightsail.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# WARNING ABOUT GENERATED CODE
|
2
2
|
#
|
3
|
-
# This file is generated. See the contributing for
|
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.
|
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
|
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
|
-
|
28
|
-
class Client < Seahorse::Client::Base
|
27
|
+
module Aws::Lightsail
|
28
|
+
class Client < Seahorse::Client::Base
|
29
29
|
|
30
|
-
|
30
|
+
include Aws::ClientStubs
|
31
31
|
|
32
|
-
|
32
|
+
@identifier = :lightsail
|
33
33
|
|
34
|
-
|
34
|
+
set_api(ClientApi::API)
|
35
35
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
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
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
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
|
-
|
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<Types::Operation>
|
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
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
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<Types::Operation>
|
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
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
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<Types::Operation>
|
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
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
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
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
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
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
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
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
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<Types::Operation>
|
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
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
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<Types::Operation>
|
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
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
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<Types::Operation>
|
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
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
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
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
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
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
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
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
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<Types::Operation>
|
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
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
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<Types::Operation>
|
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
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
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
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
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<Types::Operation>
|
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
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
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
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
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<String>
|
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
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
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<Types::Blueprint>
|
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
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
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<Types::Bundle>
|
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
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
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
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
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<Types::Domain>
|
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
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
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
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1116
|
-
|
1117
|
-
|
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
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
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<Types::MetricDatapoint>
|
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
|
-
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
1156
|
-
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1164
|
-
|
1165
|
-
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1173
|
-
|
1174
|
-
|
1175
|
-
|
1176
|
-
|
1177
|
-
|
1178
|
-
|
1179
|
-
|
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<String>
|
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
|
-
|
1186
|
-
|
1187
|
-
|
1188
|
-
|
1189
|
-
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1196
|
-
|
1197
|
-
|
1198
|
-
|
1199
|
-
|
1200
|
-
|
1201
|
-
|
1202
|
-
|
1203
|
-
|
1204
|
-
|
1205
|
-
|
1206
|
-
|
1207
|
-
|
1208
|
-
|
1209
|
-
|
1210
|
-
|
1211
|
-
|
1212
|
-
|
1213
|
-
|
1214
|
-
|
1215
|
-
|
1216
|
-
|
1217
|
-
|
1218
|
-
|
1219
|
-
|
1220
|
-
|
1221
|
-
|
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
|
-
|
1224
|
-
|
1225
|
-
|
1226
|
-
|
1227
|
-
|
1228
|
-
|
1229
|
-
|
1230
|
-
|
1231
|
-
|
1232
|
-
|
1233
|
-
|
1234
|
-
|
1235
|
-
|
1236
|
-
|
1237
|
-
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
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<Types::InstanceSnapshot>
|
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
|
-
|
1247
|
-
|
1248
|
-
|
1249
|
-
|
1250
|
-
|
1251
|
-
|
1252
|
-
|
1253
|
-
|
1254
|
-
|
1255
|
-
|
1256
|
-
|
1257
|
-
|
1258
|
-
|
1259
|
-
|
1260
|
-
|
1261
|
-
|
1262
|
-
|
1263
|
-
|
1264
|
-
|
1265
|
-
|
1266
|
-
|
1267
|
-
|
1268
|
-
|
1269
|
-
|
1270
|
-
|
1271
|
-
|
1272
|
-
|
1273
|
-
|
1274
|
-
|
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
|
-
|
1317
|
-
|
1318
|
-
|
1319
|
-
|
1320
|
-
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1324
|
-
|
1325
|
-
|
1326
|
-
|
1327
|
-
|
1328
|
-
|
1329
|
-
|
1330
|
-
|
1331
|
-
|
1332
|
-
|
1333
|
-
|
1334
|
-
|
1335
|
-
|
1336
|
-
|
1337
|
-
|
1338
|
-
|
1339
|
-
|
1340
|
-
|
1341
|
-
|
1342
|
-
|
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<Types::Instance>
|
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
|
-
|
1345
|
-
|
1346
|
-
|
1347
|
-
|
1348
|
-
|
1349
|
-
|
1350
|
-
|
1351
|
-
|
1352
|
-
|
1353
|
-
|
1354
|
-
|
1355
|
-
|
1356
|
-
|
1357
|
-
|
1358
|
-
|
1359
|
-
|
1360
|
-
|
1361
|
-
|
1362
|
-
|
1363
|
-
|
1364
|
-
|
1365
|
-
|
1366
|
-
|
1367
|
-
|
1368
|
-
|
1369
|
-
|
1370
|
-
|
1371
|
-
|
1372
|
-
|
1373
|
-
|
1374
|
-
|
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
|
-
|
1377
|
-
|
1378
|
-
|
1379
|
-
|
1380
|
-
|
1381
|
-
|
1382
|
-
|
1383
|
-
|
1384
|
-
|
1385
|
-
|
1386
|
-
|
1387
|
-
|
1388
|
-
|
1389
|
-
|
1390
|
-
|
1391
|
-
|
1392
|
-
|
1393
|
-
|
1394
|
-
|
1395
|
-
|
1396
|
-
|
1397
|
-
|
1398
|
-
|
1399
|
-
|
1400
|
-
|
1401
|
-
|
1402
|
-
|
1403
|
-
|
1404
|
-
|
1405
|
-
|
1406
|
-
|
1407
|
-
|
1408
|
-
|
1409
|
-
|
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<Types::KeyPair>
|
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
|
-
|
1412
|
-
|
1413
|
-
|
1414
|
-
|
1415
|
-
|
1416
|
-
|
1417
|
-
|
1418
|
-
|
1419
|
-
|
1420
|
-
|
1421
|
-
|
1422
|
-
|
1423
|
-
|
1424
|
-
|
1425
|
-
|
1426
|
-
|
1427
|
-
|
1428
|
-
|
1429
|
-
|
1430
|
-
|
1431
|
-
|
1432
|
-
|
1433
|
-
|
1434
|
-
|
1435
|
-
|
1436
|
-
|
1437
|
-
|
1438
|
-
|
1439
|
-
|
1440
|
-
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
1444
|
-
|
1445
|
-
|
1446
|
-
|
1447
|
-
|
1448
|
-
|
1449
|
-
|
1450
|
-
|
1451
|
-
|
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
|
-
|
1454
|
-
|
1455
|
-
|
1456
|
-
|
1457
|
-
|
1458
|
-
|
1459
|
-
|
1460
|
-
|
1461
|
-
|
1462
|
-
|
1463
|
-
|
1464
|
-
|
1465
|
-
|
1466
|
-
|
1467
|
-
|
1468
|
-
|
1469
|
-
|
1470
|
-
|
1471
|
-
|
1472
|
-
|
1473
|
-
|
1474
|
-
|
1475
|
-
|
1476
|
-
|
1477
|
-
|
1478
|
-
|
1479
|
-
|
1480
|
-
|
1481
|
-
|
1482
|
-
|
1483
|
-
|
1484
|
-
|
1485
|
-
|
1486
|
-
|
1487
|
-
|
1488
|
-
|
1489
|
-
|
1490
|
-
|
1491
|
-
|
1492
|
-
|
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<Types::Operation>
|
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
|
-
|
1495
|
-
|
1496
|
-
|
1497
|
-
|
1498
|
-
|
1499
|
-
|
1500
|
-
|
1501
|
-
|
1502
|
-
|
1503
|
-
|
1504
|
-
|
1505
|
-
|
1506
|
-
|
1507
|
-
|
1508
|
-
|
1509
|
-
|
1510
|
-
|
1511
|
-
|
1512
|
-
|
1513
|
-
|
1514
|
-
|
1515
|
-
|
1516
|
-
|
1517
|
-
|
1518
|
-
|
1519
|
-
|
1520
|
-
|
1521
|
-
|
1522
|
-
|
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<Types::Operation>
|
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
|
-
|
1525
|
-
|
1526
|
-
|
1527
|
-
|
1528
|
-
|
1529
|
-
|
1530
|
-
|
1531
|
-
|
1532
|
-
|
1533
|
-
|
1534
|
-
|
1535
|
-
|
1536
|
-
|
1537
|
-
|
1538
|
-
|
1539
|
-
|
1540
|
-
|
1541
|
-
|
1542
|
-
|
1543
|
-
|
1544
|
-
|
1545
|
-
|
1546
|
-
|
1547
|
-
|
1548
|
-
|
1549
|
-
|
1550
|
-
|
1551
|
-
|
1552
|
-
|
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<Types::Region>
|
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
|
-
|
1555
|
-
|
1556
|
-
|
1557
|
-
|
1558
|
-
|
1559
|
-
|
1560
|
-
|
1561
|
-
|
1562
|
-
|
1563
|
-
|
1564
|
-
|
1565
|
-
|
1566
|
-
|
1567
|
-
|
1568
|
-
|
1569
|
-
|
1570
|
-
|
1571
|
-
|
1572
|
-
|
1573
|
-
|
1574
|
-
|
1575
|
-
|
1576
|
-
|
1577
|
-
|
1578
|
-
|
1579
|
-
|
1580
|
-
|
1581
|
-
|
1582
|
-
|
1583
|
-
|
1584
|
-
|
1585
|
-
|
1586
|
-
|
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
|
-
|
1589
|
-
|
1590
|
-
|
1591
|
-
|
1592
|
-
|
1593
|
-
|
1594
|
-
|
1595
|
-
|
1596
|
-
|
1597
|
-
|
1598
|
-
|
1599
|
-
|
1600
|
-
|
1601
|
-
|
1602
|
-
|
1603
|
-
|
1604
|
-
|
1605
|
-
|
1606
|
-
|
1607
|
-
|
1608
|
-
|
1609
|
-
|
1610
|
-
|
1611
|
-
|
1612
|
-
|
1613
|
-
|
1614
|
-
|
1615
|
-
|
1616
|
-
|
1617
|
-
|
1618
|
-
|
1619
|
-
|
1620
|
-
|
1621
|
-
|
1622
|
-
|
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<Types::StaticIp>
|
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
|
-
|
1625
|
-
|
1626
|
-
|
1627
|
-
|
1628
|
-
|
1629
|
-
|
1630
|
-
|
1631
|
-
|
1632
|
-
|
1633
|
-
|
1634
|
-
|
1635
|
-
|
1636
|
-
|
1637
|
-
|
1638
|
-
|
1639
|
-
|
1640
|
-
|
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
|
-
|
1643
|
-
|
1644
|
-
|
1645
|
-
|
1646
|
-
|
1647
|
-
|
1648
|
-
|
1649
|
-
|
1650
|
-
|
1651
|
-
|
1652
|
-
|
1653
|
-
|
1654
|
-
|
1655
|
-
|
1656
|
-
|
1657
|
-
|
1658
|
-
|
1659
|
-
|
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
|
-
|
1684
|
-
|
1685
|
-
|
1686
|
-
|
1687
|
-
|
1688
|
-
|
1689
|
-
|
1690
|
-
|
1691
|
-
|
1692
|
-
|
1693
|
-
|
1694
|
-
|
1695
|
-
|
1696
|
-
|
1697
|
-
|
1698
|
-
|
1699
|
-
|
1700
|
-
|
1701
|
-
|
1702
|
-
|
1703
|
-
|
1704
|
-
|
1705
|
-
|
1706
|
-
|
1707
|
-
|
1708
|
-
|
1709
|
-
|
1710
|
-
|
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
|
-
|
1713
|
-
|
1714
|
-
|
1715
|
-
|
1716
|
-
|
1717
|
-
|
1718
|
-
|
1719
|
-
|
1720
|
-
|
1721
|
-
|
1722
|
-
|
1723
|
-
|
1724
|
-
|
1725
|
-
|
1726
|
-
|
1727
|
-
|
1728
|
-
|
1729
|
-
|
1730
|
-
|
1731
|
-
|
1732
|
-
|
1733
|
-
|
1734
|
-
|
1735
|
-
|
1736
|
-
|
1737
|
-
|
1738
|
-
|
1739
|
-
|
1740
|
-
|
1741
|
-
|
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
|
-
|
1750
|
-
|
1751
|
-
|
1752
|
-
|
1753
|
-
|
1754
|
-
|
1755
|
-
|
1756
|
-
|
1757
|
-
|
1758
|
-
|
1759
|
-
|
1760
|
-
|
1761
|
-
|
1762
|
-
|
1763
|
-
|
1764
|
-
|
1765
|
-
|
1766
|
-
|
1767
|
-
|
1768
|
-
|
1769
|
-
|
1770
|
-
|
1771
|
-
|
1772
|
-
|
1773
|
-
|
1774
|
-
|
1775
|
-
|
1776
|
-
|
1777
|
-
|
1778
|
-
|
1779
|
-
|
1780
|
-
|
1781
|
-
|
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<Types::Operation>
|
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
|
-
|
1784
|
-
|
1785
|
-
|
1786
|
-
|
1787
|
-
|
1788
|
-
|
1789
|
-
|
1790
|
-
|
1791
|
-
|
1792
|
-
|
1793
|
-
|
1794
|
-
|
1795
|
-
|
1796
|
-
|
1797
|
-
|
1798
|
-
|
1799
|
-
|
1800
|
-
|
1801
|
-
|
1802
|
-
|
1803
|
-
|
1804
|
-
|
1805
|
-
|
1806
|
-
|
1807
|
-
|
1808
|
-
|
1809
|
-
|
1810
|
-
|
1811
|
-
|
1812
|
-
|
1813
|
-
|
1814
|
-
|
1815
|
-
|
1816
|
-
|
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<Types::Operation>
|
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
|
-
|
1819
|
-
|
1820
|
-
|
1821
|
-
|
1822
|
-
|
1823
|
-
|
1824
|
-
|
1825
|
-
|
1826
|
-
|
1827
|
-
|
1828
|
-
|
1829
|
-
|
1830
|
-
|
1831
|
-
|
1832
|
-
|
1833
|
-
|
1834
|
-
|
1835
|
-
|
1836
|
-
|
1837
|
-
|
1838
|
-
|
1839
|
-
|
1840
|
-
|
1841
|
-
|
1842
|
-
|
1843
|
-
|
1844
|
-
|
1845
|
-
|
1846
|
-
|
1847
|
-
|
1848
|
-
|
1849
|
-
|
1850
|
-
|
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<Types::Operation>
|
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
|
-
|
1853
|
-
|
1854
|
-
|
1855
|
-
|
1856
|
-
|
1857
|
-
|
1858
|
-
|
1859
|
-
|
1860
|
-
|
1861
|
-
|
1862
|
-
|
1863
|
-
|
1864
|
-
|
1865
|
-
|
1866
|
-
|
1867
|
-
|
1868
|
-
|
1869
|
-
|
1870
|
-
|
1871
|
-
|
1872
|
-
|
1873
|
-
|
1874
|
-
|
1875
|
-
|
1876
|
-
|
1877
|
-
|
1878
|
-
|
1879
|
-
|
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<Types::Operation>
|
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
|
-
|
1882
|
-
|
1883
|
-
|
1884
|
-
|
1885
|
-
|
1886
|
-
|
1887
|
-
|
1888
|
-
|
1889
|
-
|
1890
|
-
|
1891
|
-
|
1892
|
-
|
1893
|
-
|
1894
|
-
|
1895
|
-
|
1896
|
-
|
1897
|
-
|
1898
|
-
|
1899
|
-
|
1900
|
-
|
1901
|
-
|
1902
|
-
|
1903
|
-
|
1904
|
-
|
1905
|
-
|
1906
|
-
|
1907
|
-
|
1908
|
-
|
1909
|
-
|
1910
|
-
|
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
|
-
|
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<Types::Operation>
|
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
|
-
|
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
|
-
|
1945
|
-
|
1946
|
-
|
1947
|
-
|
1948
|
-
|
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
|
-
|
2298
|
+
# @api private
|
2299
|
+
# @deprecated
|
2300
|
+
def waiter_names
|
2301
|
+
[]
|
2302
|
+
end
|
1951
2303
|
|
1952
|
-
|
1953
|
-
attr_reader :identifier
|
2304
|
+
class << self
|
1954
2305
|
|
1955
|
-
|
1956
|
-
|
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
|