AWS SDK

AWS SDK

rev. 2493670155f3f484f4055f00c7816463c1a2ced2..ac5e22252d1e170d05dd8b11ceb2a7a284cd7f2e (ignoring whitespace)

Files changed:

tmp-codegen-diff/services/s3/generated-src/main/kotlin/aws/sdk/kotlin/services/s3/model/Permission.kt

@@ -27,27 +65,65 @@
   47     47   
            "WRITE" -> Write
   48     48   
            "WRITE_ACP" -> WriteAcp
   49     49   
            else -> SdkUnknown(value)
   50     50   
        }
   51     51   
   52     52   
        /**
   53     53   
         * Get a list of all possible variants
   54     54   
         */
   55     55   
        public fun values(): kotlin.collections.List<aws.sdk.kotlin.services.s3.model.Permission> = values
   56     56   
   57         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.s3.model.Permission> = listOf(
          57  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.s3.model.Permission> by lazy { listOf(
   58     58   
            FullControl,
   59     59   
            Read,
   60     60   
            ReadAcp,
   61     61   
            Write,
   62     62   
            WriteAcp,
   63         -
        )
          63  +
        ) }
   64     64   
    }
   65     65   
}

tmp-codegen-diff/services/s3/generated-src/main/kotlin/aws/sdk/kotlin/services/s3/model/Protocol.kt

@@ -9,9 +44,44 @@
   29     29   
            "http" -> Http
   30     30   
            "https" -> Https
   31     31   
            else -> SdkUnknown(value)
   32     32   
        }
   33     33   
   34     34   
        /**
   35     35   
         * Get a list of all possible variants
   36     36   
         */
   37     37   
        public fun values(): kotlin.collections.List<aws.sdk.kotlin.services.s3.model.Protocol> = values
   38     38   
   39         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.s3.model.Protocol> = listOf(
          39  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.s3.model.Protocol> by lazy { listOf(
   40     40   
            Http,
   41     41   
            Https,
   42         -
        )
          42  +
        ) }
   43     43   
    }
   44     44   
}

tmp-codegen-diff/services/s3/generated-src/main/kotlin/aws/sdk/kotlin/services/s3/model/PutBucketMetricsConfigurationRequest.kt

@@ -1,1 +101,109 @@
    2      2   
    3      3   
package aws.sdk.kotlin.services.s3.model
    4      4   
    5      5   
import aws.smithy.kotlin.runtime.SdkDsl
    6      6   
    7      7   
private val awsSdkKotlinServicesS3ModelMetricsConfigurationDslBuilderRef = aws.sdk.kotlin.services.s3.model.MetricsConfiguration
    8      8   
    9      9   
public class PutBucketMetricsConfigurationRequest private constructor(builder: Builder) {
   10     10   
    /**
   11     11   
     * The name of the bucket for which the metrics configuration is set.
          12  +
     *
          13  +
     * **Directory buckets ** - When you use this operation with a directory bucket, you must use path-style requests in the format `https://s3express-control.<i>region-code</i>.amazonaws.com/<i>bucket-name</i> `. 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 ` <i>bucket-base-name</i>--<i>zone-id</i>--x-s3` (for example, ` <i>DOC-EXAMPLE-BUCKET</i>--<i>usw2-az1</i>--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*
   12     14   
     */
   13     15   
    public val bucket: kotlin.String? = builder.bucket
   14     16   
    /**
   15     17   
     * The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code `403 Forbidden` (access denied).
          18  +
     *
          19  +
     * For directory buckets, this header is not supported in this API operation. If you specify this header, the request fails with the HTTP status code `501 Not Implemented`.
   16     20   
     */
   17     21   
    public val expectedBucketOwner: kotlin.String? = builder.expectedBucketOwner
   18     22   
    /**
   19     23   
     * The ID used to identify the metrics configuration. The ID has a 64 character limit and can only contain letters, numbers, periods, dashes, and underscores.
   20     24   
     */
   21     25   
    public val id: kotlin.String? = builder.id
   22     26   
    /**
   23     27   
     * Specifies the metrics configuration.
   24     28   
     */
   25     29   
    public val metricsConfiguration: aws.sdk.kotlin.services.s3.model.MetricsConfiguration? = builder.metricsConfiguration
   26     30   
   27     31   
    public companion object {
   28     32   
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3.model.PutBucketMetricsConfigurationRequest = Builder().apply(block).build()
   29     33   
    }
   30     34   
   31     35   
    override fun toString(): kotlin.String = buildString {
   32     36   
        append("PutBucketMetricsConfigurationRequest(")
   33     37   
        append("bucket=$bucket,")
   34     38   
        append("expectedBucketOwner=$expectedBucketOwner,")
   35     39   
        append("id=$id,")
   36     40   
        append("metricsConfiguration=$metricsConfiguration")
   37     41   
        append(")")
   38     42   
    }
   39     43   
   40     44   
    override fun hashCode(): kotlin.Int {
   41     45   
        var result = bucket?.hashCode() ?: 0
   42     46   
        result = 31 * result + (this.expectedBucketOwner?.hashCode() ?: 0)
   43     47   
        result = 31 * result + (this.id?.hashCode() ?: 0)
   44     48   
        result = 31 * result + (this.metricsConfiguration?.hashCode() ?: 0)
   45     49   
        return result
   46     50   
    }
   47     51   
   48     52   
    override fun equals(other: kotlin.Any?): kotlin.Boolean {
   49     53   
        if (this === other) return true
   50     54   
        if (other == null || this::class != other::class) return false
   51     55   
   52     56   
        other as PutBucketMetricsConfigurationRequest
   53     57   
   54     58   
        if (bucket != other.bucket) return false
   55     59   
        if (expectedBucketOwner != other.expectedBucketOwner) return false
   56     60   
        if (id != other.id) return false
   57     61   
        if (metricsConfiguration != other.metricsConfiguration) return false
   58     62   
   59     63   
        return true
   60     64   
    }
   61     65   
   62     66   
    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3.model.PutBucketMetricsConfigurationRequest = Builder(this).apply(block).build()
   63     67   
   64     68   
    @SdkDsl
   65     69   
    public class Builder {
   66     70   
        /**
   67     71   
         * The name of the bucket for which the metrics configuration is set.
          72  +
         *
          73  +
         * **Directory buckets ** - When you use this operation with a directory bucket, you must use path-style requests in the format `https://s3express-control.<i>region-code</i>.amazonaws.com/<i>bucket-name</i> `. 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 ` <i>bucket-base-name</i>--<i>zone-id</i>--x-s3` (for example, ` <i>DOC-EXAMPLE-BUCKET</i>--<i>usw2-az1</i>--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*
   68     74   
         */
   69     75   
        public var bucket: kotlin.String? = null
   70     76   
        /**
   71     77   
         * The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code `403 Forbidden` (access denied).
          78  +
         *
          79  +
         * For directory buckets, this header is not supported in this API operation. If you specify this header, the request fails with the HTTP status code `501 Not Implemented`.
   72     80   
         */
   73     81   
        public var expectedBucketOwner: kotlin.String? = null
   74     82   
        /**
   75     83   
         * The ID used to identify the metrics configuration. The ID has a 64 character limit and can only contain letters, numbers, periods, dashes, and underscores.
   76     84   
         */
   77     85   
        public var id: kotlin.String? = null
   78     86   
        /**
   79     87   
         * Specifies the metrics configuration.
   80     88   
         */
   81     89   
        public var metricsConfiguration: aws.sdk.kotlin.services.s3.model.MetricsConfiguration? = null

tmp-codegen-diff/services/s3/generated-src/main/kotlin/aws/sdk/kotlin/services/s3/model/QuoteFields.kt

@@ -9,9 +44,44 @@
   29     29   
            "ALWAYS" -> Always
   30     30   
            "ASNEEDED" -> Asneeded
   31     31   
            else -> SdkUnknown(value)
   32     32   
        }
   33     33   
   34     34   
        /**
   35     35   
         * Get a list of all possible variants
   36     36   
         */
   37     37   
        public fun values(): kotlin.collections.List<aws.sdk.kotlin.services.s3.model.QuoteFields> = values
   38     38   
   39         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.s3.model.QuoteFields> = listOf(
          39  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.s3.model.QuoteFields> by lazy { listOf(
   40     40   
            Always,
   41     41   
            Asneeded,
   42         -
        )
          42  +
        ) }
   43     43   
    }
   44     44   
}

tmp-codegen-diff/services/s3/generated-src/main/kotlin/aws/sdk/kotlin/services/s3/model/ReplicaModificationsStatus.kt

@@ -9,9 +44,44 @@
   29     29   
            "Disabled" -> Disabled
   30     30   
            "Enabled" -> Enabled
   31     31   
            else -> SdkUnknown(value)
   32     32   
        }
   33     33   
   34     34   
        /**
   35     35   
         * Get a list of all possible variants
   36     36   
         */
   37     37   
        public fun values(): kotlin.collections.List<aws.sdk.kotlin.services.s3.model.ReplicaModificationsStatus> = values
   38     38   
   39         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.s3.model.ReplicaModificationsStatus> = listOf(
          39  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.s3.model.ReplicaModificationsStatus> by lazy { listOf(
   40     40   
            Disabled,
   41     41   
            Enabled,
   42         -
        )
          42  +
        ) }
   43     43   
    }
   44     44   
}

tmp-codegen-diff/services/s3/generated-src/main/kotlin/aws/sdk/kotlin/services/s3/model/ReplicationRuleStatus.kt

@@ -9,9 +44,44 @@
   29     29   
            "Disabled" -> Disabled
   30     30   
            "Enabled" -> Enabled
   31     31   
            else -> SdkUnknown(value)
   32     32   
        }
   33     33   
   34     34   
        /**
   35     35   
         * Get a list of all possible variants
   36     36   
         */
   37     37   
        public fun values(): kotlin.collections.List<aws.sdk.kotlin.services.s3.model.ReplicationRuleStatus> = values
   38     38   
   39         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.s3.model.ReplicationRuleStatus> = listOf(
          39  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.s3.model.ReplicationRuleStatus> by lazy { listOf(
   40     40   
            Disabled,
   41     41   
            Enabled,
   42         -
        )
          42  +
        ) }
   43     43   
    }
   44     44   
}

tmp-codegen-diff/services/s3/generated-src/main/kotlin/aws/sdk/kotlin/services/s3/model/ReplicationStatus.kt

@@ -27,27 +65,65 @@
   47     47   
            "PENDING" -> Pending
   48     48   
            "REPLICA" -> Replica
   49     49   
            else -> SdkUnknown(value)
   50     50   
        }
   51     51   
   52     52   
        /**
   53     53   
         * Get a list of all possible variants
   54     54   
         */
   55     55   
        public fun values(): kotlin.collections.List<aws.sdk.kotlin.services.s3.model.ReplicationStatus> = values
   56     56   
   57         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.s3.model.ReplicationStatus> = listOf(
          57  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.s3.model.ReplicationStatus> by lazy { listOf(
   58     58   
            Complete,
   59     59   
            Completed,
   60     60   
            Failed,
   61     61   
            Pending,
   62     62   
            Replica,
   63         -
        )
          63  +
        ) }
   64     64   
    }
   65     65   
}

tmp-codegen-diff/services/s3/generated-src/main/kotlin/aws/sdk/kotlin/services/s3/model/ReplicationTimeStatus.kt

@@ -9,9 +44,44 @@
   29     29   
            "Disabled" -> Disabled
   30     30   
            "Enabled" -> Enabled
   31     31   
            else -> SdkUnknown(value)
   32     32   
        }
   33     33   
   34     34   
        /**
   35     35   
         * Get a list of all possible variants
   36     36   
         */
   37     37   
        public fun values(): kotlin.collections.List<aws.sdk.kotlin.services.s3.model.ReplicationTimeStatus> = values
   38     38   
   39         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.s3.model.ReplicationTimeStatus> = listOf(
          39  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.s3.model.ReplicationTimeStatus> by lazy { listOf(
   40     40   
            Disabled,
   41     41   
            Enabled,
   42         -
        )
          42  +
        ) }
   43     43   
    }
   44     44   
}

tmp-codegen-diff/services/s3/generated-src/main/kotlin/aws/sdk/kotlin/services/s3/model/RequestCharged.kt

@@ -8,8 +42,42 @@
   28     28   
        public fun fromValue(value: kotlin.String): aws.sdk.kotlin.services.s3.model.RequestCharged = when (value) {
   29     29   
            "requester" -> Requester
   30     30   
            else -> SdkUnknown(value)
   31     31   
        }
   32     32   
   33     33   
        /**
   34     34   
         * Get a list of all possible variants
   35     35   
         */
   36     36   
        public fun values(): kotlin.collections.List<aws.sdk.kotlin.services.s3.model.RequestCharged> = values
   37     37   
   38         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.s3.model.RequestCharged> = listOf(
          38  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.s3.model.RequestCharged> by lazy { listOf(
   39     39   
            Requester,
   40         -
        )
          40  +
        ) }
   41     41   
    }
   42     42   
}

tmp-codegen-diff/services/s3/generated-src/main/kotlin/aws/sdk/kotlin/services/s3/model/RequestPayer.kt

@@ -8,8 +42,42 @@
   28     28   
        public fun fromValue(value: kotlin.String): aws.sdk.kotlin.services.s3.model.RequestPayer = when (value) {
   29     29   
            "requester" -> Requester
   30     30   
            else -> SdkUnknown(value)
   31     31   
        }
   32     32   
   33     33   
        /**
   34     34   
         * Get a list of all possible variants
   35     35   
         */
   36     36   
        public fun values(): kotlin.collections.List<aws.sdk.kotlin.services.s3.model.RequestPayer> = values
   37     37   
   38         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.s3.model.RequestPayer> = listOf(
          38  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.s3.model.RequestPayer> by lazy { listOf(
   39     39   
            Requester,
   40         -
        )
          40  +
        ) }
   41     41   
    }
   42     42   
}

tmp-codegen-diff/services/s3/generated-src/main/kotlin/aws/sdk/kotlin/services/s3/model/RestoreRequestType.kt

@@ -3,3 +37,37 @@
   23     23   
        public fun fromValue(value: kotlin.String): aws.sdk.kotlin.services.s3.model.RestoreRequestType = when (value) {
   24     24   
            "SELECT" -> Select
   25     25   
            else -> SdkUnknown(value)
   26     26   
        }
   27     27   
   28     28   
        /**
   29     29   
         * Get a list of all possible variants
   30     30   
         */
   31     31   
        public fun values(): kotlin.collections.List<aws.sdk.kotlin.services.s3.model.RestoreRequestType> = values
   32     32   
   33         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.s3.model.RestoreRequestType> = listOf(
          33  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.s3.model.RestoreRequestType> by lazy { listOf(
   34     34   
            Select,
   35         -
        )
          35  +
        ) }
   36     36   
    }
   37     37   
}

tmp-codegen-diff/services/s3/generated-src/main/kotlin/aws/sdk/kotlin/services/s3/model/S3TablesBucketType.kt

@@ -9,9 +44,44 @@
   29     29   
            "aws" -> Aws
   30     30   
            "customer" -> Customer
   31     31   
            else -> SdkUnknown(value)
   32     32   
        }
   33     33   
   34     34   
        /**
   35     35   
         * Get a list of all possible variants
   36     36   
         */
   37     37   
        public fun values(): kotlin.collections.List<aws.sdk.kotlin.services.s3.model.S3TablesBucketType> = values
   38     38   
   39         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.s3.model.S3TablesBucketType> = listOf(
          39  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.s3.model.S3TablesBucketType> by lazy { listOf(
   40     40   
            Aws,
   41     41   
            Customer,
   42         -
        )
          42  +
        ) }
   43     43   
    }
   44     44   
}

tmp-codegen-diff/services/s3/generated-src/main/kotlin/aws/sdk/kotlin/services/s3/model/ServerSideEncryption.kt

@@ -21,21 +58,58 @@
   41     41   
            "aws:kms" -> AwsKms
   42     42   
            "aws:kms:dsse" -> AwsKmsDsse
   43     43   
            else -> SdkUnknown(value)
   44     44   
        }
   45     45   
   46     46   
        /**
   47     47   
         * Get a list of all possible variants
   48     48   
         */
   49     49   
        public fun values(): kotlin.collections.List<aws.sdk.kotlin.services.s3.model.ServerSideEncryption> = values
   50     50   
   51         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.s3.model.ServerSideEncryption> = listOf(
          51  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.s3.model.ServerSideEncryption> by lazy { listOf(
   52     52   
            Aes256,
   53     53   
            AwsFsx,
   54     54   
            AwsKms,
   55     55   
            AwsKmsDsse,
   56         -
        )
          56  +
        ) }
   57     57   
    }
   58     58   
}

tmp-codegen-diff/services/s3/generated-src/main/kotlin/aws/sdk/kotlin/services/s3/model/SessionMode.kt

@@ -9,9 +44,44 @@
   29     29   
            "ReadOnly" -> ReadOnly
   30     30   
            "ReadWrite" -> ReadWrite
   31     31   
            else -> SdkUnknown(value)
   32     32   
        }
   33     33   
   34     34   
        /**
   35     35   
         * Get a list of all possible variants
   36     36   
         */
   37     37   
        public fun values(): kotlin.collections.List<aws.sdk.kotlin.services.s3.model.SessionMode> = values
   38     38   
   39         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.s3.model.SessionMode> = listOf(
          39  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.s3.model.SessionMode> by lazy { listOf(
   40     40   
            ReadOnly,
   41     41   
            ReadWrite,
   42         -
        )
          42  +
        ) }
   43     43   
    }
   44     44   
}

tmp-codegen-diff/services/s3/generated-src/main/kotlin/aws/sdk/kotlin/services/s3/model/SseKmsEncryptedObjectsStatus.kt

@@ -9,9 +44,44 @@
   29     29   
            "Disabled" -> Disabled
   30     30   
            "Enabled" -> Enabled
   31     31   
            else -> SdkUnknown(value)
   32     32   
        }
   33     33   
   34     34   
        /**
   35     35   
         * Get a list of all possible variants
   36     36   
         */
   37     37   
        public fun values(): kotlin.collections.List<aws.sdk.kotlin.services.s3.model.SseKmsEncryptedObjectsStatus> = values
   38     38   
   39         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.s3.model.SseKmsEncryptedObjectsStatus> = listOf(
          39  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.s3.model.SseKmsEncryptedObjectsStatus> by lazy { listOf(
   40     40   
            Disabled,
   41     41   
            Enabled,
   42         -
        )
          42  +
        ) }
   43     43   
    }
   44     44   
}

tmp-codegen-diff/services/s3/generated-src/main/kotlin/aws/sdk/kotlin/services/s3/model/StorageClass.kt

@@ -75,75 +121,121 @@
   95     95   
            "STANDARD" -> Standard
   96     96   
            "STANDARD_IA" -> StandardIa
   97     97   
            else -> SdkUnknown(value)
   98     98   
        }
   99     99   
  100    100   
        /**
  101    101   
         * Get a list of all possible variants
  102    102   
         */
  103    103   
        public fun values(): kotlin.collections.List<aws.sdk.kotlin.services.s3.model.StorageClass> = values
  104    104   
  105         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.s3.model.StorageClass> = listOf(
         105  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.s3.model.StorageClass> by lazy { listOf(
  106    106   
            DeepArchive,
  107    107   
            ExpressOnezone,
  108    108   
            FsxOntap,
  109    109   
            FsxOpenzfs,
  110    110   
            Glacier,
  111    111   
            GlacierIr,
  112    112   
            IntelligentTiering,
  113    113   
            OnezoneIa,
  114    114   
            Outposts,
  115    115   
            ReducedRedundancy,
  116    116   
            Snow,
  117    117   
            Standard,
  118    118   
            StandardIa,
  119         -
        )
         119  +
        ) }
  120    120   
    }
  121    121   
}