aws-sdk-lightsail 1.136.0 → 1.137.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 +94 -1
- data/lib/aws-sdk-lightsail/client_api.rb +19 -0
- data/lib/aws-sdk-lightsail/types.rb +141 -4
- data/lib/aws-sdk-lightsail.rb +1 -1
- data/sig/client.rbs +22 -2
- data/sig/types.rbs +17 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ccb77e051c22aa54f4e8c0d643040eb04ed8564fdaa211a1ef25bc302cfdd0a3
|
|
4
|
+
data.tar.gz: 7b2518aaf1267da07d42a4f0615e1a88ee2ddcbcd89d91d0e8f2d957e43b8459
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8395965e07f886a3fe36cecf0640d5ff895df048d8ca0196b5d00412cb89b42b264c5d03dce51f8612a523deb6ab320f49744228918d9628fb1571e6bc11871e
|
|
7
|
+
data.tar.gz: 34652179e866139bf71921612deb43310e557081068575ce4fe8d11e0e502464907a3275fd8a9b20d4c7cdfa5960fcdc91c81babe2663114af2b098108d6eec5
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.137.0 (2026-09-11)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Amazon Lightsail now lets you serve website content from a private Lightsail bucket through a Lightsail distribution. This release adds enablePrivateOriginAccess to the CreateDistribution and UpdateDistribution actions, plus new defaultRootObject and customErrorResponses options.
|
|
8
|
+
|
|
4
9
|
1.136.0 (2026-09-09)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.137.0
|
|
@@ -2403,6 +2403,34 @@ module Aws::Lightsail
|
|
|
2403
2403
|
# @option params [String] :viewer_minimum_tls_protocol_version
|
|
2404
2404
|
# The minimum TLS protocol version for the SSL/TLS certificate.
|
|
2405
2405
|
#
|
|
2406
|
+
# @option params [Boolean] :enable_private_origin_access
|
|
2407
|
+
# Specifies whether to enable private origin access for the
|
|
2408
|
+
# distribution. With private origin access, the distribution can serve
|
|
2409
|
+
# objects that aren't publicly accessible from a Lightsail bucket.
|
|
2410
|
+
#
|
|
2411
|
+
# Lightsail grants the distribution permission to read the bucket's
|
|
2412
|
+
# objects. Enabling private origin access doesn't change the bucket's
|
|
2413
|
+
# access settings, and you can still retrieve publicly accessible
|
|
2414
|
+
# objects directly from the bucket's endpoint.
|
|
2415
|
+
#
|
|
2416
|
+
# <note markdown="1"> You can enable private origin access only when the distribution's
|
|
2417
|
+
# origin is a Lightsail bucket. If the origin is another resource type,
|
|
2418
|
+
# the request fails.
|
|
2419
|
+
#
|
|
2420
|
+
# </note>
|
|
2421
|
+
#
|
|
2422
|
+
# @option params [String] :default_root_object
|
|
2423
|
+
# The object (for example, `index.html`) that the distribution returns
|
|
2424
|
+
# when a viewer requests the root URL of the distribution (`/`) instead
|
|
2425
|
+
# of a specific object. The object that you specify must be available
|
|
2426
|
+
# from the origin.
|
|
2427
|
+
#
|
|
2428
|
+
# @option params [Array<Types::DistributionCustomErrorResponse>] :custom_error_responses
|
|
2429
|
+
# An array of objects that describe the custom error responses for the
|
|
2430
|
+
# distribution. With a custom error response, you can specify the page
|
|
2431
|
+
# to return when the origin responds with a given HTTP error code. You
|
|
2432
|
+
# can also specify the HTTP status code to send to the viewer.
|
|
2433
|
+
#
|
|
2406
2434
|
# @return [Types::CreateDistributionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2407
2435
|
#
|
|
2408
2436
|
# * {Types::CreateDistributionResult#distribution #distribution} => Types::LightsailDistribution
|
|
@@ -2457,6 +2485,16 @@ module Aws::Lightsail
|
|
|
2457
2485
|
# ],
|
|
2458
2486
|
# certificate_name: "ResourceName",
|
|
2459
2487
|
# viewer_minimum_tls_protocol_version: "TLSv1.1_2016", # accepts TLSv1.1_2016, TLSv1.2_2018, TLSv1.2_2019, TLSv1.2_2021
|
|
2488
|
+
# enable_private_origin_access: false,
|
|
2489
|
+
# default_root_object: "string",
|
|
2490
|
+
# custom_error_responses: [
|
|
2491
|
+
# {
|
|
2492
|
+
# error_code: 1,
|
|
2493
|
+
# response_code: "string",
|
|
2494
|
+
# response_page_path: "string",
|
|
2495
|
+
# error_caching_min_ttl: 1,
|
|
2496
|
+
# },
|
|
2497
|
+
# ],
|
|
2460
2498
|
# })
|
|
2461
2499
|
#
|
|
2462
2500
|
# @example Response structure
|
|
@@ -2481,6 +2519,7 @@ module Aws::Lightsail
|
|
|
2481
2519
|
# resp.distribution.origin.protocol_policy #=> String, one of "http-only", "https-only"
|
|
2482
2520
|
# resp.distribution.origin.response_timeout #=> Integer
|
|
2483
2521
|
# resp.distribution.origin.ip_address_type #=> String, one of "ipv4", "ipv6", "dualstack"
|
|
2522
|
+
# resp.distribution.origin.is_private_origin_access_enabled #=> Boolean
|
|
2484
2523
|
# resp.distribution.origin_public_dns #=> String
|
|
2485
2524
|
# resp.distribution.default_cache_behavior.behavior #=> String, one of "dont-cache", "cache"
|
|
2486
2525
|
# resp.distribution.cache_behavior_settings.default_ttl #=> Integer
|
|
@@ -2506,6 +2545,12 @@ module Aws::Lightsail
|
|
|
2506
2545
|
# resp.distribution.tags[0].key #=> String
|
|
2507
2546
|
# resp.distribution.tags[0].value #=> String
|
|
2508
2547
|
# resp.distribution.viewer_minimum_tls_protocol_version #=> String
|
|
2548
|
+
# resp.distribution.default_root_object #=> String
|
|
2549
|
+
# resp.distribution.custom_error_responses #=> Array
|
|
2550
|
+
# resp.distribution.custom_error_responses[0].error_code #=> Integer
|
|
2551
|
+
# resp.distribution.custom_error_responses[0].response_code #=> String
|
|
2552
|
+
# resp.distribution.custom_error_responses[0].response_page_path #=> String
|
|
2553
|
+
# resp.distribution.custom_error_responses[0].error_caching_min_ttl #=> Integer
|
|
2509
2554
|
# resp.operation.id #=> String
|
|
2510
2555
|
# resp.operation.resource_name #=> String
|
|
2511
2556
|
# resp.operation.resource_type #=> String, one of "ContainerService", "Instance", "StaticIp", "KeyPair", "InstanceSnapshot", "Domain", "PeeredVpc", "LoadBalancer", "LoadBalancerTlsCertificate", "Disk", "DiskSnapshot", "RelationalDatabase", "RelationalDatabaseSnapshot", "ExportSnapshotRecord", "CloudFormationStackRecord", "Alarm", "ContactMethod", "Distribution", "Certificate", "Bucket"
|
|
@@ -7398,6 +7443,7 @@ module Aws::Lightsail
|
|
|
7398
7443
|
# resp.distributions[0].origin.protocol_policy #=> String, one of "http-only", "https-only"
|
|
7399
7444
|
# resp.distributions[0].origin.response_timeout #=> Integer
|
|
7400
7445
|
# resp.distributions[0].origin.ip_address_type #=> String, one of "ipv4", "ipv6", "dualstack"
|
|
7446
|
+
# resp.distributions[0].origin.is_private_origin_access_enabled #=> Boolean
|
|
7401
7447
|
# resp.distributions[0].origin_public_dns #=> String
|
|
7402
7448
|
# resp.distributions[0].default_cache_behavior.behavior #=> String, one of "dont-cache", "cache"
|
|
7403
7449
|
# resp.distributions[0].cache_behavior_settings.default_ttl #=> Integer
|
|
@@ -7423,6 +7469,12 @@ module Aws::Lightsail
|
|
|
7423
7469
|
# resp.distributions[0].tags[0].key #=> String
|
|
7424
7470
|
# resp.distributions[0].tags[0].value #=> String
|
|
7425
7471
|
# resp.distributions[0].viewer_minimum_tls_protocol_version #=> String
|
|
7472
|
+
# resp.distributions[0].default_root_object #=> String
|
|
7473
|
+
# resp.distributions[0].custom_error_responses #=> Array
|
|
7474
|
+
# resp.distributions[0].custom_error_responses[0].error_code #=> Integer
|
|
7475
|
+
# resp.distributions[0].custom_error_responses[0].response_code #=> String
|
|
7476
|
+
# resp.distributions[0].custom_error_responses[0].response_page_path #=> String
|
|
7477
|
+
# resp.distributions[0].custom_error_responses[0].error_caching_min_ttl #=> Integer
|
|
7426
7478
|
# resp.next_page_token #=> String
|
|
7427
7479
|
#
|
|
7428
7480
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDistributions AWS API Documentation
|
|
@@ -11982,6 +12034,37 @@ module Aws::Lightsail
|
|
|
11982
12034
|
# Set this value to `false` to attach a new certificate to the
|
|
11983
12035
|
# distribution.
|
|
11984
12036
|
#
|
|
12037
|
+
# @option params [Boolean] :enable_private_origin_access
|
|
12038
|
+
# Specifies whether to enable private origin access for the
|
|
12039
|
+
# distribution. With private origin access, the distribution can serve
|
|
12040
|
+
# objects that aren't publicly accessible from a Lightsail bucket.
|
|
12041
|
+
#
|
|
12042
|
+
# Lightsail grants the distribution permission to read the bucket's
|
|
12043
|
+
# objects. Enabling private origin access doesn't change the bucket's
|
|
12044
|
+
# access settings, and you can still retrieve publicly accessible
|
|
12045
|
+
# objects directly from the bucket's endpoint.
|
|
12046
|
+
#
|
|
12047
|
+
# <note markdown="1"> When you include this parameter, you must also include the `origin`
|
|
12048
|
+
# parameter with the resource name, even if the origin is not changing.
|
|
12049
|
+
#
|
|
12050
|
+
# You can enable private origin access only when the distribution's
|
|
12051
|
+
# origin is a Lightsail bucket. If the origin is another resource type,
|
|
12052
|
+
# the request fails.
|
|
12053
|
+
#
|
|
12054
|
+
# </note>
|
|
12055
|
+
#
|
|
12056
|
+
# @option params [String] :default_root_object
|
|
12057
|
+
# The object (for example, `index.html`) that the distribution returns
|
|
12058
|
+
# when a viewer requests the root URL of the distribution (`/`) instead
|
|
12059
|
+
# of a specific object. The object that you specify must be available
|
|
12060
|
+
# from the origin.
|
|
12061
|
+
#
|
|
12062
|
+
# @option params [Array<Types::DistributionCustomErrorResponse>] :custom_error_responses
|
|
12063
|
+
# An array of objects that describe the custom error responses for the
|
|
12064
|
+
# distribution. With a custom error response, you can specify the page
|
|
12065
|
+
# to return when the origin responds with a given HTTP error code. You
|
|
12066
|
+
# can also specify the HTTP status code to send to the viewer.
|
|
12067
|
+
#
|
|
11985
12068
|
# @return [Types::UpdateDistributionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
11986
12069
|
#
|
|
11987
12070
|
# * {Types::UpdateDistributionResult#operation #operation} => Types::Operation
|
|
@@ -12029,6 +12112,16 @@ module Aws::Lightsail
|
|
|
12029
12112
|
# viewer_minimum_tls_protocol_version: "TLSv1.1_2016", # accepts TLSv1.1_2016, TLSv1.2_2018, TLSv1.2_2019, TLSv1.2_2021
|
|
12030
12113
|
# certificate_name: "ResourceName",
|
|
12031
12114
|
# use_default_certificate: false,
|
|
12115
|
+
# enable_private_origin_access: false,
|
|
12116
|
+
# default_root_object: "string",
|
|
12117
|
+
# custom_error_responses: [
|
|
12118
|
+
# {
|
|
12119
|
+
# error_code: 1,
|
|
12120
|
+
# response_code: "string",
|
|
12121
|
+
# response_page_path: "string",
|
|
12122
|
+
# error_caching_min_ttl: 1,
|
|
12123
|
+
# },
|
|
12124
|
+
# ],
|
|
12032
12125
|
# })
|
|
12033
12126
|
#
|
|
12034
12127
|
# @example Response structure
|
|
@@ -12628,7 +12721,7 @@ module Aws::Lightsail
|
|
|
12628
12721
|
tracer: tracer
|
|
12629
12722
|
)
|
|
12630
12723
|
context[:gem_name] = 'aws-sdk-lightsail'
|
|
12631
|
-
context[:gem_version] = '1.
|
|
12724
|
+
context[:gem_version] = '1.137.0'
|
|
12632
12725
|
Seahorse::Client::Request.new(handlers, context)
|
|
12633
12726
|
end
|
|
12634
12727
|
|
|
@@ -264,6 +264,8 @@ module Aws::Lightsail
|
|
|
264
264
|
DiskState = Shapes::StringShape.new(name: 'DiskState')
|
|
265
265
|
DistributionBundle = Shapes::StructureShape.new(name: 'DistributionBundle')
|
|
266
266
|
DistributionBundleList = Shapes::ListShape.new(name: 'DistributionBundleList')
|
|
267
|
+
DistributionCustomErrorResponse = Shapes::StructureShape.new(name: 'DistributionCustomErrorResponse')
|
|
268
|
+
DistributionCustomErrorResponseList = Shapes::ListShape.new(name: 'DistributionCustomErrorResponseList')
|
|
267
269
|
DistributionList = Shapes::ListShape.new(name: 'DistributionList')
|
|
268
270
|
DistributionMetricName = Shapes::StringShape.new(name: 'DistributionMetricName')
|
|
269
271
|
DnsRecordCreationState = Shapes::StructureShape.new(name: 'DnsRecordCreationState')
|
|
@@ -1281,6 +1283,9 @@ module Aws::Lightsail
|
|
|
1281
1283
|
CreateDistributionRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
|
|
1282
1284
|
CreateDistributionRequest.add_member(:certificate_name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "certificateName"))
|
|
1283
1285
|
CreateDistributionRequest.add_member(:viewer_minimum_tls_protocol_version, Shapes::ShapeRef.new(shape: ViewerMinimumTlsProtocolVersionEnum, location_name: "viewerMinimumTlsProtocolVersion"))
|
|
1286
|
+
CreateDistributionRequest.add_member(:enable_private_origin_access, Shapes::ShapeRef.new(shape: boolean, location_name: "enablePrivateOriginAccess"))
|
|
1287
|
+
CreateDistributionRequest.add_member(:default_root_object, Shapes::ShapeRef.new(shape: string, location_name: "defaultRootObject"))
|
|
1288
|
+
CreateDistributionRequest.add_member(:custom_error_responses, Shapes::ShapeRef.new(shape: DistributionCustomErrorResponseList, location_name: "customErrorResponses"))
|
|
1284
1289
|
CreateDistributionRequest.struct_class = Types::CreateDistributionRequest
|
|
1285
1290
|
|
|
1286
1291
|
CreateDistributionResult.add_member(:distribution, Shapes::ShapeRef.new(shape: LightsailDistribution, location_name: "distribution"))
|
|
@@ -1663,6 +1668,14 @@ module Aws::Lightsail
|
|
|
1663
1668
|
|
|
1664
1669
|
DistributionBundleList.member = Shapes::ShapeRef.new(shape: DistributionBundle)
|
|
1665
1670
|
|
|
1671
|
+
DistributionCustomErrorResponse.add_member(:error_code, Shapes::ShapeRef.new(shape: integer, location_name: "errorCode"))
|
|
1672
|
+
DistributionCustomErrorResponse.add_member(:response_code, Shapes::ShapeRef.new(shape: string, location_name: "responseCode"))
|
|
1673
|
+
DistributionCustomErrorResponse.add_member(:response_page_path, Shapes::ShapeRef.new(shape: string, location_name: "responsePagePath"))
|
|
1674
|
+
DistributionCustomErrorResponse.add_member(:error_caching_min_ttl, Shapes::ShapeRef.new(shape: long, location_name: "errorCachingMinTTL"))
|
|
1675
|
+
DistributionCustomErrorResponse.struct_class = Types::DistributionCustomErrorResponse
|
|
1676
|
+
|
|
1677
|
+
DistributionCustomErrorResponseList.member = Shapes::ShapeRef.new(shape: DistributionCustomErrorResponse)
|
|
1678
|
+
|
|
1666
1679
|
DistributionList.member = Shapes::ShapeRef.new(shape: LightsailDistribution)
|
|
1667
1680
|
|
|
1668
1681
|
DnsRecordCreationState.add_member(:code, Shapes::ShapeRef.new(shape: DnsRecordCreationStateCode, location_name: "code"))
|
|
@@ -2470,6 +2483,8 @@ module Aws::Lightsail
|
|
|
2470
2483
|
LightsailDistribution.add_member(:ip_address_type, Shapes::ShapeRef.new(shape: IpAddressType, location_name: "ipAddressType"))
|
|
2471
2484
|
LightsailDistribution.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
|
|
2472
2485
|
LightsailDistribution.add_member(:viewer_minimum_tls_protocol_version, Shapes::ShapeRef.new(shape: string, location_name: "viewerMinimumTlsProtocolVersion"))
|
|
2486
|
+
LightsailDistribution.add_member(:default_root_object, Shapes::ShapeRef.new(shape: string, location_name: "defaultRootObject"))
|
|
2487
|
+
LightsailDistribution.add_member(:custom_error_responses, Shapes::ShapeRef.new(shape: DistributionCustomErrorResponseList, location_name: "customErrorResponses"))
|
|
2473
2488
|
LightsailDistribution.struct_class = Types::LightsailDistribution
|
|
2474
2489
|
|
|
2475
2490
|
LoadBalancer.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "name"))
|
|
@@ -2640,6 +2655,7 @@ module Aws::Lightsail
|
|
|
2640
2655
|
Origin.add_member(:protocol_policy, Shapes::ShapeRef.new(shape: OriginProtocolPolicyEnum, location_name: "protocolPolicy"))
|
|
2641
2656
|
Origin.add_member(:response_timeout, Shapes::ShapeRef.new(shape: integer, location_name: "responseTimeout"))
|
|
2642
2657
|
Origin.add_member(:ip_address_type, Shapes::ShapeRef.new(shape: OriginIpAddressTypeEnum, location_name: "ipAddressType"))
|
|
2658
|
+
Origin.add_member(:is_private_origin_access_enabled, Shapes::ShapeRef.new(shape: boolean, location_name: "isPrivateOriginAccessEnabled"))
|
|
2643
2659
|
Origin.struct_class = Types::Origin
|
|
2644
2660
|
|
|
2645
2661
|
PartnerIdList.member = Shapes::ShapeRef.new(shape: NonEmptyString)
|
|
@@ -3136,6 +3152,9 @@ module Aws::Lightsail
|
|
|
3136
3152
|
UpdateDistributionRequest.add_member(:viewer_minimum_tls_protocol_version, Shapes::ShapeRef.new(shape: ViewerMinimumTlsProtocolVersionEnum, location_name: "viewerMinimumTlsProtocolVersion"))
|
|
3137
3153
|
UpdateDistributionRequest.add_member(:certificate_name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "certificateName"))
|
|
3138
3154
|
UpdateDistributionRequest.add_member(:use_default_certificate, Shapes::ShapeRef.new(shape: boolean, location_name: "useDefaultCertificate"))
|
|
3155
|
+
UpdateDistributionRequest.add_member(:enable_private_origin_access, Shapes::ShapeRef.new(shape: boolean, location_name: "enablePrivateOriginAccess"))
|
|
3156
|
+
UpdateDistributionRequest.add_member(:default_root_object, Shapes::ShapeRef.new(shape: string, location_name: "defaultRootObject"))
|
|
3157
|
+
UpdateDistributionRequest.add_member(:custom_error_responses, Shapes::ShapeRef.new(shape: DistributionCustomErrorResponseList, location_name: "customErrorResponses"))
|
|
3139
3158
|
UpdateDistributionRequest.struct_class = Types::UpdateDistributionRequest
|
|
3140
3159
|
|
|
3141
3160
|
UpdateDistributionResult.add_member(:operation, Shapes::ShapeRef.new(shape: Operation, location_name: "operation"))
|
|
@@ -3764,6 +3764,37 @@ module Aws::Lightsail
|
|
|
3764
3764
|
# The minimum TLS protocol version for the SSL/TLS certificate.
|
|
3765
3765
|
# @return [String]
|
|
3766
3766
|
#
|
|
3767
|
+
# @!attribute [rw] enable_private_origin_access
|
|
3768
|
+
# Specifies whether to enable private origin access for the
|
|
3769
|
+
# distribution. With private origin access, the distribution can serve
|
|
3770
|
+
# objects that aren't publicly accessible from a Lightsail bucket.
|
|
3771
|
+
#
|
|
3772
|
+
# Lightsail grants the distribution permission to read the bucket's
|
|
3773
|
+
# objects. Enabling private origin access doesn't change the
|
|
3774
|
+
# bucket's access settings, and you can still retrieve publicly
|
|
3775
|
+
# accessible objects directly from the bucket's endpoint.
|
|
3776
|
+
#
|
|
3777
|
+
# <note markdown="1"> You can enable private origin access only when the distribution's
|
|
3778
|
+
# origin is a Lightsail bucket. If the origin is another resource
|
|
3779
|
+
# type, the request fails.
|
|
3780
|
+
#
|
|
3781
|
+
# </note>
|
|
3782
|
+
# @return [Boolean]
|
|
3783
|
+
#
|
|
3784
|
+
# @!attribute [rw] default_root_object
|
|
3785
|
+
# The object (for example, `index.html`) that the distribution returns
|
|
3786
|
+
# when a viewer requests the root URL of the distribution (`/`)
|
|
3787
|
+
# instead of a specific object. The object that you specify must be
|
|
3788
|
+
# available from the origin.
|
|
3789
|
+
# @return [String]
|
|
3790
|
+
#
|
|
3791
|
+
# @!attribute [rw] custom_error_responses
|
|
3792
|
+
# An array of objects that describe the custom error responses for the
|
|
3793
|
+
# distribution. With a custom error response, you can specify the page
|
|
3794
|
+
# to return when the origin responds with a given HTTP error code. You
|
|
3795
|
+
# can also specify the HTTP status code to send to the viewer.
|
|
3796
|
+
# @return [Array<Types::DistributionCustomErrorResponse>]
|
|
3797
|
+
#
|
|
3767
3798
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateDistributionRequest AWS API Documentation
|
|
3768
3799
|
#
|
|
3769
3800
|
class CreateDistributionRequest < Struct.new(
|
|
@@ -3776,7 +3807,10 @@ module Aws::Lightsail
|
|
|
3776
3807
|
:ip_address_type,
|
|
3777
3808
|
:tags,
|
|
3778
3809
|
:certificate_name,
|
|
3779
|
-
:viewer_minimum_tls_protocol_version
|
|
3810
|
+
:viewer_minimum_tls_protocol_version,
|
|
3811
|
+
:enable_private_origin_access,
|
|
3812
|
+
:default_root_object,
|
|
3813
|
+
:custom_error_responses)
|
|
3780
3814
|
SENSITIVE = []
|
|
3781
3815
|
include Aws::Structure
|
|
3782
3816
|
end
|
|
@@ -6028,6 +6062,46 @@ module Aws::Lightsail
|
|
|
6028
6062
|
include Aws::Structure
|
|
6029
6063
|
end
|
|
6030
6064
|
|
|
6065
|
+
# Describes a custom error response for a Lightsail distribution. A
|
|
6066
|
+
# custom error response specifies the page that the distribution returns
|
|
6067
|
+
# to the viewer. It also specifies the HTTP status code that the
|
|
6068
|
+
# distribution sends when the origin responds with a given HTTP error
|
|
6069
|
+
# code.
|
|
6070
|
+
#
|
|
6071
|
+
# @!attribute [rw] error_code
|
|
6072
|
+
# The HTTP error code from the origin that triggers the custom error
|
|
6073
|
+
# response (for example, `403` or `404`).
|
|
6074
|
+
# @return [Integer]
|
|
6075
|
+
#
|
|
6076
|
+
# @!attribute [rw] response_code
|
|
6077
|
+
# The HTTP status code that the distribution returns to the viewer for
|
|
6078
|
+
# the custom error response.
|
|
6079
|
+
# @return [String]
|
|
6080
|
+
#
|
|
6081
|
+
# @!attribute [rw] response_page_path
|
|
6082
|
+
# The path to the custom error page that the distribution returns to
|
|
6083
|
+
# the viewer (for example, `/404.html`). The path must begin with a
|
|
6084
|
+
# forward slash (`/`) and reference an object that is available from
|
|
6085
|
+
# the origin.
|
|
6086
|
+
# @return [String]
|
|
6087
|
+
#
|
|
6088
|
+
# @!attribute [rw] error_caching_min_ttl
|
|
6089
|
+
# The minimum time, in seconds, that the distribution caches the
|
|
6090
|
+
# custom error response before requesting the object again from the
|
|
6091
|
+
# origin. If you don't specify a value, the default is `10` seconds.
|
|
6092
|
+
# @return [Integer]
|
|
6093
|
+
#
|
|
6094
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DistributionCustomErrorResponse AWS API Documentation
|
|
6095
|
+
#
|
|
6096
|
+
class DistributionCustomErrorResponse < Struct.new(
|
|
6097
|
+
:error_code,
|
|
6098
|
+
:response_code,
|
|
6099
|
+
:response_page_path,
|
|
6100
|
+
:error_caching_min_ttl)
|
|
6101
|
+
SENSITIVE = []
|
|
6102
|
+
include Aws::Structure
|
|
6103
|
+
end
|
|
6104
|
+
|
|
6031
6105
|
# Describes the creation state of the canonical name (CNAME) records
|
|
6032
6106
|
# that are automatically added by Amazon Lightsail to the DNS of a
|
|
6033
6107
|
# domain to validate domain ownership for an SSL/TLS certificate.
|
|
@@ -11267,6 +11341,17 @@ module Aws::Lightsail
|
|
|
11267
11341
|
# communicate with viewers.
|
|
11268
11342
|
# @return [String]
|
|
11269
11343
|
#
|
|
11344
|
+
# @!attribute [rw] default_root_object
|
|
11345
|
+
# The object (for example, `index.html`) that the distribution returns
|
|
11346
|
+
# when a viewer requests the root URL of the distribution (`/`)
|
|
11347
|
+
# instead of a specific object.
|
|
11348
|
+
# @return [String]
|
|
11349
|
+
#
|
|
11350
|
+
# @!attribute [rw] custom_error_responses
|
|
11351
|
+
# An array of objects that describe the custom error responses
|
|
11352
|
+
# configured for the distribution.
|
|
11353
|
+
# @return [Array<Types::DistributionCustomErrorResponse>]
|
|
11354
|
+
#
|
|
11270
11355
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/LightsailDistribution AWS API Documentation
|
|
11271
11356
|
#
|
|
11272
11357
|
class LightsailDistribution < Struct.new(
|
|
@@ -11290,7 +11375,9 @@ module Aws::Lightsail
|
|
|
11290
11375
|
:able_to_update_bundle,
|
|
11291
11376
|
:ip_address_type,
|
|
11292
11377
|
:tags,
|
|
11293
|
-
:viewer_minimum_tls_protocol_version
|
|
11378
|
+
:viewer_minimum_tls_protocol_version,
|
|
11379
|
+
:default_root_object,
|
|
11380
|
+
:custom_error_responses)
|
|
11294
11381
|
SENSITIVE = []
|
|
11295
11382
|
include Aws::Structure
|
|
11296
11383
|
end
|
|
@@ -12233,6 +12320,17 @@ module Aws::Lightsail
|
|
|
12233
12320
|
# and `dualstack` for IPv4 and IPv6.
|
|
12234
12321
|
# @return [String]
|
|
12235
12322
|
#
|
|
12323
|
+
# @!attribute [rw] is_private_origin_access_enabled
|
|
12324
|
+
# Specifies whether private origin access is enabled for the
|
|
12325
|
+
# distribution's origin. With private origin access, the distribution
|
|
12326
|
+
# can serve objects that aren't publicly accessible from a Lightsail
|
|
12327
|
+
# bucket.
|
|
12328
|
+
#
|
|
12329
|
+
# This applies when you set the bucket's `getObject` access rule to
|
|
12330
|
+
# `private`. It also applies when you set `getObject` to `public` but
|
|
12331
|
+
# set individual objects to private.
|
|
12332
|
+
# @return [Boolean]
|
|
12333
|
+
#
|
|
12236
12334
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/Origin AWS API Documentation
|
|
12237
12335
|
#
|
|
12238
12336
|
class Origin < Struct.new(
|
|
@@ -12241,7 +12339,8 @@ module Aws::Lightsail
|
|
|
12241
12339
|
:region_name,
|
|
12242
12340
|
:protocol_policy,
|
|
12243
12341
|
:response_timeout,
|
|
12244
|
-
:ip_address_type
|
|
12342
|
+
:ip_address_type,
|
|
12343
|
+
:is_private_origin_access_enabled)
|
|
12245
12344
|
SENSITIVE = []
|
|
12246
12345
|
include Aws::Structure
|
|
12247
12346
|
end
|
|
@@ -15001,6 +15100,41 @@ module Aws::Lightsail
|
|
|
15001
15100
|
# distribution.
|
|
15002
15101
|
# @return [Boolean]
|
|
15003
15102
|
#
|
|
15103
|
+
# @!attribute [rw] enable_private_origin_access
|
|
15104
|
+
# Specifies whether to enable private origin access for the
|
|
15105
|
+
# distribution. With private origin access, the distribution can serve
|
|
15106
|
+
# objects that aren't publicly accessible from a Lightsail bucket.
|
|
15107
|
+
#
|
|
15108
|
+
# Lightsail grants the distribution permission to read the bucket's
|
|
15109
|
+
# objects. Enabling private origin access doesn't change the
|
|
15110
|
+
# bucket's access settings, and you can still retrieve publicly
|
|
15111
|
+
# accessible objects directly from the bucket's endpoint.
|
|
15112
|
+
#
|
|
15113
|
+
# <note markdown="1"> When you include this parameter, you must also include the `origin`
|
|
15114
|
+
# parameter with the resource name, even if the origin is not
|
|
15115
|
+
# changing.
|
|
15116
|
+
#
|
|
15117
|
+
# You can enable private origin access only when the distribution's
|
|
15118
|
+
# origin is a Lightsail bucket. If the origin is another resource
|
|
15119
|
+
# type, the request fails.
|
|
15120
|
+
#
|
|
15121
|
+
# </note>
|
|
15122
|
+
# @return [Boolean]
|
|
15123
|
+
#
|
|
15124
|
+
# @!attribute [rw] default_root_object
|
|
15125
|
+
# The object (for example, `index.html`) that the distribution returns
|
|
15126
|
+
# when a viewer requests the root URL of the distribution (`/`)
|
|
15127
|
+
# instead of a specific object. The object that you specify must be
|
|
15128
|
+
# available from the origin.
|
|
15129
|
+
# @return [String]
|
|
15130
|
+
#
|
|
15131
|
+
# @!attribute [rw] custom_error_responses
|
|
15132
|
+
# An array of objects that describe the custom error responses for the
|
|
15133
|
+
# distribution. With a custom error response, you can specify the page
|
|
15134
|
+
# to return when the origin responds with a given HTTP error code. You
|
|
15135
|
+
# can also specify the HTTP status code to send to the viewer.
|
|
15136
|
+
# @return [Array<Types::DistributionCustomErrorResponse>]
|
|
15137
|
+
#
|
|
15004
15138
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UpdateDistributionRequest AWS API Documentation
|
|
15005
15139
|
#
|
|
15006
15140
|
class UpdateDistributionRequest < Struct.new(
|
|
@@ -15012,7 +15146,10 @@ module Aws::Lightsail
|
|
|
15012
15146
|
:is_enabled,
|
|
15013
15147
|
:viewer_minimum_tls_protocol_version,
|
|
15014
15148
|
:certificate_name,
|
|
15015
|
-
:use_default_certificate
|
|
15149
|
+
:use_default_certificate,
|
|
15150
|
+
:enable_private_origin_access,
|
|
15151
|
+
:default_root_object,
|
|
15152
|
+
:custom_error_responses)
|
|
15016
15153
|
SENSITIVE = []
|
|
15017
15154
|
include Aws::Structure
|
|
15018
15155
|
end
|
data/lib/aws-sdk-lightsail.rb
CHANGED
data/sig/client.rbs
CHANGED
|
@@ -413,7 +413,17 @@ module Aws
|
|
|
413
413
|
}
|
|
414
414
|
],
|
|
415
415
|
?certificate_name: ::String,
|
|
416
|
-
?viewer_minimum_tls_protocol_version: ("TLSv1.1_2016" | "TLSv1.2_2018" | "TLSv1.2_2019" | "TLSv1.2_2021")
|
|
416
|
+
?viewer_minimum_tls_protocol_version: ("TLSv1.1_2016" | "TLSv1.2_2018" | "TLSv1.2_2019" | "TLSv1.2_2021"),
|
|
417
|
+
?enable_private_origin_access: bool,
|
|
418
|
+
?default_root_object: ::String,
|
|
419
|
+
?custom_error_responses: Array[
|
|
420
|
+
{
|
|
421
|
+
error_code: ::Integer?,
|
|
422
|
+
response_code: ::String?,
|
|
423
|
+
response_page_path: ::String?,
|
|
424
|
+
error_caching_min_ttl: ::Integer?
|
|
425
|
+
}
|
|
426
|
+
]
|
|
417
427
|
) -> _CreateDistributionResponseSuccess
|
|
418
428
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateDistributionResponseSuccess
|
|
419
429
|
|
|
@@ -2117,7 +2127,17 @@ module Aws
|
|
|
2117
2127
|
?is_enabled: bool,
|
|
2118
2128
|
?viewer_minimum_tls_protocol_version: ("TLSv1.1_2016" | "TLSv1.2_2018" | "TLSv1.2_2019" | "TLSv1.2_2021"),
|
|
2119
2129
|
?certificate_name: ::String,
|
|
2120
|
-
?use_default_certificate: bool
|
|
2130
|
+
?use_default_certificate: bool,
|
|
2131
|
+
?enable_private_origin_access: bool,
|
|
2132
|
+
?default_root_object: ::String,
|
|
2133
|
+
?custom_error_responses: Array[
|
|
2134
|
+
{
|
|
2135
|
+
error_code: ::Integer?,
|
|
2136
|
+
response_code: ::String?,
|
|
2137
|
+
response_page_path: ::String?,
|
|
2138
|
+
error_caching_min_ttl: ::Integer?
|
|
2139
|
+
}
|
|
2140
|
+
]
|
|
2121
2141
|
) -> _UpdateDistributionResponseSuccess
|
|
2122
2142
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateDistributionResponseSuccess
|
|
2123
2143
|
|
data/sig/types.rbs
CHANGED
|
@@ -678,6 +678,9 @@ module Aws::Lightsail
|
|
|
678
678
|
attr_accessor tags: ::Array[Types::Tag]
|
|
679
679
|
attr_accessor certificate_name: ::String
|
|
680
680
|
attr_accessor viewer_minimum_tls_protocol_version: ("TLSv1.1_2016" | "TLSv1.2_2018" | "TLSv1.2_2019" | "TLSv1.2_2021")
|
|
681
|
+
attr_accessor enable_private_origin_access: bool
|
|
682
|
+
attr_accessor default_root_object: ::String
|
|
683
|
+
attr_accessor custom_error_responses: ::Array[Types::DistributionCustomErrorResponse]
|
|
681
684
|
SENSITIVE: []
|
|
682
685
|
end
|
|
683
686
|
|
|
@@ -1217,6 +1220,14 @@ module Aws::Lightsail
|
|
|
1217
1220
|
SENSITIVE: []
|
|
1218
1221
|
end
|
|
1219
1222
|
|
|
1223
|
+
class DistributionCustomErrorResponse
|
|
1224
|
+
attr_accessor error_code: ::Integer
|
|
1225
|
+
attr_accessor response_code: ::String
|
|
1226
|
+
attr_accessor response_page_path: ::String
|
|
1227
|
+
attr_accessor error_caching_min_ttl: ::Integer
|
|
1228
|
+
SENSITIVE: []
|
|
1229
|
+
end
|
|
1230
|
+
|
|
1220
1231
|
class DnsRecordCreationState
|
|
1221
1232
|
attr_accessor code: ("SUCCEEDED" | "STARTED" | "FAILED")
|
|
1222
1233
|
attr_accessor message: ::String
|
|
@@ -2309,6 +2320,8 @@ module Aws::Lightsail
|
|
|
2309
2320
|
attr_accessor ip_address_type: ("dualstack" | "ipv4" | "ipv6")
|
|
2310
2321
|
attr_accessor tags: ::Array[Types::Tag]
|
|
2311
2322
|
attr_accessor viewer_minimum_tls_protocol_version: ::String
|
|
2323
|
+
attr_accessor default_root_object: ::String
|
|
2324
|
+
attr_accessor custom_error_responses: ::Array[Types::DistributionCustomErrorResponse]
|
|
2312
2325
|
SENSITIVE: []
|
|
2313
2326
|
end
|
|
2314
2327
|
|
|
@@ -2492,6 +2505,7 @@ module Aws::Lightsail
|
|
|
2492
2505
|
attr_accessor protocol_policy: ("http-only" | "https-only")
|
|
2493
2506
|
attr_accessor response_timeout: ::Integer
|
|
2494
2507
|
attr_accessor ip_address_type: ("ipv4" | "ipv6" | "dualstack")
|
|
2508
|
+
attr_accessor is_private_origin_access_enabled: bool
|
|
2495
2509
|
SENSITIVE: []
|
|
2496
2510
|
end
|
|
2497
2511
|
|
|
@@ -3119,6 +3133,9 @@ module Aws::Lightsail
|
|
|
3119
3133
|
attr_accessor viewer_minimum_tls_protocol_version: ("TLSv1.1_2016" | "TLSv1.2_2018" | "TLSv1.2_2019" | "TLSv1.2_2021")
|
|
3120
3134
|
attr_accessor certificate_name: ::String
|
|
3121
3135
|
attr_accessor use_default_certificate: bool
|
|
3136
|
+
attr_accessor enable_private_origin_access: bool
|
|
3137
|
+
attr_accessor default_root_object: ::String
|
|
3138
|
+
attr_accessor custom_error_responses: ::Array[Types::DistributionCustomErrorResponse]
|
|
3122
3139
|
SENSITIVE: []
|
|
3123
3140
|
end
|
|
3124
3141
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws-sdk-lightsail
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.137.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Amazon Web Services
|
|
@@ -18,7 +18,7 @@ dependencies:
|
|
|
18
18
|
version: '3'
|
|
19
19
|
- - ">="
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: 3.
|
|
21
|
+
version: 3.256.0
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -28,7 +28,7 @@ dependencies:
|
|
|
28
28
|
version: '3'
|
|
29
29
|
- - ">="
|
|
30
30
|
- !ruby/object:Gem::Version
|
|
31
|
-
version: 3.
|
|
31
|
+
version: 3.256.0
|
|
32
32
|
- !ruby/object:Gem::Dependency
|
|
33
33
|
name: aws-sigv4
|
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|