aws-sdk-lightsail 1.118.0 → 1.119.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lightsail/client.rb +79 -2
- data/lib/aws-sdk-lightsail/client_api.rb +33 -0
- data/lib/aws-sdk-lightsail/endpoint_parameters.rb +4 -4
- data/lib/aws-sdk-lightsail/types.rb +152 -3
- data/lib/aws-sdk-lightsail.rb +1 -1
- data/sig/client.rbs +14 -1
- data/sig/types.rbs +18 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 986c66dcd363ca995e5838f0b961149cca1aaf60b275d1a44f2af723d414fef0
|
4
|
+
data.tar.gz: 06d6250c9c764cb833027c055efdaebf1b263d8b0cf118404125a4a05c20d5e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e06f5f272d55d1c3a27349b6319464372b9195398ed3ab43b3f072c8c27caea875210c215f0c4bc60c453b4419197d573fab8290a92a846c4846285295d8d08
|
7
|
+
data.tar.gz: f2f4a676bcc780b97560130daab9368b85b6dd48348632ef4b2e7fa5dc65a924652fc1f1e64773dab1a5ce50cc448af63963ea487ae539934ffbf84dccc7c914
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.119.0
|
@@ -1133,6 +1133,17 @@ module Aws::Lightsail
|
|
1133
1133
|
# resp.bucket.access_log_config.enabled #=> Boolean
|
1134
1134
|
# resp.bucket.access_log_config.destination #=> String
|
1135
1135
|
# resp.bucket.access_log_config.prefix #=> String
|
1136
|
+
# resp.bucket.cors.rules #=> Array
|
1137
|
+
# resp.bucket.cors.rules[0].id #=> String
|
1138
|
+
# resp.bucket.cors.rules[0].allowed_methods #=> Array
|
1139
|
+
# resp.bucket.cors.rules[0].allowed_methods[0] #=> String
|
1140
|
+
# resp.bucket.cors.rules[0].allowed_origins #=> Array
|
1141
|
+
# resp.bucket.cors.rules[0].allowed_origins[0] #=> String
|
1142
|
+
# resp.bucket.cors.rules[0].allowed_headers #=> Array
|
1143
|
+
# resp.bucket.cors.rules[0].allowed_headers[0] #=> String
|
1144
|
+
# resp.bucket.cors.rules[0].expose_headers #=> Array
|
1145
|
+
# resp.bucket.cors.rules[0].expose_headers[0] #=> String
|
1146
|
+
# resp.bucket.cors.rules[0].max_age_seconds #=> Integer
|
1136
1147
|
# resp.operations #=> Array
|
1137
1148
|
# resp.operations[0].id #=> String
|
1138
1149
|
# resp.operations[0].resource_name #=> String
|
@@ -3178,7 +3189,7 @@ module Aws::Lightsail
|
|
3178
3189
|
|
3179
3190
|
# Creates a Lightsail load balancer. To learn more about deciding
|
3180
3191
|
# whether to load balance your application, see [Configure your
|
3181
|
-
# Lightsail instances for load balancing][1]. You can create up to
|
3192
|
+
# Lightsail instances for load balancing][1]. You can create up to 10
|
3182
3193
|
# load balancers per AWS Region in your account.
|
3183
3194
|
#
|
3184
3195
|
# When you create a load balancer, you can specify a unique name and
|
@@ -5907,6 +5918,21 @@ module Aws::Lightsail
|
|
5907
5918
|
#
|
5908
5919
|
# [1]: https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_SetResourceAccessForBucket.html
|
5909
5920
|
#
|
5921
|
+
# @option params [Boolean] :include_cors
|
5922
|
+
# A Boolean value that indicates whether to include Lightsail bucket
|
5923
|
+
# CORS configuration in the response. For more information, see
|
5924
|
+
# [Configuring cross-origin resource sharing (CORS)][1].
|
5925
|
+
#
|
5926
|
+
# <note markdown="1"> This parameter is only supported when getting a single bucket with
|
5927
|
+
# `bucketName` specified. The default value for this parameter is
|
5928
|
+
# `False`.
|
5929
|
+
#
|
5930
|
+
# </note>
|
5931
|
+
#
|
5932
|
+
#
|
5933
|
+
#
|
5934
|
+
# [1]: https://docs.aws.amazon.com/lightsail/latest/userguide/configure-cors.html
|
5935
|
+
#
|
5910
5936
|
# @return [Types::GetBucketsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5911
5937
|
#
|
5912
5938
|
# * {Types::GetBucketsResult#buckets #buckets} => Array<Types::Bucket>
|
@@ -5919,6 +5945,7 @@ module Aws::Lightsail
|
|
5919
5945
|
# bucket_name: "BucketName",
|
5920
5946
|
# page_token: "string",
|
5921
5947
|
# include_connected_resources: false,
|
5948
|
+
# include_cors: false,
|
5922
5949
|
# })
|
5923
5950
|
#
|
5924
5951
|
# @example Response structure
|
@@ -5950,6 +5977,17 @@ module Aws::Lightsail
|
|
5950
5977
|
# resp.buckets[0].access_log_config.enabled #=> Boolean
|
5951
5978
|
# resp.buckets[0].access_log_config.destination #=> String
|
5952
5979
|
# resp.buckets[0].access_log_config.prefix #=> String
|
5980
|
+
# resp.buckets[0].cors.rules #=> Array
|
5981
|
+
# resp.buckets[0].cors.rules[0].id #=> String
|
5982
|
+
# resp.buckets[0].cors.rules[0].allowed_methods #=> Array
|
5983
|
+
# resp.buckets[0].cors.rules[0].allowed_methods[0] #=> String
|
5984
|
+
# resp.buckets[0].cors.rules[0].allowed_origins #=> Array
|
5985
|
+
# resp.buckets[0].cors.rules[0].allowed_origins[0] #=> String
|
5986
|
+
# resp.buckets[0].cors.rules[0].allowed_headers #=> Array
|
5987
|
+
# resp.buckets[0].cors.rules[0].allowed_headers[0] #=> String
|
5988
|
+
# resp.buckets[0].cors.rules[0].expose_headers #=> Array
|
5989
|
+
# resp.buckets[0].cors.rules[0].expose_headers[0] #=> String
|
5990
|
+
# resp.buckets[0].cors.rules[0].max_age_seconds #=> Integer
|
5953
5991
|
# resp.next_page_token #=> String
|
5954
5992
|
# resp.account_level_bpa_sync.status #=> String, one of "InSync", "Failed", "NeverSynced", "Defaulted"
|
5955
5993
|
# resp.account_level_bpa_sync.last_synced_at #=> Time
|
@@ -11467,6 +11505,22 @@ module Aws::Lightsail
|
|
11467
11505
|
# @option params [Types::BucketAccessLogConfig] :access_log_config
|
11468
11506
|
# An object that describes the access log configuration for the bucket.
|
11469
11507
|
#
|
11508
|
+
# @option params [Types::BucketCorsConfig] :cors
|
11509
|
+
# Sets the cross-origin resource sharing (CORS) configuration for your
|
11510
|
+
# bucket. If a CORS configuration exists, it is replaced with the
|
11511
|
+
# specified configuration. For AWS CLI operations, this parameter can
|
11512
|
+
# also be passed as a file. For more information, see [Configuring
|
11513
|
+
# cross-origin resource sharing (CORS)][1].
|
11514
|
+
#
|
11515
|
+
# <note markdown="1"> CORS information is only returned in a response when you update the
|
11516
|
+
# CORS policy.
|
11517
|
+
#
|
11518
|
+
# </note>
|
11519
|
+
#
|
11520
|
+
#
|
11521
|
+
#
|
11522
|
+
# [1]: https://docs.aws.amazon.com/lightsail/latest/userguide/configure-cors.html
|
11523
|
+
#
|
11470
11524
|
# @return [Types::UpdateBucketResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
11471
11525
|
#
|
11472
11526
|
# * {Types::UpdateBucketResult#bucket #bucket} => Types::Bucket
|
@@ -11487,6 +11541,18 @@ module Aws::Lightsail
|
|
11487
11541
|
# destination: "BucketName",
|
11488
11542
|
# prefix: "BucketAccessLogPrefix",
|
11489
11543
|
# },
|
11544
|
+
# cors: {
|
11545
|
+
# rules: [
|
11546
|
+
# {
|
11547
|
+
# id: "BucketCorsRuleId",
|
11548
|
+
# allowed_methods: ["BucketCorsAllowedMethod"], # required
|
11549
|
+
# allowed_origins: ["string"], # required
|
11550
|
+
# allowed_headers: ["string"],
|
11551
|
+
# expose_headers: ["string"],
|
11552
|
+
# max_age_seconds: 1,
|
11553
|
+
# },
|
11554
|
+
# ],
|
11555
|
+
# },
|
11490
11556
|
# })
|
11491
11557
|
#
|
11492
11558
|
# @example Response structure
|
@@ -11517,6 +11583,17 @@ module Aws::Lightsail
|
|
11517
11583
|
# resp.bucket.access_log_config.enabled #=> Boolean
|
11518
11584
|
# resp.bucket.access_log_config.destination #=> String
|
11519
11585
|
# resp.bucket.access_log_config.prefix #=> String
|
11586
|
+
# resp.bucket.cors.rules #=> Array
|
11587
|
+
# resp.bucket.cors.rules[0].id #=> String
|
11588
|
+
# resp.bucket.cors.rules[0].allowed_methods #=> Array
|
11589
|
+
# resp.bucket.cors.rules[0].allowed_methods[0] #=> String
|
11590
|
+
# resp.bucket.cors.rules[0].allowed_origins #=> Array
|
11591
|
+
# resp.bucket.cors.rules[0].allowed_origins[0] #=> String
|
11592
|
+
# resp.bucket.cors.rules[0].allowed_headers #=> Array
|
11593
|
+
# resp.bucket.cors.rules[0].allowed_headers[0] #=> String
|
11594
|
+
# resp.bucket.cors.rules[0].expose_headers #=> Array
|
11595
|
+
# resp.bucket.cors.rules[0].expose_headers[0] #=> String
|
11596
|
+
# resp.bucket.cors.rules[0].max_age_seconds #=> Integer
|
11520
11597
|
# resp.operations #=> Array
|
11521
11598
|
# resp.operations[0].id #=> String
|
11522
11599
|
# resp.operations[0].resource_name #=> String
|
@@ -12484,7 +12561,7 @@ module Aws::Lightsail
|
|
12484
12561
|
tracer: tracer
|
12485
12562
|
)
|
12486
12563
|
context[:gem_name] = 'aws-sdk-lightsail'
|
12487
|
-
context[:gem_version] = '1.
|
12564
|
+
context[:gem_version] = '1.119.0'
|
12488
12565
|
Seahorse::Client::Request.new(handlers, context)
|
12489
12566
|
end
|
12490
12567
|
|
@@ -69,6 +69,15 @@ module Aws::Lightsail
|
|
69
69
|
BucketAccessLogPrefix = Shapes::StringShape.new(name: 'BucketAccessLogPrefix')
|
70
70
|
BucketBundle = Shapes::StructureShape.new(name: 'BucketBundle')
|
71
71
|
BucketBundleList = Shapes::ListShape.new(name: 'BucketBundleList')
|
72
|
+
BucketCorsAllowedHeaders = Shapes::ListShape.new(name: 'BucketCorsAllowedHeaders')
|
73
|
+
BucketCorsAllowedMethod = Shapes::StringShape.new(name: 'BucketCorsAllowedMethod')
|
74
|
+
BucketCorsAllowedMethods = Shapes::ListShape.new(name: 'BucketCorsAllowedMethods')
|
75
|
+
BucketCorsAllowedOrigins = Shapes::ListShape.new(name: 'BucketCorsAllowedOrigins')
|
76
|
+
BucketCorsConfig = Shapes::StructureShape.new(name: 'BucketCorsConfig')
|
77
|
+
BucketCorsExposeHeaders = Shapes::ListShape.new(name: 'BucketCorsExposeHeaders')
|
78
|
+
BucketCorsRule = Shapes::StructureShape.new(name: 'BucketCorsRule')
|
79
|
+
BucketCorsRuleId = Shapes::StringShape.new(name: 'BucketCorsRuleId')
|
80
|
+
BucketCorsRules = Shapes::ListShape.new(name: 'BucketCorsRules')
|
72
81
|
BucketList = Shapes::ListShape.new(name: 'BucketList')
|
73
82
|
BucketMetricName = Shapes::StringShape.new(name: 'BucketMetricName')
|
74
83
|
BucketName = Shapes::StringShape.new(name: 'BucketName')
|
@@ -866,6 +875,7 @@ module Aws::Lightsail
|
|
866
875
|
Bucket.add_member(:resources_receiving_access, Shapes::ShapeRef.new(shape: AccessReceiverList, location_name: "resourcesReceivingAccess"))
|
867
876
|
Bucket.add_member(:state, Shapes::ShapeRef.new(shape: BucketState, location_name: "state"))
|
868
877
|
Bucket.add_member(:access_log_config, Shapes::ShapeRef.new(shape: BucketAccessLogConfig, location_name: "accessLogConfig"))
|
878
|
+
Bucket.add_member(:cors, Shapes::ShapeRef.new(shape: BucketCorsConfig, location_name: "cors"))
|
869
879
|
Bucket.struct_class = Types::Bucket
|
870
880
|
|
871
881
|
BucketAccessLogConfig.add_member(:enabled, Shapes::ShapeRef.new(shape: boolean, required: true, location_name: "enabled"))
|
@@ -883,6 +893,27 @@ module Aws::Lightsail
|
|
883
893
|
|
884
894
|
BucketBundleList.member = Shapes::ShapeRef.new(shape: BucketBundle)
|
885
895
|
|
896
|
+
BucketCorsAllowedHeaders.member = Shapes::ShapeRef.new(shape: string)
|
897
|
+
|
898
|
+
BucketCorsAllowedMethods.member = Shapes::ShapeRef.new(shape: BucketCorsAllowedMethod)
|
899
|
+
|
900
|
+
BucketCorsAllowedOrigins.member = Shapes::ShapeRef.new(shape: string)
|
901
|
+
|
902
|
+
BucketCorsConfig.add_member(:rules, Shapes::ShapeRef.new(shape: BucketCorsRules, location_name: "rules"))
|
903
|
+
BucketCorsConfig.struct_class = Types::BucketCorsConfig
|
904
|
+
|
905
|
+
BucketCorsExposeHeaders.member = Shapes::ShapeRef.new(shape: string)
|
906
|
+
|
907
|
+
BucketCorsRule.add_member(:id, Shapes::ShapeRef.new(shape: BucketCorsRuleId, location_name: "id"))
|
908
|
+
BucketCorsRule.add_member(:allowed_methods, Shapes::ShapeRef.new(shape: BucketCorsAllowedMethods, required: true, location_name: "allowedMethods"))
|
909
|
+
BucketCorsRule.add_member(:allowed_origins, Shapes::ShapeRef.new(shape: BucketCorsAllowedOrigins, required: true, location_name: "allowedOrigins"))
|
910
|
+
BucketCorsRule.add_member(:allowed_headers, Shapes::ShapeRef.new(shape: BucketCorsAllowedHeaders, location_name: "allowedHeaders"))
|
911
|
+
BucketCorsRule.add_member(:expose_headers, Shapes::ShapeRef.new(shape: BucketCorsExposeHeaders, location_name: "exposeHeaders"))
|
912
|
+
BucketCorsRule.add_member(:max_age_seconds, Shapes::ShapeRef.new(shape: integer, location_name: "maxAgeSeconds"))
|
913
|
+
BucketCorsRule.struct_class = Types::BucketCorsRule
|
914
|
+
|
915
|
+
BucketCorsRules.member = Shapes::ShapeRef.new(shape: BucketCorsRule)
|
916
|
+
|
886
917
|
BucketList.member = Shapes::ShapeRef.new(shape: Bucket)
|
887
918
|
|
888
919
|
BucketState.add_member(:code, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "code"))
|
@@ -1784,6 +1815,7 @@ module Aws::Lightsail
|
|
1784
1815
|
GetBucketsRequest.add_member(:bucket_name, Shapes::ShapeRef.new(shape: BucketName, location_name: "bucketName"))
|
1785
1816
|
GetBucketsRequest.add_member(:page_token, Shapes::ShapeRef.new(shape: string, location_name: "pageToken"))
|
1786
1817
|
GetBucketsRequest.add_member(:include_connected_resources, Shapes::ShapeRef.new(shape: boolean, location_name: "includeConnectedResources"))
|
1818
|
+
GetBucketsRequest.add_member(:include_cors, Shapes::ShapeRef.new(shape: boolean, location_name: "includeCors"))
|
1787
1819
|
GetBucketsRequest.struct_class = Types::GetBucketsRequest
|
1788
1820
|
|
1789
1821
|
GetBucketsResult.add_member(:buckets, Shapes::ShapeRef.new(shape: BucketList, location_name: "buckets"))
|
@@ -3046,6 +3078,7 @@ module Aws::Lightsail
|
|
3046
3078
|
UpdateBucketRequest.add_member(:versioning, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "versioning"))
|
3047
3079
|
UpdateBucketRequest.add_member(:readonly_access_accounts, Shapes::ShapeRef.new(shape: PartnerIdList, location_name: "readonlyAccessAccounts"))
|
3048
3080
|
UpdateBucketRequest.add_member(:access_log_config, Shapes::ShapeRef.new(shape: BucketAccessLogConfig, location_name: "accessLogConfig"))
|
3081
|
+
UpdateBucketRequest.add_member(:cors, Shapes::ShapeRef.new(shape: BucketCorsConfig, location_name: "cors"))
|
3049
3082
|
UpdateBucketRequest.struct_class = Types::UpdateBucketRequest
|
3050
3083
|
|
3051
3084
|
UpdateBucketResult.add_member(:bucket, Shapes::ShapeRef.new(shape: Bucket, location_name: "bucket"))
|
@@ -13,22 +13,22 @@ module Aws::Lightsail
|
|
13
13
|
# @!attribute region
|
14
14
|
# The AWS region used to dispatch the request.
|
15
15
|
#
|
16
|
-
# @return [
|
16
|
+
# @return [string]
|
17
17
|
#
|
18
18
|
# @!attribute use_dual_stack
|
19
19
|
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
20
20
|
#
|
21
|
-
# @return [
|
21
|
+
# @return [boolean]
|
22
22
|
#
|
23
23
|
# @!attribute use_fips
|
24
24
|
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
25
25
|
#
|
26
|
-
# @return [
|
26
|
+
# @return [boolean]
|
27
27
|
#
|
28
28
|
# @!attribute endpoint
|
29
29
|
# Override the endpoint used to send this request
|
30
30
|
#
|
31
|
-
# @return [
|
31
|
+
# @return [string]
|
32
32
|
#
|
33
33
|
EndpointParameters = Struct.new(
|
34
34
|
:region,
|
@@ -1160,6 +1160,19 @@ module Aws::Lightsail
|
|
1160
1160
|
# bucket.
|
1161
1161
|
# @return [Types::BucketAccessLogConfig]
|
1162
1162
|
#
|
1163
|
+
# @!attribute [rw] cors
|
1164
|
+
# An array of cross-origin resource sharing (CORS) rules that identify
|
1165
|
+
# origins and the HTTP methods that can be executed on your bucket.
|
1166
|
+
# This field is only included in the response when CORS configuration
|
1167
|
+
# is requested or when updating CORS configuration. For more
|
1168
|
+
# information, see [Configuring cross-origin resource sharing
|
1169
|
+
# (CORS)][1].
|
1170
|
+
#
|
1171
|
+
#
|
1172
|
+
#
|
1173
|
+
# [1]: https://docs.aws.amazon.com/lightsail/latest/userguide/configure-cors.html
|
1174
|
+
# @return [Types::BucketCorsConfig]
|
1175
|
+
#
|
1163
1176
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/Bucket AWS API Documentation
|
1164
1177
|
#
|
1165
1178
|
class Bucket < Struct.new(
|
@@ -1178,7 +1191,8 @@ module Aws::Lightsail
|
|
1178
1191
|
:readonly_access_accounts,
|
1179
1192
|
:resources_receiving_access,
|
1180
1193
|
:state,
|
1181
|
-
:access_log_config
|
1194
|
+
:access_log_config,
|
1195
|
+
:cors)
|
1182
1196
|
SENSITIVE = []
|
1183
1197
|
include Aws::Structure
|
1184
1198
|
end
|
@@ -1280,6 +1294,106 @@ module Aws::Lightsail
|
|
1280
1294
|
include Aws::Structure
|
1281
1295
|
end
|
1282
1296
|
|
1297
|
+
# Describes the cross-origin resource sharing (CORS) configuration for a
|
1298
|
+
# Lightsail bucket. CORS defines a way for client web applications that
|
1299
|
+
# are loaded in one domain to interact with resources in a different
|
1300
|
+
# domain. For more information, see [Configuring cross-origin resource
|
1301
|
+
# sharing (CORS)][1].
|
1302
|
+
#
|
1303
|
+
#
|
1304
|
+
#
|
1305
|
+
# [1]: https://docs.aws.amazon.com/lightsail/latest/userguide/configure-cors.html
|
1306
|
+
#
|
1307
|
+
# @!attribute [rw] rules
|
1308
|
+
# A set of origins and methods (cross-origin access that you want to
|
1309
|
+
# allow). You can add up to 20 rules to the configuration. The total
|
1310
|
+
# size is limited to 64 KB.
|
1311
|
+
# @return [Array<Types::BucketCorsRule>]
|
1312
|
+
#
|
1313
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/BucketCorsConfig AWS API Documentation
|
1314
|
+
#
|
1315
|
+
class BucketCorsConfig < Struct.new(
|
1316
|
+
:rules)
|
1317
|
+
SENSITIVE = []
|
1318
|
+
include Aws::Structure
|
1319
|
+
end
|
1320
|
+
|
1321
|
+
# Describes a cross-origin resource sharing (CORS) rule for a Lightsail
|
1322
|
+
# bucket. CORS rules specify which origins are allowed to access the
|
1323
|
+
# bucket, which HTTP methods are allowed, and other access control
|
1324
|
+
# information. For more information, see [Configuring cross-origin
|
1325
|
+
# resource sharing (CORS)][1].
|
1326
|
+
#
|
1327
|
+
#
|
1328
|
+
#
|
1329
|
+
# [1]: https://docs.aws.amazon.com/lightsail/latest/userguide/configure-cors.html
|
1330
|
+
#
|
1331
|
+
# @!attribute [rw] id
|
1332
|
+
# A unique identifier for the CORS rule. The ID value can be up to 255
|
1333
|
+
# characters long. The IDs help you find a rule in the configuration.
|
1334
|
+
# @return [String]
|
1335
|
+
#
|
1336
|
+
# @!attribute [rw] allowed_methods
|
1337
|
+
# The HTTP methods that are allowed when accessing the bucket from the
|
1338
|
+
# specified origin. Each CORS rule must identify at least one origin
|
1339
|
+
# and one method.
|
1340
|
+
#
|
1341
|
+
# You can use the following HTTP methods:
|
1342
|
+
#
|
1343
|
+
# * `GET` - Retrieves data from the server, such as downloading files
|
1344
|
+
# or viewing content.
|
1345
|
+
#
|
1346
|
+
# * `PUT` - Uploads or replaces data on the server, such as uploading
|
1347
|
+
# new files.
|
1348
|
+
#
|
1349
|
+
# * `POST` - Sends data to the server for processing, such as
|
1350
|
+
# submitting forms or creating new resources.
|
1351
|
+
#
|
1352
|
+
# * `DELETE` - Removes data from the server, such as deleting files or
|
1353
|
+
# resources.
|
1354
|
+
#
|
1355
|
+
# * `HEAD` - Retrieves only the headers from the server without the
|
1356
|
+
# actual content, useful for checking if a resource exists.
|
1357
|
+
# @return [Array<String>]
|
1358
|
+
#
|
1359
|
+
# @!attribute [rw] allowed_origins
|
1360
|
+
# One or more origins you want customers to be able to access the
|
1361
|
+
# bucket from. Each CORS rule must identify at least one origin and
|
1362
|
+
# one method.
|
1363
|
+
# @return [Array<String>]
|
1364
|
+
#
|
1365
|
+
# @!attribute [rw] allowed_headers
|
1366
|
+
# Headers that are specified in the `Access-Control-Request-Headers`
|
1367
|
+
# header. These headers are allowed in a preflight `OPTIONS` request.
|
1368
|
+
# In response to any preflight `OPTIONS` request, Amazon S3 returns
|
1369
|
+
# any requested headers that are allowed.
|
1370
|
+
# @return [Array<String>]
|
1371
|
+
#
|
1372
|
+
# @!attribute [rw] expose_headers
|
1373
|
+
# One or more headers in the response that you want customers to be
|
1374
|
+
# able to access from their applications (for example, from a
|
1375
|
+
# JavaScript `XMLHttpRequest` object).
|
1376
|
+
# @return [Array<String>]
|
1377
|
+
#
|
1378
|
+
# @!attribute [rw] max_age_seconds
|
1379
|
+
# The time in seconds that your browser is to cache the preflight
|
1380
|
+
# response for the specified resource. A CORS rule can have only one
|
1381
|
+
# `maxAgeSeconds` element.
|
1382
|
+
# @return [Integer]
|
1383
|
+
#
|
1384
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/BucketCorsRule AWS API Documentation
|
1385
|
+
#
|
1386
|
+
class BucketCorsRule < Struct.new(
|
1387
|
+
:id,
|
1388
|
+
:allowed_methods,
|
1389
|
+
:allowed_origins,
|
1390
|
+
:allowed_headers,
|
1391
|
+
:expose_headers,
|
1392
|
+
:max_age_seconds)
|
1393
|
+
SENSITIVE = []
|
1394
|
+
include Aws::Structure
|
1395
|
+
end
|
1396
|
+
|
1283
1397
|
# Describes the state of an Amazon Lightsail bucket.
|
1284
1398
|
#
|
1285
1399
|
# @!attribute [rw] code
|
@@ -6750,12 +6864,29 @@ module Aws::Lightsail
|
|
6750
6864
|
# [1]: https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_SetResourceAccessForBucket.html
|
6751
6865
|
# @return [Boolean]
|
6752
6866
|
#
|
6867
|
+
# @!attribute [rw] include_cors
|
6868
|
+
# A Boolean value that indicates whether to include Lightsail bucket
|
6869
|
+
# CORS configuration in the response. For more information, see
|
6870
|
+
# [Configuring cross-origin resource sharing (CORS)][1].
|
6871
|
+
#
|
6872
|
+
# <note markdown="1"> This parameter is only supported when getting a single bucket with
|
6873
|
+
# `bucketName` specified. The default value for this parameter is
|
6874
|
+
# `False`.
|
6875
|
+
#
|
6876
|
+
# </note>
|
6877
|
+
#
|
6878
|
+
#
|
6879
|
+
#
|
6880
|
+
# [1]: https://docs.aws.amazon.com/lightsail/latest/userguide/configure-cors.html
|
6881
|
+
# @return [Boolean]
|
6882
|
+
#
|
6753
6883
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetBucketsRequest AWS API Documentation
|
6754
6884
|
#
|
6755
6885
|
class GetBucketsRequest < Struct.new(
|
6756
6886
|
:bucket_name,
|
6757
6887
|
:page_token,
|
6758
|
-
:include_connected_resources
|
6888
|
+
:include_connected_resources,
|
6889
|
+
:include_cors)
|
6759
6890
|
SENSITIVE = []
|
6760
6891
|
include Aws::Structure
|
6761
6892
|
end
|
@@ -14497,6 +14628,23 @@ module Aws::Lightsail
|
|
14497
14628
|
# bucket.
|
14498
14629
|
# @return [Types::BucketAccessLogConfig]
|
14499
14630
|
#
|
14631
|
+
# @!attribute [rw] cors
|
14632
|
+
# Sets the cross-origin resource sharing (CORS) configuration for your
|
14633
|
+
# bucket. If a CORS configuration exists, it is replaced with the
|
14634
|
+
# specified configuration. For AWS CLI operations, this parameter can
|
14635
|
+
# also be passed as a file. For more information, see [Configuring
|
14636
|
+
# cross-origin resource sharing (CORS)][1].
|
14637
|
+
#
|
14638
|
+
# <note markdown="1"> CORS information is only returned in a response when you update the
|
14639
|
+
# CORS policy.
|
14640
|
+
#
|
14641
|
+
# </note>
|
14642
|
+
#
|
14643
|
+
#
|
14644
|
+
#
|
14645
|
+
# [1]: https://docs.aws.amazon.com/lightsail/latest/userguide/configure-cors.html
|
14646
|
+
# @return [Types::BucketCorsConfig]
|
14647
|
+
#
|
14500
14648
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UpdateBucketRequest AWS API Documentation
|
14501
14649
|
#
|
14502
14650
|
class UpdateBucketRequest < Struct.new(
|
@@ -14504,7 +14652,8 @@ module Aws::Lightsail
|
|
14504
14652
|
:access_rules,
|
14505
14653
|
:versioning,
|
14506
14654
|
:readonly_access_accounts,
|
14507
|
-
:access_log_config
|
14655
|
+
:access_log_config,
|
14656
|
+
:cors)
|
14508
14657
|
SENSITIVE = []
|
14509
14658
|
include Aws::Structure
|
14510
14659
|
end
|
data/lib/aws-sdk-lightsail.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -1160,7 +1160,8 @@ module Aws
|
|
1160
1160
|
def get_buckets: (
|
1161
1161
|
?bucket_name: ::String,
|
1162
1162
|
?page_token: ::String,
|
1163
|
-
?include_connected_resources: bool
|
1163
|
+
?include_connected_resources: bool,
|
1164
|
+
?include_cors: bool
|
1164
1165
|
) -> _GetBucketsResponseSuccess
|
1165
1166
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetBucketsResponseSuccess
|
1166
1167
|
|
@@ -2140,6 +2141,18 @@ module Aws
|
|
2140
2141
|
enabled: bool,
|
2141
2142
|
destination: ::String?,
|
2142
2143
|
prefix: ::String?
|
2144
|
+
},
|
2145
|
+
?cors: {
|
2146
|
+
rules: Array[
|
2147
|
+
{
|
2148
|
+
id: ::String?,
|
2149
|
+
allowed_methods: Array[::String],
|
2150
|
+
allowed_origins: Array[::String],
|
2151
|
+
allowed_headers: Array[::String]?,
|
2152
|
+
expose_headers: Array[::String]?,
|
2153
|
+
max_age_seconds: ::Integer?
|
2154
|
+
},
|
2155
|
+
]?
|
2143
2156
|
}
|
2144
2157
|
) -> _UpdateBucketResponseSuccess
|
2145
2158
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateBucketResponseSuccess
|
data/sig/types.rbs
CHANGED
@@ -221,6 +221,7 @@ module Aws::Lightsail
|
|
221
221
|
attr_accessor resources_receiving_access: ::Array[Types::ResourceReceivingAccess]
|
222
222
|
attr_accessor state: Types::BucketState
|
223
223
|
attr_accessor access_log_config: Types::BucketAccessLogConfig
|
224
|
+
attr_accessor cors: Types::BucketCorsConfig
|
224
225
|
SENSITIVE: []
|
225
226
|
end
|
226
227
|
|
@@ -241,6 +242,21 @@ module Aws::Lightsail
|
|
241
242
|
SENSITIVE: []
|
242
243
|
end
|
243
244
|
|
245
|
+
class BucketCorsConfig
|
246
|
+
attr_accessor rules: ::Array[Types::BucketCorsRule]
|
247
|
+
SENSITIVE: []
|
248
|
+
end
|
249
|
+
|
250
|
+
class BucketCorsRule
|
251
|
+
attr_accessor id: ::String
|
252
|
+
attr_accessor allowed_methods: ::Array[::String]
|
253
|
+
attr_accessor allowed_origins: ::Array[::String]
|
254
|
+
attr_accessor allowed_headers: ::Array[::String]
|
255
|
+
attr_accessor expose_headers: ::Array[::String]
|
256
|
+
attr_accessor max_age_seconds: ::Integer
|
257
|
+
SENSITIVE: []
|
258
|
+
end
|
259
|
+
|
244
260
|
class BucketState
|
245
261
|
attr_accessor code: ::String
|
246
262
|
attr_accessor message: ::String
|
@@ -1396,6 +1412,7 @@ module Aws::Lightsail
|
|
1396
1412
|
attr_accessor bucket_name: ::String
|
1397
1413
|
attr_accessor page_token: ::String
|
1398
1414
|
attr_accessor include_connected_resources: bool
|
1415
|
+
attr_accessor include_cors: bool
|
1399
1416
|
SENSITIVE: []
|
1400
1417
|
end
|
1401
1418
|
|
@@ -3034,6 +3051,7 @@ module Aws::Lightsail
|
|
3034
3051
|
attr_accessor versioning: ::String
|
3035
3052
|
attr_accessor readonly_access_accounts: ::Array[::String]
|
3036
3053
|
attr_accessor access_log_config: Types::BucketAccessLogConfig
|
3054
|
+
attr_accessor cors: Types::BucketCorsConfig
|
3037
3055
|
SENSITIVE: []
|
3038
3056
|
end
|
3039
3057
|
|