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/DnsRecordIpType.kt

@@ -21,21 +58,58 @@
   41     41   
            "ipv6" -> Ipv6
   42     42   
            "service-defined" -> ServiceDefined
   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.DnsRecordIpType> = values
   50     50   
   51         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.DnsRecordIpType> = listOf(
          51  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.DnsRecordIpType> by lazy { listOf(
   52     52   
            Dualstack,
   53     53   
            Ipv4,
   54     54   
            Ipv6,
   55     55   
            ServiceDefined,
   56         -
        )
          56  +
        ) }
   57     57   
    }
   58     58   
}

tmp-codegen-diff/services/ec2/generated-src/main/kotlin/aws/sdk/kotlin/services/ec2/model/DnsSupportValue.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.DnsSupportValue> = values
   38     38   
   39         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.DnsSupportValue> = listOf(
          39  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.DnsSupportValue> 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/DomainType.kt

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

tmp-codegen-diff/services/ec2/generated-src/main/kotlin/aws/sdk/kotlin/services/ec2/model/DynamicRoutingValue.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.DynamicRoutingValue> = values
   38     38   
   39         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.DynamicRoutingValue> = listOf(
          39  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.DynamicRoutingValue> 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/EbsEncryptionSupport.kt

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

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

@@ -15,15 +51,51 @@
   35     35   
            "supported" -> Supported
   36     36   
            "unsupported" -> Unsupported
   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.EbsNvmeSupport> = values
   44     44   
   45         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.EbsNvmeSupport> = listOf(
          45  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.EbsNvmeSupport> by lazy { listOf(
   46     46   
            Required,
   47     47   
            Supported,
   48     48   
            Unsupported,
   49         -
        )
          49  +
        ) }
   50     50   
    }
   51     51   
}

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

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

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

@@ -51,51 +93,93 @@
   71     71   
            "update-failed" -> UpdateFailed
   72     72   
            "update-in-progress" -> UpdateInProgress
   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.Ec2InstanceConnectEndpointState> = values
   80     80   
   81         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.Ec2InstanceConnectEndpointState> = listOf(
          81  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.Ec2InstanceConnectEndpointState> by lazy { listOf(
   82     82   
            CreateComplete,
   83     83   
            CreateFailed,
   84     84   
            CreateInProgress,
   85     85   
            DeleteComplete,
   86     86   
            DeleteFailed,
   87     87   
            DeleteInProgress,
   88     88   
            UpdateComplete,
   89     89   
            UpdateFailed,
   90     90   
            UpdateInProgress,
   91         -
        )
          91  +
        ) }
   92     92   
    }
   93     93   
}

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

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

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

@@ -9,9 +44,44 @@
   29     29   
            "ecc-sec-p384" -> EccSecP384
   30     30   
            "rsa-2048" -> Rsa2048
   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.EkPubKeyType> = values
   38     38   
   39         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.EkPubKeyType> = listOf(
          39  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.EkPubKeyType> by lazy { listOf(
   40     40   
            EccSecP384,
   41     41   
            Rsa2048,
   42         -
        )
          42  +
        ) }
   43     43   
    }
   44     44   
}

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

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

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

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

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

@@ -15,15 +51,51 @@
   35     35   
            "supported" -> Supported
   36     36   
            "unsupported" -> Unsupported
   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.EnaSupport> = values
   44     44   
   45         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.EnaSupport> = listOf(
          45  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.EnaSupport> by lazy { listOf(
   46     46   
            Required,
   47     47   
            Supported,
   48     48   
            Unsupported,
   49         -
        )
          49  +
        ) }
   50     50   
    }
   51     51   
}

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

@@ -1,1 +91,91 @@
    8      8   
public class EnableIpamPolicyRequest private constructor(builder: Builder) {
    9      9   
    /**
   10     10   
     * A check for 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`.
   11     11   
     */
   12     12   
    public val dryRun: kotlin.Boolean? = builder.dryRun
   13     13   
    /**
   14     14   
     * The ID of the IPAM policy to enable.
   15     15   
     */
   16     16   
    public val ipamPolicyId: kotlin.String? = builder.ipamPolicyId
   17     17   
    /**
   18         -
     * The ID of the Amazon Web Services Organizations target for which to enable the IPAM policy. This parameter is required only when IPAM is integrated with Amazon Web Services Organizations. When IPAM is not integrated with Amazon Web Services Organizations, omit this parameter and the policy will apply to the current account.
   19         -
     *
   20     18   
     * A target can be an individual Amazon Web Services account or an entity within an Amazon Web Services Organization to which an IPAM policy can be applied.
          19  +
     *
          20  +
     * The ID of the Amazon Web Services Organizations target for which to enable the IPAM policy. This parameter is required only when IPAM is integrated with Amazon Web Services Organizations. When IPAM is not integrated with Amazon Web Services Organizations, omit this parameter and the policy will apply to the current account.
   21     21   
     */
   22     22   
    public val organizationTargetId: kotlin.String? = builder.organizationTargetId
   23     23   
   24     24   
    public companion object {
   25     25   
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ec2.model.EnableIpamPolicyRequest = Builder().apply(block).build()
   26     26   
    }
   27     27   
   28     28   
    override fun toString(): kotlin.String = buildString {
   29     29   
        append("EnableIpamPolicyRequest(")
   30     30   
        append("dryRun=$dryRun,")
   31     31   
        append("ipamPolicyId=$ipamPolicyId,")
   32     32   
        append("organizationTargetId=$organizationTargetId")
   33     33   
        append(")")
   34     34   
    }
   35     35   
   36     36   
    override fun hashCode(): kotlin.Int {
   37     37   
        var result = dryRun?.hashCode() ?: 0
   38     38   
        result = 31 * result + (this.ipamPolicyId?.hashCode() ?: 0)
   39     39   
        result = 31 * result + (this.organizationTargetId?.hashCode() ?: 0)
   40     40   
        return result
   41     41   
    }
   42     42   
   43     43   
    override fun equals(other: kotlin.Any?): kotlin.Boolean {
   44     44   
        if (this === other) return true
   45     45   
        if (other == null || this::class != other::class) return false
   46     46   
   47     47   
        other as EnableIpamPolicyRequest
   48     48   
   49     49   
        if (dryRun != other.dryRun) return false
   50     50   
        if (ipamPolicyId != other.ipamPolicyId) return false
   51     51   
        if (organizationTargetId != other.organizationTargetId) return false
   52     52   
   53     53   
        return true
   54     54   
    }
   55     55   
   56     56   
    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ec2.model.EnableIpamPolicyRequest = Builder(this).apply(block).build()
   57     57   
   58     58   
    @SdkDsl
   59     59   
    public class Builder {
   60     60   
        /**
   61     61   
         * A check for 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`.
   62     62   
         */
   63     63   
        public var dryRun: kotlin.Boolean? = null
   64     64   
        /**
   65     65   
         * The ID of the IPAM policy to enable.
   66     66   
         */
   67     67   
        public var ipamPolicyId: kotlin.String? = null
   68     68   
        /**
   69         -
         * The ID of the Amazon Web Services Organizations target for which to enable the IPAM policy. This parameter is required only when IPAM is integrated with Amazon Web Services Organizations. When IPAM is not integrated with Amazon Web Services Organizations, omit this parameter and the policy will apply to the current account.
   70         -
         *
   71     69   
         * A target can be an individual Amazon Web Services account or an entity within an Amazon Web Services Organization to which an IPAM policy can be applied.
          70  +
         *
          71  +
         * The ID of the Amazon Web Services Organizations target for which to enable the IPAM policy. This parameter is required only when IPAM is integrated with Amazon Web Services Organizations. When IPAM is not integrated with Amazon Web Services Organizations, omit this parameter and the policy will apply to the current account.
   72     72   
         */
   73     73   
        public var organizationTargetId: kotlin.String? = null
   74     74   
   75     75   
        @PublishedApi
   76     76   
        internal constructor()
   77     77   
        @PublishedApi
   78     78   
        internal constructor(x: aws.sdk.kotlin.services.ec2.model.EnableIpamPolicyRequest) : this() {
   79     79   
            this.dryRun = x.dryRun
   80     80   
            this.ipamPolicyId = x.ipamPolicyId
   81     81   
            this.organizationTargetId = x.organizationTargetId

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

@@ -21,21 +58,58 @@
   41     41   
            "enabled" -> Enabled
   42     42   
            "enabling" -> Enabling
   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.EncryptionStateValue> = values
   50     50   
   51         -
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.EncryptionStateValue> = listOf(
          51  +
        private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.EncryptionStateValue> by lazy { listOf(
   52     52   
            Disabled,
   53     53   
            Disabling,
   54     54   
            Enabled,
   55     55   
            Enabling,
   56         -
        )
          56  +
        ) }
   57     57   
    }
   58     58   
}

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