You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/Services/AWSS3/Sources/AWSS3/Models.swift
+37-1Lines changed: 37 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1725,6 +1725,35 @@ extension S3ClientTypes {
1725
1725
}
1726
1726
}
1727
1727
1728
+
extension S3ClientTypes {
1729
+
1730
+
public enum BucketNamespace: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable {
1731
+
case accountRegional
1732
+
case global
1733
+
case sdkUnknown(Swift.String)
1734
+
1735
+
public static var allCases: [BucketNamespace] {
1736
+
return [
1737
+
.accountRegional,
1738
+
.global
1739
+
]
1740
+
}
1741
+
1742
+
public init?(rawValue: Swift.String) {
1743
+
let value = Self.allCases.first(where: { $0.rawValue == rawValue })
1744
+
self = value ?? Self.sdkUnknown(rawValue)
1745
+
}
1746
+
1747
+
public var rawValue: Swift.String {
1748
+
switch self {
1749
+
case .accountRegional: return "account-regional"
1750
+
case .global: return "global"
1751
+
case let .sdkUnknown(s): return s
1752
+
}
1753
+
}
1754
+
}
1755
+
}
1756
+
1728
1757
extension S3ClientTypes {
1729
1758
1730
1759
public enum DataRedundancy: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable {
@@ -2056,6 +2085,8 @@ public struct CreateBucketInput: Swift.Sendable {
2056
2085
/// The name of the bucket to create. General purpose buckets - For information about bucket naming restrictions, see [Bucket naming rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html) in the Amazon S3 User Guide. Directory buckets - When you use this operation with a directory bucket, you must use path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name . Virtual-hosted-style requests aren't supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names must also follow the format bucket-base-name--zone-id--x-s3 (for example, DOC-EXAMPLE-BUCKET--usw2-az1--x-s3). For information about bucket naming restrictions, see [Directory bucket naming rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) in the Amazon S3 User Guide
2057
2086
/// This member is required.
2058
2087
public var bucket: Swift.String?
2088
+
/// Specifies the namespace where you want to create your general purpose bucket. When you create a general purpose bucket, you can choose to create a bucket in the shared global namespace or you can choose to create a bucket in your account regional namespace. Your account regional namespace is a subdivision of the global namespace that only your account can create buckets in. For more information on bucket namespaces, see [Namespaces for general purpose buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/gpbucketnamespaces.html). General purpose buckets in your account regional namespace must follow a specific naming convention. These buckets consist of a bucket name prefix that you create, and a suffix that contains your 12-digit Amazon Web Services Account ID, the Amazon Web Services Region code, and ends with -an. Bucket names must follow the format bucket-name-prefix-accountId-region-an (for example, amzn-s3-demo-bucket-111122223333-us-west-2-an). For information about bucket naming restrictions, see [Account regional namespace naming rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html#account-regional-naming-rules) in the Amazon S3 User Guide. This functionality is not supported for directory buckets.
2089
+
public var bucketNamespace: S3ClientTypes.BucketNamespace?
2059
2090
/// The configuration information for the bucket.
2060
2091
public var createBucketConfiguration: S3ClientTypes.CreateBucketConfiguration?
2061
2092
/// Allows grantee the read, write, read ACP, and write ACP permissions on the bucket. This functionality is not supported for directory buckets.
@@ -2076,6 +2107,7 @@ public struct CreateBucketInput: Swift.Sendable {
@@ -2792,7 +2825,7 @@ public struct CreateSessionInput: Swift.Sendable {
2792
2825
public var bucketKeyEnabled: Swift.Bool?
2793
2826
/// The server-side encryption algorithm to use when you store objects in the directory bucket. For directory buckets, there are only two supported options for server-side encryption: server-side encryption with Amazon S3 managed keys (SSE-S3) (AES256) and server-side encryption with KMS keys (SSE-KMS) (aws:kms). By default, Amazon S3 encrypts data with SSE-S3. For more information, see [Protecting data with server-side encryption](https://docs.aws.amazon.com/AmazonS3/latest/userguide/serv-side-encryption.html) in the Amazon S3 User Guide. S3 access points for Amazon FSx - When accessing data stored in Amazon FSx file systems using S3 access points, the only valid server side encryption option is aws:fsx. All Amazon FSx file systems have encryption configured by default and are encrypted at rest. Data is automatically encrypted before being written to the file system, and automatically decrypted as it is read. These processes are handled transparently by Amazon FSx.
2794
2827
public var serverSideEncryption: S3ClientTypes.ServerSideEncryption?
2795
-
/// Specifies the mode of the session that will be created, either ReadWrite or ReadOnly. By default, a ReadWrite sessionis created. A ReadWrite session is capable of executing all the Zonal endpoint API operations on a directory bucket. A ReadOnly session is constrained to execute the following Zonal endpoint API operations: GetObject, HeadObject, ListObjectsV2, GetObjectAttributes, ListParts, and ListMultipartUploads.
2828
+
/// Specifies the mode of the session that will be created, either ReadWrite or ReadOnly. If no session mode is specified, the default behavior attempts to create a session with the maximum allowable privilege. It will first attempt to create a ReadWrite session, and if that is not allowed by permissions, it will attempt to create a ReadOnly session. If neither session type is allowed, the request will return an Access Denied error. A ReadWrite session is capable of executing all the Zonal endpoint API operations on a directory bucket. A ReadOnly session is constrained to execute the following Zonal endpoint API operations: GetObject, HeadObject, ListObjectsV2, GetObjectAttributes, ListParts, and ListMultipartUploads.
2796
2829
public var sessionMode: S3ClientTypes.SessionMode?
2797
2830
/// Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object. General purpose buckets - This value must be explicitly added during CopyObject operations if you want an additional encryption context for your object. For more information, see [Encryption context](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html#encryption-context) in the Amazon S3 User Guide. Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.
0 commit comments