aws-sdk-lightsail 1.57.0 → 1.58.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a361a4ce3e82875a40b90ab4fb9a381cdcfe8d50d25571039cab43a81b6e361e
4
- data.tar.gz: 5eea7e9bc6ad39fa0443c64209d0227fc364de861800e937c4c2062cfe857db4
3
+ metadata.gz: 42e8ca1b0bcb48e470f603d56ed932dcce67e6d969dfe7d131c26c38fe0fe672
4
+ data.tar.gz: 322965ea9477de0ea730cd36ccfb504a42f8e2fe67c085507a1440c02ed0a857
5
5
  SHA512:
6
- metadata.gz: '00974d8dd34ed9c5e5190d0f020a9f1bb7ca2d00f13329664cc94e2302485b00279230fe7eb3569f326c7d977d01d89cd447475bbb4dc86d9af899dd7625d7c8'
7
- data.tar.gz: 2459d32bcf2d6b196f395a8b9891da31d49c31293478330960f17e0c7cea4acd7f60b709aab008ab3e99ca04dcf210fa3b6b91d61210b58fee4252e9acdd8d6f
6
+ metadata.gz: 9e7285d821c4eaf9e9683203b99ca54c31b70c62969df1b9f042c216a2e580df71dfae3fc79d057ee14fd4e82803821813a5994035ef32a0fa26088fc23e558d
7
+ data.tar.gz: 8c34ea4a67c1514906746c5ba332439bd36ea9b6c6358bbc544eef69eaadc143158a1a06f00585c4e27e1fa31cc8c0c2a9945545b8a5b5e24da98eb3e63eca0a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.58.0 (2021-11-01)
5
+ ------------------
6
+
7
+ * Feature - This release adds support to enable access logging for buckets in the Lightsail object storage service.
8
+
4
9
  1.57.0 (2021-10-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.57.0
1
+ 1.58.0
@@ -968,6 +968,9 @@ module Aws::Lightsail
968
968
  # resp.bucket.resources_receiving_access[0].resource_type #=> String
969
969
  # resp.bucket.state.code #=> String
970
970
  # resp.bucket.state.message #=> String
971
+ # resp.bucket.access_log_config.enabled #=> Boolean
972
+ # resp.bucket.access_log_config.destination #=> String
973
+ # resp.bucket.access_log_config.prefix #=> String
971
974
  # resp.operations #=> Array
972
975
  # resp.operations[0].id #=> String
973
976
  # resp.operations[0].resource_name #=> String
@@ -1397,8 +1400,8 @@ module Aws::Lightsail
1397
1400
  # number of nodes) of the service.
1398
1401
  #
1399
1402
  # @option params [Array<Types::Tag>] :tags
1400
- # The tag keys and optional values to add to the certificate during
1401
- # create.
1403
+ # The tag keys and optional values to add to the container service
1404
+ # during create.
1402
1405
  #
1403
1406
  # Use the `TagResource` action to tag a resource after it's created.
1404
1407
  #
@@ -5590,6 +5593,9 @@ module Aws::Lightsail
5590
5593
  # resp.buckets[0].resources_receiving_access[0].resource_type #=> String
5591
5594
  # resp.buckets[0].state.code #=> String
5592
5595
  # resp.buckets[0].state.message #=> String
5596
+ # resp.buckets[0].access_log_config.enabled #=> Boolean
5597
+ # resp.buckets[0].access_log_config.destination #=> String
5598
+ # resp.buckets[0].access_log_config.prefix #=> String
5593
5599
  # resp.next_page_token #=> String
5594
5600
  #
5595
5601
  # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetBuckets AWS API Documentation
@@ -10622,6 +10628,9 @@ module Aws::Lightsail
10622
10628
  #
10623
10629
  # You can give a maximum of 10 AWS accounts access to a bucket.
10624
10630
  #
10631
+ # @option params [Types::BucketAccessLogConfig] :access_log_config
10632
+ # An object that describes the access log configuration for the bucket.
10633
+ #
10625
10634
  # @return [Types::UpdateBucketResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
10626
10635
  #
10627
10636
  # * {Types::UpdateBucketResult#bucket #bucket} => Types::Bucket
@@ -10637,6 +10646,11 @@ module Aws::Lightsail
10637
10646
  # },
10638
10647
  # versioning: "NonEmptyString",
10639
10648
  # readonly_access_accounts: ["NonEmptyString"],
10649
+ # access_log_config: {
10650
+ # enabled: false, # required
10651
+ # destination: "BucketName",
10652
+ # prefix: "BucketAccessLogPrefix",
10653
+ # },
10640
10654
  # })
10641
10655
  #
10642
10656
  # @example Response structure
@@ -10664,6 +10678,9 @@ module Aws::Lightsail
10664
10678
  # resp.bucket.resources_receiving_access[0].resource_type #=> String
10665
10679
  # resp.bucket.state.code #=> String
10666
10680
  # resp.bucket.state.message #=> String
10681
+ # resp.bucket.access_log_config.enabled #=> Boolean
10682
+ # resp.bucket.access_log_config.destination #=> String
10683
+ # resp.bucket.access_log_config.prefix #=> String
10667
10684
  # resp.operations #=> Array
10668
10685
  # resp.operations[0].id #=> String
10669
10686
  # resp.operations[0].resource_name #=> String
@@ -11425,7 +11442,7 @@ module Aws::Lightsail
11425
11442
  params: params,
11426
11443
  config: config)
11427
11444
  context[:gem_name] = 'aws-sdk-lightsail'
11428
- context[:gem_version] = '1.57.0'
11445
+ context[:gem_version] = '1.58.0'
11429
11446
  Seahorse::Client::Request.new(handlers, context)
11430
11447
  end
11431
11448
 
@@ -58,6 +58,8 @@ module Aws::Lightsail
58
58
  BlueprintList = Shapes::ListShape.new(name: 'BlueprintList')
59
59
  BlueprintType = Shapes::StringShape.new(name: 'BlueprintType')
60
60
  Bucket = Shapes::StructureShape.new(name: 'Bucket')
61
+ BucketAccessLogConfig = Shapes::StructureShape.new(name: 'BucketAccessLogConfig')
62
+ BucketAccessLogPrefix = Shapes::StringShape.new(name: 'BucketAccessLogPrefix')
61
63
  BucketBundle = Shapes::StructureShape.new(name: 'BucketBundle')
62
64
  BucketBundleList = Shapes::ListShape.new(name: 'BucketBundleList')
63
65
  BucketList = Shapes::ListShape.new(name: 'BucketList')
@@ -778,8 +780,14 @@ module Aws::Lightsail
778
780
  Bucket.add_member(:readonly_access_accounts, Shapes::ShapeRef.new(shape: PartnerIdList, location_name: "readonlyAccessAccounts"))
779
781
  Bucket.add_member(:resources_receiving_access, Shapes::ShapeRef.new(shape: AccessReceiverList, location_name: "resourcesReceivingAccess"))
780
782
  Bucket.add_member(:state, Shapes::ShapeRef.new(shape: BucketState, location_name: "state"))
783
+ Bucket.add_member(:access_log_config, Shapes::ShapeRef.new(shape: BucketAccessLogConfig, location_name: "accessLogConfig"))
781
784
  Bucket.struct_class = Types::Bucket
782
785
 
786
+ BucketAccessLogConfig.add_member(:enabled, Shapes::ShapeRef.new(shape: boolean, required: true, location_name: "enabled"))
787
+ BucketAccessLogConfig.add_member(:destination, Shapes::ShapeRef.new(shape: BucketName, location_name: "destination"))
788
+ BucketAccessLogConfig.add_member(:prefix, Shapes::ShapeRef.new(shape: BucketAccessLogPrefix, location_name: "prefix"))
789
+ BucketAccessLogConfig.struct_class = Types::BucketAccessLogConfig
790
+
783
791
  BucketBundle.add_member(:bundle_id, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "bundleId"))
784
792
  BucketBundle.add_member(:name, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "name"))
785
793
  BucketBundle.add_member(:price, Shapes::ShapeRef.new(shape: float, location_name: "price"))
@@ -2743,6 +2751,7 @@ module Aws::Lightsail
2743
2751
  UpdateBucketRequest.add_member(:access_rules, Shapes::ShapeRef.new(shape: AccessRules, location_name: "accessRules"))
2744
2752
  UpdateBucketRequest.add_member(:versioning, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "versioning"))
2745
2753
  UpdateBucketRequest.add_member(:readonly_access_accounts, Shapes::ShapeRef.new(shape: PartnerIdList, location_name: "readonlyAccessAccounts"))
2754
+ UpdateBucketRequest.add_member(:access_log_config, Shapes::ShapeRef.new(shape: BucketAccessLogConfig, location_name: "accessLogConfig"))
2746
2755
  UpdateBucketRequest.struct_class = Types::UpdateBucketRequest
2747
2756
 
2748
2757
  UpdateBucketResult.add_member(:bucket, Shapes::ShapeRef.new(shape: Bucket, location_name: "bucket"))
@@ -1055,6 +1055,11 @@ module Aws::Lightsail
1055
1055
  # An object that describes the state of the bucket.
1056
1056
  # @return [Types::BucketState]
1057
1057
  #
1058
+ # @!attribute [rw] access_log_config
1059
+ # An object that describes the access log configuration for the
1060
+ # bucket.
1061
+ # @return [Types::BucketAccessLogConfig]
1062
+ #
1058
1063
  # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/Bucket AWS API Documentation
1059
1064
  #
1060
1065
  class Bucket < Struct.new(
@@ -1072,7 +1077,70 @@ module Aws::Lightsail
1072
1077
  :able_to_update_bundle,
1073
1078
  :readonly_access_accounts,
1074
1079
  :resources_receiving_access,
1075
- :state)
1080
+ :state,
1081
+ :access_log_config)
1082
+ SENSITIVE = []
1083
+ include Aws::Structure
1084
+ end
1085
+
1086
+ # Describes the access log configuration for a bucket in the Amazon
1087
+ # Lightsail object storage service.
1088
+ #
1089
+ # For more information about bucket access logs, see [Logging bucket
1090
+ # requests using access logging in Amazon Lightsail][1] in the *Amazon
1091
+ # Lightsail Developer Guide*.
1092
+ #
1093
+ #
1094
+ #
1095
+ # [1]: https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-bucket-access-logs
1096
+ #
1097
+ # @note When making an API call, you may pass BucketAccessLogConfig
1098
+ # data as a hash:
1099
+ #
1100
+ # {
1101
+ # enabled: false, # required
1102
+ # destination: "BucketName",
1103
+ # prefix: "BucketAccessLogPrefix",
1104
+ # }
1105
+ #
1106
+ # @!attribute [rw] enabled
1107
+ # A Boolean value that indicates whether bucket access logging is
1108
+ # enabled for the bucket.
1109
+ # @return [Boolean]
1110
+ #
1111
+ # @!attribute [rw] destination
1112
+ # The name of the bucket where the access is saved. The destination
1113
+ # can be a Lightsail bucket in the same account, and in the same AWS
1114
+ # Region as the source bucket.
1115
+ #
1116
+ # <note markdown="1"> This parameter is required when enabling the access log for a
1117
+ # bucket, and should be omitted when disabling the access log.
1118
+ #
1119
+ # </note>
1120
+ # @return [String]
1121
+ #
1122
+ # @!attribute [rw] prefix
1123
+ # The optional object prefix for the bucket access log.
1124
+ #
1125
+ # The prefix is an optional addition to the object key that organizes
1126
+ # your access log files in the destination bucket. For example, if you
1127
+ # specify a `logs/` prefix, then each log object will begin with the
1128
+ # `logs/` prefix in its key (for example,
1129
+ # `logs/2021-11-01-21-32-16-E568B2907131C0C0`).
1130
+ #
1131
+ # <note markdown="1"> This parameter can be optionally specified when enabling the access
1132
+ # log for a bucket, and should be omitted when disabling the access
1133
+ # log.
1134
+ #
1135
+ # </note>
1136
+ # @return [String]
1137
+ #
1138
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/BucketAccessLogConfig AWS API Documentation
1139
+ #
1140
+ class BucketAccessLogConfig < Struct.new(
1141
+ :enabled,
1142
+ :destination,
1143
+ :prefix)
1076
1144
  SENSITIVE = []
1077
1145
  include Aws::Structure
1078
1146
  end
@@ -1934,9 +2002,18 @@ module Aws::Lightsail
1934
2002
  #
1935
2003
  # Container images sourced from your Lightsail container service, that
1936
2004
  # are registered and stored on your service, start with a colon (`:`).
1937
- # For example, `:container-service-1.mystaticwebsite.1`. Container
1938
- # images sourced from a public registry like Docker Hub don't start
1939
- # with a colon. For example, `nginx:latest` or `nginx`.
2005
+ # For example, if your container service name is
2006
+ # `container-service-1`, the container image label is `mystaticsite`,
2007
+ # and you want to use the third (`3`) version of the registered
2008
+ # container image, then you should specify
2009
+ # `:container-service-1.mystaticsite.3`. To use the latest version of
2010
+ # a container image, specify `latest` instead of a version number (for
2011
+ # example, `:container-service-1.mystaticsite.latest`). Lightsail will
2012
+ # automatically use the highest numbered version of the registered
2013
+ # container image.
2014
+ #
2015
+ # Container images sourced from a public registry like Docker Hub
2016
+ # don't start with a colon. For example, `nginx:latest` or `nginx`.
1940
2017
  # @return [String]
1941
2018
  #
1942
2019
  # @!attribute [rw] command
@@ -3191,8 +3268,8 @@ module Aws::Lightsail
3191
3268
  # @return [Integer]
3192
3269
  #
3193
3270
  # @!attribute [rw] tags
3194
- # The tag keys and optional values to add to the certificate during
3195
- # create.
3271
+ # The tag keys and optional values to add to the container service
3272
+ # during create.
3196
3273
  #
3197
3274
  # Use the `TagResource` action to tag a resource after it's created.
3198
3275
  #
@@ -14528,6 +14605,11 @@ module Aws::Lightsail
14528
14605
  # },
14529
14606
  # versioning: "NonEmptyString",
14530
14607
  # readonly_access_accounts: ["NonEmptyString"],
14608
+ # access_log_config: {
14609
+ # enabled: false, # required
14610
+ # destination: "BucketName",
14611
+ # prefix: "BucketAccessLogPrefix",
14612
+ # },
14531
14613
  # }
14532
14614
  #
14533
14615
  # @!attribute [rw] bucket_name
@@ -14558,13 +14640,19 @@ module Aws::Lightsail
14558
14640
  # You can give a maximum of 10 AWS accounts access to a bucket.
14559
14641
  # @return [Array<String>]
14560
14642
  #
14643
+ # @!attribute [rw] access_log_config
14644
+ # An object that describes the access log configuration for the
14645
+ # bucket.
14646
+ # @return [Types::BucketAccessLogConfig]
14647
+ #
14561
14648
  # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UpdateBucketRequest AWS API Documentation
14562
14649
  #
14563
14650
  class UpdateBucketRequest < Struct.new(
14564
14651
  :bucket_name,
14565
14652
  :access_rules,
14566
14653
  :versioning,
14567
- :readonly_access_accounts)
14654
+ :readonly_access_accounts,
14655
+ :access_log_config)
14568
14656
  SENSITIVE = []
14569
14657
  include Aws::Structure
14570
14658
  end
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-lightsail/customizations'
48
48
  # @!group service
49
49
  module Aws::Lightsail
50
50
 
51
- GEM_VERSION = '1.57.0'
51
+ GEM_VERSION = '1.58.0'
52
52
 
53
53
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-lightsail
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.57.0
4
+ version: 1.58.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-18 00:00:00.000000000 Z
11
+ date: 2021-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core