AWS SDK

AWS SDK

rev. 2493670155f3f484f4055f00c7816463c1a2ced2..ac5e22252d1e170d05dd8b11ceb2a7a284cd7f2e (ignoring whitespace)

Files changed:

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

@@ -33,33 +72,72 @@
   53     53   
            "failed" -> Failed
   54     54   
            "failing" -> Failing
   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.SubnetCidrBlockStateCode> = values
   62     62   
   63         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.SubnetCidrBlockStateCode> = listOf(
          63  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.SubnetCidrBlockStateCode> by lazy { listOf(
   64     64   
            Associated,
   65     65   
            Associating,
   66     66   
            Disassociated,
   67     67   
            Disassociating,
   68     68   
            Failed,
   69     69   
            Failing,
   70         -
        )
          70  +
        ) }
   71     71   
    }
   72     72   
}

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

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

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

@@ -27,27 +65,65 @@
   47     47   
            "pending" -> Pending
   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.SubnetState> = values
   56     56   
   57         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.SubnetState> = listOf(
          57  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.SubnetState> by lazy { listOf(
   58     58   
            Available,
   59     59   
            Failed,
   60     60   
            FailedInsufficientCapacity,
   61     61   
            Pending,
   62     62   
            Unavailable,
   63         -
        )
          63  +
        ) }
   64     64   
    }
   65     65   
}

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

@@ -27,27 +65,65 @@
   47     47   
            "not-applicable" -> NotApplicable
   48     48   
            "ok" -> Ok
   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.SummaryStatus> = values
   56     56   
   57         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.SummaryStatus> = listOf(
          57  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.SummaryStatus> by lazy { listOf(
   58     58   
            Impaired,
   59     59   
            Initializing,
   60     60   
            InsufficientData,
   61     61   
            NotApplicable,
   62     62   
            Ok,
   63         -
        )
          63  +
        ) }
   64     64   
    }
   65     65   
}

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

@@ -9,9 +44,44 @@
   29     29   
            "amd-sev-snp" -> AmdSevSnp
   30     30   
            "nested-virtualization" -> NestedVirtualization
   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.SupportedAdditionalProcessorFeature> = values
   38     38   
   39         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.SupportedAdditionalProcessorFeature> = listOf(
          39  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.SupportedAdditionalProcessorFeature> by lazy { listOf(
   40     40   
            AmdSevSnp,
   41     41   
            NestedVirtualization,
   42         -
        )
          42  +
        ) }
   43     43   
    }
   44     44   
}

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

@@ -15,15 +51,51 @@
   35     35   
            "units" -> Units
   36     36   
            "vcpu" -> Vcpu
   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.TargetCapacityUnitType> = values
   44     44   
   45         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.TargetCapacityUnitType> = listOf(
          45  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.TargetCapacityUnitType> by lazy { listOf(
   46     46   
            MemoryMib,
   47     47   
            Units,
   48     48   
            Vcpu,
   49         -
        )
          49  +
        ) }
   50     50   
    }
   51     51   
}

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

@@ -1,1 +134,158 @@
    7      7   
private val awsSdkKotlinServicesEc2ModelAssociationStatusDslBuilderRef = aws.sdk.kotlin.services.ec2.model.AssociationStatus
    8      8   
    9      9   
/**
   10     10   
 * Describes a target network associated with a Client VPN endpoint.
   11     11   
 */
   12     12   
public class TargetNetwork private constructor(builder: Builder) {
   13     13   
    /**
   14     14   
     * The ID of the association.
   15     15   
     */
   16     16   
    public val associationId: kotlin.String? = builder.associationId
          17  +
    /**
          18  +
     * The Availability Zone IDs for the target network association, if the Client VPN endpoint uses a Transit Gateway.
          19  +
     */
          20  +
    public val availabilityZoneIds: List<String>? = builder.availabilityZoneIds
          21  +
    /**
          22  +
     * The Availability Zone names for the target network association, if the Client VPN endpoint uses a Transit Gateway.
          23  +
     */
          24  +
    public val availabilityZones: List<String>? = builder.availabilityZones
   17     25   
    /**
   18     26   
     * The ID of the Client VPN endpoint with which the target network is associated.
   19     27   
     */
   20     28   
    public val clientVpnEndpointId: kotlin.String? = builder.clientVpnEndpointId
   21     29   
    /**
   22     30   
     * The IDs of the security groups applied to the target network association.
   23     31   
     */
   24     32   
    public val securityGroups: List<String>? = builder.securityGroups
   25     33   
    /**
   26     34   
     * The current state of the target network association.
   27     35   
     */
   28     36   
    public val status: aws.sdk.kotlin.services.ec2.model.AssociationStatus? = builder.status
   29     37   
    /**
   30     38   
     * The ID of the subnet specified as the target network.
   31     39   
     */
   32     40   
    public val targetNetworkId: kotlin.String? = builder.targetNetworkId
   33     41   
    /**
   34     42   
     * The ID of the VPC in which the target network (subnet) is located.
   35     43   
     */
   36     44   
    public val vpcId: kotlin.String? = builder.vpcId
   37     45   
   38     46   
    public companion object {
   39     47   
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ec2.model.TargetNetwork = Builder().apply(block).build()
   40     48   
    }
   41     49   
   42     50   
    override fun toString(): kotlin.String = buildString {
   43     51   
        append("TargetNetwork(")
   44     52   
        append("associationId=$associationId,")
          53  +
        append("availabilityZoneIds=$availabilityZoneIds,")
          54  +
        append("availabilityZones=$availabilityZones,")
   45     55   
        append("clientVpnEndpointId=$clientVpnEndpointId,")
   46     56   
        append("securityGroups=$securityGroups,")
   47     57   
        append("status=$status,")
   48     58   
        append("targetNetworkId=$targetNetworkId,")
   49     59   
        append("vpcId=$vpcId")
   50     60   
        append(")")
   51     61   
    }
   52     62   
   53     63   
    override fun hashCode(): kotlin.Int {
   54     64   
        var result = associationId?.hashCode() ?: 0
          65  +
        result = 31 * result + (this.availabilityZoneIds?.hashCode() ?: 0)
          66  +
        result = 31 * result + (this.availabilityZones?.hashCode() ?: 0)
   55     67   
        result = 31 * result + (this.clientVpnEndpointId?.hashCode() ?: 0)
   56     68   
        result = 31 * result + (this.securityGroups?.hashCode() ?: 0)
   57     69   
        result = 31 * result + (this.status?.hashCode() ?: 0)
   58     70   
        result = 31 * result + (this.targetNetworkId?.hashCode() ?: 0)
   59     71   
        result = 31 * result + (this.vpcId?.hashCode() ?: 0)
   60     72   
        return result
   61     73   
    }
   62     74   
   63     75   
    override fun equals(other: kotlin.Any?): kotlin.Boolean {
   64     76   
        if (this === other) return true
   65     77   
        if (other == null || this::class != other::class) return false
   66     78   
   67     79   
        other as TargetNetwork
   68     80   
   69     81   
        if (associationId != other.associationId) return false
          82  +
        if (availabilityZoneIds != other.availabilityZoneIds) return false
          83  +
        if (availabilityZones != other.availabilityZones) return false
   70     84   
        if (clientVpnEndpointId != other.clientVpnEndpointId) return false
   71     85   
        if (securityGroups != other.securityGroups) return false
   72     86   
        if (status != other.status) return false
   73     87   
        if (targetNetworkId != other.targetNetworkId) return false
   74     88   
        if (vpcId != other.vpcId) return false
   75     89   
   76     90   
        return true
   77     91   
    }
   78     92   
   79     93   
    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ec2.model.TargetNetwork = Builder(this).apply(block).build()
   80     94   
   81     95   
    @SdkDsl
   82     96   
    public class Builder {
   83     97   
        /**
   84     98   
         * The ID of the association.
   85     99   
         */
   86    100   
        public var associationId: kotlin.String? = null
         101  +
        /**
         102  +
         * The Availability Zone IDs for the target network association, if the Client VPN endpoint uses a Transit Gateway.
         103  +
         */
         104  +
        public var availabilityZoneIds: List<String>? = null
         105  +
        /**
         106  +
         * The Availability Zone names for the target network association, if the Client VPN endpoint uses a Transit Gateway.
         107  +
         */
         108  +
        public var availabilityZones: List<String>? = null
   87    109   
        /**
   88    110   
         * The ID of the Client VPN endpoint with which the target network is associated.
   89    111   
         */
   90    112   
        public var clientVpnEndpointId: kotlin.String? = null
   91    113   
        /**
   92    114   
         * The IDs of the security groups applied to the target network association.
   93    115   
         */
   94    116   
        public var securityGroups: List<String>? = null
   95    117   
        /**
   96    118   
         * The current state of the target network association.
   97    119   
         */
   98    120   
        public var status: aws.sdk.kotlin.services.ec2.model.AssociationStatus? = null
   99    121   
        /**
  100    122   
         * The ID of the subnet specified as the target network.
  101    123   
         */
  102    124   
        public var targetNetworkId: kotlin.String? = null
  103    125   
        /**
  104    126   
         * The ID of the VPC in which the target network (subnet) is located.
  105    127   
         */
  106    128   
        public var vpcId: kotlin.String? = null
  107    129   
  108    130   
        @PublishedApi
  109    131   
        internal constructor()
  110    132   
        @PublishedApi
  111    133   
        internal constructor(x: aws.sdk.kotlin.services.ec2.model.TargetNetwork) : this() {
  112    134   
            this.associationId = x.associationId
         135  +
            this.availabilityZoneIds = x.availabilityZoneIds
         136  +
            this.availabilityZones = x.availabilityZones
  113    137   
            this.clientVpnEndpointId = x.clientVpnEndpointId
  114    138   
            this.securityGroups = x.securityGroups
  115    139   
            this.status = x.status
  116    140   
            this.targetNetworkId = x.targetNetworkId
  117    141   
            this.vpcId = x.vpcId
  118    142   
        }
  119    143   
  120    144   
        @PublishedApi
  121    145   
        internal fun build(): aws.sdk.kotlin.services.ec2.model.TargetNetwork = TargetNetwork(this)
  122    146   

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

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

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

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

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

@@ -15,15 +51,51 @@
   35     35   
            "default" -> Default
   36     36   
            "host" -> Host
   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.Tenancy> = values
   44     44   
   45         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.Tenancy> = listOf(
          45  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.Tenancy> by lazy { listOf(
   46     46   
            Dedicated,
   47     47   
            Default,
   48     48   
            Host,
   49         -
        )
          49  +
        ) }
   50     50   
    }
   51     51   
}

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

@@ -51,51 +93,93 @@
   71     71   
            "temporary-restore-failed" -> TemporaryRestoreFailed
   72     72   
            "temporary-restore-in-progress" -> TemporaryRestoreInProgress
   73     73   
            else -> SdkUnknown(value)
   74     74   
        }
   75     75   
   76     76   
        /**
   77     77   
         * Get a list of all possible variants
   78     78   
         */
   79     79   
        public fun values(): kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.TieringOperationStatus> = values
   80     80   
   81         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.TieringOperationStatus> = listOf(
          81  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.TieringOperationStatus> by lazy { listOf(
   82     82   
            ArchivalCompleted,
   83     83   
            ArchivalFailed,
   84     84   
            ArchivalInProgress,
   85     85   
            PermanentRestoreCompleted,
   86     86   
            PermanentRestoreFailed,
   87     87   
            PermanentRestoreInProgress,
   88     88   
            TemporaryRestoreCompleted,
   89     89   
            TemporaryRestoreFailed,
   90     90   
            TemporaryRestoreInProgress,
   91         -
        )
          91  +
        ) }
   92     92   
    }
   93     93   
}

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

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

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

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

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

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

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

@@ -15,15 +51,51 @@
   35     35   
            "ipv4" -> Ipv4
   36     36   
            "ipv6" -> Ipv6
   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.TrafficIpAddressType> = values
   44     44   
   45         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.TrafficIpAddressType> = listOf(
          45  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.TrafficIpAddressType> by lazy { listOf(
   46     46   
            DualStack,
   47     47   
            Ipv4,
   48     48   
            Ipv6,
   49         -
        )
          49  +
        ) }
   50     50   
    }
   51     51   
}

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

@@ -21,21 +58,58 @@
   41     41   
            "protocol" -> Protocol
   42     42   
            "source-port-range" -> SourcePortRange
   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.TrafficMirrorFilterRuleField> = values
   50     50   
   51         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.TrafficMirrorFilterRuleField> = listOf(
          51  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.TrafficMirrorFilterRuleField> by lazy { listOf(
   52     52   
            Description,
   53     53   
            DestinationPortRange,
   54     54   
            Protocol,
   55     55   
            SourcePortRange,
   56         -
        )
          56  +
        ) }
   57     57   
    }
   58     58   
}