AWS SDK

AWS SDK

rev. 2493670155f3f484f4055f00c7816463c1a2ced2..ac5e22252d1e170d05dd8b11ceb2a7a284cd7f2e

Files changed:

tmp-codegen-diff/services/ec2/generated-src/main/kotlin/aws/sdk/kotlin/services/ec2/model/AsnAssociationState.kt

@@ -33,33 +72,72 @@
   53     53   
            "pending-association" -> PendingAssociation
   54     54   
            "pending-disassociation" -> PendingDisassociation
   55     55   
            else -> SdkUnknown(value)
   56     56   
        }
   57     57   
   58     58   
        /**
   59     59   
         * Get a list of all possible variants
   60     60   
         */
   61     61   
        public fun values(): kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.AsnAssociationState> = values
   62     62   
   63         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.AsnAssociationState> = listOf(
          63  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.AsnAssociationState> by lazy { listOf(
   64     64   
            Associated,
   65     65   
            Disassociated,
   66     66   
            FailedAssociation,
   67     67   
            FailedDisassociation,
   68     68   
            PendingAssociation,
   69     69   
            PendingDisassociation,
   70         -
        )
          70  +
        ) }
   71     71   
    }
   72     72   
}

tmp-codegen-diff/services/ec2/generated-src/main/kotlin/aws/sdk/kotlin/services/ec2/model/AsnState.kt

@@ -33,33 +72,72 @@
   53     53   
            "pending-provision" -> PendingProvision
   54     54   
            "provisioned" -> Provisioned
   55     55   
            else -> SdkUnknown(value)
   56     56   
        }
   57     57   
   58     58   
        /**
   59     59   
         * Get a list of all possible variants
   60     60   
         */
   61     61   
        public fun values(): kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.AsnState> = values
   62     62   
   63         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.AsnState> = listOf(
          63  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.AsnState> by lazy { listOf(
   64     64   
            Deprovisioned,
   65     65   
            FailedDeprovision,
   66     66   
            FailedProvision,
   67     67   
            PendingDeprovision,
   68     68   
            PendingProvision,
   69     69   
            Provisioned,
   70         -
        )
          70  +
        ) }
   71     71   
    }
   72     72   
}

tmp-codegen-diff/services/ec2/generated-src/main/kotlin/aws/sdk/kotlin/services/ec2/model/AssociateClientVpnTargetNetworkRequest.kt

@@ -1,1 +99,123 @@
    1      1   
// Code generated by smithy-kotlin codegen. DO NOT EDIT!
    2      2   
    3      3   
package aws.sdk.kotlin.services.ec2.model
    4      4   
    5      5   
import aws.smithy.kotlin.runtime.SdkDsl
    6      6   
    7      7   
    8      8   
public class AssociateClientVpnTargetNetworkRequest private constructor(builder: Builder) {
           9  +
    /**
          10  +
     * The Availability Zone name for the Transit Gateway association. Required if when associating an Availability Zone with a Client VPN endpoint that uses a Transit Gateway. You cannot specify both `SubnetId` and `AvailabilityZone`.
          11  +
     */
          12  +
    public val availabilityZone: kotlin.String? = builder.availabilityZone
          13  +
    /**
          14  +
     * The Availability Zone ID for the Transit Gateway association. Required if when associating an Availability Zone with a Client VPN endpoint that uses a Transit Gateway. You cannot specify both `AvailabilityZone` and `AvailabilityZoneId`.
          15  +
     */
          16  +
    public val availabilityZoneId: kotlin.String? = builder.availabilityZoneId
    9     17   
    /**
   10     18   
     * Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see [Ensuring idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html).
   11     19   
     */
   12     20   
    public val clientToken: kotlin.String? = builder.clientToken
   13     21   
    /**
   14     22   
     * The ID of the Client VPN endpoint.
   15     23   
     */
   16     24   
    public val clientVpnEndpointId: kotlin.String? = builder.clientVpnEndpointId
   17     25   
    /**
   18     26   
     * Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
   19     27   
     */
   20     28   
    public val dryRun: kotlin.Boolean? = builder.dryRun
   21     29   
    /**
   22         -
     * The ID of the subnet to associate with the Client VPN endpoint.
          30  +
     * The ID of the subnet to associate with the Client VPN endpoint. Required for VPC-based endpoints. For Transit Gateway-based endpoints, use `AvailabilityZone` or `AvailabilityZoneId` instead.
   23     31   
     */
   24     32   
    public val subnetId: kotlin.String? = builder.subnetId
   25     33   
   26     34   
    public companion object {
   27     35   
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ec2.model.AssociateClientVpnTargetNetworkRequest = Builder().apply(block).build()
   28     36   
    }
   29     37   
   30     38   
    override fun toString(): kotlin.String = buildString {
   31     39   
        append("AssociateClientVpnTargetNetworkRequest(")
          40  +
        append("availabilityZone=$availabilityZone,")
          41  +
        append("availabilityZoneId=$availabilityZoneId,")
   32     42   
        append("clientToken=$clientToken,")
   33     43   
        append("clientVpnEndpointId=$clientVpnEndpointId,")
   34     44   
        append("dryRun=$dryRun,")
   35     45   
        append("subnetId=$subnetId")
   36     46   
        append(")")
   37     47   
    }
   38     48   
   39     49   
    override fun hashCode(): kotlin.Int {
   40         -
        var result = clientToken?.hashCode() ?: 0
          50  +
        var result = availabilityZone?.hashCode() ?: 0
          51  +
        result = 31 * result + (this.availabilityZoneId?.hashCode() ?: 0)
          52  +
        result = 31 * result + (this.clientToken?.hashCode() ?: 0)
   41     53   
        result = 31 * result + (this.clientVpnEndpointId?.hashCode() ?: 0)
   42     54   
        result = 31 * result + (this.dryRun?.hashCode() ?: 0)
   43     55   
        result = 31 * result + (this.subnetId?.hashCode() ?: 0)
   44     56   
        return result
   45     57   
    }
   46     58   
   47     59   
    override fun equals(other: kotlin.Any?): kotlin.Boolean {
   48     60   
        if (this === other) return true
   49     61   
        if (other == null || this::class != other::class) return false
   50     62   
   51     63   
        other as AssociateClientVpnTargetNetworkRequest
   52     64   
          65  +
        if (availabilityZone != other.availabilityZone) return false
          66  +
        if (availabilityZoneId != other.availabilityZoneId) return false
   53     67   
        if (clientToken != other.clientToken) return false
   54     68   
        if (clientVpnEndpointId != other.clientVpnEndpointId) return false
   55     69   
        if (dryRun != other.dryRun) return false
   56     70   
        if (subnetId != other.subnetId) return false
   57     71   
   58     72   
        return true
   59     73   
    }
   60     74   
   61     75   
    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ec2.model.AssociateClientVpnTargetNetworkRequest = Builder(this).apply(block).build()
   62     76   
   63     77   
    @SdkDsl
   64     78   
    public class Builder {
          79  +
        /**
          80  +
         * The Availability Zone name for the Transit Gateway association. Required if when associating an Availability Zone with a Client VPN endpoint that uses a Transit Gateway. You cannot specify both `SubnetId` and `AvailabilityZone`.
          81  +
         */
          82  +
        public var availabilityZone: kotlin.String? = null
          83  +
        /**
          84  +
         * The Availability Zone ID for the Transit Gateway association. Required if when associating an Availability Zone with a Client VPN endpoint that uses a Transit Gateway. You cannot specify both `AvailabilityZone` and `AvailabilityZoneId`.
          85  +
         */
          86  +
        public var availabilityZoneId: kotlin.String? = null
   65     87   
        /**
   66     88   
         * Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see [Ensuring idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html).
   67     89   
         */
   68     90   
        public var clientToken: kotlin.String? = null
   69     91   
        /**
   70     92   
         * The ID of the Client VPN endpoint.
   71     93   
         */
   72     94   
        public var clientVpnEndpointId: kotlin.String? = null
   73     95   
        /**
   74     96   
         * Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
   75     97   
         */
   76     98   
        public var dryRun: kotlin.Boolean? = null
   77     99   
        /**
   78         -
         * The ID of the subnet to associate with the Client VPN endpoint.
         100  +
         * The ID of the subnet to associate with the Client VPN endpoint. Required for VPC-based endpoints. For Transit Gateway-based endpoints, use `AvailabilityZone` or `AvailabilityZoneId` instead.
   79    101   
         */
   80    102   
        public var subnetId: kotlin.String? = null
   81    103   
   82    104   
        @PublishedApi
   83    105   
        internal constructor()
   84    106   
        @PublishedApi
   85    107   
        internal constructor(x: aws.sdk.kotlin.services.ec2.model.AssociateClientVpnTargetNetworkRequest) : this() {
         108  +
            this.availabilityZone = x.availabilityZone
         109  +
            this.availabilityZoneId = x.availabilityZoneId
   86    110   
            this.clientToken = x.clientToken
   87    111   
            this.clientVpnEndpointId = x.clientVpnEndpointId
   88    112   
            this.dryRun = x.dryRun
   89    113   
            this.subnetId = x.subnetId
   90    114   
        }
   91    115   
   92    116   
        @PublishedApi
   93    117   
        internal fun build(): aws.sdk.kotlin.services.ec2.model.AssociateClientVpnTargetNetworkRequest = AssociateClientVpnTargetNetworkRequest(this)
   94    118   
   95    119   
        internal fun correctErrors(): Builder {

tmp-codegen-diff/services/ec2/generated-src/main/kotlin/aws/sdk/kotlin/services/ec2/model/AssociatedNetworkType.kt

@@ -3,3 +37,37 @@
   23     23   
        public fun fromValue(value: kotlin.String): aws.sdk.kotlin.services.ec2.model.AssociatedNetworkType = when (value) {
   24     24   
            "vpc" -> Vpc
   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.ec2.model.AssociatedNetworkType> = values
   32     32   
   33         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.AssociatedNetworkType> = listOf(
          33  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.AssociatedNetworkType> by lazy { listOf(
   34     34   
            Vpc,
   35         -
        )
          35  +
        ) }
   36     36   
    }
   37     37   
}

tmp-codegen-diff/services/ec2/generated-src/main/kotlin/aws/sdk/kotlin/services/ec2/model/AssociationStatusCode.kt

@@ -27,27 +65,65 @@
   47     47   
            "disassociated" -> Disassociated
   48     48   
            "disassociating" -> Disassociating
   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.ec2.model.AssociationStatusCode> = values
   56     56   
   57         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.AssociationStatusCode> = listOf(
          57  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.AssociationStatusCode> by lazy { listOf(
   58     58   
            Associated,
   59     59   
            Associating,
   60     60   
            AssociationFailed,
   61     61   
            Disassociated,
   62     62   
            Disassociating,
   63         -
        )
          63  +
        ) }
   64     64   
    }
   65     65   
}

tmp-codegen-diff/services/ec2/generated-src/main/kotlin/aws/sdk/kotlin/services/ec2/model/AttachmentLimitType.kt

@@ -9,9 +44,44 @@
   29     29   
            "dedicated" -> Dedicated
   30     30   
            "shared" -> Shared
   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.ec2.model.AttachmentLimitType> = values
   38     38   
   39         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.AttachmentLimitType> = listOf(
          39  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.AttachmentLimitType> by lazy { listOf(
   40     40   
            Dedicated,
   41     41   
            Shared,
   42         -
        )
          42  +
        ) }
   43     43   
    }
   44     44   
}

tmp-codegen-diff/services/ec2/generated-src/main/kotlin/aws/sdk/kotlin/services/ec2/model/AttachmentStatus.kt

@@ -21,21 +58,58 @@
   41     41   
            "detached" -> Detached
   42     42   
            "detaching" -> Detaching
   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.ec2.model.AttachmentStatus> = values
   50     50   
   51         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.AttachmentStatus> = listOf(
          51  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.AttachmentStatus> by lazy { listOf(
   52     52   
            Attached,
   53     53   
            Attaching,
   54     54   
            Detached,
   55     55   
            Detaching,
   56         -
        )
          56  +
        ) }
   57     57   
    }
   58     58   
}

tmp-codegen-diff/services/ec2/generated-src/main/kotlin/aws/sdk/kotlin/services/ec2/model/AutoAcceptSharedAssociationsValue.kt

@@ -9,9 +44,44 @@
   29     29   
            "disable" -> Disable
   30     30   
            "enable" -> Enable
   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.ec2.model.AutoAcceptSharedAssociationsValue> = values
   38     38   
   39         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.AutoAcceptSharedAssociationsValue> = listOf(
          39  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.AutoAcceptSharedAssociationsValue> by lazy { listOf(
   40     40   
            Disable,
   41     41   
            Enable,
   42         -
        )
          42  +
        ) }
   43     43   
    }
   44     44   
}

tmp-codegen-diff/services/ec2/generated-src/main/kotlin/aws/sdk/kotlin/services/ec2/model/AutoAcceptSharedAttachmentsValue.kt

@@ -9,9 +44,44 @@
   29     29   
            "disable" -> Disable
   30     30   
            "enable" -> Enable
   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.ec2.model.AutoAcceptSharedAttachmentsValue> = values
   38     38   
   39         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.AutoAcceptSharedAttachmentsValue> = listOf(
          39  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.AutoAcceptSharedAttachmentsValue> by lazy { listOf(
   40     40   
            Disable,
   41     41   
            Enable,
   42         -
        )
          42  +
        ) }
   43     43   
    }
   44     44   
}

tmp-codegen-diff/services/ec2/generated-src/main/kotlin/aws/sdk/kotlin/services/ec2/model/AutoPlacement.kt

@@ -9,9 +44,44 @@
   29     29   
            "off" -> Off
   30     30   
            "on" -> On
   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.ec2.model.AutoPlacement> = values
   38     38   
   39         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.AutoPlacement> = listOf(
          39  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.AutoPlacement> by lazy { listOf(
   40     40   
            Off,
   41     41   
            On,
   42         -
        )
          42  +
        ) }
   43     43   
    }
   44     44   
}

tmp-codegen-diff/services/ec2/generated-src/main/kotlin/aws/sdk/kotlin/services/ec2/model/AutoProvisionZonesState.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.ec2.model.AutoProvisionZonesState> = values
   38     38   
   39         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.AutoProvisionZonesState> = listOf(
          39  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.AutoProvisionZonesState> by lazy { listOf(
   40     40   
            Disabled,
   41     41   
            Enabled,
   42         -
        )
          42  +
        ) }
   43     43   
    }
   44     44   
}

tmp-codegen-diff/services/ec2/generated-src/main/kotlin/aws/sdk/kotlin/services/ec2/model/AutoScalingIpsState.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.ec2.model.AutoScalingIpsState> = values
   38     38   
   39         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.AutoScalingIpsState> = listOf(
          39  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.AutoScalingIpsState> by lazy { listOf(
   40     40   
            Disabled,
   41     41   
            Enabled,
   42         -
        )
          42  +
        ) }
   43     43   
    }
   44     44   
}

tmp-codegen-diff/services/ec2/generated-src/main/kotlin/aws/sdk/kotlin/services/ec2/model/AvailabilityMode.kt

@@ -9,9 +44,44 @@
   29     29   
            "regional" -> Regional
   30     30   
            "zonal" -> Zonal
   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.ec2.model.AvailabilityMode> = values
   38     38   
   39         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.AvailabilityMode> = listOf(
          39  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.AvailabilityMode> by lazy { listOf(
   40     40   
            Regional,
   41     41   
            Zonal,
   42         -
        )
          42  +
        ) }
   43     43   
    }
   44     44   
}

tmp-codegen-diff/services/ec2/generated-src/main/kotlin/aws/sdk/kotlin/services/ec2/model/AvailabilityZoneOptInStatus.kt

@@ -15,15 +51,51 @@
   35     35   
            "opt-in-not-required" -> OptInNotRequired
   36     36   
            "opted-in" -> OptedIn
   37     37   
            else -> SdkUnknown(value)
   38     38   
        }
   39     39   
   40     40   
        /**
   41     41   
         * Get a list of all possible variants
   42     42   
         */
   43     43   
        public fun values(): kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.AvailabilityZoneOptInStatus> = values
   44     44   
   45         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.AvailabilityZoneOptInStatus> = listOf(
          45  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.AvailabilityZoneOptInStatus> by lazy { listOf(
   46     46   
            NotOptedIn,
   47     47   
            OptInNotRequired,
   48     48   
            OptedIn,
   49         -
        )
          49  +
        ) }
   50     50   
    }
   51     51   
}

tmp-codegen-diff/services/ec2/generated-src/main/kotlin/aws/sdk/kotlin/services/ec2/model/AvailabilityZoneState.kt

@@ -27,27 +65,65 @@
   47     47   
            "information" -> Information
   48     48   
            "unavailable" -> Unavailable
   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.ec2.model.AvailabilityZoneState> = values
   56     56   
   57         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.AvailabilityZoneState> = listOf(
          57  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.AvailabilityZoneState> by lazy { listOf(
   58     58   
            Available,
   59     59   
            Constrained,
   60     60   
            Impaired,
   61     61   
            Information,
   62     62   
            Unavailable,
   63         -
        )
          63  +
        ) }
   64     64   
    }
   65     65   
}

tmp-codegen-diff/services/ec2/generated-src/main/kotlin/aws/sdk/kotlin/services/ec2/model/BandwidthWeightingType.kt

@@ -15,15 +51,51 @@
   35     35   
            "ebs-1" -> Ebs1
   36     36   
            "vpc-1" -> Vpc1
   37     37   
            else -> SdkUnknown(value)
   38     38   
        }
   39     39   
   40     40   
        /**
   41     41   
         * Get a list of all possible variants
   42     42   
         */
   43     43   
        public fun values(): kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.BandwidthWeightingType> = values
   44     44   
   45         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.BandwidthWeightingType> = listOf(
          45  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.BandwidthWeightingType> by lazy { listOf(
   46     46   
            Default,
   47     47   
            Ebs1,
   48     48   
            Vpc1,
   49         -
        )
          49  +
        ) }
   50     50   
    }
   51     51   
}