diff --git a/atoz.nimble b/atoz.nimble index 56e37a8..164fd15 100644 --- a/atoz.nimble +++ b/atoz.nimble @@ -1,4 +1,4 @@ -version = "2618.0.0" +version = "2619.0.0" author = "disruptek" description = "Amazon Web Services (AWS) APIs" license = "MIT" diff --git a/src/atoz/ec2_20161115.nim b/src/atoz/ec2_20161115.nim index 2dd723f..df8acf2 100644 --- a/src/atoz/ec2_20161115.nim +++ b/src/atoz/ec2_20161115.nim @@ -31364,8 +31364,8 @@ var getCreateTransitGatewayVpcAttachment* = Call_GetCreateTransitGatewayVpcAttac url: url_GetCreateTransitGatewayVpcAttachment_614833, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostCreateVolume_614901 = ref object of OpenApiRestCall_610658 -proc url_PostCreateVolume_614903(protocol: Scheme; host: string; base: string; + Call_PostCreateVolume_614902 = ref object of OpenApiRestCall_610658 +proc url_PostCreateVolume_614904(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -31375,7 +31375,7 @@ proc url_PostCreateVolume_614903(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostCreateVolume_614902(path: JsonNode; query: JsonNode; +proc validate_PostCreateVolume_614903(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Creates an EBS volume that can be attached to an instance in the same Availability Zone. The volume is created in the regional endpoint that you send the HTTP request to. For more information see Regions and Endpoints.

You can create a new empty volume or restore a volume from an EBS snapshot. Any AWS Marketplace product codes from the snapshot are propagated to the volume.

You can create encrypted volumes. Encrypted volumes must be attached to instances that support Amazon EBS encryption. Volumes that are created from encrypted snapshots are also automatically encrypted. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

You can tag your volumes during creation. For more information, see Tagging Your Amazon EC2 Resources in the Amazon Elastic Compute Cloud User Guide.

For more information, see Creating an Amazon EBS Volume in the Amazon Elastic Compute Cloud User Guide.

@@ -31388,16 +31388,16 @@ proc validate_PostCreateVolume_614902(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_614904 = query.getOrDefault("Action") - valid_614904 = validateParameter(valid_614904, JString, required = true, - default = newJString("CreateVolume")) - if valid_614904 != nil: - section.add "Action", valid_614904 - var valid_614905 = query.getOrDefault("Version") + var valid_614905 = query.getOrDefault("Action") valid_614905 = validateParameter(valid_614905, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("CreateVolume")) if valid_614905 != nil: - section.add "Version", valid_614905 + section.add "Action", valid_614905 + var valid_614906 = query.getOrDefault("Version") + valid_614906 = validateParameter(valid_614906, JString, required = true, + default = newJString("2016-11-15")) + if valid_614906 != nil: + section.add "Version", valid_614906 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -31408,41 +31408,41 @@ proc validate_PostCreateVolume_614902(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_614906 = header.getOrDefault("X-Amz-Signature") - valid_614906 = validateParameter(valid_614906, JString, required = false, - default = nil) - if valid_614906 != nil: - section.add "X-Amz-Signature", valid_614906 - var valid_614907 = header.getOrDefault("X-Amz-Content-Sha256") + var valid_614907 = header.getOrDefault("X-Amz-Signature") valid_614907 = validateParameter(valid_614907, JString, required = false, default = nil) if valid_614907 != nil: - section.add "X-Amz-Content-Sha256", valid_614907 - var valid_614908 = header.getOrDefault("X-Amz-Date") + section.add "X-Amz-Signature", valid_614907 + var valid_614908 = header.getOrDefault("X-Amz-Content-Sha256") valid_614908 = validateParameter(valid_614908, JString, required = false, default = nil) if valid_614908 != nil: - section.add "X-Amz-Date", valid_614908 - var valid_614909 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Content-Sha256", valid_614908 + var valid_614909 = header.getOrDefault("X-Amz-Date") valid_614909 = validateParameter(valid_614909, JString, required = false, default = nil) if valid_614909 != nil: - section.add "X-Amz-Credential", valid_614909 - var valid_614910 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Date", valid_614909 + var valid_614910 = header.getOrDefault("X-Amz-Credential") valid_614910 = validateParameter(valid_614910, JString, required = false, default = nil) if valid_614910 != nil: - section.add "X-Amz-Security-Token", valid_614910 - var valid_614911 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Credential", valid_614910 + var valid_614911 = header.getOrDefault("X-Amz-Security-Token") valid_614911 = validateParameter(valid_614911, JString, required = false, default = nil) if valid_614911 != nil: - section.add "X-Amz-Algorithm", valid_614911 - var valid_614912 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Security-Token", valid_614911 + var valid_614912 = header.getOrDefault("X-Amz-Algorithm") valid_614912 = validateParameter(valid_614912, JString, required = false, default = nil) if valid_614912 != nil: - section.add "X-Amz-SignedHeaders", valid_614912 + section.add "X-Amz-Algorithm", valid_614912 + var valid_614913 = header.getOrDefault("X-Amz-SignedHeaders") + valid_614913 = validateParameter(valid_614913, JString, required = false, + default = nil) + if valid_614913 != nil: + section.add "X-Amz-SignedHeaders", valid_614913 result.add "header", section ## parameters in `formData` object: ## VolumeType: JString @@ -31451,6 +31451,10 @@ proc validate_PostCreateVolume_614902(path: JsonNode; query: JsonNode; ## :

The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size.

Constraints: 1-16,384 for gp2, 4-16,384 for io1, 500-16,384 for st1, 500-16,384 for sc1, and 1-1,024 for standard. If you specify a snapshot, the volume size must be equal to or larger than the snapshot size.

Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.

## OutpostArn: JString ## : The Amazon Resource Name (ARN) of the Outpost. + ## MultiAttachEnabled: JBool + ## : Specifies whether to enable Amazon EBS Multi-Attach. If you enable Multi-Attach, you can attach the volume to up to 16 Nitro-based instances in the same Availability Zone. For more information, see Amazon EBS Multi-Attach in the Amazon Elastic Compute Cloud User Guide. ## AvailabilityZone: JString (required) ## : The Availability Zone in which to create the volume. ## KmsKeyId: JString @@ -31472,76 +31476,80 @@ proc validate_PostCreateVolume_614902(path: JsonNode; query: JsonNode; ## href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html#encryption-by-default">Encryption by Default in the Amazon Elastic Compute Cloud User Guide.

Encrypted Amazon EBS volumes must be attached to instances that support Amazon EBS encryption. For more information, see Supported Instance Types.

section = newJObject() - var valid_614913 = formData.getOrDefault("VolumeType") - valid_614913 = validateParameter(valid_614913, JString, required = false, + var valid_614914 = formData.getOrDefault("VolumeType") + valid_614914 = validateParameter(valid_614914, JString, required = false, default = newJString("standard")) - if valid_614913 != nil: - section.add "VolumeType", valid_614913 - var valid_614914 = formData.getOrDefault("Size") - valid_614914 = validateParameter(valid_614914, JInt, required = false, default = nil) if valid_614914 != nil: - section.add "Size", valid_614914 - var valid_614915 = formData.getOrDefault("OutpostArn") - valid_614915 = validateParameter(valid_614915, JString, required = false, - default = nil) + section.add "VolumeType", valid_614914 + var valid_614915 = formData.getOrDefault("Size") + valid_614915 = validateParameter(valid_614915, JInt, required = false, default = nil) if valid_614915 != nil: - section.add "OutpostArn", valid_614915 - assert formData != nil, "formData argument is necessary due to required `AvailabilityZone` field" - var valid_614916 = formData.getOrDefault("AvailabilityZone") - valid_614916 = validateParameter(valid_614916, JString, required = true, + section.add "Size", valid_614915 + var valid_614916 = formData.getOrDefault("OutpostArn") + valid_614916 = validateParameter(valid_614916, JString, required = false, default = nil) if valid_614916 != nil: - section.add "AvailabilityZone", valid_614916 - var valid_614917 = formData.getOrDefault("KmsKeyId") - valid_614917 = validateParameter(valid_614917, JString, required = false, - default = nil) + section.add "OutpostArn", valid_614916 + var valid_614917 = formData.getOrDefault("MultiAttachEnabled") + valid_614917 = validateParameter(valid_614917, JBool, required = false, default = nil) if valid_614917 != nil: - section.add "KmsKeyId", valid_614917 - var valid_614918 = formData.getOrDefault("SnapshotId") - valid_614918 = validateParameter(valid_614918, JString, required = false, + section.add "MultiAttachEnabled", valid_614917 + assert formData != nil, "formData argument is necessary due to required `AvailabilityZone` field" + var valid_614918 = formData.getOrDefault("AvailabilityZone") + valid_614918 = validateParameter(valid_614918, JString, required = true, default = nil) if valid_614918 != nil: - section.add "SnapshotId", valid_614918 - var valid_614919 = formData.getOrDefault("Iops") - valid_614919 = validateParameter(valid_614919, JInt, required = false, default = nil) + section.add "AvailabilityZone", valid_614918 + var valid_614919 = formData.getOrDefault("KmsKeyId") + valid_614919 = validateParameter(valid_614919, JString, required = false, + default = nil) if valid_614919 != nil: - section.add "Iops", valid_614919 - var valid_614920 = formData.getOrDefault("DryRun") - valid_614920 = validateParameter(valid_614920, JBool, required = false, default = nil) - if valid_614920 != nil: - section.add "DryRun", valid_614920 - var valid_614921 = formData.getOrDefault("TagSpecification") - valid_614921 = validateParameter(valid_614921, JArray, required = false, + section.add "KmsKeyId", valid_614919 + var valid_614920 = formData.getOrDefault("SnapshotId") + valid_614920 = validateParameter(valid_614920, JString, required = false, default = nil) + if valid_614920 != nil: + section.add "SnapshotId", valid_614920 + var valid_614921 = formData.getOrDefault("Iops") + valid_614921 = validateParameter(valid_614921, JInt, required = false, default = nil) if valid_614921 != nil: - section.add "TagSpecification", valid_614921 - var valid_614922 = formData.getOrDefault("Encrypted") + section.add "Iops", valid_614921 + var valid_614922 = formData.getOrDefault("DryRun") valid_614922 = validateParameter(valid_614922, JBool, required = false, default = nil) if valid_614922 != nil: - section.add "Encrypted", valid_614922 + section.add "DryRun", valid_614922 + var valid_614923 = formData.getOrDefault("TagSpecification") + valid_614923 = validateParameter(valid_614923, JArray, required = false, + default = nil) + if valid_614923 != nil: + section.add "TagSpecification", valid_614923 + var valid_614924 = formData.getOrDefault("Encrypted") + valid_614924 = validateParameter(valid_614924, JBool, required = false, default = nil) + if valid_614924 != nil: + section.add "Encrypted", valid_614924 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_614923: Call_PostCreateVolume_614901; path: JsonNode; +proc call*(call_614925: Call_PostCreateVolume_614902; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Creates an EBS volume that can be attached to an instance in the same Availability Zone. The volume is created in the regional endpoint that you send the HTTP request to. For more information see Regions and Endpoints.

You can create a new empty volume or restore a volume from an EBS snapshot. Any AWS Marketplace product codes from the snapshot are propagated to the volume.

You can create encrypted volumes. Encrypted volumes must be attached to instances that support Amazon EBS encryption. Volumes that are created from encrypted snapshots are also automatically encrypted. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

You can tag your volumes during creation. For more information, see Tagging Your Amazon EC2 Resources in the Amazon Elastic Compute Cloud User Guide.

For more information, see Creating an Amazon EBS Volume in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_614923.validator(path, query, header, formData, body) - let scheme = call_614923.pickScheme + let valid = call_614925.validator(path, query, header, formData, body) + let scheme = call_614925.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_614923.url(scheme.get, call_614923.host, call_614923.base, - call_614923.route, valid.getOrDefault("path"), + let url = call_614925.url(scheme.get, call_614925.host, call_614925.base, + call_614925.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_614923, url, valid) + result = atozHook(call_614925, url, valid) -proc call*(call_614924: Call_PostCreateVolume_614901; AvailabilityZone: string; +proc call*(call_614926: Call_PostCreateVolume_614902; AvailabilityZone: string; VolumeType: string = "standard"; Size: int = 0; OutpostArn: string = ""; - KmsKeyId: string = ""; SnapshotId: string = ""; Iops: int = 0; - DryRun: bool = false; Action: string = "CreateVolume"; - TagSpecification: JsonNode = nil; Encrypted: bool = false; - Version: string = "2016-11-15"): Recallable = + MultiAttachEnabled: bool = false; KmsKeyId: string = ""; + SnapshotId: string = ""; Iops: int = 0; DryRun: bool = false; + Action: string = "CreateVolume"; TagSpecification: JsonNode = nil; + Encrypted: bool = false; Version: string = "2016-11-15"): Recallable = ## postCreateVolume ##

Creates an EBS volume that can be attached to an instance in the same Availability Zone. The volume is created in the regional endpoint that you send the HTTP request to. For more information see Regions and Endpoints.

You can create a new empty volume or restore a volume from an EBS snapshot. Any AWS Marketplace product codes from the snapshot are propagated to the volume.

You can create encrypted volumes. Encrypted volumes must be attached to instances that support Amazon EBS encryption. Volumes that are created from encrypted snapshots are also automatically encrypted. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

You can tag your volumes during creation. For more information, see Tagging Your Amazon EC2 Resources in the Amazon Elastic Compute Cloud User Guide.

For more information, see Creating an Amazon EBS Volume in the Amazon Elastic Compute Cloud User Guide.

## VolumeType: string @@ -31550,6 +31558,10 @@ proc call*(call_614924: Call_PostCreateVolume_614901; AvailabilityZone: string; ## :

The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size.

Constraints: 1-16,384 for gp2, 4-16,384 for io1, 500-16,384 for st1, 500-16,384 for sc1, and 1-1,024 for standard. If you specify a snapshot, the volume size must be equal to or larger than the snapshot size.

Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.

## OutpostArn: string ## : The Amazon Resource Name (ARN) of the Outpost. + ## MultiAttachEnabled: bool + ## : Specifies whether to enable Amazon EBS Multi-Attach. If you enable Multi-Attach, you can attach the volume to up to 16 Nitro-based instances in the same Availability Zone. For more information, see Amazon EBS Multi-Attach in the Amazon Elastic Compute Cloud User Guide. ## AvailabilityZone: string (required) ## : The Availability Zone in which to create the volume. ## KmsKeyId: string @@ -31572,27 +31584,28 @@ proc call*(call_614924: Call_PostCreateVolume_614901; AvailabilityZone: string; ## href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html#encryption-by-default">Encryption by Default in the Amazon Elastic Compute Cloud User Guide.

Encrypted Amazon EBS volumes must be attached to instances that support Amazon EBS encryption. For more information, see Supported Instance Types.

## Version: string (required) - var query_614925 = newJObject() - var formData_614926 = newJObject() - add(formData_614926, "VolumeType", newJString(VolumeType)) - add(formData_614926, "Size", newJInt(Size)) - add(formData_614926, "OutpostArn", newJString(OutpostArn)) - add(formData_614926, "AvailabilityZone", newJString(AvailabilityZone)) - add(formData_614926, "KmsKeyId", newJString(KmsKeyId)) - add(formData_614926, "SnapshotId", newJString(SnapshotId)) - add(formData_614926, "Iops", newJInt(Iops)) - add(formData_614926, "DryRun", newJBool(DryRun)) - add(query_614925, "Action", newJString(Action)) + var query_614927 = newJObject() + var formData_614928 = newJObject() + add(formData_614928, "VolumeType", newJString(VolumeType)) + add(formData_614928, "Size", newJInt(Size)) + add(formData_614928, "OutpostArn", newJString(OutpostArn)) + add(formData_614928, "MultiAttachEnabled", newJBool(MultiAttachEnabled)) + add(formData_614928, "AvailabilityZone", newJString(AvailabilityZone)) + add(formData_614928, "KmsKeyId", newJString(KmsKeyId)) + add(formData_614928, "SnapshotId", newJString(SnapshotId)) + add(formData_614928, "Iops", newJInt(Iops)) + add(formData_614928, "DryRun", newJBool(DryRun)) + add(query_614927, "Action", newJString(Action)) if TagSpecification != nil: - formData_614926.add "TagSpecification", TagSpecification - add(formData_614926, "Encrypted", newJBool(Encrypted)) - add(query_614925, "Version", newJString(Version)) - result = call_614924.call(nil, query_614925, nil, formData_614926, nil) + formData_614928.add "TagSpecification", TagSpecification + add(formData_614928, "Encrypted", newJBool(Encrypted)) + add(query_614927, "Version", newJString(Version)) + result = call_614926.call(nil, query_614927, nil, formData_614928, nil) -var postCreateVolume* = Call_PostCreateVolume_614901(name: "postCreateVolume", +var postCreateVolume* = Call_PostCreateVolume_614902(name: "postCreateVolume", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", - route: "/#Action=CreateVolume", validator: validate_PostCreateVolume_614902, - base: "/", url: url_PostCreateVolume_614903, + route: "/#Action=CreateVolume", validator: validate_PostCreateVolume_614903, + base: "/", url: url_PostCreateVolume_614904, schemes: {Scheme.Https, Scheme.Http}) type Call_GetCreateVolume_614876 = ref object of OpenApiRestCall_610658 @@ -31635,6 +31648,10 @@ proc validate_GetCreateVolume_614877(path: JsonNode; query: JsonNode; ## Action: JString (required) ## TagSpecification: JArray ## : The tags to apply to the volume during creation. + ## MultiAttachEnabled: JBool + ## : Specifies whether to enable Amazon EBS Multi-Attach. If you enable Multi-Attach, you can attach the volume to up to 16 Nitro-based instances in the same Availability Zone. For more information, see Amazon EBS Multi-Attach in the Amazon Elastic Compute Cloud User Guide. ## AvailabilityZone: JString (required) ## : The Availability Zone in which to create the volume. ## Version: JString (required) @@ -31682,25 +31699,29 @@ proc validate_GetCreateVolume_614877(path: JsonNode; query: JsonNode; default = nil) if valid_614886 != nil: section.add "TagSpecification", valid_614886 - var valid_614887 = query.getOrDefault("AvailabilityZone") - valid_614887 = validateParameter(valid_614887, JString, required = true, - default = nil) + var valid_614887 = query.getOrDefault("MultiAttachEnabled") + valid_614887 = validateParameter(valid_614887, JBool, required = false, default = nil) if valid_614887 != nil: - section.add "AvailabilityZone", valid_614887 - var valid_614888 = query.getOrDefault("Version") + section.add "MultiAttachEnabled", valid_614887 + var valid_614888 = query.getOrDefault("AvailabilityZone") valid_614888 = validateParameter(valid_614888, JString, required = true, - default = newJString("2016-11-15")) - if valid_614888 != nil: - section.add "Version", valid_614888 - var valid_614889 = query.getOrDefault("SnapshotId") - valid_614889 = validateParameter(valid_614889, JString, required = false, default = nil) + if valid_614888 != nil: + section.add "AvailabilityZone", valid_614888 + var valid_614889 = query.getOrDefault("Version") + valid_614889 = validateParameter(valid_614889, JString, required = true, + default = newJString("2016-11-15")) if valid_614889 != nil: - section.add "SnapshotId", valid_614889 - var valid_614890 = query.getOrDefault("Iops") - valid_614890 = validateParameter(valid_614890, JInt, required = false, default = nil) + section.add "Version", valid_614889 + var valid_614890 = query.getOrDefault("SnapshotId") + valid_614890 = validateParameter(valid_614890, JString, required = false, + default = nil) if valid_614890 != nil: - section.add "Iops", valid_614890 + section.add "SnapshotId", valid_614890 + var valid_614891 = query.getOrDefault("Iops") + valid_614891 = validateParameter(valid_614891, JInt, required = false, default = nil) + if valid_614891 != nil: + section.add "Iops", valid_614891 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -31711,65 +31732,66 @@ proc validate_GetCreateVolume_614877(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_614891 = header.getOrDefault("X-Amz-Signature") - valid_614891 = validateParameter(valid_614891, JString, required = false, - default = nil) - if valid_614891 != nil: - section.add "X-Amz-Signature", valid_614891 - var valid_614892 = header.getOrDefault("X-Amz-Content-Sha256") + var valid_614892 = header.getOrDefault("X-Amz-Signature") valid_614892 = validateParameter(valid_614892, JString, required = false, default = nil) if valid_614892 != nil: - section.add "X-Amz-Content-Sha256", valid_614892 - var valid_614893 = header.getOrDefault("X-Amz-Date") + section.add "X-Amz-Signature", valid_614892 + var valid_614893 = header.getOrDefault("X-Amz-Content-Sha256") valid_614893 = validateParameter(valid_614893, JString, required = false, default = nil) if valid_614893 != nil: - section.add "X-Amz-Date", valid_614893 - var valid_614894 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Content-Sha256", valid_614893 + var valid_614894 = header.getOrDefault("X-Amz-Date") valid_614894 = validateParameter(valid_614894, JString, required = false, default = nil) if valid_614894 != nil: - section.add "X-Amz-Credential", valid_614894 - var valid_614895 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Date", valid_614894 + var valid_614895 = header.getOrDefault("X-Amz-Credential") valid_614895 = validateParameter(valid_614895, JString, required = false, default = nil) if valid_614895 != nil: - section.add "X-Amz-Security-Token", valid_614895 - var valid_614896 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Credential", valid_614895 + var valid_614896 = header.getOrDefault("X-Amz-Security-Token") valid_614896 = validateParameter(valid_614896, JString, required = false, default = nil) if valid_614896 != nil: - section.add "X-Amz-Algorithm", valid_614896 - var valid_614897 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Security-Token", valid_614896 + var valid_614897 = header.getOrDefault("X-Amz-Algorithm") valid_614897 = validateParameter(valid_614897, JString, required = false, default = nil) if valid_614897 != nil: - section.add "X-Amz-SignedHeaders", valid_614897 + section.add "X-Amz-Algorithm", valid_614897 + var valid_614898 = header.getOrDefault("X-Amz-SignedHeaders") + valid_614898 = validateParameter(valid_614898, JString, required = false, + default = nil) + if valid_614898 != nil: + section.add "X-Amz-SignedHeaders", valid_614898 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_614898: Call_GetCreateVolume_614876; path: JsonNode; query: JsonNode; +proc call*(call_614899: Call_GetCreateVolume_614876; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Creates an EBS volume that can be attached to an instance in the same Availability Zone. The volume is created in the regional endpoint that you send the HTTP request to. For more information see Regions and Endpoints.

You can create a new empty volume or restore a volume from an EBS snapshot. Any AWS Marketplace product codes from the snapshot are propagated to the volume.

You can create encrypted volumes. Encrypted volumes must be attached to instances that support Amazon EBS encryption. Volumes that are created from encrypted snapshots are also automatically encrypted. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

You can tag your volumes during creation. For more information, see Tagging Your Amazon EC2 Resources in the Amazon Elastic Compute Cloud User Guide.

For more information, see Creating an Amazon EBS Volume in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_614898.validator(path, query, header, formData, body) - let scheme = call_614898.pickScheme + let valid = call_614899.validator(path, query, header, formData, body) + let scheme = call_614899.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_614898.url(scheme.get, call_614898.host, call_614898.base, - call_614898.route, valid.getOrDefault("path"), + let url = call_614899.url(scheme.get, call_614899.host, call_614899.base, + call_614899.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_614898, url, valid) + result = atozHook(call_614899, url, valid) -proc call*(call_614899: Call_GetCreateVolume_614876; AvailabilityZone: string; +proc call*(call_614900: Call_GetCreateVolume_614876; AvailabilityZone: string; Encrypted: bool = false; DryRun: bool = false; KmsKeyId: string = ""; OutpostArn: string = ""; VolumeType: string = "standard"; Size: int = 0; Action: string = "CreateVolume"; TagSpecification: JsonNode = nil; - Version: string = "2016-11-15"; SnapshotId: string = ""; Iops: int = 0): Recallable = + MultiAttachEnabled: bool = false; Version: string = "2016-11-15"; + SnapshotId: string = ""; Iops: int = 0): Recallable = ## getCreateVolume ##

Creates an EBS volume that can be attached to an instance in the same Availability Zone. The volume is created in the regional endpoint that you send the HTTP request to. For more information see Regions and Endpoints.

You can create a new empty volume or restore a volume from an EBS snapshot. Any AWS Marketplace product codes from the snapshot are propagated to the volume.

You can create encrypted volumes. Encrypted volumes must be attached to instances that support Amazon EBS encryption. Volumes that are created from encrypted snapshots are also automatically encrypted. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

You can tag your volumes during creation. For more information, see Tagging Your Amazon EC2 Resources in the Amazon Elastic Compute Cloud User Guide.

For more information, see Creating an Amazon EBS Volume in the Amazon Elastic Compute Cloud User Guide.

## Encrypted: bool @@ -31791,6 +31813,10 @@ proc call*(call_614899: Call_GetCreateVolume_614876; AvailabilityZone: string; ## Action: string (required) ## TagSpecification: JArray ## : The tags to apply to the volume during creation. + ## MultiAttachEnabled: bool + ## : Specifies whether to enable Amazon EBS Multi-Attach. If you enable Multi-Attach, you can attach the volume to up to 16 Nitro-based instances in the same Availability Zone. For more information, see Amazon EBS Multi-Attach in the Amazon Elastic Compute Cloud User Guide. ## AvailabilityZone: string (required) ## : The Availability Zone in which to create the volume. ## Version: string (required) @@ -31800,29 +31826,30 @@ proc call*(call_614899: Call_GetCreateVolume_614876; AvailabilityZone: string; ## :

The number of I/O operations per second (IOPS) to provision for the volume, with a maximum ratio of 50 IOPS/GiB. Range is 100 to 64,000 IOPS for volumes in most Regions. Maximum IOPS of 64,000 is guaranteed only on Nitro-based instances. Other instance families guarantee performance up to 32,000 IOPS. For more information, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.

This parameter is valid only for Provisioned IOPS SSD (io1) volumes.

- var query_614900 = newJObject() - add(query_614900, "Encrypted", newJBool(Encrypted)) - add(query_614900, "DryRun", newJBool(DryRun)) - add(query_614900, "KmsKeyId", newJString(KmsKeyId)) - add(query_614900, "OutpostArn", newJString(OutpostArn)) - add(query_614900, "VolumeType", newJString(VolumeType)) - add(query_614900, "Size", newJInt(Size)) - add(query_614900, "Action", newJString(Action)) + var query_614901 = newJObject() + add(query_614901, "Encrypted", newJBool(Encrypted)) + add(query_614901, "DryRun", newJBool(DryRun)) + add(query_614901, "KmsKeyId", newJString(KmsKeyId)) + add(query_614901, "OutpostArn", newJString(OutpostArn)) + add(query_614901, "VolumeType", newJString(VolumeType)) + add(query_614901, "Size", newJInt(Size)) + add(query_614901, "Action", newJString(Action)) if TagSpecification != nil: - query_614900.add "TagSpecification", TagSpecification - add(query_614900, "AvailabilityZone", newJString(AvailabilityZone)) - add(query_614900, "Version", newJString(Version)) - add(query_614900, "SnapshotId", newJString(SnapshotId)) - add(query_614900, "Iops", newJInt(Iops)) - result = call_614899.call(nil, query_614900, nil, nil, nil) + query_614901.add "TagSpecification", TagSpecification + add(query_614901, "MultiAttachEnabled", newJBool(MultiAttachEnabled)) + add(query_614901, "AvailabilityZone", newJString(AvailabilityZone)) + add(query_614901, "Version", newJString(Version)) + add(query_614901, "SnapshotId", newJString(SnapshotId)) + add(query_614901, "Iops", newJInt(Iops)) + result = call_614900.call(nil, query_614901, nil, nil, nil) var getCreateVolume* = Call_GetCreateVolume_614876(name: "getCreateVolume", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=CreateVolume", validator: validate_GetCreateVolume_614877, base: "/", url: url_GetCreateVolume_614878, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostCreateVpc_614949 = ref object of OpenApiRestCall_610658 -proc url_PostCreateVpc_614951(protocol: Scheme; host: string; base: string; + Call_PostCreateVpc_614951 = ref object of OpenApiRestCall_610658 +proc url_PostCreateVpc_614953(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -31832,7 +31859,7 @@ proc url_PostCreateVpc_614951(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostCreateVpc_614950(path: JsonNode; query: JsonNode; header: JsonNode; +proc validate_PostCreateVpc_614952(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Creates a VPC with the specified IPv4 CIDR block. The smallest VPC you can create uses a /28 netmask (16 IPv4 addresses), and the largest uses a /16 netmask (65,536 IPv4 addresses). For more information about how large to make your VPC, see Your VPC and Subnets in the Amazon Virtual Private Cloud User Guide.

You can optionally request an IPv6 CIDR block for the VPC. You can request an Amazon-provided IPv6 CIDR block from Amazon's pool of IPv6 addresses, or an IPv6 CIDR block from an IPv6 address pool that you provisioned through bring your own IP addresses (BYOIP).

By default, each instance you launch in the VPC has the default DHCP options, which include only a default DNS server that we provide (AmazonProvidedDNS). For more information, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide.

You can specify the instance tenancy value for the VPC when you create it. You can't change this value for the VPC after you create it. For more information, see Dedicated Instances in the Amazon Elastic Compute Cloud User Guide.

## @@ -31844,16 +31871,16 @@ proc validate_PostCreateVpc_614950(path: JsonNode; query: JsonNode; header: Json ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_614952 = query.getOrDefault("Action") - valid_614952 = validateParameter(valid_614952, JString, required = true, + var valid_614954 = query.getOrDefault("Action") + valid_614954 = validateParameter(valid_614954, JString, required = true, default = newJString("CreateVpc")) - if valid_614952 != nil: - section.add "Action", valid_614952 - var valid_614953 = query.getOrDefault("Version") - valid_614953 = validateParameter(valid_614953, JString, required = true, + if valid_614954 != nil: + section.add "Action", valid_614954 + var valid_614955 = query.getOrDefault("Version") + valid_614955 = validateParameter(valid_614955, JString, required = true, default = newJString("2016-11-15")) - if valid_614953 != nil: - section.add "Version", valid_614953 + if valid_614955 != nil: + section.add "Version", valid_614955 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -31864,41 +31891,41 @@ proc validate_PostCreateVpc_614950(path: JsonNode; query: JsonNode; header: Json ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_614954 = header.getOrDefault("X-Amz-Signature") - valid_614954 = validateParameter(valid_614954, JString, required = false, - default = nil) - if valid_614954 != nil: - section.add "X-Amz-Signature", valid_614954 - var valid_614955 = header.getOrDefault("X-Amz-Content-Sha256") - valid_614955 = validateParameter(valid_614955, JString, required = false, - default = nil) - if valid_614955 != nil: - section.add "X-Amz-Content-Sha256", valid_614955 - var valid_614956 = header.getOrDefault("X-Amz-Date") + var valid_614956 = header.getOrDefault("X-Amz-Signature") valid_614956 = validateParameter(valid_614956, JString, required = false, default = nil) if valid_614956 != nil: - section.add "X-Amz-Date", valid_614956 - var valid_614957 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_614956 + var valid_614957 = header.getOrDefault("X-Amz-Content-Sha256") valid_614957 = validateParameter(valid_614957, JString, required = false, default = nil) if valid_614957 != nil: - section.add "X-Amz-Credential", valid_614957 - var valid_614958 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_614957 + var valid_614958 = header.getOrDefault("X-Amz-Date") valid_614958 = validateParameter(valid_614958, JString, required = false, default = nil) if valid_614958 != nil: - section.add "X-Amz-Security-Token", valid_614958 - var valid_614959 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_614958 + var valid_614959 = header.getOrDefault("X-Amz-Credential") valid_614959 = validateParameter(valid_614959, JString, required = false, default = nil) if valid_614959 != nil: - section.add "X-Amz-Algorithm", valid_614959 - var valid_614960 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_614959 + var valid_614960 = header.getOrDefault("X-Amz-Security-Token") valid_614960 = validateParameter(valid_614960, JString, required = false, default = nil) if valid_614960 != nil: - section.add "X-Amz-SignedHeaders", valid_614960 + section.add "X-Amz-Security-Token", valid_614960 + var valid_614961 = header.getOrDefault("X-Amz-Algorithm") + valid_614961 = validateParameter(valid_614961, JString, required = false, + default = nil) + if valid_614961 != nil: + section.add "X-Amz-Algorithm", valid_614961 + var valid_614962 = header.getOrDefault("X-Amz-SignedHeaders") + valid_614962 = validateParameter(valid_614962, JString, required = false, + default = nil) + if valid_614962 != nil: + section.add "X-Amz-SignedHeaders", valid_614962 result.add "header", section ## parameters in `formData` object: ## Ipv6Pool: JString @@ -31916,59 +31943,59 @@ proc validate_PostCreateVpc_614950(path: JsonNode; query: JsonNode; header: Json ## Ipv6CidrBlock: JString ## :

The IPv6 CIDR block from the IPv6 address pool. You must also specify Ipv6Pool in the request.

To let Amazon choose the IPv6 CIDR block for you, omit this parameter.

section = newJObject() - var valid_614961 = formData.getOrDefault("Ipv6Pool") - valid_614961 = validateParameter(valid_614961, JString, required = false, + var valid_614963 = formData.getOrDefault("Ipv6Pool") + valid_614963 = validateParameter(valid_614963, JString, required = false, default = nil) - if valid_614961 != nil: - section.add "Ipv6Pool", valid_614961 - var valid_614962 = formData.getOrDefault("AmazonProvidedIpv6CidrBlock") - valid_614962 = validateParameter(valid_614962, JBool, required = false, default = nil) - if valid_614962 != nil: - section.add "AmazonProvidedIpv6CidrBlock", valid_614962 + if valid_614963 != nil: + section.add "Ipv6Pool", valid_614963 + var valid_614964 = formData.getOrDefault("AmazonProvidedIpv6CidrBlock") + valid_614964 = validateParameter(valid_614964, JBool, required = false, default = nil) + if valid_614964 != nil: + section.add "AmazonProvidedIpv6CidrBlock", valid_614964 assert formData != nil, "formData argument is necessary due to required `CidrBlock` field" - var valid_614963 = formData.getOrDefault("CidrBlock") - valid_614963 = validateParameter(valid_614963, JString, required = true, + var valid_614965 = formData.getOrDefault("CidrBlock") + valid_614965 = validateParameter(valid_614965, JString, required = true, default = nil) - if valid_614963 != nil: - section.add "CidrBlock", valid_614963 - var valid_614964 = formData.getOrDefault("Ipv6CidrBlockNetworkBorderGroup") - valid_614964 = validateParameter(valid_614964, JString, required = false, - default = nil) - if valid_614964 != nil: - section.add "Ipv6CidrBlockNetworkBorderGroup", valid_614964 - var valid_614965 = formData.getOrDefault("DryRun") - valid_614965 = validateParameter(valid_614965, JBool, required = false, default = nil) if valid_614965 != nil: - section.add "DryRun", valid_614965 - var valid_614966 = formData.getOrDefault("InstanceTenancy") + section.add "CidrBlock", valid_614965 + var valid_614966 = formData.getOrDefault("Ipv6CidrBlockNetworkBorderGroup") valid_614966 = validateParameter(valid_614966, JString, required = false, - default = newJString("default")) - if valid_614966 != nil: - section.add "InstanceTenancy", valid_614966 - var valid_614967 = formData.getOrDefault("Ipv6CidrBlock") - valid_614967 = validateParameter(valid_614967, JString, required = false, default = nil) + if valid_614966 != nil: + section.add "Ipv6CidrBlockNetworkBorderGroup", valid_614966 + var valid_614967 = formData.getOrDefault("DryRun") + valid_614967 = validateParameter(valid_614967, JBool, required = false, default = nil) if valid_614967 != nil: - section.add "Ipv6CidrBlock", valid_614967 + section.add "DryRun", valid_614967 + var valid_614968 = formData.getOrDefault("InstanceTenancy") + valid_614968 = validateParameter(valid_614968, JString, required = false, + default = newJString("default")) + if valid_614968 != nil: + section.add "InstanceTenancy", valid_614968 + var valid_614969 = formData.getOrDefault("Ipv6CidrBlock") + valid_614969 = validateParameter(valid_614969, JString, required = false, + default = nil) + if valid_614969 != nil: + section.add "Ipv6CidrBlock", valid_614969 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_614968: Call_PostCreateVpc_614949; path: JsonNode; query: JsonNode; +proc call*(call_614970: Call_PostCreateVpc_614951; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Creates a VPC with the specified IPv4 CIDR block. The smallest VPC you can create uses a /28 netmask (16 IPv4 addresses), and the largest uses a /16 netmask (65,536 IPv4 addresses). For more information about how large to make your VPC, see Your VPC and Subnets in the Amazon Virtual Private Cloud User Guide.

You can optionally request an IPv6 CIDR block for the VPC. You can request an Amazon-provided IPv6 CIDR block from Amazon's pool of IPv6 addresses, or an IPv6 CIDR block from an IPv6 address pool that you provisioned through bring your own IP addresses (BYOIP).

By default, each instance you launch in the VPC has the default DHCP options, which include only a default DNS server that we provide (AmazonProvidedDNS). For more information, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide.

You can specify the instance tenancy value for the VPC when you create it. You can't change this value for the VPC after you create it. For more information, see Dedicated Instances in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_614968.validator(path, query, header, formData, body) - let scheme = call_614968.pickScheme + let valid = call_614970.validator(path, query, header, formData, body) + let scheme = call_614970.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_614968.url(scheme.get, call_614968.host, call_614968.base, - call_614968.route, valid.getOrDefault("path"), + let url = call_614970.url(scheme.get, call_614970.host, call_614970.base, + call_614970.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_614968, url, valid) + result = atozHook(call_614970, url, valid) -proc call*(call_614969: Call_PostCreateVpc_614949; CidrBlock: string; +proc call*(call_614971: Call_PostCreateVpc_614951; CidrBlock: string; Ipv6Pool: string = ""; AmazonProvidedIpv6CidrBlock: bool = false; Ipv6CidrBlockNetworkBorderGroup: string = ""; DryRun: bool = false; Action: string = "CreateVpc"; InstanceTenancy: string = "default"; @@ -31991,28 +32018,28 @@ proc call*(call_614969: Call_PostCreateVpc_614949; CidrBlock: string; ## Version: string (required) ## Ipv6CidrBlock: string ## :

The IPv6 CIDR block from the IPv6 address pool. You must also specify Ipv6Pool in the request.

To let Amazon choose the IPv6 CIDR block for you, omit this parameter.

- var query_614970 = newJObject() - var formData_614971 = newJObject() - add(formData_614971, "Ipv6Pool", newJString(Ipv6Pool)) - add(formData_614971, "AmazonProvidedIpv6CidrBlock", + var query_614972 = newJObject() + var formData_614973 = newJObject() + add(formData_614973, "Ipv6Pool", newJString(Ipv6Pool)) + add(formData_614973, "AmazonProvidedIpv6CidrBlock", newJBool(AmazonProvidedIpv6CidrBlock)) - add(formData_614971, "CidrBlock", newJString(CidrBlock)) - add(formData_614971, "Ipv6CidrBlockNetworkBorderGroup", + add(formData_614973, "CidrBlock", newJString(CidrBlock)) + add(formData_614973, "Ipv6CidrBlockNetworkBorderGroup", newJString(Ipv6CidrBlockNetworkBorderGroup)) - add(formData_614971, "DryRun", newJBool(DryRun)) - add(query_614970, "Action", newJString(Action)) - add(formData_614971, "InstanceTenancy", newJString(InstanceTenancy)) - add(query_614970, "Version", newJString(Version)) - add(formData_614971, "Ipv6CidrBlock", newJString(Ipv6CidrBlock)) - result = call_614969.call(nil, query_614970, nil, formData_614971, nil) - -var postCreateVpc* = Call_PostCreateVpc_614949(name: "postCreateVpc", + add(formData_614973, "DryRun", newJBool(DryRun)) + add(query_614972, "Action", newJString(Action)) + add(formData_614973, "InstanceTenancy", newJString(InstanceTenancy)) + add(query_614972, "Version", newJString(Version)) + add(formData_614973, "Ipv6CidrBlock", newJString(Ipv6CidrBlock)) + result = call_614971.call(nil, query_614972, nil, formData_614973, nil) + +var postCreateVpc* = Call_PostCreateVpc_614951(name: "postCreateVpc", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", - route: "/#Action=CreateVpc", validator: validate_PostCreateVpc_614950, - base: "/", url: url_PostCreateVpc_614951, schemes: {Scheme.Https, Scheme.Http}) + route: "/#Action=CreateVpc", validator: validate_PostCreateVpc_614952, + base: "/", url: url_PostCreateVpc_614953, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetCreateVpc_614927 = ref object of OpenApiRestCall_610658 -proc url_GetCreateVpc_614929(protocol: Scheme; host: string; base: string; + Call_GetCreateVpc_614929 = ref object of OpenApiRestCall_610658 +proc url_GetCreateVpc_614931(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -32022,7 +32049,7 @@ proc url_GetCreateVpc_614929(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetCreateVpc_614928(path: JsonNode; query: JsonNode; header: JsonNode; +proc validate_GetCreateVpc_614930(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Creates a VPC with the specified IPv4 CIDR block. The smallest VPC you can create uses a /28 netmask (16 IPv4 addresses), and the largest uses a /16 netmask (65,536 IPv4 addresses). For more information about how large to make your VPC, see Your VPC and Subnets in the Amazon Virtual Private Cloud User Guide.

You can optionally request an IPv6 CIDR block for the VPC. You can request an Amazon-provided IPv6 CIDR block from Amazon's pool of IPv6 addresses, or an IPv6 CIDR block from an IPv6 address pool that you provisioned through bring your own IP addresses (BYOIP).

By default, each instance you launch in the VPC has the default DHCP options, which include only a default DNS server that we provide (AmazonProvidedDNS). For more information, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide.

You can specify the instance tenancy value for the VPC when you create it. You can't change this value for the VPC after you create it. For more information, see Dedicated Instances in the Amazon Elastic Compute Cloud User Guide.

## @@ -32048,49 +32075,49 @@ proc validate_GetCreateVpc_614928(path: JsonNode; query: JsonNode; header: JsonN ## : The IPv4 network range for the VPC, in CIDR notation. For example, 10.0.0.0/16. ## Version: JString (required) section = newJObject() - var valid_614930 = query.getOrDefault("Ipv6CidrBlockNetworkBorderGroup") - valid_614930 = validateParameter(valid_614930, JString, required = false, + var valid_614932 = query.getOrDefault("Ipv6CidrBlockNetworkBorderGroup") + valid_614932 = validateParameter(valid_614932, JString, required = false, default = nil) - if valid_614930 != nil: - section.add "Ipv6CidrBlockNetworkBorderGroup", valid_614930 - var valid_614931 = query.getOrDefault("AmazonProvidedIpv6CidrBlock") - valid_614931 = validateParameter(valid_614931, JBool, required = false, default = nil) - if valid_614931 != nil: - section.add "AmazonProvidedIpv6CidrBlock", valid_614931 - var valid_614932 = query.getOrDefault("DryRun") - valid_614932 = validateParameter(valid_614932, JBool, required = false, default = nil) if valid_614932 != nil: - section.add "DryRun", valid_614932 - var valid_614933 = query.getOrDefault("InstanceTenancy") - valid_614933 = validateParameter(valid_614933, JString, required = false, - default = newJString("default")) + section.add "Ipv6CidrBlockNetworkBorderGroup", valid_614932 + var valid_614933 = query.getOrDefault("AmazonProvidedIpv6CidrBlock") + valid_614933 = validateParameter(valid_614933, JBool, required = false, default = nil) if valid_614933 != nil: - section.add "InstanceTenancy", valid_614933 - var valid_614934 = query.getOrDefault("Ipv6Pool") - valid_614934 = validateParameter(valid_614934, JString, required = false, - default = nil) + section.add "AmazonProvidedIpv6CidrBlock", valid_614933 + var valid_614934 = query.getOrDefault("DryRun") + valid_614934 = validateParameter(valid_614934, JBool, required = false, default = nil) if valid_614934 != nil: - section.add "Ipv6Pool", valid_614934 - var valid_614935 = query.getOrDefault("Action") - valid_614935 = validateParameter(valid_614935, JString, required = true, - default = newJString("CreateVpc")) + section.add "DryRun", valid_614934 + var valid_614935 = query.getOrDefault("InstanceTenancy") + valid_614935 = validateParameter(valid_614935, JString, required = false, + default = newJString("default")) if valid_614935 != nil: - section.add "Action", valid_614935 - var valid_614936 = query.getOrDefault("Ipv6CidrBlock") + section.add "InstanceTenancy", valid_614935 + var valid_614936 = query.getOrDefault("Ipv6Pool") valid_614936 = validateParameter(valid_614936, JString, required = false, default = nil) if valid_614936 != nil: - section.add "Ipv6CidrBlock", valid_614936 - var valid_614937 = query.getOrDefault("CidrBlock") + section.add "Ipv6Pool", valid_614936 + var valid_614937 = query.getOrDefault("Action") valid_614937 = validateParameter(valid_614937, JString, required = true, - default = nil) + default = newJString("CreateVpc")) if valid_614937 != nil: - section.add "CidrBlock", valid_614937 - var valid_614938 = query.getOrDefault("Version") - valid_614938 = validateParameter(valid_614938, JString, required = true, - default = newJString("2016-11-15")) + section.add "Action", valid_614937 + var valid_614938 = query.getOrDefault("Ipv6CidrBlock") + valid_614938 = validateParameter(valid_614938, JString, required = false, + default = nil) if valid_614938 != nil: - section.add "Version", valid_614938 + section.add "Ipv6CidrBlock", valid_614938 + var valid_614939 = query.getOrDefault("CidrBlock") + valid_614939 = validateParameter(valid_614939, JString, required = true, + default = nil) + if valid_614939 != nil: + section.add "CidrBlock", valid_614939 + var valid_614940 = query.getOrDefault("Version") + valid_614940 = validateParameter(valid_614940, JString, required = true, + default = newJString("2016-11-15")) + if valid_614940 != nil: + section.add "Version", valid_614940 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -32101,61 +32128,61 @@ proc validate_GetCreateVpc_614928(path: JsonNode; query: JsonNode; header: JsonN ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_614939 = header.getOrDefault("X-Amz-Signature") - valid_614939 = validateParameter(valid_614939, JString, required = false, - default = nil) - if valid_614939 != nil: - section.add "X-Amz-Signature", valid_614939 - var valid_614940 = header.getOrDefault("X-Amz-Content-Sha256") - valid_614940 = validateParameter(valid_614940, JString, required = false, - default = nil) - if valid_614940 != nil: - section.add "X-Amz-Content-Sha256", valid_614940 - var valid_614941 = header.getOrDefault("X-Amz-Date") + var valid_614941 = header.getOrDefault("X-Amz-Signature") valid_614941 = validateParameter(valid_614941, JString, required = false, default = nil) if valid_614941 != nil: - section.add "X-Amz-Date", valid_614941 - var valid_614942 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_614941 + var valid_614942 = header.getOrDefault("X-Amz-Content-Sha256") valid_614942 = validateParameter(valid_614942, JString, required = false, default = nil) if valid_614942 != nil: - section.add "X-Amz-Credential", valid_614942 - var valid_614943 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_614942 + var valid_614943 = header.getOrDefault("X-Amz-Date") valid_614943 = validateParameter(valid_614943, JString, required = false, default = nil) if valid_614943 != nil: - section.add "X-Amz-Security-Token", valid_614943 - var valid_614944 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_614943 + var valid_614944 = header.getOrDefault("X-Amz-Credential") valid_614944 = validateParameter(valid_614944, JString, required = false, default = nil) if valid_614944 != nil: - section.add "X-Amz-Algorithm", valid_614944 - var valid_614945 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_614944 + var valid_614945 = header.getOrDefault("X-Amz-Security-Token") valid_614945 = validateParameter(valid_614945, JString, required = false, default = nil) if valid_614945 != nil: - section.add "X-Amz-SignedHeaders", valid_614945 + section.add "X-Amz-Security-Token", valid_614945 + var valid_614946 = header.getOrDefault("X-Amz-Algorithm") + valid_614946 = validateParameter(valid_614946, JString, required = false, + default = nil) + if valid_614946 != nil: + section.add "X-Amz-Algorithm", valid_614946 + var valid_614947 = header.getOrDefault("X-Amz-SignedHeaders") + valid_614947 = validateParameter(valid_614947, JString, required = false, + default = nil) + if valid_614947 != nil: + section.add "X-Amz-SignedHeaders", valid_614947 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_614946: Call_GetCreateVpc_614927; path: JsonNode; query: JsonNode; +proc call*(call_614948: Call_GetCreateVpc_614929; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Creates a VPC with the specified IPv4 CIDR block. The smallest VPC you can create uses a /28 netmask (16 IPv4 addresses), and the largest uses a /16 netmask (65,536 IPv4 addresses). For more information about how large to make your VPC, see Your VPC and Subnets in the Amazon Virtual Private Cloud User Guide.

You can optionally request an IPv6 CIDR block for the VPC. You can request an Amazon-provided IPv6 CIDR block from Amazon's pool of IPv6 addresses, or an IPv6 CIDR block from an IPv6 address pool that you provisioned through bring your own IP addresses (BYOIP).

By default, each instance you launch in the VPC has the default DHCP options, which include only a default DNS server that we provide (AmazonProvidedDNS). For more information, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide.

You can specify the instance tenancy value for the VPC when you create it. You can't change this value for the VPC after you create it. For more information, see Dedicated Instances in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_614946.validator(path, query, header, formData, body) - let scheme = call_614946.pickScheme + let valid = call_614948.validator(path, query, header, formData, body) + let scheme = call_614948.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_614946.url(scheme.get, call_614946.host, call_614946.base, - call_614946.route, valid.getOrDefault("path"), + let url = call_614948.url(scheme.get, call_614948.host, call_614948.base, + call_614948.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_614946, url, valid) + result = atozHook(call_614948, url, valid) -proc call*(call_614947: Call_GetCreateVpc_614927; CidrBlock: string; +proc call*(call_614949: Call_GetCreateVpc_614929; CidrBlock: string; Ipv6CidrBlockNetworkBorderGroup: string = ""; AmazonProvidedIpv6CidrBlock: bool = false; DryRun: bool = false; InstanceTenancy: string = "default"; Ipv6Pool: string = ""; @@ -32179,27 +32206,27 @@ proc call*(call_614947: Call_GetCreateVpc_614927; CidrBlock: string; ## CidrBlock: string (required) ## : The IPv4 network range for the VPC, in CIDR notation. For example, 10.0.0.0/16. ## Version: string (required) - var query_614948 = newJObject() - add(query_614948, "Ipv6CidrBlockNetworkBorderGroup", + var query_614950 = newJObject() + add(query_614950, "Ipv6CidrBlockNetworkBorderGroup", newJString(Ipv6CidrBlockNetworkBorderGroup)) - add(query_614948, "AmazonProvidedIpv6CidrBlock", + add(query_614950, "AmazonProvidedIpv6CidrBlock", newJBool(AmazonProvidedIpv6CidrBlock)) - add(query_614948, "DryRun", newJBool(DryRun)) - add(query_614948, "InstanceTenancy", newJString(InstanceTenancy)) - add(query_614948, "Ipv6Pool", newJString(Ipv6Pool)) - add(query_614948, "Action", newJString(Action)) - add(query_614948, "Ipv6CidrBlock", newJString(Ipv6CidrBlock)) - add(query_614948, "CidrBlock", newJString(CidrBlock)) - add(query_614948, "Version", newJString(Version)) - result = call_614947.call(nil, query_614948, nil, nil, nil) - -var getCreateVpc* = Call_GetCreateVpc_614927(name: "getCreateVpc", + add(query_614950, "DryRun", newJBool(DryRun)) + add(query_614950, "InstanceTenancy", newJString(InstanceTenancy)) + add(query_614950, "Ipv6Pool", newJString(Ipv6Pool)) + add(query_614950, "Action", newJString(Action)) + add(query_614950, "Ipv6CidrBlock", newJString(Ipv6CidrBlock)) + add(query_614950, "CidrBlock", newJString(CidrBlock)) + add(query_614950, "Version", newJString(Version)) + result = call_614949.call(nil, query_614950, nil, nil, nil) + +var getCreateVpc* = Call_GetCreateVpc_614929(name: "getCreateVpc", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=CreateVpc", validator: validate_GetCreateVpc_614928, base: "/", - url: url_GetCreateVpc_614929, schemes: {Scheme.Https, Scheme.Http}) + route: "/#Action=CreateVpc", validator: validate_GetCreateVpc_614930, base: "/", + url: url_GetCreateVpc_614931, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostCreateVpcEndpoint_614998 = ref object of OpenApiRestCall_610658 -proc url_PostCreateVpcEndpoint_615000(protocol: Scheme; host: string; base: string; + Call_PostCreateVpcEndpoint_615000 = ref object of OpenApiRestCall_610658 +proc url_PostCreateVpcEndpoint_615002(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -32209,7 +32236,7 @@ proc url_PostCreateVpcEndpoint_615000(protocol: Scheme; host: string; base: stri else: result.path = base & route -proc validate_PostCreateVpcEndpoint_614999(path: JsonNode; query: JsonNode; +proc validate_PostCreateVpcEndpoint_615001(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Creates a VPC endpoint for a specified service. An endpoint enables you to create a private connection between your VPC and the service. The service may be provided by AWS, an AWS Marketplace Partner, or another AWS account. For more information, see VPC Endpoints in the Amazon Virtual Private Cloud User Guide.

A gateway endpoint serves as a target for a route in your route table for traffic destined for the AWS service. You can specify an endpoint policy to attach to the endpoint, which will control access to the service from your VPC. You can also specify the VPC route tables that use the endpoint.

An interface endpoint is a network interface in your subnet that serves as an endpoint for communicating with the specified service. You can specify the subnets in which to create an endpoint, and the security groups to associate with the endpoint network interface.

Use DescribeVpcEndpointServices to get a list of supported services.

## @@ -32221,16 +32248,16 @@ proc validate_PostCreateVpcEndpoint_614999(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615001 = query.getOrDefault("Action") - valid_615001 = validateParameter(valid_615001, JString, required = true, + var valid_615003 = query.getOrDefault("Action") + valid_615003 = validateParameter(valid_615003, JString, required = true, default = newJString("CreateVpcEndpoint")) - if valid_615001 != nil: - section.add "Action", valid_615001 - var valid_615002 = query.getOrDefault("Version") - valid_615002 = validateParameter(valid_615002, JString, required = true, + if valid_615003 != nil: + section.add "Action", valid_615003 + var valid_615004 = query.getOrDefault("Version") + valid_615004 = validateParameter(valid_615004, JString, required = true, default = newJString("2016-11-15")) - if valid_615002 != nil: - section.add "Version", valid_615002 + if valid_615004 != nil: + section.add "Version", valid_615004 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -32241,41 +32268,41 @@ proc validate_PostCreateVpcEndpoint_614999(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615003 = header.getOrDefault("X-Amz-Signature") - valid_615003 = validateParameter(valid_615003, JString, required = false, - default = nil) - if valid_615003 != nil: - section.add "X-Amz-Signature", valid_615003 - var valid_615004 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615004 = validateParameter(valid_615004, JString, required = false, - default = nil) - if valid_615004 != nil: - section.add "X-Amz-Content-Sha256", valid_615004 - var valid_615005 = header.getOrDefault("X-Amz-Date") + var valid_615005 = header.getOrDefault("X-Amz-Signature") valid_615005 = validateParameter(valid_615005, JString, required = false, default = nil) if valid_615005 != nil: - section.add "X-Amz-Date", valid_615005 - var valid_615006 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615005 + var valid_615006 = header.getOrDefault("X-Amz-Content-Sha256") valid_615006 = validateParameter(valid_615006, JString, required = false, default = nil) if valid_615006 != nil: - section.add "X-Amz-Credential", valid_615006 - var valid_615007 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615006 + var valid_615007 = header.getOrDefault("X-Amz-Date") valid_615007 = validateParameter(valid_615007, JString, required = false, default = nil) if valid_615007 != nil: - section.add "X-Amz-Security-Token", valid_615007 - var valid_615008 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615007 + var valid_615008 = header.getOrDefault("X-Amz-Credential") valid_615008 = validateParameter(valid_615008, JString, required = false, default = nil) if valid_615008 != nil: - section.add "X-Amz-Algorithm", valid_615008 - var valid_615009 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615008 + var valid_615009 = header.getOrDefault("X-Amz-Security-Token") valid_615009 = validateParameter(valid_615009, JString, required = false, default = nil) if valid_615009 != nil: - section.add "X-Amz-SignedHeaders", valid_615009 + section.add "X-Amz-Security-Token", valid_615009 + var valid_615010 = header.getOrDefault("X-Amz-Algorithm") + valid_615010 = validateParameter(valid_615010, JString, required = false, + default = nil) + if valid_615010 != nil: + section.add "X-Amz-Algorithm", valid_615010 + var valid_615011 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615011 = validateParameter(valid_615011, JString, required = false, + default = nil) + if valid_615011 != nil: + section.add "X-Amz-SignedHeaders", valid_615011 result.add "header", section ## parameters in `formData` object: ## PolicyDocument: JString @@ -32302,79 +32329,79 @@ proc validate_PostCreateVpcEndpoint_614999(path: JsonNode; query: JsonNode; ## : Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency. section = newJObject() - var valid_615010 = formData.getOrDefault("PolicyDocument") - valid_615010 = validateParameter(valid_615010, JString, required = false, + var valid_615012 = formData.getOrDefault("PolicyDocument") + valid_615012 = validateParameter(valid_615012, JString, required = false, default = nil) - if valid_615010 != nil: - section.add "PolicyDocument", valid_615010 + if valid_615012 != nil: + section.add "PolicyDocument", valid_615012 assert formData != nil, "formData argument is necessary due to required `VpcId` field" - var valid_615011 = formData.getOrDefault("VpcId") - valid_615011 = validateParameter(valid_615011, JString, required = true, - default = nil) - if valid_615011 != nil: - section.add "VpcId", valid_615011 - var valid_615012 = formData.getOrDefault("ServiceName") - valid_615012 = validateParameter(valid_615012, JString, required = true, + var valid_615013 = formData.getOrDefault("VpcId") + valid_615013 = validateParameter(valid_615013, JString, required = true, default = nil) - if valid_615012 != nil: - section.add "ServiceName", valid_615012 - var valid_615013 = formData.getOrDefault("VpcEndpointType") - valid_615013 = validateParameter(valid_615013, JString, required = false, - default = newJString("Interface")) if valid_615013 != nil: - section.add "VpcEndpointType", valid_615013 - var valid_615014 = formData.getOrDefault("SecurityGroupId") - valid_615014 = validateParameter(valid_615014, JArray, required = false, + section.add "VpcId", valid_615013 + var valid_615014 = formData.getOrDefault("ServiceName") + valid_615014 = validateParameter(valid_615014, JString, required = true, default = nil) if valid_615014 != nil: - section.add "SecurityGroupId", valid_615014 - var valid_615015 = formData.getOrDefault("SubnetId") - valid_615015 = validateParameter(valid_615015, JArray, required = false, - default = nil) + section.add "ServiceName", valid_615014 + var valid_615015 = formData.getOrDefault("VpcEndpointType") + valid_615015 = validateParameter(valid_615015, JString, required = false, + default = newJString("Interface")) if valid_615015 != nil: - section.add "SubnetId", valid_615015 - var valid_615016 = formData.getOrDefault("DryRun") - valid_615016 = validateParameter(valid_615016, JBool, required = false, default = nil) + section.add "VpcEndpointType", valid_615015 + var valid_615016 = formData.getOrDefault("SecurityGroupId") + valid_615016 = validateParameter(valid_615016, JArray, required = false, + default = nil) if valid_615016 != nil: - section.add "DryRun", valid_615016 - var valid_615017 = formData.getOrDefault("RouteTableId") + section.add "SecurityGroupId", valid_615016 + var valid_615017 = formData.getOrDefault("SubnetId") valid_615017 = validateParameter(valid_615017, JArray, required = false, default = nil) if valid_615017 != nil: - section.add "RouteTableId", valid_615017 - var valid_615018 = formData.getOrDefault("TagSpecification") - valid_615018 = validateParameter(valid_615018, JArray, required = false, - default = nil) + section.add "SubnetId", valid_615017 + var valid_615018 = formData.getOrDefault("DryRun") + valid_615018 = validateParameter(valid_615018, JBool, required = false, default = nil) if valid_615018 != nil: - section.add "TagSpecification", valid_615018 - var valid_615019 = formData.getOrDefault("PrivateDnsEnabled") - valid_615019 = validateParameter(valid_615019, JBool, required = false, default = nil) + section.add "DryRun", valid_615018 + var valid_615019 = formData.getOrDefault("RouteTableId") + valid_615019 = validateParameter(valid_615019, JArray, required = false, + default = nil) if valid_615019 != nil: - section.add "PrivateDnsEnabled", valid_615019 - var valid_615020 = formData.getOrDefault("ClientToken") - valid_615020 = validateParameter(valid_615020, JString, required = false, + section.add "RouteTableId", valid_615019 + var valid_615020 = formData.getOrDefault("TagSpecification") + valid_615020 = validateParameter(valid_615020, JArray, required = false, default = nil) if valid_615020 != nil: - section.add "ClientToken", valid_615020 + section.add "TagSpecification", valid_615020 + var valid_615021 = formData.getOrDefault("PrivateDnsEnabled") + valid_615021 = validateParameter(valid_615021, JBool, required = false, default = nil) + if valid_615021 != nil: + section.add "PrivateDnsEnabled", valid_615021 + var valid_615022 = formData.getOrDefault("ClientToken") + valid_615022 = validateParameter(valid_615022, JString, required = false, + default = nil) + if valid_615022 != nil: + section.add "ClientToken", valid_615022 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615021: Call_PostCreateVpcEndpoint_614998; path: JsonNode; +proc call*(call_615023: Call_PostCreateVpcEndpoint_615000; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Creates a VPC endpoint for a specified service. An endpoint enables you to create a private connection between your VPC and the service. The service may be provided by AWS, an AWS Marketplace Partner, or another AWS account. For more information, see VPC Endpoints in the Amazon Virtual Private Cloud User Guide.

A gateway endpoint serves as a target for a route in your route table for traffic destined for the AWS service. You can specify an endpoint policy to attach to the endpoint, which will control access to the service from your VPC. You can also specify the VPC route tables that use the endpoint.

An interface endpoint is a network interface in your subnet that serves as an endpoint for communicating with the specified service. You can specify the subnets in which to create an endpoint, and the security groups to associate with the endpoint network interface.

Use DescribeVpcEndpointServices to get a list of supported services.

## - let valid = call_615021.validator(path, query, header, formData, body) - let scheme = call_615021.pickScheme + let valid = call_615023.validator(path, query, header, formData, body) + let scheme = call_615023.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615021.url(scheme.get, call_615021.host, call_615021.base, - call_615021.route, valid.getOrDefault("path"), + let url = call_615023.url(scheme.get, call_615023.host, call_615023.base, + call_615023.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615021, url, valid) + result = atozHook(call_615023, url, valid) -proc call*(call_615022: Call_PostCreateVpcEndpoint_614998; VpcId: string; +proc call*(call_615024: Call_PostCreateVpcEndpoint_615000; VpcId: string; ServiceName: string; PolicyDocument: string = ""; VpcEndpointType: string = "Interface"; SecurityGroupId: JsonNode = nil; SubnetId: JsonNode = nil; DryRun: bool = false; RouteTableId: JsonNode = nil; @@ -32408,35 +32435,35 @@ proc call*(call_615022: Call_PostCreateVpcEndpoint_614998; VpcId: string; ## ClientToken: string ## : Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency. - var query_615023 = newJObject() - var formData_615024 = newJObject() - add(formData_615024, "PolicyDocument", newJString(PolicyDocument)) - add(formData_615024, "VpcId", newJString(VpcId)) - add(formData_615024, "ServiceName", newJString(ServiceName)) - add(formData_615024, "VpcEndpointType", newJString(VpcEndpointType)) + var query_615025 = newJObject() + var formData_615026 = newJObject() + add(formData_615026, "PolicyDocument", newJString(PolicyDocument)) + add(formData_615026, "VpcId", newJString(VpcId)) + add(formData_615026, "ServiceName", newJString(ServiceName)) + add(formData_615026, "VpcEndpointType", newJString(VpcEndpointType)) if SecurityGroupId != nil: - formData_615024.add "SecurityGroupId", SecurityGroupId + formData_615026.add "SecurityGroupId", SecurityGroupId if SubnetId != nil: - formData_615024.add "SubnetId", SubnetId - add(formData_615024, "DryRun", newJBool(DryRun)) + formData_615026.add "SubnetId", SubnetId + add(formData_615026, "DryRun", newJBool(DryRun)) if RouteTableId != nil: - formData_615024.add "RouteTableId", RouteTableId - add(query_615023, "Action", newJString(Action)) + formData_615026.add "RouteTableId", RouteTableId + add(query_615025, "Action", newJString(Action)) if TagSpecification != nil: - formData_615024.add "TagSpecification", TagSpecification - add(formData_615024, "PrivateDnsEnabled", newJBool(PrivateDnsEnabled)) - add(query_615023, "Version", newJString(Version)) - add(formData_615024, "ClientToken", newJString(ClientToken)) - result = call_615022.call(nil, query_615023, nil, formData_615024, nil) + formData_615026.add "TagSpecification", TagSpecification + add(formData_615026, "PrivateDnsEnabled", newJBool(PrivateDnsEnabled)) + add(query_615025, "Version", newJString(Version)) + add(formData_615026, "ClientToken", newJString(ClientToken)) + result = call_615024.call(nil, query_615025, nil, formData_615026, nil) -var postCreateVpcEndpoint* = Call_PostCreateVpcEndpoint_614998( +var postCreateVpcEndpoint* = Call_PostCreateVpcEndpoint_615000( name: "postCreateVpcEndpoint", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=CreateVpcEndpoint", - validator: validate_PostCreateVpcEndpoint_614999, base: "/", - url: url_PostCreateVpcEndpoint_615000, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostCreateVpcEndpoint_615001, base: "/", + url: url_PostCreateVpcEndpoint_615002, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetCreateVpcEndpoint_614972 = ref object of OpenApiRestCall_610658 -proc url_GetCreateVpcEndpoint_614974(protocol: Scheme; host: string; base: string; + Call_GetCreateVpcEndpoint_614974 = ref object of OpenApiRestCall_610658 +proc url_GetCreateVpcEndpoint_614976(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -32446,7 +32473,7 @@ proc url_GetCreateVpcEndpoint_614974(protocol: Scheme; host: string; base: strin else: result.path = base & route -proc validate_GetCreateVpcEndpoint_614973(path: JsonNode; query: JsonNode; +proc validate_GetCreateVpcEndpoint_614975(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Creates a VPC endpoint for a specified service. An endpoint enables you to create a private connection between your VPC and the service. The service may be provided by AWS, an AWS Marketplace Partner, or another AWS account. For more information, see VPC Endpoints in the Amazon Virtual Private Cloud User Guide.

A gateway endpoint serves as a target for a route in your route table for traffic destined for the AWS service. You can specify an endpoint policy to attach to the endpoint, which will control access to the service from your VPC. You can also specify the VPC route tables that use the endpoint.

An interface endpoint is a network interface in your subnet that serves as an endpoint for communicating with the specified service. You can specify the subnets in which to create an endpoint, and the security groups to associate with the endpoint network interface.

Use DescribeVpcEndpointServices to get a list of supported services.

## @@ -32481,70 +32508,70 @@ proc validate_GetCreateVpcEndpoint_614973(path: JsonNode; query: JsonNode; ## : Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency. section = newJObject() - var valid_614975 = query.getOrDefault("VpcEndpointType") - valid_614975 = validateParameter(valid_614975, JString, required = false, + var valid_614977 = query.getOrDefault("VpcEndpointType") + valid_614977 = validateParameter(valid_614977, JString, required = false, default = newJString("Interface")) - if valid_614975 != nil: - section.add "VpcEndpointType", valid_614975 - var valid_614976 = query.getOrDefault("PrivateDnsEnabled") - valid_614976 = validateParameter(valid_614976, JBool, required = false, default = nil) - if valid_614976 != nil: - section.add "PrivateDnsEnabled", valid_614976 - var valid_614977 = query.getOrDefault("SecurityGroupId") - valid_614977 = validateParameter(valid_614977, JArray, required = false, - default = nil) if valid_614977 != nil: - section.add "SecurityGroupId", valid_614977 - var valid_614978 = query.getOrDefault("DryRun") + section.add "VpcEndpointType", valid_614977 + var valid_614978 = query.getOrDefault("PrivateDnsEnabled") valid_614978 = validateParameter(valid_614978, JBool, required = false, default = nil) if valid_614978 != nil: - section.add "DryRun", valid_614978 - assert query != nil, "query argument is necessary due to required `VpcId` field" - var valid_614979 = query.getOrDefault("VpcId") - valid_614979 = validateParameter(valid_614979, JString, required = true, + section.add "PrivateDnsEnabled", valid_614978 + var valid_614979 = query.getOrDefault("SecurityGroupId") + valid_614979 = validateParameter(valid_614979, JArray, required = false, default = nil) if valid_614979 != nil: - section.add "VpcId", valid_614979 - var valid_614980 = query.getOrDefault("ServiceName") - valid_614980 = validateParameter(valid_614980, JString, required = true, - default = nil) + section.add "SecurityGroupId", valid_614979 + var valid_614980 = query.getOrDefault("DryRun") + valid_614980 = validateParameter(valid_614980, JBool, required = false, default = nil) if valid_614980 != nil: - section.add "ServiceName", valid_614980 - var valid_614981 = query.getOrDefault("PolicyDocument") - valid_614981 = validateParameter(valid_614981, JString, required = false, + section.add "DryRun", valid_614980 + assert query != nil, "query argument is necessary due to required `VpcId` field" + var valid_614981 = query.getOrDefault("VpcId") + valid_614981 = validateParameter(valid_614981, JString, required = true, default = nil) if valid_614981 != nil: - section.add "PolicyDocument", valid_614981 - var valid_614982 = query.getOrDefault("Action") + section.add "VpcId", valid_614981 + var valid_614982 = query.getOrDefault("ServiceName") valid_614982 = validateParameter(valid_614982, JString, required = true, - default = newJString("CreateVpcEndpoint")) + default = nil) if valid_614982 != nil: - section.add "Action", valid_614982 - var valid_614983 = query.getOrDefault("SubnetId") - valid_614983 = validateParameter(valid_614983, JArray, required = false, + section.add "ServiceName", valid_614982 + var valid_614983 = query.getOrDefault("PolicyDocument") + valid_614983 = validateParameter(valid_614983, JString, required = false, default = nil) if valid_614983 != nil: - section.add "SubnetId", valid_614983 - var valid_614984 = query.getOrDefault("TagSpecification") - valid_614984 = validateParameter(valid_614984, JArray, required = false, - default = nil) + section.add "PolicyDocument", valid_614983 + var valid_614984 = query.getOrDefault("Action") + valid_614984 = validateParameter(valid_614984, JString, required = true, + default = newJString("CreateVpcEndpoint")) if valid_614984 != nil: - section.add "TagSpecification", valid_614984 - var valid_614985 = query.getOrDefault("Version") - valid_614985 = validateParameter(valid_614985, JString, required = true, - default = newJString("2016-11-15")) + section.add "Action", valid_614984 + var valid_614985 = query.getOrDefault("SubnetId") + valid_614985 = validateParameter(valid_614985, JArray, required = false, + default = nil) if valid_614985 != nil: - section.add "Version", valid_614985 - var valid_614986 = query.getOrDefault("RouteTableId") + section.add "SubnetId", valid_614985 + var valid_614986 = query.getOrDefault("TagSpecification") valid_614986 = validateParameter(valid_614986, JArray, required = false, default = nil) if valid_614986 != nil: - section.add "RouteTableId", valid_614986 - var valid_614987 = query.getOrDefault("ClientToken") - valid_614987 = validateParameter(valid_614987, JString, required = false, - default = nil) + section.add "TagSpecification", valid_614986 + var valid_614987 = query.getOrDefault("Version") + valid_614987 = validateParameter(valid_614987, JString, required = true, + default = newJString("2016-11-15")) if valid_614987 != nil: - section.add "ClientToken", valid_614987 + section.add "Version", valid_614987 + var valid_614988 = query.getOrDefault("RouteTableId") + valid_614988 = validateParameter(valid_614988, JArray, required = false, + default = nil) + if valid_614988 != nil: + section.add "RouteTableId", valid_614988 + var valid_614989 = query.getOrDefault("ClientToken") + valid_614989 = validateParameter(valid_614989, JString, required = false, + default = nil) + if valid_614989 != nil: + section.add "ClientToken", valid_614989 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -32555,61 +32582,61 @@ proc validate_GetCreateVpcEndpoint_614973(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_614988 = header.getOrDefault("X-Amz-Signature") - valid_614988 = validateParameter(valid_614988, JString, required = false, - default = nil) - if valid_614988 != nil: - section.add "X-Amz-Signature", valid_614988 - var valid_614989 = header.getOrDefault("X-Amz-Content-Sha256") - valid_614989 = validateParameter(valid_614989, JString, required = false, - default = nil) - if valid_614989 != nil: - section.add "X-Amz-Content-Sha256", valid_614989 - var valid_614990 = header.getOrDefault("X-Amz-Date") + var valid_614990 = header.getOrDefault("X-Amz-Signature") valid_614990 = validateParameter(valid_614990, JString, required = false, default = nil) if valid_614990 != nil: - section.add "X-Amz-Date", valid_614990 - var valid_614991 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_614990 + var valid_614991 = header.getOrDefault("X-Amz-Content-Sha256") valid_614991 = validateParameter(valid_614991, JString, required = false, default = nil) if valid_614991 != nil: - section.add "X-Amz-Credential", valid_614991 - var valid_614992 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_614991 + var valid_614992 = header.getOrDefault("X-Amz-Date") valid_614992 = validateParameter(valid_614992, JString, required = false, default = nil) if valid_614992 != nil: - section.add "X-Amz-Security-Token", valid_614992 - var valid_614993 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_614992 + var valid_614993 = header.getOrDefault("X-Amz-Credential") valid_614993 = validateParameter(valid_614993, JString, required = false, default = nil) if valid_614993 != nil: - section.add "X-Amz-Algorithm", valid_614993 - var valid_614994 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_614993 + var valid_614994 = header.getOrDefault("X-Amz-Security-Token") valid_614994 = validateParameter(valid_614994, JString, required = false, default = nil) if valid_614994 != nil: - section.add "X-Amz-SignedHeaders", valid_614994 + section.add "X-Amz-Security-Token", valid_614994 + var valid_614995 = header.getOrDefault("X-Amz-Algorithm") + valid_614995 = validateParameter(valid_614995, JString, required = false, + default = nil) + if valid_614995 != nil: + section.add "X-Amz-Algorithm", valid_614995 + var valid_614996 = header.getOrDefault("X-Amz-SignedHeaders") + valid_614996 = validateParameter(valid_614996, JString, required = false, + default = nil) + if valid_614996 != nil: + section.add "X-Amz-SignedHeaders", valid_614996 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_614995: Call_GetCreateVpcEndpoint_614972; path: JsonNode; +proc call*(call_614997: Call_GetCreateVpcEndpoint_614974; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Creates a VPC endpoint for a specified service. An endpoint enables you to create a private connection between your VPC and the service. The service may be provided by AWS, an AWS Marketplace Partner, or another AWS account. For more information, see VPC Endpoints in the Amazon Virtual Private Cloud User Guide.

A gateway endpoint serves as a target for a route in your route table for traffic destined for the AWS service. You can specify an endpoint policy to attach to the endpoint, which will control access to the service from your VPC. You can also specify the VPC route tables that use the endpoint.

An interface endpoint is a network interface in your subnet that serves as an endpoint for communicating with the specified service. You can specify the subnets in which to create an endpoint, and the security groups to associate with the endpoint network interface.

Use DescribeVpcEndpointServices to get a list of supported services.

## - let valid = call_614995.validator(path, query, header, formData, body) - let scheme = call_614995.pickScheme + let valid = call_614997.validator(path, query, header, formData, body) + let scheme = call_614997.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_614995.url(scheme.get, call_614995.host, call_614995.base, - call_614995.route, valid.getOrDefault("path"), + let url = call_614997.url(scheme.get, call_614997.host, call_614997.base, + call_614997.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_614995, url, valid) + result = atozHook(call_614997, url, valid) -proc call*(call_614996: Call_GetCreateVpcEndpoint_614972; VpcId: string; +proc call*(call_614998: Call_GetCreateVpcEndpoint_614974; VpcId: string; ServiceName: string; VpcEndpointType: string = "Interface"; PrivateDnsEnabled: bool = false; SecurityGroupId: JsonNode = nil; DryRun: bool = false; PolicyDocument: string = ""; @@ -32643,34 +32670,34 @@ proc call*(call_614996: Call_GetCreateVpcEndpoint_614972; VpcId: string; ## ClientToken: string ## : Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency. - var query_614997 = newJObject() - add(query_614997, "VpcEndpointType", newJString(VpcEndpointType)) - add(query_614997, "PrivateDnsEnabled", newJBool(PrivateDnsEnabled)) + var query_614999 = newJObject() + add(query_614999, "VpcEndpointType", newJString(VpcEndpointType)) + add(query_614999, "PrivateDnsEnabled", newJBool(PrivateDnsEnabled)) if SecurityGroupId != nil: - query_614997.add "SecurityGroupId", SecurityGroupId - add(query_614997, "DryRun", newJBool(DryRun)) - add(query_614997, "VpcId", newJString(VpcId)) - add(query_614997, "ServiceName", newJString(ServiceName)) - add(query_614997, "PolicyDocument", newJString(PolicyDocument)) - add(query_614997, "Action", newJString(Action)) + query_614999.add "SecurityGroupId", SecurityGroupId + add(query_614999, "DryRun", newJBool(DryRun)) + add(query_614999, "VpcId", newJString(VpcId)) + add(query_614999, "ServiceName", newJString(ServiceName)) + add(query_614999, "PolicyDocument", newJString(PolicyDocument)) + add(query_614999, "Action", newJString(Action)) if SubnetId != nil: - query_614997.add "SubnetId", SubnetId + query_614999.add "SubnetId", SubnetId if TagSpecification != nil: - query_614997.add "TagSpecification", TagSpecification - add(query_614997, "Version", newJString(Version)) + query_614999.add "TagSpecification", TagSpecification + add(query_614999, "Version", newJString(Version)) if RouteTableId != nil: - query_614997.add "RouteTableId", RouteTableId - add(query_614997, "ClientToken", newJString(ClientToken)) - result = call_614996.call(nil, query_614997, nil, nil, nil) + query_614999.add "RouteTableId", RouteTableId + add(query_614999, "ClientToken", newJString(ClientToken)) + result = call_614998.call(nil, query_614999, nil, nil, nil) -var getCreateVpcEndpoint* = Call_GetCreateVpcEndpoint_614972( +var getCreateVpcEndpoint* = Call_GetCreateVpcEndpoint_614974( name: "getCreateVpcEndpoint", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=CreateVpcEndpoint", - validator: validate_GetCreateVpcEndpoint_614973, base: "/", - url: url_GetCreateVpcEndpoint_614974, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetCreateVpcEndpoint_614975, base: "/", + url: url_GetCreateVpcEndpoint_614976, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostCreateVpcEndpointConnectionNotification_615046 = ref object of OpenApiRestCall_610658 -proc url_PostCreateVpcEndpointConnectionNotification_615048(protocol: Scheme; + Call_PostCreateVpcEndpointConnectionNotification_615048 = ref object of OpenApiRestCall_610658 +proc url_PostCreateVpcEndpointConnectionNotification_615050(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -32680,7 +32707,7 @@ proc url_PostCreateVpcEndpointConnectionNotification_615048(protocol: Scheme; else: result.path = base & route -proc validate_PostCreateVpcEndpointConnectionNotification_615047(path: JsonNode; +proc validate_PostCreateVpcEndpointConnectionNotification_615049(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Creates a connection notification for a specified VPC endpoint or VPC endpoint service. A connection notification notifies you of specific endpoint events. You must create an SNS topic to receive notifications. For more information, see Create a Topic in the Amazon Simple Notification Service Developer Guide.

You can create a connection notification for interface endpoints only.

## @@ -32692,16 +32719,16 @@ proc validate_PostCreateVpcEndpointConnectionNotification_615047(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615049 = query.getOrDefault("Action") - valid_615049 = validateParameter(valid_615049, JString, required = true, default = newJString( + var valid_615051 = query.getOrDefault("Action") + valid_615051 = validateParameter(valid_615051, JString, required = true, default = newJString( "CreateVpcEndpointConnectionNotification")) - if valid_615049 != nil: - section.add "Action", valid_615049 - var valid_615050 = query.getOrDefault("Version") - valid_615050 = validateParameter(valid_615050, JString, required = true, + if valid_615051 != nil: + section.add "Action", valid_615051 + var valid_615052 = query.getOrDefault("Version") + valid_615052 = validateParameter(valid_615052, JString, required = true, default = newJString("2016-11-15")) - if valid_615050 != nil: - section.add "Version", valid_615050 + if valid_615052 != nil: + section.add "Version", valid_615052 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -32712,41 +32739,41 @@ proc validate_PostCreateVpcEndpointConnectionNotification_615047(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615051 = header.getOrDefault("X-Amz-Signature") - valid_615051 = validateParameter(valid_615051, JString, required = false, - default = nil) - if valid_615051 != nil: - section.add "X-Amz-Signature", valid_615051 - var valid_615052 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615052 = validateParameter(valid_615052, JString, required = false, - default = nil) - if valid_615052 != nil: - section.add "X-Amz-Content-Sha256", valid_615052 - var valid_615053 = header.getOrDefault("X-Amz-Date") + var valid_615053 = header.getOrDefault("X-Amz-Signature") valid_615053 = validateParameter(valid_615053, JString, required = false, default = nil) if valid_615053 != nil: - section.add "X-Amz-Date", valid_615053 - var valid_615054 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615053 + var valid_615054 = header.getOrDefault("X-Amz-Content-Sha256") valid_615054 = validateParameter(valid_615054, JString, required = false, default = nil) if valid_615054 != nil: - section.add "X-Amz-Credential", valid_615054 - var valid_615055 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615054 + var valid_615055 = header.getOrDefault("X-Amz-Date") valid_615055 = validateParameter(valid_615055, JString, required = false, default = nil) if valid_615055 != nil: - section.add "X-Amz-Security-Token", valid_615055 - var valid_615056 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615055 + var valid_615056 = header.getOrDefault("X-Amz-Credential") valid_615056 = validateParameter(valid_615056, JString, required = false, default = nil) if valid_615056 != nil: - section.add "X-Amz-Algorithm", valid_615056 - var valid_615057 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615056 + var valid_615057 = header.getOrDefault("X-Amz-Security-Token") valid_615057 = validateParameter(valid_615057, JString, required = false, default = nil) if valid_615057 != nil: - section.add "X-Amz-SignedHeaders", valid_615057 + section.add "X-Amz-Security-Token", valid_615057 + var valid_615058 = header.getOrDefault("X-Amz-Algorithm") + valid_615058 = validateParameter(valid_615058, JString, required = false, + default = nil) + if valid_615058 != nil: + section.add "X-Amz-Algorithm", valid_615058 + var valid_615059 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615059 = validateParameter(valid_615059, JString, required = false, + default = nil) + if valid_615059 != nil: + section.add "X-Amz-SignedHeaders", valid_615059 result.add "header", section ## parameters in `formData` object: ## ConnectionEvents: JArray (required) @@ -32764,53 +32791,53 @@ proc validate_PostCreateVpcEndpointConnectionNotification_615047(path: JsonNode; ## : The ID of the endpoint. section = newJObject() assert formData != nil, "formData argument is necessary due to required `ConnectionEvents` field" - var valid_615058 = formData.getOrDefault("ConnectionEvents") - valid_615058 = validateParameter(valid_615058, JArray, required = true, default = nil) - if valid_615058 != nil: - section.add "ConnectionEvents", valid_615058 - var valid_615059 = formData.getOrDefault("ConnectionNotificationArn") - valid_615059 = validateParameter(valid_615059, JString, required = true, - default = nil) - if valid_615059 != nil: - section.add "ConnectionNotificationArn", valid_615059 - var valid_615060 = formData.getOrDefault("ServiceId") - valid_615060 = validateParameter(valid_615060, JString, required = false, - default = nil) + var valid_615060 = formData.getOrDefault("ConnectionEvents") + valid_615060 = validateParameter(valid_615060, JArray, required = true, default = nil) if valid_615060 != nil: - section.add "ServiceId", valid_615060 - var valid_615061 = formData.getOrDefault("DryRun") - valid_615061 = validateParameter(valid_615061, JBool, required = false, default = nil) + section.add "ConnectionEvents", valid_615060 + var valid_615061 = formData.getOrDefault("ConnectionNotificationArn") + valid_615061 = validateParameter(valid_615061, JString, required = true, + default = nil) if valid_615061 != nil: - section.add "DryRun", valid_615061 - var valid_615062 = formData.getOrDefault("ClientToken") + section.add "ConnectionNotificationArn", valid_615061 + var valid_615062 = formData.getOrDefault("ServiceId") valid_615062 = validateParameter(valid_615062, JString, required = false, default = nil) if valid_615062 != nil: - section.add "ClientToken", valid_615062 - var valid_615063 = formData.getOrDefault("VpcEndpointId") - valid_615063 = validateParameter(valid_615063, JString, required = false, - default = nil) + section.add "ServiceId", valid_615062 + var valid_615063 = formData.getOrDefault("DryRun") + valid_615063 = validateParameter(valid_615063, JBool, required = false, default = nil) if valid_615063 != nil: - section.add "VpcEndpointId", valid_615063 + section.add "DryRun", valid_615063 + var valid_615064 = formData.getOrDefault("ClientToken") + valid_615064 = validateParameter(valid_615064, JString, required = false, + default = nil) + if valid_615064 != nil: + section.add "ClientToken", valid_615064 + var valid_615065 = formData.getOrDefault("VpcEndpointId") + valid_615065 = validateParameter(valid_615065, JString, required = false, + default = nil) + if valid_615065 != nil: + section.add "VpcEndpointId", valid_615065 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615064: Call_PostCreateVpcEndpointConnectionNotification_615046; +proc call*(call_615066: Call_PostCreateVpcEndpointConnectionNotification_615048; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Creates a connection notification for a specified VPC endpoint or VPC endpoint service. A connection notification notifies you of specific endpoint events. You must create an SNS topic to receive notifications. For more information, see Create a Topic in the Amazon Simple Notification Service Developer Guide.

You can create a connection notification for interface endpoints only.

## - let valid = call_615064.validator(path, query, header, formData, body) - let scheme = call_615064.pickScheme + let valid = call_615066.validator(path, query, header, formData, body) + let scheme = call_615066.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615064.url(scheme.get, call_615064.host, call_615064.base, - call_615064.route, valid.getOrDefault("path"), + let url = call_615066.url(scheme.get, call_615066.host, call_615066.base, + call_615066.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615064, url, valid) + result = atozHook(call_615066, url, valid) -proc call*(call_615065: Call_PostCreateVpcEndpointConnectionNotification_615046; +proc call*(call_615067: Call_PostCreateVpcEndpointConnectionNotification_615048; ConnectionEvents: JsonNode; ConnectionNotificationArn: string; ServiceId: string = ""; DryRun: bool = false; Action: string = "CreateVpcEndpointConnectionNotification"; @@ -32833,30 +32860,30 @@ proc call*(call_615065: Call_PostCreateVpcEndpointConnectionNotification_615046; ## href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">How to Ensure Idempotency. ## VpcEndpointId: string ## : The ID of the endpoint. - var query_615066 = newJObject() - var formData_615067 = newJObject() + var query_615068 = newJObject() + var formData_615069 = newJObject() if ConnectionEvents != nil: - formData_615067.add "ConnectionEvents", ConnectionEvents - add(formData_615067, "ConnectionNotificationArn", + formData_615069.add "ConnectionEvents", ConnectionEvents + add(formData_615069, "ConnectionNotificationArn", newJString(ConnectionNotificationArn)) - add(formData_615067, "ServiceId", newJString(ServiceId)) - add(formData_615067, "DryRun", newJBool(DryRun)) - add(query_615066, "Action", newJString(Action)) - add(query_615066, "Version", newJString(Version)) - add(formData_615067, "ClientToken", newJString(ClientToken)) - add(formData_615067, "VpcEndpointId", newJString(VpcEndpointId)) - result = call_615065.call(nil, query_615066, nil, formData_615067, nil) - -var postCreateVpcEndpointConnectionNotification* = Call_PostCreateVpcEndpointConnectionNotification_615046( + add(formData_615069, "ServiceId", newJString(ServiceId)) + add(formData_615069, "DryRun", newJBool(DryRun)) + add(query_615068, "Action", newJString(Action)) + add(query_615068, "Version", newJString(Version)) + add(formData_615069, "ClientToken", newJString(ClientToken)) + add(formData_615069, "VpcEndpointId", newJString(VpcEndpointId)) + result = call_615067.call(nil, query_615068, nil, formData_615069, nil) + +var postCreateVpcEndpointConnectionNotification* = Call_PostCreateVpcEndpointConnectionNotification_615048( name: "postCreateVpcEndpointConnectionNotification", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=CreateVpcEndpointConnectionNotification", - validator: validate_PostCreateVpcEndpointConnectionNotification_615047, - base: "/", url: url_PostCreateVpcEndpointConnectionNotification_615048, + validator: validate_PostCreateVpcEndpointConnectionNotification_615049, + base: "/", url: url_PostCreateVpcEndpointConnectionNotification_615050, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetCreateVpcEndpointConnectionNotification_615025 = ref object of OpenApiRestCall_610658 -proc url_GetCreateVpcEndpointConnectionNotification_615027(protocol: Scheme; + Call_GetCreateVpcEndpointConnectionNotification_615027 = ref object of OpenApiRestCall_610658 +proc url_GetCreateVpcEndpointConnectionNotification_615029(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -32866,7 +32893,7 @@ proc url_GetCreateVpcEndpointConnectionNotification_615027(protocol: Scheme; else: result.path = base & route -proc validate_GetCreateVpcEndpointConnectionNotification_615026(path: JsonNode; +proc validate_GetCreateVpcEndpointConnectionNotification_615028(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Creates a connection notification for a specified VPC endpoint or VPC endpoint service. A connection notification notifies you of specific endpoint events. You must create an SNS topic to receive notifications. For more information, see Create a Topic in the Amazon Simple Notification Service Developer Guide.

You can create a connection notification for interface endpoints only.

## @@ -32892,44 +32919,44 @@ proc validate_GetCreateVpcEndpointConnectionNotification_615026(path: JsonNode; ## href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">How to Ensure Idempotency. section = newJObject() assert query != nil, "query argument is necessary due to required `ConnectionNotificationArn` field" - var valid_615028 = query.getOrDefault("ConnectionNotificationArn") - valid_615028 = validateParameter(valid_615028, JString, required = true, - default = nil) - if valid_615028 != nil: - section.add "ConnectionNotificationArn", valid_615028 - var valid_615029 = query.getOrDefault("DryRun") - valid_615029 = validateParameter(valid_615029, JBool, required = false, default = nil) - if valid_615029 != nil: - section.add "DryRun", valid_615029 - var valid_615030 = query.getOrDefault("ConnectionEvents") - valid_615030 = validateParameter(valid_615030, JArray, required = true, default = nil) - if valid_615030 != nil: - section.add "ConnectionEvents", valid_615030 - var valid_615031 = query.getOrDefault("ServiceId") - valid_615031 = validateParameter(valid_615031, JString, required = false, + var valid_615030 = query.getOrDefault("ConnectionNotificationArn") + valid_615030 = validateParameter(valid_615030, JString, required = true, default = nil) + if valid_615030 != nil: + section.add "ConnectionNotificationArn", valid_615030 + var valid_615031 = query.getOrDefault("DryRun") + valid_615031 = validateParameter(valid_615031, JBool, required = false, default = nil) if valid_615031 != nil: - section.add "ServiceId", valid_615031 - var valid_615032 = query.getOrDefault("Action") - valid_615032 = validateParameter(valid_615032, JString, required = true, default = newJString( - "CreateVpcEndpointConnectionNotification")) + section.add "DryRun", valid_615031 + var valid_615032 = query.getOrDefault("ConnectionEvents") + valid_615032 = validateParameter(valid_615032, JArray, required = true, default = nil) if valid_615032 != nil: - section.add "Action", valid_615032 - var valid_615033 = query.getOrDefault("VpcEndpointId") + section.add "ConnectionEvents", valid_615032 + var valid_615033 = query.getOrDefault("ServiceId") valid_615033 = validateParameter(valid_615033, JString, required = false, default = nil) if valid_615033 != nil: - section.add "VpcEndpointId", valid_615033 - var valid_615034 = query.getOrDefault("Version") - valid_615034 = validateParameter(valid_615034, JString, required = true, - default = newJString("2016-11-15")) + section.add "ServiceId", valid_615033 + var valid_615034 = query.getOrDefault("Action") + valid_615034 = validateParameter(valid_615034, JString, required = true, default = newJString( + "CreateVpcEndpointConnectionNotification")) if valid_615034 != nil: - section.add "Version", valid_615034 - var valid_615035 = query.getOrDefault("ClientToken") + section.add "Action", valid_615034 + var valid_615035 = query.getOrDefault("VpcEndpointId") valid_615035 = validateParameter(valid_615035, JString, required = false, default = nil) if valid_615035 != nil: - section.add "ClientToken", valid_615035 + section.add "VpcEndpointId", valid_615035 + var valid_615036 = query.getOrDefault("Version") + valid_615036 = validateParameter(valid_615036, JString, required = true, + default = newJString("2016-11-15")) + if valid_615036 != nil: + section.add "Version", valid_615036 + var valid_615037 = query.getOrDefault("ClientToken") + valid_615037 = validateParameter(valid_615037, JString, required = false, + default = nil) + if valid_615037 != nil: + section.add "ClientToken", valid_615037 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -32940,62 +32967,62 @@ proc validate_GetCreateVpcEndpointConnectionNotification_615026(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615036 = header.getOrDefault("X-Amz-Signature") - valid_615036 = validateParameter(valid_615036, JString, required = false, - default = nil) - if valid_615036 != nil: - section.add "X-Amz-Signature", valid_615036 - var valid_615037 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615037 = validateParameter(valid_615037, JString, required = false, - default = nil) - if valid_615037 != nil: - section.add "X-Amz-Content-Sha256", valid_615037 - var valid_615038 = header.getOrDefault("X-Amz-Date") + var valid_615038 = header.getOrDefault("X-Amz-Signature") valid_615038 = validateParameter(valid_615038, JString, required = false, default = nil) if valid_615038 != nil: - section.add "X-Amz-Date", valid_615038 - var valid_615039 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615038 + var valid_615039 = header.getOrDefault("X-Amz-Content-Sha256") valid_615039 = validateParameter(valid_615039, JString, required = false, default = nil) if valid_615039 != nil: - section.add "X-Amz-Credential", valid_615039 - var valid_615040 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615039 + var valid_615040 = header.getOrDefault("X-Amz-Date") valid_615040 = validateParameter(valid_615040, JString, required = false, default = nil) if valid_615040 != nil: - section.add "X-Amz-Security-Token", valid_615040 - var valid_615041 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615040 + var valid_615041 = header.getOrDefault("X-Amz-Credential") valid_615041 = validateParameter(valid_615041, JString, required = false, default = nil) if valid_615041 != nil: - section.add "X-Amz-Algorithm", valid_615041 - var valid_615042 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615041 + var valid_615042 = header.getOrDefault("X-Amz-Security-Token") valid_615042 = validateParameter(valid_615042, JString, required = false, default = nil) if valid_615042 != nil: - section.add "X-Amz-SignedHeaders", valid_615042 + section.add "X-Amz-Security-Token", valid_615042 + var valid_615043 = header.getOrDefault("X-Amz-Algorithm") + valid_615043 = validateParameter(valid_615043, JString, required = false, + default = nil) + if valid_615043 != nil: + section.add "X-Amz-Algorithm", valid_615043 + var valid_615044 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615044 = validateParameter(valid_615044, JString, required = false, + default = nil) + if valid_615044 != nil: + section.add "X-Amz-SignedHeaders", valid_615044 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615043: Call_GetCreateVpcEndpointConnectionNotification_615025; +proc call*(call_615045: Call_GetCreateVpcEndpointConnectionNotification_615027; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Creates a connection notification for a specified VPC endpoint or VPC endpoint service. A connection notification notifies you of specific endpoint events. You must create an SNS topic to receive notifications. For more information, see Create a Topic in the Amazon Simple Notification Service Developer Guide.

You can create a connection notification for interface endpoints only.

## - let valid = call_615043.validator(path, query, header, formData, body) - let scheme = call_615043.pickScheme + let valid = call_615045.validator(path, query, header, formData, body) + let scheme = call_615045.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615043.url(scheme.get, call_615043.host, call_615043.base, - call_615043.route, valid.getOrDefault("path"), + let url = call_615045.url(scheme.get, call_615045.host, call_615045.base, + call_615045.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615043, url, valid) + result = atozHook(call_615045, url, valid) -proc call*(call_615044: Call_GetCreateVpcEndpointConnectionNotification_615025; +proc call*(call_615046: Call_GetCreateVpcEndpointConnectionNotification_615027; ConnectionNotificationArn: string; ConnectionEvents: JsonNode; DryRun: bool = false; ServiceId: string = ""; Action: string = "CreateVpcEndpointConnectionNotification"; @@ -33018,29 +33045,29 @@ proc call*(call_615044: Call_GetCreateVpcEndpointConnectionNotification_615025; ## ClientToken: string ## : Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency. - var query_615045 = newJObject() - add(query_615045, "ConnectionNotificationArn", + var query_615047 = newJObject() + add(query_615047, "ConnectionNotificationArn", newJString(ConnectionNotificationArn)) - add(query_615045, "DryRun", newJBool(DryRun)) + add(query_615047, "DryRun", newJBool(DryRun)) if ConnectionEvents != nil: - query_615045.add "ConnectionEvents", ConnectionEvents - add(query_615045, "ServiceId", newJString(ServiceId)) - add(query_615045, "Action", newJString(Action)) - add(query_615045, "VpcEndpointId", newJString(VpcEndpointId)) - add(query_615045, "Version", newJString(Version)) - add(query_615045, "ClientToken", newJString(ClientToken)) - result = call_615044.call(nil, query_615045, nil, nil, nil) - -var getCreateVpcEndpointConnectionNotification* = Call_GetCreateVpcEndpointConnectionNotification_615025( + query_615047.add "ConnectionEvents", ConnectionEvents + add(query_615047, "ServiceId", newJString(ServiceId)) + add(query_615047, "Action", newJString(Action)) + add(query_615047, "VpcEndpointId", newJString(VpcEndpointId)) + add(query_615047, "Version", newJString(Version)) + add(query_615047, "ClientToken", newJString(ClientToken)) + result = call_615046.call(nil, query_615047, nil, nil, nil) + +var getCreateVpcEndpointConnectionNotification* = Call_GetCreateVpcEndpointConnectionNotification_615027( name: "getCreateVpcEndpointConnectionNotification", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=CreateVpcEndpointConnectionNotification", - validator: validate_GetCreateVpcEndpointConnectionNotification_615026, - base: "/", url: url_GetCreateVpcEndpointConnectionNotification_615027, + validator: validate_GetCreateVpcEndpointConnectionNotification_615028, + base: "/", url: url_GetCreateVpcEndpointConnectionNotification_615029, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostCreateVpcEndpointServiceConfiguration_615089 = ref object of OpenApiRestCall_610658 -proc url_PostCreateVpcEndpointServiceConfiguration_615091(protocol: Scheme; + Call_PostCreateVpcEndpointServiceConfiguration_615091 = ref object of OpenApiRestCall_610658 +proc url_PostCreateVpcEndpointServiceConfiguration_615093(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -33050,7 +33077,7 @@ proc url_PostCreateVpcEndpointServiceConfiguration_615091(protocol: Scheme; else: result.path = base & route -proc validate_PostCreateVpcEndpointServiceConfiguration_615090(path: JsonNode; +proc validate_PostCreateVpcEndpointServiceConfiguration_615092(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Creates a VPC endpoint service configuration to which service consumers (AWS accounts, IAM users, and IAM roles) can connect. Service consumers can create an interface VPC endpoint to connect to your service.

To create an endpoint service configuration, you must first create a Network Load Balancer for your service. For more information, see VPC Endpoint Services in the Amazon Virtual Private Cloud User Guide.

If you set the private DNS name, you must prove that you own the private DNS domain name. For more information, see VPC Endpoint Service Private DNS Name Verification in the Amazon Virtual Private Cloud User Guide.

## @@ -33062,16 +33089,16 @@ proc validate_PostCreateVpcEndpointServiceConfiguration_615090(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615092 = query.getOrDefault("Action") - valid_615092 = validateParameter(valid_615092, JString, required = true, default = newJString( + var valid_615094 = query.getOrDefault("Action") + valid_615094 = validateParameter(valid_615094, JString, required = true, default = newJString( "CreateVpcEndpointServiceConfiguration")) - if valid_615092 != nil: - section.add "Action", valid_615092 - var valid_615093 = query.getOrDefault("Version") - valid_615093 = validateParameter(valid_615093, JString, required = true, + if valid_615094 != nil: + section.add "Action", valid_615094 + var valid_615095 = query.getOrDefault("Version") + valid_615095 = validateParameter(valid_615095, JString, required = true, default = newJString("2016-11-15")) - if valid_615093 != nil: - section.add "Version", valid_615093 + if valid_615095 != nil: + section.add "Version", valid_615095 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -33082,41 +33109,41 @@ proc validate_PostCreateVpcEndpointServiceConfiguration_615090(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615094 = header.getOrDefault("X-Amz-Signature") - valid_615094 = validateParameter(valid_615094, JString, required = false, - default = nil) - if valid_615094 != nil: - section.add "X-Amz-Signature", valid_615094 - var valid_615095 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615095 = validateParameter(valid_615095, JString, required = false, - default = nil) - if valid_615095 != nil: - section.add "X-Amz-Content-Sha256", valid_615095 - var valid_615096 = header.getOrDefault("X-Amz-Date") + var valid_615096 = header.getOrDefault("X-Amz-Signature") valid_615096 = validateParameter(valid_615096, JString, required = false, default = nil) if valid_615096 != nil: - section.add "X-Amz-Date", valid_615096 - var valid_615097 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615096 + var valid_615097 = header.getOrDefault("X-Amz-Content-Sha256") valid_615097 = validateParameter(valid_615097, JString, required = false, default = nil) if valid_615097 != nil: - section.add "X-Amz-Credential", valid_615097 - var valid_615098 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615097 + var valid_615098 = header.getOrDefault("X-Amz-Date") valid_615098 = validateParameter(valid_615098, JString, required = false, default = nil) if valid_615098 != nil: - section.add "X-Amz-Security-Token", valid_615098 - var valid_615099 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615098 + var valid_615099 = header.getOrDefault("X-Amz-Credential") valid_615099 = validateParameter(valid_615099, JString, required = false, default = nil) if valid_615099 != nil: - section.add "X-Amz-Algorithm", valid_615099 - var valid_615100 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615099 + var valid_615100 = header.getOrDefault("X-Amz-Security-Token") valid_615100 = validateParameter(valid_615100, JString, required = false, default = nil) if valid_615100 != nil: - section.add "X-Amz-SignedHeaders", valid_615100 + section.add "X-Amz-Security-Token", valid_615100 + var valid_615101 = header.getOrDefault("X-Amz-Algorithm") + valid_615101 = validateParameter(valid_615101, JString, required = false, + default = nil) + if valid_615101 != nil: + section.add "X-Amz-Algorithm", valid_615101 + var valid_615102 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615102 = validateParameter(valid_615102, JString, required = false, + default = nil) + if valid_615102 != nil: + section.add "X-Amz-SignedHeaders", valid_615102 result.add "header", section ## parameters in `formData` object: ## PrivateDnsName: JString @@ -33133,53 +33160,53 @@ proc validate_PostCreateVpcEndpointServiceConfiguration_615090(path: JsonNode; ## NetworkLoadBalancerArn: JArray (required) ## : The Amazon Resource Names (ARNs) of one or more Network Load Balancers for your service. section = newJObject() - var valid_615101 = formData.getOrDefault("PrivateDnsName") - valid_615101 = validateParameter(valid_615101, JString, required = false, + var valid_615103 = formData.getOrDefault("PrivateDnsName") + valid_615103 = validateParameter(valid_615103, JString, required = false, default = nil) - if valid_615101 != nil: - section.add "PrivateDnsName", valid_615101 - var valid_615102 = formData.getOrDefault("DryRun") - valid_615102 = validateParameter(valid_615102, JBool, required = false, default = nil) - if valid_615102 != nil: - section.add "DryRun", valid_615102 - var valid_615103 = formData.getOrDefault("AcceptanceRequired") - valid_615103 = validateParameter(valid_615103, JBool, required = false, default = nil) if valid_615103 != nil: - section.add "AcceptanceRequired", valid_615103 - var valid_615104 = formData.getOrDefault("TagSpecification") - valid_615104 = validateParameter(valid_615104, JArray, required = false, - default = nil) + section.add "PrivateDnsName", valid_615103 + var valid_615104 = formData.getOrDefault("DryRun") + valid_615104 = validateParameter(valid_615104, JBool, required = false, default = nil) if valid_615104 != nil: - section.add "TagSpecification", valid_615104 - var valid_615105 = formData.getOrDefault("ClientToken") - valid_615105 = validateParameter(valid_615105, JString, required = false, - default = nil) + section.add "DryRun", valid_615104 + var valid_615105 = formData.getOrDefault("AcceptanceRequired") + valid_615105 = validateParameter(valid_615105, JBool, required = false, default = nil) if valid_615105 != nil: - section.add "ClientToken", valid_615105 - assert formData != nil, "formData argument is necessary due to required `NetworkLoadBalancerArn` field" - var valid_615106 = formData.getOrDefault("NetworkLoadBalancerArn") - valid_615106 = validateParameter(valid_615106, JArray, required = true, default = nil) + section.add "AcceptanceRequired", valid_615105 + var valid_615106 = formData.getOrDefault("TagSpecification") + valid_615106 = validateParameter(valid_615106, JArray, required = false, + default = nil) if valid_615106 != nil: - section.add "NetworkLoadBalancerArn", valid_615106 + section.add "TagSpecification", valid_615106 + var valid_615107 = formData.getOrDefault("ClientToken") + valid_615107 = validateParameter(valid_615107, JString, required = false, + default = nil) + if valid_615107 != nil: + section.add "ClientToken", valid_615107 + assert formData != nil, "formData argument is necessary due to required `NetworkLoadBalancerArn` field" + var valid_615108 = formData.getOrDefault("NetworkLoadBalancerArn") + valid_615108 = validateParameter(valid_615108, JArray, required = true, default = nil) + if valid_615108 != nil: + section.add "NetworkLoadBalancerArn", valid_615108 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615107: Call_PostCreateVpcEndpointServiceConfiguration_615089; +proc call*(call_615109: Call_PostCreateVpcEndpointServiceConfiguration_615091; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Creates a VPC endpoint service configuration to which service consumers (AWS accounts, IAM users, and IAM roles) can connect. Service consumers can create an interface VPC endpoint to connect to your service.

To create an endpoint service configuration, you must first create a Network Load Balancer for your service. For more information, see VPC Endpoint Services in the Amazon Virtual Private Cloud User Guide.

If you set the private DNS name, you must prove that you own the private DNS domain name. For more information, see VPC Endpoint Service Private DNS Name Verification in the Amazon Virtual Private Cloud User Guide.

## - let valid = call_615107.validator(path, query, header, formData, body) - let scheme = call_615107.pickScheme + let valid = call_615109.validator(path, query, header, formData, body) + let scheme = call_615109.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615107.url(scheme.get, call_615107.host, call_615107.base, - call_615107.route, valid.getOrDefault("path"), + let url = call_615109.url(scheme.get, call_615109.host, call_615109.base, + call_615109.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615107, url, valid) + result = atozHook(call_615109, url, valid) -proc call*(call_615108: Call_PostCreateVpcEndpointServiceConfiguration_615089; +proc call*(call_615110: Call_PostCreateVpcEndpointServiceConfiguration_615091; NetworkLoadBalancerArn: JsonNode; PrivateDnsName: string = ""; DryRun: bool = false; Action: string = "CreateVpcEndpointServiceConfiguration"; @@ -33202,30 +33229,30 @@ proc call*(call_615108: Call_PostCreateVpcEndpointServiceConfiguration_615089; ## href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html">How to Ensure Idempotency. ## NetworkLoadBalancerArn: JArray (required) ## : The Amazon Resource Names (ARNs) of one or more Network Load Balancers for your service. - var query_615109 = newJObject() - var formData_615110 = newJObject() - add(formData_615110, "PrivateDnsName", newJString(PrivateDnsName)) - add(formData_615110, "DryRun", newJBool(DryRun)) - add(query_615109, "Action", newJString(Action)) - add(formData_615110, "AcceptanceRequired", newJBool(AcceptanceRequired)) + var query_615111 = newJObject() + var formData_615112 = newJObject() + add(formData_615112, "PrivateDnsName", newJString(PrivateDnsName)) + add(formData_615112, "DryRun", newJBool(DryRun)) + add(query_615111, "Action", newJString(Action)) + add(formData_615112, "AcceptanceRequired", newJBool(AcceptanceRequired)) if TagSpecification != nil: - formData_615110.add "TagSpecification", TagSpecification - add(query_615109, "Version", newJString(Version)) - add(formData_615110, "ClientToken", newJString(ClientToken)) + formData_615112.add "TagSpecification", TagSpecification + add(query_615111, "Version", newJString(Version)) + add(formData_615112, "ClientToken", newJString(ClientToken)) if NetworkLoadBalancerArn != nil: - formData_615110.add "NetworkLoadBalancerArn", NetworkLoadBalancerArn - result = call_615108.call(nil, query_615109, nil, formData_615110, nil) + formData_615112.add "NetworkLoadBalancerArn", NetworkLoadBalancerArn + result = call_615110.call(nil, query_615111, nil, formData_615112, nil) -var postCreateVpcEndpointServiceConfiguration* = Call_PostCreateVpcEndpointServiceConfiguration_615089( +var postCreateVpcEndpointServiceConfiguration* = Call_PostCreateVpcEndpointServiceConfiguration_615091( name: "postCreateVpcEndpointServiceConfiguration", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=CreateVpcEndpointServiceConfiguration", - validator: validate_PostCreateVpcEndpointServiceConfiguration_615090, - base: "/", url: url_PostCreateVpcEndpointServiceConfiguration_615091, + validator: validate_PostCreateVpcEndpointServiceConfiguration_615092, + base: "/", url: url_PostCreateVpcEndpointServiceConfiguration_615093, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetCreateVpcEndpointServiceConfiguration_615068 = ref object of OpenApiRestCall_610658 -proc url_GetCreateVpcEndpointServiceConfiguration_615070(protocol: Scheme; + Call_GetCreateVpcEndpointServiceConfiguration_615070 = ref object of OpenApiRestCall_610658 +proc url_GetCreateVpcEndpointServiceConfiguration_615072(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -33235,7 +33262,7 @@ proc url_GetCreateVpcEndpointServiceConfiguration_615070(protocol: Scheme; else: result.path = base & route -proc validate_GetCreateVpcEndpointServiceConfiguration_615069(path: JsonNode; +proc validate_GetCreateVpcEndpointServiceConfiguration_615071(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Creates a VPC endpoint service configuration to which service consumers (AWS accounts, IAM users, and IAM roles) can connect. Service consumers can create an interface VPC endpoint to connect to your service.

To create an endpoint service configuration, you must first create a Network Load Balancer for your service. For more information, see VPC Endpoint Services in the Amazon Virtual Private Cloud User Guide.

If you set the private DNS name, you must prove that you own the private DNS domain name. For more information, see VPC Endpoint Service Private DNS Name Verification in the Amazon Virtual Private Cloud User Guide.

## @@ -33260,44 +33287,44 @@ proc validate_GetCreateVpcEndpointServiceConfiguration_615069(path: JsonNode; ## : Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency. section = newJObject() - var valid_615071 = query.getOrDefault("DryRun") - valid_615071 = validateParameter(valid_615071, JBool, required = false, default = nil) - if valid_615071 != nil: - section.add "DryRun", valid_615071 - assert query != nil, "query argument is necessary due to required `NetworkLoadBalancerArn` field" - var valid_615072 = query.getOrDefault("NetworkLoadBalancerArn") - valid_615072 = validateParameter(valid_615072, JArray, required = true, default = nil) - if valid_615072 != nil: - section.add "NetworkLoadBalancerArn", valid_615072 - var valid_615073 = query.getOrDefault("AcceptanceRequired") + var valid_615073 = query.getOrDefault("DryRun") valid_615073 = validateParameter(valid_615073, JBool, required = false, default = nil) if valid_615073 != nil: - section.add "AcceptanceRequired", valid_615073 - var valid_615074 = query.getOrDefault("Action") - valid_615074 = validateParameter(valid_615074, JString, required = true, default = newJString( - "CreateVpcEndpointServiceConfiguration")) + section.add "DryRun", valid_615073 + assert query != nil, "query argument is necessary due to required `NetworkLoadBalancerArn` field" + var valid_615074 = query.getOrDefault("NetworkLoadBalancerArn") + valid_615074 = validateParameter(valid_615074, JArray, required = true, default = nil) if valid_615074 != nil: - section.add "Action", valid_615074 - var valid_615075 = query.getOrDefault("TagSpecification") - valid_615075 = validateParameter(valid_615075, JArray, required = false, - default = nil) + section.add "NetworkLoadBalancerArn", valid_615074 + var valid_615075 = query.getOrDefault("AcceptanceRequired") + valid_615075 = validateParameter(valid_615075, JBool, required = false, default = nil) if valid_615075 != nil: - section.add "TagSpecification", valid_615075 - var valid_615076 = query.getOrDefault("Version") - valid_615076 = validateParameter(valid_615076, JString, required = true, - default = newJString("2016-11-15")) + section.add "AcceptanceRequired", valid_615075 + var valid_615076 = query.getOrDefault("Action") + valid_615076 = validateParameter(valid_615076, JString, required = true, default = newJString( + "CreateVpcEndpointServiceConfiguration")) if valid_615076 != nil: - section.add "Version", valid_615076 - var valid_615077 = query.getOrDefault("PrivateDnsName") - valid_615077 = validateParameter(valid_615077, JString, required = false, + section.add "Action", valid_615076 + var valid_615077 = query.getOrDefault("TagSpecification") + valid_615077 = validateParameter(valid_615077, JArray, required = false, default = nil) if valid_615077 != nil: - section.add "PrivateDnsName", valid_615077 - var valid_615078 = query.getOrDefault("ClientToken") - valid_615078 = validateParameter(valid_615078, JString, required = false, - default = nil) + section.add "TagSpecification", valid_615077 + var valid_615078 = query.getOrDefault("Version") + valid_615078 = validateParameter(valid_615078, JString, required = true, + default = newJString("2016-11-15")) if valid_615078 != nil: - section.add "ClientToken", valid_615078 + section.add "Version", valid_615078 + var valid_615079 = query.getOrDefault("PrivateDnsName") + valid_615079 = validateParameter(valid_615079, JString, required = false, + default = nil) + if valid_615079 != nil: + section.add "PrivateDnsName", valid_615079 + var valid_615080 = query.getOrDefault("ClientToken") + valid_615080 = validateParameter(valid_615080, JString, required = false, + default = nil) + if valid_615080 != nil: + section.add "ClientToken", valid_615080 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -33308,62 +33335,62 @@ proc validate_GetCreateVpcEndpointServiceConfiguration_615069(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615079 = header.getOrDefault("X-Amz-Signature") - valid_615079 = validateParameter(valid_615079, JString, required = false, - default = nil) - if valid_615079 != nil: - section.add "X-Amz-Signature", valid_615079 - var valid_615080 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615080 = validateParameter(valid_615080, JString, required = false, - default = nil) - if valid_615080 != nil: - section.add "X-Amz-Content-Sha256", valid_615080 - var valid_615081 = header.getOrDefault("X-Amz-Date") + var valid_615081 = header.getOrDefault("X-Amz-Signature") valid_615081 = validateParameter(valid_615081, JString, required = false, default = nil) if valid_615081 != nil: - section.add "X-Amz-Date", valid_615081 - var valid_615082 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615081 + var valid_615082 = header.getOrDefault("X-Amz-Content-Sha256") valid_615082 = validateParameter(valid_615082, JString, required = false, default = nil) if valid_615082 != nil: - section.add "X-Amz-Credential", valid_615082 - var valid_615083 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615082 + var valid_615083 = header.getOrDefault("X-Amz-Date") valid_615083 = validateParameter(valid_615083, JString, required = false, default = nil) if valid_615083 != nil: - section.add "X-Amz-Security-Token", valid_615083 - var valid_615084 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615083 + var valid_615084 = header.getOrDefault("X-Amz-Credential") valid_615084 = validateParameter(valid_615084, JString, required = false, default = nil) if valid_615084 != nil: - section.add "X-Amz-Algorithm", valid_615084 - var valid_615085 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615084 + var valid_615085 = header.getOrDefault("X-Amz-Security-Token") valid_615085 = validateParameter(valid_615085, JString, required = false, default = nil) if valid_615085 != nil: - section.add "X-Amz-SignedHeaders", valid_615085 + section.add "X-Amz-Security-Token", valid_615085 + var valid_615086 = header.getOrDefault("X-Amz-Algorithm") + valid_615086 = validateParameter(valid_615086, JString, required = false, + default = nil) + if valid_615086 != nil: + section.add "X-Amz-Algorithm", valid_615086 + var valid_615087 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615087 = validateParameter(valid_615087, JString, required = false, + default = nil) + if valid_615087 != nil: + section.add "X-Amz-SignedHeaders", valid_615087 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615086: Call_GetCreateVpcEndpointServiceConfiguration_615068; +proc call*(call_615088: Call_GetCreateVpcEndpointServiceConfiguration_615070; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Creates a VPC endpoint service configuration to which service consumers (AWS accounts, IAM users, and IAM roles) can connect. Service consumers can create an interface VPC endpoint to connect to your service.

To create an endpoint service configuration, you must first create a Network Load Balancer for your service. For more information, see VPC Endpoint Services in the Amazon Virtual Private Cloud User Guide.

If you set the private DNS name, you must prove that you own the private DNS domain name. For more information, see VPC Endpoint Service Private DNS Name Verification in the Amazon Virtual Private Cloud User Guide.

## - let valid = call_615086.validator(path, query, header, formData, body) - let scheme = call_615086.pickScheme + let valid = call_615088.validator(path, query, header, formData, body) + let scheme = call_615088.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615086.url(scheme.get, call_615086.host, call_615086.base, - call_615086.route, valid.getOrDefault("path"), + let url = call_615088.url(scheme.get, call_615088.host, call_615088.base, + call_615088.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615086, url, valid) + result = atozHook(call_615088, url, valid) -proc call*(call_615087: Call_GetCreateVpcEndpointServiceConfiguration_615068; +proc call*(call_615089: Call_GetCreateVpcEndpointServiceConfiguration_615070; NetworkLoadBalancerArn: JsonNode; DryRun: bool = false; AcceptanceRequired: bool = false; Action: string = "CreateVpcEndpointServiceConfiguration"; @@ -33386,29 +33413,29 @@ proc call*(call_615087: Call_GetCreateVpcEndpointServiceConfiguration_615068; ## ClientToken: string ## : Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency. - var query_615088 = newJObject() - add(query_615088, "DryRun", newJBool(DryRun)) + var query_615090 = newJObject() + add(query_615090, "DryRun", newJBool(DryRun)) if NetworkLoadBalancerArn != nil: - query_615088.add "NetworkLoadBalancerArn", NetworkLoadBalancerArn - add(query_615088, "AcceptanceRequired", newJBool(AcceptanceRequired)) - add(query_615088, "Action", newJString(Action)) + query_615090.add "NetworkLoadBalancerArn", NetworkLoadBalancerArn + add(query_615090, "AcceptanceRequired", newJBool(AcceptanceRequired)) + add(query_615090, "Action", newJString(Action)) if TagSpecification != nil: - query_615088.add "TagSpecification", TagSpecification - add(query_615088, "Version", newJString(Version)) - add(query_615088, "PrivateDnsName", newJString(PrivateDnsName)) - add(query_615088, "ClientToken", newJString(ClientToken)) - result = call_615087.call(nil, query_615088, nil, nil, nil) + query_615090.add "TagSpecification", TagSpecification + add(query_615090, "Version", newJString(Version)) + add(query_615090, "PrivateDnsName", newJString(PrivateDnsName)) + add(query_615090, "ClientToken", newJString(ClientToken)) + result = call_615089.call(nil, query_615090, nil, nil, nil) -var getCreateVpcEndpointServiceConfiguration* = Call_GetCreateVpcEndpointServiceConfiguration_615068( +var getCreateVpcEndpointServiceConfiguration* = Call_GetCreateVpcEndpointServiceConfiguration_615070( name: "getCreateVpcEndpointServiceConfiguration", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=CreateVpcEndpointServiceConfiguration", - validator: validate_GetCreateVpcEndpointServiceConfiguration_615069, - base: "/", url: url_GetCreateVpcEndpointServiceConfiguration_615070, + validator: validate_GetCreateVpcEndpointServiceConfiguration_615071, + base: "/", url: url_GetCreateVpcEndpointServiceConfiguration_615072, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostCreateVpcPeeringConnection_615131 = ref object of OpenApiRestCall_610658 -proc url_PostCreateVpcPeeringConnection_615133(protocol: Scheme; host: string; + Call_PostCreateVpcPeeringConnection_615133 = ref object of OpenApiRestCall_610658 +proc url_PostCreateVpcPeeringConnection_615135(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -33418,7 +33445,7 @@ proc url_PostCreateVpcPeeringConnection_615133(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostCreateVpcPeeringConnection_615132(path: JsonNode; +proc validate_PostCreateVpcPeeringConnection_615134(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Requests a VPC peering connection between two VPCs: a requester VPC that you own and an accepter VPC with which to create the connection. The accepter VPC can belong to another AWS account and can be in a different Region to the requester VPC. The requester VPC and accepter VPC cannot have overlapping CIDR blocks.

Limitations and rules apply to a VPC peering connection. For more information, see the limitations section in the VPC Peering Guide.

The owner of the accepter VPC must accept the peering request to activate the peering connection. The VPC peering connection request expires after 7 days, after which it cannot be accepted or rejected.

If you create a VPC peering connection request between VPCs with overlapping CIDR blocks, the VPC peering connection has a status of failed.

## @@ -33430,16 +33457,16 @@ proc validate_PostCreateVpcPeeringConnection_615132(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615134 = query.getOrDefault("Action") - valid_615134 = validateParameter(valid_615134, JString, required = true, default = newJString( + var valid_615136 = query.getOrDefault("Action") + valid_615136 = validateParameter(valid_615136, JString, required = true, default = newJString( "CreateVpcPeeringConnection")) - if valid_615134 != nil: - section.add "Action", valid_615134 - var valid_615135 = query.getOrDefault("Version") - valid_615135 = validateParameter(valid_615135, JString, required = true, + if valid_615136 != nil: + section.add "Action", valid_615136 + var valid_615137 = query.getOrDefault("Version") + valid_615137 = validateParameter(valid_615137, JString, required = true, default = newJString("2016-11-15")) - if valid_615135 != nil: - section.add "Version", valid_615135 + if valid_615137 != nil: + section.add "Version", valid_615137 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -33450,41 +33477,41 @@ proc validate_PostCreateVpcPeeringConnection_615132(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615136 = header.getOrDefault("X-Amz-Signature") - valid_615136 = validateParameter(valid_615136, JString, required = false, - default = nil) - if valid_615136 != nil: - section.add "X-Amz-Signature", valid_615136 - var valid_615137 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615137 = validateParameter(valid_615137, JString, required = false, - default = nil) - if valid_615137 != nil: - section.add "X-Amz-Content-Sha256", valid_615137 - var valid_615138 = header.getOrDefault("X-Amz-Date") + var valid_615138 = header.getOrDefault("X-Amz-Signature") valid_615138 = validateParameter(valid_615138, JString, required = false, default = nil) if valid_615138 != nil: - section.add "X-Amz-Date", valid_615138 - var valid_615139 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615138 + var valid_615139 = header.getOrDefault("X-Amz-Content-Sha256") valid_615139 = validateParameter(valid_615139, JString, required = false, default = nil) if valid_615139 != nil: - section.add "X-Amz-Credential", valid_615139 - var valid_615140 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615139 + var valid_615140 = header.getOrDefault("X-Amz-Date") valid_615140 = validateParameter(valid_615140, JString, required = false, default = nil) if valid_615140 != nil: - section.add "X-Amz-Security-Token", valid_615140 - var valid_615141 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615140 + var valid_615141 = header.getOrDefault("X-Amz-Credential") valid_615141 = validateParameter(valid_615141, JString, required = false, default = nil) if valid_615141 != nil: - section.add "X-Amz-Algorithm", valid_615141 - var valid_615142 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615141 + var valid_615142 = header.getOrDefault("X-Amz-Security-Token") valid_615142 = validateParameter(valid_615142, JString, required = false, default = nil) if valid_615142 != nil: - section.add "X-Amz-SignedHeaders", valid_615142 + section.add "X-Amz-Security-Token", valid_615142 + var valid_615143 = header.getOrDefault("X-Amz-Algorithm") + valid_615143 = validateParameter(valid_615143, JString, required = false, + default = nil) + if valid_615143 != nil: + section.add "X-Amz-Algorithm", valid_615143 + var valid_615144 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615144 = validateParameter(valid_615144, JString, required = false, + default = nil) + if valid_615144 != nil: + section.add "X-Amz-SignedHeaders", valid_615144 result.add "header", section ## parameters in `formData` object: ## PeerOwnerId: JString @@ -33498,48 +33525,48 @@ proc validate_PostCreateVpcPeeringConnection_615132(path: JsonNode; ## PeerVpcId: JString ## : The ID of the VPC with which you are creating the VPC peering connection. You must specify this parameter in the request. section = newJObject() - var valid_615143 = formData.getOrDefault("PeerOwnerId") - valid_615143 = validateParameter(valid_615143, JString, required = false, - default = nil) - if valid_615143 != nil: - section.add "PeerOwnerId", valid_615143 - var valid_615144 = formData.getOrDefault("VpcId") - valid_615144 = validateParameter(valid_615144, JString, required = false, - default = nil) - if valid_615144 != nil: - section.add "VpcId", valid_615144 - var valid_615145 = formData.getOrDefault("PeerRegion") + var valid_615145 = formData.getOrDefault("PeerOwnerId") valid_615145 = validateParameter(valid_615145, JString, required = false, default = nil) if valid_615145 != nil: - section.add "PeerRegion", valid_615145 - var valid_615146 = formData.getOrDefault("DryRun") - valid_615146 = validateParameter(valid_615146, JBool, required = false, default = nil) + section.add "PeerOwnerId", valid_615145 + var valid_615146 = formData.getOrDefault("VpcId") + valid_615146 = validateParameter(valid_615146, JString, required = false, + default = nil) if valid_615146 != nil: - section.add "DryRun", valid_615146 - var valid_615147 = formData.getOrDefault("PeerVpcId") + section.add "VpcId", valid_615146 + var valid_615147 = formData.getOrDefault("PeerRegion") valid_615147 = validateParameter(valid_615147, JString, required = false, default = nil) if valid_615147 != nil: - section.add "PeerVpcId", valid_615147 + section.add "PeerRegion", valid_615147 + var valid_615148 = formData.getOrDefault("DryRun") + valid_615148 = validateParameter(valid_615148, JBool, required = false, default = nil) + if valid_615148 != nil: + section.add "DryRun", valid_615148 + var valid_615149 = formData.getOrDefault("PeerVpcId") + valid_615149 = validateParameter(valid_615149, JString, required = false, + default = nil) + if valid_615149 != nil: + section.add "PeerVpcId", valid_615149 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615148: Call_PostCreateVpcPeeringConnection_615131; path: JsonNode; +proc call*(call_615150: Call_PostCreateVpcPeeringConnection_615133; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Requests a VPC peering connection between two VPCs: a requester VPC that you own and an accepter VPC with which to create the connection. The accepter VPC can belong to another AWS account and can be in a different Region to the requester VPC. The requester VPC and accepter VPC cannot have overlapping CIDR blocks.

Limitations and rules apply to a VPC peering connection. For more information, see the limitations section in the VPC Peering Guide.

The owner of the accepter VPC must accept the peering request to activate the peering connection. The VPC peering connection request expires after 7 days, after which it cannot be accepted or rejected.

If you create a VPC peering connection request between VPCs with overlapping CIDR blocks, the VPC peering connection has a status of failed.

## - let valid = call_615148.validator(path, query, header, formData, body) - let scheme = call_615148.pickScheme + let valid = call_615150.validator(path, query, header, formData, body) + let scheme = call_615150.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615148.url(scheme.get, call_615148.host, call_615148.base, - call_615148.route, valid.getOrDefault("path"), + let url = call_615150.url(scheme.get, call_615150.host, call_615150.base, + call_615150.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615148, url, valid) + result = atozHook(call_615150, url, valid) -proc call*(call_615149: Call_PostCreateVpcPeeringConnection_615131; +proc call*(call_615151: Call_PostCreateVpcPeeringConnection_615133; PeerOwnerId: string = ""; VpcId: string = ""; PeerRegion: string = ""; DryRun: bool = false; Action: string = "CreateVpcPeeringConnection"; Version: string = "2016-11-15"; PeerVpcId: string = ""): Recallable = @@ -33557,26 +33584,26 @@ proc call*(call_615149: Call_PostCreateVpcPeeringConnection_615131; ## Version: string (required) ## PeerVpcId: string ## : The ID of the VPC with which you are creating the VPC peering connection. You must specify this parameter in the request. - var query_615150 = newJObject() - var formData_615151 = newJObject() - add(formData_615151, "PeerOwnerId", newJString(PeerOwnerId)) - add(formData_615151, "VpcId", newJString(VpcId)) - add(formData_615151, "PeerRegion", newJString(PeerRegion)) - add(formData_615151, "DryRun", newJBool(DryRun)) - add(query_615150, "Action", newJString(Action)) - add(query_615150, "Version", newJString(Version)) - add(formData_615151, "PeerVpcId", newJString(PeerVpcId)) - result = call_615149.call(nil, query_615150, nil, formData_615151, nil) - -var postCreateVpcPeeringConnection* = Call_PostCreateVpcPeeringConnection_615131( + var query_615152 = newJObject() + var formData_615153 = newJObject() + add(formData_615153, "PeerOwnerId", newJString(PeerOwnerId)) + add(formData_615153, "VpcId", newJString(VpcId)) + add(formData_615153, "PeerRegion", newJString(PeerRegion)) + add(formData_615153, "DryRun", newJBool(DryRun)) + add(query_615152, "Action", newJString(Action)) + add(query_615152, "Version", newJString(Version)) + add(formData_615153, "PeerVpcId", newJString(PeerVpcId)) + result = call_615151.call(nil, query_615152, nil, formData_615153, nil) + +var postCreateVpcPeeringConnection* = Call_PostCreateVpcPeeringConnection_615133( name: "postCreateVpcPeeringConnection", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=CreateVpcPeeringConnection", - validator: validate_PostCreateVpcPeeringConnection_615132, base: "/", - url: url_PostCreateVpcPeeringConnection_615133, + validator: validate_PostCreateVpcPeeringConnection_615134, base: "/", + url: url_PostCreateVpcPeeringConnection_615135, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetCreateVpcPeeringConnection_615111 = ref object of OpenApiRestCall_610658 -proc url_GetCreateVpcPeeringConnection_615113(protocol: Scheme; host: string; + Call_GetCreateVpcPeeringConnection_615113 = ref object of OpenApiRestCall_610658 +proc url_GetCreateVpcPeeringConnection_615115(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -33586,7 +33613,7 @@ proc url_GetCreateVpcPeeringConnection_615113(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetCreateVpcPeeringConnection_615112(path: JsonNode; query: JsonNode; +proc validate_GetCreateVpcPeeringConnection_615114(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Requests a VPC peering connection between two VPCs: a requester VPC that you own and an accepter VPC with which to create the connection. The accepter VPC can belong to another AWS account and can be in a different Region to the requester VPC. The requester VPC and accepter VPC cannot have overlapping CIDR blocks.

Limitations and rules apply to a VPC peering connection. For more information, see the limitations section in the VPC Peering Guide.

The owner of the accepter VPC must accept the peering request to activate the peering connection. The VPC peering connection request expires after 7 days, after which it cannot be accepted or rejected.

If you create a VPC peering connection request between VPCs with overlapping CIDR blocks, the VPC peering connection has a status of failed.

## @@ -33608,40 +33635,40 @@ proc validate_GetCreateVpcPeeringConnection_615112(path: JsonNode; query: JsonNo ## : The ID of the VPC with which you are creating the VPC peering connection. You must specify this parameter in the request. ## Version: JString (required) section = newJObject() - var valid_615114 = query.getOrDefault("DryRun") - valid_615114 = validateParameter(valid_615114, JBool, required = false, default = nil) - if valid_615114 != nil: - section.add "DryRun", valid_615114 - var valid_615115 = query.getOrDefault("VpcId") - valid_615115 = validateParameter(valid_615115, JString, required = false, - default = nil) - if valid_615115 != nil: - section.add "VpcId", valid_615115 - var valid_615116 = query.getOrDefault("PeerOwnerId") - valid_615116 = validateParameter(valid_615116, JString, required = false, - default = nil) + var valid_615116 = query.getOrDefault("DryRun") + valid_615116 = validateParameter(valid_615116, JBool, required = false, default = nil) if valid_615116 != nil: - section.add "PeerOwnerId", valid_615116 - var valid_615117 = query.getOrDefault("Action") - valid_615117 = validateParameter(valid_615117, JString, required = true, default = newJString( - "CreateVpcPeeringConnection")) + section.add "DryRun", valid_615116 + var valid_615117 = query.getOrDefault("VpcId") + valid_615117 = validateParameter(valid_615117, JString, required = false, + default = nil) if valid_615117 != nil: - section.add "Action", valid_615117 - var valid_615118 = query.getOrDefault("PeerRegion") + section.add "VpcId", valid_615117 + var valid_615118 = query.getOrDefault("PeerOwnerId") valid_615118 = validateParameter(valid_615118, JString, required = false, default = nil) if valid_615118 != nil: - section.add "PeerRegion", valid_615118 - var valid_615119 = query.getOrDefault("PeerVpcId") - valid_615119 = validateParameter(valid_615119, JString, required = false, - default = nil) + section.add "PeerOwnerId", valid_615118 + var valid_615119 = query.getOrDefault("Action") + valid_615119 = validateParameter(valid_615119, JString, required = true, default = newJString( + "CreateVpcPeeringConnection")) if valid_615119 != nil: - section.add "PeerVpcId", valid_615119 - var valid_615120 = query.getOrDefault("Version") - valid_615120 = validateParameter(valid_615120, JString, required = true, - default = newJString("2016-11-15")) + section.add "Action", valid_615119 + var valid_615120 = query.getOrDefault("PeerRegion") + valid_615120 = validateParameter(valid_615120, JString, required = false, + default = nil) if valid_615120 != nil: - section.add "Version", valid_615120 + section.add "PeerRegion", valid_615120 + var valid_615121 = query.getOrDefault("PeerVpcId") + valid_615121 = validateParameter(valid_615121, JString, required = false, + default = nil) + if valid_615121 != nil: + section.add "PeerVpcId", valid_615121 + var valid_615122 = query.getOrDefault("Version") + valid_615122 = validateParameter(valid_615122, JString, required = true, + default = newJString("2016-11-15")) + if valid_615122 != nil: + section.add "Version", valid_615122 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -33652,61 +33679,61 @@ proc validate_GetCreateVpcPeeringConnection_615112(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615121 = header.getOrDefault("X-Amz-Signature") - valid_615121 = validateParameter(valid_615121, JString, required = false, - default = nil) - if valid_615121 != nil: - section.add "X-Amz-Signature", valid_615121 - var valid_615122 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615122 = validateParameter(valid_615122, JString, required = false, - default = nil) - if valid_615122 != nil: - section.add "X-Amz-Content-Sha256", valid_615122 - var valid_615123 = header.getOrDefault("X-Amz-Date") + var valid_615123 = header.getOrDefault("X-Amz-Signature") valid_615123 = validateParameter(valid_615123, JString, required = false, default = nil) if valid_615123 != nil: - section.add "X-Amz-Date", valid_615123 - var valid_615124 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615123 + var valid_615124 = header.getOrDefault("X-Amz-Content-Sha256") valid_615124 = validateParameter(valid_615124, JString, required = false, default = nil) if valid_615124 != nil: - section.add "X-Amz-Credential", valid_615124 - var valid_615125 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615124 + var valid_615125 = header.getOrDefault("X-Amz-Date") valid_615125 = validateParameter(valid_615125, JString, required = false, default = nil) if valid_615125 != nil: - section.add "X-Amz-Security-Token", valid_615125 - var valid_615126 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615125 + var valid_615126 = header.getOrDefault("X-Amz-Credential") valid_615126 = validateParameter(valid_615126, JString, required = false, default = nil) if valid_615126 != nil: - section.add "X-Amz-Algorithm", valid_615126 - var valid_615127 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615126 + var valid_615127 = header.getOrDefault("X-Amz-Security-Token") valid_615127 = validateParameter(valid_615127, JString, required = false, default = nil) if valid_615127 != nil: - section.add "X-Amz-SignedHeaders", valid_615127 + section.add "X-Amz-Security-Token", valid_615127 + var valid_615128 = header.getOrDefault("X-Amz-Algorithm") + valid_615128 = validateParameter(valid_615128, JString, required = false, + default = nil) + if valid_615128 != nil: + section.add "X-Amz-Algorithm", valid_615128 + var valid_615129 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615129 = validateParameter(valid_615129, JString, required = false, + default = nil) + if valid_615129 != nil: + section.add "X-Amz-SignedHeaders", valid_615129 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615128: Call_GetCreateVpcPeeringConnection_615111; path: JsonNode; +proc call*(call_615130: Call_GetCreateVpcPeeringConnection_615113; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Requests a VPC peering connection between two VPCs: a requester VPC that you own and an accepter VPC with which to create the connection. The accepter VPC can belong to another AWS account and can be in a different Region to the requester VPC. The requester VPC and accepter VPC cannot have overlapping CIDR blocks.

Limitations and rules apply to a VPC peering connection. For more information, see the limitations section in the VPC Peering Guide.

The owner of the accepter VPC must accept the peering request to activate the peering connection. The VPC peering connection request expires after 7 days, after which it cannot be accepted or rejected.

If you create a VPC peering connection request between VPCs with overlapping CIDR blocks, the VPC peering connection has a status of failed.

## - let valid = call_615128.validator(path, query, header, formData, body) - let scheme = call_615128.pickScheme + let valid = call_615130.validator(path, query, header, formData, body) + let scheme = call_615130.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615128.url(scheme.get, call_615128.host, call_615128.base, - call_615128.route, valid.getOrDefault("path"), + let url = call_615130.url(scheme.get, call_615130.host, call_615130.base, + call_615130.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615128, url, valid) + result = atozHook(call_615130, url, valid) -proc call*(call_615129: Call_GetCreateVpcPeeringConnection_615111; +proc call*(call_615131: Call_GetCreateVpcPeeringConnection_615113; DryRun: bool = false; VpcId: string = ""; PeerOwnerId: string = ""; Action: string = "CreateVpcPeeringConnection"; PeerRegion: string = ""; PeerVpcId: string = ""; Version: string = "2016-11-15"): Recallable = @@ -33724,25 +33751,25 @@ proc call*(call_615129: Call_GetCreateVpcPeeringConnection_615111; ## PeerVpcId: string ## : The ID of the VPC with which you are creating the VPC peering connection. You must specify this parameter in the request. ## Version: string (required) - var query_615130 = newJObject() - add(query_615130, "DryRun", newJBool(DryRun)) - add(query_615130, "VpcId", newJString(VpcId)) - add(query_615130, "PeerOwnerId", newJString(PeerOwnerId)) - add(query_615130, "Action", newJString(Action)) - add(query_615130, "PeerRegion", newJString(PeerRegion)) - add(query_615130, "PeerVpcId", newJString(PeerVpcId)) - add(query_615130, "Version", newJString(Version)) - result = call_615129.call(nil, query_615130, nil, nil, nil) - -var getCreateVpcPeeringConnection* = Call_GetCreateVpcPeeringConnection_615111( + var query_615132 = newJObject() + add(query_615132, "DryRun", newJBool(DryRun)) + add(query_615132, "VpcId", newJString(VpcId)) + add(query_615132, "PeerOwnerId", newJString(PeerOwnerId)) + add(query_615132, "Action", newJString(Action)) + add(query_615132, "PeerRegion", newJString(PeerRegion)) + add(query_615132, "PeerVpcId", newJString(PeerVpcId)) + add(query_615132, "Version", newJString(Version)) + result = call_615131.call(nil, query_615132, nil, nil, nil) + +var getCreateVpcPeeringConnection* = Call_GetCreateVpcPeeringConnection_615113( name: "getCreateVpcPeeringConnection", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=CreateVpcPeeringConnection", - validator: validate_GetCreateVpcPeeringConnection_615112, base: "/", - url: url_GetCreateVpcPeeringConnection_615113, + validator: validate_GetCreateVpcPeeringConnection_615114, base: "/", + url: url_GetCreateVpcPeeringConnection_615115, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostCreateVpnConnection_615175 = ref object of OpenApiRestCall_610658 -proc url_PostCreateVpnConnection_615177(protocol: Scheme; host: string; base: string; + Call_PostCreateVpnConnection_615177 = ref object of OpenApiRestCall_610658 +proc url_PostCreateVpnConnection_615179(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -33753,7 +33780,7 @@ proc url_PostCreateVpnConnection_615177(protocol: Scheme; host: string; base: st else: result.path = base & route -proc validate_PostCreateVpnConnection_615176(path: JsonNode; query: JsonNode; +proc validate_PostCreateVpnConnection_615178(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Creates a VPN connection between an existing virtual private gateway and a VPN customer gateway. The supported connection type is ipsec.1.

The response includes information that you need to give to your network administrator to configure your customer gateway.

We strongly recommend that you use HTTPS when calling this operation because the response contains sensitive cryptographic information for configuring your customer gateway.

If you decide to shut down your VPN connection for any reason and later create a new VPN connection, you must reconfigure your customer gateway with the new information returned from this call.

This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn't return an error.

For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.

## @@ -33765,16 +33792,16 @@ proc validate_PostCreateVpnConnection_615176(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615178 = query.getOrDefault("Action") - valid_615178 = validateParameter(valid_615178, JString, required = true, + var valid_615180 = query.getOrDefault("Action") + valid_615180 = validateParameter(valid_615180, JString, required = true, default = newJString("CreateVpnConnection")) - if valid_615178 != nil: - section.add "Action", valid_615178 - var valid_615179 = query.getOrDefault("Version") - valid_615179 = validateParameter(valid_615179, JString, required = true, + if valid_615180 != nil: + section.add "Action", valid_615180 + var valid_615181 = query.getOrDefault("Version") + valid_615181 = validateParameter(valid_615181, JString, required = true, default = newJString("2016-11-15")) - if valid_615179 != nil: - section.add "Version", valid_615179 + if valid_615181 != nil: + section.add "Version", valid_615181 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -33785,41 +33812,41 @@ proc validate_PostCreateVpnConnection_615176(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615180 = header.getOrDefault("X-Amz-Signature") - valid_615180 = validateParameter(valid_615180, JString, required = false, - default = nil) - if valid_615180 != nil: - section.add "X-Amz-Signature", valid_615180 - var valid_615181 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615181 = validateParameter(valid_615181, JString, required = false, - default = nil) - if valid_615181 != nil: - section.add "X-Amz-Content-Sha256", valid_615181 - var valid_615182 = header.getOrDefault("X-Amz-Date") + var valid_615182 = header.getOrDefault("X-Amz-Signature") valid_615182 = validateParameter(valid_615182, JString, required = false, default = nil) if valid_615182 != nil: - section.add "X-Amz-Date", valid_615182 - var valid_615183 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615182 + var valid_615183 = header.getOrDefault("X-Amz-Content-Sha256") valid_615183 = validateParameter(valid_615183, JString, required = false, default = nil) if valid_615183 != nil: - section.add "X-Amz-Credential", valid_615183 - var valid_615184 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615183 + var valid_615184 = header.getOrDefault("X-Amz-Date") valid_615184 = validateParameter(valid_615184, JString, required = false, default = nil) if valid_615184 != nil: - section.add "X-Amz-Security-Token", valid_615184 - var valid_615185 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615184 + var valid_615185 = header.getOrDefault("X-Amz-Credential") valid_615185 = validateParameter(valid_615185, JString, required = false, default = nil) if valid_615185 != nil: - section.add "X-Amz-Algorithm", valid_615185 - var valid_615186 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615185 + var valid_615186 = header.getOrDefault("X-Amz-Security-Token") valid_615186 = validateParameter(valid_615186, JString, required = false, default = nil) if valid_615186 != nil: - section.add "X-Amz-SignedHeaders", valid_615186 + section.add "X-Amz-Security-Token", valid_615186 + var valid_615187 = header.getOrDefault("X-Amz-Algorithm") + valid_615187 = validateParameter(valid_615187, JString, required = false, + default = nil) + if valid_615187 != nil: + section.add "X-Amz-Algorithm", valid_615187 + var valid_615188 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615188 = validateParameter(valid_615188, JString, required = false, + default = nil) + if valid_615188 != nil: + section.add "X-Amz-SignedHeaders", valid_615188 result.add "header", section ## parameters in `formData` object: ## VpnGatewayId: JString @@ -33842,64 +33869,64 @@ proc validate_PostCreateVpnConnection_615176(path: JsonNode; query: JsonNode; ## : Describes VPN connection options. ##

Indicate whether to enable acceleration for the VPN connection.

Default: false

section = newJObject() - var valid_615187 = formData.getOrDefault("VpnGatewayId") - valid_615187 = validateParameter(valid_615187, JString, required = false, - default = nil) - if valid_615187 != nil: - section.add "VpnGatewayId", valid_615187 - assert formData != nil, "formData argument is necessary due to required `CustomerGatewayId` field" - var valid_615188 = formData.getOrDefault("CustomerGatewayId") - valid_615188 = validateParameter(valid_615188, JString, required = true, - default = nil) - if valid_615188 != nil: - section.add "CustomerGatewayId", valid_615188 - var valid_615189 = formData.getOrDefault("Options.StaticRoutesOnly") + var valid_615189 = formData.getOrDefault("VpnGatewayId") valid_615189 = validateParameter(valid_615189, JString, required = false, default = nil) if valid_615189 != nil: - section.add "Options.StaticRoutesOnly", valid_615189 - var valid_615190 = formData.getOrDefault("Options.TunnelOptions") - valid_615190 = validateParameter(valid_615190, JArray, required = false, + section.add "VpnGatewayId", valid_615189 + assert formData != nil, "formData argument is necessary due to required `CustomerGatewayId` field" + var valid_615190 = formData.getOrDefault("CustomerGatewayId") + valid_615190 = validateParameter(valid_615190, JString, required = true, default = nil) if valid_615190 != nil: - section.add "Options.TunnelOptions", valid_615190 - var valid_615191 = formData.getOrDefault("DryRun") - valid_615191 = validateParameter(valid_615191, JBool, required = false, default = nil) + section.add "CustomerGatewayId", valid_615190 + var valid_615191 = formData.getOrDefault("Options.StaticRoutesOnly") + valid_615191 = validateParameter(valid_615191, JString, required = false, + default = nil) if valid_615191 != nil: - section.add "DryRun", valid_615191 - var valid_615192 = formData.getOrDefault("Type") - valid_615192 = validateParameter(valid_615192, JString, required = true, + section.add "Options.StaticRoutesOnly", valid_615191 + var valid_615192 = formData.getOrDefault("Options.TunnelOptions") + valid_615192 = validateParameter(valid_615192, JArray, required = false, default = nil) if valid_615192 != nil: - section.add "Type", valid_615192 - var valid_615193 = formData.getOrDefault("TransitGatewayId") - valid_615193 = validateParameter(valid_615193, JString, required = false, - default = nil) + section.add "Options.TunnelOptions", valid_615192 + var valid_615193 = formData.getOrDefault("DryRun") + valid_615193 = validateParameter(valid_615193, JBool, required = false, default = nil) if valid_615193 != nil: - section.add "TransitGatewayId", valid_615193 - var valid_615194 = formData.getOrDefault("Options.EnableAcceleration") - valid_615194 = validateParameter(valid_615194, JString, required = false, + section.add "DryRun", valid_615193 + var valid_615194 = formData.getOrDefault("Type") + valid_615194 = validateParameter(valid_615194, JString, required = true, default = nil) if valid_615194 != nil: - section.add "Options.EnableAcceleration", valid_615194 + section.add "Type", valid_615194 + var valid_615195 = formData.getOrDefault("TransitGatewayId") + valid_615195 = validateParameter(valid_615195, JString, required = false, + default = nil) + if valid_615195 != nil: + section.add "TransitGatewayId", valid_615195 + var valid_615196 = formData.getOrDefault("Options.EnableAcceleration") + valid_615196 = validateParameter(valid_615196, JString, required = false, + default = nil) + if valid_615196 != nil: + section.add "Options.EnableAcceleration", valid_615196 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615195: Call_PostCreateVpnConnection_615175; path: JsonNode; +proc call*(call_615197: Call_PostCreateVpnConnection_615177; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Creates a VPN connection between an existing virtual private gateway and a VPN customer gateway. The supported connection type is ipsec.1.

The response includes information that you need to give to your network administrator to configure your customer gateway.

We strongly recommend that you use HTTPS when calling this operation because the response contains sensitive cryptographic information for configuring your customer gateway.

If you decide to shut down your VPN connection for any reason and later create a new VPN connection, you must reconfigure your customer gateway with the new information returned from this call.

This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn't return an error.

For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.

## - let valid = call_615195.validator(path, query, header, formData, body) - let scheme = call_615195.pickScheme + let valid = call_615197.validator(path, query, header, formData, body) + let scheme = call_615197.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615195.url(scheme.get, call_615195.host, call_615195.base, - call_615195.route, valid.getOrDefault("path"), + let url = call_615197.url(scheme.get, call_615197.host, call_615197.base, + call_615197.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615195, url, valid) + result = atozHook(call_615197, url, valid) -proc call*(call_615196: Call_PostCreateVpnConnection_615175; +proc call*(call_615198: Call_PostCreateVpnConnection_615177; CustomerGatewayId: string; Type: string; VpnGatewayId: string = ""; OptionsStaticRoutesOnly: string = ""; OptionsTunnelOptions: JsonNode = nil; DryRun: bool = false; @@ -33928,31 +33955,31 @@ proc call*(call_615196: Call_PostCreateVpnConnection_615175; ## OptionsEnableAcceleration: string ## : Describes VPN connection options. ##

Indicate whether to enable acceleration for the VPN connection.

Default: false

- var query_615197 = newJObject() - var formData_615198 = newJObject() - add(formData_615198, "VpnGatewayId", newJString(VpnGatewayId)) - add(formData_615198, "CustomerGatewayId", newJString(CustomerGatewayId)) - add(formData_615198, "Options.StaticRoutesOnly", + var query_615199 = newJObject() + var formData_615200 = newJObject() + add(formData_615200, "VpnGatewayId", newJString(VpnGatewayId)) + add(formData_615200, "CustomerGatewayId", newJString(CustomerGatewayId)) + add(formData_615200, "Options.StaticRoutesOnly", newJString(OptionsStaticRoutesOnly)) if OptionsTunnelOptions != nil: - formData_615198.add "Options.TunnelOptions", OptionsTunnelOptions - add(formData_615198, "DryRun", newJBool(DryRun)) - add(formData_615198, "Type", newJString(Type)) - add(formData_615198, "TransitGatewayId", newJString(TransitGatewayId)) - add(query_615197, "Action", newJString(Action)) - add(query_615197, "Version", newJString(Version)) - add(formData_615198, "Options.EnableAcceleration", + formData_615200.add "Options.TunnelOptions", OptionsTunnelOptions + add(formData_615200, "DryRun", newJBool(DryRun)) + add(formData_615200, "Type", newJString(Type)) + add(formData_615200, "TransitGatewayId", newJString(TransitGatewayId)) + add(query_615199, "Action", newJString(Action)) + add(query_615199, "Version", newJString(Version)) + add(formData_615200, "Options.EnableAcceleration", newJString(OptionsEnableAcceleration)) - result = call_615196.call(nil, query_615197, nil, formData_615198, nil) + result = call_615198.call(nil, query_615199, nil, formData_615200, nil) -var postCreateVpnConnection* = Call_PostCreateVpnConnection_615175( +var postCreateVpnConnection* = Call_PostCreateVpnConnection_615177( name: "postCreateVpnConnection", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=CreateVpnConnection", - validator: validate_PostCreateVpnConnection_615176, base: "/", - url: url_PostCreateVpnConnection_615177, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostCreateVpnConnection_615178, base: "/", + url: url_PostCreateVpnConnection_615179, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetCreateVpnConnection_615152 = ref object of OpenApiRestCall_610658 -proc url_GetCreateVpnConnection_615154(protocol: Scheme; host: string; base: string; + Call_GetCreateVpnConnection_615154 = ref object of OpenApiRestCall_610658 +proc url_GetCreateVpnConnection_615156(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -33962,7 +33989,7 @@ proc url_GetCreateVpnConnection_615154(protocol: Scheme; host: string; base: str else: result.path = base & route -proc validate_GetCreateVpnConnection_615153(path: JsonNode; query: JsonNode; +proc validate_GetCreateVpnConnection_615155(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Creates a VPN connection between an existing virtual private gateway and a VPN customer gateway. The supported connection type is ipsec.1.

The response includes information that you need to give to your network administrator to configure your customer gateway.

We strongly recommend that you use HTTPS when calling this operation because the response contains sensitive cryptographic information for configuring your customer gateway.

If you decide to shut down your VPN connection for any reason and later create a new VPN connection, you must reconfigure your customer gateway with the new information returned from this call.

This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn't return an error.

For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.

## @@ -33994,55 +34021,55 @@ proc validate_GetCreateVpnConnection_615153(path: JsonNode; query: JsonNode; ## Version: JString (required) section = newJObject() assert query != nil, "query argument is necessary due to required `Type` field" - var valid_615155 = query.getOrDefault("Type") - valid_615155 = validateParameter(valid_615155, JString, required = true, - default = nil) - if valid_615155 != nil: - section.add "Type", valid_615155 - var valid_615156 = query.getOrDefault("Options.EnableAcceleration") - valid_615156 = validateParameter(valid_615156, JString, required = false, - default = nil) - if valid_615156 != nil: - section.add "Options.EnableAcceleration", valid_615156 - var valid_615157 = query.getOrDefault("DryRun") - valid_615157 = validateParameter(valid_615157, JBool, required = false, default = nil) + var valid_615157 = query.getOrDefault("Type") + valid_615157 = validateParameter(valid_615157, JString, required = true, + default = nil) if valid_615157 != nil: - section.add "DryRun", valid_615157 - var valid_615158 = query.getOrDefault("Options.StaticRoutesOnly") + section.add "Type", valid_615157 + var valid_615158 = query.getOrDefault("Options.EnableAcceleration") valid_615158 = validateParameter(valid_615158, JString, required = false, default = nil) if valid_615158 != nil: - section.add "Options.StaticRoutesOnly", valid_615158 - var valid_615159 = query.getOrDefault("TransitGatewayId") - valid_615159 = validateParameter(valid_615159, JString, required = false, - default = nil) + section.add "Options.EnableAcceleration", valid_615158 + var valid_615159 = query.getOrDefault("DryRun") + valid_615159 = validateParameter(valid_615159, JBool, required = false, default = nil) if valid_615159 != nil: - section.add "TransitGatewayId", valid_615159 - var valid_615160 = query.getOrDefault("CustomerGatewayId") - valid_615160 = validateParameter(valid_615160, JString, required = true, + section.add "DryRun", valid_615159 + var valid_615160 = query.getOrDefault("Options.StaticRoutesOnly") + valid_615160 = validateParameter(valid_615160, JString, required = false, default = nil) if valid_615160 != nil: - section.add "CustomerGatewayId", valid_615160 - var valid_615161 = query.getOrDefault("VpnGatewayId") + section.add "Options.StaticRoutesOnly", valid_615160 + var valid_615161 = query.getOrDefault("TransitGatewayId") valid_615161 = validateParameter(valid_615161, JString, required = false, default = nil) if valid_615161 != nil: - section.add "VpnGatewayId", valid_615161 - var valid_615162 = query.getOrDefault("Action") + section.add "TransitGatewayId", valid_615161 + var valid_615162 = query.getOrDefault("CustomerGatewayId") valid_615162 = validateParameter(valid_615162, JString, required = true, - default = newJString("CreateVpnConnection")) + default = nil) if valid_615162 != nil: - section.add "Action", valid_615162 - var valid_615163 = query.getOrDefault("Options.TunnelOptions") - valid_615163 = validateParameter(valid_615163, JArray, required = false, + section.add "CustomerGatewayId", valid_615162 + var valid_615163 = query.getOrDefault("VpnGatewayId") + valid_615163 = validateParameter(valid_615163, JString, required = false, default = nil) if valid_615163 != nil: - section.add "Options.TunnelOptions", valid_615163 - var valid_615164 = query.getOrDefault("Version") + section.add "VpnGatewayId", valid_615163 + var valid_615164 = query.getOrDefault("Action") valid_615164 = validateParameter(valid_615164, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("CreateVpnConnection")) if valid_615164 != nil: - section.add "Version", valid_615164 + section.add "Action", valid_615164 + var valid_615165 = query.getOrDefault("Options.TunnelOptions") + valid_615165 = validateParameter(valid_615165, JArray, required = false, + default = nil) + if valid_615165 != nil: + section.add "Options.TunnelOptions", valid_615165 + var valid_615166 = query.getOrDefault("Version") + valid_615166 = validateParameter(valid_615166, JString, required = true, + default = newJString("2016-11-15")) + if valid_615166 != nil: + section.add "Version", valid_615166 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -34053,61 +34080,61 @@ proc validate_GetCreateVpnConnection_615153(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615165 = header.getOrDefault("X-Amz-Signature") - valid_615165 = validateParameter(valid_615165, JString, required = false, - default = nil) - if valid_615165 != nil: - section.add "X-Amz-Signature", valid_615165 - var valid_615166 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615166 = validateParameter(valid_615166, JString, required = false, - default = nil) - if valid_615166 != nil: - section.add "X-Amz-Content-Sha256", valid_615166 - var valid_615167 = header.getOrDefault("X-Amz-Date") + var valid_615167 = header.getOrDefault("X-Amz-Signature") valid_615167 = validateParameter(valid_615167, JString, required = false, default = nil) if valid_615167 != nil: - section.add "X-Amz-Date", valid_615167 - var valid_615168 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615167 + var valid_615168 = header.getOrDefault("X-Amz-Content-Sha256") valid_615168 = validateParameter(valid_615168, JString, required = false, default = nil) if valid_615168 != nil: - section.add "X-Amz-Credential", valid_615168 - var valid_615169 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615168 + var valid_615169 = header.getOrDefault("X-Amz-Date") valid_615169 = validateParameter(valid_615169, JString, required = false, default = nil) if valid_615169 != nil: - section.add "X-Amz-Security-Token", valid_615169 - var valid_615170 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615169 + var valid_615170 = header.getOrDefault("X-Amz-Credential") valid_615170 = validateParameter(valid_615170, JString, required = false, default = nil) if valid_615170 != nil: - section.add "X-Amz-Algorithm", valid_615170 - var valid_615171 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615170 + var valid_615171 = header.getOrDefault("X-Amz-Security-Token") valid_615171 = validateParameter(valid_615171, JString, required = false, default = nil) if valid_615171 != nil: - section.add "X-Amz-SignedHeaders", valid_615171 + section.add "X-Amz-Security-Token", valid_615171 + var valid_615172 = header.getOrDefault("X-Amz-Algorithm") + valid_615172 = validateParameter(valid_615172, JString, required = false, + default = nil) + if valid_615172 != nil: + section.add "X-Amz-Algorithm", valid_615172 + var valid_615173 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615173 = validateParameter(valid_615173, JString, required = false, + default = nil) + if valid_615173 != nil: + section.add "X-Amz-SignedHeaders", valid_615173 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615172: Call_GetCreateVpnConnection_615152; path: JsonNode; +proc call*(call_615174: Call_GetCreateVpnConnection_615154; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Creates a VPN connection between an existing virtual private gateway and a VPN customer gateway. The supported connection type is ipsec.1.

The response includes information that you need to give to your network administrator to configure your customer gateway.

We strongly recommend that you use HTTPS when calling this operation because the response contains sensitive cryptographic information for configuring your customer gateway.

If you decide to shut down your VPN connection for any reason and later create a new VPN connection, you must reconfigure your customer gateway with the new information returned from this call.

This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn't return an error.

For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.

## - let valid = call_615172.validator(path, query, header, formData, body) - let scheme = call_615172.pickScheme + let valid = call_615174.validator(path, query, header, formData, body) + let scheme = call_615174.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615172.url(scheme.get, call_615172.host, call_615172.base, - call_615172.route, valid.getOrDefault("path"), + let url = call_615174.url(scheme.get, call_615174.host, call_615174.base, + call_615174.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615172, url, valid) + result = atozHook(call_615174, url, valid) -proc call*(call_615173: Call_GetCreateVpnConnection_615152; Type: string; +proc call*(call_615175: Call_GetCreateVpnConnection_615154; Type: string; CustomerGatewayId: string; OptionsEnableAcceleration: string = ""; DryRun: bool = false; OptionsStaticRoutesOnly: string = ""; TransitGatewayId: string = ""; VpnGatewayId: string = ""; @@ -34136,30 +34163,30 @@ proc call*(call_615173: Call_GetCreateVpnConnection_615152; Type: string; ## : Describes VPN connection options. ## The tunnel options for the VPN connection. ## Version: string (required) - var query_615174 = newJObject() - add(query_615174, "Type", newJString(Type)) - add(query_615174, "Options.EnableAcceleration", + var query_615176 = newJObject() + add(query_615176, "Type", newJString(Type)) + add(query_615176, "Options.EnableAcceleration", newJString(OptionsEnableAcceleration)) - add(query_615174, "DryRun", newJBool(DryRun)) - add(query_615174, "Options.StaticRoutesOnly", + add(query_615176, "DryRun", newJBool(DryRun)) + add(query_615176, "Options.StaticRoutesOnly", newJString(OptionsStaticRoutesOnly)) - add(query_615174, "TransitGatewayId", newJString(TransitGatewayId)) - add(query_615174, "CustomerGatewayId", newJString(CustomerGatewayId)) - add(query_615174, "VpnGatewayId", newJString(VpnGatewayId)) - add(query_615174, "Action", newJString(Action)) + add(query_615176, "TransitGatewayId", newJString(TransitGatewayId)) + add(query_615176, "CustomerGatewayId", newJString(CustomerGatewayId)) + add(query_615176, "VpnGatewayId", newJString(VpnGatewayId)) + add(query_615176, "Action", newJString(Action)) if OptionsTunnelOptions != nil: - query_615174.add "Options.TunnelOptions", OptionsTunnelOptions - add(query_615174, "Version", newJString(Version)) - result = call_615173.call(nil, query_615174, nil, nil, nil) + query_615176.add "Options.TunnelOptions", OptionsTunnelOptions + add(query_615176, "Version", newJString(Version)) + result = call_615175.call(nil, query_615176, nil, nil, nil) -var getCreateVpnConnection* = Call_GetCreateVpnConnection_615152( +var getCreateVpnConnection* = Call_GetCreateVpnConnection_615154( name: "getCreateVpnConnection", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=CreateVpnConnection", - validator: validate_GetCreateVpnConnection_615153, base: "/", - url: url_GetCreateVpnConnection_615154, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetCreateVpnConnection_615155, base: "/", + url: url_GetCreateVpnConnection_615156, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostCreateVpnConnectionRoute_615216 = ref object of OpenApiRestCall_610658 -proc url_PostCreateVpnConnectionRoute_615218(protocol: Scheme; host: string; + Call_PostCreateVpnConnectionRoute_615218 = ref object of OpenApiRestCall_610658 +proc url_PostCreateVpnConnectionRoute_615220(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -34169,7 +34196,7 @@ proc url_PostCreateVpnConnectionRoute_615218(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostCreateVpnConnectionRoute_615217(path: JsonNode; query: JsonNode; +proc validate_PostCreateVpnConnectionRoute_615219(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Creates a static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. The static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway.

For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.

## @@ -34181,16 +34208,16 @@ proc validate_PostCreateVpnConnectionRoute_615217(path: JsonNode; query: JsonNod ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615219 = query.getOrDefault("Action") - valid_615219 = validateParameter(valid_615219, JString, required = true, default = newJString( + var valid_615221 = query.getOrDefault("Action") + valid_615221 = validateParameter(valid_615221, JString, required = true, default = newJString( "CreateVpnConnectionRoute")) - if valid_615219 != nil: - section.add "Action", valid_615219 - var valid_615220 = query.getOrDefault("Version") - valid_615220 = validateParameter(valid_615220, JString, required = true, + if valid_615221 != nil: + section.add "Action", valid_615221 + var valid_615222 = query.getOrDefault("Version") + valid_615222 = validateParameter(valid_615222, JString, required = true, default = newJString("2016-11-15")) - if valid_615220 != nil: - section.add "Version", valid_615220 + if valid_615222 != nil: + section.add "Version", valid_615222 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -34201,41 +34228,41 @@ proc validate_PostCreateVpnConnectionRoute_615217(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615221 = header.getOrDefault("X-Amz-Signature") - valid_615221 = validateParameter(valid_615221, JString, required = false, - default = nil) - if valid_615221 != nil: - section.add "X-Amz-Signature", valid_615221 - var valid_615222 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615222 = validateParameter(valid_615222, JString, required = false, - default = nil) - if valid_615222 != nil: - section.add "X-Amz-Content-Sha256", valid_615222 - var valid_615223 = header.getOrDefault("X-Amz-Date") + var valid_615223 = header.getOrDefault("X-Amz-Signature") valid_615223 = validateParameter(valid_615223, JString, required = false, default = nil) if valid_615223 != nil: - section.add "X-Amz-Date", valid_615223 - var valid_615224 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615223 + var valid_615224 = header.getOrDefault("X-Amz-Content-Sha256") valid_615224 = validateParameter(valid_615224, JString, required = false, default = nil) if valid_615224 != nil: - section.add "X-Amz-Credential", valid_615224 - var valid_615225 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615224 + var valid_615225 = header.getOrDefault("X-Amz-Date") valid_615225 = validateParameter(valid_615225, JString, required = false, default = nil) if valid_615225 != nil: - section.add "X-Amz-Security-Token", valid_615225 - var valid_615226 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615225 + var valid_615226 = header.getOrDefault("X-Amz-Credential") valid_615226 = validateParameter(valid_615226, JString, required = false, default = nil) if valid_615226 != nil: - section.add "X-Amz-Algorithm", valid_615226 - var valid_615227 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615226 + var valid_615227 = header.getOrDefault("X-Amz-Security-Token") valid_615227 = validateParameter(valid_615227, JString, required = false, default = nil) if valid_615227 != nil: - section.add "X-Amz-SignedHeaders", valid_615227 + section.add "X-Amz-Security-Token", valid_615227 + var valid_615228 = header.getOrDefault("X-Amz-Algorithm") + valid_615228 = validateParameter(valid_615228, JString, required = false, + default = nil) + if valid_615228 != nil: + section.add "X-Amz-Algorithm", valid_615228 + var valid_615229 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615229 = validateParameter(valid_615229, JString, required = false, + default = nil) + if valid_615229 != nil: + section.add "X-Amz-SignedHeaders", valid_615229 result.add "header", section ## parameters in `formData` object: ## VpnConnectionId: JString (required) @@ -34244,34 +34271,34 @@ proc validate_PostCreateVpnConnectionRoute_615217(path: JsonNode; query: JsonNod ## : The CIDR block associated with the local subnet of the customer network. section = newJObject() assert formData != nil, "formData argument is necessary due to required `VpnConnectionId` field" - var valid_615228 = formData.getOrDefault("VpnConnectionId") - valid_615228 = validateParameter(valid_615228, JString, required = true, + var valid_615230 = formData.getOrDefault("VpnConnectionId") + valid_615230 = validateParameter(valid_615230, JString, required = true, default = nil) - if valid_615228 != nil: - section.add "VpnConnectionId", valid_615228 - var valid_615229 = formData.getOrDefault("DestinationCidrBlock") - valid_615229 = validateParameter(valid_615229, JString, required = true, + if valid_615230 != nil: + section.add "VpnConnectionId", valid_615230 + var valid_615231 = formData.getOrDefault("DestinationCidrBlock") + valid_615231 = validateParameter(valid_615231, JString, required = true, default = nil) - if valid_615229 != nil: - section.add "DestinationCidrBlock", valid_615229 + if valid_615231 != nil: + section.add "DestinationCidrBlock", valid_615231 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615230: Call_PostCreateVpnConnectionRoute_615216; path: JsonNode; +proc call*(call_615232: Call_PostCreateVpnConnectionRoute_615218; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Creates a static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. The static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway.

For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.

## - let valid = call_615230.validator(path, query, header, formData, body) - let scheme = call_615230.pickScheme + let valid = call_615232.validator(path, query, header, formData, body) + let scheme = call_615232.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615230.url(scheme.get, call_615230.host, call_615230.base, - call_615230.route, valid.getOrDefault("path"), + let url = call_615232.url(scheme.get, call_615232.host, call_615232.base, + call_615232.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615230, url, valid) + result = atozHook(call_615232, url, valid) -proc call*(call_615231: Call_PostCreateVpnConnectionRoute_615216; +proc call*(call_615233: Call_PostCreateVpnConnectionRoute_615218; VpnConnectionId: string; DestinationCidrBlock: string; Action: string = "CreateVpnConnectionRoute"; Version: string = "2016-11-15"): Recallable = @@ -34283,23 +34310,23 @@ proc call*(call_615231: Call_PostCreateVpnConnectionRoute_615216; ## : The CIDR block associated with the local subnet of the customer network. ## Action: string (required) ## Version: string (required) - var query_615232 = newJObject() - var formData_615233 = newJObject() - add(formData_615233, "VpnConnectionId", newJString(VpnConnectionId)) - add(formData_615233, "DestinationCidrBlock", newJString(DestinationCidrBlock)) - add(query_615232, "Action", newJString(Action)) - add(query_615232, "Version", newJString(Version)) - result = call_615231.call(nil, query_615232, nil, formData_615233, nil) + var query_615234 = newJObject() + var formData_615235 = newJObject() + add(formData_615235, "VpnConnectionId", newJString(VpnConnectionId)) + add(formData_615235, "DestinationCidrBlock", newJString(DestinationCidrBlock)) + add(query_615234, "Action", newJString(Action)) + add(query_615234, "Version", newJString(Version)) + result = call_615233.call(nil, query_615234, nil, formData_615235, nil) -var postCreateVpnConnectionRoute* = Call_PostCreateVpnConnectionRoute_615216( +var postCreateVpnConnectionRoute* = Call_PostCreateVpnConnectionRoute_615218( name: "postCreateVpnConnectionRoute", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=CreateVpnConnectionRoute", - validator: validate_PostCreateVpnConnectionRoute_615217, base: "/", - url: url_PostCreateVpnConnectionRoute_615218, + validator: validate_PostCreateVpnConnectionRoute_615219, base: "/", + url: url_PostCreateVpnConnectionRoute_615220, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetCreateVpnConnectionRoute_615199 = ref object of OpenApiRestCall_610658 -proc url_GetCreateVpnConnectionRoute_615201(protocol: Scheme; host: string; + Call_GetCreateVpnConnectionRoute_615201 = ref object of OpenApiRestCall_610658 +proc url_GetCreateVpnConnectionRoute_615203(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -34309,7 +34336,7 @@ proc url_GetCreateVpnConnectionRoute_615201(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetCreateVpnConnectionRoute_615200(path: JsonNode; query: JsonNode; +proc validate_GetCreateVpnConnectionRoute_615202(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Creates a static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. The static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway.

For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.

## @@ -34327,26 +34354,26 @@ proc validate_GetCreateVpnConnectionRoute_615200(path: JsonNode; query: JsonNode section = newJObject() assert query != nil, "query argument is necessary due to required `VpnConnectionId` field" - var valid_615202 = query.getOrDefault("VpnConnectionId") - valid_615202 = validateParameter(valid_615202, JString, required = true, + var valid_615204 = query.getOrDefault("VpnConnectionId") + valid_615204 = validateParameter(valid_615204, JString, required = true, default = nil) - if valid_615202 != nil: - section.add "VpnConnectionId", valid_615202 - var valid_615203 = query.getOrDefault("Action") - valid_615203 = validateParameter(valid_615203, JString, required = true, default = newJString( + if valid_615204 != nil: + section.add "VpnConnectionId", valid_615204 + var valid_615205 = query.getOrDefault("Action") + valid_615205 = validateParameter(valid_615205, JString, required = true, default = newJString( "CreateVpnConnectionRoute")) - if valid_615203 != nil: - section.add "Action", valid_615203 - var valid_615204 = query.getOrDefault("Version") - valid_615204 = validateParameter(valid_615204, JString, required = true, + if valid_615205 != nil: + section.add "Action", valid_615205 + var valid_615206 = query.getOrDefault("Version") + valid_615206 = validateParameter(valid_615206, JString, required = true, default = newJString("2016-11-15")) - if valid_615204 != nil: - section.add "Version", valid_615204 - var valid_615205 = query.getOrDefault("DestinationCidrBlock") - valid_615205 = validateParameter(valid_615205, JString, required = true, + if valid_615206 != nil: + section.add "Version", valid_615206 + var valid_615207 = query.getOrDefault("DestinationCidrBlock") + valid_615207 = validateParameter(valid_615207, JString, required = true, default = nil) - if valid_615205 != nil: - section.add "DestinationCidrBlock", valid_615205 + if valid_615207 != nil: + section.add "DestinationCidrBlock", valid_615207 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -34357,61 +34384,61 @@ proc validate_GetCreateVpnConnectionRoute_615200(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615206 = header.getOrDefault("X-Amz-Signature") - valid_615206 = validateParameter(valid_615206, JString, required = false, - default = nil) - if valid_615206 != nil: - section.add "X-Amz-Signature", valid_615206 - var valid_615207 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615207 = validateParameter(valid_615207, JString, required = false, - default = nil) - if valid_615207 != nil: - section.add "X-Amz-Content-Sha256", valid_615207 - var valid_615208 = header.getOrDefault("X-Amz-Date") + var valid_615208 = header.getOrDefault("X-Amz-Signature") valid_615208 = validateParameter(valid_615208, JString, required = false, default = nil) if valid_615208 != nil: - section.add "X-Amz-Date", valid_615208 - var valid_615209 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615208 + var valid_615209 = header.getOrDefault("X-Amz-Content-Sha256") valid_615209 = validateParameter(valid_615209, JString, required = false, default = nil) if valid_615209 != nil: - section.add "X-Amz-Credential", valid_615209 - var valid_615210 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615209 + var valid_615210 = header.getOrDefault("X-Amz-Date") valid_615210 = validateParameter(valid_615210, JString, required = false, default = nil) if valid_615210 != nil: - section.add "X-Amz-Security-Token", valid_615210 - var valid_615211 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615210 + var valid_615211 = header.getOrDefault("X-Amz-Credential") valid_615211 = validateParameter(valid_615211, JString, required = false, default = nil) if valid_615211 != nil: - section.add "X-Amz-Algorithm", valid_615211 - var valid_615212 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615211 + var valid_615212 = header.getOrDefault("X-Amz-Security-Token") valid_615212 = validateParameter(valid_615212, JString, required = false, default = nil) if valid_615212 != nil: - section.add "X-Amz-SignedHeaders", valid_615212 + section.add "X-Amz-Security-Token", valid_615212 + var valid_615213 = header.getOrDefault("X-Amz-Algorithm") + valid_615213 = validateParameter(valid_615213, JString, required = false, + default = nil) + if valid_615213 != nil: + section.add "X-Amz-Algorithm", valid_615213 + var valid_615214 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615214 = validateParameter(valid_615214, JString, required = false, + default = nil) + if valid_615214 != nil: + section.add "X-Amz-SignedHeaders", valid_615214 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615213: Call_GetCreateVpnConnectionRoute_615199; path: JsonNode; +proc call*(call_615215: Call_GetCreateVpnConnectionRoute_615201; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Creates a static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. The static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway.

For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.

## - let valid = call_615213.validator(path, query, header, formData, body) - let scheme = call_615213.pickScheme + let valid = call_615215.validator(path, query, header, formData, body) + let scheme = call_615215.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615213.url(scheme.get, call_615213.host, call_615213.base, - call_615213.route, valid.getOrDefault("path"), + let url = call_615215.url(scheme.get, call_615215.host, call_615215.base, + call_615215.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615213, url, valid) + result = atozHook(call_615215, url, valid) -proc call*(call_615214: Call_GetCreateVpnConnectionRoute_615199; +proc call*(call_615216: Call_GetCreateVpnConnectionRoute_615201; VpnConnectionId: string; DestinationCidrBlock: string; Action: string = "CreateVpnConnectionRoute"; Version: string = "2016-11-15"): Recallable = @@ -34423,22 +34450,22 @@ proc call*(call_615214: Call_GetCreateVpnConnectionRoute_615199; ## Version: string (required) ## DestinationCidrBlock: string (required) ## : The CIDR block associated with the local subnet of the customer network. - var query_615215 = newJObject() - add(query_615215, "VpnConnectionId", newJString(VpnConnectionId)) - add(query_615215, "Action", newJString(Action)) - add(query_615215, "Version", newJString(Version)) - add(query_615215, "DestinationCidrBlock", newJString(DestinationCidrBlock)) - result = call_615214.call(nil, query_615215, nil, nil, nil) - -var getCreateVpnConnectionRoute* = Call_GetCreateVpnConnectionRoute_615199( + var query_615217 = newJObject() + add(query_615217, "VpnConnectionId", newJString(VpnConnectionId)) + add(query_615217, "Action", newJString(Action)) + add(query_615217, "Version", newJString(Version)) + add(query_615217, "DestinationCidrBlock", newJString(DestinationCidrBlock)) + result = call_615216.call(nil, query_615217, nil, nil, nil) + +var getCreateVpnConnectionRoute* = Call_GetCreateVpnConnectionRoute_615201( name: "getCreateVpnConnectionRoute", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=CreateVpnConnectionRoute", - validator: validate_GetCreateVpnConnectionRoute_615200, base: "/", - url: url_GetCreateVpnConnectionRoute_615201, + validator: validate_GetCreateVpnConnectionRoute_615202, base: "/", + url: url_GetCreateVpnConnectionRoute_615203, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostCreateVpnGateway_615253 = ref object of OpenApiRestCall_610658 -proc url_PostCreateVpnGateway_615255(protocol: Scheme; host: string; base: string; + Call_PostCreateVpnGateway_615255 = ref object of OpenApiRestCall_610658 +proc url_PostCreateVpnGateway_615257(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -34448,7 +34475,7 @@ proc url_PostCreateVpnGateway_615255(protocol: Scheme; host: string; base: strin else: result.path = base & route -proc validate_PostCreateVpnGateway_615254(path: JsonNode; query: JsonNode; +proc validate_PostCreateVpnGateway_615256(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Creates a virtual private gateway. A virtual private gateway is the endpoint on the VPC side of your VPN connection. You can create a virtual private gateway before creating the VPC itself.

For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.

## @@ -34460,16 +34487,16 @@ proc validate_PostCreateVpnGateway_615254(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615256 = query.getOrDefault("Action") - valid_615256 = validateParameter(valid_615256, JString, required = true, + var valid_615258 = query.getOrDefault("Action") + valid_615258 = validateParameter(valid_615258, JString, required = true, default = newJString("CreateVpnGateway")) - if valid_615256 != nil: - section.add "Action", valid_615256 - var valid_615257 = query.getOrDefault("Version") - valid_615257 = validateParameter(valid_615257, JString, required = true, + if valid_615258 != nil: + section.add "Action", valid_615258 + var valid_615259 = query.getOrDefault("Version") + valid_615259 = validateParameter(valid_615259, JString, required = true, default = newJString("2016-11-15")) - if valid_615257 != nil: - section.add "Version", valid_615257 + if valid_615259 != nil: + section.add "Version", valid_615259 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -34480,41 +34507,41 @@ proc validate_PostCreateVpnGateway_615254(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615258 = header.getOrDefault("X-Amz-Signature") - valid_615258 = validateParameter(valid_615258, JString, required = false, - default = nil) - if valid_615258 != nil: - section.add "X-Amz-Signature", valid_615258 - var valid_615259 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615259 = validateParameter(valid_615259, JString, required = false, - default = nil) - if valid_615259 != nil: - section.add "X-Amz-Content-Sha256", valid_615259 - var valid_615260 = header.getOrDefault("X-Amz-Date") + var valid_615260 = header.getOrDefault("X-Amz-Signature") valid_615260 = validateParameter(valid_615260, JString, required = false, default = nil) if valid_615260 != nil: - section.add "X-Amz-Date", valid_615260 - var valid_615261 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615260 + var valid_615261 = header.getOrDefault("X-Amz-Content-Sha256") valid_615261 = validateParameter(valid_615261, JString, required = false, default = nil) if valid_615261 != nil: - section.add "X-Amz-Credential", valid_615261 - var valid_615262 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615261 + var valid_615262 = header.getOrDefault("X-Amz-Date") valid_615262 = validateParameter(valid_615262, JString, required = false, default = nil) if valid_615262 != nil: - section.add "X-Amz-Security-Token", valid_615262 - var valid_615263 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615262 + var valid_615263 = header.getOrDefault("X-Amz-Credential") valid_615263 = validateParameter(valid_615263, JString, required = false, default = nil) if valid_615263 != nil: - section.add "X-Amz-Algorithm", valid_615263 - var valid_615264 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615263 + var valid_615264 = header.getOrDefault("X-Amz-Security-Token") valid_615264 = validateParameter(valid_615264, JString, required = false, default = nil) if valid_615264 != nil: - section.add "X-Amz-SignedHeaders", valid_615264 + section.add "X-Amz-Security-Token", valid_615264 + var valid_615265 = header.getOrDefault("X-Amz-Algorithm") + valid_615265 = validateParameter(valid_615265, JString, required = false, + default = nil) + if valid_615265 != nil: + section.add "X-Amz-Algorithm", valid_615265 + var valid_615266 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615266 = validateParameter(valid_615266, JString, required = false, + default = nil) + if valid_615266 != nil: + section.add "X-Amz-SignedHeaders", valid_615266 result.add "header", section ## parameters in `formData` object: ## AvailabilityZone: JString @@ -34526,42 +34553,42 @@ proc validate_PostCreateVpnGateway_615254(path: JsonNode; query: JsonNode; ## Type: JString (required) ## : The type of VPN connection this virtual private gateway supports. section = newJObject() - var valid_615265 = formData.getOrDefault("AvailabilityZone") - valid_615265 = validateParameter(valid_615265, JString, required = false, + var valid_615267 = formData.getOrDefault("AvailabilityZone") + valid_615267 = validateParameter(valid_615267, JString, required = false, default = nil) - if valid_615265 != nil: - section.add "AvailabilityZone", valid_615265 - var valid_615266 = formData.getOrDefault("AmazonSideAsn") - valid_615266 = validateParameter(valid_615266, JInt, required = false, default = nil) - if valid_615266 != nil: - section.add "AmazonSideAsn", valid_615266 - var valid_615267 = formData.getOrDefault("DryRun") - valid_615267 = validateParameter(valid_615267, JBool, required = false, default = nil) if valid_615267 != nil: - section.add "DryRun", valid_615267 - var valid_615268 = formData.getOrDefault("Type") - valid_615268 = validateParameter(valid_615268, JString, required = true, - default = newJString("ipsec.1")) + section.add "AvailabilityZone", valid_615267 + var valid_615268 = formData.getOrDefault("AmazonSideAsn") + valid_615268 = validateParameter(valid_615268, JInt, required = false, default = nil) if valid_615268 != nil: - section.add "Type", valid_615268 + section.add "AmazonSideAsn", valid_615268 + var valid_615269 = formData.getOrDefault("DryRun") + valid_615269 = validateParameter(valid_615269, JBool, required = false, default = nil) + if valid_615269 != nil: + section.add "DryRun", valid_615269 + var valid_615270 = formData.getOrDefault("Type") + valid_615270 = validateParameter(valid_615270, JString, required = true, + default = newJString("ipsec.1")) + if valid_615270 != nil: + section.add "Type", valid_615270 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615269: Call_PostCreateVpnGateway_615253; path: JsonNode; +proc call*(call_615271: Call_PostCreateVpnGateway_615255; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Creates a virtual private gateway. A virtual private gateway is the endpoint on the VPC side of your VPN connection. You can create a virtual private gateway before creating the VPC itself.

For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.

## - let valid = call_615269.validator(path, query, header, formData, body) - let scheme = call_615269.pickScheme + let valid = call_615271.validator(path, query, header, formData, body) + let scheme = call_615271.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615269.url(scheme.get, call_615269.host, call_615269.base, - call_615269.route, valid.getOrDefault("path"), + let url = call_615271.url(scheme.get, call_615271.host, call_615271.base, + call_615271.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615269, url, valid) + result = atozHook(call_615271, url, valid) -proc call*(call_615270: Call_PostCreateVpnGateway_615253; +proc call*(call_615272: Call_PostCreateVpnGateway_615255; AvailabilityZone: string = ""; AmazonSideAsn: int = 0; DryRun: bool = false; Type: string = "ipsec.1"; Action: string = "CreateVpnGateway"; Version: string = "2016-11-15"): Recallable = @@ -34577,24 +34604,24 @@ proc call*(call_615270: Call_PostCreateVpnGateway_615253; ## : The type of VPN connection this virtual private gateway supports. ## Action: string (required) ## Version: string (required) - var query_615271 = newJObject() - var formData_615272 = newJObject() - add(formData_615272, "AvailabilityZone", newJString(AvailabilityZone)) - add(formData_615272, "AmazonSideAsn", newJInt(AmazonSideAsn)) - add(formData_615272, "DryRun", newJBool(DryRun)) - add(formData_615272, "Type", newJString(Type)) - add(query_615271, "Action", newJString(Action)) - add(query_615271, "Version", newJString(Version)) - result = call_615270.call(nil, query_615271, nil, formData_615272, nil) + var query_615273 = newJObject() + var formData_615274 = newJObject() + add(formData_615274, "AvailabilityZone", newJString(AvailabilityZone)) + add(formData_615274, "AmazonSideAsn", newJInt(AmazonSideAsn)) + add(formData_615274, "DryRun", newJBool(DryRun)) + add(formData_615274, "Type", newJString(Type)) + add(query_615273, "Action", newJString(Action)) + add(query_615273, "Version", newJString(Version)) + result = call_615272.call(nil, query_615273, nil, formData_615274, nil) -var postCreateVpnGateway* = Call_PostCreateVpnGateway_615253( +var postCreateVpnGateway* = Call_PostCreateVpnGateway_615255( name: "postCreateVpnGateway", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=CreateVpnGateway", - validator: validate_PostCreateVpnGateway_615254, base: "/", - url: url_PostCreateVpnGateway_615255, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostCreateVpnGateway_615256, base: "/", + url: url_PostCreateVpnGateway_615257, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetCreateVpnGateway_615234 = ref object of OpenApiRestCall_610658 -proc url_GetCreateVpnGateway_615236(protocol: Scheme; host: string; base: string; + Call_GetCreateVpnGateway_615236 = ref object of OpenApiRestCall_610658 +proc url_GetCreateVpnGateway_615238(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -34604,7 +34631,7 @@ proc url_GetCreateVpnGateway_615236(protocol: Scheme; host: string; base: string else: result.path = base & route -proc validate_GetCreateVpnGateway_615235(path: JsonNode; query: JsonNode; +proc validate_GetCreateVpnGateway_615237(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Creates a virtual private gateway. A virtual private gateway is the endpoint on the VPC side of your VPN connection. You can create a virtual private gateway before creating the VPC itself.

For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.

@@ -34625,34 +34652,34 @@ proc validate_GetCreateVpnGateway_615235(path: JsonNode; query: JsonNode; ## : The Availability Zone for the virtual private gateway. ## Version: JString (required) section = newJObject() - var valid_615237 = query.getOrDefault("Type") - valid_615237 = validateParameter(valid_615237, JString, required = true, + var valid_615239 = query.getOrDefault("Type") + valid_615239 = validateParameter(valid_615239, JString, required = true, default = newJString("ipsec.1")) - if valid_615237 != nil: - section.add "Type", valid_615237 - var valid_615238 = query.getOrDefault("DryRun") - valid_615238 = validateParameter(valid_615238, JBool, required = false, default = nil) - if valid_615238 != nil: - section.add "DryRun", valid_615238 - var valid_615239 = query.getOrDefault("AmazonSideAsn") - valid_615239 = validateParameter(valid_615239, JInt, required = false, default = nil) if valid_615239 != nil: - section.add "AmazonSideAsn", valid_615239 - var valid_615240 = query.getOrDefault("Action") - valid_615240 = validateParameter(valid_615240, JString, required = true, - default = newJString("CreateVpnGateway")) + section.add "Type", valid_615239 + var valid_615240 = query.getOrDefault("DryRun") + valid_615240 = validateParameter(valid_615240, JBool, required = false, default = nil) if valid_615240 != nil: - section.add "Action", valid_615240 - var valid_615241 = query.getOrDefault("AvailabilityZone") - valid_615241 = validateParameter(valid_615241, JString, required = false, - default = nil) + section.add "DryRun", valid_615240 + var valid_615241 = query.getOrDefault("AmazonSideAsn") + valid_615241 = validateParameter(valid_615241, JInt, required = false, default = nil) if valid_615241 != nil: - section.add "AvailabilityZone", valid_615241 - var valid_615242 = query.getOrDefault("Version") + section.add "AmazonSideAsn", valid_615241 + var valid_615242 = query.getOrDefault("Action") valid_615242 = validateParameter(valid_615242, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("CreateVpnGateway")) if valid_615242 != nil: - section.add "Version", valid_615242 + section.add "Action", valid_615242 + var valid_615243 = query.getOrDefault("AvailabilityZone") + valid_615243 = validateParameter(valid_615243, JString, required = false, + default = nil) + if valid_615243 != nil: + section.add "AvailabilityZone", valid_615243 + var valid_615244 = query.getOrDefault("Version") + valid_615244 = validateParameter(valid_615244, JString, required = true, + default = newJString("2016-11-15")) + if valid_615244 != nil: + section.add "Version", valid_615244 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -34663,61 +34690,61 @@ proc validate_GetCreateVpnGateway_615235(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615243 = header.getOrDefault("X-Amz-Signature") - valid_615243 = validateParameter(valid_615243, JString, required = false, - default = nil) - if valid_615243 != nil: - section.add "X-Amz-Signature", valid_615243 - var valid_615244 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615244 = validateParameter(valid_615244, JString, required = false, - default = nil) - if valid_615244 != nil: - section.add "X-Amz-Content-Sha256", valid_615244 - var valid_615245 = header.getOrDefault("X-Amz-Date") + var valid_615245 = header.getOrDefault("X-Amz-Signature") valid_615245 = validateParameter(valid_615245, JString, required = false, default = nil) if valid_615245 != nil: - section.add "X-Amz-Date", valid_615245 - var valid_615246 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615245 + var valid_615246 = header.getOrDefault("X-Amz-Content-Sha256") valid_615246 = validateParameter(valid_615246, JString, required = false, default = nil) if valid_615246 != nil: - section.add "X-Amz-Credential", valid_615246 - var valid_615247 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615246 + var valid_615247 = header.getOrDefault("X-Amz-Date") valid_615247 = validateParameter(valid_615247, JString, required = false, default = nil) if valid_615247 != nil: - section.add "X-Amz-Security-Token", valid_615247 - var valid_615248 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615247 + var valid_615248 = header.getOrDefault("X-Amz-Credential") valid_615248 = validateParameter(valid_615248, JString, required = false, default = nil) if valid_615248 != nil: - section.add "X-Amz-Algorithm", valid_615248 - var valid_615249 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615248 + var valid_615249 = header.getOrDefault("X-Amz-Security-Token") valid_615249 = validateParameter(valid_615249, JString, required = false, default = nil) if valid_615249 != nil: - section.add "X-Amz-SignedHeaders", valid_615249 + section.add "X-Amz-Security-Token", valid_615249 + var valid_615250 = header.getOrDefault("X-Amz-Algorithm") + valid_615250 = validateParameter(valid_615250, JString, required = false, + default = nil) + if valid_615250 != nil: + section.add "X-Amz-Algorithm", valid_615250 + var valid_615251 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615251 = validateParameter(valid_615251, JString, required = false, + default = nil) + if valid_615251 != nil: + section.add "X-Amz-SignedHeaders", valid_615251 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615250: Call_GetCreateVpnGateway_615234; path: JsonNode; +proc call*(call_615252: Call_GetCreateVpnGateway_615236; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Creates a virtual private gateway. A virtual private gateway is the endpoint on the VPC side of your VPN connection. You can create a virtual private gateway before creating the VPC itself.

For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.

## - let valid = call_615250.validator(path, query, header, formData, body) - let scheme = call_615250.pickScheme + let valid = call_615252.validator(path, query, header, formData, body) + let scheme = call_615252.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615250.url(scheme.get, call_615250.host, call_615250.base, - call_615250.route, valid.getOrDefault("path"), + let url = call_615252.url(scheme.get, call_615252.host, call_615252.base, + call_615252.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615250, url, valid) + result = atozHook(call_615252, url, valid) -proc call*(call_615251: Call_GetCreateVpnGateway_615234; Type: string = "ipsec.1"; +proc call*(call_615253: Call_GetCreateVpnGateway_615236; Type: string = "ipsec.1"; DryRun: bool = false; AmazonSideAsn: int = 0; Action: string = "CreateVpnGateway"; AvailabilityZone: string = ""; Version: string = "2016-11-15"): Recallable = @@ -34733,23 +34760,23 @@ proc call*(call_615251: Call_GetCreateVpnGateway_615234; Type: string = "ipsec.1 ## AvailabilityZone: string ## : The Availability Zone for the virtual private gateway. ## Version: string (required) - var query_615252 = newJObject() - add(query_615252, "Type", newJString(Type)) - add(query_615252, "DryRun", newJBool(DryRun)) - add(query_615252, "AmazonSideAsn", newJInt(AmazonSideAsn)) - add(query_615252, "Action", newJString(Action)) - add(query_615252, "AvailabilityZone", newJString(AvailabilityZone)) - add(query_615252, "Version", newJString(Version)) - result = call_615251.call(nil, query_615252, nil, nil, nil) + var query_615254 = newJObject() + add(query_615254, "Type", newJString(Type)) + add(query_615254, "DryRun", newJBool(DryRun)) + add(query_615254, "AmazonSideAsn", newJInt(AmazonSideAsn)) + add(query_615254, "Action", newJString(Action)) + add(query_615254, "AvailabilityZone", newJString(AvailabilityZone)) + add(query_615254, "Version", newJString(Version)) + result = call_615253.call(nil, query_615254, nil, nil, nil) -var getCreateVpnGateway* = Call_GetCreateVpnGateway_615234( +var getCreateVpnGateway* = Call_GetCreateVpnGateway_615236( name: "getCreateVpnGateway", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=CreateVpnGateway", - validator: validate_GetCreateVpnGateway_615235, base: "/", - url: url_GetCreateVpnGateway_615236, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetCreateVpnGateway_615237, base: "/", + url: url_GetCreateVpnGateway_615238, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteClientVpnEndpoint_615290 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteClientVpnEndpoint_615292(protocol: Scheme; host: string; + Call_PostDeleteClientVpnEndpoint_615292 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteClientVpnEndpoint_615294(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -34759,7 +34786,7 @@ proc url_PostDeleteClientVpnEndpoint_615292(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDeleteClientVpnEndpoint_615291(path: JsonNode; query: JsonNode; +proc validate_PostDeleteClientVpnEndpoint_615293(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified Client VPN endpoint. You must disassociate all target networks before you can delete a Client VPN endpoint. ## @@ -34771,16 +34798,16 @@ proc validate_PostDeleteClientVpnEndpoint_615291(path: JsonNode; query: JsonNode ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615293 = query.getOrDefault("Action") - valid_615293 = validateParameter(valid_615293, JString, required = true, default = newJString( + var valid_615295 = query.getOrDefault("Action") + valid_615295 = validateParameter(valid_615295, JString, required = true, default = newJString( "DeleteClientVpnEndpoint")) - if valid_615293 != nil: - section.add "Action", valid_615293 - var valid_615294 = query.getOrDefault("Version") - valid_615294 = validateParameter(valid_615294, JString, required = true, + if valid_615295 != nil: + section.add "Action", valid_615295 + var valid_615296 = query.getOrDefault("Version") + valid_615296 = validateParameter(valid_615296, JString, required = true, default = newJString("2016-11-15")) - if valid_615294 != nil: - section.add "Version", valid_615294 + if valid_615296 != nil: + section.add "Version", valid_615296 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -34791,41 +34818,41 @@ proc validate_PostDeleteClientVpnEndpoint_615291(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615295 = header.getOrDefault("X-Amz-Signature") - valid_615295 = validateParameter(valid_615295, JString, required = false, - default = nil) - if valid_615295 != nil: - section.add "X-Amz-Signature", valid_615295 - var valid_615296 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615296 = validateParameter(valid_615296, JString, required = false, - default = nil) - if valid_615296 != nil: - section.add "X-Amz-Content-Sha256", valid_615296 - var valid_615297 = header.getOrDefault("X-Amz-Date") + var valid_615297 = header.getOrDefault("X-Amz-Signature") valid_615297 = validateParameter(valid_615297, JString, required = false, default = nil) if valid_615297 != nil: - section.add "X-Amz-Date", valid_615297 - var valid_615298 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615297 + var valid_615298 = header.getOrDefault("X-Amz-Content-Sha256") valid_615298 = validateParameter(valid_615298, JString, required = false, default = nil) if valid_615298 != nil: - section.add "X-Amz-Credential", valid_615298 - var valid_615299 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615298 + var valid_615299 = header.getOrDefault("X-Amz-Date") valid_615299 = validateParameter(valid_615299, JString, required = false, default = nil) if valid_615299 != nil: - section.add "X-Amz-Security-Token", valid_615299 - var valid_615300 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615299 + var valid_615300 = header.getOrDefault("X-Amz-Credential") valid_615300 = validateParameter(valid_615300, JString, required = false, default = nil) if valid_615300 != nil: - section.add "X-Amz-Algorithm", valid_615300 - var valid_615301 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615300 + var valid_615301 = header.getOrDefault("X-Amz-Security-Token") valid_615301 = validateParameter(valid_615301, JString, required = false, default = nil) if valid_615301 != nil: - section.add "X-Amz-SignedHeaders", valid_615301 + section.add "X-Amz-Security-Token", valid_615301 + var valid_615302 = header.getOrDefault("X-Amz-Algorithm") + valid_615302 = validateParameter(valid_615302, JString, required = false, + default = nil) + if valid_615302 != nil: + section.add "X-Amz-Algorithm", valid_615302 + var valid_615303 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615303 = validateParameter(valid_615303, JString, required = false, + default = nil) + if valid_615303 != nil: + section.add "X-Amz-SignedHeaders", valid_615303 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -34833,34 +34860,34 @@ proc validate_PostDeleteClientVpnEndpoint_615291(path: JsonNode; query: JsonNode ## ClientVpnEndpointId: JString (required) ## : The ID of the Client VPN to be deleted. section = newJObject() - var valid_615302 = formData.getOrDefault("DryRun") - valid_615302 = validateParameter(valid_615302, JBool, required = false, default = nil) - if valid_615302 != nil: - section.add "DryRun", valid_615302 + var valid_615304 = formData.getOrDefault("DryRun") + valid_615304 = validateParameter(valid_615304, JBool, required = false, default = nil) + if valid_615304 != nil: + section.add "DryRun", valid_615304 assert formData != nil, "formData argument is necessary due to required `ClientVpnEndpointId` field" - var valid_615303 = formData.getOrDefault("ClientVpnEndpointId") - valid_615303 = validateParameter(valid_615303, JString, required = true, + var valid_615305 = formData.getOrDefault("ClientVpnEndpointId") + valid_615305 = validateParameter(valid_615305, JString, required = true, default = nil) - if valid_615303 != nil: - section.add "ClientVpnEndpointId", valid_615303 + if valid_615305 != nil: + section.add "ClientVpnEndpointId", valid_615305 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615304: Call_PostDeleteClientVpnEndpoint_615290; path: JsonNode; +proc call*(call_615306: Call_PostDeleteClientVpnEndpoint_615292; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified Client VPN endpoint. You must disassociate all target networks before you can delete a Client VPN endpoint. ## - let valid = call_615304.validator(path, query, header, formData, body) - let scheme = call_615304.pickScheme + let valid = call_615306.validator(path, query, header, formData, body) + let scheme = call_615306.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615304.url(scheme.get, call_615304.host, call_615304.base, - call_615304.route, valid.getOrDefault("path"), + let url = call_615306.url(scheme.get, call_615306.host, call_615306.base, + call_615306.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615304, url, valid) + result = atozHook(call_615306, url, valid) -proc call*(call_615305: Call_PostDeleteClientVpnEndpoint_615290; +proc call*(call_615307: Call_PostDeleteClientVpnEndpoint_615292; ClientVpnEndpointId: string; DryRun: bool = false; Action: string = "DeleteClientVpnEndpoint"; Version: string = "2016-11-15"): Recallable = ## postDeleteClientVpnEndpoint @@ -34871,23 +34898,23 @@ proc call*(call_615305: Call_PostDeleteClientVpnEndpoint_615290; ## Version: string (required) ## ClientVpnEndpointId: string (required) ## : The ID of the Client VPN to be deleted. - var query_615306 = newJObject() - var formData_615307 = newJObject() - add(formData_615307, "DryRun", newJBool(DryRun)) - add(query_615306, "Action", newJString(Action)) - add(query_615306, "Version", newJString(Version)) - add(formData_615307, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) - result = call_615305.call(nil, query_615306, nil, formData_615307, nil) - -var postDeleteClientVpnEndpoint* = Call_PostDeleteClientVpnEndpoint_615290( + var query_615308 = newJObject() + var formData_615309 = newJObject() + add(formData_615309, "DryRun", newJBool(DryRun)) + add(query_615308, "Action", newJString(Action)) + add(query_615308, "Version", newJString(Version)) + add(formData_615309, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) + result = call_615307.call(nil, query_615308, nil, formData_615309, nil) + +var postDeleteClientVpnEndpoint* = Call_PostDeleteClientVpnEndpoint_615292( name: "postDeleteClientVpnEndpoint", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteClientVpnEndpoint", - validator: validate_PostDeleteClientVpnEndpoint_615291, base: "/", - url: url_PostDeleteClientVpnEndpoint_615292, + validator: validate_PostDeleteClientVpnEndpoint_615293, base: "/", + url: url_PostDeleteClientVpnEndpoint_615294, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteClientVpnEndpoint_615273 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteClientVpnEndpoint_615275(protocol: Scheme; host: string; + Call_GetDeleteClientVpnEndpoint_615275 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteClientVpnEndpoint_615277(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -34897,7 +34924,7 @@ proc url_GetDeleteClientVpnEndpoint_615275(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDeleteClientVpnEndpoint_615274(path: JsonNode; query: JsonNode; +proc validate_GetDeleteClientVpnEndpoint_615276(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified Client VPN endpoint. You must disassociate all target networks before you can delete a Client VPN endpoint. ## @@ -34913,26 +34940,26 @@ proc validate_GetDeleteClientVpnEndpoint_615274(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615276 = query.getOrDefault("DryRun") - valid_615276 = validateParameter(valid_615276, JBool, required = false, default = nil) - if valid_615276 != nil: - section.add "DryRun", valid_615276 + var valid_615278 = query.getOrDefault("DryRun") + valid_615278 = validateParameter(valid_615278, JBool, required = false, default = nil) + if valid_615278 != nil: + section.add "DryRun", valid_615278 assert query != nil, "query argument is necessary due to required `ClientVpnEndpointId` field" - var valid_615277 = query.getOrDefault("ClientVpnEndpointId") - valid_615277 = validateParameter(valid_615277, JString, required = true, + var valid_615279 = query.getOrDefault("ClientVpnEndpointId") + valid_615279 = validateParameter(valid_615279, JString, required = true, default = nil) - if valid_615277 != nil: - section.add "ClientVpnEndpointId", valid_615277 - var valid_615278 = query.getOrDefault("Action") - valid_615278 = validateParameter(valid_615278, JString, required = true, default = newJString( + if valid_615279 != nil: + section.add "ClientVpnEndpointId", valid_615279 + var valid_615280 = query.getOrDefault("Action") + valid_615280 = validateParameter(valid_615280, JString, required = true, default = newJString( "DeleteClientVpnEndpoint")) - if valid_615278 != nil: - section.add "Action", valid_615278 - var valid_615279 = query.getOrDefault("Version") - valid_615279 = validateParameter(valid_615279, JString, required = true, + if valid_615280 != nil: + section.add "Action", valid_615280 + var valid_615281 = query.getOrDefault("Version") + valid_615281 = validateParameter(valid_615281, JString, required = true, default = newJString("2016-11-15")) - if valid_615279 != nil: - section.add "Version", valid_615279 + if valid_615281 != nil: + section.add "Version", valid_615281 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -34943,61 +34970,61 @@ proc validate_GetDeleteClientVpnEndpoint_615274(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615280 = header.getOrDefault("X-Amz-Signature") - valid_615280 = validateParameter(valid_615280, JString, required = false, - default = nil) - if valid_615280 != nil: - section.add "X-Amz-Signature", valid_615280 - var valid_615281 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615281 = validateParameter(valid_615281, JString, required = false, - default = nil) - if valid_615281 != nil: - section.add "X-Amz-Content-Sha256", valid_615281 - var valid_615282 = header.getOrDefault("X-Amz-Date") + var valid_615282 = header.getOrDefault("X-Amz-Signature") valid_615282 = validateParameter(valid_615282, JString, required = false, default = nil) if valid_615282 != nil: - section.add "X-Amz-Date", valid_615282 - var valid_615283 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615282 + var valid_615283 = header.getOrDefault("X-Amz-Content-Sha256") valid_615283 = validateParameter(valid_615283, JString, required = false, default = nil) if valid_615283 != nil: - section.add "X-Amz-Credential", valid_615283 - var valid_615284 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615283 + var valid_615284 = header.getOrDefault("X-Amz-Date") valid_615284 = validateParameter(valid_615284, JString, required = false, default = nil) if valid_615284 != nil: - section.add "X-Amz-Security-Token", valid_615284 - var valid_615285 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615284 + var valid_615285 = header.getOrDefault("X-Amz-Credential") valid_615285 = validateParameter(valid_615285, JString, required = false, default = nil) if valid_615285 != nil: - section.add "X-Amz-Algorithm", valid_615285 - var valid_615286 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615285 + var valid_615286 = header.getOrDefault("X-Amz-Security-Token") valid_615286 = validateParameter(valid_615286, JString, required = false, default = nil) if valid_615286 != nil: - section.add "X-Amz-SignedHeaders", valid_615286 + section.add "X-Amz-Security-Token", valid_615286 + var valid_615287 = header.getOrDefault("X-Amz-Algorithm") + valid_615287 = validateParameter(valid_615287, JString, required = false, + default = nil) + if valid_615287 != nil: + section.add "X-Amz-Algorithm", valid_615287 + var valid_615288 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615288 = validateParameter(valid_615288, JString, required = false, + default = nil) + if valid_615288 != nil: + section.add "X-Amz-SignedHeaders", valid_615288 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615287: Call_GetDeleteClientVpnEndpoint_615273; path: JsonNode; +proc call*(call_615289: Call_GetDeleteClientVpnEndpoint_615275; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified Client VPN endpoint. You must disassociate all target networks before you can delete a Client VPN endpoint. ## - let valid = call_615287.validator(path, query, header, formData, body) - let scheme = call_615287.pickScheme + let valid = call_615289.validator(path, query, header, formData, body) + let scheme = call_615289.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615287.url(scheme.get, call_615287.host, call_615287.base, - call_615287.route, valid.getOrDefault("path"), + let url = call_615289.url(scheme.get, call_615289.host, call_615289.base, + call_615289.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615287, url, valid) + result = atozHook(call_615289, url, valid) -proc call*(call_615288: Call_GetDeleteClientVpnEndpoint_615273; +proc call*(call_615290: Call_GetDeleteClientVpnEndpoint_615275; ClientVpnEndpointId: string; DryRun: bool = false; Action: string = "DeleteClientVpnEndpoint"; Version: string = "2016-11-15"): Recallable = ## getDeleteClientVpnEndpoint @@ -35008,22 +35035,22 @@ proc call*(call_615288: Call_GetDeleteClientVpnEndpoint_615273; ## : The ID of the Client VPN to be deleted. ## Action: string (required) ## Version: string (required) - var query_615289 = newJObject() - add(query_615289, "DryRun", newJBool(DryRun)) - add(query_615289, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) - add(query_615289, "Action", newJString(Action)) - add(query_615289, "Version", newJString(Version)) - result = call_615288.call(nil, query_615289, nil, nil, nil) + var query_615291 = newJObject() + add(query_615291, "DryRun", newJBool(DryRun)) + add(query_615291, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) + add(query_615291, "Action", newJString(Action)) + add(query_615291, "Version", newJString(Version)) + result = call_615290.call(nil, query_615291, nil, nil, nil) -var getDeleteClientVpnEndpoint* = Call_GetDeleteClientVpnEndpoint_615273( +var getDeleteClientVpnEndpoint* = Call_GetDeleteClientVpnEndpoint_615275( name: "getDeleteClientVpnEndpoint", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteClientVpnEndpoint", - validator: validate_GetDeleteClientVpnEndpoint_615274, base: "/", - url: url_GetDeleteClientVpnEndpoint_615275, + validator: validate_GetDeleteClientVpnEndpoint_615276, base: "/", + url: url_GetDeleteClientVpnEndpoint_615277, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteClientVpnRoute_615327 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteClientVpnRoute_615329(protocol: Scheme; host: string; + Call_PostDeleteClientVpnRoute_615329 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteClientVpnRoute_615331(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -35034,7 +35061,7 @@ proc url_PostDeleteClientVpnRoute_615329(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDeleteClientVpnRoute_615328(path: JsonNode; query: JsonNode; +proc validate_PostDeleteClientVpnRoute_615330(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes a route from a Client VPN endpoint. You can only delete routes that you manually added using the CreateClientVpnRoute action. You cannot delete routes that were automatically added when associating a subnet. To remove routes that have been automatically added, disassociate the target subnet from the Client VPN endpoint. ## @@ -35046,16 +35073,16 @@ proc validate_PostDeleteClientVpnRoute_615328(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615330 = query.getOrDefault("Action") - valid_615330 = validateParameter(valid_615330, JString, required = true, + var valid_615332 = query.getOrDefault("Action") + valid_615332 = validateParameter(valid_615332, JString, required = true, default = newJString("DeleteClientVpnRoute")) - if valid_615330 != nil: - section.add "Action", valid_615330 - var valid_615331 = query.getOrDefault("Version") - valid_615331 = validateParameter(valid_615331, JString, required = true, + if valid_615332 != nil: + section.add "Action", valid_615332 + var valid_615333 = query.getOrDefault("Version") + valid_615333 = validateParameter(valid_615333, JString, required = true, default = newJString("2016-11-15")) - if valid_615331 != nil: - section.add "Version", valid_615331 + if valid_615333 != nil: + section.add "Version", valid_615333 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -35066,41 +35093,41 @@ proc validate_PostDeleteClientVpnRoute_615328(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615332 = header.getOrDefault("X-Amz-Signature") - valid_615332 = validateParameter(valid_615332, JString, required = false, - default = nil) - if valid_615332 != nil: - section.add "X-Amz-Signature", valid_615332 - var valid_615333 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615333 = validateParameter(valid_615333, JString, required = false, - default = nil) - if valid_615333 != nil: - section.add "X-Amz-Content-Sha256", valid_615333 - var valid_615334 = header.getOrDefault("X-Amz-Date") + var valid_615334 = header.getOrDefault("X-Amz-Signature") valid_615334 = validateParameter(valid_615334, JString, required = false, default = nil) if valid_615334 != nil: - section.add "X-Amz-Date", valid_615334 - var valid_615335 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615334 + var valid_615335 = header.getOrDefault("X-Amz-Content-Sha256") valid_615335 = validateParameter(valid_615335, JString, required = false, default = nil) if valid_615335 != nil: - section.add "X-Amz-Credential", valid_615335 - var valid_615336 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615335 + var valid_615336 = header.getOrDefault("X-Amz-Date") valid_615336 = validateParameter(valid_615336, JString, required = false, default = nil) if valid_615336 != nil: - section.add "X-Amz-Security-Token", valid_615336 - var valid_615337 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615336 + var valid_615337 = header.getOrDefault("X-Amz-Credential") valid_615337 = validateParameter(valid_615337, JString, required = false, default = nil) if valid_615337 != nil: - section.add "X-Amz-Algorithm", valid_615337 - var valid_615338 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615337 + var valid_615338 = header.getOrDefault("X-Amz-Security-Token") valid_615338 = validateParameter(valid_615338, JString, required = false, default = nil) if valid_615338 != nil: - section.add "X-Amz-SignedHeaders", valid_615338 + section.add "X-Amz-Security-Token", valid_615338 + var valid_615339 = header.getOrDefault("X-Amz-Algorithm") + valid_615339 = validateParameter(valid_615339, JString, required = false, + default = nil) + if valid_615339 != nil: + section.add "X-Amz-Algorithm", valid_615339 + var valid_615340 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615340 = validateParameter(valid_615340, JString, required = false, + default = nil) + if valid_615340 != nil: + section.add "X-Amz-SignedHeaders", valid_615340 result.add "header", section ## parameters in `formData` object: ## DestinationCidrBlock: JString (required) @@ -35113,43 +35140,43 @@ proc validate_PostDeleteClientVpnRoute_615328(path: JsonNode; query: JsonNode; ## : The ID of the Client VPN endpoint from which the route is to be deleted. section = newJObject() assert formData != nil, "formData argument is necessary due to required `DestinationCidrBlock` field" - var valid_615339 = formData.getOrDefault("DestinationCidrBlock") - valid_615339 = validateParameter(valid_615339, JString, required = true, - default = nil) - if valid_615339 != nil: - section.add "DestinationCidrBlock", valid_615339 - var valid_615340 = formData.getOrDefault("DryRun") - valid_615340 = validateParameter(valid_615340, JBool, required = false, default = nil) - if valid_615340 != nil: - section.add "DryRun", valid_615340 - var valid_615341 = formData.getOrDefault("TargetVpcSubnetId") - valid_615341 = validateParameter(valid_615341, JString, required = false, + var valid_615341 = formData.getOrDefault("DestinationCidrBlock") + valid_615341 = validateParameter(valid_615341, JString, required = true, default = nil) if valid_615341 != nil: - section.add "TargetVpcSubnetId", valid_615341 - var valid_615342 = formData.getOrDefault("ClientVpnEndpointId") - valid_615342 = validateParameter(valid_615342, JString, required = true, - default = nil) + section.add "DestinationCidrBlock", valid_615341 + var valid_615342 = formData.getOrDefault("DryRun") + valid_615342 = validateParameter(valid_615342, JBool, required = false, default = nil) if valid_615342 != nil: - section.add "ClientVpnEndpointId", valid_615342 + section.add "DryRun", valid_615342 + var valid_615343 = formData.getOrDefault("TargetVpcSubnetId") + valid_615343 = validateParameter(valid_615343, JString, required = false, + default = nil) + if valid_615343 != nil: + section.add "TargetVpcSubnetId", valid_615343 + var valid_615344 = formData.getOrDefault("ClientVpnEndpointId") + valid_615344 = validateParameter(valid_615344, JString, required = true, + default = nil) + if valid_615344 != nil: + section.add "ClientVpnEndpointId", valid_615344 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615343: Call_PostDeleteClientVpnRoute_615327; path: JsonNode; +proc call*(call_615345: Call_PostDeleteClientVpnRoute_615329; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes a route from a Client VPN endpoint. You can only delete routes that you manually added using the CreateClientVpnRoute action. You cannot delete routes that were automatically added when associating a subnet. To remove routes that have been automatically added, disassociate the target subnet from the Client VPN endpoint. ## - let valid = call_615343.validator(path, query, header, formData, body) - let scheme = call_615343.pickScheme + let valid = call_615345.validator(path, query, header, formData, body) + let scheme = call_615345.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615343.url(scheme.get, call_615343.host, call_615343.base, - call_615343.route, valid.getOrDefault("path"), + let url = call_615345.url(scheme.get, call_615345.host, call_615345.base, + call_615345.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615343, url, valid) + result = atozHook(call_615345, url, valid) -proc call*(call_615344: Call_PostDeleteClientVpnRoute_615327; +proc call*(call_615346: Call_PostDeleteClientVpnRoute_615329; DestinationCidrBlock: string; ClientVpnEndpointId: string; DryRun: bool = false; Action: string = "DeleteClientVpnRoute"; TargetVpcSubnetId: string = ""; Version: string = "2016-11-15"): Recallable = @@ -35165,24 +35192,24 @@ proc call*(call_615344: Call_PostDeleteClientVpnRoute_615327; ## Version: string (required) ## ClientVpnEndpointId: string (required) ## : The ID of the Client VPN endpoint from which the route is to be deleted. - var query_615345 = newJObject() - var formData_615346 = newJObject() - add(formData_615346, "DestinationCidrBlock", newJString(DestinationCidrBlock)) - add(formData_615346, "DryRun", newJBool(DryRun)) - add(query_615345, "Action", newJString(Action)) - add(formData_615346, "TargetVpcSubnetId", newJString(TargetVpcSubnetId)) - add(query_615345, "Version", newJString(Version)) - add(formData_615346, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) - result = call_615344.call(nil, query_615345, nil, formData_615346, nil) - -var postDeleteClientVpnRoute* = Call_PostDeleteClientVpnRoute_615327( + var query_615347 = newJObject() + var formData_615348 = newJObject() + add(formData_615348, "DestinationCidrBlock", newJString(DestinationCidrBlock)) + add(formData_615348, "DryRun", newJBool(DryRun)) + add(query_615347, "Action", newJString(Action)) + add(formData_615348, "TargetVpcSubnetId", newJString(TargetVpcSubnetId)) + add(query_615347, "Version", newJString(Version)) + add(formData_615348, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) + result = call_615346.call(nil, query_615347, nil, formData_615348, nil) + +var postDeleteClientVpnRoute* = Call_PostDeleteClientVpnRoute_615329( name: "postDeleteClientVpnRoute", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteClientVpnRoute", - validator: validate_PostDeleteClientVpnRoute_615328, base: "/", - url: url_PostDeleteClientVpnRoute_615329, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDeleteClientVpnRoute_615330, base: "/", + url: url_PostDeleteClientVpnRoute_615331, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteClientVpnRoute_615308 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteClientVpnRoute_615310(protocol: Scheme; host: string; base: string; + Call_GetDeleteClientVpnRoute_615310 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteClientVpnRoute_615312(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -35193,7 +35220,7 @@ proc url_GetDeleteClientVpnRoute_615310(protocol: Scheme; host: string; base: st else: result.path = base & route -proc validate_GetDeleteClientVpnRoute_615309(path: JsonNode; query: JsonNode; +proc validate_GetDeleteClientVpnRoute_615311(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes a route from a Client VPN endpoint. You can only delete routes that you manually added using the CreateClientVpnRoute action. You cannot delete routes that were automatically added when associating a subnet. To remove routes that have been automatically added, disassociate the target subnet from the Client VPN endpoint. ## @@ -35213,36 +35240,36 @@ proc validate_GetDeleteClientVpnRoute_615309(path: JsonNode; query: JsonNode; ## DestinationCidrBlock: JString (required) ## : The IPv4 address range, in CIDR notation, of the route to be deleted. section = newJObject() - var valid_615311 = query.getOrDefault("DryRun") - valid_615311 = validateParameter(valid_615311, JBool, required = false, default = nil) - if valid_615311 != nil: - section.add "DryRun", valid_615311 - var valid_615312 = query.getOrDefault("TargetVpcSubnetId") - valid_615312 = validateParameter(valid_615312, JString, required = false, - default = nil) - if valid_615312 != nil: - section.add "TargetVpcSubnetId", valid_615312 - assert query != nil, "query argument is necessary due to required `ClientVpnEndpointId` field" - var valid_615313 = query.getOrDefault("ClientVpnEndpointId") - valid_615313 = validateParameter(valid_615313, JString, required = true, - default = nil) + var valid_615313 = query.getOrDefault("DryRun") + valid_615313 = validateParameter(valid_615313, JBool, required = false, default = nil) if valid_615313 != nil: - section.add "ClientVpnEndpointId", valid_615313 - var valid_615314 = query.getOrDefault("Action") - valid_615314 = validateParameter(valid_615314, JString, required = true, - default = newJString("DeleteClientVpnRoute")) + section.add "DryRun", valid_615313 + var valid_615314 = query.getOrDefault("TargetVpcSubnetId") + valid_615314 = validateParameter(valid_615314, JString, required = false, + default = nil) if valid_615314 != nil: - section.add "Action", valid_615314 - var valid_615315 = query.getOrDefault("Version") + section.add "TargetVpcSubnetId", valid_615314 + assert query != nil, "query argument is necessary due to required `ClientVpnEndpointId` field" + var valid_615315 = query.getOrDefault("ClientVpnEndpointId") valid_615315 = validateParameter(valid_615315, JString, required = true, - default = newJString("2016-11-15")) + default = nil) if valid_615315 != nil: - section.add "Version", valid_615315 - var valid_615316 = query.getOrDefault("DestinationCidrBlock") + section.add "ClientVpnEndpointId", valid_615315 + var valid_615316 = query.getOrDefault("Action") valid_615316 = validateParameter(valid_615316, JString, required = true, - default = nil) + default = newJString("DeleteClientVpnRoute")) if valid_615316 != nil: - section.add "DestinationCidrBlock", valid_615316 + section.add "Action", valid_615316 + var valid_615317 = query.getOrDefault("Version") + valid_615317 = validateParameter(valid_615317, JString, required = true, + default = newJString("2016-11-15")) + if valid_615317 != nil: + section.add "Version", valid_615317 + var valid_615318 = query.getOrDefault("DestinationCidrBlock") + valid_615318 = validateParameter(valid_615318, JString, required = true, + default = nil) + if valid_615318 != nil: + section.add "DestinationCidrBlock", valid_615318 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -35253,61 +35280,61 @@ proc validate_GetDeleteClientVpnRoute_615309(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615317 = header.getOrDefault("X-Amz-Signature") - valid_615317 = validateParameter(valid_615317, JString, required = false, - default = nil) - if valid_615317 != nil: - section.add "X-Amz-Signature", valid_615317 - var valid_615318 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615318 = validateParameter(valid_615318, JString, required = false, - default = nil) - if valid_615318 != nil: - section.add "X-Amz-Content-Sha256", valid_615318 - var valid_615319 = header.getOrDefault("X-Amz-Date") + var valid_615319 = header.getOrDefault("X-Amz-Signature") valid_615319 = validateParameter(valid_615319, JString, required = false, default = nil) if valid_615319 != nil: - section.add "X-Amz-Date", valid_615319 - var valid_615320 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615319 + var valid_615320 = header.getOrDefault("X-Amz-Content-Sha256") valid_615320 = validateParameter(valid_615320, JString, required = false, default = nil) if valid_615320 != nil: - section.add "X-Amz-Credential", valid_615320 - var valid_615321 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615320 + var valid_615321 = header.getOrDefault("X-Amz-Date") valid_615321 = validateParameter(valid_615321, JString, required = false, default = nil) if valid_615321 != nil: - section.add "X-Amz-Security-Token", valid_615321 - var valid_615322 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615321 + var valid_615322 = header.getOrDefault("X-Amz-Credential") valid_615322 = validateParameter(valid_615322, JString, required = false, default = nil) if valid_615322 != nil: - section.add "X-Amz-Algorithm", valid_615322 - var valid_615323 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615322 + var valid_615323 = header.getOrDefault("X-Amz-Security-Token") valid_615323 = validateParameter(valid_615323, JString, required = false, default = nil) if valid_615323 != nil: - section.add "X-Amz-SignedHeaders", valid_615323 + section.add "X-Amz-Security-Token", valid_615323 + var valid_615324 = header.getOrDefault("X-Amz-Algorithm") + valid_615324 = validateParameter(valid_615324, JString, required = false, + default = nil) + if valid_615324 != nil: + section.add "X-Amz-Algorithm", valid_615324 + var valid_615325 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615325 = validateParameter(valid_615325, JString, required = false, + default = nil) + if valid_615325 != nil: + section.add "X-Amz-SignedHeaders", valid_615325 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615324: Call_GetDeleteClientVpnRoute_615308; path: JsonNode; +proc call*(call_615326: Call_GetDeleteClientVpnRoute_615310; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes a route from a Client VPN endpoint. You can only delete routes that you manually added using the CreateClientVpnRoute action. You cannot delete routes that were automatically added when associating a subnet. To remove routes that have been automatically added, disassociate the target subnet from the Client VPN endpoint. ## - let valid = call_615324.validator(path, query, header, formData, body) - let scheme = call_615324.pickScheme + let valid = call_615326.validator(path, query, header, formData, body) + let scheme = call_615326.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615324.url(scheme.get, call_615324.host, call_615324.base, - call_615324.route, valid.getOrDefault("path"), + let url = call_615326.url(scheme.get, call_615326.host, call_615326.base, + call_615326.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615324, url, valid) + result = atozHook(call_615326, url, valid) -proc call*(call_615325: Call_GetDeleteClientVpnRoute_615308; +proc call*(call_615327: Call_GetDeleteClientVpnRoute_615310; ClientVpnEndpointId: string; DestinationCidrBlock: string; DryRun: bool = false; TargetVpcSubnetId: string = ""; Action: string = "DeleteClientVpnRoute"; Version: string = "2016-11-15"): Recallable = @@ -35323,23 +35350,23 @@ proc call*(call_615325: Call_GetDeleteClientVpnRoute_615308; ## Version: string (required) ## DestinationCidrBlock: string (required) ## : The IPv4 address range, in CIDR notation, of the route to be deleted. - var query_615326 = newJObject() - add(query_615326, "DryRun", newJBool(DryRun)) - add(query_615326, "TargetVpcSubnetId", newJString(TargetVpcSubnetId)) - add(query_615326, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) - add(query_615326, "Action", newJString(Action)) - add(query_615326, "Version", newJString(Version)) - add(query_615326, "DestinationCidrBlock", newJString(DestinationCidrBlock)) - result = call_615325.call(nil, query_615326, nil, nil, nil) - -var getDeleteClientVpnRoute* = Call_GetDeleteClientVpnRoute_615308( + var query_615328 = newJObject() + add(query_615328, "DryRun", newJBool(DryRun)) + add(query_615328, "TargetVpcSubnetId", newJString(TargetVpcSubnetId)) + add(query_615328, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) + add(query_615328, "Action", newJString(Action)) + add(query_615328, "Version", newJString(Version)) + add(query_615328, "DestinationCidrBlock", newJString(DestinationCidrBlock)) + result = call_615327.call(nil, query_615328, nil, nil, nil) + +var getDeleteClientVpnRoute* = Call_GetDeleteClientVpnRoute_615310( name: "getDeleteClientVpnRoute", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteClientVpnRoute", - validator: validate_GetDeleteClientVpnRoute_615309, base: "/", - url: url_GetDeleteClientVpnRoute_615310, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDeleteClientVpnRoute_615311, base: "/", + url: url_GetDeleteClientVpnRoute_615312, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteCustomerGateway_615364 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteCustomerGateway_615366(protocol: Scheme; host: string; + Call_PostDeleteCustomerGateway_615366 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteCustomerGateway_615368(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -35349,7 +35376,7 @@ proc url_PostDeleteCustomerGateway_615366(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDeleteCustomerGateway_615365(path: JsonNode; query: JsonNode; +proc validate_PostDeleteCustomerGateway_615367(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified customer gateway. You must delete the VPN connection before you can delete the customer gateway. ## @@ -35361,16 +35388,16 @@ proc validate_PostDeleteCustomerGateway_615365(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615367 = query.getOrDefault("Action") - valid_615367 = validateParameter(valid_615367, JString, required = true, + var valid_615369 = query.getOrDefault("Action") + valid_615369 = validateParameter(valid_615369, JString, required = true, default = newJString("DeleteCustomerGateway")) - if valid_615367 != nil: - section.add "Action", valid_615367 - var valid_615368 = query.getOrDefault("Version") - valid_615368 = validateParameter(valid_615368, JString, required = true, + if valid_615369 != nil: + section.add "Action", valid_615369 + var valid_615370 = query.getOrDefault("Version") + valid_615370 = validateParameter(valid_615370, JString, required = true, default = newJString("2016-11-15")) - if valid_615368 != nil: - section.add "Version", valid_615368 + if valid_615370 != nil: + section.add "Version", valid_615370 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -35381,41 +35408,41 @@ proc validate_PostDeleteCustomerGateway_615365(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615369 = header.getOrDefault("X-Amz-Signature") - valid_615369 = validateParameter(valid_615369, JString, required = false, - default = nil) - if valid_615369 != nil: - section.add "X-Amz-Signature", valid_615369 - var valid_615370 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615370 = validateParameter(valid_615370, JString, required = false, - default = nil) - if valid_615370 != nil: - section.add "X-Amz-Content-Sha256", valid_615370 - var valid_615371 = header.getOrDefault("X-Amz-Date") + var valid_615371 = header.getOrDefault("X-Amz-Signature") valid_615371 = validateParameter(valid_615371, JString, required = false, default = nil) if valid_615371 != nil: - section.add "X-Amz-Date", valid_615371 - var valid_615372 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615371 + var valid_615372 = header.getOrDefault("X-Amz-Content-Sha256") valid_615372 = validateParameter(valid_615372, JString, required = false, default = nil) if valid_615372 != nil: - section.add "X-Amz-Credential", valid_615372 - var valid_615373 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615372 + var valid_615373 = header.getOrDefault("X-Amz-Date") valid_615373 = validateParameter(valid_615373, JString, required = false, default = nil) if valid_615373 != nil: - section.add "X-Amz-Security-Token", valid_615373 - var valid_615374 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615373 + var valid_615374 = header.getOrDefault("X-Amz-Credential") valid_615374 = validateParameter(valid_615374, JString, required = false, default = nil) if valid_615374 != nil: - section.add "X-Amz-Algorithm", valid_615374 - var valid_615375 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615374 + var valid_615375 = header.getOrDefault("X-Amz-Security-Token") valid_615375 = validateParameter(valid_615375, JString, required = false, default = nil) if valid_615375 != nil: - section.add "X-Amz-SignedHeaders", valid_615375 + section.add "X-Amz-Security-Token", valid_615375 + var valid_615376 = header.getOrDefault("X-Amz-Algorithm") + valid_615376 = validateParameter(valid_615376, JString, required = false, + default = nil) + if valid_615376 != nil: + section.add "X-Amz-Algorithm", valid_615376 + var valid_615377 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615377 = validateParameter(valid_615377, JString, required = false, + default = nil) + if valid_615377 != nil: + section.add "X-Amz-SignedHeaders", valid_615377 result.add "header", section ## parameters in `formData` object: ## CustomerGatewayId: JString (required) @@ -35424,33 +35451,33 @@ proc validate_PostDeleteCustomerGateway_615365(path: JsonNode; query: JsonNode; ## : 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. section = newJObject() assert formData != nil, "formData argument is necessary due to required `CustomerGatewayId` field" - var valid_615376 = formData.getOrDefault("CustomerGatewayId") - valid_615376 = validateParameter(valid_615376, JString, required = true, + var valid_615378 = formData.getOrDefault("CustomerGatewayId") + valid_615378 = validateParameter(valid_615378, JString, required = true, default = nil) - if valid_615376 != nil: - section.add "CustomerGatewayId", valid_615376 - var valid_615377 = formData.getOrDefault("DryRun") - valid_615377 = validateParameter(valid_615377, JBool, required = false, default = nil) - if valid_615377 != nil: - section.add "DryRun", valid_615377 + if valid_615378 != nil: + section.add "CustomerGatewayId", valid_615378 + var valid_615379 = formData.getOrDefault("DryRun") + valid_615379 = validateParameter(valid_615379, JBool, required = false, default = nil) + if valid_615379 != nil: + section.add "DryRun", valid_615379 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615378: Call_PostDeleteCustomerGateway_615364; path: JsonNode; +proc call*(call_615380: Call_PostDeleteCustomerGateway_615366; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified customer gateway. You must delete the VPN connection before you can delete the customer gateway. ## - let valid = call_615378.validator(path, query, header, formData, body) - let scheme = call_615378.pickScheme + let valid = call_615380.validator(path, query, header, formData, body) + let scheme = call_615380.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615378.url(scheme.get, call_615378.host, call_615378.base, - call_615378.route, valid.getOrDefault("path"), + let url = call_615380.url(scheme.get, call_615380.host, call_615380.base, + call_615380.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615378, url, valid) + result = atozHook(call_615380, url, valid) -proc call*(call_615379: Call_PostDeleteCustomerGateway_615364; +proc call*(call_615381: Call_PostDeleteCustomerGateway_615366; CustomerGatewayId: string; DryRun: bool = false; Action: string = "DeleteCustomerGateway"; Version: string = "2016-11-15"): Recallable = ## postDeleteCustomerGateway @@ -35461,23 +35488,23 @@ proc call*(call_615379: Call_PostDeleteCustomerGateway_615364; ## : 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. ## Action: string (required) ## Version: string (required) - var query_615380 = newJObject() - var formData_615381 = newJObject() - add(formData_615381, "CustomerGatewayId", newJString(CustomerGatewayId)) - add(formData_615381, "DryRun", newJBool(DryRun)) - add(query_615380, "Action", newJString(Action)) - add(query_615380, "Version", newJString(Version)) - result = call_615379.call(nil, query_615380, nil, formData_615381, nil) + var query_615382 = newJObject() + var formData_615383 = newJObject() + add(formData_615383, "CustomerGatewayId", newJString(CustomerGatewayId)) + add(formData_615383, "DryRun", newJBool(DryRun)) + add(query_615382, "Action", newJString(Action)) + add(query_615382, "Version", newJString(Version)) + result = call_615381.call(nil, query_615382, nil, formData_615383, nil) -var postDeleteCustomerGateway* = Call_PostDeleteCustomerGateway_615364( +var postDeleteCustomerGateway* = Call_PostDeleteCustomerGateway_615366( name: "postDeleteCustomerGateway", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteCustomerGateway", - validator: validate_PostDeleteCustomerGateway_615365, base: "/", - url: url_PostDeleteCustomerGateway_615366, + validator: validate_PostDeleteCustomerGateway_615367, base: "/", + url: url_PostDeleteCustomerGateway_615368, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteCustomerGateway_615347 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteCustomerGateway_615349(protocol: Scheme; host: string; + Call_GetDeleteCustomerGateway_615349 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteCustomerGateway_615351(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -35488,7 +35515,7 @@ proc url_GetDeleteCustomerGateway_615349(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDeleteCustomerGateway_615348(path: JsonNode; query: JsonNode; +proc validate_GetDeleteCustomerGateway_615350(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified customer gateway. You must delete the VPN connection before you can delete the customer gateway. ## @@ -35504,27 +35531,27 @@ proc validate_GetDeleteCustomerGateway_615348(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615350 = query.getOrDefault("DryRun") - valid_615350 = validateParameter(valid_615350, JBool, required = false, default = nil) - if valid_615350 != nil: - section.add "DryRun", valid_615350 + var valid_615352 = query.getOrDefault("DryRun") + valid_615352 = validateParameter(valid_615352, JBool, required = false, default = nil) + if valid_615352 != nil: + section.add "DryRun", valid_615352 assert query != nil, "query argument is necessary due to required `CustomerGatewayId` field" - var valid_615351 = query.getOrDefault("CustomerGatewayId") - valid_615351 = validateParameter(valid_615351, JString, required = true, + var valid_615353 = query.getOrDefault("CustomerGatewayId") + valid_615353 = validateParameter(valid_615353, JString, required = true, default = nil) - if valid_615351 != nil: - section.add "CustomerGatewayId", valid_615351 - var valid_615352 = query.getOrDefault("Action") - valid_615352 = validateParameter(valid_615352, JString, required = true, + if valid_615353 != nil: + section.add "CustomerGatewayId", valid_615353 + var valid_615354 = query.getOrDefault("Action") + valid_615354 = validateParameter(valid_615354, JString, required = true, default = newJString("DeleteCustomerGateway")) - if valid_615352 != nil: - section.add "Action", valid_615352 - var valid_615353 = query.getOrDefault("Version") - valid_615353 = validateParameter(valid_615353, JString, required = true, + if valid_615354 != nil: + section.add "Action", valid_615354 + var valid_615355 = query.getOrDefault("Version") + valid_615355 = validateParameter(valid_615355, JString, required = true, default = newJString("2016-11-15")) - if valid_615353 != nil: - section.add "Version", valid_615353 + if valid_615355 != nil: + section.add "Version", valid_615355 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -35535,61 +35562,61 @@ proc validate_GetDeleteCustomerGateway_615348(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615354 = header.getOrDefault("X-Amz-Signature") - valid_615354 = validateParameter(valid_615354, JString, required = false, - default = nil) - if valid_615354 != nil: - section.add "X-Amz-Signature", valid_615354 - var valid_615355 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615355 = validateParameter(valid_615355, JString, required = false, - default = nil) - if valid_615355 != nil: - section.add "X-Amz-Content-Sha256", valid_615355 - var valid_615356 = header.getOrDefault("X-Amz-Date") + var valid_615356 = header.getOrDefault("X-Amz-Signature") valid_615356 = validateParameter(valid_615356, JString, required = false, default = nil) if valid_615356 != nil: - section.add "X-Amz-Date", valid_615356 - var valid_615357 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615356 + var valid_615357 = header.getOrDefault("X-Amz-Content-Sha256") valid_615357 = validateParameter(valid_615357, JString, required = false, default = nil) if valid_615357 != nil: - section.add "X-Amz-Credential", valid_615357 - var valid_615358 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615357 + var valid_615358 = header.getOrDefault("X-Amz-Date") valid_615358 = validateParameter(valid_615358, JString, required = false, default = nil) if valid_615358 != nil: - section.add "X-Amz-Security-Token", valid_615358 - var valid_615359 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615358 + var valid_615359 = header.getOrDefault("X-Amz-Credential") valid_615359 = validateParameter(valid_615359, JString, required = false, default = nil) if valid_615359 != nil: - section.add "X-Amz-Algorithm", valid_615359 - var valid_615360 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615359 + var valid_615360 = header.getOrDefault("X-Amz-Security-Token") valid_615360 = validateParameter(valid_615360, JString, required = false, default = nil) if valid_615360 != nil: - section.add "X-Amz-SignedHeaders", valid_615360 + section.add "X-Amz-Security-Token", valid_615360 + var valid_615361 = header.getOrDefault("X-Amz-Algorithm") + valid_615361 = validateParameter(valid_615361, JString, required = false, + default = nil) + if valid_615361 != nil: + section.add "X-Amz-Algorithm", valid_615361 + var valid_615362 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615362 = validateParameter(valid_615362, JString, required = false, + default = nil) + if valid_615362 != nil: + section.add "X-Amz-SignedHeaders", valid_615362 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615361: Call_GetDeleteCustomerGateway_615347; path: JsonNode; +proc call*(call_615363: Call_GetDeleteCustomerGateway_615349; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified customer gateway. You must delete the VPN connection before you can delete the customer gateway. ## - let valid = call_615361.validator(path, query, header, formData, body) - let scheme = call_615361.pickScheme + let valid = call_615363.validator(path, query, header, formData, body) + let scheme = call_615363.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615361.url(scheme.get, call_615361.host, call_615361.base, - call_615361.route, valid.getOrDefault("path"), + let url = call_615363.url(scheme.get, call_615363.host, call_615363.base, + call_615363.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615361, url, valid) + result = atozHook(call_615363, url, valid) -proc call*(call_615362: Call_GetDeleteCustomerGateway_615347; +proc call*(call_615364: Call_GetDeleteCustomerGateway_615349; CustomerGatewayId: string; DryRun: bool = false; Action: string = "DeleteCustomerGateway"; Version: string = "2016-11-15"): Recallable = ## getDeleteCustomerGateway @@ -35600,21 +35627,21 @@ proc call*(call_615362: Call_GetDeleteCustomerGateway_615347; ## : The ID of the customer gateway. ## Action: string (required) ## Version: string (required) - var query_615363 = newJObject() - add(query_615363, "DryRun", newJBool(DryRun)) - add(query_615363, "CustomerGatewayId", newJString(CustomerGatewayId)) - add(query_615363, "Action", newJString(Action)) - add(query_615363, "Version", newJString(Version)) - result = call_615362.call(nil, query_615363, nil, nil, nil) + var query_615365 = newJObject() + add(query_615365, "DryRun", newJBool(DryRun)) + add(query_615365, "CustomerGatewayId", newJString(CustomerGatewayId)) + add(query_615365, "Action", newJString(Action)) + add(query_615365, "Version", newJString(Version)) + result = call_615364.call(nil, query_615365, nil, nil, nil) -var getDeleteCustomerGateway* = Call_GetDeleteCustomerGateway_615347( +var getDeleteCustomerGateway* = Call_GetDeleteCustomerGateway_615349( name: "getDeleteCustomerGateway", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteCustomerGateway", - validator: validate_GetDeleteCustomerGateway_615348, base: "/", - url: url_GetDeleteCustomerGateway_615349, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDeleteCustomerGateway_615350, base: "/", + url: url_GetDeleteCustomerGateway_615351, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteDhcpOptions_615399 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteDhcpOptions_615401(protocol: Scheme; host: string; base: string; + Call_PostDeleteDhcpOptions_615401 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteDhcpOptions_615403(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -35624,7 +35651,7 @@ proc url_PostDeleteDhcpOptions_615401(protocol: Scheme; host: string; base: stri else: result.path = base & route -proc validate_PostDeleteDhcpOptions_615400(path: JsonNode; query: JsonNode; +proc validate_PostDeleteDhcpOptions_615402(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified set of DHCP options. You must disassociate the set of DHCP options before you can delete it. You can disassociate the set of DHCP options by associating either a new set of options or the default set of options with the VPC. ## @@ -35636,16 +35663,16 @@ proc validate_PostDeleteDhcpOptions_615400(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615402 = query.getOrDefault("Action") - valid_615402 = validateParameter(valid_615402, JString, required = true, + var valid_615404 = query.getOrDefault("Action") + valid_615404 = validateParameter(valid_615404, JString, required = true, default = newJString("DeleteDhcpOptions")) - if valid_615402 != nil: - section.add "Action", valid_615402 - var valid_615403 = query.getOrDefault("Version") - valid_615403 = validateParameter(valid_615403, JString, required = true, + if valid_615404 != nil: + section.add "Action", valid_615404 + var valid_615405 = query.getOrDefault("Version") + valid_615405 = validateParameter(valid_615405, JString, required = true, default = newJString("2016-11-15")) - if valid_615403 != nil: - section.add "Version", valid_615403 + if valid_615405 != nil: + section.add "Version", valid_615405 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -35656,41 +35683,41 @@ proc validate_PostDeleteDhcpOptions_615400(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615404 = header.getOrDefault("X-Amz-Signature") - valid_615404 = validateParameter(valid_615404, JString, required = false, - default = nil) - if valid_615404 != nil: - section.add "X-Amz-Signature", valid_615404 - var valid_615405 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615405 = validateParameter(valid_615405, JString, required = false, - default = nil) - if valid_615405 != nil: - section.add "X-Amz-Content-Sha256", valid_615405 - var valid_615406 = header.getOrDefault("X-Amz-Date") + var valid_615406 = header.getOrDefault("X-Amz-Signature") valid_615406 = validateParameter(valid_615406, JString, required = false, default = nil) if valid_615406 != nil: - section.add "X-Amz-Date", valid_615406 - var valid_615407 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615406 + var valid_615407 = header.getOrDefault("X-Amz-Content-Sha256") valid_615407 = validateParameter(valid_615407, JString, required = false, default = nil) if valid_615407 != nil: - section.add "X-Amz-Credential", valid_615407 - var valid_615408 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615407 + var valid_615408 = header.getOrDefault("X-Amz-Date") valid_615408 = validateParameter(valid_615408, JString, required = false, default = nil) if valid_615408 != nil: - section.add "X-Amz-Security-Token", valid_615408 - var valid_615409 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615408 + var valid_615409 = header.getOrDefault("X-Amz-Credential") valid_615409 = validateParameter(valid_615409, JString, required = false, default = nil) if valid_615409 != nil: - section.add "X-Amz-Algorithm", valid_615409 - var valid_615410 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615409 + var valid_615410 = header.getOrDefault("X-Amz-Security-Token") valid_615410 = validateParameter(valid_615410, JString, required = false, default = nil) if valid_615410 != nil: - section.add "X-Amz-SignedHeaders", valid_615410 + section.add "X-Amz-Security-Token", valid_615410 + var valid_615411 = header.getOrDefault("X-Amz-Algorithm") + valid_615411 = validateParameter(valid_615411, JString, required = false, + default = nil) + if valid_615411 != nil: + section.add "X-Amz-Algorithm", valid_615411 + var valid_615412 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615412 = validateParameter(valid_615412, JString, required = false, + default = nil) + if valid_615412 != nil: + section.add "X-Amz-SignedHeaders", valid_615412 result.add "header", section ## parameters in `formData` object: ## DhcpOptionsId: JString (required) @@ -35700,33 +35727,33 @@ proc validate_PostDeleteDhcpOptions_615400(path: JsonNode; query: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `DhcpOptionsId` field" - var valid_615411 = formData.getOrDefault("DhcpOptionsId") - valid_615411 = validateParameter(valid_615411, JString, required = true, + var valid_615413 = formData.getOrDefault("DhcpOptionsId") + valid_615413 = validateParameter(valid_615413, JString, required = true, default = nil) - if valid_615411 != nil: - section.add "DhcpOptionsId", valid_615411 - var valid_615412 = formData.getOrDefault("DryRun") - valid_615412 = validateParameter(valid_615412, JBool, required = false, default = nil) - if valid_615412 != nil: - section.add "DryRun", valid_615412 + if valid_615413 != nil: + section.add "DhcpOptionsId", valid_615413 + var valid_615414 = formData.getOrDefault("DryRun") + valid_615414 = validateParameter(valid_615414, JBool, required = false, default = nil) + if valid_615414 != nil: + section.add "DryRun", valid_615414 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615413: Call_PostDeleteDhcpOptions_615399; path: JsonNode; +proc call*(call_615415: Call_PostDeleteDhcpOptions_615401; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified set of DHCP options. You must disassociate the set of DHCP options before you can delete it. You can disassociate the set of DHCP options by associating either a new set of options or the default set of options with the VPC. ## - let valid = call_615413.validator(path, query, header, formData, body) - let scheme = call_615413.pickScheme + let valid = call_615415.validator(path, query, header, formData, body) + let scheme = call_615415.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615413.url(scheme.get, call_615413.host, call_615413.base, - call_615413.route, valid.getOrDefault("path"), + let url = call_615415.url(scheme.get, call_615415.host, call_615415.base, + call_615415.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615413, url, valid) + result = atozHook(call_615415, url, valid) -proc call*(call_615414: Call_PostDeleteDhcpOptions_615399; DhcpOptionsId: string; +proc call*(call_615416: Call_PostDeleteDhcpOptions_615401; DhcpOptionsId: string; DryRun: bool = false; Action: string = "DeleteDhcpOptions"; Version: string = "2016-11-15"): Recallable = ## postDeleteDhcpOptions @@ -35737,22 +35764,22 @@ proc call*(call_615414: Call_PostDeleteDhcpOptions_615399; DhcpOptionsId: string ## : 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. ## Action: string (required) ## Version: string (required) - var query_615415 = newJObject() - var formData_615416 = newJObject() - add(formData_615416, "DhcpOptionsId", newJString(DhcpOptionsId)) - add(formData_615416, "DryRun", newJBool(DryRun)) - add(query_615415, "Action", newJString(Action)) - add(query_615415, "Version", newJString(Version)) - result = call_615414.call(nil, query_615415, nil, formData_615416, nil) + var query_615417 = newJObject() + var formData_615418 = newJObject() + add(formData_615418, "DhcpOptionsId", newJString(DhcpOptionsId)) + add(formData_615418, "DryRun", newJBool(DryRun)) + add(query_615417, "Action", newJString(Action)) + add(query_615417, "Version", newJString(Version)) + result = call_615416.call(nil, query_615417, nil, formData_615418, nil) -var postDeleteDhcpOptions* = Call_PostDeleteDhcpOptions_615399( +var postDeleteDhcpOptions* = Call_PostDeleteDhcpOptions_615401( name: "postDeleteDhcpOptions", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteDhcpOptions", - validator: validate_PostDeleteDhcpOptions_615400, base: "/", - url: url_PostDeleteDhcpOptions_615401, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDeleteDhcpOptions_615402, base: "/", + url: url_PostDeleteDhcpOptions_615403, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteDhcpOptions_615382 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteDhcpOptions_615384(protocol: Scheme; host: string; base: string; + Call_GetDeleteDhcpOptions_615384 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteDhcpOptions_615386(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -35762,7 +35789,7 @@ proc url_GetDeleteDhcpOptions_615384(protocol: Scheme; host: string; base: strin else: result.path = base & route -proc validate_GetDeleteDhcpOptions_615383(path: JsonNode; query: JsonNode; +proc validate_GetDeleteDhcpOptions_615385(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified set of DHCP options. You must disassociate the set of DHCP options before you can delete it. You can disassociate the set of DHCP options by associating either a new set of options or the default set of options with the VPC. ## @@ -35778,25 +35805,25 @@ proc validate_GetDeleteDhcpOptions_615383(path: JsonNode; query: JsonNode; ## : The ID of the DHCP options set. ## Version: JString (required) section = newJObject() - var valid_615385 = query.getOrDefault("DryRun") - valid_615385 = validateParameter(valid_615385, JBool, required = false, default = nil) - if valid_615385 != nil: - section.add "DryRun", valid_615385 - var valid_615386 = query.getOrDefault("Action") - valid_615386 = validateParameter(valid_615386, JString, required = true, - default = newJString("DeleteDhcpOptions")) - if valid_615386 != nil: - section.add "Action", valid_615386 - var valid_615387 = query.getOrDefault("DhcpOptionsId") - valid_615387 = validateParameter(valid_615387, JString, required = true, - default = nil) + var valid_615387 = query.getOrDefault("DryRun") + valid_615387 = validateParameter(valid_615387, JBool, required = false, default = nil) if valid_615387 != nil: - section.add "DhcpOptionsId", valid_615387 - var valid_615388 = query.getOrDefault("Version") + section.add "DryRun", valid_615387 + var valid_615388 = query.getOrDefault("Action") valid_615388 = validateParameter(valid_615388, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("DeleteDhcpOptions")) if valid_615388 != nil: - section.add "Version", valid_615388 + section.add "Action", valid_615388 + var valid_615389 = query.getOrDefault("DhcpOptionsId") + valid_615389 = validateParameter(valid_615389, JString, required = true, + default = nil) + if valid_615389 != nil: + section.add "DhcpOptionsId", valid_615389 + var valid_615390 = query.getOrDefault("Version") + valid_615390 = validateParameter(valid_615390, JString, required = true, + default = newJString("2016-11-15")) + if valid_615390 != nil: + section.add "Version", valid_615390 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -35807,61 +35834,61 @@ proc validate_GetDeleteDhcpOptions_615383(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615389 = header.getOrDefault("X-Amz-Signature") - valid_615389 = validateParameter(valid_615389, JString, required = false, - default = nil) - if valid_615389 != nil: - section.add "X-Amz-Signature", valid_615389 - var valid_615390 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615390 = validateParameter(valid_615390, JString, required = false, - default = nil) - if valid_615390 != nil: - section.add "X-Amz-Content-Sha256", valid_615390 - var valid_615391 = header.getOrDefault("X-Amz-Date") + var valid_615391 = header.getOrDefault("X-Amz-Signature") valid_615391 = validateParameter(valid_615391, JString, required = false, default = nil) if valid_615391 != nil: - section.add "X-Amz-Date", valid_615391 - var valid_615392 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615391 + var valid_615392 = header.getOrDefault("X-Amz-Content-Sha256") valid_615392 = validateParameter(valid_615392, JString, required = false, default = nil) if valid_615392 != nil: - section.add "X-Amz-Credential", valid_615392 - var valid_615393 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615392 + var valid_615393 = header.getOrDefault("X-Amz-Date") valid_615393 = validateParameter(valid_615393, JString, required = false, default = nil) if valid_615393 != nil: - section.add "X-Amz-Security-Token", valid_615393 - var valid_615394 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615393 + var valid_615394 = header.getOrDefault("X-Amz-Credential") valid_615394 = validateParameter(valid_615394, JString, required = false, default = nil) if valid_615394 != nil: - section.add "X-Amz-Algorithm", valid_615394 - var valid_615395 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615394 + var valid_615395 = header.getOrDefault("X-Amz-Security-Token") valid_615395 = validateParameter(valid_615395, JString, required = false, default = nil) if valid_615395 != nil: - section.add "X-Amz-SignedHeaders", valid_615395 + section.add "X-Amz-Security-Token", valid_615395 + var valid_615396 = header.getOrDefault("X-Amz-Algorithm") + valid_615396 = validateParameter(valid_615396, JString, required = false, + default = nil) + if valid_615396 != nil: + section.add "X-Amz-Algorithm", valid_615396 + var valid_615397 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615397 = validateParameter(valid_615397, JString, required = false, + default = nil) + if valid_615397 != nil: + section.add "X-Amz-SignedHeaders", valid_615397 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615396: Call_GetDeleteDhcpOptions_615382; path: JsonNode; +proc call*(call_615398: Call_GetDeleteDhcpOptions_615384; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified set of DHCP options. You must disassociate the set of DHCP options before you can delete it. You can disassociate the set of DHCP options by associating either a new set of options or the default set of options with the VPC. ## - let valid = call_615396.validator(path, query, header, formData, body) - let scheme = call_615396.pickScheme + let valid = call_615398.validator(path, query, header, formData, body) + let scheme = call_615398.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615396.url(scheme.get, call_615396.host, call_615396.base, - call_615396.route, valid.getOrDefault("path"), + let url = call_615398.url(scheme.get, call_615398.host, call_615398.base, + call_615398.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615396, url, valid) + result = atozHook(call_615398, url, valid) -proc call*(call_615397: Call_GetDeleteDhcpOptions_615382; DhcpOptionsId: string; +proc call*(call_615399: Call_GetDeleteDhcpOptions_615384; DhcpOptionsId: string; DryRun: bool = false; Action: string = "DeleteDhcpOptions"; Version: string = "2016-11-15"): Recallable = ## getDeleteDhcpOptions @@ -35872,21 +35899,21 @@ proc call*(call_615397: Call_GetDeleteDhcpOptions_615382; DhcpOptionsId: string; ## DhcpOptionsId: string (required) ## : The ID of the DHCP options set. ## Version: string (required) - var query_615398 = newJObject() - add(query_615398, "DryRun", newJBool(DryRun)) - add(query_615398, "Action", newJString(Action)) - add(query_615398, "DhcpOptionsId", newJString(DhcpOptionsId)) - add(query_615398, "Version", newJString(Version)) - result = call_615397.call(nil, query_615398, nil, nil, nil) + var query_615400 = newJObject() + add(query_615400, "DryRun", newJBool(DryRun)) + add(query_615400, "Action", newJString(Action)) + add(query_615400, "DhcpOptionsId", newJString(DhcpOptionsId)) + add(query_615400, "Version", newJString(Version)) + result = call_615399.call(nil, query_615400, nil, nil, nil) -var getDeleteDhcpOptions* = Call_GetDeleteDhcpOptions_615382( +var getDeleteDhcpOptions* = Call_GetDeleteDhcpOptions_615384( name: "getDeleteDhcpOptions", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteDhcpOptions", - validator: validate_GetDeleteDhcpOptions_615383, base: "/", - url: url_GetDeleteDhcpOptions_615384, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDeleteDhcpOptions_615385, base: "/", + url: url_GetDeleteDhcpOptions_615386, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteEgressOnlyInternetGateway_615434 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteEgressOnlyInternetGateway_615436(protocol: Scheme; host: string; + Call_PostDeleteEgressOnlyInternetGateway_615436 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteEgressOnlyInternetGateway_615438(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -35896,7 +35923,7 @@ proc url_PostDeleteEgressOnlyInternetGateway_615436(protocol: Scheme; host: stri else: result.path = base & route -proc validate_PostDeleteEgressOnlyInternetGateway_615435(path: JsonNode; +proc validate_PostDeleteEgressOnlyInternetGateway_615437(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes an egress-only internet gateway. ## @@ -35908,16 +35935,16 @@ proc validate_PostDeleteEgressOnlyInternetGateway_615435(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615437 = query.getOrDefault("Action") - valid_615437 = validateParameter(valid_615437, JString, required = true, default = newJString( + var valid_615439 = query.getOrDefault("Action") + valid_615439 = validateParameter(valid_615439, JString, required = true, default = newJString( "DeleteEgressOnlyInternetGateway")) - if valid_615437 != nil: - section.add "Action", valid_615437 - var valid_615438 = query.getOrDefault("Version") - valid_615438 = validateParameter(valid_615438, JString, required = true, + if valid_615439 != nil: + section.add "Action", valid_615439 + var valid_615440 = query.getOrDefault("Version") + valid_615440 = validateParameter(valid_615440, JString, required = true, default = newJString("2016-11-15")) - if valid_615438 != nil: - section.add "Version", valid_615438 + if valid_615440 != nil: + section.add "Version", valid_615440 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -35928,41 +35955,41 @@ proc validate_PostDeleteEgressOnlyInternetGateway_615435(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615439 = header.getOrDefault("X-Amz-Signature") - valid_615439 = validateParameter(valid_615439, JString, required = false, - default = nil) - if valid_615439 != nil: - section.add "X-Amz-Signature", valid_615439 - var valid_615440 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615440 = validateParameter(valid_615440, JString, required = false, - default = nil) - if valid_615440 != nil: - section.add "X-Amz-Content-Sha256", valid_615440 - var valid_615441 = header.getOrDefault("X-Amz-Date") + var valid_615441 = header.getOrDefault("X-Amz-Signature") valid_615441 = validateParameter(valid_615441, JString, required = false, default = nil) if valid_615441 != nil: - section.add "X-Amz-Date", valid_615441 - var valid_615442 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615441 + var valid_615442 = header.getOrDefault("X-Amz-Content-Sha256") valid_615442 = validateParameter(valid_615442, JString, required = false, default = nil) if valid_615442 != nil: - section.add "X-Amz-Credential", valid_615442 - var valid_615443 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615442 + var valid_615443 = header.getOrDefault("X-Amz-Date") valid_615443 = validateParameter(valid_615443, JString, required = false, default = nil) if valid_615443 != nil: - section.add "X-Amz-Security-Token", valid_615443 - var valid_615444 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615443 + var valid_615444 = header.getOrDefault("X-Amz-Credential") valid_615444 = validateParameter(valid_615444, JString, required = false, default = nil) if valid_615444 != nil: - section.add "X-Amz-Algorithm", valid_615444 - var valid_615445 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615444 + var valid_615445 = header.getOrDefault("X-Amz-Security-Token") valid_615445 = validateParameter(valid_615445, JString, required = false, default = nil) if valid_615445 != nil: - section.add "X-Amz-SignedHeaders", valid_615445 + section.add "X-Amz-Security-Token", valid_615445 + var valid_615446 = header.getOrDefault("X-Amz-Algorithm") + valid_615446 = validateParameter(valid_615446, JString, required = false, + default = nil) + if valid_615446 != nil: + section.add "X-Amz-Algorithm", valid_615446 + var valid_615447 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615447 = validateParameter(valid_615447, JString, required = false, + default = nil) + if valid_615447 != nil: + section.add "X-Amz-SignedHeaders", valid_615447 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -35970,35 +35997,35 @@ proc validate_PostDeleteEgressOnlyInternetGateway_615435(path: JsonNode; ## EgressOnlyInternetGatewayId: JString (required) ## : The ID of the egress-only internet gateway. section = newJObject() - var valid_615446 = formData.getOrDefault("DryRun") - valid_615446 = validateParameter(valid_615446, JBool, required = false, default = nil) - if valid_615446 != nil: - section.add "DryRun", valid_615446 + var valid_615448 = formData.getOrDefault("DryRun") + valid_615448 = validateParameter(valid_615448, JBool, required = false, default = nil) + if valid_615448 != nil: + section.add "DryRun", valid_615448 assert formData != nil, "formData argument is necessary due to required `EgressOnlyInternetGatewayId` field" - var valid_615447 = formData.getOrDefault("EgressOnlyInternetGatewayId") - valid_615447 = validateParameter(valid_615447, JString, required = true, + var valid_615449 = formData.getOrDefault("EgressOnlyInternetGatewayId") + valid_615449 = validateParameter(valid_615449, JString, required = true, default = nil) - if valid_615447 != nil: - section.add "EgressOnlyInternetGatewayId", valid_615447 + if valid_615449 != nil: + section.add "EgressOnlyInternetGatewayId", valid_615449 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615448: Call_PostDeleteEgressOnlyInternetGateway_615434; +proc call*(call_615450: Call_PostDeleteEgressOnlyInternetGateway_615436; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes an egress-only internet gateway. ## - let valid = call_615448.validator(path, query, header, formData, body) - let scheme = call_615448.pickScheme + let valid = call_615450.validator(path, query, header, formData, body) + let scheme = call_615450.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615448.url(scheme.get, call_615448.host, call_615448.base, - call_615448.route, valid.getOrDefault("path"), + let url = call_615450.url(scheme.get, call_615450.host, call_615450.base, + call_615450.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615448, url, valid) + result = atozHook(call_615450, url, valid) -proc call*(call_615449: Call_PostDeleteEgressOnlyInternetGateway_615434; +proc call*(call_615451: Call_PostDeleteEgressOnlyInternetGateway_615436; EgressOnlyInternetGatewayId: string; DryRun: bool = false; Action: string = "DeleteEgressOnlyInternetGateway"; Version: string = "2016-11-15"): Recallable = @@ -36010,24 +36037,24 @@ proc call*(call_615449: Call_PostDeleteEgressOnlyInternetGateway_615434; ## : The ID of the egress-only internet gateway. ## Action: string (required) ## Version: string (required) - var query_615450 = newJObject() - var formData_615451 = newJObject() - add(formData_615451, "DryRun", newJBool(DryRun)) - add(formData_615451, "EgressOnlyInternetGatewayId", + var query_615452 = newJObject() + var formData_615453 = newJObject() + add(formData_615453, "DryRun", newJBool(DryRun)) + add(formData_615453, "EgressOnlyInternetGatewayId", newJString(EgressOnlyInternetGatewayId)) - add(query_615450, "Action", newJString(Action)) - add(query_615450, "Version", newJString(Version)) - result = call_615449.call(nil, query_615450, nil, formData_615451, nil) + add(query_615452, "Action", newJString(Action)) + add(query_615452, "Version", newJString(Version)) + result = call_615451.call(nil, query_615452, nil, formData_615453, nil) -var postDeleteEgressOnlyInternetGateway* = Call_PostDeleteEgressOnlyInternetGateway_615434( +var postDeleteEgressOnlyInternetGateway* = Call_PostDeleteEgressOnlyInternetGateway_615436( name: "postDeleteEgressOnlyInternetGateway", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteEgressOnlyInternetGateway", - validator: validate_PostDeleteEgressOnlyInternetGateway_615435, base: "/", - url: url_PostDeleteEgressOnlyInternetGateway_615436, + validator: validate_PostDeleteEgressOnlyInternetGateway_615437, base: "/", + url: url_PostDeleteEgressOnlyInternetGateway_615438, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteEgressOnlyInternetGateway_615417 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteEgressOnlyInternetGateway_615419(protocol: Scheme; host: string; + Call_GetDeleteEgressOnlyInternetGateway_615419 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteEgressOnlyInternetGateway_615421(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -36037,7 +36064,7 @@ proc url_GetDeleteEgressOnlyInternetGateway_615419(protocol: Scheme; host: strin else: result.path = base & route -proc validate_GetDeleteEgressOnlyInternetGateway_615418(path: JsonNode; +proc validate_GetDeleteEgressOnlyInternetGateway_615420(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes an egress-only internet gateway. ## @@ -36053,25 +36080,25 @@ proc validate_GetDeleteEgressOnlyInternetGateway_615418(path: JsonNode; ## EgressOnlyInternetGatewayId: JString (required) ## : The ID of the egress-only internet gateway. section = newJObject() - var valid_615420 = query.getOrDefault("DryRun") - valid_615420 = validateParameter(valid_615420, JBool, required = false, default = nil) - if valid_615420 != nil: - section.add "DryRun", valid_615420 - var valid_615421 = query.getOrDefault("Action") - valid_615421 = validateParameter(valid_615421, JString, required = true, default = newJString( + var valid_615422 = query.getOrDefault("DryRun") + valid_615422 = validateParameter(valid_615422, JBool, required = false, default = nil) + if valid_615422 != nil: + section.add "DryRun", valid_615422 + var valid_615423 = query.getOrDefault("Action") + valid_615423 = validateParameter(valid_615423, JString, required = true, default = newJString( "DeleteEgressOnlyInternetGateway")) - if valid_615421 != nil: - section.add "Action", valid_615421 - var valid_615422 = query.getOrDefault("Version") - valid_615422 = validateParameter(valid_615422, JString, required = true, + if valid_615423 != nil: + section.add "Action", valid_615423 + var valid_615424 = query.getOrDefault("Version") + valid_615424 = validateParameter(valid_615424, JString, required = true, default = newJString("2016-11-15")) - if valid_615422 != nil: - section.add "Version", valid_615422 - var valid_615423 = query.getOrDefault("EgressOnlyInternetGatewayId") - valid_615423 = validateParameter(valid_615423, JString, required = true, + if valid_615424 != nil: + section.add "Version", valid_615424 + var valid_615425 = query.getOrDefault("EgressOnlyInternetGatewayId") + valid_615425 = validateParameter(valid_615425, JString, required = true, default = nil) - if valid_615423 != nil: - section.add "EgressOnlyInternetGatewayId", valid_615423 + if valid_615425 != nil: + section.add "EgressOnlyInternetGatewayId", valid_615425 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -36082,62 +36109,62 @@ proc validate_GetDeleteEgressOnlyInternetGateway_615418(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615424 = header.getOrDefault("X-Amz-Signature") - valid_615424 = validateParameter(valid_615424, JString, required = false, - default = nil) - if valid_615424 != nil: - section.add "X-Amz-Signature", valid_615424 - var valid_615425 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615425 = validateParameter(valid_615425, JString, required = false, - default = nil) - if valid_615425 != nil: - section.add "X-Amz-Content-Sha256", valid_615425 - var valid_615426 = header.getOrDefault("X-Amz-Date") + var valid_615426 = header.getOrDefault("X-Amz-Signature") valid_615426 = validateParameter(valid_615426, JString, required = false, default = nil) if valid_615426 != nil: - section.add "X-Amz-Date", valid_615426 - var valid_615427 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615426 + var valid_615427 = header.getOrDefault("X-Amz-Content-Sha256") valid_615427 = validateParameter(valid_615427, JString, required = false, default = nil) if valid_615427 != nil: - section.add "X-Amz-Credential", valid_615427 - var valid_615428 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615427 + var valid_615428 = header.getOrDefault("X-Amz-Date") valid_615428 = validateParameter(valid_615428, JString, required = false, default = nil) if valid_615428 != nil: - section.add "X-Amz-Security-Token", valid_615428 - var valid_615429 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615428 + var valid_615429 = header.getOrDefault("X-Amz-Credential") valid_615429 = validateParameter(valid_615429, JString, required = false, default = nil) if valid_615429 != nil: - section.add "X-Amz-Algorithm", valid_615429 - var valid_615430 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615429 + var valid_615430 = header.getOrDefault("X-Amz-Security-Token") valid_615430 = validateParameter(valid_615430, JString, required = false, default = nil) if valid_615430 != nil: - section.add "X-Amz-SignedHeaders", valid_615430 + section.add "X-Amz-Security-Token", valid_615430 + var valid_615431 = header.getOrDefault("X-Amz-Algorithm") + valid_615431 = validateParameter(valid_615431, JString, required = false, + default = nil) + if valid_615431 != nil: + section.add "X-Amz-Algorithm", valid_615431 + var valid_615432 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615432 = validateParameter(valid_615432, JString, required = false, + default = nil) + if valid_615432 != nil: + section.add "X-Amz-SignedHeaders", valid_615432 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615431: Call_GetDeleteEgressOnlyInternetGateway_615417; +proc call*(call_615433: Call_GetDeleteEgressOnlyInternetGateway_615419; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes an egress-only internet gateway. ## - let valid = call_615431.validator(path, query, header, formData, body) - let scheme = call_615431.pickScheme + let valid = call_615433.validator(path, query, header, formData, body) + let scheme = call_615433.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615431.url(scheme.get, call_615431.host, call_615431.base, - call_615431.route, valid.getOrDefault("path"), + let url = call_615433.url(scheme.get, call_615433.host, call_615433.base, + call_615433.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615431, url, valid) + result = atozHook(call_615433, url, valid) -proc call*(call_615432: Call_GetDeleteEgressOnlyInternetGateway_615417; +proc call*(call_615434: Call_GetDeleteEgressOnlyInternetGateway_615419; EgressOnlyInternetGatewayId: string; DryRun: bool = false; Action: string = "DeleteEgressOnlyInternetGateway"; Version: string = "2016-11-15"): Recallable = @@ -36149,23 +36176,23 @@ proc call*(call_615432: Call_GetDeleteEgressOnlyInternetGateway_615417; ## Version: string (required) ## EgressOnlyInternetGatewayId: string (required) ## : The ID of the egress-only internet gateway. - var query_615433 = newJObject() - add(query_615433, "DryRun", newJBool(DryRun)) - add(query_615433, "Action", newJString(Action)) - add(query_615433, "Version", newJString(Version)) - add(query_615433, "EgressOnlyInternetGatewayId", + var query_615435 = newJObject() + add(query_615435, "DryRun", newJBool(DryRun)) + add(query_615435, "Action", newJString(Action)) + add(query_615435, "Version", newJString(Version)) + add(query_615435, "EgressOnlyInternetGatewayId", newJString(EgressOnlyInternetGatewayId)) - result = call_615432.call(nil, query_615433, nil, nil, nil) + result = call_615434.call(nil, query_615435, nil, nil, nil) -var getDeleteEgressOnlyInternetGateway* = Call_GetDeleteEgressOnlyInternetGateway_615417( +var getDeleteEgressOnlyInternetGateway* = Call_GetDeleteEgressOnlyInternetGateway_615419( name: "getDeleteEgressOnlyInternetGateway", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteEgressOnlyInternetGateway", - validator: validate_GetDeleteEgressOnlyInternetGateway_615418, base: "/", - url: url_GetDeleteEgressOnlyInternetGateway_615419, + validator: validate_GetDeleteEgressOnlyInternetGateway_615420, base: "/", + url: url_GetDeleteEgressOnlyInternetGateway_615421, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteFleets_615470 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteFleets_615472(protocol: Scheme; host: string; base: string; + Call_PostDeleteFleets_615472 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteFleets_615474(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -36175,7 +36202,7 @@ proc url_PostDeleteFleets_615472(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostDeleteFleets_615471(path: JsonNode; query: JsonNode; +proc validate_PostDeleteFleets_615473(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Deletes the specified EC2 Fleet.

After you delete an EC2 Fleet, it launches no new instances. You must specify whether an EC2 Fleet should also terminate its instances. If you terminate the instances, the EC2 Fleet enters the deleted_terminating state. Otherwise, the EC2 Fleet enters the deleted_running state, and the instances continue to run until they are interrupted or you terminate them manually.

@@ -36188,16 +36215,16 @@ proc validate_PostDeleteFleets_615471(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615473 = query.getOrDefault("Action") - valid_615473 = validateParameter(valid_615473, JString, required = true, + var valid_615475 = query.getOrDefault("Action") + valid_615475 = validateParameter(valid_615475, JString, required = true, default = newJString("DeleteFleets")) - if valid_615473 != nil: - section.add "Action", valid_615473 - var valid_615474 = query.getOrDefault("Version") - valid_615474 = validateParameter(valid_615474, JString, required = true, + if valid_615475 != nil: + section.add "Action", valid_615475 + var valid_615476 = query.getOrDefault("Version") + valid_615476 = validateParameter(valid_615476, JString, required = true, default = newJString("2016-11-15")) - if valid_615474 != nil: - section.add "Version", valid_615474 + if valid_615476 != nil: + section.add "Version", valid_615476 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -36208,41 +36235,41 @@ proc validate_PostDeleteFleets_615471(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615475 = header.getOrDefault("X-Amz-Signature") - valid_615475 = validateParameter(valid_615475, JString, required = false, - default = nil) - if valid_615475 != nil: - section.add "X-Amz-Signature", valid_615475 - var valid_615476 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615476 = validateParameter(valid_615476, JString, required = false, - default = nil) - if valid_615476 != nil: - section.add "X-Amz-Content-Sha256", valid_615476 - var valid_615477 = header.getOrDefault("X-Amz-Date") + var valid_615477 = header.getOrDefault("X-Amz-Signature") valid_615477 = validateParameter(valid_615477, JString, required = false, default = nil) if valid_615477 != nil: - section.add "X-Amz-Date", valid_615477 - var valid_615478 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615477 + var valid_615478 = header.getOrDefault("X-Amz-Content-Sha256") valid_615478 = validateParameter(valid_615478, JString, required = false, default = nil) if valid_615478 != nil: - section.add "X-Amz-Credential", valid_615478 - var valid_615479 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615478 + var valid_615479 = header.getOrDefault("X-Amz-Date") valid_615479 = validateParameter(valid_615479, JString, required = false, default = nil) if valid_615479 != nil: - section.add "X-Amz-Security-Token", valid_615479 - var valid_615480 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615479 + var valid_615480 = header.getOrDefault("X-Amz-Credential") valid_615480 = validateParameter(valid_615480, JString, required = false, default = nil) if valid_615480 != nil: - section.add "X-Amz-Algorithm", valid_615480 - var valid_615481 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615480 + var valid_615481 = header.getOrDefault("X-Amz-Security-Token") valid_615481 = validateParameter(valid_615481, JString, required = false, default = nil) if valid_615481 != nil: - section.add "X-Amz-SignedHeaders", valid_615481 + section.add "X-Amz-Security-Token", valid_615481 + var valid_615482 = header.getOrDefault("X-Amz-Algorithm") + valid_615482 = validateParameter(valid_615482, JString, required = false, + default = nil) + if valid_615482 != nil: + section.add "X-Amz-Algorithm", valid_615482 + var valid_615483 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615483 = validateParameter(valid_615483, JString, required = false, + default = nil) + if valid_615483 != nil: + section.add "X-Amz-SignedHeaders", valid_615483 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -36252,38 +36279,38 @@ proc validate_PostDeleteFleets_615471(path: JsonNode; query: JsonNode; ## TerminateInstances: JBool (required) ## : Indicates whether to terminate instances for an EC2 Fleet if it is deleted successfully. section = newJObject() - var valid_615482 = formData.getOrDefault("DryRun") - valid_615482 = validateParameter(valid_615482, JBool, required = false, default = nil) - if valid_615482 != nil: - section.add "DryRun", valid_615482 + var valid_615484 = formData.getOrDefault("DryRun") + valid_615484 = validateParameter(valid_615484, JBool, required = false, default = nil) + if valid_615484 != nil: + section.add "DryRun", valid_615484 assert formData != nil, "formData argument is necessary due to required `FleetId` field" - var valid_615483 = formData.getOrDefault("FleetId") - valid_615483 = validateParameter(valid_615483, JArray, required = true, default = nil) - if valid_615483 != nil: - section.add "FleetId", valid_615483 - var valid_615484 = formData.getOrDefault("TerminateInstances") - valid_615484 = validateParameter(valid_615484, JBool, required = true, default = nil) - if valid_615484 != nil: - section.add "TerminateInstances", valid_615484 + var valid_615485 = formData.getOrDefault("FleetId") + valid_615485 = validateParameter(valid_615485, JArray, required = true, default = nil) + if valid_615485 != nil: + section.add "FleetId", valid_615485 + var valid_615486 = formData.getOrDefault("TerminateInstances") + valid_615486 = validateParameter(valid_615486, JBool, required = true, default = nil) + if valid_615486 != nil: + section.add "TerminateInstances", valid_615486 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615485: Call_PostDeleteFleets_615470; path: JsonNode; +proc call*(call_615487: Call_PostDeleteFleets_615472; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Deletes the specified EC2 Fleet.

After you delete an EC2 Fleet, it launches no new instances. You must specify whether an EC2 Fleet should also terminate its instances. If you terminate the instances, the EC2 Fleet enters the deleted_terminating state. Otherwise, the EC2 Fleet enters the deleted_running state, and the instances continue to run until they are interrupted or you terminate them manually.

## - let valid = call_615485.validator(path, query, header, formData, body) - let scheme = call_615485.pickScheme + let valid = call_615487.validator(path, query, header, formData, body) + let scheme = call_615487.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615485.url(scheme.get, call_615485.host, call_615485.base, - call_615485.route, valid.getOrDefault("path"), + let url = call_615487.url(scheme.get, call_615487.host, call_615487.base, + call_615487.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615485, url, valid) + result = atozHook(call_615487, url, valid) -proc call*(call_615486: Call_PostDeleteFleets_615470; FleetId: JsonNode; +proc call*(call_615488: Call_PostDeleteFleets_615472; FleetId: JsonNode; TerminateInstances: bool; DryRun: bool = false; Action: string = "DeleteFleets"; Version: string = "2016-11-15"): Recallable = ## postDeleteFleets @@ -36296,24 +36323,24 @@ proc call*(call_615486: Call_PostDeleteFleets_615470; FleetId: JsonNode; ## : Indicates whether to terminate instances for an EC2 Fleet if it is deleted successfully. ## Action: string (required) ## Version: string (required) - var query_615487 = newJObject() - var formData_615488 = newJObject() - add(formData_615488, "DryRun", newJBool(DryRun)) + var query_615489 = newJObject() + var formData_615490 = newJObject() + add(formData_615490, "DryRun", newJBool(DryRun)) if FleetId != nil: - formData_615488.add "FleetId", FleetId - add(formData_615488, "TerminateInstances", newJBool(TerminateInstances)) - add(query_615487, "Action", newJString(Action)) - add(query_615487, "Version", newJString(Version)) - result = call_615486.call(nil, query_615487, nil, formData_615488, nil) + formData_615490.add "FleetId", FleetId + add(formData_615490, "TerminateInstances", newJBool(TerminateInstances)) + add(query_615489, "Action", newJString(Action)) + add(query_615489, "Version", newJString(Version)) + result = call_615488.call(nil, query_615489, nil, formData_615490, nil) -var postDeleteFleets* = Call_PostDeleteFleets_615470(name: "postDeleteFleets", +var postDeleteFleets* = Call_PostDeleteFleets_615472(name: "postDeleteFleets", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", - route: "/#Action=DeleteFleets", validator: validate_PostDeleteFleets_615471, - base: "/", url: url_PostDeleteFleets_615472, + route: "/#Action=DeleteFleets", validator: validate_PostDeleteFleets_615473, + base: "/", url: url_PostDeleteFleets_615474, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteFleets_615452 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteFleets_615454(protocol: Scheme; host: string; base: string; + Call_GetDeleteFleets_615454 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteFleets_615456(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -36323,7 +36350,7 @@ proc url_GetDeleteFleets_615454(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetDeleteFleets_615453(path: JsonNode; query: JsonNode; +proc validate_GetDeleteFleets_615455(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Deletes the specified EC2 Fleet.

After you delete an EC2 Fleet, it launches no new instances. You must specify whether an EC2 Fleet should also terminate its instances. If you terminate the instances, the EC2 Fleet enters the deleted_terminating state. Otherwise, the EC2 Fleet enters the deleted_running state, and the instances continue to run until they are interrupted or you terminate them manually.

@@ -36342,28 +36369,28 @@ proc validate_GetDeleteFleets_615453(path: JsonNode; query: JsonNode; ## FleetId: JArray (required) ## : The IDs of the EC2 Fleets. section = newJObject() - var valid_615455 = query.getOrDefault("DryRun") - valid_615455 = validateParameter(valid_615455, JBool, required = false, default = nil) - if valid_615455 != nil: - section.add "DryRun", valid_615455 - var valid_615456 = query.getOrDefault("Action") - valid_615456 = validateParameter(valid_615456, JString, required = true, - default = newJString("DeleteFleets")) - if valid_615456 != nil: - section.add "Action", valid_615456 - var valid_615457 = query.getOrDefault("TerminateInstances") - valid_615457 = validateParameter(valid_615457, JBool, required = true, default = nil) + var valid_615457 = query.getOrDefault("DryRun") + valid_615457 = validateParameter(valid_615457, JBool, required = false, default = nil) if valid_615457 != nil: - section.add "TerminateInstances", valid_615457 - var valid_615458 = query.getOrDefault("Version") + section.add "DryRun", valid_615457 + var valid_615458 = query.getOrDefault("Action") valid_615458 = validateParameter(valid_615458, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("DeleteFleets")) if valid_615458 != nil: - section.add "Version", valid_615458 - var valid_615459 = query.getOrDefault("FleetId") - valid_615459 = validateParameter(valid_615459, JArray, required = true, default = nil) + section.add "Action", valid_615458 + var valid_615459 = query.getOrDefault("TerminateInstances") + valid_615459 = validateParameter(valid_615459, JBool, required = true, default = nil) if valid_615459 != nil: - section.add "FleetId", valid_615459 + section.add "TerminateInstances", valid_615459 + var valid_615460 = query.getOrDefault("Version") + valid_615460 = validateParameter(valid_615460, JString, required = true, + default = newJString("2016-11-15")) + if valid_615460 != nil: + section.add "Version", valid_615460 + var valid_615461 = query.getOrDefault("FleetId") + valid_615461 = validateParameter(valid_615461, JArray, required = true, default = nil) + if valid_615461 != nil: + section.add "FleetId", valid_615461 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -36374,61 +36401,61 @@ proc validate_GetDeleteFleets_615453(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615460 = header.getOrDefault("X-Amz-Signature") - valid_615460 = validateParameter(valid_615460, JString, required = false, - default = nil) - if valid_615460 != nil: - section.add "X-Amz-Signature", valid_615460 - var valid_615461 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615461 = validateParameter(valid_615461, JString, required = false, - default = nil) - if valid_615461 != nil: - section.add "X-Amz-Content-Sha256", valid_615461 - var valid_615462 = header.getOrDefault("X-Amz-Date") + var valid_615462 = header.getOrDefault("X-Amz-Signature") valid_615462 = validateParameter(valid_615462, JString, required = false, default = nil) if valid_615462 != nil: - section.add "X-Amz-Date", valid_615462 - var valid_615463 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615462 + var valid_615463 = header.getOrDefault("X-Amz-Content-Sha256") valid_615463 = validateParameter(valid_615463, JString, required = false, default = nil) if valid_615463 != nil: - section.add "X-Amz-Credential", valid_615463 - var valid_615464 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615463 + var valid_615464 = header.getOrDefault("X-Amz-Date") valid_615464 = validateParameter(valid_615464, JString, required = false, default = nil) if valid_615464 != nil: - section.add "X-Amz-Security-Token", valid_615464 - var valid_615465 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615464 + var valid_615465 = header.getOrDefault("X-Amz-Credential") valid_615465 = validateParameter(valid_615465, JString, required = false, default = nil) if valid_615465 != nil: - section.add "X-Amz-Algorithm", valid_615465 - var valid_615466 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615465 + var valid_615466 = header.getOrDefault("X-Amz-Security-Token") valid_615466 = validateParameter(valid_615466, JString, required = false, default = nil) if valid_615466 != nil: - section.add "X-Amz-SignedHeaders", valid_615466 + section.add "X-Amz-Security-Token", valid_615466 + var valid_615467 = header.getOrDefault("X-Amz-Algorithm") + valid_615467 = validateParameter(valid_615467, JString, required = false, + default = nil) + if valid_615467 != nil: + section.add "X-Amz-Algorithm", valid_615467 + var valid_615468 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615468 = validateParameter(valid_615468, JString, required = false, + default = nil) + if valid_615468 != nil: + section.add "X-Amz-SignedHeaders", valid_615468 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615467: Call_GetDeleteFleets_615452; path: JsonNode; query: JsonNode; +proc call*(call_615469: Call_GetDeleteFleets_615454; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Deletes the specified EC2 Fleet.

After you delete an EC2 Fleet, it launches no new instances. You must specify whether an EC2 Fleet should also terminate its instances. If you terminate the instances, the EC2 Fleet enters the deleted_terminating state. Otherwise, the EC2 Fleet enters the deleted_running state, and the instances continue to run until they are interrupted or you terminate them manually.

## - let valid = call_615467.validator(path, query, header, formData, body) - let scheme = call_615467.pickScheme + let valid = call_615469.validator(path, query, header, formData, body) + let scheme = call_615469.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615467.url(scheme.get, call_615467.host, call_615467.base, - call_615467.route, valid.getOrDefault("path"), + let url = call_615469.url(scheme.get, call_615469.host, call_615469.base, + call_615469.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615467, url, valid) + result = atozHook(call_615469, url, valid) -proc call*(call_615468: Call_GetDeleteFleets_615452; TerminateInstances: bool; +proc call*(call_615470: Call_GetDeleteFleets_615454; TerminateInstances: bool; FleetId: JsonNode; DryRun: bool = false; Action: string = "DeleteFleets"; Version: string = "2016-11-15"): Recallable = ## getDeleteFleets @@ -36441,22 +36468,22 @@ proc call*(call_615468: Call_GetDeleteFleets_615452; TerminateInstances: bool; ## Version: string (required) ## FleetId: JArray (required) ## : The IDs of the EC2 Fleets. - var query_615469 = newJObject() - add(query_615469, "DryRun", newJBool(DryRun)) - add(query_615469, "Action", newJString(Action)) - add(query_615469, "TerminateInstances", newJBool(TerminateInstances)) - add(query_615469, "Version", newJString(Version)) + var query_615471 = newJObject() + add(query_615471, "DryRun", newJBool(DryRun)) + add(query_615471, "Action", newJString(Action)) + add(query_615471, "TerminateInstances", newJBool(TerminateInstances)) + add(query_615471, "Version", newJString(Version)) if FleetId != nil: - query_615469.add "FleetId", FleetId - result = call_615468.call(nil, query_615469, nil, nil, nil) + query_615471.add "FleetId", FleetId + result = call_615470.call(nil, query_615471, nil, nil, nil) -var getDeleteFleets* = Call_GetDeleteFleets_615452(name: "getDeleteFleets", +var getDeleteFleets* = Call_GetDeleteFleets_615454(name: "getDeleteFleets", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=DeleteFleets", validator: validate_GetDeleteFleets_615453, - base: "/", url: url_GetDeleteFleets_615454, schemes: {Scheme.Https, Scheme.Http}) + route: "/#Action=DeleteFleets", validator: validate_GetDeleteFleets_615455, + base: "/", url: url_GetDeleteFleets_615456, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteFlowLogs_615506 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteFlowLogs_615508(protocol: Scheme; host: string; base: string; + Call_PostDeleteFlowLogs_615508 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteFlowLogs_615510(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -36466,7 +36493,7 @@ proc url_PostDeleteFlowLogs_615508(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostDeleteFlowLogs_615507(path: JsonNode; query: JsonNode; +proc validate_PostDeleteFlowLogs_615509(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes one or more flow logs. @@ -36479,16 +36506,16 @@ proc validate_PostDeleteFlowLogs_615507(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615509 = query.getOrDefault("Action") - valid_615509 = validateParameter(valid_615509, JString, required = true, + var valid_615511 = query.getOrDefault("Action") + valid_615511 = validateParameter(valid_615511, JString, required = true, default = newJString("DeleteFlowLogs")) - if valid_615509 != nil: - section.add "Action", valid_615509 - var valid_615510 = query.getOrDefault("Version") - valid_615510 = validateParameter(valid_615510, JString, required = true, + if valid_615511 != nil: + section.add "Action", valid_615511 + var valid_615512 = query.getOrDefault("Version") + valid_615512 = validateParameter(valid_615512, JString, required = true, default = newJString("2016-11-15")) - if valid_615510 != nil: - section.add "Version", valid_615510 + if valid_615512 != nil: + section.add "Version", valid_615512 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -36499,41 +36526,41 @@ proc validate_PostDeleteFlowLogs_615507(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615511 = header.getOrDefault("X-Amz-Signature") - valid_615511 = validateParameter(valid_615511, JString, required = false, - default = nil) - if valid_615511 != nil: - section.add "X-Amz-Signature", valid_615511 - var valid_615512 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615512 = validateParameter(valid_615512, JString, required = false, - default = nil) - if valid_615512 != nil: - section.add "X-Amz-Content-Sha256", valid_615512 - var valid_615513 = header.getOrDefault("X-Amz-Date") + var valid_615513 = header.getOrDefault("X-Amz-Signature") valid_615513 = validateParameter(valid_615513, JString, required = false, default = nil) if valid_615513 != nil: - section.add "X-Amz-Date", valid_615513 - var valid_615514 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615513 + var valid_615514 = header.getOrDefault("X-Amz-Content-Sha256") valid_615514 = validateParameter(valid_615514, JString, required = false, default = nil) if valid_615514 != nil: - section.add "X-Amz-Credential", valid_615514 - var valid_615515 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615514 + var valid_615515 = header.getOrDefault("X-Amz-Date") valid_615515 = validateParameter(valid_615515, JString, required = false, default = nil) if valid_615515 != nil: - section.add "X-Amz-Security-Token", valid_615515 - var valid_615516 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615515 + var valid_615516 = header.getOrDefault("X-Amz-Credential") valid_615516 = validateParameter(valid_615516, JString, required = false, default = nil) if valid_615516 != nil: - section.add "X-Amz-Algorithm", valid_615516 - var valid_615517 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615516 + var valid_615517 = header.getOrDefault("X-Amz-Security-Token") valid_615517 = validateParameter(valid_615517, JString, required = false, default = nil) if valid_615517 != nil: - section.add "X-Amz-SignedHeaders", valid_615517 + section.add "X-Amz-Security-Token", valid_615517 + var valid_615518 = header.getOrDefault("X-Amz-Algorithm") + valid_615518 = validateParameter(valid_615518, JString, required = false, + default = nil) + if valid_615518 != nil: + section.add "X-Amz-Algorithm", valid_615518 + var valid_615519 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615519 = validateParameter(valid_615519, JString, required = false, + default = nil) + if valid_615519 != nil: + section.add "X-Amz-SignedHeaders", valid_615519 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -36541,34 +36568,34 @@ proc validate_PostDeleteFlowLogs_615507(path: JsonNode; query: JsonNode; ## FlowLogId: JArray (required) ## :

One or more flow log IDs.

Constraint: Maximum of 1000 flow log IDs.

section = newJObject() - var valid_615518 = formData.getOrDefault("DryRun") - valid_615518 = validateParameter(valid_615518, JBool, required = false, default = nil) - if valid_615518 != nil: - section.add "DryRun", valid_615518 + var valid_615520 = formData.getOrDefault("DryRun") + valid_615520 = validateParameter(valid_615520, JBool, required = false, default = nil) + if valid_615520 != nil: + section.add "DryRun", valid_615520 assert formData != nil, "formData argument is necessary due to required `FlowLogId` field" - var valid_615519 = formData.getOrDefault("FlowLogId") - valid_615519 = validateParameter(valid_615519, JArray, required = true, default = nil) - if valid_615519 != nil: - section.add "FlowLogId", valid_615519 + var valid_615521 = formData.getOrDefault("FlowLogId") + valid_615521 = validateParameter(valid_615521, JArray, required = true, default = nil) + if valid_615521 != nil: + section.add "FlowLogId", valid_615521 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615520: Call_PostDeleteFlowLogs_615506; path: JsonNode; +proc call*(call_615522: Call_PostDeleteFlowLogs_615508; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes one or more flow logs. ## - let valid = call_615520.validator(path, query, header, formData, body) - let scheme = call_615520.pickScheme + let valid = call_615522.validator(path, query, header, formData, body) + let scheme = call_615522.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615520.url(scheme.get, call_615520.host, call_615520.base, - call_615520.route, valid.getOrDefault("path"), + let url = call_615522.url(scheme.get, call_615522.host, call_615522.base, + call_615522.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615520, url, valid) + result = atozHook(call_615522, url, valid) -proc call*(call_615521: Call_PostDeleteFlowLogs_615506; FlowLogId: JsonNode; +proc call*(call_615523: Call_PostDeleteFlowLogs_615508; FlowLogId: JsonNode; DryRun: bool = false; Action: string = "DeleteFlowLogs"; Version: string = "2016-11-15"): Recallable = ## postDeleteFlowLogs @@ -36579,23 +36606,23 @@ proc call*(call_615521: Call_PostDeleteFlowLogs_615506; FlowLogId: JsonNode; ## :

One or more flow log IDs.

Constraint: Maximum of 1000 flow log IDs.

## Action: string (required) ## Version: string (required) - var query_615522 = newJObject() - var formData_615523 = newJObject() - add(formData_615523, "DryRun", newJBool(DryRun)) + var query_615524 = newJObject() + var formData_615525 = newJObject() + add(formData_615525, "DryRun", newJBool(DryRun)) if FlowLogId != nil: - formData_615523.add "FlowLogId", FlowLogId - add(query_615522, "Action", newJString(Action)) - add(query_615522, "Version", newJString(Version)) - result = call_615521.call(nil, query_615522, nil, formData_615523, nil) + formData_615525.add "FlowLogId", FlowLogId + add(query_615524, "Action", newJString(Action)) + add(query_615524, "Version", newJString(Version)) + result = call_615523.call(nil, query_615524, nil, formData_615525, nil) -var postDeleteFlowLogs* = Call_PostDeleteFlowLogs_615506( +var postDeleteFlowLogs* = Call_PostDeleteFlowLogs_615508( name: "postDeleteFlowLogs", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteFlowLogs", - validator: validate_PostDeleteFlowLogs_615507, base: "/", - url: url_PostDeleteFlowLogs_615508, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDeleteFlowLogs_615509, base: "/", + url: url_PostDeleteFlowLogs_615510, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteFlowLogs_615489 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteFlowLogs_615491(protocol: Scheme; host: string; base: string; + Call_GetDeleteFlowLogs_615491 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteFlowLogs_615493(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -36605,7 +36632,7 @@ proc url_GetDeleteFlowLogs_615491(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetDeleteFlowLogs_615490(path: JsonNode; query: JsonNode; +proc validate_GetDeleteFlowLogs_615492(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes one or more flow logs. @@ -36622,26 +36649,26 @@ proc validate_GetDeleteFlowLogs_615490(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615492 = query.getOrDefault("DryRun") - valid_615492 = validateParameter(valid_615492, JBool, required = false, default = nil) - if valid_615492 != nil: - section.add "DryRun", valid_615492 + var valid_615494 = query.getOrDefault("DryRun") + valid_615494 = validateParameter(valid_615494, JBool, required = false, default = nil) + if valid_615494 != nil: + section.add "DryRun", valid_615494 assert query != nil, "query argument is necessary due to required `FlowLogId` field" - var valid_615493 = query.getOrDefault("FlowLogId") - valid_615493 = validateParameter(valid_615493, JArray, required = true, default = nil) - if valid_615493 != nil: - section.add "FlowLogId", valid_615493 - var valid_615494 = query.getOrDefault("Action") - valid_615494 = validateParameter(valid_615494, JString, required = true, + var valid_615495 = query.getOrDefault("FlowLogId") + valid_615495 = validateParameter(valid_615495, JArray, required = true, default = nil) + if valid_615495 != nil: + section.add "FlowLogId", valid_615495 + var valid_615496 = query.getOrDefault("Action") + valid_615496 = validateParameter(valid_615496, JString, required = true, default = newJString("DeleteFlowLogs")) - if valid_615494 != nil: - section.add "Action", valid_615494 - var valid_615495 = query.getOrDefault("Version") - valid_615495 = validateParameter(valid_615495, JString, required = true, + if valid_615496 != nil: + section.add "Action", valid_615496 + var valid_615497 = query.getOrDefault("Version") + valid_615497 = validateParameter(valid_615497, JString, required = true, default = newJString("2016-11-15")) - if valid_615495 != nil: - section.add "Version", valid_615495 + if valid_615497 != nil: + section.add "Version", valid_615497 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -36652,61 +36679,61 @@ proc validate_GetDeleteFlowLogs_615490(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615496 = header.getOrDefault("X-Amz-Signature") - valid_615496 = validateParameter(valid_615496, JString, required = false, - default = nil) - if valid_615496 != nil: - section.add "X-Amz-Signature", valid_615496 - var valid_615497 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615497 = validateParameter(valid_615497, JString, required = false, - default = nil) - if valid_615497 != nil: - section.add "X-Amz-Content-Sha256", valid_615497 - var valid_615498 = header.getOrDefault("X-Amz-Date") + var valid_615498 = header.getOrDefault("X-Amz-Signature") valid_615498 = validateParameter(valid_615498, JString, required = false, default = nil) if valid_615498 != nil: - section.add "X-Amz-Date", valid_615498 - var valid_615499 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615498 + var valid_615499 = header.getOrDefault("X-Amz-Content-Sha256") valid_615499 = validateParameter(valid_615499, JString, required = false, default = nil) if valid_615499 != nil: - section.add "X-Amz-Credential", valid_615499 - var valid_615500 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615499 + var valid_615500 = header.getOrDefault("X-Amz-Date") valid_615500 = validateParameter(valid_615500, JString, required = false, default = nil) if valid_615500 != nil: - section.add "X-Amz-Security-Token", valid_615500 - var valid_615501 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615500 + var valid_615501 = header.getOrDefault("X-Amz-Credential") valid_615501 = validateParameter(valid_615501, JString, required = false, default = nil) if valid_615501 != nil: - section.add "X-Amz-Algorithm", valid_615501 - var valid_615502 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615501 + var valid_615502 = header.getOrDefault("X-Amz-Security-Token") valid_615502 = validateParameter(valid_615502, JString, required = false, default = nil) if valid_615502 != nil: - section.add "X-Amz-SignedHeaders", valid_615502 + section.add "X-Amz-Security-Token", valid_615502 + var valid_615503 = header.getOrDefault("X-Amz-Algorithm") + valid_615503 = validateParameter(valid_615503, JString, required = false, + default = nil) + if valid_615503 != nil: + section.add "X-Amz-Algorithm", valid_615503 + var valid_615504 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615504 = validateParameter(valid_615504, JString, required = false, + default = nil) + if valid_615504 != nil: + section.add "X-Amz-SignedHeaders", valid_615504 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615503: Call_GetDeleteFlowLogs_615489; path: JsonNode; +proc call*(call_615505: Call_GetDeleteFlowLogs_615491; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes one or more flow logs. ## - let valid = call_615503.validator(path, query, header, formData, body) - let scheme = call_615503.pickScheme + let valid = call_615505.validator(path, query, header, formData, body) + let scheme = call_615505.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615503.url(scheme.get, call_615503.host, call_615503.base, - call_615503.route, valid.getOrDefault("path"), + let url = call_615505.url(scheme.get, call_615505.host, call_615505.base, + call_615505.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615503, url, valid) + result = atozHook(call_615505, url, valid) -proc call*(call_615504: Call_GetDeleteFlowLogs_615489; FlowLogId: JsonNode; +proc call*(call_615506: Call_GetDeleteFlowLogs_615491; FlowLogId: JsonNode; DryRun: bool = false; Action: string = "DeleteFlowLogs"; Version: string = "2016-11-15"): Recallable = ## getDeleteFlowLogs @@ -36717,22 +36744,22 @@ proc call*(call_615504: Call_GetDeleteFlowLogs_615489; FlowLogId: JsonNode; ## :

One or more flow log IDs.

Constraint: Maximum of 1000 flow log IDs.

## Action: string (required) ## Version: string (required) - var query_615505 = newJObject() - add(query_615505, "DryRun", newJBool(DryRun)) + var query_615507 = newJObject() + add(query_615507, "DryRun", newJBool(DryRun)) if FlowLogId != nil: - query_615505.add "FlowLogId", FlowLogId - add(query_615505, "Action", newJString(Action)) - add(query_615505, "Version", newJString(Version)) - result = call_615504.call(nil, query_615505, nil, nil, nil) + query_615507.add "FlowLogId", FlowLogId + add(query_615507, "Action", newJString(Action)) + add(query_615507, "Version", newJString(Version)) + result = call_615506.call(nil, query_615507, nil, nil, nil) -var getDeleteFlowLogs* = Call_GetDeleteFlowLogs_615489(name: "getDeleteFlowLogs", +var getDeleteFlowLogs* = Call_GetDeleteFlowLogs_615491(name: "getDeleteFlowLogs", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=DeleteFlowLogs", validator: validate_GetDeleteFlowLogs_615490, - base: "/", url: url_GetDeleteFlowLogs_615491, + route: "/#Action=DeleteFlowLogs", validator: validate_GetDeleteFlowLogs_615492, + base: "/", url: url_GetDeleteFlowLogs_615493, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteFpgaImage_615541 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteFpgaImage_615543(protocol: Scheme; host: string; base: string; + Call_PostDeleteFpgaImage_615543 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteFpgaImage_615545(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -36742,7 +36769,7 @@ proc url_PostDeleteFpgaImage_615543(protocol: Scheme; host: string; base: string else: result.path = base & route -proc validate_PostDeleteFpgaImage_615542(path: JsonNode; query: JsonNode; +proc validate_PostDeleteFpgaImage_615544(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified Amazon FPGA Image (AFI). @@ -36755,16 +36782,16 @@ proc validate_PostDeleteFpgaImage_615542(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615544 = query.getOrDefault("Action") - valid_615544 = validateParameter(valid_615544, JString, required = true, + var valid_615546 = query.getOrDefault("Action") + valid_615546 = validateParameter(valid_615546, JString, required = true, default = newJString("DeleteFpgaImage")) - if valid_615544 != nil: - section.add "Action", valid_615544 - var valid_615545 = query.getOrDefault("Version") - valid_615545 = validateParameter(valid_615545, JString, required = true, + if valid_615546 != nil: + section.add "Action", valid_615546 + var valid_615547 = query.getOrDefault("Version") + valid_615547 = validateParameter(valid_615547, JString, required = true, default = newJString("2016-11-15")) - if valid_615545 != nil: - section.add "Version", valid_615545 + if valid_615547 != nil: + section.add "Version", valid_615547 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -36775,41 +36802,41 @@ proc validate_PostDeleteFpgaImage_615542(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615546 = header.getOrDefault("X-Amz-Signature") - valid_615546 = validateParameter(valid_615546, JString, required = false, - default = nil) - if valid_615546 != nil: - section.add "X-Amz-Signature", valid_615546 - var valid_615547 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615547 = validateParameter(valid_615547, JString, required = false, - default = nil) - if valid_615547 != nil: - section.add "X-Amz-Content-Sha256", valid_615547 - var valid_615548 = header.getOrDefault("X-Amz-Date") + var valid_615548 = header.getOrDefault("X-Amz-Signature") valid_615548 = validateParameter(valid_615548, JString, required = false, default = nil) if valid_615548 != nil: - section.add "X-Amz-Date", valid_615548 - var valid_615549 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615548 + var valid_615549 = header.getOrDefault("X-Amz-Content-Sha256") valid_615549 = validateParameter(valid_615549, JString, required = false, default = nil) if valid_615549 != nil: - section.add "X-Amz-Credential", valid_615549 - var valid_615550 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615549 + var valid_615550 = header.getOrDefault("X-Amz-Date") valid_615550 = validateParameter(valid_615550, JString, required = false, default = nil) if valid_615550 != nil: - section.add "X-Amz-Security-Token", valid_615550 - var valid_615551 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615550 + var valid_615551 = header.getOrDefault("X-Amz-Credential") valid_615551 = validateParameter(valid_615551, JString, required = false, default = nil) if valid_615551 != nil: - section.add "X-Amz-Algorithm", valid_615551 - var valid_615552 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615551 + var valid_615552 = header.getOrDefault("X-Amz-Security-Token") valid_615552 = validateParameter(valid_615552, JString, required = false, default = nil) if valid_615552 != nil: - section.add "X-Amz-SignedHeaders", valid_615552 + section.add "X-Amz-Security-Token", valid_615552 + var valid_615553 = header.getOrDefault("X-Amz-Algorithm") + valid_615553 = validateParameter(valid_615553, JString, required = false, + default = nil) + if valid_615553 != nil: + section.add "X-Amz-Algorithm", valid_615553 + var valid_615554 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615554 = validateParameter(valid_615554, JString, required = false, + default = nil) + if valid_615554 != nil: + section.add "X-Amz-SignedHeaders", valid_615554 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -36817,35 +36844,35 @@ proc validate_PostDeleteFpgaImage_615542(path: JsonNode; query: JsonNode; ## FpgaImageId: JString (required) ## : The ID of the AFI. section = newJObject() - var valid_615553 = formData.getOrDefault("DryRun") - valid_615553 = validateParameter(valid_615553, JBool, required = false, default = nil) - if valid_615553 != nil: - section.add "DryRun", valid_615553 + var valid_615555 = formData.getOrDefault("DryRun") + valid_615555 = validateParameter(valid_615555, JBool, required = false, default = nil) + if valid_615555 != nil: + section.add "DryRun", valid_615555 assert formData != nil, "formData argument is necessary due to required `FpgaImageId` field" - var valid_615554 = formData.getOrDefault("FpgaImageId") - valid_615554 = validateParameter(valid_615554, JString, required = true, + var valid_615556 = formData.getOrDefault("FpgaImageId") + valid_615556 = validateParameter(valid_615556, JString, required = true, default = nil) - if valid_615554 != nil: - section.add "FpgaImageId", valid_615554 + if valid_615556 != nil: + section.add "FpgaImageId", valid_615556 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615555: Call_PostDeleteFpgaImage_615541; path: JsonNode; +proc call*(call_615557: Call_PostDeleteFpgaImage_615543; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified Amazon FPGA Image (AFI). ## - let valid = call_615555.validator(path, query, header, formData, body) - let scheme = call_615555.pickScheme + let valid = call_615557.validator(path, query, header, formData, body) + let scheme = call_615557.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615555.url(scheme.get, call_615555.host, call_615555.base, - call_615555.route, valid.getOrDefault("path"), + let url = call_615557.url(scheme.get, call_615557.host, call_615557.base, + call_615557.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615555, url, valid) + result = atozHook(call_615557, url, valid) -proc call*(call_615556: Call_PostDeleteFpgaImage_615541; FpgaImageId: string; +proc call*(call_615558: Call_PostDeleteFpgaImage_615543; FpgaImageId: string; DryRun: bool = false; Action: string = "DeleteFpgaImage"; Version: string = "2016-11-15"): Recallable = ## postDeleteFpgaImage @@ -36856,22 +36883,22 @@ proc call*(call_615556: Call_PostDeleteFpgaImage_615541; FpgaImageId: string; ## : The ID of the AFI. ## Action: string (required) ## Version: string (required) - var query_615557 = newJObject() - var formData_615558 = newJObject() - add(formData_615558, "DryRun", newJBool(DryRun)) - add(formData_615558, "FpgaImageId", newJString(FpgaImageId)) - add(query_615557, "Action", newJString(Action)) - add(query_615557, "Version", newJString(Version)) - result = call_615556.call(nil, query_615557, nil, formData_615558, nil) + var query_615559 = newJObject() + var formData_615560 = newJObject() + add(formData_615560, "DryRun", newJBool(DryRun)) + add(formData_615560, "FpgaImageId", newJString(FpgaImageId)) + add(query_615559, "Action", newJString(Action)) + add(query_615559, "Version", newJString(Version)) + result = call_615558.call(nil, query_615559, nil, formData_615560, nil) -var postDeleteFpgaImage* = Call_PostDeleteFpgaImage_615541( +var postDeleteFpgaImage* = Call_PostDeleteFpgaImage_615543( name: "postDeleteFpgaImage", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteFpgaImage", - validator: validate_PostDeleteFpgaImage_615542, base: "/", - url: url_PostDeleteFpgaImage_615543, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDeleteFpgaImage_615544, base: "/", + url: url_PostDeleteFpgaImage_615545, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteFpgaImage_615524 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteFpgaImage_615526(protocol: Scheme; host: string; base: string; + Call_GetDeleteFpgaImage_615526 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteFpgaImage_615528(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -36881,7 +36908,7 @@ proc url_GetDeleteFpgaImage_615526(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetDeleteFpgaImage_615525(path: JsonNode; query: JsonNode; +proc validate_GetDeleteFpgaImage_615527(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified Amazon FPGA Image (AFI). @@ -36898,25 +36925,25 @@ proc validate_GetDeleteFpgaImage_615525(path: JsonNode; query: JsonNode; ## : The ID of the AFI. ## Version: JString (required) section = newJObject() - var valid_615527 = query.getOrDefault("DryRun") - valid_615527 = validateParameter(valid_615527, JBool, required = false, default = nil) - if valid_615527 != nil: - section.add "DryRun", valid_615527 - var valid_615528 = query.getOrDefault("Action") - valid_615528 = validateParameter(valid_615528, JString, required = true, - default = newJString("DeleteFpgaImage")) - if valid_615528 != nil: - section.add "Action", valid_615528 - var valid_615529 = query.getOrDefault("FpgaImageId") - valid_615529 = validateParameter(valid_615529, JString, required = true, - default = nil) + var valid_615529 = query.getOrDefault("DryRun") + valid_615529 = validateParameter(valid_615529, JBool, required = false, default = nil) if valid_615529 != nil: - section.add "FpgaImageId", valid_615529 - var valid_615530 = query.getOrDefault("Version") + section.add "DryRun", valid_615529 + var valid_615530 = query.getOrDefault("Action") valid_615530 = validateParameter(valid_615530, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("DeleteFpgaImage")) if valid_615530 != nil: - section.add "Version", valid_615530 + section.add "Action", valid_615530 + var valid_615531 = query.getOrDefault("FpgaImageId") + valid_615531 = validateParameter(valid_615531, JString, required = true, + default = nil) + if valid_615531 != nil: + section.add "FpgaImageId", valid_615531 + var valid_615532 = query.getOrDefault("Version") + valid_615532 = validateParameter(valid_615532, JString, required = true, + default = newJString("2016-11-15")) + if valid_615532 != nil: + section.add "Version", valid_615532 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -36927,61 +36954,61 @@ proc validate_GetDeleteFpgaImage_615525(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615531 = header.getOrDefault("X-Amz-Signature") - valid_615531 = validateParameter(valid_615531, JString, required = false, - default = nil) - if valid_615531 != nil: - section.add "X-Amz-Signature", valid_615531 - var valid_615532 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615532 = validateParameter(valid_615532, JString, required = false, - default = nil) - if valid_615532 != nil: - section.add "X-Amz-Content-Sha256", valid_615532 - var valid_615533 = header.getOrDefault("X-Amz-Date") + var valid_615533 = header.getOrDefault("X-Amz-Signature") valid_615533 = validateParameter(valid_615533, JString, required = false, default = nil) if valid_615533 != nil: - section.add "X-Amz-Date", valid_615533 - var valid_615534 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615533 + var valid_615534 = header.getOrDefault("X-Amz-Content-Sha256") valid_615534 = validateParameter(valid_615534, JString, required = false, default = nil) if valid_615534 != nil: - section.add "X-Amz-Credential", valid_615534 - var valid_615535 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615534 + var valid_615535 = header.getOrDefault("X-Amz-Date") valid_615535 = validateParameter(valid_615535, JString, required = false, default = nil) if valid_615535 != nil: - section.add "X-Amz-Security-Token", valid_615535 - var valid_615536 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615535 + var valid_615536 = header.getOrDefault("X-Amz-Credential") valid_615536 = validateParameter(valid_615536, JString, required = false, default = nil) if valid_615536 != nil: - section.add "X-Amz-Algorithm", valid_615536 - var valid_615537 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615536 + var valid_615537 = header.getOrDefault("X-Amz-Security-Token") valid_615537 = validateParameter(valid_615537, JString, required = false, default = nil) if valid_615537 != nil: - section.add "X-Amz-SignedHeaders", valid_615537 + section.add "X-Amz-Security-Token", valid_615537 + var valid_615538 = header.getOrDefault("X-Amz-Algorithm") + valid_615538 = validateParameter(valid_615538, JString, required = false, + default = nil) + if valid_615538 != nil: + section.add "X-Amz-Algorithm", valid_615538 + var valid_615539 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615539 = validateParameter(valid_615539, JString, required = false, + default = nil) + if valid_615539 != nil: + section.add "X-Amz-SignedHeaders", valid_615539 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615538: Call_GetDeleteFpgaImage_615524; path: JsonNode; +proc call*(call_615540: Call_GetDeleteFpgaImage_615526; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified Amazon FPGA Image (AFI). ## - let valid = call_615538.validator(path, query, header, formData, body) - let scheme = call_615538.pickScheme + let valid = call_615540.validator(path, query, header, formData, body) + let scheme = call_615540.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615538.url(scheme.get, call_615538.host, call_615538.base, - call_615538.route, valid.getOrDefault("path"), + let url = call_615540.url(scheme.get, call_615540.host, call_615540.base, + call_615540.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615538, url, valid) + result = atozHook(call_615540, url, valid) -proc call*(call_615539: Call_GetDeleteFpgaImage_615524; FpgaImageId: string; +proc call*(call_615541: Call_GetDeleteFpgaImage_615526; FpgaImageId: string; DryRun: bool = false; Action: string = "DeleteFpgaImage"; Version: string = "2016-11-15"): Recallable = ## getDeleteFpgaImage @@ -36992,21 +37019,21 @@ proc call*(call_615539: Call_GetDeleteFpgaImage_615524; FpgaImageId: string; ## FpgaImageId: string (required) ## : The ID of the AFI. ## Version: string (required) - var query_615540 = newJObject() - add(query_615540, "DryRun", newJBool(DryRun)) - add(query_615540, "Action", newJString(Action)) - add(query_615540, "FpgaImageId", newJString(FpgaImageId)) - add(query_615540, "Version", newJString(Version)) - result = call_615539.call(nil, query_615540, nil, nil, nil) + var query_615542 = newJObject() + add(query_615542, "DryRun", newJBool(DryRun)) + add(query_615542, "Action", newJString(Action)) + add(query_615542, "FpgaImageId", newJString(FpgaImageId)) + add(query_615542, "Version", newJString(Version)) + result = call_615541.call(nil, query_615542, nil, nil, nil) -var getDeleteFpgaImage* = Call_GetDeleteFpgaImage_615524( +var getDeleteFpgaImage* = Call_GetDeleteFpgaImage_615526( name: "getDeleteFpgaImage", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=DeleteFpgaImage", validator: validate_GetDeleteFpgaImage_615525, - base: "/", url: url_GetDeleteFpgaImage_615526, + route: "/#Action=DeleteFpgaImage", validator: validate_GetDeleteFpgaImage_615527, + base: "/", url: url_GetDeleteFpgaImage_615528, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteInternetGateway_615576 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteInternetGateway_615578(protocol: Scheme; host: string; + Call_PostDeleteInternetGateway_615578 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteInternetGateway_615580(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -37016,7 +37043,7 @@ proc url_PostDeleteInternetGateway_615578(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDeleteInternetGateway_615577(path: JsonNode; query: JsonNode; +proc validate_PostDeleteInternetGateway_615579(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified internet gateway. You must detach the internet gateway from the VPC before you can delete it. ## @@ -37028,16 +37055,16 @@ proc validate_PostDeleteInternetGateway_615577(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615579 = query.getOrDefault("Action") - valid_615579 = validateParameter(valid_615579, JString, required = true, + var valid_615581 = query.getOrDefault("Action") + valid_615581 = validateParameter(valid_615581, JString, required = true, default = newJString("DeleteInternetGateway")) - if valid_615579 != nil: - section.add "Action", valid_615579 - var valid_615580 = query.getOrDefault("Version") - valid_615580 = validateParameter(valid_615580, JString, required = true, + if valid_615581 != nil: + section.add "Action", valid_615581 + var valid_615582 = query.getOrDefault("Version") + valid_615582 = validateParameter(valid_615582, JString, required = true, default = newJString("2016-11-15")) - if valid_615580 != nil: - section.add "Version", valid_615580 + if valid_615582 != nil: + section.add "Version", valid_615582 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -37048,41 +37075,41 @@ proc validate_PostDeleteInternetGateway_615577(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615581 = header.getOrDefault("X-Amz-Signature") - valid_615581 = validateParameter(valid_615581, JString, required = false, - default = nil) - if valid_615581 != nil: - section.add "X-Amz-Signature", valid_615581 - var valid_615582 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615582 = validateParameter(valid_615582, JString, required = false, - default = nil) - if valid_615582 != nil: - section.add "X-Amz-Content-Sha256", valid_615582 - var valid_615583 = header.getOrDefault("X-Amz-Date") + var valid_615583 = header.getOrDefault("X-Amz-Signature") valid_615583 = validateParameter(valid_615583, JString, required = false, default = nil) if valid_615583 != nil: - section.add "X-Amz-Date", valid_615583 - var valid_615584 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615583 + var valid_615584 = header.getOrDefault("X-Amz-Content-Sha256") valid_615584 = validateParameter(valid_615584, JString, required = false, default = nil) if valid_615584 != nil: - section.add "X-Amz-Credential", valid_615584 - var valid_615585 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615584 + var valid_615585 = header.getOrDefault("X-Amz-Date") valid_615585 = validateParameter(valid_615585, JString, required = false, default = nil) if valid_615585 != nil: - section.add "X-Amz-Security-Token", valid_615585 - var valid_615586 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615585 + var valid_615586 = header.getOrDefault("X-Amz-Credential") valid_615586 = validateParameter(valid_615586, JString, required = false, default = nil) if valid_615586 != nil: - section.add "X-Amz-Algorithm", valid_615586 - var valid_615587 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615586 + var valid_615587 = header.getOrDefault("X-Amz-Security-Token") valid_615587 = validateParameter(valid_615587, JString, required = false, default = nil) if valid_615587 != nil: - section.add "X-Amz-SignedHeaders", valid_615587 + section.add "X-Amz-Security-Token", valid_615587 + var valid_615588 = header.getOrDefault("X-Amz-Algorithm") + valid_615588 = validateParameter(valid_615588, JString, required = false, + default = nil) + if valid_615588 != nil: + section.add "X-Amz-Algorithm", valid_615588 + var valid_615589 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615589 = validateParameter(valid_615589, JString, required = false, + default = nil) + if valid_615589 != nil: + section.add "X-Amz-SignedHeaders", valid_615589 result.add "header", section ## parameters in `formData` object: ## InternetGatewayId: JString (required) @@ -37091,33 +37118,33 @@ proc validate_PostDeleteInternetGateway_615577(path: JsonNode; query: JsonNode; ## : 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. section = newJObject() assert formData != nil, "formData argument is necessary due to required `InternetGatewayId` field" - var valid_615588 = formData.getOrDefault("InternetGatewayId") - valid_615588 = validateParameter(valid_615588, JString, required = true, + var valid_615590 = formData.getOrDefault("InternetGatewayId") + valid_615590 = validateParameter(valid_615590, JString, required = true, default = nil) - if valid_615588 != nil: - section.add "InternetGatewayId", valid_615588 - var valid_615589 = formData.getOrDefault("DryRun") - valid_615589 = validateParameter(valid_615589, JBool, required = false, default = nil) - if valid_615589 != nil: - section.add "DryRun", valid_615589 + if valid_615590 != nil: + section.add "InternetGatewayId", valid_615590 + var valid_615591 = formData.getOrDefault("DryRun") + valid_615591 = validateParameter(valid_615591, JBool, required = false, default = nil) + if valid_615591 != nil: + section.add "DryRun", valid_615591 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615590: Call_PostDeleteInternetGateway_615576; path: JsonNode; +proc call*(call_615592: Call_PostDeleteInternetGateway_615578; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified internet gateway. You must detach the internet gateway from the VPC before you can delete it. ## - let valid = call_615590.validator(path, query, header, formData, body) - let scheme = call_615590.pickScheme + let valid = call_615592.validator(path, query, header, formData, body) + let scheme = call_615592.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615590.url(scheme.get, call_615590.host, call_615590.base, - call_615590.route, valid.getOrDefault("path"), + let url = call_615592.url(scheme.get, call_615592.host, call_615592.base, + call_615592.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615590, url, valid) + result = atozHook(call_615592, url, valid) -proc call*(call_615591: Call_PostDeleteInternetGateway_615576; +proc call*(call_615593: Call_PostDeleteInternetGateway_615578; InternetGatewayId: string; DryRun: bool = false; Action: string = "DeleteInternetGateway"; Version: string = "2016-11-15"): Recallable = ## postDeleteInternetGateway @@ -37128,23 +37155,23 @@ proc call*(call_615591: Call_PostDeleteInternetGateway_615576; ## : 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. ## Action: string (required) ## Version: string (required) - var query_615592 = newJObject() - var formData_615593 = newJObject() - add(formData_615593, "InternetGatewayId", newJString(InternetGatewayId)) - add(formData_615593, "DryRun", newJBool(DryRun)) - add(query_615592, "Action", newJString(Action)) - add(query_615592, "Version", newJString(Version)) - result = call_615591.call(nil, query_615592, nil, formData_615593, nil) + var query_615594 = newJObject() + var formData_615595 = newJObject() + add(formData_615595, "InternetGatewayId", newJString(InternetGatewayId)) + add(formData_615595, "DryRun", newJBool(DryRun)) + add(query_615594, "Action", newJString(Action)) + add(query_615594, "Version", newJString(Version)) + result = call_615593.call(nil, query_615594, nil, formData_615595, nil) -var postDeleteInternetGateway* = Call_PostDeleteInternetGateway_615576( +var postDeleteInternetGateway* = Call_PostDeleteInternetGateway_615578( name: "postDeleteInternetGateway", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteInternetGateway", - validator: validate_PostDeleteInternetGateway_615577, base: "/", - url: url_PostDeleteInternetGateway_615578, + validator: validate_PostDeleteInternetGateway_615579, base: "/", + url: url_PostDeleteInternetGateway_615580, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteInternetGateway_615559 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteInternetGateway_615561(protocol: Scheme; host: string; + Call_GetDeleteInternetGateway_615561 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteInternetGateway_615563(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -37155,7 +37182,7 @@ proc url_GetDeleteInternetGateway_615561(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDeleteInternetGateway_615560(path: JsonNode; query: JsonNode; +proc validate_GetDeleteInternetGateway_615562(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified internet gateway. You must detach the internet gateway from the VPC before you can delete it. ## @@ -37171,25 +37198,25 @@ proc validate_GetDeleteInternetGateway_615560(path: JsonNode; query: JsonNode; ## InternetGatewayId: JString (required) ## : The ID of the internet gateway. section = newJObject() - var valid_615562 = query.getOrDefault("DryRun") - valid_615562 = validateParameter(valid_615562, JBool, required = false, default = nil) - if valid_615562 != nil: - section.add "DryRun", valid_615562 - var valid_615563 = query.getOrDefault("Action") - valid_615563 = validateParameter(valid_615563, JString, required = true, - default = newJString("DeleteInternetGateway")) - if valid_615563 != nil: - section.add "Action", valid_615563 - var valid_615564 = query.getOrDefault("Version") - valid_615564 = validateParameter(valid_615564, JString, required = true, - default = newJString("2016-11-15")) + var valid_615564 = query.getOrDefault("DryRun") + valid_615564 = validateParameter(valid_615564, JBool, required = false, default = nil) if valid_615564 != nil: - section.add "Version", valid_615564 - var valid_615565 = query.getOrDefault("InternetGatewayId") + section.add "DryRun", valid_615564 + var valid_615565 = query.getOrDefault("Action") valid_615565 = validateParameter(valid_615565, JString, required = true, - default = nil) + default = newJString("DeleteInternetGateway")) if valid_615565 != nil: - section.add "InternetGatewayId", valid_615565 + section.add "Action", valid_615565 + var valid_615566 = query.getOrDefault("Version") + valid_615566 = validateParameter(valid_615566, JString, required = true, + default = newJString("2016-11-15")) + if valid_615566 != nil: + section.add "Version", valid_615566 + var valid_615567 = query.getOrDefault("InternetGatewayId") + valid_615567 = validateParameter(valid_615567, JString, required = true, + default = nil) + if valid_615567 != nil: + section.add "InternetGatewayId", valid_615567 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -37200,61 +37227,61 @@ proc validate_GetDeleteInternetGateway_615560(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615566 = header.getOrDefault("X-Amz-Signature") - valid_615566 = validateParameter(valid_615566, JString, required = false, - default = nil) - if valid_615566 != nil: - section.add "X-Amz-Signature", valid_615566 - var valid_615567 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615567 = validateParameter(valid_615567, JString, required = false, - default = nil) - if valid_615567 != nil: - section.add "X-Amz-Content-Sha256", valid_615567 - var valid_615568 = header.getOrDefault("X-Amz-Date") + var valid_615568 = header.getOrDefault("X-Amz-Signature") valid_615568 = validateParameter(valid_615568, JString, required = false, default = nil) if valid_615568 != nil: - section.add "X-Amz-Date", valid_615568 - var valid_615569 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615568 + var valid_615569 = header.getOrDefault("X-Amz-Content-Sha256") valid_615569 = validateParameter(valid_615569, JString, required = false, default = nil) if valid_615569 != nil: - section.add "X-Amz-Credential", valid_615569 - var valid_615570 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615569 + var valid_615570 = header.getOrDefault("X-Amz-Date") valid_615570 = validateParameter(valid_615570, JString, required = false, default = nil) if valid_615570 != nil: - section.add "X-Amz-Security-Token", valid_615570 - var valid_615571 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615570 + var valid_615571 = header.getOrDefault("X-Amz-Credential") valid_615571 = validateParameter(valid_615571, JString, required = false, default = nil) if valid_615571 != nil: - section.add "X-Amz-Algorithm", valid_615571 - var valid_615572 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615571 + var valid_615572 = header.getOrDefault("X-Amz-Security-Token") valid_615572 = validateParameter(valid_615572, JString, required = false, default = nil) if valid_615572 != nil: - section.add "X-Amz-SignedHeaders", valid_615572 + section.add "X-Amz-Security-Token", valid_615572 + var valid_615573 = header.getOrDefault("X-Amz-Algorithm") + valid_615573 = validateParameter(valid_615573, JString, required = false, + default = nil) + if valid_615573 != nil: + section.add "X-Amz-Algorithm", valid_615573 + var valid_615574 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615574 = validateParameter(valid_615574, JString, required = false, + default = nil) + if valid_615574 != nil: + section.add "X-Amz-SignedHeaders", valid_615574 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615573: Call_GetDeleteInternetGateway_615559; path: JsonNode; +proc call*(call_615575: Call_GetDeleteInternetGateway_615561; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified internet gateway. You must detach the internet gateway from the VPC before you can delete it. ## - let valid = call_615573.validator(path, query, header, formData, body) - let scheme = call_615573.pickScheme + let valid = call_615575.validator(path, query, header, formData, body) + let scheme = call_615575.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615573.url(scheme.get, call_615573.host, call_615573.base, - call_615573.route, valid.getOrDefault("path"), + let url = call_615575.url(scheme.get, call_615575.host, call_615575.base, + call_615575.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615573, url, valid) + result = atozHook(call_615575, url, valid) -proc call*(call_615574: Call_GetDeleteInternetGateway_615559; +proc call*(call_615576: Call_GetDeleteInternetGateway_615561; InternetGatewayId: string; DryRun: bool = false; Action: string = "DeleteInternetGateway"; Version: string = "2016-11-15"): Recallable = ## getDeleteInternetGateway @@ -37265,21 +37292,21 @@ proc call*(call_615574: Call_GetDeleteInternetGateway_615559; ## Version: string (required) ## InternetGatewayId: string (required) ## : The ID of the internet gateway. - var query_615575 = newJObject() - add(query_615575, "DryRun", newJBool(DryRun)) - add(query_615575, "Action", newJString(Action)) - add(query_615575, "Version", newJString(Version)) - add(query_615575, "InternetGatewayId", newJString(InternetGatewayId)) - result = call_615574.call(nil, query_615575, nil, nil, nil) - -var getDeleteInternetGateway* = Call_GetDeleteInternetGateway_615559( + var query_615577 = newJObject() + add(query_615577, "DryRun", newJBool(DryRun)) + add(query_615577, "Action", newJString(Action)) + add(query_615577, "Version", newJString(Version)) + add(query_615577, "InternetGatewayId", newJString(InternetGatewayId)) + result = call_615576.call(nil, query_615577, nil, nil, nil) + +var getDeleteInternetGateway* = Call_GetDeleteInternetGateway_615561( name: "getDeleteInternetGateway", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteInternetGateway", - validator: validate_GetDeleteInternetGateway_615560, base: "/", - url: url_GetDeleteInternetGateway_615561, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDeleteInternetGateway_615562, base: "/", + url: url_GetDeleteInternetGateway_615563, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteKeyPair_615611 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteKeyPair_615613(protocol: Scheme; host: string; base: string; + Call_PostDeleteKeyPair_615613 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteKeyPair_615615(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -37289,7 +37316,7 @@ proc url_PostDeleteKeyPair_615613(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostDeleteKeyPair_615612(path: JsonNode; query: JsonNode; +proc validate_PostDeleteKeyPair_615614(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified key pair, by removing the public key from Amazon EC2. @@ -37302,16 +37329,16 @@ proc validate_PostDeleteKeyPair_615612(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615614 = query.getOrDefault("Action") - valid_615614 = validateParameter(valid_615614, JString, required = true, + var valid_615616 = query.getOrDefault("Action") + valid_615616 = validateParameter(valid_615616, JString, required = true, default = newJString("DeleteKeyPair")) - if valid_615614 != nil: - section.add "Action", valid_615614 - var valid_615615 = query.getOrDefault("Version") - valid_615615 = validateParameter(valid_615615, JString, required = true, + if valid_615616 != nil: + section.add "Action", valid_615616 + var valid_615617 = query.getOrDefault("Version") + valid_615617 = validateParameter(valid_615617, JString, required = true, default = newJString("2016-11-15")) - if valid_615615 != nil: - section.add "Version", valid_615615 + if valid_615617 != nil: + section.add "Version", valid_615617 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -37322,41 +37349,41 @@ proc validate_PostDeleteKeyPair_615612(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615616 = header.getOrDefault("X-Amz-Signature") - valid_615616 = validateParameter(valid_615616, JString, required = false, - default = nil) - if valid_615616 != nil: - section.add "X-Amz-Signature", valid_615616 - var valid_615617 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615617 = validateParameter(valid_615617, JString, required = false, - default = nil) - if valid_615617 != nil: - section.add "X-Amz-Content-Sha256", valid_615617 - var valid_615618 = header.getOrDefault("X-Amz-Date") + var valid_615618 = header.getOrDefault("X-Amz-Signature") valid_615618 = validateParameter(valid_615618, JString, required = false, default = nil) if valid_615618 != nil: - section.add "X-Amz-Date", valid_615618 - var valid_615619 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615618 + var valid_615619 = header.getOrDefault("X-Amz-Content-Sha256") valid_615619 = validateParameter(valid_615619, JString, required = false, default = nil) if valid_615619 != nil: - section.add "X-Amz-Credential", valid_615619 - var valid_615620 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615619 + var valid_615620 = header.getOrDefault("X-Amz-Date") valid_615620 = validateParameter(valid_615620, JString, required = false, default = nil) if valid_615620 != nil: - section.add "X-Amz-Security-Token", valid_615620 - var valid_615621 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615620 + var valid_615621 = header.getOrDefault("X-Amz-Credential") valid_615621 = validateParameter(valid_615621, JString, required = false, default = nil) if valid_615621 != nil: - section.add "X-Amz-Algorithm", valid_615621 - var valid_615622 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615621 + var valid_615622 = header.getOrDefault("X-Amz-Security-Token") valid_615622 = validateParameter(valid_615622, JString, required = false, default = nil) if valid_615622 != nil: - section.add "X-Amz-SignedHeaders", valid_615622 + section.add "X-Amz-Security-Token", valid_615622 + var valid_615623 = header.getOrDefault("X-Amz-Algorithm") + valid_615623 = validateParameter(valid_615623, JString, required = false, + default = nil) + if valid_615623 != nil: + section.add "X-Amz-Algorithm", valid_615623 + var valid_615624 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615624 = validateParameter(valid_615624, JString, required = false, + default = nil) + if valid_615624 != nil: + section.add "X-Amz-SignedHeaders", valid_615624 result.add "header", section ## parameters in `formData` object: ## KeyName: JString (required) @@ -37366,33 +37393,33 @@ proc validate_PostDeleteKeyPair_615612(path: JsonNode; query: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `KeyName` field" - var valid_615623 = formData.getOrDefault("KeyName") - valid_615623 = validateParameter(valid_615623, JString, required = true, + var valid_615625 = formData.getOrDefault("KeyName") + valid_615625 = validateParameter(valid_615625, JString, required = true, default = nil) - if valid_615623 != nil: - section.add "KeyName", valid_615623 - var valid_615624 = formData.getOrDefault("DryRun") - valid_615624 = validateParameter(valid_615624, JBool, required = false, default = nil) - if valid_615624 != nil: - section.add "DryRun", valid_615624 + if valid_615625 != nil: + section.add "KeyName", valid_615625 + var valid_615626 = formData.getOrDefault("DryRun") + valid_615626 = validateParameter(valid_615626, JBool, required = false, default = nil) + if valid_615626 != nil: + section.add "DryRun", valid_615626 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615625: Call_PostDeleteKeyPair_615611; path: JsonNode; +proc call*(call_615627: Call_PostDeleteKeyPair_615613; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified key pair, by removing the public key from Amazon EC2. ## - let valid = call_615625.validator(path, query, header, formData, body) - let scheme = call_615625.pickScheme + let valid = call_615627.validator(path, query, header, formData, body) + let scheme = call_615627.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615625.url(scheme.get, call_615625.host, call_615625.base, - call_615625.route, valid.getOrDefault("path"), + let url = call_615627.url(scheme.get, call_615627.host, call_615627.base, + call_615627.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615625, url, valid) + result = atozHook(call_615627, url, valid) -proc call*(call_615626: Call_PostDeleteKeyPair_615611; KeyName: string; +proc call*(call_615628: Call_PostDeleteKeyPair_615613; KeyName: string; DryRun: bool = false; Action: string = "DeleteKeyPair"; Version: string = "2016-11-15"): Recallable = ## postDeleteKeyPair @@ -37403,22 +37430,22 @@ proc call*(call_615626: Call_PostDeleteKeyPair_615611; KeyName: string; ## : 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. ## Action: string (required) ## Version: string (required) - var query_615627 = newJObject() - var formData_615628 = newJObject() - add(formData_615628, "KeyName", newJString(KeyName)) - add(formData_615628, "DryRun", newJBool(DryRun)) - add(query_615627, "Action", newJString(Action)) - add(query_615627, "Version", newJString(Version)) - result = call_615626.call(nil, query_615627, nil, formData_615628, nil) + var query_615629 = newJObject() + var formData_615630 = newJObject() + add(formData_615630, "KeyName", newJString(KeyName)) + add(formData_615630, "DryRun", newJBool(DryRun)) + add(query_615629, "Action", newJString(Action)) + add(query_615629, "Version", newJString(Version)) + result = call_615628.call(nil, query_615629, nil, formData_615630, nil) -var postDeleteKeyPair* = Call_PostDeleteKeyPair_615611(name: "postDeleteKeyPair", +var postDeleteKeyPair* = Call_PostDeleteKeyPair_615613(name: "postDeleteKeyPair", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", - route: "/#Action=DeleteKeyPair", validator: validate_PostDeleteKeyPair_615612, - base: "/", url: url_PostDeleteKeyPair_615613, + route: "/#Action=DeleteKeyPair", validator: validate_PostDeleteKeyPair_615614, + base: "/", url: url_PostDeleteKeyPair_615615, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteKeyPair_615594 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteKeyPair_615596(protocol: Scheme; host: string; base: string; + Call_GetDeleteKeyPair_615596 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteKeyPair_615598(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -37428,7 +37455,7 @@ proc url_GetDeleteKeyPair_615596(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetDeleteKeyPair_615595(path: JsonNode; query: JsonNode; +proc validate_GetDeleteKeyPair_615597(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified key pair, by removing the public key from Amazon EC2. @@ -37446,25 +37473,25 @@ proc validate_GetDeleteKeyPair_615595(path: JsonNode; query: JsonNode; ## Version: JString (required) section = newJObject() assert query != nil, "query argument is necessary due to required `KeyName` field" - var valid_615597 = query.getOrDefault("KeyName") - valid_615597 = validateParameter(valid_615597, JString, required = true, - default = nil) - if valid_615597 != nil: - section.add "KeyName", valid_615597 - var valid_615598 = query.getOrDefault("DryRun") - valid_615598 = validateParameter(valid_615598, JBool, required = false, default = nil) - if valid_615598 != nil: - section.add "DryRun", valid_615598 - var valid_615599 = query.getOrDefault("Action") + var valid_615599 = query.getOrDefault("KeyName") valid_615599 = validateParameter(valid_615599, JString, required = true, - default = newJString("DeleteKeyPair")) + default = nil) if valid_615599 != nil: - section.add "Action", valid_615599 - var valid_615600 = query.getOrDefault("Version") - valid_615600 = validateParameter(valid_615600, JString, required = true, - default = newJString("2016-11-15")) + section.add "KeyName", valid_615599 + var valid_615600 = query.getOrDefault("DryRun") + valid_615600 = validateParameter(valid_615600, JBool, required = false, default = nil) if valid_615600 != nil: - section.add "Version", valid_615600 + section.add "DryRun", valid_615600 + var valid_615601 = query.getOrDefault("Action") + valid_615601 = validateParameter(valid_615601, JString, required = true, + default = newJString("DeleteKeyPair")) + if valid_615601 != nil: + section.add "Action", valid_615601 + var valid_615602 = query.getOrDefault("Version") + valid_615602 = validateParameter(valid_615602, JString, required = true, + default = newJString("2016-11-15")) + if valid_615602 != nil: + section.add "Version", valid_615602 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -37475,61 +37502,61 @@ proc validate_GetDeleteKeyPair_615595(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615601 = header.getOrDefault("X-Amz-Signature") - valid_615601 = validateParameter(valid_615601, JString, required = false, - default = nil) - if valid_615601 != nil: - section.add "X-Amz-Signature", valid_615601 - var valid_615602 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615602 = validateParameter(valid_615602, JString, required = false, - default = nil) - if valid_615602 != nil: - section.add "X-Amz-Content-Sha256", valid_615602 - var valid_615603 = header.getOrDefault("X-Amz-Date") + var valid_615603 = header.getOrDefault("X-Amz-Signature") valid_615603 = validateParameter(valid_615603, JString, required = false, default = nil) if valid_615603 != nil: - section.add "X-Amz-Date", valid_615603 - var valid_615604 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615603 + var valid_615604 = header.getOrDefault("X-Amz-Content-Sha256") valid_615604 = validateParameter(valid_615604, JString, required = false, default = nil) if valid_615604 != nil: - section.add "X-Amz-Credential", valid_615604 - var valid_615605 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615604 + var valid_615605 = header.getOrDefault("X-Amz-Date") valid_615605 = validateParameter(valid_615605, JString, required = false, default = nil) if valid_615605 != nil: - section.add "X-Amz-Security-Token", valid_615605 - var valid_615606 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615605 + var valid_615606 = header.getOrDefault("X-Amz-Credential") valid_615606 = validateParameter(valid_615606, JString, required = false, default = nil) if valid_615606 != nil: - section.add "X-Amz-Algorithm", valid_615606 - var valid_615607 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615606 + var valid_615607 = header.getOrDefault("X-Amz-Security-Token") valid_615607 = validateParameter(valid_615607, JString, required = false, default = nil) if valid_615607 != nil: - section.add "X-Amz-SignedHeaders", valid_615607 + section.add "X-Amz-Security-Token", valid_615607 + var valid_615608 = header.getOrDefault("X-Amz-Algorithm") + valid_615608 = validateParameter(valid_615608, JString, required = false, + default = nil) + if valid_615608 != nil: + section.add "X-Amz-Algorithm", valid_615608 + var valid_615609 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615609 = validateParameter(valid_615609, JString, required = false, + default = nil) + if valid_615609 != nil: + section.add "X-Amz-SignedHeaders", valid_615609 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615608: Call_GetDeleteKeyPair_615594; path: JsonNode; +proc call*(call_615610: Call_GetDeleteKeyPair_615596; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified key pair, by removing the public key from Amazon EC2. ## - let valid = call_615608.validator(path, query, header, formData, body) - let scheme = call_615608.pickScheme + let valid = call_615610.validator(path, query, header, formData, body) + let scheme = call_615610.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615608.url(scheme.get, call_615608.host, call_615608.base, - call_615608.route, valid.getOrDefault("path"), + let url = call_615610.url(scheme.get, call_615610.host, call_615610.base, + call_615610.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615608, url, valid) + result = atozHook(call_615610, url, valid) -proc call*(call_615609: Call_GetDeleteKeyPair_615594; KeyName: string; +proc call*(call_615611: Call_GetDeleteKeyPair_615596; KeyName: string; DryRun: bool = false; Action: string = "DeleteKeyPair"; Version: string = "2016-11-15"): Recallable = ## getDeleteKeyPair @@ -37540,21 +37567,21 @@ proc call*(call_615609: Call_GetDeleteKeyPair_615594; KeyName: string; ## : 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. ## Action: string (required) ## Version: string (required) - var query_615610 = newJObject() - add(query_615610, "KeyName", newJString(KeyName)) - add(query_615610, "DryRun", newJBool(DryRun)) - add(query_615610, "Action", newJString(Action)) - add(query_615610, "Version", newJString(Version)) - result = call_615609.call(nil, query_615610, nil, nil, nil) + var query_615612 = newJObject() + add(query_615612, "KeyName", newJString(KeyName)) + add(query_615612, "DryRun", newJBool(DryRun)) + add(query_615612, "Action", newJString(Action)) + add(query_615612, "Version", newJString(Version)) + result = call_615611.call(nil, query_615612, nil, nil, nil) -var getDeleteKeyPair* = Call_GetDeleteKeyPair_615594(name: "getDeleteKeyPair", +var getDeleteKeyPair* = Call_GetDeleteKeyPair_615596(name: "getDeleteKeyPair", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=DeleteKeyPair", validator: validate_GetDeleteKeyPair_615595, - base: "/", url: url_GetDeleteKeyPair_615596, + route: "/#Action=DeleteKeyPair", validator: validate_GetDeleteKeyPair_615597, + base: "/", url: url_GetDeleteKeyPair_615598, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteLaunchTemplate_615647 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteLaunchTemplate_615649(protocol: Scheme; host: string; + Call_PostDeleteLaunchTemplate_615649 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteLaunchTemplate_615651(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -37565,7 +37592,7 @@ proc url_PostDeleteLaunchTemplate_615649(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDeleteLaunchTemplate_615648(path: JsonNode; query: JsonNode; +proc validate_PostDeleteLaunchTemplate_615650(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes a launch template. Deleting a launch template deletes all of its versions. ## @@ -37577,16 +37604,16 @@ proc validate_PostDeleteLaunchTemplate_615648(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615650 = query.getOrDefault("Action") - valid_615650 = validateParameter(valid_615650, JString, required = true, + var valid_615652 = query.getOrDefault("Action") + valid_615652 = validateParameter(valid_615652, JString, required = true, default = newJString("DeleteLaunchTemplate")) - if valid_615650 != nil: - section.add "Action", valid_615650 - var valid_615651 = query.getOrDefault("Version") - valid_615651 = validateParameter(valid_615651, JString, required = true, + if valid_615652 != nil: + section.add "Action", valid_615652 + var valid_615653 = query.getOrDefault("Version") + valid_615653 = validateParameter(valid_615653, JString, required = true, default = newJString("2016-11-15")) - if valid_615651 != nil: - section.add "Version", valid_615651 + if valid_615653 != nil: + section.add "Version", valid_615653 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -37597,41 +37624,41 @@ proc validate_PostDeleteLaunchTemplate_615648(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615652 = header.getOrDefault("X-Amz-Signature") - valid_615652 = validateParameter(valid_615652, JString, required = false, - default = nil) - if valid_615652 != nil: - section.add "X-Amz-Signature", valid_615652 - var valid_615653 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615653 = validateParameter(valid_615653, JString, required = false, - default = nil) - if valid_615653 != nil: - section.add "X-Amz-Content-Sha256", valid_615653 - var valid_615654 = header.getOrDefault("X-Amz-Date") + var valid_615654 = header.getOrDefault("X-Amz-Signature") valid_615654 = validateParameter(valid_615654, JString, required = false, default = nil) if valid_615654 != nil: - section.add "X-Amz-Date", valid_615654 - var valid_615655 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615654 + var valid_615655 = header.getOrDefault("X-Amz-Content-Sha256") valid_615655 = validateParameter(valid_615655, JString, required = false, default = nil) if valid_615655 != nil: - section.add "X-Amz-Credential", valid_615655 - var valid_615656 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615655 + var valid_615656 = header.getOrDefault("X-Amz-Date") valid_615656 = validateParameter(valid_615656, JString, required = false, default = nil) if valid_615656 != nil: - section.add "X-Amz-Security-Token", valid_615656 - var valid_615657 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615656 + var valid_615657 = header.getOrDefault("X-Amz-Credential") valid_615657 = validateParameter(valid_615657, JString, required = false, default = nil) if valid_615657 != nil: - section.add "X-Amz-Algorithm", valid_615657 - var valid_615658 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615657 + var valid_615658 = header.getOrDefault("X-Amz-Security-Token") valid_615658 = validateParameter(valid_615658, JString, required = false, default = nil) if valid_615658 != nil: - section.add "X-Amz-SignedHeaders", valid_615658 + section.add "X-Amz-Security-Token", valid_615658 + var valid_615659 = header.getOrDefault("X-Amz-Algorithm") + valid_615659 = validateParameter(valid_615659, JString, required = false, + default = nil) + if valid_615659 != nil: + section.add "X-Amz-Algorithm", valid_615659 + var valid_615660 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615660 = validateParameter(valid_615660, JString, required = false, + default = nil) + if valid_615660 != nil: + section.add "X-Amz-SignedHeaders", valid_615660 result.add "header", section ## parameters in `formData` object: ## LaunchTemplateId: JString @@ -37641,38 +37668,38 @@ proc validate_PostDeleteLaunchTemplate_615648(path: JsonNode; query: JsonNode; ## LaunchTemplateName: JString ## : The name of the launch template. You must specify either the launch template ID or launch template name in the request. section = newJObject() - var valid_615659 = formData.getOrDefault("LaunchTemplateId") - valid_615659 = validateParameter(valid_615659, JString, required = false, - default = nil) - if valid_615659 != nil: - section.add "LaunchTemplateId", valid_615659 - var valid_615660 = formData.getOrDefault("DryRun") - valid_615660 = validateParameter(valid_615660, JBool, required = false, default = nil) - if valid_615660 != nil: - section.add "DryRun", valid_615660 - var valid_615661 = formData.getOrDefault("LaunchTemplateName") + var valid_615661 = formData.getOrDefault("LaunchTemplateId") valid_615661 = validateParameter(valid_615661, JString, required = false, default = nil) if valid_615661 != nil: - section.add "LaunchTemplateName", valid_615661 + section.add "LaunchTemplateId", valid_615661 + var valid_615662 = formData.getOrDefault("DryRun") + valid_615662 = validateParameter(valid_615662, JBool, required = false, default = nil) + if valid_615662 != nil: + section.add "DryRun", valid_615662 + var valid_615663 = formData.getOrDefault("LaunchTemplateName") + valid_615663 = validateParameter(valid_615663, JString, required = false, + default = nil) + if valid_615663 != nil: + section.add "LaunchTemplateName", valid_615663 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615662: Call_PostDeleteLaunchTemplate_615647; path: JsonNode; +proc call*(call_615664: Call_PostDeleteLaunchTemplate_615649; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes a launch template. Deleting a launch template deletes all of its versions. ## - let valid = call_615662.validator(path, query, header, formData, body) - let scheme = call_615662.pickScheme + let valid = call_615664.validator(path, query, header, formData, body) + let scheme = call_615664.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615662.url(scheme.get, call_615662.host, call_615662.base, - call_615662.route, valid.getOrDefault("path"), + let url = call_615664.url(scheme.get, call_615664.host, call_615664.base, + call_615664.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615662, url, valid) + result = atozHook(call_615664, url, valid) -proc call*(call_615663: Call_PostDeleteLaunchTemplate_615647; +proc call*(call_615665: Call_PostDeleteLaunchTemplate_615649; LaunchTemplateId: string = ""; DryRun: bool = false; Action: string = "DeleteLaunchTemplate"; Version: string = "2016-11-15"; LaunchTemplateName: string = ""): Recallable = @@ -37686,23 +37713,23 @@ proc call*(call_615663: Call_PostDeleteLaunchTemplate_615647; ## Version: string (required) ## LaunchTemplateName: string ## : The name of the launch template. You must specify either the launch template ID or launch template name in the request. - var query_615664 = newJObject() - var formData_615665 = newJObject() - add(formData_615665, "LaunchTemplateId", newJString(LaunchTemplateId)) - add(formData_615665, "DryRun", newJBool(DryRun)) - add(query_615664, "Action", newJString(Action)) - add(query_615664, "Version", newJString(Version)) - add(formData_615665, "LaunchTemplateName", newJString(LaunchTemplateName)) - result = call_615663.call(nil, query_615664, nil, formData_615665, nil) - -var postDeleteLaunchTemplate* = Call_PostDeleteLaunchTemplate_615647( + var query_615666 = newJObject() + var formData_615667 = newJObject() + add(formData_615667, "LaunchTemplateId", newJString(LaunchTemplateId)) + add(formData_615667, "DryRun", newJBool(DryRun)) + add(query_615666, "Action", newJString(Action)) + add(query_615666, "Version", newJString(Version)) + add(formData_615667, "LaunchTemplateName", newJString(LaunchTemplateName)) + result = call_615665.call(nil, query_615666, nil, formData_615667, nil) + +var postDeleteLaunchTemplate* = Call_PostDeleteLaunchTemplate_615649( name: "postDeleteLaunchTemplate", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteLaunchTemplate", - validator: validate_PostDeleteLaunchTemplate_615648, base: "/", - url: url_PostDeleteLaunchTemplate_615649, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDeleteLaunchTemplate_615650, base: "/", + url: url_PostDeleteLaunchTemplate_615651, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteLaunchTemplate_615629 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteLaunchTemplate_615631(protocol: Scheme; host: string; base: string; + Call_GetDeleteLaunchTemplate_615631 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteLaunchTemplate_615633(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -37713,7 +37740,7 @@ proc url_GetDeleteLaunchTemplate_615631(protocol: Scheme; host: string; base: st else: result.path = base & route -proc validate_GetDeleteLaunchTemplate_615630(path: JsonNode; query: JsonNode; +proc validate_GetDeleteLaunchTemplate_615632(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes a launch template. Deleting a launch template deletes all of its versions. ## @@ -37731,30 +37758,30 @@ proc validate_GetDeleteLaunchTemplate_615630(path: JsonNode; query: JsonNode; ## LaunchTemplateName: JString ## : The name of the launch template. You must specify either the launch template ID or launch template name in the request. section = newJObject() - var valid_615632 = query.getOrDefault("DryRun") - valid_615632 = validateParameter(valid_615632, JBool, required = false, default = nil) - if valid_615632 != nil: - section.add "DryRun", valid_615632 - var valid_615633 = query.getOrDefault("LaunchTemplateId") - valid_615633 = validateParameter(valid_615633, JString, required = false, - default = nil) - if valid_615633 != nil: - section.add "LaunchTemplateId", valid_615633 - var valid_615634 = query.getOrDefault("Action") - valid_615634 = validateParameter(valid_615634, JString, required = true, - default = newJString("DeleteLaunchTemplate")) + var valid_615634 = query.getOrDefault("DryRun") + valid_615634 = validateParameter(valid_615634, JBool, required = false, default = nil) if valid_615634 != nil: - section.add "Action", valid_615634 - var valid_615635 = query.getOrDefault("Version") - valid_615635 = validateParameter(valid_615635, JString, required = true, - default = newJString("2016-11-15")) - if valid_615635 != nil: - section.add "Version", valid_615635 - var valid_615636 = query.getOrDefault("LaunchTemplateName") - valid_615636 = validateParameter(valid_615636, JString, required = false, + section.add "DryRun", valid_615634 + var valid_615635 = query.getOrDefault("LaunchTemplateId") + valid_615635 = validateParameter(valid_615635, JString, required = false, default = nil) + if valid_615635 != nil: + section.add "LaunchTemplateId", valid_615635 + var valid_615636 = query.getOrDefault("Action") + valid_615636 = validateParameter(valid_615636, JString, required = true, + default = newJString("DeleteLaunchTemplate")) if valid_615636 != nil: - section.add "LaunchTemplateName", valid_615636 + section.add "Action", valid_615636 + var valid_615637 = query.getOrDefault("Version") + valid_615637 = validateParameter(valid_615637, JString, required = true, + default = newJString("2016-11-15")) + if valid_615637 != nil: + section.add "Version", valid_615637 + var valid_615638 = query.getOrDefault("LaunchTemplateName") + valid_615638 = validateParameter(valid_615638, JString, required = false, + default = nil) + if valid_615638 != nil: + section.add "LaunchTemplateName", valid_615638 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -37765,61 +37792,61 @@ proc validate_GetDeleteLaunchTemplate_615630(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615637 = header.getOrDefault("X-Amz-Signature") - valid_615637 = validateParameter(valid_615637, JString, required = false, - default = nil) - if valid_615637 != nil: - section.add "X-Amz-Signature", valid_615637 - var valid_615638 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615638 = validateParameter(valid_615638, JString, required = false, - default = nil) - if valid_615638 != nil: - section.add "X-Amz-Content-Sha256", valid_615638 - var valid_615639 = header.getOrDefault("X-Amz-Date") + var valid_615639 = header.getOrDefault("X-Amz-Signature") valid_615639 = validateParameter(valid_615639, JString, required = false, default = nil) if valid_615639 != nil: - section.add "X-Amz-Date", valid_615639 - var valid_615640 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615639 + var valid_615640 = header.getOrDefault("X-Amz-Content-Sha256") valid_615640 = validateParameter(valid_615640, JString, required = false, default = nil) if valid_615640 != nil: - section.add "X-Amz-Credential", valid_615640 - var valid_615641 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615640 + var valid_615641 = header.getOrDefault("X-Amz-Date") valid_615641 = validateParameter(valid_615641, JString, required = false, default = nil) if valid_615641 != nil: - section.add "X-Amz-Security-Token", valid_615641 - var valid_615642 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615641 + var valid_615642 = header.getOrDefault("X-Amz-Credential") valid_615642 = validateParameter(valid_615642, JString, required = false, default = nil) if valid_615642 != nil: - section.add "X-Amz-Algorithm", valid_615642 - var valid_615643 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615642 + var valid_615643 = header.getOrDefault("X-Amz-Security-Token") valid_615643 = validateParameter(valid_615643, JString, required = false, default = nil) if valid_615643 != nil: - section.add "X-Amz-SignedHeaders", valid_615643 + section.add "X-Amz-Security-Token", valid_615643 + var valid_615644 = header.getOrDefault("X-Amz-Algorithm") + valid_615644 = validateParameter(valid_615644, JString, required = false, + default = nil) + if valid_615644 != nil: + section.add "X-Amz-Algorithm", valid_615644 + var valid_615645 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615645 = validateParameter(valid_615645, JString, required = false, + default = nil) + if valid_615645 != nil: + section.add "X-Amz-SignedHeaders", valid_615645 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615644: Call_GetDeleteLaunchTemplate_615629; path: JsonNode; +proc call*(call_615646: Call_GetDeleteLaunchTemplate_615631; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes a launch template. Deleting a launch template deletes all of its versions. ## - let valid = call_615644.validator(path, query, header, formData, body) - let scheme = call_615644.pickScheme + let valid = call_615646.validator(path, query, header, formData, body) + let scheme = call_615646.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615644.url(scheme.get, call_615644.host, call_615644.base, - call_615644.route, valid.getOrDefault("path"), + let url = call_615646.url(scheme.get, call_615646.host, call_615646.base, + call_615646.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615644, url, valid) + result = atozHook(call_615646, url, valid) -proc call*(call_615645: Call_GetDeleteLaunchTemplate_615629; DryRun: bool = false; +proc call*(call_615647: Call_GetDeleteLaunchTemplate_615631; DryRun: bool = false; LaunchTemplateId: string = ""; Action: string = "DeleteLaunchTemplate"; Version: string = "2016-11-15"; LaunchTemplateName: string = ""): Recallable = ## getDeleteLaunchTemplate @@ -37832,22 +37859,22 @@ proc call*(call_615645: Call_GetDeleteLaunchTemplate_615629; DryRun: bool = fals ## Version: string (required) ## LaunchTemplateName: string ## : The name of the launch template. You must specify either the launch template ID or launch template name in the request. - var query_615646 = newJObject() - add(query_615646, "DryRun", newJBool(DryRun)) - add(query_615646, "LaunchTemplateId", newJString(LaunchTemplateId)) - add(query_615646, "Action", newJString(Action)) - add(query_615646, "Version", newJString(Version)) - add(query_615646, "LaunchTemplateName", newJString(LaunchTemplateName)) - result = call_615645.call(nil, query_615646, nil, nil, nil) - -var getDeleteLaunchTemplate* = Call_GetDeleteLaunchTemplate_615629( + var query_615648 = newJObject() + add(query_615648, "DryRun", newJBool(DryRun)) + add(query_615648, "LaunchTemplateId", newJString(LaunchTemplateId)) + add(query_615648, "Action", newJString(Action)) + add(query_615648, "Version", newJString(Version)) + add(query_615648, "LaunchTemplateName", newJString(LaunchTemplateName)) + result = call_615647.call(nil, query_615648, nil, nil, nil) + +var getDeleteLaunchTemplate* = Call_GetDeleteLaunchTemplate_615631( name: "getDeleteLaunchTemplate", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteLaunchTemplate", - validator: validate_GetDeleteLaunchTemplate_615630, base: "/", - url: url_GetDeleteLaunchTemplate_615631, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDeleteLaunchTemplate_615632, base: "/", + url: url_GetDeleteLaunchTemplate_615633, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteLaunchTemplateVersions_615685 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteLaunchTemplateVersions_615687(protocol: Scheme; host: string; + Call_PostDeleteLaunchTemplateVersions_615687 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteLaunchTemplateVersions_615689(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -37857,7 +37884,7 @@ proc url_PostDeleteLaunchTemplateVersions_615687(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDeleteLaunchTemplateVersions_615686(path: JsonNode; +proc validate_PostDeleteLaunchTemplateVersions_615688(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes one or more versions of a launch template. You cannot delete the default version of a launch template; you must first assign a different version as the default. If the default version is the only version for the launch template, you must delete the entire launch template using DeleteLaunchTemplate. ## @@ -37869,16 +37896,16 @@ proc validate_PostDeleteLaunchTemplateVersions_615686(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615688 = query.getOrDefault("Action") - valid_615688 = validateParameter(valid_615688, JString, required = true, default = newJString( + var valid_615690 = query.getOrDefault("Action") + valid_615690 = validateParameter(valid_615690, JString, required = true, default = newJString( "DeleteLaunchTemplateVersions")) - if valid_615688 != nil: - section.add "Action", valid_615688 - var valid_615689 = query.getOrDefault("Version") - valid_615689 = validateParameter(valid_615689, JString, required = true, + if valid_615690 != nil: + section.add "Action", valid_615690 + var valid_615691 = query.getOrDefault("Version") + valid_615691 = validateParameter(valid_615691, JString, required = true, default = newJString("2016-11-15")) - if valid_615689 != nil: - section.add "Version", valid_615689 + if valid_615691 != nil: + section.add "Version", valid_615691 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -37889,41 +37916,41 @@ proc validate_PostDeleteLaunchTemplateVersions_615686(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615690 = header.getOrDefault("X-Amz-Signature") - valid_615690 = validateParameter(valid_615690, JString, required = false, - default = nil) - if valid_615690 != nil: - section.add "X-Amz-Signature", valid_615690 - var valid_615691 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615691 = validateParameter(valid_615691, JString, required = false, - default = nil) - if valid_615691 != nil: - section.add "X-Amz-Content-Sha256", valid_615691 - var valid_615692 = header.getOrDefault("X-Amz-Date") + var valid_615692 = header.getOrDefault("X-Amz-Signature") valid_615692 = validateParameter(valid_615692, JString, required = false, default = nil) if valid_615692 != nil: - section.add "X-Amz-Date", valid_615692 - var valid_615693 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615692 + var valid_615693 = header.getOrDefault("X-Amz-Content-Sha256") valid_615693 = validateParameter(valid_615693, JString, required = false, default = nil) if valid_615693 != nil: - section.add "X-Amz-Credential", valid_615693 - var valid_615694 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615693 + var valid_615694 = header.getOrDefault("X-Amz-Date") valid_615694 = validateParameter(valid_615694, JString, required = false, default = nil) if valid_615694 != nil: - section.add "X-Amz-Security-Token", valid_615694 - var valid_615695 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615694 + var valid_615695 = header.getOrDefault("X-Amz-Credential") valid_615695 = validateParameter(valid_615695, JString, required = false, default = nil) if valid_615695 != nil: - section.add "X-Amz-Algorithm", valid_615695 - var valid_615696 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615695 + var valid_615696 = header.getOrDefault("X-Amz-Security-Token") valid_615696 = validateParameter(valid_615696, JString, required = false, default = nil) if valid_615696 != nil: - section.add "X-Amz-SignedHeaders", valid_615696 + section.add "X-Amz-Security-Token", valid_615696 + var valid_615697 = header.getOrDefault("X-Amz-Algorithm") + valid_615697 = validateParameter(valid_615697, JString, required = false, + default = nil) + if valid_615697 != nil: + section.add "X-Amz-Algorithm", valid_615697 + var valid_615698 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615698 = validateParameter(valid_615698, JString, required = false, + default = nil) + if valid_615698 != nil: + section.add "X-Amz-SignedHeaders", valid_615698 result.add "header", section ## parameters in `formData` object: ## LaunchTemplateId: JString @@ -37935,44 +37962,44 @@ proc validate_PostDeleteLaunchTemplateVersions_615686(path: JsonNode; ## LaunchTemplateName: JString ## : The name of the launch template. You must specify either the launch template ID or launch template name in the request. section = newJObject() - var valid_615697 = formData.getOrDefault("LaunchTemplateId") - valid_615697 = validateParameter(valid_615697, JString, required = false, + var valid_615699 = formData.getOrDefault("LaunchTemplateId") + valid_615699 = validateParameter(valid_615699, JString, required = false, default = nil) - if valid_615697 != nil: - section.add "LaunchTemplateId", valid_615697 - var valid_615698 = formData.getOrDefault("DryRun") - valid_615698 = validateParameter(valid_615698, JBool, required = false, default = nil) - if valid_615698 != nil: - section.add "DryRun", valid_615698 - assert formData != nil, "formData argument is necessary due to required `LaunchTemplateVersion` field" - var valid_615699 = formData.getOrDefault("LaunchTemplateVersion") - valid_615699 = validateParameter(valid_615699, JArray, required = true, default = nil) if valid_615699 != nil: - section.add "LaunchTemplateVersion", valid_615699 - var valid_615700 = formData.getOrDefault("LaunchTemplateName") - valid_615700 = validateParameter(valid_615700, JString, required = false, - default = nil) + section.add "LaunchTemplateId", valid_615699 + var valid_615700 = formData.getOrDefault("DryRun") + valid_615700 = validateParameter(valid_615700, JBool, required = false, default = nil) if valid_615700 != nil: - section.add "LaunchTemplateName", valid_615700 + section.add "DryRun", valid_615700 + assert formData != nil, "formData argument is necessary due to required `LaunchTemplateVersion` field" + var valid_615701 = formData.getOrDefault("LaunchTemplateVersion") + valid_615701 = validateParameter(valid_615701, JArray, required = true, default = nil) + if valid_615701 != nil: + section.add "LaunchTemplateVersion", valid_615701 + var valid_615702 = formData.getOrDefault("LaunchTemplateName") + valid_615702 = validateParameter(valid_615702, JString, required = false, + default = nil) + if valid_615702 != nil: + section.add "LaunchTemplateName", valid_615702 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615701: Call_PostDeleteLaunchTemplateVersions_615685; +proc call*(call_615703: Call_PostDeleteLaunchTemplateVersions_615687; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes one or more versions of a launch template. You cannot delete the default version of a launch template; you must first assign a different version as the default. If the default version is the only version for the launch template, you must delete the entire launch template using DeleteLaunchTemplate. ## - let valid = call_615701.validator(path, query, header, formData, body) - let scheme = call_615701.pickScheme + let valid = call_615703.validator(path, query, header, formData, body) + let scheme = call_615703.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615701.url(scheme.get, call_615701.host, call_615701.base, - call_615701.route, valid.getOrDefault("path"), + let url = call_615703.url(scheme.get, call_615703.host, call_615703.base, + call_615703.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615701, url, valid) + result = atozHook(call_615703, url, valid) -proc call*(call_615702: Call_PostDeleteLaunchTemplateVersions_615685; +proc call*(call_615704: Call_PostDeleteLaunchTemplateVersions_615687; LaunchTemplateVersion: JsonNode; LaunchTemplateId: string = ""; DryRun: bool = false; Action: string = "DeleteLaunchTemplateVersions"; Version: string = "2016-11-15"; LaunchTemplateName: string = ""): Recallable = @@ -37988,26 +38015,26 @@ proc call*(call_615702: Call_PostDeleteLaunchTemplateVersions_615685; ## Version: string (required) ## LaunchTemplateName: string ## : The name of the launch template. You must specify either the launch template ID or launch template name in the request. - var query_615703 = newJObject() - var formData_615704 = newJObject() - add(formData_615704, "LaunchTemplateId", newJString(LaunchTemplateId)) - add(formData_615704, "DryRun", newJBool(DryRun)) - add(query_615703, "Action", newJString(Action)) + var query_615705 = newJObject() + var formData_615706 = newJObject() + add(formData_615706, "LaunchTemplateId", newJString(LaunchTemplateId)) + add(formData_615706, "DryRun", newJBool(DryRun)) + add(query_615705, "Action", newJString(Action)) if LaunchTemplateVersion != nil: - formData_615704.add "LaunchTemplateVersion", LaunchTemplateVersion - add(query_615703, "Version", newJString(Version)) - add(formData_615704, "LaunchTemplateName", newJString(LaunchTemplateName)) - result = call_615702.call(nil, query_615703, nil, formData_615704, nil) + formData_615706.add "LaunchTemplateVersion", LaunchTemplateVersion + add(query_615705, "Version", newJString(Version)) + add(formData_615706, "LaunchTemplateName", newJString(LaunchTemplateName)) + result = call_615704.call(nil, query_615705, nil, formData_615706, nil) -var postDeleteLaunchTemplateVersions* = Call_PostDeleteLaunchTemplateVersions_615685( +var postDeleteLaunchTemplateVersions* = Call_PostDeleteLaunchTemplateVersions_615687( name: "postDeleteLaunchTemplateVersions", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteLaunchTemplateVersions", - validator: validate_PostDeleteLaunchTemplateVersions_615686, base: "/", - url: url_PostDeleteLaunchTemplateVersions_615687, + validator: validate_PostDeleteLaunchTemplateVersions_615688, base: "/", + url: url_PostDeleteLaunchTemplateVersions_615689, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteLaunchTemplateVersions_615666 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteLaunchTemplateVersions_615668(protocol: Scheme; host: string; + Call_GetDeleteLaunchTemplateVersions_615668 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteLaunchTemplateVersions_615670(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -38017,7 +38044,7 @@ proc url_GetDeleteLaunchTemplateVersions_615668(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDeleteLaunchTemplateVersions_615667(path: JsonNode; +proc validate_GetDeleteLaunchTemplateVersions_615669(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes one or more versions of a launch template. You cannot delete the default version of a launch template; you must first assign a different version as the default. If the default version is the only version for the launch template, you must delete the entire launch template using DeleteLaunchTemplate. ## @@ -38037,35 +38064,35 @@ proc validate_GetDeleteLaunchTemplateVersions_615667(path: JsonNode; ## LaunchTemplateName: JString ## : The name of the launch template. You must specify either the launch template ID or launch template name in the request. section = newJObject() - var valid_615669 = query.getOrDefault("DryRun") - valid_615669 = validateParameter(valid_615669, JBool, required = false, default = nil) - if valid_615669 != nil: - section.add "DryRun", valid_615669 + var valid_615671 = query.getOrDefault("DryRun") + valid_615671 = validateParameter(valid_615671, JBool, required = false, default = nil) + if valid_615671 != nil: + section.add "DryRun", valid_615671 assert query != nil, "query argument is necessary due to required `LaunchTemplateVersion` field" - var valid_615670 = query.getOrDefault("LaunchTemplateVersion") - valid_615670 = validateParameter(valid_615670, JArray, required = true, default = nil) - if valid_615670 != nil: - section.add "LaunchTemplateVersion", valid_615670 - var valid_615671 = query.getOrDefault("LaunchTemplateId") - valid_615671 = validateParameter(valid_615671, JString, required = false, + var valid_615672 = query.getOrDefault("LaunchTemplateVersion") + valid_615672 = validateParameter(valid_615672, JArray, required = true, default = nil) + if valid_615672 != nil: + section.add "LaunchTemplateVersion", valid_615672 + var valid_615673 = query.getOrDefault("LaunchTemplateId") + valid_615673 = validateParameter(valid_615673, JString, required = false, default = nil) - if valid_615671 != nil: - section.add "LaunchTemplateId", valid_615671 - var valid_615672 = query.getOrDefault("Action") - valid_615672 = validateParameter(valid_615672, JString, required = true, default = newJString( + if valid_615673 != nil: + section.add "LaunchTemplateId", valid_615673 + var valid_615674 = query.getOrDefault("Action") + valid_615674 = validateParameter(valid_615674, JString, required = true, default = newJString( "DeleteLaunchTemplateVersions")) - if valid_615672 != nil: - section.add "Action", valid_615672 - var valid_615673 = query.getOrDefault("Version") - valid_615673 = validateParameter(valid_615673, JString, required = true, + if valid_615674 != nil: + section.add "Action", valid_615674 + var valid_615675 = query.getOrDefault("Version") + valid_615675 = validateParameter(valid_615675, JString, required = true, default = newJString("2016-11-15")) - if valid_615673 != nil: - section.add "Version", valid_615673 - var valid_615674 = query.getOrDefault("LaunchTemplateName") - valid_615674 = validateParameter(valid_615674, JString, required = false, + if valid_615675 != nil: + section.add "Version", valid_615675 + var valid_615676 = query.getOrDefault("LaunchTemplateName") + valid_615676 = validateParameter(valid_615676, JString, required = false, default = nil) - if valid_615674 != nil: - section.add "LaunchTemplateName", valid_615674 + if valid_615676 != nil: + section.add "LaunchTemplateName", valid_615676 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -38076,62 +38103,62 @@ proc validate_GetDeleteLaunchTemplateVersions_615667(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615675 = header.getOrDefault("X-Amz-Signature") - valid_615675 = validateParameter(valid_615675, JString, required = false, - default = nil) - if valid_615675 != nil: - section.add "X-Amz-Signature", valid_615675 - var valid_615676 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615676 = validateParameter(valid_615676, JString, required = false, - default = nil) - if valid_615676 != nil: - section.add "X-Amz-Content-Sha256", valid_615676 - var valid_615677 = header.getOrDefault("X-Amz-Date") + var valid_615677 = header.getOrDefault("X-Amz-Signature") valid_615677 = validateParameter(valid_615677, JString, required = false, default = nil) if valid_615677 != nil: - section.add "X-Amz-Date", valid_615677 - var valid_615678 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615677 + var valid_615678 = header.getOrDefault("X-Amz-Content-Sha256") valid_615678 = validateParameter(valid_615678, JString, required = false, default = nil) if valid_615678 != nil: - section.add "X-Amz-Credential", valid_615678 - var valid_615679 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615678 + var valid_615679 = header.getOrDefault("X-Amz-Date") valid_615679 = validateParameter(valid_615679, JString, required = false, default = nil) if valid_615679 != nil: - section.add "X-Amz-Security-Token", valid_615679 - var valid_615680 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615679 + var valid_615680 = header.getOrDefault("X-Amz-Credential") valid_615680 = validateParameter(valid_615680, JString, required = false, default = nil) if valid_615680 != nil: - section.add "X-Amz-Algorithm", valid_615680 - var valid_615681 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615680 + var valid_615681 = header.getOrDefault("X-Amz-Security-Token") valid_615681 = validateParameter(valid_615681, JString, required = false, default = nil) if valid_615681 != nil: - section.add "X-Amz-SignedHeaders", valid_615681 + section.add "X-Amz-Security-Token", valid_615681 + var valid_615682 = header.getOrDefault("X-Amz-Algorithm") + valid_615682 = validateParameter(valid_615682, JString, required = false, + default = nil) + if valid_615682 != nil: + section.add "X-Amz-Algorithm", valid_615682 + var valid_615683 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615683 = validateParameter(valid_615683, JString, required = false, + default = nil) + if valid_615683 != nil: + section.add "X-Amz-SignedHeaders", valid_615683 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615682: Call_GetDeleteLaunchTemplateVersions_615666; +proc call*(call_615684: Call_GetDeleteLaunchTemplateVersions_615668; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes one or more versions of a launch template. You cannot delete the default version of a launch template; you must first assign a different version as the default. If the default version is the only version for the launch template, you must delete the entire launch template using DeleteLaunchTemplate. ## - let valid = call_615682.validator(path, query, header, formData, body) - let scheme = call_615682.pickScheme + let valid = call_615684.validator(path, query, header, formData, body) + let scheme = call_615684.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615682.url(scheme.get, call_615682.host, call_615682.base, - call_615682.route, valid.getOrDefault("path"), + let url = call_615684.url(scheme.get, call_615684.host, call_615684.base, + call_615684.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615682, url, valid) + result = atozHook(call_615684, url, valid) -proc call*(call_615683: Call_GetDeleteLaunchTemplateVersions_615666; +proc call*(call_615685: Call_GetDeleteLaunchTemplateVersions_615668; LaunchTemplateVersion: JsonNode; DryRun: bool = false; LaunchTemplateId: string = ""; Action: string = "DeleteLaunchTemplateVersions"; @@ -38148,25 +38175,25 @@ proc call*(call_615683: Call_GetDeleteLaunchTemplateVersions_615666; ## Version: string (required) ## LaunchTemplateName: string ## : The name of the launch template. You must specify either the launch template ID or launch template name in the request. - var query_615684 = newJObject() - add(query_615684, "DryRun", newJBool(DryRun)) + var query_615686 = newJObject() + add(query_615686, "DryRun", newJBool(DryRun)) if LaunchTemplateVersion != nil: - query_615684.add "LaunchTemplateVersion", LaunchTemplateVersion - add(query_615684, "LaunchTemplateId", newJString(LaunchTemplateId)) - add(query_615684, "Action", newJString(Action)) - add(query_615684, "Version", newJString(Version)) - add(query_615684, "LaunchTemplateName", newJString(LaunchTemplateName)) - result = call_615683.call(nil, query_615684, nil, nil, nil) - -var getDeleteLaunchTemplateVersions* = Call_GetDeleteLaunchTemplateVersions_615666( + query_615686.add "LaunchTemplateVersion", LaunchTemplateVersion + add(query_615686, "LaunchTemplateId", newJString(LaunchTemplateId)) + add(query_615686, "Action", newJString(Action)) + add(query_615686, "Version", newJString(Version)) + add(query_615686, "LaunchTemplateName", newJString(LaunchTemplateName)) + result = call_615685.call(nil, query_615686, nil, nil, nil) + +var getDeleteLaunchTemplateVersions* = Call_GetDeleteLaunchTemplateVersions_615668( name: "getDeleteLaunchTemplateVersions", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteLaunchTemplateVersions", - validator: validate_GetDeleteLaunchTemplateVersions_615667, base: "/", - url: url_GetDeleteLaunchTemplateVersions_615668, + validator: validate_GetDeleteLaunchTemplateVersions_615669, base: "/", + url: url_GetDeleteLaunchTemplateVersions_615670, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteLocalGatewayRoute_615723 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteLocalGatewayRoute_615725(protocol: Scheme; host: string; + Call_PostDeleteLocalGatewayRoute_615725 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteLocalGatewayRoute_615727(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -38176,7 +38203,7 @@ proc url_PostDeleteLocalGatewayRoute_615725(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDeleteLocalGatewayRoute_615724(path: JsonNode; query: JsonNode; +proc validate_PostDeleteLocalGatewayRoute_615726(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified route from the specified local gateway route table. ## @@ -38188,16 +38215,16 @@ proc validate_PostDeleteLocalGatewayRoute_615724(path: JsonNode; query: JsonNode ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615726 = query.getOrDefault("Action") - valid_615726 = validateParameter(valid_615726, JString, required = true, default = newJString( + var valid_615728 = query.getOrDefault("Action") + valid_615728 = validateParameter(valid_615728, JString, required = true, default = newJString( "DeleteLocalGatewayRoute")) - if valid_615726 != nil: - section.add "Action", valid_615726 - var valid_615727 = query.getOrDefault("Version") - valid_615727 = validateParameter(valid_615727, JString, required = true, + if valid_615728 != nil: + section.add "Action", valid_615728 + var valid_615729 = query.getOrDefault("Version") + valid_615729 = validateParameter(valid_615729, JString, required = true, default = newJString("2016-11-15")) - if valid_615727 != nil: - section.add "Version", valid_615727 + if valid_615729 != nil: + section.add "Version", valid_615729 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -38208,41 +38235,41 @@ proc validate_PostDeleteLocalGatewayRoute_615724(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615728 = header.getOrDefault("X-Amz-Signature") - valid_615728 = validateParameter(valid_615728, JString, required = false, - default = nil) - if valid_615728 != nil: - section.add "X-Amz-Signature", valid_615728 - var valid_615729 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615729 = validateParameter(valid_615729, JString, required = false, - default = nil) - if valid_615729 != nil: - section.add "X-Amz-Content-Sha256", valid_615729 - var valid_615730 = header.getOrDefault("X-Amz-Date") + var valid_615730 = header.getOrDefault("X-Amz-Signature") valid_615730 = validateParameter(valid_615730, JString, required = false, default = nil) if valid_615730 != nil: - section.add "X-Amz-Date", valid_615730 - var valid_615731 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615730 + var valid_615731 = header.getOrDefault("X-Amz-Content-Sha256") valid_615731 = validateParameter(valid_615731, JString, required = false, default = nil) if valid_615731 != nil: - section.add "X-Amz-Credential", valid_615731 - var valid_615732 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615731 + var valid_615732 = header.getOrDefault("X-Amz-Date") valid_615732 = validateParameter(valid_615732, JString, required = false, default = nil) if valid_615732 != nil: - section.add "X-Amz-Security-Token", valid_615732 - var valid_615733 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615732 + var valid_615733 = header.getOrDefault("X-Amz-Credential") valid_615733 = validateParameter(valid_615733, JString, required = false, default = nil) if valid_615733 != nil: - section.add "X-Amz-Algorithm", valid_615733 - var valid_615734 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615733 + var valid_615734 = header.getOrDefault("X-Amz-Security-Token") valid_615734 = validateParameter(valid_615734, JString, required = false, default = nil) if valid_615734 != nil: - section.add "X-Amz-SignedHeaders", valid_615734 + section.add "X-Amz-Security-Token", valid_615734 + var valid_615735 = header.getOrDefault("X-Amz-Algorithm") + valid_615735 = validateParameter(valid_615735, JString, required = false, + default = nil) + if valid_615735 != nil: + section.add "X-Amz-Algorithm", valid_615735 + var valid_615736 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615736 = validateParameter(valid_615736, JString, required = false, + default = nil) + if valid_615736 != nil: + section.add "X-Amz-SignedHeaders", valid_615736 result.add "header", section ## parameters in `formData` object: ## LocalGatewayRouteTableId: JString (required) @@ -38253,38 +38280,38 @@ proc validate_PostDeleteLocalGatewayRoute_615724(path: JsonNode; query: JsonNode ## : 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. section = newJObject() assert formData != nil, "formData argument is necessary due to required `LocalGatewayRouteTableId` field" - var valid_615735 = formData.getOrDefault("LocalGatewayRouteTableId") - valid_615735 = validateParameter(valid_615735, JString, required = true, + var valid_615737 = formData.getOrDefault("LocalGatewayRouteTableId") + valid_615737 = validateParameter(valid_615737, JString, required = true, default = nil) - if valid_615735 != nil: - section.add "LocalGatewayRouteTableId", valid_615735 - var valid_615736 = formData.getOrDefault("DestinationCidrBlock") - valid_615736 = validateParameter(valid_615736, JString, required = true, - default = nil) - if valid_615736 != nil: - section.add "DestinationCidrBlock", valid_615736 - var valid_615737 = formData.getOrDefault("DryRun") - valid_615737 = validateParameter(valid_615737, JBool, required = false, default = nil) if valid_615737 != nil: - section.add "DryRun", valid_615737 + section.add "LocalGatewayRouteTableId", valid_615737 + var valid_615738 = formData.getOrDefault("DestinationCidrBlock") + valid_615738 = validateParameter(valid_615738, JString, required = true, + default = nil) + if valid_615738 != nil: + section.add "DestinationCidrBlock", valid_615738 + var valid_615739 = formData.getOrDefault("DryRun") + valid_615739 = validateParameter(valid_615739, JBool, required = false, default = nil) + if valid_615739 != nil: + section.add "DryRun", valid_615739 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615738: Call_PostDeleteLocalGatewayRoute_615723; path: JsonNode; +proc call*(call_615740: Call_PostDeleteLocalGatewayRoute_615725; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified route from the specified local gateway route table. ## - let valid = call_615738.validator(path, query, header, formData, body) - let scheme = call_615738.pickScheme + let valid = call_615740.validator(path, query, header, formData, body) + let scheme = call_615740.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615738.url(scheme.get, call_615738.host, call_615738.base, - call_615738.route, valid.getOrDefault("path"), + let url = call_615740.url(scheme.get, call_615740.host, call_615740.base, + call_615740.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615738, url, valid) + result = atozHook(call_615740, url, valid) -proc call*(call_615739: Call_PostDeleteLocalGatewayRoute_615723; +proc call*(call_615741: Call_PostDeleteLocalGatewayRoute_615725; LocalGatewayRouteTableId: string; DestinationCidrBlock: string; DryRun: bool = false; Action: string = "DeleteLocalGatewayRoute"; Version: string = "2016-11-15"): Recallable = @@ -38298,25 +38325,25 @@ proc call*(call_615739: Call_PostDeleteLocalGatewayRoute_615723; ## : 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. ## Action: string (required) ## Version: string (required) - var query_615740 = newJObject() - var formData_615741 = newJObject() - add(formData_615741, "LocalGatewayRouteTableId", + var query_615742 = newJObject() + var formData_615743 = newJObject() + add(formData_615743, "LocalGatewayRouteTableId", newJString(LocalGatewayRouteTableId)) - add(formData_615741, "DestinationCidrBlock", newJString(DestinationCidrBlock)) - add(formData_615741, "DryRun", newJBool(DryRun)) - add(query_615740, "Action", newJString(Action)) - add(query_615740, "Version", newJString(Version)) - result = call_615739.call(nil, query_615740, nil, formData_615741, nil) + add(formData_615743, "DestinationCidrBlock", newJString(DestinationCidrBlock)) + add(formData_615743, "DryRun", newJBool(DryRun)) + add(query_615742, "Action", newJString(Action)) + add(query_615742, "Version", newJString(Version)) + result = call_615741.call(nil, query_615742, nil, formData_615743, nil) -var postDeleteLocalGatewayRoute* = Call_PostDeleteLocalGatewayRoute_615723( +var postDeleteLocalGatewayRoute* = Call_PostDeleteLocalGatewayRoute_615725( name: "postDeleteLocalGatewayRoute", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteLocalGatewayRoute", - validator: validate_PostDeleteLocalGatewayRoute_615724, base: "/", - url: url_PostDeleteLocalGatewayRoute_615725, + validator: validate_PostDeleteLocalGatewayRoute_615726, base: "/", + url: url_PostDeleteLocalGatewayRoute_615727, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteLocalGatewayRoute_615705 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteLocalGatewayRoute_615707(protocol: Scheme; host: string; + Call_GetDeleteLocalGatewayRoute_615707 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteLocalGatewayRoute_615709(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -38326,7 +38353,7 @@ proc url_GetDeleteLocalGatewayRoute_615707(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDeleteLocalGatewayRoute_615706(path: JsonNode; query: JsonNode; +proc validate_GetDeleteLocalGatewayRoute_615708(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified route from the specified local gateway route table. ## @@ -38345,30 +38372,30 @@ proc validate_GetDeleteLocalGatewayRoute_615706(path: JsonNode; query: JsonNode; ## : The CIDR range for the route. This must match the CIDR for the route exactly. section = newJObject() assert query != nil, "query argument is necessary due to required `LocalGatewayRouteTableId` field" - var valid_615708 = query.getOrDefault("LocalGatewayRouteTableId") - valid_615708 = validateParameter(valid_615708, JString, required = true, - default = nil) - if valid_615708 != nil: - section.add "LocalGatewayRouteTableId", valid_615708 - var valid_615709 = query.getOrDefault("DryRun") - valid_615709 = validateParameter(valid_615709, JBool, required = false, default = nil) - if valid_615709 != nil: - section.add "DryRun", valid_615709 - var valid_615710 = query.getOrDefault("Action") - valid_615710 = validateParameter(valid_615710, JString, required = true, default = newJString( - "DeleteLocalGatewayRoute")) + var valid_615710 = query.getOrDefault("LocalGatewayRouteTableId") + valid_615710 = validateParameter(valid_615710, JString, required = true, + default = nil) if valid_615710 != nil: - section.add "Action", valid_615710 - var valid_615711 = query.getOrDefault("Version") - valid_615711 = validateParameter(valid_615711, JString, required = true, - default = newJString("2016-11-15")) + section.add "LocalGatewayRouteTableId", valid_615710 + var valid_615711 = query.getOrDefault("DryRun") + valid_615711 = validateParameter(valid_615711, JBool, required = false, default = nil) if valid_615711 != nil: - section.add "Version", valid_615711 - var valid_615712 = query.getOrDefault("DestinationCidrBlock") - valid_615712 = validateParameter(valid_615712, JString, required = true, - default = nil) + section.add "DryRun", valid_615711 + var valid_615712 = query.getOrDefault("Action") + valid_615712 = validateParameter(valid_615712, JString, required = true, default = newJString( + "DeleteLocalGatewayRoute")) if valid_615712 != nil: - section.add "DestinationCidrBlock", valid_615712 + section.add "Action", valid_615712 + var valid_615713 = query.getOrDefault("Version") + valid_615713 = validateParameter(valid_615713, JString, required = true, + default = newJString("2016-11-15")) + if valid_615713 != nil: + section.add "Version", valid_615713 + var valid_615714 = query.getOrDefault("DestinationCidrBlock") + valid_615714 = validateParameter(valid_615714, JString, required = true, + default = nil) + if valid_615714 != nil: + section.add "DestinationCidrBlock", valid_615714 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -38379,61 +38406,61 @@ proc validate_GetDeleteLocalGatewayRoute_615706(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615713 = header.getOrDefault("X-Amz-Signature") - valid_615713 = validateParameter(valid_615713, JString, required = false, - default = nil) - if valid_615713 != nil: - section.add "X-Amz-Signature", valid_615713 - var valid_615714 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615714 = validateParameter(valid_615714, JString, required = false, - default = nil) - if valid_615714 != nil: - section.add "X-Amz-Content-Sha256", valid_615714 - var valid_615715 = header.getOrDefault("X-Amz-Date") + var valid_615715 = header.getOrDefault("X-Amz-Signature") valid_615715 = validateParameter(valid_615715, JString, required = false, default = nil) if valid_615715 != nil: - section.add "X-Amz-Date", valid_615715 - var valid_615716 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615715 + var valid_615716 = header.getOrDefault("X-Amz-Content-Sha256") valid_615716 = validateParameter(valid_615716, JString, required = false, default = nil) if valid_615716 != nil: - section.add "X-Amz-Credential", valid_615716 - var valid_615717 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615716 + var valid_615717 = header.getOrDefault("X-Amz-Date") valid_615717 = validateParameter(valid_615717, JString, required = false, default = nil) if valid_615717 != nil: - section.add "X-Amz-Security-Token", valid_615717 - var valid_615718 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615717 + var valid_615718 = header.getOrDefault("X-Amz-Credential") valid_615718 = validateParameter(valid_615718, JString, required = false, default = nil) if valid_615718 != nil: - section.add "X-Amz-Algorithm", valid_615718 - var valid_615719 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615718 + var valid_615719 = header.getOrDefault("X-Amz-Security-Token") valid_615719 = validateParameter(valid_615719, JString, required = false, default = nil) if valid_615719 != nil: - section.add "X-Amz-SignedHeaders", valid_615719 + section.add "X-Amz-Security-Token", valid_615719 + var valid_615720 = header.getOrDefault("X-Amz-Algorithm") + valid_615720 = validateParameter(valid_615720, JString, required = false, + default = nil) + if valid_615720 != nil: + section.add "X-Amz-Algorithm", valid_615720 + var valid_615721 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615721 = validateParameter(valid_615721, JString, required = false, + default = nil) + if valid_615721 != nil: + section.add "X-Amz-SignedHeaders", valid_615721 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615720: Call_GetDeleteLocalGatewayRoute_615705; path: JsonNode; +proc call*(call_615722: Call_GetDeleteLocalGatewayRoute_615707; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified route from the specified local gateway route table. ## - let valid = call_615720.validator(path, query, header, formData, body) - let scheme = call_615720.pickScheme + let valid = call_615722.validator(path, query, header, formData, body) + let scheme = call_615722.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615720.url(scheme.get, call_615720.host, call_615720.base, - call_615720.route, valid.getOrDefault("path"), + let url = call_615722.url(scheme.get, call_615722.host, call_615722.base, + call_615722.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615720, url, valid) + result = atozHook(call_615722, url, valid) -proc call*(call_615721: Call_GetDeleteLocalGatewayRoute_615705; +proc call*(call_615723: Call_GetDeleteLocalGatewayRoute_615707; LocalGatewayRouteTableId: string; DestinationCidrBlock: string; DryRun: bool = false; Action: string = "DeleteLocalGatewayRoute"; Version: string = "2016-11-15"): Recallable = @@ -38447,24 +38474,24 @@ proc call*(call_615721: Call_GetDeleteLocalGatewayRoute_615705; ## Version: string (required) ## DestinationCidrBlock: string (required) ## : The CIDR range for the route. This must match the CIDR for the route exactly. - var query_615722 = newJObject() - add(query_615722, "LocalGatewayRouteTableId", + var query_615724 = newJObject() + add(query_615724, "LocalGatewayRouteTableId", newJString(LocalGatewayRouteTableId)) - add(query_615722, "DryRun", newJBool(DryRun)) - add(query_615722, "Action", newJString(Action)) - add(query_615722, "Version", newJString(Version)) - add(query_615722, "DestinationCidrBlock", newJString(DestinationCidrBlock)) - result = call_615721.call(nil, query_615722, nil, nil, nil) + add(query_615724, "DryRun", newJBool(DryRun)) + add(query_615724, "Action", newJString(Action)) + add(query_615724, "Version", newJString(Version)) + add(query_615724, "DestinationCidrBlock", newJString(DestinationCidrBlock)) + result = call_615723.call(nil, query_615724, nil, nil, nil) -var getDeleteLocalGatewayRoute* = Call_GetDeleteLocalGatewayRoute_615705( +var getDeleteLocalGatewayRoute* = Call_GetDeleteLocalGatewayRoute_615707( name: "getDeleteLocalGatewayRoute", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteLocalGatewayRoute", - validator: validate_GetDeleteLocalGatewayRoute_615706, base: "/", - url: url_GetDeleteLocalGatewayRoute_615707, + validator: validate_GetDeleteLocalGatewayRoute_615708, base: "/", + url: url_GetDeleteLocalGatewayRoute_615709, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteLocalGatewayRouteTableVpcAssociation_615759 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteLocalGatewayRouteTableVpcAssociation_615761(protocol: Scheme; + Call_PostDeleteLocalGatewayRouteTableVpcAssociation_615761 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteLocalGatewayRouteTableVpcAssociation_615763(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -38474,7 +38501,7 @@ proc url_PostDeleteLocalGatewayRouteTableVpcAssociation_615761(protocol: Scheme; else: result.path = base & route -proc validate_PostDeleteLocalGatewayRouteTableVpcAssociation_615760( +proc validate_PostDeleteLocalGatewayRouteTableVpcAssociation_615762( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified association between a VPC and local gateway route table. @@ -38487,16 +38514,16 @@ proc validate_PostDeleteLocalGatewayRouteTableVpcAssociation_615760( ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615762 = query.getOrDefault("Action") - valid_615762 = validateParameter(valid_615762, JString, required = true, default = newJString( + var valid_615764 = query.getOrDefault("Action") + valid_615764 = validateParameter(valid_615764, JString, required = true, default = newJString( "DeleteLocalGatewayRouteTableVpcAssociation")) - if valid_615762 != nil: - section.add "Action", valid_615762 - var valid_615763 = query.getOrDefault("Version") - valid_615763 = validateParameter(valid_615763, JString, required = true, + if valid_615764 != nil: + section.add "Action", valid_615764 + var valid_615765 = query.getOrDefault("Version") + valid_615765 = validateParameter(valid_615765, JString, required = true, default = newJString("2016-11-15")) - if valid_615763 != nil: - section.add "Version", valid_615763 + if valid_615765 != nil: + section.add "Version", valid_615765 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -38507,41 +38534,41 @@ proc validate_PostDeleteLocalGatewayRouteTableVpcAssociation_615760( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615764 = header.getOrDefault("X-Amz-Signature") - valid_615764 = validateParameter(valid_615764, JString, required = false, - default = nil) - if valid_615764 != nil: - section.add "X-Amz-Signature", valid_615764 - var valid_615765 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615765 = validateParameter(valid_615765, JString, required = false, - default = nil) - if valid_615765 != nil: - section.add "X-Amz-Content-Sha256", valid_615765 - var valid_615766 = header.getOrDefault("X-Amz-Date") + var valid_615766 = header.getOrDefault("X-Amz-Signature") valid_615766 = validateParameter(valid_615766, JString, required = false, default = nil) if valid_615766 != nil: - section.add "X-Amz-Date", valid_615766 - var valid_615767 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615766 + var valid_615767 = header.getOrDefault("X-Amz-Content-Sha256") valid_615767 = validateParameter(valid_615767, JString, required = false, default = nil) if valid_615767 != nil: - section.add "X-Amz-Credential", valid_615767 - var valid_615768 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615767 + var valid_615768 = header.getOrDefault("X-Amz-Date") valid_615768 = validateParameter(valid_615768, JString, required = false, default = nil) if valid_615768 != nil: - section.add "X-Amz-Security-Token", valid_615768 - var valid_615769 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615768 + var valid_615769 = header.getOrDefault("X-Amz-Credential") valid_615769 = validateParameter(valid_615769, JString, required = false, default = nil) if valid_615769 != nil: - section.add "X-Amz-Algorithm", valid_615769 - var valid_615770 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615769 + var valid_615770 = header.getOrDefault("X-Amz-Security-Token") valid_615770 = validateParameter(valid_615770, JString, required = false, default = nil) if valid_615770 != nil: - section.add "X-Amz-SignedHeaders", valid_615770 + section.add "X-Amz-Security-Token", valid_615770 + var valid_615771 = header.getOrDefault("X-Amz-Algorithm") + valid_615771 = validateParameter(valid_615771, JString, required = false, + default = nil) + if valid_615771 != nil: + section.add "X-Amz-Algorithm", valid_615771 + var valid_615772 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615772 = validateParameter(valid_615772, JString, required = false, + default = nil) + if valid_615772 != nil: + section.add "X-Amz-SignedHeaders", valid_615772 result.add "header", section ## parameters in `formData` object: ## LocalGatewayRouteTableVpcAssociationId: JString (required) @@ -38550,34 +38577,34 @@ proc validate_PostDeleteLocalGatewayRouteTableVpcAssociation_615760( ## : 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. section = newJObject() assert formData != nil, "formData argument is necessary due to required `LocalGatewayRouteTableVpcAssociationId` field" - var valid_615771 = formData.getOrDefault("LocalGatewayRouteTableVpcAssociationId") - valid_615771 = validateParameter(valid_615771, JString, required = true, + var valid_615773 = formData.getOrDefault("LocalGatewayRouteTableVpcAssociationId") + valid_615773 = validateParameter(valid_615773, JString, required = true, default = nil) - if valid_615771 != nil: - section.add "LocalGatewayRouteTableVpcAssociationId", valid_615771 - var valid_615772 = formData.getOrDefault("DryRun") - valid_615772 = validateParameter(valid_615772, JBool, required = false, default = nil) - if valid_615772 != nil: - section.add "DryRun", valid_615772 + if valid_615773 != nil: + section.add "LocalGatewayRouteTableVpcAssociationId", valid_615773 + var valid_615774 = formData.getOrDefault("DryRun") + valid_615774 = validateParameter(valid_615774, JBool, required = false, default = nil) + if valid_615774 != nil: + section.add "DryRun", valid_615774 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615773: Call_PostDeleteLocalGatewayRouteTableVpcAssociation_615759; +proc call*(call_615775: Call_PostDeleteLocalGatewayRouteTableVpcAssociation_615761; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified association between a VPC and local gateway route table. ## - let valid = call_615773.validator(path, query, header, formData, body) - let scheme = call_615773.pickScheme + let valid = call_615775.validator(path, query, header, formData, body) + let scheme = call_615775.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615773.url(scheme.get, call_615773.host, call_615773.base, - call_615773.route, valid.getOrDefault("path"), + let url = call_615775.url(scheme.get, call_615775.host, call_615775.base, + call_615775.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615773, url, valid) + result = atozHook(call_615775, url, valid) -proc call*(call_615774: Call_PostDeleteLocalGatewayRouteTableVpcAssociation_615759; +proc call*(call_615776: Call_PostDeleteLocalGatewayRouteTableVpcAssociation_615761; LocalGatewayRouteTableVpcAssociationId: string; DryRun: bool = false; Action: string = "DeleteLocalGatewayRouteTableVpcAssociation"; Version: string = "2016-11-15"): Recallable = @@ -38589,25 +38616,25 @@ proc call*(call_615774: Call_PostDeleteLocalGatewayRouteTableVpcAssociation_6157 ## : 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. ## Action: string (required) ## Version: string (required) - var query_615775 = newJObject() - var formData_615776 = newJObject() - add(formData_615776, "LocalGatewayRouteTableVpcAssociationId", + var query_615777 = newJObject() + var formData_615778 = newJObject() + add(formData_615778, "LocalGatewayRouteTableVpcAssociationId", newJString(LocalGatewayRouteTableVpcAssociationId)) - add(formData_615776, "DryRun", newJBool(DryRun)) - add(query_615775, "Action", newJString(Action)) - add(query_615775, "Version", newJString(Version)) - result = call_615774.call(nil, query_615775, nil, formData_615776, nil) + add(formData_615778, "DryRun", newJBool(DryRun)) + add(query_615777, "Action", newJString(Action)) + add(query_615777, "Version", newJString(Version)) + result = call_615776.call(nil, query_615777, nil, formData_615778, nil) -var postDeleteLocalGatewayRouteTableVpcAssociation* = Call_PostDeleteLocalGatewayRouteTableVpcAssociation_615759( +var postDeleteLocalGatewayRouteTableVpcAssociation* = Call_PostDeleteLocalGatewayRouteTableVpcAssociation_615761( name: "postDeleteLocalGatewayRouteTableVpcAssociation", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteLocalGatewayRouteTableVpcAssociation", - validator: validate_PostDeleteLocalGatewayRouteTableVpcAssociation_615760, - base: "/", url: url_PostDeleteLocalGatewayRouteTableVpcAssociation_615761, + validator: validate_PostDeleteLocalGatewayRouteTableVpcAssociation_615762, + base: "/", url: url_PostDeleteLocalGatewayRouteTableVpcAssociation_615763, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteLocalGatewayRouteTableVpcAssociation_615742 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteLocalGatewayRouteTableVpcAssociation_615744(protocol: Scheme; + Call_GetDeleteLocalGatewayRouteTableVpcAssociation_615744 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteLocalGatewayRouteTableVpcAssociation_615746(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -38617,7 +38644,7 @@ proc url_GetDeleteLocalGatewayRouteTableVpcAssociation_615744(protocol: Scheme; else: result.path = base & route -proc validate_GetDeleteLocalGatewayRouteTableVpcAssociation_615743( +proc validate_GetDeleteLocalGatewayRouteTableVpcAssociation_615745( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified association between a VPC and local gateway route table. @@ -38634,26 +38661,26 @@ proc validate_GetDeleteLocalGatewayRouteTableVpcAssociation_615743( ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615745 = query.getOrDefault("DryRun") - valid_615745 = validateParameter(valid_615745, JBool, required = false, default = nil) - if valid_615745 != nil: - section.add "DryRun", valid_615745 + var valid_615747 = query.getOrDefault("DryRun") + valid_615747 = validateParameter(valid_615747, JBool, required = false, default = nil) + if valid_615747 != nil: + section.add "DryRun", valid_615747 assert query != nil, "query argument is necessary due to required `LocalGatewayRouteTableVpcAssociationId` field" - var valid_615746 = query.getOrDefault("LocalGatewayRouteTableVpcAssociationId") - valid_615746 = validateParameter(valid_615746, JString, required = true, + var valid_615748 = query.getOrDefault("LocalGatewayRouteTableVpcAssociationId") + valid_615748 = validateParameter(valid_615748, JString, required = true, default = nil) - if valid_615746 != nil: - section.add "LocalGatewayRouteTableVpcAssociationId", valid_615746 - var valid_615747 = query.getOrDefault("Action") - valid_615747 = validateParameter(valid_615747, JString, required = true, default = newJString( + if valid_615748 != nil: + section.add "LocalGatewayRouteTableVpcAssociationId", valid_615748 + var valid_615749 = query.getOrDefault("Action") + valid_615749 = validateParameter(valid_615749, JString, required = true, default = newJString( "DeleteLocalGatewayRouteTableVpcAssociation")) - if valid_615747 != nil: - section.add "Action", valid_615747 - var valid_615748 = query.getOrDefault("Version") - valid_615748 = validateParameter(valid_615748, JString, required = true, + if valid_615749 != nil: + section.add "Action", valid_615749 + var valid_615750 = query.getOrDefault("Version") + valid_615750 = validateParameter(valid_615750, JString, required = true, default = newJString("2016-11-15")) - if valid_615748 != nil: - section.add "Version", valid_615748 + if valid_615750 != nil: + section.add "Version", valid_615750 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -38664,62 +38691,62 @@ proc validate_GetDeleteLocalGatewayRouteTableVpcAssociation_615743( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615749 = header.getOrDefault("X-Amz-Signature") - valid_615749 = validateParameter(valid_615749, JString, required = false, - default = nil) - if valid_615749 != nil: - section.add "X-Amz-Signature", valid_615749 - var valid_615750 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615750 = validateParameter(valid_615750, JString, required = false, - default = nil) - if valid_615750 != nil: - section.add "X-Amz-Content-Sha256", valid_615750 - var valid_615751 = header.getOrDefault("X-Amz-Date") + var valid_615751 = header.getOrDefault("X-Amz-Signature") valid_615751 = validateParameter(valid_615751, JString, required = false, default = nil) if valid_615751 != nil: - section.add "X-Amz-Date", valid_615751 - var valid_615752 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615751 + var valid_615752 = header.getOrDefault("X-Amz-Content-Sha256") valid_615752 = validateParameter(valid_615752, JString, required = false, default = nil) if valid_615752 != nil: - section.add "X-Amz-Credential", valid_615752 - var valid_615753 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615752 + var valid_615753 = header.getOrDefault("X-Amz-Date") valid_615753 = validateParameter(valid_615753, JString, required = false, default = nil) if valid_615753 != nil: - section.add "X-Amz-Security-Token", valid_615753 - var valid_615754 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615753 + var valid_615754 = header.getOrDefault("X-Amz-Credential") valid_615754 = validateParameter(valid_615754, JString, required = false, default = nil) if valid_615754 != nil: - section.add "X-Amz-Algorithm", valid_615754 - var valid_615755 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615754 + var valid_615755 = header.getOrDefault("X-Amz-Security-Token") valid_615755 = validateParameter(valid_615755, JString, required = false, default = nil) if valid_615755 != nil: - section.add "X-Amz-SignedHeaders", valid_615755 + section.add "X-Amz-Security-Token", valid_615755 + var valid_615756 = header.getOrDefault("X-Amz-Algorithm") + valid_615756 = validateParameter(valid_615756, JString, required = false, + default = nil) + if valid_615756 != nil: + section.add "X-Amz-Algorithm", valid_615756 + var valid_615757 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615757 = validateParameter(valid_615757, JString, required = false, + default = nil) + if valid_615757 != nil: + section.add "X-Amz-SignedHeaders", valid_615757 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615756: Call_GetDeleteLocalGatewayRouteTableVpcAssociation_615742; +proc call*(call_615758: Call_GetDeleteLocalGatewayRouteTableVpcAssociation_615744; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified association between a VPC and local gateway route table. ## - let valid = call_615756.validator(path, query, header, formData, body) - let scheme = call_615756.pickScheme + let valid = call_615758.validator(path, query, header, formData, body) + let scheme = call_615758.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615756.url(scheme.get, call_615756.host, call_615756.base, - call_615756.route, valid.getOrDefault("path"), + let url = call_615758.url(scheme.get, call_615758.host, call_615758.base, + call_615758.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615756, url, valid) + result = atozHook(call_615758, url, valid) -proc call*(call_615757: Call_GetDeleteLocalGatewayRouteTableVpcAssociation_615742; +proc call*(call_615759: Call_GetDeleteLocalGatewayRouteTableVpcAssociation_615744; LocalGatewayRouteTableVpcAssociationId: string; DryRun: bool = false; Action: string = "DeleteLocalGatewayRouteTableVpcAssociation"; Version: string = "2016-11-15"): Recallable = @@ -38731,24 +38758,24 @@ proc call*(call_615757: Call_GetDeleteLocalGatewayRouteTableVpcAssociation_61574 ## : The ID of the association. ## Action: string (required) ## Version: string (required) - var query_615758 = newJObject() - add(query_615758, "DryRun", newJBool(DryRun)) - add(query_615758, "LocalGatewayRouteTableVpcAssociationId", + var query_615760 = newJObject() + add(query_615760, "DryRun", newJBool(DryRun)) + add(query_615760, "LocalGatewayRouteTableVpcAssociationId", newJString(LocalGatewayRouteTableVpcAssociationId)) - add(query_615758, "Action", newJString(Action)) - add(query_615758, "Version", newJString(Version)) - result = call_615757.call(nil, query_615758, nil, nil, nil) + add(query_615760, "Action", newJString(Action)) + add(query_615760, "Version", newJString(Version)) + result = call_615759.call(nil, query_615760, nil, nil, nil) -var getDeleteLocalGatewayRouteTableVpcAssociation* = Call_GetDeleteLocalGatewayRouteTableVpcAssociation_615742( +var getDeleteLocalGatewayRouteTableVpcAssociation* = Call_GetDeleteLocalGatewayRouteTableVpcAssociation_615744( name: "getDeleteLocalGatewayRouteTableVpcAssociation", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteLocalGatewayRouteTableVpcAssociation", - validator: validate_GetDeleteLocalGatewayRouteTableVpcAssociation_615743, - base: "/", url: url_GetDeleteLocalGatewayRouteTableVpcAssociation_615744, + validator: validate_GetDeleteLocalGatewayRouteTableVpcAssociation_615745, + base: "/", url: url_GetDeleteLocalGatewayRouteTableVpcAssociation_615746, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteNatGateway_615793 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteNatGateway_615795(protocol: Scheme; host: string; base: string; + Call_PostDeleteNatGateway_615795 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteNatGateway_615797(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -38758,7 +38785,7 @@ proc url_PostDeleteNatGateway_615795(protocol: Scheme; host: string; base: strin else: result.path = base & route -proc validate_PostDeleteNatGateway_615794(path: JsonNode; query: JsonNode; +proc validate_PostDeleteNatGateway_615796(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified NAT gateway. Deleting a NAT gateway disassociates its Elastic IP address, but does not release the address from your account. Deleting a NAT gateway does not delete any NAT gateway routes in your route tables. ## @@ -38770,16 +38797,16 @@ proc validate_PostDeleteNatGateway_615794(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615796 = query.getOrDefault("Action") - valid_615796 = validateParameter(valid_615796, JString, required = true, + var valid_615798 = query.getOrDefault("Action") + valid_615798 = validateParameter(valid_615798, JString, required = true, default = newJString("DeleteNatGateway")) - if valid_615796 != nil: - section.add "Action", valid_615796 - var valid_615797 = query.getOrDefault("Version") - valid_615797 = validateParameter(valid_615797, JString, required = true, + if valid_615798 != nil: + section.add "Action", valid_615798 + var valid_615799 = query.getOrDefault("Version") + valid_615799 = validateParameter(valid_615799, JString, required = true, default = newJString("2016-11-15")) - if valid_615797 != nil: - section.add "Version", valid_615797 + if valid_615799 != nil: + section.add "Version", valid_615799 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -38790,41 +38817,41 @@ proc validate_PostDeleteNatGateway_615794(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615798 = header.getOrDefault("X-Amz-Signature") - valid_615798 = validateParameter(valid_615798, JString, required = false, - default = nil) - if valid_615798 != nil: - section.add "X-Amz-Signature", valid_615798 - var valid_615799 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615799 = validateParameter(valid_615799, JString, required = false, - default = nil) - if valid_615799 != nil: - section.add "X-Amz-Content-Sha256", valid_615799 - var valid_615800 = header.getOrDefault("X-Amz-Date") + var valid_615800 = header.getOrDefault("X-Amz-Signature") valid_615800 = validateParameter(valid_615800, JString, required = false, default = nil) if valid_615800 != nil: - section.add "X-Amz-Date", valid_615800 - var valid_615801 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615800 + var valid_615801 = header.getOrDefault("X-Amz-Content-Sha256") valid_615801 = validateParameter(valid_615801, JString, required = false, default = nil) if valid_615801 != nil: - section.add "X-Amz-Credential", valid_615801 - var valid_615802 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615801 + var valid_615802 = header.getOrDefault("X-Amz-Date") valid_615802 = validateParameter(valid_615802, JString, required = false, default = nil) if valid_615802 != nil: - section.add "X-Amz-Security-Token", valid_615802 - var valid_615803 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615802 + var valid_615803 = header.getOrDefault("X-Amz-Credential") valid_615803 = validateParameter(valid_615803, JString, required = false, default = nil) if valid_615803 != nil: - section.add "X-Amz-Algorithm", valid_615803 - var valid_615804 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615803 + var valid_615804 = header.getOrDefault("X-Amz-Security-Token") valid_615804 = validateParameter(valid_615804, JString, required = false, default = nil) if valid_615804 != nil: - section.add "X-Amz-SignedHeaders", valid_615804 + section.add "X-Amz-Security-Token", valid_615804 + var valid_615805 = header.getOrDefault("X-Amz-Algorithm") + valid_615805 = validateParameter(valid_615805, JString, required = false, + default = nil) + if valid_615805 != nil: + section.add "X-Amz-Algorithm", valid_615805 + var valid_615806 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615806 = validateParameter(valid_615806, JString, required = false, + default = nil) + if valid_615806 != nil: + section.add "X-Amz-SignedHeaders", valid_615806 result.add "header", section ## parameters in `formData` object: ## NatGatewayId: JString (required) @@ -38832,29 +38859,29 @@ proc validate_PostDeleteNatGateway_615794(path: JsonNode; query: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `NatGatewayId` field" - var valid_615805 = formData.getOrDefault("NatGatewayId") - valid_615805 = validateParameter(valid_615805, JString, required = true, + var valid_615807 = formData.getOrDefault("NatGatewayId") + valid_615807 = validateParameter(valid_615807, JString, required = true, default = nil) - if valid_615805 != nil: - section.add "NatGatewayId", valid_615805 + if valid_615807 != nil: + section.add "NatGatewayId", valid_615807 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615806: Call_PostDeleteNatGateway_615793; path: JsonNode; +proc call*(call_615808: Call_PostDeleteNatGateway_615795; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified NAT gateway. Deleting a NAT gateway disassociates its Elastic IP address, but does not release the address from your account. Deleting a NAT gateway does not delete any NAT gateway routes in your route tables. ## - let valid = call_615806.validator(path, query, header, formData, body) - let scheme = call_615806.pickScheme + let valid = call_615808.validator(path, query, header, formData, body) + let scheme = call_615808.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615806.url(scheme.get, call_615806.host, call_615806.base, - call_615806.route, valid.getOrDefault("path"), + let url = call_615808.url(scheme.get, call_615808.host, call_615808.base, + call_615808.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615806, url, valid) + result = atozHook(call_615808, url, valid) -proc call*(call_615807: Call_PostDeleteNatGateway_615793; NatGatewayId: string; +proc call*(call_615809: Call_PostDeleteNatGateway_615795; NatGatewayId: string; Action: string = "DeleteNatGateway"; Version: string = "2016-11-15"): Recallable = ## postDeleteNatGateway ## Deletes the specified NAT gateway. Deleting a NAT gateway disassociates its Elastic IP address, but does not release the address from your account. Deleting a NAT gateway does not delete any NAT gateway routes in your route tables. @@ -38862,21 +38889,21 @@ proc call*(call_615807: Call_PostDeleteNatGateway_615793; NatGatewayId: string; ## NatGatewayId: string (required) ## : The ID of the NAT gateway. ## Version: string (required) - var query_615808 = newJObject() - var formData_615809 = newJObject() - add(query_615808, "Action", newJString(Action)) - add(formData_615809, "NatGatewayId", newJString(NatGatewayId)) - add(query_615808, "Version", newJString(Version)) - result = call_615807.call(nil, query_615808, nil, formData_615809, nil) + var query_615810 = newJObject() + var formData_615811 = newJObject() + add(query_615810, "Action", newJString(Action)) + add(formData_615811, "NatGatewayId", newJString(NatGatewayId)) + add(query_615810, "Version", newJString(Version)) + result = call_615809.call(nil, query_615810, nil, formData_615811, nil) -var postDeleteNatGateway* = Call_PostDeleteNatGateway_615793( +var postDeleteNatGateway* = Call_PostDeleteNatGateway_615795( name: "postDeleteNatGateway", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteNatGateway", - validator: validate_PostDeleteNatGateway_615794, base: "/", - url: url_PostDeleteNatGateway_615795, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDeleteNatGateway_615796, base: "/", + url: url_PostDeleteNatGateway_615797, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteNatGateway_615777 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteNatGateway_615779(protocol: Scheme; host: string; base: string; + Call_GetDeleteNatGateway_615779 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteNatGateway_615781(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -38886,7 +38913,7 @@ proc url_GetDeleteNatGateway_615779(protocol: Scheme; host: string; base: string else: result.path = base & route -proc validate_GetDeleteNatGateway_615778(path: JsonNode; query: JsonNode; +proc validate_GetDeleteNatGateway_615780(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified NAT gateway. Deleting a NAT gateway disassociates its Elastic IP address, but does not release the address from your account. Deleting a NAT gateway does not delete any NAT gateway routes in your route tables. @@ -38903,21 +38930,21 @@ proc validate_GetDeleteNatGateway_615778(path: JsonNode; query: JsonNode; section = newJObject() assert query != nil, "query argument is necessary due to required `NatGatewayId` field" - var valid_615780 = query.getOrDefault("NatGatewayId") - valid_615780 = validateParameter(valid_615780, JString, required = true, + var valid_615782 = query.getOrDefault("NatGatewayId") + valid_615782 = validateParameter(valid_615782, JString, required = true, default = nil) - if valid_615780 != nil: - section.add "NatGatewayId", valid_615780 - var valid_615781 = query.getOrDefault("Action") - valid_615781 = validateParameter(valid_615781, JString, required = true, + if valid_615782 != nil: + section.add "NatGatewayId", valid_615782 + var valid_615783 = query.getOrDefault("Action") + valid_615783 = validateParameter(valid_615783, JString, required = true, default = newJString("DeleteNatGateway")) - if valid_615781 != nil: - section.add "Action", valid_615781 - var valid_615782 = query.getOrDefault("Version") - valid_615782 = validateParameter(valid_615782, JString, required = true, + if valid_615783 != nil: + section.add "Action", valid_615783 + var valid_615784 = query.getOrDefault("Version") + valid_615784 = validateParameter(valid_615784, JString, required = true, default = newJString("2016-11-15")) - if valid_615782 != nil: - section.add "Version", valid_615782 + if valid_615784 != nil: + section.add "Version", valid_615784 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -38928,61 +38955,61 @@ proc validate_GetDeleteNatGateway_615778(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615783 = header.getOrDefault("X-Amz-Signature") - valid_615783 = validateParameter(valid_615783, JString, required = false, - default = nil) - if valid_615783 != nil: - section.add "X-Amz-Signature", valid_615783 - var valid_615784 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615784 = validateParameter(valid_615784, JString, required = false, - default = nil) - if valid_615784 != nil: - section.add "X-Amz-Content-Sha256", valid_615784 - var valid_615785 = header.getOrDefault("X-Amz-Date") + var valid_615785 = header.getOrDefault("X-Amz-Signature") valid_615785 = validateParameter(valid_615785, JString, required = false, default = nil) if valid_615785 != nil: - section.add "X-Amz-Date", valid_615785 - var valid_615786 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615785 + var valid_615786 = header.getOrDefault("X-Amz-Content-Sha256") valid_615786 = validateParameter(valid_615786, JString, required = false, default = nil) if valid_615786 != nil: - section.add "X-Amz-Credential", valid_615786 - var valid_615787 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615786 + var valid_615787 = header.getOrDefault("X-Amz-Date") valid_615787 = validateParameter(valid_615787, JString, required = false, default = nil) if valid_615787 != nil: - section.add "X-Amz-Security-Token", valid_615787 - var valid_615788 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615787 + var valid_615788 = header.getOrDefault("X-Amz-Credential") valid_615788 = validateParameter(valid_615788, JString, required = false, default = nil) if valid_615788 != nil: - section.add "X-Amz-Algorithm", valid_615788 - var valid_615789 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615788 + var valid_615789 = header.getOrDefault("X-Amz-Security-Token") valid_615789 = validateParameter(valid_615789, JString, required = false, default = nil) if valid_615789 != nil: - section.add "X-Amz-SignedHeaders", valid_615789 + section.add "X-Amz-Security-Token", valid_615789 + var valid_615790 = header.getOrDefault("X-Amz-Algorithm") + valid_615790 = validateParameter(valid_615790, JString, required = false, + default = nil) + if valid_615790 != nil: + section.add "X-Amz-Algorithm", valid_615790 + var valid_615791 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615791 = validateParameter(valid_615791, JString, required = false, + default = nil) + if valid_615791 != nil: + section.add "X-Amz-SignedHeaders", valid_615791 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615790: Call_GetDeleteNatGateway_615777; path: JsonNode; +proc call*(call_615792: Call_GetDeleteNatGateway_615779; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified NAT gateway. Deleting a NAT gateway disassociates its Elastic IP address, but does not release the address from your account. Deleting a NAT gateway does not delete any NAT gateway routes in your route tables. ## - let valid = call_615790.validator(path, query, header, formData, body) - let scheme = call_615790.pickScheme + let valid = call_615792.validator(path, query, header, formData, body) + let scheme = call_615792.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615790.url(scheme.get, call_615790.host, call_615790.base, - call_615790.route, valid.getOrDefault("path"), + let url = call_615792.url(scheme.get, call_615792.host, call_615792.base, + call_615792.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615790, url, valid) + result = atozHook(call_615792, url, valid) -proc call*(call_615791: Call_GetDeleteNatGateway_615777; NatGatewayId: string; +proc call*(call_615793: Call_GetDeleteNatGateway_615779; NatGatewayId: string; Action: string = "DeleteNatGateway"; Version: string = "2016-11-15"): Recallable = ## getDeleteNatGateway ## Deletes the specified NAT gateway. Deleting a NAT gateway disassociates its Elastic IP address, but does not release the address from your account. Deleting a NAT gateway does not delete any NAT gateway routes in your route tables. @@ -38990,20 +39017,20 @@ proc call*(call_615791: Call_GetDeleteNatGateway_615777; NatGatewayId: string; ## : The ID of the NAT gateway. ## Action: string (required) ## Version: string (required) - var query_615792 = newJObject() - add(query_615792, "NatGatewayId", newJString(NatGatewayId)) - add(query_615792, "Action", newJString(Action)) - add(query_615792, "Version", newJString(Version)) - result = call_615791.call(nil, query_615792, nil, nil, nil) + var query_615794 = newJObject() + add(query_615794, "NatGatewayId", newJString(NatGatewayId)) + add(query_615794, "Action", newJString(Action)) + add(query_615794, "Version", newJString(Version)) + result = call_615793.call(nil, query_615794, nil, nil, nil) -var getDeleteNatGateway* = Call_GetDeleteNatGateway_615777( +var getDeleteNatGateway* = Call_GetDeleteNatGateway_615779( name: "getDeleteNatGateway", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteNatGateway", - validator: validate_GetDeleteNatGateway_615778, base: "/", - url: url_GetDeleteNatGateway_615779, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDeleteNatGateway_615780, base: "/", + url: url_GetDeleteNatGateway_615781, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteNetworkAcl_615827 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteNetworkAcl_615829(protocol: Scheme; host: string; base: string; + Call_PostDeleteNetworkAcl_615829 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteNetworkAcl_615831(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -39013,7 +39040,7 @@ proc url_PostDeleteNetworkAcl_615829(protocol: Scheme; host: string; base: strin else: result.path = base & route -proc validate_PostDeleteNetworkAcl_615828(path: JsonNode; query: JsonNode; +proc validate_PostDeleteNetworkAcl_615830(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified network ACL. You can't delete the ACL if it's associated with any subnets. You can't delete the default network ACL. ## @@ -39025,16 +39052,16 @@ proc validate_PostDeleteNetworkAcl_615828(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615830 = query.getOrDefault("Action") - valid_615830 = validateParameter(valid_615830, JString, required = true, + var valid_615832 = query.getOrDefault("Action") + valid_615832 = validateParameter(valid_615832, JString, required = true, default = newJString("DeleteNetworkAcl")) - if valid_615830 != nil: - section.add "Action", valid_615830 - var valid_615831 = query.getOrDefault("Version") - valid_615831 = validateParameter(valid_615831, JString, required = true, + if valid_615832 != nil: + section.add "Action", valid_615832 + var valid_615833 = query.getOrDefault("Version") + valid_615833 = validateParameter(valid_615833, JString, required = true, default = newJString("2016-11-15")) - if valid_615831 != nil: - section.add "Version", valid_615831 + if valid_615833 != nil: + section.add "Version", valid_615833 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -39045,41 +39072,41 @@ proc validate_PostDeleteNetworkAcl_615828(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615832 = header.getOrDefault("X-Amz-Signature") - valid_615832 = validateParameter(valid_615832, JString, required = false, - default = nil) - if valid_615832 != nil: - section.add "X-Amz-Signature", valid_615832 - var valid_615833 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615833 = validateParameter(valid_615833, JString, required = false, - default = nil) - if valid_615833 != nil: - section.add "X-Amz-Content-Sha256", valid_615833 - var valid_615834 = header.getOrDefault("X-Amz-Date") + var valid_615834 = header.getOrDefault("X-Amz-Signature") valid_615834 = validateParameter(valid_615834, JString, required = false, default = nil) if valid_615834 != nil: - section.add "X-Amz-Date", valid_615834 - var valid_615835 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615834 + var valid_615835 = header.getOrDefault("X-Amz-Content-Sha256") valid_615835 = validateParameter(valid_615835, JString, required = false, default = nil) if valid_615835 != nil: - section.add "X-Amz-Credential", valid_615835 - var valid_615836 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615835 + var valid_615836 = header.getOrDefault("X-Amz-Date") valid_615836 = validateParameter(valid_615836, JString, required = false, default = nil) if valid_615836 != nil: - section.add "X-Amz-Security-Token", valid_615836 - var valid_615837 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615836 + var valid_615837 = header.getOrDefault("X-Amz-Credential") valid_615837 = validateParameter(valid_615837, JString, required = false, default = nil) if valid_615837 != nil: - section.add "X-Amz-Algorithm", valid_615837 - var valid_615838 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615837 + var valid_615838 = header.getOrDefault("X-Amz-Security-Token") valid_615838 = validateParameter(valid_615838, JString, required = false, default = nil) if valid_615838 != nil: - section.add "X-Amz-SignedHeaders", valid_615838 + section.add "X-Amz-Security-Token", valid_615838 + var valid_615839 = header.getOrDefault("X-Amz-Algorithm") + valid_615839 = validateParameter(valid_615839, JString, required = false, + default = nil) + if valid_615839 != nil: + section.add "X-Amz-Algorithm", valid_615839 + var valid_615840 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615840 = validateParameter(valid_615840, JString, required = false, + default = nil) + if valid_615840 != nil: + section.add "X-Amz-SignedHeaders", valid_615840 result.add "header", section ## parameters in `formData` object: ## NetworkAclId: JString (required) @@ -39089,33 +39116,33 @@ proc validate_PostDeleteNetworkAcl_615828(path: JsonNode; query: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `NetworkAclId` field" - var valid_615839 = formData.getOrDefault("NetworkAclId") - valid_615839 = validateParameter(valid_615839, JString, required = true, + var valid_615841 = formData.getOrDefault("NetworkAclId") + valid_615841 = validateParameter(valid_615841, JString, required = true, default = nil) - if valid_615839 != nil: - section.add "NetworkAclId", valid_615839 - var valid_615840 = formData.getOrDefault("DryRun") - valid_615840 = validateParameter(valid_615840, JBool, required = false, default = nil) - if valid_615840 != nil: - section.add "DryRun", valid_615840 + if valid_615841 != nil: + section.add "NetworkAclId", valid_615841 + var valid_615842 = formData.getOrDefault("DryRun") + valid_615842 = validateParameter(valid_615842, JBool, required = false, default = nil) + if valid_615842 != nil: + section.add "DryRun", valid_615842 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615841: Call_PostDeleteNetworkAcl_615827; path: JsonNode; +proc call*(call_615843: Call_PostDeleteNetworkAcl_615829; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified network ACL. You can't delete the ACL if it's associated with any subnets. You can't delete the default network ACL. ## - let valid = call_615841.validator(path, query, header, formData, body) - let scheme = call_615841.pickScheme + let valid = call_615843.validator(path, query, header, formData, body) + let scheme = call_615843.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615841.url(scheme.get, call_615841.host, call_615841.base, - call_615841.route, valid.getOrDefault("path"), + let url = call_615843.url(scheme.get, call_615843.host, call_615843.base, + call_615843.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615841, url, valid) + result = atozHook(call_615843, url, valid) -proc call*(call_615842: Call_PostDeleteNetworkAcl_615827; NetworkAclId: string; +proc call*(call_615844: Call_PostDeleteNetworkAcl_615829; NetworkAclId: string; DryRun: bool = false; Action: string = "DeleteNetworkAcl"; Version: string = "2016-11-15"): Recallable = ## postDeleteNetworkAcl @@ -39126,22 +39153,22 @@ proc call*(call_615842: Call_PostDeleteNetworkAcl_615827; NetworkAclId: string; ## : 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. ## Action: string (required) ## Version: string (required) - var query_615843 = newJObject() - var formData_615844 = newJObject() - add(formData_615844, "NetworkAclId", newJString(NetworkAclId)) - add(formData_615844, "DryRun", newJBool(DryRun)) - add(query_615843, "Action", newJString(Action)) - add(query_615843, "Version", newJString(Version)) - result = call_615842.call(nil, query_615843, nil, formData_615844, nil) + var query_615845 = newJObject() + var formData_615846 = newJObject() + add(formData_615846, "NetworkAclId", newJString(NetworkAclId)) + add(formData_615846, "DryRun", newJBool(DryRun)) + add(query_615845, "Action", newJString(Action)) + add(query_615845, "Version", newJString(Version)) + result = call_615844.call(nil, query_615845, nil, formData_615846, nil) -var postDeleteNetworkAcl* = Call_PostDeleteNetworkAcl_615827( +var postDeleteNetworkAcl* = Call_PostDeleteNetworkAcl_615829( name: "postDeleteNetworkAcl", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteNetworkAcl", - validator: validate_PostDeleteNetworkAcl_615828, base: "/", - url: url_PostDeleteNetworkAcl_615829, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDeleteNetworkAcl_615830, base: "/", + url: url_PostDeleteNetworkAcl_615831, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteNetworkAcl_615810 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteNetworkAcl_615812(protocol: Scheme; host: string; base: string; + Call_GetDeleteNetworkAcl_615812 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteNetworkAcl_615814(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -39151,7 +39178,7 @@ proc url_GetDeleteNetworkAcl_615812(protocol: Scheme; host: string; base: string else: result.path = base & route -proc validate_GetDeleteNetworkAcl_615811(path: JsonNode; query: JsonNode; +proc validate_GetDeleteNetworkAcl_615813(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified network ACL. You can't delete the ACL if it's associated with any subnets. You can't delete the default network ACL. @@ -39168,25 +39195,25 @@ proc validate_GetDeleteNetworkAcl_615811(path: JsonNode; query: JsonNode; ## : The ID of the network ACL. ## Version: JString (required) section = newJObject() - var valid_615813 = query.getOrDefault("DryRun") - valid_615813 = validateParameter(valid_615813, JBool, required = false, default = nil) - if valid_615813 != nil: - section.add "DryRun", valid_615813 - var valid_615814 = query.getOrDefault("Action") - valid_615814 = validateParameter(valid_615814, JString, required = true, - default = newJString("DeleteNetworkAcl")) - if valid_615814 != nil: - section.add "Action", valid_615814 - var valid_615815 = query.getOrDefault("NetworkAclId") - valid_615815 = validateParameter(valid_615815, JString, required = true, - default = nil) + var valid_615815 = query.getOrDefault("DryRun") + valid_615815 = validateParameter(valid_615815, JBool, required = false, default = nil) if valid_615815 != nil: - section.add "NetworkAclId", valid_615815 - var valid_615816 = query.getOrDefault("Version") + section.add "DryRun", valid_615815 + var valid_615816 = query.getOrDefault("Action") valid_615816 = validateParameter(valid_615816, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("DeleteNetworkAcl")) if valid_615816 != nil: - section.add "Version", valid_615816 + section.add "Action", valid_615816 + var valid_615817 = query.getOrDefault("NetworkAclId") + valid_615817 = validateParameter(valid_615817, JString, required = true, + default = nil) + if valid_615817 != nil: + section.add "NetworkAclId", valid_615817 + var valid_615818 = query.getOrDefault("Version") + valid_615818 = validateParameter(valid_615818, JString, required = true, + default = newJString("2016-11-15")) + if valid_615818 != nil: + section.add "Version", valid_615818 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -39197,61 +39224,61 @@ proc validate_GetDeleteNetworkAcl_615811(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615817 = header.getOrDefault("X-Amz-Signature") - valid_615817 = validateParameter(valid_615817, JString, required = false, - default = nil) - if valid_615817 != nil: - section.add "X-Amz-Signature", valid_615817 - var valid_615818 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615818 = validateParameter(valid_615818, JString, required = false, - default = nil) - if valid_615818 != nil: - section.add "X-Amz-Content-Sha256", valid_615818 - var valid_615819 = header.getOrDefault("X-Amz-Date") + var valid_615819 = header.getOrDefault("X-Amz-Signature") valid_615819 = validateParameter(valid_615819, JString, required = false, default = nil) if valid_615819 != nil: - section.add "X-Amz-Date", valid_615819 - var valid_615820 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615819 + var valid_615820 = header.getOrDefault("X-Amz-Content-Sha256") valid_615820 = validateParameter(valid_615820, JString, required = false, default = nil) if valid_615820 != nil: - section.add "X-Amz-Credential", valid_615820 - var valid_615821 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615820 + var valid_615821 = header.getOrDefault("X-Amz-Date") valid_615821 = validateParameter(valid_615821, JString, required = false, default = nil) if valid_615821 != nil: - section.add "X-Amz-Security-Token", valid_615821 - var valid_615822 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615821 + var valid_615822 = header.getOrDefault("X-Amz-Credential") valid_615822 = validateParameter(valid_615822, JString, required = false, default = nil) if valid_615822 != nil: - section.add "X-Amz-Algorithm", valid_615822 - var valid_615823 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615822 + var valid_615823 = header.getOrDefault("X-Amz-Security-Token") valid_615823 = validateParameter(valid_615823, JString, required = false, default = nil) if valid_615823 != nil: - section.add "X-Amz-SignedHeaders", valid_615823 + section.add "X-Amz-Security-Token", valid_615823 + var valid_615824 = header.getOrDefault("X-Amz-Algorithm") + valid_615824 = validateParameter(valid_615824, JString, required = false, + default = nil) + if valid_615824 != nil: + section.add "X-Amz-Algorithm", valid_615824 + var valid_615825 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615825 = validateParameter(valid_615825, JString, required = false, + default = nil) + if valid_615825 != nil: + section.add "X-Amz-SignedHeaders", valid_615825 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615824: Call_GetDeleteNetworkAcl_615810; path: JsonNode; +proc call*(call_615826: Call_GetDeleteNetworkAcl_615812; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified network ACL. You can't delete the ACL if it's associated with any subnets. You can't delete the default network ACL. ## - let valid = call_615824.validator(path, query, header, formData, body) - let scheme = call_615824.pickScheme + let valid = call_615826.validator(path, query, header, formData, body) + let scheme = call_615826.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615824.url(scheme.get, call_615824.host, call_615824.base, - call_615824.route, valid.getOrDefault("path"), + let url = call_615826.url(scheme.get, call_615826.host, call_615826.base, + call_615826.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615824, url, valid) + result = atozHook(call_615826, url, valid) -proc call*(call_615825: Call_GetDeleteNetworkAcl_615810; NetworkAclId: string; +proc call*(call_615827: Call_GetDeleteNetworkAcl_615812; NetworkAclId: string; DryRun: bool = false; Action: string = "DeleteNetworkAcl"; Version: string = "2016-11-15"): Recallable = ## getDeleteNetworkAcl @@ -39262,21 +39289,21 @@ proc call*(call_615825: Call_GetDeleteNetworkAcl_615810; NetworkAclId: string; ## NetworkAclId: string (required) ## : The ID of the network ACL. ## Version: string (required) - var query_615826 = newJObject() - add(query_615826, "DryRun", newJBool(DryRun)) - add(query_615826, "Action", newJString(Action)) - add(query_615826, "NetworkAclId", newJString(NetworkAclId)) - add(query_615826, "Version", newJString(Version)) - result = call_615825.call(nil, query_615826, nil, nil, nil) + var query_615828 = newJObject() + add(query_615828, "DryRun", newJBool(DryRun)) + add(query_615828, "Action", newJString(Action)) + add(query_615828, "NetworkAclId", newJString(NetworkAclId)) + add(query_615828, "Version", newJString(Version)) + result = call_615827.call(nil, query_615828, nil, nil, nil) -var getDeleteNetworkAcl* = Call_GetDeleteNetworkAcl_615810( +var getDeleteNetworkAcl* = Call_GetDeleteNetworkAcl_615812( name: "getDeleteNetworkAcl", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteNetworkAcl", - validator: validate_GetDeleteNetworkAcl_615811, base: "/", - url: url_GetDeleteNetworkAcl_615812, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDeleteNetworkAcl_615813, base: "/", + url: url_GetDeleteNetworkAcl_615814, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteNetworkAclEntry_615864 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteNetworkAclEntry_615866(protocol: Scheme; host: string; + Call_PostDeleteNetworkAclEntry_615866 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteNetworkAclEntry_615868(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -39286,7 +39313,7 @@ proc url_PostDeleteNetworkAclEntry_615866(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDeleteNetworkAclEntry_615865(path: JsonNode; query: JsonNode; +proc validate_PostDeleteNetworkAclEntry_615867(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified ingress or egress entry (rule) from the specified network ACL. ## @@ -39298,16 +39325,16 @@ proc validate_PostDeleteNetworkAclEntry_615865(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615867 = query.getOrDefault("Action") - valid_615867 = validateParameter(valid_615867, JString, required = true, + var valid_615869 = query.getOrDefault("Action") + valid_615869 = validateParameter(valid_615869, JString, required = true, default = newJString("DeleteNetworkAclEntry")) - if valid_615867 != nil: - section.add "Action", valid_615867 - var valid_615868 = query.getOrDefault("Version") - valid_615868 = validateParameter(valid_615868, JString, required = true, + if valid_615869 != nil: + section.add "Action", valid_615869 + var valid_615870 = query.getOrDefault("Version") + valid_615870 = validateParameter(valid_615870, JString, required = true, default = newJString("2016-11-15")) - if valid_615868 != nil: - section.add "Version", valid_615868 + if valid_615870 != nil: + section.add "Version", valid_615870 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -39318,41 +39345,41 @@ proc validate_PostDeleteNetworkAclEntry_615865(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615869 = header.getOrDefault("X-Amz-Signature") - valid_615869 = validateParameter(valid_615869, JString, required = false, - default = nil) - if valid_615869 != nil: - section.add "X-Amz-Signature", valid_615869 - var valid_615870 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615870 = validateParameter(valid_615870, JString, required = false, - default = nil) - if valid_615870 != nil: - section.add "X-Amz-Content-Sha256", valid_615870 - var valid_615871 = header.getOrDefault("X-Amz-Date") + var valid_615871 = header.getOrDefault("X-Amz-Signature") valid_615871 = validateParameter(valid_615871, JString, required = false, default = nil) if valid_615871 != nil: - section.add "X-Amz-Date", valid_615871 - var valid_615872 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615871 + var valid_615872 = header.getOrDefault("X-Amz-Content-Sha256") valid_615872 = validateParameter(valid_615872, JString, required = false, default = nil) if valid_615872 != nil: - section.add "X-Amz-Credential", valid_615872 - var valid_615873 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615872 + var valid_615873 = header.getOrDefault("X-Amz-Date") valid_615873 = validateParameter(valid_615873, JString, required = false, default = nil) if valid_615873 != nil: - section.add "X-Amz-Security-Token", valid_615873 - var valid_615874 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615873 + var valid_615874 = header.getOrDefault("X-Amz-Credential") valid_615874 = validateParameter(valid_615874, JString, required = false, default = nil) if valid_615874 != nil: - section.add "X-Amz-Algorithm", valid_615874 - var valid_615875 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615874 + var valid_615875 = header.getOrDefault("X-Amz-Security-Token") valid_615875 = validateParameter(valid_615875, JString, required = false, default = nil) if valid_615875 != nil: - section.add "X-Amz-SignedHeaders", valid_615875 + section.add "X-Amz-Security-Token", valid_615875 + var valid_615876 = header.getOrDefault("X-Amz-Algorithm") + valid_615876 = validateParameter(valid_615876, JString, required = false, + default = nil) + if valid_615876 != nil: + section.add "X-Amz-Algorithm", valid_615876 + var valid_615877 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615877 = validateParameter(valid_615877, JString, required = false, + default = nil) + if valid_615877 != nil: + section.add "X-Amz-SignedHeaders", valid_615877 result.add "header", section ## parameters in `formData` object: ## NetworkAclId: JString (required) @@ -39366,41 +39393,41 @@ proc validate_PostDeleteNetworkAclEntry_615865(path: JsonNode; query: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `NetworkAclId` field" - var valid_615876 = formData.getOrDefault("NetworkAclId") - valid_615876 = validateParameter(valid_615876, JString, required = true, + var valid_615878 = formData.getOrDefault("NetworkAclId") + valid_615878 = validateParameter(valid_615878, JString, required = true, default = nil) - if valid_615876 != nil: - section.add "NetworkAclId", valid_615876 - var valid_615877 = formData.getOrDefault("DryRun") - valid_615877 = validateParameter(valid_615877, JBool, required = false, default = nil) - if valid_615877 != nil: - section.add "DryRun", valid_615877 - var valid_615878 = formData.getOrDefault("Egress") - valid_615878 = validateParameter(valid_615878, JBool, required = true, default = nil) if valid_615878 != nil: - section.add "Egress", valid_615878 - var valid_615879 = formData.getOrDefault("RuleNumber") - valid_615879 = validateParameter(valid_615879, JInt, required = true, default = nil) + section.add "NetworkAclId", valid_615878 + var valid_615879 = formData.getOrDefault("DryRun") + valid_615879 = validateParameter(valid_615879, JBool, required = false, default = nil) if valid_615879 != nil: - section.add "RuleNumber", valid_615879 + section.add "DryRun", valid_615879 + var valid_615880 = formData.getOrDefault("Egress") + valid_615880 = validateParameter(valid_615880, JBool, required = true, default = nil) + if valid_615880 != nil: + section.add "Egress", valid_615880 + var valid_615881 = formData.getOrDefault("RuleNumber") + valid_615881 = validateParameter(valid_615881, JInt, required = true, default = nil) + if valid_615881 != nil: + section.add "RuleNumber", valid_615881 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615880: Call_PostDeleteNetworkAclEntry_615864; path: JsonNode; +proc call*(call_615882: Call_PostDeleteNetworkAclEntry_615866; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified ingress or egress entry (rule) from the specified network ACL. ## - let valid = call_615880.validator(path, query, header, formData, body) - let scheme = call_615880.pickScheme + let valid = call_615882.validator(path, query, header, formData, body) + let scheme = call_615882.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615880.url(scheme.get, call_615880.host, call_615880.base, - call_615880.route, valid.getOrDefault("path"), + let url = call_615882.url(scheme.get, call_615882.host, call_615882.base, + call_615882.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615880, url, valid) + result = atozHook(call_615882, url, valid) -proc call*(call_615881: Call_PostDeleteNetworkAclEntry_615864; +proc call*(call_615883: Call_PostDeleteNetworkAclEntry_615866; NetworkAclId: string; Egress: bool; RuleNumber: int; DryRun: bool = false; Action: string = "DeleteNetworkAclEntry"; Version: string = "2016-11-15"): Recallable = ## postDeleteNetworkAclEntry @@ -39415,25 +39442,25 @@ proc call*(call_615881: Call_PostDeleteNetworkAclEntry_615864; ## Version: string (required) ## RuleNumber: int (required) ## : The rule number of the entry to delete. - var query_615882 = newJObject() - var formData_615883 = newJObject() - add(formData_615883, "NetworkAclId", newJString(NetworkAclId)) - add(formData_615883, "DryRun", newJBool(DryRun)) - add(query_615882, "Action", newJString(Action)) - add(formData_615883, "Egress", newJBool(Egress)) - add(query_615882, "Version", newJString(Version)) - add(formData_615883, "RuleNumber", newJInt(RuleNumber)) - result = call_615881.call(nil, query_615882, nil, formData_615883, nil) - -var postDeleteNetworkAclEntry* = Call_PostDeleteNetworkAclEntry_615864( + var query_615884 = newJObject() + var formData_615885 = newJObject() + add(formData_615885, "NetworkAclId", newJString(NetworkAclId)) + add(formData_615885, "DryRun", newJBool(DryRun)) + add(query_615884, "Action", newJString(Action)) + add(formData_615885, "Egress", newJBool(Egress)) + add(query_615884, "Version", newJString(Version)) + add(formData_615885, "RuleNumber", newJInt(RuleNumber)) + result = call_615883.call(nil, query_615884, nil, formData_615885, nil) + +var postDeleteNetworkAclEntry* = Call_PostDeleteNetworkAclEntry_615866( name: "postDeleteNetworkAclEntry", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteNetworkAclEntry", - validator: validate_PostDeleteNetworkAclEntry_615865, base: "/", - url: url_PostDeleteNetworkAclEntry_615866, + validator: validate_PostDeleteNetworkAclEntry_615867, base: "/", + url: url_PostDeleteNetworkAclEntry_615868, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteNetworkAclEntry_615845 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteNetworkAclEntry_615847(protocol: Scheme; host: string; + Call_GetDeleteNetworkAclEntry_615847 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteNetworkAclEntry_615849(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -39444,7 +39471,7 @@ proc url_GetDeleteNetworkAclEntry_615847(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDeleteNetworkAclEntry_615846(path: JsonNode; query: JsonNode; +proc validate_GetDeleteNetworkAclEntry_615848(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified ingress or egress entry (rule) from the specified network ACL. ## @@ -39464,35 +39491,35 @@ proc validate_GetDeleteNetworkAclEntry_615846(path: JsonNode; query: JsonNode; ## Egress: JBool (required) ## : Indicates whether the rule is an egress rule. section = newJObject() - var valid_615848 = query.getOrDefault("DryRun") - valid_615848 = validateParameter(valid_615848, JBool, required = false, default = nil) - if valid_615848 != nil: - section.add "DryRun", valid_615848 + var valid_615850 = query.getOrDefault("DryRun") + valid_615850 = validateParameter(valid_615850, JBool, required = false, default = nil) + if valid_615850 != nil: + section.add "DryRun", valid_615850 assert query != nil, "query argument is necessary due to required `RuleNumber` field" - var valid_615849 = query.getOrDefault("RuleNumber") - valid_615849 = validateParameter(valid_615849, JInt, required = true, default = nil) - if valid_615849 != nil: - section.add "RuleNumber", valid_615849 - var valid_615850 = query.getOrDefault("Action") - valid_615850 = validateParameter(valid_615850, JString, required = true, - default = newJString("DeleteNetworkAclEntry")) - if valid_615850 != nil: - section.add "Action", valid_615850 - var valid_615851 = query.getOrDefault("NetworkAclId") - valid_615851 = validateParameter(valid_615851, JString, required = true, - default = nil) + var valid_615851 = query.getOrDefault("RuleNumber") + valid_615851 = validateParameter(valid_615851, JInt, required = true, default = nil) if valid_615851 != nil: - section.add "NetworkAclId", valid_615851 - var valid_615852 = query.getOrDefault("Version") + section.add "RuleNumber", valid_615851 + var valid_615852 = query.getOrDefault("Action") valid_615852 = validateParameter(valid_615852, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("DeleteNetworkAclEntry")) if valid_615852 != nil: - section.add "Version", valid_615852 - var valid_615853 = query.getOrDefault("Egress") - valid_615853 = validateParameter(valid_615853, JBool, required = true, default = nil) + section.add "Action", valid_615852 + var valid_615853 = query.getOrDefault("NetworkAclId") + valid_615853 = validateParameter(valid_615853, JString, required = true, + default = nil) if valid_615853 != nil: - section.add "Egress", valid_615853 + section.add "NetworkAclId", valid_615853 + var valid_615854 = query.getOrDefault("Version") + valid_615854 = validateParameter(valid_615854, JString, required = true, + default = newJString("2016-11-15")) + if valid_615854 != nil: + section.add "Version", valid_615854 + var valid_615855 = query.getOrDefault("Egress") + valid_615855 = validateParameter(valid_615855, JBool, required = true, default = nil) + if valid_615855 != nil: + section.add "Egress", valid_615855 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -39503,61 +39530,61 @@ proc validate_GetDeleteNetworkAclEntry_615846(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615854 = header.getOrDefault("X-Amz-Signature") - valid_615854 = validateParameter(valid_615854, JString, required = false, - default = nil) - if valid_615854 != nil: - section.add "X-Amz-Signature", valid_615854 - var valid_615855 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615855 = validateParameter(valid_615855, JString, required = false, - default = nil) - if valid_615855 != nil: - section.add "X-Amz-Content-Sha256", valid_615855 - var valid_615856 = header.getOrDefault("X-Amz-Date") + var valid_615856 = header.getOrDefault("X-Amz-Signature") valid_615856 = validateParameter(valid_615856, JString, required = false, default = nil) if valid_615856 != nil: - section.add "X-Amz-Date", valid_615856 - var valid_615857 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615856 + var valid_615857 = header.getOrDefault("X-Amz-Content-Sha256") valid_615857 = validateParameter(valid_615857, JString, required = false, default = nil) if valid_615857 != nil: - section.add "X-Amz-Credential", valid_615857 - var valid_615858 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615857 + var valid_615858 = header.getOrDefault("X-Amz-Date") valid_615858 = validateParameter(valid_615858, JString, required = false, default = nil) if valid_615858 != nil: - section.add "X-Amz-Security-Token", valid_615858 - var valid_615859 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615858 + var valid_615859 = header.getOrDefault("X-Amz-Credential") valid_615859 = validateParameter(valid_615859, JString, required = false, default = nil) if valid_615859 != nil: - section.add "X-Amz-Algorithm", valid_615859 - var valid_615860 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615859 + var valid_615860 = header.getOrDefault("X-Amz-Security-Token") valid_615860 = validateParameter(valid_615860, JString, required = false, default = nil) if valid_615860 != nil: - section.add "X-Amz-SignedHeaders", valid_615860 + section.add "X-Amz-Security-Token", valid_615860 + var valid_615861 = header.getOrDefault("X-Amz-Algorithm") + valid_615861 = validateParameter(valid_615861, JString, required = false, + default = nil) + if valid_615861 != nil: + section.add "X-Amz-Algorithm", valid_615861 + var valid_615862 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615862 = validateParameter(valid_615862, JString, required = false, + default = nil) + if valid_615862 != nil: + section.add "X-Amz-SignedHeaders", valid_615862 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615861: Call_GetDeleteNetworkAclEntry_615845; path: JsonNode; +proc call*(call_615863: Call_GetDeleteNetworkAclEntry_615847; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified ingress or egress entry (rule) from the specified network ACL. ## - let valid = call_615861.validator(path, query, header, formData, body) - let scheme = call_615861.pickScheme + let valid = call_615863.validator(path, query, header, formData, body) + let scheme = call_615863.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615861.url(scheme.get, call_615861.host, call_615861.base, - call_615861.route, valid.getOrDefault("path"), + let url = call_615863.url(scheme.get, call_615863.host, call_615863.base, + call_615863.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615861, url, valid) + result = atozHook(call_615863, url, valid) -proc call*(call_615862: Call_GetDeleteNetworkAclEntry_615845; RuleNumber: int; +proc call*(call_615864: Call_GetDeleteNetworkAclEntry_615847; RuleNumber: int; NetworkAclId: string; Egress: bool; DryRun: bool = false; Action: string = "DeleteNetworkAclEntry"; Version: string = "2016-11-15"): Recallable = ## getDeleteNetworkAclEntry @@ -39572,23 +39599,23 @@ proc call*(call_615862: Call_GetDeleteNetworkAclEntry_615845; RuleNumber: int; ## Version: string (required) ## Egress: bool (required) ## : Indicates whether the rule is an egress rule. - var query_615863 = newJObject() - add(query_615863, "DryRun", newJBool(DryRun)) - add(query_615863, "RuleNumber", newJInt(RuleNumber)) - add(query_615863, "Action", newJString(Action)) - add(query_615863, "NetworkAclId", newJString(NetworkAclId)) - add(query_615863, "Version", newJString(Version)) - add(query_615863, "Egress", newJBool(Egress)) - result = call_615862.call(nil, query_615863, nil, nil, nil) - -var getDeleteNetworkAclEntry* = Call_GetDeleteNetworkAclEntry_615845( + var query_615865 = newJObject() + add(query_615865, "DryRun", newJBool(DryRun)) + add(query_615865, "RuleNumber", newJInt(RuleNumber)) + add(query_615865, "Action", newJString(Action)) + add(query_615865, "NetworkAclId", newJString(NetworkAclId)) + add(query_615865, "Version", newJString(Version)) + add(query_615865, "Egress", newJBool(Egress)) + result = call_615864.call(nil, query_615865, nil, nil, nil) + +var getDeleteNetworkAclEntry* = Call_GetDeleteNetworkAclEntry_615847( name: "getDeleteNetworkAclEntry", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteNetworkAclEntry", - validator: validate_GetDeleteNetworkAclEntry_615846, base: "/", - url: url_GetDeleteNetworkAclEntry_615847, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDeleteNetworkAclEntry_615848, base: "/", + url: url_GetDeleteNetworkAclEntry_615849, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteNetworkInterface_615901 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteNetworkInterface_615903(protocol: Scheme; host: string; + Call_PostDeleteNetworkInterface_615903 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteNetworkInterface_615905(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -39598,7 +39625,7 @@ proc url_PostDeleteNetworkInterface_615903(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDeleteNetworkInterface_615902(path: JsonNode; query: JsonNode; +proc validate_PostDeleteNetworkInterface_615904(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified network interface. You must detach the network interface before you can delete it. ## @@ -39610,16 +39637,16 @@ proc validate_PostDeleteNetworkInterface_615902(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615904 = query.getOrDefault("Action") - valid_615904 = validateParameter(valid_615904, JString, required = true, + var valid_615906 = query.getOrDefault("Action") + valid_615906 = validateParameter(valid_615906, JString, required = true, default = newJString("DeleteNetworkInterface")) - if valid_615904 != nil: - section.add "Action", valid_615904 - var valid_615905 = query.getOrDefault("Version") - valid_615905 = validateParameter(valid_615905, JString, required = true, + if valid_615906 != nil: + section.add "Action", valid_615906 + var valid_615907 = query.getOrDefault("Version") + valid_615907 = validateParameter(valid_615907, JString, required = true, default = newJString("2016-11-15")) - if valid_615905 != nil: - section.add "Version", valid_615905 + if valid_615907 != nil: + section.add "Version", valid_615907 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -39630,41 +39657,41 @@ proc validate_PostDeleteNetworkInterface_615902(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615906 = header.getOrDefault("X-Amz-Signature") - valid_615906 = validateParameter(valid_615906, JString, required = false, - default = nil) - if valid_615906 != nil: - section.add "X-Amz-Signature", valid_615906 - var valid_615907 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615907 = validateParameter(valid_615907, JString, required = false, - default = nil) - if valid_615907 != nil: - section.add "X-Amz-Content-Sha256", valid_615907 - var valid_615908 = header.getOrDefault("X-Amz-Date") + var valid_615908 = header.getOrDefault("X-Amz-Signature") valid_615908 = validateParameter(valid_615908, JString, required = false, default = nil) if valid_615908 != nil: - section.add "X-Amz-Date", valid_615908 - var valid_615909 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615908 + var valid_615909 = header.getOrDefault("X-Amz-Content-Sha256") valid_615909 = validateParameter(valid_615909, JString, required = false, default = nil) if valid_615909 != nil: - section.add "X-Amz-Credential", valid_615909 - var valid_615910 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615909 + var valid_615910 = header.getOrDefault("X-Amz-Date") valid_615910 = validateParameter(valid_615910, JString, required = false, default = nil) if valid_615910 != nil: - section.add "X-Amz-Security-Token", valid_615910 - var valid_615911 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615910 + var valid_615911 = header.getOrDefault("X-Amz-Credential") valid_615911 = validateParameter(valid_615911, JString, required = false, default = nil) if valid_615911 != nil: - section.add "X-Amz-Algorithm", valid_615911 - var valid_615912 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615911 + var valid_615912 = header.getOrDefault("X-Amz-Security-Token") valid_615912 = validateParameter(valid_615912, JString, required = false, default = nil) if valid_615912 != nil: - section.add "X-Amz-SignedHeaders", valid_615912 + section.add "X-Amz-Security-Token", valid_615912 + var valid_615913 = header.getOrDefault("X-Amz-Algorithm") + valid_615913 = validateParameter(valid_615913, JString, required = false, + default = nil) + if valid_615913 != nil: + section.add "X-Amz-Algorithm", valid_615913 + var valid_615914 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615914 = validateParameter(valid_615914, JString, required = false, + default = nil) + if valid_615914 != nil: + section.add "X-Amz-SignedHeaders", valid_615914 result.add "header", section ## parameters in `formData` object: ## NetworkInterfaceId: JString (required) @@ -39673,33 +39700,33 @@ proc validate_PostDeleteNetworkInterface_615902(path: JsonNode; query: JsonNode; ## : 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. section = newJObject() assert formData != nil, "formData argument is necessary due to required `NetworkInterfaceId` field" - var valid_615913 = formData.getOrDefault("NetworkInterfaceId") - valid_615913 = validateParameter(valid_615913, JString, required = true, + var valid_615915 = formData.getOrDefault("NetworkInterfaceId") + valid_615915 = validateParameter(valid_615915, JString, required = true, default = nil) - if valid_615913 != nil: - section.add "NetworkInterfaceId", valid_615913 - var valid_615914 = formData.getOrDefault("DryRun") - valid_615914 = validateParameter(valid_615914, JBool, required = false, default = nil) - if valid_615914 != nil: - section.add "DryRun", valid_615914 + if valid_615915 != nil: + section.add "NetworkInterfaceId", valid_615915 + var valid_615916 = formData.getOrDefault("DryRun") + valid_615916 = validateParameter(valid_615916, JBool, required = false, default = nil) + if valid_615916 != nil: + section.add "DryRun", valid_615916 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615915: Call_PostDeleteNetworkInterface_615901; path: JsonNode; +proc call*(call_615917: Call_PostDeleteNetworkInterface_615903; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified network interface. You must detach the network interface before you can delete it. ## - let valid = call_615915.validator(path, query, header, formData, body) - let scheme = call_615915.pickScheme + let valid = call_615917.validator(path, query, header, formData, body) + let scheme = call_615917.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615915.url(scheme.get, call_615915.host, call_615915.base, - call_615915.route, valid.getOrDefault("path"), + let url = call_615917.url(scheme.get, call_615917.host, call_615917.base, + call_615917.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615915, url, valid) + result = atozHook(call_615917, url, valid) -proc call*(call_615916: Call_PostDeleteNetworkInterface_615901; +proc call*(call_615918: Call_PostDeleteNetworkInterface_615903; NetworkInterfaceId: string; DryRun: bool = false; Action: string = "DeleteNetworkInterface"; Version: string = "2016-11-15"): Recallable = ## postDeleteNetworkInterface @@ -39710,23 +39737,23 @@ proc call*(call_615916: Call_PostDeleteNetworkInterface_615901; ## : 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. ## Action: string (required) ## Version: string (required) - var query_615917 = newJObject() - var formData_615918 = newJObject() - add(formData_615918, "NetworkInterfaceId", newJString(NetworkInterfaceId)) - add(formData_615918, "DryRun", newJBool(DryRun)) - add(query_615917, "Action", newJString(Action)) - add(query_615917, "Version", newJString(Version)) - result = call_615916.call(nil, query_615917, nil, formData_615918, nil) + var query_615919 = newJObject() + var formData_615920 = newJObject() + add(formData_615920, "NetworkInterfaceId", newJString(NetworkInterfaceId)) + add(formData_615920, "DryRun", newJBool(DryRun)) + add(query_615919, "Action", newJString(Action)) + add(query_615919, "Version", newJString(Version)) + result = call_615918.call(nil, query_615919, nil, formData_615920, nil) -var postDeleteNetworkInterface* = Call_PostDeleteNetworkInterface_615901( +var postDeleteNetworkInterface* = Call_PostDeleteNetworkInterface_615903( name: "postDeleteNetworkInterface", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteNetworkInterface", - validator: validate_PostDeleteNetworkInterface_615902, base: "/", - url: url_PostDeleteNetworkInterface_615903, + validator: validate_PostDeleteNetworkInterface_615904, base: "/", + url: url_PostDeleteNetworkInterface_615905, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteNetworkInterface_615884 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteNetworkInterface_615886(protocol: Scheme; host: string; + Call_GetDeleteNetworkInterface_615886 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteNetworkInterface_615888(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -39736,7 +39763,7 @@ proc url_GetDeleteNetworkInterface_615886(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDeleteNetworkInterface_615885(path: JsonNode; query: JsonNode; +proc validate_GetDeleteNetworkInterface_615887(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified network interface. You must detach the network interface before you can delete it. ## @@ -39753,25 +39780,25 @@ proc validate_GetDeleteNetworkInterface_615885(path: JsonNode; query: JsonNode; ## Version: JString (required) section = newJObject() assert query != nil, "query argument is necessary due to required `NetworkInterfaceId` field" - var valid_615887 = query.getOrDefault("NetworkInterfaceId") - valid_615887 = validateParameter(valid_615887, JString, required = true, - default = nil) - if valid_615887 != nil: - section.add "NetworkInterfaceId", valid_615887 - var valid_615888 = query.getOrDefault("DryRun") - valid_615888 = validateParameter(valid_615888, JBool, required = false, default = nil) - if valid_615888 != nil: - section.add "DryRun", valid_615888 - var valid_615889 = query.getOrDefault("Action") + var valid_615889 = query.getOrDefault("NetworkInterfaceId") valid_615889 = validateParameter(valid_615889, JString, required = true, - default = newJString("DeleteNetworkInterface")) + default = nil) if valid_615889 != nil: - section.add "Action", valid_615889 - var valid_615890 = query.getOrDefault("Version") - valid_615890 = validateParameter(valid_615890, JString, required = true, - default = newJString("2016-11-15")) + section.add "NetworkInterfaceId", valid_615889 + var valid_615890 = query.getOrDefault("DryRun") + valid_615890 = validateParameter(valid_615890, JBool, required = false, default = nil) if valid_615890 != nil: - section.add "Version", valid_615890 + section.add "DryRun", valid_615890 + var valid_615891 = query.getOrDefault("Action") + valid_615891 = validateParameter(valid_615891, JString, required = true, + default = newJString("DeleteNetworkInterface")) + if valid_615891 != nil: + section.add "Action", valid_615891 + var valid_615892 = query.getOrDefault("Version") + valid_615892 = validateParameter(valid_615892, JString, required = true, + default = newJString("2016-11-15")) + if valid_615892 != nil: + section.add "Version", valid_615892 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -39782,61 +39809,61 @@ proc validate_GetDeleteNetworkInterface_615885(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615891 = header.getOrDefault("X-Amz-Signature") - valid_615891 = validateParameter(valid_615891, JString, required = false, - default = nil) - if valid_615891 != nil: - section.add "X-Amz-Signature", valid_615891 - var valid_615892 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615892 = validateParameter(valid_615892, JString, required = false, - default = nil) - if valid_615892 != nil: - section.add "X-Amz-Content-Sha256", valid_615892 - var valid_615893 = header.getOrDefault("X-Amz-Date") + var valid_615893 = header.getOrDefault("X-Amz-Signature") valid_615893 = validateParameter(valid_615893, JString, required = false, default = nil) if valid_615893 != nil: - section.add "X-Amz-Date", valid_615893 - var valid_615894 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615893 + var valid_615894 = header.getOrDefault("X-Amz-Content-Sha256") valid_615894 = validateParameter(valid_615894, JString, required = false, default = nil) if valid_615894 != nil: - section.add "X-Amz-Credential", valid_615894 - var valid_615895 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615894 + var valid_615895 = header.getOrDefault("X-Amz-Date") valid_615895 = validateParameter(valid_615895, JString, required = false, default = nil) if valid_615895 != nil: - section.add "X-Amz-Security-Token", valid_615895 - var valid_615896 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615895 + var valid_615896 = header.getOrDefault("X-Amz-Credential") valid_615896 = validateParameter(valid_615896, JString, required = false, default = nil) if valid_615896 != nil: - section.add "X-Amz-Algorithm", valid_615896 - var valid_615897 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615896 + var valid_615897 = header.getOrDefault("X-Amz-Security-Token") valid_615897 = validateParameter(valid_615897, JString, required = false, default = nil) if valid_615897 != nil: - section.add "X-Amz-SignedHeaders", valid_615897 + section.add "X-Amz-Security-Token", valid_615897 + var valid_615898 = header.getOrDefault("X-Amz-Algorithm") + valid_615898 = validateParameter(valid_615898, JString, required = false, + default = nil) + if valid_615898 != nil: + section.add "X-Amz-Algorithm", valid_615898 + var valid_615899 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615899 = validateParameter(valid_615899, JString, required = false, + default = nil) + if valid_615899 != nil: + section.add "X-Amz-SignedHeaders", valid_615899 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615898: Call_GetDeleteNetworkInterface_615884; path: JsonNode; +proc call*(call_615900: Call_GetDeleteNetworkInterface_615886; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified network interface. You must detach the network interface before you can delete it. ## - let valid = call_615898.validator(path, query, header, formData, body) - let scheme = call_615898.pickScheme + let valid = call_615900.validator(path, query, header, formData, body) + let scheme = call_615900.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615898.url(scheme.get, call_615898.host, call_615898.base, - call_615898.route, valid.getOrDefault("path"), + let url = call_615900.url(scheme.get, call_615900.host, call_615900.base, + call_615900.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615898, url, valid) + result = atozHook(call_615900, url, valid) -proc call*(call_615899: Call_GetDeleteNetworkInterface_615884; +proc call*(call_615901: Call_GetDeleteNetworkInterface_615886; NetworkInterfaceId: string; DryRun: bool = false; Action: string = "DeleteNetworkInterface"; Version: string = "2016-11-15"): Recallable = ## getDeleteNetworkInterface @@ -39847,22 +39874,22 @@ proc call*(call_615899: Call_GetDeleteNetworkInterface_615884; ## : 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. ## Action: string (required) ## Version: string (required) - var query_615900 = newJObject() - add(query_615900, "NetworkInterfaceId", newJString(NetworkInterfaceId)) - add(query_615900, "DryRun", newJBool(DryRun)) - add(query_615900, "Action", newJString(Action)) - add(query_615900, "Version", newJString(Version)) - result = call_615899.call(nil, query_615900, nil, nil, nil) + var query_615902 = newJObject() + add(query_615902, "NetworkInterfaceId", newJString(NetworkInterfaceId)) + add(query_615902, "DryRun", newJBool(DryRun)) + add(query_615902, "Action", newJString(Action)) + add(query_615902, "Version", newJString(Version)) + result = call_615901.call(nil, query_615902, nil, nil, nil) -var getDeleteNetworkInterface* = Call_GetDeleteNetworkInterface_615884( +var getDeleteNetworkInterface* = Call_GetDeleteNetworkInterface_615886( name: "getDeleteNetworkInterface", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteNetworkInterface", - validator: validate_GetDeleteNetworkInterface_615885, base: "/", - url: url_GetDeleteNetworkInterface_615886, + validator: validate_GetDeleteNetworkInterface_615887, base: "/", + url: url_GetDeleteNetworkInterface_615888, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteNetworkInterfacePermission_615937 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteNetworkInterfacePermission_615939(protocol: Scheme; + Call_PostDeleteNetworkInterfacePermission_615939 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteNetworkInterfacePermission_615941(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -39872,7 +39899,7 @@ proc url_PostDeleteNetworkInterfacePermission_615939(protocol: Scheme; else: result.path = base & route -proc validate_PostDeleteNetworkInterfacePermission_615938(path: JsonNode; +proc validate_PostDeleteNetworkInterfacePermission_615940(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes a permission for a network interface. By default, you cannot delete the permission if the account for which you're removing the permission has attached the network interface to an instance. However, you can force delete the permission, regardless of any attachment. ## @@ -39884,16 +39911,16 @@ proc validate_PostDeleteNetworkInterfacePermission_615938(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615940 = query.getOrDefault("Action") - valid_615940 = validateParameter(valid_615940, JString, required = true, default = newJString( + var valid_615942 = query.getOrDefault("Action") + valid_615942 = validateParameter(valid_615942, JString, required = true, default = newJString( "DeleteNetworkInterfacePermission")) - if valid_615940 != nil: - section.add "Action", valid_615940 - var valid_615941 = query.getOrDefault("Version") - valid_615941 = validateParameter(valid_615941, JString, required = true, + if valid_615942 != nil: + section.add "Action", valid_615942 + var valid_615943 = query.getOrDefault("Version") + valid_615943 = validateParameter(valid_615943, JString, required = true, default = newJString("2016-11-15")) - if valid_615941 != nil: - section.add "Version", valid_615941 + if valid_615943 != nil: + section.add "Version", valid_615943 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -39904,41 +39931,41 @@ proc validate_PostDeleteNetworkInterfacePermission_615938(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615942 = header.getOrDefault("X-Amz-Signature") - valid_615942 = validateParameter(valid_615942, JString, required = false, - default = nil) - if valid_615942 != nil: - section.add "X-Amz-Signature", valid_615942 - var valid_615943 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615943 = validateParameter(valid_615943, JString, required = false, - default = nil) - if valid_615943 != nil: - section.add "X-Amz-Content-Sha256", valid_615943 - var valid_615944 = header.getOrDefault("X-Amz-Date") + var valid_615944 = header.getOrDefault("X-Amz-Signature") valid_615944 = validateParameter(valid_615944, JString, required = false, default = nil) if valid_615944 != nil: - section.add "X-Amz-Date", valid_615944 - var valid_615945 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615944 + var valid_615945 = header.getOrDefault("X-Amz-Content-Sha256") valid_615945 = validateParameter(valid_615945, JString, required = false, default = nil) if valid_615945 != nil: - section.add "X-Amz-Credential", valid_615945 - var valid_615946 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615945 + var valid_615946 = header.getOrDefault("X-Amz-Date") valid_615946 = validateParameter(valid_615946, JString, required = false, default = nil) if valid_615946 != nil: - section.add "X-Amz-Security-Token", valid_615946 - var valid_615947 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615946 + var valid_615947 = header.getOrDefault("X-Amz-Credential") valid_615947 = validateParameter(valid_615947, JString, required = false, default = nil) if valid_615947 != nil: - section.add "X-Amz-Algorithm", valid_615947 - var valid_615948 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615947 + var valid_615948 = header.getOrDefault("X-Amz-Security-Token") valid_615948 = validateParameter(valid_615948, JString, required = false, default = nil) if valid_615948 != nil: - section.add "X-Amz-SignedHeaders", valid_615948 + section.add "X-Amz-Security-Token", valid_615948 + var valid_615949 = header.getOrDefault("X-Amz-Algorithm") + valid_615949 = validateParameter(valid_615949, JString, required = false, + default = nil) + if valid_615949 != nil: + section.add "X-Amz-Algorithm", valid_615949 + var valid_615950 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615950 = validateParameter(valid_615950, JString, required = false, + default = nil) + if valid_615950 != nil: + section.add "X-Amz-SignedHeaders", valid_615950 result.add "header", section ## parameters in `formData` object: ## Force: JBool @@ -39948,39 +39975,39 @@ proc validate_PostDeleteNetworkInterfacePermission_615938(path: JsonNode; ## NetworkInterfacePermissionId: JString (required) ## : The ID of the network interface permission. section = newJObject() - var valid_615949 = formData.getOrDefault("Force") - valid_615949 = validateParameter(valid_615949, JBool, required = false, default = nil) - if valid_615949 != nil: - section.add "Force", valid_615949 - var valid_615950 = formData.getOrDefault("DryRun") - valid_615950 = validateParameter(valid_615950, JBool, required = false, default = nil) - if valid_615950 != nil: - section.add "DryRun", valid_615950 + var valid_615951 = formData.getOrDefault("Force") + valid_615951 = validateParameter(valid_615951, JBool, required = false, default = nil) + if valid_615951 != nil: + section.add "Force", valid_615951 + var valid_615952 = formData.getOrDefault("DryRun") + valid_615952 = validateParameter(valid_615952, JBool, required = false, default = nil) + if valid_615952 != nil: + section.add "DryRun", valid_615952 assert formData != nil, "formData argument is necessary due to required `NetworkInterfacePermissionId` field" - var valid_615951 = formData.getOrDefault("NetworkInterfacePermissionId") - valid_615951 = validateParameter(valid_615951, JString, required = true, + var valid_615953 = formData.getOrDefault("NetworkInterfacePermissionId") + valid_615953 = validateParameter(valid_615953, JString, required = true, default = nil) - if valid_615951 != nil: - section.add "NetworkInterfacePermissionId", valid_615951 + if valid_615953 != nil: + section.add "NetworkInterfacePermissionId", valid_615953 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615952: Call_PostDeleteNetworkInterfacePermission_615937; +proc call*(call_615954: Call_PostDeleteNetworkInterfacePermission_615939; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes a permission for a network interface. By default, you cannot delete the permission if the account for which you're removing the permission has attached the network interface to an instance. However, you can force delete the permission, regardless of any attachment. ## - let valid = call_615952.validator(path, query, header, formData, body) - let scheme = call_615952.pickScheme + let valid = call_615954.validator(path, query, header, formData, body) + let scheme = call_615954.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615952.url(scheme.get, call_615952.host, call_615952.base, - call_615952.route, valid.getOrDefault("path"), + let url = call_615954.url(scheme.get, call_615954.host, call_615954.base, + call_615954.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615952, url, valid) + result = atozHook(call_615954, url, valid) -proc call*(call_615953: Call_PostDeleteNetworkInterfacePermission_615937; +proc call*(call_615955: Call_PostDeleteNetworkInterfacePermission_615939; NetworkInterfacePermissionId: string; Force: bool = false; DryRun: bool = false; Action: string = "DeleteNetworkInterfacePermission"; Version: string = "2016-11-15"): Recallable = @@ -39994,25 +40021,25 @@ proc call*(call_615953: Call_PostDeleteNetworkInterfacePermission_615937; ## NetworkInterfacePermissionId: string (required) ## : The ID of the network interface permission. ## Version: string (required) - var query_615954 = newJObject() - var formData_615955 = newJObject() - add(formData_615955, "Force", newJBool(Force)) - add(formData_615955, "DryRun", newJBool(DryRun)) - add(query_615954, "Action", newJString(Action)) - add(formData_615955, "NetworkInterfacePermissionId", + var query_615956 = newJObject() + var formData_615957 = newJObject() + add(formData_615957, "Force", newJBool(Force)) + add(formData_615957, "DryRun", newJBool(DryRun)) + add(query_615956, "Action", newJString(Action)) + add(formData_615957, "NetworkInterfacePermissionId", newJString(NetworkInterfacePermissionId)) - add(query_615954, "Version", newJString(Version)) - result = call_615953.call(nil, query_615954, nil, formData_615955, nil) + add(query_615956, "Version", newJString(Version)) + result = call_615955.call(nil, query_615956, nil, formData_615957, nil) -var postDeleteNetworkInterfacePermission* = Call_PostDeleteNetworkInterfacePermission_615937( +var postDeleteNetworkInterfacePermission* = Call_PostDeleteNetworkInterfacePermission_615939( name: "postDeleteNetworkInterfacePermission", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteNetworkInterfacePermission", - validator: validate_PostDeleteNetworkInterfacePermission_615938, base: "/", - url: url_PostDeleteNetworkInterfacePermission_615939, + validator: validate_PostDeleteNetworkInterfacePermission_615940, base: "/", + url: url_PostDeleteNetworkInterfacePermission_615941, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteNetworkInterfacePermission_615919 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteNetworkInterfacePermission_615921(protocol: Scheme; host: string; + Call_GetDeleteNetworkInterfacePermission_615921 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteNetworkInterfacePermission_615923(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -40022,7 +40049,7 @@ proc url_GetDeleteNetworkInterfacePermission_615921(protocol: Scheme; host: stri else: result.path = base & route -proc validate_GetDeleteNetworkInterfacePermission_615920(path: JsonNode; +proc validate_GetDeleteNetworkInterfacePermission_615922(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes a permission for a network interface. By default, you cannot delete the permission if the account for which you're removing the permission has attached the network interface to an instance. However, you can force delete the permission, regardless of any attachment. ## @@ -40040,30 +40067,30 @@ proc validate_GetDeleteNetworkInterfacePermission_615920(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615922 = query.getOrDefault("DryRun") - valid_615922 = validateParameter(valid_615922, JBool, required = false, default = nil) - if valid_615922 != nil: - section.add "DryRun", valid_615922 - assert query != nil, "query argument is necessary due to required `NetworkInterfacePermissionId` field" - var valid_615923 = query.getOrDefault("NetworkInterfacePermissionId") - valid_615923 = validateParameter(valid_615923, JString, required = true, - default = nil) - if valid_615923 != nil: - section.add "NetworkInterfacePermissionId", valid_615923 - var valid_615924 = query.getOrDefault("Force") + var valid_615924 = query.getOrDefault("DryRun") valid_615924 = validateParameter(valid_615924, JBool, required = false, default = nil) if valid_615924 != nil: - section.add "Force", valid_615924 - var valid_615925 = query.getOrDefault("Action") - valid_615925 = validateParameter(valid_615925, JString, required = true, default = newJString( - "DeleteNetworkInterfacePermission")) + section.add "DryRun", valid_615924 + assert query != nil, "query argument is necessary due to required `NetworkInterfacePermissionId` field" + var valid_615925 = query.getOrDefault("NetworkInterfacePermissionId") + valid_615925 = validateParameter(valid_615925, JString, required = true, + default = nil) if valid_615925 != nil: - section.add "Action", valid_615925 - var valid_615926 = query.getOrDefault("Version") - valid_615926 = validateParameter(valid_615926, JString, required = true, - default = newJString("2016-11-15")) + section.add "NetworkInterfacePermissionId", valid_615925 + var valid_615926 = query.getOrDefault("Force") + valid_615926 = validateParameter(valid_615926, JBool, required = false, default = nil) if valid_615926 != nil: - section.add "Version", valid_615926 + section.add "Force", valid_615926 + var valid_615927 = query.getOrDefault("Action") + valid_615927 = validateParameter(valid_615927, JString, required = true, default = newJString( + "DeleteNetworkInterfacePermission")) + if valid_615927 != nil: + section.add "Action", valid_615927 + var valid_615928 = query.getOrDefault("Version") + valid_615928 = validateParameter(valid_615928, JString, required = true, + default = newJString("2016-11-15")) + if valid_615928 != nil: + section.add "Version", valid_615928 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -40074,62 +40101,62 @@ proc validate_GetDeleteNetworkInterfacePermission_615920(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615927 = header.getOrDefault("X-Amz-Signature") - valid_615927 = validateParameter(valid_615927, JString, required = false, - default = nil) - if valid_615927 != nil: - section.add "X-Amz-Signature", valid_615927 - var valid_615928 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615928 = validateParameter(valid_615928, JString, required = false, - default = nil) - if valid_615928 != nil: - section.add "X-Amz-Content-Sha256", valid_615928 - var valid_615929 = header.getOrDefault("X-Amz-Date") + var valid_615929 = header.getOrDefault("X-Amz-Signature") valid_615929 = validateParameter(valid_615929, JString, required = false, default = nil) if valid_615929 != nil: - section.add "X-Amz-Date", valid_615929 - var valid_615930 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615929 + var valid_615930 = header.getOrDefault("X-Amz-Content-Sha256") valid_615930 = validateParameter(valid_615930, JString, required = false, default = nil) if valid_615930 != nil: - section.add "X-Amz-Credential", valid_615930 - var valid_615931 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615930 + var valid_615931 = header.getOrDefault("X-Amz-Date") valid_615931 = validateParameter(valid_615931, JString, required = false, default = nil) if valid_615931 != nil: - section.add "X-Amz-Security-Token", valid_615931 - var valid_615932 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615931 + var valid_615932 = header.getOrDefault("X-Amz-Credential") valid_615932 = validateParameter(valid_615932, JString, required = false, default = nil) if valid_615932 != nil: - section.add "X-Amz-Algorithm", valid_615932 - var valid_615933 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615932 + var valid_615933 = header.getOrDefault("X-Amz-Security-Token") valid_615933 = validateParameter(valid_615933, JString, required = false, default = nil) if valid_615933 != nil: - section.add "X-Amz-SignedHeaders", valid_615933 + section.add "X-Amz-Security-Token", valid_615933 + var valid_615934 = header.getOrDefault("X-Amz-Algorithm") + valid_615934 = validateParameter(valid_615934, JString, required = false, + default = nil) + if valid_615934 != nil: + section.add "X-Amz-Algorithm", valid_615934 + var valid_615935 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615935 = validateParameter(valid_615935, JString, required = false, + default = nil) + if valid_615935 != nil: + section.add "X-Amz-SignedHeaders", valid_615935 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615934: Call_GetDeleteNetworkInterfacePermission_615919; +proc call*(call_615936: Call_GetDeleteNetworkInterfacePermission_615921; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes a permission for a network interface. By default, you cannot delete the permission if the account for which you're removing the permission has attached the network interface to an instance. However, you can force delete the permission, regardless of any attachment. ## - let valid = call_615934.validator(path, query, header, formData, body) - let scheme = call_615934.pickScheme + let valid = call_615936.validator(path, query, header, formData, body) + let scheme = call_615936.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615934.url(scheme.get, call_615934.host, call_615934.base, - call_615934.route, valid.getOrDefault("path"), + let url = call_615936.url(scheme.get, call_615936.host, call_615936.base, + call_615936.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615934, url, valid) + result = atozHook(call_615936, url, valid) -proc call*(call_615935: Call_GetDeleteNetworkInterfacePermission_615919; +proc call*(call_615937: Call_GetDeleteNetworkInterfacePermission_615921; NetworkInterfacePermissionId: string; DryRun: bool = false; Force: bool = false; Action: string = "DeleteNetworkInterfacePermission"; Version: string = "2016-11-15"): Recallable = @@ -40143,24 +40170,24 @@ proc call*(call_615935: Call_GetDeleteNetworkInterfacePermission_615919; ## : Specify true to remove the permission even if the network interface is attached to an instance. ## Action: string (required) ## Version: string (required) - var query_615936 = newJObject() - add(query_615936, "DryRun", newJBool(DryRun)) - add(query_615936, "NetworkInterfacePermissionId", + var query_615938 = newJObject() + add(query_615938, "DryRun", newJBool(DryRun)) + add(query_615938, "NetworkInterfacePermissionId", newJString(NetworkInterfacePermissionId)) - add(query_615936, "Force", newJBool(Force)) - add(query_615936, "Action", newJString(Action)) - add(query_615936, "Version", newJString(Version)) - result = call_615935.call(nil, query_615936, nil, nil, nil) + add(query_615938, "Force", newJBool(Force)) + add(query_615938, "Action", newJString(Action)) + add(query_615938, "Version", newJString(Version)) + result = call_615937.call(nil, query_615938, nil, nil, nil) -var getDeleteNetworkInterfacePermission* = Call_GetDeleteNetworkInterfacePermission_615919( +var getDeleteNetworkInterfacePermission* = Call_GetDeleteNetworkInterfacePermission_615921( name: "getDeleteNetworkInterfacePermission", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteNetworkInterfacePermission", - validator: validate_GetDeleteNetworkInterfacePermission_615920, base: "/", - url: url_GetDeleteNetworkInterfacePermission_615921, + validator: validate_GetDeleteNetworkInterfacePermission_615922, base: "/", + url: url_GetDeleteNetworkInterfacePermission_615923, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeletePlacementGroup_615973 = ref object of OpenApiRestCall_610658 -proc url_PostDeletePlacementGroup_615975(protocol: Scheme; host: string; + Call_PostDeletePlacementGroup_615975 = ref object of OpenApiRestCall_610658 +proc url_PostDeletePlacementGroup_615977(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -40171,7 +40198,7 @@ proc url_PostDeletePlacementGroup_615975(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDeletePlacementGroup_615974(path: JsonNode; query: JsonNode; +proc validate_PostDeletePlacementGroup_615976(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified placement group. You must terminate all instances in the placement group before you can delete the placement group. For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide. ## @@ -40183,16 +40210,16 @@ proc validate_PostDeletePlacementGroup_615974(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_615976 = query.getOrDefault("Action") - valid_615976 = validateParameter(valid_615976, JString, required = true, + var valid_615978 = query.getOrDefault("Action") + valid_615978 = validateParameter(valid_615978, JString, required = true, default = newJString("DeletePlacementGroup")) - if valid_615976 != nil: - section.add "Action", valid_615976 - var valid_615977 = query.getOrDefault("Version") - valid_615977 = validateParameter(valid_615977, JString, required = true, + if valid_615978 != nil: + section.add "Action", valid_615978 + var valid_615979 = query.getOrDefault("Version") + valid_615979 = validateParameter(valid_615979, JString, required = true, default = newJString("2016-11-15")) - if valid_615977 != nil: - section.add "Version", valid_615977 + if valid_615979 != nil: + section.add "Version", valid_615979 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -40203,41 +40230,41 @@ proc validate_PostDeletePlacementGroup_615974(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615978 = header.getOrDefault("X-Amz-Signature") - valid_615978 = validateParameter(valid_615978, JString, required = false, - default = nil) - if valid_615978 != nil: - section.add "X-Amz-Signature", valid_615978 - var valid_615979 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615979 = validateParameter(valid_615979, JString, required = false, - default = nil) - if valid_615979 != nil: - section.add "X-Amz-Content-Sha256", valid_615979 - var valid_615980 = header.getOrDefault("X-Amz-Date") + var valid_615980 = header.getOrDefault("X-Amz-Signature") valid_615980 = validateParameter(valid_615980, JString, required = false, default = nil) if valid_615980 != nil: - section.add "X-Amz-Date", valid_615980 - var valid_615981 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615980 + var valid_615981 = header.getOrDefault("X-Amz-Content-Sha256") valid_615981 = validateParameter(valid_615981, JString, required = false, default = nil) if valid_615981 != nil: - section.add "X-Amz-Credential", valid_615981 - var valid_615982 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615981 + var valid_615982 = header.getOrDefault("X-Amz-Date") valid_615982 = validateParameter(valid_615982, JString, required = false, default = nil) if valid_615982 != nil: - section.add "X-Amz-Security-Token", valid_615982 - var valid_615983 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615982 + var valid_615983 = header.getOrDefault("X-Amz-Credential") valid_615983 = validateParameter(valid_615983, JString, required = false, default = nil) if valid_615983 != nil: - section.add "X-Amz-Algorithm", valid_615983 - var valid_615984 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615983 + var valid_615984 = header.getOrDefault("X-Amz-Security-Token") valid_615984 = validateParameter(valid_615984, JString, required = false, default = nil) if valid_615984 != nil: - section.add "X-Amz-SignedHeaders", valid_615984 + section.add "X-Amz-Security-Token", valid_615984 + var valid_615985 = header.getOrDefault("X-Amz-Algorithm") + valid_615985 = validateParameter(valid_615985, JString, required = false, + default = nil) + if valid_615985 != nil: + section.add "X-Amz-Algorithm", valid_615985 + var valid_615986 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615986 = validateParameter(valid_615986, JString, required = false, + default = nil) + if valid_615986 != nil: + section.add "X-Amz-SignedHeaders", valid_615986 result.add "header", section ## parameters in `formData` object: ## GroupName: JString (required) @@ -40247,33 +40274,33 @@ proc validate_PostDeletePlacementGroup_615974(path: JsonNode; query: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `GroupName` field" - var valid_615985 = formData.getOrDefault("GroupName") - valid_615985 = validateParameter(valid_615985, JString, required = true, + var valid_615987 = formData.getOrDefault("GroupName") + valid_615987 = validateParameter(valid_615987, JString, required = true, default = nil) - if valid_615985 != nil: - section.add "GroupName", valid_615985 - var valid_615986 = formData.getOrDefault("DryRun") - valid_615986 = validateParameter(valid_615986, JBool, required = false, default = nil) - if valid_615986 != nil: - section.add "DryRun", valid_615986 + if valid_615987 != nil: + section.add "GroupName", valid_615987 + var valid_615988 = formData.getOrDefault("DryRun") + valid_615988 = validateParameter(valid_615988, JBool, required = false, default = nil) + if valid_615988 != nil: + section.add "DryRun", valid_615988 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615987: Call_PostDeletePlacementGroup_615973; path: JsonNode; +proc call*(call_615989: Call_PostDeletePlacementGroup_615975; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified placement group. You must terminate all instances in the placement group before you can delete the placement group. For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide. ## - let valid = call_615987.validator(path, query, header, formData, body) - let scheme = call_615987.pickScheme + let valid = call_615989.validator(path, query, header, formData, body) + let scheme = call_615989.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615987.url(scheme.get, call_615987.host, call_615987.base, - call_615987.route, valid.getOrDefault("path"), + let url = call_615989.url(scheme.get, call_615989.host, call_615989.base, + call_615989.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615987, url, valid) + result = atozHook(call_615989, url, valid) -proc call*(call_615988: Call_PostDeletePlacementGroup_615973; GroupName: string; +proc call*(call_615990: Call_PostDeletePlacementGroup_615975; GroupName: string; DryRun: bool = false; Action: string = "DeletePlacementGroup"; Version: string = "2016-11-15"): Recallable = ## postDeletePlacementGroup @@ -40284,22 +40311,22 @@ proc call*(call_615988: Call_PostDeletePlacementGroup_615973; GroupName: string; ## : 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. ## Action: string (required) ## Version: string (required) - var query_615989 = newJObject() - var formData_615990 = newJObject() - add(formData_615990, "GroupName", newJString(GroupName)) - add(formData_615990, "DryRun", newJBool(DryRun)) - add(query_615989, "Action", newJString(Action)) - add(query_615989, "Version", newJString(Version)) - result = call_615988.call(nil, query_615989, nil, formData_615990, nil) + var query_615991 = newJObject() + var formData_615992 = newJObject() + add(formData_615992, "GroupName", newJString(GroupName)) + add(formData_615992, "DryRun", newJBool(DryRun)) + add(query_615991, "Action", newJString(Action)) + add(query_615991, "Version", newJString(Version)) + result = call_615990.call(nil, query_615991, nil, formData_615992, nil) -var postDeletePlacementGroup* = Call_PostDeletePlacementGroup_615973( +var postDeletePlacementGroup* = Call_PostDeletePlacementGroup_615975( name: "postDeletePlacementGroup", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeletePlacementGroup", - validator: validate_PostDeletePlacementGroup_615974, base: "/", - url: url_PostDeletePlacementGroup_615975, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDeletePlacementGroup_615976, base: "/", + url: url_PostDeletePlacementGroup_615977, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeletePlacementGroup_615956 = ref object of OpenApiRestCall_610658 -proc url_GetDeletePlacementGroup_615958(protocol: Scheme; host: string; base: string; + Call_GetDeletePlacementGroup_615958 = ref object of OpenApiRestCall_610658 +proc url_GetDeletePlacementGroup_615960(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -40310,7 +40337,7 @@ proc url_GetDeletePlacementGroup_615958(protocol: Scheme; host: string; base: st else: result.path = base & route -proc validate_GetDeletePlacementGroup_615957(path: JsonNode; query: JsonNode; +proc validate_GetDeletePlacementGroup_615959(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified placement group. You must terminate all instances in the placement group before you can delete the placement group. For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide. ## @@ -40328,25 +40355,25 @@ proc validate_GetDeletePlacementGroup_615957(path: JsonNode; query: JsonNode; section = newJObject() assert query != nil, "query argument is necessary due to required `GroupName` field" - var valid_615959 = query.getOrDefault("GroupName") - valid_615959 = validateParameter(valid_615959, JString, required = true, - default = nil) - if valid_615959 != nil: - section.add "GroupName", valid_615959 - var valid_615960 = query.getOrDefault("DryRun") - valid_615960 = validateParameter(valid_615960, JBool, required = false, default = nil) - if valid_615960 != nil: - section.add "DryRun", valid_615960 - var valid_615961 = query.getOrDefault("Action") + var valid_615961 = query.getOrDefault("GroupName") valid_615961 = validateParameter(valid_615961, JString, required = true, - default = newJString("DeletePlacementGroup")) + default = nil) if valid_615961 != nil: - section.add "Action", valid_615961 - var valid_615962 = query.getOrDefault("Version") - valid_615962 = validateParameter(valid_615962, JString, required = true, - default = newJString("2016-11-15")) + section.add "GroupName", valid_615961 + var valid_615962 = query.getOrDefault("DryRun") + valid_615962 = validateParameter(valid_615962, JBool, required = false, default = nil) if valid_615962 != nil: - section.add "Version", valid_615962 + section.add "DryRun", valid_615962 + var valid_615963 = query.getOrDefault("Action") + valid_615963 = validateParameter(valid_615963, JString, required = true, + default = newJString("DeletePlacementGroup")) + if valid_615963 != nil: + section.add "Action", valid_615963 + var valid_615964 = query.getOrDefault("Version") + valid_615964 = validateParameter(valid_615964, JString, required = true, + default = newJString("2016-11-15")) + if valid_615964 != nil: + section.add "Version", valid_615964 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -40357,61 +40384,61 @@ proc validate_GetDeletePlacementGroup_615957(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615963 = header.getOrDefault("X-Amz-Signature") - valid_615963 = validateParameter(valid_615963, JString, required = false, - default = nil) - if valid_615963 != nil: - section.add "X-Amz-Signature", valid_615963 - var valid_615964 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615964 = validateParameter(valid_615964, JString, required = false, - default = nil) - if valid_615964 != nil: - section.add "X-Amz-Content-Sha256", valid_615964 - var valid_615965 = header.getOrDefault("X-Amz-Date") + var valid_615965 = header.getOrDefault("X-Amz-Signature") valid_615965 = validateParameter(valid_615965, JString, required = false, default = nil) if valid_615965 != nil: - section.add "X-Amz-Date", valid_615965 - var valid_615966 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_615965 + var valid_615966 = header.getOrDefault("X-Amz-Content-Sha256") valid_615966 = validateParameter(valid_615966, JString, required = false, default = nil) if valid_615966 != nil: - section.add "X-Amz-Credential", valid_615966 - var valid_615967 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_615966 + var valid_615967 = header.getOrDefault("X-Amz-Date") valid_615967 = validateParameter(valid_615967, JString, required = false, default = nil) if valid_615967 != nil: - section.add "X-Amz-Security-Token", valid_615967 - var valid_615968 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_615967 + var valid_615968 = header.getOrDefault("X-Amz-Credential") valid_615968 = validateParameter(valid_615968, JString, required = false, default = nil) if valid_615968 != nil: - section.add "X-Amz-Algorithm", valid_615968 - var valid_615969 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_615968 + var valid_615969 = header.getOrDefault("X-Amz-Security-Token") valid_615969 = validateParameter(valid_615969, JString, required = false, default = nil) if valid_615969 != nil: - section.add "X-Amz-SignedHeaders", valid_615969 + section.add "X-Amz-Security-Token", valid_615969 + var valid_615970 = header.getOrDefault("X-Amz-Algorithm") + valid_615970 = validateParameter(valid_615970, JString, required = false, + default = nil) + if valid_615970 != nil: + section.add "X-Amz-Algorithm", valid_615970 + var valid_615971 = header.getOrDefault("X-Amz-SignedHeaders") + valid_615971 = validateParameter(valid_615971, JString, required = false, + default = nil) + if valid_615971 != nil: + section.add "X-Amz-SignedHeaders", valid_615971 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_615970: Call_GetDeletePlacementGroup_615956; path: JsonNode; +proc call*(call_615972: Call_GetDeletePlacementGroup_615958; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified placement group. You must terminate all instances in the placement group before you can delete the placement group. For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide. ## - let valid = call_615970.validator(path, query, header, formData, body) - let scheme = call_615970.pickScheme + let valid = call_615972.validator(path, query, header, formData, body) + let scheme = call_615972.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_615970.url(scheme.get, call_615970.host, call_615970.base, - call_615970.route, valid.getOrDefault("path"), + let url = call_615972.url(scheme.get, call_615972.host, call_615972.base, + call_615972.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_615970, url, valid) + result = atozHook(call_615972, url, valid) -proc call*(call_615971: Call_GetDeletePlacementGroup_615956; GroupName: string; +proc call*(call_615973: Call_GetDeletePlacementGroup_615958; GroupName: string; DryRun: bool = false; Action: string = "DeletePlacementGroup"; Version: string = "2016-11-15"): Recallable = ## getDeletePlacementGroup @@ -40422,21 +40449,21 @@ proc call*(call_615971: Call_GetDeletePlacementGroup_615956; GroupName: string; ## : 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. ## Action: string (required) ## Version: string (required) - var query_615972 = newJObject() - add(query_615972, "GroupName", newJString(GroupName)) - add(query_615972, "DryRun", newJBool(DryRun)) - add(query_615972, "Action", newJString(Action)) - add(query_615972, "Version", newJString(Version)) - result = call_615971.call(nil, query_615972, nil, nil, nil) + var query_615974 = newJObject() + add(query_615974, "GroupName", newJString(GroupName)) + add(query_615974, "DryRun", newJBool(DryRun)) + add(query_615974, "Action", newJString(Action)) + add(query_615974, "Version", newJString(Version)) + result = call_615973.call(nil, query_615974, nil, nil, nil) -var getDeletePlacementGroup* = Call_GetDeletePlacementGroup_615956( +var getDeletePlacementGroup* = Call_GetDeletePlacementGroup_615958( name: "getDeletePlacementGroup", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeletePlacementGroup", - validator: validate_GetDeletePlacementGroup_615957, base: "/", - url: url_GetDeletePlacementGroup_615958, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDeletePlacementGroup_615959, base: "/", + url: url_GetDeletePlacementGroup_615960, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteQueuedReservedInstances_616008 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteQueuedReservedInstances_616010(protocol: Scheme; host: string; + Call_PostDeleteQueuedReservedInstances_616010 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteQueuedReservedInstances_616012(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -40446,7 +40473,7 @@ proc url_PostDeleteQueuedReservedInstances_616010(protocol: Scheme; host: string else: result.path = base & route -proc validate_PostDeleteQueuedReservedInstances_616009(path: JsonNode; +proc validate_PostDeleteQueuedReservedInstances_616011(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the queued purchases for the specified Reserved Instances. ## @@ -40458,16 +40485,16 @@ proc validate_PostDeleteQueuedReservedInstances_616009(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616011 = query.getOrDefault("Action") - valid_616011 = validateParameter(valid_616011, JString, required = true, default = newJString( + var valid_616013 = query.getOrDefault("Action") + valid_616013 = validateParameter(valid_616013, JString, required = true, default = newJString( "DeleteQueuedReservedInstances")) - if valid_616011 != nil: - section.add "Action", valid_616011 - var valid_616012 = query.getOrDefault("Version") - valid_616012 = validateParameter(valid_616012, JString, required = true, + if valid_616013 != nil: + section.add "Action", valid_616013 + var valid_616014 = query.getOrDefault("Version") + valid_616014 = validateParameter(valid_616014, JString, required = true, default = newJString("2016-11-15")) - if valid_616012 != nil: - section.add "Version", valid_616012 + if valid_616014 != nil: + section.add "Version", valid_616014 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -40478,41 +40505,41 @@ proc validate_PostDeleteQueuedReservedInstances_616009(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616013 = header.getOrDefault("X-Amz-Signature") - valid_616013 = validateParameter(valid_616013, JString, required = false, - default = nil) - if valid_616013 != nil: - section.add "X-Amz-Signature", valid_616013 - var valid_616014 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616014 = validateParameter(valid_616014, JString, required = false, - default = nil) - if valid_616014 != nil: - section.add "X-Amz-Content-Sha256", valid_616014 - var valid_616015 = header.getOrDefault("X-Amz-Date") + var valid_616015 = header.getOrDefault("X-Amz-Signature") valid_616015 = validateParameter(valid_616015, JString, required = false, default = nil) if valid_616015 != nil: - section.add "X-Amz-Date", valid_616015 - var valid_616016 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616015 + var valid_616016 = header.getOrDefault("X-Amz-Content-Sha256") valid_616016 = validateParameter(valid_616016, JString, required = false, default = nil) if valid_616016 != nil: - section.add "X-Amz-Credential", valid_616016 - var valid_616017 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616016 + var valid_616017 = header.getOrDefault("X-Amz-Date") valid_616017 = validateParameter(valid_616017, JString, required = false, default = nil) if valid_616017 != nil: - section.add "X-Amz-Security-Token", valid_616017 - var valid_616018 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616017 + var valid_616018 = header.getOrDefault("X-Amz-Credential") valid_616018 = validateParameter(valid_616018, JString, required = false, default = nil) if valid_616018 != nil: - section.add "X-Amz-Algorithm", valid_616018 - var valid_616019 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616018 + var valid_616019 = header.getOrDefault("X-Amz-Security-Token") valid_616019 = validateParameter(valid_616019, JString, required = false, default = nil) if valid_616019 != nil: - section.add "X-Amz-SignedHeaders", valid_616019 + section.add "X-Amz-Security-Token", valid_616019 + var valid_616020 = header.getOrDefault("X-Amz-Algorithm") + valid_616020 = validateParameter(valid_616020, JString, required = false, + default = nil) + if valid_616020 != nil: + section.add "X-Amz-Algorithm", valid_616020 + var valid_616021 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616021 = validateParameter(valid_616021, JString, required = false, + default = nil) + if valid_616021 != nil: + section.add "X-Amz-SignedHeaders", valid_616021 result.add "header", section ## parameters in `formData` object: ## ReservedInstancesId: JArray (required) @@ -40521,33 +40548,33 @@ proc validate_PostDeleteQueuedReservedInstances_616009(path: JsonNode; ## : 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. section = newJObject() assert formData != nil, "formData argument is necessary due to required `ReservedInstancesId` field" - var valid_616020 = formData.getOrDefault("ReservedInstancesId") - valid_616020 = validateParameter(valid_616020, JArray, required = true, default = nil) - if valid_616020 != nil: - section.add "ReservedInstancesId", valid_616020 - var valid_616021 = formData.getOrDefault("DryRun") - valid_616021 = validateParameter(valid_616021, JBool, required = false, default = nil) - if valid_616021 != nil: - section.add "DryRun", valid_616021 + var valid_616022 = formData.getOrDefault("ReservedInstancesId") + valid_616022 = validateParameter(valid_616022, JArray, required = true, default = nil) + if valid_616022 != nil: + section.add "ReservedInstancesId", valid_616022 + var valid_616023 = formData.getOrDefault("DryRun") + valid_616023 = validateParameter(valid_616023, JBool, required = false, default = nil) + if valid_616023 != nil: + section.add "DryRun", valid_616023 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616022: Call_PostDeleteQueuedReservedInstances_616008; +proc call*(call_616024: Call_PostDeleteQueuedReservedInstances_616010; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the queued purchases for the specified Reserved Instances. ## - let valid = call_616022.validator(path, query, header, formData, body) - let scheme = call_616022.pickScheme + let valid = call_616024.validator(path, query, header, formData, body) + let scheme = call_616024.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616022.url(scheme.get, call_616022.host, call_616022.base, - call_616022.route, valid.getOrDefault("path"), + let url = call_616024.url(scheme.get, call_616024.host, call_616024.base, + call_616024.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616022, url, valid) + result = atozHook(call_616024, url, valid) -proc call*(call_616023: Call_PostDeleteQueuedReservedInstances_616008; +proc call*(call_616025: Call_PostDeleteQueuedReservedInstances_616010; ReservedInstancesId: JsonNode; DryRun: bool = false; Action: string = "DeleteQueuedReservedInstances"; Version: string = "2016-11-15"): Recallable = @@ -40559,24 +40586,24 @@ proc call*(call_616023: Call_PostDeleteQueuedReservedInstances_616008; ## : 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. ## Action: string (required) ## Version: string (required) - var query_616024 = newJObject() - var formData_616025 = newJObject() + var query_616026 = newJObject() + var formData_616027 = newJObject() if ReservedInstancesId != nil: - formData_616025.add "ReservedInstancesId", ReservedInstancesId - add(formData_616025, "DryRun", newJBool(DryRun)) - add(query_616024, "Action", newJString(Action)) - add(query_616024, "Version", newJString(Version)) - result = call_616023.call(nil, query_616024, nil, formData_616025, nil) + formData_616027.add "ReservedInstancesId", ReservedInstancesId + add(formData_616027, "DryRun", newJBool(DryRun)) + add(query_616026, "Action", newJString(Action)) + add(query_616026, "Version", newJString(Version)) + result = call_616025.call(nil, query_616026, nil, formData_616027, nil) -var postDeleteQueuedReservedInstances* = Call_PostDeleteQueuedReservedInstances_616008( +var postDeleteQueuedReservedInstances* = Call_PostDeleteQueuedReservedInstances_616010( name: "postDeleteQueuedReservedInstances", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteQueuedReservedInstances", - validator: validate_PostDeleteQueuedReservedInstances_616009, base: "/", - url: url_PostDeleteQueuedReservedInstances_616010, + validator: validate_PostDeleteQueuedReservedInstances_616011, base: "/", + url: url_PostDeleteQueuedReservedInstances_616012, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteQueuedReservedInstances_615991 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteQueuedReservedInstances_615993(protocol: Scheme; host: string; + Call_GetDeleteQueuedReservedInstances_615993 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteQueuedReservedInstances_615995(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -40586,7 +40613,7 @@ proc url_GetDeleteQueuedReservedInstances_615993(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDeleteQueuedReservedInstances_615992(path: JsonNode; +proc validate_GetDeleteQueuedReservedInstances_615994(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the queued purchases for the specified Reserved Instances. ## @@ -40603,24 +40630,24 @@ proc validate_GetDeleteQueuedReservedInstances_615992(path: JsonNode; ## Version: JString (required) section = newJObject() assert query != nil, "query argument is necessary due to required `ReservedInstancesId` field" - var valid_615994 = query.getOrDefault("ReservedInstancesId") - valid_615994 = validateParameter(valid_615994, JArray, required = true, default = nil) - if valid_615994 != nil: - section.add "ReservedInstancesId", valid_615994 - var valid_615995 = query.getOrDefault("DryRun") - valid_615995 = validateParameter(valid_615995, JBool, required = false, default = nil) - if valid_615995 != nil: - section.add "DryRun", valid_615995 - var valid_615996 = query.getOrDefault("Action") - valid_615996 = validateParameter(valid_615996, JString, required = true, default = newJString( - "DeleteQueuedReservedInstances")) + var valid_615996 = query.getOrDefault("ReservedInstancesId") + valid_615996 = validateParameter(valid_615996, JArray, required = true, default = nil) if valid_615996 != nil: - section.add "Action", valid_615996 - var valid_615997 = query.getOrDefault("Version") - valid_615997 = validateParameter(valid_615997, JString, required = true, - default = newJString("2016-11-15")) + section.add "ReservedInstancesId", valid_615996 + var valid_615997 = query.getOrDefault("DryRun") + valid_615997 = validateParameter(valid_615997, JBool, required = false, default = nil) if valid_615997 != nil: - section.add "Version", valid_615997 + section.add "DryRun", valid_615997 + var valid_615998 = query.getOrDefault("Action") + valid_615998 = validateParameter(valid_615998, JString, required = true, default = newJString( + "DeleteQueuedReservedInstances")) + if valid_615998 != nil: + section.add "Action", valid_615998 + var valid_615999 = query.getOrDefault("Version") + valid_615999 = validateParameter(valid_615999, JString, required = true, + default = newJString("2016-11-15")) + if valid_615999 != nil: + section.add "Version", valid_615999 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -40631,62 +40658,62 @@ proc validate_GetDeleteQueuedReservedInstances_615992(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_615998 = header.getOrDefault("X-Amz-Signature") - valid_615998 = validateParameter(valid_615998, JString, required = false, - default = nil) - if valid_615998 != nil: - section.add "X-Amz-Signature", valid_615998 - var valid_615999 = header.getOrDefault("X-Amz-Content-Sha256") - valid_615999 = validateParameter(valid_615999, JString, required = false, - default = nil) - if valid_615999 != nil: - section.add "X-Amz-Content-Sha256", valid_615999 - var valid_616000 = header.getOrDefault("X-Amz-Date") + var valid_616000 = header.getOrDefault("X-Amz-Signature") valid_616000 = validateParameter(valid_616000, JString, required = false, default = nil) if valid_616000 != nil: - section.add "X-Amz-Date", valid_616000 - var valid_616001 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616000 + var valid_616001 = header.getOrDefault("X-Amz-Content-Sha256") valid_616001 = validateParameter(valid_616001, JString, required = false, default = nil) if valid_616001 != nil: - section.add "X-Amz-Credential", valid_616001 - var valid_616002 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616001 + var valid_616002 = header.getOrDefault("X-Amz-Date") valid_616002 = validateParameter(valid_616002, JString, required = false, default = nil) if valid_616002 != nil: - section.add "X-Amz-Security-Token", valid_616002 - var valid_616003 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616002 + var valid_616003 = header.getOrDefault("X-Amz-Credential") valid_616003 = validateParameter(valid_616003, JString, required = false, default = nil) if valid_616003 != nil: - section.add "X-Amz-Algorithm", valid_616003 - var valid_616004 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616003 + var valid_616004 = header.getOrDefault("X-Amz-Security-Token") valid_616004 = validateParameter(valid_616004, JString, required = false, default = nil) if valid_616004 != nil: - section.add "X-Amz-SignedHeaders", valid_616004 + section.add "X-Amz-Security-Token", valid_616004 + var valid_616005 = header.getOrDefault("X-Amz-Algorithm") + valid_616005 = validateParameter(valid_616005, JString, required = false, + default = nil) + if valid_616005 != nil: + section.add "X-Amz-Algorithm", valid_616005 + var valid_616006 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616006 = validateParameter(valid_616006, JString, required = false, + default = nil) + if valid_616006 != nil: + section.add "X-Amz-SignedHeaders", valid_616006 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616005: Call_GetDeleteQueuedReservedInstances_615991; +proc call*(call_616007: Call_GetDeleteQueuedReservedInstances_615993; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the queued purchases for the specified Reserved Instances. ## - let valid = call_616005.validator(path, query, header, formData, body) - let scheme = call_616005.pickScheme + let valid = call_616007.validator(path, query, header, formData, body) + let scheme = call_616007.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616005.url(scheme.get, call_616005.host, call_616005.base, - call_616005.route, valid.getOrDefault("path"), + let url = call_616007.url(scheme.get, call_616007.host, call_616007.base, + call_616007.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616005, url, valid) + result = atozHook(call_616007, url, valid) -proc call*(call_616006: Call_GetDeleteQueuedReservedInstances_615991; +proc call*(call_616008: Call_GetDeleteQueuedReservedInstances_615993; ReservedInstancesId: JsonNode; DryRun: bool = false; Action: string = "DeleteQueuedReservedInstances"; Version: string = "2016-11-15"): Recallable = @@ -40698,23 +40725,23 @@ proc call*(call_616006: Call_GetDeleteQueuedReservedInstances_615991; ## : 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. ## Action: string (required) ## Version: string (required) - var query_616007 = newJObject() + var query_616009 = newJObject() if ReservedInstancesId != nil: - query_616007.add "ReservedInstancesId", ReservedInstancesId - add(query_616007, "DryRun", newJBool(DryRun)) - add(query_616007, "Action", newJString(Action)) - add(query_616007, "Version", newJString(Version)) - result = call_616006.call(nil, query_616007, nil, nil, nil) + query_616009.add "ReservedInstancesId", ReservedInstancesId + add(query_616009, "DryRun", newJBool(DryRun)) + add(query_616009, "Action", newJString(Action)) + add(query_616009, "Version", newJString(Version)) + result = call_616008.call(nil, query_616009, nil, nil, nil) -var getDeleteQueuedReservedInstances* = Call_GetDeleteQueuedReservedInstances_615991( +var getDeleteQueuedReservedInstances* = Call_GetDeleteQueuedReservedInstances_615993( name: "getDeleteQueuedReservedInstances", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteQueuedReservedInstances", - validator: validate_GetDeleteQueuedReservedInstances_615992, base: "/", - url: url_GetDeleteQueuedReservedInstances_615993, + validator: validate_GetDeleteQueuedReservedInstances_615994, base: "/", + url: url_GetDeleteQueuedReservedInstances_615995, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteRoute_616045 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteRoute_616047(protocol: Scheme; host: string; base: string; + Call_PostDeleteRoute_616047 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteRoute_616049(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -40724,7 +40751,7 @@ proc url_PostDeleteRoute_616047(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostDeleteRoute_616046(path: JsonNode; query: JsonNode; +proc validate_PostDeleteRoute_616048(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified route from the specified route table. @@ -40737,16 +40764,16 @@ proc validate_PostDeleteRoute_616046(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616048 = query.getOrDefault("Action") - valid_616048 = validateParameter(valid_616048, JString, required = true, + var valid_616050 = query.getOrDefault("Action") + valid_616050 = validateParameter(valid_616050, JString, required = true, default = newJString("DeleteRoute")) - if valid_616048 != nil: - section.add "Action", valid_616048 - var valid_616049 = query.getOrDefault("Version") - valid_616049 = validateParameter(valid_616049, JString, required = true, + if valid_616050 != nil: + section.add "Action", valid_616050 + var valid_616051 = query.getOrDefault("Version") + valid_616051 = validateParameter(valid_616051, JString, required = true, default = newJString("2016-11-15")) - if valid_616049 != nil: - section.add "Version", valid_616049 + if valid_616051 != nil: + section.add "Version", valid_616051 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -40757,41 +40784,41 @@ proc validate_PostDeleteRoute_616046(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616050 = header.getOrDefault("X-Amz-Signature") - valid_616050 = validateParameter(valid_616050, JString, required = false, - default = nil) - if valid_616050 != nil: - section.add "X-Amz-Signature", valid_616050 - var valid_616051 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616051 = validateParameter(valid_616051, JString, required = false, - default = nil) - if valid_616051 != nil: - section.add "X-Amz-Content-Sha256", valid_616051 - var valid_616052 = header.getOrDefault("X-Amz-Date") + var valid_616052 = header.getOrDefault("X-Amz-Signature") valid_616052 = validateParameter(valid_616052, JString, required = false, default = nil) if valid_616052 != nil: - section.add "X-Amz-Date", valid_616052 - var valid_616053 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616052 + var valid_616053 = header.getOrDefault("X-Amz-Content-Sha256") valid_616053 = validateParameter(valid_616053, JString, required = false, default = nil) if valid_616053 != nil: - section.add "X-Amz-Credential", valid_616053 - var valid_616054 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616053 + var valid_616054 = header.getOrDefault("X-Amz-Date") valid_616054 = validateParameter(valid_616054, JString, required = false, default = nil) if valid_616054 != nil: - section.add "X-Amz-Security-Token", valid_616054 - var valid_616055 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616054 + var valid_616055 = header.getOrDefault("X-Amz-Credential") valid_616055 = validateParameter(valid_616055, JString, required = false, default = nil) if valid_616055 != nil: - section.add "X-Amz-Algorithm", valid_616055 - var valid_616056 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616055 + var valid_616056 = header.getOrDefault("X-Amz-Security-Token") valid_616056 = validateParameter(valid_616056, JString, required = false, default = nil) if valid_616056 != nil: - section.add "X-Amz-SignedHeaders", valid_616056 + section.add "X-Amz-Security-Token", valid_616056 + var valid_616057 = header.getOrDefault("X-Amz-Algorithm") + valid_616057 = validateParameter(valid_616057, JString, required = false, + default = nil) + if valid_616057 != nil: + section.add "X-Amz-Algorithm", valid_616057 + var valid_616058 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616058 = validateParameter(valid_616058, JString, required = false, + default = nil) + if valid_616058 != nil: + section.add "X-Amz-SignedHeaders", valid_616058 result.add "header", section ## parameters in `formData` object: ## DestinationIpv6CidrBlock: JString @@ -40803,45 +40830,45 @@ proc validate_PostDeleteRoute_616046(path: JsonNode; query: JsonNode; ## RouteTableId: JString (required) ## : The ID of the route table. section = newJObject() - var valid_616057 = formData.getOrDefault("DestinationIpv6CidrBlock") - valid_616057 = validateParameter(valid_616057, JString, required = false, + var valid_616059 = formData.getOrDefault("DestinationIpv6CidrBlock") + valid_616059 = validateParameter(valid_616059, JString, required = false, default = nil) - if valid_616057 != nil: - section.add "DestinationIpv6CidrBlock", valid_616057 - var valid_616058 = formData.getOrDefault("DestinationCidrBlock") - valid_616058 = validateParameter(valid_616058, JString, required = false, - default = nil) - if valid_616058 != nil: - section.add "DestinationCidrBlock", valid_616058 - var valid_616059 = formData.getOrDefault("DryRun") - valid_616059 = validateParameter(valid_616059, JBool, required = false, default = nil) if valid_616059 != nil: - section.add "DryRun", valid_616059 + section.add "DestinationIpv6CidrBlock", valid_616059 + var valid_616060 = formData.getOrDefault("DestinationCidrBlock") + valid_616060 = validateParameter(valid_616060, JString, required = false, + default = nil) + if valid_616060 != nil: + section.add "DestinationCidrBlock", valid_616060 + var valid_616061 = formData.getOrDefault("DryRun") + valid_616061 = validateParameter(valid_616061, JBool, required = false, default = nil) + if valid_616061 != nil: + section.add "DryRun", valid_616061 assert formData != nil, "formData argument is necessary due to required `RouteTableId` field" - var valid_616060 = formData.getOrDefault("RouteTableId") - valid_616060 = validateParameter(valid_616060, JString, required = true, + var valid_616062 = formData.getOrDefault("RouteTableId") + valid_616062 = validateParameter(valid_616062, JString, required = true, default = nil) - if valid_616060 != nil: - section.add "RouteTableId", valid_616060 + if valid_616062 != nil: + section.add "RouteTableId", valid_616062 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616061: Call_PostDeleteRoute_616045; path: JsonNode; query: JsonNode; +proc call*(call_616063: Call_PostDeleteRoute_616047; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified route from the specified route table. ## - let valid = call_616061.validator(path, query, header, formData, body) - let scheme = call_616061.pickScheme + let valid = call_616063.validator(path, query, header, formData, body) + let scheme = call_616063.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616061.url(scheme.get, call_616061.host, call_616061.base, - call_616061.route, valid.getOrDefault("path"), + let url = call_616063.url(scheme.get, call_616063.host, call_616063.base, + call_616063.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616061, url, valid) + result = atozHook(call_616063, url, valid) -proc call*(call_616062: Call_PostDeleteRoute_616045; RouteTableId: string; +proc call*(call_616064: Call_PostDeleteRoute_616047; RouteTableId: string; DestinationIpv6CidrBlock: string = ""; DestinationCidrBlock: string = ""; DryRun: bool = false; Action: string = "DeleteRoute"; Version: string = "2016-11-15"): Recallable = @@ -40857,24 +40884,24 @@ proc call*(call_616062: Call_PostDeleteRoute_616045; RouteTableId: string; ## : The ID of the route table. ## Action: string (required) ## Version: string (required) - var query_616063 = newJObject() - var formData_616064 = newJObject() - add(formData_616064, "DestinationIpv6CidrBlock", + var query_616065 = newJObject() + var formData_616066 = newJObject() + add(formData_616066, "DestinationIpv6CidrBlock", newJString(DestinationIpv6CidrBlock)) - add(formData_616064, "DestinationCidrBlock", newJString(DestinationCidrBlock)) - add(formData_616064, "DryRun", newJBool(DryRun)) - add(formData_616064, "RouteTableId", newJString(RouteTableId)) - add(query_616063, "Action", newJString(Action)) - add(query_616063, "Version", newJString(Version)) - result = call_616062.call(nil, query_616063, nil, formData_616064, nil) - -var postDeleteRoute* = Call_PostDeleteRoute_616045(name: "postDeleteRoute", + add(formData_616066, "DestinationCidrBlock", newJString(DestinationCidrBlock)) + add(formData_616066, "DryRun", newJBool(DryRun)) + add(formData_616066, "RouteTableId", newJString(RouteTableId)) + add(query_616065, "Action", newJString(Action)) + add(query_616065, "Version", newJString(Version)) + result = call_616064.call(nil, query_616065, nil, formData_616066, nil) + +var postDeleteRoute* = Call_PostDeleteRoute_616047(name: "postDeleteRoute", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", - route: "/#Action=DeleteRoute", validator: validate_PostDeleteRoute_616046, - base: "/", url: url_PostDeleteRoute_616047, schemes: {Scheme.Https, Scheme.Http}) + route: "/#Action=DeleteRoute", validator: validate_PostDeleteRoute_616048, + base: "/", url: url_PostDeleteRoute_616049, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteRoute_616026 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteRoute_616028(protocol: Scheme; host: string; base: string; + Call_GetDeleteRoute_616028 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteRoute_616030(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -40884,7 +40911,7 @@ proc url_GetDeleteRoute_616028(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetDeleteRoute_616027(path: JsonNode; query: JsonNode; +proc validate_GetDeleteRoute_616029(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified route from the specified route table. @@ -40905,35 +40932,35 @@ proc validate_GetDeleteRoute_616027(path: JsonNode; query: JsonNode; ## DestinationCidrBlock: JString ## : The IPv4 CIDR range for the route. The value you specify must match the CIDR for the route exactly. section = newJObject() - var valid_616029 = query.getOrDefault("DestinationIpv6CidrBlock") - valid_616029 = validateParameter(valid_616029, JString, required = false, - default = nil) - if valid_616029 != nil: - section.add "DestinationIpv6CidrBlock", valid_616029 - var valid_616030 = query.getOrDefault("DryRun") - valid_616030 = validateParameter(valid_616030, JBool, required = false, default = nil) - if valid_616030 != nil: - section.add "DryRun", valid_616030 - var valid_616031 = query.getOrDefault("Action") - valid_616031 = validateParameter(valid_616031, JString, required = true, - default = newJString("DeleteRoute")) + var valid_616031 = query.getOrDefault("DestinationIpv6CidrBlock") + valid_616031 = validateParameter(valid_616031, JString, required = false, + default = nil) if valid_616031 != nil: - section.add "Action", valid_616031 - var valid_616032 = query.getOrDefault("Version") - valid_616032 = validateParameter(valid_616032, JString, required = true, - default = newJString("2016-11-15")) + section.add "DestinationIpv6CidrBlock", valid_616031 + var valid_616032 = query.getOrDefault("DryRun") + valid_616032 = validateParameter(valid_616032, JBool, required = false, default = nil) if valid_616032 != nil: - section.add "Version", valid_616032 - var valid_616033 = query.getOrDefault("RouteTableId") + section.add "DryRun", valid_616032 + var valid_616033 = query.getOrDefault("Action") valid_616033 = validateParameter(valid_616033, JString, required = true, - default = nil) + default = newJString("DeleteRoute")) if valid_616033 != nil: - section.add "RouteTableId", valid_616033 - var valid_616034 = query.getOrDefault("DestinationCidrBlock") - valid_616034 = validateParameter(valid_616034, JString, required = false, - default = nil) + section.add "Action", valid_616033 + var valid_616034 = query.getOrDefault("Version") + valid_616034 = validateParameter(valid_616034, JString, required = true, + default = newJString("2016-11-15")) if valid_616034 != nil: - section.add "DestinationCidrBlock", valid_616034 + section.add "Version", valid_616034 + var valid_616035 = query.getOrDefault("RouteTableId") + valid_616035 = validateParameter(valid_616035, JString, required = true, + default = nil) + if valid_616035 != nil: + section.add "RouteTableId", valid_616035 + var valid_616036 = query.getOrDefault("DestinationCidrBlock") + valid_616036 = validateParameter(valid_616036, JString, required = false, + default = nil) + if valid_616036 != nil: + section.add "DestinationCidrBlock", valid_616036 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -40944,61 +40971,61 @@ proc validate_GetDeleteRoute_616027(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616035 = header.getOrDefault("X-Amz-Signature") - valid_616035 = validateParameter(valid_616035, JString, required = false, - default = nil) - if valid_616035 != nil: - section.add "X-Amz-Signature", valid_616035 - var valid_616036 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616036 = validateParameter(valid_616036, JString, required = false, - default = nil) - if valid_616036 != nil: - section.add "X-Amz-Content-Sha256", valid_616036 - var valid_616037 = header.getOrDefault("X-Amz-Date") + var valid_616037 = header.getOrDefault("X-Amz-Signature") valid_616037 = validateParameter(valid_616037, JString, required = false, default = nil) if valid_616037 != nil: - section.add "X-Amz-Date", valid_616037 - var valid_616038 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616037 + var valid_616038 = header.getOrDefault("X-Amz-Content-Sha256") valid_616038 = validateParameter(valid_616038, JString, required = false, default = nil) if valid_616038 != nil: - section.add "X-Amz-Credential", valid_616038 - var valid_616039 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616038 + var valid_616039 = header.getOrDefault("X-Amz-Date") valid_616039 = validateParameter(valid_616039, JString, required = false, default = nil) if valid_616039 != nil: - section.add "X-Amz-Security-Token", valid_616039 - var valid_616040 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616039 + var valid_616040 = header.getOrDefault("X-Amz-Credential") valid_616040 = validateParameter(valid_616040, JString, required = false, default = nil) if valid_616040 != nil: - section.add "X-Amz-Algorithm", valid_616040 - var valid_616041 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616040 + var valid_616041 = header.getOrDefault("X-Amz-Security-Token") valid_616041 = validateParameter(valid_616041, JString, required = false, default = nil) if valid_616041 != nil: - section.add "X-Amz-SignedHeaders", valid_616041 + section.add "X-Amz-Security-Token", valid_616041 + var valid_616042 = header.getOrDefault("X-Amz-Algorithm") + valid_616042 = validateParameter(valid_616042, JString, required = false, + default = nil) + if valid_616042 != nil: + section.add "X-Amz-Algorithm", valid_616042 + var valid_616043 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616043 = validateParameter(valid_616043, JString, required = false, + default = nil) + if valid_616043 != nil: + section.add "X-Amz-SignedHeaders", valid_616043 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616042: Call_GetDeleteRoute_616026; path: JsonNode; query: JsonNode; +proc call*(call_616044: Call_GetDeleteRoute_616028; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified route from the specified route table. ## - let valid = call_616042.validator(path, query, header, formData, body) - let scheme = call_616042.pickScheme + let valid = call_616044.validator(path, query, header, formData, body) + let scheme = call_616044.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616042.url(scheme.get, call_616042.host, call_616042.base, - call_616042.route, valid.getOrDefault("path"), + let url = call_616044.url(scheme.get, call_616044.host, call_616044.base, + call_616044.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616042, url, valid) + result = atozHook(call_616044, url, valid) -proc call*(call_616043: Call_GetDeleteRoute_616026; RouteTableId: string; +proc call*(call_616045: Call_GetDeleteRoute_616028; RouteTableId: string; DestinationIpv6CidrBlock: string = ""; DryRun: bool = false; Action: string = "DeleteRoute"; Version: string = "2016-11-15"; DestinationCidrBlock: string = ""): Recallable = @@ -41014,23 +41041,23 @@ proc call*(call_616043: Call_GetDeleteRoute_616026; RouteTableId: string; ## : The ID of the route table. ## DestinationCidrBlock: string ## : The IPv4 CIDR range for the route. The value you specify must match the CIDR for the route exactly. - var query_616044 = newJObject() - add(query_616044, "DestinationIpv6CidrBlock", + var query_616046 = newJObject() + add(query_616046, "DestinationIpv6CidrBlock", newJString(DestinationIpv6CidrBlock)) - add(query_616044, "DryRun", newJBool(DryRun)) - add(query_616044, "Action", newJString(Action)) - add(query_616044, "Version", newJString(Version)) - add(query_616044, "RouteTableId", newJString(RouteTableId)) - add(query_616044, "DestinationCidrBlock", newJString(DestinationCidrBlock)) - result = call_616043.call(nil, query_616044, nil, nil, nil) - -var getDeleteRoute* = Call_GetDeleteRoute_616026(name: "getDeleteRoute", + add(query_616046, "DryRun", newJBool(DryRun)) + add(query_616046, "Action", newJString(Action)) + add(query_616046, "Version", newJString(Version)) + add(query_616046, "RouteTableId", newJString(RouteTableId)) + add(query_616046, "DestinationCidrBlock", newJString(DestinationCidrBlock)) + result = call_616045.call(nil, query_616046, nil, nil, nil) + +var getDeleteRoute* = Call_GetDeleteRoute_616028(name: "getDeleteRoute", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=DeleteRoute", validator: validate_GetDeleteRoute_616027, - base: "/", url: url_GetDeleteRoute_616028, schemes: {Scheme.Https, Scheme.Http}) + route: "/#Action=DeleteRoute", validator: validate_GetDeleteRoute_616029, + base: "/", url: url_GetDeleteRoute_616030, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteRouteTable_616082 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteRouteTable_616084(protocol: Scheme; host: string; base: string; + Call_PostDeleteRouteTable_616084 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteRouteTable_616086(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -41040,7 +41067,7 @@ proc url_PostDeleteRouteTable_616084(protocol: Scheme; host: string; base: strin else: result.path = base & route -proc validate_PostDeleteRouteTable_616083(path: JsonNode; query: JsonNode; +proc validate_PostDeleteRouteTable_616085(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified route table. You must disassociate the route table from any subnets before you can delete it. You can't delete the main route table. ## @@ -41052,16 +41079,16 @@ proc validate_PostDeleteRouteTable_616083(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616085 = query.getOrDefault("Action") - valid_616085 = validateParameter(valid_616085, JString, required = true, + var valid_616087 = query.getOrDefault("Action") + valid_616087 = validateParameter(valid_616087, JString, required = true, default = newJString("DeleteRouteTable")) - if valid_616085 != nil: - section.add "Action", valid_616085 - var valid_616086 = query.getOrDefault("Version") - valid_616086 = validateParameter(valid_616086, JString, required = true, + if valid_616087 != nil: + section.add "Action", valid_616087 + var valid_616088 = query.getOrDefault("Version") + valid_616088 = validateParameter(valid_616088, JString, required = true, default = newJString("2016-11-15")) - if valid_616086 != nil: - section.add "Version", valid_616086 + if valid_616088 != nil: + section.add "Version", valid_616088 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -41072,41 +41099,41 @@ proc validate_PostDeleteRouteTable_616083(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616087 = header.getOrDefault("X-Amz-Signature") - valid_616087 = validateParameter(valid_616087, JString, required = false, - default = nil) - if valid_616087 != nil: - section.add "X-Amz-Signature", valid_616087 - var valid_616088 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616088 = validateParameter(valid_616088, JString, required = false, - default = nil) - if valid_616088 != nil: - section.add "X-Amz-Content-Sha256", valid_616088 - var valid_616089 = header.getOrDefault("X-Amz-Date") + var valid_616089 = header.getOrDefault("X-Amz-Signature") valid_616089 = validateParameter(valid_616089, JString, required = false, default = nil) if valid_616089 != nil: - section.add "X-Amz-Date", valid_616089 - var valid_616090 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616089 + var valid_616090 = header.getOrDefault("X-Amz-Content-Sha256") valid_616090 = validateParameter(valid_616090, JString, required = false, default = nil) if valid_616090 != nil: - section.add "X-Amz-Credential", valid_616090 - var valid_616091 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616090 + var valid_616091 = header.getOrDefault("X-Amz-Date") valid_616091 = validateParameter(valid_616091, JString, required = false, default = nil) if valid_616091 != nil: - section.add "X-Amz-Security-Token", valid_616091 - var valid_616092 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616091 + var valid_616092 = header.getOrDefault("X-Amz-Credential") valid_616092 = validateParameter(valid_616092, JString, required = false, default = nil) if valid_616092 != nil: - section.add "X-Amz-Algorithm", valid_616092 - var valid_616093 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616092 + var valid_616093 = header.getOrDefault("X-Amz-Security-Token") valid_616093 = validateParameter(valid_616093, JString, required = false, default = nil) if valid_616093 != nil: - section.add "X-Amz-SignedHeaders", valid_616093 + section.add "X-Amz-Security-Token", valid_616093 + var valid_616094 = header.getOrDefault("X-Amz-Algorithm") + valid_616094 = validateParameter(valid_616094, JString, required = false, + default = nil) + if valid_616094 != nil: + section.add "X-Amz-Algorithm", valid_616094 + var valid_616095 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616095 = validateParameter(valid_616095, JString, required = false, + default = nil) + if valid_616095 != nil: + section.add "X-Amz-SignedHeaders", valid_616095 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -41114,35 +41141,35 @@ proc validate_PostDeleteRouteTable_616083(path: JsonNode; query: JsonNode; ## RouteTableId: JString (required) ## : The ID of the route table. section = newJObject() - var valid_616094 = formData.getOrDefault("DryRun") - valid_616094 = validateParameter(valid_616094, JBool, required = false, default = nil) - if valid_616094 != nil: - section.add "DryRun", valid_616094 + var valid_616096 = formData.getOrDefault("DryRun") + valid_616096 = validateParameter(valid_616096, JBool, required = false, default = nil) + if valid_616096 != nil: + section.add "DryRun", valid_616096 assert formData != nil, "formData argument is necessary due to required `RouteTableId` field" - var valid_616095 = formData.getOrDefault("RouteTableId") - valid_616095 = validateParameter(valid_616095, JString, required = true, + var valid_616097 = formData.getOrDefault("RouteTableId") + valid_616097 = validateParameter(valid_616097, JString, required = true, default = nil) - if valid_616095 != nil: - section.add "RouteTableId", valid_616095 + if valid_616097 != nil: + section.add "RouteTableId", valid_616097 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616096: Call_PostDeleteRouteTable_616082; path: JsonNode; +proc call*(call_616098: Call_PostDeleteRouteTable_616084; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified route table. You must disassociate the route table from any subnets before you can delete it. You can't delete the main route table. ## - let valid = call_616096.validator(path, query, header, formData, body) - let scheme = call_616096.pickScheme + let valid = call_616098.validator(path, query, header, formData, body) + let scheme = call_616098.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616096.url(scheme.get, call_616096.host, call_616096.base, - call_616096.route, valid.getOrDefault("path"), + let url = call_616098.url(scheme.get, call_616098.host, call_616098.base, + call_616098.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616096, url, valid) + result = atozHook(call_616098, url, valid) -proc call*(call_616097: Call_PostDeleteRouteTable_616082; RouteTableId: string; +proc call*(call_616099: Call_PostDeleteRouteTable_616084; RouteTableId: string; DryRun: bool = false; Action: string = "DeleteRouteTable"; Version: string = "2016-11-15"): Recallable = ## postDeleteRouteTable @@ -41153,22 +41180,22 @@ proc call*(call_616097: Call_PostDeleteRouteTable_616082; RouteTableId: string; ## : The ID of the route table. ## Action: string (required) ## Version: string (required) - var query_616098 = newJObject() - var formData_616099 = newJObject() - add(formData_616099, "DryRun", newJBool(DryRun)) - add(formData_616099, "RouteTableId", newJString(RouteTableId)) - add(query_616098, "Action", newJString(Action)) - add(query_616098, "Version", newJString(Version)) - result = call_616097.call(nil, query_616098, nil, formData_616099, nil) + var query_616100 = newJObject() + var formData_616101 = newJObject() + add(formData_616101, "DryRun", newJBool(DryRun)) + add(formData_616101, "RouteTableId", newJString(RouteTableId)) + add(query_616100, "Action", newJString(Action)) + add(query_616100, "Version", newJString(Version)) + result = call_616099.call(nil, query_616100, nil, formData_616101, nil) -var postDeleteRouteTable* = Call_PostDeleteRouteTable_616082( +var postDeleteRouteTable* = Call_PostDeleteRouteTable_616084( name: "postDeleteRouteTable", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteRouteTable", - validator: validate_PostDeleteRouteTable_616083, base: "/", - url: url_PostDeleteRouteTable_616084, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDeleteRouteTable_616085, base: "/", + url: url_PostDeleteRouteTable_616086, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteRouteTable_616065 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteRouteTable_616067(protocol: Scheme; host: string; base: string; + Call_GetDeleteRouteTable_616067 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteRouteTable_616069(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -41178,7 +41205,7 @@ proc url_GetDeleteRouteTable_616067(protocol: Scheme; host: string; base: string else: result.path = base & route -proc validate_GetDeleteRouteTable_616066(path: JsonNode; query: JsonNode; +proc validate_GetDeleteRouteTable_616068(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified route table. You must disassociate the route table from any subnets before you can delete it. You can't delete the main route table. @@ -41195,25 +41222,25 @@ proc validate_GetDeleteRouteTable_616066(path: JsonNode; query: JsonNode; ## RouteTableId: JString (required) ## : The ID of the route table. section = newJObject() - var valid_616068 = query.getOrDefault("DryRun") - valid_616068 = validateParameter(valid_616068, JBool, required = false, default = nil) - if valid_616068 != nil: - section.add "DryRun", valid_616068 - var valid_616069 = query.getOrDefault("Action") - valid_616069 = validateParameter(valid_616069, JString, required = true, - default = newJString("DeleteRouteTable")) - if valid_616069 != nil: - section.add "Action", valid_616069 - var valid_616070 = query.getOrDefault("Version") - valid_616070 = validateParameter(valid_616070, JString, required = true, - default = newJString("2016-11-15")) + var valid_616070 = query.getOrDefault("DryRun") + valid_616070 = validateParameter(valid_616070, JBool, required = false, default = nil) if valid_616070 != nil: - section.add "Version", valid_616070 - var valid_616071 = query.getOrDefault("RouteTableId") + section.add "DryRun", valid_616070 + var valid_616071 = query.getOrDefault("Action") valid_616071 = validateParameter(valid_616071, JString, required = true, - default = nil) + default = newJString("DeleteRouteTable")) if valid_616071 != nil: - section.add "RouteTableId", valid_616071 + section.add "Action", valid_616071 + var valid_616072 = query.getOrDefault("Version") + valid_616072 = validateParameter(valid_616072, JString, required = true, + default = newJString("2016-11-15")) + if valid_616072 != nil: + section.add "Version", valid_616072 + var valid_616073 = query.getOrDefault("RouteTableId") + valid_616073 = validateParameter(valid_616073, JString, required = true, + default = nil) + if valid_616073 != nil: + section.add "RouteTableId", valid_616073 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -41224,61 +41251,61 @@ proc validate_GetDeleteRouteTable_616066(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616072 = header.getOrDefault("X-Amz-Signature") - valid_616072 = validateParameter(valid_616072, JString, required = false, - default = nil) - if valid_616072 != nil: - section.add "X-Amz-Signature", valid_616072 - var valid_616073 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616073 = validateParameter(valid_616073, JString, required = false, - default = nil) - if valid_616073 != nil: - section.add "X-Amz-Content-Sha256", valid_616073 - var valid_616074 = header.getOrDefault("X-Amz-Date") + var valid_616074 = header.getOrDefault("X-Amz-Signature") valid_616074 = validateParameter(valid_616074, JString, required = false, default = nil) if valid_616074 != nil: - section.add "X-Amz-Date", valid_616074 - var valid_616075 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616074 + var valid_616075 = header.getOrDefault("X-Amz-Content-Sha256") valid_616075 = validateParameter(valid_616075, JString, required = false, default = nil) if valid_616075 != nil: - section.add "X-Amz-Credential", valid_616075 - var valid_616076 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616075 + var valid_616076 = header.getOrDefault("X-Amz-Date") valid_616076 = validateParameter(valid_616076, JString, required = false, default = nil) if valid_616076 != nil: - section.add "X-Amz-Security-Token", valid_616076 - var valid_616077 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616076 + var valid_616077 = header.getOrDefault("X-Amz-Credential") valid_616077 = validateParameter(valid_616077, JString, required = false, default = nil) if valid_616077 != nil: - section.add "X-Amz-Algorithm", valid_616077 - var valid_616078 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616077 + var valid_616078 = header.getOrDefault("X-Amz-Security-Token") valid_616078 = validateParameter(valid_616078, JString, required = false, default = nil) if valid_616078 != nil: - section.add "X-Amz-SignedHeaders", valid_616078 + section.add "X-Amz-Security-Token", valid_616078 + var valid_616079 = header.getOrDefault("X-Amz-Algorithm") + valid_616079 = validateParameter(valid_616079, JString, required = false, + default = nil) + if valid_616079 != nil: + section.add "X-Amz-Algorithm", valid_616079 + var valid_616080 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616080 = validateParameter(valid_616080, JString, required = false, + default = nil) + if valid_616080 != nil: + section.add "X-Amz-SignedHeaders", valid_616080 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616079: Call_GetDeleteRouteTable_616065; path: JsonNode; +proc call*(call_616081: Call_GetDeleteRouteTable_616067; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified route table. You must disassociate the route table from any subnets before you can delete it. You can't delete the main route table. ## - let valid = call_616079.validator(path, query, header, formData, body) - let scheme = call_616079.pickScheme + let valid = call_616081.validator(path, query, header, formData, body) + let scheme = call_616081.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616079.url(scheme.get, call_616079.host, call_616079.base, - call_616079.route, valid.getOrDefault("path"), + let url = call_616081.url(scheme.get, call_616081.host, call_616081.base, + call_616081.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616079, url, valid) + result = atozHook(call_616081, url, valid) -proc call*(call_616080: Call_GetDeleteRouteTable_616065; RouteTableId: string; +proc call*(call_616082: Call_GetDeleteRouteTable_616067; RouteTableId: string; DryRun: bool = false; Action: string = "DeleteRouteTable"; Version: string = "2016-11-15"): Recallable = ## getDeleteRouteTable @@ -41289,21 +41316,21 @@ proc call*(call_616080: Call_GetDeleteRouteTable_616065; RouteTableId: string; ## Version: string (required) ## RouteTableId: string (required) ## : The ID of the route table. - var query_616081 = newJObject() - add(query_616081, "DryRun", newJBool(DryRun)) - add(query_616081, "Action", newJString(Action)) - add(query_616081, "Version", newJString(Version)) - add(query_616081, "RouteTableId", newJString(RouteTableId)) - result = call_616080.call(nil, query_616081, nil, nil, nil) - -var getDeleteRouteTable* = Call_GetDeleteRouteTable_616065( + var query_616083 = newJObject() + add(query_616083, "DryRun", newJBool(DryRun)) + add(query_616083, "Action", newJString(Action)) + add(query_616083, "Version", newJString(Version)) + add(query_616083, "RouteTableId", newJString(RouteTableId)) + result = call_616082.call(nil, query_616083, nil, nil, nil) + +var getDeleteRouteTable* = Call_GetDeleteRouteTable_616067( name: "getDeleteRouteTable", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteRouteTable", - validator: validate_GetDeleteRouteTable_616066, base: "/", - url: url_GetDeleteRouteTable_616067, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDeleteRouteTable_616068, base: "/", + url: url_GetDeleteRouteTable_616069, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteSecurityGroup_616118 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteSecurityGroup_616120(protocol: Scheme; host: string; base: string; + Call_PostDeleteSecurityGroup_616120 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteSecurityGroup_616122(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -41314,7 +41341,7 @@ proc url_PostDeleteSecurityGroup_616120(protocol: Scheme; host: string; base: st else: result.path = base & route -proc validate_PostDeleteSecurityGroup_616119(path: JsonNode; query: JsonNode; +proc validate_PostDeleteSecurityGroup_616121(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Deletes a security group.

If you attempt to delete a security group that is associated with an instance, or is referenced by another security group, the operation fails with InvalidGroup.InUse in EC2-Classic or DependencyViolation in EC2-VPC.

## @@ -41326,16 +41353,16 @@ proc validate_PostDeleteSecurityGroup_616119(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616121 = query.getOrDefault("Action") - valid_616121 = validateParameter(valid_616121, JString, required = true, + var valid_616123 = query.getOrDefault("Action") + valid_616123 = validateParameter(valid_616123, JString, required = true, default = newJString("DeleteSecurityGroup")) - if valid_616121 != nil: - section.add "Action", valid_616121 - var valid_616122 = query.getOrDefault("Version") - valid_616122 = validateParameter(valid_616122, JString, required = true, + if valid_616123 != nil: + section.add "Action", valid_616123 + var valid_616124 = query.getOrDefault("Version") + valid_616124 = validateParameter(valid_616124, JString, required = true, default = newJString("2016-11-15")) - if valid_616122 != nil: - section.add "Version", valid_616122 + if valid_616124 != nil: + section.add "Version", valid_616124 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -41346,41 +41373,41 @@ proc validate_PostDeleteSecurityGroup_616119(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616123 = header.getOrDefault("X-Amz-Signature") - valid_616123 = validateParameter(valid_616123, JString, required = false, - default = nil) - if valid_616123 != nil: - section.add "X-Amz-Signature", valid_616123 - var valid_616124 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616124 = validateParameter(valid_616124, JString, required = false, - default = nil) - if valid_616124 != nil: - section.add "X-Amz-Content-Sha256", valid_616124 - var valid_616125 = header.getOrDefault("X-Amz-Date") + var valid_616125 = header.getOrDefault("X-Amz-Signature") valid_616125 = validateParameter(valid_616125, JString, required = false, default = nil) if valid_616125 != nil: - section.add "X-Amz-Date", valid_616125 - var valid_616126 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616125 + var valid_616126 = header.getOrDefault("X-Amz-Content-Sha256") valid_616126 = validateParameter(valid_616126, JString, required = false, default = nil) if valid_616126 != nil: - section.add "X-Amz-Credential", valid_616126 - var valid_616127 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616126 + var valid_616127 = header.getOrDefault("X-Amz-Date") valid_616127 = validateParameter(valid_616127, JString, required = false, default = nil) if valid_616127 != nil: - section.add "X-Amz-Security-Token", valid_616127 - var valid_616128 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616127 + var valid_616128 = header.getOrDefault("X-Amz-Credential") valid_616128 = validateParameter(valid_616128, JString, required = false, default = nil) if valid_616128 != nil: - section.add "X-Amz-Algorithm", valid_616128 - var valid_616129 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616128 + var valid_616129 = header.getOrDefault("X-Amz-Security-Token") valid_616129 = validateParameter(valid_616129, JString, required = false, default = nil) if valid_616129 != nil: - section.add "X-Amz-SignedHeaders", valid_616129 + section.add "X-Amz-Security-Token", valid_616129 + var valid_616130 = header.getOrDefault("X-Amz-Algorithm") + valid_616130 = validateParameter(valid_616130, JString, required = false, + default = nil) + if valid_616130 != nil: + section.add "X-Amz-Algorithm", valid_616130 + var valid_616131 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616131 = validateParameter(valid_616131, JString, required = false, + default = nil) + if valid_616131 != nil: + section.add "X-Amz-SignedHeaders", valid_616131 result.add "header", section ## parameters in `formData` object: ## GroupId: JString @@ -41390,38 +41417,38 @@ proc validate_PostDeleteSecurityGroup_616119(path: JsonNode; query: JsonNode; ## DryRun: JBool ## : 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. section = newJObject() - var valid_616130 = formData.getOrDefault("GroupId") - valid_616130 = validateParameter(valid_616130, JString, required = false, - default = nil) - if valid_616130 != nil: - section.add "GroupId", valid_616130 - var valid_616131 = formData.getOrDefault("GroupName") - valid_616131 = validateParameter(valid_616131, JString, required = false, + var valid_616132 = formData.getOrDefault("GroupId") + valid_616132 = validateParameter(valid_616132, JString, required = false, default = nil) - if valid_616131 != nil: - section.add "GroupName", valid_616131 - var valid_616132 = formData.getOrDefault("DryRun") - valid_616132 = validateParameter(valid_616132, JBool, required = false, default = nil) if valid_616132 != nil: - section.add "DryRun", valid_616132 + section.add "GroupId", valid_616132 + var valid_616133 = formData.getOrDefault("GroupName") + valid_616133 = validateParameter(valid_616133, JString, required = false, + default = nil) + if valid_616133 != nil: + section.add "GroupName", valid_616133 + var valid_616134 = formData.getOrDefault("DryRun") + valid_616134 = validateParameter(valid_616134, JBool, required = false, default = nil) + if valid_616134 != nil: + section.add "DryRun", valid_616134 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616133: Call_PostDeleteSecurityGroup_616118; path: JsonNode; +proc call*(call_616135: Call_PostDeleteSecurityGroup_616120; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Deletes a security group.

If you attempt to delete a security group that is associated with an instance, or is referenced by another security group, the operation fails with InvalidGroup.InUse in EC2-Classic or DependencyViolation in EC2-VPC.

## - let valid = call_616133.validator(path, query, header, formData, body) - let scheme = call_616133.pickScheme + let valid = call_616135.validator(path, query, header, formData, body) + let scheme = call_616135.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616133.url(scheme.get, call_616133.host, call_616133.base, - call_616133.route, valid.getOrDefault("path"), + let url = call_616135.url(scheme.get, call_616135.host, call_616135.base, + call_616135.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616133, url, valid) + result = atozHook(call_616135, url, valid) -proc call*(call_616134: Call_PostDeleteSecurityGroup_616118; GroupId: string = ""; +proc call*(call_616136: Call_PostDeleteSecurityGroup_616120; GroupId: string = ""; GroupName: string = ""; DryRun: bool = false; Action: string = "DeleteSecurityGroup"; Version: string = "2016-11-15"): Recallable = ## postDeleteSecurityGroup @@ -41434,23 +41461,23 @@ proc call*(call_616134: Call_PostDeleteSecurityGroup_616118; GroupId: string = " ## : 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. ## Action: string (required) ## Version: string (required) - var query_616135 = newJObject() - var formData_616136 = newJObject() - add(formData_616136, "GroupId", newJString(GroupId)) - add(formData_616136, "GroupName", newJString(GroupName)) - add(formData_616136, "DryRun", newJBool(DryRun)) - add(query_616135, "Action", newJString(Action)) - add(query_616135, "Version", newJString(Version)) - result = call_616134.call(nil, query_616135, nil, formData_616136, nil) + var query_616137 = newJObject() + var formData_616138 = newJObject() + add(formData_616138, "GroupId", newJString(GroupId)) + add(formData_616138, "GroupName", newJString(GroupName)) + add(formData_616138, "DryRun", newJBool(DryRun)) + add(query_616137, "Action", newJString(Action)) + add(query_616137, "Version", newJString(Version)) + result = call_616136.call(nil, query_616137, nil, formData_616138, nil) -var postDeleteSecurityGroup* = Call_PostDeleteSecurityGroup_616118( +var postDeleteSecurityGroup* = Call_PostDeleteSecurityGroup_616120( name: "postDeleteSecurityGroup", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteSecurityGroup", - validator: validate_PostDeleteSecurityGroup_616119, base: "/", - url: url_PostDeleteSecurityGroup_616120, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDeleteSecurityGroup_616121, base: "/", + url: url_PostDeleteSecurityGroup_616122, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteSecurityGroup_616100 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteSecurityGroup_616102(protocol: Scheme; host: string; base: string; + Call_GetDeleteSecurityGroup_616102 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteSecurityGroup_616104(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -41460,7 +41487,7 @@ proc url_GetDeleteSecurityGroup_616102(protocol: Scheme; host: string; base: str else: result.path = base & route -proc validate_GetDeleteSecurityGroup_616101(path: JsonNode; query: JsonNode; +proc validate_GetDeleteSecurityGroup_616103(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Deletes a security group.

If you attempt to delete a security group that is associated with an instance, or is referenced by another security group, the operation fails with InvalidGroup.InUse in EC2-Classic or DependencyViolation in EC2-VPC.

## @@ -41478,30 +41505,30 @@ proc validate_GetDeleteSecurityGroup_616101(path: JsonNode; query: JsonNode; ## : The ID of the security group. Required for a nondefault VPC. ## Version: JString (required) section = newJObject() - var valid_616103 = query.getOrDefault("GroupName") - valid_616103 = validateParameter(valid_616103, JString, required = false, + var valid_616105 = query.getOrDefault("GroupName") + valid_616105 = validateParameter(valid_616105, JString, required = false, default = nil) - if valid_616103 != nil: - section.add "GroupName", valid_616103 - var valid_616104 = query.getOrDefault("DryRun") - valid_616104 = validateParameter(valid_616104, JBool, required = false, default = nil) - if valid_616104 != nil: - section.add "DryRun", valid_616104 - var valid_616105 = query.getOrDefault("Action") - valid_616105 = validateParameter(valid_616105, JString, required = true, - default = newJString("DeleteSecurityGroup")) if valid_616105 != nil: - section.add "Action", valid_616105 - var valid_616106 = query.getOrDefault("GroupId") - valid_616106 = validateParameter(valid_616106, JString, required = false, - default = nil) + section.add "GroupName", valid_616105 + var valid_616106 = query.getOrDefault("DryRun") + valid_616106 = validateParameter(valid_616106, JBool, required = false, default = nil) if valid_616106 != nil: - section.add "GroupId", valid_616106 - var valid_616107 = query.getOrDefault("Version") + section.add "DryRun", valid_616106 + var valid_616107 = query.getOrDefault("Action") valid_616107 = validateParameter(valid_616107, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("DeleteSecurityGroup")) if valid_616107 != nil: - section.add "Version", valid_616107 + section.add "Action", valid_616107 + var valid_616108 = query.getOrDefault("GroupId") + valid_616108 = validateParameter(valid_616108, JString, required = false, + default = nil) + if valid_616108 != nil: + section.add "GroupId", valid_616108 + var valid_616109 = query.getOrDefault("Version") + valid_616109 = validateParameter(valid_616109, JString, required = true, + default = newJString("2016-11-15")) + if valid_616109 != nil: + section.add "Version", valid_616109 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -41512,61 +41539,61 @@ proc validate_GetDeleteSecurityGroup_616101(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616108 = header.getOrDefault("X-Amz-Signature") - valid_616108 = validateParameter(valid_616108, JString, required = false, - default = nil) - if valid_616108 != nil: - section.add "X-Amz-Signature", valid_616108 - var valid_616109 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616109 = validateParameter(valid_616109, JString, required = false, - default = nil) - if valid_616109 != nil: - section.add "X-Amz-Content-Sha256", valid_616109 - var valid_616110 = header.getOrDefault("X-Amz-Date") + var valid_616110 = header.getOrDefault("X-Amz-Signature") valid_616110 = validateParameter(valid_616110, JString, required = false, default = nil) if valid_616110 != nil: - section.add "X-Amz-Date", valid_616110 - var valid_616111 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616110 + var valid_616111 = header.getOrDefault("X-Amz-Content-Sha256") valid_616111 = validateParameter(valid_616111, JString, required = false, default = nil) if valid_616111 != nil: - section.add "X-Amz-Credential", valid_616111 - var valid_616112 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616111 + var valid_616112 = header.getOrDefault("X-Amz-Date") valid_616112 = validateParameter(valid_616112, JString, required = false, default = nil) if valid_616112 != nil: - section.add "X-Amz-Security-Token", valid_616112 - var valid_616113 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616112 + var valid_616113 = header.getOrDefault("X-Amz-Credential") valid_616113 = validateParameter(valid_616113, JString, required = false, default = nil) if valid_616113 != nil: - section.add "X-Amz-Algorithm", valid_616113 - var valid_616114 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616113 + var valid_616114 = header.getOrDefault("X-Amz-Security-Token") valid_616114 = validateParameter(valid_616114, JString, required = false, default = nil) if valid_616114 != nil: - section.add "X-Amz-SignedHeaders", valid_616114 + section.add "X-Amz-Security-Token", valid_616114 + var valid_616115 = header.getOrDefault("X-Amz-Algorithm") + valid_616115 = validateParameter(valid_616115, JString, required = false, + default = nil) + if valid_616115 != nil: + section.add "X-Amz-Algorithm", valid_616115 + var valid_616116 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616116 = validateParameter(valid_616116, JString, required = false, + default = nil) + if valid_616116 != nil: + section.add "X-Amz-SignedHeaders", valid_616116 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616115: Call_GetDeleteSecurityGroup_616100; path: JsonNode; +proc call*(call_616117: Call_GetDeleteSecurityGroup_616102; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Deletes a security group.

If you attempt to delete a security group that is associated with an instance, or is referenced by another security group, the operation fails with InvalidGroup.InUse in EC2-Classic or DependencyViolation in EC2-VPC.

## - let valid = call_616115.validator(path, query, header, formData, body) - let scheme = call_616115.pickScheme + let valid = call_616117.validator(path, query, header, formData, body) + let scheme = call_616117.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616115.url(scheme.get, call_616115.host, call_616115.base, - call_616115.route, valid.getOrDefault("path"), + let url = call_616117.url(scheme.get, call_616117.host, call_616117.base, + call_616117.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616115, url, valid) + result = atozHook(call_616117, url, valid) -proc call*(call_616116: Call_GetDeleteSecurityGroup_616100; GroupName: string = ""; +proc call*(call_616118: Call_GetDeleteSecurityGroup_616102; GroupName: string = ""; DryRun: bool = false; Action: string = "DeleteSecurityGroup"; GroupId: string = ""; Version: string = "2016-11-15"): Recallable = ## getDeleteSecurityGroup @@ -41579,22 +41606,22 @@ proc call*(call_616116: Call_GetDeleteSecurityGroup_616100; GroupName: string = ## GroupId: string ## : The ID of the security group. Required for a nondefault VPC. ## Version: string (required) - var query_616117 = newJObject() - add(query_616117, "GroupName", newJString(GroupName)) - add(query_616117, "DryRun", newJBool(DryRun)) - add(query_616117, "Action", newJString(Action)) - add(query_616117, "GroupId", newJString(GroupId)) - add(query_616117, "Version", newJString(Version)) - result = call_616116.call(nil, query_616117, nil, nil, nil) + var query_616119 = newJObject() + add(query_616119, "GroupName", newJString(GroupName)) + add(query_616119, "DryRun", newJBool(DryRun)) + add(query_616119, "Action", newJString(Action)) + add(query_616119, "GroupId", newJString(GroupId)) + add(query_616119, "Version", newJString(Version)) + result = call_616118.call(nil, query_616119, nil, nil, nil) -var getDeleteSecurityGroup* = Call_GetDeleteSecurityGroup_616100( +var getDeleteSecurityGroup* = Call_GetDeleteSecurityGroup_616102( name: "getDeleteSecurityGroup", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteSecurityGroup", - validator: validate_GetDeleteSecurityGroup_616101, base: "/", - url: url_GetDeleteSecurityGroup_616102, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDeleteSecurityGroup_616103, base: "/", + url: url_GetDeleteSecurityGroup_616104, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteSnapshot_616154 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteSnapshot_616156(protocol: Scheme; host: string; base: string; + Call_PostDeleteSnapshot_616156 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteSnapshot_616158(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -41604,7 +41631,7 @@ proc url_PostDeleteSnapshot_616156(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostDeleteSnapshot_616155(path: JsonNode; query: JsonNode; +proc validate_PostDeleteSnapshot_616157(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Deletes the specified snapshot.

When you make periodic snapshots of a volume, the snapshots are incremental, and only the blocks on the device that have changed since your last snapshot are saved in the new snapshot. When you delete a snapshot, only the data not needed for any other snapshot is removed. So regardless of which prior snapshots have been deleted, all active snapshots will have access to all the information needed to restore the volume.

You cannot delete a snapshot of the root device of an EBS volume used by a registered AMI. You must first de-register the AMI before you can delete the snapshot.

For more information, see Deleting an Amazon EBS Snapshot in the Amazon Elastic Compute Cloud User Guide.

@@ -41617,16 +41644,16 @@ proc validate_PostDeleteSnapshot_616155(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616157 = query.getOrDefault("Action") - valid_616157 = validateParameter(valid_616157, JString, required = true, + var valid_616159 = query.getOrDefault("Action") + valid_616159 = validateParameter(valid_616159, JString, required = true, default = newJString("DeleteSnapshot")) - if valid_616157 != nil: - section.add "Action", valid_616157 - var valid_616158 = query.getOrDefault("Version") - valid_616158 = validateParameter(valid_616158, JString, required = true, + if valid_616159 != nil: + section.add "Action", valid_616159 + var valid_616160 = query.getOrDefault("Version") + valid_616160 = validateParameter(valid_616160, JString, required = true, default = newJString("2016-11-15")) - if valid_616158 != nil: - section.add "Version", valid_616158 + if valid_616160 != nil: + section.add "Version", valid_616160 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -41637,41 +41664,41 @@ proc validate_PostDeleteSnapshot_616155(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616159 = header.getOrDefault("X-Amz-Signature") - valid_616159 = validateParameter(valid_616159, JString, required = false, - default = nil) - if valid_616159 != nil: - section.add "X-Amz-Signature", valid_616159 - var valid_616160 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616160 = validateParameter(valid_616160, JString, required = false, - default = nil) - if valid_616160 != nil: - section.add "X-Amz-Content-Sha256", valid_616160 - var valid_616161 = header.getOrDefault("X-Amz-Date") + var valid_616161 = header.getOrDefault("X-Amz-Signature") valid_616161 = validateParameter(valid_616161, JString, required = false, default = nil) if valid_616161 != nil: - section.add "X-Amz-Date", valid_616161 - var valid_616162 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616161 + var valid_616162 = header.getOrDefault("X-Amz-Content-Sha256") valid_616162 = validateParameter(valid_616162, JString, required = false, default = nil) if valid_616162 != nil: - section.add "X-Amz-Credential", valid_616162 - var valid_616163 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616162 + var valid_616163 = header.getOrDefault("X-Amz-Date") valid_616163 = validateParameter(valid_616163, JString, required = false, default = nil) if valid_616163 != nil: - section.add "X-Amz-Security-Token", valid_616163 - var valid_616164 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616163 + var valid_616164 = header.getOrDefault("X-Amz-Credential") valid_616164 = validateParameter(valid_616164, JString, required = false, default = nil) if valid_616164 != nil: - section.add "X-Amz-Algorithm", valid_616164 - var valid_616165 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616164 + var valid_616165 = header.getOrDefault("X-Amz-Security-Token") valid_616165 = validateParameter(valid_616165, JString, required = false, default = nil) if valid_616165 != nil: - section.add "X-Amz-SignedHeaders", valid_616165 + section.add "X-Amz-Security-Token", valid_616165 + var valid_616166 = header.getOrDefault("X-Amz-Algorithm") + valid_616166 = validateParameter(valid_616166, JString, required = false, + default = nil) + if valid_616166 != nil: + section.add "X-Amz-Algorithm", valid_616166 + var valid_616167 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616167 = validateParameter(valid_616167, JString, required = false, + default = nil) + if valid_616167 != nil: + section.add "X-Amz-SignedHeaders", valid_616167 result.add "header", section ## parameters in `formData` object: ## SnapshotId: JString (required) @@ -41681,33 +41708,33 @@ proc validate_PostDeleteSnapshot_616155(path: JsonNode; query: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `SnapshotId` field" - var valid_616166 = formData.getOrDefault("SnapshotId") - valid_616166 = validateParameter(valid_616166, JString, required = true, + var valid_616168 = formData.getOrDefault("SnapshotId") + valid_616168 = validateParameter(valid_616168, JString, required = true, default = nil) - if valid_616166 != nil: - section.add "SnapshotId", valid_616166 - var valid_616167 = formData.getOrDefault("DryRun") - valid_616167 = validateParameter(valid_616167, JBool, required = false, default = nil) - if valid_616167 != nil: - section.add "DryRun", valid_616167 + if valid_616168 != nil: + section.add "SnapshotId", valid_616168 + var valid_616169 = formData.getOrDefault("DryRun") + valid_616169 = validateParameter(valid_616169, JBool, required = false, default = nil) + if valid_616169 != nil: + section.add "DryRun", valid_616169 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616168: Call_PostDeleteSnapshot_616154; path: JsonNode; +proc call*(call_616170: Call_PostDeleteSnapshot_616156; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Deletes the specified snapshot.

When you make periodic snapshots of a volume, the snapshots are incremental, and only the blocks on the device that have changed since your last snapshot are saved in the new snapshot. When you delete a snapshot, only the data not needed for any other snapshot is removed. So regardless of which prior snapshots have been deleted, all active snapshots will have access to all the information needed to restore the volume.

You cannot delete a snapshot of the root device of an EBS volume used by a registered AMI. You must first de-register the AMI before you can delete the snapshot.

For more information, see Deleting an Amazon EBS Snapshot in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_616168.validator(path, query, header, formData, body) - let scheme = call_616168.pickScheme + let valid = call_616170.validator(path, query, header, formData, body) + let scheme = call_616170.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616168.url(scheme.get, call_616168.host, call_616168.base, - call_616168.route, valid.getOrDefault("path"), + let url = call_616170.url(scheme.get, call_616170.host, call_616170.base, + call_616170.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616168, url, valid) + result = atozHook(call_616170, url, valid) -proc call*(call_616169: Call_PostDeleteSnapshot_616154; SnapshotId: string; +proc call*(call_616171: Call_PostDeleteSnapshot_616156; SnapshotId: string; DryRun: bool = false; Action: string = "DeleteSnapshot"; Version: string = "2016-11-15"): Recallable = ## postDeleteSnapshot @@ -41718,22 +41745,22 @@ proc call*(call_616169: Call_PostDeleteSnapshot_616154; SnapshotId: string; ## : 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. ## Action: string (required) ## Version: string (required) - var query_616170 = newJObject() - var formData_616171 = newJObject() - add(formData_616171, "SnapshotId", newJString(SnapshotId)) - add(formData_616171, "DryRun", newJBool(DryRun)) - add(query_616170, "Action", newJString(Action)) - add(query_616170, "Version", newJString(Version)) - result = call_616169.call(nil, query_616170, nil, formData_616171, nil) + var query_616172 = newJObject() + var formData_616173 = newJObject() + add(formData_616173, "SnapshotId", newJString(SnapshotId)) + add(formData_616173, "DryRun", newJBool(DryRun)) + add(query_616172, "Action", newJString(Action)) + add(query_616172, "Version", newJString(Version)) + result = call_616171.call(nil, query_616172, nil, formData_616173, nil) -var postDeleteSnapshot* = Call_PostDeleteSnapshot_616154( +var postDeleteSnapshot* = Call_PostDeleteSnapshot_616156( name: "postDeleteSnapshot", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteSnapshot", - validator: validate_PostDeleteSnapshot_616155, base: "/", - url: url_PostDeleteSnapshot_616156, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDeleteSnapshot_616157, base: "/", + url: url_PostDeleteSnapshot_616158, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteSnapshot_616137 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteSnapshot_616139(protocol: Scheme; host: string; base: string; + Call_GetDeleteSnapshot_616139 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteSnapshot_616141(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -41743,7 +41770,7 @@ proc url_GetDeleteSnapshot_616139(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetDeleteSnapshot_616138(path: JsonNode; query: JsonNode; +proc validate_GetDeleteSnapshot_616140(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Deletes the specified snapshot.

When you make periodic snapshots of a volume, the snapshots are incremental, and only the blocks on the device that have changed since your last snapshot are saved in the new snapshot. When you delete a snapshot, only the data not needed for any other snapshot is removed. So regardless of which prior snapshots have been deleted, all active snapshots will have access to all the information needed to restore the volume.

You cannot delete a snapshot of the root device of an EBS volume used by a registered AMI. You must first de-register the AMI before you can delete the snapshot.

For more information, see Deleting an Amazon EBS Snapshot in the Amazon Elastic Compute Cloud User Guide.

@@ -41760,25 +41787,25 @@ proc validate_GetDeleteSnapshot_616138(path: JsonNode; query: JsonNode; ## SnapshotId: JString (required) ## : The ID of the EBS snapshot. section = newJObject() - var valid_616140 = query.getOrDefault("DryRun") - valid_616140 = validateParameter(valid_616140, JBool, required = false, default = nil) - if valid_616140 != nil: - section.add "DryRun", valid_616140 - var valid_616141 = query.getOrDefault("Action") - valid_616141 = validateParameter(valid_616141, JString, required = true, - default = newJString("DeleteSnapshot")) - if valid_616141 != nil: - section.add "Action", valid_616141 - var valid_616142 = query.getOrDefault("Version") - valid_616142 = validateParameter(valid_616142, JString, required = true, - default = newJString("2016-11-15")) + var valid_616142 = query.getOrDefault("DryRun") + valid_616142 = validateParameter(valid_616142, JBool, required = false, default = nil) if valid_616142 != nil: - section.add "Version", valid_616142 - var valid_616143 = query.getOrDefault("SnapshotId") + section.add "DryRun", valid_616142 + var valid_616143 = query.getOrDefault("Action") valid_616143 = validateParameter(valid_616143, JString, required = true, - default = nil) + default = newJString("DeleteSnapshot")) if valid_616143 != nil: - section.add "SnapshotId", valid_616143 + section.add "Action", valid_616143 + var valid_616144 = query.getOrDefault("Version") + valid_616144 = validateParameter(valid_616144, JString, required = true, + default = newJString("2016-11-15")) + if valid_616144 != nil: + section.add "Version", valid_616144 + var valid_616145 = query.getOrDefault("SnapshotId") + valid_616145 = validateParameter(valid_616145, JString, required = true, + default = nil) + if valid_616145 != nil: + section.add "SnapshotId", valid_616145 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -41789,61 +41816,61 @@ proc validate_GetDeleteSnapshot_616138(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616144 = header.getOrDefault("X-Amz-Signature") - valid_616144 = validateParameter(valid_616144, JString, required = false, - default = nil) - if valid_616144 != nil: - section.add "X-Amz-Signature", valid_616144 - var valid_616145 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616145 = validateParameter(valid_616145, JString, required = false, - default = nil) - if valid_616145 != nil: - section.add "X-Amz-Content-Sha256", valid_616145 - var valid_616146 = header.getOrDefault("X-Amz-Date") + var valid_616146 = header.getOrDefault("X-Amz-Signature") valid_616146 = validateParameter(valid_616146, JString, required = false, default = nil) if valid_616146 != nil: - section.add "X-Amz-Date", valid_616146 - var valid_616147 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616146 + var valid_616147 = header.getOrDefault("X-Amz-Content-Sha256") valid_616147 = validateParameter(valid_616147, JString, required = false, default = nil) if valid_616147 != nil: - section.add "X-Amz-Credential", valid_616147 - var valid_616148 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616147 + var valid_616148 = header.getOrDefault("X-Amz-Date") valid_616148 = validateParameter(valid_616148, JString, required = false, default = nil) if valid_616148 != nil: - section.add "X-Amz-Security-Token", valid_616148 - var valid_616149 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616148 + var valid_616149 = header.getOrDefault("X-Amz-Credential") valid_616149 = validateParameter(valid_616149, JString, required = false, default = nil) if valid_616149 != nil: - section.add "X-Amz-Algorithm", valid_616149 - var valid_616150 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616149 + var valid_616150 = header.getOrDefault("X-Amz-Security-Token") valid_616150 = validateParameter(valid_616150, JString, required = false, default = nil) if valid_616150 != nil: - section.add "X-Amz-SignedHeaders", valid_616150 + section.add "X-Amz-Security-Token", valid_616150 + var valid_616151 = header.getOrDefault("X-Amz-Algorithm") + valid_616151 = validateParameter(valid_616151, JString, required = false, + default = nil) + if valid_616151 != nil: + section.add "X-Amz-Algorithm", valid_616151 + var valid_616152 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616152 = validateParameter(valid_616152, JString, required = false, + default = nil) + if valid_616152 != nil: + section.add "X-Amz-SignedHeaders", valid_616152 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616151: Call_GetDeleteSnapshot_616137; path: JsonNode; +proc call*(call_616153: Call_GetDeleteSnapshot_616139; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Deletes the specified snapshot.

When you make periodic snapshots of a volume, the snapshots are incremental, and only the blocks on the device that have changed since your last snapshot are saved in the new snapshot. When you delete a snapshot, only the data not needed for any other snapshot is removed. So regardless of which prior snapshots have been deleted, all active snapshots will have access to all the information needed to restore the volume.

You cannot delete a snapshot of the root device of an EBS volume used by a registered AMI. You must first de-register the AMI before you can delete the snapshot.

For more information, see Deleting an Amazon EBS Snapshot in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_616151.validator(path, query, header, formData, body) - let scheme = call_616151.pickScheme + let valid = call_616153.validator(path, query, header, formData, body) + let scheme = call_616153.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616151.url(scheme.get, call_616151.host, call_616151.base, - call_616151.route, valid.getOrDefault("path"), + let url = call_616153.url(scheme.get, call_616153.host, call_616153.base, + call_616153.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616151, url, valid) + result = atozHook(call_616153, url, valid) -proc call*(call_616152: Call_GetDeleteSnapshot_616137; SnapshotId: string; +proc call*(call_616154: Call_GetDeleteSnapshot_616139; SnapshotId: string; DryRun: bool = false; Action: string = "DeleteSnapshot"; Version: string = "2016-11-15"): Recallable = ## getDeleteSnapshot @@ -41854,21 +41881,21 @@ proc call*(call_616152: Call_GetDeleteSnapshot_616137; SnapshotId: string; ## Version: string (required) ## SnapshotId: string (required) ## : The ID of the EBS snapshot. - var query_616153 = newJObject() - add(query_616153, "DryRun", newJBool(DryRun)) - add(query_616153, "Action", newJString(Action)) - add(query_616153, "Version", newJString(Version)) - add(query_616153, "SnapshotId", newJString(SnapshotId)) - result = call_616152.call(nil, query_616153, nil, nil, nil) - -var getDeleteSnapshot* = Call_GetDeleteSnapshot_616137(name: "getDeleteSnapshot", + var query_616155 = newJObject() + add(query_616155, "DryRun", newJBool(DryRun)) + add(query_616155, "Action", newJString(Action)) + add(query_616155, "Version", newJString(Version)) + add(query_616155, "SnapshotId", newJString(SnapshotId)) + result = call_616154.call(nil, query_616155, nil, nil, nil) + +var getDeleteSnapshot* = Call_GetDeleteSnapshot_616139(name: "getDeleteSnapshot", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=DeleteSnapshot", validator: validate_GetDeleteSnapshot_616138, - base: "/", url: url_GetDeleteSnapshot_616139, + route: "/#Action=DeleteSnapshot", validator: validate_GetDeleteSnapshot_616140, + base: "/", url: url_GetDeleteSnapshot_616141, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteSpotDatafeedSubscription_616188 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteSpotDatafeedSubscription_616190(protocol: Scheme; host: string; + Call_PostDeleteSpotDatafeedSubscription_616190 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteSpotDatafeedSubscription_616192(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -41878,7 +41905,7 @@ proc url_PostDeleteSpotDatafeedSubscription_616190(protocol: Scheme; host: strin else: result.path = base & route -proc validate_PostDeleteSpotDatafeedSubscription_616189(path: JsonNode; +proc validate_PostDeleteSpotDatafeedSubscription_616191(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the data feed for Spot Instances. ## @@ -41890,16 +41917,16 @@ proc validate_PostDeleteSpotDatafeedSubscription_616189(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616191 = query.getOrDefault("Action") - valid_616191 = validateParameter(valid_616191, JString, required = true, default = newJString( + var valid_616193 = query.getOrDefault("Action") + valid_616193 = validateParameter(valid_616193, JString, required = true, default = newJString( "DeleteSpotDatafeedSubscription")) - if valid_616191 != nil: - section.add "Action", valid_616191 - var valid_616192 = query.getOrDefault("Version") - valid_616192 = validateParameter(valid_616192, JString, required = true, + if valid_616193 != nil: + section.add "Action", valid_616193 + var valid_616194 = query.getOrDefault("Version") + valid_616194 = validateParameter(valid_616194, JString, required = true, default = newJString("2016-11-15")) - if valid_616192 != nil: - section.add "Version", valid_616192 + if valid_616194 != nil: + section.add "Version", valid_616194 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -41910,69 +41937,69 @@ proc validate_PostDeleteSpotDatafeedSubscription_616189(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616193 = header.getOrDefault("X-Amz-Signature") - valid_616193 = validateParameter(valid_616193, JString, required = false, - default = nil) - if valid_616193 != nil: - section.add "X-Amz-Signature", valid_616193 - var valid_616194 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616194 = validateParameter(valid_616194, JString, required = false, - default = nil) - if valid_616194 != nil: - section.add "X-Amz-Content-Sha256", valid_616194 - var valid_616195 = header.getOrDefault("X-Amz-Date") + var valid_616195 = header.getOrDefault("X-Amz-Signature") valid_616195 = validateParameter(valid_616195, JString, required = false, default = nil) if valid_616195 != nil: - section.add "X-Amz-Date", valid_616195 - var valid_616196 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616195 + var valid_616196 = header.getOrDefault("X-Amz-Content-Sha256") valid_616196 = validateParameter(valid_616196, JString, required = false, default = nil) if valid_616196 != nil: - section.add "X-Amz-Credential", valid_616196 - var valid_616197 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616196 + var valid_616197 = header.getOrDefault("X-Amz-Date") valid_616197 = validateParameter(valid_616197, JString, required = false, default = nil) if valid_616197 != nil: - section.add "X-Amz-Security-Token", valid_616197 - var valid_616198 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616197 + var valid_616198 = header.getOrDefault("X-Amz-Credential") valid_616198 = validateParameter(valid_616198, JString, required = false, default = nil) if valid_616198 != nil: - section.add "X-Amz-Algorithm", valid_616198 - var valid_616199 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616198 + var valid_616199 = header.getOrDefault("X-Amz-Security-Token") valid_616199 = validateParameter(valid_616199, JString, required = false, default = nil) if valid_616199 != nil: - section.add "X-Amz-SignedHeaders", valid_616199 + section.add "X-Amz-Security-Token", valid_616199 + var valid_616200 = header.getOrDefault("X-Amz-Algorithm") + valid_616200 = validateParameter(valid_616200, JString, required = false, + default = nil) + if valid_616200 != nil: + section.add "X-Amz-Algorithm", valid_616200 + var valid_616201 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616201 = validateParameter(valid_616201, JString, required = false, + default = nil) + if valid_616201 != nil: + section.add "X-Amz-SignedHeaders", valid_616201 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool ## : 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. section = newJObject() - var valid_616200 = formData.getOrDefault("DryRun") - valid_616200 = validateParameter(valid_616200, JBool, required = false, default = nil) - if valid_616200 != nil: - section.add "DryRun", valid_616200 + var valid_616202 = formData.getOrDefault("DryRun") + valid_616202 = validateParameter(valid_616202, JBool, required = false, default = nil) + if valid_616202 != nil: + section.add "DryRun", valid_616202 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616201: Call_PostDeleteSpotDatafeedSubscription_616188; +proc call*(call_616203: Call_PostDeleteSpotDatafeedSubscription_616190; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the data feed for Spot Instances. ## - let valid = call_616201.validator(path, query, header, formData, body) - let scheme = call_616201.pickScheme + let valid = call_616203.validator(path, query, header, formData, body) + let scheme = call_616203.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616201.url(scheme.get, call_616201.host, call_616201.base, - call_616201.route, valid.getOrDefault("path"), + let url = call_616203.url(scheme.get, call_616203.host, call_616203.base, + call_616203.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616201, url, valid) + result = atozHook(call_616203, url, valid) -proc call*(call_616202: Call_PostDeleteSpotDatafeedSubscription_616188; +proc call*(call_616204: Call_PostDeleteSpotDatafeedSubscription_616190; DryRun: bool = false; Action: string = "DeleteSpotDatafeedSubscription"; Version: string = "2016-11-15"): Recallable = ## postDeleteSpotDatafeedSubscription @@ -41981,22 +42008,22 @@ proc call*(call_616202: Call_PostDeleteSpotDatafeedSubscription_616188; ## : 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. ## Action: string (required) ## Version: string (required) - var query_616203 = newJObject() - var formData_616204 = newJObject() - add(formData_616204, "DryRun", newJBool(DryRun)) - add(query_616203, "Action", newJString(Action)) - add(query_616203, "Version", newJString(Version)) - result = call_616202.call(nil, query_616203, nil, formData_616204, nil) + var query_616205 = newJObject() + var formData_616206 = newJObject() + add(formData_616206, "DryRun", newJBool(DryRun)) + add(query_616205, "Action", newJString(Action)) + add(query_616205, "Version", newJString(Version)) + result = call_616204.call(nil, query_616205, nil, formData_616206, nil) -var postDeleteSpotDatafeedSubscription* = Call_PostDeleteSpotDatafeedSubscription_616188( +var postDeleteSpotDatafeedSubscription* = Call_PostDeleteSpotDatafeedSubscription_616190( name: "postDeleteSpotDatafeedSubscription", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteSpotDatafeedSubscription", - validator: validate_PostDeleteSpotDatafeedSubscription_616189, base: "/", - url: url_PostDeleteSpotDatafeedSubscription_616190, + validator: validate_PostDeleteSpotDatafeedSubscription_616191, base: "/", + url: url_PostDeleteSpotDatafeedSubscription_616192, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteSpotDatafeedSubscription_616172 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteSpotDatafeedSubscription_616174(protocol: Scheme; host: string; + Call_GetDeleteSpotDatafeedSubscription_616174 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteSpotDatafeedSubscription_616176(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -42006,7 +42033,7 @@ proc url_GetDeleteSpotDatafeedSubscription_616174(protocol: Scheme; host: string else: result.path = base & route -proc validate_GetDeleteSpotDatafeedSubscription_616173(path: JsonNode; +proc validate_GetDeleteSpotDatafeedSubscription_616175(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the data feed for Spot Instances. ## @@ -42020,20 +42047,20 @@ proc validate_GetDeleteSpotDatafeedSubscription_616173(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616175 = query.getOrDefault("DryRun") - valid_616175 = validateParameter(valid_616175, JBool, required = false, default = nil) - if valid_616175 != nil: - section.add "DryRun", valid_616175 - var valid_616176 = query.getOrDefault("Action") - valid_616176 = validateParameter(valid_616176, JString, required = true, default = newJString( + var valid_616177 = query.getOrDefault("DryRun") + valid_616177 = validateParameter(valid_616177, JBool, required = false, default = nil) + if valid_616177 != nil: + section.add "DryRun", valid_616177 + var valid_616178 = query.getOrDefault("Action") + valid_616178 = validateParameter(valid_616178, JString, required = true, default = newJString( "DeleteSpotDatafeedSubscription")) - if valid_616176 != nil: - section.add "Action", valid_616176 - var valid_616177 = query.getOrDefault("Version") - valid_616177 = validateParameter(valid_616177, JString, required = true, + if valid_616178 != nil: + section.add "Action", valid_616178 + var valid_616179 = query.getOrDefault("Version") + valid_616179 = validateParameter(valid_616179, JString, required = true, default = newJString("2016-11-15")) - if valid_616177 != nil: - section.add "Version", valid_616177 + if valid_616179 != nil: + section.add "Version", valid_616179 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -42044,62 +42071,62 @@ proc validate_GetDeleteSpotDatafeedSubscription_616173(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616178 = header.getOrDefault("X-Amz-Signature") - valid_616178 = validateParameter(valid_616178, JString, required = false, - default = nil) - if valid_616178 != nil: - section.add "X-Amz-Signature", valid_616178 - var valid_616179 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616179 = validateParameter(valid_616179, JString, required = false, - default = nil) - if valid_616179 != nil: - section.add "X-Amz-Content-Sha256", valid_616179 - var valid_616180 = header.getOrDefault("X-Amz-Date") + var valid_616180 = header.getOrDefault("X-Amz-Signature") valid_616180 = validateParameter(valid_616180, JString, required = false, default = nil) if valid_616180 != nil: - section.add "X-Amz-Date", valid_616180 - var valid_616181 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616180 + var valid_616181 = header.getOrDefault("X-Amz-Content-Sha256") valid_616181 = validateParameter(valid_616181, JString, required = false, default = nil) if valid_616181 != nil: - section.add "X-Amz-Credential", valid_616181 - var valid_616182 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616181 + var valid_616182 = header.getOrDefault("X-Amz-Date") valid_616182 = validateParameter(valid_616182, JString, required = false, default = nil) if valid_616182 != nil: - section.add "X-Amz-Security-Token", valid_616182 - var valid_616183 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616182 + var valid_616183 = header.getOrDefault("X-Amz-Credential") valid_616183 = validateParameter(valid_616183, JString, required = false, default = nil) if valid_616183 != nil: - section.add "X-Amz-Algorithm", valid_616183 - var valid_616184 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616183 + var valid_616184 = header.getOrDefault("X-Amz-Security-Token") valid_616184 = validateParameter(valid_616184, JString, required = false, default = nil) if valid_616184 != nil: - section.add "X-Amz-SignedHeaders", valid_616184 + section.add "X-Amz-Security-Token", valid_616184 + var valid_616185 = header.getOrDefault("X-Amz-Algorithm") + valid_616185 = validateParameter(valid_616185, JString, required = false, + default = nil) + if valid_616185 != nil: + section.add "X-Amz-Algorithm", valid_616185 + var valid_616186 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616186 = validateParameter(valid_616186, JString, required = false, + default = nil) + if valid_616186 != nil: + section.add "X-Amz-SignedHeaders", valid_616186 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616185: Call_GetDeleteSpotDatafeedSubscription_616172; +proc call*(call_616187: Call_GetDeleteSpotDatafeedSubscription_616174; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the data feed for Spot Instances. ## - let valid = call_616185.validator(path, query, header, formData, body) - let scheme = call_616185.pickScheme + let valid = call_616187.validator(path, query, header, formData, body) + let scheme = call_616187.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616185.url(scheme.get, call_616185.host, call_616185.base, - call_616185.route, valid.getOrDefault("path"), + let url = call_616187.url(scheme.get, call_616187.host, call_616187.base, + call_616187.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616185, url, valid) + result = atozHook(call_616187, url, valid) -proc call*(call_616186: Call_GetDeleteSpotDatafeedSubscription_616172; +proc call*(call_616188: Call_GetDeleteSpotDatafeedSubscription_616174; DryRun: bool = false; Action: string = "DeleteSpotDatafeedSubscription"; Version: string = "2016-11-15"): Recallable = ## getDeleteSpotDatafeedSubscription @@ -42108,21 +42135,21 @@ proc call*(call_616186: Call_GetDeleteSpotDatafeedSubscription_616172; ## : 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. ## Action: string (required) ## Version: string (required) - var query_616187 = newJObject() - add(query_616187, "DryRun", newJBool(DryRun)) - add(query_616187, "Action", newJString(Action)) - add(query_616187, "Version", newJString(Version)) - result = call_616186.call(nil, query_616187, nil, nil, nil) + var query_616189 = newJObject() + add(query_616189, "DryRun", newJBool(DryRun)) + add(query_616189, "Action", newJString(Action)) + add(query_616189, "Version", newJString(Version)) + result = call_616188.call(nil, query_616189, nil, nil, nil) -var getDeleteSpotDatafeedSubscription* = Call_GetDeleteSpotDatafeedSubscription_616172( +var getDeleteSpotDatafeedSubscription* = Call_GetDeleteSpotDatafeedSubscription_616174( name: "getDeleteSpotDatafeedSubscription", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteSpotDatafeedSubscription", - validator: validate_GetDeleteSpotDatafeedSubscription_616173, base: "/", - url: url_GetDeleteSpotDatafeedSubscription_616174, + validator: validate_GetDeleteSpotDatafeedSubscription_616175, base: "/", + url: url_GetDeleteSpotDatafeedSubscription_616176, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteSubnet_616222 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteSubnet_616224(protocol: Scheme; host: string; base: string; + Call_PostDeleteSubnet_616224 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteSubnet_616226(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -42132,7 +42159,7 @@ proc url_PostDeleteSubnet_616224(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostDeleteSubnet_616223(path: JsonNode; query: JsonNode; +proc validate_PostDeleteSubnet_616225(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified subnet. You must terminate all running instances in the subnet before you can delete the subnet. @@ -42145,16 +42172,16 @@ proc validate_PostDeleteSubnet_616223(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616225 = query.getOrDefault("Action") - valid_616225 = validateParameter(valid_616225, JString, required = true, + var valid_616227 = query.getOrDefault("Action") + valid_616227 = validateParameter(valid_616227, JString, required = true, default = newJString("DeleteSubnet")) - if valid_616225 != nil: - section.add "Action", valid_616225 - var valid_616226 = query.getOrDefault("Version") - valid_616226 = validateParameter(valid_616226, JString, required = true, + if valid_616227 != nil: + section.add "Action", valid_616227 + var valid_616228 = query.getOrDefault("Version") + valid_616228 = validateParameter(valid_616228, JString, required = true, default = newJString("2016-11-15")) - if valid_616226 != nil: - section.add "Version", valid_616226 + if valid_616228 != nil: + section.add "Version", valid_616228 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -42165,41 +42192,41 @@ proc validate_PostDeleteSubnet_616223(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616227 = header.getOrDefault("X-Amz-Signature") - valid_616227 = validateParameter(valid_616227, JString, required = false, - default = nil) - if valid_616227 != nil: - section.add "X-Amz-Signature", valid_616227 - var valid_616228 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616228 = validateParameter(valid_616228, JString, required = false, - default = nil) - if valid_616228 != nil: - section.add "X-Amz-Content-Sha256", valid_616228 - var valid_616229 = header.getOrDefault("X-Amz-Date") + var valid_616229 = header.getOrDefault("X-Amz-Signature") valid_616229 = validateParameter(valid_616229, JString, required = false, default = nil) if valid_616229 != nil: - section.add "X-Amz-Date", valid_616229 - var valid_616230 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616229 + var valid_616230 = header.getOrDefault("X-Amz-Content-Sha256") valid_616230 = validateParameter(valid_616230, JString, required = false, default = nil) if valid_616230 != nil: - section.add "X-Amz-Credential", valid_616230 - var valid_616231 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616230 + var valid_616231 = header.getOrDefault("X-Amz-Date") valid_616231 = validateParameter(valid_616231, JString, required = false, default = nil) if valid_616231 != nil: - section.add "X-Amz-Security-Token", valid_616231 - var valid_616232 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616231 + var valid_616232 = header.getOrDefault("X-Amz-Credential") valid_616232 = validateParameter(valid_616232, JString, required = false, default = nil) if valid_616232 != nil: - section.add "X-Amz-Algorithm", valid_616232 - var valid_616233 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616232 + var valid_616233 = header.getOrDefault("X-Amz-Security-Token") valid_616233 = validateParameter(valid_616233, JString, required = false, default = nil) if valid_616233 != nil: - section.add "X-Amz-SignedHeaders", valid_616233 + section.add "X-Amz-Security-Token", valid_616233 + var valid_616234 = header.getOrDefault("X-Amz-Algorithm") + valid_616234 = validateParameter(valid_616234, JString, required = false, + default = nil) + if valid_616234 != nil: + section.add "X-Amz-Algorithm", valid_616234 + var valid_616235 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616235 = validateParameter(valid_616235, JString, required = false, + default = nil) + if valid_616235 != nil: + section.add "X-Amz-SignedHeaders", valid_616235 result.add "header", section ## parameters in `formData` object: ## SubnetId: JString (required) @@ -42209,33 +42236,33 @@ proc validate_PostDeleteSubnet_616223(path: JsonNode; query: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `SubnetId` field" - var valid_616234 = formData.getOrDefault("SubnetId") - valid_616234 = validateParameter(valid_616234, JString, required = true, + var valid_616236 = formData.getOrDefault("SubnetId") + valid_616236 = validateParameter(valid_616236, JString, required = true, default = nil) - if valid_616234 != nil: - section.add "SubnetId", valid_616234 - var valid_616235 = formData.getOrDefault("DryRun") - valid_616235 = validateParameter(valid_616235, JBool, required = false, default = nil) - if valid_616235 != nil: - section.add "DryRun", valid_616235 + if valid_616236 != nil: + section.add "SubnetId", valid_616236 + var valid_616237 = formData.getOrDefault("DryRun") + valid_616237 = validateParameter(valid_616237, JBool, required = false, default = nil) + if valid_616237 != nil: + section.add "DryRun", valid_616237 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616236: Call_PostDeleteSubnet_616222; path: JsonNode; +proc call*(call_616238: Call_PostDeleteSubnet_616224; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified subnet. You must terminate all running instances in the subnet before you can delete the subnet. ## - let valid = call_616236.validator(path, query, header, formData, body) - let scheme = call_616236.pickScheme + let valid = call_616238.validator(path, query, header, formData, body) + let scheme = call_616238.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616236.url(scheme.get, call_616236.host, call_616236.base, - call_616236.route, valid.getOrDefault("path"), + let url = call_616238.url(scheme.get, call_616238.host, call_616238.base, + call_616238.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616236, url, valid) + result = atozHook(call_616238, url, valid) -proc call*(call_616237: Call_PostDeleteSubnet_616222; SubnetId: string; +proc call*(call_616239: Call_PostDeleteSubnet_616224; SubnetId: string; DryRun: bool = false; Action: string = "DeleteSubnet"; Version: string = "2016-11-15"): Recallable = ## postDeleteSubnet @@ -42246,22 +42273,22 @@ proc call*(call_616237: Call_PostDeleteSubnet_616222; SubnetId: string; ## : 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. ## Action: string (required) ## Version: string (required) - var query_616238 = newJObject() - var formData_616239 = newJObject() - add(formData_616239, "SubnetId", newJString(SubnetId)) - add(formData_616239, "DryRun", newJBool(DryRun)) - add(query_616238, "Action", newJString(Action)) - add(query_616238, "Version", newJString(Version)) - result = call_616237.call(nil, query_616238, nil, formData_616239, nil) + var query_616240 = newJObject() + var formData_616241 = newJObject() + add(formData_616241, "SubnetId", newJString(SubnetId)) + add(formData_616241, "DryRun", newJBool(DryRun)) + add(query_616240, "Action", newJString(Action)) + add(query_616240, "Version", newJString(Version)) + result = call_616239.call(nil, query_616240, nil, formData_616241, nil) -var postDeleteSubnet* = Call_PostDeleteSubnet_616222(name: "postDeleteSubnet", +var postDeleteSubnet* = Call_PostDeleteSubnet_616224(name: "postDeleteSubnet", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", - route: "/#Action=DeleteSubnet", validator: validate_PostDeleteSubnet_616223, - base: "/", url: url_PostDeleteSubnet_616224, + route: "/#Action=DeleteSubnet", validator: validate_PostDeleteSubnet_616225, + base: "/", url: url_PostDeleteSubnet_616226, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteSubnet_616205 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteSubnet_616207(protocol: Scheme; host: string; base: string; + Call_GetDeleteSubnet_616207 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteSubnet_616209(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -42271,7 +42298,7 @@ proc url_GetDeleteSubnet_616207(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetDeleteSubnet_616206(path: JsonNode; query: JsonNode; +proc validate_GetDeleteSubnet_616208(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified subnet. You must terminate all running instances in the subnet before you can delete the subnet. @@ -42288,25 +42315,25 @@ proc validate_GetDeleteSubnet_616206(path: JsonNode; query: JsonNode; ## : The ID of the subnet. ## Version: JString (required) section = newJObject() - var valid_616208 = query.getOrDefault("DryRun") - valid_616208 = validateParameter(valid_616208, JBool, required = false, default = nil) - if valid_616208 != nil: - section.add "DryRun", valid_616208 - var valid_616209 = query.getOrDefault("Action") - valid_616209 = validateParameter(valid_616209, JString, required = true, - default = newJString("DeleteSubnet")) - if valid_616209 != nil: - section.add "Action", valid_616209 - var valid_616210 = query.getOrDefault("SubnetId") - valid_616210 = validateParameter(valid_616210, JString, required = true, - default = nil) + var valid_616210 = query.getOrDefault("DryRun") + valid_616210 = validateParameter(valid_616210, JBool, required = false, default = nil) if valid_616210 != nil: - section.add "SubnetId", valid_616210 - var valid_616211 = query.getOrDefault("Version") + section.add "DryRun", valid_616210 + var valid_616211 = query.getOrDefault("Action") valid_616211 = validateParameter(valid_616211, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("DeleteSubnet")) if valid_616211 != nil: - section.add "Version", valid_616211 + section.add "Action", valid_616211 + var valid_616212 = query.getOrDefault("SubnetId") + valid_616212 = validateParameter(valid_616212, JString, required = true, + default = nil) + if valid_616212 != nil: + section.add "SubnetId", valid_616212 + var valid_616213 = query.getOrDefault("Version") + valid_616213 = validateParameter(valid_616213, JString, required = true, + default = newJString("2016-11-15")) + if valid_616213 != nil: + section.add "Version", valid_616213 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -42317,61 +42344,61 @@ proc validate_GetDeleteSubnet_616206(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616212 = header.getOrDefault("X-Amz-Signature") - valid_616212 = validateParameter(valid_616212, JString, required = false, - default = nil) - if valid_616212 != nil: - section.add "X-Amz-Signature", valid_616212 - var valid_616213 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616213 = validateParameter(valid_616213, JString, required = false, - default = nil) - if valid_616213 != nil: - section.add "X-Amz-Content-Sha256", valid_616213 - var valid_616214 = header.getOrDefault("X-Amz-Date") + var valid_616214 = header.getOrDefault("X-Amz-Signature") valid_616214 = validateParameter(valid_616214, JString, required = false, default = nil) if valid_616214 != nil: - section.add "X-Amz-Date", valid_616214 - var valid_616215 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616214 + var valid_616215 = header.getOrDefault("X-Amz-Content-Sha256") valid_616215 = validateParameter(valid_616215, JString, required = false, default = nil) if valid_616215 != nil: - section.add "X-Amz-Credential", valid_616215 - var valid_616216 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616215 + var valid_616216 = header.getOrDefault("X-Amz-Date") valid_616216 = validateParameter(valid_616216, JString, required = false, default = nil) if valid_616216 != nil: - section.add "X-Amz-Security-Token", valid_616216 - var valid_616217 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616216 + var valid_616217 = header.getOrDefault("X-Amz-Credential") valid_616217 = validateParameter(valid_616217, JString, required = false, default = nil) if valid_616217 != nil: - section.add "X-Amz-Algorithm", valid_616217 - var valid_616218 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616217 + var valid_616218 = header.getOrDefault("X-Amz-Security-Token") valid_616218 = validateParameter(valid_616218, JString, required = false, default = nil) if valid_616218 != nil: - section.add "X-Amz-SignedHeaders", valid_616218 + section.add "X-Amz-Security-Token", valid_616218 + var valid_616219 = header.getOrDefault("X-Amz-Algorithm") + valid_616219 = validateParameter(valid_616219, JString, required = false, + default = nil) + if valid_616219 != nil: + section.add "X-Amz-Algorithm", valid_616219 + var valid_616220 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616220 = validateParameter(valid_616220, JString, required = false, + default = nil) + if valid_616220 != nil: + section.add "X-Amz-SignedHeaders", valid_616220 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616219: Call_GetDeleteSubnet_616205; path: JsonNode; query: JsonNode; +proc call*(call_616221: Call_GetDeleteSubnet_616207; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified subnet. You must terminate all running instances in the subnet before you can delete the subnet. ## - let valid = call_616219.validator(path, query, header, formData, body) - let scheme = call_616219.pickScheme + let valid = call_616221.validator(path, query, header, formData, body) + let scheme = call_616221.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616219.url(scheme.get, call_616219.host, call_616219.base, - call_616219.route, valid.getOrDefault("path"), + let url = call_616221.url(scheme.get, call_616221.host, call_616221.base, + call_616221.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616219, url, valid) + result = atozHook(call_616221, url, valid) -proc call*(call_616220: Call_GetDeleteSubnet_616205; SubnetId: string; +proc call*(call_616222: Call_GetDeleteSubnet_616207; SubnetId: string; DryRun: bool = false; Action: string = "DeleteSubnet"; Version: string = "2016-11-15"): Recallable = ## getDeleteSubnet @@ -42382,20 +42409,20 @@ proc call*(call_616220: Call_GetDeleteSubnet_616205; SubnetId: string; ## SubnetId: string (required) ## : The ID of the subnet. ## Version: string (required) - var query_616221 = newJObject() - add(query_616221, "DryRun", newJBool(DryRun)) - add(query_616221, "Action", newJString(Action)) - add(query_616221, "SubnetId", newJString(SubnetId)) - add(query_616221, "Version", newJString(Version)) - result = call_616220.call(nil, query_616221, nil, nil, nil) + var query_616223 = newJObject() + add(query_616223, "DryRun", newJBool(DryRun)) + add(query_616223, "Action", newJString(Action)) + add(query_616223, "SubnetId", newJString(SubnetId)) + add(query_616223, "Version", newJString(Version)) + result = call_616222.call(nil, query_616223, nil, nil, nil) -var getDeleteSubnet* = Call_GetDeleteSubnet_616205(name: "getDeleteSubnet", +var getDeleteSubnet* = Call_GetDeleteSubnet_616207(name: "getDeleteSubnet", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=DeleteSubnet", validator: validate_GetDeleteSubnet_616206, - base: "/", url: url_GetDeleteSubnet_616207, schemes: {Scheme.Https, Scheme.Http}) + route: "/#Action=DeleteSubnet", validator: validate_GetDeleteSubnet_616208, + base: "/", url: url_GetDeleteSubnet_616209, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteTags_616258 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteTags_616260(protocol: Scheme; host: string; base: string; + Call_PostDeleteTags_616260 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteTags_616262(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -42405,7 +42432,7 @@ proc url_PostDeleteTags_616260(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostDeleteTags_616259(path: JsonNode; query: JsonNode; +proc validate_PostDeleteTags_616261(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Deletes the specified set of tags from the specified set of resources.

To list the current tags, use DescribeTags. For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide.

@@ -42418,16 +42445,16 @@ proc validate_PostDeleteTags_616259(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616261 = query.getOrDefault("Action") - valid_616261 = validateParameter(valid_616261, JString, required = true, + var valid_616263 = query.getOrDefault("Action") + valid_616263 = validateParameter(valid_616263, JString, required = true, default = newJString("DeleteTags")) - if valid_616261 != nil: - section.add "Action", valid_616261 - var valid_616262 = query.getOrDefault("Version") - valid_616262 = validateParameter(valid_616262, JString, required = true, + if valid_616263 != nil: + section.add "Action", valid_616263 + var valid_616264 = query.getOrDefault("Version") + valid_616264 = validateParameter(valid_616264, JString, required = true, default = newJString("2016-11-15")) - if valid_616262 != nil: - section.add "Version", valid_616262 + if valid_616264 != nil: + section.add "Version", valid_616264 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -42438,41 +42465,41 @@ proc validate_PostDeleteTags_616259(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616263 = header.getOrDefault("X-Amz-Signature") - valid_616263 = validateParameter(valid_616263, JString, required = false, - default = nil) - if valid_616263 != nil: - section.add "X-Amz-Signature", valid_616263 - var valid_616264 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616264 = validateParameter(valid_616264, JString, required = false, - default = nil) - if valid_616264 != nil: - section.add "X-Amz-Content-Sha256", valid_616264 - var valid_616265 = header.getOrDefault("X-Amz-Date") + var valid_616265 = header.getOrDefault("X-Amz-Signature") valid_616265 = validateParameter(valid_616265, JString, required = false, default = nil) if valid_616265 != nil: - section.add "X-Amz-Date", valid_616265 - var valid_616266 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616265 + var valid_616266 = header.getOrDefault("X-Amz-Content-Sha256") valid_616266 = validateParameter(valid_616266, JString, required = false, default = nil) if valid_616266 != nil: - section.add "X-Amz-Credential", valid_616266 - var valid_616267 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616266 + var valid_616267 = header.getOrDefault("X-Amz-Date") valid_616267 = validateParameter(valid_616267, JString, required = false, default = nil) if valid_616267 != nil: - section.add "X-Amz-Security-Token", valid_616267 - var valid_616268 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616267 + var valid_616268 = header.getOrDefault("X-Amz-Credential") valid_616268 = validateParameter(valid_616268, JString, required = false, default = nil) if valid_616268 != nil: - section.add "X-Amz-Algorithm", valid_616268 - var valid_616269 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616268 + var valid_616269 = header.getOrDefault("X-Amz-Security-Token") valid_616269 = validateParameter(valid_616269, JString, required = false, default = nil) if valid_616269 != nil: - section.add "X-Amz-SignedHeaders", valid_616269 + section.add "X-Amz-Security-Token", valid_616269 + var valid_616270 = header.getOrDefault("X-Amz-Algorithm") + valid_616270 = validateParameter(valid_616270, JString, required = false, + default = nil) + if valid_616270 != nil: + section.add "X-Amz-Algorithm", valid_616270 + var valid_616271 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616271 = validateParameter(valid_616271, JString, required = false, + default = nil) + if valid_616271 != nil: + section.add "X-Amz-SignedHeaders", valid_616271 result.add "header", section ## parameters in `formData` object: ## ResourceId: JArray (required) @@ -42484,37 +42511,37 @@ proc validate_PostDeleteTags_616259(path: JsonNode; query: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `ResourceId` field" - var valid_616270 = formData.getOrDefault("ResourceId") - valid_616270 = validateParameter(valid_616270, JArray, required = true, default = nil) - if valid_616270 != nil: - section.add "ResourceId", valid_616270 - var valid_616271 = formData.getOrDefault("DryRun") - valid_616271 = validateParameter(valid_616271, JBool, required = false, default = nil) - if valid_616271 != nil: - section.add "DryRun", valid_616271 - var valid_616272 = formData.getOrDefault("Tag") - valid_616272 = validateParameter(valid_616272, JArray, required = false, - default = nil) + var valid_616272 = formData.getOrDefault("ResourceId") + valid_616272 = validateParameter(valid_616272, JArray, required = true, default = nil) if valid_616272 != nil: - section.add "Tag", valid_616272 + section.add "ResourceId", valid_616272 + var valid_616273 = formData.getOrDefault("DryRun") + valid_616273 = validateParameter(valid_616273, JBool, required = false, default = nil) + if valid_616273 != nil: + section.add "DryRun", valid_616273 + var valid_616274 = formData.getOrDefault("Tag") + valid_616274 = validateParameter(valid_616274, JArray, required = false, + default = nil) + if valid_616274 != nil: + section.add "Tag", valid_616274 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616273: Call_PostDeleteTags_616258; path: JsonNode; query: JsonNode; +proc call*(call_616275: Call_PostDeleteTags_616260; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Deletes the specified set of tags from the specified set of resources.

To list the current tags, use DescribeTags. For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_616273.validator(path, query, header, formData, body) - let scheme = call_616273.pickScheme + let valid = call_616275.validator(path, query, header, formData, body) + let scheme = call_616275.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616273.url(scheme.get, call_616273.host, call_616273.base, - call_616273.route, valid.getOrDefault("path"), + let url = call_616275.url(scheme.get, call_616275.host, call_616275.base, + call_616275.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616273, url, valid) + result = atozHook(call_616275, url, valid) -proc call*(call_616274: Call_PostDeleteTags_616258; ResourceId: JsonNode; +proc call*(call_616276: Call_PostDeleteTags_616260; ResourceId: JsonNode; DryRun: bool = false; Action: string = "DeleteTags"; Version: string = "2016-11-15"; Tag: JsonNode = nil): Recallable = ## postDeleteTags @@ -42527,24 +42554,24 @@ proc call*(call_616274: Call_PostDeleteTags_616258; ResourceId: JsonNode; ## Version: string (required) ## Tag: JArray ## :

The tags to delete. Specify a tag key and an optional tag value to delete specific tags. If you specify a tag key without a tag value, we delete any tag with this key regardless of its value. If you specify a tag key with an empty string as the tag value, we delete the tag only if its value is an empty string.

If you omit this parameter, we delete all user-defined tags for the specified resources. We do not delete AWS-generated tags (tags that have the aws: prefix).

- var query_616275 = newJObject() - var formData_616276 = newJObject() + var query_616277 = newJObject() + var formData_616278 = newJObject() if ResourceId != nil: - formData_616276.add "ResourceId", ResourceId - add(formData_616276, "DryRun", newJBool(DryRun)) - add(query_616275, "Action", newJString(Action)) - add(query_616275, "Version", newJString(Version)) + formData_616278.add "ResourceId", ResourceId + add(formData_616278, "DryRun", newJBool(DryRun)) + add(query_616277, "Action", newJString(Action)) + add(query_616277, "Version", newJString(Version)) if Tag != nil: - formData_616276.add "Tag", Tag - result = call_616274.call(nil, query_616275, nil, formData_616276, nil) + formData_616278.add "Tag", Tag + result = call_616276.call(nil, query_616277, nil, formData_616278, nil) -var postDeleteTags* = Call_PostDeleteTags_616258(name: "postDeleteTags", +var postDeleteTags* = Call_PostDeleteTags_616260(name: "postDeleteTags", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", - route: "/#Action=DeleteTags", validator: validate_PostDeleteTags_616259, - base: "/", url: url_PostDeleteTags_616260, schemes: {Scheme.Https, Scheme.Http}) + route: "/#Action=DeleteTags", validator: validate_PostDeleteTags_616261, + base: "/", url: url_PostDeleteTags_616262, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteTags_616240 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteTags_616242(protocol: Scheme; host: string; base: string; + Call_GetDeleteTags_616242 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteTags_616244(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -42554,7 +42581,7 @@ proc url_GetDeleteTags_616242(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetDeleteTags_616241(path: JsonNode; query: JsonNode; header: JsonNode; +proc validate_GetDeleteTags_616243(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Deletes the specified set of tags from the specified set of resources.

To list the current tags, use DescribeTags. For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide.

## @@ -42572,31 +42599,31 @@ proc validate_GetDeleteTags_616241(path: JsonNode; query: JsonNode; header: Json ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616243 = query.getOrDefault("DryRun") - valid_616243 = validateParameter(valid_616243, JBool, required = false, default = nil) - if valid_616243 != nil: - section.add "DryRun", valid_616243 - var valid_616244 = query.getOrDefault("Tag") - valid_616244 = validateParameter(valid_616244, JArray, required = false, + var valid_616245 = query.getOrDefault("DryRun") + valid_616245 = validateParameter(valid_616245, JBool, required = false, default = nil) + if valid_616245 != nil: + section.add "DryRun", valid_616245 + var valid_616246 = query.getOrDefault("Tag") + valid_616246 = validateParameter(valid_616246, JArray, required = false, default = nil) - if valid_616244 != nil: - section.add "Tag", valid_616244 + if valid_616246 != nil: + section.add "Tag", valid_616246 assert query != nil, "query argument is necessary due to required `ResourceId` field" - var valid_616245 = query.getOrDefault("ResourceId") - valid_616245 = validateParameter(valid_616245, JArray, required = true, default = nil) - if valid_616245 != nil: - section.add "ResourceId", valid_616245 - var valid_616246 = query.getOrDefault("Action") - valid_616246 = validateParameter(valid_616246, JString, required = true, + var valid_616247 = query.getOrDefault("ResourceId") + valid_616247 = validateParameter(valid_616247, JArray, required = true, default = nil) + if valid_616247 != nil: + section.add "ResourceId", valid_616247 + var valid_616248 = query.getOrDefault("Action") + valid_616248 = validateParameter(valid_616248, JString, required = true, default = newJString("DeleteTags")) - if valid_616246 != nil: - section.add "Action", valid_616246 - var valid_616247 = query.getOrDefault("Version") - valid_616247 = validateParameter(valid_616247, JString, required = true, + if valid_616248 != nil: + section.add "Action", valid_616248 + var valid_616249 = query.getOrDefault("Version") + valid_616249 = validateParameter(valid_616249, JString, required = true, default = newJString("2016-11-15")) - if valid_616247 != nil: - section.add "Version", valid_616247 + if valid_616249 != nil: + section.add "Version", valid_616249 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -42607,61 +42634,61 @@ proc validate_GetDeleteTags_616241(path: JsonNode; query: JsonNode; header: Json ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616248 = header.getOrDefault("X-Amz-Signature") - valid_616248 = validateParameter(valid_616248, JString, required = false, - default = nil) - if valid_616248 != nil: - section.add "X-Amz-Signature", valid_616248 - var valid_616249 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616249 = validateParameter(valid_616249, JString, required = false, - default = nil) - if valid_616249 != nil: - section.add "X-Amz-Content-Sha256", valid_616249 - var valid_616250 = header.getOrDefault("X-Amz-Date") + var valid_616250 = header.getOrDefault("X-Amz-Signature") valid_616250 = validateParameter(valid_616250, JString, required = false, default = nil) if valid_616250 != nil: - section.add "X-Amz-Date", valid_616250 - var valid_616251 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616250 + var valid_616251 = header.getOrDefault("X-Amz-Content-Sha256") valid_616251 = validateParameter(valid_616251, JString, required = false, default = nil) if valid_616251 != nil: - section.add "X-Amz-Credential", valid_616251 - var valid_616252 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616251 + var valid_616252 = header.getOrDefault("X-Amz-Date") valid_616252 = validateParameter(valid_616252, JString, required = false, default = nil) if valid_616252 != nil: - section.add "X-Amz-Security-Token", valid_616252 - var valid_616253 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616252 + var valid_616253 = header.getOrDefault("X-Amz-Credential") valid_616253 = validateParameter(valid_616253, JString, required = false, default = nil) if valid_616253 != nil: - section.add "X-Amz-Algorithm", valid_616253 - var valid_616254 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616253 + var valid_616254 = header.getOrDefault("X-Amz-Security-Token") valid_616254 = validateParameter(valid_616254, JString, required = false, default = nil) if valid_616254 != nil: - section.add "X-Amz-SignedHeaders", valid_616254 + section.add "X-Amz-Security-Token", valid_616254 + var valid_616255 = header.getOrDefault("X-Amz-Algorithm") + valid_616255 = validateParameter(valid_616255, JString, required = false, + default = nil) + if valid_616255 != nil: + section.add "X-Amz-Algorithm", valid_616255 + var valid_616256 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616256 = validateParameter(valid_616256, JString, required = false, + default = nil) + if valid_616256 != nil: + section.add "X-Amz-SignedHeaders", valid_616256 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616255: Call_GetDeleteTags_616240; path: JsonNode; query: JsonNode; +proc call*(call_616257: Call_GetDeleteTags_616242; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Deletes the specified set of tags from the specified set of resources.

To list the current tags, use DescribeTags. For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_616255.validator(path, query, header, formData, body) - let scheme = call_616255.pickScheme + let valid = call_616257.validator(path, query, header, formData, body) + let scheme = call_616257.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616255.url(scheme.get, call_616255.host, call_616255.base, - call_616255.route, valid.getOrDefault("path"), + let url = call_616257.url(scheme.get, call_616257.host, call_616257.base, + call_616257.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616255, url, valid) + result = atozHook(call_616257, url, valid) -proc call*(call_616256: Call_GetDeleteTags_616240; ResourceId: JsonNode; +proc call*(call_616258: Call_GetDeleteTags_616242; ResourceId: JsonNode; DryRun: bool = false; Tag: JsonNode = nil; Action: string = "DeleteTags"; Version: string = "2016-11-15"): Recallable = ## getDeleteTags @@ -42674,23 +42701,23 @@ proc call*(call_616256: Call_GetDeleteTags_616240; ResourceId: JsonNode; ## :

The IDs of the resources, separated by spaces.

Constraints: Up to 1000 resource IDs. We recommend breaking up this request into smaller batches.

## Action: string (required) ## Version: string (required) - var query_616257 = newJObject() - add(query_616257, "DryRun", newJBool(DryRun)) + var query_616259 = newJObject() + add(query_616259, "DryRun", newJBool(DryRun)) if Tag != nil: - query_616257.add "Tag", Tag + query_616259.add "Tag", Tag if ResourceId != nil: - query_616257.add "ResourceId", ResourceId - add(query_616257, "Action", newJString(Action)) - add(query_616257, "Version", newJString(Version)) - result = call_616256.call(nil, query_616257, nil, nil, nil) + query_616259.add "ResourceId", ResourceId + add(query_616259, "Action", newJString(Action)) + add(query_616259, "Version", newJString(Version)) + result = call_616258.call(nil, query_616259, nil, nil, nil) -var getDeleteTags* = Call_GetDeleteTags_616240(name: "getDeleteTags", +var getDeleteTags* = Call_GetDeleteTags_616242(name: "getDeleteTags", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=DeleteTags", validator: validate_GetDeleteTags_616241, - base: "/", url: url_GetDeleteTags_616242, schemes: {Scheme.Https, Scheme.Http}) + route: "/#Action=DeleteTags", validator: validate_GetDeleteTags_616243, + base: "/", url: url_GetDeleteTags_616244, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteTrafficMirrorFilter_616294 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteTrafficMirrorFilter_616296(protocol: Scheme; host: string; + Call_PostDeleteTrafficMirrorFilter_616296 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteTrafficMirrorFilter_616298(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -42700,7 +42727,7 @@ proc url_PostDeleteTrafficMirrorFilter_616296(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDeleteTrafficMirrorFilter_616295(path: JsonNode; query: JsonNode; +proc validate_PostDeleteTrafficMirrorFilter_616297(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Deletes the specified Traffic Mirror filter.

You cannot delete a Traffic Mirror filter that is in use by a Traffic Mirror session.

## @@ -42712,16 +42739,16 @@ proc validate_PostDeleteTrafficMirrorFilter_616295(path: JsonNode; query: JsonNo ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616297 = query.getOrDefault("Action") - valid_616297 = validateParameter(valid_616297, JString, required = true, default = newJString( + var valid_616299 = query.getOrDefault("Action") + valid_616299 = validateParameter(valid_616299, JString, required = true, default = newJString( "DeleteTrafficMirrorFilter")) - if valid_616297 != nil: - section.add "Action", valid_616297 - var valid_616298 = query.getOrDefault("Version") - valid_616298 = validateParameter(valid_616298, JString, required = true, + if valid_616299 != nil: + section.add "Action", valid_616299 + var valid_616300 = query.getOrDefault("Version") + valid_616300 = validateParameter(valid_616300, JString, required = true, default = newJString("2016-11-15")) - if valid_616298 != nil: - section.add "Version", valid_616298 + if valid_616300 != nil: + section.add "Version", valid_616300 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -42732,41 +42759,41 @@ proc validate_PostDeleteTrafficMirrorFilter_616295(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616299 = header.getOrDefault("X-Amz-Signature") - valid_616299 = validateParameter(valid_616299, JString, required = false, - default = nil) - if valid_616299 != nil: - section.add "X-Amz-Signature", valid_616299 - var valid_616300 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616300 = validateParameter(valid_616300, JString, required = false, - default = nil) - if valid_616300 != nil: - section.add "X-Amz-Content-Sha256", valid_616300 - var valid_616301 = header.getOrDefault("X-Amz-Date") + var valid_616301 = header.getOrDefault("X-Amz-Signature") valid_616301 = validateParameter(valid_616301, JString, required = false, default = nil) if valid_616301 != nil: - section.add "X-Amz-Date", valid_616301 - var valid_616302 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616301 + var valid_616302 = header.getOrDefault("X-Amz-Content-Sha256") valid_616302 = validateParameter(valid_616302, JString, required = false, default = nil) if valid_616302 != nil: - section.add "X-Amz-Credential", valid_616302 - var valid_616303 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616302 + var valid_616303 = header.getOrDefault("X-Amz-Date") valid_616303 = validateParameter(valid_616303, JString, required = false, default = nil) if valid_616303 != nil: - section.add "X-Amz-Security-Token", valid_616303 - var valid_616304 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616303 + var valid_616304 = header.getOrDefault("X-Amz-Credential") valid_616304 = validateParameter(valid_616304, JString, required = false, default = nil) if valid_616304 != nil: - section.add "X-Amz-Algorithm", valid_616304 - var valid_616305 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616304 + var valid_616305 = header.getOrDefault("X-Amz-Security-Token") valid_616305 = validateParameter(valid_616305, JString, required = false, default = nil) if valid_616305 != nil: - section.add "X-Amz-SignedHeaders", valid_616305 + section.add "X-Amz-Security-Token", valid_616305 + var valid_616306 = header.getOrDefault("X-Amz-Algorithm") + valid_616306 = validateParameter(valid_616306, JString, required = false, + default = nil) + if valid_616306 != nil: + section.add "X-Amz-Algorithm", valid_616306 + var valid_616307 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616307 = validateParameter(valid_616307, JString, required = false, + default = nil) + if valid_616307 != nil: + section.add "X-Amz-SignedHeaders", valid_616307 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -42774,34 +42801,34 @@ proc validate_PostDeleteTrafficMirrorFilter_616295(path: JsonNode; query: JsonNo ## TrafficMirrorFilterId: JString (required) ## : The ID of the Traffic Mirror filter. section = newJObject() - var valid_616306 = formData.getOrDefault("DryRun") - valid_616306 = validateParameter(valid_616306, JBool, required = false, default = nil) - if valid_616306 != nil: - section.add "DryRun", valid_616306 + var valid_616308 = formData.getOrDefault("DryRun") + valid_616308 = validateParameter(valid_616308, JBool, required = false, default = nil) + if valid_616308 != nil: + section.add "DryRun", valid_616308 assert formData != nil, "formData argument is necessary due to required `TrafficMirrorFilterId` field" - var valid_616307 = formData.getOrDefault("TrafficMirrorFilterId") - valid_616307 = validateParameter(valid_616307, JString, required = true, + var valid_616309 = formData.getOrDefault("TrafficMirrorFilterId") + valid_616309 = validateParameter(valid_616309, JString, required = true, default = nil) - if valid_616307 != nil: - section.add "TrafficMirrorFilterId", valid_616307 + if valid_616309 != nil: + section.add "TrafficMirrorFilterId", valid_616309 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616308: Call_PostDeleteTrafficMirrorFilter_616294; path: JsonNode; +proc call*(call_616310: Call_PostDeleteTrafficMirrorFilter_616296; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Deletes the specified Traffic Mirror filter.

You cannot delete a Traffic Mirror filter that is in use by a Traffic Mirror session.

## - let valid = call_616308.validator(path, query, header, formData, body) - let scheme = call_616308.pickScheme + let valid = call_616310.validator(path, query, header, formData, body) + let scheme = call_616310.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616308.url(scheme.get, call_616308.host, call_616308.base, - call_616308.route, valid.getOrDefault("path"), + let url = call_616310.url(scheme.get, call_616310.host, call_616310.base, + call_616310.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616308, url, valid) + result = atozHook(call_616310, url, valid) -proc call*(call_616309: Call_PostDeleteTrafficMirrorFilter_616294; +proc call*(call_616311: Call_PostDeleteTrafficMirrorFilter_616296; TrafficMirrorFilterId: string; DryRun: bool = false; Action: string = "DeleteTrafficMirrorFilter"; Version: string = "2016-11-15"): Recallable = @@ -42813,23 +42840,23 @@ proc call*(call_616309: Call_PostDeleteTrafficMirrorFilter_616294; ## Version: string (required) ## TrafficMirrorFilterId: string (required) ## : The ID of the Traffic Mirror filter. - var query_616310 = newJObject() - var formData_616311 = newJObject() - add(formData_616311, "DryRun", newJBool(DryRun)) - add(query_616310, "Action", newJString(Action)) - add(query_616310, "Version", newJString(Version)) - add(formData_616311, "TrafficMirrorFilterId", newJString(TrafficMirrorFilterId)) - result = call_616309.call(nil, query_616310, nil, formData_616311, nil) - -var postDeleteTrafficMirrorFilter* = Call_PostDeleteTrafficMirrorFilter_616294( + var query_616312 = newJObject() + var formData_616313 = newJObject() + add(formData_616313, "DryRun", newJBool(DryRun)) + add(query_616312, "Action", newJString(Action)) + add(query_616312, "Version", newJString(Version)) + add(formData_616313, "TrafficMirrorFilterId", newJString(TrafficMirrorFilterId)) + result = call_616311.call(nil, query_616312, nil, formData_616313, nil) + +var postDeleteTrafficMirrorFilter* = Call_PostDeleteTrafficMirrorFilter_616296( name: "postDeleteTrafficMirrorFilter", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteTrafficMirrorFilter", - validator: validate_PostDeleteTrafficMirrorFilter_616295, base: "/", - url: url_PostDeleteTrafficMirrorFilter_616296, + validator: validate_PostDeleteTrafficMirrorFilter_616297, base: "/", + url: url_PostDeleteTrafficMirrorFilter_616298, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteTrafficMirrorFilter_616277 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteTrafficMirrorFilter_616279(protocol: Scheme; host: string; + Call_GetDeleteTrafficMirrorFilter_616279 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteTrafficMirrorFilter_616281(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -42839,7 +42866,7 @@ proc url_GetDeleteTrafficMirrorFilter_616279(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDeleteTrafficMirrorFilter_616278(path: JsonNode; query: JsonNode; +proc validate_GetDeleteTrafficMirrorFilter_616280(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Deletes the specified Traffic Mirror filter.

You cannot delete a Traffic Mirror filter that is in use by a Traffic Mirror session.

## @@ -42855,26 +42882,26 @@ proc validate_GetDeleteTrafficMirrorFilter_616278(path: JsonNode; query: JsonNod ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616280 = query.getOrDefault("DryRun") - valid_616280 = validateParameter(valid_616280, JBool, required = false, default = nil) - if valid_616280 != nil: - section.add "DryRun", valid_616280 + var valid_616282 = query.getOrDefault("DryRun") + valid_616282 = validateParameter(valid_616282, JBool, required = false, default = nil) + if valid_616282 != nil: + section.add "DryRun", valid_616282 assert query != nil, "query argument is necessary due to required `TrafficMirrorFilterId` field" - var valid_616281 = query.getOrDefault("TrafficMirrorFilterId") - valid_616281 = validateParameter(valid_616281, JString, required = true, + var valid_616283 = query.getOrDefault("TrafficMirrorFilterId") + valid_616283 = validateParameter(valid_616283, JString, required = true, default = nil) - if valid_616281 != nil: - section.add "TrafficMirrorFilterId", valid_616281 - var valid_616282 = query.getOrDefault("Action") - valid_616282 = validateParameter(valid_616282, JString, required = true, default = newJString( + if valid_616283 != nil: + section.add "TrafficMirrorFilterId", valid_616283 + var valid_616284 = query.getOrDefault("Action") + valid_616284 = validateParameter(valid_616284, JString, required = true, default = newJString( "DeleteTrafficMirrorFilter")) - if valid_616282 != nil: - section.add "Action", valid_616282 - var valid_616283 = query.getOrDefault("Version") - valid_616283 = validateParameter(valid_616283, JString, required = true, + if valid_616284 != nil: + section.add "Action", valid_616284 + var valid_616285 = query.getOrDefault("Version") + valid_616285 = validateParameter(valid_616285, JString, required = true, default = newJString("2016-11-15")) - if valid_616283 != nil: - section.add "Version", valid_616283 + if valid_616285 != nil: + section.add "Version", valid_616285 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -42885,61 +42912,61 @@ proc validate_GetDeleteTrafficMirrorFilter_616278(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616284 = header.getOrDefault("X-Amz-Signature") - valid_616284 = validateParameter(valid_616284, JString, required = false, - default = nil) - if valid_616284 != nil: - section.add "X-Amz-Signature", valid_616284 - var valid_616285 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616285 = validateParameter(valid_616285, JString, required = false, - default = nil) - if valid_616285 != nil: - section.add "X-Amz-Content-Sha256", valid_616285 - var valid_616286 = header.getOrDefault("X-Amz-Date") + var valid_616286 = header.getOrDefault("X-Amz-Signature") valid_616286 = validateParameter(valid_616286, JString, required = false, default = nil) if valid_616286 != nil: - section.add "X-Amz-Date", valid_616286 - var valid_616287 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616286 + var valid_616287 = header.getOrDefault("X-Amz-Content-Sha256") valid_616287 = validateParameter(valid_616287, JString, required = false, default = nil) if valid_616287 != nil: - section.add "X-Amz-Credential", valid_616287 - var valid_616288 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616287 + var valid_616288 = header.getOrDefault("X-Amz-Date") valid_616288 = validateParameter(valid_616288, JString, required = false, default = nil) if valid_616288 != nil: - section.add "X-Amz-Security-Token", valid_616288 - var valid_616289 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616288 + var valid_616289 = header.getOrDefault("X-Amz-Credential") valid_616289 = validateParameter(valid_616289, JString, required = false, default = nil) if valid_616289 != nil: - section.add "X-Amz-Algorithm", valid_616289 - var valid_616290 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616289 + var valid_616290 = header.getOrDefault("X-Amz-Security-Token") valid_616290 = validateParameter(valid_616290, JString, required = false, default = nil) if valid_616290 != nil: - section.add "X-Amz-SignedHeaders", valid_616290 + section.add "X-Amz-Security-Token", valid_616290 + var valid_616291 = header.getOrDefault("X-Amz-Algorithm") + valid_616291 = validateParameter(valid_616291, JString, required = false, + default = nil) + if valid_616291 != nil: + section.add "X-Amz-Algorithm", valid_616291 + var valid_616292 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616292 = validateParameter(valid_616292, JString, required = false, + default = nil) + if valid_616292 != nil: + section.add "X-Amz-SignedHeaders", valid_616292 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616291: Call_GetDeleteTrafficMirrorFilter_616277; path: JsonNode; +proc call*(call_616293: Call_GetDeleteTrafficMirrorFilter_616279; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Deletes the specified Traffic Mirror filter.

You cannot delete a Traffic Mirror filter that is in use by a Traffic Mirror session.

## - let valid = call_616291.validator(path, query, header, formData, body) - let scheme = call_616291.pickScheme + let valid = call_616293.validator(path, query, header, formData, body) + let scheme = call_616293.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616291.url(scheme.get, call_616291.host, call_616291.base, - call_616291.route, valid.getOrDefault("path"), + let url = call_616293.url(scheme.get, call_616293.host, call_616293.base, + call_616293.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616291, url, valid) + result = atozHook(call_616293, url, valid) -proc call*(call_616292: Call_GetDeleteTrafficMirrorFilter_616277; +proc call*(call_616294: Call_GetDeleteTrafficMirrorFilter_616279; TrafficMirrorFilterId: string; DryRun: bool = false; Action: string = "DeleteTrafficMirrorFilter"; Version: string = "2016-11-15"): Recallable = @@ -42951,22 +42978,22 @@ proc call*(call_616292: Call_GetDeleteTrafficMirrorFilter_616277; ## : The ID of the Traffic Mirror filter. ## Action: string (required) ## Version: string (required) - var query_616293 = newJObject() - add(query_616293, "DryRun", newJBool(DryRun)) - add(query_616293, "TrafficMirrorFilterId", newJString(TrafficMirrorFilterId)) - add(query_616293, "Action", newJString(Action)) - add(query_616293, "Version", newJString(Version)) - result = call_616292.call(nil, query_616293, nil, nil, nil) + var query_616295 = newJObject() + add(query_616295, "DryRun", newJBool(DryRun)) + add(query_616295, "TrafficMirrorFilterId", newJString(TrafficMirrorFilterId)) + add(query_616295, "Action", newJString(Action)) + add(query_616295, "Version", newJString(Version)) + result = call_616294.call(nil, query_616295, nil, nil, nil) -var getDeleteTrafficMirrorFilter* = Call_GetDeleteTrafficMirrorFilter_616277( +var getDeleteTrafficMirrorFilter* = Call_GetDeleteTrafficMirrorFilter_616279( name: "getDeleteTrafficMirrorFilter", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteTrafficMirrorFilter", - validator: validate_GetDeleteTrafficMirrorFilter_616278, base: "/", - url: url_GetDeleteTrafficMirrorFilter_616279, + validator: validate_GetDeleteTrafficMirrorFilter_616280, base: "/", + url: url_GetDeleteTrafficMirrorFilter_616281, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteTrafficMirrorFilterRule_616329 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteTrafficMirrorFilterRule_616331(protocol: Scheme; host: string; + Call_PostDeleteTrafficMirrorFilterRule_616331 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteTrafficMirrorFilterRule_616333(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -42976,7 +43003,7 @@ proc url_PostDeleteTrafficMirrorFilterRule_616331(protocol: Scheme; host: string else: result.path = base & route -proc validate_PostDeleteTrafficMirrorFilterRule_616330(path: JsonNode; +proc validate_PostDeleteTrafficMirrorFilterRule_616332(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified Traffic Mirror rule. ## @@ -42988,16 +43015,16 @@ proc validate_PostDeleteTrafficMirrorFilterRule_616330(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616332 = query.getOrDefault("Action") - valid_616332 = validateParameter(valid_616332, JString, required = true, default = newJString( + var valid_616334 = query.getOrDefault("Action") + valid_616334 = validateParameter(valid_616334, JString, required = true, default = newJString( "DeleteTrafficMirrorFilterRule")) - if valid_616332 != nil: - section.add "Action", valid_616332 - var valid_616333 = query.getOrDefault("Version") - valid_616333 = validateParameter(valid_616333, JString, required = true, + if valid_616334 != nil: + section.add "Action", valid_616334 + var valid_616335 = query.getOrDefault("Version") + valid_616335 = validateParameter(valid_616335, JString, required = true, default = newJString("2016-11-15")) - if valid_616333 != nil: - section.add "Version", valid_616333 + if valid_616335 != nil: + section.add "Version", valid_616335 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -43008,41 +43035,41 @@ proc validate_PostDeleteTrafficMirrorFilterRule_616330(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616334 = header.getOrDefault("X-Amz-Signature") - valid_616334 = validateParameter(valid_616334, JString, required = false, - default = nil) - if valid_616334 != nil: - section.add "X-Amz-Signature", valid_616334 - var valid_616335 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616335 = validateParameter(valid_616335, JString, required = false, - default = nil) - if valid_616335 != nil: - section.add "X-Amz-Content-Sha256", valid_616335 - var valid_616336 = header.getOrDefault("X-Amz-Date") + var valid_616336 = header.getOrDefault("X-Amz-Signature") valid_616336 = validateParameter(valid_616336, JString, required = false, default = nil) if valid_616336 != nil: - section.add "X-Amz-Date", valid_616336 - var valid_616337 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616336 + var valid_616337 = header.getOrDefault("X-Amz-Content-Sha256") valid_616337 = validateParameter(valid_616337, JString, required = false, default = nil) if valid_616337 != nil: - section.add "X-Amz-Credential", valid_616337 - var valid_616338 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616337 + var valid_616338 = header.getOrDefault("X-Amz-Date") valid_616338 = validateParameter(valid_616338, JString, required = false, default = nil) if valid_616338 != nil: - section.add "X-Amz-Security-Token", valid_616338 - var valid_616339 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616338 + var valid_616339 = header.getOrDefault("X-Amz-Credential") valid_616339 = validateParameter(valid_616339, JString, required = false, default = nil) if valid_616339 != nil: - section.add "X-Amz-Algorithm", valid_616339 - var valid_616340 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616339 + var valid_616340 = header.getOrDefault("X-Amz-Security-Token") valid_616340 = validateParameter(valid_616340, JString, required = false, default = nil) if valid_616340 != nil: - section.add "X-Amz-SignedHeaders", valid_616340 + section.add "X-Amz-Security-Token", valid_616340 + var valid_616341 = header.getOrDefault("X-Amz-Algorithm") + valid_616341 = validateParameter(valid_616341, JString, required = false, + default = nil) + if valid_616341 != nil: + section.add "X-Amz-Algorithm", valid_616341 + var valid_616342 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616342 = validateParameter(valid_616342, JString, required = false, + default = nil) + if valid_616342 != nil: + section.add "X-Amz-SignedHeaders", valid_616342 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -43050,35 +43077,35 @@ proc validate_PostDeleteTrafficMirrorFilterRule_616330(path: JsonNode; ## TrafficMirrorFilterRuleId: JString (required) ## : The ID of the Traffic Mirror rule. section = newJObject() - var valid_616341 = formData.getOrDefault("DryRun") - valid_616341 = validateParameter(valid_616341, JBool, required = false, default = nil) - if valid_616341 != nil: - section.add "DryRun", valid_616341 + var valid_616343 = formData.getOrDefault("DryRun") + valid_616343 = validateParameter(valid_616343, JBool, required = false, default = nil) + if valid_616343 != nil: + section.add "DryRun", valid_616343 assert formData != nil, "formData argument is necessary due to required `TrafficMirrorFilterRuleId` field" - var valid_616342 = formData.getOrDefault("TrafficMirrorFilterRuleId") - valid_616342 = validateParameter(valid_616342, JString, required = true, + var valid_616344 = formData.getOrDefault("TrafficMirrorFilterRuleId") + valid_616344 = validateParameter(valid_616344, JString, required = true, default = nil) - if valid_616342 != nil: - section.add "TrafficMirrorFilterRuleId", valid_616342 + if valid_616344 != nil: + section.add "TrafficMirrorFilterRuleId", valid_616344 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616343: Call_PostDeleteTrafficMirrorFilterRule_616329; +proc call*(call_616345: Call_PostDeleteTrafficMirrorFilterRule_616331; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified Traffic Mirror rule. ## - let valid = call_616343.validator(path, query, header, formData, body) - let scheme = call_616343.pickScheme + let valid = call_616345.validator(path, query, header, formData, body) + let scheme = call_616345.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616343.url(scheme.get, call_616343.host, call_616343.base, - call_616343.route, valid.getOrDefault("path"), + let url = call_616345.url(scheme.get, call_616345.host, call_616345.base, + call_616345.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616343, url, valid) + result = atozHook(call_616345, url, valid) -proc call*(call_616344: Call_PostDeleteTrafficMirrorFilterRule_616329; +proc call*(call_616346: Call_PostDeleteTrafficMirrorFilterRule_616331; TrafficMirrorFilterRuleId: string; DryRun: bool = false; Action: string = "DeleteTrafficMirrorFilterRule"; Version: string = "2016-11-15"): Recallable = @@ -43090,24 +43117,24 @@ proc call*(call_616344: Call_PostDeleteTrafficMirrorFilterRule_616329; ## TrafficMirrorFilterRuleId: string (required) ## : The ID of the Traffic Mirror rule. ## Version: string (required) - var query_616345 = newJObject() - var formData_616346 = newJObject() - add(formData_616346, "DryRun", newJBool(DryRun)) - add(query_616345, "Action", newJString(Action)) - add(formData_616346, "TrafficMirrorFilterRuleId", + var query_616347 = newJObject() + var formData_616348 = newJObject() + add(formData_616348, "DryRun", newJBool(DryRun)) + add(query_616347, "Action", newJString(Action)) + add(formData_616348, "TrafficMirrorFilterRuleId", newJString(TrafficMirrorFilterRuleId)) - add(query_616345, "Version", newJString(Version)) - result = call_616344.call(nil, query_616345, nil, formData_616346, nil) + add(query_616347, "Version", newJString(Version)) + result = call_616346.call(nil, query_616347, nil, formData_616348, nil) -var postDeleteTrafficMirrorFilterRule* = Call_PostDeleteTrafficMirrorFilterRule_616329( +var postDeleteTrafficMirrorFilterRule* = Call_PostDeleteTrafficMirrorFilterRule_616331( name: "postDeleteTrafficMirrorFilterRule", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteTrafficMirrorFilterRule", - validator: validate_PostDeleteTrafficMirrorFilterRule_616330, base: "/", - url: url_PostDeleteTrafficMirrorFilterRule_616331, + validator: validate_PostDeleteTrafficMirrorFilterRule_616332, base: "/", + url: url_PostDeleteTrafficMirrorFilterRule_616333, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteTrafficMirrorFilterRule_616312 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteTrafficMirrorFilterRule_616314(protocol: Scheme; host: string; + Call_GetDeleteTrafficMirrorFilterRule_616314 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteTrafficMirrorFilterRule_616316(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -43117,7 +43144,7 @@ proc url_GetDeleteTrafficMirrorFilterRule_616314(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDeleteTrafficMirrorFilterRule_616313(path: JsonNode; +proc validate_GetDeleteTrafficMirrorFilterRule_616315(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified Traffic Mirror rule. ## @@ -43134,25 +43161,25 @@ proc validate_GetDeleteTrafficMirrorFilterRule_616313(path: JsonNode; ## Version: JString (required) section = newJObject() assert query != nil, "query argument is necessary due to required `TrafficMirrorFilterRuleId` field" - var valid_616315 = query.getOrDefault("TrafficMirrorFilterRuleId") - valid_616315 = validateParameter(valid_616315, JString, required = true, - default = nil) - if valid_616315 != nil: - section.add "TrafficMirrorFilterRuleId", valid_616315 - var valid_616316 = query.getOrDefault("DryRun") - valid_616316 = validateParameter(valid_616316, JBool, required = false, default = nil) - if valid_616316 != nil: - section.add "DryRun", valid_616316 - var valid_616317 = query.getOrDefault("Action") - valid_616317 = validateParameter(valid_616317, JString, required = true, default = newJString( - "DeleteTrafficMirrorFilterRule")) + var valid_616317 = query.getOrDefault("TrafficMirrorFilterRuleId") + valid_616317 = validateParameter(valid_616317, JString, required = true, + default = nil) if valid_616317 != nil: - section.add "Action", valid_616317 - var valid_616318 = query.getOrDefault("Version") - valid_616318 = validateParameter(valid_616318, JString, required = true, - default = newJString("2016-11-15")) + section.add "TrafficMirrorFilterRuleId", valid_616317 + var valid_616318 = query.getOrDefault("DryRun") + valid_616318 = validateParameter(valid_616318, JBool, required = false, default = nil) if valid_616318 != nil: - section.add "Version", valid_616318 + section.add "DryRun", valid_616318 + var valid_616319 = query.getOrDefault("Action") + valid_616319 = validateParameter(valid_616319, JString, required = true, default = newJString( + "DeleteTrafficMirrorFilterRule")) + if valid_616319 != nil: + section.add "Action", valid_616319 + var valid_616320 = query.getOrDefault("Version") + valid_616320 = validateParameter(valid_616320, JString, required = true, + default = newJString("2016-11-15")) + if valid_616320 != nil: + section.add "Version", valid_616320 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -43163,62 +43190,62 @@ proc validate_GetDeleteTrafficMirrorFilterRule_616313(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616319 = header.getOrDefault("X-Amz-Signature") - valid_616319 = validateParameter(valid_616319, JString, required = false, - default = nil) - if valid_616319 != nil: - section.add "X-Amz-Signature", valid_616319 - var valid_616320 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616320 = validateParameter(valid_616320, JString, required = false, - default = nil) - if valid_616320 != nil: - section.add "X-Amz-Content-Sha256", valid_616320 - var valid_616321 = header.getOrDefault("X-Amz-Date") + var valid_616321 = header.getOrDefault("X-Amz-Signature") valid_616321 = validateParameter(valid_616321, JString, required = false, default = nil) if valid_616321 != nil: - section.add "X-Amz-Date", valid_616321 - var valid_616322 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616321 + var valid_616322 = header.getOrDefault("X-Amz-Content-Sha256") valid_616322 = validateParameter(valid_616322, JString, required = false, default = nil) if valid_616322 != nil: - section.add "X-Amz-Credential", valid_616322 - var valid_616323 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616322 + var valid_616323 = header.getOrDefault("X-Amz-Date") valid_616323 = validateParameter(valid_616323, JString, required = false, default = nil) if valid_616323 != nil: - section.add "X-Amz-Security-Token", valid_616323 - var valid_616324 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616323 + var valid_616324 = header.getOrDefault("X-Amz-Credential") valid_616324 = validateParameter(valid_616324, JString, required = false, default = nil) if valid_616324 != nil: - section.add "X-Amz-Algorithm", valid_616324 - var valid_616325 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616324 + var valid_616325 = header.getOrDefault("X-Amz-Security-Token") valid_616325 = validateParameter(valid_616325, JString, required = false, default = nil) if valid_616325 != nil: - section.add "X-Amz-SignedHeaders", valid_616325 + section.add "X-Amz-Security-Token", valid_616325 + var valid_616326 = header.getOrDefault("X-Amz-Algorithm") + valid_616326 = validateParameter(valid_616326, JString, required = false, + default = nil) + if valid_616326 != nil: + section.add "X-Amz-Algorithm", valid_616326 + var valid_616327 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616327 = validateParameter(valid_616327, JString, required = false, + default = nil) + if valid_616327 != nil: + section.add "X-Amz-SignedHeaders", valid_616327 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616326: Call_GetDeleteTrafficMirrorFilterRule_616312; +proc call*(call_616328: Call_GetDeleteTrafficMirrorFilterRule_616314; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified Traffic Mirror rule. ## - let valid = call_616326.validator(path, query, header, formData, body) - let scheme = call_616326.pickScheme + let valid = call_616328.validator(path, query, header, formData, body) + let scheme = call_616328.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616326.url(scheme.get, call_616326.host, call_616326.base, - call_616326.route, valid.getOrDefault("path"), + let url = call_616328.url(scheme.get, call_616328.host, call_616328.base, + call_616328.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616326, url, valid) + result = atozHook(call_616328, url, valid) -proc call*(call_616327: Call_GetDeleteTrafficMirrorFilterRule_616312; +proc call*(call_616329: Call_GetDeleteTrafficMirrorFilterRule_616314; TrafficMirrorFilterRuleId: string; DryRun: bool = false; Action: string = "DeleteTrafficMirrorFilterRule"; Version: string = "2016-11-15"): Recallable = @@ -43230,23 +43257,23 @@ proc call*(call_616327: Call_GetDeleteTrafficMirrorFilterRule_616312; ## : 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. ## Action: string (required) ## Version: string (required) - var query_616328 = newJObject() - add(query_616328, "TrafficMirrorFilterRuleId", + var query_616330 = newJObject() + add(query_616330, "TrafficMirrorFilterRuleId", newJString(TrafficMirrorFilterRuleId)) - add(query_616328, "DryRun", newJBool(DryRun)) - add(query_616328, "Action", newJString(Action)) - add(query_616328, "Version", newJString(Version)) - result = call_616327.call(nil, query_616328, nil, nil, nil) + add(query_616330, "DryRun", newJBool(DryRun)) + add(query_616330, "Action", newJString(Action)) + add(query_616330, "Version", newJString(Version)) + result = call_616329.call(nil, query_616330, nil, nil, nil) -var getDeleteTrafficMirrorFilterRule* = Call_GetDeleteTrafficMirrorFilterRule_616312( +var getDeleteTrafficMirrorFilterRule* = Call_GetDeleteTrafficMirrorFilterRule_616314( name: "getDeleteTrafficMirrorFilterRule", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteTrafficMirrorFilterRule", - validator: validate_GetDeleteTrafficMirrorFilterRule_616313, base: "/", - url: url_GetDeleteTrafficMirrorFilterRule_616314, + validator: validate_GetDeleteTrafficMirrorFilterRule_616315, base: "/", + url: url_GetDeleteTrafficMirrorFilterRule_616316, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteTrafficMirrorSession_616364 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteTrafficMirrorSession_616366(protocol: Scheme; host: string; + Call_PostDeleteTrafficMirrorSession_616366 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteTrafficMirrorSession_616368(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -43256,7 +43283,7 @@ proc url_PostDeleteTrafficMirrorSession_616366(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDeleteTrafficMirrorSession_616365(path: JsonNode; +proc validate_PostDeleteTrafficMirrorSession_616367(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified Traffic Mirror session. ## @@ -43268,16 +43295,16 @@ proc validate_PostDeleteTrafficMirrorSession_616365(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616367 = query.getOrDefault("Action") - valid_616367 = validateParameter(valid_616367, JString, required = true, default = newJString( + var valid_616369 = query.getOrDefault("Action") + valid_616369 = validateParameter(valid_616369, JString, required = true, default = newJString( "DeleteTrafficMirrorSession")) - if valid_616367 != nil: - section.add "Action", valid_616367 - var valid_616368 = query.getOrDefault("Version") - valid_616368 = validateParameter(valid_616368, JString, required = true, + if valid_616369 != nil: + section.add "Action", valid_616369 + var valid_616370 = query.getOrDefault("Version") + valid_616370 = validateParameter(valid_616370, JString, required = true, default = newJString("2016-11-15")) - if valid_616368 != nil: - section.add "Version", valid_616368 + if valid_616370 != nil: + section.add "Version", valid_616370 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -43288,41 +43315,41 @@ proc validate_PostDeleteTrafficMirrorSession_616365(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616369 = header.getOrDefault("X-Amz-Signature") - valid_616369 = validateParameter(valid_616369, JString, required = false, - default = nil) - if valid_616369 != nil: - section.add "X-Amz-Signature", valid_616369 - var valid_616370 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616370 = validateParameter(valid_616370, JString, required = false, - default = nil) - if valid_616370 != nil: - section.add "X-Amz-Content-Sha256", valid_616370 - var valid_616371 = header.getOrDefault("X-Amz-Date") + var valid_616371 = header.getOrDefault("X-Amz-Signature") valid_616371 = validateParameter(valid_616371, JString, required = false, default = nil) if valid_616371 != nil: - section.add "X-Amz-Date", valid_616371 - var valid_616372 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616371 + var valid_616372 = header.getOrDefault("X-Amz-Content-Sha256") valid_616372 = validateParameter(valid_616372, JString, required = false, default = nil) if valid_616372 != nil: - section.add "X-Amz-Credential", valid_616372 - var valid_616373 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616372 + var valid_616373 = header.getOrDefault("X-Amz-Date") valid_616373 = validateParameter(valid_616373, JString, required = false, default = nil) if valid_616373 != nil: - section.add "X-Amz-Security-Token", valid_616373 - var valid_616374 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616373 + var valid_616374 = header.getOrDefault("X-Amz-Credential") valid_616374 = validateParameter(valid_616374, JString, required = false, default = nil) if valid_616374 != nil: - section.add "X-Amz-Algorithm", valid_616374 - var valid_616375 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616374 + var valid_616375 = header.getOrDefault("X-Amz-Security-Token") valid_616375 = validateParameter(valid_616375, JString, required = false, default = nil) if valid_616375 != nil: - section.add "X-Amz-SignedHeaders", valid_616375 + section.add "X-Amz-Security-Token", valid_616375 + var valid_616376 = header.getOrDefault("X-Amz-Algorithm") + valid_616376 = validateParameter(valid_616376, JString, required = false, + default = nil) + if valid_616376 != nil: + section.add "X-Amz-Algorithm", valid_616376 + var valid_616377 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616377 = validateParameter(valid_616377, JString, required = false, + default = nil) + if valid_616377 != nil: + section.add "X-Amz-SignedHeaders", valid_616377 result.add "header", section ## parameters in `formData` object: ## TrafficMirrorSessionId: JString (required) @@ -43331,33 +43358,33 @@ proc validate_PostDeleteTrafficMirrorSession_616365(path: JsonNode; ## : 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. section = newJObject() assert formData != nil, "formData argument is necessary due to required `TrafficMirrorSessionId` field" - var valid_616376 = formData.getOrDefault("TrafficMirrorSessionId") - valid_616376 = validateParameter(valid_616376, JString, required = true, + var valid_616378 = formData.getOrDefault("TrafficMirrorSessionId") + valid_616378 = validateParameter(valid_616378, JString, required = true, default = nil) - if valid_616376 != nil: - section.add "TrafficMirrorSessionId", valid_616376 - var valid_616377 = formData.getOrDefault("DryRun") - valid_616377 = validateParameter(valid_616377, JBool, required = false, default = nil) - if valid_616377 != nil: - section.add "DryRun", valid_616377 + if valid_616378 != nil: + section.add "TrafficMirrorSessionId", valid_616378 + var valid_616379 = formData.getOrDefault("DryRun") + valid_616379 = validateParameter(valid_616379, JBool, required = false, default = nil) + if valid_616379 != nil: + section.add "DryRun", valid_616379 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616378: Call_PostDeleteTrafficMirrorSession_616364; path: JsonNode; +proc call*(call_616380: Call_PostDeleteTrafficMirrorSession_616366; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified Traffic Mirror session. ## - let valid = call_616378.validator(path, query, header, formData, body) - let scheme = call_616378.pickScheme + let valid = call_616380.validator(path, query, header, formData, body) + let scheme = call_616380.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616378.url(scheme.get, call_616378.host, call_616378.base, - call_616378.route, valid.getOrDefault("path"), + let url = call_616380.url(scheme.get, call_616380.host, call_616380.base, + call_616380.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616378, url, valid) + result = atozHook(call_616380, url, valid) -proc call*(call_616379: Call_PostDeleteTrafficMirrorSession_616364; +proc call*(call_616381: Call_PostDeleteTrafficMirrorSession_616366; TrafficMirrorSessionId: string; DryRun: bool = false; Action: string = "DeleteTrafficMirrorSession"; Version: string = "2016-11-15"): Recallable = @@ -43369,24 +43396,24 @@ proc call*(call_616379: Call_PostDeleteTrafficMirrorSession_616364; ## : 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. ## Action: string (required) ## Version: string (required) - var query_616380 = newJObject() - var formData_616381 = newJObject() - add(formData_616381, "TrafficMirrorSessionId", + var query_616382 = newJObject() + var formData_616383 = newJObject() + add(formData_616383, "TrafficMirrorSessionId", newJString(TrafficMirrorSessionId)) - add(formData_616381, "DryRun", newJBool(DryRun)) - add(query_616380, "Action", newJString(Action)) - add(query_616380, "Version", newJString(Version)) - result = call_616379.call(nil, query_616380, nil, formData_616381, nil) + add(formData_616383, "DryRun", newJBool(DryRun)) + add(query_616382, "Action", newJString(Action)) + add(query_616382, "Version", newJString(Version)) + result = call_616381.call(nil, query_616382, nil, formData_616383, nil) -var postDeleteTrafficMirrorSession* = Call_PostDeleteTrafficMirrorSession_616364( +var postDeleteTrafficMirrorSession* = Call_PostDeleteTrafficMirrorSession_616366( name: "postDeleteTrafficMirrorSession", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteTrafficMirrorSession", - validator: validate_PostDeleteTrafficMirrorSession_616365, base: "/", - url: url_PostDeleteTrafficMirrorSession_616366, + validator: validate_PostDeleteTrafficMirrorSession_616367, base: "/", + url: url_PostDeleteTrafficMirrorSession_616368, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteTrafficMirrorSession_616347 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteTrafficMirrorSession_616349(protocol: Scheme; host: string; + Call_GetDeleteTrafficMirrorSession_616349 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteTrafficMirrorSession_616351(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -43396,7 +43423,7 @@ proc url_GetDeleteTrafficMirrorSession_616349(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDeleteTrafficMirrorSession_616348(path: JsonNode; query: JsonNode; +proc validate_GetDeleteTrafficMirrorSession_616350(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified Traffic Mirror session. ## @@ -43412,25 +43439,25 @@ proc validate_GetDeleteTrafficMirrorSession_616348(path: JsonNode; query: JsonNo ## TrafficMirrorSessionId: JString (required) ## : The ID of the Traffic Mirror session. section = newJObject() - var valid_616350 = query.getOrDefault("DryRun") - valid_616350 = validateParameter(valid_616350, JBool, required = false, default = nil) - if valid_616350 != nil: - section.add "DryRun", valid_616350 - var valid_616351 = query.getOrDefault("Action") - valid_616351 = validateParameter(valid_616351, JString, required = true, default = newJString( + var valid_616352 = query.getOrDefault("DryRun") + valid_616352 = validateParameter(valid_616352, JBool, required = false, default = nil) + if valid_616352 != nil: + section.add "DryRun", valid_616352 + var valid_616353 = query.getOrDefault("Action") + valid_616353 = validateParameter(valid_616353, JString, required = true, default = newJString( "DeleteTrafficMirrorSession")) - if valid_616351 != nil: - section.add "Action", valid_616351 - var valid_616352 = query.getOrDefault("Version") - valid_616352 = validateParameter(valid_616352, JString, required = true, + if valid_616353 != nil: + section.add "Action", valid_616353 + var valid_616354 = query.getOrDefault("Version") + valid_616354 = validateParameter(valid_616354, JString, required = true, default = newJString("2016-11-15")) - if valid_616352 != nil: - section.add "Version", valid_616352 - var valid_616353 = query.getOrDefault("TrafficMirrorSessionId") - valid_616353 = validateParameter(valid_616353, JString, required = true, + if valid_616354 != nil: + section.add "Version", valid_616354 + var valid_616355 = query.getOrDefault("TrafficMirrorSessionId") + valid_616355 = validateParameter(valid_616355, JString, required = true, default = nil) - if valid_616353 != nil: - section.add "TrafficMirrorSessionId", valid_616353 + if valid_616355 != nil: + section.add "TrafficMirrorSessionId", valid_616355 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -43441,61 +43468,61 @@ proc validate_GetDeleteTrafficMirrorSession_616348(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616354 = header.getOrDefault("X-Amz-Signature") - valid_616354 = validateParameter(valid_616354, JString, required = false, - default = nil) - if valid_616354 != nil: - section.add "X-Amz-Signature", valid_616354 - var valid_616355 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616355 = validateParameter(valid_616355, JString, required = false, - default = nil) - if valid_616355 != nil: - section.add "X-Amz-Content-Sha256", valid_616355 - var valid_616356 = header.getOrDefault("X-Amz-Date") + var valid_616356 = header.getOrDefault("X-Amz-Signature") valid_616356 = validateParameter(valid_616356, JString, required = false, default = nil) if valid_616356 != nil: - section.add "X-Amz-Date", valid_616356 - var valid_616357 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616356 + var valid_616357 = header.getOrDefault("X-Amz-Content-Sha256") valid_616357 = validateParameter(valid_616357, JString, required = false, default = nil) if valid_616357 != nil: - section.add "X-Amz-Credential", valid_616357 - var valid_616358 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616357 + var valid_616358 = header.getOrDefault("X-Amz-Date") valid_616358 = validateParameter(valid_616358, JString, required = false, default = nil) if valid_616358 != nil: - section.add "X-Amz-Security-Token", valid_616358 - var valid_616359 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616358 + var valid_616359 = header.getOrDefault("X-Amz-Credential") valid_616359 = validateParameter(valid_616359, JString, required = false, default = nil) if valid_616359 != nil: - section.add "X-Amz-Algorithm", valid_616359 - var valid_616360 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616359 + var valid_616360 = header.getOrDefault("X-Amz-Security-Token") valid_616360 = validateParameter(valid_616360, JString, required = false, default = nil) if valid_616360 != nil: - section.add "X-Amz-SignedHeaders", valid_616360 + section.add "X-Amz-Security-Token", valid_616360 + var valid_616361 = header.getOrDefault("X-Amz-Algorithm") + valid_616361 = validateParameter(valid_616361, JString, required = false, + default = nil) + if valid_616361 != nil: + section.add "X-Amz-Algorithm", valid_616361 + var valid_616362 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616362 = validateParameter(valid_616362, JString, required = false, + default = nil) + if valid_616362 != nil: + section.add "X-Amz-SignedHeaders", valid_616362 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616361: Call_GetDeleteTrafficMirrorSession_616347; path: JsonNode; +proc call*(call_616363: Call_GetDeleteTrafficMirrorSession_616349; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified Traffic Mirror session. ## - let valid = call_616361.validator(path, query, header, formData, body) - let scheme = call_616361.pickScheme + let valid = call_616363.validator(path, query, header, formData, body) + let scheme = call_616363.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616361.url(scheme.get, call_616361.host, call_616361.base, - call_616361.route, valid.getOrDefault("path"), + let url = call_616363.url(scheme.get, call_616363.host, call_616363.base, + call_616363.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616361, url, valid) + result = atozHook(call_616363, url, valid) -proc call*(call_616362: Call_GetDeleteTrafficMirrorSession_616347; +proc call*(call_616364: Call_GetDeleteTrafficMirrorSession_616349; TrafficMirrorSessionId: string; DryRun: bool = false; Action: string = "DeleteTrafficMirrorSession"; Version: string = "2016-11-15"): Recallable = @@ -43507,22 +43534,22 @@ proc call*(call_616362: Call_GetDeleteTrafficMirrorSession_616347; ## Version: string (required) ## TrafficMirrorSessionId: string (required) ## : The ID of the Traffic Mirror session. - var query_616363 = newJObject() - add(query_616363, "DryRun", newJBool(DryRun)) - add(query_616363, "Action", newJString(Action)) - add(query_616363, "Version", newJString(Version)) - add(query_616363, "TrafficMirrorSessionId", newJString(TrafficMirrorSessionId)) - result = call_616362.call(nil, query_616363, nil, nil, nil) - -var getDeleteTrafficMirrorSession* = Call_GetDeleteTrafficMirrorSession_616347( + var query_616365 = newJObject() + add(query_616365, "DryRun", newJBool(DryRun)) + add(query_616365, "Action", newJString(Action)) + add(query_616365, "Version", newJString(Version)) + add(query_616365, "TrafficMirrorSessionId", newJString(TrafficMirrorSessionId)) + result = call_616364.call(nil, query_616365, nil, nil, nil) + +var getDeleteTrafficMirrorSession* = Call_GetDeleteTrafficMirrorSession_616349( name: "getDeleteTrafficMirrorSession", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteTrafficMirrorSession", - validator: validate_GetDeleteTrafficMirrorSession_616348, base: "/", - url: url_GetDeleteTrafficMirrorSession_616349, + validator: validate_GetDeleteTrafficMirrorSession_616350, base: "/", + url: url_GetDeleteTrafficMirrorSession_616351, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteTrafficMirrorTarget_616399 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteTrafficMirrorTarget_616401(protocol: Scheme; host: string; + Call_PostDeleteTrafficMirrorTarget_616401 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteTrafficMirrorTarget_616403(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -43532,7 +43559,7 @@ proc url_PostDeleteTrafficMirrorTarget_616401(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDeleteTrafficMirrorTarget_616400(path: JsonNode; query: JsonNode; +proc validate_PostDeleteTrafficMirrorTarget_616402(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Deletes the specified Traffic Mirror target.

You cannot delete a Traffic Mirror target that is in use by a Traffic Mirror session.

## @@ -43544,16 +43571,16 @@ proc validate_PostDeleteTrafficMirrorTarget_616400(path: JsonNode; query: JsonNo ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616402 = query.getOrDefault("Action") - valid_616402 = validateParameter(valid_616402, JString, required = true, default = newJString( + var valid_616404 = query.getOrDefault("Action") + valid_616404 = validateParameter(valid_616404, JString, required = true, default = newJString( "DeleteTrafficMirrorTarget")) - if valid_616402 != nil: - section.add "Action", valid_616402 - var valid_616403 = query.getOrDefault("Version") - valid_616403 = validateParameter(valid_616403, JString, required = true, + if valid_616404 != nil: + section.add "Action", valid_616404 + var valid_616405 = query.getOrDefault("Version") + valid_616405 = validateParameter(valid_616405, JString, required = true, default = newJString("2016-11-15")) - if valid_616403 != nil: - section.add "Version", valid_616403 + if valid_616405 != nil: + section.add "Version", valid_616405 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -43564,41 +43591,41 @@ proc validate_PostDeleteTrafficMirrorTarget_616400(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616404 = header.getOrDefault("X-Amz-Signature") - valid_616404 = validateParameter(valid_616404, JString, required = false, - default = nil) - if valid_616404 != nil: - section.add "X-Amz-Signature", valid_616404 - var valid_616405 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616405 = validateParameter(valid_616405, JString, required = false, - default = nil) - if valid_616405 != nil: - section.add "X-Amz-Content-Sha256", valid_616405 - var valid_616406 = header.getOrDefault("X-Amz-Date") + var valid_616406 = header.getOrDefault("X-Amz-Signature") valid_616406 = validateParameter(valid_616406, JString, required = false, default = nil) if valid_616406 != nil: - section.add "X-Amz-Date", valid_616406 - var valid_616407 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616406 + var valid_616407 = header.getOrDefault("X-Amz-Content-Sha256") valid_616407 = validateParameter(valid_616407, JString, required = false, default = nil) if valid_616407 != nil: - section.add "X-Amz-Credential", valid_616407 - var valid_616408 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616407 + var valid_616408 = header.getOrDefault("X-Amz-Date") valid_616408 = validateParameter(valid_616408, JString, required = false, default = nil) if valid_616408 != nil: - section.add "X-Amz-Security-Token", valid_616408 - var valid_616409 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616408 + var valid_616409 = header.getOrDefault("X-Amz-Credential") valid_616409 = validateParameter(valid_616409, JString, required = false, default = nil) if valid_616409 != nil: - section.add "X-Amz-Algorithm", valid_616409 - var valid_616410 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616409 + var valid_616410 = header.getOrDefault("X-Amz-Security-Token") valid_616410 = validateParameter(valid_616410, JString, required = false, default = nil) if valid_616410 != nil: - section.add "X-Amz-SignedHeaders", valid_616410 + section.add "X-Amz-Security-Token", valid_616410 + var valid_616411 = header.getOrDefault("X-Amz-Algorithm") + valid_616411 = validateParameter(valid_616411, JString, required = false, + default = nil) + if valid_616411 != nil: + section.add "X-Amz-Algorithm", valid_616411 + var valid_616412 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616412 = validateParameter(valid_616412, JString, required = false, + default = nil) + if valid_616412 != nil: + section.add "X-Amz-SignedHeaders", valid_616412 result.add "header", section ## parameters in `formData` object: ## TrafficMirrorTargetId: JString (required) @@ -43607,33 +43634,33 @@ proc validate_PostDeleteTrafficMirrorTarget_616400(path: JsonNode; query: JsonNo ## : 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. section = newJObject() assert formData != nil, "formData argument is necessary due to required `TrafficMirrorTargetId` field" - var valid_616411 = formData.getOrDefault("TrafficMirrorTargetId") - valid_616411 = validateParameter(valid_616411, JString, required = true, + var valid_616413 = formData.getOrDefault("TrafficMirrorTargetId") + valid_616413 = validateParameter(valid_616413, JString, required = true, default = nil) - if valid_616411 != nil: - section.add "TrafficMirrorTargetId", valid_616411 - var valid_616412 = formData.getOrDefault("DryRun") - valid_616412 = validateParameter(valid_616412, JBool, required = false, default = nil) - if valid_616412 != nil: - section.add "DryRun", valid_616412 + if valid_616413 != nil: + section.add "TrafficMirrorTargetId", valid_616413 + var valid_616414 = formData.getOrDefault("DryRun") + valid_616414 = validateParameter(valid_616414, JBool, required = false, default = nil) + if valid_616414 != nil: + section.add "DryRun", valid_616414 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616413: Call_PostDeleteTrafficMirrorTarget_616399; path: JsonNode; +proc call*(call_616415: Call_PostDeleteTrafficMirrorTarget_616401; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Deletes the specified Traffic Mirror target.

You cannot delete a Traffic Mirror target that is in use by a Traffic Mirror session.

## - let valid = call_616413.validator(path, query, header, formData, body) - let scheme = call_616413.pickScheme + let valid = call_616415.validator(path, query, header, formData, body) + let scheme = call_616415.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616413.url(scheme.get, call_616413.host, call_616413.base, - call_616413.route, valid.getOrDefault("path"), + let url = call_616415.url(scheme.get, call_616415.host, call_616415.base, + call_616415.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616413, url, valid) + result = atozHook(call_616415, url, valid) -proc call*(call_616414: Call_PostDeleteTrafficMirrorTarget_616399; +proc call*(call_616416: Call_PostDeleteTrafficMirrorTarget_616401; TrafficMirrorTargetId: string; DryRun: bool = false; Action: string = "DeleteTrafficMirrorTarget"; Version: string = "2016-11-15"): Recallable = @@ -43645,23 +43672,23 @@ proc call*(call_616414: Call_PostDeleteTrafficMirrorTarget_616399; ## : 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. ## Action: string (required) ## Version: string (required) - var query_616415 = newJObject() - var formData_616416 = newJObject() - add(formData_616416, "TrafficMirrorTargetId", newJString(TrafficMirrorTargetId)) - add(formData_616416, "DryRun", newJBool(DryRun)) - add(query_616415, "Action", newJString(Action)) - add(query_616415, "Version", newJString(Version)) - result = call_616414.call(nil, query_616415, nil, formData_616416, nil) + var query_616417 = newJObject() + var formData_616418 = newJObject() + add(formData_616418, "TrafficMirrorTargetId", newJString(TrafficMirrorTargetId)) + add(formData_616418, "DryRun", newJBool(DryRun)) + add(query_616417, "Action", newJString(Action)) + add(query_616417, "Version", newJString(Version)) + result = call_616416.call(nil, query_616417, nil, formData_616418, nil) -var postDeleteTrafficMirrorTarget* = Call_PostDeleteTrafficMirrorTarget_616399( +var postDeleteTrafficMirrorTarget* = Call_PostDeleteTrafficMirrorTarget_616401( name: "postDeleteTrafficMirrorTarget", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteTrafficMirrorTarget", - validator: validate_PostDeleteTrafficMirrorTarget_616400, base: "/", - url: url_PostDeleteTrafficMirrorTarget_616401, + validator: validate_PostDeleteTrafficMirrorTarget_616402, base: "/", + url: url_PostDeleteTrafficMirrorTarget_616403, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteTrafficMirrorTarget_616382 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteTrafficMirrorTarget_616384(protocol: Scheme; host: string; + Call_GetDeleteTrafficMirrorTarget_616384 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteTrafficMirrorTarget_616386(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -43671,7 +43698,7 @@ proc url_GetDeleteTrafficMirrorTarget_616384(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDeleteTrafficMirrorTarget_616383(path: JsonNode; query: JsonNode; +proc validate_GetDeleteTrafficMirrorTarget_616385(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Deletes the specified Traffic Mirror target.

You cannot delete a Traffic Mirror target that is in use by a Traffic Mirror session.

## @@ -43688,25 +43715,25 @@ proc validate_GetDeleteTrafficMirrorTarget_616383(path: JsonNode; query: JsonNod ## Version: JString (required) section = newJObject() assert query != nil, "query argument is necessary due to required `TrafficMirrorTargetId` field" - var valid_616385 = query.getOrDefault("TrafficMirrorTargetId") - valid_616385 = validateParameter(valid_616385, JString, required = true, - default = nil) - if valid_616385 != nil: - section.add "TrafficMirrorTargetId", valid_616385 - var valid_616386 = query.getOrDefault("DryRun") - valid_616386 = validateParameter(valid_616386, JBool, required = false, default = nil) - if valid_616386 != nil: - section.add "DryRun", valid_616386 - var valid_616387 = query.getOrDefault("Action") - valid_616387 = validateParameter(valid_616387, JString, required = true, default = newJString( - "DeleteTrafficMirrorTarget")) + var valid_616387 = query.getOrDefault("TrafficMirrorTargetId") + valid_616387 = validateParameter(valid_616387, JString, required = true, + default = nil) if valid_616387 != nil: - section.add "Action", valid_616387 - var valid_616388 = query.getOrDefault("Version") - valid_616388 = validateParameter(valid_616388, JString, required = true, - default = newJString("2016-11-15")) + section.add "TrafficMirrorTargetId", valid_616387 + var valid_616388 = query.getOrDefault("DryRun") + valid_616388 = validateParameter(valid_616388, JBool, required = false, default = nil) if valid_616388 != nil: - section.add "Version", valid_616388 + section.add "DryRun", valid_616388 + var valid_616389 = query.getOrDefault("Action") + valid_616389 = validateParameter(valid_616389, JString, required = true, default = newJString( + "DeleteTrafficMirrorTarget")) + if valid_616389 != nil: + section.add "Action", valid_616389 + var valid_616390 = query.getOrDefault("Version") + valid_616390 = validateParameter(valid_616390, JString, required = true, + default = newJString("2016-11-15")) + if valid_616390 != nil: + section.add "Version", valid_616390 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -43717,61 +43744,61 @@ proc validate_GetDeleteTrafficMirrorTarget_616383(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616389 = header.getOrDefault("X-Amz-Signature") - valid_616389 = validateParameter(valid_616389, JString, required = false, - default = nil) - if valid_616389 != nil: - section.add "X-Amz-Signature", valid_616389 - var valid_616390 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616390 = validateParameter(valid_616390, JString, required = false, - default = nil) - if valid_616390 != nil: - section.add "X-Amz-Content-Sha256", valid_616390 - var valid_616391 = header.getOrDefault("X-Amz-Date") + var valid_616391 = header.getOrDefault("X-Amz-Signature") valid_616391 = validateParameter(valid_616391, JString, required = false, default = nil) if valid_616391 != nil: - section.add "X-Amz-Date", valid_616391 - var valid_616392 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616391 + var valid_616392 = header.getOrDefault("X-Amz-Content-Sha256") valid_616392 = validateParameter(valid_616392, JString, required = false, default = nil) if valid_616392 != nil: - section.add "X-Amz-Credential", valid_616392 - var valid_616393 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616392 + var valid_616393 = header.getOrDefault("X-Amz-Date") valid_616393 = validateParameter(valid_616393, JString, required = false, default = nil) if valid_616393 != nil: - section.add "X-Amz-Security-Token", valid_616393 - var valid_616394 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616393 + var valid_616394 = header.getOrDefault("X-Amz-Credential") valid_616394 = validateParameter(valid_616394, JString, required = false, default = nil) if valid_616394 != nil: - section.add "X-Amz-Algorithm", valid_616394 - var valid_616395 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616394 + var valid_616395 = header.getOrDefault("X-Amz-Security-Token") valid_616395 = validateParameter(valid_616395, JString, required = false, default = nil) if valid_616395 != nil: - section.add "X-Amz-SignedHeaders", valid_616395 + section.add "X-Amz-Security-Token", valid_616395 + var valid_616396 = header.getOrDefault("X-Amz-Algorithm") + valid_616396 = validateParameter(valid_616396, JString, required = false, + default = nil) + if valid_616396 != nil: + section.add "X-Amz-Algorithm", valid_616396 + var valid_616397 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616397 = validateParameter(valid_616397, JString, required = false, + default = nil) + if valid_616397 != nil: + section.add "X-Amz-SignedHeaders", valid_616397 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616396: Call_GetDeleteTrafficMirrorTarget_616382; path: JsonNode; +proc call*(call_616398: Call_GetDeleteTrafficMirrorTarget_616384; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Deletes the specified Traffic Mirror target.

You cannot delete a Traffic Mirror target that is in use by a Traffic Mirror session.

## - let valid = call_616396.validator(path, query, header, formData, body) - let scheme = call_616396.pickScheme + let valid = call_616398.validator(path, query, header, formData, body) + let scheme = call_616398.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616396.url(scheme.get, call_616396.host, call_616396.base, - call_616396.route, valid.getOrDefault("path"), + let url = call_616398.url(scheme.get, call_616398.host, call_616398.base, + call_616398.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616396, url, valid) + result = atozHook(call_616398, url, valid) -proc call*(call_616397: Call_GetDeleteTrafficMirrorTarget_616382; +proc call*(call_616399: Call_GetDeleteTrafficMirrorTarget_616384; TrafficMirrorTargetId: string; DryRun: bool = false; Action: string = "DeleteTrafficMirrorTarget"; Version: string = "2016-11-15"): Recallable = @@ -43783,22 +43810,22 @@ proc call*(call_616397: Call_GetDeleteTrafficMirrorTarget_616382; ## : 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. ## Action: string (required) ## Version: string (required) - var query_616398 = newJObject() - add(query_616398, "TrafficMirrorTargetId", newJString(TrafficMirrorTargetId)) - add(query_616398, "DryRun", newJBool(DryRun)) - add(query_616398, "Action", newJString(Action)) - add(query_616398, "Version", newJString(Version)) - result = call_616397.call(nil, query_616398, nil, nil, nil) + var query_616400 = newJObject() + add(query_616400, "TrafficMirrorTargetId", newJString(TrafficMirrorTargetId)) + add(query_616400, "DryRun", newJBool(DryRun)) + add(query_616400, "Action", newJString(Action)) + add(query_616400, "Version", newJString(Version)) + result = call_616399.call(nil, query_616400, nil, nil, nil) -var getDeleteTrafficMirrorTarget* = Call_GetDeleteTrafficMirrorTarget_616382( +var getDeleteTrafficMirrorTarget* = Call_GetDeleteTrafficMirrorTarget_616384( name: "getDeleteTrafficMirrorTarget", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteTrafficMirrorTarget", - validator: validate_GetDeleteTrafficMirrorTarget_616383, base: "/", - url: url_GetDeleteTrafficMirrorTarget_616384, + validator: validate_GetDeleteTrafficMirrorTarget_616385, base: "/", + url: url_GetDeleteTrafficMirrorTarget_616386, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteTransitGateway_616434 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteTransitGateway_616436(protocol: Scheme; host: string; + Call_PostDeleteTransitGateway_616436 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteTransitGateway_616438(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -43809,7 +43836,7 @@ proc url_PostDeleteTransitGateway_616436(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDeleteTransitGateway_616435(path: JsonNode; query: JsonNode; +proc validate_PostDeleteTransitGateway_616437(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified transit gateway. ## @@ -43821,16 +43848,16 @@ proc validate_PostDeleteTransitGateway_616435(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616437 = query.getOrDefault("Action") - valid_616437 = validateParameter(valid_616437, JString, required = true, + var valid_616439 = query.getOrDefault("Action") + valid_616439 = validateParameter(valid_616439, JString, required = true, default = newJString("DeleteTransitGateway")) - if valid_616437 != nil: - section.add "Action", valid_616437 - var valid_616438 = query.getOrDefault("Version") - valid_616438 = validateParameter(valid_616438, JString, required = true, + if valid_616439 != nil: + section.add "Action", valid_616439 + var valid_616440 = query.getOrDefault("Version") + valid_616440 = validateParameter(valid_616440, JString, required = true, default = newJString("2016-11-15")) - if valid_616438 != nil: - section.add "Version", valid_616438 + if valid_616440 != nil: + section.add "Version", valid_616440 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -43841,41 +43868,41 @@ proc validate_PostDeleteTransitGateway_616435(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616439 = header.getOrDefault("X-Amz-Signature") - valid_616439 = validateParameter(valid_616439, JString, required = false, - default = nil) - if valid_616439 != nil: - section.add "X-Amz-Signature", valid_616439 - var valid_616440 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616440 = validateParameter(valid_616440, JString, required = false, - default = nil) - if valid_616440 != nil: - section.add "X-Amz-Content-Sha256", valid_616440 - var valid_616441 = header.getOrDefault("X-Amz-Date") + var valid_616441 = header.getOrDefault("X-Amz-Signature") valid_616441 = validateParameter(valid_616441, JString, required = false, default = nil) if valid_616441 != nil: - section.add "X-Amz-Date", valid_616441 - var valid_616442 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616441 + var valid_616442 = header.getOrDefault("X-Amz-Content-Sha256") valid_616442 = validateParameter(valid_616442, JString, required = false, default = nil) if valid_616442 != nil: - section.add "X-Amz-Credential", valid_616442 - var valid_616443 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616442 + var valid_616443 = header.getOrDefault("X-Amz-Date") valid_616443 = validateParameter(valid_616443, JString, required = false, default = nil) if valid_616443 != nil: - section.add "X-Amz-Security-Token", valid_616443 - var valid_616444 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616443 + var valid_616444 = header.getOrDefault("X-Amz-Credential") valid_616444 = validateParameter(valid_616444, JString, required = false, default = nil) if valid_616444 != nil: - section.add "X-Amz-Algorithm", valid_616444 - var valid_616445 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616444 + var valid_616445 = header.getOrDefault("X-Amz-Security-Token") valid_616445 = validateParameter(valid_616445, JString, required = false, default = nil) if valid_616445 != nil: - section.add "X-Amz-SignedHeaders", valid_616445 + section.add "X-Amz-Security-Token", valid_616445 + var valid_616446 = header.getOrDefault("X-Amz-Algorithm") + valid_616446 = validateParameter(valid_616446, JString, required = false, + default = nil) + if valid_616446 != nil: + section.add "X-Amz-Algorithm", valid_616446 + var valid_616447 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616447 = validateParameter(valid_616447, JString, required = false, + default = nil) + if valid_616447 != nil: + section.add "X-Amz-SignedHeaders", valid_616447 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -43883,34 +43910,34 @@ proc validate_PostDeleteTransitGateway_616435(path: JsonNode; query: JsonNode; ## TransitGatewayId: JString (required) ## : The ID of the transit gateway. section = newJObject() - var valid_616446 = formData.getOrDefault("DryRun") - valid_616446 = validateParameter(valid_616446, JBool, required = false, default = nil) - if valid_616446 != nil: - section.add "DryRun", valid_616446 + var valid_616448 = formData.getOrDefault("DryRun") + valid_616448 = validateParameter(valid_616448, JBool, required = false, default = nil) + if valid_616448 != nil: + section.add "DryRun", valid_616448 assert formData != nil, "formData argument is necessary due to required `TransitGatewayId` field" - var valid_616447 = formData.getOrDefault("TransitGatewayId") - valid_616447 = validateParameter(valid_616447, JString, required = true, + var valid_616449 = formData.getOrDefault("TransitGatewayId") + valid_616449 = validateParameter(valid_616449, JString, required = true, default = nil) - if valid_616447 != nil: - section.add "TransitGatewayId", valid_616447 + if valid_616449 != nil: + section.add "TransitGatewayId", valid_616449 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616448: Call_PostDeleteTransitGateway_616434; path: JsonNode; +proc call*(call_616450: Call_PostDeleteTransitGateway_616436; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified transit gateway. ## - let valid = call_616448.validator(path, query, header, formData, body) - let scheme = call_616448.pickScheme + let valid = call_616450.validator(path, query, header, formData, body) + let scheme = call_616450.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616448.url(scheme.get, call_616448.host, call_616448.base, - call_616448.route, valid.getOrDefault("path"), + let url = call_616450.url(scheme.get, call_616450.host, call_616450.base, + call_616450.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616448, url, valid) + result = atozHook(call_616450, url, valid) -proc call*(call_616449: Call_PostDeleteTransitGateway_616434; +proc call*(call_616451: Call_PostDeleteTransitGateway_616436; TransitGatewayId: string; DryRun: bool = false; Action: string = "DeleteTransitGateway"; Version: string = "2016-11-15"): Recallable = ## postDeleteTransitGateway @@ -43921,22 +43948,22 @@ proc call*(call_616449: Call_PostDeleteTransitGateway_616434; ## : The ID of the transit gateway. ## Action: string (required) ## Version: string (required) - var query_616450 = newJObject() - var formData_616451 = newJObject() - add(formData_616451, "DryRun", newJBool(DryRun)) - add(formData_616451, "TransitGatewayId", newJString(TransitGatewayId)) - add(query_616450, "Action", newJString(Action)) - add(query_616450, "Version", newJString(Version)) - result = call_616449.call(nil, query_616450, nil, formData_616451, nil) + var query_616452 = newJObject() + var formData_616453 = newJObject() + add(formData_616453, "DryRun", newJBool(DryRun)) + add(formData_616453, "TransitGatewayId", newJString(TransitGatewayId)) + add(query_616452, "Action", newJString(Action)) + add(query_616452, "Version", newJString(Version)) + result = call_616451.call(nil, query_616452, nil, formData_616453, nil) -var postDeleteTransitGateway* = Call_PostDeleteTransitGateway_616434( +var postDeleteTransitGateway* = Call_PostDeleteTransitGateway_616436( name: "postDeleteTransitGateway", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteTransitGateway", - validator: validate_PostDeleteTransitGateway_616435, base: "/", - url: url_PostDeleteTransitGateway_616436, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDeleteTransitGateway_616437, base: "/", + url: url_PostDeleteTransitGateway_616438, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteTransitGateway_616417 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteTransitGateway_616419(protocol: Scheme; host: string; base: string; + Call_GetDeleteTransitGateway_616419 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteTransitGateway_616421(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -43947,7 +43974,7 @@ proc url_GetDeleteTransitGateway_616419(protocol: Scheme; host: string; base: st else: result.path = base & route -proc validate_GetDeleteTransitGateway_616418(path: JsonNode; query: JsonNode; +proc validate_GetDeleteTransitGateway_616420(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified transit gateway. ## @@ -43963,27 +43990,27 @@ proc validate_GetDeleteTransitGateway_616418(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616420 = query.getOrDefault("DryRun") - valid_616420 = validateParameter(valid_616420, JBool, required = false, default = nil) - if valid_616420 != nil: - section.add "DryRun", valid_616420 + var valid_616422 = query.getOrDefault("DryRun") + valid_616422 = validateParameter(valid_616422, JBool, required = false, default = nil) + if valid_616422 != nil: + section.add "DryRun", valid_616422 assert query != nil, "query argument is necessary due to required `TransitGatewayId` field" - var valid_616421 = query.getOrDefault("TransitGatewayId") - valid_616421 = validateParameter(valid_616421, JString, required = true, + var valid_616423 = query.getOrDefault("TransitGatewayId") + valid_616423 = validateParameter(valid_616423, JString, required = true, default = nil) - if valid_616421 != nil: - section.add "TransitGatewayId", valid_616421 - var valid_616422 = query.getOrDefault("Action") - valid_616422 = validateParameter(valid_616422, JString, required = true, + if valid_616423 != nil: + section.add "TransitGatewayId", valid_616423 + var valid_616424 = query.getOrDefault("Action") + valid_616424 = validateParameter(valid_616424, JString, required = true, default = newJString("DeleteTransitGateway")) - if valid_616422 != nil: - section.add "Action", valid_616422 - var valid_616423 = query.getOrDefault("Version") - valid_616423 = validateParameter(valid_616423, JString, required = true, + if valid_616424 != nil: + section.add "Action", valid_616424 + var valid_616425 = query.getOrDefault("Version") + valid_616425 = validateParameter(valid_616425, JString, required = true, default = newJString("2016-11-15")) - if valid_616423 != nil: - section.add "Version", valid_616423 + if valid_616425 != nil: + section.add "Version", valid_616425 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -43994,61 +44021,61 @@ proc validate_GetDeleteTransitGateway_616418(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616424 = header.getOrDefault("X-Amz-Signature") - valid_616424 = validateParameter(valid_616424, JString, required = false, - default = nil) - if valid_616424 != nil: - section.add "X-Amz-Signature", valid_616424 - var valid_616425 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616425 = validateParameter(valid_616425, JString, required = false, - default = nil) - if valid_616425 != nil: - section.add "X-Amz-Content-Sha256", valid_616425 - var valid_616426 = header.getOrDefault("X-Amz-Date") + var valid_616426 = header.getOrDefault("X-Amz-Signature") valid_616426 = validateParameter(valid_616426, JString, required = false, default = nil) if valid_616426 != nil: - section.add "X-Amz-Date", valid_616426 - var valid_616427 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616426 + var valid_616427 = header.getOrDefault("X-Amz-Content-Sha256") valid_616427 = validateParameter(valid_616427, JString, required = false, default = nil) if valid_616427 != nil: - section.add "X-Amz-Credential", valid_616427 - var valid_616428 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616427 + var valid_616428 = header.getOrDefault("X-Amz-Date") valid_616428 = validateParameter(valid_616428, JString, required = false, default = nil) if valid_616428 != nil: - section.add "X-Amz-Security-Token", valid_616428 - var valid_616429 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616428 + var valid_616429 = header.getOrDefault("X-Amz-Credential") valid_616429 = validateParameter(valid_616429, JString, required = false, default = nil) if valid_616429 != nil: - section.add "X-Amz-Algorithm", valid_616429 - var valid_616430 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616429 + var valid_616430 = header.getOrDefault("X-Amz-Security-Token") valid_616430 = validateParameter(valid_616430, JString, required = false, default = nil) if valid_616430 != nil: - section.add "X-Amz-SignedHeaders", valid_616430 + section.add "X-Amz-Security-Token", valid_616430 + var valid_616431 = header.getOrDefault("X-Amz-Algorithm") + valid_616431 = validateParameter(valid_616431, JString, required = false, + default = nil) + if valid_616431 != nil: + section.add "X-Amz-Algorithm", valid_616431 + var valid_616432 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616432 = validateParameter(valid_616432, JString, required = false, + default = nil) + if valid_616432 != nil: + section.add "X-Amz-SignedHeaders", valid_616432 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616431: Call_GetDeleteTransitGateway_616417; path: JsonNode; +proc call*(call_616433: Call_GetDeleteTransitGateway_616419; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified transit gateway. ## - let valid = call_616431.validator(path, query, header, formData, body) - let scheme = call_616431.pickScheme + let valid = call_616433.validator(path, query, header, formData, body) + let scheme = call_616433.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616431.url(scheme.get, call_616431.host, call_616431.base, - call_616431.route, valid.getOrDefault("path"), + let url = call_616433.url(scheme.get, call_616433.host, call_616433.base, + call_616433.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616431, url, valid) + result = atozHook(call_616433, url, valid) -proc call*(call_616432: Call_GetDeleteTransitGateway_616417; +proc call*(call_616434: Call_GetDeleteTransitGateway_616419; TransitGatewayId: string; DryRun: bool = false; Action: string = "DeleteTransitGateway"; Version: string = "2016-11-15"): Recallable = ## getDeleteTransitGateway @@ -44059,21 +44086,21 @@ proc call*(call_616432: Call_GetDeleteTransitGateway_616417; ## : The ID of the transit gateway. ## Action: string (required) ## Version: string (required) - var query_616433 = newJObject() - add(query_616433, "DryRun", newJBool(DryRun)) - add(query_616433, "TransitGatewayId", newJString(TransitGatewayId)) - add(query_616433, "Action", newJString(Action)) - add(query_616433, "Version", newJString(Version)) - result = call_616432.call(nil, query_616433, nil, nil, nil) + var query_616435 = newJObject() + add(query_616435, "DryRun", newJBool(DryRun)) + add(query_616435, "TransitGatewayId", newJString(TransitGatewayId)) + add(query_616435, "Action", newJString(Action)) + add(query_616435, "Version", newJString(Version)) + result = call_616434.call(nil, query_616435, nil, nil, nil) -var getDeleteTransitGateway* = Call_GetDeleteTransitGateway_616417( +var getDeleteTransitGateway* = Call_GetDeleteTransitGateway_616419( name: "getDeleteTransitGateway", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteTransitGateway", - validator: validate_GetDeleteTransitGateway_616418, base: "/", - url: url_GetDeleteTransitGateway_616419, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDeleteTransitGateway_616420, base: "/", + url: url_GetDeleteTransitGateway_616421, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteTransitGatewayMulticastDomain_616469 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteTransitGatewayMulticastDomain_616471(protocol: Scheme; + Call_PostDeleteTransitGatewayMulticastDomain_616471 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteTransitGatewayMulticastDomain_616473(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -44083,7 +44110,7 @@ proc url_PostDeleteTransitGatewayMulticastDomain_616471(protocol: Scheme; else: result.path = base & route -proc validate_PostDeleteTransitGatewayMulticastDomain_616470(path: JsonNode; +proc validate_PostDeleteTransitGatewayMulticastDomain_616472(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified transit gateway multicast domain. ## @@ -44095,16 +44122,16 @@ proc validate_PostDeleteTransitGatewayMulticastDomain_616470(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616472 = query.getOrDefault("Action") - valid_616472 = validateParameter(valid_616472, JString, required = true, default = newJString( + var valid_616474 = query.getOrDefault("Action") + valid_616474 = validateParameter(valid_616474, JString, required = true, default = newJString( "DeleteTransitGatewayMulticastDomain")) - if valid_616472 != nil: - section.add "Action", valid_616472 - var valid_616473 = query.getOrDefault("Version") - valid_616473 = validateParameter(valid_616473, JString, required = true, + if valid_616474 != nil: + section.add "Action", valid_616474 + var valid_616475 = query.getOrDefault("Version") + valid_616475 = validateParameter(valid_616475, JString, required = true, default = newJString("2016-11-15")) - if valid_616473 != nil: - section.add "Version", valid_616473 + if valid_616475 != nil: + section.add "Version", valid_616475 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -44115,41 +44142,41 @@ proc validate_PostDeleteTransitGatewayMulticastDomain_616470(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616474 = header.getOrDefault("X-Amz-Signature") - valid_616474 = validateParameter(valid_616474, JString, required = false, - default = nil) - if valid_616474 != nil: - section.add "X-Amz-Signature", valid_616474 - var valid_616475 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616475 = validateParameter(valid_616475, JString, required = false, - default = nil) - if valid_616475 != nil: - section.add "X-Amz-Content-Sha256", valid_616475 - var valid_616476 = header.getOrDefault("X-Amz-Date") + var valid_616476 = header.getOrDefault("X-Amz-Signature") valid_616476 = validateParameter(valid_616476, JString, required = false, default = nil) if valid_616476 != nil: - section.add "X-Amz-Date", valid_616476 - var valid_616477 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616476 + var valid_616477 = header.getOrDefault("X-Amz-Content-Sha256") valid_616477 = validateParameter(valid_616477, JString, required = false, default = nil) if valid_616477 != nil: - section.add "X-Amz-Credential", valid_616477 - var valid_616478 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616477 + var valid_616478 = header.getOrDefault("X-Amz-Date") valid_616478 = validateParameter(valid_616478, JString, required = false, default = nil) if valid_616478 != nil: - section.add "X-Amz-Security-Token", valid_616478 - var valid_616479 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616478 + var valid_616479 = header.getOrDefault("X-Amz-Credential") valid_616479 = validateParameter(valid_616479, JString, required = false, default = nil) if valid_616479 != nil: - section.add "X-Amz-Algorithm", valid_616479 - var valid_616480 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616479 + var valid_616480 = header.getOrDefault("X-Amz-Security-Token") valid_616480 = validateParameter(valid_616480, JString, required = false, default = nil) if valid_616480 != nil: - section.add "X-Amz-SignedHeaders", valid_616480 + section.add "X-Amz-Security-Token", valid_616480 + var valid_616481 = header.getOrDefault("X-Amz-Algorithm") + valid_616481 = validateParameter(valid_616481, JString, required = false, + default = nil) + if valid_616481 != nil: + section.add "X-Amz-Algorithm", valid_616481 + var valid_616482 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616482 = validateParameter(valid_616482, JString, required = false, + default = nil) + if valid_616482 != nil: + section.add "X-Amz-SignedHeaders", valid_616482 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -44157,35 +44184,35 @@ proc validate_PostDeleteTransitGatewayMulticastDomain_616470(path: JsonNode; ## TransitGatewayMulticastDomainId: JString (required) ## : The ID of the transit gateway multicast domain. section = newJObject() - var valid_616481 = formData.getOrDefault("DryRun") - valid_616481 = validateParameter(valid_616481, JBool, required = false, default = nil) - if valid_616481 != nil: - section.add "DryRun", valid_616481 + var valid_616483 = formData.getOrDefault("DryRun") + valid_616483 = validateParameter(valid_616483, JBool, required = false, default = nil) + if valid_616483 != nil: + section.add "DryRun", valid_616483 assert formData != nil, "formData argument is necessary due to required `TransitGatewayMulticastDomainId` field" - var valid_616482 = formData.getOrDefault("TransitGatewayMulticastDomainId") - valid_616482 = validateParameter(valid_616482, JString, required = true, + var valid_616484 = formData.getOrDefault("TransitGatewayMulticastDomainId") + valid_616484 = validateParameter(valid_616484, JString, required = true, default = nil) - if valid_616482 != nil: - section.add "TransitGatewayMulticastDomainId", valid_616482 + if valid_616484 != nil: + section.add "TransitGatewayMulticastDomainId", valid_616484 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616483: Call_PostDeleteTransitGatewayMulticastDomain_616469; +proc call*(call_616485: Call_PostDeleteTransitGatewayMulticastDomain_616471; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified transit gateway multicast domain. ## - let valid = call_616483.validator(path, query, header, formData, body) - let scheme = call_616483.pickScheme + let valid = call_616485.validator(path, query, header, formData, body) + let scheme = call_616485.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616483.url(scheme.get, call_616483.host, call_616483.base, - call_616483.route, valid.getOrDefault("path"), + let url = call_616485.url(scheme.get, call_616485.host, call_616485.base, + call_616485.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616483, url, valid) + result = atozHook(call_616485, url, valid) -proc call*(call_616484: Call_PostDeleteTransitGatewayMulticastDomain_616469; +proc call*(call_616486: Call_PostDeleteTransitGatewayMulticastDomain_616471; TransitGatewayMulticastDomainId: string; DryRun: bool = false; Action: string = "DeleteTransitGatewayMulticastDomain"; Version: string = "2016-11-15"): Recallable = @@ -44197,25 +44224,25 @@ proc call*(call_616484: Call_PostDeleteTransitGatewayMulticastDomain_616469; ## TransitGatewayMulticastDomainId: string (required) ## : The ID of the transit gateway multicast domain. ## Version: string (required) - var query_616485 = newJObject() - var formData_616486 = newJObject() - add(formData_616486, "DryRun", newJBool(DryRun)) - add(query_616485, "Action", newJString(Action)) - add(formData_616486, "TransitGatewayMulticastDomainId", + var query_616487 = newJObject() + var formData_616488 = newJObject() + add(formData_616488, "DryRun", newJBool(DryRun)) + add(query_616487, "Action", newJString(Action)) + add(formData_616488, "TransitGatewayMulticastDomainId", newJString(TransitGatewayMulticastDomainId)) - add(query_616485, "Version", newJString(Version)) - result = call_616484.call(nil, query_616485, nil, formData_616486, nil) + add(query_616487, "Version", newJString(Version)) + result = call_616486.call(nil, query_616487, nil, formData_616488, nil) -var postDeleteTransitGatewayMulticastDomain* = Call_PostDeleteTransitGatewayMulticastDomain_616469( +var postDeleteTransitGatewayMulticastDomain* = Call_PostDeleteTransitGatewayMulticastDomain_616471( name: "postDeleteTransitGatewayMulticastDomain", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteTransitGatewayMulticastDomain", - validator: validate_PostDeleteTransitGatewayMulticastDomain_616470, base: "/", - url: url_PostDeleteTransitGatewayMulticastDomain_616471, + validator: validate_PostDeleteTransitGatewayMulticastDomain_616472, base: "/", + url: url_PostDeleteTransitGatewayMulticastDomain_616473, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteTransitGatewayMulticastDomain_616452 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteTransitGatewayMulticastDomain_616454(protocol: Scheme; + Call_GetDeleteTransitGatewayMulticastDomain_616454 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteTransitGatewayMulticastDomain_616456(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -44225,7 +44252,7 @@ proc url_GetDeleteTransitGatewayMulticastDomain_616454(protocol: Scheme; else: result.path = base & route -proc validate_GetDeleteTransitGatewayMulticastDomain_616453(path: JsonNode; +proc validate_GetDeleteTransitGatewayMulticastDomain_616455(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified transit gateway multicast domain. ## @@ -44241,26 +44268,26 @@ proc validate_GetDeleteTransitGatewayMulticastDomain_616453(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616455 = query.getOrDefault("DryRun") - valid_616455 = validateParameter(valid_616455, JBool, required = false, default = nil) - if valid_616455 != nil: - section.add "DryRun", valid_616455 + var valid_616457 = query.getOrDefault("DryRun") + valid_616457 = validateParameter(valid_616457, JBool, required = false, default = nil) + if valid_616457 != nil: + section.add "DryRun", valid_616457 assert query != nil, "query argument is necessary due to required `TransitGatewayMulticastDomainId` field" - var valid_616456 = query.getOrDefault("TransitGatewayMulticastDomainId") - valid_616456 = validateParameter(valid_616456, JString, required = true, + var valid_616458 = query.getOrDefault("TransitGatewayMulticastDomainId") + valid_616458 = validateParameter(valid_616458, JString, required = true, default = nil) - if valid_616456 != nil: - section.add "TransitGatewayMulticastDomainId", valid_616456 - var valid_616457 = query.getOrDefault("Action") - valid_616457 = validateParameter(valid_616457, JString, required = true, default = newJString( + if valid_616458 != nil: + section.add "TransitGatewayMulticastDomainId", valid_616458 + var valid_616459 = query.getOrDefault("Action") + valid_616459 = validateParameter(valid_616459, JString, required = true, default = newJString( "DeleteTransitGatewayMulticastDomain")) - if valid_616457 != nil: - section.add "Action", valid_616457 - var valid_616458 = query.getOrDefault("Version") - valid_616458 = validateParameter(valid_616458, JString, required = true, + if valid_616459 != nil: + section.add "Action", valid_616459 + var valid_616460 = query.getOrDefault("Version") + valid_616460 = validateParameter(valid_616460, JString, required = true, default = newJString("2016-11-15")) - if valid_616458 != nil: - section.add "Version", valid_616458 + if valid_616460 != nil: + section.add "Version", valid_616460 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -44271,62 +44298,62 @@ proc validate_GetDeleteTransitGatewayMulticastDomain_616453(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616459 = header.getOrDefault("X-Amz-Signature") - valid_616459 = validateParameter(valid_616459, JString, required = false, - default = nil) - if valid_616459 != nil: - section.add "X-Amz-Signature", valid_616459 - var valid_616460 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616460 = validateParameter(valid_616460, JString, required = false, - default = nil) - if valid_616460 != nil: - section.add "X-Amz-Content-Sha256", valid_616460 - var valid_616461 = header.getOrDefault("X-Amz-Date") + var valid_616461 = header.getOrDefault("X-Amz-Signature") valid_616461 = validateParameter(valid_616461, JString, required = false, default = nil) if valid_616461 != nil: - section.add "X-Amz-Date", valid_616461 - var valid_616462 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616461 + var valid_616462 = header.getOrDefault("X-Amz-Content-Sha256") valid_616462 = validateParameter(valid_616462, JString, required = false, default = nil) if valid_616462 != nil: - section.add "X-Amz-Credential", valid_616462 - var valid_616463 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616462 + var valid_616463 = header.getOrDefault("X-Amz-Date") valid_616463 = validateParameter(valid_616463, JString, required = false, default = nil) if valid_616463 != nil: - section.add "X-Amz-Security-Token", valid_616463 - var valid_616464 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616463 + var valid_616464 = header.getOrDefault("X-Amz-Credential") valid_616464 = validateParameter(valid_616464, JString, required = false, default = nil) if valid_616464 != nil: - section.add "X-Amz-Algorithm", valid_616464 - var valid_616465 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616464 + var valid_616465 = header.getOrDefault("X-Amz-Security-Token") valid_616465 = validateParameter(valid_616465, JString, required = false, default = nil) if valid_616465 != nil: - section.add "X-Amz-SignedHeaders", valid_616465 + section.add "X-Amz-Security-Token", valid_616465 + var valid_616466 = header.getOrDefault("X-Amz-Algorithm") + valid_616466 = validateParameter(valid_616466, JString, required = false, + default = nil) + if valid_616466 != nil: + section.add "X-Amz-Algorithm", valid_616466 + var valid_616467 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616467 = validateParameter(valid_616467, JString, required = false, + default = nil) + if valid_616467 != nil: + section.add "X-Amz-SignedHeaders", valid_616467 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616466: Call_GetDeleteTransitGatewayMulticastDomain_616452; +proc call*(call_616468: Call_GetDeleteTransitGatewayMulticastDomain_616454; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified transit gateway multicast domain. ## - let valid = call_616466.validator(path, query, header, formData, body) - let scheme = call_616466.pickScheme + let valid = call_616468.validator(path, query, header, formData, body) + let scheme = call_616468.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616466.url(scheme.get, call_616466.host, call_616466.base, - call_616466.route, valid.getOrDefault("path"), + let url = call_616468.url(scheme.get, call_616468.host, call_616468.base, + call_616468.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616466, url, valid) + result = atozHook(call_616468, url, valid) -proc call*(call_616467: Call_GetDeleteTransitGatewayMulticastDomain_616452; +proc call*(call_616469: Call_GetDeleteTransitGatewayMulticastDomain_616454; TransitGatewayMulticastDomainId: string; DryRun: bool = false; Action: string = "DeleteTransitGatewayMulticastDomain"; Version: string = "2016-11-15"): Recallable = @@ -44338,24 +44365,24 @@ proc call*(call_616467: Call_GetDeleteTransitGatewayMulticastDomain_616452; ## : The ID of the transit gateway multicast domain. ## Action: string (required) ## Version: string (required) - var query_616468 = newJObject() - add(query_616468, "DryRun", newJBool(DryRun)) - add(query_616468, "TransitGatewayMulticastDomainId", + var query_616470 = newJObject() + add(query_616470, "DryRun", newJBool(DryRun)) + add(query_616470, "TransitGatewayMulticastDomainId", newJString(TransitGatewayMulticastDomainId)) - add(query_616468, "Action", newJString(Action)) - add(query_616468, "Version", newJString(Version)) - result = call_616467.call(nil, query_616468, nil, nil, nil) + add(query_616470, "Action", newJString(Action)) + add(query_616470, "Version", newJString(Version)) + result = call_616469.call(nil, query_616470, nil, nil, nil) -var getDeleteTransitGatewayMulticastDomain* = Call_GetDeleteTransitGatewayMulticastDomain_616452( +var getDeleteTransitGatewayMulticastDomain* = Call_GetDeleteTransitGatewayMulticastDomain_616454( name: "getDeleteTransitGatewayMulticastDomain", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteTransitGatewayMulticastDomain", - validator: validate_GetDeleteTransitGatewayMulticastDomain_616453, base: "/", - url: url_GetDeleteTransitGatewayMulticastDomain_616454, + validator: validate_GetDeleteTransitGatewayMulticastDomain_616455, base: "/", + url: url_GetDeleteTransitGatewayMulticastDomain_616456, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteTransitGatewayPeeringAttachment_616504 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteTransitGatewayPeeringAttachment_616506(protocol: Scheme; + Call_PostDeleteTransitGatewayPeeringAttachment_616506 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteTransitGatewayPeeringAttachment_616508(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -44365,7 +44392,7 @@ proc url_PostDeleteTransitGatewayPeeringAttachment_616506(protocol: Scheme; else: result.path = base & route -proc validate_PostDeleteTransitGatewayPeeringAttachment_616505(path: JsonNode; +proc validate_PostDeleteTransitGatewayPeeringAttachment_616507(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes a transit gateway peering attachment. ## @@ -44377,16 +44404,16 @@ proc validate_PostDeleteTransitGatewayPeeringAttachment_616505(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616507 = query.getOrDefault("Action") - valid_616507 = validateParameter(valid_616507, JString, required = true, default = newJString( + var valid_616509 = query.getOrDefault("Action") + valid_616509 = validateParameter(valid_616509, JString, required = true, default = newJString( "DeleteTransitGatewayPeeringAttachment")) - if valid_616507 != nil: - section.add "Action", valid_616507 - var valid_616508 = query.getOrDefault("Version") - valid_616508 = validateParameter(valid_616508, JString, required = true, + if valid_616509 != nil: + section.add "Action", valid_616509 + var valid_616510 = query.getOrDefault("Version") + valid_616510 = validateParameter(valid_616510, JString, required = true, default = newJString("2016-11-15")) - if valid_616508 != nil: - section.add "Version", valid_616508 + if valid_616510 != nil: + section.add "Version", valid_616510 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -44397,41 +44424,41 @@ proc validate_PostDeleteTransitGatewayPeeringAttachment_616505(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616509 = header.getOrDefault("X-Amz-Signature") - valid_616509 = validateParameter(valid_616509, JString, required = false, - default = nil) - if valid_616509 != nil: - section.add "X-Amz-Signature", valid_616509 - var valid_616510 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616510 = validateParameter(valid_616510, JString, required = false, - default = nil) - if valid_616510 != nil: - section.add "X-Amz-Content-Sha256", valid_616510 - var valid_616511 = header.getOrDefault("X-Amz-Date") + var valid_616511 = header.getOrDefault("X-Amz-Signature") valid_616511 = validateParameter(valid_616511, JString, required = false, default = nil) if valid_616511 != nil: - section.add "X-Amz-Date", valid_616511 - var valid_616512 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616511 + var valid_616512 = header.getOrDefault("X-Amz-Content-Sha256") valid_616512 = validateParameter(valid_616512, JString, required = false, default = nil) if valid_616512 != nil: - section.add "X-Amz-Credential", valid_616512 - var valid_616513 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616512 + var valid_616513 = header.getOrDefault("X-Amz-Date") valid_616513 = validateParameter(valid_616513, JString, required = false, default = nil) if valid_616513 != nil: - section.add "X-Amz-Security-Token", valid_616513 - var valid_616514 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616513 + var valid_616514 = header.getOrDefault("X-Amz-Credential") valid_616514 = validateParameter(valid_616514, JString, required = false, default = nil) if valid_616514 != nil: - section.add "X-Amz-Algorithm", valid_616514 - var valid_616515 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616514 + var valid_616515 = header.getOrDefault("X-Amz-Security-Token") valid_616515 = validateParameter(valid_616515, JString, required = false, default = nil) if valid_616515 != nil: - section.add "X-Amz-SignedHeaders", valid_616515 + section.add "X-Amz-Security-Token", valid_616515 + var valid_616516 = header.getOrDefault("X-Amz-Algorithm") + valid_616516 = validateParameter(valid_616516, JString, required = false, + default = nil) + if valid_616516 != nil: + section.add "X-Amz-Algorithm", valid_616516 + var valid_616517 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616517 = validateParameter(valid_616517, JString, required = false, + default = nil) + if valid_616517 != nil: + section.add "X-Amz-SignedHeaders", valid_616517 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -44439,35 +44466,35 @@ proc validate_PostDeleteTransitGatewayPeeringAttachment_616505(path: JsonNode; ## TransitGatewayAttachmentId: JString (required) ## : The ID of the transit gateway peering attachment. section = newJObject() - var valid_616516 = formData.getOrDefault("DryRun") - valid_616516 = validateParameter(valid_616516, JBool, required = false, default = nil) - if valid_616516 != nil: - section.add "DryRun", valid_616516 + var valid_616518 = formData.getOrDefault("DryRun") + valid_616518 = validateParameter(valid_616518, JBool, required = false, default = nil) + if valid_616518 != nil: + section.add "DryRun", valid_616518 assert formData != nil, "formData argument is necessary due to required `TransitGatewayAttachmentId` field" - var valid_616517 = formData.getOrDefault("TransitGatewayAttachmentId") - valid_616517 = validateParameter(valid_616517, JString, required = true, + var valid_616519 = formData.getOrDefault("TransitGatewayAttachmentId") + valid_616519 = validateParameter(valid_616519, JString, required = true, default = nil) - if valid_616517 != nil: - section.add "TransitGatewayAttachmentId", valid_616517 + if valid_616519 != nil: + section.add "TransitGatewayAttachmentId", valid_616519 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616518: Call_PostDeleteTransitGatewayPeeringAttachment_616504; +proc call*(call_616520: Call_PostDeleteTransitGatewayPeeringAttachment_616506; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes a transit gateway peering attachment. ## - let valid = call_616518.validator(path, query, header, formData, body) - let scheme = call_616518.pickScheme + let valid = call_616520.validator(path, query, header, formData, body) + let scheme = call_616520.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616518.url(scheme.get, call_616518.host, call_616518.base, - call_616518.route, valid.getOrDefault("path"), + let url = call_616520.url(scheme.get, call_616520.host, call_616520.base, + call_616520.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616518, url, valid) + result = atozHook(call_616520, url, valid) -proc call*(call_616519: Call_PostDeleteTransitGatewayPeeringAttachment_616504; +proc call*(call_616521: Call_PostDeleteTransitGatewayPeeringAttachment_616506; TransitGatewayAttachmentId: string; DryRun: bool = false; Action: string = "DeleteTransitGatewayPeeringAttachment"; Version: string = "2016-11-15"): Recallable = @@ -44479,25 +44506,25 @@ proc call*(call_616519: Call_PostDeleteTransitGatewayPeeringAttachment_616504; ## Version: string (required) ## TransitGatewayAttachmentId: string (required) ## : The ID of the transit gateway peering attachment. - var query_616520 = newJObject() - var formData_616521 = newJObject() - add(formData_616521, "DryRun", newJBool(DryRun)) - add(query_616520, "Action", newJString(Action)) - add(query_616520, "Version", newJString(Version)) - add(formData_616521, "TransitGatewayAttachmentId", + var query_616522 = newJObject() + var formData_616523 = newJObject() + add(formData_616523, "DryRun", newJBool(DryRun)) + add(query_616522, "Action", newJString(Action)) + add(query_616522, "Version", newJString(Version)) + add(formData_616523, "TransitGatewayAttachmentId", newJString(TransitGatewayAttachmentId)) - result = call_616519.call(nil, query_616520, nil, formData_616521, nil) + result = call_616521.call(nil, query_616522, nil, formData_616523, nil) -var postDeleteTransitGatewayPeeringAttachment* = Call_PostDeleteTransitGatewayPeeringAttachment_616504( +var postDeleteTransitGatewayPeeringAttachment* = Call_PostDeleteTransitGatewayPeeringAttachment_616506( name: "postDeleteTransitGatewayPeeringAttachment", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteTransitGatewayPeeringAttachment", - validator: validate_PostDeleteTransitGatewayPeeringAttachment_616505, - base: "/", url: url_PostDeleteTransitGatewayPeeringAttachment_616506, + validator: validate_PostDeleteTransitGatewayPeeringAttachment_616507, + base: "/", url: url_PostDeleteTransitGatewayPeeringAttachment_616508, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteTransitGatewayPeeringAttachment_616487 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteTransitGatewayPeeringAttachment_616489(protocol: Scheme; + Call_GetDeleteTransitGatewayPeeringAttachment_616489 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteTransitGatewayPeeringAttachment_616491(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -44507,7 +44534,7 @@ proc url_GetDeleteTransitGatewayPeeringAttachment_616489(protocol: Scheme; else: result.path = base & route -proc validate_GetDeleteTransitGatewayPeeringAttachment_616488(path: JsonNode; +proc validate_GetDeleteTransitGatewayPeeringAttachment_616490(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes a transit gateway peering attachment. ## @@ -44523,26 +44550,26 @@ proc validate_GetDeleteTransitGatewayPeeringAttachment_616488(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616490 = query.getOrDefault("DryRun") - valid_616490 = validateParameter(valid_616490, JBool, required = false, default = nil) - if valid_616490 != nil: - section.add "DryRun", valid_616490 + var valid_616492 = query.getOrDefault("DryRun") + valid_616492 = validateParameter(valid_616492, JBool, required = false, default = nil) + if valid_616492 != nil: + section.add "DryRun", valid_616492 assert query != nil, "query argument is necessary due to required `TransitGatewayAttachmentId` field" - var valid_616491 = query.getOrDefault("TransitGatewayAttachmentId") - valid_616491 = validateParameter(valid_616491, JString, required = true, + var valid_616493 = query.getOrDefault("TransitGatewayAttachmentId") + valid_616493 = validateParameter(valid_616493, JString, required = true, default = nil) - if valid_616491 != nil: - section.add "TransitGatewayAttachmentId", valid_616491 - var valid_616492 = query.getOrDefault("Action") - valid_616492 = validateParameter(valid_616492, JString, required = true, default = newJString( + if valid_616493 != nil: + section.add "TransitGatewayAttachmentId", valid_616493 + var valid_616494 = query.getOrDefault("Action") + valid_616494 = validateParameter(valid_616494, JString, required = true, default = newJString( "DeleteTransitGatewayPeeringAttachment")) - if valid_616492 != nil: - section.add "Action", valid_616492 - var valid_616493 = query.getOrDefault("Version") - valid_616493 = validateParameter(valid_616493, JString, required = true, + if valid_616494 != nil: + section.add "Action", valid_616494 + var valid_616495 = query.getOrDefault("Version") + valid_616495 = validateParameter(valid_616495, JString, required = true, default = newJString("2016-11-15")) - if valid_616493 != nil: - section.add "Version", valid_616493 + if valid_616495 != nil: + section.add "Version", valid_616495 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -44553,62 +44580,62 @@ proc validate_GetDeleteTransitGatewayPeeringAttachment_616488(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616494 = header.getOrDefault("X-Amz-Signature") - valid_616494 = validateParameter(valid_616494, JString, required = false, - default = nil) - if valid_616494 != nil: - section.add "X-Amz-Signature", valid_616494 - var valid_616495 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616495 = validateParameter(valid_616495, JString, required = false, - default = nil) - if valid_616495 != nil: - section.add "X-Amz-Content-Sha256", valid_616495 - var valid_616496 = header.getOrDefault("X-Amz-Date") + var valid_616496 = header.getOrDefault("X-Amz-Signature") valid_616496 = validateParameter(valid_616496, JString, required = false, default = nil) if valid_616496 != nil: - section.add "X-Amz-Date", valid_616496 - var valid_616497 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616496 + var valid_616497 = header.getOrDefault("X-Amz-Content-Sha256") valid_616497 = validateParameter(valid_616497, JString, required = false, default = nil) if valid_616497 != nil: - section.add "X-Amz-Credential", valid_616497 - var valid_616498 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616497 + var valid_616498 = header.getOrDefault("X-Amz-Date") valid_616498 = validateParameter(valid_616498, JString, required = false, default = nil) if valid_616498 != nil: - section.add "X-Amz-Security-Token", valid_616498 - var valid_616499 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616498 + var valid_616499 = header.getOrDefault("X-Amz-Credential") valid_616499 = validateParameter(valid_616499, JString, required = false, default = nil) if valid_616499 != nil: - section.add "X-Amz-Algorithm", valid_616499 - var valid_616500 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616499 + var valid_616500 = header.getOrDefault("X-Amz-Security-Token") valid_616500 = validateParameter(valid_616500, JString, required = false, default = nil) if valid_616500 != nil: - section.add "X-Amz-SignedHeaders", valid_616500 + section.add "X-Amz-Security-Token", valid_616500 + var valid_616501 = header.getOrDefault("X-Amz-Algorithm") + valid_616501 = validateParameter(valid_616501, JString, required = false, + default = nil) + if valid_616501 != nil: + section.add "X-Amz-Algorithm", valid_616501 + var valid_616502 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616502 = validateParameter(valid_616502, JString, required = false, + default = nil) + if valid_616502 != nil: + section.add "X-Amz-SignedHeaders", valid_616502 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616501: Call_GetDeleteTransitGatewayPeeringAttachment_616487; +proc call*(call_616503: Call_GetDeleteTransitGatewayPeeringAttachment_616489; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes a transit gateway peering attachment. ## - let valid = call_616501.validator(path, query, header, formData, body) - let scheme = call_616501.pickScheme + let valid = call_616503.validator(path, query, header, formData, body) + let scheme = call_616503.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616501.url(scheme.get, call_616501.host, call_616501.base, - call_616501.route, valid.getOrDefault("path"), + let url = call_616503.url(scheme.get, call_616503.host, call_616503.base, + call_616503.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616501, url, valid) + result = atozHook(call_616503, url, valid) -proc call*(call_616502: Call_GetDeleteTransitGatewayPeeringAttachment_616487; +proc call*(call_616504: Call_GetDeleteTransitGatewayPeeringAttachment_616489; TransitGatewayAttachmentId: string; DryRun: bool = false; Action: string = "DeleteTransitGatewayPeeringAttachment"; Version: string = "2016-11-15"): Recallable = @@ -44620,24 +44647,24 @@ proc call*(call_616502: Call_GetDeleteTransitGatewayPeeringAttachment_616487; ## : The ID of the transit gateway peering attachment. ## Action: string (required) ## Version: string (required) - var query_616503 = newJObject() - add(query_616503, "DryRun", newJBool(DryRun)) - add(query_616503, "TransitGatewayAttachmentId", + var query_616505 = newJObject() + add(query_616505, "DryRun", newJBool(DryRun)) + add(query_616505, "TransitGatewayAttachmentId", newJString(TransitGatewayAttachmentId)) - add(query_616503, "Action", newJString(Action)) - add(query_616503, "Version", newJString(Version)) - result = call_616502.call(nil, query_616503, nil, nil, nil) + add(query_616505, "Action", newJString(Action)) + add(query_616505, "Version", newJString(Version)) + result = call_616504.call(nil, query_616505, nil, nil, nil) -var getDeleteTransitGatewayPeeringAttachment* = Call_GetDeleteTransitGatewayPeeringAttachment_616487( +var getDeleteTransitGatewayPeeringAttachment* = Call_GetDeleteTransitGatewayPeeringAttachment_616489( name: "getDeleteTransitGatewayPeeringAttachment", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteTransitGatewayPeeringAttachment", - validator: validate_GetDeleteTransitGatewayPeeringAttachment_616488, - base: "/", url: url_GetDeleteTransitGatewayPeeringAttachment_616489, + validator: validate_GetDeleteTransitGatewayPeeringAttachment_616490, + base: "/", url: url_GetDeleteTransitGatewayPeeringAttachment_616491, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteTransitGatewayRoute_616540 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteTransitGatewayRoute_616542(protocol: Scheme; host: string; + Call_PostDeleteTransitGatewayRoute_616542 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteTransitGatewayRoute_616544(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -44647,7 +44674,7 @@ proc url_PostDeleteTransitGatewayRoute_616542(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDeleteTransitGatewayRoute_616541(path: JsonNode; query: JsonNode; +proc validate_PostDeleteTransitGatewayRoute_616543(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified route from the specified transit gateway route table. ## @@ -44659,16 +44686,16 @@ proc validate_PostDeleteTransitGatewayRoute_616541(path: JsonNode; query: JsonNo ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616543 = query.getOrDefault("Action") - valid_616543 = validateParameter(valid_616543, JString, required = true, default = newJString( + var valid_616545 = query.getOrDefault("Action") + valid_616545 = validateParameter(valid_616545, JString, required = true, default = newJString( "DeleteTransitGatewayRoute")) - if valid_616543 != nil: - section.add "Action", valid_616543 - var valid_616544 = query.getOrDefault("Version") - valid_616544 = validateParameter(valid_616544, JString, required = true, + if valid_616545 != nil: + section.add "Action", valid_616545 + var valid_616546 = query.getOrDefault("Version") + valid_616546 = validateParameter(valid_616546, JString, required = true, default = newJString("2016-11-15")) - if valid_616544 != nil: - section.add "Version", valid_616544 + if valid_616546 != nil: + section.add "Version", valid_616546 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -44679,41 +44706,41 @@ proc validate_PostDeleteTransitGatewayRoute_616541(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616545 = header.getOrDefault("X-Amz-Signature") - valid_616545 = validateParameter(valid_616545, JString, required = false, - default = nil) - if valid_616545 != nil: - section.add "X-Amz-Signature", valid_616545 - var valid_616546 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616546 = validateParameter(valid_616546, JString, required = false, - default = nil) - if valid_616546 != nil: - section.add "X-Amz-Content-Sha256", valid_616546 - var valid_616547 = header.getOrDefault("X-Amz-Date") + var valid_616547 = header.getOrDefault("X-Amz-Signature") valid_616547 = validateParameter(valid_616547, JString, required = false, default = nil) if valid_616547 != nil: - section.add "X-Amz-Date", valid_616547 - var valid_616548 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616547 + var valid_616548 = header.getOrDefault("X-Amz-Content-Sha256") valid_616548 = validateParameter(valid_616548, JString, required = false, default = nil) if valid_616548 != nil: - section.add "X-Amz-Credential", valid_616548 - var valid_616549 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616548 + var valid_616549 = header.getOrDefault("X-Amz-Date") valid_616549 = validateParameter(valid_616549, JString, required = false, default = nil) if valid_616549 != nil: - section.add "X-Amz-Security-Token", valid_616549 - var valid_616550 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616549 + var valid_616550 = header.getOrDefault("X-Amz-Credential") valid_616550 = validateParameter(valid_616550, JString, required = false, default = nil) if valid_616550 != nil: - section.add "X-Amz-Algorithm", valid_616550 - var valid_616551 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616550 + var valid_616551 = header.getOrDefault("X-Amz-Security-Token") valid_616551 = validateParameter(valid_616551, JString, required = false, default = nil) if valid_616551 != nil: - section.add "X-Amz-SignedHeaders", valid_616551 + section.add "X-Amz-Security-Token", valid_616551 + var valid_616552 = header.getOrDefault("X-Amz-Algorithm") + valid_616552 = validateParameter(valid_616552, JString, required = false, + default = nil) + if valid_616552 != nil: + section.add "X-Amz-Algorithm", valid_616552 + var valid_616553 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616553 = validateParameter(valid_616553, JString, required = false, + default = nil) + if valid_616553 != nil: + section.add "X-Amz-SignedHeaders", valid_616553 result.add "header", section ## parameters in `formData` object: ## TransitGatewayRouteTableId: JString (required) @@ -44724,38 +44751,38 @@ proc validate_PostDeleteTransitGatewayRoute_616541(path: JsonNode; query: JsonNo ## : 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. section = newJObject() assert formData != nil, "formData argument is necessary due to required `TransitGatewayRouteTableId` field" - var valid_616552 = formData.getOrDefault("TransitGatewayRouteTableId") - valid_616552 = validateParameter(valid_616552, JString, required = true, + var valid_616554 = formData.getOrDefault("TransitGatewayRouteTableId") + valid_616554 = validateParameter(valid_616554, JString, required = true, default = nil) - if valid_616552 != nil: - section.add "TransitGatewayRouteTableId", valid_616552 - var valid_616553 = formData.getOrDefault("DestinationCidrBlock") - valid_616553 = validateParameter(valid_616553, JString, required = true, - default = nil) - if valid_616553 != nil: - section.add "DestinationCidrBlock", valid_616553 - var valid_616554 = formData.getOrDefault("DryRun") - valid_616554 = validateParameter(valid_616554, JBool, required = false, default = nil) if valid_616554 != nil: - section.add "DryRun", valid_616554 + section.add "TransitGatewayRouteTableId", valid_616554 + var valid_616555 = formData.getOrDefault("DestinationCidrBlock") + valid_616555 = validateParameter(valid_616555, JString, required = true, + default = nil) + if valid_616555 != nil: + section.add "DestinationCidrBlock", valid_616555 + var valid_616556 = formData.getOrDefault("DryRun") + valid_616556 = validateParameter(valid_616556, JBool, required = false, default = nil) + if valid_616556 != nil: + section.add "DryRun", valid_616556 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616555: Call_PostDeleteTransitGatewayRoute_616540; path: JsonNode; +proc call*(call_616557: Call_PostDeleteTransitGatewayRoute_616542; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified route from the specified transit gateway route table. ## - let valid = call_616555.validator(path, query, header, formData, body) - let scheme = call_616555.pickScheme + let valid = call_616557.validator(path, query, header, formData, body) + let scheme = call_616557.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616555.url(scheme.get, call_616555.host, call_616555.base, - call_616555.route, valid.getOrDefault("path"), + let url = call_616557.url(scheme.get, call_616557.host, call_616557.base, + call_616557.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616555, url, valid) + result = atozHook(call_616557, url, valid) -proc call*(call_616556: Call_PostDeleteTransitGatewayRoute_616540; +proc call*(call_616558: Call_PostDeleteTransitGatewayRoute_616542; TransitGatewayRouteTableId: string; DestinationCidrBlock: string; DryRun: bool = false; Action: string = "DeleteTransitGatewayRoute"; Version: string = "2016-11-15"): Recallable = @@ -44769,25 +44796,25 @@ proc call*(call_616556: Call_PostDeleteTransitGatewayRoute_616540; ## : 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. ## Action: string (required) ## Version: string (required) - var query_616557 = newJObject() - var formData_616558 = newJObject() - add(formData_616558, "TransitGatewayRouteTableId", + var query_616559 = newJObject() + var formData_616560 = newJObject() + add(formData_616560, "TransitGatewayRouteTableId", newJString(TransitGatewayRouteTableId)) - add(formData_616558, "DestinationCidrBlock", newJString(DestinationCidrBlock)) - add(formData_616558, "DryRun", newJBool(DryRun)) - add(query_616557, "Action", newJString(Action)) - add(query_616557, "Version", newJString(Version)) - result = call_616556.call(nil, query_616557, nil, formData_616558, nil) + add(formData_616560, "DestinationCidrBlock", newJString(DestinationCidrBlock)) + add(formData_616560, "DryRun", newJBool(DryRun)) + add(query_616559, "Action", newJString(Action)) + add(query_616559, "Version", newJString(Version)) + result = call_616558.call(nil, query_616559, nil, formData_616560, nil) -var postDeleteTransitGatewayRoute* = Call_PostDeleteTransitGatewayRoute_616540( +var postDeleteTransitGatewayRoute* = Call_PostDeleteTransitGatewayRoute_616542( name: "postDeleteTransitGatewayRoute", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteTransitGatewayRoute", - validator: validate_PostDeleteTransitGatewayRoute_616541, base: "/", - url: url_PostDeleteTransitGatewayRoute_616542, + validator: validate_PostDeleteTransitGatewayRoute_616543, base: "/", + url: url_PostDeleteTransitGatewayRoute_616544, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteTransitGatewayRoute_616522 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteTransitGatewayRoute_616524(protocol: Scheme; host: string; + Call_GetDeleteTransitGatewayRoute_616524 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteTransitGatewayRoute_616526(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -44797,7 +44824,7 @@ proc url_GetDeleteTransitGatewayRoute_616524(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDeleteTransitGatewayRoute_616523(path: JsonNode; query: JsonNode; +proc validate_GetDeleteTransitGatewayRoute_616525(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified route from the specified transit gateway route table. ## @@ -44815,31 +44842,31 @@ proc validate_GetDeleteTransitGatewayRoute_616523(path: JsonNode; query: JsonNod ## DestinationCidrBlock: JString (required) ## : The CIDR range for the route. This must match the CIDR for the route exactly. section = newJObject() - var valid_616525 = query.getOrDefault("DryRun") - valid_616525 = validateParameter(valid_616525, JBool, required = false, default = nil) - if valid_616525 != nil: - section.add "DryRun", valid_616525 + var valid_616527 = query.getOrDefault("DryRun") + valid_616527 = validateParameter(valid_616527, JBool, required = false, default = nil) + if valid_616527 != nil: + section.add "DryRun", valid_616527 assert query != nil, "query argument is necessary due to required `TransitGatewayRouteTableId` field" - var valid_616526 = query.getOrDefault("TransitGatewayRouteTableId") - valid_616526 = validateParameter(valid_616526, JString, required = true, + var valid_616528 = query.getOrDefault("TransitGatewayRouteTableId") + valid_616528 = validateParameter(valid_616528, JString, required = true, default = nil) - if valid_616526 != nil: - section.add "TransitGatewayRouteTableId", valid_616526 - var valid_616527 = query.getOrDefault("Action") - valid_616527 = validateParameter(valid_616527, JString, required = true, default = newJString( + if valid_616528 != nil: + section.add "TransitGatewayRouteTableId", valid_616528 + var valid_616529 = query.getOrDefault("Action") + valid_616529 = validateParameter(valid_616529, JString, required = true, default = newJString( "DeleteTransitGatewayRoute")) - if valid_616527 != nil: - section.add "Action", valid_616527 - var valid_616528 = query.getOrDefault("Version") - valid_616528 = validateParameter(valid_616528, JString, required = true, + if valid_616529 != nil: + section.add "Action", valid_616529 + var valid_616530 = query.getOrDefault("Version") + valid_616530 = validateParameter(valid_616530, JString, required = true, default = newJString("2016-11-15")) - if valid_616528 != nil: - section.add "Version", valid_616528 - var valid_616529 = query.getOrDefault("DestinationCidrBlock") - valid_616529 = validateParameter(valid_616529, JString, required = true, + if valid_616530 != nil: + section.add "Version", valid_616530 + var valid_616531 = query.getOrDefault("DestinationCidrBlock") + valid_616531 = validateParameter(valid_616531, JString, required = true, default = nil) - if valid_616529 != nil: - section.add "DestinationCidrBlock", valid_616529 + if valid_616531 != nil: + section.add "DestinationCidrBlock", valid_616531 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -44850,61 +44877,61 @@ proc validate_GetDeleteTransitGatewayRoute_616523(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616530 = header.getOrDefault("X-Amz-Signature") - valid_616530 = validateParameter(valid_616530, JString, required = false, - default = nil) - if valid_616530 != nil: - section.add "X-Amz-Signature", valid_616530 - var valid_616531 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616531 = validateParameter(valid_616531, JString, required = false, - default = nil) - if valid_616531 != nil: - section.add "X-Amz-Content-Sha256", valid_616531 - var valid_616532 = header.getOrDefault("X-Amz-Date") + var valid_616532 = header.getOrDefault("X-Amz-Signature") valid_616532 = validateParameter(valid_616532, JString, required = false, default = nil) if valid_616532 != nil: - section.add "X-Amz-Date", valid_616532 - var valid_616533 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616532 + var valid_616533 = header.getOrDefault("X-Amz-Content-Sha256") valid_616533 = validateParameter(valid_616533, JString, required = false, default = nil) if valid_616533 != nil: - section.add "X-Amz-Credential", valid_616533 - var valid_616534 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616533 + var valid_616534 = header.getOrDefault("X-Amz-Date") valid_616534 = validateParameter(valid_616534, JString, required = false, default = nil) if valid_616534 != nil: - section.add "X-Amz-Security-Token", valid_616534 - var valid_616535 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616534 + var valid_616535 = header.getOrDefault("X-Amz-Credential") valid_616535 = validateParameter(valid_616535, JString, required = false, default = nil) if valid_616535 != nil: - section.add "X-Amz-Algorithm", valid_616535 - var valid_616536 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616535 + var valid_616536 = header.getOrDefault("X-Amz-Security-Token") valid_616536 = validateParameter(valid_616536, JString, required = false, default = nil) if valid_616536 != nil: - section.add "X-Amz-SignedHeaders", valid_616536 + section.add "X-Amz-Security-Token", valid_616536 + var valid_616537 = header.getOrDefault("X-Amz-Algorithm") + valid_616537 = validateParameter(valid_616537, JString, required = false, + default = nil) + if valid_616537 != nil: + section.add "X-Amz-Algorithm", valid_616537 + var valid_616538 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616538 = validateParameter(valid_616538, JString, required = false, + default = nil) + if valid_616538 != nil: + section.add "X-Amz-SignedHeaders", valid_616538 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616537: Call_GetDeleteTransitGatewayRoute_616522; path: JsonNode; +proc call*(call_616539: Call_GetDeleteTransitGatewayRoute_616524; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified route from the specified transit gateway route table. ## - let valid = call_616537.validator(path, query, header, formData, body) - let scheme = call_616537.pickScheme + let valid = call_616539.validator(path, query, header, formData, body) + let scheme = call_616539.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616537.url(scheme.get, call_616537.host, call_616537.base, - call_616537.route, valid.getOrDefault("path"), + let url = call_616539.url(scheme.get, call_616539.host, call_616539.base, + call_616539.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616537, url, valid) + result = atozHook(call_616539, url, valid) -proc call*(call_616538: Call_GetDeleteTransitGatewayRoute_616522; +proc call*(call_616540: Call_GetDeleteTransitGatewayRoute_616524; TransitGatewayRouteTableId: string; DestinationCidrBlock: string; DryRun: bool = false; Action: string = "DeleteTransitGatewayRoute"; Version: string = "2016-11-15"): Recallable = @@ -44918,24 +44945,24 @@ proc call*(call_616538: Call_GetDeleteTransitGatewayRoute_616522; ## Version: string (required) ## DestinationCidrBlock: string (required) ## : The CIDR range for the route. This must match the CIDR for the route exactly. - var query_616539 = newJObject() - add(query_616539, "DryRun", newJBool(DryRun)) - add(query_616539, "TransitGatewayRouteTableId", + var query_616541 = newJObject() + add(query_616541, "DryRun", newJBool(DryRun)) + add(query_616541, "TransitGatewayRouteTableId", newJString(TransitGatewayRouteTableId)) - add(query_616539, "Action", newJString(Action)) - add(query_616539, "Version", newJString(Version)) - add(query_616539, "DestinationCidrBlock", newJString(DestinationCidrBlock)) - result = call_616538.call(nil, query_616539, nil, nil, nil) + add(query_616541, "Action", newJString(Action)) + add(query_616541, "Version", newJString(Version)) + add(query_616541, "DestinationCidrBlock", newJString(DestinationCidrBlock)) + result = call_616540.call(nil, query_616541, nil, nil, nil) -var getDeleteTransitGatewayRoute* = Call_GetDeleteTransitGatewayRoute_616522( +var getDeleteTransitGatewayRoute* = Call_GetDeleteTransitGatewayRoute_616524( name: "getDeleteTransitGatewayRoute", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteTransitGatewayRoute", - validator: validate_GetDeleteTransitGatewayRoute_616523, base: "/", - url: url_GetDeleteTransitGatewayRoute_616524, + validator: validate_GetDeleteTransitGatewayRoute_616525, base: "/", + url: url_GetDeleteTransitGatewayRoute_616526, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteTransitGatewayRouteTable_616576 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteTransitGatewayRouteTable_616578(protocol: Scheme; host: string; + Call_PostDeleteTransitGatewayRouteTable_616578 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteTransitGatewayRouteTable_616580(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -44945,7 +44972,7 @@ proc url_PostDeleteTransitGatewayRouteTable_616578(protocol: Scheme; host: strin else: result.path = base & route -proc validate_PostDeleteTransitGatewayRouteTable_616577(path: JsonNode; +proc validate_PostDeleteTransitGatewayRouteTable_616579(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified transit gateway route table. You must disassociate the route table from any transit gateway route tables before you can delete it. ## @@ -44957,16 +44984,16 @@ proc validate_PostDeleteTransitGatewayRouteTable_616577(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616579 = query.getOrDefault("Action") - valid_616579 = validateParameter(valid_616579, JString, required = true, default = newJString( + var valid_616581 = query.getOrDefault("Action") + valid_616581 = validateParameter(valid_616581, JString, required = true, default = newJString( "DeleteTransitGatewayRouteTable")) - if valid_616579 != nil: - section.add "Action", valid_616579 - var valid_616580 = query.getOrDefault("Version") - valid_616580 = validateParameter(valid_616580, JString, required = true, + if valid_616581 != nil: + section.add "Action", valid_616581 + var valid_616582 = query.getOrDefault("Version") + valid_616582 = validateParameter(valid_616582, JString, required = true, default = newJString("2016-11-15")) - if valid_616580 != nil: - section.add "Version", valid_616580 + if valid_616582 != nil: + section.add "Version", valid_616582 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -44977,41 +45004,41 @@ proc validate_PostDeleteTransitGatewayRouteTable_616577(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616581 = header.getOrDefault("X-Amz-Signature") - valid_616581 = validateParameter(valid_616581, JString, required = false, - default = nil) - if valid_616581 != nil: - section.add "X-Amz-Signature", valid_616581 - var valid_616582 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616582 = validateParameter(valid_616582, JString, required = false, - default = nil) - if valid_616582 != nil: - section.add "X-Amz-Content-Sha256", valid_616582 - var valid_616583 = header.getOrDefault("X-Amz-Date") + var valid_616583 = header.getOrDefault("X-Amz-Signature") valid_616583 = validateParameter(valid_616583, JString, required = false, default = nil) if valid_616583 != nil: - section.add "X-Amz-Date", valid_616583 - var valid_616584 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616583 + var valid_616584 = header.getOrDefault("X-Amz-Content-Sha256") valid_616584 = validateParameter(valid_616584, JString, required = false, default = nil) if valid_616584 != nil: - section.add "X-Amz-Credential", valid_616584 - var valid_616585 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616584 + var valid_616585 = header.getOrDefault("X-Amz-Date") valid_616585 = validateParameter(valid_616585, JString, required = false, default = nil) if valid_616585 != nil: - section.add "X-Amz-Security-Token", valid_616585 - var valid_616586 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616585 + var valid_616586 = header.getOrDefault("X-Amz-Credential") valid_616586 = validateParameter(valid_616586, JString, required = false, default = nil) if valid_616586 != nil: - section.add "X-Amz-Algorithm", valid_616586 - var valid_616587 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616586 + var valid_616587 = header.getOrDefault("X-Amz-Security-Token") valid_616587 = validateParameter(valid_616587, JString, required = false, default = nil) if valid_616587 != nil: - section.add "X-Amz-SignedHeaders", valid_616587 + section.add "X-Amz-Security-Token", valid_616587 + var valid_616588 = header.getOrDefault("X-Amz-Algorithm") + valid_616588 = validateParameter(valid_616588, JString, required = false, + default = nil) + if valid_616588 != nil: + section.add "X-Amz-Algorithm", valid_616588 + var valid_616589 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616589 = validateParameter(valid_616589, JString, required = false, + default = nil) + if valid_616589 != nil: + section.add "X-Amz-SignedHeaders", valid_616589 result.add "header", section ## parameters in `formData` object: ## TransitGatewayRouteTableId: JString (required) @@ -45020,34 +45047,34 @@ proc validate_PostDeleteTransitGatewayRouteTable_616577(path: JsonNode; ## : 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. section = newJObject() assert formData != nil, "formData argument is necessary due to required `TransitGatewayRouteTableId` field" - var valid_616588 = formData.getOrDefault("TransitGatewayRouteTableId") - valid_616588 = validateParameter(valid_616588, JString, required = true, + var valid_616590 = formData.getOrDefault("TransitGatewayRouteTableId") + valid_616590 = validateParameter(valid_616590, JString, required = true, default = nil) - if valid_616588 != nil: - section.add "TransitGatewayRouteTableId", valid_616588 - var valid_616589 = formData.getOrDefault("DryRun") - valid_616589 = validateParameter(valid_616589, JBool, required = false, default = nil) - if valid_616589 != nil: - section.add "DryRun", valid_616589 + if valid_616590 != nil: + section.add "TransitGatewayRouteTableId", valid_616590 + var valid_616591 = formData.getOrDefault("DryRun") + valid_616591 = validateParameter(valid_616591, JBool, required = false, default = nil) + if valid_616591 != nil: + section.add "DryRun", valid_616591 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616590: Call_PostDeleteTransitGatewayRouteTable_616576; +proc call*(call_616592: Call_PostDeleteTransitGatewayRouteTable_616578; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified transit gateway route table. You must disassociate the route table from any transit gateway route tables before you can delete it. ## - let valid = call_616590.validator(path, query, header, formData, body) - let scheme = call_616590.pickScheme + let valid = call_616592.validator(path, query, header, formData, body) + let scheme = call_616592.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616590.url(scheme.get, call_616590.host, call_616590.base, - call_616590.route, valid.getOrDefault("path"), + let url = call_616592.url(scheme.get, call_616592.host, call_616592.base, + call_616592.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616590, url, valid) + result = atozHook(call_616592, url, valid) -proc call*(call_616591: Call_PostDeleteTransitGatewayRouteTable_616576; +proc call*(call_616593: Call_PostDeleteTransitGatewayRouteTable_616578; TransitGatewayRouteTableId: string; DryRun: bool = false; Action: string = "DeleteTransitGatewayRouteTable"; Version: string = "2016-11-15"): Recallable = @@ -45059,24 +45086,24 @@ proc call*(call_616591: Call_PostDeleteTransitGatewayRouteTable_616576; ## : 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. ## Action: string (required) ## Version: string (required) - var query_616592 = newJObject() - var formData_616593 = newJObject() - add(formData_616593, "TransitGatewayRouteTableId", + var query_616594 = newJObject() + var formData_616595 = newJObject() + add(formData_616595, "TransitGatewayRouteTableId", newJString(TransitGatewayRouteTableId)) - add(formData_616593, "DryRun", newJBool(DryRun)) - add(query_616592, "Action", newJString(Action)) - add(query_616592, "Version", newJString(Version)) - result = call_616591.call(nil, query_616592, nil, formData_616593, nil) + add(formData_616595, "DryRun", newJBool(DryRun)) + add(query_616594, "Action", newJString(Action)) + add(query_616594, "Version", newJString(Version)) + result = call_616593.call(nil, query_616594, nil, formData_616595, nil) -var postDeleteTransitGatewayRouteTable* = Call_PostDeleteTransitGatewayRouteTable_616576( +var postDeleteTransitGatewayRouteTable* = Call_PostDeleteTransitGatewayRouteTable_616578( name: "postDeleteTransitGatewayRouteTable", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteTransitGatewayRouteTable", - validator: validate_PostDeleteTransitGatewayRouteTable_616577, base: "/", - url: url_PostDeleteTransitGatewayRouteTable_616578, + validator: validate_PostDeleteTransitGatewayRouteTable_616579, base: "/", + url: url_PostDeleteTransitGatewayRouteTable_616580, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteTransitGatewayRouteTable_616559 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteTransitGatewayRouteTable_616561(protocol: Scheme; host: string; + Call_GetDeleteTransitGatewayRouteTable_616561 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteTransitGatewayRouteTable_616563(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -45086,7 +45113,7 @@ proc url_GetDeleteTransitGatewayRouteTable_616561(protocol: Scheme; host: string else: result.path = base & route -proc validate_GetDeleteTransitGatewayRouteTable_616560(path: JsonNode; +proc validate_GetDeleteTransitGatewayRouteTable_616562(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified transit gateway route table. You must disassociate the route table from any transit gateway route tables before you can delete it. ## @@ -45102,26 +45129,26 @@ proc validate_GetDeleteTransitGatewayRouteTable_616560(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616562 = query.getOrDefault("DryRun") - valid_616562 = validateParameter(valid_616562, JBool, required = false, default = nil) - if valid_616562 != nil: - section.add "DryRun", valid_616562 + var valid_616564 = query.getOrDefault("DryRun") + valid_616564 = validateParameter(valid_616564, JBool, required = false, default = nil) + if valid_616564 != nil: + section.add "DryRun", valid_616564 assert query != nil, "query argument is necessary due to required `TransitGatewayRouteTableId` field" - var valid_616563 = query.getOrDefault("TransitGatewayRouteTableId") - valid_616563 = validateParameter(valid_616563, JString, required = true, + var valid_616565 = query.getOrDefault("TransitGatewayRouteTableId") + valid_616565 = validateParameter(valid_616565, JString, required = true, default = nil) - if valid_616563 != nil: - section.add "TransitGatewayRouteTableId", valid_616563 - var valid_616564 = query.getOrDefault("Action") - valid_616564 = validateParameter(valid_616564, JString, required = true, default = newJString( + if valid_616565 != nil: + section.add "TransitGatewayRouteTableId", valid_616565 + var valid_616566 = query.getOrDefault("Action") + valid_616566 = validateParameter(valid_616566, JString, required = true, default = newJString( "DeleteTransitGatewayRouteTable")) - if valid_616564 != nil: - section.add "Action", valid_616564 - var valid_616565 = query.getOrDefault("Version") - valid_616565 = validateParameter(valid_616565, JString, required = true, + if valid_616566 != nil: + section.add "Action", valid_616566 + var valid_616567 = query.getOrDefault("Version") + valid_616567 = validateParameter(valid_616567, JString, required = true, default = newJString("2016-11-15")) - if valid_616565 != nil: - section.add "Version", valid_616565 + if valid_616567 != nil: + section.add "Version", valid_616567 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -45132,62 +45159,62 @@ proc validate_GetDeleteTransitGatewayRouteTable_616560(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616566 = header.getOrDefault("X-Amz-Signature") - valid_616566 = validateParameter(valid_616566, JString, required = false, - default = nil) - if valid_616566 != nil: - section.add "X-Amz-Signature", valid_616566 - var valid_616567 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616567 = validateParameter(valid_616567, JString, required = false, - default = nil) - if valid_616567 != nil: - section.add "X-Amz-Content-Sha256", valid_616567 - var valid_616568 = header.getOrDefault("X-Amz-Date") + var valid_616568 = header.getOrDefault("X-Amz-Signature") valid_616568 = validateParameter(valid_616568, JString, required = false, default = nil) if valid_616568 != nil: - section.add "X-Amz-Date", valid_616568 - var valid_616569 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616568 + var valid_616569 = header.getOrDefault("X-Amz-Content-Sha256") valid_616569 = validateParameter(valid_616569, JString, required = false, default = nil) if valid_616569 != nil: - section.add "X-Amz-Credential", valid_616569 - var valid_616570 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616569 + var valid_616570 = header.getOrDefault("X-Amz-Date") valid_616570 = validateParameter(valid_616570, JString, required = false, default = nil) if valid_616570 != nil: - section.add "X-Amz-Security-Token", valid_616570 - var valid_616571 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616570 + var valid_616571 = header.getOrDefault("X-Amz-Credential") valid_616571 = validateParameter(valid_616571, JString, required = false, default = nil) if valid_616571 != nil: - section.add "X-Amz-Algorithm", valid_616571 - var valid_616572 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616571 + var valid_616572 = header.getOrDefault("X-Amz-Security-Token") valid_616572 = validateParameter(valid_616572, JString, required = false, default = nil) if valid_616572 != nil: - section.add "X-Amz-SignedHeaders", valid_616572 + section.add "X-Amz-Security-Token", valid_616572 + var valid_616573 = header.getOrDefault("X-Amz-Algorithm") + valid_616573 = validateParameter(valid_616573, JString, required = false, + default = nil) + if valid_616573 != nil: + section.add "X-Amz-Algorithm", valid_616573 + var valid_616574 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616574 = validateParameter(valid_616574, JString, required = false, + default = nil) + if valid_616574 != nil: + section.add "X-Amz-SignedHeaders", valid_616574 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616573: Call_GetDeleteTransitGatewayRouteTable_616559; +proc call*(call_616575: Call_GetDeleteTransitGatewayRouteTable_616561; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified transit gateway route table. You must disassociate the route table from any transit gateway route tables before you can delete it. ## - let valid = call_616573.validator(path, query, header, formData, body) - let scheme = call_616573.pickScheme + let valid = call_616575.validator(path, query, header, formData, body) + let scheme = call_616575.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616573.url(scheme.get, call_616573.host, call_616573.base, - call_616573.route, valid.getOrDefault("path"), + let url = call_616575.url(scheme.get, call_616575.host, call_616575.base, + call_616575.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616573, url, valid) + result = atozHook(call_616575, url, valid) -proc call*(call_616574: Call_GetDeleteTransitGatewayRouteTable_616559; +proc call*(call_616576: Call_GetDeleteTransitGatewayRouteTable_616561; TransitGatewayRouteTableId: string; DryRun: bool = false; Action: string = "DeleteTransitGatewayRouteTable"; Version: string = "2016-11-15"): Recallable = @@ -45199,23 +45226,23 @@ proc call*(call_616574: Call_GetDeleteTransitGatewayRouteTable_616559; ## : The ID of the transit gateway route table. ## Action: string (required) ## Version: string (required) - var query_616575 = newJObject() - add(query_616575, "DryRun", newJBool(DryRun)) - add(query_616575, "TransitGatewayRouteTableId", + var query_616577 = newJObject() + add(query_616577, "DryRun", newJBool(DryRun)) + add(query_616577, "TransitGatewayRouteTableId", newJString(TransitGatewayRouteTableId)) - add(query_616575, "Action", newJString(Action)) - add(query_616575, "Version", newJString(Version)) - result = call_616574.call(nil, query_616575, nil, nil, nil) + add(query_616577, "Action", newJString(Action)) + add(query_616577, "Version", newJString(Version)) + result = call_616576.call(nil, query_616577, nil, nil, nil) -var getDeleteTransitGatewayRouteTable* = Call_GetDeleteTransitGatewayRouteTable_616559( +var getDeleteTransitGatewayRouteTable* = Call_GetDeleteTransitGatewayRouteTable_616561( name: "getDeleteTransitGatewayRouteTable", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteTransitGatewayRouteTable", - validator: validate_GetDeleteTransitGatewayRouteTable_616560, base: "/", - url: url_GetDeleteTransitGatewayRouteTable_616561, + validator: validate_GetDeleteTransitGatewayRouteTable_616562, base: "/", + url: url_GetDeleteTransitGatewayRouteTable_616563, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteTransitGatewayVpcAttachment_616611 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteTransitGatewayVpcAttachment_616613(protocol: Scheme; + Call_PostDeleteTransitGatewayVpcAttachment_616613 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteTransitGatewayVpcAttachment_616615(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -45225,7 +45252,7 @@ proc url_PostDeleteTransitGatewayVpcAttachment_616613(protocol: Scheme; else: result.path = base & route -proc validate_PostDeleteTransitGatewayVpcAttachment_616612(path: JsonNode; +proc validate_PostDeleteTransitGatewayVpcAttachment_616614(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified VPC attachment. ## @@ -45237,16 +45264,16 @@ proc validate_PostDeleteTransitGatewayVpcAttachment_616612(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616614 = query.getOrDefault("Action") - valid_616614 = validateParameter(valid_616614, JString, required = true, default = newJString( + var valid_616616 = query.getOrDefault("Action") + valid_616616 = validateParameter(valid_616616, JString, required = true, default = newJString( "DeleteTransitGatewayVpcAttachment")) - if valid_616614 != nil: - section.add "Action", valid_616614 - var valid_616615 = query.getOrDefault("Version") - valid_616615 = validateParameter(valid_616615, JString, required = true, + if valid_616616 != nil: + section.add "Action", valid_616616 + var valid_616617 = query.getOrDefault("Version") + valid_616617 = validateParameter(valid_616617, JString, required = true, default = newJString("2016-11-15")) - if valid_616615 != nil: - section.add "Version", valid_616615 + if valid_616617 != nil: + section.add "Version", valid_616617 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -45257,41 +45284,41 @@ proc validate_PostDeleteTransitGatewayVpcAttachment_616612(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616616 = header.getOrDefault("X-Amz-Signature") - valid_616616 = validateParameter(valid_616616, JString, required = false, - default = nil) - if valid_616616 != nil: - section.add "X-Amz-Signature", valid_616616 - var valid_616617 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616617 = validateParameter(valid_616617, JString, required = false, - default = nil) - if valid_616617 != nil: - section.add "X-Amz-Content-Sha256", valid_616617 - var valid_616618 = header.getOrDefault("X-Amz-Date") + var valid_616618 = header.getOrDefault("X-Amz-Signature") valid_616618 = validateParameter(valid_616618, JString, required = false, default = nil) if valid_616618 != nil: - section.add "X-Amz-Date", valid_616618 - var valid_616619 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616618 + var valid_616619 = header.getOrDefault("X-Amz-Content-Sha256") valid_616619 = validateParameter(valid_616619, JString, required = false, default = nil) if valid_616619 != nil: - section.add "X-Amz-Credential", valid_616619 - var valid_616620 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616619 + var valid_616620 = header.getOrDefault("X-Amz-Date") valid_616620 = validateParameter(valid_616620, JString, required = false, default = nil) if valid_616620 != nil: - section.add "X-Amz-Security-Token", valid_616620 - var valid_616621 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616620 + var valid_616621 = header.getOrDefault("X-Amz-Credential") valid_616621 = validateParameter(valid_616621, JString, required = false, default = nil) if valid_616621 != nil: - section.add "X-Amz-Algorithm", valid_616621 - var valid_616622 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616621 + var valid_616622 = header.getOrDefault("X-Amz-Security-Token") valid_616622 = validateParameter(valid_616622, JString, required = false, default = nil) if valid_616622 != nil: - section.add "X-Amz-SignedHeaders", valid_616622 + section.add "X-Amz-Security-Token", valid_616622 + var valid_616623 = header.getOrDefault("X-Amz-Algorithm") + valid_616623 = validateParameter(valid_616623, JString, required = false, + default = nil) + if valid_616623 != nil: + section.add "X-Amz-Algorithm", valid_616623 + var valid_616624 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616624 = validateParameter(valid_616624, JString, required = false, + default = nil) + if valid_616624 != nil: + section.add "X-Amz-SignedHeaders", valid_616624 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -45299,35 +45326,35 @@ proc validate_PostDeleteTransitGatewayVpcAttachment_616612(path: JsonNode; ## TransitGatewayAttachmentId: JString (required) ## : The ID of the attachment. section = newJObject() - var valid_616623 = formData.getOrDefault("DryRun") - valid_616623 = validateParameter(valid_616623, JBool, required = false, default = nil) - if valid_616623 != nil: - section.add "DryRun", valid_616623 + var valid_616625 = formData.getOrDefault("DryRun") + valid_616625 = validateParameter(valid_616625, JBool, required = false, default = nil) + if valid_616625 != nil: + section.add "DryRun", valid_616625 assert formData != nil, "formData argument is necessary due to required `TransitGatewayAttachmentId` field" - var valid_616624 = formData.getOrDefault("TransitGatewayAttachmentId") - valid_616624 = validateParameter(valid_616624, JString, required = true, + var valid_616626 = formData.getOrDefault("TransitGatewayAttachmentId") + valid_616626 = validateParameter(valid_616626, JString, required = true, default = nil) - if valid_616624 != nil: - section.add "TransitGatewayAttachmentId", valid_616624 + if valid_616626 != nil: + section.add "TransitGatewayAttachmentId", valid_616626 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616625: Call_PostDeleteTransitGatewayVpcAttachment_616611; +proc call*(call_616627: Call_PostDeleteTransitGatewayVpcAttachment_616613; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified VPC attachment. ## - let valid = call_616625.validator(path, query, header, formData, body) - let scheme = call_616625.pickScheme + let valid = call_616627.validator(path, query, header, formData, body) + let scheme = call_616627.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616625.url(scheme.get, call_616625.host, call_616625.base, - call_616625.route, valid.getOrDefault("path"), + let url = call_616627.url(scheme.get, call_616627.host, call_616627.base, + call_616627.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616625, url, valid) + result = atozHook(call_616627, url, valid) -proc call*(call_616626: Call_PostDeleteTransitGatewayVpcAttachment_616611; +proc call*(call_616628: Call_PostDeleteTransitGatewayVpcAttachment_616613; TransitGatewayAttachmentId: string; DryRun: bool = false; Action: string = "DeleteTransitGatewayVpcAttachment"; Version: string = "2016-11-15"): Recallable = @@ -45339,25 +45366,25 @@ proc call*(call_616626: Call_PostDeleteTransitGatewayVpcAttachment_616611; ## Version: string (required) ## TransitGatewayAttachmentId: string (required) ## : The ID of the attachment. - var query_616627 = newJObject() - var formData_616628 = newJObject() - add(formData_616628, "DryRun", newJBool(DryRun)) - add(query_616627, "Action", newJString(Action)) - add(query_616627, "Version", newJString(Version)) - add(formData_616628, "TransitGatewayAttachmentId", + var query_616629 = newJObject() + var formData_616630 = newJObject() + add(formData_616630, "DryRun", newJBool(DryRun)) + add(query_616629, "Action", newJString(Action)) + add(query_616629, "Version", newJString(Version)) + add(formData_616630, "TransitGatewayAttachmentId", newJString(TransitGatewayAttachmentId)) - result = call_616626.call(nil, query_616627, nil, formData_616628, nil) + result = call_616628.call(nil, query_616629, nil, formData_616630, nil) -var postDeleteTransitGatewayVpcAttachment* = Call_PostDeleteTransitGatewayVpcAttachment_616611( +var postDeleteTransitGatewayVpcAttachment* = Call_PostDeleteTransitGatewayVpcAttachment_616613( name: "postDeleteTransitGatewayVpcAttachment", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteTransitGatewayVpcAttachment", - validator: validate_PostDeleteTransitGatewayVpcAttachment_616612, base: "/", - url: url_PostDeleteTransitGatewayVpcAttachment_616613, + validator: validate_PostDeleteTransitGatewayVpcAttachment_616614, base: "/", + url: url_PostDeleteTransitGatewayVpcAttachment_616615, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteTransitGatewayVpcAttachment_616594 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteTransitGatewayVpcAttachment_616596(protocol: Scheme; + Call_GetDeleteTransitGatewayVpcAttachment_616596 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteTransitGatewayVpcAttachment_616598(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -45367,7 +45394,7 @@ proc url_GetDeleteTransitGatewayVpcAttachment_616596(protocol: Scheme; else: result.path = base & route -proc validate_GetDeleteTransitGatewayVpcAttachment_616595(path: JsonNode; +proc validate_GetDeleteTransitGatewayVpcAttachment_616597(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified VPC attachment. ## @@ -45383,26 +45410,26 @@ proc validate_GetDeleteTransitGatewayVpcAttachment_616595(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616597 = query.getOrDefault("DryRun") - valid_616597 = validateParameter(valid_616597, JBool, required = false, default = nil) - if valid_616597 != nil: - section.add "DryRun", valid_616597 + var valid_616599 = query.getOrDefault("DryRun") + valid_616599 = validateParameter(valid_616599, JBool, required = false, default = nil) + if valid_616599 != nil: + section.add "DryRun", valid_616599 assert query != nil, "query argument is necessary due to required `TransitGatewayAttachmentId` field" - var valid_616598 = query.getOrDefault("TransitGatewayAttachmentId") - valid_616598 = validateParameter(valid_616598, JString, required = true, + var valid_616600 = query.getOrDefault("TransitGatewayAttachmentId") + valid_616600 = validateParameter(valid_616600, JString, required = true, default = nil) - if valid_616598 != nil: - section.add "TransitGatewayAttachmentId", valid_616598 - var valid_616599 = query.getOrDefault("Action") - valid_616599 = validateParameter(valid_616599, JString, required = true, default = newJString( + if valid_616600 != nil: + section.add "TransitGatewayAttachmentId", valid_616600 + var valid_616601 = query.getOrDefault("Action") + valid_616601 = validateParameter(valid_616601, JString, required = true, default = newJString( "DeleteTransitGatewayVpcAttachment")) - if valid_616599 != nil: - section.add "Action", valid_616599 - var valid_616600 = query.getOrDefault("Version") - valid_616600 = validateParameter(valid_616600, JString, required = true, + if valid_616601 != nil: + section.add "Action", valid_616601 + var valid_616602 = query.getOrDefault("Version") + valid_616602 = validateParameter(valid_616602, JString, required = true, default = newJString("2016-11-15")) - if valid_616600 != nil: - section.add "Version", valid_616600 + if valid_616602 != nil: + section.add "Version", valid_616602 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -45413,62 +45440,62 @@ proc validate_GetDeleteTransitGatewayVpcAttachment_616595(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616601 = header.getOrDefault("X-Amz-Signature") - valid_616601 = validateParameter(valid_616601, JString, required = false, - default = nil) - if valid_616601 != nil: - section.add "X-Amz-Signature", valid_616601 - var valid_616602 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616602 = validateParameter(valid_616602, JString, required = false, - default = nil) - if valid_616602 != nil: - section.add "X-Amz-Content-Sha256", valid_616602 - var valid_616603 = header.getOrDefault("X-Amz-Date") + var valid_616603 = header.getOrDefault("X-Amz-Signature") valid_616603 = validateParameter(valid_616603, JString, required = false, default = nil) if valid_616603 != nil: - section.add "X-Amz-Date", valid_616603 - var valid_616604 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616603 + var valid_616604 = header.getOrDefault("X-Amz-Content-Sha256") valid_616604 = validateParameter(valid_616604, JString, required = false, default = nil) if valid_616604 != nil: - section.add "X-Amz-Credential", valid_616604 - var valid_616605 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616604 + var valid_616605 = header.getOrDefault("X-Amz-Date") valid_616605 = validateParameter(valid_616605, JString, required = false, default = nil) if valid_616605 != nil: - section.add "X-Amz-Security-Token", valid_616605 - var valid_616606 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616605 + var valid_616606 = header.getOrDefault("X-Amz-Credential") valid_616606 = validateParameter(valid_616606, JString, required = false, default = nil) if valid_616606 != nil: - section.add "X-Amz-Algorithm", valid_616606 - var valid_616607 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616606 + var valid_616607 = header.getOrDefault("X-Amz-Security-Token") valid_616607 = validateParameter(valid_616607, JString, required = false, default = nil) if valid_616607 != nil: - section.add "X-Amz-SignedHeaders", valid_616607 + section.add "X-Amz-Security-Token", valid_616607 + var valid_616608 = header.getOrDefault("X-Amz-Algorithm") + valid_616608 = validateParameter(valid_616608, JString, required = false, + default = nil) + if valid_616608 != nil: + section.add "X-Amz-Algorithm", valid_616608 + var valid_616609 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616609 = validateParameter(valid_616609, JString, required = false, + default = nil) + if valid_616609 != nil: + section.add "X-Amz-SignedHeaders", valid_616609 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616608: Call_GetDeleteTransitGatewayVpcAttachment_616594; +proc call*(call_616610: Call_GetDeleteTransitGatewayVpcAttachment_616596; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified VPC attachment. ## - let valid = call_616608.validator(path, query, header, formData, body) - let scheme = call_616608.pickScheme + let valid = call_616610.validator(path, query, header, formData, body) + let scheme = call_616610.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616608.url(scheme.get, call_616608.host, call_616608.base, - call_616608.route, valid.getOrDefault("path"), + let url = call_616610.url(scheme.get, call_616610.host, call_616610.base, + call_616610.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616608, url, valid) + result = atozHook(call_616610, url, valid) -proc call*(call_616609: Call_GetDeleteTransitGatewayVpcAttachment_616594; +proc call*(call_616611: Call_GetDeleteTransitGatewayVpcAttachment_616596; TransitGatewayAttachmentId: string; DryRun: bool = false; Action: string = "DeleteTransitGatewayVpcAttachment"; Version: string = "2016-11-15"): Recallable = @@ -45480,24 +45507,24 @@ proc call*(call_616609: Call_GetDeleteTransitGatewayVpcAttachment_616594; ## : The ID of the attachment. ## Action: string (required) ## Version: string (required) - var query_616610 = newJObject() - add(query_616610, "DryRun", newJBool(DryRun)) - add(query_616610, "TransitGatewayAttachmentId", + var query_616612 = newJObject() + add(query_616612, "DryRun", newJBool(DryRun)) + add(query_616612, "TransitGatewayAttachmentId", newJString(TransitGatewayAttachmentId)) - add(query_616610, "Action", newJString(Action)) - add(query_616610, "Version", newJString(Version)) - result = call_616609.call(nil, query_616610, nil, nil, nil) + add(query_616612, "Action", newJString(Action)) + add(query_616612, "Version", newJString(Version)) + result = call_616611.call(nil, query_616612, nil, nil, nil) -var getDeleteTransitGatewayVpcAttachment* = Call_GetDeleteTransitGatewayVpcAttachment_616594( +var getDeleteTransitGatewayVpcAttachment* = Call_GetDeleteTransitGatewayVpcAttachment_616596( name: "getDeleteTransitGatewayVpcAttachment", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteTransitGatewayVpcAttachment", - validator: validate_GetDeleteTransitGatewayVpcAttachment_616595, base: "/", - url: url_GetDeleteTransitGatewayVpcAttachment_616596, + validator: validate_GetDeleteTransitGatewayVpcAttachment_616597, base: "/", + url: url_GetDeleteTransitGatewayVpcAttachment_616598, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteVolume_616646 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteVolume_616648(protocol: Scheme; host: string; base: string; + Call_PostDeleteVolume_616648 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteVolume_616650(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -45507,7 +45534,7 @@ proc url_PostDeleteVolume_616648(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostDeleteVolume_616647(path: JsonNode; query: JsonNode; +proc validate_PostDeleteVolume_616649(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Deletes the specified EBS volume. The volume must be in the available state (not attached to an instance).

The volume can remain in the deleting state for several minutes.

For more information, see Deleting an Amazon EBS Volume in the Amazon Elastic Compute Cloud User Guide.

@@ -45520,16 +45547,16 @@ proc validate_PostDeleteVolume_616647(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616649 = query.getOrDefault("Action") - valid_616649 = validateParameter(valid_616649, JString, required = true, + var valid_616651 = query.getOrDefault("Action") + valid_616651 = validateParameter(valid_616651, JString, required = true, default = newJString("DeleteVolume")) - if valid_616649 != nil: - section.add "Action", valid_616649 - var valid_616650 = query.getOrDefault("Version") - valid_616650 = validateParameter(valid_616650, JString, required = true, + if valid_616651 != nil: + section.add "Action", valid_616651 + var valid_616652 = query.getOrDefault("Version") + valid_616652 = validateParameter(valid_616652, JString, required = true, default = newJString("2016-11-15")) - if valid_616650 != nil: - section.add "Version", valid_616650 + if valid_616652 != nil: + section.add "Version", valid_616652 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -45540,41 +45567,41 @@ proc validate_PostDeleteVolume_616647(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616651 = header.getOrDefault("X-Amz-Signature") - valid_616651 = validateParameter(valid_616651, JString, required = false, - default = nil) - if valid_616651 != nil: - section.add "X-Amz-Signature", valid_616651 - var valid_616652 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616652 = validateParameter(valid_616652, JString, required = false, - default = nil) - if valid_616652 != nil: - section.add "X-Amz-Content-Sha256", valid_616652 - var valid_616653 = header.getOrDefault("X-Amz-Date") + var valid_616653 = header.getOrDefault("X-Amz-Signature") valid_616653 = validateParameter(valid_616653, JString, required = false, default = nil) if valid_616653 != nil: - section.add "X-Amz-Date", valid_616653 - var valid_616654 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616653 + var valid_616654 = header.getOrDefault("X-Amz-Content-Sha256") valid_616654 = validateParameter(valid_616654, JString, required = false, default = nil) if valid_616654 != nil: - section.add "X-Amz-Credential", valid_616654 - var valid_616655 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616654 + var valid_616655 = header.getOrDefault("X-Amz-Date") valid_616655 = validateParameter(valid_616655, JString, required = false, default = nil) if valid_616655 != nil: - section.add "X-Amz-Security-Token", valid_616655 - var valid_616656 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616655 + var valid_616656 = header.getOrDefault("X-Amz-Credential") valid_616656 = validateParameter(valid_616656, JString, required = false, default = nil) if valid_616656 != nil: - section.add "X-Amz-Algorithm", valid_616656 - var valid_616657 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616656 + var valid_616657 = header.getOrDefault("X-Amz-Security-Token") valid_616657 = validateParameter(valid_616657, JString, required = false, default = nil) if valid_616657 != nil: - section.add "X-Amz-SignedHeaders", valid_616657 + section.add "X-Amz-Security-Token", valid_616657 + var valid_616658 = header.getOrDefault("X-Amz-Algorithm") + valid_616658 = validateParameter(valid_616658, JString, required = false, + default = nil) + if valid_616658 != nil: + section.add "X-Amz-Algorithm", valid_616658 + var valid_616659 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616659 = validateParameter(valid_616659, JString, required = false, + default = nil) + if valid_616659 != nil: + section.add "X-Amz-SignedHeaders", valid_616659 result.add "header", section ## parameters in `formData` object: ## VolumeId: JString (required) @@ -45584,33 +45611,33 @@ proc validate_PostDeleteVolume_616647(path: JsonNode; query: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `VolumeId` field" - var valid_616658 = formData.getOrDefault("VolumeId") - valid_616658 = validateParameter(valid_616658, JString, required = true, + var valid_616660 = formData.getOrDefault("VolumeId") + valid_616660 = validateParameter(valid_616660, JString, required = true, default = nil) - if valid_616658 != nil: - section.add "VolumeId", valid_616658 - var valid_616659 = formData.getOrDefault("DryRun") - valid_616659 = validateParameter(valid_616659, JBool, required = false, default = nil) - if valid_616659 != nil: - section.add "DryRun", valid_616659 + if valid_616660 != nil: + section.add "VolumeId", valid_616660 + var valid_616661 = formData.getOrDefault("DryRun") + valid_616661 = validateParameter(valid_616661, JBool, required = false, default = nil) + if valid_616661 != nil: + section.add "DryRun", valid_616661 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616660: Call_PostDeleteVolume_616646; path: JsonNode; +proc call*(call_616662: Call_PostDeleteVolume_616648; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Deletes the specified EBS volume. The volume must be in the available state (not attached to an instance).

The volume can remain in the deleting state for several minutes.

For more information, see Deleting an Amazon EBS Volume in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_616660.validator(path, query, header, formData, body) - let scheme = call_616660.pickScheme + let valid = call_616662.validator(path, query, header, formData, body) + let scheme = call_616662.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616660.url(scheme.get, call_616660.host, call_616660.base, - call_616660.route, valid.getOrDefault("path"), + let url = call_616662.url(scheme.get, call_616662.host, call_616662.base, + call_616662.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616660, url, valid) + result = atozHook(call_616662, url, valid) -proc call*(call_616661: Call_PostDeleteVolume_616646; VolumeId: string; +proc call*(call_616663: Call_PostDeleteVolume_616648; VolumeId: string; DryRun: bool = false; Action: string = "DeleteVolume"; Version: string = "2016-11-15"): Recallable = ## postDeleteVolume @@ -45621,22 +45648,22 @@ proc call*(call_616661: Call_PostDeleteVolume_616646; VolumeId: string; ## : 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. ## Action: string (required) ## Version: string (required) - var query_616662 = newJObject() - var formData_616663 = newJObject() - add(formData_616663, "VolumeId", newJString(VolumeId)) - add(formData_616663, "DryRun", newJBool(DryRun)) - add(query_616662, "Action", newJString(Action)) - add(query_616662, "Version", newJString(Version)) - result = call_616661.call(nil, query_616662, nil, formData_616663, nil) + var query_616664 = newJObject() + var formData_616665 = newJObject() + add(formData_616665, "VolumeId", newJString(VolumeId)) + add(formData_616665, "DryRun", newJBool(DryRun)) + add(query_616664, "Action", newJString(Action)) + add(query_616664, "Version", newJString(Version)) + result = call_616663.call(nil, query_616664, nil, formData_616665, nil) -var postDeleteVolume* = Call_PostDeleteVolume_616646(name: "postDeleteVolume", +var postDeleteVolume* = Call_PostDeleteVolume_616648(name: "postDeleteVolume", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", - route: "/#Action=DeleteVolume", validator: validate_PostDeleteVolume_616647, - base: "/", url: url_PostDeleteVolume_616648, + route: "/#Action=DeleteVolume", validator: validate_PostDeleteVolume_616649, + base: "/", url: url_PostDeleteVolume_616650, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteVolume_616629 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteVolume_616631(protocol: Scheme; host: string; base: string; + Call_GetDeleteVolume_616631 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteVolume_616633(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -45646,7 +45673,7 @@ proc url_GetDeleteVolume_616631(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetDeleteVolume_616630(path: JsonNode; query: JsonNode; +proc validate_GetDeleteVolume_616632(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Deletes the specified EBS volume. The volume must be in the available state (not attached to an instance).

The volume can remain in the deleting state for several minutes.

For more information, see Deleting an Amazon EBS Volume in the Amazon Elastic Compute Cloud User Guide.

@@ -45663,27 +45690,27 @@ proc validate_GetDeleteVolume_616630(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616632 = query.getOrDefault("DryRun") - valid_616632 = validateParameter(valid_616632, JBool, required = false, default = nil) - if valid_616632 != nil: - section.add "DryRun", valid_616632 + var valid_616634 = query.getOrDefault("DryRun") + valid_616634 = validateParameter(valid_616634, JBool, required = false, default = nil) + if valid_616634 != nil: + section.add "DryRun", valid_616634 assert query != nil, "query argument is necessary due to required `VolumeId` field" - var valid_616633 = query.getOrDefault("VolumeId") - valid_616633 = validateParameter(valid_616633, JString, required = true, + var valid_616635 = query.getOrDefault("VolumeId") + valid_616635 = validateParameter(valid_616635, JString, required = true, default = nil) - if valid_616633 != nil: - section.add "VolumeId", valid_616633 - var valid_616634 = query.getOrDefault("Action") - valid_616634 = validateParameter(valid_616634, JString, required = true, + if valid_616635 != nil: + section.add "VolumeId", valid_616635 + var valid_616636 = query.getOrDefault("Action") + valid_616636 = validateParameter(valid_616636, JString, required = true, default = newJString("DeleteVolume")) - if valid_616634 != nil: - section.add "Action", valid_616634 - var valid_616635 = query.getOrDefault("Version") - valid_616635 = validateParameter(valid_616635, JString, required = true, + if valid_616636 != nil: + section.add "Action", valid_616636 + var valid_616637 = query.getOrDefault("Version") + valid_616637 = validateParameter(valid_616637, JString, required = true, default = newJString("2016-11-15")) - if valid_616635 != nil: - section.add "Version", valid_616635 + if valid_616637 != nil: + section.add "Version", valid_616637 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -45694,61 +45721,61 @@ proc validate_GetDeleteVolume_616630(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616636 = header.getOrDefault("X-Amz-Signature") - valid_616636 = validateParameter(valid_616636, JString, required = false, - default = nil) - if valid_616636 != nil: - section.add "X-Amz-Signature", valid_616636 - var valid_616637 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616637 = validateParameter(valid_616637, JString, required = false, - default = nil) - if valid_616637 != nil: - section.add "X-Amz-Content-Sha256", valid_616637 - var valid_616638 = header.getOrDefault("X-Amz-Date") + var valid_616638 = header.getOrDefault("X-Amz-Signature") valid_616638 = validateParameter(valid_616638, JString, required = false, default = nil) if valid_616638 != nil: - section.add "X-Amz-Date", valid_616638 - var valid_616639 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616638 + var valid_616639 = header.getOrDefault("X-Amz-Content-Sha256") valid_616639 = validateParameter(valid_616639, JString, required = false, default = nil) if valid_616639 != nil: - section.add "X-Amz-Credential", valid_616639 - var valid_616640 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616639 + var valid_616640 = header.getOrDefault("X-Amz-Date") valid_616640 = validateParameter(valid_616640, JString, required = false, default = nil) if valid_616640 != nil: - section.add "X-Amz-Security-Token", valid_616640 - var valid_616641 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616640 + var valid_616641 = header.getOrDefault("X-Amz-Credential") valid_616641 = validateParameter(valid_616641, JString, required = false, default = nil) if valid_616641 != nil: - section.add "X-Amz-Algorithm", valid_616641 - var valid_616642 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616641 + var valid_616642 = header.getOrDefault("X-Amz-Security-Token") valid_616642 = validateParameter(valid_616642, JString, required = false, default = nil) if valid_616642 != nil: - section.add "X-Amz-SignedHeaders", valid_616642 + section.add "X-Amz-Security-Token", valid_616642 + var valid_616643 = header.getOrDefault("X-Amz-Algorithm") + valid_616643 = validateParameter(valid_616643, JString, required = false, + default = nil) + if valid_616643 != nil: + section.add "X-Amz-Algorithm", valid_616643 + var valid_616644 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616644 = validateParameter(valid_616644, JString, required = false, + default = nil) + if valid_616644 != nil: + section.add "X-Amz-SignedHeaders", valid_616644 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616643: Call_GetDeleteVolume_616629; path: JsonNode; query: JsonNode; +proc call*(call_616645: Call_GetDeleteVolume_616631; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Deletes the specified EBS volume. The volume must be in the available state (not attached to an instance).

The volume can remain in the deleting state for several minutes.

For more information, see Deleting an Amazon EBS Volume in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_616643.validator(path, query, header, formData, body) - let scheme = call_616643.pickScheme + let valid = call_616645.validator(path, query, header, formData, body) + let scheme = call_616645.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616643.url(scheme.get, call_616643.host, call_616643.base, - call_616643.route, valid.getOrDefault("path"), + let url = call_616645.url(scheme.get, call_616645.host, call_616645.base, + call_616645.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616643, url, valid) + result = atozHook(call_616645, url, valid) -proc call*(call_616644: Call_GetDeleteVolume_616629; VolumeId: string; +proc call*(call_616646: Call_GetDeleteVolume_616631; VolumeId: string; DryRun: bool = false; Action: string = "DeleteVolume"; Version: string = "2016-11-15"): Recallable = ## getDeleteVolume @@ -45759,20 +45786,20 @@ proc call*(call_616644: Call_GetDeleteVolume_616629; VolumeId: string; ## : The ID of the volume. ## Action: string (required) ## Version: string (required) - var query_616645 = newJObject() - add(query_616645, "DryRun", newJBool(DryRun)) - add(query_616645, "VolumeId", newJString(VolumeId)) - add(query_616645, "Action", newJString(Action)) - add(query_616645, "Version", newJString(Version)) - result = call_616644.call(nil, query_616645, nil, nil, nil) + var query_616647 = newJObject() + add(query_616647, "DryRun", newJBool(DryRun)) + add(query_616647, "VolumeId", newJString(VolumeId)) + add(query_616647, "Action", newJString(Action)) + add(query_616647, "Version", newJString(Version)) + result = call_616646.call(nil, query_616647, nil, nil, nil) -var getDeleteVolume* = Call_GetDeleteVolume_616629(name: "getDeleteVolume", +var getDeleteVolume* = Call_GetDeleteVolume_616631(name: "getDeleteVolume", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=DeleteVolume", validator: validate_GetDeleteVolume_616630, - base: "/", url: url_GetDeleteVolume_616631, schemes: {Scheme.Https, Scheme.Http}) + route: "/#Action=DeleteVolume", validator: validate_GetDeleteVolume_616632, + base: "/", url: url_GetDeleteVolume_616633, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteVpc_616681 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteVpc_616683(protocol: Scheme; host: string; base: string; + Call_PostDeleteVpc_616683 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteVpc_616685(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -45782,7 +45809,7 @@ proc url_PostDeleteVpc_616683(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostDeleteVpc_616682(path: JsonNode; query: JsonNode; header: JsonNode; +proc validate_PostDeleteVpc_616684(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified VPC. You must detach or delete all gateways and resources that are associated with the VPC before you can delete it. For example, you must terminate all instances running in the VPC, delete all security groups associated with the VPC (except the default one), delete all route tables associated with the VPC (except the default one), and so on. ## @@ -45794,16 +45821,16 @@ proc validate_PostDeleteVpc_616682(path: JsonNode; query: JsonNode; header: Json ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616684 = query.getOrDefault("Action") - valid_616684 = validateParameter(valid_616684, JString, required = true, + var valid_616686 = query.getOrDefault("Action") + valid_616686 = validateParameter(valid_616686, JString, required = true, default = newJString("DeleteVpc")) - if valid_616684 != nil: - section.add "Action", valid_616684 - var valid_616685 = query.getOrDefault("Version") - valid_616685 = validateParameter(valid_616685, JString, required = true, + if valid_616686 != nil: + section.add "Action", valid_616686 + var valid_616687 = query.getOrDefault("Version") + valid_616687 = validateParameter(valid_616687, JString, required = true, default = newJString("2016-11-15")) - if valid_616685 != nil: - section.add "Version", valid_616685 + if valid_616687 != nil: + section.add "Version", valid_616687 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -45814,41 +45841,41 @@ proc validate_PostDeleteVpc_616682(path: JsonNode; query: JsonNode; header: Json ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616686 = header.getOrDefault("X-Amz-Signature") - valid_616686 = validateParameter(valid_616686, JString, required = false, - default = nil) - if valid_616686 != nil: - section.add "X-Amz-Signature", valid_616686 - var valid_616687 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616687 = validateParameter(valid_616687, JString, required = false, - default = nil) - if valid_616687 != nil: - section.add "X-Amz-Content-Sha256", valid_616687 - var valid_616688 = header.getOrDefault("X-Amz-Date") + var valid_616688 = header.getOrDefault("X-Amz-Signature") valid_616688 = validateParameter(valid_616688, JString, required = false, default = nil) if valid_616688 != nil: - section.add "X-Amz-Date", valid_616688 - var valid_616689 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616688 + var valid_616689 = header.getOrDefault("X-Amz-Content-Sha256") valid_616689 = validateParameter(valid_616689, JString, required = false, default = nil) if valid_616689 != nil: - section.add "X-Amz-Credential", valid_616689 - var valid_616690 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616689 + var valid_616690 = header.getOrDefault("X-Amz-Date") valid_616690 = validateParameter(valid_616690, JString, required = false, default = nil) if valid_616690 != nil: - section.add "X-Amz-Security-Token", valid_616690 - var valid_616691 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616690 + var valid_616691 = header.getOrDefault("X-Amz-Credential") valid_616691 = validateParameter(valid_616691, JString, required = false, default = nil) if valid_616691 != nil: - section.add "X-Amz-Algorithm", valid_616691 - var valid_616692 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616691 + var valid_616692 = header.getOrDefault("X-Amz-Security-Token") valid_616692 = validateParameter(valid_616692, JString, required = false, default = nil) if valid_616692 != nil: - section.add "X-Amz-SignedHeaders", valid_616692 + section.add "X-Amz-Security-Token", valid_616692 + var valid_616693 = header.getOrDefault("X-Amz-Algorithm") + valid_616693 = validateParameter(valid_616693, JString, required = false, + default = nil) + if valid_616693 != nil: + section.add "X-Amz-Algorithm", valid_616693 + var valid_616694 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616694 = validateParameter(valid_616694, JString, required = false, + default = nil) + if valid_616694 != nil: + section.add "X-Amz-SignedHeaders", valid_616694 result.add "header", section ## parameters in `formData` object: ## VpcId: JString (required) @@ -45858,33 +45885,33 @@ proc validate_PostDeleteVpc_616682(path: JsonNode; query: JsonNode; header: Json section = newJObject() assert formData != nil, "formData argument is necessary due to required `VpcId` field" - var valid_616693 = formData.getOrDefault("VpcId") - valid_616693 = validateParameter(valid_616693, JString, required = true, + var valid_616695 = formData.getOrDefault("VpcId") + valid_616695 = validateParameter(valid_616695, JString, required = true, default = nil) - if valid_616693 != nil: - section.add "VpcId", valid_616693 - var valid_616694 = formData.getOrDefault("DryRun") - valid_616694 = validateParameter(valid_616694, JBool, required = false, default = nil) - if valid_616694 != nil: - section.add "DryRun", valid_616694 + if valid_616695 != nil: + section.add "VpcId", valid_616695 + var valid_616696 = formData.getOrDefault("DryRun") + valid_616696 = validateParameter(valid_616696, JBool, required = false, default = nil) + if valid_616696 != nil: + section.add "DryRun", valid_616696 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616695: Call_PostDeleteVpc_616681; path: JsonNode; query: JsonNode; +proc call*(call_616697: Call_PostDeleteVpc_616683; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified VPC. You must detach or delete all gateways and resources that are associated with the VPC before you can delete it. For example, you must terminate all instances running in the VPC, delete all security groups associated with the VPC (except the default one), delete all route tables associated with the VPC (except the default one), and so on. ## - let valid = call_616695.validator(path, query, header, formData, body) - let scheme = call_616695.pickScheme + let valid = call_616697.validator(path, query, header, formData, body) + let scheme = call_616697.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616695.url(scheme.get, call_616695.host, call_616695.base, - call_616695.route, valid.getOrDefault("path"), + let url = call_616697.url(scheme.get, call_616697.host, call_616697.base, + call_616697.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616695, url, valid) + result = atozHook(call_616697, url, valid) -proc call*(call_616696: Call_PostDeleteVpc_616681; VpcId: string; +proc call*(call_616698: Call_PostDeleteVpc_616683; VpcId: string; DryRun: bool = false; Action: string = "DeleteVpc"; Version: string = "2016-11-15"): Recallable = ## postDeleteVpc @@ -45895,21 +45922,21 @@ proc call*(call_616696: Call_PostDeleteVpc_616681; VpcId: string; ## : 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. ## Action: string (required) ## Version: string (required) - var query_616697 = newJObject() - var formData_616698 = newJObject() - add(formData_616698, "VpcId", newJString(VpcId)) - add(formData_616698, "DryRun", newJBool(DryRun)) - add(query_616697, "Action", newJString(Action)) - add(query_616697, "Version", newJString(Version)) - result = call_616696.call(nil, query_616697, nil, formData_616698, nil) + var query_616699 = newJObject() + var formData_616700 = newJObject() + add(formData_616700, "VpcId", newJString(VpcId)) + add(formData_616700, "DryRun", newJBool(DryRun)) + add(query_616699, "Action", newJString(Action)) + add(query_616699, "Version", newJString(Version)) + result = call_616698.call(nil, query_616699, nil, formData_616700, nil) -var postDeleteVpc* = Call_PostDeleteVpc_616681(name: "postDeleteVpc", +var postDeleteVpc* = Call_PostDeleteVpc_616683(name: "postDeleteVpc", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", - route: "/#Action=DeleteVpc", validator: validate_PostDeleteVpc_616682, - base: "/", url: url_PostDeleteVpc_616683, schemes: {Scheme.Https, Scheme.Http}) + route: "/#Action=DeleteVpc", validator: validate_PostDeleteVpc_616684, + base: "/", url: url_PostDeleteVpc_616685, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteVpc_616664 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteVpc_616666(protocol: Scheme; host: string; base: string; + Call_GetDeleteVpc_616666 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteVpc_616668(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -45919,7 +45946,7 @@ proc url_GetDeleteVpc_616666(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetDeleteVpc_616665(path: JsonNode; query: JsonNode; header: JsonNode; +proc validate_GetDeleteVpc_616667(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified VPC. You must detach or delete all gateways and resources that are associated with the VPC before you can delete it. For example, you must terminate all instances running in the VPC, delete all security groups associated with the VPC (except the default one), delete all route tables associated with the VPC (except the default one), and so on. ## @@ -45935,26 +45962,26 @@ proc validate_GetDeleteVpc_616665(path: JsonNode; query: JsonNode; header: JsonN ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616667 = query.getOrDefault("DryRun") - valid_616667 = validateParameter(valid_616667, JBool, required = false, default = nil) - if valid_616667 != nil: - section.add "DryRun", valid_616667 + var valid_616669 = query.getOrDefault("DryRun") + valid_616669 = validateParameter(valid_616669, JBool, required = false, default = nil) + if valid_616669 != nil: + section.add "DryRun", valid_616669 assert query != nil, "query argument is necessary due to required `VpcId` field" - var valid_616668 = query.getOrDefault("VpcId") - valid_616668 = validateParameter(valid_616668, JString, required = true, + var valid_616670 = query.getOrDefault("VpcId") + valid_616670 = validateParameter(valid_616670, JString, required = true, default = nil) - if valid_616668 != nil: - section.add "VpcId", valid_616668 - var valid_616669 = query.getOrDefault("Action") - valid_616669 = validateParameter(valid_616669, JString, required = true, + if valid_616670 != nil: + section.add "VpcId", valid_616670 + var valid_616671 = query.getOrDefault("Action") + valid_616671 = validateParameter(valid_616671, JString, required = true, default = newJString("DeleteVpc")) - if valid_616669 != nil: - section.add "Action", valid_616669 - var valid_616670 = query.getOrDefault("Version") - valid_616670 = validateParameter(valid_616670, JString, required = true, + if valid_616671 != nil: + section.add "Action", valid_616671 + var valid_616672 = query.getOrDefault("Version") + valid_616672 = validateParameter(valid_616672, JString, required = true, default = newJString("2016-11-15")) - if valid_616670 != nil: - section.add "Version", valid_616670 + if valid_616672 != nil: + section.add "Version", valid_616672 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -45965,61 +45992,61 @@ proc validate_GetDeleteVpc_616665(path: JsonNode; query: JsonNode; header: JsonN ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616671 = header.getOrDefault("X-Amz-Signature") - valid_616671 = validateParameter(valid_616671, JString, required = false, - default = nil) - if valid_616671 != nil: - section.add "X-Amz-Signature", valid_616671 - var valid_616672 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616672 = validateParameter(valid_616672, JString, required = false, - default = nil) - if valid_616672 != nil: - section.add "X-Amz-Content-Sha256", valid_616672 - var valid_616673 = header.getOrDefault("X-Amz-Date") + var valid_616673 = header.getOrDefault("X-Amz-Signature") valid_616673 = validateParameter(valid_616673, JString, required = false, default = nil) if valid_616673 != nil: - section.add "X-Amz-Date", valid_616673 - var valid_616674 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616673 + var valid_616674 = header.getOrDefault("X-Amz-Content-Sha256") valid_616674 = validateParameter(valid_616674, JString, required = false, default = nil) if valid_616674 != nil: - section.add "X-Amz-Credential", valid_616674 - var valid_616675 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616674 + var valid_616675 = header.getOrDefault("X-Amz-Date") valid_616675 = validateParameter(valid_616675, JString, required = false, default = nil) if valid_616675 != nil: - section.add "X-Amz-Security-Token", valid_616675 - var valid_616676 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616675 + var valid_616676 = header.getOrDefault("X-Amz-Credential") valid_616676 = validateParameter(valid_616676, JString, required = false, default = nil) if valid_616676 != nil: - section.add "X-Amz-Algorithm", valid_616676 - var valid_616677 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616676 + var valid_616677 = header.getOrDefault("X-Amz-Security-Token") valid_616677 = validateParameter(valid_616677, JString, required = false, default = nil) if valid_616677 != nil: - section.add "X-Amz-SignedHeaders", valid_616677 + section.add "X-Amz-Security-Token", valid_616677 + var valid_616678 = header.getOrDefault("X-Amz-Algorithm") + valid_616678 = validateParameter(valid_616678, JString, required = false, + default = nil) + if valid_616678 != nil: + section.add "X-Amz-Algorithm", valid_616678 + var valid_616679 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616679 = validateParameter(valid_616679, JString, required = false, + default = nil) + if valid_616679 != nil: + section.add "X-Amz-SignedHeaders", valid_616679 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616678: Call_GetDeleteVpc_616664; path: JsonNode; query: JsonNode; +proc call*(call_616680: Call_GetDeleteVpc_616666; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified VPC. You must detach or delete all gateways and resources that are associated with the VPC before you can delete it. For example, you must terminate all instances running in the VPC, delete all security groups associated with the VPC (except the default one), delete all route tables associated with the VPC (except the default one), and so on. ## - let valid = call_616678.validator(path, query, header, formData, body) - let scheme = call_616678.pickScheme + let valid = call_616680.validator(path, query, header, formData, body) + let scheme = call_616680.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616678.url(scheme.get, call_616678.host, call_616678.base, - call_616678.route, valid.getOrDefault("path"), + let url = call_616680.url(scheme.get, call_616680.host, call_616680.base, + call_616680.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616678, url, valid) + result = atozHook(call_616680, url, valid) -proc call*(call_616679: Call_GetDeleteVpc_616664; VpcId: string; +proc call*(call_616681: Call_GetDeleteVpc_616666; VpcId: string; DryRun: bool = false; Action: string = "DeleteVpc"; Version: string = "2016-11-15"): Recallable = ## getDeleteVpc @@ -46030,20 +46057,20 @@ proc call*(call_616679: Call_GetDeleteVpc_616664; VpcId: string; ## : The ID of the VPC. ## Action: string (required) ## Version: string (required) - var query_616680 = newJObject() - add(query_616680, "DryRun", newJBool(DryRun)) - add(query_616680, "VpcId", newJString(VpcId)) - add(query_616680, "Action", newJString(Action)) - add(query_616680, "Version", newJString(Version)) - result = call_616679.call(nil, query_616680, nil, nil, nil) + var query_616682 = newJObject() + add(query_616682, "DryRun", newJBool(DryRun)) + add(query_616682, "VpcId", newJString(VpcId)) + add(query_616682, "Action", newJString(Action)) + add(query_616682, "Version", newJString(Version)) + result = call_616681.call(nil, query_616682, nil, nil, nil) -var getDeleteVpc* = Call_GetDeleteVpc_616664(name: "getDeleteVpc", +var getDeleteVpc* = Call_GetDeleteVpc_616666(name: "getDeleteVpc", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=DeleteVpc", validator: validate_GetDeleteVpc_616665, base: "/", - url: url_GetDeleteVpc_616666, schemes: {Scheme.Https, Scheme.Http}) + route: "/#Action=DeleteVpc", validator: validate_GetDeleteVpc_616667, base: "/", + url: url_GetDeleteVpc_616668, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteVpcEndpointConnectionNotifications_616716 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteVpcEndpointConnectionNotifications_616718(protocol: Scheme; + Call_PostDeleteVpcEndpointConnectionNotifications_616718 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteVpcEndpointConnectionNotifications_616720(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -46053,7 +46080,7 @@ proc url_PostDeleteVpcEndpointConnectionNotifications_616718(protocol: Scheme; else: result.path = base & route -proc validate_PostDeleteVpcEndpointConnectionNotifications_616717(path: JsonNode; +proc validate_PostDeleteVpcEndpointConnectionNotifications_616719(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes one or more VPC endpoint connection notifications. ## @@ -46065,16 +46092,16 @@ proc validate_PostDeleteVpcEndpointConnectionNotifications_616717(path: JsonNode ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616719 = query.getOrDefault("Action") - valid_616719 = validateParameter(valid_616719, JString, required = true, default = newJString( + var valid_616721 = query.getOrDefault("Action") + valid_616721 = validateParameter(valid_616721, JString, required = true, default = newJString( "DeleteVpcEndpointConnectionNotifications")) - if valid_616719 != nil: - section.add "Action", valid_616719 - var valid_616720 = query.getOrDefault("Version") - valid_616720 = validateParameter(valid_616720, JString, required = true, + if valid_616721 != nil: + section.add "Action", valid_616721 + var valid_616722 = query.getOrDefault("Version") + valid_616722 = validateParameter(valid_616722, JString, required = true, default = newJString("2016-11-15")) - if valid_616720 != nil: - section.add "Version", valid_616720 + if valid_616722 != nil: + section.add "Version", valid_616722 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -46085,41 +46112,41 @@ proc validate_PostDeleteVpcEndpointConnectionNotifications_616717(path: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616721 = header.getOrDefault("X-Amz-Signature") - valid_616721 = validateParameter(valid_616721, JString, required = false, - default = nil) - if valid_616721 != nil: - section.add "X-Amz-Signature", valid_616721 - var valid_616722 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616722 = validateParameter(valid_616722, JString, required = false, - default = nil) - if valid_616722 != nil: - section.add "X-Amz-Content-Sha256", valid_616722 - var valid_616723 = header.getOrDefault("X-Amz-Date") + var valid_616723 = header.getOrDefault("X-Amz-Signature") valid_616723 = validateParameter(valid_616723, JString, required = false, default = nil) if valid_616723 != nil: - section.add "X-Amz-Date", valid_616723 - var valid_616724 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616723 + var valid_616724 = header.getOrDefault("X-Amz-Content-Sha256") valid_616724 = validateParameter(valid_616724, JString, required = false, default = nil) if valid_616724 != nil: - section.add "X-Amz-Credential", valid_616724 - var valid_616725 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616724 + var valid_616725 = header.getOrDefault("X-Amz-Date") valid_616725 = validateParameter(valid_616725, JString, required = false, default = nil) if valid_616725 != nil: - section.add "X-Amz-Security-Token", valid_616725 - var valid_616726 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616725 + var valid_616726 = header.getOrDefault("X-Amz-Credential") valid_616726 = validateParameter(valid_616726, JString, required = false, default = nil) if valid_616726 != nil: - section.add "X-Amz-Algorithm", valid_616726 - var valid_616727 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616726 + var valid_616727 = header.getOrDefault("X-Amz-Security-Token") valid_616727 = validateParameter(valid_616727, JString, required = false, default = nil) if valid_616727 != nil: - section.add "X-Amz-SignedHeaders", valid_616727 + section.add "X-Amz-Security-Token", valid_616727 + var valid_616728 = header.getOrDefault("X-Amz-Algorithm") + valid_616728 = validateParameter(valid_616728, JString, required = false, + default = nil) + if valid_616728 != nil: + section.add "X-Amz-Algorithm", valid_616728 + var valid_616729 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616729 = validateParameter(valid_616729, JString, required = false, + default = nil) + if valid_616729 != nil: + section.add "X-Amz-SignedHeaders", valid_616729 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -46127,34 +46154,34 @@ proc validate_PostDeleteVpcEndpointConnectionNotifications_616717(path: JsonNode ## ConnectionNotificationId: JArray (required) ## : One or more notification IDs. section = newJObject() - var valid_616728 = formData.getOrDefault("DryRun") - valid_616728 = validateParameter(valid_616728, JBool, required = false, default = nil) - if valid_616728 != nil: - section.add "DryRun", valid_616728 + var valid_616730 = formData.getOrDefault("DryRun") + valid_616730 = validateParameter(valid_616730, JBool, required = false, default = nil) + if valid_616730 != nil: + section.add "DryRun", valid_616730 assert formData != nil, "formData argument is necessary due to required `ConnectionNotificationId` field" - var valid_616729 = formData.getOrDefault("ConnectionNotificationId") - valid_616729 = validateParameter(valid_616729, JArray, required = true, default = nil) - if valid_616729 != nil: - section.add "ConnectionNotificationId", valid_616729 + var valid_616731 = formData.getOrDefault("ConnectionNotificationId") + valid_616731 = validateParameter(valid_616731, JArray, required = true, default = nil) + if valid_616731 != nil: + section.add "ConnectionNotificationId", valid_616731 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616730: Call_PostDeleteVpcEndpointConnectionNotifications_616716; +proc call*(call_616732: Call_PostDeleteVpcEndpointConnectionNotifications_616718; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes one or more VPC endpoint connection notifications. ## - let valid = call_616730.validator(path, query, header, formData, body) - let scheme = call_616730.pickScheme + let valid = call_616732.validator(path, query, header, formData, body) + let scheme = call_616732.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616730.url(scheme.get, call_616730.host, call_616730.base, - call_616730.route, valid.getOrDefault("path"), + let url = call_616732.url(scheme.get, call_616732.host, call_616732.base, + call_616732.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616730, url, valid) + result = atozHook(call_616732, url, valid) -proc call*(call_616731: Call_PostDeleteVpcEndpointConnectionNotifications_616716; +proc call*(call_616733: Call_PostDeleteVpcEndpointConnectionNotifications_616718; ConnectionNotificationId: JsonNode; DryRun: bool = false; Action: string = "DeleteVpcEndpointConnectionNotifications"; Version: string = "2016-11-15"): Recallable = @@ -46166,25 +46193,25 @@ proc call*(call_616731: Call_PostDeleteVpcEndpointConnectionNotifications_616716 ## ConnectionNotificationId: JArray (required) ## : One or more notification IDs. ## Version: string (required) - var query_616732 = newJObject() - var formData_616733 = newJObject() - add(formData_616733, "DryRun", newJBool(DryRun)) - add(query_616732, "Action", newJString(Action)) + var query_616734 = newJObject() + var formData_616735 = newJObject() + add(formData_616735, "DryRun", newJBool(DryRun)) + add(query_616734, "Action", newJString(Action)) if ConnectionNotificationId != nil: - formData_616733.add "ConnectionNotificationId", ConnectionNotificationId - add(query_616732, "Version", newJString(Version)) - result = call_616731.call(nil, query_616732, nil, formData_616733, nil) + formData_616735.add "ConnectionNotificationId", ConnectionNotificationId + add(query_616734, "Version", newJString(Version)) + result = call_616733.call(nil, query_616734, nil, formData_616735, nil) -var postDeleteVpcEndpointConnectionNotifications* = Call_PostDeleteVpcEndpointConnectionNotifications_616716( +var postDeleteVpcEndpointConnectionNotifications* = Call_PostDeleteVpcEndpointConnectionNotifications_616718( name: "postDeleteVpcEndpointConnectionNotifications", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteVpcEndpointConnectionNotifications", - validator: validate_PostDeleteVpcEndpointConnectionNotifications_616717, - base: "/", url: url_PostDeleteVpcEndpointConnectionNotifications_616718, + validator: validate_PostDeleteVpcEndpointConnectionNotifications_616719, + base: "/", url: url_PostDeleteVpcEndpointConnectionNotifications_616720, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteVpcEndpointConnectionNotifications_616699 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteVpcEndpointConnectionNotifications_616701(protocol: Scheme; + Call_GetDeleteVpcEndpointConnectionNotifications_616701 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteVpcEndpointConnectionNotifications_616703(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -46194,7 +46221,7 @@ proc url_GetDeleteVpcEndpointConnectionNotifications_616701(protocol: Scheme; else: result.path = base & route -proc validate_GetDeleteVpcEndpointConnectionNotifications_616700(path: JsonNode; +proc validate_GetDeleteVpcEndpointConnectionNotifications_616702(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes one or more VPC endpoint connection notifications. ## @@ -46210,24 +46237,24 @@ proc validate_GetDeleteVpcEndpointConnectionNotifications_616700(path: JsonNode; ## : One or more notification IDs. ## Version: JString (required) section = newJObject() - var valid_616702 = query.getOrDefault("DryRun") - valid_616702 = validateParameter(valid_616702, JBool, required = false, default = nil) - if valid_616702 != nil: - section.add "DryRun", valid_616702 - var valid_616703 = query.getOrDefault("Action") - valid_616703 = validateParameter(valid_616703, JString, required = true, default = newJString( - "DeleteVpcEndpointConnectionNotifications")) - if valid_616703 != nil: - section.add "Action", valid_616703 - var valid_616704 = query.getOrDefault("ConnectionNotificationId") - valid_616704 = validateParameter(valid_616704, JArray, required = true, default = nil) + var valid_616704 = query.getOrDefault("DryRun") + valid_616704 = validateParameter(valid_616704, JBool, required = false, default = nil) if valid_616704 != nil: - section.add "ConnectionNotificationId", valid_616704 - var valid_616705 = query.getOrDefault("Version") - valid_616705 = validateParameter(valid_616705, JString, required = true, - default = newJString("2016-11-15")) + section.add "DryRun", valid_616704 + var valid_616705 = query.getOrDefault("Action") + valid_616705 = validateParameter(valid_616705, JString, required = true, default = newJString( + "DeleteVpcEndpointConnectionNotifications")) if valid_616705 != nil: - section.add "Version", valid_616705 + section.add "Action", valid_616705 + var valid_616706 = query.getOrDefault("ConnectionNotificationId") + valid_616706 = validateParameter(valid_616706, JArray, required = true, default = nil) + if valid_616706 != nil: + section.add "ConnectionNotificationId", valid_616706 + var valid_616707 = query.getOrDefault("Version") + valid_616707 = validateParameter(valid_616707, JString, required = true, + default = newJString("2016-11-15")) + if valid_616707 != nil: + section.add "Version", valid_616707 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -46238,62 +46265,62 @@ proc validate_GetDeleteVpcEndpointConnectionNotifications_616700(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616706 = header.getOrDefault("X-Amz-Signature") - valid_616706 = validateParameter(valid_616706, JString, required = false, - default = nil) - if valid_616706 != nil: - section.add "X-Amz-Signature", valid_616706 - var valid_616707 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616707 = validateParameter(valid_616707, JString, required = false, - default = nil) - if valid_616707 != nil: - section.add "X-Amz-Content-Sha256", valid_616707 - var valid_616708 = header.getOrDefault("X-Amz-Date") + var valid_616708 = header.getOrDefault("X-Amz-Signature") valid_616708 = validateParameter(valid_616708, JString, required = false, default = nil) if valid_616708 != nil: - section.add "X-Amz-Date", valid_616708 - var valid_616709 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616708 + var valid_616709 = header.getOrDefault("X-Amz-Content-Sha256") valid_616709 = validateParameter(valid_616709, JString, required = false, default = nil) if valid_616709 != nil: - section.add "X-Amz-Credential", valid_616709 - var valid_616710 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616709 + var valid_616710 = header.getOrDefault("X-Amz-Date") valid_616710 = validateParameter(valid_616710, JString, required = false, default = nil) if valid_616710 != nil: - section.add "X-Amz-Security-Token", valid_616710 - var valid_616711 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616710 + var valid_616711 = header.getOrDefault("X-Amz-Credential") valid_616711 = validateParameter(valid_616711, JString, required = false, default = nil) if valid_616711 != nil: - section.add "X-Amz-Algorithm", valid_616711 - var valid_616712 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616711 + var valid_616712 = header.getOrDefault("X-Amz-Security-Token") valid_616712 = validateParameter(valid_616712, JString, required = false, default = nil) if valid_616712 != nil: - section.add "X-Amz-SignedHeaders", valid_616712 + section.add "X-Amz-Security-Token", valid_616712 + var valid_616713 = header.getOrDefault("X-Amz-Algorithm") + valid_616713 = validateParameter(valid_616713, JString, required = false, + default = nil) + if valid_616713 != nil: + section.add "X-Amz-Algorithm", valid_616713 + var valid_616714 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616714 = validateParameter(valid_616714, JString, required = false, + default = nil) + if valid_616714 != nil: + section.add "X-Amz-SignedHeaders", valid_616714 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616713: Call_GetDeleteVpcEndpointConnectionNotifications_616699; +proc call*(call_616715: Call_GetDeleteVpcEndpointConnectionNotifications_616701; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes one or more VPC endpoint connection notifications. ## - let valid = call_616713.validator(path, query, header, formData, body) - let scheme = call_616713.pickScheme + let valid = call_616715.validator(path, query, header, formData, body) + let scheme = call_616715.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616713.url(scheme.get, call_616713.host, call_616713.base, - call_616713.route, valid.getOrDefault("path"), + let url = call_616715.url(scheme.get, call_616715.host, call_616715.base, + call_616715.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616713, url, valid) + result = atozHook(call_616715, url, valid) -proc call*(call_616714: Call_GetDeleteVpcEndpointConnectionNotifications_616699; +proc call*(call_616716: Call_GetDeleteVpcEndpointConnectionNotifications_616701; ConnectionNotificationId: JsonNode; DryRun: bool = false; Action: string = "DeleteVpcEndpointConnectionNotifications"; Version: string = "2016-11-15"): Recallable = @@ -46305,24 +46332,24 @@ proc call*(call_616714: Call_GetDeleteVpcEndpointConnectionNotifications_616699; ## ConnectionNotificationId: JArray (required) ## : One or more notification IDs. ## Version: string (required) - var query_616715 = newJObject() - add(query_616715, "DryRun", newJBool(DryRun)) - add(query_616715, "Action", newJString(Action)) + var query_616717 = newJObject() + add(query_616717, "DryRun", newJBool(DryRun)) + add(query_616717, "Action", newJString(Action)) if ConnectionNotificationId != nil: - query_616715.add "ConnectionNotificationId", ConnectionNotificationId - add(query_616715, "Version", newJString(Version)) - result = call_616714.call(nil, query_616715, nil, nil, nil) + query_616717.add "ConnectionNotificationId", ConnectionNotificationId + add(query_616717, "Version", newJString(Version)) + result = call_616716.call(nil, query_616717, nil, nil, nil) -var getDeleteVpcEndpointConnectionNotifications* = Call_GetDeleteVpcEndpointConnectionNotifications_616699( +var getDeleteVpcEndpointConnectionNotifications* = Call_GetDeleteVpcEndpointConnectionNotifications_616701( name: "getDeleteVpcEndpointConnectionNotifications", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteVpcEndpointConnectionNotifications", - validator: validate_GetDeleteVpcEndpointConnectionNotifications_616700, - base: "/", url: url_GetDeleteVpcEndpointConnectionNotifications_616701, + validator: validate_GetDeleteVpcEndpointConnectionNotifications_616702, + base: "/", url: url_GetDeleteVpcEndpointConnectionNotifications_616703, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteVpcEndpointServiceConfigurations_616751 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteVpcEndpointServiceConfigurations_616753(protocol: Scheme; + Call_PostDeleteVpcEndpointServiceConfigurations_616753 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteVpcEndpointServiceConfigurations_616755(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -46332,7 +46359,7 @@ proc url_PostDeleteVpcEndpointServiceConfigurations_616753(protocol: Scheme; else: result.path = base & route -proc validate_PostDeleteVpcEndpointServiceConfigurations_616752(path: JsonNode; +proc validate_PostDeleteVpcEndpointServiceConfigurations_616754(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes one or more VPC endpoint service configurations in your account. Before you delete the endpoint service configuration, you must reject any Available or PendingAcceptance interface endpoint connections that are attached to the service. ## @@ -46344,16 +46371,16 @@ proc validate_PostDeleteVpcEndpointServiceConfigurations_616752(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616754 = query.getOrDefault("Action") - valid_616754 = validateParameter(valid_616754, JString, required = true, default = newJString( + var valid_616756 = query.getOrDefault("Action") + valid_616756 = validateParameter(valid_616756, JString, required = true, default = newJString( "DeleteVpcEndpointServiceConfigurations")) - if valid_616754 != nil: - section.add "Action", valid_616754 - var valid_616755 = query.getOrDefault("Version") - valid_616755 = validateParameter(valid_616755, JString, required = true, + if valid_616756 != nil: + section.add "Action", valid_616756 + var valid_616757 = query.getOrDefault("Version") + valid_616757 = validateParameter(valid_616757, JString, required = true, default = newJString("2016-11-15")) - if valid_616755 != nil: - section.add "Version", valid_616755 + if valid_616757 != nil: + section.add "Version", valid_616757 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -46364,41 +46391,41 @@ proc validate_PostDeleteVpcEndpointServiceConfigurations_616752(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616756 = header.getOrDefault("X-Amz-Signature") - valid_616756 = validateParameter(valid_616756, JString, required = false, - default = nil) - if valid_616756 != nil: - section.add "X-Amz-Signature", valid_616756 - var valid_616757 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616757 = validateParameter(valid_616757, JString, required = false, - default = nil) - if valid_616757 != nil: - section.add "X-Amz-Content-Sha256", valid_616757 - var valid_616758 = header.getOrDefault("X-Amz-Date") + var valid_616758 = header.getOrDefault("X-Amz-Signature") valid_616758 = validateParameter(valid_616758, JString, required = false, default = nil) if valid_616758 != nil: - section.add "X-Amz-Date", valid_616758 - var valid_616759 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616758 + var valid_616759 = header.getOrDefault("X-Amz-Content-Sha256") valid_616759 = validateParameter(valid_616759, JString, required = false, default = nil) if valid_616759 != nil: - section.add "X-Amz-Credential", valid_616759 - var valid_616760 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616759 + var valid_616760 = header.getOrDefault("X-Amz-Date") valid_616760 = validateParameter(valid_616760, JString, required = false, default = nil) if valid_616760 != nil: - section.add "X-Amz-Security-Token", valid_616760 - var valid_616761 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616760 + var valid_616761 = header.getOrDefault("X-Amz-Credential") valid_616761 = validateParameter(valid_616761, JString, required = false, default = nil) if valid_616761 != nil: - section.add "X-Amz-Algorithm", valid_616761 - var valid_616762 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616761 + var valid_616762 = header.getOrDefault("X-Amz-Security-Token") valid_616762 = validateParameter(valid_616762, JString, required = false, default = nil) if valid_616762 != nil: - section.add "X-Amz-SignedHeaders", valid_616762 + section.add "X-Amz-Security-Token", valid_616762 + var valid_616763 = header.getOrDefault("X-Amz-Algorithm") + valid_616763 = validateParameter(valid_616763, JString, required = false, + default = nil) + if valid_616763 != nil: + section.add "X-Amz-Algorithm", valid_616763 + var valid_616764 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616764 = validateParameter(valid_616764, JString, required = false, + default = nil) + if valid_616764 != nil: + section.add "X-Amz-SignedHeaders", valid_616764 result.add "header", section ## parameters in `formData` object: ## ServiceId: JArray (required) @@ -46408,33 +46435,33 @@ proc validate_PostDeleteVpcEndpointServiceConfigurations_616752(path: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `ServiceId` field" - var valid_616763 = formData.getOrDefault("ServiceId") - valid_616763 = validateParameter(valid_616763, JArray, required = true, default = nil) - if valid_616763 != nil: - section.add "ServiceId", valid_616763 - var valid_616764 = formData.getOrDefault("DryRun") - valid_616764 = validateParameter(valid_616764, JBool, required = false, default = nil) - if valid_616764 != nil: - section.add "DryRun", valid_616764 + var valid_616765 = formData.getOrDefault("ServiceId") + valid_616765 = validateParameter(valid_616765, JArray, required = true, default = nil) + if valid_616765 != nil: + section.add "ServiceId", valid_616765 + var valid_616766 = formData.getOrDefault("DryRun") + valid_616766 = validateParameter(valid_616766, JBool, required = false, default = nil) + if valid_616766 != nil: + section.add "DryRun", valid_616766 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616765: Call_PostDeleteVpcEndpointServiceConfigurations_616751; +proc call*(call_616767: Call_PostDeleteVpcEndpointServiceConfigurations_616753; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes one or more VPC endpoint service configurations in your account. Before you delete the endpoint service configuration, you must reject any Available or PendingAcceptance interface endpoint connections that are attached to the service. ## - let valid = call_616765.validator(path, query, header, formData, body) - let scheme = call_616765.pickScheme + let valid = call_616767.validator(path, query, header, formData, body) + let scheme = call_616767.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616765.url(scheme.get, call_616765.host, call_616765.base, - call_616765.route, valid.getOrDefault("path"), + let url = call_616767.url(scheme.get, call_616767.host, call_616767.base, + call_616767.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616765, url, valid) + result = atozHook(call_616767, url, valid) -proc call*(call_616766: Call_PostDeleteVpcEndpointServiceConfigurations_616751; +proc call*(call_616768: Call_PostDeleteVpcEndpointServiceConfigurations_616753; ServiceId: JsonNode; DryRun: bool = false; Action: string = "DeleteVpcEndpointServiceConfigurations"; Version: string = "2016-11-15"): Recallable = @@ -46446,25 +46473,25 @@ proc call*(call_616766: Call_PostDeleteVpcEndpointServiceConfigurations_616751; ## : 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. ## Action: string (required) ## Version: string (required) - var query_616767 = newJObject() - var formData_616768 = newJObject() + var query_616769 = newJObject() + var formData_616770 = newJObject() if ServiceId != nil: - formData_616768.add "ServiceId", ServiceId - add(formData_616768, "DryRun", newJBool(DryRun)) - add(query_616767, "Action", newJString(Action)) - add(query_616767, "Version", newJString(Version)) - result = call_616766.call(nil, query_616767, nil, formData_616768, nil) + formData_616770.add "ServiceId", ServiceId + add(formData_616770, "DryRun", newJBool(DryRun)) + add(query_616769, "Action", newJString(Action)) + add(query_616769, "Version", newJString(Version)) + result = call_616768.call(nil, query_616769, nil, formData_616770, nil) -var postDeleteVpcEndpointServiceConfigurations* = Call_PostDeleteVpcEndpointServiceConfigurations_616751( +var postDeleteVpcEndpointServiceConfigurations* = Call_PostDeleteVpcEndpointServiceConfigurations_616753( name: "postDeleteVpcEndpointServiceConfigurations", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteVpcEndpointServiceConfigurations", - validator: validate_PostDeleteVpcEndpointServiceConfigurations_616752, - base: "/", url: url_PostDeleteVpcEndpointServiceConfigurations_616753, + validator: validate_PostDeleteVpcEndpointServiceConfigurations_616754, + base: "/", url: url_PostDeleteVpcEndpointServiceConfigurations_616755, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteVpcEndpointServiceConfigurations_616734 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteVpcEndpointServiceConfigurations_616736(protocol: Scheme; + Call_GetDeleteVpcEndpointServiceConfigurations_616736 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteVpcEndpointServiceConfigurations_616738(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -46474,7 +46501,7 @@ proc url_GetDeleteVpcEndpointServiceConfigurations_616736(protocol: Scheme; else: result.path = base & route -proc validate_GetDeleteVpcEndpointServiceConfigurations_616735(path: JsonNode; +proc validate_GetDeleteVpcEndpointServiceConfigurations_616737(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes one or more VPC endpoint service configurations in your account. Before you delete the endpoint service configuration, you must reject any Available or PendingAcceptance interface endpoint connections that are attached to the service. ## @@ -46490,26 +46517,26 @@ proc validate_GetDeleteVpcEndpointServiceConfigurations_616735(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616737 = query.getOrDefault("DryRun") - valid_616737 = validateParameter(valid_616737, JBool, required = false, default = nil) - if valid_616737 != nil: - section.add "DryRun", valid_616737 + var valid_616739 = query.getOrDefault("DryRun") + valid_616739 = validateParameter(valid_616739, JBool, required = false, default = nil) + if valid_616739 != nil: + section.add "DryRun", valid_616739 assert query != nil, "query argument is necessary due to required `ServiceId` field" - var valid_616738 = query.getOrDefault("ServiceId") - valid_616738 = validateParameter(valid_616738, JArray, required = true, default = nil) - if valid_616738 != nil: - section.add "ServiceId", valid_616738 - var valid_616739 = query.getOrDefault("Action") - valid_616739 = validateParameter(valid_616739, JString, required = true, default = newJString( + var valid_616740 = query.getOrDefault("ServiceId") + valid_616740 = validateParameter(valid_616740, JArray, required = true, default = nil) + if valid_616740 != nil: + section.add "ServiceId", valid_616740 + var valid_616741 = query.getOrDefault("Action") + valid_616741 = validateParameter(valid_616741, JString, required = true, default = newJString( "DeleteVpcEndpointServiceConfigurations")) - if valid_616739 != nil: - section.add "Action", valid_616739 - var valid_616740 = query.getOrDefault("Version") - valid_616740 = validateParameter(valid_616740, JString, required = true, + if valid_616741 != nil: + section.add "Action", valid_616741 + var valid_616742 = query.getOrDefault("Version") + valid_616742 = validateParameter(valid_616742, JString, required = true, default = newJString("2016-11-15")) - if valid_616740 != nil: - section.add "Version", valid_616740 + if valid_616742 != nil: + section.add "Version", valid_616742 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -46520,62 +46547,62 @@ proc validate_GetDeleteVpcEndpointServiceConfigurations_616735(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616741 = header.getOrDefault("X-Amz-Signature") - valid_616741 = validateParameter(valid_616741, JString, required = false, - default = nil) - if valid_616741 != nil: - section.add "X-Amz-Signature", valid_616741 - var valid_616742 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616742 = validateParameter(valid_616742, JString, required = false, - default = nil) - if valid_616742 != nil: - section.add "X-Amz-Content-Sha256", valid_616742 - var valid_616743 = header.getOrDefault("X-Amz-Date") + var valid_616743 = header.getOrDefault("X-Amz-Signature") valid_616743 = validateParameter(valid_616743, JString, required = false, default = nil) if valid_616743 != nil: - section.add "X-Amz-Date", valid_616743 - var valid_616744 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616743 + var valid_616744 = header.getOrDefault("X-Amz-Content-Sha256") valid_616744 = validateParameter(valid_616744, JString, required = false, default = nil) if valid_616744 != nil: - section.add "X-Amz-Credential", valid_616744 - var valid_616745 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616744 + var valid_616745 = header.getOrDefault("X-Amz-Date") valid_616745 = validateParameter(valid_616745, JString, required = false, default = nil) if valid_616745 != nil: - section.add "X-Amz-Security-Token", valid_616745 - var valid_616746 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616745 + var valid_616746 = header.getOrDefault("X-Amz-Credential") valid_616746 = validateParameter(valid_616746, JString, required = false, default = nil) if valid_616746 != nil: - section.add "X-Amz-Algorithm", valid_616746 - var valid_616747 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616746 + var valid_616747 = header.getOrDefault("X-Amz-Security-Token") valid_616747 = validateParameter(valid_616747, JString, required = false, default = nil) if valid_616747 != nil: - section.add "X-Amz-SignedHeaders", valid_616747 + section.add "X-Amz-Security-Token", valid_616747 + var valid_616748 = header.getOrDefault("X-Amz-Algorithm") + valid_616748 = validateParameter(valid_616748, JString, required = false, + default = nil) + if valid_616748 != nil: + section.add "X-Amz-Algorithm", valid_616748 + var valid_616749 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616749 = validateParameter(valid_616749, JString, required = false, + default = nil) + if valid_616749 != nil: + section.add "X-Amz-SignedHeaders", valid_616749 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616748: Call_GetDeleteVpcEndpointServiceConfigurations_616734; +proc call*(call_616750: Call_GetDeleteVpcEndpointServiceConfigurations_616736; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes one or more VPC endpoint service configurations in your account. Before you delete the endpoint service configuration, you must reject any Available or PendingAcceptance interface endpoint connections that are attached to the service. ## - let valid = call_616748.validator(path, query, header, formData, body) - let scheme = call_616748.pickScheme + let valid = call_616750.validator(path, query, header, formData, body) + let scheme = call_616750.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616748.url(scheme.get, call_616748.host, call_616748.base, - call_616748.route, valid.getOrDefault("path"), + let url = call_616750.url(scheme.get, call_616750.host, call_616750.base, + call_616750.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616748, url, valid) + result = atozHook(call_616750, url, valid) -proc call*(call_616749: Call_GetDeleteVpcEndpointServiceConfigurations_616734; +proc call*(call_616751: Call_GetDeleteVpcEndpointServiceConfigurations_616736; ServiceId: JsonNode; DryRun: bool = false; Action: string = "DeleteVpcEndpointServiceConfigurations"; Version: string = "2016-11-15"): Recallable = @@ -46587,24 +46614,24 @@ proc call*(call_616749: Call_GetDeleteVpcEndpointServiceConfigurations_616734; ## : The IDs of one or more services. ## Action: string (required) ## Version: string (required) - var query_616750 = newJObject() - add(query_616750, "DryRun", newJBool(DryRun)) + var query_616752 = newJObject() + add(query_616752, "DryRun", newJBool(DryRun)) if ServiceId != nil: - query_616750.add "ServiceId", ServiceId - add(query_616750, "Action", newJString(Action)) - add(query_616750, "Version", newJString(Version)) - result = call_616749.call(nil, query_616750, nil, nil, nil) + query_616752.add "ServiceId", ServiceId + add(query_616752, "Action", newJString(Action)) + add(query_616752, "Version", newJString(Version)) + result = call_616751.call(nil, query_616752, nil, nil, nil) -var getDeleteVpcEndpointServiceConfigurations* = Call_GetDeleteVpcEndpointServiceConfigurations_616734( +var getDeleteVpcEndpointServiceConfigurations* = Call_GetDeleteVpcEndpointServiceConfigurations_616736( name: "getDeleteVpcEndpointServiceConfigurations", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteVpcEndpointServiceConfigurations", - validator: validate_GetDeleteVpcEndpointServiceConfigurations_616735, - base: "/", url: url_GetDeleteVpcEndpointServiceConfigurations_616736, + validator: validate_GetDeleteVpcEndpointServiceConfigurations_616737, + base: "/", url: url_GetDeleteVpcEndpointServiceConfigurations_616738, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteVpcEndpoints_616786 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteVpcEndpoints_616788(protocol: Scheme; host: string; base: string; + Call_PostDeleteVpcEndpoints_616788 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteVpcEndpoints_616790(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -46614,7 +46641,7 @@ proc url_PostDeleteVpcEndpoints_616788(protocol: Scheme; host: string; base: str else: result.path = base & route -proc validate_PostDeleteVpcEndpoints_616787(path: JsonNode; query: JsonNode; +proc validate_PostDeleteVpcEndpoints_616789(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes one or more specified VPC endpoints. Deleting a gateway endpoint also deletes the endpoint routes in the route tables that were associated with the endpoint. Deleting an interface endpoint deletes the endpoint network interfaces. ## @@ -46626,16 +46653,16 @@ proc validate_PostDeleteVpcEndpoints_616787(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616789 = query.getOrDefault("Action") - valid_616789 = validateParameter(valid_616789, JString, required = true, + var valid_616791 = query.getOrDefault("Action") + valid_616791 = validateParameter(valid_616791, JString, required = true, default = newJString("DeleteVpcEndpoints")) - if valid_616789 != nil: - section.add "Action", valid_616789 - var valid_616790 = query.getOrDefault("Version") - valid_616790 = validateParameter(valid_616790, JString, required = true, + if valid_616791 != nil: + section.add "Action", valid_616791 + var valid_616792 = query.getOrDefault("Version") + valid_616792 = validateParameter(valid_616792, JString, required = true, default = newJString("2016-11-15")) - if valid_616790 != nil: - section.add "Version", valid_616790 + if valid_616792 != nil: + section.add "Version", valid_616792 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -46646,41 +46673,41 @@ proc validate_PostDeleteVpcEndpoints_616787(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616791 = header.getOrDefault("X-Amz-Signature") - valid_616791 = validateParameter(valid_616791, JString, required = false, - default = nil) - if valid_616791 != nil: - section.add "X-Amz-Signature", valid_616791 - var valid_616792 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616792 = validateParameter(valid_616792, JString, required = false, - default = nil) - if valid_616792 != nil: - section.add "X-Amz-Content-Sha256", valid_616792 - var valid_616793 = header.getOrDefault("X-Amz-Date") + var valid_616793 = header.getOrDefault("X-Amz-Signature") valid_616793 = validateParameter(valid_616793, JString, required = false, default = nil) if valid_616793 != nil: - section.add "X-Amz-Date", valid_616793 - var valid_616794 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616793 + var valid_616794 = header.getOrDefault("X-Amz-Content-Sha256") valid_616794 = validateParameter(valid_616794, JString, required = false, default = nil) if valid_616794 != nil: - section.add "X-Amz-Credential", valid_616794 - var valid_616795 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616794 + var valid_616795 = header.getOrDefault("X-Amz-Date") valid_616795 = validateParameter(valid_616795, JString, required = false, default = nil) if valid_616795 != nil: - section.add "X-Amz-Security-Token", valid_616795 - var valid_616796 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616795 + var valid_616796 = header.getOrDefault("X-Amz-Credential") valid_616796 = validateParameter(valid_616796, JString, required = false, default = nil) if valid_616796 != nil: - section.add "X-Amz-Algorithm", valid_616796 - var valid_616797 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616796 + var valid_616797 = header.getOrDefault("X-Amz-Security-Token") valid_616797 = validateParameter(valid_616797, JString, required = false, default = nil) if valid_616797 != nil: - section.add "X-Amz-SignedHeaders", valid_616797 + section.add "X-Amz-Security-Token", valid_616797 + var valid_616798 = header.getOrDefault("X-Amz-Algorithm") + valid_616798 = validateParameter(valid_616798, JString, required = false, + default = nil) + if valid_616798 != nil: + section.add "X-Amz-Algorithm", valid_616798 + var valid_616799 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616799 = validateParameter(valid_616799, JString, required = false, + default = nil) + if valid_616799 != nil: + section.add "X-Amz-SignedHeaders", valid_616799 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -46688,34 +46715,34 @@ proc validate_PostDeleteVpcEndpoints_616787(path: JsonNode; query: JsonNode; ## VpcEndpointId: JArray (required) ## : One or more VPC endpoint IDs. section = newJObject() - var valid_616798 = formData.getOrDefault("DryRun") - valid_616798 = validateParameter(valid_616798, JBool, required = false, default = nil) - if valid_616798 != nil: - section.add "DryRun", valid_616798 + var valid_616800 = formData.getOrDefault("DryRun") + valid_616800 = validateParameter(valid_616800, JBool, required = false, default = nil) + if valid_616800 != nil: + section.add "DryRun", valid_616800 assert formData != nil, "formData argument is necessary due to required `VpcEndpointId` field" - var valid_616799 = formData.getOrDefault("VpcEndpointId") - valid_616799 = validateParameter(valid_616799, JArray, required = true, default = nil) - if valid_616799 != nil: - section.add "VpcEndpointId", valid_616799 + var valid_616801 = formData.getOrDefault("VpcEndpointId") + valid_616801 = validateParameter(valid_616801, JArray, required = true, default = nil) + if valid_616801 != nil: + section.add "VpcEndpointId", valid_616801 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616800: Call_PostDeleteVpcEndpoints_616786; path: JsonNode; +proc call*(call_616802: Call_PostDeleteVpcEndpoints_616788; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes one or more specified VPC endpoints. Deleting a gateway endpoint also deletes the endpoint routes in the route tables that were associated with the endpoint. Deleting an interface endpoint deletes the endpoint network interfaces. ## - let valid = call_616800.validator(path, query, header, formData, body) - let scheme = call_616800.pickScheme + let valid = call_616802.validator(path, query, header, formData, body) + let scheme = call_616802.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616800.url(scheme.get, call_616800.host, call_616800.base, - call_616800.route, valid.getOrDefault("path"), + let url = call_616802.url(scheme.get, call_616802.host, call_616802.base, + call_616802.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616800, url, valid) + result = atozHook(call_616802, url, valid) -proc call*(call_616801: Call_PostDeleteVpcEndpoints_616786; +proc call*(call_616803: Call_PostDeleteVpcEndpoints_616788; VpcEndpointId: JsonNode; DryRun: bool = false; Action: string = "DeleteVpcEndpoints"; Version: string = "2016-11-15"): Recallable = ## postDeleteVpcEndpoints @@ -46726,23 +46753,23 @@ proc call*(call_616801: Call_PostDeleteVpcEndpoints_616786; ## Version: string (required) ## VpcEndpointId: JArray (required) ## : One or more VPC endpoint IDs. - var query_616802 = newJObject() - var formData_616803 = newJObject() - add(formData_616803, "DryRun", newJBool(DryRun)) - add(query_616802, "Action", newJString(Action)) - add(query_616802, "Version", newJString(Version)) + var query_616804 = newJObject() + var formData_616805 = newJObject() + add(formData_616805, "DryRun", newJBool(DryRun)) + add(query_616804, "Action", newJString(Action)) + add(query_616804, "Version", newJString(Version)) if VpcEndpointId != nil: - formData_616803.add "VpcEndpointId", VpcEndpointId - result = call_616801.call(nil, query_616802, nil, formData_616803, nil) + formData_616805.add "VpcEndpointId", VpcEndpointId + result = call_616803.call(nil, query_616804, nil, formData_616805, nil) -var postDeleteVpcEndpoints* = Call_PostDeleteVpcEndpoints_616786( +var postDeleteVpcEndpoints* = Call_PostDeleteVpcEndpoints_616788( name: "postDeleteVpcEndpoints", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteVpcEndpoints", - validator: validate_PostDeleteVpcEndpoints_616787, base: "/", - url: url_PostDeleteVpcEndpoints_616788, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDeleteVpcEndpoints_616789, base: "/", + url: url_PostDeleteVpcEndpoints_616790, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteVpcEndpoints_616769 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteVpcEndpoints_616771(protocol: Scheme; host: string; base: string; + Call_GetDeleteVpcEndpoints_616771 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteVpcEndpoints_616773(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -46752,7 +46779,7 @@ proc url_GetDeleteVpcEndpoints_616771(protocol: Scheme; host: string; base: stri else: result.path = base & route -proc validate_GetDeleteVpcEndpoints_616770(path: JsonNode; query: JsonNode; +proc validate_GetDeleteVpcEndpoints_616772(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes one or more specified VPC endpoints. Deleting a gateway endpoint also deletes the endpoint routes in the route tables that were associated with the endpoint. Deleting an interface endpoint deletes the endpoint network interfaces. ## @@ -46768,24 +46795,24 @@ proc validate_GetDeleteVpcEndpoints_616770(path: JsonNode; query: JsonNode; ## : One or more VPC endpoint IDs. ## Version: JString (required) section = newJObject() - var valid_616772 = query.getOrDefault("DryRun") - valid_616772 = validateParameter(valid_616772, JBool, required = false, default = nil) - if valid_616772 != nil: - section.add "DryRun", valid_616772 - var valid_616773 = query.getOrDefault("Action") - valid_616773 = validateParameter(valid_616773, JString, required = true, - default = newJString("DeleteVpcEndpoints")) - if valid_616773 != nil: - section.add "Action", valid_616773 - var valid_616774 = query.getOrDefault("VpcEndpointId") - valid_616774 = validateParameter(valid_616774, JArray, required = true, default = nil) + var valid_616774 = query.getOrDefault("DryRun") + valid_616774 = validateParameter(valid_616774, JBool, required = false, default = nil) if valid_616774 != nil: - section.add "VpcEndpointId", valid_616774 - var valid_616775 = query.getOrDefault("Version") + section.add "DryRun", valid_616774 + var valid_616775 = query.getOrDefault("Action") valid_616775 = validateParameter(valid_616775, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("DeleteVpcEndpoints")) if valid_616775 != nil: - section.add "Version", valid_616775 + section.add "Action", valid_616775 + var valid_616776 = query.getOrDefault("VpcEndpointId") + valid_616776 = validateParameter(valid_616776, JArray, required = true, default = nil) + if valid_616776 != nil: + section.add "VpcEndpointId", valid_616776 + var valid_616777 = query.getOrDefault("Version") + valid_616777 = validateParameter(valid_616777, JString, required = true, + default = newJString("2016-11-15")) + if valid_616777 != nil: + section.add "Version", valid_616777 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -46796,61 +46823,61 @@ proc validate_GetDeleteVpcEndpoints_616770(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616776 = header.getOrDefault("X-Amz-Signature") - valid_616776 = validateParameter(valid_616776, JString, required = false, - default = nil) - if valid_616776 != nil: - section.add "X-Amz-Signature", valid_616776 - var valid_616777 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616777 = validateParameter(valid_616777, JString, required = false, - default = nil) - if valid_616777 != nil: - section.add "X-Amz-Content-Sha256", valid_616777 - var valid_616778 = header.getOrDefault("X-Amz-Date") + var valid_616778 = header.getOrDefault("X-Amz-Signature") valid_616778 = validateParameter(valid_616778, JString, required = false, default = nil) if valid_616778 != nil: - section.add "X-Amz-Date", valid_616778 - var valid_616779 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616778 + var valid_616779 = header.getOrDefault("X-Amz-Content-Sha256") valid_616779 = validateParameter(valid_616779, JString, required = false, default = nil) if valid_616779 != nil: - section.add "X-Amz-Credential", valid_616779 - var valid_616780 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616779 + var valid_616780 = header.getOrDefault("X-Amz-Date") valid_616780 = validateParameter(valid_616780, JString, required = false, default = nil) if valid_616780 != nil: - section.add "X-Amz-Security-Token", valid_616780 - var valid_616781 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616780 + var valid_616781 = header.getOrDefault("X-Amz-Credential") valid_616781 = validateParameter(valid_616781, JString, required = false, default = nil) if valid_616781 != nil: - section.add "X-Amz-Algorithm", valid_616781 - var valid_616782 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616781 + var valid_616782 = header.getOrDefault("X-Amz-Security-Token") valid_616782 = validateParameter(valid_616782, JString, required = false, default = nil) if valid_616782 != nil: - section.add "X-Amz-SignedHeaders", valid_616782 + section.add "X-Amz-Security-Token", valid_616782 + var valid_616783 = header.getOrDefault("X-Amz-Algorithm") + valid_616783 = validateParameter(valid_616783, JString, required = false, + default = nil) + if valid_616783 != nil: + section.add "X-Amz-Algorithm", valid_616783 + var valid_616784 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616784 = validateParameter(valid_616784, JString, required = false, + default = nil) + if valid_616784 != nil: + section.add "X-Amz-SignedHeaders", valid_616784 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616783: Call_GetDeleteVpcEndpoints_616769; path: JsonNode; +proc call*(call_616785: Call_GetDeleteVpcEndpoints_616771; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes one or more specified VPC endpoints. Deleting a gateway endpoint also deletes the endpoint routes in the route tables that were associated with the endpoint. Deleting an interface endpoint deletes the endpoint network interfaces. ## - let valid = call_616783.validator(path, query, header, formData, body) - let scheme = call_616783.pickScheme + let valid = call_616785.validator(path, query, header, formData, body) + let scheme = call_616785.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616783.url(scheme.get, call_616783.host, call_616783.base, - call_616783.route, valid.getOrDefault("path"), + let url = call_616785.url(scheme.get, call_616785.host, call_616785.base, + call_616785.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616783, url, valid) + result = atozHook(call_616785, url, valid) -proc call*(call_616784: Call_GetDeleteVpcEndpoints_616769; VpcEndpointId: JsonNode; +proc call*(call_616786: Call_GetDeleteVpcEndpoints_616771; VpcEndpointId: JsonNode; DryRun: bool = false; Action: string = "DeleteVpcEndpoints"; Version: string = "2016-11-15"): Recallable = ## getDeleteVpcEndpoints @@ -46861,22 +46888,22 @@ proc call*(call_616784: Call_GetDeleteVpcEndpoints_616769; VpcEndpointId: JsonNo ## VpcEndpointId: JArray (required) ## : One or more VPC endpoint IDs. ## Version: string (required) - var query_616785 = newJObject() - add(query_616785, "DryRun", newJBool(DryRun)) - add(query_616785, "Action", newJString(Action)) + var query_616787 = newJObject() + add(query_616787, "DryRun", newJBool(DryRun)) + add(query_616787, "Action", newJString(Action)) if VpcEndpointId != nil: - query_616785.add "VpcEndpointId", VpcEndpointId - add(query_616785, "Version", newJString(Version)) - result = call_616784.call(nil, query_616785, nil, nil, nil) + query_616787.add "VpcEndpointId", VpcEndpointId + add(query_616787, "Version", newJString(Version)) + result = call_616786.call(nil, query_616787, nil, nil, nil) -var getDeleteVpcEndpoints* = Call_GetDeleteVpcEndpoints_616769( +var getDeleteVpcEndpoints* = Call_GetDeleteVpcEndpoints_616771( name: "getDeleteVpcEndpoints", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteVpcEndpoints", - validator: validate_GetDeleteVpcEndpoints_616770, base: "/", - url: url_GetDeleteVpcEndpoints_616771, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDeleteVpcEndpoints_616772, base: "/", + url: url_GetDeleteVpcEndpoints_616773, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteVpcPeeringConnection_616821 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteVpcPeeringConnection_616823(protocol: Scheme; host: string; + Call_PostDeleteVpcPeeringConnection_616823 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteVpcPeeringConnection_616825(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -46886,7 +46913,7 @@ proc url_PostDeleteVpcPeeringConnection_616823(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDeleteVpcPeeringConnection_616822(path: JsonNode; +proc validate_PostDeleteVpcPeeringConnection_616824(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes a VPC peering connection. Either the owner of the requester VPC or the owner of the accepter VPC can delete the VPC peering connection if it's in the active state. The owner of the requester VPC can delete a VPC peering connection in the pending-acceptance state. You cannot delete a VPC peering connection that's in the failed state. ## @@ -46898,16 +46925,16 @@ proc validate_PostDeleteVpcPeeringConnection_616822(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616824 = query.getOrDefault("Action") - valid_616824 = validateParameter(valid_616824, JString, required = true, default = newJString( + var valid_616826 = query.getOrDefault("Action") + valid_616826 = validateParameter(valid_616826, JString, required = true, default = newJString( "DeleteVpcPeeringConnection")) - if valid_616824 != nil: - section.add "Action", valid_616824 - var valid_616825 = query.getOrDefault("Version") - valid_616825 = validateParameter(valid_616825, JString, required = true, + if valid_616826 != nil: + section.add "Action", valid_616826 + var valid_616827 = query.getOrDefault("Version") + valid_616827 = validateParameter(valid_616827, JString, required = true, default = newJString("2016-11-15")) - if valid_616825 != nil: - section.add "Version", valid_616825 + if valid_616827 != nil: + section.add "Version", valid_616827 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -46918,41 +46945,41 @@ proc validate_PostDeleteVpcPeeringConnection_616822(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616826 = header.getOrDefault("X-Amz-Signature") - valid_616826 = validateParameter(valid_616826, JString, required = false, - default = nil) - if valid_616826 != nil: - section.add "X-Amz-Signature", valid_616826 - var valid_616827 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616827 = validateParameter(valid_616827, JString, required = false, - default = nil) - if valid_616827 != nil: - section.add "X-Amz-Content-Sha256", valid_616827 - var valid_616828 = header.getOrDefault("X-Amz-Date") + var valid_616828 = header.getOrDefault("X-Amz-Signature") valid_616828 = validateParameter(valid_616828, JString, required = false, default = nil) if valid_616828 != nil: - section.add "X-Amz-Date", valid_616828 - var valid_616829 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616828 + var valid_616829 = header.getOrDefault("X-Amz-Content-Sha256") valid_616829 = validateParameter(valid_616829, JString, required = false, default = nil) if valid_616829 != nil: - section.add "X-Amz-Credential", valid_616829 - var valid_616830 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616829 + var valid_616830 = header.getOrDefault("X-Amz-Date") valid_616830 = validateParameter(valid_616830, JString, required = false, default = nil) if valid_616830 != nil: - section.add "X-Amz-Security-Token", valid_616830 - var valid_616831 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616830 + var valid_616831 = header.getOrDefault("X-Amz-Credential") valid_616831 = validateParameter(valid_616831, JString, required = false, default = nil) if valid_616831 != nil: - section.add "X-Amz-Algorithm", valid_616831 - var valid_616832 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616831 + var valid_616832 = header.getOrDefault("X-Amz-Security-Token") valid_616832 = validateParameter(valid_616832, JString, required = false, default = nil) if valid_616832 != nil: - section.add "X-Amz-SignedHeaders", valid_616832 + section.add "X-Amz-Security-Token", valid_616832 + var valid_616833 = header.getOrDefault("X-Amz-Algorithm") + valid_616833 = validateParameter(valid_616833, JString, required = false, + default = nil) + if valid_616833 != nil: + section.add "X-Amz-Algorithm", valid_616833 + var valid_616834 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616834 = validateParameter(valid_616834, JString, required = false, + default = nil) + if valid_616834 != nil: + section.add "X-Amz-SignedHeaders", valid_616834 result.add "header", section ## parameters in `formData` object: ## VpcPeeringConnectionId: JString (required) @@ -46961,33 +46988,33 @@ proc validate_PostDeleteVpcPeeringConnection_616822(path: JsonNode; ## : 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. section = newJObject() assert formData != nil, "formData argument is necessary due to required `VpcPeeringConnectionId` field" - var valid_616833 = formData.getOrDefault("VpcPeeringConnectionId") - valid_616833 = validateParameter(valid_616833, JString, required = true, + var valid_616835 = formData.getOrDefault("VpcPeeringConnectionId") + valid_616835 = validateParameter(valid_616835, JString, required = true, default = nil) - if valid_616833 != nil: - section.add "VpcPeeringConnectionId", valid_616833 - var valid_616834 = formData.getOrDefault("DryRun") - valid_616834 = validateParameter(valid_616834, JBool, required = false, default = nil) - if valid_616834 != nil: - section.add "DryRun", valid_616834 + if valid_616835 != nil: + section.add "VpcPeeringConnectionId", valid_616835 + var valid_616836 = formData.getOrDefault("DryRun") + valid_616836 = validateParameter(valid_616836, JBool, required = false, default = nil) + if valid_616836 != nil: + section.add "DryRun", valid_616836 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616835: Call_PostDeleteVpcPeeringConnection_616821; path: JsonNode; +proc call*(call_616837: Call_PostDeleteVpcPeeringConnection_616823; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes a VPC peering connection. Either the owner of the requester VPC or the owner of the accepter VPC can delete the VPC peering connection if it's in the active state. The owner of the requester VPC can delete a VPC peering connection in the pending-acceptance state. You cannot delete a VPC peering connection that's in the failed state. ## - let valid = call_616835.validator(path, query, header, formData, body) - let scheme = call_616835.pickScheme + let valid = call_616837.validator(path, query, header, formData, body) + let scheme = call_616837.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616835.url(scheme.get, call_616835.host, call_616835.base, - call_616835.route, valid.getOrDefault("path"), + let url = call_616837.url(scheme.get, call_616837.host, call_616837.base, + call_616837.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616835, url, valid) + result = atozHook(call_616837, url, valid) -proc call*(call_616836: Call_PostDeleteVpcPeeringConnection_616821; +proc call*(call_616838: Call_PostDeleteVpcPeeringConnection_616823; VpcPeeringConnectionId: string; DryRun: bool = false; Action: string = "DeleteVpcPeeringConnection"; Version: string = "2016-11-15"): Recallable = @@ -46999,24 +47026,24 @@ proc call*(call_616836: Call_PostDeleteVpcPeeringConnection_616821; ## : 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. ## Action: string (required) ## Version: string (required) - var query_616837 = newJObject() - var formData_616838 = newJObject() - add(formData_616838, "VpcPeeringConnectionId", + var query_616839 = newJObject() + var formData_616840 = newJObject() + add(formData_616840, "VpcPeeringConnectionId", newJString(VpcPeeringConnectionId)) - add(formData_616838, "DryRun", newJBool(DryRun)) - add(query_616837, "Action", newJString(Action)) - add(query_616837, "Version", newJString(Version)) - result = call_616836.call(nil, query_616837, nil, formData_616838, nil) + add(formData_616840, "DryRun", newJBool(DryRun)) + add(query_616839, "Action", newJString(Action)) + add(query_616839, "Version", newJString(Version)) + result = call_616838.call(nil, query_616839, nil, formData_616840, nil) -var postDeleteVpcPeeringConnection* = Call_PostDeleteVpcPeeringConnection_616821( +var postDeleteVpcPeeringConnection* = Call_PostDeleteVpcPeeringConnection_616823( name: "postDeleteVpcPeeringConnection", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteVpcPeeringConnection", - validator: validate_PostDeleteVpcPeeringConnection_616822, base: "/", - url: url_PostDeleteVpcPeeringConnection_616823, + validator: validate_PostDeleteVpcPeeringConnection_616824, base: "/", + url: url_PostDeleteVpcPeeringConnection_616825, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteVpcPeeringConnection_616804 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteVpcPeeringConnection_616806(protocol: Scheme; host: string; + Call_GetDeleteVpcPeeringConnection_616806 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteVpcPeeringConnection_616808(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -47026,7 +47053,7 @@ proc url_GetDeleteVpcPeeringConnection_616806(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDeleteVpcPeeringConnection_616805(path: JsonNode; query: JsonNode; +proc validate_GetDeleteVpcPeeringConnection_616807(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes a VPC peering connection. Either the owner of the requester VPC or the owner of the accepter VPC can delete the VPC peering connection if it's in the active state. The owner of the requester VPC can delete a VPC peering connection in the pending-acceptance state. You cannot delete a VPC peering connection that's in the failed state. ## @@ -47042,25 +47069,25 @@ proc validate_GetDeleteVpcPeeringConnection_616805(path: JsonNode; query: JsonNo ## : The ID of the VPC peering connection. ## Version: JString (required) section = newJObject() - var valid_616807 = query.getOrDefault("DryRun") - valid_616807 = validateParameter(valid_616807, JBool, required = false, default = nil) - if valid_616807 != nil: - section.add "DryRun", valid_616807 - var valid_616808 = query.getOrDefault("Action") - valid_616808 = validateParameter(valid_616808, JString, required = true, default = newJString( + var valid_616809 = query.getOrDefault("DryRun") + valid_616809 = validateParameter(valid_616809, JBool, required = false, default = nil) + if valid_616809 != nil: + section.add "DryRun", valid_616809 + var valid_616810 = query.getOrDefault("Action") + valid_616810 = validateParameter(valid_616810, JString, required = true, default = newJString( "DeleteVpcPeeringConnection")) - if valid_616808 != nil: - section.add "Action", valid_616808 - var valid_616809 = query.getOrDefault("VpcPeeringConnectionId") - valid_616809 = validateParameter(valid_616809, JString, required = true, + if valid_616810 != nil: + section.add "Action", valid_616810 + var valid_616811 = query.getOrDefault("VpcPeeringConnectionId") + valid_616811 = validateParameter(valid_616811, JString, required = true, default = nil) - if valid_616809 != nil: - section.add "VpcPeeringConnectionId", valid_616809 - var valid_616810 = query.getOrDefault("Version") - valid_616810 = validateParameter(valid_616810, JString, required = true, + if valid_616811 != nil: + section.add "VpcPeeringConnectionId", valid_616811 + var valid_616812 = query.getOrDefault("Version") + valid_616812 = validateParameter(valid_616812, JString, required = true, default = newJString("2016-11-15")) - if valid_616810 != nil: - section.add "Version", valid_616810 + if valid_616812 != nil: + section.add "Version", valid_616812 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -47071,61 +47098,61 @@ proc validate_GetDeleteVpcPeeringConnection_616805(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616811 = header.getOrDefault("X-Amz-Signature") - valid_616811 = validateParameter(valid_616811, JString, required = false, - default = nil) - if valid_616811 != nil: - section.add "X-Amz-Signature", valid_616811 - var valid_616812 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616812 = validateParameter(valid_616812, JString, required = false, - default = nil) - if valid_616812 != nil: - section.add "X-Amz-Content-Sha256", valid_616812 - var valid_616813 = header.getOrDefault("X-Amz-Date") + var valid_616813 = header.getOrDefault("X-Amz-Signature") valid_616813 = validateParameter(valid_616813, JString, required = false, default = nil) if valid_616813 != nil: - section.add "X-Amz-Date", valid_616813 - var valid_616814 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616813 + var valid_616814 = header.getOrDefault("X-Amz-Content-Sha256") valid_616814 = validateParameter(valid_616814, JString, required = false, default = nil) if valid_616814 != nil: - section.add "X-Amz-Credential", valid_616814 - var valid_616815 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616814 + var valid_616815 = header.getOrDefault("X-Amz-Date") valid_616815 = validateParameter(valid_616815, JString, required = false, default = nil) if valid_616815 != nil: - section.add "X-Amz-Security-Token", valid_616815 - var valid_616816 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616815 + var valid_616816 = header.getOrDefault("X-Amz-Credential") valid_616816 = validateParameter(valid_616816, JString, required = false, default = nil) if valid_616816 != nil: - section.add "X-Amz-Algorithm", valid_616816 - var valid_616817 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616816 + var valid_616817 = header.getOrDefault("X-Amz-Security-Token") valid_616817 = validateParameter(valid_616817, JString, required = false, default = nil) if valid_616817 != nil: - section.add "X-Amz-SignedHeaders", valid_616817 + section.add "X-Amz-Security-Token", valid_616817 + var valid_616818 = header.getOrDefault("X-Amz-Algorithm") + valid_616818 = validateParameter(valid_616818, JString, required = false, + default = nil) + if valid_616818 != nil: + section.add "X-Amz-Algorithm", valid_616818 + var valid_616819 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616819 = validateParameter(valid_616819, JString, required = false, + default = nil) + if valid_616819 != nil: + section.add "X-Amz-SignedHeaders", valid_616819 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616818: Call_GetDeleteVpcPeeringConnection_616804; path: JsonNode; +proc call*(call_616820: Call_GetDeleteVpcPeeringConnection_616806; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes a VPC peering connection. Either the owner of the requester VPC or the owner of the accepter VPC can delete the VPC peering connection if it's in the active state. The owner of the requester VPC can delete a VPC peering connection in the pending-acceptance state. You cannot delete a VPC peering connection that's in the failed state. ## - let valid = call_616818.validator(path, query, header, formData, body) - let scheme = call_616818.pickScheme + let valid = call_616820.validator(path, query, header, formData, body) + let scheme = call_616820.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616818.url(scheme.get, call_616818.host, call_616818.base, - call_616818.route, valid.getOrDefault("path"), + let url = call_616820.url(scheme.get, call_616820.host, call_616820.base, + call_616820.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616818, url, valid) + result = atozHook(call_616820, url, valid) -proc call*(call_616819: Call_GetDeleteVpcPeeringConnection_616804; +proc call*(call_616821: Call_GetDeleteVpcPeeringConnection_616806; VpcPeeringConnectionId: string; DryRun: bool = false; Action: string = "DeleteVpcPeeringConnection"; Version: string = "2016-11-15"): Recallable = @@ -47137,22 +47164,22 @@ proc call*(call_616819: Call_GetDeleteVpcPeeringConnection_616804; ## VpcPeeringConnectionId: string (required) ## : The ID of the VPC peering connection. ## Version: string (required) - var query_616820 = newJObject() - add(query_616820, "DryRun", newJBool(DryRun)) - add(query_616820, "Action", newJString(Action)) - add(query_616820, "VpcPeeringConnectionId", newJString(VpcPeeringConnectionId)) - add(query_616820, "Version", newJString(Version)) - result = call_616819.call(nil, query_616820, nil, nil, nil) + var query_616822 = newJObject() + add(query_616822, "DryRun", newJBool(DryRun)) + add(query_616822, "Action", newJString(Action)) + add(query_616822, "VpcPeeringConnectionId", newJString(VpcPeeringConnectionId)) + add(query_616822, "Version", newJString(Version)) + result = call_616821.call(nil, query_616822, nil, nil, nil) -var getDeleteVpcPeeringConnection* = Call_GetDeleteVpcPeeringConnection_616804( +var getDeleteVpcPeeringConnection* = Call_GetDeleteVpcPeeringConnection_616806( name: "getDeleteVpcPeeringConnection", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteVpcPeeringConnection", - validator: validate_GetDeleteVpcPeeringConnection_616805, base: "/", - url: url_GetDeleteVpcPeeringConnection_616806, + validator: validate_GetDeleteVpcPeeringConnection_616807, base: "/", + url: url_GetDeleteVpcPeeringConnection_616808, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteVpnConnection_616856 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteVpnConnection_616858(protocol: Scheme; host: string; base: string; + Call_PostDeleteVpnConnection_616858 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteVpnConnection_616860(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -47163,7 +47190,7 @@ proc url_PostDeleteVpnConnection_616858(protocol: Scheme; host: string; base: st else: result.path = base & route -proc validate_PostDeleteVpnConnection_616857(path: JsonNode; query: JsonNode; +proc validate_PostDeleteVpnConnection_616859(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Deletes the specified VPN connection.

If you're deleting the VPC and its associated components, we recommend that you detach the virtual private gateway from the VPC and delete the VPC before deleting the VPN connection. If you believe that the tunnel credentials for your VPN connection have been compromised, you can delete the VPN connection and create a new one that has new keys, without needing to delete the VPC or virtual private gateway. If you create a new VPN connection, you must reconfigure the customer gateway using the new configuration information returned with the new VPN connection ID.

## @@ -47175,16 +47202,16 @@ proc validate_PostDeleteVpnConnection_616857(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616859 = query.getOrDefault("Action") - valid_616859 = validateParameter(valid_616859, JString, required = true, + var valid_616861 = query.getOrDefault("Action") + valid_616861 = validateParameter(valid_616861, JString, required = true, default = newJString("DeleteVpnConnection")) - if valid_616859 != nil: - section.add "Action", valid_616859 - var valid_616860 = query.getOrDefault("Version") - valid_616860 = validateParameter(valid_616860, JString, required = true, + if valid_616861 != nil: + section.add "Action", valid_616861 + var valid_616862 = query.getOrDefault("Version") + valid_616862 = validateParameter(valid_616862, JString, required = true, default = newJString("2016-11-15")) - if valid_616860 != nil: - section.add "Version", valid_616860 + if valid_616862 != nil: + section.add "Version", valid_616862 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -47195,41 +47222,41 @@ proc validate_PostDeleteVpnConnection_616857(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616861 = header.getOrDefault("X-Amz-Signature") - valid_616861 = validateParameter(valid_616861, JString, required = false, - default = nil) - if valid_616861 != nil: - section.add "X-Amz-Signature", valid_616861 - var valid_616862 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616862 = validateParameter(valid_616862, JString, required = false, - default = nil) - if valid_616862 != nil: - section.add "X-Amz-Content-Sha256", valid_616862 - var valid_616863 = header.getOrDefault("X-Amz-Date") + var valid_616863 = header.getOrDefault("X-Amz-Signature") valid_616863 = validateParameter(valid_616863, JString, required = false, default = nil) if valid_616863 != nil: - section.add "X-Amz-Date", valid_616863 - var valid_616864 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616863 + var valid_616864 = header.getOrDefault("X-Amz-Content-Sha256") valid_616864 = validateParameter(valid_616864, JString, required = false, default = nil) if valid_616864 != nil: - section.add "X-Amz-Credential", valid_616864 - var valid_616865 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616864 + var valid_616865 = header.getOrDefault("X-Amz-Date") valid_616865 = validateParameter(valid_616865, JString, required = false, default = nil) if valid_616865 != nil: - section.add "X-Amz-Security-Token", valid_616865 - var valid_616866 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616865 + var valid_616866 = header.getOrDefault("X-Amz-Credential") valid_616866 = validateParameter(valid_616866, JString, required = false, default = nil) if valid_616866 != nil: - section.add "X-Amz-Algorithm", valid_616866 - var valid_616867 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616866 + var valid_616867 = header.getOrDefault("X-Amz-Security-Token") valid_616867 = validateParameter(valid_616867, JString, required = false, default = nil) if valid_616867 != nil: - section.add "X-Amz-SignedHeaders", valid_616867 + section.add "X-Amz-Security-Token", valid_616867 + var valid_616868 = header.getOrDefault("X-Amz-Algorithm") + valid_616868 = validateParameter(valid_616868, JString, required = false, + default = nil) + if valid_616868 != nil: + section.add "X-Amz-Algorithm", valid_616868 + var valid_616869 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616869 = validateParameter(valid_616869, JString, required = false, + default = nil) + if valid_616869 != nil: + section.add "X-Amz-SignedHeaders", valid_616869 result.add "header", section ## parameters in `formData` object: ## VpnConnectionId: JString (required) @@ -47238,33 +47265,33 @@ proc validate_PostDeleteVpnConnection_616857(path: JsonNode; query: JsonNode; ## : 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. section = newJObject() assert formData != nil, "formData argument is necessary due to required `VpnConnectionId` field" - var valid_616868 = formData.getOrDefault("VpnConnectionId") - valid_616868 = validateParameter(valid_616868, JString, required = true, + var valid_616870 = formData.getOrDefault("VpnConnectionId") + valid_616870 = validateParameter(valid_616870, JString, required = true, default = nil) - if valid_616868 != nil: - section.add "VpnConnectionId", valid_616868 - var valid_616869 = formData.getOrDefault("DryRun") - valid_616869 = validateParameter(valid_616869, JBool, required = false, default = nil) - if valid_616869 != nil: - section.add "DryRun", valid_616869 + if valid_616870 != nil: + section.add "VpnConnectionId", valid_616870 + var valid_616871 = formData.getOrDefault("DryRun") + valid_616871 = validateParameter(valid_616871, JBool, required = false, default = nil) + if valid_616871 != nil: + section.add "DryRun", valid_616871 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616870: Call_PostDeleteVpnConnection_616856; path: JsonNode; +proc call*(call_616872: Call_PostDeleteVpnConnection_616858; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Deletes the specified VPN connection.

If you're deleting the VPC and its associated components, we recommend that you detach the virtual private gateway from the VPC and delete the VPC before deleting the VPN connection. If you believe that the tunnel credentials for your VPN connection have been compromised, you can delete the VPN connection and create a new one that has new keys, without needing to delete the VPC or virtual private gateway. If you create a new VPN connection, you must reconfigure the customer gateway using the new configuration information returned with the new VPN connection ID.

## - let valid = call_616870.validator(path, query, header, formData, body) - let scheme = call_616870.pickScheme + let valid = call_616872.validator(path, query, header, formData, body) + let scheme = call_616872.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616870.url(scheme.get, call_616870.host, call_616870.base, - call_616870.route, valid.getOrDefault("path"), + let url = call_616872.url(scheme.get, call_616872.host, call_616872.base, + call_616872.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616870, url, valid) + result = atozHook(call_616872, url, valid) -proc call*(call_616871: Call_PostDeleteVpnConnection_616856; +proc call*(call_616873: Call_PostDeleteVpnConnection_616858; VpnConnectionId: string; DryRun: bool = false; Action: string = "DeleteVpnConnection"; Version: string = "2016-11-15"): Recallable = ## postDeleteVpnConnection @@ -47275,22 +47302,22 @@ proc call*(call_616871: Call_PostDeleteVpnConnection_616856; ## : 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. ## Action: string (required) ## Version: string (required) - var query_616872 = newJObject() - var formData_616873 = newJObject() - add(formData_616873, "VpnConnectionId", newJString(VpnConnectionId)) - add(formData_616873, "DryRun", newJBool(DryRun)) - add(query_616872, "Action", newJString(Action)) - add(query_616872, "Version", newJString(Version)) - result = call_616871.call(nil, query_616872, nil, formData_616873, nil) + var query_616874 = newJObject() + var formData_616875 = newJObject() + add(formData_616875, "VpnConnectionId", newJString(VpnConnectionId)) + add(formData_616875, "DryRun", newJBool(DryRun)) + add(query_616874, "Action", newJString(Action)) + add(query_616874, "Version", newJString(Version)) + result = call_616873.call(nil, query_616874, nil, formData_616875, nil) -var postDeleteVpnConnection* = Call_PostDeleteVpnConnection_616856( +var postDeleteVpnConnection* = Call_PostDeleteVpnConnection_616858( name: "postDeleteVpnConnection", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteVpnConnection", - validator: validate_PostDeleteVpnConnection_616857, base: "/", - url: url_PostDeleteVpnConnection_616858, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDeleteVpnConnection_616859, base: "/", + url: url_PostDeleteVpnConnection_616860, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteVpnConnection_616839 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteVpnConnection_616841(protocol: Scheme; host: string; base: string; + Call_GetDeleteVpnConnection_616841 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteVpnConnection_616843(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -47300,7 +47327,7 @@ proc url_GetDeleteVpnConnection_616841(protocol: Scheme; host: string; base: str else: result.path = base & route -proc validate_GetDeleteVpnConnection_616840(path: JsonNode; query: JsonNode; +proc validate_GetDeleteVpnConnection_616842(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Deletes the specified VPN connection.

If you're deleting the VPC and its associated components, we recommend that you detach the virtual private gateway from the VPC and delete the VPC before deleting the VPN connection. If you believe that the tunnel credentials for your VPN connection have been compromised, you can delete the VPN connection and create a new one that has new keys, without needing to delete the VPC or virtual private gateway. If you create a new VPN connection, you must reconfigure the customer gateway using the new configuration information returned with the new VPN connection ID.

## @@ -47316,27 +47343,27 @@ proc validate_GetDeleteVpnConnection_616840(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616842 = query.getOrDefault("DryRun") - valid_616842 = validateParameter(valid_616842, JBool, required = false, default = nil) - if valid_616842 != nil: - section.add "DryRun", valid_616842 + var valid_616844 = query.getOrDefault("DryRun") + valid_616844 = validateParameter(valid_616844, JBool, required = false, default = nil) + if valid_616844 != nil: + section.add "DryRun", valid_616844 assert query != nil, "query argument is necessary due to required `VpnConnectionId` field" - var valid_616843 = query.getOrDefault("VpnConnectionId") - valid_616843 = validateParameter(valid_616843, JString, required = true, + var valid_616845 = query.getOrDefault("VpnConnectionId") + valid_616845 = validateParameter(valid_616845, JString, required = true, default = nil) - if valid_616843 != nil: - section.add "VpnConnectionId", valid_616843 - var valid_616844 = query.getOrDefault("Action") - valid_616844 = validateParameter(valid_616844, JString, required = true, + if valid_616845 != nil: + section.add "VpnConnectionId", valid_616845 + var valid_616846 = query.getOrDefault("Action") + valid_616846 = validateParameter(valid_616846, JString, required = true, default = newJString("DeleteVpnConnection")) - if valid_616844 != nil: - section.add "Action", valid_616844 - var valid_616845 = query.getOrDefault("Version") - valid_616845 = validateParameter(valid_616845, JString, required = true, + if valid_616846 != nil: + section.add "Action", valid_616846 + var valid_616847 = query.getOrDefault("Version") + valid_616847 = validateParameter(valid_616847, JString, required = true, default = newJString("2016-11-15")) - if valid_616845 != nil: - section.add "Version", valid_616845 + if valid_616847 != nil: + section.add "Version", valid_616847 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -47347,61 +47374,61 @@ proc validate_GetDeleteVpnConnection_616840(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616846 = header.getOrDefault("X-Amz-Signature") - valid_616846 = validateParameter(valid_616846, JString, required = false, - default = nil) - if valid_616846 != nil: - section.add "X-Amz-Signature", valid_616846 - var valid_616847 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616847 = validateParameter(valid_616847, JString, required = false, - default = nil) - if valid_616847 != nil: - section.add "X-Amz-Content-Sha256", valid_616847 - var valid_616848 = header.getOrDefault("X-Amz-Date") + var valid_616848 = header.getOrDefault("X-Amz-Signature") valid_616848 = validateParameter(valid_616848, JString, required = false, default = nil) if valid_616848 != nil: - section.add "X-Amz-Date", valid_616848 - var valid_616849 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616848 + var valid_616849 = header.getOrDefault("X-Amz-Content-Sha256") valid_616849 = validateParameter(valid_616849, JString, required = false, default = nil) if valid_616849 != nil: - section.add "X-Amz-Credential", valid_616849 - var valid_616850 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616849 + var valid_616850 = header.getOrDefault("X-Amz-Date") valid_616850 = validateParameter(valid_616850, JString, required = false, default = nil) if valid_616850 != nil: - section.add "X-Amz-Security-Token", valid_616850 - var valid_616851 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616850 + var valid_616851 = header.getOrDefault("X-Amz-Credential") valid_616851 = validateParameter(valid_616851, JString, required = false, default = nil) if valid_616851 != nil: - section.add "X-Amz-Algorithm", valid_616851 - var valid_616852 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616851 + var valid_616852 = header.getOrDefault("X-Amz-Security-Token") valid_616852 = validateParameter(valid_616852, JString, required = false, default = nil) if valid_616852 != nil: - section.add "X-Amz-SignedHeaders", valid_616852 + section.add "X-Amz-Security-Token", valid_616852 + var valid_616853 = header.getOrDefault("X-Amz-Algorithm") + valid_616853 = validateParameter(valid_616853, JString, required = false, + default = nil) + if valid_616853 != nil: + section.add "X-Amz-Algorithm", valid_616853 + var valid_616854 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616854 = validateParameter(valid_616854, JString, required = false, + default = nil) + if valid_616854 != nil: + section.add "X-Amz-SignedHeaders", valid_616854 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616853: Call_GetDeleteVpnConnection_616839; path: JsonNode; +proc call*(call_616855: Call_GetDeleteVpnConnection_616841; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Deletes the specified VPN connection.

If you're deleting the VPC and its associated components, we recommend that you detach the virtual private gateway from the VPC and delete the VPC before deleting the VPN connection. If you believe that the tunnel credentials for your VPN connection have been compromised, you can delete the VPN connection and create a new one that has new keys, without needing to delete the VPC or virtual private gateway. If you create a new VPN connection, you must reconfigure the customer gateway using the new configuration information returned with the new VPN connection ID.

## - let valid = call_616853.validator(path, query, header, formData, body) - let scheme = call_616853.pickScheme + let valid = call_616855.validator(path, query, header, formData, body) + let scheme = call_616855.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616853.url(scheme.get, call_616853.host, call_616853.base, - call_616853.route, valid.getOrDefault("path"), + let url = call_616855.url(scheme.get, call_616855.host, call_616855.base, + call_616855.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616853, url, valid) + result = atozHook(call_616855, url, valid) -proc call*(call_616854: Call_GetDeleteVpnConnection_616839; +proc call*(call_616856: Call_GetDeleteVpnConnection_616841; VpnConnectionId: string; DryRun: bool = false; Action: string = "DeleteVpnConnection"; Version: string = "2016-11-15"): Recallable = ## getDeleteVpnConnection @@ -47412,21 +47439,21 @@ proc call*(call_616854: Call_GetDeleteVpnConnection_616839; ## : The ID of the VPN connection. ## Action: string (required) ## Version: string (required) - var query_616855 = newJObject() - add(query_616855, "DryRun", newJBool(DryRun)) - add(query_616855, "VpnConnectionId", newJString(VpnConnectionId)) - add(query_616855, "Action", newJString(Action)) - add(query_616855, "Version", newJString(Version)) - result = call_616854.call(nil, query_616855, nil, nil, nil) + var query_616857 = newJObject() + add(query_616857, "DryRun", newJBool(DryRun)) + add(query_616857, "VpnConnectionId", newJString(VpnConnectionId)) + add(query_616857, "Action", newJString(Action)) + add(query_616857, "Version", newJString(Version)) + result = call_616856.call(nil, query_616857, nil, nil, nil) -var getDeleteVpnConnection* = Call_GetDeleteVpnConnection_616839( +var getDeleteVpnConnection* = Call_GetDeleteVpnConnection_616841( name: "getDeleteVpnConnection", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteVpnConnection", - validator: validate_GetDeleteVpnConnection_616840, base: "/", - url: url_GetDeleteVpnConnection_616841, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDeleteVpnConnection_616842, base: "/", + url: url_GetDeleteVpnConnection_616843, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteVpnConnectionRoute_616891 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteVpnConnectionRoute_616893(protocol: Scheme; host: string; + Call_PostDeleteVpnConnectionRoute_616893 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteVpnConnectionRoute_616895(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -47436,7 +47463,7 @@ proc url_PostDeleteVpnConnectionRoute_616893(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDeleteVpnConnectionRoute_616892(path: JsonNode; query: JsonNode; +proc validate_PostDeleteVpnConnectionRoute_616894(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. The static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway. ## @@ -47448,16 +47475,16 @@ proc validate_PostDeleteVpnConnectionRoute_616892(path: JsonNode; query: JsonNod ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616894 = query.getOrDefault("Action") - valid_616894 = validateParameter(valid_616894, JString, required = true, default = newJString( + var valid_616896 = query.getOrDefault("Action") + valid_616896 = validateParameter(valid_616896, JString, required = true, default = newJString( "DeleteVpnConnectionRoute")) - if valid_616894 != nil: - section.add "Action", valid_616894 - var valid_616895 = query.getOrDefault("Version") - valid_616895 = validateParameter(valid_616895, JString, required = true, + if valid_616896 != nil: + section.add "Action", valid_616896 + var valid_616897 = query.getOrDefault("Version") + valid_616897 = validateParameter(valid_616897, JString, required = true, default = newJString("2016-11-15")) - if valid_616895 != nil: - section.add "Version", valid_616895 + if valid_616897 != nil: + section.add "Version", valid_616897 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -47468,41 +47495,41 @@ proc validate_PostDeleteVpnConnectionRoute_616892(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616896 = header.getOrDefault("X-Amz-Signature") - valid_616896 = validateParameter(valid_616896, JString, required = false, - default = nil) - if valid_616896 != nil: - section.add "X-Amz-Signature", valid_616896 - var valid_616897 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616897 = validateParameter(valid_616897, JString, required = false, - default = nil) - if valid_616897 != nil: - section.add "X-Amz-Content-Sha256", valid_616897 - var valid_616898 = header.getOrDefault("X-Amz-Date") + var valid_616898 = header.getOrDefault("X-Amz-Signature") valid_616898 = validateParameter(valid_616898, JString, required = false, default = nil) if valid_616898 != nil: - section.add "X-Amz-Date", valid_616898 - var valid_616899 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616898 + var valid_616899 = header.getOrDefault("X-Amz-Content-Sha256") valid_616899 = validateParameter(valid_616899, JString, required = false, default = nil) if valid_616899 != nil: - section.add "X-Amz-Credential", valid_616899 - var valid_616900 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616899 + var valid_616900 = header.getOrDefault("X-Amz-Date") valid_616900 = validateParameter(valid_616900, JString, required = false, default = nil) if valid_616900 != nil: - section.add "X-Amz-Security-Token", valid_616900 - var valid_616901 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616900 + var valid_616901 = header.getOrDefault("X-Amz-Credential") valid_616901 = validateParameter(valid_616901, JString, required = false, default = nil) if valid_616901 != nil: - section.add "X-Amz-Algorithm", valid_616901 - var valid_616902 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616901 + var valid_616902 = header.getOrDefault("X-Amz-Security-Token") valid_616902 = validateParameter(valid_616902, JString, required = false, default = nil) if valid_616902 != nil: - section.add "X-Amz-SignedHeaders", valid_616902 + section.add "X-Amz-Security-Token", valid_616902 + var valid_616903 = header.getOrDefault("X-Amz-Algorithm") + valid_616903 = validateParameter(valid_616903, JString, required = false, + default = nil) + if valid_616903 != nil: + section.add "X-Amz-Algorithm", valid_616903 + var valid_616904 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616904 = validateParameter(valid_616904, JString, required = false, + default = nil) + if valid_616904 != nil: + section.add "X-Amz-SignedHeaders", valid_616904 result.add "header", section ## parameters in `formData` object: ## VpnConnectionId: JString (required) @@ -47511,34 +47538,34 @@ proc validate_PostDeleteVpnConnectionRoute_616892(path: JsonNode; query: JsonNod ## : The CIDR block associated with the local subnet of the customer network. section = newJObject() assert formData != nil, "formData argument is necessary due to required `VpnConnectionId` field" - var valid_616903 = formData.getOrDefault("VpnConnectionId") - valid_616903 = validateParameter(valid_616903, JString, required = true, + var valid_616905 = formData.getOrDefault("VpnConnectionId") + valid_616905 = validateParameter(valid_616905, JString, required = true, default = nil) - if valid_616903 != nil: - section.add "VpnConnectionId", valid_616903 - var valid_616904 = formData.getOrDefault("DestinationCidrBlock") - valid_616904 = validateParameter(valid_616904, JString, required = true, + if valid_616905 != nil: + section.add "VpnConnectionId", valid_616905 + var valid_616906 = formData.getOrDefault("DestinationCidrBlock") + valid_616906 = validateParameter(valid_616906, JString, required = true, default = nil) - if valid_616904 != nil: - section.add "DestinationCidrBlock", valid_616904 + if valid_616906 != nil: + section.add "DestinationCidrBlock", valid_616906 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616905: Call_PostDeleteVpnConnectionRoute_616891; path: JsonNode; +proc call*(call_616907: Call_PostDeleteVpnConnectionRoute_616893; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. The static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway. ## - let valid = call_616905.validator(path, query, header, formData, body) - let scheme = call_616905.pickScheme + let valid = call_616907.validator(path, query, header, formData, body) + let scheme = call_616907.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616905.url(scheme.get, call_616905.host, call_616905.base, - call_616905.route, valid.getOrDefault("path"), + let url = call_616907.url(scheme.get, call_616907.host, call_616907.base, + call_616907.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616905, url, valid) + result = atozHook(call_616907, url, valid) -proc call*(call_616906: Call_PostDeleteVpnConnectionRoute_616891; +proc call*(call_616908: Call_PostDeleteVpnConnectionRoute_616893; VpnConnectionId: string; DestinationCidrBlock: string; Action: string = "DeleteVpnConnectionRoute"; Version: string = "2016-11-15"): Recallable = @@ -47550,23 +47577,23 @@ proc call*(call_616906: Call_PostDeleteVpnConnectionRoute_616891; ## : The CIDR block associated with the local subnet of the customer network. ## Action: string (required) ## Version: string (required) - var query_616907 = newJObject() - var formData_616908 = newJObject() - add(formData_616908, "VpnConnectionId", newJString(VpnConnectionId)) - add(formData_616908, "DestinationCidrBlock", newJString(DestinationCidrBlock)) - add(query_616907, "Action", newJString(Action)) - add(query_616907, "Version", newJString(Version)) - result = call_616906.call(nil, query_616907, nil, formData_616908, nil) + var query_616909 = newJObject() + var formData_616910 = newJObject() + add(formData_616910, "VpnConnectionId", newJString(VpnConnectionId)) + add(formData_616910, "DestinationCidrBlock", newJString(DestinationCidrBlock)) + add(query_616909, "Action", newJString(Action)) + add(query_616909, "Version", newJString(Version)) + result = call_616908.call(nil, query_616909, nil, formData_616910, nil) -var postDeleteVpnConnectionRoute* = Call_PostDeleteVpnConnectionRoute_616891( +var postDeleteVpnConnectionRoute* = Call_PostDeleteVpnConnectionRoute_616893( name: "postDeleteVpnConnectionRoute", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteVpnConnectionRoute", - validator: validate_PostDeleteVpnConnectionRoute_616892, base: "/", - url: url_PostDeleteVpnConnectionRoute_616893, + validator: validate_PostDeleteVpnConnectionRoute_616894, base: "/", + url: url_PostDeleteVpnConnectionRoute_616895, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteVpnConnectionRoute_616874 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteVpnConnectionRoute_616876(protocol: Scheme; host: string; + Call_GetDeleteVpnConnectionRoute_616876 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteVpnConnectionRoute_616878(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -47576,7 +47603,7 @@ proc url_GetDeleteVpnConnectionRoute_616876(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDeleteVpnConnectionRoute_616875(path: JsonNode; query: JsonNode; +proc validate_GetDeleteVpnConnectionRoute_616877(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. The static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway. ## @@ -47594,26 +47621,26 @@ proc validate_GetDeleteVpnConnectionRoute_616875(path: JsonNode; query: JsonNode section = newJObject() assert query != nil, "query argument is necessary due to required `VpnConnectionId` field" - var valid_616877 = query.getOrDefault("VpnConnectionId") - valid_616877 = validateParameter(valid_616877, JString, required = true, + var valid_616879 = query.getOrDefault("VpnConnectionId") + valid_616879 = validateParameter(valid_616879, JString, required = true, default = nil) - if valid_616877 != nil: - section.add "VpnConnectionId", valid_616877 - var valid_616878 = query.getOrDefault("Action") - valid_616878 = validateParameter(valid_616878, JString, required = true, default = newJString( + if valid_616879 != nil: + section.add "VpnConnectionId", valid_616879 + var valid_616880 = query.getOrDefault("Action") + valid_616880 = validateParameter(valid_616880, JString, required = true, default = newJString( "DeleteVpnConnectionRoute")) - if valid_616878 != nil: - section.add "Action", valid_616878 - var valid_616879 = query.getOrDefault("Version") - valid_616879 = validateParameter(valid_616879, JString, required = true, + if valid_616880 != nil: + section.add "Action", valid_616880 + var valid_616881 = query.getOrDefault("Version") + valid_616881 = validateParameter(valid_616881, JString, required = true, default = newJString("2016-11-15")) - if valid_616879 != nil: - section.add "Version", valid_616879 - var valid_616880 = query.getOrDefault("DestinationCidrBlock") - valid_616880 = validateParameter(valid_616880, JString, required = true, + if valid_616881 != nil: + section.add "Version", valid_616881 + var valid_616882 = query.getOrDefault("DestinationCidrBlock") + valid_616882 = validateParameter(valid_616882, JString, required = true, default = nil) - if valid_616880 != nil: - section.add "DestinationCidrBlock", valid_616880 + if valid_616882 != nil: + section.add "DestinationCidrBlock", valid_616882 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -47624,61 +47651,61 @@ proc validate_GetDeleteVpnConnectionRoute_616875(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616881 = header.getOrDefault("X-Amz-Signature") - valid_616881 = validateParameter(valid_616881, JString, required = false, - default = nil) - if valid_616881 != nil: - section.add "X-Amz-Signature", valid_616881 - var valid_616882 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616882 = validateParameter(valid_616882, JString, required = false, - default = nil) - if valid_616882 != nil: - section.add "X-Amz-Content-Sha256", valid_616882 - var valid_616883 = header.getOrDefault("X-Amz-Date") + var valid_616883 = header.getOrDefault("X-Amz-Signature") valid_616883 = validateParameter(valid_616883, JString, required = false, default = nil) if valid_616883 != nil: - section.add "X-Amz-Date", valid_616883 - var valid_616884 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616883 + var valid_616884 = header.getOrDefault("X-Amz-Content-Sha256") valid_616884 = validateParameter(valid_616884, JString, required = false, default = nil) if valid_616884 != nil: - section.add "X-Amz-Credential", valid_616884 - var valid_616885 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616884 + var valid_616885 = header.getOrDefault("X-Amz-Date") valid_616885 = validateParameter(valid_616885, JString, required = false, default = nil) if valid_616885 != nil: - section.add "X-Amz-Security-Token", valid_616885 - var valid_616886 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616885 + var valid_616886 = header.getOrDefault("X-Amz-Credential") valid_616886 = validateParameter(valid_616886, JString, required = false, default = nil) if valid_616886 != nil: - section.add "X-Amz-Algorithm", valid_616886 - var valid_616887 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616886 + var valid_616887 = header.getOrDefault("X-Amz-Security-Token") valid_616887 = validateParameter(valid_616887, JString, required = false, default = nil) if valid_616887 != nil: - section.add "X-Amz-SignedHeaders", valid_616887 + section.add "X-Amz-Security-Token", valid_616887 + var valid_616888 = header.getOrDefault("X-Amz-Algorithm") + valid_616888 = validateParameter(valid_616888, JString, required = false, + default = nil) + if valid_616888 != nil: + section.add "X-Amz-Algorithm", valid_616888 + var valid_616889 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616889 = validateParameter(valid_616889, JString, required = false, + default = nil) + if valid_616889 != nil: + section.add "X-Amz-SignedHeaders", valid_616889 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616888: Call_GetDeleteVpnConnectionRoute_616874; path: JsonNode; +proc call*(call_616890: Call_GetDeleteVpnConnectionRoute_616876; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. The static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway. ## - let valid = call_616888.validator(path, query, header, formData, body) - let scheme = call_616888.pickScheme + let valid = call_616890.validator(path, query, header, formData, body) + let scheme = call_616890.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616888.url(scheme.get, call_616888.host, call_616888.base, - call_616888.route, valid.getOrDefault("path"), + let url = call_616890.url(scheme.get, call_616890.host, call_616890.base, + call_616890.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616888, url, valid) + result = atozHook(call_616890, url, valid) -proc call*(call_616889: Call_GetDeleteVpnConnectionRoute_616874; +proc call*(call_616891: Call_GetDeleteVpnConnectionRoute_616876; VpnConnectionId: string; DestinationCidrBlock: string; Action: string = "DeleteVpnConnectionRoute"; Version: string = "2016-11-15"): Recallable = @@ -47690,22 +47717,22 @@ proc call*(call_616889: Call_GetDeleteVpnConnectionRoute_616874; ## Version: string (required) ## DestinationCidrBlock: string (required) ## : The CIDR block associated with the local subnet of the customer network. - var query_616890 = newJObject() - add(query_616890, "VpnConnectionId", newJString(VpnConnectionId)) - add(query_616890, "Action", newJString(Action)) - add(query_616890, "Version", newJString(Version)) - add(query_616890, "DestinationCidrBlock", newJString(DestinationCidrBlock)) - result = call_616889.call(nil, query_616890, nil, nil, nil) - -var getDeleteVpnConnectionRoute* = Call_GetDeleteVpnConnectionRoute_616874( + var query_616892 = newJObject() + add(query_616892, "VpnConnectionId", newJString(VpnConnectionId)) + add(query_616892, "Action", newJString(Action)) + add(query_616892, "Version", newJString(Version)) + add(query_616892, "DestinationCidrBlock", newJString(DestinationCidrBlock)) + result = call_616891.call(nil, query_616892, nil, nil, nil) + +var getDeleteVpnConnectionRoute* = Call_GetDeleteVpnConnectionRoute_616876( name: "getDeleteVpnConnectionRoute", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteVpnConnectionRoute", - validator: validate_GetDeleteVpnConnectionRoute_616875, base: "/", - url: url_GetDeleteVpnConnectionRoute_616876, + validator: validate_GetDeleteVpnConnectionRoute_616877, base: "/", + url: url_GetDeleteVpnConnectionRoute_616878, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeleteVpnGateway_616926 = ref object of OpenApiRestCall_610658 -proc url_PostDeleteVpnGateway_616928(protocol: Scheme; host: string; base: string; + Call_PostDeleteVpnGateway_616928 = ref object of OpenApiRestCall_610658 +proc url_PostDeleteVpnGateway_616930(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -47715,7 +47742,7 @@ proc url_PostDeleteVpnGateway_616928(protocol: Scheme; host: string; base: strin else: result.path = base & route -proc validate_PostDeleteVpnGateway_616927(path: JsonNode; query: JsonNode; +proc validate_PostDeleteVpnGateway_616929(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified virtual private gateway. We recommend that before you delete a virtual private gateway, you detach it from the VPC and delete the VPN connection. Note that you don't need to delete the virtual private gateway if you plan to delete and recreate the VPN connection between your VPC and your network. ## @@ -47727,16 +47754,16 @@ proc validate_PostDeleteVpnGateway_616927(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616929 = query.getOrDefault("Action") - valid_616929 = validateParameter(valid_616929, JString, required = true, + var valid_616931 = query.getOrDefault("Action") + valid_616931 = validateParameter(valid_616931, JString, required = true, default = newJString("DeleteVpnGateway")) - if valid_616929 != nil: - section.add "Action", valid_616929 - var valid_616930 = query.getOrDefault("Version") - valid_616930 = validateParameter(valid_616930, JString, required = true, + if valid_616931 != nil: + section.add "Action", valid_616931 + var valid_616932 = query.getOrDefault("Version") + valid_616932 = validateParameter(valid_616932, JString, required = true, default = newJString("2016-11-15")) - if valid_616930 != nil: - section.add "Version", valid_616930 + if valid_616932 != nil: + section.add "Version", valid_616932 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -47747,41 +47774,41 @@ proc validate_PostDeleteVpnGateway_616927(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616931 = header.getOrDefault("X-Amz-Signature") - valid_616931 = validateParameter(valid_616931, JString, required = false, - default = nil) - if valid_616931 != nil: - section.add "X-Amz-Signature", valid_616931 - var valid_616932 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616932 = validateParameter(valid_616932, JString, required = false, - default = nil) - if valid_616932 != nil: - section.add "X-Amz-Content-Sha256", valid_616932 - var valid_616933 = header.getOrDefault("X-Amz-Date") + var valid_616933 = header.getOrDefault("X-Amz-Signature") valid_616933 = validateParameter(valid_616933, JString, required = false, default = nil) if valid_616933 != nil: - section.add "X-Amz-Date", valid_616933 - var valid_616934 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616933 + var valid_616934 = header.getOrDefault("X-Amz-Content-Sha256") valid_616934 = validateParameter(valid_616934, JString, required = false, default = nil) if valid_616934 != nil: - section.add "X-Amz-Credential", valid_616934 - var valid_616935 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616934 + var valid_616935 = header.getOrDefault("X-Amz-Date") valid_616935 = validateParameter(valid_616935, JString, required = false, default = nil) if valid_616935 != nil: - section.add "X-Amz-Security-Token", valid_616935 - var valid_616936 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616935 + var valid_616936 = header.getOrDefault("X-Amz-Credential") valid_616936 = validateParameter(valid_616936, JString, required = false, default = nil) if valid_616936 != nil: - section.add "X-Amz-Algorithm", valid_616936 - var valid_616937 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616936 + var valid_616937 = header.getOrDefault("X-Amz-Security-Token") valid_616937 = validateParameter(valid_616937, JString, required = false, default = nil) if valid_616937 != nil: - section.add "X-Amz-SignedHeaders", valid_616937 + section.add "X-Amz-Security-Token", valid_616937 + var valid_616938 = header.getOrDefault("X-Amz-Algorithm") + valid_616938 = validateParameter(valid_616938, JString, required = false, + default = nil) + if valid_616938 != nil: + section.add "X-Amz-Algorithm", valid_616938 + var valid_616939 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616939 = validateParameter(valid_616939, JString, required = false, + default = nil) + if valid_616939 != nil: + section.add "X-Amz-SignedHeaders", valid_616939 result.add "header", section ## parameters in `formData` object: ## VpnGatewayId: JString (required) @@ -47791,33 +47818,33 @@ proc validate_PostDeleteVpnGateway_616927(path: JsonNode; query: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `VpnGatewayId` field" - var valid_616938 = formData.getOrDefault("VpnGatewayId") - valid_616938 = validateParameter(valid_616938, JString, required = true, + var valid_616940 = formData.getOrDefault("VpnGatewayId") + valid_616940 = validateParameter(valid_616940, JString, required = true, default = nil) - if valid_616938 != nil: - section.add "VpnGatewayId", valid_616938 - var valid_616939 = formData.getOrDefault("DryRun") - valid_616939 = validateParameter(valid_616939, JBool, required = false, default = nil) - if valid_616939 != nil: - section.add "DryRun", valid_616939 + if valid_616940 != nil: + section.add "VpnGatewayId", valid_616940 + var valid_616941 = formData.getOrDefault("DryRun") + valid_616941 = validateParameter(valid_616941, JBool, required = false, default = nil) + if valid_616941 != nil: + section.add "DryRun", valid_616941 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616940: Call_PostDeleteVpnGateway_616926; path: JsonNode; +proc call*(call_616942: Call_PostDeleteVpnGateway_616928; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified virtual private gateway. We recommend that before you delete a virtual private gateway, you detach it from the VPC and delete the VPN connection. Note that you don't need to delete the virtual private gateway if you plan to delete and recreate the VPN connection between your VPC and your network. ## - let valid = call_616940.validator(path, query, header, formData, body) - let scheme = call_616940.pickScheme + let valid = call_616942.validator(path, query, header, formData, body) + let scheme = call_616942.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616940.url(scheme.get, call_616940.host, call_616940.base, - call_616940.route, valid.getOrDefault("path"), + let url = call_616942.url(scheme.get, call_616942.host, call_616942.base, + call_616942.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616940, url, valid) + result = atozHook(call_616942, url, valid) -proc call*(call_616941: Call_PostDeleteVpnGateway_616926; VpnGatewayId: string; +proc call*(call_616943: Call_PostDeleteVpnGateway_616928; VpnGatewayId: string; DryRun: bool = false; Action: string = "DeleteVpnGateway"; Version: string = "2016-11-15"): Recallable = ## postDeleteVpnGateway @@ -47828,22 +47855,22 @@ proc call*(call_616941: Call_PostDeleteVpnGateway_616926; VpnGatewayId: string; ## : 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. ## Action: string (required) ## Version: string (required) - var query_616942 = newJObject() - var formData_616943 = newJObject() - add(formData_616943, "VpnGatewayId", newJString(VpnGatewayId)) - add(formData_616943, "DryRun", newJBool(DryRun)) - add(query_616942, "Action", newJString(Action)) - add(query_616942, "Version", newJString(Version)) - result = call_616941.call(nil, query_616942, nil, formData_616943, nil) + var query_616944 = newJObject() + var formData_616945 = newJObject() + add(formData_616945, "VpnGatewayId", newJString(VpnGatewayId)) + add(formData_616945, "DryRun", newJBool(DryRun)) + add(query_616944, "Action", newJString(Action)) + add(query_616944, "Version", newJString(Version)) + result = call_616943.call(nil, query_616944, nil, formData_616945, nil) -var postDeleteVpnGateway* = Call_PostDeleteVpnGateway_616926( +var postDeleteVpnGateway* = Call_PostDeleteVpnGateway_616928( name: "postDeleteVpnGateway", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeleteVpnGateway", - validator: validate_PostDeleteVpnGateway_616927, base: "/", - url: url_PostDeleteVpnGateway_616928, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDeleteVpnGateway_616929, base: "/", + url: url_PostDeleteVpnGateway_616930, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeleteVpnGateway_616909 = ref object of OpenApiRestCall_610658 -proc url_GetDeleteVpnGateway_616911(protocol: Scheme; host: string; base: string; + Call_GetDeleteVpnGateway_616911 = ref object of OpenApiRestCall_610658 +proc url_GetDeleteVpnGateway_616913(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -47853,7 +47880,7 @@ proc url_GetDeleteVpnGateway_616911(protocol: Scheme; host: string; base: string else: result.path = base & route -proc validate_GetDeleteVpnGateway_616910(path: JsonNode; query: JsonNode; +proc validate_GetDeleteVpnGateway_616912(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified virtual private gateway. We recommend that before you delete a virtual private gateway, you detach it from the VPC and delete the VPN connection. Note that you don't need to delete the virtual private gateway if you plan to delete and recreate the VPN connection between your VPC and your network. @@ -47870,27 +47897,27 @@ proc validate_GetDeleteVpnGateway_616910(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616912 = query.getOrDefault("DryRun") - valid_616912 = validateParameter(valid_616912, JBool, required = false, default = nil) - if valid_616912 != nil: - section.add "DryRun", valid_616912 + var valid_616914 = query.getOrDefault("DryRun") + valid_616914 = validateParameter(valid_616914, JBool, required = false, default = nil) + if valid_616914 != nil: + section.add "DryRun", valid_616914 assert query != nil, "query argument is necessary due to required `VpnGatewayId` field" - var valid_616913 = query.getOrDefault("VpnGatewayId") - valid_616913 = validateParameter(valid_616913, JString, required = true, + var valid_616915 = query.getOrDefault("VpnGatewayId") + valid_616915 = validateParameter(valid_616915, JString, required = true, default = nil) - if valid_616913 != nil: - section.add "VpnGatewayId", valid_616913 - var valid_616914 = query.getOrDefault("Action") - valid_616914 = validateParameter(valid_616914, JString, required = true, + if valid_616915 != nil: + section.add "VpnGatewayId", valid_616915 + var valid_616916 = query.getOrDefault("Action") + valid_616916 = validateParameter(valid_616916, JString, required = true, default = newJString("DeleteVpnGateway")) - if valid_616914 != nil: - section.add "Action", valid_616914 - var valid_616915 = query.getOrDefault("Version") - valid_616915 = validateParameter(valid_616915, JString, required = true, + if valid_616916 != nil: + section.add "Action", valid_616916 + var valid_616917 = query.getOrDefault("Version") + valid_616917 = validateParameter(valid_616917, JString, required = true, default = newJString("2016-11-15")) - if valid_616915 != nil: - section.add "Version", valid_616915 + if valid_616917 != nil: + section.add "Version", valid_616917 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -47901,61 +47928,61 @@ proc validate_GetDeleteVpnGateway_616910(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616916 = header.getOrDefault("X-Amz-Signature") - valid_616916 = validateParameter(valid_616916, JString, required = false, - default = nil) - if valid_616916 != nil: - section.add "X-Amz-Signature", valid_616916 - var valid_616917 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616917 = validateParameter(valid_616917, JString, required = false, - default = nil) - if valid_616917 != nil: - section.add "X-Amz-Content-Sha256", valid_616917 - var valid_616918 = header.getOrDefault("X-Amz-Date") + var valid_616918 = header.getOrDefault("X-Amz-Signature") valid_616918 = validateParameter(valid_616918, JString, required = false, default = nil) if valid_616918 != nil: - section.add "X-Amz-Date", valid_616918 - var valid_616919 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616918 + var valid_616919 = header.getOrDefault("X-Amz-Content-Sha256") valid_616919 = validateParameter(valid_616919, JString, required = false, default = nil) if valid_616919 != nil: - section.add "X-Amz-Credential", valid_616919 - var valid_616920 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616919 + var valid_616920 = header.getOrDefault("X-Amz-Date") valid_616920 = validateParameter(valid_616920, JString, required = false, default = nil) if valid_616920 != nil: - section.add "X-Amz-Security-Token", valid_616920 - var valid_616921 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616920 + var valid_616921 = header.getOrDefault("X-Amz-Credential") valid_616921 = validateParameter(valid_616921, JString, required = false, default = nil) if valid_616921 != nil: - section.add "X-Amz-Algorithm", valid_616921 - var valid_616922 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616921 + var valid_616922 = header.getOrDefault("X-Amz-Security-Token") valid_616922 = validateParameter(valid_616922, JString, required = false, default = nil) if valid_616922 != nil: - section.add "X-Amz-SignedHeaders", valid_616922 + section.add "X-Amz-Security-Token", valid_616922 + var valid_616923 = header.getOrDefault("X-Amz-Algorithm") + valid_616923 = validateParameter(valid_616923, JString, required = false, + default = nil) + if valid_616923 != nil: + section.add "X-Amz-Algorithm", valid_616923 + var valid_616924 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616924 = validateParameter(valid_616924, JString, required = false, + default = nil) + if valid_616924 != nil: + section.add "X-Amz-SignedHeaders", valid_616924 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616923: Call_GetDeleteVpnGateway_616909; path: JsonNode; +proc call*(call_616925: Call_GetDeleteVpnGateway_616911; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified virtual private gateway. We recommend that before you delete a virtual private gateway, you detach it from the VPC and delete the VPN connection. Note that you don't need to delete the virtual private gateway if you plan to delete and recreate the VPN connection between your VPC and your network. ## - let valid = call_616923.validator(path, query, header, formData, body) - let scheme = call_616923.pickScheme + let valid = call_616925.validator(path, query, header, formData, body) + let scheme = call_616925.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616923.url(scheme.get, call_616923.host, call_616923.base, - call_616923.route, valid.getOrDefault("path"), + let url = call_616925.url(scheme.get, call_616925.host, call_616925.base, + call_616925.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616923, url, valid) + result = atozHook(call_616925, url, valid) -proc call*(call_616924: Call_GetDeleteVpnGateway_616909; VpnGatewayId: string; +proc call*(call_616926: Call_GetDeleteVpnGateway_616911; VpnGatewayId: string; DryRun: bool = false; Action: string = "DeleteVpnGateway"; Version: string = "2016-11-15"): Recallable = ## getDeleteVpnGateway @@ -47966,21 +47993,21 @@ proc call*(call_616924: Call_GetDeleteVpnGateway_616909; VpnGatewayId: string; ## : The ID of the virtual private gateway. ## Action: string (required) ## Version: string (required) - var query_616925 = newJObject() - add(query_616925, "DryRun", newJBool(DryRun)) - add(query_616925, "VpnGatewayId", newJString(VpnGatewayId)) - add(query_616925, "Action", newJString(Action)) - add(query_616925, "Version", newJString(Version)) - result = call_616924.call(nil, query_616925, nil, nil, nil) + var query_616927 = newJObject() + add(query_616927, "DryRun", newJBool(DryRun)) + add(query_616927, "VpnGatewayId", newJString(VpnGatewayId)) + add(query_616927, "Action", newJString(Action)) + add(query_616927, "Version", newJString(Version)) + result = call_616926.call(nil, query_616927, nil, nil, nil) -var getDeleteVpnGateway* = Call_GetDeleteVpnGateway_616909( +var getDeleteVpnGateway* = Call_GetDeleteVpnGateway_616911( name: "getDeleteVpnGateway", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeleteVpnGateway", - validator: validate_GetDeleteVpnGateway_616910, base: "/", - url: url_GetDeleteVpnGateway_616911, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDeleteVpnGateway_616912, base: "/", + url: url_GetDeleteVpnGateway_616913, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeprovisionByoipCidr_616961 = ref object of OpenApiRestCall_610658 -proc url_PostDeprovisionByoipCidr_616963(protocol: Scheme; host: string; + Call_PostDeprovisionByoipCidr_616963 = ref object of OpenApiRestCall_610658 +proc url_PostDeprovisionByoipCidr_616965(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -47991,7 +48018,7 @@ proc url_PostDeprovisionByoipCidr_616963(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDeprovisionByoipCidr_616962(path: JsonNode; query: JsonNode; +proc validate_PostDeprovisionByoipCidr_616964(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Releases the specified address range that you provisioned for use with your AWS resources through bring your own IP addresses (BYOIP) and deletes the corresponding address pool.

Before you can release an address range, you must stop advertising it using WithdrawByoipCidr and you must not have any IP addresses allocated from its address range.

## @@ -48003,16 +48030,16 @@ proc validate_PostDeprovisionByoipCidr_616962(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616964 = query.getOrDefault("Action") - valid_616964 = validateParameter(valid_616964, JString, required = true, + var valid_616966 = query.getOrDefault("Action") + valid_616966 = validateParameter(valid_616966, JString, required = true, default = newJString("DeprovisionByoipCidr")) - if valid_616964 != nil: - section.add "Action", valid_616964 - var valid_616965 = query.getOrDefault("Version") - valid_616965 = validateParameter(valid_616965, JString, required = true, + if valid_616966 != nil: + section.add "Action", valid_616966 + var valid_616967 = query.getOrDefault("Version") + valid_616967 = validateParameter(valid_616967, JString, required = true, default = newJString("2016-11-15")) - if valid_616965 != nil: - section.add "Version", valid_616965 + if valid_616967 != nil: + section.add "Version", valid_616967 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -48023,41 +48050,41 @@ proc validate_PostDeprovisionByoipCidr_616962(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616966 = header.getOrDefault("X-Amz-Signature") - valid_616966 = validateParameter(valid_616966, JString, required = false, - default = nil) - if valid_616966 != nil: - section.add "X-Amz-Signature", valid_616966 - var valid_616967 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616967 = validateParameter(valid_616967, JString, required = false, - default = nil) - if valid_616967 != nil: - section.add "X-Amz-Content-Sha256", valid_616967 - var valid_616968 = header.getOrDefault("X-Amz-Date") + var valid_616968 = header.getOrDefault("X-Amz-Signature") valid_616968 = validateParameter(valid_616968, JString, required = false, default = nil) if valid_616968 != nil: - section.add "X-Amz-Date", valid_616968 - var valid_616969 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616968 + var valid_616969 = header.getOrDefault("X-Amz-Content-Sha256") valid_616969 = validateParameter(valid_616969, JString, required = false, default = nil) if valid_616969 != nil: - section.add "X-Amz-Credential", valid_616969 - var valid_616970 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616969 + var valid_616970 = header.getOrDefault("X-Amz-Date") valid_616970 = validateParameter(valid_616970, JString, required = false, default = nil) if valid_616970 != nil: - section.add "X-Amz-Security-Token", valid_616970 - var valid_616971 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616970 + var valid_616971 = header.getOrDefault("X-Amz-Credential") valid_616971 = validateParameter(valid_616971, JString, required = false, default = nil) if valid_616971 != nil: - section.add "X-Amz-Algorithm", valid_616971 - var valid_616972 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616971 + var valid_616972 = header.getOrDefault("X-Amz-Security-Token") valid_616972 = validateParameter(valid_616972, JString, required = false, default = nil) if valid_616972 != nil: - section.add "X-Amz-SignedHeaders", valid_616972 + section.add "X-Amz-Security-Token", valid_616972 + var valid_616973 = header.getOrDefault("X-Amz-Algorithm") + valid_616973 = validateParameter(valid_616973, JString, required = false, + default = nil) + if valid_616973 != nil: + section.add "X-Amz-Algorithm", valid_616973 + var valid_616974 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616974 = validateParameter(valid_616974, JString, required = false, + default = nil) + if valid_616974 != nil: + section.add "X-Amz-SignedHeaders", valid_616974 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -48065,35 +48092,35 @@ proc validate_PostDeprovisionByoipCidr_616962(path: JsonNode; query: JsonNode; ## Cidr: JString (required) ## : The address range, in CIDR notation. The prefix must be the same prefix that you specified when you provisioned the address range. section = newJObject() - var valid_616973 = formData.getOrDefault("DryRun") - valid_616973 = validateParameter(valid_616973, JBool, required = false, default = nil) - if valid_616973 != nil: - section.add "DryRun", valid_616973 + var valid_616975 = formData.getOrDefault("DryRun") + valid_616975 = validateParameter(valid_616975, JBool, required = false, default = nil) + if valid_616975 != nil: + section.add "DryRun", valid_616975 assert formData != nil, "formData argument is necessary due to required `Cidr` field" - var valid_616974 = formData.getOrDefault("Cidr") - valid_616974 = validateParameter(valid_616974, JString, required = true, + var valid_616976 = formData.getOrDefault("Cidr") + valid_616976 = validateParameter(valid_616976, JString, required = true, default = nil) - if valid_616974 != nil: - section.add "Cidr", valid_616974 + if valid_616976 != nil: + section.add "Cidr", valid_616976 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616975: Call_PostDeprovisionByoipCidr_616961; path: JsonNode; +proc call*(call_616977: Call_PostDeprovisionByoipCidr_616963; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Releases the specified address range that you provisioned for use with your AWS resources through bring your own IP addresses (BYOIP) and deletes the corresponding address pool.

Before you can release an address range, you must stop advertising it using WithdrawByoipCidr and you must not have any IP addresses allocated from its address range.

## - let valid = call_616975.validator(path, query, header, formData, body) - let scheme = call_616975.pickScheme + let valid = call_616977.validator(path, query, header, formData, body) + let scheme = call_616977.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616975.url(scheme.get, call_616975.host, call_616975.base, - call_616975.route, valid.getOrDefault("path"), + let url = call_616977.url(scheme.get, call_616977.host, call_616977.base, + call_616977.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616975, url, valid) + result = atozHook(call_616977, url, valid) -proc call*(call_616976: Call_PostDeprovisionByoipCidr_616961; Cidr: string; +proc call*(call_616978: Call_PostDeprovisionByoipCidr_616963; Cidr: string; DryRun: bool = false; Action: string = "DeprovisionByoipCidr"; Version: string = "2016-11-15"): Recallable = ## postDeprovisionByoipCidr @@ -48104,22 +48131,22 @@ proc call*(call_616976: Call_PostDeprovisionByoipCidr_616961; Cidr: string; ## : The address range, in CIDR notation. The prefix must be the same prefix that you specified when you provisioned the address range. ## Action: string (required) ## Version: string (required) - var query_616977 = newJObject() - var formData_616978 = newJObject() - add(formData_616978, "DryRun", newJBool(DryRun)) - add(formData_616978, "Cidr", newJString(Cidr)) - add(query_616977, "Action", newJString(Action)) - add(query_616977, "Version", newJString(Version)) - result = call_616976.call(nil, query_616977, nil, formData_616978, nil) + var query_616979 = newJObject() + var formData_616980 = newJObject() + add(formData_616980, "DryRun", newJBool(DryRun)) + add(formData_616980, "Cidr", newJString(Cidr)) + add(query_616979, "Action", newJString(Action)) + add(query_616979, "Version", newJString(Version)) + result = call_616978.call(nil, query_616979, nil, formData_616980, nil) -var postDeprovisionByoipCidr* = Call_PostDeprovisionByoipCidr_616961( +var postDeprovisionByoipCidr* = Call_PostDeprovisionByoipCidr_616963( name: "postDeprovisionByoipCidr", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeprovisionByoipCidr", - validator: validate_PostDeprovisionByoipCidr_616962, base: "/", - url: url_PostDeprovisionByoipCidr_616963, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDeprovisionByoipCidr_616964, base: "/", + url: url_PostDeprovisionByoipCidr_616965, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeprovisionByoipCidr_616944 = ref object of OpenApiRestCall_610658 -proc url_GetDeprovisionByoipCidr_616946(protocol: Scheme; host: string; base: string; + Call_GetDeprovisionByoipCidr_616946 = ref object of OpenApiRestCall_610658 +proc url_GetDeprovisionByoipCidr_616948(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -48130,7 +48157,7 @@ proc url_GetDeprovisionByoipCidr_616946(protocol: Scheme; host: string; base: st else: result.path = base & route -proc validate_GetDeprovisionByoipCidr_616945(path: JsonNode; query: JsonNode; +proc validate_GetDeprovisionByoipCidr_616947(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Releases the specified address range that you provisioned for use with your AWS resources through bring your own IP addresses (BYOIP) and deletes the corresponding address pool.

Before you can release an address range, you must stop advertising it using WithdrawByoipCidr and you must not have any IP addresses allocated from its address range.

## @@ -48146,25 +48173,25 @@ proc validate_GetDeprovisionByoipCidr_616945(path: JsonNode; query: JsonNode; ## Cidr: JString (required) ## : The address range, in CIDR notation. The prefix must be the same prefix that you specified when you provisioned the address range. section = newJObject() - var valid_616947 = query.getOrDefault("DryRun") - valid_616947 = validateParameter(valid_616947, JBool, required = false, default = nil) - if valid_616947 != nil: - section.add "DryRun", valid_616947 - var valid_616948 = query.getOrDefault("Action") - valid_616948 = validateParameter(valid_616948, JString, required = true, - default = newJString("DeprovisionByoipCidr")) - if valid_616948 != nil: - section.add "Action", valid_616948 - var valid_616949 = query.getOrDefault("Version") - valid_616949 = validateParameter(valid_616949, JString, required = true, - default = newJString("2016-11-15")) + var valid_616949 = query.getOrDefault("DryRun") + valid_616949 = validateParameter(valid_616949, JBool, required = false, default = nil) if valid_616949 != nil: - section.add "Version", valid_616949 - var valid_616950 = query.getOrDefault("Cidr") + section.add "DryRun", valid_616949 + var valid_616950 = query.getOrDefault("Action") valid_616950 = validateParameter(valid_616950, JString, required = true, - default = nil) + default = newJString("DeprovisionByoipCidr")) if valid_616950 != nil: - section.add "Cidr", valid_616950 + section.add "Action", valid_616950 + var valid_616951 = query.getOrDefault("Version") + valid_616951 = validateParameter(valid_616951, JString, required = true, + default = newJString("2016-11-15")) + if valid_616951 != nil: + section.add "Version", valid_616951 + var valid_616952 = query.getOrDefault("Cidr") + valid_616952 = validateParameter(valid_616952, JString, required = true, + default = nil) + if valid_616952 != nil: + section.add "Cidr", valid_616952 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -48175,61 +48202,61 @@ proc validate_GetDeprovisionByoipCidr_616945(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616951 = header.getOrDefault("X-Amz-Signature") - valid_616951 = validateParameter(valid_616951, JString, required = false, - default = nil) - if valid_616951 != nil: - section.add "X-Amz-Signature", valid_616951 - var valid_616952 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616952 = validateParameter(valid_616952, JString, required = false, - default = nil) - if valid_616952 != nil: - section.add "X-Amz-Content-Sha256", valid_616952 - var valid_616953 = header.getOrDefault("X-Amz-Date") + var valid_616953 = header.getOrDefault("X-Amz-Signature") valid_616953 = validateParameter(valid_616953, JString, required = false, default = nil) if valid_616953 != nil: - section.add "X-Amz-Date", valid_616953 - var valid_616954 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616953 + var valid_616954 = header.getOrDefault("X-Amz-Content-Sha256") valid_616954 = validateParameter(valid_616954, JString, required = false, default = nil) if valid_616954 != nil: - section.add "X-Amz-Credential", valid_616954 - var valid_616955 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616954 + var valid_616955 = header.getOrDefault("X-Amz-Date") valid_616955 = validateParameter(valid_616955, JString, required = false, default = nil) if valid_616955 != nil: - section.add "X-Amz-Security-Token", valid_616955 - var valid_616956 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616955 + var valid_616956 = header.getOrDefault("X-Amz-Credential") valid_616956 = validateParameter(valid_616956, JString, required = false, default = nil) if valid_616956 != nil: - section.add "X-Amz-Algorithm", valid_616956 - var valid_616957 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616956 + var valid_616957 = header.getOrDefault("X-Amz-Security-Token") valid_616957 = validateParameter(valid_616957, JString, required = false, default = nil) if valid_616957 != nil: - section.add "X-Amz-SignedHeaders", valid_616957 + section.add "X-Amz-Security-Token", valid_616957 + var valid_616958 = header.getOrDefault("X-Amz-Algorithm") + valid_616958 = validateParameter(valid_616958, JString, required = false, + default = nil) + if valid_616958 != nil: + section.add "X-Amz-Algorithm", valid_616958 + var valid_616959 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616959 = validateParameter(valid_616959, JString, required = false, + default = nil) + if valid_616959 != nil: + section.add "X-Amz-SignedHeaders", valid_616959 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616958: Call_GetDeprovisionByoipCidr_616944; path: JsonNode; +proc call*(call_616960: Call_GetDeprovisionByoipCidr_616946; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Releases the specified address range that you provisioned for use with your AWS resources through bring your own IP addresses (BYOIP) and deletes the corresponding address pool.

Before you can release an address range, you must stop advertising it using WithdrawByoipCidr and you must not have any IP addresses allocated from its address range.

## - let valid = call_616958.validator(path, query, header, formData, body) - let scheme = call_616958.pickScheme + let valid = call_616960.validator(path, query, header, formData, body) + let scheme = call_616960.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616958.url(scheme.get, call_616958.host, call_616958.base, - call_616958.route, valid.getOrDefault("path"), + let url = call_616960.url(scheme.get, call_616960.host, call_616960.base, + call_616960.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616958, url, valid) + result = atozHook(call_616960, url, valid) -proc call*(call_616959: Call_GetDeprovisionByoipCidr_616944; Cidr: string; +proc call*(call_616961: Call_GetDeprovisionByoipCidr_616946; Cidr: string; DryRun: bool = false; Action: string = "DeprovisionByoipCidr"; Version: string = "2016-11-15"): Recallable = ## getDeprovisionByoipCidr @@ -48240,21 +48267,21 @@ proc call*(call_616959: Call_GetDeprovisionByoipCidr_616944; Cidr: string; ## Version: string (required) ## Cidr: string (required) ## : The address range, in CIDR notation. The prefix must be the same prefix that you specified when you provisioned the address range. - var query_616960 = newJObject() - add(query_616960, "DryRun", newJBool(DryRun)) - add(query_616960, "Action", newJString(Action)) - add(query_616960, "Version", newJString(Version)) - add(query_616960, "Cidr", newJString(Cidr)) - result = call_616959.call(nil, query_616960, nil, nil, nil) - -var getDeprovisionByoipCidr* = Call_GetDeprovisionByoipCidr_616944( + var query_616962 = newJObject() + add(query_616962, "DryRun", newJBool(DryRun)) + add(query_616962, "Action", newJString(Action)) + add(query_616962, "Version", newJString(Version)) + add(query_616962, "Cidr", newJString(Cidr)) + result = call_616961.call(nil, query_616962, nil, nil, nil) + +var getDeprovisionByoipCidr* = Call_GetDeprovisionByoipCidr_616946( name: "getDeprovisionByoipCidr", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeprovisionByoipCidr", - validator: validate_GetDeprovisionByoipCidr_616945, base: "/", - url: url_GetDeprovisionByoipCidr_616946, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDeprovisionByoipCidr_616947, base: "/", + url: url_GetDeprovisionByoipCidr_616948, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeregisterImage_616996 = ref object of OpenApiRestCall_610658 -proc url_PostDeregisterImage_616998(protocol: Scheme; host: string; base: string; + Call_PostDeregisterImage_616998 = ref object of OpenApiRestCall_610658 +proc url_PostDeregisterImage_617000(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -48264,7 +48291,7 @@ proc url_PostDeregisterImage_616998(protocol: Scheme; host: string; base: string else: result.path = base & route -proc validate_PostDeregisterImage_616997(path: JsonNode; query: JsonNode; +proc validate_PostDeregisterImage_616999(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Deregisters the specified AMI. After you deregister an AMI, it can't be used to launch new instances; however, it doesn't affect any instances that you've already launched from the AMI. You'll continue to incur usage costs for those instances until you terminate them.

When you deregister an Amazon EBS-backed AMI, it doesn't affect the snapshot that was created for the root volume of the instance during the AMI creation process. When you deregister an instance store-backed AMI, it doesn't affect the files that you uploaded to Amazon S3 when you created the AMI.

@@ -48277,16 +48304,16 @@ proc validate_PostDeregisterImage_616997(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_616999 = query.getOrDefault("Action") - valid_616999 = validateParameter(valid_616999, JString, required = true, + var valid_617001 = query.getOrDefault("Action") + valid_617001 = validateParameter(valid_617001, JString, required = true, default = newJString("DeregisterImage")) - if valid_616999 != nil: - section.add "Action", valid_616999 - var valid_617000 = query.getOrDefault("Version") - valid_617000 = validateParameter(valid_617000, JString, required = true, + if valid_617001 != nil: + section.add "Action", valid_617001 + var valid_617002 = query.getOrDefault("Version") + valid_617002 = validateParameter(valid_617002, JString, required = true, default = newJString("2016-11-15")) - if valid_617000 != nil: - section.add "Version", valid_617000 + if valid_617002 != nil: + section.add "Version", valid_617002 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -48297,41 +48324,41 @@ proc validate_PostDeregisterImage_616997(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617001 = header.getOrDefault("X-Amz-Signature") - valid_617001 = validateParameter(valid_617001, JString, required = false, - default = nil) - if valid_617001 != nil: - section.add "X-Amz-Signature", valid_617001 - var valid_617002 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617002 = validateParameter(valid_617002, JString, required = false, - default = nil) - if valid_617002 != nil: - section.add "X-Amz-Content-Sha256", valid_617002 - var valid_617003 = header.getOrDefault("X-Amz-Date") + var valid_617003 = header.getOrDefault("X-Amz-Signature") valid_617003 = validateParameter(valid_617003, JString, required = false, default = nil) if valid_617003 != nil: - section.add "X-Amz-Date", valid_617003 - var valid_617004 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617003 + var valid_617004 = header.getOrDefault("X-Amz-Content-Sha256") valid_617004 = validateParameter(valid_617004, JString, required = false, default = nil) if valid_617004 != nil: - section.add "X-Amz-Credential", valid_617004 - var valid_617005 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617004 + var valid_617005 = header.getOrDefault("X-Amz-Date") valid_617005 = validateParameter(valid_617005, JString, required = false, default = nil) if valid_617005 != nil: - section.add "X-Amz-Security-Token", valid_617005 - var valid_617006 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617005 + var valid_617006 = header.getOrDefault("X-Amz-Credential") valid_617006 = validateParameter(valid_617006, JString, required = false, default = nil) if valid_617006 != nil: - section.add "X-Amz-Algorithm", valid_617006 - var valid_617007 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617006 + var valid_617007 = header.getOrDefault("X-Amz-Security-Token") valid_617007 = validateParameter(valid_617007, JString, required = false, default = nil) if valid_617007 != nil: - section.add "X-Amz-SignedHeaders", valid_617007 + section.add "X-Amz-Security-Token", valid_617007 + var valid_617008 = header.getOrDefault("X-Amz-Algorithm") + valid_617008 = validateParameter(valid_617008, JString, required = false, + default = nil) + if valid_617008 != nil: + section.add "X-Amz-Algorithm", valid_617008 + var valid_617009 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617009 = validateParameter(valid_617009, JString, required = false, + default = nil) + if valid_617009 != nil: + section.add "X-Amz-SignedHeaders", valid_617009 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -48339,35 +48366,35 @@ proc validate_PostDeregisterImage_616997(path: JsonNode; query: JsonNode; ## ImageId: JString (required) ## : The ID of the AMI. section = newJObject() - var valid_617008 = formData.getOrDefault("DryRun") - valid_617008 = validateParameter(valid_617008, JBool, required = false, default = nil) - if valid_617008 != nil: - section.add "DryRun", valid_617008 + var valid_617010 = formData.getOrDefault("DryRun") + valid_617010 = validateParameter(valid_617010, JBool, required = false, default = nil) + if valid_617010 != nil: + section.add "DryRun", valid_617010 assert formData != nil, "formData argument is necessary due to required `ImageId` field" - var valid_617009 = formData.getOrDefault("ImageId") - valid_617009 = validateParameter(valid_617009, JString, required = true, + var valid_617011 = formData.getOrDefault("ImageId") + valid_617011 = validateParameter(valid_617011, JString, required = true, default = nil) - if valid_617009 != nil: - section.add "ImageId", valid_617009 + if valid_617011 != nil: + section.add "ImageId", valid_617011 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617010: Call_PostDeregisterImage_616996; path: JsonNode; +proc call*(call_617012: Call_PostDeregisterImage_616998; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Deregisters the specified AMI. After you deregister an AMI, it can't be used to launch new instances; however, it doesn't affect any instances that you've already launched from the AMI. You'll continue to incur usage costs for those instances until you terminate them.

When you deregister an Amazon EBS-backed AMI, it doesn't affect the snapshot that was created for the root volume of the instance during the AMI creation process. When you deregister an instance store-backed AMI, it doesn't affect the files that you uploaded to Amazon S3 when you created the AMI.

## - let valid = call_617010.validator(path, query, header, formData, body) - let scheme = call_617010.pickScheme + let valid = call_617012.validator(path, query, header, formData, body) + let scheme = call_617012.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617010.url(scheme.get, call_617010.host, call_617010.base, - call_617010.route, valid.getOrDefault("path"), + let url = call_617012.url(scheme.get, call_617012.host, call_617012.base, + call_617012.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617010, url, valid) + result = atozHook(call_617012, url, valid) -proc call*(call_617011: Call_PostDeregisterImage_616996; ImageId: string; +proc call*(call_617013: Call_PostDeregisterImage_616998; ImageId: string; DryRun: bool = false; Action: string = "DeregisterImage"; Version: string = "2016-11-15"): Recallable = ## postDeregisterImage @@ -48378,22 +48405,22 @@ proc call*(call_617011: Call_PostDeregisterImage_616996; ImageId: string; ## ImageId: string (required) ## : The ID of the AMI. ## Version: string (required) - var query_617012 = newJObject() - var formData_617013 = newJObject() - add(formData_617013, "DryRun", newJBool(DryRun)) - add(query_617012, "Action", newJString(Action)) - add(formData_617013, "ImageId", newJString(ImageId)) - add(query_617012, "Version", newJString(Version)) - result = call_617011.call(nil, query_617012, nil, formData_617013, nil) + var query_617014 = newJObject() + var formData_617015 = newJObject() + add(formData_617015, "DryRun", newJBool(DryRun)) + add(query_617014, "Action", newJString(Action)) + add(formData_617015, "ImageId", newJString(ImageId)) + add(query_617014, "Version", newJString(Version)) + result = call_617013.call(nil, query_617014, nil, formData_617015, nil) -var postDeregisterImage* = Call_PostDeregisterImage_616996( +var postDeregisterImage* = Call_PostDeregisterImage_616998( name: "postDeregisterImage", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeregisterImage", - validator: validate_PostDeregisterImage_616997, base: "/", - url: url_PostDeregisterImage_616998, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDeregisterImage_616999, base: "/", + url: url_PostDeregisterImage_617000, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeregisterImage_616979 = ref object of OpenApiRestCall_610658 -proc url_GetDeregisterImage_616981(protocol: Scheme; host: string; base: string; + Call_GetDeregisterImage_616981 = ref object of OpenApiRestCall_610658 +proc url_GetDeregisterImage_616983(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -48403,7 +48430,7 @@ proc url_GetDeregisterImage_616981(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetDeregisterImage_616980(path: JsonNode; query: JsonNode; +proc validate_GetDeregisterImage_616982(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Deregisters the specified AMI. After you deregister an AMI, it can't be used to launch new instances; however, it doesn't affect any instances that you've already launched from the AMI. You'll continue to incur usage costs for those instances until you terminate them.

When you deregister an Amazon EBS-backed AMI, it doesn't affect the snapshot that was created for the root volume of the instance during the AMI creation process. When you deregister an instance store-backed AMI, it doesn't affect the files that you uploaded to Amazon S3 when you created the AMI.

@@ -48421,25 +48448,25 @@ proc validate_GetDeregisterImage_616980(path: JsonNode; query: JsonNode; ## Version: JString (required) section = newJObject() assert query != nil, "query argument is necessary due to required `ImageId` field" - var valid_616982 = query.getOrDefault("ImageId") - valid_616982 = validateParameter(valid_616982, JString, required = true, - default = nil) - if valid_616982 != nil: - section.add "ImageId", valid_616982 - var valid_616983 = query.getOrDefault("DryRun") - valid_616983 = validateParameter(valid_616983, JBool, required = false, default = nil) - if valid_616983 != nil: - section.add "DryRun", valid_616983 - var valid_616984 = query.getOrDefault("Action") + var valid_616984 = query.getOrDefault("ImageId") valid_616984 = validateParameter(valid_616984, JString, required = true, - default = newJString("DeregisterImage")) + default = nil) if valid_616984 != nil: - section.add "Action", valid_616984 - var valid_616985 = query.getOrDefault("Version") - valid_616985 = validateParameter(valid_616985, JString, required = true, - default = newJString("2016-11-15")) + section.add "ImageId", valid_616984 + var valid_616985 = query.getOrDefault("DryRun") + valid_616985 = validateParameter(valid_616985, JBool, required = false, default = nil) if valid_616985 != nil: - section.add "Version", valid_616985 + section.add "DryRun", valid_616985 + var valid_616986 = query.getOrDefault("Action") + valid_616986 = validateParameter(valid_616986, JString, required = true, + default = newJString("DeregisterImage")) + if valid_616986 != nil: + section.add "Action", valid_616986 + var valid_616987 = query.getOrDefault("Version") + valid_616987 = validateParameter(valid_616987, JString, required = true, + default = newJString("2016-11-15")) + if valid_616987 != nil: + section.add "Version", valid_616987 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -48450,61 +48477,61 @@ proc validate_GetDeregisterImage_616980(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_616986 = header.getOrDefault("X-Amz-Signature") - valid_616986 = validateParameter(valid_616986, JString, required = false, - default = nil) - if valid_616986 != nil: - section.add "X-Amz-Signature", valid_616986 - var valid_616987 = header.getOrDefault("X-Amz-Content-Sha256") - valid_616987 = validateParameter(valid_616987, JString, required = false, - default = nil) - if valid_616987 != nil: - section.add "X-Amz-Content-Sha256", valid_616987 - var valid_616988 = header.getOrDefault("X-Amz-Date") + var valid_616988 = header.getOrDefault("X-Amz-Signature") valid_616988 = validateParameter(valid_616988, JString, required = false, default = nil) if valid_616988 != nil: - section.add "X-Amz-Date", valid_616988 - var valid_616989 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_616988 + var valid_616989 = header.getOrDefault("X-Amz-Content-Sha256") valid_616989 = validateParameter(valid_616989, JString, required = false, default = nil) if valid_616989 != nil: - section.add "X-Amz-Credential", valid_616989 - var valid_616990 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_616989 + var valid_616990 = header.getOrDefault("X-Amz-Date") valid_616990 = validateParameter(valid_616990, JString, required = false, default = nil) if valid_616990 != nil: - section.add "X-Amz-Security-Token", valid_616990 - var valid_616991 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_616990 + var valid_616991 = header.getOrDefault("X-Amz-Credential") valid_616991 = validateParameter(valid_616991, JString, required = false, default = nil) if valid_616991 != nil: - section.add "X-Amz-Algorithm", valid_616991 - var valid_616992 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_616991 + var valid_616992 = header.getOrDefault("X-Amz-Security-Token") valid_616992 = validateParameter(valid_616992, JString, required = false, default = nil) if valid_616992 != nil: - section.add "X-Amz-SignedHeaders", valid_616992 + section.add "X-Amz-Security-Token", valid_616992 + var valid_616993 = header.getOrDefault("X-Amz-Algorithm") + valid_616993 = validateParameter(valid_616993, JString, required = false, + default = nil) + if valid_616993 != nil: + section.add "X-Amz-Algorithm", valid_616993 + var valid_616994 = header.getOrDefault("X-Amz-SignedHeaders") + valid_616994 = validateParameter(valid_616994, JString, required = false, + default = nil) + if valid_616994 != nil: + section.add "X-Amz-SignedHeaders", valid_616994 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_616993: Call_GetDeregisterImage_616979; path: JsonNode; +proc call*(call_616995: Call_GetDeregisterImage_616981; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Deregisters the specified AMI. After you deregister an AMI, it can't be used to launch new instances; however, it doesn't affect any instances that you've already launched from the AMI. You'll continue to incur usage costs for those instances until you terminate them.

When you deregister an Amazon EBS-backed AMI, it doesn't affect the snapshot that was created for the root volume of the instance during the AMI creation process. When you deregister an instance store-backed AMI, it doesn't affect the files that you uploaded to Amazon S3 when you created the AMI.

## - let valid = call_616993.validator(path, query, header, formData, body) - let scheme = call_616993.pickScheme + let valid = call_616995.validator(path, query, header, formData, body) + let scheme = call_616995.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_616993.url(scheme.get, call_616993.host, call_616993.base, - call_616993.route, valid.getOrDefault("path"), + let url = call_616995.url(scheme.get, call_616995.host, call_616995.base, + call_616995.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_616993, url, valid) + result = atozHook(call_616995, url, valid) -proc call*(call_616994: Call_GetDeregisterImage_616979; ImageId: string; +proc call*(call_616996: Call_GetDeregisterImage_616981; ImageId: string; DryRun: bool = false; Action: string = "DeregisterImage"; Version: string = "2016-11-15"): Recallable = ## getDeregisterImage @@ -48515,21 +48542,21 @@ proc call*(call_616994: Call_GetDeregisterImage_616979; ImageId: string; ## : 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. ## Action: string (required) ## Version: string (required) - var query_616995 = newJObject() - add(query_616995, "ImageId", newJString(ImageId)) - add(query_616995, "DryRun", newJBool(DryRun)) - add(query_616995, "Action", newJString(Action)) - add(query_616995, "Version", newJString(Version)) - result = call_616994.call(nil, query_616995, nil, nil, nil) + var query_616997 = newJObject() + add(query_616997, "ImageId", newJString(ImageId)) + add(query_616997, "DryRun", newJBool(DryRun)) + add(query_616997, "Action", newJString(Action)) + add(query_616997, "Version", newJString(Version)) + result = call_616996.call(nil, query_616997, nil, nil, nil) -var getDeregisterImage* = Call_GetDeregisterImage_616979( +var getDeregisterImage* = Call_GetDeregisterImage_616981( name: "getDeregisterImage", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=DeregisterImage", validator: validate_GetDeregisterImage_616980, - base: "/", url: url_GetDeregisterImage_616981, + route: "/#Action=DeregisterImage", validator: validate_GetDeregisterImage_616982, + base: "/", url: url_GetDeregisterImage_616983, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeregisterTransitGatewayMulticastGroupMembers_617033 = ref object of OpenApiRestCall_610658 -proc url_PostDeregisterTransitGatewayMulticastGroupMembers_617035( + Call_PostDeregisterTransitGatewayMulticastGroupMembers_617035 = ref object of OpenApiRestCall_610658 +proc url_PostDeregisterTransitGatewayMulticastGroupMembers_617037( protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -48540,7 +48567,7 @@ proc url_PostDeregisterTransitGatewayMulticastGroupMembers_617035( else: result.path = base & route -proc validate_PostDeregisterTransitGatewayMulticastGroupMembers_617034( +proc validate_PostDeregisterTransitGatewayMulticastGroupMembers_617036( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deregisters the specified members (network interfaces) from the transit gateway multicast group. @@ -48553,16 +48580,16 @@ proc validate_PostDeregisterTransitGatewayMulticastGroupMembers_617034( ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617036 = query.getOrDefault("Action") - valid_617036 = validateParameter(valid_617036, JString, required = true, default = newJString( + var valid_617038 = query.getOrDefault("Action") + valid_617038 = validateParameter(valid_617038, JString, required = true, default = newJString( "DeregisterTransitGatewayMulticastGroupMembers")) - if valid_617036 != nil: - section.add "Action", valid_617036 - var valid_617037 = query.getOrDefault("Version") - valid_617037 = validateParameter(valid_617037, JString, required = true, + if valid_617038 != nil: + section.add "Action", valid_617038 + var valid_617039 = query.getOrDefault("Version") + valid_617039 = validateParameter(valid_617039, JString, required = true, default = newJString("2016-11-15")) - if valid_617037 != nil: - section.add "Version", valid_617037 + if valid_617039 != nil: + section.add "Version", valid_617039 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -48573,41 +48600,41 @@ proc validate_PostDeregisterTransitGatewayMulticastGroupMembers_617034( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617038 = header.getOrDefault("X-Amz-Signature") - valid_617038 = validateParameter(valid_617038, JString, required = false, - default = nil) - if valid_617038 != nil: - section.add "X-Amz-Signature", valid_617038 - var valid_617039 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617039 = validateParameter(valid_617039, JString, required = false, - default = nil) - if valid_617039 != nil: - section.add "X-Amz-Content-Sha256", valid_617039 - var valid_617040 = header.getOrDefault("X-Amz-Date") + var valid_617040 = header.getOrDefault("X-Amz-Signature") valid_617040 = validateParameter(valid_617040, JString, required = false, default = nil) if valid_617040 != nil: - section.add "X-Amz-Date", valid_617040 - var valid_617041 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617040 + var valid_617041 = header.getOrDefault("X-Amz-Content-Sha256") valid_617041 = validateParameter(valid_617041, JString, required = false, default = nil) if valid_617041 != nil: - section.add "X-Amz-Credential", valid_617041 - var valid_617042 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617041 + var valid_617042 = header.getOrDefault("X-Amz-Date") valid_617042 = validateParameter(valid_617042, JString, required = false, default = nil) if valid_617042 != nil: - section.add "X-Amz-Security-Token", valid_617042 - var valid_617043 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617042 + var valid_617043 = header.getOrDefault("X-Amz-Credential") valid_617043 = validateParameter(valid_617043, JString, required = false, default = nil) if valid_617043 != nil: - section.add "X-Amz-Algorithm", valid_617043 - var valid_617044 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617043 + var valid_617044 = header.getOrDefault("X-Amz-Security-Token") valid_617044 = validateParameter(valid_617044, JString, required = false, default = nil) if valid_617044 != nil: - section.add "X-Amz-SignedHeaders", valid_617044 + section.add "X-Amz-Security-Token", valid_617044 + var valid_617045 = header.getOrDefault("X-Amz-Algorithm") + valid_617045 = validateParameter(valid_617045, JString, required = false, + default = nil) + if valid_617045 != nil: + section.add "X-Amz-Algorithm", valid_617045 + var valid_617046 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617046 = validateParameter(valid_617046, JString, required = false, + default = nil) + if valid_617046 != nil: + section.add "X-Amz-SignedHeaders", valid_617046 result.add "header", section ## parameters in `formData` object: ## NetworkInterfaceIds: JArray @@ -48619,44 +48646,44 @@ proc validate_PostDeregisterTransitGatewayMulticastGroupMembers_617034( ## TransitGatewayMulticastDomainId: JString ## : The ID of the transit gateway multicast domain. section = newJObject() - var valid_617045 = formData.getOrDefault("NetworkInterfaceIds") - valid_617045 = validateParameter(valid_617045, JArray, required = false, + var valid_617047 = formData.getOrDefault("NetworkInterfaceIds") + valid_617047 = validateParameter(valid_617047, JArray, required = false, default = nil) - if valid_617045 != nil: - section.add "NetworkInterfaceIds", valid_617045 - var valid_617046 = formData.getOrDefault("GroupIpAddress") - valid_617046 = validateParameter(valid_617046, JString, required = false, - default = nil) - if valid_617046 != nil: - section.add "GroupIpAddress", valid_617046 - var valid_617047 = formData.getOrDefault("DryRun") - valid_617047 = validateParameter(valid_617047, JBool, required = false, default = nil) if valid_617047 != nil: - section.add "DryRun", valid_617047 - var valid_617048 = formData.getOrDefault("TransitGatewayMulticastDomainId") + section.add "NetworkInterfaceIds", valid_617047 + var valid_617048 = formData.getOrDefault("GroupIpAddress") valid_617048 = validateParameter(valid_617048, JString, required = false, default = nil) if valid_617048 != nil: - section.add "TransitGatewayMulticastDomainId", valid_617048 + section.add "GroupIpAddress", valid_617048 + var valid_617049 = formData.getOrDefault("DryRun") + valid_617049 = validateParameter(valid_617049, JBool, required = false, default = nil) + if valid_617049 != nil: + section.add "DryRun", valid_617049 + var valid_617050 = formData.getOrDefault("TransitGatewayMulticastDomainId") + valid_617050 = validateParameter(valid_617050, JString, required = false, + default = nil) + if valid_617050 != nil: + section.add "TransitGatewayMulticastDomainId", valid_617050 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617049: Call_PostDeregisterTransitGatewayMulticastGroupMembers_617033; +proc call*(call_617051: Call_PostDeregisterTransitGatewayMulticastGroupMembers_617035; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deregisters the specified members (network interfaces) from the transit gateway multicast group. ## - let valid = call_617049.validator(path, query, header, formData, body) - let scheme = call_617049.pickScheme + let valid = call_617051.validator(path, query, header, formData, body) + let scheme = call_617051.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617049.url(scheme.get, call_617049.host, call_617049.base, - call_617049.route, valid.getOrDefault("path"), + let url = call_617051.url(scheme.get, call_617051.host, call_617051.base, + call_617051.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617049, url, valid) + result = atozHook(call_617051, url, valid) -proc call*(call_617050: Call_PostDeregisterTransitGatewayMulticastGroupMembers_617033; +proc call*(call_617052: Call_PostDeregisterTransitGatewayMulticastGroupMembers_617035; NetworkInterfaceIds: JsonNode = nil; GroupIpAddress: string = ""; DryRun: bool = false; Action: string = "DeregisterTransitGatewayMulticastGroupMembers"; @@ -48674,28 +48701,28 @@ proc call*(call_617050: Call_PostDeregisterTransitGatewayMulticastGroupMembers_6 ## TransitGatewayMulticastDomainId: string ## : The ID of the transit gateway multicast domain. ## Version: string (required) - var query_617051 = newJObject() - var formData_617052 = newJObject() + var query_617053 = newJObject() + var formData_617054 = newJObject() if NetworkInterfaceIds != nil: - formData_617052.add "NetworkInterfaceIds", NetworkInterfaceIds - add(formData_617052, "GroupIpAddress", newJString(GroupIpAddress)) - add(formData_617052, "DryRun", newJBool(DryRun)) - add(query_617051, "Action", newJString(Action)) - add(formData_617052, "TransitGatewayMulticastDomainId", + formData_617054.add "NetworkInterfaceIds", NetworkInterfaceIds + add(formData_617054, "GroupIpAddress", newJString(GroupIpAddress)) + add(formData_617054, "DryRun", newJBool(DryRun)) + add(query_617053, "Action", newJString(Action)) + add(formData_617054, "TransitGatewayMulticastDomainId", newJString(TransitGatewayMulticastDomainId)) - add(query_617051, "Version", newJString(Version)) - result = call_617050.call(nil, query_617051, nil, formData_617052, nil) + add(query_617053, "Version", newJString(Version)) + result = call_617052.call(nil, query_617053, nil, formData_617054, nil) -var postDeregisterTransitGatewayMulticastGroupMembers* = Call_PostDeregisterTransitGatewayMulticastGroupMembers_617033( +var postDeregisterTransitGatewayMulticastGroupMembers* = Call_PostDeregisterTransitGatewayMulticastGroupMembers_617035( name: "postDeregisterTransitGatewayMulticastGroupMembers", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeregisterTransitGatewayMulticastGroupMembers", - validator: validate_PostDeregisterTransitGatewayMulticastGroupMembers_617034, - base: "/", url: url_PostDeregisterTransitGatewayMulticastGroupMembers_617035, + validator: validate_PostDeregisterTransitGatewayMulticastGroupMembers_617036, + base: "/", url: url_PostDeregisterTransitGatewayMulticastGroupMembers_617037, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeregisterTransitGatewayMulticastGroupMembers_617014 = ref object of OpenApiRestCall_610658 -proc url_GetDeregisterTransitGatewayMulticastGroupMembers_617016( + Call_GetDeregisterTransitGatewayMulticastGroupMembers_617016 = ref object of OpenApiRestCall_610658 +proc url_GetDeregisterTransitGatewayMulticastGroupMembers_617018( protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -48706,7 +48733,7 @@ proc url_GetDeregisterTransitGatewayMulticastGroupMembers_617016( else: result.path = base & route -proc validate_GetDeregisterTransitGatewayMulticastGroupMembers_617015( +proc validate_GetDeregisterTransitGatewayMulticastGroupMembers_617017( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deregisters the specified members (network interfaces) from the transit gateway multicast group. @@ -48727,35 +48754,35 @@ proc validate_GetDeregisterTransitGatewayMulticastGroupMembers_617015( ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617017 = query.getOrDefault("DryRun") - valid_617017 = validateParameter(valid_617017, JBool, required = false, default = nil) - if valid_617017 != nil: - section.add "DryRun", valid_617017 - var valid_617018 = query.getOrDefault("TransitGatewayMulticastDomainId") - valid_617018 = validateParameter(valid_617018, JString, required = false, - default = nil) - if valid_617018 != nil: - section.add "TransitGatewayMulticastDomainId", valid_617018 - var valid_617019 = query.getOrDefault("GroupIpAddress") - valid_617019 = validateParameter(valid_617019, JString, required = false, - default = nil) + var valid_617019 = query.getOrDefault("DryRun") + valid_617019 = validateParameter(valid_617019, JBool, required = false, default = nil) if valid_617019 != nil: - section.add "GroupIpAddress", valid_617019 - var valid_617020 = query.getOrDefault("NetworkInterfaceIds") - valid_617020 = validateParameter(valid_617020, JArray, required = false, + section.add "DryRun", valid_617019 + var valid_617020 = query.getOrDefault("TransitGatewayMulticastDomainId") + valid_617020 = validateParameter(valid_617020, JString, required = false, default = nil) if valid_617020 != nil: - section.add "NetworkInterfaceIds", valid_617020 - var valid_617021 = query.getOrDefault("Action") - valid_617021 = validateParameter(valid_617021, JString, required = true, default = newJString( - "DeregisterTransitGatewayMulticastGroupMembers")) + section.add "TransitGatewayMulticastDomainId", valid_617020 + var valid_617021 = query.getOrDefault("GroupIpAddress") + valid_617021 = validateParameter(valid_617021, JString, required = false, + default = nil) if valid_617021 != nil: - section.add "Action", valid_617021 - var valid_617022 = query.getOrDefault("Version") - valid_617022 = validateParameter(valid_617022, JString, required = true, - default = newJString("2016-11-15")) + section.add "GroupIpAddress", valid_617021 + var valid_617022 = query.getOrDefault("NetworkInterfaceIds") + valid_617022 = validateParameter(valid_617022, JArray, required = false, + default = nil) if valid_617022 != nil: - section.add "Version", valid_617022 + section.add "NetworkInterfaceIds", valid_617022 + var valid_617023 = query.getOrDefault("Action") + valid_617023 = validateParameter(valid_617023, JString, required = true, default = newJString( + "DeregisterTransitGatewayMulticastGroupMembers")) + if valid_617023 != nil: + section.add "Action", valid_617023 + var valid_617024 = query.getOrDefault("Version") + valid_617024 = validateParameter(valid_617024, JString, required = true, + default = newJString("2016-11-15")) + if valid_617024 != nil: + section.add "Version", valid_617024 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -48766,62 +48793,62 @@ proc validate_GetDeregisterTransitGatewayMulticastGroupMembers_617015( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617023 = header.getOrDefault("X-Amz-Signature") - valid_617023 = validateParameter(valid_617023, JString, required = false, - default = nil) - if valid_617023 != nil: - section.add "X-Amz-Signature", valid_617023 - var valid_617024 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617024 = validateParameter(valid_617024, JString, required = false, - default = nil) - if valid_617024 != nil: - section.add "X-Amz-Content-Sha256", valid_617024 - var valid_617025 = header.getOrDefault("X-Amz-Date") + var valid_617025 = header.getOrDefault("X-Amz-Signature") valid_617025 = validateParameter(valid_617025, JString, required = false, default = nil) if valid_617025 != nil: - section.add "X-Amz-Date", valid_617025 - var valid_617026 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617025 + var valid_617026 = header.getOrDefault("X-Amz-Content-Sha256") valid_617026 = validateParameter(valid_617026, JString, required = false, default = nil) if valid_617026 != nil: - section.add "X-Amz-Credential", valid_617026 - var valid_617027 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617026 + var valid_617027 = header.getOrDefault("X-Amz-Date") valid_617027 = validateParameter(valid_617027, JString, required = false, default = nil) if valid_617027 != nil: - section.add "X-Amz-Security-Token", valid_617027 - var valid_617028 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617027 + var valid_617028 = header.getOrDefault("X-Amz-Credential") valid_617028 = validateParameter(valid_617028, JString, required = false, default = nil) if valid_617028 != nil: - section.add "X-Amz-Algorithm", valid_617028 - var valid_617029 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617028 + var valid_617029 = header.getOrDefault("X-Amz-Security-Token") valid_617029 = validateParameter(valid_617029, JString, required = false, default = nil) if valid_617029 != nil: - section.add "X-Amz-SignedHeaders", valid_617029 + section.add "X-Amz-Security-Token", valid_617029 + var valid_617030 = header.getOrDefault("X-Amz-Algorithm") + valid_617030 = validateParameter(valid_617030, JString, required = false, + default = nil) + if valid_617030 != nil: + section.add "X-Amz-Algorithm", valid_617030 + var valid_617031 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617031 = validateParameter(valid_617031, JString, required = false, + default = nil) + if valid_617031 != nil: + section.add "X-Amz-SignedHeaders", valid_617031 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617030: Call_GetDeregisterTransitGatewayMulticastGroupMembers_617014; +proc call*(call_617032: Call_GetDeregisterTransitGatewayMulticastGroupMembers_617016; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deregisters the specified members (network interfaces) from the transit gateway multicast group. ## - let valid = call_617030.validator(path, query, header, formData, body) - let scheme = call_617030.pickScheme + let valid = call_617032.validator(path, query, header, formData, body) + let scheme = call_617032.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617030.url(scheme.get, call_617030.host, call_617030.base, - call_617030.route, valid.getOrDefault("path"), + let url = call_617032.url(scheme.get, call_617032.host, call_617032.base, + call_617032.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617030, url, valid) + result = atozHook(call_617032, url, valid) -proc call*(call_617031: Call_GetDeregisterTransitGatewayMulticastGroupMembers_617014; +proc call*(call_617033: Call_GetDeregisterTransitGatewayMulticastGroupMembers_617016; DryRun: bool = false; TransitGatewayMulticastDomainId: string = ""; GroupIpAddress: string = ""; NetworkInterfaceIds: JsonNode = nil; Action: string = "DeregisterTransitGatewayMulticastGroupMembers"; @@ -48838,27 +48865,27 @@ proc call*(call_617031: Call_GetDeregisterTransitGatewayMulticastGroupMembers_61 ## : The IDs of the group members' network interfaces. ## Action: string (required) ## Version: string (required) - var query_617032 = newJObject() - add(query_617032, "DryRun", newJBool(DryRun)) - add(query_617032, "TransitGatewayMulticastDomainId", + var query_617034 = newJObject() + add(query_617034, "DryRun", newJBool(DryRun)) + add(query_617034, "TransitGatewayMulticastDomainId", newJString(TransitGatewayMulticastDomainId)) - add(query_617032, "GroupIpAddress", newJString(GroupIpAddress)) + add(query_617034, "GroupIpAddress", newJString(GroupIpAddress)) if NetworkInterfaceIds != nil: - query_617032.add "NetworkInterfaceIds", NetworkInterfaceIds - add(query_617032, "Action", newJString(Action)) - add(query_617032, "Version", newJString(Version)) - result = call_617031.call(nil, query_617032, nil, nil, nil) + query_617034.add "NetworkInterfaceIds", NetworkInterfaceIds + add(query_617034, "Action", newJString(Action)) + add(query_617034, "Version", newJString(Version)) + result = call_617033.call(nil, query_617034, nil, nil, nil) -var getDeregisterTransitGatewayMulticastGroupMembers* = Call_GetDeregisterTransitGatewayMulticastGroupMembers_617014( +var getDeregisterTransitGatewayMulticastGroupMembers* = Call_GetDeregisterTransitGatewayMulticastGroupMembers_617016( name: "getDeregisterTransitGatewayMulticastGroupMembers", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeregisterTransitGatewayMulticastGroupMembers", - validator: validate_GetDeregisterTransitGatewayMulticastGroupMembers_617015, - base: "/", url: url_GetDeregisterTransitGatewayMulticastGroupMembers_617016, + validator: validate_GetDeregisterTransitGatewayMulticastGroupMembers_617017, + base: "/", url: url_GetDeregisterTransitGatewayMulticastGroupMembers_617018, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDeregisterTransitGatewayMulticastGroupSources_617072 = ref object of OpenApiRestCall_610658 -proc url_PostDeregisterTransitGatewayMulticastGroupSources_617074( + Call_PostDeregisterTransitGatewayMulticastGroupSources_617074 = ref object of OpenApiRestCall_610658 +proc url_PostDeregisterTransitGatewayMulticastGroupSources_617076( protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -48869,7 +48896,7 @@ proc url_PostDeregisterTransitGatewayMulticastGroupSources_617074( else: result.path = base & route -proc validate_PostDeregisterTransitGatewayMulticastGroupSources_617073( +proc validate_PostDeregisterTransitGatewayMulticastGroupSources_617075( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deregisters the specified sources (network interfaces) from the transit gateway multicast group. @@ -48882,16 +48909,16 @@ proc validate_PostDeregisterTransitGatewayMulticastGroupSources_617073( ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617075 = query.getOrDefault("Action") - valid_617075 = validateParameter(valid_617075, JString, required = true, default = newJString( + var valid_617077 = query.getOrDefault("Action") + valid_617077 = validateParameter(valid_617077, JString, required = true, default = newJString( "DeregisterTransitGatewayMulticastGroupSources")) - if valid_617075 != nil: - section.add "Action", valid_617075 - var valid_617076 = query.getOrDefault("Version") - valid_617076 = validateParameter(valid_617076, JString, required = true, + if valid_617077 != nil: + section.add "Action", valid_617077 + var valid_617078 = query.getOrDefault("Version") + valid_617078 = validateParameter(valid_617078, JString, required = true, default = newJString("2016-11-15")) - if valid_617076 != nil: - section.add "Version", valid_617076 + if valid_617078 != nil: + section.add "Version", valid_617078 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -48902,41 +48929,41 @@ proc validate_PostDeregisterTransitGatewayMulticastGroupSources_617073( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617077 = header.getOrDefault("X-Amz-Signature") - valid_617077 = validateParameter(valid_617077, JString, required = false, - default = nil) - if valid_617077 != nil: - section.add "X-Amz-Signature", valid_617077 - var valid_617078 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617078 = validateParameter(valid_617078, JString, required = false, - default = nil) - if valid_617078 != nil: - section.add "X-Amz-Content-Sha256", valid_617078 - var valid_617079 = header.getOrDefault("X-Amz-Date") + var valid_617079 = header.getOrDefault("X-Amz-Signature") valid_617079 = validateParameter(valid_617079, JString, required = false, default = nil) if valid_617079 != nil: - section.add "X-Amz-Date", valid_617079 - var valid_617080 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617079 + var valid_617080 = header.getOrDefault("X-Amz-Content-Sha256") valid_617080 = validateParameter(valid_617080, JString, required = false, default = nil) if valid_617080 != nil: - section.add "X-Amz-Credential", valid_617080 - var valid_617081 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617080 + var valid_617081 = header.getOrDefault("X-Amz-Date") valid_617081 = validateParameter(valid_617081, JString, required = false, default = nil) if valid_617081 != nil: - section.add "X-Amz-Security-Token", valid_617081 - var valid_617082 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617081 + var valid_617082 = header.getOrDefault("X-Amz-Credential") valid_617082 = validateParameter(valid_617082, JString, required = false, default = nil) if valid_617082 != nil: - section.add "X-Amz-Algorithm", valid_617082 - var valid_617083 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617082 + var valid_617083 = header.getOrDefault("X-Amz-Security-Token") valid_617083 = validateParameter(valid_617083, JString, required = false, default = nil) if valid_617083 != nil: - section.add "X-Amz-SignedHeaders", valid_617083 + section.add "X-Amz-Security-Token", valid_617083 + var valid_617084 = header.getOrDefault("X-Amz-Algorithm") + valid_617084 = validateParameter(valid_617084, JString, required = false, + default = nil) + if valid_617084 != nil: + section.add "X-Amz-Algorithm", valid_617084 + var valid_617085 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617085 = validateParameter(valid_617085, JString, required = false, + default = nil) + if valid_617085 != nil: + section.add "X-Amz-SignedHeaders", valid_617085 result.add "header", section ## parameters in `formData` object: ## NetworkInterfaceIds: JArray @@ -48948,44 +48975,44 @@ proc validate_PostDeregisterTransitGatewayMulticastGroupSources_617073( ## TransitGatewayMulticastDomainId: JString ## : The ID of the transit gateway multicast domain. section = newJObject() - var valid_617084 = formData.getOrDefault("NetworkInterfaceIds") - valid_617084 = validateParameter(valid_617084, JArray, required = false, + var valid_617086 = formData.getOrDefault("NetworkInterfaceIds") + valid_617086 = validateParameter(valid_617086, JArray, required = false, default = nil) - if valid_617084 != nil: - section.add "NetworkInterfaceIds", valid_617084 - var valid_617085 = formData.getOrDefault("GroupIpAddress") - valid_617085 = validateParameter(valid_617085, JString, required = false, - default = nil) - if valid_617085 != nil: - section.add "GroupIpAddress", valid_617085 - var valid_617086 = formData.getOrDefault("DryRun") - valid_617086 = validateParameter(valid_617086, JBool, required = false, default = nil) if valid_617086 != nil: - section.add "DryRun", valid_617086 - var valid_617087 = formData.getOrDefault("TransitGatewayMulticastDomainId") + section.add "NetworkInterfaceIds", valid_617086 + var valid_617087 = formData.getOrDefault("GroupIpAddress") valid_617087 = validateParameter(valid_617087, JString, required = false, default = nil) if valid_617087 != nil: - section.add "TransitGatewayMulticastDomainId", valid_617087 + section.add "GroupIpAddress", valid_617087 + var valid_617088 = formData.getOrDefault("DryRun") + valid_617088 = validateParameter(valid_617088, JBool, required = false, default = nil) + if valid_617088 != nil: + section.add "DryRun", valid_617088 + var valid_617089 = formData.getOrDefault("TransitGatewayMulticastDomainId") + valid_617089 = validateParameter(valid_617089, JString, required = false, + default = nil) + if valid_617089 != nil: + section.add "TransitGatewayMulticastDomainId", valid_617089 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617088: Call_PostDeregisterTransitGatewayMulticastGroupSources_617072; +proc call*(call_617090: Call_PostDeregisterTransitGatewayMulticastGroupSources_617074; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deregisters the specified sources (network interfaces) from the transit gateway multicast group. ## - let valid = call_617088.validator(path, query, header, formData, body) - let scheme = call_617088.pickScheme + let valid = call_617090.validator(path, query, header, formData, body) + let scheme = call_617090.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617088.url(scheme.get, call_617088.host, call_617088.base, - call_617088.route, valid.getOrDefault("path"), + let url = call_617090.url(scheme.get, call_617090.host, call_617090.base, + call_617090.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617088, url, valid) + result = atozHook(call_617090, url, valid) -proc call*(call_617089: Call_PostDeregisterTransitGatewayMulticastGroupSources_617072; +proc call*(call_617091: Call_PostDeregisterTransitGatewayMulticastGroupSources_617074; NetworkInterfaceIds: JsonNode = nil; GroupIpAddress: string = ""; DryRun: bool = false; Action: string = "DeregisterTransitGatewayMulticastGroupSources"; @@ -49003,28 +49030,28 @@ proc call*(call_617089: Call_PostDeregisterTransitGatewayMulticastGroupSources_6 ## TransitGatewayMulticastDomainId: string ## : The ID of the transit gateway multicast domain. ## Version: string (required) - var query_617090 = newJObject() - var formData_617091 = newJObject() + var query_617092 = newJObject() + var formData_617093 = newJObject() if NetworkInterfaceIds != nil: - formData_617091.add "NetworkInterfaceIds", NetworkInterfaceIds - add(formData_617091, "GroupIpAddress", newJString(GroupIpAddress)) - add(formData_617091, "DryRun", newJBool(DryRun)) - add(query_617090, "Action", newJString(Action)) - add(formData_617091, "TransitGatewayMulticastDomainId", + formData_617093.add "NetworkInterfaceIds", NetworkInterfaceIds + add(formData_617093, "GroupIpAddress", newJString(GroupIpAddress)) + add(formData_617093, "DryRun", newJBool(DryRun)) + add(query_617092, "Action", newJString(Action)) + add(formData_617093, "TransitGatewayMulticastDomainId", newJString(TransitGatewayMulticastDomainId)) - add(query_617090, "Version", newJString(Version)) - result = call_617089.call(nil, query_617090, nil, formData_617091, nil) + add(query_617092, "Version", newJString(Version)) + result = call_617091.call(nil, query_617092, nil, formData_617093, nil) -var postDeregisterTransitGatewayMulticastGroupSources* = Call_PostDeregisterTransitGatewayMulticastGroupSources_617072( +var postDeregisterTransitGatewayMulticastGroupSources* = Call_PostDeregisterTransitGatewayMulticastGroupSources_617074( name: "postDeregisterTransitGatewayMulticastGroupSources", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DeregisterTransitGatewayMulticastGroupSources", - validator: validate_PostDeregisterTransitGatewayMulticastGroupSources_617073, - base: "/", url: url_PostDeregisterTransitGatewayMulticastGroupSources_617074, + validator: validate_PostDeregisterTransitGatewayMulticastGroupSources_617075, + base: "/", url: url_PostDeregisterTransitGatewayMulticastGroupSources_617076, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDeregisterTransitGatewayMulticastGroupSources_617053 = ref object of OpenApiRestCall_610658 -proc url_GetDeregisterTransitGatewayMulticastGroupSources_617055( + Call_GetDeregisterTransitGatewayMulticastGroupSources_617055 = ref object of OpenApiRestCall_610658 +proc url_GetDeregisterTransitGatewayMulticastGroupSources_617057( protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -49035,7 +49062,7 @@ proc url_GetDeregisterTransitGatewayMulticastGroupSources_617055( else: result.path = base & route -proc validate_GetDeregisterTransitGatewayMulticastGroupSources_617054( +proc validate_GetDeregisterTransitGatewayMulticastGroupSources_617056( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deregisters the specified sources (network interfaces) from the transit gateway multicast group. @@ -49056,35 +49083,35 @@ proc validate_GetDeregisterTransitGatewayMulticastGroupSources_617054( ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617056 = query.getOrDefault("DryRun") - valid_617056 = validateParameter(valid_617056, JBool, required = false, default = nil) - if valid_617056 != nil: - section.add "DryRun", valid_617056 - var valid_617057 = query.getOrDefault("TransitGatewayMulticastDomainId") - valid_617057 = validateParameter(valid_617057, JString, required = false, - default = nil) - if valid_617057 != nil: - section.add "TransitGatewayMulticastDomainId", valid_617057 - var valid_617058 = query.getOrDefault("GroupIpAddress") - valid_617058 = validateParameter(valid_617058, JString, required = false, - default = nil) + var valid_617058 = query.getOrDefault("DryRun") + valid_617058 = validateParameter(valid_617058, JBool, required = false, default = nil) if valid_617058 != nil: - section.add "GroupIpAddress", valid_617058 - var valid_617059 = query.getOrDefault("NetworkInterfaceIds") - valid_617059 = validateParameter(valid_617059, JArray, required = false, + section.add "DryRun", valid_617058 + var valid_617059 = query.getOrDefault("TransitGatewayMulticastDomainId") + valid_617059 = validateParameter(valid_617059, JString, required = false, default = nil) if valid_617059 != nil: - section.add "NetworkInterfaceIds", valid_617059 - var valid_617060 = query.getOrDefault("Action") - valid_617060 = validateParameter(valid_617060, JString, required = true, default = newJString( - "DeregisterTransitGatewayMulticastGroupSources")) + section.add "TransitGatewayMulticastDomainId", valid_617059 + var valid_617060 = query.getOrDefault("GroupIpAddress") + valid_617060 = validateParameter(valid_617060, JString, required = false, + default = nil) if valid_617060 != nil: - section.add "Action", valid_617060 - var valid_617061 = query.getOrDefault("Version") - valid_617061 = validateParameter(valid_617061, JString, required = true, - default = newJString("2016-11-15")) + section.add "GroupIpAddress", valid_617060 + var valid_617061 = query.getOrDefault("NetworkInterfaceIds") + valid_617061 = validateParameter(valid_617061, JArray, required = false, + default = nil) if valid_617061 != nil: - section.add "Version", valid_617061 + section.add "NetworkInterfaceIds", valid_617061 + var valid_617062 = query.getOrDefault("Action") + valid_617062 = validateParameter(valid_617062, JString, required = true, default = newJString( + "DeregisterTransitGatewayMulticastGroupSources")) + if valid_617062 != nil: + section.add "Action", valid_617062 + var valid_617063 = query.getOrDefault("Version") + valid_617063 = validateParameter(valid_617063, JString, required = true, + default = newJString("2016-11-15")) + if valid_617063 != nil: + section.add "Version", valid_617063 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -49095,62 +49122,62 @@ proc validate_GetDeregisterTransitGatewayMulticastGroupSources_617054( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617062 = header.getOrDefault("X-Amz-Signature") - valid_617062 = validateParameter(valid_617062, JString, required = false, - default = nil) - if valid_617062 != nil: - section.add "X-Amz-Signature", valid_617062 - var valid_617063 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617063 = validateParameter(valid_617063, JString, required = false, - default = nil) - if valid_617063 != nil: - section.add "X-Amz-Content-Sha256", valid_617063 - var valid_617064 = header.getOrDefault("X-Amz-Date") + var valid_617064 = header.getOrDefault("X-Amz-Signature") valid_617064 = validateParameter(valid_617064, JString, required = false, default = nil) if valid_617064 != nil: - section.add "X-Amz-Date", valid_617064 - var valid_617065 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617064 + var valid_617065 = header.getOrDefault("X-Amz-Content-Sha256") valid_617065 = validateParameter(valid_617065, JString, required = false, default = nil) if valid_617065 != nil: - section.add "X-Amz-Credential", valid_617065 - var valid_617066 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617065 + var valid_617066 = header.getOrDefault("X-Amz-Date") valid_617066 = validateParameter(valid_617066, JString, required = false, default = nil) if valid_617066 != nil: - section.add "X-Amz-Security-Token", valid_617066 - var valid_617067 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617066 + var valid_617067 = header.getOrDefault("X-Amz-Credential") valid_617067 = validateParameter(valid_617067, JString, required = false, default = nil) if valid_617067 != nil: - section.add "X-Amz-Algorithm", valid_617067 - var valid_617068 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617067 + var valid_617068 = header.getOrDefault("X-Amz-Security-Token") valid_617068 = validateParameter(valid_617068, JString, required = false, default = nil) if valid_617068 != nil: - section.add "X-Amz-SignedHeaders", valid_617068 + section.add "X-Amz-Security-Token", valid_617068 + var valid_617069 = header.getOrDefault("X-Amz-Algorithm") + valid_617069 = validateParameter(valid_617069, JString, required = false, + default = nil) + if valid_617069 != nil: + section.add "X-Amz-Algorithm", valid_617069 + var valid_617070 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617070 = validateParameter(valid_617070, JString, required = false, + default = nil) + if valid_617070 != nil: + section.add "X-Amz-SignedHeaders", valid_617070 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617069: Call_GetDeregisterTransitGatewayMulticastGroupSources_617053; +proc call*(call_617071: Call_GetDeregisterTransitGatewayMulticastGroupSources_617055; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deregisters the specified sources (network interfaces) from the transit gateway multicast group. ## - let valid = call_617069.validator(path, query, header, formData, body) - let scheme = call_617069.pickScheme + let valid = call_617071.validator(path, query, header, formData, body) + let scheme = call_617071.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617069.url(scheme.get, call_617069.host, call_617069.base, - call_617069.route, valid.getOrDefault("path"), + let url = call_617071.url(scheme.get, call_617071.host, call_617071.base, + call_617071.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617069, url, valid) + result = atozHook(call_617071, url, valid) -proc call*(call_617070: Call_GetDeregisterTransitGatewayMulticastGroupSources_617053; +proc call*(call_617072: Call_GetDeregisterTransitGatewayMulticastGroupSources_617055; DryRun: bool = false; TransitGatewayMulticastDomainId: string = ""; GroupIpAddress: string = ""; NetworkInterfaceIds: JsonNode = nil; Action: string = "DeregisterTransitGatewayMulticastGroupSources"; @@ -49167,27 +49194,27 @@ proc call*(call_617070: Call_GetDeregisterTransitGatewayMulticastGroupSources_61 ## : The IDs of the group sources' network interfaces. ## Action: string (required) ## Version: string (required) - var query_617071 = newJObject() - add(query_617071, "DryRun", newJBool(DryRun)) - add(query_617071, "TransitGatewayMulticastDomainId", + var query_617073 = newJObject() + add(query_617073, "DryRun", newJBool(DryRun)) + add(query_617073, "TransitGatewayMulticastDomainId", newJString(TransitGatewayMulticastDomainId)) - add(query_617071, "GroupIpAddress", newJString(GroupIpAddress)) + add(query_617073, "GroupIpAddress", newJString(GroupIpAddress)) if NetworkInterfaceIds != nil: - query_617071.add "NetworkInterfaceIds", NetworkInterfaceIds - add(query_617071, "Action", newJString(Action)) - add(query_617071, "Version", newJString(Version)) - result = call_617070.call(nil, query_617071, nil, nil, nil) + query_617073.add "NetworkInterfaceIds", NetworkInterfaceIds + add(query_617073, "Action", newJString(Action)) + add(query_617073, "Version", newJString(Version)) + result = call_617072.call(nil, query_617073, nil, nil, nil) -var getDeregisterTransitGatewayMulticastGroupSources* = Call_GetDeregisterTransitGatewayMulticastGroupSources_617053( +var getDeregisterTransitGatewayMulticastGroupSources* = Call_GetDeregisterTransitGatewayMulticastGroupSources_617055( name: "getDeregisterTransitGatewayMulticastGroupSources", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DeregisterTransitGatewayMulticastGroupSources", - validator: validate_GetDeregisterTransitGatewayMulticastGroupSources_617054, - base: "/", url: url_GetDeregisterTransitGatewayMulticastGroupSources_617055, + validator: validate_GetDeregisterTransitGatewayMulticastGroupSources_617056, + base: "/", url: url_GetDeregisterTransitGatewayMulticastGroupSources_617057, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeAccountAttributes_617109 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeAccountAttributes_617111(protocol: Scheme; host: string; + Call_PostDescribeAccountAttributes_617111 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeAccountAttributes_617113(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -49197,7 +49224,7 @@ proc url_PostDescribeAccountAttributes_617111(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeAccountAttributes_617110(path: JsonNode; query: JsonNode; +proc validate_PostDescribeAccountAttributes_617112(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes attributes of your AWS account. The following are the supported account attributes:

## @@ -49209,16 +49236,16 @@ proc validate_PostDescribeAccountAttributes_617110(path: JsonNode; query: JsonNo ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617112 = query.getOrDefault("Action") - valid_617112 = validateParameter(valid_617112, JString, required = true, default = newJString( + var valid_617114 = query.getOrDefault("Action") + valid_617114 = validateParameter(valid_617114, JString, required = true, default = newJString( "DescribeAccountAttributes")) - if valid_617112 != nil: - section.add "Action", valid_617112 - var valid_617113 = query.getOrDefault("Version") - valid_617113 = validateParameter(valid_617113, JString, required = true, + if valid_617114 != nil: + section.add "Action", valid_617114 + var valid_617115 = query.getOrDefault("Version") + valid_617115 = validateParameter(valid_617115, JString, required = true, default = newJString("2016-11-15")) - if valid_617113 != nil: - section.add "Version", valid_617113 + if valid_617115 != nil: + section.add "Version", valid_617115 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -49229,41 +49256,41 @@ proc validate_PostDescribeAccountAttributes_617110(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617114 = header.getOrDefault("X-Amz-Signature") - valid_617114 = validateParameter(valid_617114, JString, required = false, - default = nil) - if valid_617114 != nil: - section.add "X-Amz-Signature", valid_617114 - var valid_617115 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617115 = validateParameter(valid_617115, JString, required = false, - default = nil) - if valid_617115 != nil: - section.add "X-Amz-Content-Sha256", valid_617115 - var valid_617116 = header.getOrDefault("X-Amz-Date") + var valid_617116 = header.getOrDefault("X-Amz-Signature") valid_617116 = validateParameter(valid_617116, JString, required = false, default = nil) if valid_617116 != nil: - section.add "X-Amz-Date", valid_617116 - var valid_617117 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617116 + var valid_617117 = header.getOrDefault("X-Amz-Content-Sha256") valid_617117 = validateParameter(valid_617117, JString, required = false, default = nil) if valid_617117 != nil: - section.add "X-Amz-Credential", valid_617117 - var valid_617118 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617117 + var valid_617118 = header.getOrDefault("X-Amz-Date") valid_617118 = validateParameter(valid_617118, JString, required = false, default = nil) if valid_617118 != nil: - section.add "X-Amz-Security-Token", valid_617118 - var valid_617119 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617118 + var valid_617119 = header.getOrDefault("X-Amz-Credential") valid_617119 = validateParameter(valid_617119, JString, required = false, default = nil) if valid_617119 != nil: - section.add "X-Amz-Algorithm", valid_617119 - var valid_617120 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617119 + var valid_617120 = header.getOrDefault("X-Amz-Security-Token") valid_617120 = validateParameter(valid_617120, JString, required = false, default = nil) if valid_617120 != nil: - section.add "X-Amz-SignedHeaders", valid_617120 + section.add "X-Amz-Security-Token", valid_617120 + var valid_617121 = header.getOrDefault("X-Amz-Algorithm") + valid_617121 = validateParameter(valid_617121, JString, required = false, + default = nil) + if valid_617121 != nil: + section.add "X-Amz-Algorithm", valid_617121 + var valid_617122 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617122 = validateParameter(valid_617122, JString, required = false, + default = nil) + if valid_617122 != nil: + section.add "X-Amz-SignedHeaders", valid_617122 result.add "header", section ## parameters in `formData` object: ## AttributeName: JArray @@ -49271,33 +49298,33 @@ proc validate_PostDescribeAccountAttributes_617110(path: JsonNode; query: JsonNo ## DryRun: JBool ## : 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. section = newJObject() - var valid_617121 = formData.getOrDefault("AttributeName") - valid_617121 = validateParameter(valid_617121, JArray, required = false, + var valid_617123 = formData.getOrDefault("AttributeName") + valid_617123 = validateParameter(valid_617123, JArray, required = false, default = nil) - if valid_617121 != nil: - section.add "AttributeName", valid_617121 - var valid_617122 = formData.getOrDefault("DryRun") - valid_617122 = validateParameter(valid_617122, JBool, required = false, default = nil) - if valid_617122 != nil: - section.add "DryRun", valid_617122 + if valid_617123 != nil: + section.add "AttributeName", valid_617123 + var valid_617124 = formData.getOrDefault("DryRun") + valid_617124 = validateParameter(valid_617124, JBool, required = false, default = nil) + if valid_617124 != nil: + section.add "DryRun", valid_617124 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617123: Call_PostDescribeAccountAttributes_617109; path: JsonNode; +proc call*(call_617125: Call_PostDescribeAccountAttributes_617111; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes attributes of your AWS account. The following are the supported account attributes:

## - let valid = call_617123.validator(path, query, header, formData, body) - let scheme = call_617123.pickScheme + let valid = call_617125.validator(path, query, header, formData, body) + let scheme = call_617125.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617123.url(scheme.get, call_617123.host, call_617123.base, - call_617123.route, valid.getOrDefault("path"), + let url = call_617125.url(scheme.get, call_617125.host, call_617125.base, + call_617125.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617123, url, valid) + result = atozHook(call_617125, url, valid) -proc call*(call_617124: Call_PostDescribeAccountAttributes_617109; +proc call*(call_617126: Call_PostDescribeAccountAttributes_617111; AttributeName: JsonNode = nil; DryRun: bool = false; Action: string = "DescribeAccountAttributes"; Version: string = "2016-11-15"): Recallable = @@ -49309,24 +49336,24 @@ proc call*(call_617124: Call_PostDescribeAccountAttributes_617109; ## : 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. ## Action: string (required) ## Version: string (required) - var query_617125 = newJObject() - var formData_617126 = newJObject() + var query_617127 = newJObject() + var formData_617128 = newJObject() if AttributeName != nil: - formData_617126.add "AttributeName", AttributeName - add(formData_617126, "DryRun", newJBool(DryRun)) - add(query_617125, "Action", newJString(Action)) - add(query_617125, "Version", newJString(Version)) - result = call_617124.call(nil, query_617125, nil, formData_617126, nil) + formData_617128.add "AttributeName", AttributeName + add(formData_617128, "DryRun", newJBool(DryRun)) + add(query_617127, "Action", newJString(Action)) + add(query_617127, "Version", newJString(Version)) + result = call_617126.call(nil, query_617127, nil, formData_617128, nil) -var postDescribeAccountAttributes* = Call_PostDescribeAccountAttributes_617109( +var postDescribeAccountAttributes* = Call_PostDescribeAccountAttributes_617111( name: "postDescribeAccountAttributes", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeAccountAttributes", - validator: validate_PostDescribeAccountAttributes_617110, base: "/", - url: url_PostDescribeAccountAttributes_617111, + validator: validate_PostDescribeAccountAttributes_617112, base: "/", + url: url_PostDescribeAccountAttributes_617113, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeAccountAttributes_617092 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeAccountAttributes_617094(protocol: Scheme; host: string; + Call_GetDescribeAccountAttributes_617094 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeAccountAttributes_617096(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -49336,7 +49363,7 @@ proc url_GetDescribeAccountAttributes_617094(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeAccountAttributes_617093(path: JsonNode; query: JsonNode; +proc validate_GetDescribeAccountAttributes_617095(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes attributes of your AWS account. The following are the supported account attributes:

## @@ -49352,25 +49379,25 @@ proc validate_GetDescribeAccountAttributes_617093(path: JsonNode; query: JsonNod ## : The account attribute names. ## Version: JString (required) section = newJObject() - var valid_617095 = query.getOrDefault("DryRun") - valid_617095 = validateParameter(valid_617095, JBool, required = false, default = nil) - if valid_617095 != nil: - section.add "DryRun", valid_617095 - var valid_617096 = query.getOrDefault("Action") - valid_617096 = validateParameter(valid_617096, JString, required = true, default = newJString( + var valid_617097 = query.getOrDefault("DryRun") + valid_617097 = validateParameter(valid_617097, JBool, required = false, default = nil) + if valid_617097 != nil: + section.add "DryRun", valid_617097 + var valid_617098 = query.getOrDefault("Action") + valid_617098 = validateParameter(valid_617098, JString, required = true, default = newJString( "DescribeAccountAttributes")) - if valid_617096 != nil: - section.add "Action", valid_617096 - var valid_617097 = query.getOrDefault("AttributeName") - valid_617097 = validateParameter(valid_617097, JArray, required = false, + if valid_617098 != nil: + section.add "Action", valid_617098 + var valid_617099 = query.getOrDefault("AttributeName") + valid_617099 = validateParameter(valid_617099, JArray, required = false, default = nil) - if valid_617097 != nil: - section.add "AttributeName", valid_617097 - var valid_617098 = query.getOrDefault("Version") - valid_617098 = validateParameter(valid_617098, JString, required = true, + if valid_617099 != nil: + section.add "AttributeName", valid_617099 + var valid_617100 = query.getOrDefault("Version") + valid_617100 = validateParameter(valid_617100, JString, required = true, default = newJString("2016-11-15")) - if valid_617098 != nil: - section.add "Version", valid_617098 + if valid_617100 != nil: + section.add "Version", valid_617100 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -49381,61 +49408,61 @@ proc validate_GetDescribeAccountAttributes_617093(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617099 = header.getOrDefault("X-Amz-Signature") - valid_617099 = validateParameter(valid_617099, JString, required = false, - default = nil) - if valid_617099 != nil: - section.add "X-Amz-Signature", valid_617099 - var valid_617100 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617100 = validateParameter(valid_617100, JString, required = false, - default = nil) - if valid_617100 != nil: - section.add "X-Amz-Content-Sha256", valid_617100 - var valid_617101 = header.getOrDefault("X-Amz-Date") + var valid_617101 = header.getOrDefault("X-Amz-Signature") valid_617101 = validateParameter(valid_617101, JString, required = false, default = nil) if valid_617101 != nil: - section.add "X-Amz-Date", valid_617101 - var valid_617102 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617101 + var valid_617102 = header.getOrDefault("X-Amz-Content-Sha256") valid_617102 = validateParameter(valid_617102, JString, required = false, default = nil) if valid_617102 != nil: - section.add "X-Amz-Credential", valid_617102 - var valid_617103 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617102 + var valid_617103 = header.getOrDefault("X-Amz-Date") valid_617103 = validateParameter(valid_617103, JString, required = false, default = nil) if valid_617103 != nil: - section.add "X-Amz-Security-Token", valid_617103 - var valid_617104 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617103 + var valid_617104 = header.getOrDefault("X-Amz-Credential") valid_617104 = validateParameter(valid_617104, JString, required = false, default = nil) if valid_617104 != nil: - section.add "X-Amz-Algorithm", valid_617104 - var valid_617105 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617104 + var valid_617105 = header.getOrDefault("X-Amz-Security-Token") valid_617105 = validateParameter(valid_617105, JString, required = false, default = nil) if valid_617105 != nil: - section.add "X-Amz-SignedHeaders", valid_617105 + section.add "X-Amz-Security-Token", valid_617105 + var valid_617106 = header.getOrDefault("X-Amz-Algorithm") + valid_617106 = validateParameter(valid_617106, JString, required = false, + default = nil) + if valid_617106 != nil: + section.add "X-Amz-Algorithm", valid_617106 + var valid_617107 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617107 = validateParameter(valid_617107, JString, required = false, + default = nil) + if valid_617107 != nil: + section.add "X-Amz-SignedHeaders", valid_617107 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617106: Call_GetDescribeAccountAttributes_617092; path: JsonNode; +proc call*(call_617108: Call_GetDescribeAccountAttributes_617094; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes attributes of your AWS account. The following are the supported account attributes:

## - let valid = call_617106.validator(path, query, header, formData, body) - let scheme = call_617106.pickScheme + let valid = call_617108.validator(path, query, header, formData, body) + let scheme = call_617108.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617106.url(scheme.get, call_617106.host, call_617106.base, - call_617106.route, valid.getOrDefault("path"), + let url = call_617108.url(scheme.get, call_617108.host, call_617108.base, + call_617108.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617106, url, valid) + result = atozHook(call_617108, url, valid) -proc call*(call_617107: Call_GetDescribeAccountAttributes_617092; +proc call*(call_617109: Call_GetDescribeAccountAttributes_617094; DryRun: bool = false; Action: string = "DescribeAccountAttributes"; AttributeName: JsonNode = nil; Version: string = "2016-11-15"): Recallable = ## getDescribeAccountAttributes @@ -49446,23 +49473,23 @@ proc call*(call_617107: Call_GetDescribeAccountAttributes_617092; ## AttributeName: JArray ## : The account attribute names. ## Version: string (required) - var query_617108 = newJObject() - add(query_617108, "DryRun", newJBool(DryRun)) - add(query_617108, "Action", newJString(Action)) + var query_617110 = newJObject() + add(query_617110, "DryRun", newJBool(DryRun)) + add(query_617110, "Action", newJString(Action)) if AttributeName != nil: - query_617108.add "AttributeName", AttributeName - add(query_617108, "Version", newJString(Version)) - result = call_617107.call(nil, query_617108, nil, nil, nil) + query_617110.add "AttributeName", AttributeName + add(query_617110, "Version", newJString(Version)) + result = call_617109.call(nil, query_617110, nil, nil, nil) -var getDescribeAccountAttributes* = Call_GetDescribeAccountAttributes_617092( +var getDescribeAccountAttributes* = Call_GetDescribeAccountAttributes_617094( name: "getDescribeAccountAttributes", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeAccountAttributes", - validator: validate_GetDescribeAccountAttributes_617093, base: "/", - url: url_GetDescribeAccountAttributes_617094, + validator: validate_GetDescribeAccountAttributes_617095, base: "/", + url: url_GetDescribeAccountAttributes_617096, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeAddresses_617146 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeAddresses_617148(protocol: Scheme; host: string; base: string; + Call_PostDescribeAddresses_617148 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeAddresses_617150(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -49472,7 +49499,7 @@ proc url_PostDescribeAddresses_617148(protocol: Scheme; host: string; base: stri else: result.path = base & route -proc validate_PostDescribeAddresses_617147(path: JsonNode; query: JsonNode; +proc validate_PostDescribeAddresses_617149(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the specified Elastic IP addresses or all of your Elastic IP addresses.

An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

## @@ -49484,16 +49511,16 @@ proc validate_PostDescribeAddresses_617147(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617149 = query.getOrDefault("Action") - valid_617149 = validateParameter(valid_617149, JString, required = true, + var valid_617151 = query.getOrDefault("Action") + valid_617151 = validateParameter(valid_617151, JString, required = true, default = newJString("DescribeAddresses")) - if valid_617149 != nil: - section.add "Action", valid_617149 - var valid_617150 = query.getOrDefault("Version") - valid_617150 = validateParameter(valid_617150, JString, required = true, + if valid_617151 != nil: + section.add "Action", valid_617151 + var valid_617152 = query.getOrDefault("Version") + valid_617152 = validateParameter(valid_617152, JString, required = true, default = newJString("2016-11-15")) - if valid_617150 != nil: - section.add "Version", valid_617150 + if valid_617152 != nil: + section.add "Version", valid_617152 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -49504,41 +49531,41 @@ proc validate_PostDescribeAddresses_617147(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617151 = header.getOrDefault("X-Amz-Signature") - valid_617151 = validateParameter(valid_617151, JString, required = false, - default = nil) - if valid_617151 != nil: - section.add "X-Amz-Signature", valid_617151 - var valid_617152 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617152 = validateParameter(valid_617152, JString, required = false, - default = nil) - if valid_617152 != nil: - section.add "X-Amz-Content-Sha256", valid_617152 - var valid_617153 = header.getOrDefault("X-Amz-Date") + var valid_617153 = header.getOrDefault("X-Amz-Signature") valid_617153 = validateParameter(valid_617153, JString, required = false, default = nil) if valid_617153 != nil: - section.add "X-Amz-Date", valid_617153 - var valid_617154 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617153 + var valid_617154 = header.getOrDefault("X-Amz-Content-Sha256") valid_617154 = validateParameter(valid_617154, JString, required = false, default = nil) if valid_617154 != nil: - section.add "X-Amz-Credential", valid_617154 - var valid_617155 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617154 + var valid_617155 = header.getOrDefault("X-Amz-Date") valid_617155 = validateParameter(valid_617155, JString, required = false, default = nil) if valid_617155 != nil: - section.add "X-Amz-Security-Token", valid_617155 - var valid_617156 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617155 + var valid_617156 = header.getOrDefault("X-Amz-Credential") valid_617156 = validateParameter(valid_617156, JString, required = false, default = nil) if valid_617156 != nil: - section.add "X-Amz-Algorithm", valid_617156 - var valid_617157 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617156 + var valid_617157 = header.getOrDefault("X-Amz-Security-Token") valid_617157 = validateParameter(valid_617157, JString, required = false, default = nil) if valid_617157 != nil: - section.add "X-Amz-SignedHeaders", valid_617157 + section.add "X-Amz-Security-Token", valid_617157 + var valid_617158 = header.getOrDefault("X-Amz-Algorithm") + valid_617158 = validateParameter(valid_617158, JString, required = false, + default = nil) + if valid_617158 != nil: + section.add "X-Amz-Algorithm", valid_617158 + var valid_617159 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617159 = validateParameter(valid_617159, JString, required = false, + default = nil) + if valid_617159 != nil: + section.add "X-Amz-SignedHeaders", valid_617159 result.add "header", section ## parameters in `formData` object: ## AllocationId: JArray @@ -49550,43 +49577,43 @@ proc validate_PostDescribeAddresses_617147(path: JsonNode; query: JsonNode; ## Filter: JArray ## :

One or more filters. Filter names and values are case-sensitive.

section = newJObject() - var valid_617158 = formData.getOrDefault("AllocationId") - valid_617158 = validateParameter(valid_617158, JArray, required = false, - default = nil) - if valid_617158 != nil: - section.add "AllocationId", valid_617158 - var valid_617159 = formData.getOrDefault("DryRun") - valid_617159 = validateParameter(valid_617159, JBool, required = false, default = nil) - if valid_617159 != nil: - section.add "DryRun", valid_617159 - var valid_617160 = formData.getOrDefault("PublicIp") + var valid_617160 = formData.getOrDefault("AllocationId") valid_617160 = validateParameter(valid_617160, JArray, required = false, default = nil) if valid_617160 != nil: - section.add "PublicIp", valid_617160 - var valid_617161 = formData.getOrDefault("Filter") - valid_617161 = validateParameter(valid_617161, JArray, required = false, - default = nil) + section.add "AllocationId", valid_617160 + var valid_617161 = formData.getOrDefault("DryRun") + valid_617161 = validateParameter(valid_617161, JBool, required = false, default = nil) if valid_617161 != nil: - section.add "Filter", valid_617161 + section.add "DryRun", valid_617161 + var valid_617162 = formData.getOrDefault("PublicIp") + valid_617162 = validateParameter(valid_617162, JArray, required = false, + default = nil) + if valid_617162 != nil: + section.add "PublicIp", valid_617162 + var valid_617163 = formData.getOrDefault("Filter") + valid_617163 = validateParameter(valid_617163, JArray, required = false, + default = nil) + if valid_617163 != nil: + section.add "Filter", valid_617163 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617162: Call_PostDescribeAddresses_617146; path: JsonNode; +proc call*(call_617164: Call_PostDescribeAddresses_617148; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the specified Elastic IP addresses or all of your Elastic IP addresses.

An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_617162.validator(path, query, header, formData, body) - let scheme = call_617162.pickScheme + let valid = call_617164.validator(path, query, header, formData, body) + let scheme = call_617164.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617162.url(scheme.get, call_617162.host, call_617162.base, - call_617162.route, valid.getOrDefault("path"), + let url = call_617164.url(scheme.get, call_617164.host, call_617164.base, + call_617164.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617162, url, valid) + result = atozHook(call_617164, url, valid) -proc call*(call_617163: Call_PostDescribeAddresses_617146; +proc call*(call_617165: Call_PostDescribeAddresses_617148; AllocationId: JsonNode = nil; DryRun: bool = false; Action: string = "DescribeAddresses"; PublicIp: JsonNode = nil; Version: string = "2016-11-15"; Filter: JsonNode = nil): Recallable = @@ -49602,27 +49629,27 @@ proc call*(call_617163: Call_PostDescribeAddresses_617146; ## Version: string (required) ## Filter: JArray ## :

One or more filters. Filter names and values are case-sensitive.

- var query_617164 = newJObject() - var formData_617165 = newJObject() + var query_617166 = newJObject() + var formData_617167 = newJObject() if AllocationId != nil: - formData_617165.add "AllocationId", AllocationId - add(formData_617165, "DryRun", newJBool(DryRun)) - add(query_617164, "Action", newJString(Action)) + formData_617167.add "AllocationId", AllocationId + add(formData_617167, "DryRun", newJBool(DryRun)) + add(query_617166, "Action", newJString(Action)) if PublicIp != nil: - formData_617165.add "PublicIp", PublicIp - add(query_617164, "Version", newJString(Version)) + formData_617167.add "PublicIp", PublicIp + add(query_617166, "Version", newJString(Version)) if Filter != nil: - formData_617165.add "Filter", Filter - result = call_617163.call(nil, query_617164, nil, formData_617165, nil) + formData_617167.add "Filter", Filter + result = call_617165.call(nil, query_617166, nil, formData_617167, nil) -var postDescribeAddresses* = Call_PostDescribeAddresses_617146( +var postDescribeAddresses* = Call_PostDescribeAddresses_617148( name: "postDescribeAddresses", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeAddresses", - validator: validate_PostDescribeAddresses_617147, base: "/", - url: url_PostDescribeAddresses_617148, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDescribeAddresses_617149, base: "/", + url: url_PostDescribeAddresses_617150, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeAddresses_617127 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeAddresses_617129(protocol: Scheme; host: string; base: string; + Call_GetDescribeAddresses_617129 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeAddresses_617131(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -49632,7 +49659,7 @@ proc url_GetDescribeAddresses_617129(protocol: Scheme; host: string; base: strin else: result.path = base & route -proc validate_GetDescribeAddresses_617128(path: JsonNode; query: JsonNode; +proc validate_GetDescribeAddresses_617130(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the specified Elastic IP addresses or all of your Elastic IP addresses.

An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

## @@ -49652,35 +49679,35 @@ proc validate_GetDescribeAddresses_617128(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617130 = query.getOrDefault("AllocationId") - valid_617130 = validateParameter(valid_617130, JArray, required = false, - default = nil) - if valid_617130 != nil: - section.add "AllocationId", valid_617130 - var valid_617131 = query.getOrDefault("DryRun") - valid_617131 = validateParameter(valid_617131, JBool, required = false, default = nil) - if valid_617131 != nil: - section.add "DryRun", valid_617131 - var valid_617132 = query.getOrDefault("Filter") + var valid_617132 = query.getOrDefault("AllocationId") valid_617132 = validateParameter(valid_617132, JArray, required = false, default = nil) if valid_617132 != nil: - section.add "Filter", valid_617132 - var valid_617133 = query.getOrDefault("PublicIp") - valid_617133 = validateParameter(valid_617133, JArray, required = false, - default = nil) + section.add "AllocationId", valid_617132 + var valid_617133 = query.getOrDefault("DryRun") + valid_617133 = validateParameter(valid_617133, JBool, required = false, default = nil) if valid_617133 != nil: - section.add "PublicIp", valid_617133 - var valid_617134 = query.getOrDefault("Action") - valid_617134 = validateParameter(valid_617134, JString, required = true, - default = newJString("DescribeAddresses")) + section.add "DryRun", valid_617133 + var valid_617134 = query.getOrDefault("Filter") + valid_617134 = validateParameter(valid_617134, JArray, required = false, + default = nil) if valid_617134 != nil: - section.add "Action", valid_617134 - var valid_617135 = query.getOrDefault("Version") - valid_617135 = validateParameter(valid_617135, JString, required = true, - default = newJString("2016-11-15")) + section.add "Filter", valid_617134 + var valid_617135 = query.getOrDefault("PublicIp") + valid_617135 = validateParameter(valid_617135, JArray, required = false, + default = nil) if valid_617135 != nil: - section.add "Version", valid_617135 + section.add "PublicIp", valid_617135 + var valid_617136 = query.getOrDefault("Action") + valid_617136 = validateParameter(valid_617136, JString, required = true, + default = newJString("DescribeAddresses")) + if valid_617136 != nil: + section.add "Action", valid_617136 + var valid_617137 = query.getOrDefault("Version") + valid_617137 = validateParameter(valid_617137, JString, required = true, + default = newJString("2016-11-15")) + if valid_617137 != nil: + section.add "Version", valid_617137 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -49691,61 +49718,61 @@ proc validate_GetDescribeAddresses_617128(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617136 = header.getOrDefault("X-Amz-Signature") - valid_617136 = validateParameter(valid_617136, JString, required = false, - default = nil) - if valid_617136 != nil: - section.add "X-Amz-Signature", valid_617136 - var valid_617137 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617137 = validateParameter(valid_617137, JString, required = false, - default = nil) - if valid_617137 != nil: - section.add "X-Amz-Content-Sha256", valid_617137 - var valid_617138 = header.getOrDefault("X-Amz-Date") + var valid_617138 = header.getOrDefault("X-Amz-Signature") valid_617138 = validateParameter(valid_617138, JString, required = false, default = nil) if valid_617138 != nil: - section.add "X-Amz-Date", valid_617138 - var valid_617139 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617138 + var valid_617139 = header.getOrDefault("X-Amz-Content-Sha256") valid_617139 = validateParameter(valid_617139, JString, required = false, default = nil) if valid_617139 != nil: - section.add "X-Amz-Credential", valid_617139 - var valid_617140 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617139 + var valid_617140 = header.getOrDefault("X-Amz-Date") valid_617140 = validateParameter(valid_617140, JString, required = false, default = nil) if valid_617140 != nil: - section.add "X-Amz-Security-Token", valid_617140 - var valid_617141 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617140 + var valid_617141 = header.getOrDefault("X-Amz-Credential") valid_617141 = validateParameter(valid_617141, JString, required = false, default = nil) if valid_617141 != nil: - section.add "X-Amz-Algorithm", valid_617141 - var valid_617142 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617141 + var valid_617142 = header.getOrDefault("X-Amz-Security-Token") valid_617142 = validateParameter(valid_617142, JString, required = false, default = nil) if valid_617142 != nil: - section.add "X-Amz-SignedHeaders", valid_617142 + section.add "X-Amz-Security-Token", valid_617142 + var valid_617143 = header.getOrDefault("X-Amz-Algorithm") + valid_617143 = validateParameter(valid_617143, JString, required = false, + default = nil) + if valid_617143 != nil: + section.add "X-Amz-Algorithm", valid_617143 + var valid_617144 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617144 = validateParameter(valid_617144, JString, required = false, + default = nil) + if valid_617144 != nil: + section.add "X-Amz-SignedHeaders", valid_617144 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617143: Call_GetDescribeAddresses_617127; path: JsonNode; +proc call*(call_617145: Call_GetDescribeAddresses_617129; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the specified Elastic IP addresses or all of your Elastic IP addresses.

An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_617143.validator(path, query, header, formData, body) - let scheme = call_617143.pickScheme + let valid = call_617145.validator(path, query, header, formData, body) + let scheme = call_617145.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617143.url(scheme.get, call_617143.host, call_617143.base, - call_617143.route, valid.getOrDefault("path"), + let url = call_617145.url(scheme.get, call_617145.host, call_617145.base, + call_617145.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617143, url, valid) + result = atozHook(call_617145, url, valid) -proc call*(call_617144: Call_GetDescribeAddresses_617127; +proc call*(call_617146: Call_GetDescribeAddresses_617129; AllocationId: JsonNode = nil; DryRun: bool = false; Filter: JsonNode = nil; PublicIp: JsonNode = nil; Action: string = "DescribeAddresses"; Version: string = "2016-11-15"): Recallable = @@ -49761,26 +49788,26 @@ proc call*(call_617144: Call_GetDescribeAddresses_617127; ## :

One or more Elastic IP addresses.

Default: Describes all your Elastic IP addresses.

## Action: string (required) ## Version: string (required) - var query_617145 = newJObject() + var query_617147 = newJObject() if AllocationId != nil: - query_617145.add "AllocationId", AllocationId - add(query_617145, "DryRun", newJBool(DryRun)) + query_617147.add "AllocationId", AllocationId + add(query_617147, "DryRun", newJBool(DryRun)) if Filter != nil: - query_617145.add "Filter", Filter + query_617147.add "Filter", Filter if PublicIp != nil: - query_617145.add "PublicIp", PublicIp - add(query_617145, "Action", newJString(Action)) - add(query_617145, "Version", newJString(Version)) - result = call_617144.call(nil, query_617145, nil, nil, nil) + query_617147.add "PublicIp", PublicIp + add(query_617147, "Action", newJString(Action)) + add(query_617147, "Version", newJString(Version)) + result = call_617146.call(nil, query_617147, nil, nil, nil) -var getDescribeAddresses* = Call_GetDescribeAddresses_617127( +var getDescribeAddresses* = Call_GetDescribeAddresses_617129( name: "getDescribeAddresses", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeAddresses", - validator: validate_GetDescribeAddresses_617128, base: "/", - url: url_GetDescribeAddresses_617129, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDescribeAddresses_617130, base: "/", + url: url_GetDescribeAddresses_617131, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeAggregateIdFormat_617182 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeAggregateIdFormat_617184(protocol: Scheme; host: string; + Call_PostDescribeAggregateIdFormat_617184 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeAggregateIdFormat_617186(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -49790,7 +49817,7 @@ proc url_PostDescribeAggregateIdFormat_617184(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeAggregateIdFormat_617183(path: JsonNode; query: JsonNode; +proc validate_PostDescribeAggregateIdFormat_617185(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the longer ID format settings for all resource types in a specific Region. This request is useful for performing a quick audit to determine whether a specific Region is fully opted in for longer IDs (17-character IDs).

This request only returns information about resource types that support longer IDs.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

## @@ -49802,16 +49829,16 @@ proc validate_PostDescribeAggregateIdFormat_617183(path: JsonNode; query: JsonNo ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617185 = query.getOrDefault("Action") - valid_617185 = validateParameter(valid_617185, JString, required = true, default = newJString( + var valid_617187 = query.getOrDefault("Action") + valid_617187 = validateParameter(valid_617187, JString, required = true, default = newJString( "DescribeAggregateIdFormat")) - if valid_617185 != nil: - section.add "Action", valid_617185 - var valid_617186 = query.getOrDefault("Version") - valid_617186 = validateParameter(valid_617186, JString, required = true, + if valid_617187 != nil: + section.add "Action", valid_617187 + var valid_617188 = query.getOrDefault("Version") + valid_617188 = validateParameter(valid_617188, JString, required = true, default = newJString("2016-11-15")) - if valid_617186 != nil: - section.add "Version", valid_617186 + if valid_617188 != nil: + section.add "Version", valid_617188 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -49822,68 +49849,68 @@ proc validate_PostDescribeAggregateIdFormat_617183(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617187 = header.getOrDefault("X-Amz-Signature") - valid_617187 = validateParameter(valid_617187, JString, required = false, - default = nil) - if valid_617187 != nil: - section.add "X-Amz-Signature", valid_617187 - var valid_617188 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617188 = validateParameter(valid_617188, JString, required = false, - default = nil) - if valid_617188 != nil: - section.add "X-Amz-Content-Sha256", valid_617188 - var valid_617189 = header.getOrDefault("X-Amz-Date") + var valid_617189 = header.getOrDefault("X-Amz-Signature") valid_617189 = validateParameter(valid_617189, JString, required = false, default = nil) if valid_617189 != nil: - section.add "X-Amz-Date", valid_617189 - var valid_617190 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617189 + var valid_617190 = header.getOrDefault("X-Amz-Content-Sha256") valid_617190 = validateParameter(valid_617190, JString, required = false, default = nil) if valid_617190 != nil: - section.add "X-Amz-Credential", valid_617190 - var valid_617191 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617190 + var valid_617191 = header.getOrDefault("X-Amz-Date") valid_617191 = validateParameter(valid_617191, JString, required = false, default = nil) if valid_617191 != nil: - section.add "X-Amz-Security-Token", valid_617191 - var valid_617192 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617191 + var valid_617192 = header.getOrDefault("X-Amz-Credential") valid_617192 = validateParameter(valid_617192, JString, required = false, default = nil) if valid_617192 != nil: - section.add "X-Amz-Algorithm", valid_617192 - var valid_617193 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617192 + var valid_617193 = header.getOrDefault("X-Amz-Security-Token") valid_617193 = validateParameter(valid_617193, JString, required = false, default = nil) if valid_617193 != nil: - section.add "X-Amz-SignedHeaders", valid_617193 + section.add "X-Amz-Security-Token", valid_617193 + var valid_617194 = header.getOrDefault("X-Amz-Algorithm") + valid_617194 = validateParameter(valid_617194, JString, required = false, + default = nil) + if valid_617194 != nil: + section.add "X-Amz-Algorithm", valid_617194 + var valid_617195 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617195 = validateParameter(valid_617195, JString, required = false, + default = nil) + if valid_617195 != nil: + section.add "X-Amz-SignedHeaders", valid_617195 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool ## : 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. section = newJObject() - var valid_617194 = formData.getOrDefault("DryRun") - valid_617194 = validateParameter(valid_617194, JBool, required = false, default = nil) - if valid_617194 != nil: - section.add "DryRun", valid_617194 + var valid_617196 = formData.getOrDefault("DryRun") + valid_617196 = validateParameter(valid_617196, JBool, required = false, default = nil) + if valid_617196 != nil: + section.add "DryRun", valid_617196 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617195: Call_PostDescribeAggregateIdFormat_617182; path: JsonNode; +proc call*(call_617197: Call_PostDescribeAggregateIdFormat_617184; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the longer ID format settings for all resource types in a specific Region. This request is useful for performing a quick audit to determine whether a specific Region is fully opted in for longer IDs (17-character IDs).

This request only returns information about resource types that support longer IDs.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

## - let valid = call_617195.validator(path, query, header, formData, body) - let scheme = call_617195.pickScheme + let valid = call_617197.validator(path, query, header, formData, body) + let scheme = call_617197.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617195.url(scheme.get, call_617195.host, call_617195.base, - call_617195.route, valid.getOrDefault("path"), + let url = call_617197.url(scheme.get, call_617197.host, call_617197.base, + call_617197.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617195, url, valid) + result = atozHook(call_617197, url, valid) -proc call*(call_617196: Call_PostDescribeAggregateIdFormat_617182; +proc call*(call_617198: Call_PostDescribeAggregateIdFormat_617184; DryRun: bool = false; Action: string = "DescribeAggregateIdFormat"; Version: string = "2016-11-15"): Recallable = ## postDescribeAggregateIdFormat @@ -49892,22 +49919,22 @@ proc call*(call_617196: Call_PostDescribeAggregateIdFormat_617182; ## : 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. ## Action: string (required) ## Version: string (required) - var query_617197 = newJObject() - var formData_617198 = newJObject() - add(formData_617198, "DryRun", newJBool(DryRun)) - add(query_617197, "Action", newJString(Action)) - add(query_617197, "Version", newJString(Version)) - result = call_617196.call(nil, query_617197, nil, formData_617198, nil) + var query_617199 = newJObject() + var formData_617200 = newJObject() + add(formData_617200, "DryRun", newJBool(DryRun)) + add(query_617199, "Action", newJString(Action)) + add(query_617199, "Version", newJString(Version)) + result = call_617198.call(nil, query_617199, nil, formData_617200, nil) -var postDescribeAggregateIdFormat* = Call_PostDescribeAggregateIdFormat_617182( +var postDescribeAggregateIdFormat* = Call_PostDescribeAggregateIdFormat_617184( name: "postDescribeAggregateIdFormat", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeAggregateIdFormat", - validator: validate_PostDescribeAggregateIdFormat_617183, base: "/", - url: url_PostDescribeAggregateIdFormat_617184, + validator: validate_PostDescribeAggregateIdFormat_617185, base: "/", + url: url_PostDescribeAggregateIdFormat_617186, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeAggregateIdFormat_617166 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeAggregateIdFormat_617168(protocol: Scheme; host: string; + Call_GetDescribeAggregateIdFormat_617168 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeAggregateIdFormat_617170(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -49917,7 +49944,7 @@ proc url_GetDescribeAggregateIdFormat_617168(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeAggregateIdFormat_617167(path: JsonNode; query: JsonNode; +proc validate_GetDescribeAggregateIdFormat_617169(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the longer ID format settings for all resource types in a specific Region. This request is useful for performing a quick audit to determine whether a specific Region is fully opted in for longer IDs (17-character IDs).

This request only returns information about resource types that support longer IDs.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

## @@ -49931,20 +49958,20 @@ proc validate_GetDescribeAggregateIdFormat_617167(path: JsonNode; query: JsonNod ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617169 = query.getOrDefault("DryRun") - valid_617169 = validateParameter(valid_617169, JBool, required = false, default = nil) - if valid_617169 != nil: - section.add "DryRun", valid_617169 - var valid_617170 = query.getOrDefault("Action") - valid_617170 = validateParameter(valid_617170, JString, required = true, default = newJString( + var valid_617171 = query.getOrDefault("DryRun") + valid_617171 = validateParameter(valid_617171, JBool, required = false, default = nil) + if valid_617171 != nil: + section.add "DryRun", valid_617171 + var valid_617172 = query.getOrDefault("Action") + valid_617172 = validateParameter(valid_617172, JString, required = true, default = newJString( "DescribeAggregateIdFormat")) - if valid_617170 != nil: - section.add "Action", valid_617170 - var valid_617171 = query.getOrDefault("Version") - valid_617171 = validateParameter(valid_617171, JString, required = true, + if valid_617172 != nil: + section.add "Action", valid_617172 + var valid_617173 = query.getOrDefault("Version") + valid_617173 = validateParameter(valid_617173, JString, required = true, default = newJString("2016-11-15")) - if valid_617171 != nil: - section.add "Version", valid_617171 + if valid_617173 != nil: + section.add "Version", valid_617173 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -49955,61 +49982,61 @@ proc validate_GetDescribeAggregateIdFormat_617167(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617172 = header.getOrDefault("X-Amz-Signature") - valid_617172 = validateParameter(valid_617172, JString, required = false, - default = nil) - if valid_617172 != nil: - section.add "X-Amz-Signature", valid_617172 - var valid_617173 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617173 = validateParameter(valid_617173, JString, required = false, - default = nil) - if valid_617173 != nil: - section.add "X-Amz-Content-Sha256", valid_617173 - var valid_617174 = header.getOrDefault("X-Amz-Date") + var valid_617174 = header.getOrDefault("X-Amz-Signature") valid_617174 = validateParameter(valid_617174, JString, required = false, default = nil) if valid_617174 != nil: - section.add "X-Amz-Date", valid_617174 - var valid_617175 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617174 + var valid_617175 = header.getOrDefault("X-Amz-Content-Sha256") valid_617175 = validateParameter(valid_617175, JString, required = false, default = nil) if valid_617175 != nil: - section.add "X-Amz-Credential", valid_617175 - var valid_617176 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617175 + var valid_617176 = header.getOrDefault("X-Amz-Date") valid_617176 = validateParameter(valid_617176, JString, required = false, default = nil) if valid_617176 != nil: - section.add "X-Amz-Security-Token", valid_617176 - var valid_617177 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617176 + var valid_617177 = header.getOrDefault("X-Amz-Credential") valid_617177 = validateParameter(valid_617177, JString, required = false, default = nil) if valid_617177 != nil: - section.add "X-Amz-Algorithm", valid_617177 - var valid_617178 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617177 + var valid_617178 = header.getOrDefault("X-Amz-Security-Token") valid_617178 = validateParameter(valid_617178, JString, required = false, default = nil) if valid_617178 != nil: - section.add "X-Amz-SignedHeaders", valid_617178 + section.add "X-Amz-Security-Token", valid_617178 + var valid_617179 = header.getOrDefault("X-Amz-Algorithm") + valid_617179 = validateParameter(valid_617179, JString, required = false, + default = nil) + if valid_617179 != nil: + section.add "X-Amz-Algorithm", valid_617179 + var valid_617180 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617180 = validateParameter(valid_617180, JString, required = false, + default = nil) + if valid_617180 != nil: + section.add "X-Amz-SignedHeaders", valid_617180 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617179: Call_GetDescribeAggregateIdFormat_617166; path: JsonNode; +proc call*(call_617181: Call_GetDescribeAggregateIdFormat_617168; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the longer ID format settings for all resource types in a specific Region. This request is useful for performing a quick audit to determine whether a specific Region is fully opted in for longer IDs (17-character IDs).

This request only returns information about resource types that support longer IDs.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

## - let valid = call_617179.validator(path, query, header, formData, body) - let scheme = call_617179.pickScheme + let valid = call_617181.validator(path, query, header, formData, body) + let scheme = call_617181.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617179.url(scheme.get, call_617179.host, call_617179.base, - call_617179.route, valid.getOrDefault("path"), + let url = call_617181.url(scheme.get, call_617181.host, call_617181.base, + call_617181.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617179, url, valid) + result = atozHook(call_617181, url, valid) -proc call*(call_617180: Call_GetDescribeAggregateIdFormat_617166; +proc call*(call_617182: Call_GetDescribeAggregateIdFormat_617168; DryRun: bool = false; Action: string = "DescribeAggregateIdFormat"; Version: string = "2016-11-15"): Recallable = ## getDescribeAggregateIdFormat @@ -50018,21 +50045,21 @@ proc call*(call_617180: Call_GetDescribeAggregateIdFormat_617166; ## : 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. ## Action: string (required) ## Version: string (required) - var query_617181 = newJObject() - add(query_617181, "DryRun", newJBool(DryRun)) - add(query_617181, "Action", newJString(Action)) - add(query_617181, "Version", newJString(Version)) - result = call_617180.call(nil, query_617181, nil, nil, nil) + var query_617183 = newJObject() + add(query_617183, "DryRun", newJBool(DryRun)) + add(query_617183, "Action", newJString(Action)) + add(query_617183, "Version", newJString(Version)) + result = call_617182.call(nil, query_617183, nil, nil, nil) -var getDescribeAggregateIdFormat* = Call_GetDescribeAggregateIdFormat_617166( +var getDescribeAggregateIdFormat* = Call_GetDescribeAggregateIdFormat_617168( name: "getDescribeAggregateIdFormat", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeAggregateIdFormat", - validator: validate_GetDescribeAggregateIdFormat_617167, base: "/", - url: url_GetDescribeAggregateIdFormat_617168, + validator: validate_GetDescribeAggregateIdFormat_617169, base: "/", + url: url_GetDescribeAggregateIdFormat_617170, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeAvailabilityZones_617219 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeAvailabilityZones_617221(protocol: Scheme; host: string; + Call_PostDescribeAvailabilityZones_617221 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeAvailabilityZones_617223(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -50042,7 +50069,7 @@ proc url_PostDescribeAvailabilityZones_617221(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeAvailabilityZones_617220(path: JsonNode; query: JsonNode; +proc validate_PostDescribeAvailabilityZones_617222(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the Availability Zones and Local Zones that are available to you. If there is an event impacting an Availability Zone or Local Zone, you can use this request to view the state and any provided messages for that Availability Zone or Local Zone.

For more information about Availability Zones and Local Zones, see Regions and Availability Zones in the Amazon Elastic Compute Cloud User Guide.

## @@ -50054,16 +50081,16 @@ proc validate_PostDescribeAvailabilityZones_617220(path: JsonNode; query: JsonNo ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617222 = query.getOrDefault("Action") - valid_617222 = validateParameter(valid_617222, JString, required = true, default = newJString( + var valid_617224 = query.getOrDefault("Action") + valid_617224 = validateParameter(valid_617224, JString, required = true, default = newJString( "DescribeAvailabilityZones")) - if valid_617222 != nil: - section.add "Action", valid_617222 - var valid_617223 = query.getOrDefault("Version") - valid_617223 = validateParameter(valid_617223, JString, required = true, + if valid_617224 != nil: + section.add "Action", valid_617224 + var valid_617225 = query.getOrDefault("Version") + valid_617225 = validateParameter(valid_617225, JString, required = true, default = newJString("2016-11-15")) - if valid_617223 != nil: - section.add "Version", valid_617223 + if valid_617225 != nil: + section.add "Version", valid_617225 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -50074,41 +50101,41 @@ proc validate_PostDescribeAvailabilityZones_617220(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617224 = header.getOrDefault("X-Amz-Signature") - valid_617224 = validateParameter(valid_617224, JString, required = false, - default = nil) - if valid_617224 != nil: - section.add "X-Amz-Signature", valid_617224 - var valid_617225 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617225 = validateParameter(valid_617225, JString, required = false, - default = nil) - if valid_617225 != nil: - section.add "X-Amz-Content-Sha256", valid_617225 - var valid_617226 = header.getOrDefault("X-Amz-Date") + var valid_617226 = header.getOrDefault("X-Amz-Signature") valid_617226 = validateParameter(valid_617226, JString, required = false, default = nil) if valid_617226 != nil: - section.add "X-Amz-Date", valid_617226 - var valid_617227 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617226 + var valid_617227 = header.getOrDefault("X-Amz-Content-Sha256") valid_617227 = validateParameter(valid_617227, JString, required = false, default = nil) if valid_617227 != nil: - section.add "X-Amz-Credential", valid_617227 - var valid_617228 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617227 + var valid_617228 = header.getOrDefault("X-Amz-Date") valid_617228 = validateParameter(valid_617228, JString, required = false, default = nil) if valid_617228 != nil: - section.add "X-Amz-Security-Token", valid_617228 - var valid_617229 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617228 + var valid_617229 = header.getOrDefault("X-Amz-Credential") valid_617229 = validateParameter(valid_617229, JString, required = false, default = nil) if valid_617229 != nil: - section.add "X-Amz-Algorithm", valid_617229 - var valid_617230 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617229 + var valid_617230 = header.getOrDefault("X-Amz-Security-Token") valid_617230 = validateParameter(valid_617230, JString, required = false, default = nil) if valid_617230 != nil: - section.add "X-Amz-SignedHeaders", valid_617230 + section.add "X-Amz-Security-Token", valid_617230 + var valid_617231 = header.getOrDefault("X-Amz-Algorithm") + valid_617231 = validateParameter(valid_617231, JString, required = false, + default = nil) + if valid_617231 != nil: + section.add "X-Amz-Algorithm", valid_617231 + var valid_617232 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617232 = validateParameter(valid_617232, JString, required = false, + default = nil) + if valid_617232 != nil: + section.add "X-Amz-SignedHeaders", valid_617232 result.add "header", section ## parameters in `formData` object: ## ZoneId: JArray @@ -50122,47 +50149,47 @@ proc validate_PostDescribeAvailabilityZones_617220(path: JsonNode; query: JsonNo ## Filter: JArray ## :

The filters.

section = newJObject() - var valid_617231 = formData.getOrDefault("ZoneId") - valid_617231 = validateParameter(valid_617231, JArray, required = false, + var valid_617233 = formData.getOrDefault("ZoneId") + valid_617233 = validateParameter(valid_617233, JArray, required = false, default = nil) - if valid_617231 != nil: - section.add "ZoneId", valid_617231 - var valid_617232 = formData.getOrDefault("ZoneName") - valid_617232 = validateParameter(valid_617232, JArray, required = false, - default = nil) - if valid_617232 != nil: - section.add "ZoneName", valid_617232 - var valid_617233 = formData.getOrDefault("DryRun") - valid_617233 = validateParameter(valid_617233, JBool, required = false, default = nil) if valid_617233 != nil: - section.add "DryRun", valid_617233 - var valid_617234 = formData.getOrDefault("AllAvailabilityZones") - valid_617234 = validateParameter(valid_617234, JBool, required = false, default = nil) - if valid_617234 != nil: - section.add "AllAvailabilityZones", valid_617234 - var valid_617235 = formData.getOrDefault("Filter") - valid_617235 = validateParameter(valid_617235, JArray, required = false, + section.add "ZoneId", valid_617233 + var valid_617234 = formData.getOrDefault("ZoneName") + valid_617234 = validateParameter(valid_617234, JArray, required = false, default = nil) + if valid_617234 != nil: + section.add "ZoneName", valid_617234 + var valid_617235 = formData.getOrDefault("DryRun") + valid_617235 = validateParameter(valid_617235, JBool, required = false, default = nil) if valid_617235 != nil: - section.add "Filter", valid_617235 + section.add "DryRun", valid_617235 + var valid_617236 = formData.getOrDefault("AllAvailabilityZones") + valid_617236 = validateParameter(valid_617236, JBool, required = false, default = nil) + if valid_617236 != nil: + section.add "AllAvailabilityZones", valid_617236 + var valid_617237 = formData.getOrDefault("Filter") + valid_617237 = validateParameter(valid_617237, JArray, required = false, + default = nil) + if valid_617237 != nil: + section.add "Filter", valid_617237 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617236: Call_PostDescribeAvailabilityZones_617219; path: JsonNode; +proc call*(call_617238: Call_PostDescribeAvailabilityZones_617221; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the Availability Zones and Local Zones that are available to you. If there is an event impacting an Availability Zone or Local Zone, you can use this request to view the state and any provided messages for that Availability Zone or Local Zone.

For more information about Availability Zones and Local Zones, see Regions and Availability Zones in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_617236.validator(path, query, header, formData, body) - let scheme = call_617236.pickScheme + let valid = call_617238.validator(path, query, header, formData, body) + let scheme = call_617238.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617236.url(scheme.get, call_617236.host, call_617236.base, - call_617236.route, valid.getOrDefault("path"), + let url = call_617238.url(scheme.get, call_617238.host, call_617238.base, + call_617238.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617236, url, valid) + result = atozHook(call_617238, url, valid) -proc call*(call_617237: Call_PostDescribeAvailabilityZones_617219; +proc call*(call_617239: Call_PostDescribeAvailabilityZones_617221; ZoneId: JsonNode = nil; ZoneName: JsonNode = nil; DryRun: bool = false; Action: string = "DescribeAvailabilityZones"; Version: string = "2016-11-15"; AllAvailabilityZones: bool = false; @@ -50181,29 +50208,29 @@ proc call*(call_617237: Call_PostDescribeAvailabilityZones_617219; ## :

Include all Availability Zones and Local Zones regardless of your opt in status.

If you do not use this parameter, the results include only the zones for the Regions where you have chosen the option to opt in.

## Filter: JArray ## :

The filters.

- var query_617238 = newJObject() - var formData_617239 = newJObject() + var query_617240 = newJObject() + var formData_617241 = newJObject() if ZoneId != nil: - formData_617239.add "ZoneId", ZoneId + formData_617241.add "ZoneId", ZoneId if ZoneName != nil: - formData_617239.add "ZoneName", ZoneName - add(formData_617239, "DryRun", newJBool(DryRun)) - add(query_617238, "Action", newJString(Action)) - add(query_617238, "Version", newJString(Version)) - add(formData_617239, "AllAvailabilityZones", newJBool(AllAvailabilityZones)) + formData_617241.add "ZoneName", ZoneName + add(formData_617241, "DryRun", newJBool(DryRun)) + add(query_617240, "Action", newJString(Action)) + add(query_617240, "Version", newJString(Version)) + add(formData_617241, "AllAvailabilityZones", newJBool(AllAvailabilityZones)) if Filter != nil: - formData_617239.add "Filter", Filter - result = call_617237.call(nil, query_617238, nil, formData_617239, nil) + formData_617241.add "Filter", Filter + result = call_617239.call(nil, query_617240, nil, formData_617241, nil) -var postDescribeAvailabilityZones* = Call_PostDescribeAvailabilityZones_617219( +var postDescribeAvailabilityZones* = Call_PostDescribeAvailabilityZones_617221( name: "postDescribeAvailabilityZones", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeAvailabilityZones", - validator: validate_PostDescribeAvailabilityZones_617220, base: "/", - url: url_PostDescribeAvailabilityZones_617221, + validator: validate_PostDescribeAvailabilityZones_617222, base: "/", + url: url_PostDescribeAvailabilityZones_617223, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeAvailabilityZones_617199 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeAvailabilityZones_617201(protocol: Scheme; host: string; + Call_GetDescribeAvailabilityZones_617201 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeAvailabilityZones_617203(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -50213,7 +50240,7 @@ proc url_GetDescribeAvailabilityZones_617201(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeAvailabilityZones_617200(path: JsonNode; query: JsonNode; +proc validate_GetDescribeAvailabilityZones_617202(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the Availability Zones and Local Zones that are available to you. If there is an event impacting an Availability Zone or Local Zone, you can use this request to view the state and any provided messages for that Availability Zone or Local Zone.

For more information about Availability Zones and Local Zones, see Regions and Availability Zones in the Amazon Elastic Compute Cloud User Guide.

## @@ -50235,39 +50262,39 @@ proc validate_GetDescribeAvailabilityZones_617200(path: JsonNode; query: JsonNod ## AllAvailabilityZones: JBool ## :

Include all Availability Zones and Local Zones regardless of your opt in status.

If you do not use this parameter, the results include only the zones for the Regions where you have chosen the option to opt in.

section = newJObject() - var valid_617202 = query.getOrDefault("DryRun") - valid_617202 = validateParameter(valid_617202, JBool, required = false, default = nil) - if valid_617202 != nil: - section.add "DryRun", valid_617202 - var valid_617203 = query.getOrDefault("ZoneName") - valid_617203 = validateParameter(valid_617203, JArray, required = false, - default = nil) - if valid_617203 != nil: - section.add "ZoneName", valid_617203 - var valid_617204 = query.getOrDefault("Filter") - valid_617204 = validateParameter(valid_617204, JArray, required = false, - default = nil) + var valid_617204 = query.getOrDefault("DryRun") + valid_617204 = validateParameter(valid_617204, JBool, required = false, default = nil) if valid_617204 != nil: - section.add "Filter", valid_617204 - var valid_617205 = query.getOrDefault("ZoneId") + section.add "DryRun", valid_617204 + var valid_617205 = query.getOrDefault("ZoneName") valid_617205 = validateParameter(valid_617205, JArray, required = false, default = nil) if valid_617205 != nil: - section.add "ZoneId", valid_617205 - var valid_617206 = query.getOrDefault("Action") - valid_617206 = validateParameter(valid_617206, JString, required = true, default = newJString( - "DescribeAvailabilityZones")) + section.add "ZoneName", valid_617205 + var valid_617206 = query.getOrDefault("Filter") + valid_617206 = validateParameter(valid_617206, JArray, required = false, + default = nil) if valid_617206 != nil: - section.add "Action", valid_617206 - var valid_617207 = query.getOrDefault("Version") - valid_617207 = validateParameter(valid_617207, JString, required = true, - default = newJString("2016-11-15")) + section.add "Filter", valid_617206 + var valid_617207 = query.getOrDefault("ZoneId") + valid_617207 = validateParameter(valid_617207, JArray, required = false, + default = nil) if valid_617207 != nil: - section.add "Version", valid_617207 - var valid_617208 = query.getOrDefault("AllAvailabilityZones") - valid_617208 = validateParameter(valid_617208, JBool, required = false, default = nil) + section.add "ZoneId", valid_617207 + var valid_617208 = query.getOrDefault("Action") + valid_617208 = validateParameter(valid_617208, JString, required = true, default = newJString( + "DescribeAvailabilityZones")) if valid_617208 != nil: - section.add "AllAvailabilityZones", valid_617208 + section.add "Action", valid_617208 + var valid_617209 = query.getOrDefault("Version") + valid_617209 = validateParameter(valid_617209, JString, required = true, + default = newJString("2016-11-15")) + if valid_617209 != nil: + section.add "Version", valid_617209 + var valid_617210 = query.getOrDefault("AllAvailabilityZones") + valid_617210 = validateParameter(valid_617210, JBool, required = false, default = nil) + if valid_617210 != nil: + section.add "AllAvailabilityZones", valid_617210 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -50278,61 +50305,61 @@ proc validate_GetDescribeAvailabilityZones_617200(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617209 = header.getOrDefault("X-Amz-Signature") - valid_617209 = validateParameter(valid_617209, JString, required = false, - default = nil) - if valid_617209 != nil: - section.add "X-Amz-Signature", valid_617209 - var valid_617210 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617210 = validateParameter(valid_617210, JString, required = false, - default = nil) - if valid_617210 != nil: - section.add "X-Amz-Content-Sha256", valid_617210 - var valid_617211 = header.getOrDefault("X-Amz-Date") + var valid_617211 = header.getOrDefault("X-Amz-Signature") valid_617211 = validateParameter(valid_617211, JString, required = false, default = nil) if valid_617211 != nil: - section.add "X-Amz-Date", valid_617211 - var valid_617212 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617211 + var valid_617212 = header.getOrDefault("X-Amz-Content-Sha256") valid_617212 = validateParameter(valid_617212, JString, required = false, default = nil) if valid_617212 != nil: - section.add "X-Amz-Credential", valid_617212 - var valid_617213 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617212 + var valid_617213 = header.getOrDefault("X-Amz-Date") valid_617213 = validateParameter(valid_617213, JString, required = false, default = nil) if valid_617213 != nil: - section.add "X-Amz-Security-Token", valid_617213 - var valid_617214 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617213 + var valid_617214 = header.getOrDefault("X-Amz-Credential") valid_617214 = validateParameter(valid_617214, JString, required = false, default = nil) if valid_617214 != nil: - section.add "X-Amz-Algorithm", valid_617214 - var valid_617215 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617214 + var valid_617215 = header.getOrDefault("X-Amz-Security-Token") valid_617215 = validateParameter(valid_617215, JString, required = false, default = nil) if valid_617215 != nil: - section.add "X-Amz-SignedHeaders", valid_617215 + section.add "X-Amz-Security-Token", valid_617215 + var valid_617216 = header.getOrDefault("X-Amz-Algorithm") + valid_617216 = validateParameter(valid_617216, JString, required = false, + default = nil) + if valid_617216 != nil: + section.add "X-Amz-Algorithm", valid_617216 + var valid_617217 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617217 = validateParameter(valid_617217, JString, required = false, + default = nil) + if valid_617217 != nil: + section.add "X-Amz-SignedHeaders", valid_617217 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617216: Call_GetDescribeAvailabilityZones_617199; path: JsonNode; +proc call*(call_617218: Call_GetDescribeAvailabilityZones_617201; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the Availability Zones and Local Zones that are available to you. If there is an event impacting an Availability Zone or Local Zone, you can use this request to view the state and any provided messages for that Availability Zone or Local Zone.

For more information about Availability Zones and Local Zones, see Regions and Availability Zones in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_617216.validator(path, query, header, formData, body) - let scheme = call_617216.pickScheme + let valid = call_617218.validator(path, query, header, formData, body) + let scheme = call_617218.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617216.url(scheme.get, call_617216.host, call_617216.base, - call_617216.route, valid.getOrDefault("path"), + let url = call_617218.url(scheme.get, call_617218.host, call_617218.base, + call_617218.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617216, url, valid) + result = atozHook(call_617218, url, valid) -proc call*(call_617217: Call_GetDescribeAvailabilityZones_617199; +proc call*(call_617219: Call_GetDescribeAvailabilityZones_617201; DryRun: bool = false; ZoneName: JsonNode = nil; Filter: JsonNode = nil; ZoneId: JsonNode = nil; Action: string = "DescribeAvailabilityZones"; Version: string = "2016-11-15"; AllAvailabilityZones: bool = false): Recallable = @@ -50350,28 +50377,28 @@ proc call*(call_617217: Call_GetDescribeAvailabilityZones_617199; ## Version: string (required) ## AllAvailabilityZones: bool ## :

Include all Availability Zones and Local Zones regardless of your opt in status.

If you do not use this parameter, the results include only the zones for the Regions where you have chosen the option to opt in.

- var query_617218 = newJObject() - add(query_617218, "DryRun", newJBool(DryRun)) + var query_617220 = newJObject() + add(query_617220, "DryRun", newJBool(DryRun)) if ZoneName != nil: - query_617218.add "ZoneName", ZoneName + query_617220.add "ZoneName", ZoneName if Filter != nil: - query_617218.add "Filter", Filter + query_617220.add "Filter", Filter if ZoneId != nil: - query_617218.add "ZoneId", ZoneId - add(query_617218, "Action", newJString(Action)) - add(query_617218, "Version", newJString(Version)) - add(query_617218, "AllAvailabilityZones", newJBool(AllAvailabilityZones)) - result = call_617217.call(nil, query_617218, nil, nil, nil) + query_617220.add "ZoneId", ZoneId + add(query_617220, "Action", newJString(Action)) + add(query_617220, "Version", newJString(Version)) + add(query_617220, "AllAvailabilityZones", newJBool(AllAvailabilityZones)) + result = call_617219.call(nil, query_617220, nil, nil, nil) -var getDescribeAvailabilityZones* = Call_GetDescribeAvailabilityZones_617199( +var getDescribeAvailabilityZones* = Call_GetDescribeAvailabilityZones_617201( name: "getDescribeAvailabilityZones", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeAvailabilityZones", - validator: validate_GetDescribeAvailabilityZones_617200, base: "/", - url: url_GetDescribeAvailabilityZones_617201, + validator: validate_GetDescribeAvailabilityZones_617202, base: "/", + url: url_GetDescribeAvailabilityZones_617203, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeBundleTasks_617258 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeBundleTasks_617260(protocol: Scheme; host: string; base: string; + Call_PostDescribeBundleTasks_617260 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeBundleTasks_617262(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -50382,7 +50409,7 @@ proc url_PostDescribeBundleTasks_617260(protocol: Scheme; host: string; base: st else: result.path = base & route -proc validate_PostDescribeBundleTasks_617259(path: JsonNode; query: JsonNode; +proc validate_PostDescribeBundleTasks_617261(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the specified bundle tasks or all of your bundle tasks.

Completed bundle tasks are listed for only a limited time. If your bundle task is no longer in the list, you can still register an AMI from it. Just use RegisterImage with the Amazon S3 bucket name and image manifest name you provided to the bundle task.

## @@ -50394,16 +50421,16 @@ proc validate_PostDescribeBundleTasks_617259(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617261 = query.getOrDefault("Action") - valid_617261 = validateParameter(valid_617261, JString, required = true, + var valid_617263 = query.getOrDefault("Action") + valid_617263 = validateParameter(valid_617263, JString, required = true, default = newJString("DescribeBundleTasks")) - if valid_617261 != nil: - section.add "Action", valid_617261 - var valid_617262 = query.getOrDefault("Version") - valid_617262 = validateParameter(valid_617262, JString, required = true, + if valid_617263 != nil: + section.add "Action", valid_617263 + var valid_617264 = query.getOrDefault("Version") + valid_617264 = validateParameter(valid_617264, JString, required = true, default = newJString("2016-11-15")) - if valid_617262 != nil: - section.add "Version", valid_617262 + if valid_617264 != nil: + section.add "Version", valid_617264 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -50414,41 +50441,41 @@ proc validate_PostDescribeBundleTasks_617259(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617263 = header.getOrDefault("X-Amz-Signature") - valid_617263 = validateParameter(valid_617263, JString, required = false, - default = nil) - if valid_617263 != nil: - section.add "X-Amz-Signature", valid_617263 - var valid_617264 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617264 = validateParameter(valid_617264, JString, required = false, - default = nil) - if valid_617264 != nil: - section.add "X-Amz-Content-Sha256", valid_617264 - var valid_617265 = header.getOrDefault("X-Amz-Date") + var valid_617265 = header.getOrDefault("X-Amz-Signature") valid_617265 = validateParameter(valid_617265, JString, required = false, default = nil) if valid_617265 != nil: - section.add "X-Amz-Date", valid_617265 - var valid_617266 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617265 + var valid_617266 = header.getOrDefault("X-Amz-Content-Sha256") valid_617266 = validateParameter(valid_617266, JString, required = false, default = nil) if valid_617266 != nil: - section.add "X-Amz-Credential", valid_617266 - var valid_617267 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617266 + var valid_617267 = header.getOrDefault("X-Amz-Date") valid_617267 = validateParameter(valid_617267, JString, required = false, default = nil) if valid_617267 != nil: - section.add "X-Amz-Security-Token", valid_617267 - var valid_617268 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617267 + var valid_617268 = header.getOrDefault("X-Amz-Credential") valid_617268 = validateParameter(valid_617268, JString, required = false, default = nil) if valid_617268 != nil: - section.add "X-Amz-Algorithm", valid_617268 - var valid_617269 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617268 + var valid_617269 = header.getOrDefault("X-Amz-Security-Token") valid_617269 = validateParameter(valid_617269, JString, required = false, default = nil) if valid_617269 != nil: - section.add "X-Amz-SignedHeaders", valid_617269 + section.add "X-Amz-Security-Token", valid_617269 + var valid_617270 = header.getOrDefault("X-Amz-Algorithm") + valid_617270 = validateParameter(valid_617270, JString, required = false, + default = nil) + if valid_617270 != nil: + section.add "X-Amz-Algorithm", valid_617270 + var valid_617271 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617271 = validateParameter(valid_617271, JString, required = false, + default = nil) + if valid_617271 != nil: + section.add "X-Amz-SignedHeaders", valid_617271 result.add "header", section ## parameters in `formData` object: ## BundleId: JArray @@ -50458,38 +50485,38 @@ proc validate_PostDescribeBundleTasks_617259(path: JsonNode; query: JsonNode; ## Filter: JArray ## :

The filters.

section = newJObject() - var valid_617270 = formData.getOrDefault("BundleId") - valid_617270 = validateParameter(valid_617270, JArray, required = false, - default = nil) - if valid_617270 != nil: - section.add "BundleId", valid_617270 - var valid_617271 = formData.getOrDefault("DryRun") - valid_617271 = validateParameter(valid_617271, JBool, required = false, default = nil) - if valid_617271 != nil: - section.add "DryRun", valid_617271 - var valid_617272 = formData.getOrDefault("Filter") + var valid_617272 = formData.getOrDefault("BundleId") valid_617272 = validateParameter(valid_617272, JArray, required = false, default = nil) if valid_617272 != nil: - section.add "Filter", valid_617272 + section.add "BundleId", valid_617272 + var valid_617273 = formData.getOrDefault("DryRun") + valid_617273 = validateParameter(valid_617273, JBool, required = false, default = nil) + if valid_617273 != nil: + section.add "DryRun", valid_617273 + var valid_617274 = formData.getOrDefault("Filter") + valid_617274 = validateParameter(valid_617274, JArray, required = false, + default = nil) + if valid_617274 != nil: + section.add "Filter", valid_617274 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617273: Call_PostDescribeBundleTasks_617258; path: JsonNode; +proc call*(call_617275: Call_PostDescribeBundleTasks_617260; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the specified bundle tasks or all of your bundle tasks.

Completed bundle tasks are listed for only a limited time. If your bundle task is no longer in the list, you can still register an AMI from it. Just use RegisterImage with the Amazon S3 bucket name and image manifest name you provided to the bundle task.

## - let valid = call_617273.validator(path, query, header, formData, body) - let scheme = call_617273.pickScheme + let valid = call_617275.validator(path, query, header, formData, body) + let scheme = call_617275.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617273.url(scheme.get, call_617273.host, call_617273.base, - call_617273.route, valid.getOrDefault("path"), + let url = call_617275.url(scheme.get, call_617275.host, call_617275.base, + call_617275.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617273, url, valid) + result = atozHook(call_617275, url, valid) -proc call*(call_617274: Call_PostDescribeBundleTasks_617258; +proc call*(call_617276: Call_PostDescribeBundleTasks_617260; BundleId: JsonNode = nil; DryRun: bool = false; Action: string = "DescribeBundleTasks"; Version: string = "2016-11-15"; Filter: JsonNode = nil): Recallable = @@ -50503,25 +50530,25 @@ proc call*(call_617274: Call_PostDescribeBundleTasks_617258; ## Version: string (required) ## Filter: JArray ## :

The filters.

- var query_617275 = newJObject() - var formData_617276 = newJObject() + var query_617277 = newJObject() + var formData_617278 = newJObject() if BundleId != nil: - formData_617276.add "BundleId", BundleId - add(formData_617276, "DryRun", newJBool(DryRun)) - add(query_617275, "Action", newJString(Action)) - add(query_617275, "Version", newJString(Version)) + formData_617278.add "BundleId", BundleId + add(formData_617278, "DryRun", newJBool(DryRun)) + add(query_617277, "Action", newJString(Action)) + add(query_617277, "Version", newJString(Version)) if Filter != nil: - formData_617276.add "Filter", Filter - result = call_617274.call(nil, query_617275, nil, formData_617276, nil) + formData_617278.add "Filter", Filter + result = call_617276.call(nil, query_617277, nil, formData_617278, nil) -var postDescribeBundleTasks* = Call_PostDescribeBundleTasks_617258( +var postDescribeBundleTasks* = Call_PostDescribeBundleTasks_617260( name: "postDescribeBundleTasks", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeBundleTasks", - validator: validate_PostDescribeBundleTasks_617259, base: "/", - url: url_PostDescribeBundleTasks_617260, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDescribeBundleTasks_617261, base: "/", + url: url_PostDescribeBundleTasks_617262, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeBundleTasks_617240 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeBundleTasks_617242(protocol: Scheme; host: string; base: string; + Call_GetDescribeBundleTasks_617242 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeBundleTasks_617244(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -50531,7 +50558,7 @@ proc url_GetDescribeBundleTasks_617242(protocol: Scheme; host: string; base: str else: result.path = base & route -proc validate_GetDescribeBundleTasks_617241(path: JsonNode; query: JsonNode; +proc validate_GetDescribeBundleTasks_617243(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the specified bundle tasks or all of your bundle tasks.

Completed bundle tasks are listed for only a limited time. If your bundle task is no longer in the list, you can still register an AMI from it. Just use RegisterImage with the Amazon S3 bucket name and image manifest name you provided to the bundle task.

## @@ -50549,30 +50576,30 @@ proc validate_GetDescribeBundleTasks_617241(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617243 = query.getOrDefault("DryRun") - valid_617243 = validateParameter(valid_617243, JBool, required = false, default = nil) - if valid_617243 != nil: - section.add "DryRun", valid_617243 - var valid_617244 = query.getOrDefault("BundleId") - valid_617244 = validateParameter(valid_617244, JArray, required = false, + var valid_617245 = query.getOrDefault("DryRun") + valid_617245 = validateParameter(valid_617245, JBool, required = false, default = nil) + if valid_617245 != nil: + section.add "DryRun", valid_617245 + var valid_617246 = query.getOrDefault("BundleId") + valid_617246 = validateParameter(valid_617246, JArray, required = false, default = nil) - if valid_617244 != nil: - section.add "BundleId", valid_617244 - var valid_617245 = query.getOrDefault("Filter") - valid_617245 = validateParameter(valid_617245, JArray, required = false, + if valid_617246 != nil: + section.add "BundleId", valid_617246 + var valid_617247 = query.getOrDefault("Filter") + valid_617247 = validateParameter(valid_617247, JArray, required = false, default = nil) - if valid_617245 != nil: - section.add "Filter", valid_617245 - var valid_617246 = query.getOrDefault("Action") - valid_617246 = validateParameter(valid_617246, JString, required = true, + if valid_617247 != nil: + section.add "Filter", valid_617247 + var valid_617248 = query.getOrDefault("Action") + valid_617248 = validateParameter(valid_617248, JString, required = true, default = newJString("DescribeBundleTasks")) - if valid_617246 != nil: - section.add "Action", valid_617246 - var valid_617247 = query.getOrDefault("Version") - valid_617247 = validateParameter(valid_617247, JString, required = true, + if valid_617248 != nil: + section.add "Action", valid_617248 + var valid_617249 = query.getOrDefault("Version") + valid_617249 = validateParameter(valid_617249, JString, required = true, default = newJString("2016-11-15")) - if valid_617247 != nil: - section.add "Version", valid_617247 + if valid_617249 != nil: + section.add "Version", valid_617249 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -50583,61 +50610,61 @@ proc validate_GetDescribeBundleTasks_617241(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617248 = header.getOrDefault("X-Amz-Signature") - valid_617248 = validateParameter(valid_617248, JString, required = false, - default = nil) - if valid_617248 != nil: - section.add "X-Amz-Signature", valid_617248 - var valid_617249 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617249 = validateParameter(valid_617249, JString, required = false, - default = nil) - if valid_617249 != nil: - section.add "X-Amz-Content-Sha256", valid_617249 - var valid_617250 = header.getOrDefault("X-Amz-Date") + var valid_617250 = header.getOrDefault("X-Amz-Signature") valid_617250 = validateParameter(valid_617250, JString, required = false, default = nil) if valid_617250 != nil: - section.add "X-Amz-Date", valid_617250 - var valid_617251 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617250 + var valid_617251 = header.getOrDefault("X-Amz-Content-Sha256") valid_617251 = validateParameter(valid_617251, JString, required = false, default = nil) if valid_617251 != nil: - section.add "X-Amz-Credential", valid_617251 - var valid_617252 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617251 + var valid_617252 = header.getOrDefault("X-Amz-Date") valid_617252 = validateParameter(valid_617252, JString, required = false, default = nil) if valid_617252 != nil: - section.add "X-Amz-Security-Token", valid_617252 - var valid_617253 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617252 + var valid_617253 = header.getOrDefault("X-Amz-Credential") valid_617253 = validateParameter(valid_617253, JString, required = false, default = nil) if valid_617253 != nil: - section.add "X-Amz-Algorithm", valid_617253 - var valid_617254 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617253 + var valid_617254 = header.getOrDefault("X-Amz-Security-Token") valid_617254 = validateParameter(valid_617254, JString, required = false, default = nil) if valid_617254 != nil: - section.add "X-Amz-SignedHeaders", valid_617254 + section.add "X-Amz-Security-Token", valid_617254 + var valid_617255 = header.getOrDefault("X-Amz-Algorithm") + valid_617255 = validateParameter(valid_617255, JString, required = false, + default = nil) + if valid_617255 != nil: + section.add "X-Amz-Algorithm", valid_617255 + var valid_617256 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617256 = validateParameter(valid_617256, JString, required = false, + default = nil) + if valid_617256 != nil: + section.add "X-Amz-SignedHeaders", valid_617256 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617255: Call_GetDescribeBundleTasks_617240; path: JsonNode; +proc call*(call_617257: Call_GetDescribeBundleTasks_617242; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the specified bundle tasks or all of your bundle tasks.

Completed bundle tasks are listed for only a limited time. If your bundle task is no longer in the list, you can still register an AMI from it. Just use RegisterImage with the Amazon S3 bucket name and image manifest name you provided to the bundle task.

## - let valid = call_617255.validator(path, query, header, formData, body) - let scheme = call_617255.pickScheme + let valid = call_617257.validator(path, query, header, formData, body) + let scheme = call_617257.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617255.url(scheme.get, call_617255.host, call_617255.base, - call_617255.route, valid.getOrDefault("path"), + let url = call_617257.url(scheme.get, call_617257.host, call_617257.base, + call_617257.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617255, url, valid) + result = atozHook(call_617257, url, valid) -proc call*(call_617256: Call_GetDescribeBundleTasks_617240; DryRun: bool = false; +proc call*(call_617258: Call_GetDescribeBundleTasks_617242; DryRun: bool = false; BundleId: JsonNode = nil; Filter: JsonNode = nil; Action: string = "DescribeBundleTasks"; Version: string = "2016-11-15"): Recallable = ## getDescribeBundleTasks @@ -50650,24 +50677,24 @@ proc call*(call_617256: Call_GetDescribeBundleTasks_617240; DryRun: bool = false ## :

The filters.

## Action: string (required) ## Version: string (required) - var query_617257 = newJObject() - add(query_617257, "DryRun", newJBool(DryRun)) + var query_617259 = newJObject() + add(query_617259, "DryRun", newJBool(DryRun)) if BundleId != nil: - query_617257.add "BundleId", BundleId + query_617259.add "BundleId", BundleId if Filter != nil: - query_617257.add "Filter", Filter - add(query_617257, "Action", newJString(Action)) - add(query_617257, "Version", newJString(Version)) - result = call_617256.call(nil, query_617257, nil, nil, nil) + query_617259.add "Filter", Filter + add(query_617259, "Action", newJString(Action)) + add(query_617259, "Version", newJString(Version)) + result = call_617258.call(nil, query_617259, nil, nil, nil) -var getDescribeBundleTasks* = Call_GetDescribeBundleTasks_617240( +var getDescribeBundleTasks* = Call_GetDescribeBundleTasks_617242( name: "getDescribeBundleTasks", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeBundleTasks", - validator: validate_GetDescribeBundleTasks_617241, base: "/", - url: url_GetDescribeBundleTasks_617242, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDescribeBundleTasks_617243, base: "/", + url: url_GetDescribeBundleTasks_617244, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeByoipCidrs_617295 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeByoipCidrs_617297(protocol: Scheme; host: string; base: string; + Call_PostDescribeByoipCidrs_617297 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeByoipCidrs_617299(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -50677,7 +50704,7 @@ proc url_PostDescribeByoipCidrs_617297(protocol: Scheme; host: string; base: str else: result.path = base & route -proc validate_PostDescribeByoipCidrs_617296(path: JsonNode; query: JsonNode; +proc validate_PostDescribeByoipCidrs_617298(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the IP address ranges that were specified in calls to ProvisionByoipCidr.

To describe the address pools that were created when you provisioned the address ranges, use DescribePublicIpv4Pools or DescribeIpv6Pools.

## @@ -50689,16 +50716,16 @@ proc validate_PostDescribeByoipCidrs_617296(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617298 = query.getOrDefault("Action") - valid_617298 = validateParameter(valid_617298, JString, required = true, + var valid_617300 = query.getOrDefault("Action") + valid_617300 = validateParameter(valid_617300, JString, required = true, default = newJString("DescribeByoipCidrs")) - if valid_617298 != nil: - section.add "Action", valid_617298 - var valid_617299 = query.getOrDefault("Version") - valid_617299 = validateParameter(valid_617299, JString, required = true, + if valid_617300 != nil: + section.add "Action", valid_617300 + var valid_617301 = query.getOrDefault("Version") + valid_617301 = validateParameter(valid_617301, JString, required = true, default = newJString("2016-11-15")) - if valid_617299 != nil: - section.add "Version", valid_617299 + if valid_617301 != nil: + section.add "Version", valid_617301 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -50709,41 +50736,41 @@ proc validate_PostDescribeByoipCidrs_617296(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617300 = header.getOrDefault("X-Amz-Signature") - valid_617300 = validateParameter(valid_617300, JString, required = false, - default = nil) - if valid_617300 != nil: - section.add "X-Amz-Signature", valid_617300 - var valid_617301 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617301 = validateParameter(valid_617301, JString, required = false, - default = nil) - if valid_617301 != nil: - section.add "X-Amz-Content-Sha256", valid_617301 - var valid_617302 = header.getOrDefault("X-Amz-Date") + var valid_617302 = header.getOrDefault("X-Amz-Signature") valid_617302 = validateParameter(valid_617302, JString, required = false, default = nil) if valid_617302 != nil: - section.add "X-Amz-Date", valid_617302 - var valid_617303 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617302 + var valid_617303 = header.getOrDefault("X-Amz-Content-Sha256") valid_617303 = validateParameter(valid_617303, JString, required = false, default = nil) if valid_617303 != nil: - section.add "X-Amz-Credential", valid_617303 - var valid_617304 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617303 + var valid_617304 = header.getOrDefault("X-Amz-Date") valid_617304 = validateParameter(valid_617304, JString, required = false, default = nil) if valid_617304 != nil: - section.add "X-Amz-Security-Token", valid_617304 - var valid_617305 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617304 + var valid_617305 = header.getOrDefault("X-Amz-Credential") valid_617305 = validateParameter(valid_617305, JString, required = false, default = nil) if valid_617305 != nil: - section.add "X-Amz-Algorithm", valid_617305 - var valid_617306 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617305 + var valid_617306 = header.getOrDefault("X-Amz-Security-Token") valid_617306 = validateParameter(valid_617306, JString, required = false, default = nil) if valid_617306 != nil: - section.add "X-Amz-SignedHeaders", valid_617306 + section.add "X-Amz-Security-Token", valid_617306 + var valid_617307 = header.getOrDefault("X-Amz-Algorithm") + valid_617307 = validateParameter(valid_617307, JString, required = false, + default = nil) + if valid_617307 != nil: + section.add "X-Amz-Algorithm", valid_617307 + var valid_617308 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617308 = validateParameter(valid_617308, JString, required = false, + default = nil) + if valid_617308 != nil: + section.add "X-Amz-SignedHeaders", valid_617308 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -50753,39 +50780,39 @@ proc validate_PostDescribeByoipCidrs_617296(path: JsonNode; query: JsonNode; ## MaxResults: JInt (required) ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. section = newJObject() - var valid_617307 = formData.getOrDefault("NextToken") - valid_617307 = validateParameter(valid_617307, JString, required = false, + var valid_617309 = formData.getOrDefault("NextToken") + valid_617309 = validateParameter(valid_617309, JString, required = false, default = nil) - if valid_617307 != nil: - section.add "NextToken", valid_617307 - var valid_617308 = formData.getOrDefault("DryRun") - valid_617308 = validateParameter(valid_617308, JBool, required = false, default = nil) - if valid_617308 != nil: - section.add "DryRun", valid_617308 + if valid_617309 != nil: + section.add "NextToken", valid_617309 + var valid_617310 = formData.getOrDefault("DryRun") + valid_617310 = validateParameter(valid_617310, JBool, required = false, default = nil) + if valid_617310 != nil: + section.add "DryRun", valid_617310 assert formData != nil, "formData argument is necessary due to required `MaxResults` field" - var valid_617309 = formData.getOrDefault("MaxResults") - valid_617309 = validateParameter(valid_617309, JInt, required = true, default = nil) - if valid_617309 != nil: - section.add "MaxResults", valid_617309 + var valid_617311 = formData.getOrDefault("MaxResults") + valid_617311 = validateParameter(valid_617311, JInt, required = true, default = nil) + if valid_617311 != nil: + section.add "MaxResults", valid_617311 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617310: Call_PostDescribeByoipCidrs_617295; path: JsonNode; +proc call*(call_617312: Call_PostDescribeByoipCidrs_617297; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the IP address ranges that were specified in calls to ProvisionByoipCidr.

To describe the address pools that were created when you provisioned the address ranges, use DescribePublicIpv4Pools or DescribeIpv6Pools.

## - let valid = call_617310.validator(path, query, header, formData, body) - let scheme = call_617310.pickScheme + let valid = call_617312.validator(path, query, header, formData, body) + let scheme = call_617312.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617310.url(scheme.get, call_617310.host, call_617310.base, - call_617310.route, valid.getOrDefault("path"), + let url = call_617312.url(scheme.get, call_617312.host, call_617312.base, + call_617312.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617310, url, valid) + result = atozHook(call_617312, url, valid) -proc call*(call_617311: Call_PostDescribeByoipCidrs_617295; MaxResults: int; +proc call*(call_617313: Call_PostDescribeByoipCidrs_617297; MaxResults: int; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeByoipCidrs"; Version: string = "2016-11-15"): Recallable = ## postDescribeByoipCidrs @@ -50798,23 +50825,23 @@ proc call*(call_617311: Call_PostDescribeByoipCidrs_617295; MaxResults: int; ## Version: string (required) ## MaxResults: int (required) ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. - var query_617312 = newJObject() - var formData_617313 = newJObject() - add(formData_617313, "NextToken", newJString(NextToken)) - add(formData_617313, "DryRun", newJBool(DryRun)) - add(query_617312, "Action", newJString(Action)) - add(query_617312, "Version", newJString(Version)) - add(formData_617313, "MaxResults", newJInt(MaxResults)) - result = call_617311.call(nil, query_617312, nil, formData_617313, nil) - -var postDescribeByoipCidrs* = Call_PostDescribeByoipCidrs_617295( + var query_617314 = newJObject() + var formData_617315 = newJObject() + add(formData_617315, "NextToken", newJString(NextToken)) + add(formData_617315, "DryRun", newJBool(DryRun)) + add(query_617314, "Action", newJString(Action)) + add(query_617314, "Version", newJString(Version)) + add(formData_617315, "MaxResults", newJInt(MaxResults)) + result = call_617313.call(nil, query_617314, nil, formData_617315, nil) + +var postDescribeByoipCidrs* = Call_PostDescribeByoipCidrs_617297( name: "postDescribeByoipCidrs", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeByoipCidrs", - validator: validate_PostDescribeByoipCidrs_617296, base: "/", - url: url_PostDescribeByoipCidrs_617297, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDescribeByoipCidrs_617298, base: "/", + url: url_PostDescribeByoipCidrs_617299, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeByoipCidrs_617277 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeByoipCidrs_617279(protocol: Scheme; host: string; base: string; + Call_GetDescribeByoipCidrs_617279 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeByoipCidrs_617281(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -50824,7 +50851,7 @@ proc url_GetDescribeByoipCidrs_617279(protocol: Scheme; host: string; base: stri else: result.path = base & route -proc validate_GetDescribeByoipCidrs_617278(path: JsonNode; query: JsonNode; +proc validate_GetDescribeByoipCidrs_617280(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the IP address ranges that were specified in calls to ProvisionByoipCidr.

To describe the address pools that were created when you provisioned the address ranges, use DescribePublicIpv4Pools or DescribeIpv6Pools.

## @@ -50844,29 +50871,29 @@ proc validate_GetDescribeByoipCidrs_617278(path: JsonNode; query: JsonNode; section = newJObject() assert query != nil, "query argument is necessary due to required `MaxResults` field" - var valid_617280 = query.getOrDefault("MaxResults") - valid_617280 = validateParameter(valid_617280, JInt, required = true, default = nil) - if valid_617280 != nil: - section.add "MaxResults", valid_617280 - var valid_617281 = query.getOrDefault("DryRun") - valid_617281 = validateParameter(valid_617281, JBool, required = false, default = nil) - if valid_617281 != nil: - section.add "DryRun", valid_617281 - var valid_617282 = query.getOrDefault("NextToken") - valid_617282 = validateParameter(valid_617282, JString, required = false, - default = nil) + var valid_617282 = query.getOrDefault("MaxResults") + valid_617282 = validateParameter(valid_617282, JInt, required = true, default = nil) if valid_617282 != nil: - section.add "NextToken", valid_617282 - var valid_617283 = query.getOrDefault("Action") - valid_617283 = validateParameter(valid_617283, JString, required = true, - default = newJString("DescribeByoipCidrs")) + section.add "MaxResults", valid_617282 + var valid_617283 = query.getOrDefault("DryRun") + valid_617283 = validateParameter(valid_617283, JBool, required = false, default = nil) if valid_617283 != nil: - section.add "Action", valid_617283 - var valid_617284 = query.getOrDefault("Version") - valid_617284 = validateParameter(valid_617284, JString, required = true, - default = newJString("2016-11-15")) + section.add "DryRun", valid_617283 + var valid_617284 = query.getOrDefault("NextToken") + valid_617284 = validateParameter(valid_617284, JString, required = false, + default = nil) if valid_617284 != nil: - section.add "Version", valid_617284 + section.add "NextToken", valid_617284 + var valid_617285 = query.getOrDefault("Action") + valid_617285 = validateParameter(valid_617285, JString, required = true, + default = newJString("DescribeByoipCidrs")) + if valid_617285 != nil: + section.add "Action", valid_617285 + var valid_617286 = query.getOrDefault("Version") + valid_617286 = validateParameter(valid_617286, JString, required = true, + default = newJString("2016-11-15")) + if valid_617286 != nil: + section.add "Version", valid_617286 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -50877,61 +50904,61 @@ proc validate_GetDescribeByoipCidrs_617278(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617285 = header.getOrDefault("X-Amz-Signature") - valid_617285 = validateParameter(valid_617285, JString, required = false, - default = nil) - if valid_617285 != nil: - section.add "X-Amz-Signature", valid_617285 - var valid_617286 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617286 = validateParameter(valid_617286, JString, required = false, - default = nil) - if valid_617286 != nil: - section.add "X-Amz-Content-Sha256", valid_617286 - var valid_617287 = header.getOrDefault("X-Amz-Date") + var valid_617287 = header.getOrDefault("X-Amz-Signature") valid_617287 = validateParameter(valid_617287, JString, required = false, default = nil) if valid_617287 != nil: - section.add "X-Amz-Date", valid_617287 - var valid_617288 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617287 + var valid_617288 = header.getOrDefault("X-Amz-Content-Sha256") valid_617288 = validateParameter(valid_617288, JString, required = false, default = nil) if valid_617288 != nil: - section.add "X-Amz-Credential", valid_617288 - var valid_617289 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617288 + var valid_617289 = header.getOrDefault("X-Amz-Date") valid_617289 = validateParameter(valid_617289, JString, required = false, default = nil) if valid_617289 != nil: - section.add "X-Amz-Security-Token", valid_617289 - var valid_617290 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617289 + var valid_617290 = header.getOrDefault("X-Amz-Credential") valid_617290 = validateParameter(valid_617290, JString, required = false, default = nil) if valid_617290 != nil: - section.add "X-Amz-Algorithm", valid_617290 - var valid_617291 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617290 + var valid_617291 = header.getOrDefault("X-Amz-Security-Token") valid_617291 = validateParameter(valid_617291, JString, required = false, default = nil) if valid_617291 != nil: - section.add "X-Amz-SignedHeaders", valid_617291 + section.add "X-Amz-Security-Token", valid_617291 + var valid_617292 = header.getOrDefault("X-Amz-Algorithm") + valid_617292 = validateParameter(valid_617292, JString, required = false, + default = nil) + if valid_617292 != nil: + section.add "X-Amz-Algorithm", valid_617292 + var valid_617293 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617293 = validateParameter(valid_617293, JString, required = false, + default = nil) + if valid_617293 != nil: + section.add "X-Amz-SignedHeaders", valid_617293 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617292: Call_GetDescribeByoipCidrs_617277; path: JsonNode; +proc call*(call_617294: Call_GetDescribeByoipCidrs_617279; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the IP address ranges that were specified in calls to ProvisionByoipCidr.

To describe the address pools that were created when you provisioned the address ranges, use DescribePublicIpv4Pools or DescribeIpv6Pools.

## - let valid = call_617292.validator(path, query, header, formData, body) - let scheme = call_617292.pickScheme + let valid = call_617294.validator(path, query, header, formData, body) + let scheme = call_617294.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617292.url(scheme.get, call_617292.host, call_617292.base, - call_617292.route, valid.getOrDefault("path"), + let url = call_617294.url(scheme.get, call_617294.host, call_617294.base, + call_617294.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617292, url, valid) + result = atozHook(call_617294, url, valid) -proc call*(call_617293: Call_GetDescribeByoipCidrs_617277; MaxResults: int; +proc call*(call_617295: Call_GetDescribeByoipCidrs_617279; MaxResults: int; DryRun: bool = false; NextToken: string = ""; Action: string = "DescribeByoipCidrs"; Version: string = "2016-11-15"): Recallable = ## getDescribeByoipCidrs @@ -50944,22 +50971,22 @@ proc call*(call_617293: Call_GetDescribeByoipCidrs_617277; MaxResults: int; ## : The token for the next page of results. ## Action: string (required) ## Version: string (required) - var query_617294 = newJObject() - add(query_617294, "MaxResults", newJInt(MaxResults)) - add(query_617294, "DryRun", newJBool(DryRun)) - add(query_617294, "NextToken", newJString(NextToken)) - add(query_617294, "Action", newJString(Action)) - add(query_617294, "Version", newJString(Version)) - result = call_617293.call(nil, query_617294, nil, nil, nil) + var query_617296 = newJObject() + add(query_617296, "MaxResults", newJInt(MaxResults)) + add(query_617296, "DryRun", newJBool(DryRun)) + add(query_617296, "NextToken", newJString(NextToken)) + add(query_617296, "Action", newJString(Action)) + add(query_617296, "Version", newJString(Version)) + result = call_617295.call(nil, query_617296, nil, nil, nil) -var getDescribeByoipCidrs* = Call_GetDescribeByoipCidrs_617277( +var getDescribeByoipCidrs* = Call_GetDescribeByoipCidrs_617279( name: "getDescribeByoipCidrs", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeByoipCidrs", - validator: validate_GetDescribeByoipCidrs_617278, base: "/", - url: url_GetDescribeByoipCidrs_617279, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDescribeByoipCidrs_617280, base: "/", + url: url_GetDescribeByoipCidrs_617281, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeCapacityReservations_617334 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeCapacityReservations_617336(protocol: Scheme; host: string; + Call_PostDescribeCapacityReservations_617336 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeCapacityReservations_617338(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -50969,7 +50996,7 @@ proc url_PostDescribeCapacityReservations_617336(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeCapacityReservations_617335(path: JsonNode; +proc validate_PostDescribeCapacityReservations_617337(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more of your Capacity Reservations. The results describe only the Capacity Reservations in the AWS Region that you're currently using. ## @@ -50981,16 +51008,16 @@ proc validate_PostDescribeCapacityReservations_617335(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617337 = query.getOrDefault("Action") - valid_617337 = validateParameter(valid_617337, JString, required = true, default = newJString( + var valid_617339 = query.getOrDefault("Action") + valid_617339 = validateParameter(valid_617339, JString, required = true, default = newJString( "DescribeCapacityReservations")) - if valid_617337 != nil: - section.add "Action", valid_617337 - var valid_617338 = query.getOrDefault("Version") - valid_617338 = validateParameter(valid_617338, JString, required = true, + if valid_617339 != nil: + section.add "Action", valid_617339 + var valid_617340 = query.getOrDefault("Version") + valid_617340 = validateParameter(valid_617340, JString, required = true, default = newJString("2016-11-15")) - if valid_617338 != nil: - section.add "Version", valid_617338 + if valid_617340 != nil: + section.add "Version", valid_617340 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -51001,41 +51028,41 @@ proc validate_PostDescribeCapacityReservations_617335(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617339 = header.getOrDefault("X-Amz-Signature") - valid_617339 = validateParameter(valid_617339, JString, required = false, - default = nil) - if valid_617339 != nil: - section.add "X-Amz-Signature", valid_617339 - var valid_617340 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617340 = validateParameter(valid_617340, JString, required = false, - default = nil) - if valid_617340 != nil: - section.add "X-Amz-Content-Sha256", valid_617340 - var valid_617341 = header.getOrDefault("X-Amz-Date") + var valid_617341 = header.getOrDefault("X-Amz-Signature") valid_617341 = validateParameter(valid_617341, JString, required = false, default = nil) if valid_617341 != nil: - section.add "X-Amz-Date", valid_617341 - var valid_617342 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617341 + var valid_617342 = header.getOrDefault("X-Amz-Content-Sha256") valid_617342 = validateParameter(valid_617342, JString, required = false, default = nil) if valid_617342 != nil: - section.add "X-Amz-Credential", valid_617342 - var valid_617343 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617342 + var valid_617343 = header.getOrDefault("X-Amz-Date") valid_617343 = validateParameter(valid_617343, JString, required = false, default = nil) if valid_617343 != nil: - section.add "X-Amz-Security-Token", valid_617343 - var valid_617344 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617343 + var valid_617344 = header.getOrDefault("X-Amz-Credential") valid_617344 = validateParameter(valid_617344, JString, required = false, default = nil) if valid_617344 != nil: - section.add "X-Amz-Algorithm", valid_617344 - var valid_617345 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617344 + var valid_617345 = header.getOrDefault("X-Amz-Security-Token") valid_617345 = validateParameter(valid_617345, JString, required = false, default = nil) if valid_617345 != nil: - section.add "X-Amz-SignedHeaders", valid_617345 + section.add "X-Amz-Security-Token", valid_617345 + var valid_617346 = header.getOrDefault("X-Amz-Algorithm") + valid_617346 = validateParameter(valid_617346, JString, required = false, + default = nil) + if valid_617346 != nil: + section.add "X-Amz-Algorithm", valid_617346 + var valid_617347 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617347 = validateParameter(valid_617347, JString, required = false, + default = nil) + if valid_617347 != nil: + section.add "X-Amz-SignedHeaders", valid_617347 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -51049,48 +51076,48 @@ proc validate_PostDescribeCapacityReservations_617335(path: JsonNode; ## Filter: JArray ## : One or more filters. section = newJObject() - var valid_617346 = formData.getOrDefault("NextToken") - valid_617346 = validateParameter(valid_617346, JString, required = false, - default = nil) - if valid_617346 != nil: - section.add "NextToken", valid_617346 - var valid_617347 = formData.getOrDefault("DryRun") - valid_617347 = validateParameter(valid_617347, JBool, required = false, default = nil) - if valid_617347 != nil: - section.add "DryRun", valid_617347 - var valid_617348 = formData.getOrDefault("CapacityReservationId") - valid_617348 = validateParameter(valid_617348, JArray, required = false, + var valid_617348 = formData.getOrDefault("NextToken") + valid_617348 = validateParameter(valid_617348, JString, required = false, default = nil) if valid_617348 != nil: - section.add "CapacityReservationId", valid_617348 - var valid_617349 = formData.getOrDefault("MaxResults") - valid_617349 = validateParameter(valid_617349, JInt, required = false, default = nil) + section.add "NextToken", valid_617348 + var valid_617349 = formData.getOrDefault("DryRun") + valid_617349 = validateParameter(valid_617349, JBool, required = false, default = nil) if valid_617349 != nil: - section.add "MaxResults", valid_617349 - var valid_617350 = formData.getOrDefault("Filter") + section.add "DryRun", valid_617349 + var valid_617350 = formData.getOrDefault("CapacityReservationId") valid_617350 = validateParameter(valid_617350, JArray, required = false, default = nil) if valid_617350 != nil: - section.add "Filter", valid_617350 + section.add "CapacityReservationId", valid_617350 + var valid_617351 = formData.getOrDefault("MaxResults") + valid_617351 = validateParameter(valid_617351, JInt, required = false, default = nil) + if valid_617351 != nil: + section.add "MaxResults", valid_617351 + var valid_617352 = formData.getOrDefault("Filter") + valid_617352 = validateParameter(valid_617352, JArray, required = false, + default = nil) + if valid_617352 != nil: + section.add "Filter", valid_617352 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617351: Call_PostDescribeCapacityReservations_617334; +proc call*(call_617353: Call_PostDescribeCapacityReservations_617336; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more of your Capacity Reservations. The results describe only the Capacity Reservations in the AWS Region that you're currently using. ## - let valid = call_617351.validator(path, query, header, formData, body) - let scheme = call_617351.pickScheme + let valid = call_617353.validator(path, query, header, formData, body) + let scheme = call_617353.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617351.url(scheme.get, call_617351.host, call_617351.base, - call_617351.route, valid.getOrDefault("path"), + let url = call_617353.url(scheme.get, call_617353.host, call_617353.base, + call_617353.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617351, url, valid) + result = atozHook(call_617353, url, valid) -proc call*(call_617352: Call_PostDescribeCapacityReservations_617334; +proc call*(call_617354: Call_PostDescribeCapacityReservations_617336; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeCapacityReservations"; CapacityReservationId: JsonNode = nil; Version: string = "2016-11-15"; @@ -51109,28 +51136,28 @@ proc call*(call_617352: Call_PostDescribeCapacityReservations_617334; ## : The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned nextToken value. ## Filter: JArray ## : One or more filters. - var query_617353 = newJObject() - var formData_617354 = newJObject() - add(formData_617354, "NextToken", newJString(NextToken)) - add(formData_617354, "DryRun", newJBool(DryRun)) - add(query_617353, "Action", newJString(Action)) + var query_617355 = newJObject() + var formData_617356 = newJObject() + add(formData_617356, "NextToken", newJString(NextToken)) + add(formData_617356, "DryRun", newJBool(DryRun)) + add(query_617355, "Action", newJString(Action)) if CapacityReservationId != nil: - formData_617354.add "CapacityReservationId", CapacityReservationId - add(query_617353, "Version", newJString(Version)) - add(formData_617354, "MaxResults", newJInt(MaxResults)) + formData_617356.add "CapacityReservationId", CapacityReservationId + add(query_617355, "Version", newJString(Version)) + add(formData_617356, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_617354.add "Filter", Filter - result = call_617352.call(nil, query_617353, nil, formData_617354, nil) + formData_617356.add "Filter", Filter + result = call_617354.call(nil, query_617355, nil, formData_617356, nil) -var postDescribeCapacityReservations* = Call_PostDescribeCapacityReservations_617334( +var postDescribeCapacityReservations* = Call_PostDescribeCapacityReservations_617336( name: "postDescribeCapacityReservations", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeCapacityReservations", - validator: validate_PostDescribeCapacityReservations_617335, base: "/", - url: url_PostDescribeCapacityReservations_617336, + validator: validate_PostDescribeCapacityReservations_617337, base: "/", + url: url_PostDescribeCapacityReservations_617338, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeCapacityReservations_617314 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeCapacityReservations_617316(protocol: Scheme; host: string; + Call_GetDescribeCapacityReservations_617316 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeCapacityReservations_617318(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -51140,7 +51167,7 @@ proc url_GetDescribeCapacityReservations_617316(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeCapacityReservations_617315(path: JsonNode; +proc validate_GetDescribeCapacityReservations_617317(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more of your Capacity Reservations. The results describe only the Capacity Reservations in the AWS Region that you're currently using. ## @@ -51162,39 +51189,39 @@ proc validate_GetDescribeCapacityReservations_617315(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617317 = query.getOrDefault("MaxResults") - valid_617317 = validateParameter(valid_617317, JInt, required = false, default = nil) - if valid_617317 != nil: - section.add "MaxResults", valid_617317 - var valid_617318 = query.getOrDefault("DryRun") - valid_617318 = validateParameter(valid_617318, JBool, required = false, default = nil) - if valid_617318 != nil: - section.add "DryRun", valid_617318 - var valid_617319 = query.getOrDefault("CapacityReservationId") - valid_617319 = validateParameter(valid_617319, JArray, required = false, - default = nil) + var valid_617319 = query.getOrDefault("MaxResults") + valid_617319 = validateParameter(valid_617319, JInt, required = false, default = nil) if valid_617319 != nil: - section.add "CapacityReservationId", valid_617319 - var valid_617320 = query.getOrDefault("NextToken") - valid_617320 = validateParameter(valid_617320, JString, required = false, - default = nil) + section.add "MaxResults", valid_617319 + var valid_617320 = query.getOrDefault("DryRun") + valid_617320 = validateParameter(valid_617320, JBool, required = false, default = nil) if valid_617320 != nil: - section.add "NextToken", valid_617320 - var valid_617321 = query.getOrDefault("Filter") + section.add "DryRun", valid_617320 + var valid_617321 = query.getOrDefault("CapacityReservationId") valid_617321 = validateParameter(valid_617321, JArray, required = false, default = nil) if valid_617321 != nil: - section.add "Filter", valid_617321 - var valid_617322 = query.getOrDefault("Action") - valid_617322 = validateParameter(valid_617322, JString, required = true, default = newJString( - "DescribeCapacityReservations")) + section.add "CapacityReservationId", valid_617321 + var valid_617322 = query.getOrDefault("NextToken") + valid_617322 = validateParameter(valid_617322, JString, required = false, + default = nil) if valid_617322 != nil: - section.add "Action", valid_617322 - var valid_617323 = query.getOrDefault("Version") - valid_617323 = validateParameter(valid_617323, JString, required = true, - default = newJString("2016-11-15")) + section.add "NextToken", valid_617322 + var valid_617323 = query.getOrDefault("Filter") + valid_617323 = validateParameter(valid_617323, JArray, required = false, + default = nil) if valid_617323 != nil: - section.add "Version", valid_617323 + section.add "Filter", valid_617323 + var valid_617324 = query.getOrDefault("Action") + valid_617324 = validateParameter(valid_617324, JString, required = true, default = newJString( + "DescribeCapacityReservations")) + if valid_617324 != nil: + section.add "Action", valid_617324 + var valid_617325 = query.getOrDefault("Version") + valid_617325 = validateParameter(valid_617325, JString, required = true, + default = newJString("2016-11-15")) + if valid_617325 != nil: + section.add "Version", valid_617325 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -51205,62 +51232,62 @@ proc validate_GetDescribeCapacityReservations_617315(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617324 = header.getOrDefault("X-Amz-Signature") - valid_617324 = validateParameter(valid_617324, JString, required = false, - default = nil) - if valid_617324 != nil: - section.add "X-Amz-Signature", valid_617324 - var valid_617325 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617325 = validateParameter(valid_617325, JString, required = false, - default = nil) - if valid_617325 != nil: - section.add "X-Amz-Content-Sha256", valid_617325 - var valid_617326 = header.getOrDefault("X-Amz-Date") + var valid_617326 = header.getOrDefault("X-Amz-Signature") valid_617326 = validateParameter(valid_617326, JString, required = false, default = nil) if valid_617326 != nil: - section.add "X-Amz-Date", valid_617326 - var valid_617327 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617326 + var valid_617327 = header.getOrDefault("X-Amz-Content-Sha256") valid_617327 = validateParameter(valid_617327, JString, required = false, default = nil) if valid_617327 != nil: - section.add "X-Amz-Credential", valid_617327 - var valid_617328 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617327 + var valid_617328 = header.getOrDefault("X-Amz-Date") valid_617328 = validateParameter(valid_617328, JString, required = false, default = nil) if valid_617328 != nil: - section.add "X-Amz-Security-Token", valid_617328 - var valid_617329 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617328 + var valid_617329 = header.getOrDefault("X-Amz-Credential") valid_617329 = validateParameter(valid_617329, JString, required = false, default = nil) if valid_617329 != nil: - section.add "X-Amz-Algorithm", valid_617329 - var valid_617330 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617329 + var valid_617330 = header.getOrDefault("X-Amz-Security-Token") valid_617330 = validateParameter(valid_617330, JString, required = false, default = nil) if valid_617330 != nil: - section.add "X-Amz-SignedHeaders", valid_617330 + section.add "X-Amz-Security-Token", valid_617330 + var valid_617331 = header.getOrDefault("X-Amz-Algorithm") + valid_617331 = validateParameter(valid_617331, JString, required = false, + default = nil) + if valid_617331 != nil: + section.add "X-Amz-Algorithm", valid_617331 + var valid_617332 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617332 = validateParameter(valid_617332, JString, required = false, + default = nil) + if valid_617332 != nil: + section.add "X-Amz-SignedHeaders", valid_617332 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617331: Call_GetDescribeCapacityReservations_617314; +proc call*(call_617333: Call_GetDescribeCapacityReservations_617316; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more of your Capacity Reservations. The results describe only the Capacity Reservations in the AWS Region that you're currently using. ## - let valid = call_617331.validator(path, query, header, formData, body) - let scheme = call_617331.pickScheme + let valid = call_617333.validator(path, query, header, formData, body) + let scheme = call_617333.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617331.url(scheme.get, call_617331.host, call_617331.base, - call_617331.route, valid.getOrDefault("path"), + let url = call_617333.url(scheme.get, call_617333.host, call_617333.base, + call_617333.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617331, url, valid) + result = atozHook(call_617333, url, valid) -proc call*(call_617332: Call_GetDescribeCapacityReservations_617314; +proc call*(call_617334: Call_GetDescribeCapacityReservations_617316; MaxResults: int = 0; DryRun: bool = false; CapacityReservationId: JsonNode = nil; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeCapacityReservations"; @@ -51279,27 +51306,27 @@ proc call*(call_617332: Call_GetDescribeCapacityReservations_617314; ## : One or more filters. ## Action: string (required) ## Version: string (required) - var query_617333 = newJObject() - add(query_617333, "MaxResults", newJInt(MaxResults)) - add(query_617333, "DryRun", newJBool(DryRun)) + var query_617335 = newJObject() + add(query_617335, "MaxResults", newJInt(MaxResults)) + add(query_617335, "DryRun", newJBool(DryRun)) if CapacityReservationId != nil: - query_617333.add "CapacityReservationId", CapacityReservationId - add(query_617333, "NextToken", newJString(NextToken)) + query_617335.add "CapacityReservationId", CapacityReservationId + add(query_617335, "NextToken", newJString(NextToken)) if Filter != nil: - query_617333.add "Filter", Filter - add(query_617333, "Action", newJString(Action)) - add(query_617333, "Version", newJString(Version)) - result = call_617332.call(nil, query_617333, nil, nil, nil) + query_617335.add "Filter", Filter + add(query_617335, "Action", newJString(Action)) + add(query_617335, "Version", newJString(Version)) + result = call_617334.call(nil, query_617335, nil, nil, nil) -var getDescribeCapacityReservations* = Call_GetDescribeCapacityReservations_617314( +var getDescribeCapacityReservations* = Call_GetDescribeCapacityReservations_617316( name: "getDescribeCapacityReservations", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeCapacityReservations", - validator: validate_GetDescribeCapacityReservations_617315, base: "/", - url: url_GetDescribeCapacityReservations_617316, + validator: validate_GetDescribeCapacityReservations_617317, base: "/", + url: url_GetDescribeCapacityReservations_617318, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeClassicLinkInstances_617375 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeClassicLinkInstances_617377(protocol: Scheme; host: string; + Call_PostDescribeClassicLinkInstances_617377 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeClassicLinkInstances_617379(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -51309,7 +51336,7 @@ proc url_PostDescribeClassicLinkInstances_617377(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeClassicLinkInstances_617376(path: JsonNode; +proc validate_PostDescribeClassicLinkInstances_617378(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more of your linked EC2-Classic instances. This request only returns information about EC2-Classic instances linked to a VPC through ClassicLink. You cannot use this request to return information about other instances. ## @@ -51321,16 +51348,16 @@ proc validate_PostDescribeClassicLinkInstances_617376(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617378 = query.getOrDefault("Action") - valid_617378 = validateParameter(valid_617378, JString, required = true, default = newJString( + var valid_617380 = query.getOrDefault("Action") + valid_617380 = validateParameter(valid_617380, JString, required = true, default = newJString( "DescribeClassicLinkInstances")) - if valid_617378 != nil: - section.add "Action", valid_617378 - var valid_617379 = query.getOrDefault("Version") - valid_617379 = validateParameter(valid_617379, JString, required = true, + if valid_617380 != nil: + section.add "Action", valid_617380 + var valid_617381 = query.getOrDefault("Version") + valid_617381 = validateParameter(valid_617381, JString, required = true, default = newJString("2016-11-15")) - if valid_617379 != nil: - section.add "Version", valid_617379 + if valid_617381 != nil: + section.add "Version", valid_617381 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -51341,41 +51368,41 @@ proc validate_PostDescribeClassicLinkInstances_617376(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617380 = header.getOrDefault("X-Amz-Signature") - valid_617380 = validateParameter(valid_617380, JString, required = false, - default = nil) - if valid_617380 != nil: - section.add "X-Amz-Signature", valid_617380 - var valid_617381 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617381 = validateParameter(valid_617381, JString, required = false, - default = nil) - if valid_617381 != nil: - section.add "X-Amz-Content-Sha256", valid_617381 - var valid_617382 = header.getOrDefault("X-Amz-Date") + var valid_617382 = header.getOrDefault("X-Amz-Signature") valid_617382 = validateParameter(valid_617382, JString, required = false, default = nil) if valid_617382 != nil: - section.add "X-Amz-Date", valid_617382 - var valid_617383 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617382 + var valid_617383 = header.getOrDefault("X-Amz-Content-Sha256") valid_617383 = validateParameter(valid_617383, JString, required = false, default = nil) if valid_617383 != nil: - section.add "X-Amz-Credential", valid_617383 - var valid_617384 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617383 + var valid_617384 = header.getOrDefault("X-Amz-Date") valid_617384 = validateParameter(valid_617384, JString, required = false, default = nil) if valid_617384 != nil: - section.add "X-Amz-Security-Token", valid_617384 - var valid_617385 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617384 + var valid_617385 = header.getOrDefault("X-Amz-Credential") valid_617385 = validateParameter(valid_617385, JString, required = false, default = nil) if valid_617385 != nil: - section.add "X-Amz-Algorithm", valid_617385 - var valid_617386 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617385 + var valid_617386 = header.getOrDefault("X-Amz-Security-Token") valid_617386 = validateParameter(valid_617386, JString, required = false, default = nil) if valid_617386 != nil: - section.add "X-Amz-SignedHeaders", valid_617386 + section.add "X-Amz-Security-Token", valid_617386 + var valid_617387 = header.getOrDefault("X-Amz-Algorithm") + valid_617387 = validateParameter(valid_617387, JString, required = false, + default = nil) + if valid_617387 != nil: + section.add "X-Amz-Algorithm", valid_617387 + var valid_617388 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617388 = validateParameter(valid_617388, JString, required = false, + default = nil) + if valid_617388 != nil: + section.add "X-Amz-SignedHeaders", valid_617388 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -51389,48 +51416,48 @@ proc validate_PostDescribeClassicLinkInstances_617376(path: JsonNode; ## Filter: JArray ## :

One or more filters.

section = newJObject() - var valid_617387 = formData.getOrDefault("NextToken") - valid_617387 = validateParameter(valid_617387, JString, required = false, - default = nil) - if valid_617387 != nil: - section.add "NextToken", valid_617387 - var valid_617388 = formData.getOrDefault("DryRun") - valid_617388 = validateParameter(valid_617388, JBool, required = false, default = nil) - if valid_617388 != nil: - section.add "DryRun", valid_617388 - var valid_617389 = formData.getOrDefault("InstanceId") - valid_617389 = validateParameter(valid_617389, JArray, required = false, + var valid_617389 = formData.getOrDefault("NextToken") + valid_617389 = validateParameter(valid_617389, JString, required = false, default = nil) if valid_617389 != nil: - section.add "InstanceId", valid_617389 - var valid_617390 = formData.getOrDefault("MaxResults") - valid_617390 = validateParameter(valid_617390, JInt, required = false, default = nil) + section.add "NextToken", valid_617389 + var valid_617390 = formData.getOrDefault("DryRun") + valid_617390 = validateParameter(valid_617390, JBool, required = false, default = nil) if valid_617390 != nil: - section.add "MaxResults", valid_617390 - var valid_617391 = formData.getOrDefault("Filter") + section.add "DryRun", valid_617390 + var valid_617391 = formData.getOrDefault("InstanceId") valid_617391 = validateParameter(valid_617391, JArray, required = false, default = nil) if valid_617391 != nil: - section.add "Filter", valid_617391 + section.add "InstanceId", valid_617391 + var valid_617392 = formData.getOrDefault("MaxResults") + valid_617392 = validateParameter(valid_617392, JInt, required = false, default = nil) + if valid_617392 != nil: + section.add "MaxResults", valid_617392 + var valid_617393 = formData.getOrDefault("Filter") + valid_617393 = validateParameter(valid_617393, JArray, required = false, + default = nil) + if valid_617393 != nil: + section.add "Filter", valid_617393 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617392: Call_PostDescribeClassicLinkInstances_617375; +proc call*(call_617394: Call_PostDescribeClassicLinkInstances_617377; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more of your linked EC2-Classic instances. This request only returns information about EC2-Classic instances linked to a VPC through ClassicLink. You cannot use this request to return information about other instances. ## - let valid = call_617392.validator(path, query, header, formData, body) - let scheme = call_617392.pickScheme + let valid = call_617394.validator(path, query, header, formData, body) + let scheme = call_617394.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617392.url(scheme.get, call_617392.host, call_617392.base, - call_617392.route, valid.getOrDefault("path"), + let url = call_617394.url(scheme.get, call_617394.host, call_617394.base, + call_617394.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617392, url, valid) + result = atozHook(call_617394, url, valid) -proc call*(call_617393: Call_PostDescribeClassicLinkInstances_617375; +proc call*(call_617395: Call_PostDescribeClassicLinkInstances_617377; NextToken: string = ""; DryRun: bool = false; InstanceId: JsonNode = nil; Action: string = "DescribeClassicLinkInstances"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -51448,28 +51475,28 @@ proc call*(call_617393: Call_PostDescribeClassicLinkInstances_617375; ## :

The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

Constraint: If the value is greater than 1000, we return only 1000 items.

## Filter: JArray ## :

One or more filters.

- var query_617394 = newJObject() - var formData_617395 = newJObject() - add(formData_617395, "NextToken", newJString(NextToken)) - add(formData_617395, "DryRun", newJBool(DryRun)) + var query_617396 = newJObject() + var formData_617397 = newJObject() + add(formData_617397, "NextToken", newJString(NextToken)) + add(formData_617397, "DryRun", newJBool(DryRun)) if InstanceId != nil: - formData_617395.add "InstanceId", InstanceId - add(query_617394, "Action", newJString(Action)) - add(query_617394, "Version", newJString(Version)) - add(formData_617395, "MaxResults", newJInt(MaxResults)) + formData_617397.add "InstanceId", InstanceId + add(query_617396, "Action", newJString(Action)) + add(query_617396, "Version", newJString(Version)) + add(formData_617397, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_617395.add "Filter", Filter - result = call_617393.call(nil, query_617394, nil, formData_617395, nil) + formData_617397.add "Filter", Filter + result = call_617395.call(nil, query_617396, nil, formData_617397, nil) -var postDescribeClassicLinkInstances* = Call_PostDescribeClassicLinkInstances_617375( +var postDescribeClassicLinkInstances* = Call_PostDescribeClassicLinkInstances_617377( name: "postDescribeClassicLinkInstances", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeClassicLinkInstances", - validator: validate_PostDescribeClassicLinkInstances_617376, base: "/", - url: url_PostDescribeClassicLinkInstances_617377, + validator: validate_PostDescribeClassicLinkInstances_617378, base: "/", + url: url_PostDescribeClassicLinkInstances_617379, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeClassicLinkInstances_617355 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeClassicLinkInstances_617357(protocol: Scheme; host: string; + Call_GetDescribeClassicLinkInstances_617357 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeClassicLinkInstances_617359(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -51479,7 +51506,7 @@ proc url_GetDescribeClassicLinkInstances_617357(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeClassicLinkInstances_617356(path: JsonNode; +proc validate_GetDescribeClassicLinkInstances_617358(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more of your linked EC2-Classic instances. This request only returns information about EC2-Classic instances linked to a VPC through ClassicLink. You cannot use this request to return information about other instances. ## @@ -51501,39 +51528,39 @@ proc validate_GetDescribeClassicLinkInstances_617356(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617358 = query.getOrDefault("MaxResults") - valid_617358 = validateParameter(valid_617358, JInt, required = false, default = nil) - if valid_617358 != nil: - section.add "MaxResults", valid_617358 - var valid_617359 = query.getOrDefault("DryRun") - valid_617359 = validateParameter(valid_617359, JBool, required = false, default = nil) - if valid_617359 != nil: - section.add "DryRun", valid_617359 - var valid_617360 = query.getOrDefault("NextToken") - valid_617360 = validateParameter(valid_617360, JString, required = false, - default = nil) + var valid_617360 = query.getOrDefault("MaxResults") + valid_617360 = validateParameter(valid_617360, JInt, required = false, default = nil) if valid_617360 != nil: - section.add "NextToken", valid_617360 - var valid_617361 = query.getOrDefault("InstanceId") - valid_617361 = validateParameter(valid_617361, JArray, required = false, - default = nil) + section.add "MaxResults", valid_617360 + var valid_617361 = query.getOrDefault("DryRun") + valid_617361 = validateParameter(valid_617361, JBool, required = false, default = nil) if valid_617361 != nil: - section.add "InstanceId", valid_617361 - var valid_617362 = query.getOrDefault("Filter") - valid_617362 = validateParameter(valid_617362, JArray, required = false, + section.add "DryRun", valid_617361 + var valid_617362 = query.getOrDefault("NextToken") + valid_617362 = validateParameter(valid_617362, JString, required = false, default = nil) if valid_617362 != nil: - section.add "Filter", valid_617362 - var valid_617363 = query.getOrDefault("Action") - valid_617363 = validateParameter(valid_617363, JString, required = true, default = newJString( - "DescribeClassicLinkInstances")) + section.add "NextToken", valid_617362 + var valid_617363 = query.getOrDefault("InstanceId") + valid_617363 = validateParameter(valid_617363, JArray, required = false, + default = nil) if valid_617363 != nil: - section.add "Action", valid_617363 - var valid_617364 = query.getOrDefault("Version") - valid_617364 = validateParameter(valid_617364, JString, required = true, - default = newJString("2016-11-15")) + section.add "InstanceId", valid_617363 + var valid_617364 = query.getOrDefault("Filter") + valid_617364 = validateParameter(valid_617364, JArray, required = false, + default = nil) if valid_617364 != nil: - section.add "Version", valid_617364 + section.add "Filter", valid_617364 + var valid_617365 = query.getOrDefault("Action") + valid_617365 = validateParameter(valid_617365, JString, required = true, default = newJString( + "DescribeClassicLinkInstances")) + if valid_617365 != nil: + section.add "Action", valid_617365 + var valid_617366 = query.getOrDefault("Version") + valid_617366 = validateParameter(valid_617366, JString, required = true, + default = newJString("2016-11-15")) + if valid_617366 != nil: + section.add "Version", valid_617366 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -51544,62 +51571,62 @@ proc validate_GetDescribeClassicLinkInstances_617356(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617365 = header.getOrDefault("X-Amz-Signature") - valid_617365 = validateParameter(valid_617365, JString, required = false, - default = nil) - if valid_617365 != nil: - section.add "X-Amz-Signature", valid_617365 - var valid_617366 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617366 = validateParameter(valid_617366, JString, required = false, - default = nil) - if valid_617366 != nil: - section.add "X-Amz-Content-Sha256", valid_617366 - var valid_617367 = header.getOrDefault("X-Amz-Date") + var valid_617367 = header.getOrDefault("X-Amz-Signature") valid_617367 = validateParameter(valid_617367, JString, required = false, default = nil) if valid_617367 != nil: - section.add "X-Amz-Date", valid_617367 - var valid_617368 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617367 + var valid_617368 = header.getOrDefault("X-Amz-Content-Sha256") valid_617368 = validateParameter(valid_617368, JString, required = false, default = nil) if valid_617368 != nil: - section.add "X-Amz-Credential", valid_617368 - var valid_617369 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617368 + var valid_617369 = header.getOrDefault("X-Amz-Date") valid_617369 = validateParameter(valid_617369, JString, required = false, default = nil) if valid_617369 != nil: - section.add "X-Amz-Security-Token", valid_617369 - var valid_617370 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617369 + var valid_617370 = header.getOrDefault("X-Amz-Credential") valid_617370 = validateParameter(valid_617370, JString, required = false, default = nil) if valid_617370 != nil: - section.add "X-Amz-Algorithm", valid_617370 - var valid_617371 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617370 + var valid_617371 = header.getOrDefault("X-Amz-Security-Token") valid_617371 = validateParameter(valid_617371, JString, required = false, default = nil) if valid_617371 != nil: - section.add "X-Amz-SignedHeaders", valid_617371 + section.add "X-Amz-Security-Token", valid_617371 + var valid_617372 = header.getOrDefault("X-Amz-Algorithm") + valid_617372 = validateParameter(valid_617372, JString, required = false, + default = nil) + if valid_617372 != nil: + section.add "X-Amz-Algorithm", valid_617372 + var valid_617373 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617373 = validateParameter(valid_617373, JString, required = false, + default = nil) + if valid_617373 != nil: + section.add "X-Amz-SignedHeaders", valid_617373 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617372: Call_GetDescribeClassicLinkInstances_617355; +proc call*(call_617374: Call_GetDescribeClassicLinkInstances_617357; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more of your linked EC2-Classic instances. This request only returns information about EC2-Classic instances linked to a VPC through ClassicLink. You cannot use this request to return information about other instances. ## - let valid = call_617372.validator(path, query, header, formData, body) - let scheme = call_617372.pickScheme + let valid = call_617374.validator(path, query, header, formData, body) + let scheme = call_617374.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617372.url(scheme.get, call_617372.host, call_617372.base, - call_617372.route, valid.getOrDefault("path"), + let url = call_617374.url(scheme.get, call_617374.host, call_617374.base, + call_617374.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617372, url, valid) + result = atozHook(call_617374, url, valid) -proc call*(call_617373: Call_GetDescribeClassicLinkInstances_617355; +proc call*(call_617375: Call_GetDescribeClassicLinkInstances_617357; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; InstanceId: JsonNode = nil; Filter: JsonNode = nil; Action: string = "DescribeClassicLinkInstances"; @@ -51618,27 +51645,27 @@ proc call*(call_617373: Call_GetDescribeClassicLinkInstances_617355; ## :

One or more filters.

## Action: string (required) ## Version: string (required) - var query_617374 = newJObject() - add(query_617374, "MaxResults", newJInt(MaxResults)) - add(query_617374, "DryRun", newJBool(DryRun)) - add(query_617374, "NextToken", newJString(NextToken)) + var query_617376 = newJObject() + add(query_617376, "MaxResults", newJInt(MaxResults)) + add(query_617376, "DryRun", newJBool(DryRun)) + add(query_617376, "NextToken", newJString(NextToken)) if InstanceId != nil: - query_617374.add "InstanceId", InstanceId + query_617376.add "InstanceId", InstanceId if Filter != nil: - query_617374.add "Filter", Filter - add(query_617374, "Action", newJString(Action)) - add(query_617374, "Version", newJString(Version)) - result = call_617373.call(nil, query_617374, nil, nil, nil) + query_617376.add "Filter", Filter + add(query_617376, "Action", newJString(Action)) + add(query_617376, "Version", newJString(Version)) + result = call_617375.call(nil, query_617376, nil, nil, nil) -var getDescribeClassicLinkInstances* = Call_GetDescribeClassicLinkInstances_617355( +var getDescribeClassicLinkInstances* = Call_GetDescribeClassicLinkInstances_617357( name: "getDescribeClassicLinkInstances", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeClassicLinkInstances", - validator: validate_GetDescribeClassicLinkInstances_617356, base: "/", - url: url_GetDescribeClassicLinkInstances_617357, + validator: validate_GetDescribeClassicLinkInstances_617358, base: "/", + url: url_GetDescribeClassicLinkInstances_617359, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeClientVpnAuthorizationRules_617416 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeClientVpnAuthorizationRules_617418(protocol: Scheme; + Call_PostDescribeClientVpnAuthorizationRules_617418 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeClientVpnAuthorizationRules_617420(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -51648,7 +51675,7 @@ proc url_PostDescribeClientVpnAuthorizationRules_617418(protocol: Scheme; else: result.path = base & route -proc validate_PostDescribeClientVpnAuthorizationRules_617417(path: JsonNode; +proc validate_PostDescribeClientVpnAuthorizationRules_617419(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the authorization rules for a specified Client VPN endpoint. ## @@ -51660,16 +51687,16 @@ proc validate_PostDescribeClientVpnAuthorizationRules_617417(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617419 = query.getOrDefault("Action") - valid_617419 = validateParameter(valid_617419, JString, required = true, default = newJString( + var valid_617421 = query.getOrDefault("Action") + valid_617421 = validateParameter(valid_617421, JString, required = true, default = newJString( "DescribeClientVpnAuthorizationRules")) - if valid_617419 != nil: - section.add "Action", valid_617419 - var valid_617420 = query.getOrDefault("Version") - valid_617420 = validateParameter(valid_617420, JString, required = true, + if valid_617421 != nil: + section.add "Action", valid_617421 + var valid_617422 = query.getOrDefault("Version") + valid_617422 = validateParameter(valid_617422, JString, required = true, default = newJString("2016-11-15")) - if valid_617420 != nil: - section.add "Version", valid_617420 + if valid_617422 != nil: + section.add "Version", valid_617422 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -51680,41 +51707,41 @@ proc validate_PostDescribeClientVpnAuthorizationRules_617417(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617421 = header.getOrDefault("X-Amz-Signature") - valid_617421 = validateParameter(valid_617421, JString, required = false, - default = nil) - if valid_617421 != nil: - section.add "X-Amz-Signature", valid_617421 - var valid_617422 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617422 = validateParameter(valid_617422, JString, required = false, - default = nil) - if valid_617422 != nil: - section.add "X-Amz-Content-Sha256", valid_617422 - var valid_617423 = header.getOrDefault("X-Amz-Date") + var valid_617423 = header.getOrDefault("X-Amz-Signature") valid_617423 = validateParameter(valid_617423, JString, required = false, default = nil) if valid_617423 != nil: - section.add "X-Amz-Date", valid_617423 - var valid_617424 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617423 + var valid_617424 = header.getOrDefault("X-Amz-Content-Sha256") valid_617424 = validateParameter(valid_617424, JString, required = false, default = nil) if valid_617424 != nil: - section.add "X-Amz-Credential", valid_617424 - var valid_617425 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617424 + var valid_617425 = header.getOrDefault("X-Amz-Date") valid_617425 = validateParameter(valid_617425, JString, required = false, default = nil) if valid_617425 != nil: - section.add "X-Amz-Security-Token", valid_617425 - var valid_617426 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617425 + var valid_617426 = header.getOrDefault("X-Amz-Credential") valid_617426 = validateParameter(valid_617426, JString, required = false, default = nil) if valid_617426 != nil: - section.add "X-Amz-Algorithm", valid_617426 - var valid_617427 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617426 + var valid_617427 = header.getOrDefault("X-Amz-Security-Token") valid_617427 = validateParameter(valid_617427, JString, required = false, default = nil) if valid_617427 != nil: - section.add "X-Amz-SignedHeaders", valid_617427 + section.add "X-Amz-Security-Token", valid_617427 + var valid_617428 = header.getOrDefault("X-Amz-Algorithm") + valid_617428 = validateParameter(valid_617428, JString, required = false, + default = nil) + if valid_617428 != nil: + section.add "X-Amz-Algorithm", valid_617428 + var valid_617429 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617429 = validateParameter(valid_617429, JString, required = false, + default = nil) + if valid_617429 != nil: + section.add "X-Amz-SignedHeaders", valid_617429 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -51728,49 +51755,49 @@ proc validate_PostDescribeClientVpnAuthorizationRules_617417(path: JsonNode; ## Filter: JArray ## :

One or more filters. Filter names and values are case-sensitive.

section = newJObject() - var valid_617428 = formData.getOrDefault("NextToken") - valid_617428 = validateParameter(valid_617428, JString, required = false, + var valid_617430 = formData.getOrDefault("NextToken") + valid_617430 = validateParameter(valid_617430, JString, required = false, default = nil) - if valid_617428 != nil: - section.add "NextToken", valid_617428 - var valid_617429 = formData.getOrDefault("DryRun") - valid_617429 = validateParameter(valid_617429, JBool, required = false, default = nil) - if valid_617429 != nil: - section.add "DryRun", valid_617429 - var valid_617430 = formData.getOrDefault("MaxResults") - valid_617430 = validateParameter(valid_617430, JInt, required = false, default = nil) if valid_617430 != nil: - section.add "MaxResults", valid_617430 + section.add "NextToken", valid_617430 + var valid_617431 = formData.getOrDefault("DryRun") + valid_617431 = validateParameter(valid_617431, JBool, required = false, default = nil) + if valid_617431 != nil: + section.add "DryRun", valid_617431 + var valid_617432 = formData.getOrDefault("MaxResults") + valid_617432 = validateParameter(valid_617432, JInt, required = false, default = nil) + if valid_617432 != nil: + section.add "MaxResults", valid_617432 assert formData != nil, "formData argument is necessary due to required `ClientVpnEndpointId` field" - var valid_617431 = formData.getOrDefault("ClientVpnEndpointId") - valid_617431 = validateParameter(valid_617431, JString, required = true, + var valid_617433 = formData.getOrDefault("ClientVpnEndpointId") + valid_617433 = validateParameter(valid_617433, JString, required = true, default = nil) - if valid_617431 != nil: - section.add "ClientVpnEndpointId", valid_617431 - var valid_617432 = formData.getOrDefault("Filter") - valid_617432 = validateParameter(valid_617432, JArray, required = false, + if valid_617433 != nil: + section.add "ClientVpnEndpointId", valid_617433 + var valid_617434 = formData.getOrDefault("Filter") + valid_617434 = validateParameter(valid_617434, JArray, required = false, default = nil) - if valid_617432 != nil: - section.add "Filter", valid_617432 + if valid_617434 != nil: + section.add "Filter", valid_617434 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617433: Call_PostDescribeClientVpnAuthorizationRules_617416; +proc call*(call_617435: Call_PostDescribeClientVpnAuthorizationRules_617418; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the authorization rules for a specified Client VPN endpoint. ## - let valid = call_617433.validator(path, query, header, formData, body) - let scheme = call_617433.pickScheme + let valid = call_617435.validator(path, query, header, formData, body) + let scheme = call_617435.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617433.url(scheme.get, call_617433.host, call_617433.base, - call_617433.route, valid.getOrDefault("path"), + let url = call_617435.url(scheme.get, call_617435.host, call_617435.base, + call_617435.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617433, url, valid) + result = atozHook(call_617435, url, valid) -proc call*(call_617434: Call_PostDescribeClientVpnAuthorizationRules_617416; +proc call*(call_617436: Call_PostDescribeClientVpnAuthorizationRules_617418; ClientVpnEndpointId: string; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeClientVpnAuthorizationRules"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -51788,28 +51815,28 @@ proc call*(call_617434: Call_PostDescribeClientVpnAuthorizationRules_617416; ## : The ID of the Client VPN endpoint. ## Filter: JArray ## :

One or more filters. Filter names and values are case-sensitive.

- var query_617435 = newJObject() - var formData_617436 = newJObject() - add(formData_617436, "NextToken", newJString(NextToken)) - add(formData_617436, "DryRun", newJBool(DryRun)) - add(query_617435, "Action", newJString(Action)) - add(query_617435, "Version", newJString(Version)) - add(formData_617436, "MaxResults", newJInt(MaxResults)) - add(formData_617436, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) + var query_617437 = newJObject() + var formData_617438 = newJObject() + add(formData_617438, "NextToken", newJString(NextToken)) + add(formData_617438, "DryRun", newJBool(DryRun)) + add(query_617437, "Action", newJString(Action)) + add(query_617437, "Version", newJString(Version)) + add(formData_617438, "MaxResults", newJInt(MaxResults)) + add(formData_617438, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) if Filter != nil: - formData_617436.add "Filter", Filter - result = call_617434.call(nil, query_617435, nil, formData_617436, nil) + formData_617438.add "Filter", Filter + result = call_617436.call(nil, query_617437, nil, formData_617438, nil) -var postDescribeClientVpnAuthorizationRules* = Call_PostDescribeClientVpnAuthorizationRules_617416( +var postDescribeClientVpnAuthorizationRules* = Call_PostDescribeClientVpnAuthorizationRules_617418( name: "postDescribeClientVpnAuthorizationRules", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeClientVpnAuthorizationRules", - validator: validate_PostDescribeClientVpnAuthorizationRules_617417, base: "/", - url: url_PostDescribeClientVpnAuthorizationRules_617418, + validator: validate_PostDescribeClientVpnAuthorizationRules_617419, base: "/", + url: url_PostDescribeClientVpnAuthorizationRules_617420, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeClientVpnAuthorizationRules_617396 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeClientVpnAuthorizationRules_617398(protocol: Scheme; + Call_GetDescribeClientVpnAuthorizationRules_617398 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeClientVpnAuthorizationRules_617400(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -51819,7 +51846,7 @@ proc url_GetDescribeClientVpnAuthorizationRules_617398(protocol: Scheme; else: result.path = base & route -proc validate_GetDescribeClientVpnAuthorizationRules_617397(path: JsonNode; +proc validate_GetDescribeClientVpnAuthorizationRules_617399(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the authorization rules for a specified Client VPN endpoint. ## @@ -51841,40 +51868,40 @@ proc validate_GetDescribeClientVpnAuthorizationRules_617397(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617399 = query.getOrDefault("MaxResults") - valid_617399 = validateParameter(valid_617399, JInt, required = false, default = nil) - if valid_617399 != nil: - section.add "MaxResults", valid_617399 - var valid_617400 = query.getOrDefault("DryRun") - valid_617400 = validateParameter(valid_617400, JBool, required = false, default = nil) - if valid_617400 != nil: - section.add "DryRun", valid_617400 - var valid_617401 = query.getOrDefault("NextToken") - valid_617401 = validateParameter(valid_617401, JString, required = false, - default = nil) + var valid_617401 = query.getOrDefault("MaxResults") + valid_617401 = validateParameter(valid_617401, JInt, required = false, default = nil) if valid_617401 != nil: - section.add "NextToken", valid_617401 - assert query != nil, "query argument is necessary due to required `ClientVpnEndpointId` field" - var valid_617402 = query.getOrDefault("ClientVpnEndpointId") - valid_617402 = validateParameter(valid_617402, JString, required = true, - default = nil) + section.add "MaxResults", valid_617401 + var valid_617402 = query.getOrDefault("DryRun") + valid_617402 = validateParameter(valid_617402, JBool, required = false, default = nil) if valid_617402 != nil: - section.add "ClientVpnEndpointId", valid_617402 - var valid_617403 = query.getOrDefault("Filter") - valid_617403 = validateParameter(valid_617403, JArray, required = false, + section.add "DryRun", valid_617402 + var valid_617403 = query.getOrDefault("NextToken") + valid_617403 = validateParameter(valid_617403, JString, required = false, default = nil) if valid_617403 != nil: - section.add "Filter", valid_617403 - var valid_617404 = query.getOrDefault("Action") - valid_617404 = validateParameter(valid_617404, JString, required = true, default = newJString( - "DescribeClientVpnAuthorizationRules")) + section.add "NextToken", valid_617403 + assert query != nil, "query argument is necessary due to required `ClientVpnEndpointId` field" + var valid_617404 = query.getOrDefault("ClientVpnEndpointId") + valid_617404 = validateParameter(valid_617404, JString, required = true, + default = nil) if valid_617404 != nil: - section.add "Action", valid_617404 - var valid_617405 = query.getOrDefault("Version") - valid_617405 = validateParameter(valid_617405, JString, required = true, - default = newJString("2016-11-15")) + section.add "ClientVpnEndpointId", valid_617404 + var valid_617405 = query.getOrDefault("Filter") + valid_617405 = validateParameter(valid_617405, JArray, required = false, + default = nil) if valid_617405 != nil: - section.add "Version", valid_617405 + section.add "Filter", valid_617405 + var valid_617406 = query.getOrDefault("Action") + valid_617406 = validateParameter(valid_617406, JString, required = true, default = newJString( + "DescribeClientVpnAuthorizationRules")) + if valid_617406 != nil: + section.add "Action", valid_617406 + var valid_617407 = query.getOrDefault("Version") + valid_617407 = validateParameter(valid_617407, JString, required = true, + default = newJString("2016-11-15")) + if valid_617407 != nil: + section.add "Version", valid_617407 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -51885,62 +51912,62 @@ proc validate_GetDescribeClientVpnAuthorizationRules_617397(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617406 = header.getOrDefault("X-Amz-Signature") - valid_617406 = validateParameter(valid_617406, JString, required = false, - default = nil) - if valid_617406 != nil: - section.add "X-Amz-Signature", valid_617406 - var valid_617407 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617407 = validateParameter(valid_617407, JString, required = false, - default = nil) - if valid_617407 != nil: - section.add "X-Amz-Content-Sha256", valid_617407 - var valid_617408 = header.getOrDefault("X-Amz-Date") + var valid_617408 = header.getOrDefault("X-Amz-Signature") valid_617408 = validateParameter(valid_617408, JString, required = false, default = nil) if valid_617408 != nil: - section.add "X-Amz-Date", valid_617408 - var valid_617409 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617408 + var valid_617409 = header.getOrDefault("X-Amz-Content-Sha256") valid_617409 = validateParameter(valid_617409, JString, required = false, default = nil) if valid_617409 != nil: - section.add "X-Amz-Credential", valid_617409 - var valid_617410 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617409 + var valid_617410 = header.getOrDefault("X-Amz-Date") valid_617410 = validateParameter(valid_617410, JString, required = false, default = nil) if valid_617410 != nil: - section.add "X-Amz-Security-Token", valid_617410 - var valid_617411 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617410 + var valid_617411 = header.getOrDefault("X-Amz-Credential") valid_617411 = validateParameter(valid_617411, JString, required = false, default = nil) if valid_617411 != nil: - section.add "X-Amz-Algorithm", valid_617411 - var valid_617412 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617411 + var valid_617412 = header.getOrDefault("X-Amz-Security-Token") valid_617412 = validateParameter(valid_617412, JString, required = false, default = nil) if valid_617412 != nil: - section.add "X-Amz-SignedHeaders", valid_617412 + section.add "X-Amz-Security-Token", valid_617412 + var valid_617413 = header.getOrDefault("X-Amz-Algorithm") + valid_617413 = validateParameter(valid_617413, JString, required = false, + default = nil) + if valid_617413 != nil: + section.add "X-Amz-Algorithm", valid_617413 + var valid_617414 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617414 = validateParameter(valid_617414, JString, required = false, + default = nil) + if valid_617414 != nil: + section.add "X-Amz-SignedHeaders", valid_617414 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617413: Call_GetDescribeClientVpnAuthorizationRules_617396; +proc call*(call_617415: Call_GetDescribeClientVpnAuthorizationRules_617398; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the authorization rules for a specified Client VPN endpoint. ## - let valid = call_617413.validator(path, query, header, formData, body) - let scheme = call_617413.pickScheme + let valid = call_617415.validator(path, query, header, formData, body) + let scheme = call_617415.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617413.url(scheme.get, call_617413.host, call_617413.base, - call_617413.route, valid.getOrDefault("path"), + let url = call_617415.url(scheme.get, call_617415.host, call_617415.base, + call_617415.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617413, url, valid) + result = atozHook(call_617415, url, valid) -proc call*(call_617414: Call_GetDescribeClientVpnAuthorizationRules_617396; +proc call*(call_617416: Call_GetDescribeClientVpnAuthorizationRules_617398; ClientVpnEndpointId: string; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeClientVpnAuthorizationRules"; @@ -51959,27 +51986,27 @@ proc call*(call_617414: Call_GetDescribeClientVpnAuthorizationRules_617396; ## :

One or more filters. Filter names and values are case-sensitive.

## Action: string (required) ## Version: string (required) - var query_617415 = newJObject() - add(query_617415, "MaxResults", newJInt(MaxResults)) - add(query_617415, "DryRun", newJBool(DryRun)) - add(query_617415, "NextToken", newJString(NextToken)) - add(query_617415, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) + var query_617417 = newJObject() + add(query_617417, "MaxResults", newJInt(MaxResults)) + add(query_617417, "DryRun", newJBool(DryRun)) + add(query_617417, "NextToken", newJString(NextToken)) + add(query_617417, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) if Filter != nil: - query_617415.add "Filter", Filter - add(query_617415, "Action", newJString(Action)) - add(query_617415, "Version", newJString(Version)) - result = call_617414.call(nil, query_617415, nil, nil, nil) + query_617417.add "Filter", Filter + add(query_617417, "Action", newJString(Action)) + add(query_617417, "Version", newJString(Version)) + result = call_617416.call(nil, query_617417, nil, nil, nil) -var getDescribeClientVpnAuthorizationRules* = Call_GetDescribeClientVpnAuthorizationRules_617396( +var getDescribeClientVpnAuthorizationRules* = Call_GetDescribeClientVpnAuthorizationRules_617398( name: "getDescribeClientVpnAuthorizationRules", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeClientVpnAuthorizationRules", - validator: validate_GetDescribeClientVpnAuthorizationRules_617397, base: "/", - url: url_GetDescribeClientVpnAuthorizationRules_617398, + validator: validate_GetDescribeClientVpnAuthorizationRules_617399, base: "/", + url: url_GetDescribeClientVpnAuthorizationRules_617400, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeClientVpnConnections_617457 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeClientVpnConnections_617459(protocol: Scheme; host: string; + Call_PostDescribeClientVpnConnections_617459 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeClientVpnConnections_617461(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -51989,7 +52016,7 @@ proc url_PostDescribeClientVpnConnections_617459(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeClientVpnConnections_617458(path: JsonNode; +proc validate_PostDescribeClientVpnConnections_617460(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes active client connections and connections that have been terminated within the last 60 minutes for the specified Client VPN endpoint. ## @@ -52001,16 +52028,16 @@ proc validate_PostDescribeClientVpnConnections_617458(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617460 = query.getOrDefault("Action") - valid_617460 = validateParameter(valid_617460, JString, required = true, default = newJString( + var valid_617462 = query.getOrDefault("Action") + valid_617462 = validateParameter(valid_617462, JString, required = true, default = newJString( "DescribeClientVpnConnections")) - if valid_617460 != nil: - section.add "Action", valid_617460 - var valid_617461 = query.getOrDefault("Version") - valid_617461 = validateParameter(valid_617461, JString, required = true, + if valid_617462 != nil: + section.add "Action", valid_617462 + var valid_617463 = query.getOrDefault("Version") + valid_617463 = validateParameter(valid_617463, JString, required = true, default = newJString("2016-11-15")) - if valid_617461 != nil: - section.add "Version", valid_617461 + if valid_617463 != nil: + section.add "Version", valid_617463 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -52021,41 +52048,41 @@ proc validate_PostDescribeClientVpnConnections_617458(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617462 = header.getOrDefault("X-Amz-Signature") - valid_617462 = validateParameter(valid_617462, JString, required = false, - default = nil) - if valid_617462 != nil: - section.add "X-Amz-Signature", valid_617462 - var valid_617463 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617463 = validateParameter(valid_617463, JString, required = false, - default = nil) - if valid_617463 != nil: - section.add "X-Amz-Content-Sha256", valid_617463 - var valid_617464 = header.getOrDefault("X-Amz-Date") + var valid_617464 = header.getOrDefault("X-Amz-Signature") valid_617464 = validateParameter(valid_617464, JString, required = false, default = nil) if valid_617464 != nil: - section.add "X-Amz-Date", valid_617464 - var valid_617465 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617464 + var valid_617465 = header.getOrDefault("X-Amz-Content-Sha256") valid_617465 = validateParameter(valid_617465, JString, required = false, default = nil) if valid_617465 != nil: - section.add "X-Amz-Credential", valid_617465 - var valid_617466 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617465 + var valid_617466 = header.getOrDefault("X-Amz-Date") valid_617466 = validateParameter(valid_617466, JString, required = false, default = nil) if valid_617466 != nil: - section.add "X-Amz-Security-Token", valid_617466 - var valid_617467 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617466 + var valid_617467 = header.getOrDefault("X-Amz-Credential") valid_617467 = validateParameter(valid_617467, JString, required = false, default = nil) if valid_617467 != nil: - section.add "X-Amz-Algorithm", valid_617467 - var valid_617468 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617467 + var valid_617468 = header.getOrDefault("X-Amz-Security-Token") valid_617468 = validateParameter(valid_617468, JString, required = false, default = nil) if valid_617468 != nil: - section.add "X-Amz-SignedHeaders", valid_617468 + section.add "X-Amz-Security-Token", valid_617468 + var valid_617469 = header.getOrDefault("X-Amz-Algorithm") + valid_617469 = validateParameter(valid_617469, JString, required = false, + default = nil) + if valid_617469 != nil: + section.add "X-Amz-Algorithm", valid_617469 + var valid_617470 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617470 = validateParameter(valid_617470, JString, required = false, + default = nil) + if valid_617470 != nil: + section.add "X-Amz-SignedHeaders", valid_617470 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -52069,49 +52096,49 @@ proc validate_PostDescribeClientVpnConnections_617458(path: JsonNode; ## Filter: JArray ## :

One or more filters. Filter names and values are case-sensitive.

section = newJObject() - var valid_617469 = formData.getOrDefault("NextToken") - valid_617469 = validateParameter(valid_617469, JString, required = false, + var valid_617471 = formData.getOrDefault("NextToken") + valid_617471 = validateParameter(valid_617471, JString, required = false, default = nil) - if valid_617469 != nil: - section.add "NextToken", valid_617469 - var valid_617470 = formData.getOrDefault("DryRun") - valid_617470 = validateParameter(valid_617470, JBool, required = false, default = nil) - if valid_617470 != nil: - section.add "DryRun", valid_617470 - var valid_617471 = formData.getOrDefault("MaxResults") - valid_617471 = validateParameter(valid_617471, JInt, required = false, default = nil) if valid_617471 != nil: - section.add "MaxResults", valid_617471 + section.add "NextToken", valid_617471 + var valid_617472 = formData.getOrDefault("DryRun") + valid_617472 = validateParameter(valid_617472, JBool, required = false, default = nil) + if valid_617472 != nil: + section.add "DryRun", valid_617472 + var valid_617473 = formData.getOrDefault("MaxResults") + valid_617473 = validateParameter(valid_617473, JInt, required = false, default = nil) + if valid_617473 != nil: + section.add "MaxResults", valid_617473 assert formData != nil, "formData argument is necessary due to required `ClientVpnEndpointId` field" - var valid_617472 = formData.getOrDefault("ClientVpnEndpointId") - valid_617472 = validateParameter(valid_617472, JString, required = true, + var valid_617474 = formData.getOrDefault("ClientVpnEndpointId") + valid_617474 = validateParameter(valid_617474, JString, required = true, default = nil) - if valid_617472 != nil: - section.add "ClientVpnEndpointId", valid_617472 - var valid_617473 = formData.getOrDefault("Filter") - valid_617473 = validateParameter(valid_617473, JArray, required = false, + if valid_617474 != nil: + section.add "ClientVpnEndpointId", valid_617474 + var valid_617475 = formData.getOrDefault("Filter") + valid_617475 = validateParameter(valid_617475, JArray, required = false, default = nil) - if valid_617473 != nil: - section.add "Filter", valid_617473 + if valid_617475 != nil: + section.add "Filter", valid_617475 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617474: Call_PostDescribeClientVpnConnections_617457; +proc call*(call_617476: Call_PostDescribeClientVpnConnections_617459; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes active client connections and connections that have been terminated within the last 60 minutes for the specified Client VPN endpoint. ## - let valid = call_617474.validator(path, query, header, formData, body) - let scheme = call_617474.pickScheme + let valid = call_617476.validator(path, query, header, formData, body) + let scheme = call_617476.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617474.url(scheme.get, call_617474.host, call_617474.base, - call_617474.route, valid.getOrDefault("path"), + let url = call_617476.url(scheme.get, call_617476.host, call_617476.base, + call_617476.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617474, url, valid) + result = atozHook(call_617476, url, valid) -proc call*(call_617475: Call_PostDescribeClientVpnConnections_617457; +proc call*(call_617477: Call_PostDescribeClientVpnConnections_617459; ClientVpnEndpointId: string; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeClientVpnConnections"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -52129,27 +52156,27 @@ proc call*(call_617475: Call_PostDescribeClientVpnConnections_617457; ## : The ID of the Client VPN endpoint. ## Filter: JArray ## :

One or more filters. Filter names and values are case-sensitive.

- var query_617476 = newJObject() - var formData_617477 = newJObject() - add(formData_617477, "NextToken", newJString(NextToken)) - add(formData_617477, "DryRun", newJBool(DryRun)) - add(query_617476, "Action", newJString(Action)) - add(query_617476, "Version", newJString(Version)) - add(formData_617477, "MaxResults", newJInt(MaxResults)) - add(formData_617477, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) + var query_617478 = newJObject() + var formData_617479 = newJObject() + add(formData_617479, "NextToken", newJString(NextToken)) + add(formData_617479, "DryRun", newJBool(DryRun)) + add(query_617478, "Action", newJString(Action)) + add(query_617478, "Version", newJString(Version)) + add(formData_617479, "MaxResults", newJInt(MaxResults)) + add(formData_617479, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) if Filter != nil: - formData_617477.add "Filter", Filter - result = call_617475.call(nil, query_617476, nil, formData_617477, nil) + formData_617479.add "Filter", Filter + result = call_617477.call(nil, query_617478, nil, formData_617479, nil) -var postDescribeClientVpnConnections* = Call_PostDescribeClientVpnConnections_617457( +var postDescribeClientVpnConnections* = Call_PostDescribeClientVpnConnections_617459( name: "postDescribeClientVpnConnections", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeClientVpnConnections", - validator: validate_PostDescribeClientVpnConnections_617458, base: "/", - url: url_PostDescribeClientVpnConnections_617459, + validator: validate_PostDescribeClientVpnConnections_617460, base: "/", + url: url_PostDescribeClientVpnConnections_617461, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeClientVpnConnections_617437 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeClientVpnConnections_617439(protocol: Scheme; host: string; + Call_GetDescribeClientVpnConnections_617439 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeClientVpnConnections_617441(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -52159,7 +52186,7 @@ proc url_GetDescribeClientVpnConnections_617439(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeClientVpnConnections_617438(path: JsonNode; +proc validate_GetDescribeClientVpnConnections_617440(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes active client connections and connections that have been terminated within the last 60 minutes for the specified Client VPN endpoint. ## @@ -52181,40 +52208,40 @@ proc validate_GetDescribeClientVpnConnections_617438(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617440 = query.getOrDefault("MaxResults") - valid_617440 = validateParameter(valid_617440, JInt, required = false, default = nil) - if valid_617440 != nil: - section.add "MaxResults", valid_617440 - var valid_617441 = query.getOrDefault("DryRun") - valid_617441 = validateParameter(valid_617441, JBool, required = false, default = nil) - if valid_617441 != nil: - section.add "DryRun", valid_617441 - var valid_617442 = query.getOrDefault("NextToken") - valid_617442 = validateParameter(valid_617442, JString, required = false, - default = nil) + var valid_617442 = query.getOrDefault("MaxResults") + valid_617442 = validateParameter(valid_617442, JInt, required = false, default = nil) if valid_617442 != nil: - section.add "NextToken", valid_617442 - assert query != nil, "query argument is necessary due to required `ClientVpnEndpointId` field" - var valid_617443 = query.getOrDefault("ClientVpnEndpointId") - valid_617443 = validateParameter(valid_617443, JString, required = true, - default = nil) + section.add "MaxResults", valid_617442 + var valid_617443 = query.getOrDefault("DryRun") + valid_617443 = validateParameter(valid_617443, JBool, required = false, default = nil) if valid_617443 != nil: - section.add "ClientVpnEndpointId", valid_617443 - var valid_617444 = query.getOrDefault("Filter") - valid_617444 = validateParameter(valid_617444, JArray, required = false, + section.add "DryRun", valid_617443 + var valid_617444 = query.getOrDefault("NextToken") + valid_617444 = validateParameter(valid_617444, JString, required = false, default = nil) if valid_617444 != nil: - section.add "Filter", valid_617444 - var valid_617445 = query.getOrDefault("Action") - valid_617445 = validateParameter(valid_617445, JString, required = true, default = newJString( - "DescribeClientVpnConnections")) + section.add "NextToken", valid_617444 + assert query != nil, "query argument is necessary due to required `ClientVpnEndpointId` field" + var valid_617445 = query.getOrDefault("ClientVpnEndpointId") + valid_617445 = validateParameter(valid_617445, JString, required = true, + default = nil) if valid_617445 != nil: - section.add "Action", valid_617445 - var valid_617446 = query.getOrDefault("Version") - valid_617446 = validateParameter(valid_617446, JString, required = true, - default = newJString("2016-11-15")) + section.add "ClientVpnEndpointId", valid_617445 + var valid_617446 = query.getOrDefault("Filter") + valid_617446 = validateParameter(valid_617446, JArray, required = false, + default = nil) if valid_617446 != nil: - section.add "Version", valid_617446 + section.add "Filter", valid_617446 + var valid_617447 = query.getOrDefault("Action") + valid_617447 = validateParameter(valid_617447, JString, required = true, default = newJString( + "DescribeClientVpnConnections")) + if valid_617447 != nil: + section.add "Action", valid_617447 + var valid_617448 = query.getOrDefault("Version") + valid_617448 = validateParameter(valid_617448, JString, required = true, + default = newJString("2016-11-15")) + if valid_617448 != nil: + section.add "Version", valid_617448 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -52225,62 +52252,62 @@ proc validate_GetDescribeClientVpnConnections_617438(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617447 = header.getOrDefault("X-Amz-Signature") - valid_617447 = validateParameter(valid_617447, JString, required = false, - default = nil) - if valid_617447 != nil: - section.add "X-Amz-Signature", valid_617447 - var valid_617448 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617448 = validateParameter(valid_617448, JString, required = false, - default = nil) - if valid_617448 != nil: - section.add "X-Amz-Content-Sha256", valid_617448 - var valid_617449 = header.getOrDefault("X-Amz-Date") + var valid_617449 = header.getOrDefault("X-Amz-Signature") valid_617449 = validateParameter(valid_617449, JString, required = false, default = nil) if valid_617449 != nil: - section.add "X-Amz-Date", valid_617449 - var valid_617450 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617449 + var valid_617450 = header.getOrDefault("X-Amz-Content-Sha256") valid_617450 = validateParameter(valid_617450, JString, required = false, default = nil) if valid_617450 != nil: - section.add "X-Amz-Credential", valid_617450 - var valid_617451 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617450 + var valid_617451 = header.getOrDefault("X-Amz-Date") valid_617451 = validateParameter(valid_617451, JString, required = false, default = nil) if valid_617451 != nil: - section.add "X-Amz-Security-Token", valid_617451 - var valid_617452 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617451 + var valid_617452 = header.getOrDefault("X-Amz-Credential") valid_617452 = validateParameter(valid_617452, JString, required = false, default = nil) if valid_617452 != nil: - section.add "X-Amz-Algorithm", valid_617452 - var valid_617453 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617452 + var valid_617453 = header.getOrDefault("X-Amz-Security-Token") valid_617453 = validateParameter(valid_617453, JString, required = false, default = nil) if valid_617453 != nil: - section.add "X-Amz-SignedHeaders", valid_617453 + section.add "X-Amz-Security-Token", valid_617453 + var valid_617454 = header.getOrDefault("X-Amz-Algorithm") + valid_617454 = validateParameter(valid_617454, JString, required = false, + default = nil) + if valid_617454 != nil: + section.add "X-Amz-Algorithm", valid_617454 + var valid_617455 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617455 = validateParameter(valid_617455, JString, required = false, + default = nil) + if valid_617455 != nil: + section.add "X-Amz-SignedHeaders", valid_617455 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617454: Call_GetDescribeClientVpnConnections_617437; +proc call*(call_617456: Call_GetDescribeClientVpnConnections_617439; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes active client connections and connections that have been terminated within the last 60 minutes for the specified Client VPN endpoint. ## - let valid = call_617454.validator(path, query, header, formData, body) - let scheme = call_617454.pickScheme + let valid = call_617456.validator(path, query, header, formData, body) + let scheme = call_617456.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617454.url(scheme.get, call_617454.host, call_617454.base, - call_617454.route, valid.getOrDefault("path"), + let url = call_617456.url(scheme.get, call_617456.host, call_617456.base, + call_617456.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617454, url, valid) + result = atozHook(call_617456, url, valid) -proc call*(call_617455: Call_GetDescribeClientVpnConnections_617437; +proc call*(call_617457: Call_GetDescribeClientVpnConnections_617439; ClientVpnEndpointId: string; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeClientVpnConnections"; @@ -52299,26 +52326,26 @@ proc call*(call_617455: Call_GetDescribeClientVpnConnections_617437; ## :

One or more filters. Filter names and values are case-sensitive.

## Action: string (required) ## Version: string (required) - var query_617456 = newJObject() - add(query_617456, "MaxResults", newJInt(MaxResults)) - add(query_617456, "DryRun", newJBool(DryRun)) - add(query_617456, "NextToken", newJString(NextToken)) - add(query_617456, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) + var query_617458 = newJObject() + add(query_617458, "MaxResults", newJInt(MaxResults)) + add(query_617458, "DryRun", newJBool(DryRun)) + add(query_617458, "NextToken", newJString(NextToken)) + add(query_617458, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) if Filter != nil: - query_617456.add "Filter", Filter - add(query_617456, "Action", newJString(Action)) - add(query_617456, "Version", newJString(Version)) - result = call_617455.call(nil, query_617456, nil, nil, nil) + query_617458.add "Filter", Filter + add(query_617458, "Action", newJString(Action)) + add(query_617458, "Version", newJString(Version)) + result = call_617457.call(nil, query_617458, nil, nil, nil) -var getDescribeClientVpnConnections* = Call_GetDescribeClientVpnConnections_617437( +var getDescribeClientVpnConnections* = Call_GetDescribeClientVpnConnections_617439( name: "getDescribeClientVpnConnections", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeClientVpnConnections", - validator: validate_GetDescribeClientVpnConnections_617438, base: "/", - url: url_GetDescribeClientVpnConnections_617439, + validator: validate_GetDescribeClientVpnConnections_617440, base: "/", + url: url_GetDescribeClientVpnConnections_617441, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeClientVpnEndpoints_617498 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeClientVpnEndpoints_617500(protocol: Scheme; host: string; + Call_PostDescribeClientVpnEndpoints_617500 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeClientVpnEndpoints_617502(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -52328,7 +52355,7 @@ proc url_PostDescribeClientVpnEndpoints_617500(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeClientVpnEndpoints_617499(path: JsonNode; +proc validate_PostDescribeClientVpnEndpoints_617501(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more Client VPN endpoints in the account. ## @@ -52340,16 +52367,16 @@ proc validate_PostDescribeClientVpnEndpoints_617499(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617501 = query.getOrDefault("Action") - valid_617501 = validateParameter(valid_617501, JString, required = true, default = newJString( + var valid_617503 = query.getOrDefault("Action") + valid_617503 = validateParameter(valid_617503, JString, required = true, default = newJString( "DescribeClientVpnEndpoints")) - if valid_617501 != nil: - section.add "Action", valid_617501 - var valid_617502 = query.getOrDefault("Version") - valid_617502 = validateParameter(valid_617502, JString, required = true, + if valid_617503 != nil: + section.add "Action", valid_617503 + var valid_617504 = query.getOrDefault("Version") + valid_617504 = validateParameter(valid_617504, JString, required = true, default = newJString("2016-11-15")) - if valid_617502 != nil: - section.add "Version", valid_617502 + if valid_617504 != nil: + section.add "Version", valid_617504 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -52360,41 +52387,41 @@ proc validate_PostDescribeClientVpnEndpoints_617499(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617503 = header.getOrDefault("X-Amz-Signature") - valid_617503 = validateParameter(valid_617503, JString, required = false, - default = nil) - if valid_617503 != nil: - section.add "X-Amz-Signature", valid_617503 - var valid_617504 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617504 = validateParameter(valid_617504, JString, required = false, - default = nil) - if valid_617504 != nil: - section.add "X-Amz-Content-Sha256", valid_617504 - var valid_617505 = header.getOrDefault("X-Amz-Date") + var valid_617505 = header.getOrDefault("X-Amz-Signature") valid_617505 = validateParameter(valid_617505, JString, required = false, default = nil) if valid_617505 != nil: - section.add "X-Amz-Date", valid_617505 - var valid_617506 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617505 + var valid_617506 = header.getOrDefault("X-Amz-Content-Sha256") valid_617506 = validateParameter(valid_617506, JString, required = false, default = nil) if valid_617506 != nil: - section.add "X-Amz-Credential", valid_617506 - var valid_617507 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617506 + var valid_617507 = header.getOrDefault("X-Amz-Date") valid_617507 = validateParameter(valid_617507, JString, required = false, default = nil) if valid_617507 != nil: - section.add "X-Amz-Security-Token", valid_617507 - var valid_617508 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617507 + var valid_617508 = header.getOrDefault("X-Amz-Credential") valid_617508 = validateParameter(valid_617508, JString, required = false, default = nil) if valid_617508 != nil: - section.add "X-Amz-Algorithm", valid_617508 - var valid_617509 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617508 + var valid_617509 = header.getOrDefault("X-Amz-Security-Token") valid_617509 = validateParameter(valid_617509, JString, required = false, default = nil) if valid_617509 != nil: - section.add "X-Amz-SignedHeaders", valid_617509 + section.add "X-Amz-Security-Token", valid_617509 + var valid_617510 = header.getOrDefault("X-Amz-Algorithm") + valid_617510 = validateParameter(valid_617510, JString, required = false, + default = nil) + if valid_617510 != nil: + section.add "X-Amz-Algorithm", valid_617510 + var valid_617511 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617511 = validateParameter(valid_617511, JString, required = false, + default = nil) + if valid_617511 != nil: + section.add "X-Amz-SignedHeaders", valid_617511 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -52408,47 +52435,47 @@ proc validate_PostDescribeClientVpnEndpoints_617499(path: JsonNode; ## Filter: JArray ## :

One or more filters. Filter names and values are case-sensitive.

section = newJObject() - var valid_617510 = formData.getOrDefault("NextToken") - valid_617510 = validateParameter(valid_617510, JString, required = false, + var valid_617512 = formData.getOrDefault("NextToken") + valid_617512 = validateParameter(valid_617512, JString, required = false, default = nil) - if valid_617510 != nil: - section.add "NextToken", valid_617510 - var valid_617511 = formData.getOrDefault("DryRun") - valid_617511 = validateParameter(valid_617511, JBool, required = false, default = nil) - if valid_617511 != nil: - section.add "DryRun", valid_617511 - var valid_617512 = formData.getOrDefault("MaxResults") - valid_617512 = validateParameter(valid_617512, JInt, required = false, default = nil) if valid_617512 != nil: - section.add "MaxResults", valid_617512 - var valid_617513 = formData.getOrDefault("ClientVpnEndpointId") - valid_617513 = validateParameter(valid_617513, JArray, required = false, - default = nil) + section.add "NextToken", valid_617512 + var valid_617513 = formData.getOrDefault("DryRun") + valid_617513 = validateParameter(valid_617513, JBool, required = false, default = nil) if valid_617513 != nil: - section.add "ClientVpnEndpointId", valid_617513 - var valid_617514 = formData.getOrDefault("Filter") - valid_617514 = validateParameter(valid_617514, JArray, required = false, - default = nil) + section.add "DryRun", valid_617513 + var valid_617514 = formData.getOrDefault("MaxResults") + valid_617514 = validateParameter(valid_617514, JInt, required = false, default = nil) if valid_617514 != nil: - section.add "Filter", valid_617514 + section.add "MaxResults", valid_617514 + var valid_617515 = formData.getOrDefault("ClientVpnEndpointId") + valid_617515 = validateParameter(valid_617515, JArray, required = false, + default = nil) + if valid_617515 != nil: + section.add "ClientVpnEndpointId", valid_617515 + var valid_617516 = formData.getOrDefault("Filter") + valid_617516 = validateParameter(valid_617516, JArray, required = false, + default = nil) + if valid_617516 != nil: + section.add "Filter", valid_617516 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617515: Call_PostDescribeClientVpnEndpoints_617498; path: JsonNode; +proc call*(call_617517: Call_PostDescribeClientVpnEndpoints_617500; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more Client VPN endpoints in the account. ## - let valid = call_617515.validator(path, query, header, formData, body) - let scheme = call_617515.pickScheme + let valid = call_617517.validator(path, query, header, formData, body) + let scheme = call_617517.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617515.url(scheme.get, call_617515.host, call_617515.base, - call_617515.route, valid.getOrDefault("path"), + let url = call_617517.url(scheme.get, call_617517.host, call_617517.base, + call_617517.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617515, url, valid) + result = atozHook(call_617517, url, valid) -proc call*(call_617516: Call_PostDescribeClientVpnEndpoints_617498; +proc call*(call_617518: Call_PostDescribeClientVpnEndpoints_617500; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeClientVpnEndpoints"; Version: string = "2016-11-15"; MaxResults: int = 0; @@ -52467,28 +52494,28 @@ proc call*(call_617516: Call_PostDescribeClientVpnEndpoints_617498; ## : The ID of the Client VPN endpoint. ## Filter: JArray ## :

One or more filters. Filter names and values are case-sensitive.

- var query_617517 = newJObject() - var formData_617518 = newJObject() - add(formData_617518, "NextToken", newJString(NextToken)) - add(formData_617518, "DryRun", newJBool(DryRun)) - add(query_617517, "Action", newJString(Action)) - add(query_617517, "Version", newJString(Version)) - add(formData_617518, "MaxResults", newJInt(MaxResults)) + var query_617519 = newJObject() + var formData_617520 = newJObject() + add(formData_617520, "NextToken", newJString(NextToken)) + add(formData_617520, "DryRun", newJBool(DryRun)) + add(query_617519, "Action", newJString(Action)) + add(query_617519, "Version", newJString(Version)) + add(formData_617520, "MaxResults", newJInt(MaxResults)) if ClientVpnEndpointId != nil: - formData_617518.add "ClientVpnEndpointId", ClientVpnEndpointId + formData_617520.add "ClientVpnEndpointId", ClientVpnEndpointId if Filter != nil: - formData_617518.add "Filter", Filter - result = call_617516.call(nil, query_617517, nil, formData_617518, nil) + formData_617520.add "Filter", Filter + result = call_617518.call(nil, query_617519, nil, formData_617520, nil) -var postDescribeClientVpnEndpoints* = Call_PostDescribeClientVpnEndpoints_617498( +var postDescribeClientVpnEndpoints* = Call_PostDescribeClientVpnEndpoints_617500( name: "postDescribeClientVpnEndpoints", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeClientVpnEndpoints", - validator: validate_PostDescribeClientVpnEndpoints_617499, base: "/", - url: url_PostDescribeClientVpnEndpoints_617500, + validator: validate_PostDescribeClientVpnEndpoints_617501, base: "/", + url: url_PostDescribeClientVpnEndpoints_617502, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeClientVpnEndpoints_617478 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeClientVpnEndpoints_617480(protocol: Scheme; host: string; + Call_GetDescribeClientVpnEndpoints_617480 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeClientVpnEndpoints_617482(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -52498,7 +52525,7 @@ proc url_GetDescribeClientVpnEndpoints_617480(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeClientVpnEndpoints_617479(path: JsonNode; query: JsonNode; +proc validate_GetDescribeClientVpnEndpoints_617481(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more Client VPN endpoints in the account. ## @@ -52520,39 +52547,39 @@ proc validate_GetDescribeClientVpnEndpoints_617479(path: JsonNode; query: JsonNo ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617481 = query.getOrDefault("MaxResults") - valid_617481 = validateParameter(valid_617481, JInt, required = false, default = nil) - if valid_617481 != nil: - section.add "MaxResults", valid_617481 - var valid_617482 = query.getOrDefault("DryRun") - valid_617482 = validateParameter(valid_617482, JBool, required = false, default = nil) - if valid_617482 != nil: - section.add "DryRun", valid_617482 - var valid_617483 = query.getOrDefault("NextToken") - valid_617483 = validateParameter(valid_617483, JString, required = false, - default = nil) + var valid_617483 = query.getOrDefault("MaxResults") + valid_617483 = validateParameter(valid_617483, JInt, required = false, default = nil) if valid_617483 != nil: - section.add "NextToken", valid_617483 - var valid_617484 = query.getOrDefault("ClientVpnEndpointId") - valid_617484 = validateParameter(valid_617484, JArray, required = false, - default = nil) + section.add "MaxResults", valid_617483 + var valid_617484 = query.getOrDefault("DryRun") + valid_617484 = validateParameter(valid_617484, JBool, required = false, default = nil) if valid_617484 != nil: - section.add "ClientVpnEndpointId", valid_617484 - var valid_617485 = query.getOrDefault("Filter") - valid_617485 = validateParameter(valid_617485, JArray, required = false, + section.add "DryRun", valid_617484 + var valid_617485 = query.getOrDefault("NextToken") + valid_617485 = validateParameter(valid_617485, JString, required = false, default = nil) if valid_617485 != nil: - section.add "Filter", valid_617485 - var valid_617486 = query.getOrDefault("Action") - valid_617486 = validateParameter(valid_617486, JString, required = true, default = newJString( - "DescribeClientVpnEndpoints")) + section.add "NextToken", valid_617485 + var valid_617486 = query.getOrDefault("ClientVpnEndpointId") + valid_617486 = validateParameter(valid_617486, JArray, required = false, + default = nil) if valid_617486 != nil: - section.add "Action", valid_617486 - var valid_617487 = query.getOrDefault("Version") - valid_617487 = validateParameter(valid_617487, JString, required = true, - default = newJString("2016-11-15")) + section.add "ClientVpnEndpointId", valid_617486 + var valid_617487 = query.getOrDefault("Filter") + valid_617487 = validateParameter(valid_617487, JArray, required = false, + default = nil) if valid_617487 != nil: - section.add "Version", valid_617487 + section.add "Filter", valid_617487 + var valid_617488 = query.getOrDefault("Action") + valid_617488 = validateParameter(valid_617488, JString, required = true, default = newJString( + "DescribeClientVpnEndpoints")) + if valid_617488 != nil: + section.add "Action", valid_617488 + var valid_617489 = query.getOrDefault("Version") + valid_617489 = validateParameter(valid_617489, JString, required = true, + default = newJString("2016-11-15")) + if valid_617489 != nil: + section.add "Version", valid_617489 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -52563,61 +52590,61 @@ proc validate_GetDescribeClientVpnEndpoints_617479(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617488 = header.getOrDefault("X-Amz-Signature") - valid_617488 = validateParameter(valid_617488, JString, required = false, - default = nil) - if valid_617488 != nil: - section.add "X-Amz-Signature", valid_617488 - var valid_617489 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617489 = validateParameter(valid_617489, JString, required = false, - default = nil) - if valid_617489 != nil: - section.add "X-Amz-Content-Sha256", valid_617489 - var valid_617490 = header.getOrDefault("X-Amz-Date") + var valid_617490 = header.getOrDefault("X-Amz-Signature") valid_617490 = validateParameter(valid_617490, JString, required = false, default = nil) if valid_617490 != nil: - section.add "X-Amz-Date", valid_617490 - var valid_617491 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617490 + var valid_617491 = header.getOrDefault("X-Amz-Content-Sha256") valid_617491 = validateParameter(valid_617491, JString, required = false, default = nil) if valid_617491 != nil: - section.add "X-Amz-Credential", valid_617491 - var valid_617492 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617491 + var valid_617492 = header.getOrDefault("X-Amz-Date") valid_617492 = validateParameter(valid_617492, JString, required = false, default = nil) if valid_617492 != nil: - section.add "X-Amz-Security-Token", valid_617492 - var valid_617493 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617492 + var valid_617493 = header.getOrDefault("X-Amz-Credential") valid_617493 = validateParameter(valid_617493, JString, required = false, default = nil) if valid_617493 != nil: - section.add "X-Amz-Algorithm", valid_617493 - var valid_617494 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617493 + var valid_617494 = header.getOrDefault("X-Amz-Security-Token") valid_617494 = validateParameter(valid_617494, JString, required = false, default = nil) if valid_617494 != nil: - section.add "X-Amz-SignedHeaders", valid_617494 + section.add "X-Amz-Security-Token", valid_617494 + var valid_617495 = header.getOrDefault("X-Amz-Algorithm") + valid_617495 = validateParameter(valid_617495, JString, required = false, + default = nil) + if valid_617495 != nil: + section.add "X-Amz-Algorithm", valid_617495 + var valid_617496 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617496 = validateParameter(valid_617496, JString, required = false, + default = nil) + if valid_617496 != nil: + section.add "X-Amz-SignedHeaders", valid_617496 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617495: Call_GetDescribeClientVpnEndpoints_617478; path: JsonNode; +proc call*(call_617497: Call_GetDescribeClientVpnEndpoints_617480; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more Client VPN endpoints in the account. ## - let valid = call_617495.validator(path, query, header, formData, body) - let scheme = call_617495.pickScheme + let valid = call_617497.validator(path, query, header, formData, body) + let scheme = call_617497.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617495.url(scheme.get, call_617495.host, call_617495.base, - call_617495.route, valid.getOrDefault("path"), + let url = call_617497.url(scheme.get, call_617497.host, call_617497.base, + call_617497.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617495, url, valid) + result = atozHook(call_617497, url, valid) -proc call*(call_617496: Call_GetDescribeClientVpnEndpoints_617478; +proc call*(call_617498: Call_GetDescribeClientVpnEndpoints_617480; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; ClientVpnEndpointId: JsonNode = nil; Filter: JsonNode = nil; Action: string = "DescribeClientVpnEndpoints"; @@ -52636,27 +52663,27 @@ proc call*(call_617496: Call_GetDescribeClientVpnEndpoints_617478; ## :

One or more filters. Filter names and values are case-sensitive.

## Action: string (required) ## Version: string (required) - var query_617497 = newJObject() - add(query_617497, "MaxResults", newJInt(MaxResults)) - add(query_617497, "DryRun", newJBool(DryRun)) - add(query_617497, "NextToken", newJString(NextToken)) + var query_617499 = newJObject() + add(query_617499, "MaxResults", newJInt(MaxResults)) + add(query_617499, "DryRun", newJBool(DryRun)) + add(query_617499, "NextToken", newJString(NextToken)) if ClientVpnEndpointId != nil: - query_617497.add "ClientVpnEndpointId", ClientVpnEndpointId + query_617499.add "ClientVpnEndpointId", ClientVpnEndpointId if Filter != nil: - query_617497.add "Filter", Filter - add(query_617497, "Action", newJString(Action)) - add(query_617497, "Version", newJString(Version)) - result = call_617496.call(nil, query_617497, nil, nil, nil) + query_617499.add "Filter", Filter + add(query_617499, "Action", newJString(Action)) + add(query_617499, "Version", newJString(Version)) + result = call_617498.call(nil, query_617499, nil, nil, nil) -var getDescribeClientVpnEndpoints* = Call_GetDescribeClientVpnEndpoints_617478( +var getDescribeClientVpnEndpoints* = Call_GetDescribeClientVpnEndpoints_617480( name: "getDescribeClientVpnEndpoints", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeClientVpnEndpoints", - validator: validate_GetDescribeClientVpnEndpoints_617479, base: "/", - url: url_GetDescribeClientVpnEndpoints_617480, + validator: validate_GetDescribeClientVpnEndpoints_617481, base: "/", + url: url_GetDescribeClientVpnEndpoints_617482, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeClientVpnRoutes_617539 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeClientVpnRoutes_617541(protocol: Scheme; host: string; + Call_PostDescribeClientVpnRoutes_617541 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeClientVpnRoutes_617543(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -52666,7 +52693,7 @@ proc url_PostDescribeClientVpnRoutes_617541(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeClientVpnRoutes_617540(path: JsonNode; query: JsonNode; +proc validate_PostDescribeClientVpnRoutes_617542(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the routes for the specified Client VPN endpoint. ## @@ -52678,16 +52705,16 @@ proc validate_PostDescribeClientVpnRoutes_617540(path: JsonNode; query: JsonNode ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617542 = query.getOrDefault("Action") - valid_617542 = validateParameter(valid_617542, JString, required = true, default = newJString( + var valid_617544 = query.getOrDefault("Action") + valid_617544 = validateParameter(valid_617544, JString, required = true, default = newJString( "DescribeClientVpnRoutes")) - if valid_617542 != nil: - section.add "Action", valid_617542 - var valid_617543 = query.getOrDefault("Version") - valid_617543 = validateParameter(valid_617543, JString, required = true, + if valid_617544 != nil: + section.add "Action", valid_617544 + var valid_617545 = query.getOrDefault("Version") + valid_617545 = validateParameter(valid_617545, JString, required = true, default = newJString("2016-11-15")) - if valid_617543 != nil: - section.add "Version", valid_617543 + if valid_617545 != nil: + section.add "Version", valid_617545 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -52698,41 +52725,41 @@ proc validate_PostDescribeClientVpnRoutes_617540(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617544 = header.getOrDefault("X-Amz-Signature") - valid_617544 = validateParameter(valid_617544, JString, required = false, - default = nil) - if valid_617544 != nil: - section.add "X-Amz-Signature", valid_617544 - var valid_617545 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617545 = validateParameter(valid_617545, JString, required = false, - default = nil) - if valid_617545 != nil: - section.add "X-Amz-Content-Sha256", valid_617545 - var valid_617546 = header.getOrDefault("X-Amz-Date") + var valid_617546 = header.getOrDefault("X-Amz-Signature") valid_617546 = validateParameter(valid_617546, JString, required = false, default = nil) if valid_617546 != nil: - section.add "X-Amz-Date", valid_617546 - var valid_617547 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617546 + var valid_617547 = header.getOrDefault("X-Amz-Content-Sha256") valid_617547 = validateParameter(valid_617547, JString, required = false, default = nil) if valid_617547 != nil: - section.add "X-Amz-Credential", valid_617547 - var valid_617548 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617547 + var valid_617548 = header.getOrDefault("X-Amz-Date") valid_617548 = validateParameter(valid_617548, JString, required = false, default = nil) if valid_617548 != nil: - section.add "X-Amz-Security-Token", valid_617548 - var valid_617549 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617548 + var valid_617549 = header.getOrDefault("X-Amz-Credential") valid_617549 = validateParameter(valid_617549, JString, required = false, default = nil) if valid_617549 != nil: - section.add "X-Amz-Algorithm", valid_617549 - var valid_617550 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617549 + var valid_617550 = header.getOrDefault("X-Amz-Security-Token") valid_617550 = validateParameter(valid_617550, JString, required = false, default = nil) if valid_617550 != nil: - section.add "X-Amz-SignedHeaders", valid_617550 + section.add "X-Amz-Security-Token", valid_617550 + var valid_617551 = header.getOrDefault("X-Amz-Algorithm") + valid_617551 = validateParameter(valid_617551, JString, required = false, + default = nil) + if valid_617551 != nil: + section.add "X-Amz-Algorithm", valid_617551 + var valid_617552 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617552 = validateParameter(valid_617552, JString, required = false, + default = nil) + if valid_617552 != nil: + section.add "X-Amz-SignedHeaders", valid_617552 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -52746,48 +52773,48 @@ proc validate_PostDescribeClientVpnRoutes_617540(path: JsonNode; query: JsonNode ## Filter: JArray ## :

One or more filters. Filter names and values are case-sensitive.

section = newJObject() - var valid_617551 = formData.getOrDefault("NextToken") - valid_617551 = validateParameter(valid_617551, JString, required = false, + var valid_617553 = formData.getOrDefault("NextToken") + valid_617553 = validateParameter(valid_617553, JString, required = false, default = nil) - if valid_617551 != nil: - section.add "NextToken", valid_617551 - var valid_617552 = formData.getOrDefault("DryRun") - valid_617552 = validateParameter(valid_617552, JBool, required = false, default = nil) - if valid_617552 != nil: - section.add "DryRun", valid_617552 - var valid_617553 = formData.getOrDefault("MaxResults") - valid_617553 = validateParameter(valid_617553, JInt, required = false, default = nil) if valid_617553 != nil: - section.add "MaxResults", valid_617553 + section.add "NextToken", valid_617553 + var valid_617554 = formData.getOrDefault("DryRun") + valid_617554 = validateParameter(valid_617554, JBool, required = false, default = nil) + if valid_617554 != nil: + section.add "DryRun", valid_617554 + var valid_617555 = formData.getOrDefault("MaxResults") + valid_617555 = validateParameter(valid_617555, JInt, required = false, default = nil) + if valid_617555 != nil: + section.add "MaxResults", valid_617555 assert formData != nil, "formData argument is necessary due to required `ClientVpnEndpointId` field" - var valid_617554 = formData.getOrDefault("ClientVpnEndpointId") - valid_617554 = validateParameter(valid_617554, JString, required = true, + var valid_617556 = formData.getOrDefault("ClientVpnEndpointId") + valid_617556 = validateParameter(valid_617556, JString, required = true, default = nil) - if valid_617554 != nil: - section.add "ClientVpnEndpointId", valid_617554 - var valid_617555 = formData.getOrDefault("Filter") - valid_617555 = validateParameter(valid_617555, JArray, required = false, + if valid_617556 != nil: + section.add "ClientVpnEndpointId", valid_617556 + var valid_617557 = formData.getOrDefault("Filter") + valid_617557 = validateParameter(valid_617557, JArray, required = false, default = nil) - if valid_617555 != nil: - section.add "Filter", valid_617555 + if valid_617557 != nil: + section.add "Filter", valid_617557 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617556: Call_PostDescribeClientVpnRoutes_617539; path: JsonNode; +proc call*(call_617558: Call_PostDescribeClientVpnRoutes_617541; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the routes for the specified Client VPN endpoint. ## - let valid = call_617556.validator(path, query, header, formData, body) - let scheme = call_617556.pickScheme + let valid = call_617558.validator(path, query, header, formData, body) + let scheme = call_617558.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617556.url(scheme.get, call_617556.host, call_617556.base, - call_617556.route, valid.getOrDefault("path"), + let url = call_617558.url(scheme.get, call_617558.host, call_617558.base, + call_617558.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617556, url, valid) + result = atozHook(call_617558, url, valid) -proc call*(call_617557: Call_PostDescribeClientVpnRoutes_617539; +proc call*(call_617559: Call_PostDescribeClientVpnRoutes_617541; ClientVpnEndpointId: string; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeClientVpnRoutes"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -52805,27 +52832,27 @@ proc call*(call_617557: Call_PostDescribeClientVpnRoutes_617539; ## : The ID of the Client VPN endpoint. ## Filter: JArray ## :

One or more filters. Filter names and values are case-sensitive.

- var query_617558 = newJObject() - var formData_617559 = newJObject() - add(formData_617559, "NextToken", newJString(NextToken)) - add(formData_617559, "DryRun", newJBool(DryRun)) - add(query_617558, "Action", newJString(Action)) - add(query_617558, "Version", newJString(Version)) - add(formData_617559, "MaxResults", newJInt(MaxResults)) - add(formData_617559, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) + var query_617560 = newJObject() + var formData_617561 = newJObject() + add(formData_617561, "NextToken", newJString(NextToken)) + add(formData_617561, "DryRun", newJBool(DryRun)) + add(query_617560, "Action", newJString(Action)) + add(query_617560, "Version", newJString(Version)) + add(formData_617561, "MaxResults", newJInt(MaxResults)) + add(formData_617561, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) if Filter != nil: - formData_617559.add "Filter", Filter - result = call_617557.call(nil, query_617558, nil, formData_617559, nil) + formData_617561.add "Filter", Filter + result = call_617559.call(nil, query_617560, nil, formData_617561, nil) -var postDescribeClientVpnRoutes* = Call_PostDescribeClientVpnRoutes_617539( +var postDescribeClientVpnRoutes* = Call_PostDescribeClientVpnRoutes_617541( name: "postDescribeClientVpnRoutes", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeClientVpnRoutes", - validator: validate_PostDescribeClientVpnRoutes_617540, base: "/", - url: url_PostDescribeClientVpnRoutes_617541, + validator: validate_PostDescribeClientVpnRoutes_617542, base: "/", + url: url_PostDescribeClientVpnRoutes_617543, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeClientVpnRoutes_617519 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeClientVpnRoutes_617521(protocol: Scheme; host: string; + Call_GetDescribeClientVpnRoutes_617521 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeClientVpnRoutes_617523(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -52835,7 +52862,7 @@ proc url_GetDescribeClientVpnRoutes_617521(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeClientVpnRoutes_617520(path: JsonNode; query: JsonNode; +proc validate_GetDescribeClientVpnRoutes_617522(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the routes for the specified Client VPN endpoint. ## @@ -52857,40 +52884,40 @@ proc validate_GetDescribeClientVpnRoutes_617520(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617522 = query.getOrDefault("MaxResults") - valid_617522 = validateParameter(valid_617522, JInt, required = false, default = nil) - if valid_617522 != nil: - section.add "MaxResults", valid_617522 - var valid_617523 = query.getOrDefault("DryRun") - valid_617523 = validateParameter(valid_617523, JBool, required = false, default = nil) - if valid_617523 != nil: - section.add "DryRun", valid_617523 - var valid_617524 = query.getOrDefault("NextToken") - valid_617524 = validateParameter(valid_617524, JString, required = false, - default = nil) + var valid_617524 = query.getOrDefault("MaxResults") + valid_617524 = validateParameter(valid_617524, JInt, required = false, default = nil) if valid_617524 != nil: - section.add "NextToken", valid_617524 - assert query != nil, "query argument is necessary due to required `ClientVpnEndpointId` field" - var valid_617525 = query.getOrDefault("ClientVpnEndpointId") - valid_617525 = validateParameter(valid_617525, JString, required = true, - default = nil) + section.add "MaxResults", valid_617524 + var valid_617525 = query.getOrDefault("DryRun") + valid_617525 = validateParameter(valid_617525, JBool, required = false, default = nil) if valid_617525 != nil: - section.add "ClientVpnEndpointId", valid_617525 - var valid_617526 = query.getOrDefault("Filter") - valid_617526 = validateParameter(valid_617526, JArray, required = false, + section.add "DryRun", valid_617525 + var valid_617526 = query.getOrDefault("NextToken") + valid_617526 = validateParameter(valid_617526, JString, required = false, default = nil) if valid_617526 != nil: - section.add "Filter", valid_617526 - var valid_617527 = query.getOrDefault("Action") - valid_617527 = validateParameter(valid_617527, JString, required = true, default = newJString( - "DescribeClientVpnRoutes")) + section.add "NextToken", valid_617526 + assert query != nil, "query argument is necessary due to required `ClientVpnEndpointId` field" + var valid_617527 = query.getOrDefault("ClientVpnEndpointId") + valid_617527 = validateParameter(valid_617527, JString, required = true, + default = nil) if valid_617527 != nil: - section.add "Action", valid_617527 - var valid_617528 = query.getOrDefault("Version") - valid_617528 = validateParameter(valid_617528, JString, required = true, - default = newJString("2016-11-15")) + section.add "ClientVpnEndpointId", valid_617527 + var valid_617528 = query.getOrDefault("Filter") + valid_617528 = validateParameter(valid_617528, JArray, required = false, + default = nil) if valid_617528 != nil: - section.add "Version", valid_617528 + section.add "Filter", valid_617528 + var valid_617529 = query.getOrDefault("Action") + valid_617529 = validateParameter(valid_617529, JString, required = true, default = newJString( + "DescribeClientVpnRoutes")) + if valid_617529 != nil: + section.add "Action", valid_617529 + var valid_617530 = query.getOrDefault("Version") + valid_617530 = validateParameter(valid_617530, JString, required = true, + default = newJString("2016-11-15")) + if valid_617530 != nil: + section.add "Version", valid_617530 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -52901,61 +52928,61 @@ proc validate_GetDescribeClientVpnRoutes_617520(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617529 = header.getOrDefault("X-Amz-Signature") - valid_617529 = validateParameter(valid_617529, JString, required = false, - default = nil) - if valid_617529 != nil: - section.add "X-Amz-Signature", valid_617529 - var valid_617530 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617530 = validateParameter(valid_617530, JString, required = false, - default = nil) - if valid_617530 != nil: - section.add "X-Amz-Content-Sha256", valid_617530 - var valid_617531 = header.getOrDefault("X-Amz-Date") + var valid_617531 = header.getOrDefault("X-Amz-Signature") valid_617531 = validateParameter(valid_617531, JString, required = false, default = nil) if valid_617531 != nil: - section.add "X-Amz-Date", valid_617531 - var valid_617532 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617531 + var valid_617532 = header.getOrDefault("X-Amz-Content-Sha256") valid_617532 = validateParameter(valid_617532, JString, required = false, default = nil) if valid_617532 != nil: - section.add "X-Amz-Credential", valid_617532 - var valid_617533 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617532 + var valid_617533 = header.getOrDefault("X-Amz-Date") valid_617533 = validateParameter(valid_617533, JString, required = false, default = nil) if valid_617533 != nil: - section.add "X-Amz-Security-Token", valid_617533 - var valid_617534 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617533 + var valid_617534 = header.getOrDefault("X-Amz-Credential") valid_617534 = validateParameter(valid_617534, JString, required = false, default = nil) if valid_617534 != nil: - section.add "X-Amz-Algorithm", valid_617534 - var valid_617535 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617534 + var valid_617535 = header.getOrDefault("X-Amz-Security-Token") valid_617535 = validateParameter(valid_617535, JString, required = false, default = nil) if valid_617535 != nil: - section.add "X-Amz-SignedHeaders", valid_617535 + section.add "X-Amz-Security-Token", valid_617535 + var valid_617536 = header.getOrDefault("X-Amz-Algorithm") + valid_617536 = validateParameter(valid_617536, JString, required = false, + default = nil) + if valid_617536 != nil: + section.add "X-Amz-Algorithm", valid_617536 + var valid_617537 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617537 = validateParameter(valid_617537, JString, required = false, + default = nil) + if valid_617537 != nil: + section.add "X-Amz-SignedHeaders", valid_617537 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617536: Call_GetDescribeClientVpnRoutes_617519; path: JsonNode; +proc call*(call_617538: Call_GetDescribeClientVpnRoutes_617521; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the routes for the specified Client VPN endpoint. ## - let valid = call_617536.validator(path, query, header, formData, body) - let scheme = call_617536.pickScheme + let valid = call_617538.validator(path, query, header, formData, body) + let scheme = call_617538.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617536.url(scheme.get, call_617536.host, call_617536.base, - call_617536.route, valid.getOrDefault("path"), + let url = call_617538.url(scheme.get, call_617538.host, call_617538.base, + call_617538.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617536, url, valid) + result = atozHook(call_617538, url, valid) -proc call*(call_617537: Call_GetDescribeClientVpnRoutes_617519; +proc call*(call_617539: Call_GetDescribeClientVpnRoutes_617521; ClientVpnEndpointId: string; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeClientVpnRoutes"; Version: string = "2016-11-15"): Recallable = @@ -52973,26 +53000,26 @@ proc call*(call_617537: Call_GetDescribeClientVpnRoutes_617519; ## :

One or more filters. Filter names and values are case-sensitive.

## Action: string (required) ## Version: string (required) - var query_617538 = newJObject() - add(query_617538, "MaxResults", newJInt(MaxResults)) - add(query_617538, "DryRun", newJBool(DryRun)) - add(query_617538, "NextToken", newJString(NextToken)) - add(query_617538, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) + var query_617540 = newJObject() + add(query_617540, "MaxResults", newJInt(MaxResults)) + add(query_617540, "DryRun", newJBool(DryRun)) + add(query_617540, "NextToken", newJString(NextToken)) + add(query_617540, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) if Filter != nil: - query_617538.add "Filter", Filter - add(query_617538, "Action", newJString(Action)) - add(query_617538, "Version", newJString(Version)) - result = call_617537.call(nil, query_617538, nil, nil, nil) + query_617540.add "Filter", Filter + add(query_617540, "Action", newJString(Action)) + add(query_617540, "Version", newJString(Version)) + result = call_617539.call(nil, query_617540, nil, nil, nil) -var getDescribeClientVpnRoutes* = Call_GetDescribeClientVpnRoutes_617519( +var getDescribeClientVpnRoutes* = Call_GetDescribeClientVpnRoutes_617521( name: "getDescribeClientVpnRoutes", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeClientVpnRoutes", - validator: validate_GetDescribeClientVpnRoutes_617520, base: "/", - url: url_GetDescribeClientVpnRoutes_617521, + validator: validate_GetDescribeClientVpnRoutes_617522, base: "/", + url: url_GetDescribeClientVpnRoutes_617523, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeClientVpnTargetNetworks_617581 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeClientVpnTargetNetworks_617583(protocol: Scheme; host: string; + Call_PostDescribeClientVpnTargetNetworks_617583 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeClientVpnTargetNetworks_617585(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -53002,7 +53029,7 @@ proc url_PostDescribeClientVpnTargetNetworks_617583(protocol: Scheme; host: stri else: result.path = base & route -proc validate_PostDescribeClientVpnTargetNetworks_617582(path: JsonNode; +proc validate_PostDescribeClientVpnTargetNetworks_617584(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the target networks associated with the specified Client VPN endpoint. ## @@ -53014,16 +53041,16 @@ proc validate_PostDescribeClientVpnTargetNetworks_617582(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617584 = query.getOrDefault("Action") - valid_617584 = validateParameter(valid_617584, JString, required = true, default = newJString( + var valid_617586 = query.getOrDefault("Action") + valid_617586 = validateParameter(valid_617586, JString, required = true, default = newJString( "DescribeClientVpnTargetNetworks")) - if valid_617584 != nil: - section.add "Action", valid_617584 - var valid_617585 = query.getOrDefault("Version") - valid_617585 = validateParameter(valid_617585, JString, required = true, + if valid_617586 != nil: + section.add "Action", valid_617586 + var valid_617587 = query.getOrDefault("Version") + valid_617587 = validateParameter(valid_617587, JString, required = true, default = newJString("2016-11-15")) - if valid_617585 != nil: - section.add "Version", valid_617585 + if valid_617587 != nil: + section.add "Version", valid_617587 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -53034,41 +53061,41 @@ proc validate_PostDescribeClientVpnTargetNetworks_617582(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617586 = header.getOrDefault("X-Amz-Signature") - valid_617586 = validateParameter(valid_617586, JString, required = false, - default = nil) - if valid_617586 != nil: - section.add "X-Amz-Signature", valid_617586 - var valid_617587 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617587 = validateParameter(valid_617587, JString, required = false, - default = nil) - if valid_617587 != nil: - section.add "X-Amz-Content-Sha256", valid_617587 - var valid_617588 = header.getOrDefault("X-Amz-Date") + var valid_617588 = header.getOrDefault("X-Amz-Signature") valid_617588 = validateParameter(valid_617588, JString, required = false, default = nil) if valid_617588 != nil: - section.add "X-Amz-Date", valid_617588 - var valid_617589 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617588 + var valid_617589 = header.getOrDefault("X-Amz-Content-Sha256") valid_617589 = validateParameter(valid_617589, JString, required = false, default = nil) if valid_617589 != nil: - section.add "X-Amz-Credential", valid_617589 - var valid_617590 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617589 + var valid_617590 = header.getOrDefault("X-Amz-Date") valid_617590 = validateParameter(valid_617590, JString, required = false, default = nil) if valid_617590 != nil: - section.add "X-Amz-Security-Token", valid_617590 - var valid_617591 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617590 + var valid_617591 = header.getOrDefault("X-Amz-Credential") valid_617591 = validateParameter(valid_617591, JString, required = false, default = nil) if valid_617591 != nil: - section.add "X-Amz-Algorithm", valid_617591 - var valid_617592 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617591 + var valid_617592 = header.getOrDefault("X-Amz-Security-Token") valid_617592 = validateParameter(valid_617592, JString, required = false, default = nil) if valid_617592 != nil: - section.add "X-Amz-SignedHeaders", valid_617592 + section.add "X-Amz-Security-Token", valid_617592 + var valid_617593 = header.getOrDefault("X-Amz-Algorithm") + valid_617593 = validateParameter(valid_617593, JString, required = false, + default = nil) + if valid_617593 != nil: + section.add "X-Amz-Algorithm", valid_617593 + var valid_617594 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617594 = validateParameter(valid_617594, JString, required = false, + default = nil) + if valid_617594 != nil: + section.add "X-Amz-SignedHeaders", valid_617594 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -53084,54 +53111,54 @@ proc validate_PostDescribeClientVpnTargetNetworks_617582(path: JsonNode; ## Filter: JArray ## :

One or more filters. Filter names and values are case-sensitive.

section = newJObject() - var valid_617593 = formData.getOrDefault("NextToken") - valid_617593 = validateParameter(valid_617593, JString, required = false, + var valid_617595 = formData.getOrDefault("NextToken") + valid_617595 = validateParameter(valid_617595, JString, required = false, default = nil) - if valid_617593 != nil: - section.add "NextToken", valid_617593 - var valid_617594 = formData.getOrDefault("AssociationIds") - valid_617594 = validateParameter(valid_617594, JArray, required = false, - default = nil) - if valid_617594 != nil: - section.add "AssociationIds", valid_617594 - var valid_617595 = formData.getOrDefault("DryRun") - valid_617595 = validateParameter(valid_617595, JBool, required = false, default = nil) if valid_617595 != nil: - section.add "DryRun", valid_617595 - var valid_617596 = formData.getOrDefault("MaxResults") - valid_617596 = validateParameter(valid_617596, JInt, required = false, default = nil) + section.add "NextToken", valid_617595 + var valid_617596 = formData.getOrDefault("AssociationIds") + valid_617596 = validateParameter(valid_617596, JArray, required = false, + default = nil) if valid_617596 != nil: - section.add "MaxResults", valid_617596 + section.add "AssociationIds", valid_617596 + var valid_617597 = formData.getOrDefault("DryRun") + valid_617597 = validateParameter(valid_617597, JBool, required = false, default = nil) + if valid_617597 != nil: + section.add "DryRun", valid_617597 + var valid_617598 = formData.getOrDefault("MaxResults") + valid_617598 = validateParameter(valid_617598, JInt, required = false, default = nil) + if valid_617598 != nil: + section.add "MaxResults", valid_617598 assert formData != nil, "formData argument is necessary due to required `ClientVpnEndpointId` field" - var valid_617597 = formData.getOrDefault("ClientVpnEndpointId") - valid_617597 = validateParameter(valid_617597, JString, required = true, + var valid_617599 = formData.getOrDefault("ClientVpnEndpointId") + valid_617599 = validateParameter(valid_617599, JString, required = true, default = nil) - if valid_617597 != nil: - section.add "ClientVpnEndpointId", valid_617597 - var valid_617598 = formData.getOrDefault("Filter") - valid_617598 = validateParameter(valid_617598, JArray, required = false, + if valid_617599 != nil: + section.add "ClientVpnEndpointId", valid_617599 + var valid_617600 = formData.getOrDefault("Filter") + valid_617600 = validateParameter(valid_617600, JArray, required = false, default = nil) - if valid_617598 != nil: - section.add "Filter", valid_617598 + if valid_617600 != nil: + section.add "Filter", valid_617600 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617599: Call_PostDescribeClientVpnTargetNetworks_617581; +proc call*(call_617601: Call_PostDescribeClientVpnTargetNetworks_617583; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the target networks associated with the specified Client VPN endpoint. ## - let valid = call_617599.validator(path, query, header, formData, body) - let scheme = call_617599.pickScheme + let valid = call_617601.validator(path, query, header, formData, body) + let scheme = call_617601.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617599.url(scheme.get, call_617599.host, call_617599.base, - call_617599.route, valid.getOrDefault("path"), + let url = call_617601.url(scheme.get, call_617601.host, call_617601.base, + call_617601.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617599, url, valid) + result = atozHook(call_617601, url, valid) -proc call*(call_617600: Call_PostDescribeClientVpnTargetNetworks_617581; +proc call*(call_617602: Call_PostDescribeClientVpnTargetNetworks_617583; ClientVpnEndpointId: string; NextToken: string = ""; AssociationIds: JsonNode = nil; DryRun: bool = false; Action: string = "DescribeClientVpnTargetNetworks"; @@ -53152,29 +53179,29 @@ proc call*(call_617600: Call_PostDescribeClientVpnTargetNetworks_617581; ## : The ID of the Client VPN endpoint. ## Filter: JArray ## :

One or more filters. Filter names and values are case-sensitive.

- var query_617601 = newJObject() - var formData_617602 = newJObject() - add(formData_617602, "NextToken", newJString(NextToken)) + var query_617603 = newJObject() + var formData_617604 = newJObject() + add(formData_617604, "NextToken", newJString(NextToken)) if AssociationIds != nil: - formData_617602.add "AssociationIds", AssociationIds - add(formData_617602, "DryRun", newJBool(DryRun)) - add(query_617601, "Action", newJString(Action)) - add(query_617601, "Version", newJString(Version)) - add(formData_617602, "MaxResults", newJInt(MaxResults)) - add(formData_617602, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) + formData_617604.add "AssociationIds", AssociationIds + add(formData_617604, "DryRun", newJBool(DryRun)) + add(query_617603, "Action", newJString(Action)) + add(query_617603, "Version", newJString(Version)) + add(formData_617604, "MaxResults", newJInt(MaxResults)) + add(formData_617604, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) if Filter != nil: - formData_617602.add "Filter", Filter - result = call_617600.call(nil, query_617601, nil, formData_617602, nil) + formData_617604.add "Filter", Filter + result = call_617602.call(nil, query_617603, nil, formData_617604, nil) -var postDescribeClientVpnTargetNetworks* = Call_PostDescribeClientVpnTargetNetworks_617581( +var postDescribeClientVpnTargetNetworks* = Call_PostDescribeClientVpnTargetNetworks_617583( name: "postDescribeClientVpnTargetNetworks", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeClientVpnTargetNetworks", - validator: validate_PostDescribeClientVpnTargetNetworks_617582, base: "/", - url: url_PostDescribeClientVpnTargetNetworks_617583, + validator: validate_PostDescribeClientVpnTargetNetworks_617584, base: "/", + url: url_PostDescribeClientVpnTargetNetworks_617585, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeClientVpnTargetNetworks_617560 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeClientVpnTargetNetworks_617562(protocol: Scheme; host: string; + Call_GetDescribeClientVpnTargetNetworks_617562 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeClientVpnTargetNetworks_617564(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -53184,7 +53211,7 @@ proc url_GetDescribeClientVpnTargetNetworks_617562(protocol: Scheme; host: strin else: result.path = base & route -proc validate_GetDescribeClientVpnTargetNetworks_617561(path: JsonNode; +proc validate_GetDescribeClientVpnTargetNetworks_617563(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the target networks associated with the specified Client VPN endpoint. ## @@ -53208,45 +53235,45 @@ proc validate_GetDescribeClientVpnTargetNetworks_617561(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617563 = query.getOrDefault("AssociationIds") - valid_617563 = validateParameter(valid_617563, JArray, required = false, + var valid_617565 = query.getOrDefault("AssociationIds") + valid_617565 = validateParameter(valid_617565, JArray, required = false, default = nil) - if valid_617563 != nil: - section.add "AssociationIds", valid_617563 - var valid_617564 = query.getOrDefault("MaxResults") - valid_617564 = validateParameter(valid_617564, JInt, required = false, default = nil) - if valid_617564 != nil: - section.add "MaxResults", valid_617564 - var valid_617565 = query.getOrDefault("DryRun") - valid_617565 = validateParameter(valid_617565, JBool, required = false, default = nil) if valid_617565 != nil: - section.add "DryRun", valid_617565 - var valid_617566 = query.getOrDefault("NextToken") - valid_617566 = validateParameter(valid_617566, JString, required = false, - default = nil) + section.add "AssociationIds", valid_617565 + var valid_617566 = query.getOrDefault("MaxResults") + valid_617566 = validateParameter(valid_617566, JInt, required = false, default = nil) if valid_617566 != nil: - section.add "NextToken", valid_617566 - assert query != nil, "query argument is necessary due to required `ClientVpnEndpointId` field" - var valid_617567 = query.getOrDefault("ClientVpnEndpointId") - valid_617567 = validateParameter(valid_617567, JString, required = true, - default = nil) + section.add "MaxResults", valid_617566 + var valid_617567 = query.getOrDefault("DryRun") + valid_617567 = validateParameter(valid_617567, JBool, required = false, default = nil) if valid_617567 != nil: - section.add "ClientVpnEndpointId", valid_617567 - var valid_617568 = query.getOrDefault("Filter") - valid_617568 = validateParameter(valid_617568, JArray, required = false, + section.add "DryRun", valid_617567 + var valid_617568 = query.getOrDefault("NextToken") + valid_617568 = validateParameter(valid_617568, JString, required = false, default = nil) if valid_617568 != nil: - section.add "Filter", valid_617568 - var valid_617569 = query.getOrDefault("Action") - valid_617569 = validateParameter(valid_617569, JString, required = true, default = newJString( - "DescribeClientVpnTargetNetworks")) + section.add "NextToken", valid_617568 + assert query != nil, "query argument is necessary due to required `ClientVpnEndpointId` field" + var valid_617569 = query.getOrDefault("ClientVpnEndpointId") + valid_617569 = validateParameter(valid_617569, JString, required = true, + default = nil) if valid_617569 != nil: - section.add "Action", valid_617569 - var valid_617570 = query.getOrDefault("Version") - valid_617570 = validateParameter(valid_617570, JString, required = true, - default = newJString("2016-11-15")) + section.add "ClientVpnEndpointId", valid_617569 + var valid_617570 = query.getOrDefault("Filter") + valid_617570 = validateParameter(valid_617570, JArray, required = false, + default = nil) if valid_617570 != nil: - section.add "Version", valid_617570 + section.add "Filter", valid_617570 + var valid_617571 = query.getOrDefault("Action") + valid_617571 = validateParameter(valid_617571, JString, required = true, default = newJString( + "DescribeClientVpnTargetNetworks")) + if valid_617571 != nil: + section.add "Action", valid_617571 + var valid_617572 = query.getOrDefault("Version") + valid_617572 = validateParameter(valid_617572, JString, required = true, + default = newJString("2016-11-15")) + if valid_617572 != nil: + section.add "Version", valid_617572 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -53257,62 +53284,62 @@ proc validate_GetDescribeClientVpnTargetNetworks_617561(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617571 = header.getOrDefault("X-Amz-Signature") - valid_617571 = validateParameter(valid_617571, JString, required = false, - default = nil) - if valid_617571 != nil: - section.add "X-Amz-Signature", valid_617571 - var valid_617572 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617572 = validateParameter(valid_617572, JString, required = false, - default = nil) - if valid_617572 != nil: - section.add "X-Amz-Content-Sha256", valid_617572 - var valid_617573 = header.getOrDefault("X-Amz-Date") + var valid_617573 = header.getOrDefault("X-Amz-Signature") valid_617573 = validateParameter(valid_617573, JString, required = false, default = nil) if valid_617573 != nil: - section.add "X-Amz-Date", valid_617573 - var valid_617574 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617573 + var valid_617574 = header.getOrDefault("X-Amz-Content-Sha256") valid_617574 = validateParameter(valid_617574, JString, required = false, default = nil) if valid_617574 != nil: - section.add "X-Amz-Credential", valid_617574 - var valid_617575 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617574 + var valid_617575 = header.getOrDefault("X-Amz-Date") valid_617575 = validateParameter(valid_617575, JString, required = false, default = nil) if valid_617575 != nil: - section.add "X-Amz-Security-Token", valid_617575 - var valid_617576 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617575 + var valid_617576 = header.getOrDefault("X-Amz-Credential") valid_617576 = validateParameter(valid_617576, JString, required = false, default = nil) if valid_617576 != nil: - section.add "X-Amz-Algorithm", valid_617576 - var valid_617577 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617576 + var valid_617577 = header.getOrDefault("X-Amz-Security-Token") valid_617577 = validateParameter(valid_617577, JString, required = false, default = nil) if valid_617577 != nil: - section.add "X-Amz-SignedHeaders", valid_617577 + section.add "X-Amz-Security-Token", valid_617577 + var valid_617578 = header.getOrDefault("X-Amz-Algorithm") + valid_617578 = validateParameter(valid_617578, JString, required = false, + default = nil) + if valid_617578 != nil: + section.add "X-Amz-Algorithm", valid_617578 + var valid_617579 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617579 = validateParameter(valid_617579, JString, required = false, + default = nil) + if valid_617579 != nil: + section.add "X-Amz-SignedHeaders", valid_617579 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617578: Call_GetDescribeClientVpnTargetNetworks_617560; +proc call*(call_617580: Call_GetDescribeClientVpnTargetNetworks_617562; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the target networks associated with the specified Client VPN endpoint. ## - let valid = call_617578.validator(path, query, header, formData, body) - let scheme = call_617578.pickScheme + let valid = call_617580.validator(path, query, header, formData, body) + let scheme = call_617580.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617578.url(scheme.get, call_617578.host, call_617578.base, - call_617578.route, valid.getOrDefault("path"), + let url = call_617580.url(scheme.get, call_617580.host, call_617580.base, + call_617580.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617578, url, valid) + result = atozHook(call_617580, url, valid) -proc call*(call_617579: Call_GetDescribeClientVpnTargetNetworks_617560; +proc call*(call_617581: Call_GetDescribeClientVpnTargetNetworks_617562; ClientVpnEndpointId: string; AssociationIds: JsonNode = nil; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; @@ -53334,28 +53361,28 @@ proc call*(call_617579: Call_GetDescribeClientVpnTargetNetworks_617560; ## :

One or more filters. Filter names and values are case-sensitive.

## Action: string (required) ## Version: string (required) - var query_617580 = newJObject() + var query_617582 = newJObject() if AssociationIds != nil: - query_617580.add "AssociationIds", AssociationIds - add(query_617580, "MaxResults", newJInt(MaxResults)) - add(query_617580, "DryRun", newJBool(DryRun)) - add(query_617580, "NextToken", newJString(NextToken)) - add(query_617580, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) + query_617582.add "AssociationIds", AssociationIds + add(query_617582, "MaxResults", newJInt(MaxResults)) + add(query_617582, "DryRun", newJBool(DryRun)) + add(query_617582, "NextToken", newJString(NextToken)) + add(query_617582, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) if Filter != nil: - query_617580.add "Filter", Filter - add(query_617580, "Action", newJString(Action)) - add(query_617580, "Version", newJString(Version)) - result = call_617579.call(nil, query_617580, nil, nil, nil) + query_617582.add "Filter", Filter + add(query_617582, "Action", newJString(Action)) + add(query_617582, "Version", newJString(Version)) + result = call_617581.call(nil, query_617582, nil, nil, nil) -var getDescribeClientVpnTargetNetworks* = Call_GetDescribeClientVpnTargetNetworks_617560( +var getDescribeClientVpnTargetNetworks* = Call_GetDescribeClientVpnTargetNetworks_617562( name: "getDescribeClientVpnTargetNetworks", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeClientVpnTargetNetworks", - validator: validate_GetDescribeClientVpnTargetNetworks_617561, base: "/", - url: url_GetDescribeClientVpnTargetNetworks_617562, + validator: validate_GetDescribeClientVpnTargetNetworks_617563, base: "/", + url: url_GetDescribeClientVpnTargetNetworks_617564, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeCoipPools_617623 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeCoipPools_617625(protocol: Scheme; host: string; base: string; + Call_PostDescribeCoipPools_617625 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeCoipPools_617627(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -53365,7 +53392,7 @@ proc url_PostDescribeCoipPools_617625(protocol: Scheme; host: string; base: stri else: result.path = base & route -proc validate_PostDescribeCoipPools_617624(path: JsonNode; query: JsonNode; +proc validate_PostDescribeCoipPools_617626(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the specified customer-owned address pools or all of your customer-owned address pools. ## @@ -53377,16 +53404,16 @@ proc validate_PostDescribeCoipPools_617624(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617626 = query.getOrDefault("Action") - valid_617626 = validateParameter(valid_617626, JString, required = true, + var valid_617628 = query.getOrDefault("Action") + valid_617628 = validateParameter(valid_617628, JString, required = true, default = newJString("DescribeCoipPools")) - if valid_617626 != nil: - section.add "Action", valid_617626 - var valid_617627 = query.getOrDefault("Version") - valid_617627 = validateParameter(valid_617627, JString, required = true, + if valid_617628 != nil: + section.add "Action", valid_617628 + var valid_617629 = query.getOrDefault("Version") + valid_617629 = validateParameter(valid_617629, JString, required = true, default = newJString("2016-11-15")) - if valid_617627 != nil: - section.add "Version", valid_617627 + if valid_617629 != nil: + section.add "Version", valid_617629 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -53397,41 +53424,41 @@ proc validate_PostDescribeCoipPools_617624(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617628 = header.getOrDefault("X-Amz-Signature") - valid_617628 = validateParameter(valid_617628, JString, required = false, - default = nil) - if valid_617628 != nil: - section.add "X-Amz-Signature", valid_617628 - var valid_617629 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617629 = validateParameter(valid_617629, JString, required = false, - default = nil) - if valid_617629 != nil: - section.add "X-Amz-Content-Sha256", valid_617629 - var valid_617630 = header.getOrDefault("X-Amz-Date") + var valid_617630 = header.getOrDefault("X-Amz-Signature") valid_617630 = validateParameter(valid_617630, JString, required = false, default = nil) if valid_617630 != nil: - section.add "X-Amz-Date", valid_617630 - var valid_617631 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617630 + var valid_617631 = header.getOrDefault("X-Amz-Content-Sha256") valid_617631 = validateParameter(valid_617631, JString, required = false, default = nil) if valid_617631 != nil: - section.add "X-Amz-Credential", valid_617631 - var valid_617632 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617631 + var valid_617632 = header.getOrDefault("X-Amz-Date") valid_617632 = validateParameter(valid_617632, JString, required = false, default = nil) if valid_617632 != nil: - section.add "X-Amz-Security-Token", valid_617632 - var valid_617633 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617632 + var valid_617633 = header.getOrDefault("X-Amz-Credential") valid_617633 = validateParameter(valid_617633, JString, required = false, default = nil) if valid_617633 != nil: - section.add "X-Amz-Algorithm", valid_617633 - var valid_617634 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617633 + var valid_617634 = header.getOrDefault("X-Amz-Security-Token") valid_617634 = validateParameter(valid_617634, JString, required = false, default = nil) if valid_617634 != nil: - section.add "X-Amz-SignedHeaders", valid_617634 + section.add "X-Amz-Security-Token", valid_617634 + var valid_617635 = header.getOrDefault("X-Amz-Algorithm") + valid_617635 = validateParameter(valid_617635, JString, required = false, + default = nil) + if valid_617635 != nil: + section.add "X-Amz-Algorithm", valid_617635 + var valid_617636 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617636 = validateParameter(valid_617636, JString, required = false, + default = nil) + if valid_617636 != nil: + section.add "X-Amz-SignedHeaders", valid_617636 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -53445,47 +53472,47 @@ proc validate_PostDescribeCoipPools_617624(path: JsonNode; query: JsonNode; ## Filter: JArray ## :

The filters. The following are the possible values:

section = newJObject() - var valid_617635 = formData.getOrDefault("NextToken") - valid_617635 = validateParameter(valid_617635, JString, required = false, + var valid_617637 = formData.getOrDefault("NextToken") + valid_617637 = validateParameter(valid_617637, JString, required = false, default = nil) - if valid_617635 != nil: - section.add "NextToken", valid_617635 - var valid_617636 = formData.getOrDefault("DryRun") - valid_617636 = validateParameter(valid_617636, JBool, required = false, default = nil) - if valid_617636 != nil: - section.add "DryRun", valid_617636 - var valid_617637 = formData.getOrDefault("MaxResults") - valid_617637 = validateParameter(valid_617637, JInt, required = false, default = nil) if valid_617637 != nil: - section.add "MaxResults", valid_617637 - var valid_617638 = formData.getOrDefault("PoolId") - valid_617638 = validateParameter(valid_617638, JArray, required = false, - default = nil) + section.add "NextToken", valid_617637 + var valid_617638 = formData.getOrDefault("DryRun") + valid_617638 = validateParameter(valid_617638, JBool, required = false, default = nil) if valid_617638 != nil: - section.add "PoolId", valid_617638 - var valid_617639 = formData.getOrDefault("Filter") - valid_617639 = validateParameter(valid_617639, JArray, required = false, - default = nil) + section.add "DryRun", valid_617638 + var valid_617639 = formData.getOrDefault("MaxResults") + valid_617639 = validateParameter(valid_617639, JInt, required = false, default = nil) if valid_617639 != nil: - section.add "Filter", valid_617639 + section.add "MaxResults", valid_617639 + var valid_617640 = formData.getOrDefault("PoolId") + valid_617640 = validateParameter(valid_617640, JArray, required = false, + default = nil) + if valid_617640 != nil: + section.add "PoolId", valid_617640 + var valid_617641 = formData.getOrDefault("Filter") + valid_617641 = validateParameter(valid_617641, JArray, required = false, + default = nil) + if valid_617641 != nil: + section.add "Filter", valid_617641 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617640: Call_PostDescribeCoipPools_617623; path: JsonNode; +proc call*(call_617642: Call_PostDescribeCoipPools_617625; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the specified customer-owned address pools or all of your customer-owned address pools. ## - let valid = call_617640.validator(path, query, header, formData, body) - let scheme = call_617640.pickScheme + let valid = call_617642.validator(path, query, header, formData, body) + let scheme = call_617642.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617640.url(scheme.get, call_617640.host, call_617640.base, - call_617640.route, valid.getOrDefault("path"), + let url = call_617642.url(scheme.get, call_617642.host, call_617642.base, + call_617642.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617640, url, valid) + result = atozHook(call_617642, url, valid) -proc call*(call_617641: Call_PostDescribeCoipPools_617623; NextToken: string = ""; +proc call*(call_617643: Call_PostDescribeCoipPools_617625; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeCoipPools"; Version: string = "2016-11-15"; MaxResults: int = 0; PoolId: JsonNode = nil; Filter: JsonNode = nil): Recallable = @@ -53503,27 +53530,27 @@ proc call*(call_617641: Call_PostDescribeCoipPools_617623; NextToken: string = " ## : The IDs of the address pools. ## Filter: JArray ## :

The filters. The following are the possible values:

- var query_617642 = newJObject() - var formData_617643 = newJObject() - add(formData_617643, "NextToken", newJString(NextToken)) - add(formData_617643, "DryRun", newJBool(DryRun)) - add(query_617642, "Action", newJString(Action)) - add(query_617642, "Version", newJString(Version)) - add(formData_617643, "MaxResults", newJInt(MaxResults)) + var query_617644 = newJObject() + var formData_617645 = newJObject() + add(formData_617645, "NextToken", newJString(NextToken)) + add(formData_617645, "DryRun", newJBool(DryRun)) + add(query_617644, "Action", newJString(Action)) + add(query_617644, "Version", newJString(Version)) + add(formData_617645, "MaxResults", newJInt(MaxResults)) if PoolId != nil: - formData_617643.add "PoolId", PoolId + formData_617645.add "PoolId", PoolId if Filter != nil: - formData_617643.add "Filter", Filter - result = call_617641.call(nil, query_617642, nil, formData_617643, nil) + formData_617645.add "Filter", Filter + result = call_617643.call(nil, query_617644, nil, formData_617645, nil) -var postDescribeCoipPools* = Call_PostDescribeCoipPools_617623( +var postDescribeCoipPools* = Call_PostDescribeCoipPools_617625( name: "postDescribeCoipPools", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeCoipPools", - validator: validate_PostDescribeCoipPools_617624, base: "/", - url: url_PostDescribeCoipPools_617625, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDescribeCoipPools_617626, base: "/", + url: url_PostDescribeCoipPools_617627, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeCoipPools_617603 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeCoipPools_617605(protocol: Scheme; host: string; base: string; + Call_GetDescribeCoipPools_617605 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeCoipPools_617607(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -53533,7 +53560,7 @@ proc url_GetDescribeCoipPools_617605(protocol: Scheme; host: string; base: strin else: result.path = base & route -proc validate_GetDescribeCoipPools_617604(path: JsonNode; query: JsonNode; +proc validate_GetDescribeCoipPools_617606(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the specified customer-owned address pools or all of your customer-owned address pools. ## @@ -53555,39 +53582,39 @@ proc validate_GetDescribeCoipPools_617604(path: JsonNode; query: JsonNode; ## : The IDs of the address pools. ## Version: JString (required) section = newJObject() - var valid_617606 = query.getOrDefault("MaxResults") - valid_617606 = validateParameter(valid_617606, JInt, required = false, default = nil) - if valid_617606 != nil: - section.add "MaxResults", valid_617606 - var valid_617607 = query.getOrDefault("DryRun") - valid_617607 = validateParameter(valid_617607, JBool, required = false, default = nil) - if valid_617607 != nil: - section.add "DryRun", valid_617607 - var valid_617608 = query.getOrDefault("NextToken") - valid_617608 = validateParameter(valid_617608, JString, required = false, - default = nil) + var valid_617608 = query.getOrDefault("MaxResults") + valid_617608 = validateParameter(valid_617608, JInt, required = false, default = nil) if valid_617608 != nil: - section.add "NextToken", valid_617608 - var valid_617609 = query.getOrDefault("Filter") - valid_617609 = validateParameter(valid_617609, JArray, required = false, - default = nil) + section.add "MaxResults", valid_617608 + var valid_617609 = query.getOrDefault("DryRun") + valid_617609 = validateParameter(valid_617609, JBool, required = false, default = nil) if valid_617609 != nil: - section.add "Filter", valid_617609 - var valid_617610 = query.getOrDefault("Action") - valid_617610 = validateParameter(valid_617610, JString, required = true, - default = newJString("DescribeCoipPools")) + section.add "DryRun", valid_617609 + var valid_617610 = query.getOrDefault("NextToken") + valid_617610 = validateParameter(valid_617610, JString, required = false, + default = nil) if valid_617610 != nil: - section.add "Action", valid_617610 - var valid_617611 = query.getOrDefault("PoolId") + section.add "NextToken", valid_617610 + var valid_617611 = query.getOrDefault("Filter") valid_617611 = validateParameter(valid_617611, JArray, required = false, default = nil) if valid_617611 != nil: - section.add "PoolId", valid_617611 - var valid_617612 = query.getOrDefault("Version") + section.add "Filter", valid_617611 + var valid_617612 = query.getOrDefault("Action") valid_617612 = validateParameter(valid_617612, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("DescribeCoipPools")) if valid_617612 != nil: - section.add "Version", valid_617612 + section.add "Action", valid_617612 + var valid_617613 = query.getOrDefault("PoolId") + valid_617613 = validateParameter(valid_617613, JArray, required = false, + default = nil) + if valid_617613 != nil: + section.add "PoolId", valid_617613 + var valid_617614 = query.getOrDefault("Version") + valid_617614 = validateParameter(valid_617614, JString, required = true, + default = newJString("2016-11-15")) + if valid_617614 != nil: + section.add "Version", valid_617614 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -53598,61 +53625,61 @@ proc validate_GetDescribeCoipPools_617604(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617613 = header.getOrDefault("X-Amz-Signature") - valid_617613 = validateParameter(valid_617613, JString, required = false, - default = nil) - if valid_617613 != nil: - section.add "X-Amz-Signature", valid_617613 - var valid_617614 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617614 = validateParameter(valid_617614, JString, required = false, - default = nil) - if valid_617614 != nil: - section.add "X-Amz-Content-Sha256", valid_617614 - var valid_617615 = header.getOrDefault("X-Amz-Date") + var valid_617615 = header.getOrDefault("X-Amz-Signature") valid_617615 = validateParameter(valid_617615, JString, required = false, default = nil) if valid_617615 != nil: - section.add "X-Amz-Date", valid_617615 - var valid_617616 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617615 + var valid_617616 = header.getOrDefault("X-Amz-Content-Sha256") valid_617616 = validateParameter(valid_617616, JString, required = false, default = nil) if valid_617616 != nil: - section.add "X-Amz-Credential", valid_617616 - var valid_617617 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617616 + var valid_617617 = header.getOrDefault("X-Amz-Date") valid_617617 = validateParameter(valid_617617, JString, required = false, default = nil) if valid_617617 != nil: - section.add "X-Amz-Security-Token", valid_617617 - var valid_617618 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617617 + var valid_617618 = header.getOrDefault("X-Amz-Credential") valid_617618 = validateParameter(valid_617618, JString, required = false, default = nil) if valid_617618 != nil: - section.add "X-Amz-Algorithm", valid_617618 - var valid_617619 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617618 + var valid_617619 = header.getOrDefault("X-Amz-Security-Token") valid_617619 = validateParameter(valid_617619, JString, required = false, default = nil) if valid_617619 != nil: - section.add "X-Amz-SignedHeaders", valid_617619 + section.add "X-Amz-Security-Token", valid_617619 + var valid_617620 = header.getOrDefault("X-Amz-Algorithm") + valid_617620 = validateParameter(valid_617620, JString, required = false, + default = nil) + if valid_617620 != nil: + section.add "X-Amz-Algorithm", valid_617620 + var valid_617621 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617621 = validateParameter(valid_617621, JString, required = false, + default = nil) + if valid_617621 != nil: + section.add "X-Amz-SignedHeaders", valid_617621 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617620: Call_GetDescribeCoipPools_617603; path: JsonNode; +proc call*(call_617622: Call_GetDescribeCoipPools_617605; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the specified customer-owned address pools or all of your customer-owned address pools. ## - let valid = call_617620.validator(path, query, header, formData, body) - let scheme = call_617620.pickScheme + let valid = call_617622.validator(path, query, header, formData, body) + let scheme = call_617622.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617620.url(scheme.get, call_617620.host, call_617620.base, - call_617620.route, valid.getOrDefault("path"), + let url = call_617622.url(scheme.get, call_617622.host, call_617622.base, + call_617622.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617620, url, valid) + result = atozHook(call_617622, url, valid) -proc call*(call_617621: Call_GetDescribeCoipPools_617603; MaxResults: int = 0; +proc call*(call_617623: Call_GetDescribeCoipPools_617605; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeCoipPools"; PoolId: JsonNode = nil; Version: string = "2016-11-15"): Recallable = @@ -53670,26 +53697,26 @@ proc call*(call_617621: Call_GetDescribeCoipPools_617603; MaxResults: int = 0; ## PoolId: JArray ## : The IDs of the address pools. ## Version: string (required) - var query_617622 = newJObject() - add(query_617622, "MaxResults", newJInt(MaxResults)) - add(query_617622, "DryRun", newJBool(DryRun)) - add(query_617622, "NextToken", newJString(NextToken)) + var query_617624 = newJObject() + add(query_617624, "MaxResults", newJInt(MaxResults)) + add(query_617624, "DryRun", newJBool(DryRun)) + add(query_617624, "NextToken", newJString(NextToken)) if Filter != nil: - query_617622.add "Filter", Filter - add(query_617622, "Action", newJString(Action)) + query_617624.add "Filter", Filter + add(query_617624, "Action", newJString(Action)) if PoolId != nil: - query_617622.add "PoolId", PoolId - add(query_617622, "Version", newJString(Version)) - result = call_617621.call(nil, query_617622, nil, nil, nil) + query_617624.add "PoolId", PoolId + add(query_617624, "Version", newJString(Version)) + result = call_617623.call(nil, query_617624, nil, nil, nil) -var getDescribeCoipPools* = Call_GetDescribeCoipPools_617603( +var getDescribeCoipPools* = Call_GetDescribeCoipPools_617605( name: "getDescribeCoipPools", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeCoipPools", - validator: validate_GetDescribeCoipPools_617604, base: "/", - url: url_GetDescribeCoipPools_617605, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDescribeCoipPools_617606, base: "/", + url: url_GetDescribeCoipPools_617607, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeConversionTasks_617661 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeConversionTasks_617663(protocol: Scheme; host: string; + Call_PostDescribeConversionTasks_617663 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeConversionTasks_617665(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -53699,7 +53726,7 @@ proc url_PostDescribeConversionTasks_617663(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeConversionTasks_617662(path: JsonNode; query: JsonNode; +proc validate_PostDescribeConversionTasks_617664(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the specified conversion tasks or all your conversion tasks. For more information, see the VM Import/Export User Guide.

For information about the import manifest referenced by this API action, see VM Import Manifest.

## @@ -53711,16 +53738,16 @@ proc validate_PostDescribeConversionTasks_617662(path: JsonNode; query: JsonNode ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617664 = query.getOrDefault("Action") - valid_617664 = validateParameter(valid_617664, JString, required = true, default = newJString( + var valid_617666 = query.getOrDefault("Action") + valid_617666 = validateParameter(valid_617666, JString, required = true, default = newJString( "DescribeConversionTasks")) - if valid_617664 != nil: - section.add "Action", valid_617664 - var valid_617665 = query.getOrDefault("Version") - valid_617665 = validateParameter(valid_617665, JString, required = true, + if valid_617666 != nil: + section.add "Action", valid_617666 + var valid_617667 = query.getOrDefault("Version") + valid_617667 = validateParameter(valid_617667, JString, required = true, default = newJString("2016-11-15")) - if valid_617665 != nil: - section.add "Version", valid_617665 + if valid_617667 != nil: + section.add "Version", valid_617667 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -53731,41 +53758,41 @@ proc validate_PostDescribeConversionTasks_617662(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617666 = header.getOrDefault("X-Amz-Signature") - valid_617666 = validateParameter(valid_617666, JString, required = false, - default = nil) - if valid_617666 != nil: - section.add "X-Amz-Signature", valid_617666 - var valid_617667 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617667 = validateParameter(valid_617667, JString, required = false, - default = nil) - if valid_617667 != nil: - section.add "X-Amz-Content-Sha256", valid_617667 - var valid_617668 = header.getOrDefault("X-Amz-Date") + var valid_617668 = header.getOrDefault("X-Amz-Signature") valid_617668 = validateParameter(valid_617668, JString, required = false, default = nil) if valid_617668 != nil: - section.add "X-Amz-Date", valid_617668 - var valid_617669 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617668 + var valid_617669 = header.getOrDefault("X-Amz-Content-Sha256") valid_617669 = validateParameter(valid_617669, JString, required = false, default = nil) if valid_617669 != nil: - section.add "X-Amz-Credential", valid_617669 - var valid_617670 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617669 + var valid_617670 = header.getOrDefault("X-Amz-Date") valid_617670 = validateParameter(valid_617670, JString, required = false, default = nil) if valid_617670 != nil: - section.add "X-Amz-Security-Token", valid_617670 - var valid_617671 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617670 + var valid_617671 = header.getOrDefault("X-Amz-Credential") valid_617671 = validateParameter(valid_617671, JString, required = false, default = nil) if valid_617671 != nil: - section.add "X-Amz-Algorithm", valid_617671 - var valid_617672 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617671 + var valid_617672 = header.getOrDefault("X-Amz-Security-Token") valid_617672 = validateParameter(valid_617672, JString, required = false, default = nil) if valid_617672 != nil: - section.add "X-Amz-SignedHeaders", valid_617672 + section.add "X-Amz-Security-Token", valid_617672 + var valid_617673 = header.getOrDefault("X-Amz-Algorithm") + valid_617673 = validateParameter(valid_617673, JString, required = false, + default = nil) + if valid_617673 != nil: + section.add "X-Amz-Algorithm", valid_617673 + var valid_617674 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617674 = validateParameter(valid_617674, JString, required = false, + default = nil) + if valid_617674 != nil: + section.add "X-Amz-SignedHeaders", valid_617674 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -53773,33 +53800,33 @@ proc validate_PostDescribeConversionTasks_617662(path: JsonNode; query: JsonNode ## ConversionTaskId: JArray ## : The conversion task IDs. section = newJObject() - var valid_617673 = formData.getOrDefault("DryRun") - valid_617673 = validateParameter(valid_617673, JBool, required = false, default = nil) - if valid_617673 != nil: - section.add "DryRun", valid_617673 - var valid_617674 = formData.getOrDefault("ConversionTaskId") - valid_617674 = validateParameter(valid_617674, JArray, required = false, + var valid_617675 = formData.getOrDefault("DryRun") + valid_617675 = validateParameter(valid_617675, JBool, required = false, default = nil) + if valid_617675 != nil: + section.add "DryRun", valid_617675 + var valid_617676 = formData.getOrDefault("ConversionTaskId") + valid_617676 = validateParameter(valid_617676, JArray, required = false, default = nil) - if valid_617674 != nil: - section.add "ConversionTaskId", valid_617674 + if valid_617676 != nil: + section.add "ConversionTaskId", valid_617676 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617675: Call_PostDescribeConversionTasks_617661; path: JsonNode; +proc call*(call_617677: Call_PostDescribeConversionTasks_617663; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the specified conversion tasks or all your conversion tasks. For more information, see the VM Import/Export User Guide.

For information about the import manifest referenced by this API action, see VM Import Manifest.

## - let valid = call_617675.validator(path, query, header, formData, body) - let scheme = call_617675.pickScheme + let valid = call_617677.validator(path, query, header, formData, body) + let scheme = call_617677.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617675.url(scheme.get, call_617675.host, call_617675.base, - call_617675.route, valid.getOrDefault("path"), + let url = call_617677.url(scheme.get, call_617677.host, call_617677.base, + call_617677.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617675, url, valid) + result = atozHook(call_617677, url, valid) -proc call*(call_617676: Call_PostDescribeConversionTasks_617661; +proc call*(call_617678: Call_PostDescribeConversionTasks_617663; DryRun: bool = false; Action: string = "DescribeConversionTasks"; Version: string = "2016-11-15"; ConversionTaskId: JsonNode = nil): Recallable = ## postDescribeConversionTasks @@ -53810,24 +53837,24 @@ proc call*(call_617676: Call_PostDescribeConversionTasks_617661; ## Version: string (required) ## ConversionTaskId: JArray ## : The conversion task IDs. - var query_617677 = newJObject() - var formData_617678 = newJObject() - add(formData_617678, "DryRun", newJBool(DryRun)) - add(query_617677, "Action", newJString(Action)) - add(query_617677, "Version", newJString(Version)) + var query_617679 = newJObject() + var formData_617680 = newJObject() + add(formData_617680, "DryRun", newJBool(DryRun)) + add(query_617679, "Action", newJString(Action)) + add(query_617679, "Version", newJString(Version)) if ConversionTaskId != nil: - formData_617678.add "ConversionTaskId", ConversionTaskId - result = call_617676.call(nil, query_617677, nil, formData_617678, nil) + formData_617680.add "ConversionTaskId", ConversionTaskId + result = call_617678.call(nil, query_617679, nil, formData_617680, nil) -var postDescribeConversionTasks* = Call_PostDescribeConversionTasks_617661( +var postDescribeConversionTasks* = Call_PostDescribeConversionTasks_617663( name: "postDescribeConversionTasks", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeConversionTasks", - validator: validate_PostDescribeConversionTasks_617662, base: "/", - url: url_PostDescribeConversionTasks_617663, + validator: validate_PostDescribeConversionTasks_617664, base: "/", + url: url_PostDescribeConversionTasks_617665, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeConversionTasks_617644 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeConversionTasks_617646(protocol: Scheme; host: string; + Call_GetDescribeConversionTasks_617646 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeConversionTasks_617648(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -53837,7 +53864,7 @@ proc url_GetDescribeConversionTasks_617646(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeConversionTasks_617645(path: JsonNode; query: JsonNode; +proc validate_GetDescribeConversionTasks_617647(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the specified conversion tasks or all your conversion tasks. For more information, see the VM Import/Export User Guide.

For information about the import manifest referenced by this API action, see VM Import Manifest.

## @@ -53853,25 +53880,25 @@ proc validate_GetDescribeConversionTasks_617645(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617647 = query.getOrDefault("ConversionTaskId") - valid_617647 = validateParameter(valid_617647, JArray, required = false, + var valid_617649 = query.getOrDefault("ConversionTaskId") + valid_617649 = validateParameter(valid_617649, JArray, required = false, default = nil) - if valid_617647 != nil: - section.add "ConversionTaskId", valid_617647 - var valid_617648 = query.getOrDefault("DryRun") - valid_617648 = validateParameter(valid_617648, JBool, required = false, default = nil) - if valid_617648 != nil: - section.add "DryRun", valid_617648 - var valid_617649 = query.getOrDefault("Action") - valid_617649 = validateParameter(valid_617649, JString, required = true, default = newJString( - "DescribeConversionTasks")) if valid_617649 != nil: - section.add "Action", valid_617649 - var valid_617650 = query.getOrDefault("Version") - valid_617650 = validateParameter(valid_617650, JString, required = true, - default = newJString("2016-11-15")) + section.add "ConversionTaskId", valid_617649 + var valid_617650 = query.getOrDefault("DryRun") + valid_617650 = validateParameter(valid_617650, JBool, required = false, default = nil) if valid_617650 != nil: - section.add "Version", valid_617650 + section.add "DryRun", valid_617650 + var valid_617651 = query.getOrDefault("Action") + valid_617651 = validateParameter(valid_617651, JString, required = true, default = newJString( + "DescribeConversionTasks")) + if valid_617651 != nil: + section.add "Action", valid_617651 + var valid_617652 = query.getOrDefault("Version") + valid_617652 = validateParameter(valid_617652, JString, required = true, + default = newJString("2016-11-15")) + if valid_617652 != nil: + section.add "Version", valid_617652 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -53882,61 +53909,61 @@ proc validate_GetDescribeConversionTasks_617645(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617651 = header.getOrDefault("X-Amz-Signature") - valid_617651 = validateParameter(valid_617651, JString, required = false, - default = nil) - if valid_617651 != nil: - section.add "X-Amz-Signature", valid_617651 - var valid_617652 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617652 = validateParameter(valid_617652, JString, required = false, - default = nil) - if valid_617652 != nil: - section.add "X-Amz-Content-Sha256", valid_617652 - var valid_617653 = header.getOrDefault("X-Amz-Date") + var valid_617653 = header.getOrDefault("X-Amz-Signature") valid_617653 = validateParameter(valid_617653, JString, required = false, default = nil) if valid_617653 != nil: - section.add "X-Amz-Date", valid_617653 - var valid_617654 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617653 + var valid_617654 = header.getOrDefault("X-Amz-Content-Sha256") valid_617654 = validateParameter(valid_617654, JString, required = false, default = nil) if valid_617654 != nil: - section.add "X-Amz-Credential", valid_617654 - var valid_617655 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617654 + var valid_617655 = header.getOrDefault("X-Amz-Date") valid_617655 = validateParameter(valid_617655, JString, required = false, default = nil) if valid_617655 != nil: - section.add "X-Amz-Security-Token", valid_617655 - var valid_617656 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617655 + var valid_617656 = header.getOrDefault("X-Amz-Credential") valid_617656 = validateParameter(valid_617656, JString, required = false, default = nil) if valid_617656 != nil: - section.add "X-Amz-Algorithm", valid_617656 - var valid_617657 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617656 + var valid_617657 = header.getOrDefault("X-Amz-Security-Token") valid_617657 = validateParameter(valid_617657, JString, required = false, default = nil) if valid_617657 != nil: - section.add "X-Amz-SignedHeaders", valid_617657 + section.add "X-Amz-Security-Token", valid_617657 + var valid_617658 = header.getOrDefault("X-Amz-Algorithm") + valid_617658 = validateParameter(valid_617658, JString, required = false, + default = nil) + if valid_617658 != nil: + section.add "X-Amz-Algorithm", valid_617658 + var valid_617659 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617659 = validateParameter(valid_617659, JString, required = false, + default = nil) + if valid_617659 != nil: + section.add "X-Amz-SignedHeaders", valid_617659 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617658: Call_GetDescribeConversionTasks_617644; path: JsonNode; +proc call*(call_617660: Call_GetDescribeConversionTasks_617646; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the specified conversion tasks or all your conversion tasks. For more information, see the VM Import/Export User Guide.

For information about the import manifest referenced by this API action, see VM Import Manifest.

## - let valid = call_617658.validator(path, query, header, formData, body) - let scheme = call_617658.pickScheme + let valid = call_617660.validator(path, query, header, formData, body) + let scheme = call_617660.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617658.url(scheme.get, call_617658.host, call_617658.base, - call_617658.route, valid.getOrDefault("path"), + let url = call_617660.url(scheme.get, call_617660.host, call_617660.base, + call_617660.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617658, url, valid) + result = atozHook(call_617660, url, valid) -proc call*(call_617659: Call_GetDescribeConversionTasks_617644; +proc call*(call_617661: Call_GetDescribeConversionTasks_617646; ConversionTaskId: JsonNode = nil; DryRun: bool = false; Action: string = "DescribeConversionTasks"; Version: string = "2016-11-15"): Recallable = ## getDescribeConversionTasks @@ -53947,23 +53974,23 @@ proc call*(call_617659: Call_GetDescribeConversionTasks_617644; ## : 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. ## Action: string (required) ## Version: string (required) - var query_617660 = newJObject() + var query_617662 = newJObject() if ConversionTaskId != nil: - query_617660.add "ConversionTaskId", ConversionTaskId - add(query_617660, "DryRun", newJBool(DryRun)) - add(query_617660, "Action", newJString(Action)) - add(query_617660, "Version", newJString(Version)) - result = call_617659.call(nil, query_617660, nil, nil, nil) + query_617662.add "ConversionTaskId", ConversionTaskId + add(query_617662, "DryRun", newJBool(DryRun)) + add(query_617662, "Action", newJString(Action)) + add(query_617662, "Version", newJString(Version)) + result = call_617661.call(nil, query_617662, nil, nil, nil) -var getDescribeConversionTasks* = Call_GetDescribeConversionTasks_617644( +var getDescribeConversionTasks* = Call_GetDescribeConversionTasks_617646( name: "getDescribeConversionTasks", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeConversionTasks", - validator: validate_GetDescribeConversionTasks_617645, base: "/", - url: url_GetDescribeConversionTasks_617646, + validator: validate_GetDescribeConversionTasks_617647, base: "/", + url: url_GetDescribeConversionTasks_617648, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeCustomerGateways_617697 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeCustomerGateways_617699(protocol: Scheme; host: string; + Call_PostDescribeCustomerGateways_617699 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeCustomerGateways_617701(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -53973,7 +54000,7 @@ proc url_PostDescribeCustomerGateways_617699(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeCustomerGateways_617698(path: JsonNode; query: JsonNode; +proc validate_PostDescribeCustomerGateways_617700(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes one or more of your VPN customer gateways.

For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.

## @@ -53985,16 +54012,16 @@ proc validate_PostDescribeCustomerGateways_617698(path: JsonNode; query: JsonNod ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617700 = query.getOrDefault("Action") - valid_617700 = validateParameter(valid_617700, JString, required = true, default = newJString( + var valid_617702 = query.getOrDefault("Action") + valid_617702 = validateParameter(valid_617702, JString, required = true, default = newJString( "DescribeCustomerGateways")) - if valid_617700 != nil: - section.add "Action", valid_617700 - var valid_617701 = query.getOrDefault("Version") - valid_617701 = validateParameter(valid_617701, JString, required = true, + if valid_617702 != nil: + section.add "Action", valid_617702 + var valid_617703 = query.getOrDefault("Version") + valid_617703 = validateParameter(valid_617703, JString, required = true, default = newJString("2016-11-15")) - if valid_617701 != nil: - section.add "Version", valid_617701 + if valid_617703 != nil: + section.add "Version", valid_617703 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -54005,41 +54032,41 @@ proc validate_PostDescribeCustomerGateways_617698(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617702 = header.getOrDefault("X-Amz-Signature") - valid_617702 = validateParameter(valid_617702, JString, required = false, - default = nil) - if valid_617702 != nil: - section.add "X-Amz-Signature", valid_617702 - var valid_617703 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617703 = validateParameter(valid_617703, JString, required = false, - default = nil) - if valid_617703 != nil: - section.add "X-Amz-Content-Sha256", valid_617703 - var valid_617704 = header.getOrDefault("X-Amz-Date") + var valid_617704 = header.getOrDefault("X-Amz-Signature") valid_617704 = validateParameter(valid_617704, JString, required = false, default = nil) if valid_617704 != nil: - section.add "X-Amz-Date", valid_617704 - var valid_617705 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617704 + var valid_617705 = header.getOrDefault("X-Amz-Content-Sha256") valid_617705 = validateParameter(valid_617705, JString, required = false, default = nil) if valid_617705 != nil: - section.add "X-Amz-Credential", valid_617705 - var valid_617706 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617705 + var valid_617706 = header.getOrDefault("X-Amz-Date") valid_617706 = validateParameter(valid_617706, JString, required = false, default = nil) if valid_617706 != nil: - section.add "X-Amz-Security-Token", valid_617706 - var valid_617707 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617706 + var valid_617707 = header.getOrDefault("X-Amz-Credential") valid_617707 = validateParameter(valid_617707, JString, required = false, default = nil) if valid_617707 != nil: - section.add "X-Amz-Algorithm", valid_617707 - var valid_617708 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617707 + var valid_617708 = header.getOrDefault("X-Amz-Security-Token") valid_617708 = validateParameter(valid_617708, JString, required = false, default = nil) if valid_617708 != nil: - section.add "X-Amz-SignedHeaders", valid_617708 + section.add "X-Amz-Security-Token", valid_617708 + var valid_617709 = header.getOrDefault("X-Amz-Algorithm") + valid_617709 = validateParameter(valid_617709, JString, required = false, + default = nil) + if valid_617709 != nil: + section.add "X-Amz-Algorithm", valid_617709 + var valid_617710 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617710 = validateParameter(valid_617710, JString, required = false, + default = nil) + if valid_617710 != nil: + section.add "X-Amz-SignedHeaders", valid_617710 result.add "header", section ## parameters in `formData` object: ## CustomerGatewayId: JArray @@ -54049,38 +54076,38 @@ proc validate_PostDescribeCustomerGateways_617698(path: JsonNode; query: JsonNod ## Filter: JArray ## :

One or more filters.

section = newJObject() - var valid_617709 = formData.getOrDefault("CustomerGatewayId") - valid_617709 = validateParameter(valid_617709, JArray, required = false, - default = nil) - if valid_617709 != nil: - section.add "CustomerGatewayId", valid_617709 - var valid_617710 = formData.getOrDefault("DryRun") - valid_617710 = validateParameter(valid_617710, JBool, required = false, default = nil) - if valid_617710 != nil: - section.add "DryRun", valid_617710 - var valid_617711 = formData.getOrDefault("Filter") + var valid_617711 = formData.getOrDefault("CustomerGatewayId") valid_617711 = validateParameter(valid_617711, JArray, required = false, default = nil) if valid_617711 != nil: - section.add "Filter", valid_617711 + section.add "CustomerGatewayId", valid_617711 + var valid_617712 = formData.getOrDefault("DryRun") + valid_617712 = validateParameter(valid_617712, JBool, required = false, default = nil) + if valid_617712 != nil: + section.add "DryRun", valid_617712 + var valid_617713 = formData.getOrDefault("Filter") + valid_617713 = validateParameter(valid_617713, JArray, required = false, + default = nil) + if valid_617713 != nil: + section.add "Filter", valid_617713 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617712: Call_PostDescribeCustomerGateways_617697; path: JsonNode; +proc call*(call_617714: Call_PostDescribeCustomerGateways_617699; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes one or more of your VPN customer gateways.

For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.

## - let valid = call_617712.validator(path, query, header, formData, body) - let scheme = call_617712.pickScheme + let valid = call_617714.validator(path, query, header, formData, body) + let scheme = call_617714.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617712.url(scheme.get, call_617712.host, call_617712.base, - call_617712.route, valid.getOrDefault("path"), + let url = call_617714.url(scheme.get, call_617714.host, call_617714.base, + call_617714.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617712, url, valid) + result = atozHook(call_617714, url, valid) -proc call*(call_617713: Call_PostDescribeCustomerGateways_617697; +proc call*(call_617715: Call_PostDescribeCustomerGateways_617699; CustomerGatewayId: JsonNode = nil; DryRun: bool = false; Action: string = "DescribeCustomerGateways"; Version: string = "2016-11-15"; Filter: JsonNode = nil): Recallable = @@ -54094,26 +54121,26 @@ proc call*(call_617713: Call_PostDescribeCustomerGateways_617697; ## Version: string (required) ## Filter: JArray ## :

One or more filters.

- var query_617714 = newJObject() - var formData_617715 = newJObject() + var query_617716 = newJObject() + var formData_617717 = newJObject() if CustomerGatewayId != nil: - formData_617715.add "CustomerGatewayId", CustomerGatewayId - add(formData_617715, "DryRun", newJBool(DryRun)) - add(query_617714, "Action", newJString(Action)) - add(query_617714, "Version", newJString(Version)) + formData_617717.add "CustomerGatewayId", CustomerGatewayId + add(formData_617717, "DryRun", newJBool(DryRun)) + add(query_617716, "Action", newJString(Action)) + add(query_617716, "Version", newJString(Version)) if Filter != nil: - formData_617715.add "Filter", Filter - result = call_617713.call(nil, query_617714, nil, formData_617715, nil) + formData_617717.add "Filter", Filter + result = call_617715.call(nil, query_617716, nil, formData_617717, nil) -var postDescribeCustomerGateways* = Call_PostDescribeCustomerGateways_617697( +var postDescribeCustomerGateways* = Call_PostDescribeCustomerGateways_617699( name: "postDescribeCustomerGateways", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeCustomerGateways", - validator: validate_PostDescribeCustomerGateways_617698, base: "/", - url: url_PostDescribeCustomerGateways_617699, + validator: validate_PostDescribeCustomerGateways_617700, base: "/", + url: url_PostDescribeCustomerGateways_617701, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeCustomerGateways_617679 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeCustomerGateways_617681(protocol: Scheme; host: string; + Call_GetDescribeCustomerGateways_617681 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeCustomerGateways_617683(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -54123,7 +54150,7 @@ proc url_GetDescribeCustomerGateways_617681(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeCustomerGateways_617680(path: JsonNode; query: JsonNode; +proc validate_GetDescribeCustomerGateways_617682(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes one or more of your VPN customer gateways.

For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.

## @@ -54141,30 +54168,30 @@ proc validate_GetDescribeCustomerGateways_617680(path: JsonNode; query: JsonNode ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617682 = query.getOrDefault("DryRun") - valid_617682 = validateParameter(valid_617682, JBool, required = false, default = nil) - if valid_617682 != nil: - section.add "DryRun", valid_617682 - var valid_617683 = query.getOrDefault("CustomerGatewayId") - valid_617683 = validateParameter(valid_617683, JArray, required = false, + var valid_617684 = query.getOrDefault("DryRun") + valid_617684 = validateParameter(valid_617684, JBool, required = false, default = nil) + if valid_617684 != nil: + section.add "DryRun", valid_617684 + var valid_617685 = query.getOrDefault("CustomerGatewayId") + valid_617685 = validateParameter(valid_617685, JArray, required = false, default = nil) - if valid_617683 != nil: - section.add "CustomerGatewayId", valid_617683 - var valid_617684 = query.getOrDefault("Filter") - valid_617684 = validateParameter(valid_617684, JArray, required = false, + if valid_617685 != nil: + section.add "CustomerGatewayId", valid_617685 + var valid_617686 = query.getOrDefault("Filter") + valid_617686 = validateParameter(valid_617686, JArray, required = false, default = nil) - if valid_617684 != nil: - section.add "Filter", valid_617684 - var valid_617685 = query.getOrDefault("Action") - valid_617685 = validateParameter(valid_617685, JString, required = true, default = newJString( + if valid_617686 != nil: + section.add "Filter", valid_617686 + var valid_617687 = query.getOrDefault("Action") + valid_617687 = validateParameter(valid_617687, JString, required = true, default = newJString( "DescribeCustomerGateways")) - if valid_617685 != nil: - section.add "Action", valid_617685 - var valid_617686 = query.getOrDefault("Version") - valid_617686 = validateParameter(valid_617686, JString, required = true, + if valid_617687 != nil: + section.add "Action", valid_617687 + var valid_617688 = query.getOrDefault("Version") + valid_617688 = validateParameter(valid_617688, JString, required = true, default = newJString("2016-11-15")) - if valid_617686 != nil: - section.add "Version", valid_617686 + if valid_617688 != nil: + section.add "Version", valid_617688 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -54175,61 +54202,61 @@ proc validate_GetDescribeCustomerGateways_617680(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617687 = header.getOrDefault("X-Amz-Signature") - valid_617687 = validateParameter(valid_617687, JString, required = false, - default = nil) - if valid_617687 != nil: - section.add "X-Amz-Signature", valid_617687 - var valid_617688 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617688 = validateParameter(valid_617688, JString, required = false, - default = nil) - if valid_617688 != nil: - section.add "X-Amz-Content-Sha256", valid_617688 - var valid_617689 = header.getOrDefault("X-Amz-Date") + var valid_617689 = header.getOrDefault("X-Amz-Signature") valid_617689 = validateParameter(valid_617689, JString, required = false, default = nil) if valid_617689 != nil: - section.add "X-Amz-Date", valid_617689 - var valid_617690 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617689 + var valid_617690 = header.getOrDefault("X-Amz-Content-Sha256") valid_617690 = validateParameter(valid_617690, JString, required = false, default = nil) if valid_617690 != nil: - section.add "X-Amz-Credential", valid_617690 - var valid_617691 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617690 + var valid_617691 = header.getOrDefault("X-Amz-Date") valid_617691 = validateParameter(valid_617691, JString, required = false, default = nil) if valid_617691 != nil: - section.add "X-Amz-Security-Token", valid_617691 - var valid_617692 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617691 + var valid_617692 = header.getOrDefault("X-Amz-Credential") valid_617692 = validateParameter(valid_617692, JString, required = false, default = nil) if valid_617692 != nil: - section.add "X-Amz-Algorithm", valid_617692 - var valid_617693 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617692 + var valid_617693 = header.getOrDefault("X-Amz-Security-Token") valid_617693 = validateParameter(valid_617693, JString, required = false, default = nil) if valid_617693 != nil: - section.add "X-Amz-SignedHeaders", valid_617693 + section.add "X-Amz-Security-Token", valid_617693 + var valid_617694 = header.getOrDefault("X-Amz-Algorithm") + valid_617694 = validateParameter(valid_617694, JString, required = false, + default = nil) + if valid_617694 != nil: + section.add "X-Amz-Algorithm", valid_617694 + var valid_617695 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617695 = validateParameter(valid_617695, JString, required = false, + default = nil) + if valid_617695 != nil: + section.add "X-Amz-SignedHeaders", valid_617695 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617694: Call_GetDescribeCustomerGateways_617679; path: JsonNode; +proc call*(call_617696: Call_GetDescribeCustomerGateways_617681; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes one or more of your VPN customer gateways.

For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.

## - let valid = call_617694.validator(path, query, header, formData, body) - let scheme = call_617694.pickScheme + let valid = call_617696.validator(path, query, header, formData, body) + let scheme = call_617696.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617694.url(scheme.get, call_617694.host, call_617694.base, - call_617694.route, valid.getOrDefault("path"), + let url = call_617696.url(scheme.get, call_617696.host, call_617696.base, + call_617696.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617694, url, valid) + result = atozHook(call_617696, url, valid) -proc call*(call_617695: Call_GetDescribeCustomerGateways_617679; +proc call*(call_617697: Call_GetDescribeCustomerGateways_617681; DryRun: bool = false; CustomerGatewayId: JsonNode = nil; Filter: JsonNode = nil; Action: string = "DescribeCustomerGateways"; Version: string = "2016-11-15"): Recallable = @@ -54243,25 +54270,25 @@ proc call*(call_617695: Call_GetDescribeCustomerGateways_617679; ## :

One or more filters.

## Action: string (required) ## Version: string (required) - var query_617696 = newJObject() - add(query_617696, "DryRun", newJBool(DryRun)) + var query_617698 = newJObject() + add(query_617698, "DryRun", newJBool(DryRun)) if CustomerGatewayId != nil: - query_617696.add "CustomerGatewayId", CustomerGatewayId + query_617698.add "CustomerGatewayId", CustomerGatewayId if Filter != nil: - query_617696.add "Filter", Filter - add(query_617696, "Action", newJString(Action)) - add(query_617696, "Version", newJString(Version)) - result = call_617695.call(nil, query_617696, nil, nil, nil) + query_617698.add "Filter", Filter + add(query_617698, "Action", newJString(Action)) + add(query_617698, "Version", newJString(Version)) + result = call_617697.call(nil, query_617698, nil, nil, nil) -var getDescribeCustomerGateways* = Call_GetDescribeCustomerGateways_617679( +var getDescribeCustomerGateways* = Call_GetDescribeCustomerGateways_617681( name: "getDescribeCustomerGateways", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeCustomerGateways", - validator: validate_GetDescribeCustomerGateways_617680, base: "/", - url: url_GetDescribeCustomerGateways_617681, + validator: validate_GetDescribeCustomerGateways_617682, base: "/", + url: url_GetDescribeCustomerGateways_617683, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeDhcpOptions_617736 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeDhcpOptions_617738(protocol: Scheme; host: string; base: string; + Call_PostDescribeDhcpOptions_617738 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeDhcpOptions_617740(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -54272,7 +54299,7 @@ proc url_PostDescribeDhcpOptions_617738(protocol: Scheme; host: string; base: st else: result.path = base & route -proc validate_PostDescribeDhcpOptions_617737(path: JsonNode; query: JsonNode; +proc validate_PostDescribeDhcpOptions_617739(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes one or more of your DHCP options sets.

For more information, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide.

## @@ -54284,16 +54311,16 @@ proc validate_PostDescribeDhcpOptions_617737(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617739 = query.getOrDefault("Action") - valid_617739 = validateParameter(valid_617739, JString, required = true, + var valid_617741 = query.getOrDefault("Action") + valid_617741 = validateParameter(valid_617741, JString, required = true, default = newJString("DescribeDhcpOptions")) - if valid_617739 != nil: - section.add "Action", valid_617739 - var valid_617740 = query.getOrDefault("Version") - valid_617740 = validateParameter(valid_617740, JString, required = true, + if valid_617741 != nil: + section.add "Action", valid_617741 + var valid_617742 = query.getOrDefault("Version") + valid_617742 = validateParameter(valid_617742, JString, required = true, default = newJString("2016-11-15")) - if valid_617740 != nil: - section.add "Version", valid_617740 + if valid_617742 != nil: + section.add "Version", valid_617742 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -54304,41 +54331,41 @@ proc validate_PostDescribeDhcpOptions_617737(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617741 = header.getOrDefault("X-Amz-Signature") - valid_617741 = validateParameter(valid_617741, JString, required = false, - default = nil) - if valid_617741 != nil: - section.add "X-Amz-Signature", valid_617741 - var valid_617742 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617742 = validateParameter(valid_617742, JString, required = false, - default = nil) - if valid_617742 != nil: - section.add "X-Amz-Content-Sha256", valid_617742 - var valid_617743 = header.getOrDefault("X-Amz-Date") + var valid_617743 = header.getOrDefault("X-Amz-Signature") valid_617743 = validateParameter(valid_617743, JString, required = false, default = nil) if valid_617743 != nil: - section.add "X-Amz-Date", valid_617743 - var valid_617744 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617743 + var valid_617744 = header.getOrDefault("X-Amz-Content-Sha256") valid_617744 = validateParameter(valid_617744, JString, required = false, default = nil) if valid_617744 != nil: - section.add "X-Amz-Credential", valid_617744 - var valid_617745 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617744 + var valid_617745 = header.getOrDefault("X-Amz-Date") valid_617745 = validateParameter(valid_617745, JString, required = false, default = nil) if valid_617745 != nil: - section.add "X-Amz-Security-Token", valid_617745 - var valid_617746 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617745 + var valid_617746 = header.getOrDefault("X-Amz-Credential") valid_617746 = validateParameter(valid_617746, JString, required = false, default = nil) if valid_617746 != nil: - section.add "X-Amz-Algorithm", valid_617746 - var valid_617747 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617746 + var valid_617747 = header.getOrDefault("X-Amz-Security-Token") valid_617747 = validateParameter(valid_617747, JString, required = false, default = nil) if valid_617747 != nil: - section.add "X-Amz-SignedHeaders", valid_617747 + section.add "X-Amz-Security-Token", valid_617747 + var valid_617748 = header.getOrDefault("X-Amz-Algorithm") + valid_617748 = validateParameter(valid_617748, JString, required = false, + default = nil) + if valid_617748 != nil: + section.add "X-Amz-Algorithm", valid_617748 + var valid_617749 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617749 = validateParameter(valid_617749, JString, required = false, + default = nil) + if valid_617749 != nil: + section.add "X-Amz-SignedHeaders", valid_617749 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -54352,47 +54379,47 @@ proc validate_PostDescribeDhcpOptions_617737(path: JsonNode; query: JsonNode; ## Filter: JArray ## :

One or more filters.

section = newJObject() - var valid_617748 = formData.getOrDefault("NextToken") - valid_617748 = validateParameter(valid_617748, JString, required = false, + var valid_617750 = formData.getOrDefault("NextToken") + valid_617750 = validateParameter(valid_617750, JString, required = false, default = nil) - if valid_617748 != nil: - section.add "NextToken", valid_617748 - var valid_617749 = formData.getOrDefault("DhcpOptionsId") - valid_617749 = validateParameter(valid_617749, JArray, required = false, - default = nil) - if valid_617749 != nil: - section.add "DhcpOptionsId", valid_617749 - var valid_617750 = formData.getOrDefault("DryRun") - valid_617750 = validateParameter(valid_617750, JBool, required = false, default = nil) if valid_617750 != nil: - section.add "DryRun", valid_617750 - var valid_617751 = formData.getOrDefault("MaxResults") - valid_617751 = validateParameter(valid_617751, JInt, required = false, default = nil) - if valid_617751 != nil: - section.add "MaxResults", valid_617751 - var valid_617752 = formData.getOrDefault("Filter") - valid_617752 = validateParameter(valid_617752, JArray, required = false, + section.add "NextToken", valid_617750 + var valid_617751 = formData.getOrDefault("DhcpOptionsId") + valid_617751 = validateParameter(valid_617751, JArray, required = false, default = nil) + if valid_617751 != nil: + section.add "DhcpOptionsId", valid_617751 + var valid_617752 = formData.getOrDefault("DryRun") + valid_617752 = validateParameter(valid_617752, JBool, required = false, default = nil) if valid_617752 != nil: - section.add "Filter", valid_617752 + section.add "DryRun", valid_617752 + var valid_617753 = formData.getOrDefault("MaxResults") + valid_617753 = validateParameter(valid_617753, JInt, required = false, default = nil) + if valid_617753 != nil: + section.add "MaxResults", valid_617753 + var valid_617754 = formData.getOrDefault("Filter") + valid_617754 = validateParameter(valid_617754, JArray, required = false, + default = nil) + if valid_617754 != nil: + section.add "Filter", valid_617754 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617753: Call_PostDescribeDhcpOptions_617736; path: JsonNode; +proc call*(call_617755: Call_PostDescribeDhcpOptions_617738; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes one or more of your DHCP options sets.

For more information, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide.

## - let valid = call_617753.validator(path, query, header, formData, body) - let scheme = call_617753.pickScheme + let valid = call_617755.validator(path, query, header, formData, body) + let scheme = call_617755.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617753.url(scheme.get, call_617753.host, call_617753.base, - call_617753.route, valid.getOrDefault("path"), + let url = call_617755.url(scheme.get, call_617755.host, call_617755.base, + call_617755.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617753, url, valid) + result = atozHook(call_617755, url, valid) -proc call*(call_617754: Call_PostDescribeDhcpOptions_617736; +proc call*(call_617756: Call_PostDescribeDhcpOptions_617738; NextToken: string = ""; DhcpOptionsId: JsonNode = nil; DryRun: bool = false; Action: string = "DescribeDhcpOptions"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -54410,27 +54437,27 @@ proc call*(call_617754: Call_PostDescribeDhcpOptions_617736; ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## Filter: JArray ## :

One or more filters.

- var query_617755 = newJObject() - var formData_617756 = newJObject() - add(formData_617756, "NextToken", newJString(NextToken)) + var query_617757 = newJObject() + var formData_617758 = newJObject() + add(formData_617758, "NextToken", newJString(NextToken)) if DhcpOptionsId != nil: - formData_617756.add "DhcpOptionsId", DhcpOptionsId - add(formData_617756, "DryRun", newJBool(DryRun)) - add(query_617755, "Action", newJString(Action)) - add(query_617755, "Version", newJString(Version)) - add(formData_617756, "MaxResults", newJInt(MaxResults)) + formData_617758.add "DhcpOptionsId", DhcpOptionsId + add(formData_617758, "DryRun", newJBool(DryRun)) + add(query_617757, "Action", newJString(Action)) + add(query_617757, "Version", newJString(Version)) + add(formData_617758, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_617756.add "Filter", Filter - result = call_617754.call(nil, query_617755, nil, formData_617756, nil) + formData_617758.add "Filter", Filter + result = call_617756.call(nil, query_617757, nil, formData_617758, nil) -var postDescribeDhcpOptions* = Call_PostDescribeDhcpOptions_617736( +var postDescribeDhcpOptions* = Call_PostDescribeDhcpOptions_617738( name: "postDescribeDhcpOptions", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeDhcpOptions", - validator: validate_PostDescribeDhcpOptions_617737, base: "/", - url: url_PostDescribeDhcpOptions_617738, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDescribeDhcpOptions_617739, base: "/", + url: url_PostDescribeDhcpOptions_617740, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeDhcpOptions_617716 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeDhcpOptions_617718(protocol: Scheme; host: string; base: string; + Call_GetDescribeDhcpOptions_617718 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeDhcpOptions_617720(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -54440,7 +54467,7 @@ proc url_GetDescribeDhcpOptions_617718(protocol: Scheme; host: string; base: str else: result.path = base & route -proc validate_GetDescribeDhcpOptions_617717(path: JsonNode; query: JsonNode; +proc validate_GetDescribeDhcpOptions_617719(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes one or more of your DHCP options sets.

For more information, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide.

## @@ -54462,39 +54489,39 @@ proc validate_GetDescribeDhcpOptions_617717(path: JsonNode; query: JsonNode; ## :

The IDs of one or more DHCP options sets.

Default: Describes all your DHCP options sets.

## Version: JString (required) section = newJObject() - var valid_617719 = query.getOrDefault("MaxResults") - valid_617719 = validateParameter(valid_617719, JInt, required = false, default = nil) - if valid_617719 != nil: - section.add "MaxResults", valid_617719 - var valid_617720 = query.getOrDefault("DryRun") - valid_617720 = validateParameter(valid_617720, JBool, required = false, default = nil) - if valid_617720 != nil: - section.add "DryRun", valid_617720 - var valid_617721 = query.getOrDefault("NextToken") - valid_617721 = validateParameter(valid_617721, JString, required = false, - default = nil) + var valid_617721 = query.getOrDefault("MaxResults") + valid_617721 = validateParameter(valid_617721, JInt, required = false, default = nil) if valid_617721 != nil: - section.add "NextToken", valid_617721 - var valid_617722 = query.getOrDefault("Filter") - valid_617722 = validateParameter(valid_617722, JArray, required = false, - default = nil) + section.add "MaxResults", valid_617721 + var valid_617722 = query.getOrDefault("DryRun") + valid_617722 = validateParameter(valid_617722, JBool, required = false, default = nil) if valid_617722 != nil: - section.add "Filter", valid_617722 - var valid_617723 = query.getOrDefault("Action") - valid_617723 = validateParameter(valid_617723, JString, required = true, - default = newJString("DescribeDhcpOptions")) + section.add "DryRun", valid_617722 + var valid_617723 = query.getOrDefault("NextToken") + valid_617723 = validateParameter(valid_617723, JString, required = false, + default = nil) if valid_617723 != nil: - section.add "Action", valid_617723 - var valid_617724 = query.getOrDefault("DhcpOptionsId") + section.add "NextToken", valid_617723 + var valid_617724 = query.getOrDefault("Filter") valid_617724 = validateParameter(valid_617724, JArray, required = false, default = nil) if valid_617724 != nil: - section.add "DhcpOptionsId", valid_617724 - var valid_617725 = query.getOrDefault("Version") + section.add "Filter", valid_617724 + var valid_617725 = query.getOrDefault("Action") valid_617725 = validateParameter(valid_617725, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("DescribeDhcpOptions")) if valid_617725 != nil: - section.add "Version", valid_617725 + section.add "Action", valid_617725 + var valid_617726 = query.getOrDefault("DhcpOptionsId") + valid_617726 = validateParameter(valid_617726, JArray, required = false, + default = nil) + if valid_617726 != nil: + section.add "DhcpOptionsId", valid_617726 + var valid_617727 = query.getOrDefault("Version") + valid_617727 = validateParameter(valid_617727, JString, required = true, + default = newJString("2016-11-15")) + if valid_617727 != nil: + section.add "Version", valid_617727 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -54505,61 +54532,61 @@ proc validate_GetDescribeDhcpOptions_617717(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617726 = header.getOrDefault("X-Amz-Signature") - valid_617726 = validateParameter(valid_617726, JString, required = false, - default = nil) - if valid_617726 != nil: - section.add "X-Amz-Signature", valid_617726 - var valid_617727 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617727 = validateParameter(valid_617727, JString, required = false, - default = nil) - if valid_617727 != nil: - section.add "X-Amz-Content-Sha256", valid_617727 - var valid_617728 = header.getOrDefault("X-Amz-Date") + var valid_617728 = header.getOrDefault("X-Amz-Signature") valid_617728 = validateParameter(valid_617728, JString, required = false, default = nil) if valid_617728 != nil: - section.add "X-Amz-Date", valid_617728 - var valid_617729 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617728 + var valid_617729 = header.getOrDefault("X-Amz-Content-Sha256") valid_617729 = validateParameter(valid_617729, JString, required = false, default = nil) if valid_617729 != nil: - section.add "X-Amz-Credential", valid_617729 - var valid_617730 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617729 + var valid_617730 = header.getOrDefault("X-Amz-Date") valid_617730 = validateParameter(valid_617730, JString, required = false, default = nil) if valid_617730 != nil: - section.add "X-Amz-Security-Token", valid_617730 - var valid_617731 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617730 + var valid_617731 = header.getOrDefault("X-Amz-Credential") valid_617731 = validateParameter(valid_617731, JString, required = false, default = nil) if valid_617731 != nil: - section.add "X-Amz-Algorithm", valid_617731 - var valid_617732 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617731 + var valid_617732 = header.getOrDefault("X-Amz-Security-Token") valid_617732 = validateParameter(valid_617732, JString, required = false, default = nil) if valid_617732 != nil: - section.add "X-Amz-SignedHeaders", valid_617732 + section.add "X-Amz-Security-Token", valid_617732 + var valid_617733 = header.getOrDefault("X-Amz-Algorithm") + valid_617733 = validateParameter(valid_617733, JString, required = false, + default = nil) + if valid_617733 != nil: + section.add "X-Amz-Algorithm", valid_617733 + var valid_617734 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617734 = validateParameter(valid_617734, JString, required = false, + default = nil) + if valid_617734 != nil: + section.add "X-Amz-SignedHeaders", valid_617734 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617733: Call_GetDescribeDhcpOptions_617716; path: JsonNode; +proc call*(call_617735: Call_GetDescribeDhcpOptions_617718; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes one or more of your DHCP options sets.

For more information, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide.

## - let valid = call_617733.validator(path, query, header, formData, body) - let scheme = call_617733.pickScheme + let valid = call_617735.validator(path, query, header, formData, body) + let scheme = call_617735.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617733.url(scheme.get, call_617733.host, call_617733.base, - call_617733.route, valid.getOrDefault("path"), + let url = call_617735.url(scheme.get, call_617735.host, call_617735.base, + call_617735.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617733, url, valid) + result = atozHook(call_617735, url, valid) -proc call*(call_617734: Call_GetDescribeDhcpOptions_617716; MaxResults: int = 0; +proc call*(call_617736: Call_GetDescribeDhcpOptions_617718; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeDhcpOptions"; DhcpOptionsId: JsonNode = nil; Version: string = "2016-11-15"): Recallable = @@ -54577,26 +54604,26 @@ proc call*(call_617734: Call_GetDescribeDhcpOptions_617716; MaxResults: int = 0; ## DhcpOptionsId: JArray ## :

The IDs of one or more DHCP options sets.

Default: Describes all your DHCP options sets.

## Version: string (required) - var query_617735 = newJObject() - add(query_617735, "MaxResults", newJInt(MaxResults)) - add(query_617735, "DryRun", newJBool(DryRun)) - add(query_617735, "NextToken", newJString(NextToken)) + var query_617737 = newJObject() + add(query_617737, "MaxResults", newJInt(MaxResults)) + add(query_617737, "DryRun", newJBool(DryRun)) + add(query_617737, "NextToken", newJString(NextToken)) if Filter != nil: - query_617735.add "Filter", Filter - add(query_617735, "Action", newJString(Action)) + query_617737.add "Filter", Filter + add(query_617737, "Action", newJString(Action)) if DhcpOptionsId != nil: - query_617735.add "DhcpOptionsId", DhcpOptionsId - add(query_617735, "Version", newJString(Version)) - result = call_617734.call(nil, query_617735, nil, nil, nil) + query_617737.add "DhcpOptionsId", DhcpOptionsId + add(query_617737, "Version", newJString(Version)) + result = call_617736.call(nil, query_617737, nil, nil, nil) -var getDescribeDhcpOptions* = Call_GetDescribeDhcpOptions_617716( +var getDescribeDhcpOptions* = Call_GetDescribeDhcpOptions_617718( name: "getDescribeDhcpOptions", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeDhcpOptions", - validator: validate_GetDescribeDhcpOptions_617717, base: "/", - url: url_GetDescribeDhcpOptions_617718, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDescribeDhcpOptions_617719, base: "/", + url: url_GetDescribeDhcpOptions_617720, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeEgressOnlyInternetGateways_617777 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeEgressOnlyInternetGateways_617779(protocol: Scheme; + Call_PostDescribeEgressOnlyInternetGateways_617779 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeEgressOnlyInternetGateways_617781(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -54606,7 +54633,7 @@ proc url_PostDescribeEgressOnlyInternetGateways_617779(protocol: Scheme; else: result.path = base & route -proc validate_PostDescribeEgressOnlyInternetGateways_617778(path: JsonNode; +proc validate_PostDescribeEgressOnlyInternetGateways_617780(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more of your egress-only internet gateways. ## @@ -54618,16 +54645,16 @@ proc validate_PostDescribeEgressOnlyInternetGateways_617778(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617780 = query.getOrDefault("Action") - valid_617780 = validateParameter(valid_617780, JString, required = true, default = newJString( + var valid_617782 = query.getOrDefault("Action") + valid_617782 = validateParameter(valid_617782, JString, required = true, default = newJString( "DescribeEgressOnlyInternetGateways")) - if valid_617780 != nil: - section.add "Action", valid_617780 - var valid_617781 = query.getOrDefault("Version") - valid_617781 = validateParameter(valid_617781, JString, required = true, + if valid_617782 != nil: + section.add "Action", valid_617782 + var valid_617783 = query.getOrDefault("Version") + valid_617783 = validateParameter(valid_617783, JString, required = true, default = newJString("2016-11-15")) - if valid_617781 != nil: - section.add "Version", valid_617781 + if valid_617783 != nil: + section.add "Version", valid_617783 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -54638,41 +54665,41 @@ proc validate_PostDescribeEgressOnlyInternetGateways_617778(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617782 = header.getOrDefault("X-Amz-Signature") - valid_617782 = validateParameter(valid_617782, JString, required = false, - default = nil) - if valid_617782 != nil: - section.add "X-Amz-Signature", valid_617782 - var valid_617783 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617783 = validateParameter(valid_617783, JString, required = false, - default = nil) - if valid_617783 != nil: - section.add "X-Amz-Content-Sha256", valid_617783 - var valid_617784 = header.getOrDefault("X-Amz-Date") + var valid_617784 = header.getOrDefault("X-Amz-Signature") valid_617784 = validateParameter(valid_617784, JString, required = false, default = nil) if valid_617784 != nil: - section.add "X-Amz-Date", valid_617784 - var valid_617785 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617784 + var valid_617785 = header.getOrDefault("X-Amz-Content-Sha256") valid_617785 = validateParameter(valid_617785, JString, required = false, default = nil) if valid_617785 != nil: - section.add "X-Amz-Credential", valid_617785 - var valid_617786 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617785 + var valid_617786 = header.getOrDefault("X-Amz-Date") valid_617786 = validateParameter(valid_617786, JString, required = false, default = nil) if valid_617786 != nil: - section.add "X-Amz-Security-Token", valid_617786 - var valid_617787 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617786 + var valid_617787 = header.getOrDefault("X-Amz-Credential") valid_617787 = validateParameter(valid_617787, JString, required = false, default = nil) if valid_617787 != nil: - section.add "X-Amz-Algorithm", valid_617787 - var valid_617788 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617787 + var valid_617788 = header.getOrDefault("X-Amz-Security-Token") valid_617788 = validateParameter(valid_617788, JString, required = false, default = nil) if valid_617788 != nil: - section.add "X-Amz-SignedHeaders", valid_617788 + section.add "X-Amz-Security-Token", valid_617788 + var valid_617789 = header.getOrDefault("X-Amz-Algorithm") + valid_617789 = validateParameter(valid_617789, JString, required = false, + default = nil) + if valid_617789 != nil: + section.add "X-Amz-Algorithm", valid_617789 + var valid_617790 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617790 = validateParameter(valid_617790, JString, required = false, + default = nil) + if valid_617790 != nil: + section.add "X-Amz-SignedHeaders", valid_617790 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -54686,48 +54713,48 @@ proc validate_PostDescribeEgressOnlyInternetGateways_617778(path: JsonNode; ## Filter: JArray ## :

One or more filters.

section = newJObject() - var valid_617789 = formData.getOrDefault("NextToken") - valid_617789 = validateParameter(valid_617789, JString, required = false, - default = nil) - if valid_617789 != nil: - section.add "NextToken", valid_617789 - var valid_617790 = formData.getOrDefault("DryRun") - valid_617790 = validateParameter(valid_617790, JBool, required = false, default = nil) - if valid_617790 != nil: - section.add "DryRun", valid_617790 - var valid_617791 = formData.getOrDefault("EgressOnlyInternetGatewayId") - valid_617791 = validateParameter(valid_617791, JArray, required = false, + var valid_617791 = formData.getOrDefault("NextToken") + valid_617791 = validateParameter(valid_617791, JString, required = false, default = nil) if valid_617791 != nil: - section.add "EgressOnlyInternetGatewayId", valid_617791 - var valid_617792 = formData.getOrDefault("MaxResults") - valid_617792 = validateParameter(valid_617792, JInt, required = false, default = nil) + section.add "NextToken", valid_617791 + var valid_617792 = formData.getOrDefault("DryRun") + valid_617792 = validateParameter(valid_617792, JBool, required = false, default = nil) if valid_617792 != nil: - section.add "MaxResults", valid_617792 - var valid_617793 = formData.getOrDefault("Filter") + section.add "DryRun", valid_617792 + var valid_617793 = formData.getOrDefault("EgressOnlyInternetGatewayId") valid_617793 = validateParameter(valid_617793, JArray, required = false, default = nil) if valid_617793 != nil: - section.add "Filter", valid_617793 + section.add "EgressOnlyInternetGatewayId", valid_617793 + var valid_617794 = formData.getOrDefault("MaxResults") + valid_617794 = validateParameter(valid_617794, JInt, required = false, default = nil) + if valid_617794 != nil: + section.add "MaxResults", valid_617794 + var valid_617795 = formData.getOrDefault("Filter") + valid_617795 = validateParameter(valid_617795, JArray, required = false, + default = nil) + if valid_617795 != nil: + section.add "Filter", valid_617795 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617794: Call_PostDescribeEgressOnlyInternetGateways_617777; +proc call*(call_617796: Call_PostDescribeEgressOnlyInternetGateways_617779; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more of your egress-only internet gateways. ## - let valid = call_617794.validator(path, query, header, formData, body) - let scheme = call_617794.pickScheme + let valid = call_617796.validator(path, query, header, formData, body) + let scheme = call_617796.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617794.url(scheme.get, call_617794.host, call_617794.base, - call_617794.route, valid.getOrDefault("path"), + let url = call_617796.url(scheme.get, call_617796.host, call_617796.base, + call_617796.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617794, url, valid) + result = atozHook(call_617796, url, valid) -proc call*(call_617795: Call_PostDescribeEgressOnlyInternetGateways_617777; +proc call*(call_617797: Call_PostDescribeEgressOnlyInternetGateways_617779; NextToken: string = ""; DryRun: bool = false; EgressOnlyInternetGatewayId: JsonNode = nil; Action: string = "DescribeEgressOnlyInternetGateways"; @@ -54746,29 +54773,29 @@ proc call*(call_617795: Call_PostDescribeEgressOnlyInternetGateways_617777; ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## Filter: JArray ## :

One or more filters.

- var query_617796 = newJObject() - var formData_617797 = newJObject() - add(formData_617797, "NextToken", newJString(NextToken)) - add(formData_617797, "DryRun", newJBool(DryRun)) + var query_617798 = newJObject() + var formData_617799 = newJObject() + add(formData_617799, "NextToken", newJString(NextToken)) + add(formData_617799, "DryRun", newJBool(DryRun)) if EgressOnlyInternetGatewayId != nil: - formData_617797.add "EgressOnlyInternetGatewayId", EgressOnlyInternetGatewayId - add(query_617796, "Action", newJString(Action)) - add(query_617796, "Version", newJString(Version)) - add(formData_617797, "MaxResults", newJInt(MaxResults)) + formData_617799.add "EgressOnlyInternetGatewayId", EgressOnlyInternetGatewayId + add(query_617798, "Action", newJString(Action)) + add(query_617798, "Version", newJString(Version)) + add(formData_617799, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_617797.add "Filter", Filter - result = call_617795.call(nil, query_617796, nil, formData_617797, nil) + formData_617799.add "Filter", Filter + result = call_617797.call(nil, query_617798, nil, formData_617799, nil) -var postDescribeEgressOnlyInternetGateways* = Call_PostDescribeEgressOnlyInternetGateways_617777( +var postDescribeEgressOnlyInternetGateways* = Call_PostDescribeEgressOnlyInternetGateways_617779( name: "postDescribeEgressOnlyInternetGateways", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeEgressOnlyInternetGateways", - validator: validate_PostDescribeEgressOnlyInternetGateways_617778, base: "/", - url: url_PostDescribeEgressOnlyInternetGateways_617779, + validator: validate_PostDescribeEgressOnlyInternetGateways_617780, base: "/", + url: url_PostDescribeEgressOnlyInternetGateways_617781, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeEgressOnlyInternetGateways_617757 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeEgressOnlyInternetGateways_617759(protocol: Scheme; + Call_GetDescribeEgressOnlyInternetGateways_617759 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeEgressOnlyInternetGateways_617761(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -54778,7 +54805,7 @@ proc url_GetDescribeEgressOnlyInternetGateways_617759(protocol: Scheme; else: result.path = base & route -proc validate_GetDescribeEgressOnlyInternetGateways_617758(path: JsonNode; +proc validate_GetDescribeEgressOnlyInternetGateways_617760(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more of your egress-only internet gateways. ## @@ -54800,39 +54827,39 @@ proc validate_GetDescribeEgressOnlyInternetGateways_617758(path: JsonNode; ## EgressOnlyInternetGatewayId: JArray ## : One or more egress-only internet gateway IDs. section = newJObject() - var valid_617760 = query.getOrDefault("MaxResults") - valid_617760 = validateParameter(valid_617760, JInt, required = false, default = nil) - if valid_617760 != nil: - section.add "MaxResults", valid_617760 - var valid_617761 = query.getOrDefault("DryRun") - valid_617761 = validateParameter(valid_617761, JBool, required = false, default = nil) - if valid_617761 != nil: - section.add "DryRun", valid_617761 - var valid_617762 = query.getOrDefault("NextToken") - valid_617762 = validateParameter(valid_617762, JString, required = false, - default = nil) + var valid_617762 = query.getOrDefault("MaxResults") + valid_617762 = validateParameter(valid_617762, JInt, required = false, default = nil) if valid_617762 != nil: - section.add "NextToken", valid_617762 - var valid_617763 = query.getOrDefault("Filter") - valid_617763 = validateParameter(valid_617763, JArray, required = false, - default = nil) + section.add "MaxResults", valid_617762 + var valid_617763 = query.getOrDefault("DryRun") + valid_617763 = validateParameter(valid_617763, JBool, required = false, default = nil) if valid_617763 != nil: - section.add "Filter", valid_617763 - var valid_617764 = query.getOrDefault("Action") - valid_617764 = validateParameter(valid_617764, JString, required = true, default = newJString( - "DescribeEgressOnlyInternetGateways")) + section.add "DryRun", valid_617763 + var valid_617764 = query.getOrDefault("NextToken") + valid_617764 = validateParameter(valid_617764, JString, required = false, + default = nil) if valid_617764 != nil: - section.add "Action", valid_617764 - var valid_617765 = query.getOrDefault("Version") - valid_617765 = validateParameter(valid_617765, JString, required = true, - default = newJString("2016-11-15")) - if valid_617765 != nil: - section.add "Version", valid_617765 - var valid_617766 = query.getOrDefault("EgressOnlyInternetGatewayId") - valid_617766 = validateParameter(valid_617766, JArray, required = false, + section.add "NextToken", valid_617764 + var valid_617765 = query.getOrDefault("Filter") + valid_617765 = validateParameter(valid_617765, JArray, required = false, default = nil) + if valid_617765 != nil: + section.add "Filter", valid_617765 + var valid_617766 = query.getOrDefault("Action") + valid_617766 = validateParameter(valid_617766, JString, required = true, default = newJString( + "DescribeEgressOnlyInternetGateways")) if valid_617766 != nil: - section.add "EgressOnlyInternetGatewayId", valid_617766 + section.add "Action", valid_617766 + var valid_617767 = query.getOrDefault("Version") + valid_617767 = validateParameter(valid_617767, JString, required = true, + default = newJString("2016-11-15")) + if valid_617767 != nil: + section.add "Version", valid_617767 + var valid_617768 = query.getOrDefault("EgressOnlyInternetGatewayId") + valid_617768 = validateParameter(valid_617768, JArray, required = false, + default = nil) + if valid_617768 != nil: + section.add "EgressOnlyInternetGatewayId", valid_617768 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -54843,62 +54870,62 @@ proc validate_GetDescribeEgressOnlyInternetGateways_617758(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617767 = header.getOrDefault("X-Amz-Signature") - valid_617767 = validateParameter(valid_617767, JString, required = false, - default = nil) - if valid_617767 != nil: - section.add "X-Amz-Signature", valid_617767 - var valid_617768 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617768 = validateParameter(valid_617768, JString, required = false, - default = nil) - if valid_617768 != nil: - section.add "X-Amz-Content-Sha256", valid_617768 - var valid_617769 = header.getOrDefault("X-Amz-Date") + var valid_617769 = header.getOrDefault("X-Amz-Signature") valid_617769 = validateParameter(valid_617769, JString, required = false, default = nil) if valid_617769 != nil: - section.add "X-Amz-Date", valid_617769 - var valid_617770 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617769 + var valid_617770 = header.getOrDefault("X-Amz-Content-Sha256") valid_617770 = validateParameter(valid_617770, JString, required = false, default = nil) if valid_617770 != nil: - section.add "X-Amz-Credential", valid_617770 - var valid_617771 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617770 + var valid_617771 = header.getOrDefault("X-Amz-Date") valid_617771 = validateParameter(valid_617771, JString, required = false, default = nil) if valid_617771 != nil: - section.add "X-Amz-Security-Token", valid_617771 - var valid_617772 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617771 + var valid_617772 = header.getOrDefault("X-Amz-Credential") valid_617772 = validateParameter(valid_617772, JString, required = false, default = nil) if valid_617772 != nil: - section.add "X-Amz-Algorithm", valid_617772 - var valid_617773 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617772 + var valid_617773 = header.getOrDefault("X-Amz-Security-Token") valid_617773 = validateParameter(valid_617773, JString, required = false, default = nil) if valid_617773 != nil: - section.add "X-Amz-SignedHeaders", valid_617773 + section.add "X-Amz-Security-Token", valid_617773 + var valid_617774 = header.getOrDefault("X-Amz-Algorithm") + valid_617774 = validateParameter(valid_617774, JString, required = false, + default = nil) + if valid_617774 != nil: + section.add "X-Amz-Algorithm", valid_617774 + var valid_617775 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617775 = validateParameter(valid_617775, JString, required = false, + default = nil) + if valid_617775 != nil: + section.add "X-Amz-SignedHeaders", valid_617775 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617774: Call_GetDescribeEgressOnlyInternetGateways_617757; +proc call*(call_617776: Call_GetDescribeEgressOnlyInternetGateways_617759; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more of your egress-only internet gateways. ## - let valid = call_617774.validator(path, query, header, formData, body) - let scheme = call_617774.pickScheme + let valid = call_617776.validator(path, query, header, formData, body) + let scheme = call_617776.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617774.url(scheme.get, call_617774.host, call_617774.base, - call_617774.route, valid.getOrDefault("path"), + let url = call_617776.url(scheme.get, call_617776.host, call_617776.base, + call_617776.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617774, url, valid) + result = atozHook(call_617776, url, valid) -proc call*(call_617775: Call_GetDescribeEgressOnlyInternetGateways_617757; +proc call*(call_617777: Call_GetDescribeEgressOnlyInternetGateways_617759; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeEgressOnlyInternetGateways"; @@ -54918,28 +54945,28 @@ proc call*(call_617775: Call_GetDescribeEgressOnlyInternetGateways_617757; ## Version: string (required) ## EgressOnlyInternetGatewayId: JArray ## : One or more egress-only internet gateway IDs. - var query_617776 = newJObject() - add(query_617776, "MaxResults", newJInt(MaxResults)) - add(query_617776, "DryRun", newJBool(DryRun)) - add(query_617776, "NextToken", newJString(NextToken)) + var query_617778 = newJObject() + add(query_617778, "MaxResults", newJInt(MaxResults)) + add(query_617778, "DryRun", newJBool(DryRun)) + add(query_617778, "NextToken", newJString(NextToken)) if Filter != nil: - query_617776.add "Filter", Filter - add(query_617776, "Action", newJString(Action)) - add(query_617776, "Version", newJString(Version)) + query_617778.add "Filter", Filter + add(query_617778, "Action", newJString(Action)) + add(query_617778, "Version", newJString(Version)) if EgressOnlyInternetGatewayId != nil: - query_617776.add "EgressOnlyInternetGatewayId", EgressOnlyInternetGatewayId - result = call_617775.call(nil, query_617776, nil, nil, nil) + query_617778.add "EgressOnlyInternetGatewayId", EgressOnlyInternetGatewayId + result = call_617777.call(nil, query_617778, nil, nil, nil) -var getDescribeEgressOnlyInternetGateways* = Call_GetDescribeEgressOnlyInternetGateways_617757( +var getDescribeEgressOnlyInternetGateways* = Call_GetDescribeEgressOnlyInternetGateways_617759( name: "getDescribeEgressOnlyInternetGateways", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeEgressOnlyInternetGateways", - validator: validate_GetDescribeEgressOnlyInternetGateways_617758, base: "/", - url: url_GetDescribeEgressOnlyInternetGateways_617759, + validator: validate_GetDescribeEgressOnlyInternetGateways_617760, base: "/", + url: url_GetDescribeEgressOnlyInternetGateways_617761, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeElasticGpus_617818 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeElasticGpus_617820(protocol: Scheme; host: string; base: string; + Call_PostDescribeElasticGpus_617820 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeElasticGpus_617822(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -54950,7 +54977,7 @@ proc url_PostDescribeElasticGpus_617820(protocol: Scheme; host: string; base: st else: result.path = base & route -proc validate_PostDescribeElasticGpus_617819(path: JsonNode; query: JsonNode; +proc validate_PostDescribeElasticGpus_617821(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the Elastic Graphics accelerator associated with your instances. For more information about Elastic Graphics, see Amazon Elastic Graphics. ## @@ -54962,16 +54989,16 @@ proc validate_PostDescribeElasticGpus_617819(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617821 = query.getOrDefault("Action") - valid_617821 = validateParameter(valid_617821, JString, required = true, + var valid_617823 = query.getOrDefault("Action") + valid_617823 = validateParameter(valid_617823, JString, required = true, default = newJString("DescribeElasticGpus")) - if valid_617821 != nil: - section.add "Action", valid_617821 - var valid_617822 = query.getOrDefault("Version") - valid_617822 = validateParameter(valid_617822, JString, required = true, + if valid_617823 != nil: + section.add "Action", valid_617823 + var valid_617824 = query.getOrDefault("Version") + valid_617824 = validateParameter(valid_617824, JString, required = true, default = newJString("2016-11-15")) - if valid_617822 != nil: - section.add "Version", valid_617822 + if valid_617824 != nil: + section.add "Version", valid_617824 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -54982,41 +55009,41 @@ proc validate_PostDescribeElasticGpus_617819(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617823 = header.getOrDefault("X-Amz-Signature") - valid_617823 = validateParameter(valid_617823, JString, required = false, - default = nil) - if valid_617823 != nil: - section.add "X-Amz-Signature", valid_617823 - var valid_617824 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617824 = validateParameter(valid_617824, JString, required = false, - default = nil) - if valid_617824 != nil: - section.add "X-Amz-Content-Sha256", valid_617824 - var valid_617825 = header.getOrDefault("X-Amz-Date") + var valid_617825 = header.getOrDefault("X-Amz-Signature") valid_617825 = validateParameter(valid_617825, JString, required = false, default = nil) if valid_617825 != nil: - section.add "X-Amz-Date", valid_617825 - var valid_617826 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617825 + var valid_617826 = header.getOrDefault("X-Amz-Content-Sha256") valid_617826 = validateParameter(valid_617826, JString, required = false, default = nil) if valid_617826 != nil: - section.add "X-Amz-Credential", valid_617826 - var valid_617827 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617826 + var valid_617827 = header.getOrDefault("X-Amz-Date") valid_617827 = validateParameter(valid_617827, JString, required = false, default = nil) if valid_617827 != nil: - section.add "X-Amz-Security-Token", valid_617827 - var valid_617828 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617827 + var valid_617828 = header.getOrDefault("X-Amz-Credential") valid_617828 = validateParameter(valid_617828, JString, required = false, default = nil) if valid_617828 != nil: - section.add "X-Amz-Algorithm", valid_617828 - var valid_617829 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617828 + var valid_617829 = header.getOrDefault("X-Amz-Security-Token") valid_617829 = validateParameter(valid_617829, JString, required = false, default = nil) if valid_617829 != nil: - section.add "X-Amz-SignedHeaders", valid_617829 + section.add "X-Amz-Security-Token", valid_617829 + var valid_617830 = header.getOrDefault("X-Amz-Algorithm") + valid_617830 = validateParameter(valid_617830, JString, required = false, + default = nil) + if valid_617830 != nil: + section.add "X-Amz-Algorithm", valid_617830 + var valid_617831 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617831 = validateParameter(valid_617831, JString, required = false, + default = nil) + if valid_617831 != nil: + section.add "X-Amz-SignedHeaders", valid_617831 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -55030,47 +55057,47 @@ proc validate_PostDescribeElasticGpus_617819(path: JsonNode; query: JsonNode; ## Filter: JArray ## :

The filters.

section = newJObject() - var valid_617830 = formData.getOrDefault("NextToken") - valid_617830 = validateParameter(valid_617830, JString, required = false, + var valid_617832 = formData.getOrDefault("NextToken") + valid_617832 = validateParameter(valid_617832, JString, required = false, default = nil) - if valid_617830 != nil: - section.add "NextToken", valid_617830 - var valid_617831 = formData.getOrDefault("ElasticGpuId") - valid_617831 = validateParameter(valid_617831, JArray, required = false, - default = nil) - if valid_617831 != nil: - section.add "ElasticGpuId", valid_617831 - var valid_617832 = formData.getOrDefault("DryRun") - valid_617832 = validateParameter(valid_617832, JBool, required = false, default = nil) if valid_617832 != nil: - section.add "DryRun", valid_617832 - var valid_617833 = formData.getOrDefault("MaxResults") - valid_617833 = validateParameter(valid_617833, JInt, required = false, default = nil) - if valid_617833 != nil: - section.add "MaxResults", valid_617833 - var valid_617834 = formData.getOrDefault("Filter") - valid_617834 = validateParameter(valid_617834, JArray, required = false, + section.add "NextToken", valid_617832 + var valid_617833 = formData.getOrDefault("ElasticGpuId") + valid_617833 = validateParameter(valid_617833, JArray, required = false, default = nil) + if valid_617833 != nil: + section.add "ElasticGpuId", valid_617833 + var valid_617834 = formData.getOrDefault("DryRun") + valid_617834 = validateParameter(valid_617834, JBool, required = false, default = nil) if valid_617834 != nil: - section.add "Filter", valid_617834 + section.add "DryRun", valid_617834 + var valid_617835 = formData.getOrDefault("MaxResults") + valid_617835 = validateParameter(valid_617835, JInt, required = false, default = nil) + if valid_617835 != nil: + section.add "MaxResults", valid_617835 + var valid_617836 = formData.getOrDefault("Filter") + valid_617836 = validateParameter(valid_617836, JArray, required = false, + default = nil) + if valid_617836 != nil: + section.add "Filter", valid_617836 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617835: Call_PostDescribeElasticGpus_617818; path: JsonNode; +proc call*(call_617837: Call_PostDescribeElasticGpus_617820; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the Elastic Graphics accelerator associated with your instances. For more information about Elastic Graphics, see Amazon Elastic Graphics. ## - let valid = call_617835.validator(path, query, header, formData, body) - let scheme = call_617835.pickScheme + let valid = call_617837.validator(path, query, header, formData, body) + let scheme = call_617837.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617835.url(scheme.get, call_617835.host, call_617835.base, - call_617835.route, valid.getOrDefault("path"), + let url = call_617837.url(scheme.get, call_617837.host, call_617837.base, + call_617837.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617835, url, valid) + result = atozHook(call_617837, url, valid) -proc call*(call_617836: Call_PostDescribeElasticGpus_617818; +proc call*(call_617838: Call_PostDescribeElasticGpus_617820; NextToken: string = ""; ElasticGpuId: JsonNode = nil; DryRun: bool = false; Action: string = "DescribeElasticGpus"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -55088,27 +55115,27 @@ proc call*(call_617836: Call_PostDescribeElasticGpus_617818; ## : The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value. This value can be between 5 and 1000. ## Filter: JArray ## :

The filters.

- var query_617837 = newJObject() - var formData_617838 = newJObject() - add(formData_617838, "NextToken", newJString(NextToken)) + var query_617839 = newJObject() + var formData_617840 = newJObject() + add(formData_617840, "NextToken", newJString(NextToken)) if ElasticGpuId != nil: - formData_617838.add "ElasticGpuId", ElasticGpuId - add(formData_617838, "DryRun", newJBool(DryRun)) - add(query_617837, "Action", newJString(Action)) - add(query_617837, "Version", newJString(Version)) - add(formData_617838, "MaxResults", newJInt(MaxResults)) + formData_617840.add "ElasticGpuId", ElasticGpuId + add(formData_617840, "DryRun", newJBool(DryRun)) + add(query_617839, "Action", newJString(Action)) + add(query_617839, "Version", newJString(Version)) + add(formData_617840, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_617838.add "Filter", Filter - result = call_617836.call(nil, query_617837, nil, formData_617838, nil) + formData_617840.add "Filter", Filter + result = call_617838.call(nil, query_617839, nil, formData_617840, nil) -var postDescribeElasticGpus* = Call_PostDescribeElasticGpus_617818( +var postDescribeElasticGpus* = Call_PostDescribeElasticGpus_617820( name: "postDescribeElasticGpus", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeElasticGpus", - validator: validate_PostDescribeElasticGpus_617819, base: "/", - url: url_PostDescribeElasticGpus_617820, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDescribeElasticGpus_617821, base: "/", + url: url_PostDescribeElasticGpus_617822, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeElasticGpus_617798 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeElasticGpus_617800(protocol: Scheme; host: string; base: string; + Call_GetDescribeElasticGpus_617800 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeElasticGpus_617802(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -55118,7 +55145,7 @@ proc url_GetDescribeElasticGpus_617800(protocol: Scheme; host: string; base: str else: result.path = base & route -proc validate_GetDescribeElasticGpus_617799(path: JsonNode; query: JsonNode; +proc validate_GetDescribeElasticGpus_617801(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the Elastic Graphics accelerator associated with your instances. For more information about Elastic Graphics, see Amazon Elastic Graphics. ## @@ -55140,39 +55167,39 @@ proc validate_GetDescribeElasticGpus_617799(path: JsonNode; query: JsonNode; ## : The Elastic Graphics accelerator IDs. ## Version: JString (required) section = newJObject() - var valid_617801 = query.getOrDefault("MaxResults") - valid_617801 = validateParameter(valid_617801, JInt, required = false, default = nil) - if valid_617801 != nil: - section.add "MaxResults", valid_617801 - var valid_617802 = query.getOrDefault("DryRun") - valid_617802 = validateParameter(valid_617802, JBool, required = false, default = nil) - if valid_617802 != nil: - section.add "DryRun", valid_617802 - var valid_617803 = query.getOrDefault("NextToken") - valid_617803 = validateParameter(valid_617803, JString, required = false, - default = nil) + var valid_617803 = query.getOrDefault("MaxResults") + valid_617803 = validateParameter(valid_617803, JInt, required = false, default = nil) if valid_617803 != nil: - section.add "NextToken", valid_617803 - var valid_617804 = query.getOrDefault("Filter") - valid_617804 = validateParameter(valid_617804, JArray, required = false, - default = nil) + section.add "MaxResults", valid_617803 + var valid_617804 = query.getOrDefault("DryRun") + valid_617804 = validateParameter(valid_617804, JBool, required = false, default = nil) if valid_617804 != nil: - section.add "Filter", valid_617804 - var valid_617805 = query.getOrDefault("Action") - valid_617805 = validateParameter(valid_617805, JString, required = true, - default = newJString("DescribeElasticGpus")) + section.add "DryRun", valid_617804 + var valid_617805 = query.getOrDefault("NextToken") + valid_617805 = validateParameter(valid_617805, JString, required = false, + default = nil) if valid_617805 != nil: - section.add "Action", valid_617805 - var valid_617806 = query.getOrDefault("ElasticGpuId") + section.add "NextToken", valid_617805 + var valid_617806 = query.getOrDefault("Filter") valid_617806 = validateParameter(valid_617806, JArray, required = false, default = nil) if valid_617806 != nil: - section.add "ElasticGpuId", valid_617806 - var valid_617807 = query.getOrDefault("Version") + section.add "Filter", valid_617806 + var valid_617807 = query.getOrDefault("Action") valid_617807 = validateParameter(valid_617807, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("DescribeElasticGpus")) if valid_617807 != nil: - section.add "Version", valid_617807 + section.add "Action", valid_617807 + var valid_617808 = query.getOrDefault("ElasticGpuId") + valid_617808 = validateParameter(valid_617808, JArray, required = false, + default = nil) + if valid_617808 != nil: + section.add "ElasticGpuId", valid_617808 + var valid_617809 = query.getOrDefault("Version") + valid_617809 = validateParameter(valid_617809, JString, required = true, + default = newJString("2016-11-15")) + if valid_617809 != nil: + section.add "Version", valid_617809 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -55183,61 +55210,61 @@ proc validate_GetDescribeElasticGpus_617799(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617808 = header.getOrDefault("X-Amz-Signature") - valid_617808 = validateParameter(valid_617808, JString, required = false, - default = nil) - if valid_617808 != nil: - section.add "X-Amz-Signature", valid_617808 - var valid_617809 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617809 = validateParameter(valid_617809, JString, required = false, - default = nil) - if valid_617809 != nil: - section.add "X-Amz-Content-Sha256", valid_617809 - var valid_617810 = header.getOrDefault("X-Amz-Date") + var valid_617810 = header.getOrDefault("X-Amz-Signature") valid_617810 = validateParameter(valid_617810, JString, required = false, default = nil) if valid_617810 != nil: - section.add "X-Amz-Date", valid_617810 - var valid_617811 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617810 + var valid_617811 = header.getOrDefault("X-Amz-Content-Sha256") valid_617811 = validateParameter(valid_617811, JString, required = false, default = nil) if valid_617811 != nil: - section.add "X-Amz-Credential", valid_617811 - var valid_617812 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617811 + var valid_617812 = header.getOrDefault("X-Amz-Date") valid_617812 = validateParameter(valid_617812, JString, required = false, default = nil) if valid_617812 != nil: - section.add "X-Amz-Security-Token", valid_617812 - var valid_617813 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617812 + var valid_617813 = header.getOrDefault("X-Amz-Credential") valid_617813 = validateParameter(valid_617813, JString, required = false, default = nil) if valid_617813 != nil: - section.add "X-Amz-Algorithm", valid_617813 - var valid_617814 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617813 + var valid_617814 = header.getOrDefault("X-Amz-Security-Token") valid_617814 = validateParameter(valid_617814, JString, required = false, default = nil) if valid_617814 != nil: - section.add "X-Amz-SignedHeaders", valid_617814 + section.add "X-Amz-Security-Token", valid_617814 + var valid_617815 = header.getOrDefault("X-Amz-Algorithm") + valid_617815 = validateParameter(valid_617815, JString, required = false, + default = nil) + if valid_617815 != nil: + section.add "X-Amz-Algorithm", valid_617815 + var valid_617816 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617816 = validateParameter(valid_617816, JString, required = false, + default = nil) + if valid_617816 != nil: + section.add "X-Amz-SignedHeaders", valid_617816 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617815: Call_GetDescribeElasticGpus_617798; path: JsonNode; +proc call*(call_617817: Call_GetDescribeElasticGpus_617800; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the Elastic Graphics accelerator associated with your instances. For more information about Elastic Graphics, see Amazon Elastic Graphics. ## - let valid = call_617815.validator(path, query, header, formData, body) - let scheme = call_617815.pickScheme + let valid = call_617817.validator(path, query, header, formData, body) + let scheme = call_617817.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617815.url(scheme.get, call_617815.host, call_617815.base, - call_617815.route, valid.getOrDefault("path"), + let url = call_617817.url(scheme.get, call_617817.host, call_617817.base, + call_617817.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617815, url, valid) + result = atozHook(call_617817, url, valid) -proc call*(call_617816: Call_GetDescribeElasticGpus_617798; MaxResults: int = 0; +proc call*(call_617818: Call_GetDescribeElasticGpus_617800; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeElasticGpus"; ElasticGpuId: JsonNode = nil; Version: string = "2016-11-15"): Recallable = @@ -55255,26 +55282,26 @@ proc call*(call_617816: Call_GetDescribeElasticGpus_617798; MaxResults: int = 0; ## ElasticGpuId: JArray ## : The Elastic Graphics accelerator IDs. ## Version: string (required) - var query_617817 = newJObject() - add(query_617817, "MaxResults", newJInt(MaxResults)) - add(query_617817, "DryRun", newJBool(DryRun)) - add(query_617817, "NextToken", newJString(NextToken)) + var query_617819 = newJObject() + add(query_617819, "MaxResults", newJInt(MaxResults)) + add(query_617819, "DryRun", newJBool(DryRun)) + add(query_617819, "NextToken", newJString(NextToken)) if Filter != nil: - query_617817.add "Filter", Filter - add(query_617817, "Action", newJString(Action)) + query_617819.add "Filter", Filter + add(query_617819, "Action", newJString(Action)) if ElasticGpuId != nil: - query_617817.add "ElasticGpuId", ElasticGpuId - add(query_617817, "Version", newJString(Version)) - result = call_617816.call(nil, query_617817, nil, nil, nil) + query_617819.add "ElasticGpuId", ElasticGpuId + add(query_617819, "Version", newJString(Version)) + result = call_617818.call(nil, query_617819, nil, nil, nil) -var getDescribeElasticGpus* = Call_GetDescribeElasticGpus_617798( +var getDescribeElasticGpus* = Call_GetDescribeElasticGpus_617800( name: "getDescribeElasticGpus", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeElasticGpus", - validator: validate_GetDescribeElasticGpus_617799, base: "/", - url: url_GetDescribeElasticGpus_617800, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDescribeElasticGpus_617801, base: "/", + url: url_GetDescribeElasticGpus_617802, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeExportImageTasks_617859 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeExportImageTasks_617861(protocol: Scheme; host: string; + Call_PostDescribeExportImageTasks_617861 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeExportImageTasks_617863(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -55284,7 +55311,7 @@ proc url_PostDescribeExportImageTasks_617861(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeExportImageTasks_617860(path: JsonNode; query: JsonNode; +proc validate_PostDescribeExportImageTasks_617862(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the specified export image tasks or all your export image tasks. ## @@ -55296,16 +55323,16 @@ proc validate_PostDescribeExportImageTasks_617860(path: JsonNode; query: JsonNod ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617862 = query.getOrDefault("Action") - valid_617862 = validateParameter(valid_617862, JString, required = true, default = newJString( + var valid_617864 = query.getOrDefault("Action") + valid_617864 = validateParameter(valid_617864, JString, required = true, default = newJString( "DescribeExportImageTasks")) - if valid_617862 != nil: - section.add "Action", valid_617862 - var valid_617863 = query.getOrDefault("Version") - valid_617863 = validateParameter(valid_617863, JString, required = true, + if valid_617864 != nil: + section.add "Action", valid_617864 + var valid_617865 = query.getOrDefault("Version") + valid_617865 = validateParameter(valid_617865, JString, required = true, default = newJString("2016-11-15")) - if valid_617863 != nil: - section.add "Version", valid_617863 + if valid_617865 != nil: + section.add "Version", valid_617865 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -55316,41 +55343,41 @@ proc validate_PostDescribeExportImageTasks_617860(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617864 = header.getOrDefault("X-Amz-Signature") - valid_617864 = validateParameter(valid_617864, JString, required = false, - default = nil) - if valid_617864 != nil: - section.add "X-Amz-Signature", valid_617864 - var valid_617865 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617865 = validateParameter(valid_617865, JString, required = false, - default = nil) - if valid_617865 != nil: - section.add "X-Amz-Content-Sha256", valid_617865 - var valid_617866 = header.getOrDefault("X-Amz-Date") + var valid_617866 = header.getOrDefault("X-Amz-Signature") valid_617866 = validateParameter(valid_617866, JString, required = false, default = nil) if valid_617866 != nil: - section.add "X-Amz-Date", valid_617866 - var valid_617867 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617866 + var valid_617867 = header.getOrDefault("X-Amz-Content-Sha256") valid_617867 = validateParameter(valid_617867, JString, required = false, default = nil) if valid_617867 != nil: - section.add "X-Amz-Credential", valid_617867 - var valid_617868 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617867 + var valid_617868 = header.getOrDefault("X-Amz-Date") valid_617868 = validateParameter(valid_617868, JString, required = false, default = nil) if valid_617868 != nil: - section.add "X-Amz-Security-Token", valid_617868 - var valid_617869 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617868 + var valid_617869 = header.getOrDefault("X-Amz-Credential") valid_617869 = validateParameter(valid_617869, JString, required = false, default = nil) if valid_617869 != nil: - section.add "X-Amz-Algorithm", valid_617869 - var valid_617870 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617869 + var valid_617870 = header.getOrDefault("X-Amz-Security-Token") valid_617870 = validateParameter(valid_617870, JString, required = false, default = nil) if valid_617870 != nil: - section.add "X-Amz-SignedHeaders", valid_617870 + section.add "X-Amz-Security-Token", valid_617870 + var valid_617871 = header.getOrDefault("X-Amz-Algorithm") + valid_617871 = validateParameter(valid_617871, JString, required = false, + default = nil) + if valid_617871 != nil: + section.add "X-Amz-Algorithm", valid_617871 + var valid_617872 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617872 = validateParameter(valid_617872, JString, required = false, + default = nil) + if valid_617872 != nil: + section.add "X-Amz-SignedHeaders", valid_617872 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -55364,47 +55391,47 @@ proc validate_PostDescribeExportImageTasks_617860(path: JsonNode; query: JsonNod ## Filter: JArray ## : Filter tasks using the task-state filter and one of the following values: active, completed, deleting, or deleted. section = newJObject() - var valid_617871 = formData.getOrDefault("NextToken") - valid_617871 = validateParameter(valid_617871, JString, required = false, - default = nil) - if valid_617871 != nil: - section.add "NextToken", valid_617871 - var valid_617872 = formData.getOrDefault("ExportImageTaskId") - valid_617872 = validateParameter(valid_617872, JArray, required = false, + var valid_617873 = formData.getOrDefault("NextToken") + valid_617873 = validateParameter(valid_617873, JString, required = false, default = nil) - if valid_617872 != nil: - section.add "ExportImageTaskId", valid_617872 - var valid_617873 = formData.getOrDefault("DryRun") - valid_617873 = validateParameter(valid_617873, JBool, required = false, default = nil) if valid_617873 != nil: - section.add "DryRun", valid_617873 - var valid_617874 = formData.getOrDefault("MaxResults") - valid_617874 = validateParameter(valid_617874, JInt, required = false, default = nil) - if valid_617874 != nil: - section.add "MaxResults", valid_617874 - var valid_617875 = formData.getOrDefault("Filter") - valid_617875 = validateParameter(valid_617875, JArray, required = false, + section.add "NextToken", valid_617873 + var valid_617874 = formData.getOrDefault("ExportImageTaskId") + valid_617874 = validateParameter(valid_617874, JArray, required = false, default = nil) + if valid_617874 != nil: + section.add "ExportImageTaskId", valid_617874 + var valid_617875 = formData.getOrDefault("DryRun") + valid_617875 = validateParameter(valid_617875, JBool, required = false, default = nil) if valid_617875 != nil: - section.add "Filter", valid_617875 + section.add "DryRun", valid_617875 + var valid_617876 = formData.getOrDefault("MaxResults") + valid_617876 = validateParameter(valid_617876, JInt, required = false, default = nil) + if valid_617876 != nil: + section.add "MaxResults", valid_617876 + var valid_617877 = formData.getOrDefault("Filter") + valid_617877 = validateParameter(valid_617877, JArray, required = false, + default = nil) + if valid_617877 != nil: + section.add "Filter", valid_617877 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617876: Call_PostDescribeExportImageTasks_617859; path: JsonNode; +proc call*(call_617878: Call_PostDescribeExportImageTasks_617861; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the specified export image tasks or all your export image tasks. ## - let valid = call_617876.validator(path, query, header, formData, body) - let scheme = call_617876.pickScheme + let valid = call_617878.validator(path, query, header, formData, body) + let scheme = call_617878.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617876.url(scheme.get, call_617876.host, call_617876.base, - call_617876.route, valid.getOrDefault("path"), + let url = call_617878.url(scheme.get, call_617878.host, call_617878.base, + call_617878.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617876, url, valid) + result = atozHook(call_617878, url, valid) -proc call*(call_617877: Call_PostDescribeExportImageTasks_617859; +proc call*(call_617879: Call_PostDescribeExportImageTasks_617861; NextToken: string = ""; ExportImageTaskId: JsonNode = nil; DryRun: bool = false; Action: string = "DescribeExportImageTasks"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -55422,28 +55449,28 @@ proc call*(call_617877: Call_PostDescribeExportImageTasks_617859; ## : The maximum number of results to return in a single call. ## Filter: JArray ## : Filter tasks using the task-state filter and one of the following values: active, completed, deleting, or deleted. - var query_617878 = newJObject() - var formData_617879 = newJObject() - add(formData_617879, "NextToken", newJString(NextToken)) + var query_617880 = newJObject() + var formData_617881 = newJObject() + add(formData_617881, "NextToken", newJString(NextToken)) if ExportImageTaskId != nil: - formData_617879.add "ExportImageTaskId", ExportImageTaskId - add(formData_617879, "DryRun", newJBool(DryRun)) - add(query_617878, "Action", newJString(Action)) - add(query_617878, "Version", newJString(Version)) - add(formData_617879, "MaxResults", newJInt(MaxResults)) + formData_617881.add "ExportImageTaskId", ExportImageTaskId + add(formData_617881, "DryRun", newJBool(DryRun)) + add(query_617880, "Action", newJString(Action)) + add(query_617880, "Version", newJString(Version)) + add(formData_617881, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_617879.add "Filter", Filter - result = call_617877.call(nil, query_617878, nil, formData_617879, nil) + formData_617881.add "Filter", Filter + result = call_617879.call(nil, query_617880, nil, formData_617881, nil) -var postDescribeExportImageTasks* = Call_PostDescribeExportImageTasks_617859( +var postDescribeExportImageTasks* = Call_PostDescribeExportImageTasks_617861( name: "postDescribeExportImageTasks", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeExportImageTasks", - validator: validate_PostDescribeExportImageTasks_617860, base: "/", - url: url_PostDescribeExportImageTasks_617861, + validator: validate_PostDescribeExportImageTasks_617862, base: "/", + url: url_PostDescribeExportImageTasks_617863, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeExportImageTasks_617839 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeExportImageTasks_617841(protocol: Scheme; host: string; + Call_GetDescribeExportImageTasks_617841 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeExportImageTasks_617843(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -55453,7 +55480,7 @@ proc url_GetDescribeExportImageTasks_617841(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeExportImageTasks_617840(path: JsonNode; query: JsonNode; +proc validate_GetDescribeExportImageTasks_617842(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the specified export image tasks or all your export image tasks. ## @@ -55475,39 +55502,39 @@ proc validate_GetDescribeExportImageTasks_617840(path: JsonNode; query: JsonNode ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617842 = query.getOrDefault("MaxResults") - valid_617842 = validateParameter(valid_617842, JInt, required = false, default = nil) - if valid_617842 != nil: - section.add "MaxResults", valid_617842 - var valid_617843 = query.getOrDefault("ExportImageTaskId") - valid_617843 = validateParameter(valid_617843, JArray, required = false, - default = nil) - if valid_617843 != nil: - section.add "ExportImageTaskId", valid_617843 - var valid_617844 = query.getOrDefault("DryRun") - valid_617844 = validateParameter(valid_617844, JBool, required = false, default = nil) + var valid_617844 = query.getOrDefault("MaxResults") + valid_617844 = validateParameter(valid_617844, JInt, required = false, default = nil) if valid_617844 != nil: - section.add "DryRun", valid_617844 - var valid_617845 = query.getOrDefault("NextToken") - valid_617845 = validateParameter(valid_617845, JString, required = false, + section.add "MaxResults", valid_617844 + var valid_617845 = query.getOrDefault("ExportImageTaskId") + valid_617845 = validateParameter(valid_617845, JArray, required = false, default = nil) if valid_617845 != nil: - section.add "NextToken", valid_617845 - var valid_617846 = query.getOrDefault("Filter") - valid_617846 = validateParameter(valid_617846, JArray, required = false, - default = nil) + section.add "ExportImageTaskId", valid_617845 + var valid_617846 = query.getOrDefault("DryRun") + valid_617846 = validateParameter(valid_617846, JBool, required = false, default = nil) if valid_617846 != nil: - section.add "Filter", valid_617846 - var valid_617847 = query.getOrDefault("Action") - valid_617847 = validateParameter(valid_617847, JString, required = true, default = newJString( - "DescribeExportImageTasks")) + section.add "DryRun", valid_617846 + var valid_617847 = query.getOrDefault("NextToken") + valid_617847 = validateParameter(valid_617847, JString, required = false, + default = nil) if valid_617847 != nil: - section.add "Action", valid_617847 - var valid_617848 = query.getOrDefault("Version") - valid_617848 = validateParameter(valid_617848, JString, required = true, - default = newJString("2016-11-15")) + section.add "NextToken", valid_617847 + var valid_617848 = query.getOrDefault("Filter") + valid_617848 = validateParameter(valid_617848, JArray, required = false, + default = nil) if valid_617848 != nil: - section.add "Version", valid_617848 + section.add "Filter", valid_617848 + var valid_617849 = query.getOrDefault("Action") + valid_617849 = validateParameter(valid_617849, JString, required = true, default = newJString( + "DescribeExportImageTasks")) + if valid_617849 != nil: + section.add "Action", valid_617849 + var valid_617850 = query.getOrDefault("Version") + valid_617850 = validateParameter(valid_617850, JString, required = true, + default = newJString("2016-11-15")) + if valid_617850 != nil: + section.add "Version", valid_617850 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -55518,61 +55545,61 @@ proc validate_GetDescribeExportImageTasks_617840(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617849 = header.getOrDefault("X-Amz-Signature") - valid_617849 = validateParameter(valid_617849, JString, required = false, - default = nil) - if valid_617849 != nil: - section.add "X-Amz-Signature", valid_617849 - var valid_617850 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617850 = validateParameter(valid_617850, JString, required = false, - default = nil) - if valid_617850 != nil: - section.add "X-Amz-Content-Sha256", valid_617850 - var valid_617851 = header.getOrDefault("X-Amz-Date") + var valid_617851 = header.getOrDefault("X-Amz-Signature") valid_617851 = validateParameter(valid_617851, JString, required = false, default = nil) if valid_617851 != nil: - section.add "X-Amz-Date", valid_617851 - var valid_617852 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617851 + var valid_617852 = header.getOrDefault("X-Amz-Content-Sha256") valid_617852 = validateParameter(valid_617852, JString, required = false, default = nil) if valid_617852 != nil: - section.add "X-Amz-Credential", valid_617852 - var valid_617853 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617852 + var valid_617853 = header.getOrDefault("X-Amz-Date") valid_617853 = validateParameter(valid_617853, JString, required = false, default = nil) if valid_617853 != nil: - section.add "X-Amz-Security-Token", valid_617853 - var valid_617854 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617853 + var valid_617854 = header.getOrDefault("X-Amz-Credential") valid_617854 = validateParameter(valid_617854, JString, required = false, default = nil) if valid_617854 != nil: - section.add "X-Amz-Algorithm", valid_617854 - var valid_617855 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617854 + var valid_617855 = header.getOrDefault("X-Amz-Security-Token") valid_617855 = validateParameter(valid_617855, JString, required = false, default = nil) if valid_617855 != nil: - section.add "X-Amz-SignedHeaders", valid_617855 + section.add "X-Amz-Security-Token", valid_617855 + var valid_617856 = header.getOrDefault("X-Amz-Algorithm") + valid_617856 = validateParameter(valid_617856, JString, required = false, + default = nil) + if valid_617856 != nil: + section.add "X-Amz-Algorithm", valid_617856 + var valid_617857 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617857 = validateParameter(valid_617857, JString, required = false, + default = nil) + if valid_617857 != nil: + section.add "X-Amz-SignedHeaders", valid_617857 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617856: Call_GetDescribeExportImageTasks_617839; path: JsonNode; +proc call*(call_617858: Call_GetDescribeExportImageTasks_617841; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the specified export image tasks or all your export image tasks. ## - let valid = call_617856.validator(path, query, header, formData, body) - let scheme = call_617856.pickScheme + let valid = call_617858.validator(path, query, header, formData, body) + let scheme = call_617858.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617856.url(scheme.get, call_617856.host, call_617856.base, - call_617856.route, valid.getOrDefault("path"), + let url = call_617858.url(scheme.get, call_617858.host, call_617858.base, + call_617858.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617856, url, valid) + result = atozHook(call_617858, url, valid) -proc call*(call_617857: Call_GetDescribeExportImageTasks_617839; +proc call*(call_617859: Call_GetDescribeExportImageTasks_617841; MaxResults: int = 0; ExportImageTaskId: JsonNode = nil; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeExportImageTasks"; @@ -55591,27 +55618,27 @@ proc call*(call_617857: Call_GetDescribeExportImageTasks_617839; ## : Filter tasks using the task-state filter and one of the following values: active, completed, deleting, or deleted. ## Action: string (required) ## Version: string (required) - var query_617858 = newJObject() - add(query_617858, "MaxResults", newJInt(MaxResults)) + var query_617860 = newJObject() + add(query_617860, "MaxResults", newJInt(MaxResults)) if ExportImageTaskId != nil: - query_617858.add "ExportImageTaskId", ExportImageTaskId - add(query_617858, "DryRun", newJBool(DryRun)) - add(query_617858, "NextToken", newJString(NextToken)) + query_617860.add "ExportImageTaskId", ExportImageTaskId + add(query_617860, "DryRun", newJBool(DryRun)) + add(query_617860, "NextToken", newJString(NextToken)) if Filter != nil: - query_617858.add "Filter", Filter - add(query_617858, "Action", newJString(Action)) - add(query_617858, "Version", newJString(Version)) - result = call_617857.call(nil, query_617858, nil, nil, nil) + query_617860.add "Filter", Filter + add(query_617860, "Action", newJString(Action)) + add(query_617860, "Version", newJString(Version)) + result = call_617859.call(nil, query_617860, nil, nil, nil) -var getDescribeExportImageTasks* = Call_GetDescribeExportImageTasks_617839( +var getDescribeExportImageTasks* = Call_GetDescribeExportImageTasks_617841( name: "getDescribeExportImageTasks", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeExportImageTasks", - validator: validate_GetDescribeExportImageTasks_617840, base: "/", - url: url_GetDescribeExportImageTasks_617841, + validator: validate_GetDescribeExportImageTasks_617842, base: "/", + url: url_GetDescribeExportImageTasks_617843, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeExportTasks_617897 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeExportTasks_617899(protocol: Scheme; host: string; base: string; + Call_PostDescribeExportTasks_617899 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeExportTasks_617901(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -55622,7 +55649,7 @@ proc url_PostDescribeExportTasks_617899(protocol: Scheme; host: string; base: st else: result.path = base & route -proc validate_PostDescribeExportTasks_617898(path: JsonNode; query: JsonNode; +proc validate_PostDescribeExportTasks_617900(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the specified export instance tasks or all your export instance tasks. ## @@ -55634,16 +55661,16 @@ proc validate_PostDescribeExportTasks_617898(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617900 = query.getOrDefault("Action") - valid_617900 = validateParameter(valid_617900, JString, required = true, + var valid_617902 = query.getOrDefault("Action") + valid_617902 = validateParameter(valid_617902, JString, required = true, default = newJString("DescribeExportTasks")) - if valid_617900 != nil: - section.add "Action", valid_617900 - var valid_617901 = query.getOrDefault("Version") - valid_617901 = validateParameter(valid_617901, JString, required = true, + if valid_617902 != nil: + section.add "Action", valid_617902 + var valid_617903 = query.getOrDefault("Version") + valid_617903 = validateParameter(valid_617903, JString, required = true, default = newJString("2016-11-15")) - if valid_617901 != nil: - section.add "Version", valid_617901 + if valid_617903 != nil: + section.add "Version", valid_617903 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -55654,41 +55681,41 @@ proc validate_PostDescribeExportTasks_617898(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617902 = header.getOrDefault("X-Amz-Signature") - valid_617902 = validateParameter(valid_617902, JString, required = false, - default = nil) - if valid_617902 != nil: - section.add "X-Amz-Signature", valid_617902 - var valid_617903 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617903 = validateParameter(valid_617903, JString, required = false, - default = nil) - if valid_617903 != nil: - section.add "X-Amz-Content-Sha256", valid_617903 - var valid_617904 = header.getOrDefault("X-Amz-Date") + var valid_617904 = header.getOrDefault("X-Amz-Signature") valid_617904 = validateParameter(valid_617904, JString, required = false, default = nil) if valid_617904 != nil: - section.add "X-Amz-Date", valid_617904 - var valid_617905 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617904 + var valid_617905 = header.getOrDefault("X-Amz-Content-Sha256") valid_617905 = validateParameter(valid_617905, JString, required = false, default = nil) if valid_617905 != nil: - section.add "X-Amz-Credential", valid_617905 - var valid_617906 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617905 + var valid_617906 = header.getOrDefault("X-Amz-Date") valid_617906 = validateParameter(valid_617906, JString, required = false, default = nil) if valid_617906 != nil: - section.add "X-Amz-Security-Token", valid_617906 - var valid_617907 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617906 + var valid_617907 = header.getOrDefault("X-Amz-Credential") valid_617907 = validateParameter(valid_617907, JString, required = false, default = nil) if valid_617907 != nil: - section.add "X-Amz-Algorithm", valid_617907 - var valid_617908 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617907 + var valid_617908 = header.getOrDefault("X-Amz-Security-Token") valid_617908 = validateParameter(valid_617908, JString, required = false, default = nil) if valid_617908 != nil: - section.add "X-Amz-SignedHeaders", valid_617908 + section.add "X-Amz-Security-Token", valid_617908 + var valid_617909 = header.getOrDefault("X-Amz-Algorithm") + valid_617909 = validateParameter(valid_617909, JString, required = false, + default = nil) + if valid_617909 != nil: + section.add "X-Amz-Algorithm", valid_617909 + var valid_617910 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617910 = validateParameter(valid_617910, JString, required = false, + default = nil) + if valid_617910 != nil: + section.add "X-Amz-SignedHeaders", valid_617910 result.add "header", section ## parameters in `formData` object: ## ExportTaskId: JArray @@ -55696,34 +55723,34 @@ proc validate_PostDescribeExportTasks_617898(path: JsonNode; query: JsonNode; ## Filter: JArray ## : the filters for the export tasks. section = newJObject() - var valid_617909 = formData.getOrDefault("ExportTaskId") - valid_617909 = validateParameter(valid_617909, JArray, required = false, + var valid_617911 = formData.getOrDefault("ExportTaskId") + valid_617911 = validateParameter(valid_617911, JArray, required = false, default = nil) - if valid_617909 != nil: - section.add "ExportTaskId", valid_617909 - var valid_617910 = formData.getOrDefault("Filter") - valid_617910 = validateParameter(valid_617910, JArray, required = false, + if valid_617911 != nil: + section.add "ExportTaskId", valid_617911 + var valid_617912 = formData.getOrDefault("Filter") + valid_617912 = validateParameter(valid_617912, JArray, required = false, default = nil) - if valid_617910 != nil: - section.add "Filter", valid_617910 + if valid_617912 != nil: + section.add "Filter", valid_617912 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617911: Call_PostDescribeExportTasks_617897; path: JsonNode; +proc call*(call_617913: Call_PostDescribeExportTasks_617899; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the specified export instance tasks or all your export instance tasks. ## - let valid = call_617911.validator(path, query, header, formData, body) - let scheme = call_617911.pickScheme + let valid = call_617913.validator(path, query, header, formData, body) + let scheme = call_617913.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617911.url(scheme.get, call_617911.host, call_617911.base, - call_617911.route, valid.getOrDefault("path"), + let url = call_617913.url(scheme.get, call_617913.host, call_617913.base, + call_617913.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617911, url, valid) + result = atozHook(call_617913, url, valid) -proc call*(call_617912: Call_PostDescribeExportTasks_617897; +proc call*(call_617914: Call_PostDescribeExportTasks_617899; ExportTaskId: JsonNode = nil; Action: string = "DescribeExportTasks"; Version: string = "2016-11-15"; Filter: JsonNode = nil): Recallable = ## postDescribeExportTasks @@ -55734,24 +55761,24 @@ proc call*(call_617912: Call_PostDescribeExportTasks_617897; ## Version: string (required) ## Filter: JArray ## : the filters for the export tasks. - var query_617913 = newJObject() - var formData_617914 = newJObject() + var query_617915 = newJObject() + var formData_617916 = newJObject() if ExportTaskId != nil: - formData_617914.add "ExportTaskId", ExportTaskId - add(query_617913, "Action", newJString(Action)) - add(query_617913, "Version", newJString(Version)) + formData_617916.add "ExportTaskId", ExportTaskId + add(query_617915, "Action", newJString(Action)) + add(query_617915, "Version", newJString(Version)) if Filter != nil: - formData_617914.add "Filter", Filter - result = call_617912.call(nil, query_617913, nil, formData_617914, nil) + formData_617916.add "Filter", Filter + result = call_617914.call(nil, query_617915, nil, formData_617916, nil) -var postDescribeExportTasks* = Call_PostDescribeExportTasks_617897( +var postDescribeExportTasks* = Call_PostDescribeExportTasks_617899( name: "postDescribeExportTasks", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeExportTasks", - validator: validate_PostDescribeExportTasks_617898, base: "/", - url: url_PostDescribeExportTasks_617899, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDescribeExportTasks_617900, base: "/", + url: url_PostDescribeExportTasks_617901, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeExportTasks_617880 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeExportTasks_617882(protocol: Scheme; host: string; base: string; + Call_GetDescribeExportTasks_617882 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeExportTasks_617884(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -55761,7 +55788,7 @@ proc url_GetDescribeExportTasks_617882(protocol: Scheme; host: string; base: str else: result.path = base & route -proc validate_GetDescribeExportTasks_617881(path: JsonNode; query: JsonNode; +proc validate_GetDescribeExportTasks_617883(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the specified export instance tasks or all your export instance tasks. ## @@ -55777,26 +55804,26 @@ proc validate_GetDescribeExportTasks_617881(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617883 = query.getOrDefault("ExportTaskId") - valid_617883 = validateParameter(valid_617883, JArray, required = false, + var valid_617885 = query.getOrDefault("ExportTaskId") + valid_617885 = validateParameter(valid_617885, JArray, required = false, default = nil) - if valid_617883 != nil: - section.add "ExportTaskId", valid_617883 - var valid_617884 = query.getOrDefault("Filter") - valid_617884 = validateParameter(valid_617884, JArray, required = false, + if valid_617885 != nil: + section.add "ExportTaskId", valid_617885 + var valid_617886 = query.getOrDefault("Filter") + valid_617886 = validateParameter(valid_617886, JArray, required = false, default = nil) - if valid_617884 != nil: - section.add "Filter", valid_617884 - var valid_617885 = query.getOrDefault("Action") - valid_617885 = validateParameter(valid_617885, JString, required = true, + if valid_617886 != nil: + section.add "Filter", valid_617886 + var valid_617887 = query.getOrDefault("Action") + valid_617887 = validateParameter(valid_617887, JString, required = true, default = newJString("DescribeExportTasks")) - if valid_617885 != nil: - section.add "Action", valid_617885 - var valid_617886 = query.getOrDefault("Version") - valid_617886 = validateParameter(valid_617886, JString, required = true, + if valid_617887 != nil: + section.add "Action", valid_617887 + var valid_617888 = query.getOrDefault("Version") + valid_617888 = validateParameter(valid_617888, JString, required = true, default = newJString("2016-11-15")) - if valid_617886 != nil: - section.add "Version", valid_617886 + if valid_617888 != nil: + section.add "Version", valid_617888 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -55807,61 +55834,61 @@ proc validate_GetDescribeExportTasks_617881(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617887 = header.getOrDefault("X-Amz-Signature") - valid_617887 = validateParameter(valid_617887, JString, required = false, - default = nil) - if valid_617887 != nil: - section.add "X-Amz-Signature", valid_617887 - var valid_617888 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617888 = validateParameter(valid_617888, JString, required = false, - default = nil) - if valid_617888 != nil: - section.add "X-Amz-Content-Sha256", valid_617888 - var valid_617889 = header.getOrDefault("X-Amz-Date") + var valid_617889 = header.getOrDefault("X-Amz-Signature") valid_617889 = validateParameter(valid_617889, JString, required = false, default = nil) if valid_617889 != nil: - section.add "X-Amz-Date", valid_617889 - var valid_617890 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617889 + var valid_617890 = header.getOrDefault("X-Amz-Content-Sha256") valid_617890 = validateParameter(valid_617890, JString, required = false, default = nil) if valid_617890 != nil: - section.add "X-Amz-Credential", valid_617890 - var valid_617891 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617890 + var valid_617891 = header.getOrDefault("X-Amz-Date") valid_617891 = validateParameter(valid_617891, JString, required = false, default = nil) if valid_617891 != nil: - section.add "X-Amz-Security-Token", valid_617891 - var valid_617892 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617891 + var valid_617892 = header.getOrDefault("X-Amz-Credential") valid_617892 = validateParameter(valid_617892, JString, required = false, default = nil) if valid_617892 != nil: - section.add "X-Amz-Algorithm", valid_617892 - var valid_617893 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617892 + var valid_617893 = header.getOrDefault("X-Amz-Security-Token") valid_617893 = validateParameter(valid_617893, JString, required = false, default = nil) if valid_617893 != nil: - section.add "X-Amz-SignedHeaders", valid_617893 + section.add "X-Amz-Security-Token", valid_617893 + var valid_617894 = header.getOrDefault("X-Amz-Algorithm") + valid_617894 = validateParameter(valid_617894, JString, required = false, + default = nil) + if valid_617894 != nil: + section.add "X-Amz-Algorithm", valid_617894 + var valid_617895 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617895 = validateParameter(valid_617895, JString, required = false, + default = nil) + if valid_617895 != nil: + section.add "X-Amz-SignedHeaders", valid_617895 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617894: Call_GetDescribeExportTasks_617880; path: JsonNode; +proc call*(call_617896: Call_GetDescribeExportTasks_617882; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the specified export instance tasks or all your export instance tasks. ## - let valid = call_617894.validator(path, query, header, formData, body) - let scheme = call_617894.pickScheme + let valid = call_617896.validator(path, query, header, formData, body) + let scheme = call_617896.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617894.url(scheme.get, call_617894.host, call_617894.base, - call_617894.route, valid.getOrDefault("path"), + let url = call_617896.url(scheme.get, call_617896.host, call_617896.base, + call_617896.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617894, url, valid) + result = atozHook(call_617896, url, valid) -proc call*(call_617895: Call_GetDescribeExportTasks_617880; +proc call*(call_617897: Call_GetDescribeExportTasks_617882; ExportTaskId: JsonNode = nil; Filter: JsonNode = nil; Action: string = "DescribeExportTasks"; Version: string = "2016-11-15"): Recallable = ## getDescribeExportTasks @@ -55872,23 +55899,23 @@ proc call*(call_617895: Call_GetDescribeExportTasks_617880; ## : the filters for the export tasks. ## Action: string (required) ## Version: string (required) - var query_617896 = newJObject() + var query_617898 = newJObject() if ExportTaskId != nil: - query_617896.add "ExportTaskId", ExportTaskId + query_617898.add "ExportTaskId", ExportTaskId if Filter != nil: - query_617896.add "Filter", Filter - add(query_617896, "Action", newJString(Action)) - add(query_617896, "Version", newJString(Version)) - result = call_617895.call(nil, query_617896, nil, nil, nil) + query_617898.add "Filter", Filter + add(query_617898, "Action", newJString(Action)) + add(query_617898, "Version", newJString(Version)) + result = call_617897.call(nil, query_617898, nil, nil, nil) -var getDescribeExportTasks* = Call_GetDescribeExportTasks_617880( +var getDescribeExportTasks* = Call_GetDescribeExportTasks_617882( name: "getDescribeExportTasks", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeExportTasks", - validator: validate_GetDescribeExportTasks_617881, base: "/", - url: url_GetDescribeExportTasks_617882, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDescribeExportTasks_617883, base: "/", + url: url_GetDescribeExportTasks_617884, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeFastSnapshotRestores_617934 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeFastSnapshotRestores_617936(protocol: Scheme; host: string; + Call_PostDescribeFastSnapshotRestores_617936 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeFastSnapshotRestores_617938(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -55898,7 +55925,7 @@ proc url_PostDescribeFastSnapshotRestores_617936(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeFastSnapshotRestores_617935(path: JsonNode; +proc validate_PostDescribeFastSnapshotRestores_617937(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the state of fast snapshot restores for your snapshots. ## @@ -55910,16 +55937,16 @@ proc validate_PostDescribeFastSnapshotRestores_617935(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617937 = query.getOrDefault("Action") - valid_617937 = validateParameter(valid_617937, JString, required = true, default = newJString( + var valid_617939 = query.getOrDefault("Action") + valid_617939 = validateParameter(valid_617939, JString, required = true, default = newJString( "DescribeFastSnapshotRestores")) - if valid_617937 != nil: - section.add "Action", valid_617937 - var valid_617938 = query.getOrDefault("Version") - valid_617938 = validateParameter(valid_617938, JString, required = true, + if valid_617939 != nil: + section.add "Action", valid_617939 + var valid_617940 = query.getOrDefault("Version") + valid_617940 = validateParameter(valid_617940, JString, required = true, default = newJString("2016-11-15")) - if valid_617938 != nil: - section.add "Version", valid_617938 + if valid_617940 != nil: + section.add "Version", valid_617940 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -55930,41 +55957,41 @@ proc validate_PostDescribeFastSnapshotRestores_617935(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617939 = header.getOrDefault("X-Amz-Signature") - valid_617939 = validateParameter(valid_617939, JString, required = false, - default = nil) - if valid_617939 != nil: - section.add "X-Amz-Signature", valid_617939 - var valid_617940 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617940 = validateParameter(valid_617940, JString, required = false, - default = nil) - if valid_617940 != nil: - section.add "X-Amz-Content-Sha256", valid_617940 - var valid_617941 = header.getOrDefault("X-Amz-Date") + var valid_617941 = header.getOrDefault("X-Amz-Signature") valid_617941 = validateParameter(valid_617941, JString, required = false, default = nil) if valid_617941 != nil: - section.add "X-Amz-Date", valid_617941 - var valid_617942 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617941 + var valid_617942 = header.getOrDefault("X-Amz-Content-Sha256") valid_617942 = validateParameter(valid_617942, JString, required = false, default = nil) if valid_617942 != nil: - section.add "X-Amz-Credential", valid_617942 - var valid_617943 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617942 + var valid_617943 = header.getOrDefault("X-Amz-Date") valid_617943 = validateParameter(valid_617943, JString, required = false, default = nil) if valid_617943 != nil: - section.add "X-Amz-Security-Token", valid_617943 - var valid_617944 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617943 + var valid_617944 = header.getOrDefault("X-Amz-Credential") valid_617944 = validateParameter(valid_617944, JString, required = false, default = nil) if valid_617944 != nil: - section.add "X-Amz-Algorithm", valid_617944 - var valid_617945 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617944 + var valid_617945 = header.getOrDefault("X-Amz-Security-Token") valid_617945 = validateParameter(valid_617945, JString, required = false, default = nil) if valid_617945 != nil: - section.add "X-Amz-SignedHeaders", valid_617945 + section.add "X-Amz-Security-Token", valid_617945 + var valid_617946 = header.getOrDefault("X-Amz-Algorithm") + valid_617946 = validateParameter(valid_617946, JString, required = false, + default = nil) + if valid_617946 != nil: + section.add "X-Amz-Algorithm", valid_617946 + var valid_617947 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617947 = validateParameter(valid_617947, JString, required = false, + default = nil) + if valid_617947 != nil: + section.add "X-Amz-SignedHeaders", valid_617947 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -55976,43 +56003,43 @@ proc validate_PostDescribeFastSnapshotRestores_617935(path: JsonNode; ## Filter: JArray ## :

The filters. The possible values are:

section = newJObject() - var valid_617946 = formData.getOrDefault("NextToken") - valid_617946 = validateParameter(valid_617946, JString, required = false, + var valid_617948 = formData.getOrDefault("NextToken") + valid_617948 = validateParameter(valid_617948, JString, required = false, default = nil) - if valid_617946 != nil: - section.add "NextToken", valid_617946 - var valid_617947 = formData.getOrDefault("DryRun") - valid_617947 = validateParameter(valid_617947, JBool, required = false, default = nil) - if valid_617947 != nil: - section.add "DryRun", valid_617947 - var valid_617948 = formData.getOrDefault("MaxResults") - valid_617948 = validateParameter(valid_617948, JInt, required = false, default = nil) if valid_617948 != nil: - section.add "MaxResults", valid_617948 - var valid_617949 = formData.getOrDefault("Filter") - valid_617949 = validateParameter(valid_617949, JArray, required = false, - default = nil) + section.add "NextToken", valid_617948 + var valid_617949 = formData.getOrDefault("DryRun") + valid_617949 = validateParameter(valid_617949, JBool, required = false, default = nil) if valid_617949 != nil: - section.add "Filter", valid_617949 + section.add "DryRun", valid_617949 + var valid_617950 = formData.getOrDefault("MaxResults") + valid_617950 = validateParameter(valid_617950, JInt, required = false, default = nil) + if valid_617950 != nil: + section.add "MaxResults", valid_617950 + var valid_617951 = formData.getOrDefault("Filter") + valid_617951 = validateParameter(valid_617951, JArray, required = false, + default = nil) + if valid_617951 != nil: + section.add "Filter", valid_617951 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617950: Call_PostDescribeFastSnapshotRestores_617934; +proc call*(call_617952: Call_PostDescribeFastSnapshotRestores_617936; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the state of fast snapshot restores for your snapshots. ## - let valid = call_617950.validator(path, query, header, formData, body) - let scheme = call_617950.pickScheme + let valid = call_617952.validator(path, query, header, formData, body) + let scheme = call_617952.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617950.url(scheme.get, call_617950.host, call_617950.base, - call_617950.route, valid.getOrDefault("path"), + let url = call_617952.url(scheme.get, call_617952.host, call_617952.base, + call_617952.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617950, url, valid) + result = atozHook(call_617952, url, valid) -proc call*(call_617951: Call_PostDescribeFastSnapshotRestores_617934; +proc call*(call_617953: Call_PostDescribeFastSnapshotRestores_617936; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeFastSnapshotRestores"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -56028,26 +56055,26 @@ proc call*(call_617951: Call_PostDescribeFastSnapshotRestores_617934; ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## Filter: JArray ## :

The filters. The possible values are:

- var query_617952 = newJObject() - var formData_617953 = newJObject() - add(formData_617953, "NextToken", newJString(NextToken)) - add(formData_617953, "DryRun", newJBool(DryRun)) - add(query_617952, "Action", newJString(Action)) - add(query_617952, "Version", newJString(Version)) - add(formData_617953, "MaxResults", newJInt(MaxResults)) + var query_617954 = newJObject() + var formData_617955 = newJObject() + add(formData_617955, "NextToken", newJString(NextToken)) + add(formData_617955, "DryRun", newJBool(DryRun)) + add(query_617954, "Action", newJString(Action)) + add(query_617954, "Version", newJString(Version)) + add(formData_617955, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_617953.add "Filter", Filter - result = call_617951.call(nil, query_617952, nil, formData_617953, nil) + formData_617955.add "Filter", Filter + result = call_617953.call(nil, query_617954, nil, formData_617955, nil) -var postDescribeFastSnapshotRestores* = Call_PostDescribeFastSnapshotRestores_617934( +var postDescribeFastSnapshotRestores* = Call_PostDescribeFastSnapshotRestores_617936( name: "postDescribeFastSnapshotRestores", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeFastSnapshotRestores", - validator: validate_PostDescribeFastSnapshotRestores_617935, base: "/", - url: url_PostDescribeFastSnapshotRestores_617936, + validator: validate_PostDescribeFastSnapshotRestores_617937, base: "/", + url: url_PostDescribeFastSnapshotRestores_617938, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeFastSnapshotRestores_617915 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeFastSnapshotRestores_617917(protocol: Scheme; host: string; + Call_GetDescribeFastSnapshotRestores_617917 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeFastSnapshotRestores_617919(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -56057,7 +56084,7 @@ proc url_GetDescribeFastSnapshotRestores_617917(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeFastSnapshotRestores_617916(path: JsonNode; +proc validate_GetDescribeFastSnapshotRestores_617918(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the state of fast snapshot restores for your snapshots. ## @@ -56077,34 +56104,34 @@ proc validate_GetDescribeFastSnapshotRestores_617916(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617918 = query.getOrDefault("MaxResults") - valid_617918 = validateParameter(valid_617918, JInt, required = false, default = nil) - if valid_617918 != nil: - section.add "MaxResults", valid_617918 - var valid_617919 = query.getOrDefault("DryRun") - valid_617919 = validateParameter(valid_617919, JBool, required = false, default = nil) - if valid_617919 != nil: - section.add "DryRun", valid_617919 - var valid_617920 = query.getOrDefault("NextToken") - valid_617920 = validateParameter(valid_617920, JString, required = false, - default = nil) + var valid_617920 = query.getOrDefault("MaxResults") + valid_617920 = validateParameter(valid_617920, JInt, required = false, default = nil) if valid_617920 != nil: - section.add "NextToken", valid_617920 - var valid_617921 = query.getOrDefault("Filter") - valid_617921 = validateParameter(valid_617921, JArray, required = false, - default = nil) + section.add "MaxResults", valid_617920 + var valid_617921 = query.getOrDefault("DryRun") + valid_617921 = validateParameter(valid_617921, JBool, required = false, default = nil) if valid_617921 != nil: - section.add "Filter", valid_617921 - var valid_617922 = query.getOrDefault("Action") - valid_617922 = validateParameter(valid_617922, JString, required = true, default = newJString( - "DescribeFastSnapshotRestores")) + section.add "DryRun", valid_617921 + var valid_617922 = query.getOrDefault("NextToken") + valid_617922 = validateParameter(valid_617922, JString, required = false, + default = nil) if valid_617922 != nil: - section.add "Action", valid_617922 - var valid_617923 = query.getOrDefault("Version") - valid_617923 = validateParameter(valid_617923, JString, required = true, - default = newJString("2016-11-15")) + section.add "NextToken", valid_617922 + var valid_617923 = query.getOrDefault("Filter") + valid_617923 = validateParameter(valid_617923, JArray, required = false, + default = nil) if valid_617923 != nil: - section.add "Version", valid_617923 + section.add "Filter", valid_617923 + var valid_617924 = query.getOrDefault("Action") + valid_617924 = validateParameter(valid_617924, JString, required = true, default = newJString( + "DescribeFastSnapshotRestores")) + if valid_617924 != nil: + section.add "Action", valid_617924 + var valid_617925 = query.getOrDefault("Version") + valid_617925 = validateParameter(valid_617925, JString, required = true, + default = newJString("2016-11-15")) + if valid_617925 != nil: + section.add "Version", valid_617925 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -56115,62 +56142,62 @@ proc validate_GetDescribeFastSnapshotRestores_617916(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617924 = header.getOrDefault("X-Amz-Signature") - valid_617924 = validateParameter(valid_617924, JString, required = false, - default = nil) - if valid_617924 != nil: - section.add "X-Amz-Signature", valid_617924 - var valid_617925 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617925 = validateParameter(valid_617925, JString, required = false, - default = nil) - if valid_617925 != nil: - section.add "X-Amz-Content-Sha256", valid_617925 - var valid_617926 = header.getOrDefault("X-Amz-Date") + var valid_617926 = header.getOrDefault("X-Amz-Signature") valid_617926 = validateParameter(valid_617926, JString, required = false, default = nil) if valid_617926 != nil: - section.add "X-Amz-Date", valid_617926 - var valid_617927 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617926 + var valid_617927 = header.getOrDefault("X-Amz-Content-Sha256") valid_617927 = validateParameter(valid_617927, JString, required = false, default = nil) if valid_617927 != nil: - section.add "X-Amz-Credential", valid_617927 - var valid_617928 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617927 + var valid_617928 = header.getOrDefault("X-Amz-Date") valid_617928 = validateParameter(valid_617928, JString, required = false, default = nil) if valid_617928 != nil: - section.add "X-Amz-Security-Token", valid_617928 - var valid_617929 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617928 + var valid_617929 = header.getOrDefault("X-Amz-Credential") valid_617929 = validateParameter(valid_617929, JString, required = false, default = nil) if valid_617929 != nil: - section.add "X-Amz-Algorithm", valid_617929 - var valid_617930 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617929 + var valid_617930 = header.getOrDefault("X-Amz-Security-Token") valid_617930 = validateParameter(valid_617930, JString, required = false, default = nil) if valid_617930 != nil: - section.add "X-Amz-SignedHeaders", valid_617930 + section.add "X-Amz-Security-Token", valid_617930 + var valid_617931 = header.getOrDefault("X-Amz-Algorithm") + valid_617931 = validateParameter(valid_617931, JString, required = false, + default = nil) + if valid_617931 != nil: + section.add "X-Amz-Algorithm", valid_617931 + var valid_617932 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617932 = validateParameter(valid_617932, JString, required = false, + default = nil) + if valid_617932 != nil: + section.add "X-Amz-SignedHeaders", valid_617932 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617931: Call_GetDescribeFastSnapshotRestores_617915; +proc call*(call_617933: Call_GetDescribeFastSnapshotRestores_617917; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the state of fast snapshot restores for your snapshots. ## - let valid = call_617931.validator(path, query, header, formData, body) - let scheme = call_617931.pickScheme + let valid = call_617933.validator(path, query, header, formData, body) + let scheme = call_617933.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617931.url(scheme.get, call_617931.host, call_617931.base, - call_617931.route, valid.getOrDefault("path"), + let url = call_617933.url(scheme.get, call_617933.host, call_617933.base, + call_617933.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617931, url, valid) + result = atozHook(call_617933, url, valid) -proc call*(call_617932: Call_GetDescribeFastSnapshotRestores_617915; +proc call*(call_617934: Call_GetDescribeFastSnapshotRestores_617917; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeFastSnapshotRestores"; Version: string = "2016-11-15"): Recallable = @@ -56186,25 +56213,25 @@ proc call*(call_617932: Call_GetDescribeFastSnapshotRestores_617915; ## :

The filters. The possible values are:

## Action: string (required) ## Version: string (required) - var query_617933 = newJObject() - add(query_617933, "MaxResults", newJInt(MaxResults)) - add(query_617933, "DryRun", newJBool(DryRun)) - add(query_617933, "NextToken", newJString(NextToken)) + var query_617935 = newJObject() + add(query_617935, "MaxResults", newJInt(MaxResults)) + add(query_617935, "DryRun", newJBool(DryRun)) + add(query_617935, "NextToken", newJString(NextToken)) if Filter != nil: - query_617933.add "Filter", Filter - add(query_617933, "Action", newJString(Action)) - add(query_617933, "Version", newJString(Version)) - result = call_617932.call(nil, query_617933, nil, nil, nil) + query_617935.add "Filter", Filter + add(query_617935, "Action", newJString(Action)) + add(query_617935, "Version", newJString(Version)) + result = call_617934.call(nil, query_617935, nil, nil, nil) -var getDescribeFastSnapshotRestores* = Call_GetDescribeFastSnapshotRestores_617915( +var getDescribeFastSnapshotRestores* = Call_GetDescribeFastSnapshotRestores_617917( name: "getDescribeFastSnapshotRestores", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeFastSnapshotRestores", - validator: validate_GetDescribeFastSnapshotRestores_617916, base: "/", - url: url_GetDescribeFastSnapshotRestores_617917, + validator: validate_GetDescribeFastSnapshotRestores_617918, base: "/", + url: url_GetDescribeFastSnapshotRestores_617919, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeFleetHistory_617975 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeFleetHistory_617977(protocol: Scheme; host: string; + Call_PostDescribeFleetHistory_617977 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeFleetHistory_617979(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -56215,7 +56242,7 @@ proc url_PostDescribeFleetHistory_617977(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeFleetHistory_617976(path: JsonNode; query: JsonNode; +proc validate_PostDescribeFleetHistory_617978(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the events for the specified EC2 Fleet during the specified time.

EC2 Fleet events are delayed by up to 30 seconds before they can be described. This ensures that you can query by the last evaluated time and not miss a recorded event. EC2 Fleet events are available for 48 hours.

## @@ -56227,16 +56254,16 @@ proc validate_PostDescribeFleetHistory_617976(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_617978 = query.getOrDefault("Action") - valid_617978 = validateParameter(valid_617978, JString, required = true, + var valid_617980 = query.getOrDefault("Action") + valid_617980 = validateParameter(valid_617980, JString, required = true, default = newJString("DescribeFleetHistory")) - if valid_617978 != nil: - section.add "Action", valid_617978 - var valid_617979 = query.getOrDefault("Version") - valid_617979 = validateParameter(valid_617979, JString, required = true, + if valid_617980 != nil: + section.add "Action", valid_617980 + var valid_617981 = query.getOrDefault("Version") + valid_617981 = validateParameter(valid_617981, JString, required = true, default = newJString("2016-11-15")) - if valid_617979 != nil: - section.add "Version", valid_617979 + if valid_617981 != nil: + section.add "Version", valid_617981 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -56247,41 +56274,41 @@ proc validate_PostDescribeFleetHistory_617976(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617980 = header.getOrDefault("X-Amz-Signature") - valid_617980 = validateParameter(valid_617980, JString, required = false, - default = nil) - if valid_617980 != nil: - section.add "X-Amz-Signature", valid_617980 - var valid_617981 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617981 = validateParameter(valid_617981, JString, required = false, - default = nil) - if valid_617981 != nil: - section.add "X-Amz-Content-Sha256", valid_617981 - var valid_617982 = header.getOrDefault("X-Amz-Date") + var valid_617982 = header.getOrDefault("X-Amz-Signature") valid_617982 = validateParameter(valid_617982, JString, required = false, default = nil) if valid_617982 != nil: - section.add "X-Amz-Date", valid_617982 - var valid_617983 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617982 + var valid_617983 = header.getOrDefault("X-Amz-Content-Sha256") valid_617983 = validateParameter(valid_617983, JString, required = false, default = nil) if valid_617983 != nil: - section.add "X-Amz-Credential", valid_617983 - var valid_617984 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617983 + var valid_617984 = header.getOrDefault("X-Amz-Date") valid_617984 = validateParameter(valid_617984, JString, required = false, default = nil) if valid_617984 != nil: - section.add "X-Amz-Security-Token", valid_617984 - var valid_617985 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617984 + var valid_617985 = header.getOrDefault("X-Amz-Credential") valid_617985 = validateParameter(valid_617985, JString, required = false, default = nil) if valid_617985 != nil: - section.add "X-Amz-Algorithm", valid_617985 - var valid_617986 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617985 + var valid_617986 = header.getOrDefault("X-Amz-Security-Token") valid_617986 = validateParameter(valid_617986, JString, required = false, default = nil) if valid_617986 != nil: - section.add "X-Amz-SignedHeaders", valid_617986 + section.add "X-Amz-Security-Token", valid_617986 + var valid_617987 = header.getOrDefault("X-Amz-Algorithm") + valid_617987 = validateParameter(valid_617987, JString, required = false, + default = nil) + if valid_617987 != nil: + section.add "X-Amz-Algorithm", valid_617987 + var valid_617988 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617988 = validateParameter(valid_617988, JString, required = false, + default = nil) + if valid_617988 != nil: + section.add "X-Amz-SignedHeaders", valid_617988 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -56297,54 +56324,54 @@ proc validate_PostDescribeFleetHistory_617976(path: JsonNode; query: JsonNode; ## MaxResults: JInt ## : The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned NextToken value. section = newJObject() - var valid_617987 = formData.getOrDefault("NextToken") - valid_617987 = validateParameter(valid_617987, JString, required = false, + var valid_617989 = formData.getOrDefault("NextToken") + valid_617989 = validateParameter(valid_617989, JString, required = false, default = nil) - if valid_617987 != nil: - section.add "NextToken", valid_617987 + if valid_617989 != nil: + section.add "NextToken", valid_617989 assert formData != nil, "formData argument is necessary due to required `StartTime` field" - var valid_617988 = formData.getOrDefault("StartTime") - valid_617988 = validateParameter(valid_617988, JString, required = true, - default = nil) - if valid_617988 != nil: - section.add "StartTime", valid_617988 - var valid_617989 = formData.getOrDefault("DryRun") - valid_617989 = validateParameter(valid_617989, JBool, required = false, default = nil) - if valid_617989 != nil: - section.add "DryRun", valid_617989 - var valid_617990 = formData.getOrDefault("FleetId") + var valid_617990 = formData.getOrDefault("StartTime") valid_617990 = validateParameter(valid_617990, JString, required = true, default = nil) if valid_617990 != nil: - section.add "FleetId", valid_617990 - var valid_617991 = formData.getOrDefault("EventType") - valid_617991 = validateParameter(valid_617991, JString, required = false, - default = newJString("instance-change")) + section.add "StartTime", valid_617990 + var valid_617991 = formData.getOrDefault("DryRun") + valid_617991 = validateParameter(valid_617991, JBool, required = false, default = nil) if valid_617991 != nil: - section.add "EventType", valid_617991 - var valid_617992 = formData.getOrDefault("MaxResults") - valid_617992 = validateParameter(valid_617992, JInt, required = false, default = nil) + section.add "DryRun", valid_617991 + var valid_617992 = formData.getOrDefault("FleetId") + valid_617992 = validateParameter(valid_617992, JString, required = true, + default = nil) if valid_617992 != nil: - section.add "MaxResults", valid_617992 + section.add "FleetId", valid_617992 + var valid_617993 = formData.getOrDefault("EventType") + valid_617993 = validateParameter(valid_617993, JString, required = false, + default = newJString("instance-change")) + if valid_617993 != nil: + section.add "EventType", valid_617993 + var valid_617994 = formData.getOrDefault("MaxResults") + valid_617994 = validateParameter(valid_617994, JInt, required = false, default = nil) + if valid_617994 != nil: + section.add "MaxResults", valid_617994 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617993: Call_PostDescribeFleetHistory_617975; path: JsonNode; +proc call*(call_617995: Call_PostDescribeFleetHistory_617977; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the events for the specified EC2 Fleet during the specified time.

EC2 Fleet events are delayed by up to 30 seconds before they can be described. This ensures that you can query by the last evaluated time and not miss a recorded event. EC2 Fleet events are available for 48 hours.

## - let valid = call_617993.validator(path, query, header, formData, body) - let scheme = call_617993.pickScheme + let valid = call_617995.validator(path, query, header, formData, body) + let scheme = call_617995.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617993.url(scheme.get, call_617993.host, call_617993.base, - call_617993.route, valid.getOrDefault("path"), + let url = call_617995.url(scheme.get, call_617995.host, call_617995.base, + call_617995.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617993, url, valid) + result = atozHook(call_617995, url, valid) -proc call*(call_617994: Call_PostDescribeFleetHistory_617975; StartTime: string; +proc call*(call_617996: Call_PostDescribeFleetHistory_617977; StartTime: string; FleetId: string; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeFleetHistory"; EventType: string = "instance-change"; Version: string = "2016-11-15"; @@ -56365,26 +56392,26 @@ proc call*(call_617994: Call_PostDescribeFleetHistory_617975; StartTime: string; ## Version: string (required) ## MaxResults: int ## : The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned NextToken value. - var query_617995 = newJObject() - var formData_617996 = newJObject() - add(formData_617996, "NextToken", newJString(NextToken)) - add(formData_617996, "StartTime", newJString(StartTime)) - add(formData_617996, "DryRun", newJBool(DryRun)) - add(formData_617996, "FleetId", newJString(FleetId)) - add(query_617995, "Action", newJString(Action)) - add(formData_617996, "EventType", newJString(EventType)) - add(query_617995, "Version", newJString(Version)) - add(formData_617996, "MaxResults", newJInt(MaxResults)) - result = call_617994.call(nil, query_617995, nil, formData_617996, nil) - -var postDescribeFleetHistory* = Call_PostDescribeFleetHistory_617975( + var query_617997 = newJObject() + var formData_617998 = newJObject() + add(formData_617998, "NextToken", newJString(NextToken)) + add(formData_617998, "StartTime", newJString(StartTime)) + add(formData_617998, "DryRun", newJBool(DryRun)) + add(formData_617998, "FleetId", newJString(FleetId)) + add(query_617997, "Action", newJString(Action)) + add(formData_617998, "EventType", newJString(EventType)) + add(query_617997, "Version", newJString(Version)) + add(formData_617998, "MaxResults", newJInt(MaxResults)) + result = call_617996.call(nil, query_617997, nil, formData_617998, nil) + +var postDescribeFleetHistory* = Call_PostDescribeFleetHistory_617977( name: "postDescribeFleetHistory", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeFleetHistory", - validator: validate_PostDescribeFleetHistory_617976, base: "/", - url: url_PostDescribeFleetHistory_617977, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDescribeFleetHistory_617978, base: "/", + url: url_PostDescribeFleetHistory_617979, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeFleetHistory_617954 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeFleetHistory_617956(protocol: Scheme; host: string; base: string; + Call_GetDescribeFleetHistory_617956 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeFleetHistory_617958(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -56395,7 +56422,7 @@ proc url_GetDescribeFleetHistory_617956(protocol: Scheme; host: string; base: st else: result.path = base & route -proc validate_GetDescribeFleetHistory_617955(path: JsonNode; query: JsonNode; +proc validate_GetDescribeFleetHistory_617957(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the events for the specified EC2 Fleet during the specified time.

EC2 Fleet events are delayed by up to 30 seconds before they can be described. This ensures that you can query by the last evaluated time and not miss a recorded event. EC2 Fleet events are available for 48 hours.

## @@ -56419,44 +56446,44 @@ proc validate_GetDescribeFleetHistory_617955(path: JsonNode; query: JsonNode; ## FleetId: JString (required) ## : The ID of the EC2 Fleet. section = newJObject() - var valid_617957 = query.getOrDefault("MaxResults") - valid_617957 = validateParameter(valid_617957, JInt, required = false, default = nil) - if valid_617957 != nil: - section.add "MaxResults", valid_617957 - var valid_617958 = query.getOrDefault("EventType") - valid_617958 = validateParameter(valid_617958, JString, required = false, - default = newJString("instance-change")) - if valid_617958 != nil: - section.add "EventType", valid_617958 - var valid_617959 = query.getOrDefault("DryRun") - valid_617959 = validateParameter(valid_617959, JBool, required = false, default = nil) + var valid_617959 = query.getOrDefault("MaxResults") + valid_617959 = validateParameter(valid_617959, JInt, required = false, default = nil) if valid_617959 != nil: - section.add "DryRun", valid_617959 - var valid_617960 = query.getOrDefault("NextToken") + section.add "MaxResults", valid_617959 + var valid_617960 = query.getOrDefault("EventType") valid_617960 = validateParameter(valid_617960, JString, required = false, - default = nil) + default = newJString("instance-change")) if valid_617960 != nil: - section.add "NextToken", valid_617960 - var valid_617961 = query.getOrDefault("Action") - valid_617961 = validateParameter(valid_617961, JString, required = true, - default = newJString("DescribeFleetHistory")) + section.add "EventType", valid_617960 + var valid_617961 = query.getOrDefault("DryRun") + valid_617961 = validateParameter(valid_617961, JBool, required = false, default = nil) if valid_617961 != nil: - section.add "Action", valid_617961 - var valid_617962 = query.getOrDefault("StartTime") - valid_617962 = validateParameter(valid_617962, JString, required = true, + section.add "DryRun", valid_617961 + var valid_617962 = query.getOrDefault("NextToken") + valid_617962 = validateParameter(valid_617962, JString, required = false, default = nil) if valid_617962 != nil: - section.add "StartTime", valid_617962 - var valid_617963 = query.getOrDefault("Version") + section.add "NextToken", valid_617962 + var valid_617963 = query.getOrDefault("Action") valid_617963 = validateParameter(valid_617963, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("DescribeFleetHistory")) if valid_617963 != nil: - section.add "Version", valid_617963 - var valid_617964 = query.getOrDefault("FleetId") + section.add "Action", valid_617963 + var valid_617964 = query.getOrDefault("StartTime") valid_617964 = validateParameter(valid_617964, JString, required = true, default = nil) if valid_617964 != nil: - section.add "FleetId", valid_617964 + section.add "StartTime", valid_617964 + var valid_617965 = query.getOrDefault("Version") + valid_617965 = validateParameter(valid_617965, JString, required = true, + default = newJString("2016-11-15")) + if valid_617965 != nil: + section.add "Version", valid_617965 + var valid_617966 = query.getOrDefault("FleetId") + valid_617966 = validateParameter(valid_617966, JString, required = true, + default = nil) + if valid_617966 != nil: + section.add "FleetId", valid_617966 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -56467,61 +56494,61 @@ proc validate_GetDescribeFleetHistory_617955(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_617965 = header.getOrDefault("X-Amz-Signature") - valid_617965 = validateParameter(valid_617965, JString, required = false, - default = nil) - if valid_617965 != nil: - section.add "X-Amz-Signature", valid_617965 - var valid_617966 = header.getOrDefault("X-Amz-Content-Sha256") - valid_617966 = validateParameter(valid_617966, JString, required = false, - default = nil) - if valid_617966 != nil: - section.add "X-Amz-Content-Sha256", valid_617966 - var valid_617967 = header.getOrDefault("X-Amz-Date") + var valid_617967 = header.getOrDefault("X-Amz-Signature") valid_617967 = validateParameter(valid_617967, JString, required = false, default = nil) if valid_617967 != nil: - section.add "X-Amz-Date", valid_617967 - var valid_617968 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_617967 + var valid_617968 = header.getOrDefault("X-Amz-Content-Sha256") valid_617968 = validateParameter(valid_617968, JString, required = false, default = nil) if valid_617968 != nil: - section.add "X-Amz-Credential", valid_617968 - var valid_617969 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_617968 + var valid_617969 = header.getOrDefault("X-Amz-Date") valid_617969 = validateParameter(valid_617969, JString, required = false, default = nil) if valid_617969 != nil: - section.add "X-Amz-Security-Token", valid_617969 - var valid_617970 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_617969 + var valid_617970 = header.getOrDefault("X-Amz-Credential") valid_617970 = validateParameter(valid_617970, JString, required = false, default = nil) if valid_617970 != nil: - section.add "X-Amz-Algorithm", valid_617970 - var valid_617971 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_617970 + var valid_617971 = header.getOrDefault("X-Amz-Security-Token") valid_617971 = validateParameter(valid_617971, JString, required = false, default = nil) if valid_617971 != nil: - section.add "X-Amz-SignedHeaders", valid_617971 + section.add "X-Amz-Security-Token", valid_617971 + var valid_617972 = header.getOrDefault("X-Amz-Algorithm") + valid_617972 = validateParameter(valid_617972, JString, required = false, + default = nil) + if valid_617972 != nil: + section.add "X-Amz-Algorithm", valid_617972 + var valid_617973 = header.getOrDefault("X-Amz-SignedHeaders") + valid_617973 = validateParameter(valid_617973, JString, required = false, + default = nil) + if valid_617973 != nil: + section.add "X-Amz-SignedHeaders", valid_617973 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_617972: Call_GetDescribeFleetHistory_617954; path: JsonNode; +proc call*(call_617974: Call_GetDescribeFleetHistory_617956; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the events for the specified EC2 Fleet during the specified time.

EC2 Fleet events are delayed by up to 30 seconds before they can be described. This ensures that you can query by the last evaluated time and not miss a recorded event. EC2 Fleet events are available for 48 hours.

## - let valid = call_617972.validator(path, query, header, formData, body) - let scheme = call_617972.pickScheme + let valid = call_617974.validator(path, query, header, formData, body) + let scheme = call_617974.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_617972.url(scheme.get, call_617972.host, call_617972.base, - call_617972.route, valid.getOrDefault("path"), + let url = call_617974.url(scheme.get, call_617974.host, call_617974.base, + call_617974.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_617972, url, valid) + result = atozHook(call_617974, url, valid) -proc call*(call_617973: Call_GetDescribeFleetHistory_617954; StartTime: string; +proc call*(call_617975: Call_GetDescribeFleetHistory_617956; StartTime: string; FleetId: string; MaxResults: int = 0; EventType: string = "instance-change"; DryRun: bool = false; NextToken: string = ""; Action: string = "DescribeFleetHistory"; Version: string = "2016-11-15"): Recallable = @@ -56541,25 +56568,25 @@ proc call*(call_617973: Call_GetDescribeFleetHistory_617954; StartTime: string; ## Version: string (required) ## FleetId: string (required) ## : The ID of the EC2 Fleet. - var query_617974 = newJObject() - add(query_617974, "MaxResults", newJInt(MaxResults)) - add(query_617974, "EventType", newJString(EventType)) - add(query_617974, "DryRun", newJBool(DryRun)) - add(query_617974, "NextToken", newJString(NextToken)) - add(query_617974, "Action", newJString(Action)) - add(query_617974, "StartTime", newJString(StartTime)) - add(query_617974, "Version", newJString(Version)) - add(query_617974, "FleetId", newJString(FleetId)) - result = call_617973.call(nil, query_617974, nil, nil, nil) - -var getDescribeFleetHistory* = Call_GetDescribeFleetHistory_617954( + var query_617976 = newJObject() + add(query_617976, "MaxResults", newJInt(MaxResults)) + add(query_617976, "EventType", newJString(EventType)) + add(query_617976, "DryRun", newJBool(DryRun)) + add(query_617976, "NextToken", newJString(NextToken)) + add(query_617976, "Action", newJString(Action)) + add(query_617976, "StartTime", newJString(StartTime)) + add(query_617976, "Version", newJString(Version)) + add(query_617976, "FleetId", newJString(FleetId)) + result = call_617975.call(nil, query_617976, nil, nil, nil) + +var getDescribeFleetHistory* = Call_GetDescribeFleetHistory_617956( name: "getDescribeFleetHistory", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeFleetHistory", - validator: validate_GetDescribeFleetHistory_617955, base: "/", - url: url_GetDescribeFleetHistory_617956, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDescribeFleetHistory_617957, base: "/", + url: url_GetDescribeFleetHistory_617958, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeFleetInstances_618017 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeFleetInstances_618019(protocol: Scheme; host: string; + Call_PostDescribeFleetInstances_618019 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeFleetInstances_618021(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -56569,7 +56596,7 @@ proc url_PostDescribeFleetInstances_618019(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeFleetInstances_618018(path: JsonNode; query: JsonNode; +proc validate_PostDescribeFleetInstances_618020(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the running instances for the specified EC2 Fleet. ## @@ -56581,16 +56608,16 @@ proc validate_PostDescribeFleetInstances_618018(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618020 = query.getOrDefault("Action") - valid_618020 = validateParameter(valid_618020, JString, required = true, + var valid_618022 = query.getOrDefault("Action") + valid_618022 = validateParameter(valid_618022, JString, required = true, default = newJString("DescribeFleetInstances")) - if valid_618020 != nil: - section.add "Action", valid_618020 - var valid_618021 = query.getOrDefault("Version") - valid_618021 = validateParameter(valid_618021, JString, required = true, + if valid_618022 != nil: + section.add "Action", valid_618022 + var valid_618023 = query.getOrDefault("Version") + valid_618023 = validateParameter(valid_618023, JString, required = true, default = newJString("2016-11-15")) - if valid_618021 != nil: - section.add "Version", valid_618021 + if valid_618023 != nil: + section.add "Version", valid_618023 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -56601,41 +56628,41 @@ proc validate_PostDescribeFleetInstances_618018(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618022 = header.getOrDefault("X-Amz-Signature") - valid_618022 = validateParameter(valid_618022, JString, required = false, - default = nil) - if valid_618022 != nil: - section.add "X-Amz-Signature", valid_618022 - var valid_618023 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618023 = validateParameter(valid_618023, JString, required = false, - default = nil) - if valid_618023 != nil: - section.add "X-Amz-Content-Sha256", valid_618023 - var valid_618024 = header.getOrDefault("X-Amz-Date") + var valid_618024 = header.getOrDefault("X-Amz-Signature") valid_618024 = validateParameter(valid_618024, JString, required = false, default = nil) if valid_618024 != nil: - section.add "X-Amz-Date", valid_618024 - var valid_618025 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618024 + var valid_618025 = header.getOrDefault("X-Amz-Content-Sha256") valid_618025 = validateParameter(valid_618025, JString, required = false, default = nil) if valid_618025 != nil: - section.add "X-Amz-Credential", valid_618025 - var valid_618026 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618025 + var valid_618026 = header.getOrDefault("X-Amz-Date") valid_618026 = validateParameter(valid_618026, JString, required = false, default = nil) if valid_618026 != nil: - section.add "X-Amz-Security-Token", valid_618026 - var valid_618027 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618026 + var valid_618027 = header.getOrDefault("X-Amz-Credential") valid_618027 = validateParameter(valid_618027, JString, required = false, default = nil) if valid_618027 != nil: - section.add "X-Amz-Algorithm", valid_618027 - var valid_618028 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618027 + var valid_618028 = header.getOrDefault("X-Amz-Security-Token") valid_618028 = validateParameter(valid_618028, JString, required = false, default = nil) if valid_618028 != nil: - section.add "X-Amz-SignedHeaders", valid_618028 + section.add "X-Amz-Security-Token", valid_618028 + var valid_618029 = header.getOrDefault("X-Amz-Algorithm") + valid_618029 = validateParameter(valid_618029, JString, required = false, + default = nil) + if valid_618029 != nil: + section.add "X-Amz-Algorithm", valid_618029 + var valid_618030 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618030 = validateParameter(valid_618030, JString, required = false, + default = nil) + if valid_618030 != nil: + section.add "X-Amz-SignedHeaders", valid_618030 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -56649,49 +56676,49 @@ proc validate_PostDescribeFleetInstances_618018(path: JsonNode; query: JsonNode; ## Filter: JArray ## :

The filters.

section = newJObject() - var valid_618029 = formData.getOrDefault("NextToken") - valid_618029 = validateParameter(valid_618029, JString, required = false, - default = nil) - if valid_618029 != nil: - section.add "NextToken", valid_618029 - var valid_618030 = formData.getOrDefault("DryRun") - valid_618030 = validateParameter(valid_618030, JBool, required = false, default = nil) - if valid_618030 != nil: - section.add "DryRun", valid_618030 - assert formData != nil, - "formData argument is necessary due to required `FleetId` field" - var valid_618031 = formData.getOrDefault("FleetId") - valid_618031 = validateParameter(valid_618031, JString, required = true, + var valid_618031 = formData.getOrDefault("NextToken") + valid_618031 = validateParameter(valid_618031, JString, required = false, default = nil) if valid_618031 != nil: - section.add "FleetId", valid_618031 - var valid_618032 = formData.getOrDefault("MaxResults") - valid_618032 = validateParameter(valid_618032, JInt, required = false, default = nil) + section.add "NextToken", valid_618031 + var valid_618032 = formData.getOrDefault("DryRun") + valid_618032 = validateParameter(valid_618032, JBool, required = false, default = nil) if valid_618032 != nil: - section.add "MaxResults", valid_618032 - var valid_618033 = formData.getOrDefault("Filter") - valid_618033 = validateParameter(valid_618033, JArray, required = false, + section.add "DryRun", valid_618032 + assert formData != nil, + "formData argument is necessary due to required `FleetId` field" + var valid_618033 = formData.getOrDefault("FleetId") + valid_618033 = validateParameter(valid_618033, JString, required = true, default = nil) if valid_618033 != nil: - section.add "Filter", valid_618033 + section.add "FleetId", valid_618033 + var valid_618034 = formData.getOrDefault("MaxResults") + valid_618034 = validateParameter(valid_618034, JInt, required = false, default = nil) + if valid_618034 != nil: + section.add "MaxResults", valid_618034 + var valid_618035 = formData.getOrDefault("Filter") + valid_618035 = validateParameter(valid_618035, JArray, required = false, + default = nil) + if valid_618035 != nil: + section.add "Filter", valid_618035 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618034: Call_PostDescribeFleetInstances_618017; path: JsonNode; +proc call*(call_618036: Call_PostDescribeFleetInstances_618019; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the running instances for the specified EC2 Fleet. ## - let valid = call_618034.validator(path, query, header, formData, body) - let scheme = call_618034.pickScheme + let valid = call_618036.validator(path, query, header, formData, body) + let scheme = call_618036.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618034.url(scheme.get, call_618034.host, call_618034.base, - call_618034.route, valid.getOrDefault("path"), + let url = call_618036.url(scheme.get, call_618036.host, call_618036.base, + call_618036.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618034, url, valid) + result = atozHook(call_618036, url, valid) -proc call*(call_618035: Call_PostDescribeFleetInstances_618017; FleetId: string; +proc call*(call_618037: Call_PostDescribeFleetInstances_618019; FleetId: string; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeFleetInstances"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -56709,27 +56736,27 @@ proc call*(call_618035: Call_PostDescribeFleetInstances_618017; FleetId: string; ## : The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned NextToken value. ## Filter: JArray ## :

The filters.

- var query_618036 = newJObject() - var formData_618037 = newJObject() - add(formData_618037, "NextToken", newJString(NextToken)) - add(formData_618037, "DryRun", newJBool(DryRun)) - add(formData_618037, "FleetId", newJString(FleetId)) - add(query_618036, "Action", newJString(Action)) - add(query_618036, "Version", newJString(Version)) - add(formData_618037, "MaxResults", newJInt(MaxResults)) + var query_618038 = newJObject() + var formData_618039 = newJObject() + add(formData_618039, "NextToken", newJString(NextToken)) + add(formData_618039, "DryRun", newJBool(DryRun)) + add(formData_618039, "FleetId", newJString(FleetId)) + add(query_618038, "Action", newJString(Action)) + add(query_618038, "Version", newJString(Version)) + add(formData_618039, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_618037.add "Filter", Filter - result = call_618035.call(nil, query_618036, nil, formData_618037, nil) + formData_618039.add "Filter", Filter + result = call_618037.call(nil, query_618038, nil, formData_618039, nil) -var postDescribeFleetInstances* = Call_PostDescribeFleetInstances_618017( +var postDescribeFleetInstances* = Call_PostDescribeFleetInstances_618019( name: "postDescribeFleetInstances", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeFleetInstances", - validator: validate_PostDescribeFleetInstances_618018, base: "/", - url: url_PostDescribeFleetInstances_618019, + validator: validate_PostDescribeFleetInstances_618020, base: "/", + url: url_PostDescribeFleetInstances_618021, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeFleetInstances_617997 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeFleetInstances_617999(protocol: Scheme; host: string; + Call_GetDescribeFleetInstances_617999 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeFleetInstances_618001(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -56739,7 +56766,7 @@ proc url_GetDescribeFleetInstances_617999(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeFleetInstances_617998(path: JsonNode; query: JsonNode; +proc validate_GetDescribeFleetInstances_618000(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the running instances for the specified EC2 Fleet. ## @@ -56761,39 +56788,39 @@ proc validate_GetDescribeFleetInstances_617998(path: JsonNode; query: JsonNode; ## FleetId: JString (required) ## : The ID of the EC2 Fleet. section = newJObject() - var valid_618000 = query.getOrDefault("MaxResults") - valid_618000 = validateParameter(valid_618000, JInt, required = false, default = nil) - if valid_618000 != nil: - section.add "MaxResults", valid_618000 - var valid_618001 = query.getOrDefault("DryRun") - valid_618001 = validateParameter(valid_618001, JBool, required = false, default = nil) - if valid_618001 != nil: - section.add "DryRun", valid_618001 - var valid_618002 = query.getOrDefault("NextToken") - valid_618002 = validateParameter(valid_618002, JString, required = false, - default = nil) + var valid_618002 = query.getOrDefault("MaxResults") + valid_618002 = validateParameter(valid_618002, JInt, required = false, default = nil) if valid_618002 != nil: - section.add "NextToken", valid_618002 - var valid_618003 = query.getOrDefault("Filter") - valid_618003 = validateParameter(valid_618003, JArray, required = false, - default = nil) + section.add "MaxResults", valid_618002 + var valid_618003 = query.getOrDefault("DryRun") + valid_618003 = validateParameter(valid_618003, JBool, required = false, default = nil) if valid_618003 != nil: - section.add "Filter", valid_618003 - var valid_618004 = query.getOrDefault("Action") - valid_618004 = validateParameter(valid_618004, JString, required = true, - default = newJString("DescribeFleetInstances")) + section.add "DryRun", valid_618003 + var valid_618004 = query.getOrDefault("NextToken") + valid_618004 = validateParameter(valid_618004, JString, required = false, + default = nil) if valid_618004 != nil: - section.add "Action", valid_618004 - var valid_618005 = query.getOrDefault("Version") - valid_618005 = validateParameter(valid_618005, JString, required = true, - default = newJString("2016-11-15")) + section.add "NextToken", valid_618004 + var valid_618005 = query.getOrDefault("Filter") + valid_618005 = validateParameter(valid_618005, JArray, required = false, + default = nil) if valid_618005 != nil: - section.add "Version", valid_618005 - var valid_618006 = query.getOrDefault("FleetId") + section.add "Filter", valid_618005 + var valid_618006 = query.getOrDefault("Action") valid_618006 = validateParameter(valid_618006, JString, required = true, - default = nil) + default = newJString("DescribeFleetInstances")) if valid_618006 != nil: - section.add "FleetId", valid_618006 + section.add "Action", valid_618006 + var valid_618007 = query.getOrDefault("Version") + valid_618007 = validateParameter(valid_618007, JString, required = true, + default = newJString("2016-11-15")) + if valid_618007 != nil: + section.add "Version", valid_618007 + var valid_618008 = query.getOrDefault("FleetId") + valid_618008 = validateParameter(valid_618008, JString, required = true, + default = nil) + if valid_618008 != nil: + section.add "FleetId", valid_618008 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -56804,61 +56831,61 @@ proc validate_GetDescribeFleetInstances_617998(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618007 = header.getOrDefault("X-Amz-Signature") - valid_618007 = validateParameter(valid_618007, JString, required = false, - default = nil) - if valid_618007 != nil: - section.add "X-Amz-Signature", valid_618007 - var valid_618008 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618008 = validateParameter(valid_618008, JString, required = false, - default = nil) - if valid_618008 != nil: - section.add "X-Amz-Content-Sha256", valid_618008 - var valid_618009 = header.getOrDefault("X-Amz-Date") + var valid_618009 = header.getOrDefault("X-Amz-Signature") valid_618009 = validateParameter(valid_618009, JString, required = false, default = nil) if valid_618009 != nil: - section.add "X-Amz-Date", valid_618009 - var valid_618010 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618009 + var valid_618010 = header.getOrDefault("X-Amz-Content-Sha256") valid_618010 = validateParameter(valid_618010, JString, required = false, default = nil) if valid_618010 != nil: - section.add "X-Amz-Credential", valid_618010 - var valid_618011 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618010 + var valid_618011 = header.getOrDefault("X-Amz-Date") valid_618011 = validateParameter(valid_618011, JString, required = false, default = nil) if valid_618011 != nil: - section.add "X-Amz-Security-Token", valid_618011 - var valid_618012 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618011 + var valid_618012 = header.getOrDefault("X-Amz-Credential") valid_618012 = validateParameter(valid_618012, JString, required = false, default = nil) if valid_618012 != nil: - section.add "X-Amz-Algorithm", valid_618012 - var valid_618013 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618012 + var valid_618013 = header.getOrDefault("X-Amz-Security-Token") valid_618013 = validateParameter(valid_618013, JString, required = false, default = nil) if valid_618013 != nil: - section.add "X-Amz-SignedHeaders", valid_618013 + section.add "X-Amz-Security-Token", valid_618013 + var valid_618014 = header.getOrDefault("X-Amz-Algorithm") + valid_618014 = validateParameter(valid_618014, JString, required = false, + default = nil) + if valid_618014 != nil: + section.add "X-Amz-Algorithm", valid_618014 + var valid_618015 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618015 = validateParameter(valid_618015, JString, required = false, + default = nil) + if valid_618015 != nil: + section.add "X-Amz-SignedHeaders", valid_618015 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618014: Call_GetDescribeFleetInstances_617997; path: JsonNode; +proc call*(call_618016: Call_GetDescribeFleetInstances_617999; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the running instances for the specified EC2 Fleet. ## - let valid = call_618014.validator(path, query, header, formData, body) - let scheme = call_618014.pickScheme + let valid = call_618016.validator(path, query, header, formData, body) + let scheme = call_618016.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618014.url(scheme.get, call_618014.host, call_618014.base, - call_618014.route, valid.getOrDefault("path"), + let url = call_618016.url(scheme.get, call_618016.host, call_618016.base, + call_618016.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618014, url, valid) + result = atozHook(call_618016, url, valid) -proc call*(call_618015: Call_GetDescribeFleetInstances_617997; FleetId: string; +proc call*(call_618017: Call_GetDescribeFleetInstances_617999; FleetId: string; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeFleetInstances"; Version: string = "2016-11-15"): Recallable = @@ -56876,26 +56903,26 @@ proc call*(call_618015: Call_GetDescribeFleetInstances_617997; FleetId: string; ## Version: string (required) ## FleetId: string (required) ## : The ID of the EC2 Fleet. - var query_618016 = newJObject() - add(query_618016, "MaxResults", newJInt(MaxResults)) - add(query_618016, "DryRun", newJBool(DryRun)) - add(query_618016, "NextToken", newJString(NextToken)) + var query_618018 = newJObject() + add(query_618018, "MaxResults", newJInt(MaxResults)) + add(query_618018, "DryRun", newJBool(DryRun)) + add(query_618018, "NextToken", newJString(NextToken)) if Filter != nil: - query_618016.add "Filter", Filter - add(query_618016, "Action", newJString(Action)) - add(query_618016, "Version", newJString(Version)) - add(query_618016, "FleetId", newJString(FleetId)) - result = call_618015.call(nil, query_618016, nil, nil, nil) + query_618018.add "Filter", Filter + add(query_618018, "Action", newJString(Action)) + add(query_618018, "Version", newJString(Version)) + add(query_618018, "FleetId", newJString(FleetId)) + result = call_618017.call(nil, query_618018, nil, nil, nil) -var getDescribeFleetInstances* = Call_GetDescribeFleetInstances_617997( +var getDescribeFleetInstances* = Call_GetDescribeFleetInstances_617999( name: "getDescribeFleetInstances", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeFleetInstances", - validator: validate_GetDescribeFleetInstances_617998, base: "/", - url: url_GetDescribeFleetInstances_617999, + validator: validate_GetDescribeFleetInstances_618000, base: "/", + url: url_GetDescribeFleetInstances_618001, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeFleets_618058 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeFleets_618060(protocol: Scheme; host: string; base: string; + Call_PostDescribeFleets_618060 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeFleets_618062(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -56905,7 +56932,7 @@ proc url_PostDescribeFleets_618060(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostDescribeFleets_618059(path: JsonNode; query: JsonNode; +proc validate_PostDescribeFleets_618061(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the specified EC2 Fleets or all of your EC2 Fleets. @@ -56918,16 +56945,16 @@ proc validate_PostDescribeFleets_618059(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618061 = query.getOrDefault("Action") - valid_618061 = validateParameter(valid_618061, JString, required = true, + var valid_618063 = query.getOrDefault("Action") + valid_618063 = validateParameter(valid_618063, JString, required = true, default = newJString("DescribeFleets")) - if valid_618061 != nil: - section.add "Action", valid_618061 - var valid_618062 = query.getOrDefault("Version") - valid_618062 = validateParameter(valid_618062, JString, required = true, + if valid_618063 != nil: + section.add "Action", valid_618063 + var valid_618064 = query.getOrDefault("Version") + valid_618064 = validateParameter(valid_618064, JString, required = true, default = newJString("2016-11-15")) - if valid_618062 != nil: - section.add "Version", valid_618062 + if valid_618064 != nil: + section.add "Version", valid_618064 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -56938,41 +56965,41 @@ proc validate_PostDescribeFleets_618059(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618063 = header.getOrDefault("X-Amz-Signature") - valid_618063 = validateParameter(valid_618063, JString, required = false, - default = nil) - if valid_618063 != nil: - section.add "X-Amz-Signature", valid_618063 - var valid_618064 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618064 = validateParameter(valid_618064, JString, required = false, - default = nil) - if valid_618064 != nil: - section.add "X-Amz-Content-Sha256", valid_618064 - var valid_618065 = header.getOrDefault("X-Amz-Date") + var valid_618065 = header.getOrDefault("X-Amz-Signature") valid_618065 = validateParameter(valid_618065, JString, required = false, default = nil) if valid_618065 != nil: - section.add "X-Amz-Date", valid_618065 - var valid_618066 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618065 + var valid_618066 = header.getOrDefault("X-Amz-Content-Sha256") valid_618066 = validateParameter(valid_618066, JString, required = false, default = nil) if valid_618066 != nil: - section.add "X-Amz-Credential", valid_618066 - var valid_618067 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618066 + var valid_618067 = header.getOrDefault("X-Amz-Date") valid_618067 = validateParameter(valid_618067, JString, required = false, default = nil) if valid_618067 != nil: - section.add "X-Amz-Security-Token", valid_618067 - var valid_618068 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618067 + var valid_618068 = header.getOrDefault("X-Amz-Credential") valid_618068 = validateParameter(valid_618068, JString, required = false, default = nil) if valid_618068 != nil: - section.add "X-Amz-Algorithm", valid_618068 - var valid_618069 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618068 + var valid_618069 = header.getOrDefault("X-Amz-Security-Token") valid_618069 = validateParameter(valid_618069, JString, required = false, default = nil) if valid_618069 != nil: - section.add "X-Amz-SignedHeaders", valid_618069 + section.add "X-Amz-Security-Token", valid_618069 + var valid_618070 = header.getOrDefault("X-Amz-Algorithm") + valid_618070 = validateParameter(valid_618070, JString, required = false, + default = nil) + if valid_618070 != nil: + section.add "X-Amz-Algorithm", valid_618070 + var valid_618071 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618071 = validateParameter(valid_618071, JString, required = false, + default = nil) + if valid_618071 != nil: + section.add "X-Amz-SignedHeaders", valid_618071 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -56986,47 +57013,47 @@ proc validate_PostDescribeFleets_618059(path: JsonNode; query: JsonNode; ## Filter: JArray ## :

The filters.

section = newJObject() - var valid_618070 = formData.getOrDefault("NextToken") - valid_618070 = validateParameter(valid_618070, JString, required = false, - default = nil) - if valid_618070 != nil: - section.add "NextToken", valid_618070 - var valid_618071 = formData.getOrDefault("DryRun") - valid_618071 = validateParameter(valid_618071, JBool, required = false, default = nil) - if valid_618071 != nil: - section.add "DryRun", valid_618071 - var valid_618072 = formData.getOrDefault("FleetId") - valid_618072 = validateParameter(valid_618072, JArray, required = false, + var valid_618072 = formData.getOrDefault("NextToken") + valid_618072 = validateParameter(valid_618072, JString, required = false, default = nil) if valid_618072 != nil: - section.add "FleetId", valid_618072 - var valid_618073 = formData.getOrDefault("MaxResults") - valid_618073 = validateParameter(valid_618073, JInt, required = false, default = nil) + section.add "NextToken", valid_618072 + var valid_618073 = formData.getOrDefault("DryRun") + valid_618073 = validateParameter(valid_618073, JBool, required = false, default = nil) if valid_618073 != nil: - section.add "MaxResults", valid_618073 - var valid_618074 = formData.getOrDefault("Filter") + section.add "DryRun", valid_618073 + var valid_618074 = formData.getOrDefault("FleetId") valid_618074 = validateParameter(valid_618074, JArray, required = false, default = nil) if valid_618074 != nil: - section.add "Filter", valid_618074 + section.add "FleetId", valid_618074 + var valid_618075 = formData.getOrDefault("MaxResults") + valid_618075 = validateParameter(valid_618075, JInt, required = false, default = nil) + if valid_618075 != nil: + section.add "MaxResults", valid_618075 + var valid_618076 = formData.getOrDefault("Filter") + valid_618076 = validateParameter(valid_618076, JArray, required = false, + default = nil) + if valid_618076 != nil: + section.add "Filter", valid_618076 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618075: Call_PostDescribeFleets_618058; path: JsonNode; +proc call*(call_618077: Call_PostDescribeFleets_618060; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the specified EC2 Fleets or all of your EC2 Fleets. ## - let valid = call_618075.validator(path, query, header, formData, body) - let scheme = call_618075.pickScheme + let valid = call_618077.validator(path, query, header, formData, body) + let scheme = call_618077.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618075.url(scheme.get, call_618075.host, call_618075.base, - call_618075.route, valid.getOrDefault("path"), + let url = call_618077.url(scheme.get, call_618077.host, call_618077.base, + call_618077.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618075, url, valid) + result = atozHook(call_618077, url, valid) -proc call*(call_618076: Call_PostDescribeFleets_618058; NextToken: string = ""; +proc call*(call_618078: Call_PostDescribeFleets_618060; NextToken: string = ""; DryRun: bool = false; FleetId: JsonNode = nil; Action: string = "DescribeFleets"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -57044,27 +57071,27 @@ proc call*(call_618076: Call_PostDescribeFleets_618058; NextToken: string = ""; ## : The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned NextToken value. ## Filter: JArray ## :

The filters.

- var query_618077 = newJObject() - var formData_618078 = newJObject() - add(formData_618078, "NextToken", newJString(NextToken)) - add(formData_618078, "DryRun", newJBool(DryRun)) + var query_618079 = newJObject() + var formData_618080 = newJObject() + add(formData_618080, "NextToken", newJString(NextToken)) + add(formData_618080, "DryRun", newJBool(DryRun)) if FleetId != nil: - formData_618078.add "FleetId", FleetId - add(query_618077, "Action", newJString(Action)) - add(query_618077, "Version", newJString(Version)) - add(formData_618078, "MaxResults", newJInt(MaxResults)) + formData_618080.add "FleetId", FleetId + add(query_618079, "Action", newJString(Action)) + add(query_618079, "Version", newJString(Version)) + add(formData_618080, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_618078.add "Filter", Filter - result = call_618076.call(nil, query_618077, nil, formData_618078, nil) + formData_618080.add "Filter", Filter + result = call_618078.call(nil, query_618079, nil, formData_618080, nil) -var postDescribeFleets* = Call_PostDescribeFleets_618058( +var postDescribeFleets* = Call_PostDescribeFleets_618060( name: "postDescribeFleets", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeFleets", - validator: validate_PostDescribeFleets_618059, base: "/", - url: url_PostDescribeFleets_618060, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDescribeFleets_618061, base: "/", + url: url_PostDescribeFleets_618062, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeFleets_618038 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeFleets_618040(protocol: Scheme; host: string; base: string; + Call_GetDescribeFleets_618040 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeFleets_618042(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -57074,7 +57101,7 @@ proc url_GetDescribeFleets_618040(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetDescribeFleets_618039(path: JsonNode; query: JsonNode; +proc validate_GetDescribeFleets_618041(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the specified EC2 Fleets or all of your EC2 Fleets. @@ -57097,39 +57124,39 @@ proc validate_GetDescribeFleets_618039(path: JsonNode; query: JsonNode; ## FleetId: JArray ## : The ID of the EC2 Fleets. section = newJObject() - var valid_618041 = query.getOrDefault("MaxResults") - valid_618041 = validateParameter(valid_618041, JInt, required = false, default = nil) - if valid_618041 != nil: - section.add "MaxResults", valid_618041 - var valid_618042 = query.getOrDefault("DryRun") - valid_618042 = validateParameter(valid_618042, JBool, required = false, default = nil) - if valid_618042 != nil: - section.add "DryRun", valid_618042 - var valid_618043 = query.getOrDefault("NextToken") - valid_618043 = validateParameter(valid_618043, JString, required = false, - default = nil) + var valid_618043 = query.getOrDefault("MaxResults") + valid_618043 = validateParameter(valid_618043, JInt, required = false, default = nil) if valid_618043 != nil: - section.add "NextToken", valid_618043 - var valid_618044 = query.getOrDefault("Filter") - valid_618044 = validateParameter(valid_618044, JArray, required = false, - default = nil) + section.add "MaxResults", valid_618043 + var valid_618044 = query.getOrDefault("DryRun") + valid_618044 = validateParameter(valid_618044, JBool, required = false, default = nil) if valid_618044 != nil: - section.add "Filter", valid_618044 - var valid_618045 = query.getOrDefault("Action") - valid_618045 = validateParameter(valid_618045, JString, required = true, - default = newJString("DescribeFleets")) + section.add "DryRun", valid_618044 + var valid_618045 = query.getOrDefault("NextToken") + valid_618045 = validateParameter(valid_618045, JString, required = false, + default = nil) if valid_618045 != nil: - section.add "Action", valid_618045 - var valid_618046 = query.getOrDefault("Version") - valid_618046 = validateParameter(valid_618046, JString, required = true, - default = newJString("2016-11-15")) - if valid_618046 != nil: - section.add "Version", valid_618046 - var valid_618047 = query.getOrDefault("FleetId") - valid_618047 = validateParameter(valid_618047, JArray, required = false, + section.add "NextToken", valid_618045 + var valid_618046 = query.getOrDefault("Filter") + valid_618046 = validateParameter(valid_618046, JArray, required = false, default = nil) + if valid_618046 != nil: + section.add "Filter", valid_618046 + var valid_618047 = query.getOrDefault("Action") + valid_618047 = validateParameter(valid_618047, JString, required = true, + default = newJString("DescribeFleets")) if valid_618047 != nil: - section.add "FleetId", valid_618047 + section.add "Action", valid_618047 + var valid_618048 = query.getOrDefault("Version") + valid_618048 = validateParameter(valid_618048, JString, required = true, + default = newJString("2016-11-15")) + if valid_618048 != nil: + section.add "Version", valid_618048 + var valid_618049 = query.getOrDefault("FleetId") + valid_618049 = validateParameter(valid_618049, JArray, required = false, + default = nil) + if valid_618049 != nil: + section.add "FleetId", valid_618049 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -57140,61 +57167,61 @@ proc validate_GetDescribeFleets_618039(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618048 = header.getOrDefault("X-Amz-Signature") - valid_618048 = validateParameter(valid_618048, JString, required = false, - default = nil) - if valid_618048 != nil: - section.add "X-Amz-Signature", valid_618048 - var valid_618049 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618049 = validateParameter(valid_618049, JString, required = false, - default = nil) - if valid_618049 != nil: - section.add "X-Amz-Content-Sha256", valid_618049 - var valid_618050 = header.getOrDefault("X-Amz-Date") + var valid_618050 = header.getOrDefault("X-Amz-Signature") valid_618050 = validateParameter(valid_618050, JString, required = false, default = nil) if valid_618050 != nil: - section.add "X-Amz-Date", valid_618050 - var valid_618051 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618050 + var valid_618051 = header.getOrDefault("X-Amz-Content-Sha256") valid_618051 = validateParameter(valid_618051, JString, required = false, default = nil) if valid_618051 != nil: - section.add "X-Amz-Credential", valid_618051 - var valid_618052 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618051 + var valid_618052 = header.getOrDefault("X-Amz-Date") valid_618052 = validateParameter(valid_618052, JString, required = false, default = nil) if valid_618052 != nil: - section.add "X-Amz-Security-Token", valid_618052 - var valid_618053 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618052 + var valid_618053 = header.getOrDefault("X-Amz-Credential") valid_618053 = validateParameter(valid_618053, JString, required = false, default = nil) if valid_618053 != nil: - section.add "X-Amz-Algorithm", valid_618053 - var valid_618054 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618053 + var valid_618054 = header.getOrDefault("X-Amz-Security-Token") valid_618054 = validateParameter(valid_618054, JString, required = false, default = nil) if valid_618054 != nil: - section.add "X-Amz-SignedHeaders", valid_618054 + section.add "X-Amz-Security-Token", valid_618054 + var valid_618055 = header.getOrDefault("X-Amz-Algorithm") + valid_618055 = validateParameter(valid_618055, JString, required = false, + default = nil) + if valid_618055 != nil: + section.add "X-Amz-Algorithm", valid_618055 + var valid_618056 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618056 = validateParameter(valid_618056, JString, required = false, + default = nil) + if valid_618056 != nil: + section.add "X-Amz-SignedHeaders", valid_618056 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618055: Call_GetDescribeFleets_618038; path: JsonNode; +proc call*(call_618057: Call_GetDescribeFleets_618040; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the specified EC2 Fleets or all of your EC2 Fleets. ## - let valid = call_618055.validator(path, query, header, formData, body) - let scheme = call_618055.pickScheme + let valid = call_618057.validator(path, query, header, formData, body) + let scheme = call_618057.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618055.url(scheme.get, call_618055.host, call_618055.base, - call_618055.route, valid.getOrDefault("path"), + let url = call_618057.url(scheme.get, call_618057.host, call_618057.base, + call_618057.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618055, url, valid) + result = atozHook(call_618057, url, valid) -proc call*(call_618056: Call_GetDescribeFleets_618038; MaxResults: int = 0; +proc call*(call_618058: Call_GetDescribeFleets_618040; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeFleets"; Version: string = "2016-11-15"; FleetId: JsonNode = nil): Recallable = @@ -57212,26 +57239,26 @@ proc call*(call_618056: Call_GetDescribeFleets_618038; MaxResults: int = 0; ## Version: string (required) ## FleetId: JArray ## : The ID of the EC2 Fleets. - var query_618057 = newJObject() - add(query_618057, "MaxResults", newJInt(MaxResults)) - add(query_618057, "DryRun", newJBool(DryRun)) - add(query_618057, "NextToken", newJString(NextToken)) + var query_618059 = newJObject() + add(query_618059, "MaxResults", newJInt(MaxResults)) + add(query_618059, "DryRun", newJBool(DryRun)) + add(query_618059, "NextToken", newJString(NextToken)) if Filter != nil: - query_618057.add "Filter", Filter - add(query_618057, "Action", newJString(Action)) - add(query_618057, "Version", newJString(Version)) + query_618059.add "Filter", Filter + add(query_618059, "Action", newJString(Action)) + add(query_618059, "Version", newJString(Version)) if FleetId != nil: - query_618057.add "FleetId", FleetId - result = call_618056.call(nil, query_618057, nil, nil, nil) + query_618059.add "FleetId", FleetId + result = call_618058.call(nil, query_618059, nil, nil, nil) -var getDescribeFleets* = Call_GetDescribeFleets_618038(name: "getDescribeFleets", +var getDescribeFleets* = Call_GetDescribeFleets_618040(name: "getDescribeFleets", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=DescribeFleets", validator: validate_GetDescribeFleets_618039, - base: "/", url: url_GetDescribeFleets_618040, + route: "/#Action=DescribeFleets", validator: validate_GetDescribeFleets_618041, + base: "/", url: url_GetDescribeFleets_618042, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeFlowLogs_618099 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeFlowLogs_618101(protocol: Scheme; host: string; base: string; + Call_PostDescribeFlowLogs_618101 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeFlowLogs_618103(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -57241,7 +57268,7 @@ proc url_PostDescribeFlowLogs_618101(protocol: Scheme; host: string; base: strin else: result.path = base & route -proc validate_PostDescribeFlowLogs_618100(path: JsonNode; query: JsonNode; +proc validate_PostDescribeFlowLogs_618102(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more flow logs. To view the information in your flow logs (the log streams for the network interfaces), you must use the CloudWatch Logs console or the CloudWatch Logs API. ## @@ -57253,16 +57280,16 @@ proc validate_PostDescribeFlowLogs_618100(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618102 = query.getOrDefault("Action") - valid_618102 = validateParameter(valid_618102, JString, required = true, + var valid_618104 = query.getOrDefault("Action") + valid_618104 = validateParameter(valid_618104, JString, required = true, default = newJString("DescribeFlowLogs")) - if valid_618102 != nil: - section.add "Action", valid_618102 - var valid_618103 = query.getOrDefault("Version") - valid_618103 = validateParameter(valid_618103, JString, required = true, + if valid_618104 != nil: + section.add "Action", valid_618104 + var valid_618105 = query.getOrDefault("Version") + valid_618105 = validateParameter(valid_618105, JString, required = true, default = newJString("2016-11-15")) - if valid_618103 != nil: - section.add "Version", valid_618103 + if valid_618105 != nil: + section.add "Version", valid_618105 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -57273,41 +57300,41 @@ proc validate_PostDescribeFlowLogs_618100(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618104 = header.getOrDefault("X-Amz-Signature") - valid_618104 = validateParameter(valid_618104, JString, required = false, - default = nil) - if valid_618104 != nil: - section.add "X-Amz-Signature", valid_618104 - var valid_618105 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618105 = validateParameter(valid_618105, JString, required = false, - default = nil) - if valid_618105 != nil: - section.add "X-Amz-Content-Sha256", valid_618105 - var valid_618106 = header.getOrDefault("X-Amz-Date") + var valid_618106 = header.getOrDefault("X-Amz-Signature") valid_618106 = validateParameter(valid_618106, JString, required = false, default = nil) if valid_618106 != nil: - section.add "X-Amz-Date", valid_618106 - var valid_618107 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618106 + var valid_618107 = header.getOrDefault("X-Amz-Content-Sha256") valid_618107 = validateParameter(valid_618107, JString, required = false, default = nil) if valid_618107 != nil: - section.add "X-Amz-Credential", valid_618107 - var valid_618108 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618107 + var valid_618108 = header.getOrDefault("X-Amz-Date") valid_618108 = validateParameter(valid_618108, JString, required = false, default = nil) if valid_618108 != nil: - section.add "X-Amz-Security-Token", valid_618108 - var valid_618109 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618108 + var valid_618109 = header.getOrDefault("X-Amz-Credential") valid_618109 = validateParameter(valid_618109, JString, required = false, default = nil) if valid_618109 != nil: - section.add "X-Amz-Algorithm", valid_618109 - var valid_618110 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618109 + var valid_618110 = header.getOrDefault("X-Amz-Security-Token") valid_618110 = validateParameter(valid_618110, JString, required = false, default = nil) if valid_618110 != nil: - section.add "X-Amz-SignedHeaders", valid_618110 + section.add "X-Amz-Security-Token", valid_618110 + var valid_618111 = header.getOrDefault("X-Amz-Algorithm") + valid_618111 = validateParameter(valid_618111, JString, required = false, + default = nil) + if valid_618111 != nil: + section.add "X-Amz-Algorithm", valid_618111 + var valid_618112 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618112 = validateParameter(valid_618112, JString, required = false, + default = nil) + if valid_618112 != nil: + section.add "X-Amz-SignedHeaders", valid_618112 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -57321,47 +57348,47 @@ proc validate_PostDescribeFlowLogs_618100(path: JsonNode; query: JsonNode; ## Filter: JArray ## :

One or more filters.

section = newJObject() - var valid_618111 = formData.getOrDefault("NextToken") - valid_618111 = validateParameter(valid_618111, JString, required = false, - default = nil) - if valid_618111 != nil: - section.add "NextToken", valid_618111 - var valid_618112 = formData.getOrDefault("DryRun") - valid_618112 = validateParameter(valid_618112, JBool, required = false, default = nil) - if valid_618112 != nil: - section.add "DryRun", valid_618112 - var valid_618113 = formData.getOrDefault("FlowLogId") - valid_618113 = validateParameter(valid_618113, JArray, required = false, + var valid_618113 = formData.getOrDefault("NextToken") + valid_618113 = validateParameter(valid_618113, JString, required = false, default = nil) if valid_618113 != nil: - section.add "FlowLogId", valid_618113 - var valid_618114 = formData.getOrDefault("MaxResults") - valid_618114 = validateParameter(valid_618114, JInt, required = false, default = nil) + section.add "NextToken", valid_618113 + var valid_618114 = formData.getOrDefault("DryRun") + valid_618114 = validateParameter(valid_618114, JBool, required = false, default = nil) if valid_618114 != nil: - section.add "MaxResults", valid_618114 - var valid_618115 = formData.getOrDefault("Filter") + section.add "DryRun", valid_618114 + var valid_618115 = formData.getOrDefault("FlowLogId") valid_618115 = validateParameter(valid_618115, JArray, required = false, default = nil) if valid_618115 != nil: - section.add "Filter", valid_618115 + section.add "FlowLogId", valid_618115 + var valid_618116 = formData.getOrDefault("MaxResults") + valid_618116 = validateParameter(valid_618116, JInt, required = false, default = nil) + if valid_618116 != nil: + section.add "MaxResults", valid_618116 + var valid_618117 = formData.getOrDefault("Filter") + valid_618117 = validateParameter(valid_618117, JArray, required = false, + default = nil) + if valid_618117 != nil: + section.add "Filter", valid_618117 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618116: Call_PostDescribeFlowLogs_618099; path: JsonNode; +proc call*(call_618118: Call_PostDescribeFlowLogs_618101; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more flow logs. To view the information in your flow logs (the log streams for the network interfaces), you must use the CloudWatch Logs console or the CloudWatch Logs API. ## - let valid = call_618116.validator(path, query, header, formData, body) - let scheme = call_618116.pickScheme + let valid = call_618118.validator(path, query, header, formData, body) + let scheme = call_618118.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618116.url(scheme.get, call_618116.host, call_618116.base, - call_618116.route, valid.getOrDefault("path"), + let url = call_618118.url(scheme.get, call_618118.host, call_618118.base, + call_618118.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618116, url, valid) + result = atozHook(call_618118, url, valid) -proc call*(call_618117: Call_PostDescribeFlowLogs_618099; NextToken: string = ""; +proc call*(call_618119: Call_PostDescribeFlowLogs_618101; NextToken: string = ""; DryRun: bool = false; FlowLogId: JsonNode = nil; Action: string = "DescribeFlowLogs"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -57379,27 +57406,27 @@ proc call*(call_618117: Call_PostDescribeFlowLogs_618099; NextToken: string = "" ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## Filter: JArray ## :

One or more filters.

- var query_618118 = newJObject() - var formData_618119 = newJObject() - add(formData_618119, "NextToken", newJString(NextToken)) - add(formData_618119, "DryRun", newJBool(DryRun)) + var query_618120 = newJObject() + var formData_618121 = newJObject() + add(formData_618121, "NextToken", newJString(NextToken)) + add(formData_618121, "DryRun", newJBool(DryRun)) if FlowLogId != nil: - formData_618119.add "FlowLogId", FlowLogId - add(query_618118, "Action", newJString(Action)) - add(query_618118, "Version", newJString(Version)) - add(formData_618119, "MaxResults", newJInt(MaxResults)) + formData_618121.add "FlowLogId", FlowLogId + add(query_618120, "Action", newJString(Action)) + add(query_618120, "Version", newJString(Version)) + add(formData_618121, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_618119.add "Filter", Filter - result = call_618117.call(nil, query_618118, nil, formData_618119, nil) + formData_618121.add "Filter", Filter + result = call_618119.call(nil, query_618120, nil, formData_618121, nil) -var postDescribeFlowLogs* = Call_PostDescribeFlowLogs_618099( +var postDescribeFlowLogs* = Call_PostDescribeFlowLogs_618101( name: "postDescribeFlowLogs", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeFlowLogs", - validator: validate_PostDescribeFlowLogs_618100, base: "/", - url: url_PostDescribeFlowLogs_618101, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDescribeFlowLogs_618102, base: "/", + url: url_PostDescribeFlowLogs_618103, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeFlowLogs_618079 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeFlowLogs_618081(protocol: Scheme; host: string; base: string; + Call_GetDescribeFlowLogs_618081 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeFlowLogs_618083(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -57409,7 +57436,7 @@ proc url_GetDescribeFlowLogs_618081(protocol: Scheme; host: string; base: string else: result.path = base & route -proc validate_GetDescribeFlowLogs_618080(path: JsonNode; query: JsonNode; +proc validate_GetDescribeFlowLogs_618082(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more flow logs. To view the information in your flow logs (the log streams for the network interfaces), you must use the CloudWatch Logs console or the CloudWatch Logs API. @@ -57432,39 +57459,39 @@ proc validate_GetDescribeFlowLogs_618080(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618082 = query.getOrDefault("MaxResults") - valid_618082 = validateParameter(valid_618082, JInt, required = false, default = nil) - if valid_618082 != nil: - section.add "MaxResults", valid_618082 - var valid_618083 = query.getOrDefault("DryRun") - valid_618083 = validateParameter(valid_618083, JBool, required = false, default = nil) - if valid_618083 != nil: - section.add "DryRun", valid_618083 - var valid_618084 = query.getOrDefault("NextToken") - valid_618084 = validateParameter(valid_618084, JString, required = false, - default = nil) + var valid_618084 = query.getOrDefault("MaxResults") + valid_618084 = validateParameter(valid_618084, JInt, required = false, default = nil) if valid_618084 != nil: - section.add "NextToken", valid_618084 - var valid_618085 = query.getOrDefault("FlowLogId") - valid_618085 = validateParameter(valid_618085, JArray, required = false, - default = nil) + section.add "MaxResults", valid_618084 + var valid_618085 = query.getOrDefault("DryRun") + valid_618085 = validateParameter(valid_618085, JBool, required = false, default = nil) if valid_618085 != nil: - section.add "FlowLogId", valid_618085 - var valid_618086 = query.getOrDefault("Filter") - valid_618086 = validateParameter(valid_618086, JArray, required = false, + section.add "DryRun", valid_618085 + var valid_618086 = query.getOrDefault("NextToken") + valid_618086 = validateParameter(valid_618086, JString, required = false, default = nil) if valid_618086 != nil: - section.add "Filter", valid_618086 - var valid_618087 = query.getOrDefault("Action") - valid_618087 = validateParameter(valid_618087, JString, required = true, - default = newJString("DescribeFlowLogs")) + section.add "NextToken", valid_618086 + var valid_618087 = query.getOrDefault("FlowLogId") + valid_618087 = validateParameter(valid_618087, JArray, required = false, + default = nil) if valid_618087 != nil: - section.add "Action", valid_618087 - var valid_618088 = query.getOrDefault("Version") - valid_618088 = validateParameter(valid_618088, JString, required = true, - default = newJString("2016-11-15")) + section.add "FlowLogId", valid_618087 + var valid_618088 = query.getOrDefault("Filter") + valid_618088 = validateParameter(valid_618088, JArray, required = false, + default = nil) if valid_618088 != nil: - section.add "Version", valid_618088 + section.add "Filter", valid_618088 + var valid_618089 = query.getOrDefault("Action") + valid_618089 = validateParameter(valid_618089, JString, required = true, + default = newJString("DescribeFlowLogs")) + if valid_618089 != nil: + section.add "Action", valid_618089 + var valid_618090 = query.getOrDefault("Version") + valid_618090 = validateParameter(valid_618090, JString, required = true, + default = newJString("2016-11-15")) + if valid_618090 != nil: + section.add "Version", valid_618090 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -57475,61 +57502,61 @@ proc validate_GetDescribeFlowLogs_618080(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618089 = header.getOrDefault("X-Amz-Signature") - valid_618089 = validateParameter(valid_618089, JString, required = false, - default = nil) - if valid_618089 != nil: - section.add "X-Amz-Signature", valid_618089 - var valid_618090 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618090 = validateParameter(valid_618090, JString, required = false, - default = nil) - if valid_618090 != nil: - section.add "X-Amz-Content-Sha256", valid_618090 - var valid_618091 = header.getOrDefault("X-Amz-Date") + var valid_618091 = header.getOrDefault("X-Amz-Signature") valid_618091 = validateParameter(valid_618091, JString, required = false, default = nil) if valid_618091 != nil: - section.add "X-Amz-Date", valid_618091 - var valid_618092 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618091 + var valid_618092 = header.getOrDefault("X-Amz-Content-Sha256") valid_618092 = validateParameter(valid_618092, JString, required = false, default = nil) if valid_618092 != nil: - section.add "X-Amz-Credential", valid_618092 - var valid_618093 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618092 + var valid_618093 = header.getOrDefault("X-Amz-Date") valid_618093 = validateParameter(valid_618093, JString, required = false, default = nil) if valid_618093 != nil: - section.add "X-Amz-Security-Token", valid_618093 - var valid_618094 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618093 + var valid_618094 = header.getOrDefault("X-Amz-Credential") valid_618094 = validateParameter(valid_618094, JString, required = false, default = nil) if valid_618094 != nil: - section.add "X-Amz-Algorithm", valid_618094 - var valid_618095 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618094 + var valid_618095 = header.getOrDefault("X-Amz-Security-Token") valid_618095 = validateParameter(valid_618095, JString, required = false, default = nil) if valid_618095 != nil: - section.add "X-Amz-SignedHeaders", valid_618095 + section.add "X-Amz-Security-Token", valid_618095 + var valid_618096 = header.getOrDefault("X-Amz-Algorithm") + valid_618096 = validateParameter(valid_618096, JString, required = false, + default = nil) + if valid_618096 != nil: + section.add "X-Amz-Algorithm", valid_618096 + var valid_618097 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618097 = validateParameter(valid_618097, JString, required = false, + default = nil) + if valid_618097 != nil: + section.add "X-Amz-SignedHeaders", valid_618097 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618096: Call_GetDescribeFlowLogs_618079; path: JsonNode; +proc call*(call_618098: Call_GetDescribeFlowLogs_618081; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more flow logs. To view the information in your flow logs (the log streams for the network interfaces), you must use the CloudWatch Logs console or the CloudWatch Logs API. ## - let valid = call_618096.validator(path, query, header, formData, body) - let scheme = call_618096.pickScheme + let valid = call_618098.validator(path, query, header, formData, body) + let scheme = call_618098.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618096.url(scheme.get, call_618096.host, call_618096.base, - call_618096.route, valid.getOrDefault("path"), + let url = call_618098.url(scheme.get, call_618098.host, call_618098.base, + call_618098.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618096, url, valid) + result = atozHook(call_618098, url, valid) -proc call*(call_618097: Call_GetDescribeFlowLogs_618079; MaxResults: int = 0; +proc call*(call_618099: Call_GetDescribeFlowLogs_618081; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; FlowLogId: JsonNode = nil; Filter: JsonNode = nil; Action: string = "DescribeFlowLogs"; Version: string = "2016-11-15"): Recallable = @@ -57547,26 +57574,26 @@ proc call*(call_618097: Call_GetDescribeFlowLogs_618079; MaxResults: int = 0; ## :

One or more filters.

## Action: string (required) ## Version: string (required) - var query_618098 = newJObject() - add(query_618098, "MaxResults", newJInt(MaxResults)) - add(query_618098, "DryRun", newJBool(DryRun)) - add(query_618098, "NextToken", newJString(NextToken)) + var query_618100 = newJObject() + add(query_618100, "MaxResults", newJInt(MaxResults)) + add(query_618100, "DryRun", newJBool(DryRun)) + add(query_618100, "NextToken", newJString(NextToken)) if FlowLogId != nil: - query_618098.add "FlowLogId", FlowLogId + query_618100.add "FlowLogId", FlowLogId if Filter != nil: - query_618098.add "Filter", Filter - add(query_618098, "Action", newJString(Action)) - add(query_618098, "Version", newJString(Version)) - result = call_618097.call(nil, query_618098, nil, nil, nil) + query_618100.add "Filter", Filter + add(query_618100, "Action", newJString(Action)) + add(query_618100, "Version", newJString(Version)) + result = call_618099.call(nil, query_618100, nil, nil, nil) -var getDescribeFlowLogs* = Call_GetDescribeFlowLogs_618079( +var getDescribeFlowLogs* = Call_GetDescribeFlowLogs_618081( name: "getDescribeFlowLogs", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeFlowLogs", - validator: validate_GetDescribeFlowLogs_618080, base: "/", - url: url_GetDescribeFlowLogs_618081, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDescribeFlowLogs_618082, base: "/", + url: url_GetDescribeFlowLogs_618083, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeFpgaImageAttribute_618138 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeFpgaImageAttribute_618140(protocol: Scheme; host: string; + Call_PostDescribeFpgaImageAttribute_618140 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeFpgaImageAttribute_618142(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -57576,7 +57603,7 @@ proc url_PostDescribeFpgaImageAttribute_618140(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeFpgaImageAttribute_618139(path: JsonNode; +proc validate_PostDescribeFpgaImageAttribute_618141(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the specified attribute of the specified Amazon FPGA Image (AFI). ## @@ -57588,16 +57615,16 @@ proc validate_PostDescribeFpgaImageAttribute_618139(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618141 = query.getOrDefault("Action") - valid_618141 = validateParameter(valid_618141, JString, required = true, default = newJString( + var valid_618143 = query.getOrDefault("Action") + valid_618143 = validateParameter(valid_618143, JString, required = true, default = newJString( "DescribeFpgaImageAttribute")) - if valid_618141 != nil: - section.add "Action", valid_618141 - var valid_618142 = query.getOrDefault("Version") - valid_618142 = validateParameter(valid_618142, JString, required = true, + if valid_618143 != nil: + section.add "Action", valid_618143 + var valid_618144 = query.getOrDefault("Version") + valid_618144 = validateParameter(valid_618144, JString, required = true, default = newJString("2016-11-15")) - if valid_618142 != nil: - section.add "Version", valid_618142 + if valid_618144 != nil: + section.add "Version", valid_618144 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -57608,41 +57635,41 @@ proc validate_PostDescribeFpgaImageAttribute_618139(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618143 = header.getOrDefault("X-Amz-Signature") - valid_618143 = validateParameter(valid_618143, JString, required = false, - default = nil) - if valid_618143 != nil: - section.add "X-Amz-Signature", valid_618143 - var valid_618144 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618144 = validateParameter(valid_618144, JString, required = false, - default = nil) - if valid_618144 != nil: - section.add "X-Amz-Content-Sha256", valid_618144 - var valid_618145 = header.getOrDefault("X-Amz-Date") + var valid_618145 = header.getOrDefault("X-Amz-Signature") valid_618145 = validateParameter(valid_618145, JString, required = false, default = nil) if valid_618145 != nil: - section.add "X-Amz-Date", valid_618145 - var valid_618146 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618145 + var valid_618146 = header.getOrDefault("X-Amz-Content-Sha256") valid_618146 = validateParameter(valid_618146, JString, required = false, default = nil) if valid_618146 != nil: - section.add "X-Amz-Credential", valid_618146 - var valid_618147 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618146 + var valid_618147 = header.getOrDefault("X-Amz-Date") valid_618147 = validateParameter(valid_618147, JString, required = false, default = nil) if valid_618147 != nil: - section.add "X-Amz-Security-Token", valid_618147 - var valid_618148 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618147 + var valid_618148 = header.getOrDefault("X-Amz-Credential") valid_618148 = validateParameter(valid_618148, JString, required = false, default = nil) if valid_618148 != nil: - section.add "X-Amz-Algorithm", valid_618148 - var valid_618149 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618148 + var valid_618149 = header.getOrDefault("X-Amz-Security-Token") valid_618149 = validateParameter(valid_618149, JString, required = false, default = nil) if valid_618149 != nil: - section.add "X-Amz-SignedHeaders", valid_618149 + section.add "X-Amz-Security-Token", valid_618149 + var valid_618150 = header.getOrDefault("X-Amz-Algorithm") + valid_618150 = validateParameter(valid_618150, JString, required = false, + default = nil) + if valid_618150 != nil: + section.add "X-Amz-Algorithm", valid_618150 + var valid_618151 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618151 = validateParameter(valid_618151, JString, required = false, + default = nil) + if valid_618151 != nil: + section.add "X-Amz-SignedHeaders", valid_618151 result.add "header", section ## parameters in `formData` object: ## Attribute: JString (required) @@ -57652,38 +57679,38 @@ proc validate_PostDescribeFpgaImageAttribute_618139(path: JsonNode; ## FpgaImageId: JString (required) ## : The ID of the AFI. section = newJObject() - var valid_618150 = formData.getOrDefault("Attribute") - valid_618150 = validateParameter(valid_618150, JString, required = true, - default = newJString("description")) - if valid_618150 != nil: - section.add "Attribute", valid_618150 - var valid_618151 = formData.getOrDefault("DryRun") - valid_618151 = validateParameter(valid_618151, JBool, required = false, default = nil) - if valid_618151 != nil: - section.add "DryRun", valid_618151 - var valid_618152 = formData.getOrDefault("FpgaImageId") + var valid_618152 = formData.getOrDefault("Attribute") valid_618152 = validateParameter(valid_618152, JString, required = true, - default = nil) + default = newJString("description")) if valid_618152 != nil: - section.add "FpgaImageId", valid_618152 + section.add "Attribute", valid_618152 + var valid_618153 = formData.getOrDefault("DryRun") + valid_618153 = validateParameter(valid_618153, JBool, required = false, default = nil) + if valid_618153 != nil: + section.add "DryRun", valid_618153 + var valid_618154 = formData.getOrDefault("FpgaImageId") + valid_618154 = validateParameter(valid_618154, JString, required = true, + default = nil) + if valid_618154 != nil: + section.add "FpgaImageId", valid_618154 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618153: Call_PostDescribeFpgaImageAttribute_618138; path: JsonNode; +proc call*(call_618155: Call_PostDescribeFpgaImageAttribute_618140; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the specified attribute of the specified Amazon FPGA Image (AFI). ## - let valid = call_618153.validator(path, query, header, formData, body) - let scheme = call_618153.pickScheme + let valid = call_618155.validator(path, query, header, formData, body) + let scheme = call_618155.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618153.url(scheme.get, call_618153.host, call_618153.base, - call_618153.route, valid.getOrDefault("path"), + let url = call_618155.url(scheme.get, call_618155.host, call_618155.base, + call_618155.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618153, url, valid) + result = atozHook(call_618155, url, valid) -proc call*(call_618154: Call_PostDescribeFpgaImageAttribute_618138; +proc call*(call_618156: Call_PostDescribeFpgaImageAttribute_618140; FpgaImageId: string; Attribute: string = "description"; DryRun: bool = false; Action: string = "DescribeFpgaImageAttribute"; Version: string = "2016-11-15"): Recallable = @@ -57697,24 +57724,24 @@ proc call*(call_618154: Call_PostDescribeFpgaImageAttribute_618138; ## : The ID of the AFI. ## Action: string (required) ## Version: string (required) - var query_618155 = newJObject() - var formData_618156 = newJObject() - add(formData_618156, "Attribute", newJString(Attribute)) - add(formData_618156, "DryRun", newJBool(DryRun)) - add(formData_618156, "FpgaImageId", newJString(FpgaImageId)) - add(query_618155, "Action", newJString(Action)) - add(query_618155, "Version", newJString(Version)) - result = call_618154.call(nil, query_618155, nil, formData_618156, nil) + var query_618157 = newJObject() + var formData_618158 = newJObject() + add(formData_618158, "Attribute", newJString(Attribute)) + add(formData_618158, "DryRun", newJBool(DryRun)) + add(formData_618158, "FpgaImageId", newJString(FpgaImageId)) + add(query_618157, "Action", newJString(Action)) + add(query_618157, "Version", newJString(Version)) + result = call_618156.call(nil, query_618157, nil, formData_618158, nil) -var postDescribeFpgaImageAttribute* = Call_PostDescribeFpgaImageAttribute_618138( +var postDescribeFpgaImageAttribute* = Call_PostDescribeFpgaImageAttribute_618140( name: "postDescribeFpgaImageAttribute", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeFpgaImageAttribute", - validator: validate_PostDescribeFpgaImageAttribute_618139, base: "/", - url: url_PostDescribeFpgaImageAttribute_618140, + validator: validate_PostDescribeFpgaImageAttribute_618141, base: "/", + url: url_PostDescribeFpgaImageAttribute_618142, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeFpgaImageAttribute_618120 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeFpgaImageAttribute_618122(protocol: Scheme; host: string; + Call_GetDescribeFpgaImageAttribute_618122 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeFpgaImageAttribute_618124(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -57724,7 +57751,7 @@ proc url_GetDescribeFpgaImageAttribute_618122(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeFpgaImageAttribute_618121(path: JsonNode; query: JsonNode; +proc validate_GetDescribeFpgaImageAttribute_618123(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the specified attribute of the specified Amazon FPGA Image (AFI). ## @@ -57742,30 +57769,30 @@ proc validate_GetDescribeFpgaImageAttribute_618121(path: JsonNode; query: JsonNo ## Attribute: JString (required) ## : The AFI attribute. section = newJObject() - var valid_618123 = query.getOrDefault("DryRun") - valid_618123 = validateParameter(valid_618123, JBool, required = false, default = nil) - if valid_618123 != nil: - section.add "DryRun", valid_618123 - var valid_618124 = query.getOrDefault("Action") - valid_618124 = validateParameter(valid_618124, JString, required = true, default = newJString( - "DescribeFpgaImageAttribute")) - if valid_618124 != nil: - section.add "Action", valid_618124 - var valid_618125 = query.getOrDefault("FpgaImageId") - valid_618125 = validateParameter(valid_618125, JString, required = true, - default = nil) + var valid_618125 = query.getOrDefault("DryRun") + valid_618125 = validateParameter(valid_618125, JBool, required = false, default = nil) if valid_618125 != nil: - section.add "FpgaImageId", valid_618125 - var valid_618126 = query.getOrDefault("Version") - valid_618126 = validateParameter(valid_618126, JString, required = true, - default = newJString("2016-11-15")) + section.add "DryRun", valid_618125 + var valid_618126 = query.getOrDefault("Action") + valid_618126 = validateParameter(valid_618126, JString, required = true, default = newJString( + "DescribeFpgaImageAttribute")) if valid_618126 != nil: - section.add "Version", valid_618126 - var valid_618127 = query.getOrDefault("Attribute") + section.add "Action", valid_618126 + var valid_618127 = query.getOrDefault("FpgaImageId") valid_618127 = validateParameter(valid_618127, JString, required = true, - default = newJString("description")) + default = nil) if valid_618127 != nil: - section.add "Attribute", valid_618127 + section.add "FpgaImageId", valid_618127 + var valid_618128 = query.getOrDefault("Version") + valid_618128 = validateParameter(valid_618128, JString, required = true, + default = newJString("2016-11-15")) + if valid_618128 != nil: + section.add "Version", valid_618128 + var valid_618129 = query.getOrDefault("Attribute") + valid_618129 = validateParameter(valid_618129, JString, required = true, + default = newJString("description")) + if valid_618129 != nil: + section.add "Attribute", valid_618129 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -57776,61 +57803,61 @@ proc validate_GetDescribeFpgaImageAttribute_618121(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618128 = header.getOrDefault("X-Amz-Signature") - valid_618128 = validateParameter(valid_618128, JString, required = false, - default = nil) - if valid_618128 != nil: - section.add "X-Amz-Signature", valid_618128 - var valid_618129 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618129 = validateParameter(valid_618129, JString, required = false, - default = nil) - if valid_618129 != nil: - section.add "X-Amz-Content-Sha256", valid_618129 - var valid_618130 = header.getOrDefault("X-Amz-Date") + var valid_618130 = header.getOrDefault("X-Amz-Signature") valid_618130 = validateParameter(valid_618130, JString, required = false, default = nil) if valid_618130 != nil: - section.add "X-Amz-Date", valid_618130 - var valid_618131 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618130 + var valid_618131 = header.getOrDefault("X-Amz-Content-Sha256") valid_618131 = validateParameter(valid_618131, JString, required = false, default = nil) if valid_618131 != nil: - section.add "X-Amz-Credential", valid_618131 - var valid_618132 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618131 + var valid_618132 = header.getOrDefault("X-Amz-Date") valid_618132 = validateParameter(valid_618132, JString, required = false, default = nil) if valid_618132 != nil: - section.add "X-Amz-Security-Token", valid_618132 - var valid_618133 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618132 + var valid_618133 = header.getOrDefault("X-Amz-Credential") valid_618133 = validateParameter(valid_618133, JString, required = false, default = nil) if valid_618133 != nil: - section.add "X-Amz-Algorithm", valid_618133 - var valid_618134 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618133 + var valid_618134 = header.getOrDefault("X-Amz-Security-Token") valid_618134 = validateParameter(valid_618134, JString, required = false, default = nil) if valid_618134 != nil: - section.add "X-Amz-SignedHeaders", valid_618134 + section.add "X-Amz-Security-Token", valid_618134 + var valid_618135 = header.getOrDefault("X-Amz-Algorithm") + valid_618135 = validateParameter(valid_618135, JString, required = false, + default = nil) + if valid_618135 != nil: + section.add "X-Amz-Algorithm", valid_618135 + var valid_618136 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618136 = validateParameter(valid_618136, JString, required = false, + default = nil) + if valid_618136 != nil: + section.add "X-Amz-SignedHeaders", valid_618136 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618135: Call_GetDescribeFpgaImageAttribute_618120; path: JsonNode; +proc call*(call_618137: Call_GetDescribeFpgaImageAttribute_618122; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the specified attribute of the specified Amazon FPGA Image (AFI). ## - let valid = call_618135.validator(path, query, header, formData, body) - let scheme = call_618135.pickScheme + let valid = call_618137.validator(path, query, header, formData, body) + let scheme = call_618137.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618135.url(scheme.get, call_618135.host, call_618135.base, - call_618135.route, valid.getOrDefault("path"), + let url = call_618137.url(scheme.get, call_618137.host, call_618137.base, + call_618137.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618135, url, valid) + result = atozHook(call_618137, url, valid) -proc call*(call_618136: Call_GetDescribeFpgaImageAttribute_618120; +proc call*(call_618138: Call_GetDescribeFpgaImageAttribute_618122; FpgaImageId: string; DryRun: bool = false; Action: string = "DescribeFpgaImageAttribute"; Version: string = "2016-11-15"; Attribute: string = "description"): Recallable = @@ -57844,23 +57871,23 @@ proc call*(call_618136: Call_GetDescribeFpgaImageAttribute_618120; ## Version: string (required) ## Attribute: string (required) ## : The AFI attribute. - var query_618137 = newJObject() - add(query_618137, "DryRun", newJBool(DryRun)) - add(query_618137, "Action", newJString(Action)) - add(query_618137, "FpgaImageId", newJString(FpgaImageId)) - add(query_618137, "Version", newJString(Version)) - add(query_618137, "Attribute", newJString(Attribute)) - result = call_618136.call(nil, query_618137, nil, nil, nil) - -var getDescribeFpgaImageAttribute* = Call_GetDescribeFpgaImageAttribute_618120( + var query_618139 = newJObject() + add(query_618139, "DryRun", newJBool(DryRun)) + add(query_618139, "Action", newJString(Action)) + add(query_618139, "FpgaImageId", newJString(FpgaImageId)) + add(query_618139, "Version", newJString(Version)) + add(query_618139, "Attribute", newJString(Attribute)) + result = call_618138.call(nil, query_618139, nil, nil, nil) + +var getDescribeFpgaImageAttribute* = Call_GetDescribeFpgaImageAttribute_618122( name: "getDescribeFpgaImageAttribute", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeFpgaImageAttribute", - validator: validate_GetDescribeFpgaImageAttribute_618121, base: "/", - url: url_GetDescribeFpgaImageAttribute_618122, + validator: validate_GetDescribeFpgaImageAttribute_618123, base: "/", + url: url_GetDescribeFpgaImageAttribute_618124, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeFpgaImages_618178 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeFpgaImages_618180(protocol: Scheme; host: string; base: string; + Call_PostDescribeFpgaImages_618180 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeFpgaImages_618182(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -57870,7 +57897,7 @@ proc url_PostDescribeFpgaImages_618180(protocol: Scheme; host: string; base: str else: result.path = base & route -proc validate_PostDescribeFpgaImages_618179(path: JsonNode; query: JsonNode; +proc validate_PostDescribeFpgaImages_618181(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the Amazon FPGA Images (AFIs) available to you. These include public AFIs, private AFIs that you own, and AFIs owned by other AWS accounts for which you have load permissions. ## @@ -57882,16 +57909,16 @@ proc validate_PostDescribeFpgaImages_618179(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618181 = query.getOrDefault("Action") - valid_618181 = validateParameter(valid_618181, JString, required = true, + var valid_618183 = query.getOrDefault("Action") + valid_618183 = validateParameter(valid_618183, JString, required = true, default = newJString("DescribeFpgaImages")) - if valid_618181 != nil: - section.add "Action", valid_618181 - var valid_618182 = query.getOrDefault("Version") - valid_618182 = validateParameter(valid_618182, JString, required = true, + if valid_618183 != nil: + section.add "Action", valid_618183 + var valid_618184 = query.getOrDefault("Version") + valid_618184 = validateParameter(valid_618184, JString, required = true, default = newJString("2016-11-15")) - if valid_618182 != nil: - section.add "Version", valid_618182 + if valid_618184 != nil: + section.add "Version", valid_618184 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -57902,41 +57929,41 @@ proc validate_PostDescribeFpgaImages_618179(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618183 = header.getOrDefault("X-Amz-Signature") - valid_618183 = validateParameter(valid_618183, JString, required = false, - default = nil) - if valid_618183 != nil: - section.add "X-Amz-Signature", valid_618183 - var valid_618184 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618184 = validateParameter(valid_618184, JString, required = false, - default = nil) - if valid_618184 != nil: - section.add "X-Amz-Content-Sha256", valid_618184 - var valid_618185 = header.getOrDefault("X-Amz-Date") + var valid_618185 = header.getOrDefault("X-Amz-Signature") valid_618185 = validateParameter(valid_618185, JString, required = false, default = nil) if valid_618185 != nil: - section.add "X-Amz-Date", valid_618185 - var valid_618186 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618185 + var valid_618186 = header.getOrDefault("X-Amz-Content-Sha256") valid_618186 = validateParameter(valid_618186, JString, required = false, default = nil) if valid_618186 != nil: - section.add "X-Amz-Credential", valid_618186 - var valid_618187 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618186 + var valid_618187 = header.getOrDefault("X-Amz-Date") valid_618187 = validateParameter(valid_618187, JString, required = false, default = nil) if valid_618187 != nil: - section.add "X-Amz-Security-Token", valid_618187 - var valid_618188 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618187 + var valid_618188 = header.getOrDefault("X-Amz-Credential") valid_618188 = validateParameter(valid_618188, JString, required = false, default = nil) if valid_618188 != nil: - section.add "X-Amz-Algorithm", valid_618188 - var valid_618189 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618188 + var valid_618189 = header.getOrDefault("X-Amz-Security-Token") valid_618189 = validateParameter(valid_618189, JString, required = false, default = nil) if valid_618189 != nil: - section.add "X-Amz-SignedHeaders", valid_618189 + section.add "X-Amz-Security-Token", valid_618189 + var valid_618190 = header.getOrDefault("X-Amz-Algorithm") + valid_618190 = validateParameter(valid_618190, JString, required = false, + default = nil) + if valid_618190 != nil: + section.add "X-Amz-Algorithm", valid_618190 + var valid_618191 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618191 = validateParameter(valid_618191, JString, required = false, + default = nil) + if valid_618191 != nil: + section.add "X-Amz-SignedHeaders", valid_618191 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -57952,52 +57979,52 @@ proc validate_PostDescribeFpgaImages_618179(path: JsonNode; query: JsonNode; ## Filter: JArray ## :

The filters.

section = newJObject() - var valid_618190 = formData.getOrDefault("NextToken") - valid_618190 = validateParameter(valid_618190, JString, required = false, - default = nil) - if valid_618190 != nil: - section.add "NextToken", valid_618190 - var valid_618191 = formData.getOrDefault("DryRun") - valid_618191 = validateParameter(valid_618191, JBool, required = false, default = nil) - if valid_618191 != nil: - section.add "DryRun", valid_618191 - var valid_618192 = formData.getOrDefault("FpgaImageId") - valid_618192 = validateParameter(valid_618192, JArray, required = false, + var valid_618192 = formData.getOrDefault("NextToken") + valid_618192 = validateParameter(valid_618192, JString, required = false, default = nil) if valid_618192 != nil: - section.add "FpgaImageId", valid_618192 - var valid_618193 = formData.getOrDefault("Owner") - valid_618193 = validateParameter(valid_618193, JArray, required = false, - default = nil) + section.add "NextToken", valid_618192 + var valid_618193 = formData.getOrDefault("DryRun") + valid_618193 = validateParameter(valid_618193, JBool, required = false, default = nil) if valid_618193 != nil: - section.add "Owner", valid_618193 - var valid_618194 = formData.getOrDefault("MaxResults") - valid_618194 = validateParameter(valid_618194, JInt, required = false, default = nil) + section.add "DryRun", valid_618193 + var valid_618194 = formData.getOrDefault("FpgaImageId") + valid_618194 = validateParameter(valid_618194, JArray, required = false, + default = nil) if valid_618194 != nil: - section.add "MaxResults", valid_618194 - var valid_618195 = formData.getOrDefault("Filter") + section.add "FpgaImageId", valid_618194 + var valid_618195 = formData.getOrDefault("Owner") valid_618195 = validateParameter(valid_618195, JArray, required = false, default = nil) if valid_618195 != nil: - section.add "Filter", valid_618195 + section.add "Owner", valid_618195 + var valid_618196 = formData.getOrDefault("MaxResults") + valid_618196 = validateParameter(valid_618196, JInt, required = false, default = nil) + if valid_618196 != nil: + section.add "MaxResults", valid_618196 + var valid_618197 = formData.getOrDefault("Filter") + valid_618197 = validateParameter(valid_618197, JArray, required = false, + default = nil) + if valid_618197 != nil: + section.add "Filter", valid_618197 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618196: Call_PostDescribeFpgaImages_618178; path: JsonNode; +proc call*(call_618198: Call_PostDescribeFpgaImages_618180; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the Amazon FPGA Images (AFIs) available to you. These include public AFIs, private AFIs that you own, and AFIs owned by other AWS accounts for which you have load permissions. ## - let valid = call_618196.validator(path, query, header, formData, body) - let scheme = call_618196.pickScheme + let valid = call_618198.validator(path, query, header, formData, body) + let scheme = call_618198.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618196.url(scheme.get, call_618196.host, call_618196.base, - call_618196.route, valid.getOrDefault("path"), + let url = call_618198.url(scheme.get, call_618198.host, call_618198.base, + call_618198.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618196, url, valid) + result = atozHook(call_618198, url, valid) -proc call*(call_618197: Call_PostDescribeFpgaImages_618178; NextToken: string = ""; +proc call*(call_618199: Call_PostDescribeFpgaImages_618180; NextToken: string = ""; DryRun: bool = false; FpgaImageId: JsonNode = nil; Action: string = "DescribeFpgaImages"; Owner: JsonNode = nil; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -58017,29 +58044,29 @@ proc call*(call_618197: Call_PostDescribeFpgaImages_618178; NextToken: string = ## : The maximum number of results to return in a single call. ## Filter: JArray ## :

The filters.

- var query_618198 = newJObject() - var formData_618199 = newJObject() - add(formData_618199, "NextToken", newJString(NextToken)) - add(formData_618199, "DryRun", newJBool(DryRun)) + var query_618200 = newJObject() + var formData_618201 = newJObject() + add(formData_618201, "NextToken", newJString(NextToken)) + add(formData_618201, "DryRun", newJBool(DryRun)) if FpgaImageId != nil: - formData_618199.add "FpgaImageId", FpgaImageId - add(query_618198, "Action", newJString(Action)) + formData_618201.add "FpgaImageId", FpgaImageId + add(query_618200, "Action", newJString(Action)) if Owner != nil: - formData_618199.add "Owner", Owner - add(query_618198, "Version", newJString(Version)) - add(formData_618199, "MaxResults", newJInt(MaxResults)) + formData_618201.add "Owner", Owner + add(query_618200, "Version", newJString(Version)) + add(formData_618201, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_618199.add "Filter", Filter - result = call_618197.call(nil, query_618198, nil, formData_618199, nil) + formData_618201.add "Filter", Filter + result = call_618199.call(nil, query_618200, nil, formData_618201, nil) -var postDescribeFpgaImages* = Call_PostDescribeFpgaImages_618178( +var postDescribeFpgaImages* = Call_PostDescribeFpgaImages_618180( name: "postDescribeFpgaImages", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeFpgaImages", - validator: validate_PostDescribeFpgaImages_618179, base: "/", - url: url_PostDescribeFpgaImages_618180, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDescribeFpgaImages_618181, base: "/", + url: url_PostDescribeFpgaImages_618182, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeFpgaImages_618157 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeFpgaImages_618159(protocol: Scheme; host: string; base: string; + Call_GetDescribeFpgaImages_618159 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeFpgaImages_618161(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -58049,7 +58076,7 @@ proc url_GetDescribeFpgaImages_618159(protocol: Scheme; host: string; base: stri else: result.path = base & route -proc validate_GetDescribeFpgaImages_618158(path: JsonNode; query: JsonNode; +proc validate_GetDescribeFpgaImages_618160(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the Amazon FPGA Images (AFIs) available to you. These include public AFIs, private AFIs that you own, and AFIs owned by other AWS accounts for which you have load permissions. ## @@ -58073,44 +58100,44 @@ proc validate_GetDescribeFpgaImages_618158(path: JsonNode; query: JsonNode; ## : The AFI IDs. ## Version: JString (required) section = newJObject() - var valid_618160 = query.getOrDefault("MaxResults") - valid_618160 = validateParameter(valid_618160, JInt, required = false, default = nil) - if valid_618160 != nil: - section.add "MaxResults", valid_618160 - var valid_618161 = query.getOrDefault("Owner") - valid_618161 = validateParameter(valid_618161, JArray, required = false, - default = nil) - if valid_618161 != nil: - section.add "Owner", valid_618161 - var valid_618162 = query.getOrDefault("DryRun") - valid_618162 = validateParameter(valid_618162, JBool, required = false, default = nil) + var valid_618162 = query.getOrDefault("MaxResults") + valid_618162 = validateParameter(valid_618162, JInt, required = false, default = nil) if valid_618162 != nil: - section.add "DryRun", valid_618162 - var valid_618163 = query.getOrDefault("NextToken") - valid_618163 = validateParameter(valid_618163, JString, required = false, + section.add "MaxResults", valid_618162 + var valid_618163 = query.getOrDefault("Owner") + valid_618163 = validateParameter(valid_618163, JArray, required = false, default = nil) if valid_618163 != nil: - section.add "NextToken", valid_618163 - var valid_618164 = query.getOrDefault("Filter") - valid_618164 = validateParameter(valid_618164, JArray, required = false, - default = nil) + section.add "Owner", valid_618163 + var valid_618164 = query.getOrDefault("DryRun") + valid_618164 = validateParameter(valid_618164, JBool, required = false, default = nil) if valid_618164 != nil: - section.add "Filter", valid_618164 - var valid_618165 = query.getOrDefault("Action") - valid_618165 = validateParameter(valid_618165, JString, required = true, - default = newJString("DescribeFpgaImages")) + section.add "DryRun", valid_618164 + var valid_618165 = query.getOrDefault("NextToken") + valid_618165 = validateParameter(valid_618165, JString, required = false, + default = nil) if valid_618165 != nil: - section.add "Action", valid_618165 - var valid_618166 = query.getOrDefault("FpgaImageId") + section.add "NextToken", valid_618165 + var valid_618166 = query.getOrDefault("Filter") valid_618166 = validateParameter(valid_618166, JArray, required = false, default = nil) if valid_618166 != nil: - section.add "FpgaImageId", valid_618166 - var valid_618167 = query.getOrDefault("Version") + section.add "Filter", valid_618166 + var valid_618167 = query.getOrDefault("Action") valid_618167 = validateParameter(valid_618167, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("DescribeFpgaImages")) if valid_618167 != nil: - section.add "Version", valid_618167 + section.add "Action", valid_618167 + var valid_618168 = query.getOrDefault("FpgaImageId") + valid_618168 = validateParameter(valid_618168, JArray, required = false, + default = nil) + if valid_618168 != nil: + section.add "FpgaImageId", valid_618168 + var valid_618169 = query.getOrDefault("Version") + valid_618169 = validateParameter(valid_618169, JString, required = true, + default = newJString("2016-11-15")) + if valid_618169 != nil: + section.add "Version", valid_618169 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -58121,61 +58148,61 @@ proc validate_GetDescribeFpgaImages_618158(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618168 = header.getOrDefault("X-Amz-Signature") - valid_618168 = validateParameter(valid_618168, JString, required = false, - default = nil) - if valid_618168 != nil: - section.add "X-Amz-Signature", valid_618168 - var valid_618169 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618169 = validateParameter(valid_618169, JString, required = false, - default = nil) - if valid_618169 != nil: - section.add "X-Amz-Content-Sha256", valid_618169 - var valid_618170 = header.getOrDefault("X-Amz-Date") + var valid_618170 = header.getOrDefault("X-Amz-Signature") valid_618170 = validateParameter(valid_618170, JString, required = false, default = nil) if valid_618170 != nil: - section.add "X-Amz-Date", valid_618170 - var valid_618171 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618170 + var valid_618171 = header.getOrDefault("X-Amz-Content-Sha256") valid_618171 = validateParameter(valid_618171, JString, required = false, default = nil) if valid_618171 != nil: - section.add "X-Amz-Credential", valid_618171 - var valid_618172 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618171 + var valid_618172 = header.getOrDefault("X-Amz-Date") valid_618172 = validateParameter(valid_618172, JString, required = false, default = nil) if valid_618172 != nil: - section.add "X-Amz-Security-Token", valid_618172 - var valid_618173 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618172 + var valid_618173 = header.getOrDefault("X-Amz-Credential") valid_618173 = validateParameter(valid_618173, JString, required = false, default = nil) if valid_618173 != nil: - section.add "X-Amz-Algorithm", valid_618173 - var valid_618174 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618173 + var valid_618174 = header.getOrDefault("X-Amz-Security-Token") valid_618174 = validateParameter(valid_618174, JString, required = false, default = nil) if valid_618174 != nil: - section.add "X-Amz-SignedHeaders", valid_618174 + section.add "X-Amz-Security-Token", valid_618174 + var valid_618175 = header.getOrDefault("X-Amz-Algorithm") + valid_618175 = validateParameter(valid_618175, JString, required = false, + default = nil) + if valid_618175 != nil: + section.add "X-Amz-Algorithm", valid_618175 + var valid_618176 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618176 = validateParameter(valid_618176, JString, required = false, + default = nil) + if valid_618176 != nil: + section.add "X-Amz-SignedHeaders", valid_618176 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618175: Call_GetDescribeFpgaImages_618157; path: JsonNode; +proc call*(call_618177: Call_GetDescribeFpgaImages_618159; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the Amazon FPGA Images (AFIs) available to you. These include public AFIs, private AFIs that you own, and AFIs owned by other AWS accounts for which you have load permissions. ## - let valid = call_618175.validator(path, query, header, formData, body) - let scheme = call_618175.pickScheme + let valid = call_618177.validator(path, query, header, formData, body) + let scheme = call_618177.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618175.url(scheme.get, call_618175.host, call_618175.base, - call_618175.route, valid.getOrDefault("path"), + let url = call_618177.url(scheme.get, call_618177.host, call_618177.base, + call_618177.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618175, url, valid) + result = atozHook(call_618177, url, valid) -proc call*(call_618176: Call_GetDescribeFpgaImages_618157; MaxResults: int = 0; +proc call*(call_618178: Call_GetDescribeFpgaImages_618159; MaxResults: int = 0; Owner: JsonNode = nil; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeFpgaImages"; FpgaImageId: JsonNode = nil; Version: string = "2016-11-15"): Recallable = @@ -58195,28 +58222,28 @@ proc call*(call_618176: Call_GetDescribeFpgaImages_618157; MaxResults: int = 0; ## FpgaImageId: JArray ## : The AFI IDs. ## Version: string (required) - var query_618177 = newJObject() - add(query_618177, "MaxResults", newJInt(MaxResults)) + var query_618179 = newJObject() + add(query_618179, "MaxResults", newJInt(MaxResults)) if Owner != nil: - query_618177.add "Owner", Owner - add(query_618177, "DryRun", newJBool(DryRun)) - add(query_618177, "NextToken", newJString(NextToken)) + query_618179.add "Owner", Owner + add(query_618179, "DryRun", newJBool(DryRun)) + add(query_618179, "NextToken", newJString(NextToken)) if Filter != nil: - query_618177.add "Filter", Filter - add(query_618177, "Action", newJString(Action)) + query_618179.add "Filter", Filter + add(query_618179, "Action", newJString(Action)) if FpgaImageId != nil: - query_618177.add "FpgaImageId", FpgaImageId - add(query_618177, "Version", newJString(Version)) - result = call_618176.call(nil, query_618177, nil, nil, nil) + query_618179.add "FpgaImageId", FpgaImageId + add(query_618179, "Version", newJString(Version)) + result = call_618178.call(nil, query_618179, nil, nil, nil) -var getDescribeFpgaImages* = Call_GetDescribeFpgaImages_618157( +var getDescribeFpgaImages* = Call_GetDescribeFpgaImages_618159( name: "getDescribeFpgaImages", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeFpgaImages", - validator: validate_GetDescribeFpgaImages_618158, base: "/", - url: url_GetDescribeFpgaImages_618159, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDescribeFpgaImages_618160, base: "/", + url: url_GetDescribeFpgaImages_618161, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeHostReservationOfferings_618221 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeHostReservationOfferings_618223(protocol: Scheme; + Call_PostDescribeHostReservationOfferings_618223 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeHostReservationOfferings_618225(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -58226,7 +58253,7 @@ proc url_PostDescribeHostReservationOfferings_618223(protocol: Scheme; else: result.path = base & route -proc validate_PostDescribeHostReservationOfferings_618222(path: JsonNode; +proc validate_PostDescribeHostReservationOfferings_618224(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the Dedicated Host reservations that are available to purchase.

The results describe all of the Dedicated Host reservation offerings, including offerings that might not match the instance family and Region of your Dedicated Hosts. When purchasing an offering, ensure that the instance family and Region of the offering matches that of the Dedicated Hosts with which it is to be associated. For more information about supported instance types, see Dedicated Hosts Overview in the Amazon Elastic Compute Cloud User Guide.

## @@ -58238,16 +58265,16 @@ proc validate_PostDescribeHostReservationOfferings_618222(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618224 = query.getOrDefault("Action") - valid_618224 = validateParameter(valid_618224, JString, required = true, default = newJString( + var valid_618226 = query.getOrDefault("Action") + valid_618226 = validateParameter(valid_618226, JString, required = true, default = newJString( "DescribeHostReservationOfferings")) - if valid_618224 != nil: - section.add "Action", valid_618224 - var valid_618225 = query.getOrDefault("Version") - valid_618225 = validateParameter(valid_618225, JString, required = true, + if valid_618226 != nil: + section.add "Action", valid_618226 + var valid_618227 = query.getOrDefault("Version") + valid_618227 = validateParameter(valid_618227, JString, required = true, default = newJString("2016-11-15")) - if valid_618225 != nil: - section.add "Version", valid_618225 + if valid_618227 != nil: + section.add "Version", valid_618227 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -58258,41 +58285,41 @@ proc validate_PostDescribeHostReservationOfferings_618222(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618226 = header.getOrDefault("X-Amz-Signature") - valid_618226 = validateParameter(valid_618226, JString, required = false, - default = nil) - if valid_618226 != nil: - section.add "X-Amz-Signature", valid_618226 - var valid_618227 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618227 = validateParameter(valid_618227, JString, required = false, - default = nil) - if valid_618227 != nil: - section.add "X-Amz-Content-Sha256", valid_618227 - var valid_618228 = header.getOrDefault("X-Amz-Date") + var valid_618228 = header.getOrDefault("X-Amz-Signature") valid_618228 = validateParameter(valid_618228, JString, required = false, default = nil) if valid_618228 != nil: - section.add "X-Amz-Date", valid_618228 - var valid_618229 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618228 + var valid_618229 = header.getOrDefault("X-Amz-Content-Sha256") valid_618229 = validateParameter(valid_618229, JString, required = false, default = nil) if valid_618229 != nil: - section.add "X-Amz-Credential", valid_618229 - var valid_618230 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618229 + var valid_618230 = header.getOrDefault("X-Amz-Date") valid_618230 = validateParameter(valid_618230, JString, required = false, default = nil) if valid_618230 != nil: - section.add "X-Amz-Security-Token", valid_618230 - var valid_618231 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618230 + var valid_618231 = header.getOrDefault("X-Amz-Credential") valid_618231 = validateParameter(valid_618231, JString, required = false, default = nil) if valid_618231 != nil: - section.add "X-Amz-Algorithm", valid_618231 - var valid_618232 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618231 + var valid_618232 = header.getOrDefault("X-Amz-Security-Token") valid_618232 = validateParameter(valid_618232, JString, required = false, default = nil) if valid_618232 != nil: - section.add "X-Amz-SignedHeaders", valid_618232 + section.add "X-Amz-Security-Token", valid_618232 + var valid_618233 = header.getOrDefault("X-Amz-Algorithm") + valid_618233 = validateParameter(valid_618233, JString, required = false, + default = nil) + if valid_618233 != nil: + section.add "X-Amz-Algorithm", valid_618233 + var valid_618234 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618234 = validateParameter(valid_618234, JString, required = false, + default = nil) + if valid_618234 != nil: + section.add "X-Amz-SignedHeaders", valid_618234 result.add "header", section ## parameters in `formData` object: ## OfferingId: JString @@ -58308,52 +58335,52 @@ proc validate_PostDescribeHostReservationOfferings_618222(path: JsonNode; ## Filter: JArray ## :

The filters.

section = newJObject() - var valid_618233 = formData.getOrDefault("OfferingId") - valid_618233 = validateParameter(valid_618233, JString, required = false, - default = nil) - if valid_618233 != nil: - section.add "OfferingId", valid_618233 - var valid_618234 = formData.getOrDefault("NextToken") - valid_618234 = validateParameter(valid_618234, JString, required = false, + var valid_618235 = formData.getOrDefault("OfferingId") + valid_618235 = validateParameter(valid_618235, JString, required = false, default = nil) - if valid_618234 != nil: - section.add "NextToken", valid_618234 - var valid_618235 = formData.getOrDefault("MinDuration") - valid_618235 = validateParameter(valid_618235, JInt, required = false, default = nil) if valid_618235 != nil: - section.add "MinDuration", valid_618235 - var valid_618236 = formData.getOrDefault("MaxDuration") - valid_618236 = validateParameter(valid_618236, JInt, required = false, default = nil) + section.add "OfferingId", valid_618235 + var valid_618236 = formData.getOrDefault("NextToken") + valid_618236 = validateParameter(valid_618236, JString, required = false, + default = nil) if valid_618236 != nil: - section.add "MaxDuration", valid_618236 - var valid_618237 = formData.getOrDefault("MaxResults") + section.add "NextToken", valid_618236 + var valid_618237 = formData.getOrDefault("MinDuration") valid_618237 = validateParameter(valid_618237, JInt, required = false, default = nil) if valid_618237 != nil: - section.add "MaxResults", valid_618237 - var valid_618238 = formData.getOrDefault("Filter") - valid_618238 = validateParameter(valid_618238, JArray, required = false, - default = nil) + section.add "MinDuration", valid_618237 + var valid_618238 = formData.getOrDefault("MaxDuration") + valid_618238 = validateParameter(valid_618238, JInt, required = false, default = nil) if valid_618238 != nil: - section.add "Filter", valid_618238 + section.add "MaxDuration", valid_618238 + var valid_618239 = formData.getOrDefault("MaxResults") + valid_618239 = validateParameter(valid_618239, JInt, required = false, default = nil) + if valid_618239 != nil: + section.add "MaxResults", valid_618239 + var valid_618240 = formData.getOrDefault("Filter") + valid_618240 = validateParameter(valid_618240, JArray, required = false, + default = nil) + if valid_618240 != nil: + section.add "Filter", valid_618240 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618239: Call_PostDescribeHostReservationOfferings_618221; +proc call*(call_618241: Call_PostDescribeHostReservationOfferings_618223; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the Dedicated Host reservations that are available to purchase.

The results describe all of the Dedicated Host reservation offerings, including offerings that might not match the instance family and Region of your Dedicated Hosts. When purchasing an offering, ensure that the instance family and Region of the offering matches that of the Dedicated Hosts with which it is to be associated. For more information about supported instance types, see Dedicated Hosts Overview in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_618239.validator(path, query, header, formData, body) - let scheme = call_618239.pickScheme + let valid = call_618241.validator(path, query, header, formData, body) + let scheme = call_618241.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618239.url(scheme.get, call_618239.host, call_618239.base, - call_618239.route, valid.getOrDefault("path"), + let url = call_618241.url(scheme.get, call_618241.host, call_618241.base, + call_618241.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618239, url, valid) + result = atozHook(call_618241, url, valid) -proc call*(call_618240: Call_PostDescribeHostReservationOfferings_618221; +proc call*(call_618242: Call_PostDescribeHostReservationOfferings_618223; OfferingId: string = ""; NextToken: string = ""; MinDuration: int = 0; Action: string = "DescribeHostReservationOfferings"; MaxDuration: int = 0; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -58373,28 +58400,28 @@ proc call*(call_618240: Call_PostDescribeHostReservationOfferings_618221; ## : The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned nextToken value. This value can be between 5 and 500. If maxResults is given a larger value than 500, you receive an error. ## Filter: JArray ## :

The filters.

- var query_618241 = newJObject() - var formData_618242 = newJObject() - add(formData_618242, "OfferingId", newJString(OfferingId)) - add(formData_618242, "NextToken", newJString(NextToken)) - add(formData_618242, "MinDuration", newJInt(MinDuration)) - add(query_618241, "Action", newJString(Action)) - add(formData_618242, "MaxDuration", newJInt(MaxDuration)) - add(query_618241, "Version", newJString(Version)) - add(formData_618242, "MaxResults", newJInt(MaxResults)) + var query_618243 = newJObject() + var formData_618244 = newJObject() + add(formData_618244, "OfferingId", newJString(OfferingId)) + add(formData_618244, "NextToken", newJString(NextToken)) + add(formData_618244, "MinDuration", newJInt(MinDuration)) + add(query_618243, "Action", newJString(Action)) + add(formData_618244, "MaxDuration", newJInt(MaxDuration)) + add(query_618243, "Version", newJString(Version)) + add(formData_618244, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_618242.add "Filter", Filter - result = call_618240.call(nil, query_618241, nil, formData_618242, nil) + formData_618244.add "Filter", Filter + result = call_618242.call(nil, query_618243, nil, formData_618244, nil) -var postDescribeHostReservationOfferings* = Call_PostDescribeHostReservationOfferings_618221( +var postDescribeHostReservationOfferings* = Call_PostDescribeHostReservationOfferings_618223( name: "postDescribeHostReservationOfferings", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeHostReservationOfferings", - validator: validate_PostDescribeHostReservationOfferings_618222, base: "/", - url: url_PostDescribeHostReservationOfferings_618223, + validator: validate_PostDescribeHostReservationOfferings_618224, base: "/", + url: url_PostDescribeHostReservationOfferings_618225, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeHostReservationOfferings_618200 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeHostReservationOfferings_618202(protocol: Scheme; host: string; + Call_GetDescribeHostReservationOfferings_618202 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeHostReservationOfferings_618204(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -58404,7 +58431,7 @@ proc url_GetDescribeHostReservationOfferings_618202(protocol: Scheme; host: stri else: result.path = base & route -proc validate_GetDescribeHostReservationOfferings_618201(path: JsonNode; +proc validate_GetDescribeHostReservationOfferings_618203(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the Dedicated Host reservations that are available to purchase.

The results describe all of the Dedicated Host reservation offerings, including offerings that might not match the instance family and Region of your Dedicated Hosts. When purchasing an offering, ensure that the instance family and Region of the offering matches that of the Dedicated Hosts with which it is to be associated. For more information about supported instance types, see Dedicated Hosts Overview in the Amazon Elastic Compute Cloud User Guide.

## @@ -58428,43 +58455,43 @@ proc validate_GetDescribeHostReservationOfferings_618201(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618203 = query.getOrDefault("MaxResults") - valid_618203 = validateParameter(valid_618203, JInt, required = false, default = nil) - if valid_618203 != nil: - section.add "MaxResults", valid_618203 - var valid_618204 = query.getOrDefault("OfferingId") - valid_618204 = validateParameter(valid_618204, JString, required = false, - default = nil) - if valid_618204 != nil: - section.add "OfferingId", valid_618204 - var valid_618205 = query.getOrDefault("NextToken") - valid_618205 = validateParameter(valid_618205, JString, required = false, - default = nil) + var valid_618205 = query.getOrDefault("MaxResults") + valid_618205 = validateParameter(valid_618205, JInt, required = false, default = nil) if valid_618205 != nil: - section.add "NextToken", valid_618205 - var valid_618206 = query.getOrDefault("MinDuration") - valid_618206 = validateParameter(valid_618206, JInt, required = false, default = nil) + section.add "MaxResults", valid_618205 + var valid_618206 = query.getOrDefault("OfferingId") + valid_618206 = validateParameter(valid_618206, JString, required = false, + default = nil) if valid_618206 != nil: - section.add "MinDuration", valid_618206 - var valid_618207 = query.getOrDefault("Filter") - valid_618207 = validateParameter(valid_618207, JArray, required = false, + section.add "OfferingId", valid_618206 + var valid_618207 = query.getOrDefault("NextToken") + valid_618207 = validateParameter(valid_618207, JString, required = false, default = nil) if valid_618207 != nil: - section.add "Filter", valid_618207 - var valid_618208 = query.getOrDefault("MaxDuration") + section.add "NextToken", valid_618207 + var valid_618208 = query.getOrDefault("MinDuration") valid_618208 = validateParameter(valid_618208, JInt, required = false, default = nil) if valid_618208 != nil: - section.add "MaxDuration", valid_618208 - var valid_618209 = query.getOrDefault("Action") - valid_618209 = validateParameter(valid_618209, JString, required = true, default = newJString( - "DescribeHostReservationOfferings")) + section.add "MinDuration", valid_618208 + var valid_618209 = query.getOrDefault("Filter") + valid_618209 = validateParameter(valid_618209, JArray, required = false, + default = nil) if valid_618209 != nil: - section.add "Action", valid_618209 - var valid_618210 = query.getOrDefault("Version") - valid_618210 = validateParameter(valid_618210, JString, required = true, - default = newJString("2016-11-15")) + section.add "Filter", valid_618209 + var valid_618210 = query.getOrDefault("MaxDuration") + valid_618210 = validateParameter(valid_618210, JInt, required = false, default = nil) if valid_618210 != nil: - section.add "Version", valid_618210 + section.add "MaxDuration", valid_618210 + var valid_618211 = query.getOrDefault("Action") + valid_618211 = validateParameter(valid_618211, JString, required = true, default = newJString( + "DescribeHostReservationOfferings")) + if valid_618211 != nil: + section.add "Action", valid_618211 + var valid_618212 = query.getOrDefault("Version") + valid_618212 = validateParameter(valid_618212, JString, required = true, + default = newJString("2016-11-15")) + if valid_618212 != nil: + section.add "Version", valid_618212 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -58475,62 +58502,62 @@ proc validate_GetDescribeHostReservationOfferings_618201(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618211 = header.getOrDefault("X-Amz-Signature") - valid_618211 = validateParameter(valid_618211, JString, required = false, - default = nil) - if valid_618211 != nil: - section.add "X-Amz-Signature", valid_618211 - var valid_618212 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618212 = validateParameter(valid_618212, JString, required = false, - default = nil) - if valid_618212 != nil: - section.add "X-Amz-Content-Sha256", valid_618212 - var valid_618213 = header.getOrDefault("X-Amz-Date") + var valid_618213 = header.getOrDefault("X-Amz-Signature") valid_618213 = validateParameter(valid_618213, JString, required = false, default = nil) if valid_618213 != nil: - section.add "X-Amz-Date", valid_618213 - var valid_618214 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618213 + var valid_618214 = header.getOrDefault("X-Amz-Content-Sha256") valid_618214 = validateParameter(valid_618214, JString, required = false, default = nil) if valid_618214 != nil: - section.add "X-Amz-Credential", valid_618214 - var valid_618215 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618214 + var valid_618215 = header.getOrDefault("X-Amz-Date") valid_618215 = validateParameter(valid_618215, JString, required = false, default = nil) if valid_618215 != nil: - section.add "X-Amz-Security-Token", valid_618215 - var valid_618216 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618215 + var valid_618216 = header.getOrDefault("X-Amz-Credential") valid_618216 = validateParameter(valid_618216, JString, required = false, default = nil) if valid_618216 != nil: - section.add "X-Amz-Algorithm", valid_618216 - var valid_618217 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618216 + var valid_618217 = header.getOrDefault("X-Amz-Security-Token") valid_618217 = validateParameter(valid_618217, JString, required = false, default = nil) if valid_618217 != nil: - section.add "X-Amz-SignedHeaders", valid_618217 + section.add "X-Amz-Security-Token", valid_618217 + var valid_618218 = header.getOrDefault("X-Amz-Algorithm") + valid_618218 = validateParameter(valid_618218, JString, required = false, + default = nil) + if valid_618218 != nil: + section.add "X-Amz-Algorithm", valid_618218 + var valid_618219 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618219 = validateParameter(valid_618219, JString, required = false, + default = nil) + if valid_618219 != nil: + section.add "X-Amz-SignedHeaders", valid_618219 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618218: Call_GetDescribeHostReservationOfferings_618200; +proc call*(call_618220: Call_GetDescribeHostReservationOfferings_618202; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the Dedicated Host reservations that are available to purchase.

The results describe all of the Dedicated Host reservation offerings, including offerings that might not match the instance family and Region of your Dedicated Hosts. When purchasing an offering, ensure that the instance family and Region of the offering matches that of the Dedicated Hosts with which it is to be associated. For more information about supported instance types, see Dedicated Hosts Overview in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_618218.validator(path, query, header, formData, body) - let scheme = call_618218.pickScheme + let valid = call_618220.validator(path, query, header, formData, body) + let scheme = call_618220.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618218.url(scheme.get, call_618218.host, call_618218.base, - call_618218.route, valid.getOrDefault("path"), + let url = call_618220.url(scheme.get, call_618220.host, call_618220.base, + call_618220.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618218, url, valid) + result = atozHook(call_618220, url, valid) -proc call*(call_618219: Call_GetDescribeHostReservationOfferings_618200; +proc call*(call_618221: Call_GetDescribeHostReservationOfferings_618202; MaxResults: int = 0; OfferingId: string = ""; NextToken: string = ""; MinDuration: int = 0; Filter: JsonNode = nil; MaxDuration: int = 0; Action: string = "DescribeHostReservationOfferings"; @@ -58551,27 +58578,27 @@ proc call*(call_618219: Call_GetDescribeHostReservationOfferings_618200; ## : This is the maximum duration of the reservation to purchase, specified in seconds. Reservations are available in one-year and three-year terms. The number of seconds specified must be the number of seconds in a year (365x24x60x60) times one of the supported durations (1 or 3). For example, specify 94608000 for three years. ## Action: string (required) ## Version: string (required) - var query_618220 = newJObject() - add(query_618220, "MaxResults", newJInt(MaxResults)) - add(query_618220, "OfferingId", newJString(OfferingId)) - add(query_618220, "NextToken", newJString(NextToken)) - add(query_618220, "MinDuration", newJInt(MinDuration)) + var query_618222 = newJObject() + add(query_618222, "MaxResults", newJInt(MaxResults)) + add(query_618222, "OfferingId", newJString(OfferingId)) + add(query_618222, "NextToken", newJString(NextToken)) + add(query_618222, "MinDuration", newJInt(MinDuration)) if Filter != nil: - query_618220.add "Filter", Filter - add(query_618220, "MaxDuration", newJInt(MaxDuration)) - add(query_618220, "Action", newJString(Action)) - add(query_618220, "Version", newJString(Version)) - result = call_618219.call(nil, query_618220, nil, nil, nil) + query_618222.add "Filter", Filter + add(query_618222, "MaxDuration", newJInt(MaxDuration)) + add(query_618222, "Action", newJString(Action)) + add(query_618222, "Version", newJString(Version)) + result = call_618221.call(nil, query_618222, nil, nil, nil) -var getDescribeHostReservationOfferings* = Call_GetDescribeHostReservationOfferings_618200( +var getDescribeHostReservationOfferings* = Call_GetDescribeHostReservationOfferings_618202( name: "getDescribeHostReservationOfferings", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeHostReservationOfferings", - validator: validate_GetDescribeHostReservationOfferings_618201, base: "/", - url: url_GetDescribeHostReservationOfferings_618202, + validator: validate_GetDescribeHostReservationOfferings_618203, base: "/", + url: url_GetDescribeHostReservationOfferings_618204, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeHostReservations_618262 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeHostReservations_618264(protocol: Scheme; host: string; + Call_PostDescribeHostReservations_618264 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeHostReservations_618266(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -58581,7 +58608,7 @@ proc url_PostDescribeHostReservations_618264(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeHostReservations_618263(path: JsonNode; query: JsonNode; +proc validate_PostDescribeHostReservations_618265(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes reservations that are associated with Dedicated Hosts in your account. ## @@ -58593,16 +58620,16 @@ proc validate_PostDescribeHostReservations_618263(path: JsonNode; query: JsonNod ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618265 = query.getOrDefault("Action") - valid_618265 = validateParameter(valid_618265, JString, required = true, default = newJString( + var valid_618267 = query.getOrDefault("Action") + valid_618267 = validateParameter(valid_618267, JString, required = true, default = newJString( "DescribeHostReservations")) - if valid_618265 != nil: - section.add "Action", valid_618265 - var valid_618266 = query.getOrDefault("Version") - valid_618266 = validateParameter(valid_618266, JString, required = true, + if valid_618267 != nil: + section.add "Action", valid_618267 + var valid_618268 = query.getOrDefault("Version") + valid_618268 = validateParameter(valid_618268, JString, required = true, default = newJString("2016-11-15")) - if valid_618266 != nil: - section.add "Version", valid_618266 + if valid_618268 != nil: + section.add "Version", valid_618268 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -58613,41 +58640,41 @@ proc validate_PostDescribeHostReservations_618263(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618267 = header.getOrDefault("X-Amz-Signature") - valid_618267 = validateParameter(valid_618267, JString, required = false, - default = nil) - if valid_618267 != nil: - section.add "X-Amz-Signature", valid_618267 - var valid_618268 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618268 = validateParameter(valid_618268, JString, required = false, - default = nil) - if valid_618268 != nil: - section.add "X-Amz-Content-Sha256", valid_618268 - var valid_618269 = header.getOrDefault("X-Amz-Date") + var valid_618269 = header.getOrDefault("X-Amz-Signature") valid_618269 = validateParameter(valid_618269, JString, required = false, default = nil) if valid_618269 != nil: - section.add "X-Amz-Date", valid_618269 - var valid_618270 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618269 + var valid_618270 = header.getOrDefault("X-Amz-Content-Sha256") valid_618270 = validateParameter(valid_618270, JString, required = false, default = nil) if valid_618270 != nil: - section.add "X-Amz-Credential", valid_618270 - var valid_618271 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618270 + var valid_618271 = header.getOrDefault("X-Amz-Date") valid_618271 = validateParameter(valid_618271, JString, required = false, default = nil) if valid_618271 != nil: - section.add "X-Amz-Security-Token", valid_618271 - var valid_618272 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618271 + var valid_618272 = header.getOrDefault("X-Amz-Credential") valid_618272 = validateParameter(valid_618272, JString, required = false, default = nil) if valid_618272 != nil: - section.add "X-Amz-Algorithm", valid_618272 - var valid_618273 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618272 + var valid_618273 = header.getOrDefault("X-Amz-Security-Token") valid_618273 = validateParameter(valid_618273, JString, required = false, default = nil) if valid_618273 != nil: - section.add "X-Amz-SignedHeaders", valid_618273 + section.add "X-Amz-Security-Token", valid_618273 + var valid_618274 = header.getOrDefault("X-Amz-Algorithm") + valid_618274 = validateParameter(valid_618274, JString, required = false, + default = nil) + if valid_618274 != nil: + section.add "X-Amz-Algorithm", valid_618274 + var valid_618275 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618275 = validateParameter(valid_618275, JString, required = false, + default = nil) + if valid_618275 != nil: + section.add "X-Amz-SignedHeaders", valid_618275 result.add "header", section ## parameters in `formData` object: ## HostReservationIdSet: JArray @@ -58659,43 +58686,43 @@ proc validate_PostDescribeHostReservations_618263(path: JsonNode; query: JsonNod ## Filter: JArray ## :

The filters.

section = newJObject() - var valid_618274 = formData.getOrDefault("HostReservationIdSet") - valid_618274 = validateParameter(valid_618274, JArray, required = false, - default = nil) - if valid_618274 != nil: - section.add "HostReservationIdSet", valid_618274 - var valid_618275 = formData.getOrDefault("NextToken") - valid_618275 = validateParameter(valid_618275, JString, required = false, + var valid_618276 = formData.getOrDefault("HostReservationIdSet") + valid_618276 = validateParameter(valid_618276, JArray, required = false, default = nil) - if valid_618275 != nil: - section.add "NextToken", valid_618275 - var valid_618276 = formData.getOrDefault("MaxResults") - valid_618276 = validateParameter(valid_618276, JInt, required = false, default = nil) if valid_618276 != nil: - section.add "MaxResults", valid_618276 - var valid_618277 = formData.getOrDefault("Filter") - valid_618277 = validateParameter(valid_618277, JArray, required = false, + section.add "HostReservationIdSet", valid_618276 + var valid_618277 = formData.getOrDefault("NextToken") + valid_618277 = validateParameter(valid_618277, JString, required = false, default = nil) if valid_618277 != nil: - section.add "Filter", valid_618277 + section.add "NextToken", valid_618277 + var valid_618278 = formData.getOrDefault("MaxResults") + valid_618278 = validateParameter(valid_618278, JInt, required = false, default = nil) + if valid_618278 != nil: + section.add "MaxResults", valid_618278 + var valid_618279 = formData.getOrDefault("Filter") + valid_618279 = validateParameter(valid_618279, JArray, required = false, + default = nil) + if valid_618279 != nil: + section.add "Filter", valid_618279 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618278: Call_PostDescribeHostReservations_618262; path: JsonNode; +proc call*(call_618280: Call_PostDescribeHostReservations_618264; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes reservations that are associated with Dedicated Hosts in your account. ## - let valid = call_618278.validator(path, query, header, formData, body) - let scheme = call_618278.pickScheme + let valid = call_618280.validator(path, query, header, formData, body) + let scheme = call_618280.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618278.url(scheme.get, call_618278.host, call_618278.base, - call_618278.route, valid.getOrDefault("path"), + let url = call_618280.url(scheme.get, call_618280.host, call_618280.base, + call_618280.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618278, url, valid) + result = atozHook(call_618280, url, valid) -proc call*(call_618279: Call_PostDescribeHostReservations_618262; +proc call*(call_618281: Call_PostDescribeHostReservations_618264; HostReservationIdSet: JsonNode = nil; NextToken: string = ""; Action: string = "DescribeHostReservations"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -58711,27 +58738,27 @@ proc call*(call_618279: Call_PostDescribeHostReservations_618262; ## : The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned nextToken value. This value can be between 5 and 500. If maxResults is given a larger value than 500, you receive an error. ## Filter: JArray ## :

The filters.

- var query_618280 = newJObject() - var formData_618281 = newJObject() + var query_618282 = newJObject() + var formData_618283 = newJObject() if HostReservationIdSet != nil: - formData_618281.add "HostReservationIdSet", HostReservationIdSet - add(formData_618281, "NextToken", newJString(NextToken)) - add(query_618280, "Action", newJString(Action)) - add(query_618280, "Version", newJString(Version)) - add(formData_618281, "MaxResults", newJInt(MaxResults)) + formData_618283.add "HostReservationIdSet", HostReservationIdSet + add(formData_618283, "NextToken", newJString(NextToken)) + add(query_618282, "Action", newJString(Action)) + add(query_618282, "Version", newJString(Version)) + add(formData_618283, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_618281.add "Filter", Filter - result = call_618279.call(nil, query_618280, nil, formData_618281, nil) + formData_618283.add "Filter", Filter + result = call_618281.call(nil, query_618282, nil, formData_618283, nil) -var postDescribeHostReservations* = Call_PostDescribeHostReservations_618262( +var postDescribeHostReservations* = Call_PostDescribeHostReservations_618264( name: "postDescribeHostReservations", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeHostReservations", - validator: validate_PostDescribeHostReservations_618263, base: "/", - url: url_PostDescribeHostReservations_618264, + validator: validate_PostDescribeHostReservations_618265, base: "/", + url: url_PostDescribeHostReservations_618266, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeHostReservations_618243 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeHostReservations_618245(protocol: Scheme; host: string; + Call_GetDescribeHostReservations_618245 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeHostReservations_618247(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -58741,7 +58768,7 @@ proc url_GetDescribeHostReservations_618245(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeHostReservations_618244(path: JsonNode; query: JsonNode; +proc validate_GetDescribeHostReservations_618246(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes reservations that are associated with Dedicated Hosts in your account. ## @@ -58761,35 +58788,35 @@ proc validate_GetDescribeHostReservations_618244(path: JsonNode; query: JsonNode ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618246 = query.getOrDefault("MaxResults") - valid_618246 = validateParameter(valid_618246, JInt, required = false, default = nil) - if valid_618246 != nil: - section.add "MaxResults", valid_618246 - var valid_618247 = query.getOrDefault("HostReservationIdSet") - valid_618247 = validateParameter(valid_618247, JArray, required = false, - default = nil) - if valid_618247 != nil: - section.add "HostReservationIdSet", valid_618247 - var valid_618248 = query.getOrDefault("NextToken") - valid_618248 = validateParameter(valid_618248, JString, required = false, - default = nil) + var valid_618248 = query.getOrDefault("MaxResults") + valid_618248 = validateParameter(valid_618248, JInt, required = false, default = nil) if valid_618248 != nil: - section.add "NextToken", valid_618248 - var valid_618249 = query.getOrDefault("Filter") + section.add "MaxResults", valid_618248 + var valid_618249 = query.getOrDefault("HostReservationIdSet") valid_618249 = validateParameter(valid_618249, JArray, required = false, default = nil) if valid_618249 != nil: - section.add "Filter", valid_618249 - var valid_618250 = query.getOrDefault("Action") - valid_618250 = validateParameter(valid_618250, JString, required = true, default = newJString( - "DescribeHostReservations")) + section.add "HostReservationIdSet", valid_618249 + var valid_618250 = query.getOrDefault("NextToken") + valid_618250 = validateParameter(valid_618250, JString, required = false, + default = nil) if valid_618250 != nil: - section.add "Action", valid_618250 - var valid_618251 = query.getOrDefault("Version") - valid_618251 = validateParameter(valid_618251, JString, required = true, - default = newJString("2016-11-15")) + section.add "NextToken", valid_618250 + var valid_618251 = query.getOrDefault("Filter") + valid_618251 = validateParameter(valid_618251, JArray, required = false, + default = nil) if valid_618251 != nil: - section.add "Version", valid_618251 + section.add "Filter", valid_618251 + var valid_618252 = query.getOrDefault("Action") + valid_618252 = validateParameter(valid_618252, JString, required = true, default = newJString( + "DescribeHostReservations")) + if valid_618252 != nil: + section.add "Action", valid_618252 + var valid_618253 = query.getOrDefault("Version") + valid_618253 = validateParameter(valid_618253, JString, required = true, + default = newJString("2016-11-15")) + if valid_618253 != nil: + section.add "Version", valid_618253 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -58800,61 +58827,61 @@ proc validate_GetDescribeHostReservations_618244(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618252 = header.getOrDefault("X-Amz-Signature") - valid_618252 = validateParameter(valid_618252, JString, required = false, - default = nil) - if valid_618252 != nil: - section.add "X-Amz-Signature", valid_618252 - var valid_618253 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618253 = validateParameter(valid_618253, JString, required = false, - default = nil) - if valid_618253 != nil: - section.add "X-Amz-Content-Sha256", valid_618253 - var valid_618254 = header.getOrDefault("X-Amz-Date") + var valid_618254 = header.getOrDefault("X-Amz-Signature") valid_618254 = validateParameter(valid_618254, JString, required = false, default = nil) if valid_618254 != nil: - section.add "X-Amz-Date", valid_618254 - var valid_618255 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618254 + var valid_618255 = header.getOrDefault("X-Amz-Content-Sha256") valid_618255 = validateParameter(valid_618255, JString, required = false, default = nil) if valid_618255 != nil: - section.add "X-Amz-Credential", valid_618255 - var valid_618256 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618255 + var valid_618256 = header.getOrDefault("X-Amz-Date") valid_618256 = validateParameter(valid_618256, JString, required = false, default = nil) if valid_618256 != nil: - section.add "X-Amz-Security-Token", valid_618256 - var valid_618257 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618256 + var valid_618257 = header.getOrDefault("X-Amz-Credential") valid_618257 = validateParameter(valid_618257, JString, required = false, default = nil) if valid_618257 != nil: - section.add "X-Amz-Algorithm", valid_618257 - var valid_618258 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618257 + var valid_618258 = header.getOrDefault("X-Amz-Security-Token") valid_618258 = validateParameter(valid_618258, JString, required = false, default = nil) if valid_618258 != nil: - section.add "X-Amz-SignedHeaders", valid_618258 + section.add "X-Amz-Security-Token", valid_618258 + var valid_618259 = header.getOrDefault("X-Amz-Algorithm") + valid_618259 = validateParameter(valid_618259, JString, required = false, + default = nil) + if valid_618259 != nil: + section.add "X-Amz-Algorithm", valid_618259 + var valid_618260 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618260 = validateParameter(valid_618260, JString, required = false, + default = nil) + if valid_618260 != nil: + section.add "X-Amz-SignedHeaders", valid_618260 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618259: Call_GetDescribeHostReservations_618243; path: JsonNode; +proc call*(call_618261: Call_GetDescribeHostReservations_618245; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes reservations that are associated with Dedicated Hosts in your account. ## - let valid = call_618259.validator(path, query, header, formData, body) - let scheme = call_618259.pickScheme + let valid = call_618261.validator(path, query, header, formData, body) + let scheme = call_618261.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618259.url(scheme.get, call_618259.host, call_618259.base, - call_618259.route, valid.getOrDefault("path"), + let url = call_618261.url(scheme.get, call_618261.host, call_618261.base, + call_618261.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618259, url, valid) + result = atozHook(call_618261, url, valid) -proc call*(call_618260: Call_GetDescribeHostReservations_618243; +proc call*(call_618262: Call_GetDescribeHostReservations_618245; MaxResults: int = 0; HostReservationIdSet: JsonNode = nil; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeHostReservations"; @@ -58871,26 +58898,26 @@ proc call*(call_618260: Call_GetDescribeHostReservations_618243; ## :

The filters.

## Action: string (required) ## Version: string (required) - var query_618261 = newJObject() - add(query_618261, "MaxResults", newJInt(MaxResults)) + var query_618263 = newJObject() + add(query_618263, "MaxResults", newJInt(MaxResults)) if HostReservationIdSet != nil: - query_618261.add "HostReservationIdSet", HostReservationIdSet - add(query_618261, "NextToken", newJString(NextToken)) + query_618263.add "HostReservationIdSet", HostReservationIdSet + add(query_618263, "NextToken", newJString(NextToken)) if Filter != nil: - query_618261.add "Filter", Filter - add(query_618261, "Action", newJString(Action)) - add(query_618261, "Version", newJString(Version)) - result = call_618260.call(nil, query_618261, nil, nil, nil) + query_618263.add "Filter", Filter + add(query_618263, "Action", newJString(Action)) + add(query_618263, "Version", newJString(Version)) + result = call_618262.call(nil, query_618263, nil, nil, nil) -var getDescribeHostReservations* = Call_GetDescribeHostReservations_618243( +var getDescribeHostReservations* = Call_GetDescribeHostReservations_618245( name: "getDescribeHostReservations", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeHostReservations", - validator: validate_GetDescribeHostReservations_618244, base: "/", - url: url_GetDescribeHostReservations_618245, + validator: validate_GetDescribeHostReservations_618246, base: "/", + url: url_GetDescribeHostReservations_618247, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeHosts_618301 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeHosts_618303(protocol: Scheme; host: string; base: string; + Call_PostDescribeHosts_618303 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeHosts_618305(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -58900,7 +58927,7 @@ proc url_PostDescribeHosts_618303(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostDescribeHosts_618302(path: JsonNode; query: JsonNode; +proc validate_PostDescribeHosts_618304(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the specified Dedicated Hosts or all your Dedicated Hosts.

The results describe only the Dedicated Hosts in the Region you're currently using. All listed instances consume capacity on your Dedicated Host. Dedicated Hosts that have recently been released are listed with the state released.

@@ -58913,16 +58940,16 @@ proc validate_PostDescribeHosts_618302(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618304 = query.getOrDefault("Action") - valid_618304 = validateParameter(valid_618304, JString, required = true, + var valid_618306 = query.getOrDefault("Action") + valid_618306 = validateParameter(valid_618306, JString, required = true, default = newJString("DescribeHosts")) - if valid_618304 != nil: - section.add "Action", valid_618304 - var valid_618305 = query.getOrDefault("Version") - valid_618305 = validateParameter(valid_618305, JString, required = true, + if valid_618306 != nil: + section.add "Action", valid_618306 + var valid_618307 = query.getOrDefault("Version") + valid_618307 = validateParameter(valid_618307, JString, required = true, default = newJString("2016-11-15")) - if valid_618305 != nil: - section.add "Version", valid_618305 + if valid_618307 != nil: + section.add "Version", valid_618307 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -58933,41 +58960,41 @@ proc validate_PostDescribeHosts_618302(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618306 = header.getOrDefault("X-Amz-Signature") - valid_618306 = validateParameter(valid_618306, JString, required = false, - default = nil) - if valid_618306 != nil: - section.add "X-Amz-Signature", valid_618306 - var valid_618307 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618307 = validateParameter(valid_618307, JString, required = false, - default = nil) - if valid_618307 != nil: - section.add "X-Amz-Content-Sha256", valid_618307 - var valid_618308 = header.getOrDefault("X-Amz-Date") + var valid_618308 = header.getOrDefault("X-Amz-Signature") valid_618308 = validateParameter(valid_618308, JString, required = false, default = nil) if valid_618308 != nil: - section.add "X-Amz-Date", valid_618308 - var valid_618309 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618308 + var valid_618309 = header.getOrDefault("X-Amz-Content-Sha256") valid_618309 = validateParameter(valid_618309, JString, required = false, default = nil) if valid_618309 != nil: - section.add "X-Amz-Credential", valid_618309 - var valid_618310 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618309 + var valid_618310 = header.getOrDefault("X-Amz-Date") valid_618310 = validateParameter(valid_618310, JString, required = false, default = nil) if valid_618310 != nil: - section.add "X-Amz-Security-Token", valid_618310 - var valid_618311 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618310 + var valid_618311 = header.getOrDefault("X-Amz-Credential") valid_618311 = validateParameter(valid_618311, JString, required = false, default = nil) if valid_618311 != nil: - section.add "X-Amz-Algorithm", valid_618311 - var valid_618312 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618311 + var valid_618312 = header.getOrDefault("X-Amz-Security-Token") valid_618312 = validateParameter(valid_618312, JString, required = false, default = nil) if valid_618312 != nil: - section.add "X-Amz-SignedHeaders", valid_618312 + section.add "X-Amz-Security-Token", valid_618312 + var valid_618313 = header.getOrDefault("X-Amz-Algorithm") + valid_618313 = validateParameter(valid_618313, JString, required = false, + default = nil) + if valid_618313 != nil: + section.add "X-Amz-Algorithm", valid_618313 + var valid_618314 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618314 = validateParameter(valid_618314, JString, required = false, + default = nil) + if valid_618314 != nil: + section.add "X-Amz-SignedHeaders", valid_618314 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -58979,43 +59006,43 @@ proc validate_PostDescribeHosts_618302(path: JsonNode; query: JsonNode; ## Filter: JArray ## :

The filters.

section = newJObject() - var valid_618313 = formData.getOrDefault("NextToken") - valid_618313 = validateParameter(valid_618313, JString, required = false, - default = nil) - if valid_618313 != nil: - section.add "NextToken", valid_618313 - var valid_618314 = formData.getOrDefault("HostId") - valid_618314 = validateParameter(valid_618314, JArray, required = false, + var valid_618315 = formData.getOrDefault("NextToken") + valid_618315 = validateParameter(valid_618315, JString, required = false, default = nil) - if valid_618314 != nil: - section.add "HostId", valid_618314 - var valid_618315 = formData.getOrDefault("MaxResults") - valid_618315 = validateParameter(valid_618315, JInt, required = false, default = nil) if valid_618315 != nil: - section.add "MaxResults", valid_618315 - var valid_618316 = formData.getOrDefault("Filter") + section.add "NextToken", valid_618315 + var valid_618316 = formData.getOrDefault("HostId") valid_618316 = validateParameter(valid_618316, JArray, required = false, default = nil) if valid_618316 != nil: - section.add "Filter", valid_618316 + section.add "HostId", valid_618316 + var valid_618317 = formData.getOrDefault("MaxResults") + valid_618317 = validateParameter(valid_618317, JInt, required = false, default = nil) + if valid_618317 != nil: + section.add "MaxResults", valid_618317 + var valid_618318 = formData.getOrDefault("Filter") + valid_618318 = validateParameter(valid_618318, JArray, required = false, + default = nil) + if valid_618318 != nil: + section.add "Filter", valid_618318 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618317: Call_PostDescribeHosts_618301; path: JsonNode; +proc call*(call_618319: Call_PostDescribeHosts_618303; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the specified Dedicated Hosts or all your Dedicated Hosts.

The results describe only the Dedicated Hosts in the Region you're currently using. All listed instances consume capacity on your Dedicated Host. Dedicated Hosts that have recently been released are listed with the state released.

## - let valid = call_618317.validator(path, query, header, formData, body) - let scheme = call_618317.pickScheme + let valid = call_618319.validator(path, query, header, formData, body) + let scheme = call_618319.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618317.url(scheme.get, call_618317.host, call_618317.base, - call_618317.route, valid.getOrDefault("path"), + let url = call_618319.url(scheme.get, call_618319.host, call_618319.base, + call_618319.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618317, url, valid) + result = atozHook(call_618319, url, valid) -proc call*(call_618318: Call_PostDescribeHosts_618301; NextToken: string = ""; +proc call*(call_618320: Call_PostDescribeHosts_618303; NextToken: string = ""; Action: string = "DescribeHosts"; Version: string = "2016-11-15"; HostId: JsonNode = nil; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = ## postDescribeHosts @@ -59030,26 +59057,26 @@ proc call*(call_618318: Call_PostDescribeHosts_618301; NextToken: string = ""; ## :

The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned nextToken value. This value can be between 5 and 500. If maxResults is given a larger value than 500, you receive an error.

You cannot specify this parameter and the host IDs parameter in the same request.

## Filter: JArray ## :

The filters.

- var query_618319 = newJObject() - var formData_618320 = newJObject() - add(formData_618320, "NextToken", newJString(NextToken)) - add(query_618319, "Action", newJString(Action)) - add(query_618319, "Version", newJString(Version)) + var query_618321 = newJObject() + var formData_618322 = newJObject() + add(formData_618322, "NextToken", newJString(NextToken)) + add(query_618321, "Action", newJString(Action)) + add(query_618321, "Version", newJString(Version)) if HostId != nil: - formData_618320.add "HostId", HostId - add(formData_618320, "MaxResults", newJInt(MaxResults)) + formData_618322.add "HostId", HostId + add(formData_618322, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_618320.add "Filter", Filter - result = call_618318.call(nil, query_618319, nil, formData_618320, nil) + formData_618322.add "Filter", Filter + result = call_618320.call(nil, query_618321, nil, formData_618322, nil) -var postDescribeHosts* = Call_PostDescribeHosts_618301(name: "postDescribeHosts", +var postDescribeHosts* = Call_PostDescribeHosts_618303(name: "postDescribeHosts", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", - route: "/#Action=DescribeHosts", validator: validate_PostDescribeHosts_618302, - base: "/", url: url_PostDescribeHosts_618303, + route: "/#Action=DescribeHosts", validator: validate_PostDescribeHosts_618304, + base: "/", url: url_PostDescribeHosts_618305, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeHosts_618282 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeHosts_618284(protocol: Scheme; host: string; base: string; + Call_GetDescribeHosts_618284 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeHosts_618286(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -59059,7 +59086,7 @@ proc url_GetDescribeHosts_618284(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetDescribeHosts_618283(path: JsonNode; query: JsonNode; +proc validate_GetDescribeHosts_618285(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the specified Dedicated Hosts or all your Dedicated Hosts.

The results describe only the Dedicated Hosts in the Region you're currently using. All listed instances consume capacity on your Dedicated Host. Dedicated Hosts that have recently been released are listed with the state released.

@@ -59080,35 +59107,35 @@ proc validate_GetDescribeHosts_618283(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618285 = query.getOrDefault("HostId") - valid_618285 = validateParameter(valid_618285, JArray, required = false, - default = nil) - if valid_618285 != nil: - section.add "HostId", valid_618285 - var valid_618286 = query.getOrDefault("MaxResults") - valid_618286 = validateParameter(valid_618286, JInt, required = false, default = nil) - if valid_618286 != nil: - section.add "MaxResults", valid_618286 - var valid_618287 = query.getOrDefault("NextToken") - valid_618287 = validateParameter(valid_618287, JString, required = false, + var valid_618287 = query.getOrDefault("HostId") + valid_618287 = validateParameter(valid_618287, JArray, required = false, default = nil) if valid_618287 != nil: - section.add "NextToken", valid_618287 - var valid_618288 = query.getOrDefault("Filter") - valid_618288 = validateParameter(valid_618288, JArray, required = false, - default = nil) + section.add "HostId", valid_618287 + var valid_618288 = query.getOrDefault("MaxResults") + valid_618288 = validateParameter(valid_618288, JInt, required = false, default = nil) if valid_618288 != nil: - section.add "Filter", valid_618288 - var valid_618289 = query.getOrDefault("Action") - valid_618289 = validateParameter(valid_618289, JString, required = true, - default = newJString("DescribeHosts")) + section.add "MaxResults", valid_618288 + var valid_618289 = query.getOrDefault("NextToken") + valid_618289 = validateParameter(valid_618289, JString, required = false, + default = nil) if valid_618289 != nil: - section.add "Action", valid_618289 - var valid_618290 = query.getOrDefault("Version") - valid_618290 = validateParameter(valid_618290, JString, required = true, - default = newJString("2016-11-15")) + section.add "NextToken", valid_618289 + var valid_618290 = query.getOrDefault("Filter") + valid_618290 = validateParameter(valid_618290, JArray, required = false, + default = nil) if valid_618290 != nil: - section.add "Version", valid_618290 + section.add "Filter", valid_618290 + var valid_618291 = query.getOrDefault("Action") + valid_618291 = validateParameter(valid_618291, JString, required = true, + default = newJString("DescribeHosts")) + if valid_618291 != nil: + section.add "Action", valid_618291 + var valid_618292 = query.getOrDefault("Version") + valid_618292 = validateParameter(valid_618292, JString, required = true, + default = newJString("2016-11-15")) + if valid_618292 != nil: + section.add "Version", valid_618292 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -59119,61 +59146,61 @@ proc validate_GetDescribeHosts_618283(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618291 = header.getOrDefault("X-Amz-Signature") - valid_618291 = validateParameter(valid_618291, JString, required = false, - default = nil) - if valid_618291 != nil: - section.add "X-Amz-Signature", valid_618291 - var valid_618292 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618292 = validateParameter(valid_618292, JString, required = false, - default = nil) - if valid_618292 != nil: - section.add "X-Amz-Content-Sha256", valid_618292 - var valid_618293 = header.getOrDefault("X-Amz-Date") + var valid_618293 = header.getOrDefault("X-Amz-Signature") valid_618293 = validateParameter(valid_618293, JString, required = false, default = nil) if valid_618293 != nil: - section.add "X-Amz-Date", valid_618293 - var valid_618294 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618293 + var valid_618294 = header.getOrDefault("X-Amz-Content-Sha256") valid_618294 = validateParameter(valid_618294, JString, required = false, default = nil) if valid_618294 != nil: - section.add "X-Amz-Credential", valid_618294 - var valid_618295 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618294 + var valid_618295 = header.getOrDefault("X-Amz-Date") valid_618295 = validateParameter(valid_618295, JString, required = false, default = nil) if valid_618295 != nil: - section.add "X-Amz-Security-Token", valid_618295 - var valid_618296 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618295 + var valid_618296 = header.getOrDefault("X-Amz-Credential") valid_618296 = validateParameter(valid_618296, JString, required = false, default = nil) if valid_618296 != nil: - section.add "X-Amz-Algorithm", valid_618296 - var valid_618297 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618296 + var valid_618297 = header.getOrDefault("X-Amz-Security-Token") valid_618297 = validateParameter(valid_618297, JString, required = false, default = nil) if valid_618297 != nil: - section.add "X-Amz-SignedHeaders", valid_618297 + section.add "X-Amz-Security-Token", valid_618297 + var valid_618298 = header.getOrDefault("X-Amz-Algorithm") + valid_618298 = validateParameter(valid_618298, JString, required = false, + default = nil) + if valid_618298 != nil: + section.add "X-Amz-Algorithm", valid_618298 + var valid_618299 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618299 = validateParameter(valid_618299, JString, required = false, + default = nil) + if valid_618299 != nil: + section.add "X-Amz-SignedHeaders", valid_618299 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618298: Call_GetDescribeHosts_618282; path: JsonNode; +proc call*(call_618300: Call_GetDescribeHosts_618284; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the specified Dedicated Hosts or all your Dedicated Hosts.

The results describe only the Dedicated Hosts in the Region you're currently using. All listed instances consume capacity on your Dedicated Host. Dedicated Hosts that have recently been released are listed with the state released.

## - let valid = call_618298.validator(path, query, header, formData, body) - let scheme = call_618298.pickScheme + let valid = call_618300.validator(path, query, header, formData, body) + let scheme = call_618300.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618298.url(scheme.get, call_618298.host, call_618298.base, - call_618298.route, valid.getOrDefault("path"), + let url = call_618300.url(scheme.get, call_618300.host, call_618300.base, + call_618300.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618298, url, valid) + result = atozHook(call_618300, url, valid) -proc call*(call_618299: Call_GetDescribeHosts_618282; HostId: JsonNode = nil; +proc call*(call_618301: Call_GetDescribeHosts_618284; HostId: JsonNode = nil; MaxResults: int = 0; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeHosts"; Version: string = "2016-11-15"): Recallable = ## getDescribeHosts @@ -59188,25 +59215,25 @@ proc call*(call_618299: Call_GetDescribeHosts_618282; HostId: JsonNode = nil; ## :

The filters.

## Action: string (required) ## Version: string (required) - var query_618300 = newJObject() + var query_618302 = newJObject() if HostId != nil: - query_618300.add "HostId", HostId - add(query_618300, "MaxResults", newJInt(MaxResults)) - add(query_618300, "NextToken", newJString(NextToken)) + query_618302.add "HostId", HostId + add(query_618302, "MaxResults", newJInt(MaxResults)) + add(query_618302, "NextToken", newJString(NextToken)) if Filter != nil: - query_618300.add "Filter", Filter - add(query_618300, "Action", newJString(Action)) - add(query_618300, "Version", newJString(Version)) - result = call_618299.call(nil, query_618300, nil, nil, nil) + query_618302.add "Filter", Filter + add(query_618302, "Action", newJString(Action)) + add(query_618302, "Version", newJString(Version)) + result = call_618301.call(nil, query_618302, nil, nil, nil) -var getDescribeHosts* = Call_GetDescribeHosts_618282(name: "getDescribeHosts", +var getDescribeHosts* = Call_GetDescribeHosts_618284(name: "getDescribeHosts", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=DescribeHosts", validator: validate_GetDescribeHosts_618283, - base: "/", url: url_GetDescribeHosts_618284, + route: "/#Action=DescribeHosts", validator: validate_GetDescribeHosts_618285, + base: "/", url: url_GetDescribeHosts_618286, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeIamInstanceProfileAssociations_618340 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeIamInstanceProfileAssociations_618342(protocol: Scheme; + Call_PostDescribeIamInstanceProfileAssociations_618342 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeIamInstanceProfileAssociations_618344(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -59216,7 +59243,7 @@ proc url_PostDescribeIamInstanceProfileAssociations_618342(protocol: Scheme; else: result.path = base & route -proc validate_PostDescribeIamInstanceProfileAssociations_618341(path: JsonNode; +proc validate_PostDescribeIamInstanceProfileAssociations_618343(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes your IAM instance profile associations. ## @@ -59228,16 +59255,16 @@ proc validate_PostDescribeIamInstanceProfileAssociations_618341(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618343 = query.getOrDefault("Action") - valid_618343 = validateParameter(valid_618343, JString, required = true, default = newJString( + var valid_618345 = query.getOrDefault("Action") + valid_618345 = validateParameter(valid_618345, JString, required = true, default = newJString( "DescribeIamInstanceProfileAssociations")) - if valid_618343 != nil: - section.add "Action", valid_618343 - var valid_618344 = query.getOrDefault("Version") - valid_618344 = validateParameter(valid_618344, JString, required = true, + if valid_618345 != nil: + section.add "Action", valid_618345 + var valid_618346 = query.getOrDefault("Version") + valid_618346 = validateParameter(valid_618346, JString, required = true, default = newJString("2016-11-15")) - if valid_618344 != nil: - section.add "Version", valid_618344 + if valid_618346 != nil: + section.add "Version", valid_618346 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -59248,41 +59275,41 @@ proc validate_PostDescribeIamInstanceProfileAssociations_618341(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618345 = header.getOrDefault("X-Amz-Signature") - valid_618345 = validateParameter(valid_618345, JString, required = false, - default = nil) - if valid_618345 != nil: - section.add "X-Amz-Signature", valid_618345 - var valid_618346 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618346 = validateParameter(valid_618346, JString, required = false, - default = nil) - if valid_618346 != nil: - section.add "X-Amz-Content-Sha256", valid_618346 - var valid_618347 = header.getOrDefault("X-Amz-Date") + var valid_618347 = header.getOrDefault("X-Amz-Signature") valid_618347 = validateParameter(valid_618347, JString, required = false, default = nil) if valid_618347 != nil: - section.add "X-Amz-Date", valid_618347 - var valid_618348 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618347 + var valid_618348 = header.getOrDefault("X-Amz-Content-Sha256") valid_618348 = validateParameter(valid_618348, JString, required = false, default = nil) if valid_618348 != nil: - section.add "X-Amz-Credential", valid_618348 - var valid_618349 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618348 + var valid_618349 = header.getOrDefault("X-Amz-Date") valid_618349 = validateParameter(valid_618349, JString, required = false, default = nil) if valid_618349 != nil: - section.add "X-Amz-Security-Token", valid_618349 - var valid_618350 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618349 + var valid_618350 = header.getOrDefault("X-Amz-Credential") valid_618350 = validateParameter(valid_618350, JString, required = false, default = nil) if valid_618350 != nil: - section.add "X-Amz-Algorithm", valid_618350 - var valid_618351 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618350 + var valid_618351 = header.getOrDefault("X-Amz-Security-Token") valid_618351 = validateParameter(valid_618351, JString, required = false, default = nil) if valid_618351 != nil: - section.add "X-Amz-SignedHeaders", valid_618351 + section.add "X-Amz-Security-Token", valid_618351 + var valid_618352 = header.getOrDefault("X-Amz-Algorithm") + valid_618352 = validateParameter(valid_618352, JString, required = false, + default = nil) + if valid_618352 != nil: + section.add "X-Amz-Algorithm", valid_618352 + var valid_618353 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618353 = validateParameter(valid_618353, JString, required = false, + default = nil) + if valid_618353 != nil: + section.add "X-Amz-SignedHeaders", valid_618353 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -59294,44 +59321,44 @@ proc validate_PostDescribeIamInstanceProfileAssociations_618341(path: JsonNode; ## Filter: JArray ## :

The filters.

section = newJObject() - var valid_618352 = formData.getOrDefault("NextToken") - valid_618352 = validateParameter(valid_618352, JString, required = false, - default = nil) - if valid_618352 != nil: - section.add "NextToken", valid_618352 - var valid_618353 = formData.getOrDefault("MaxResults") - valid_618353 = validateParameter(valid_618353, JInt, required = false, default = nil) - if valid_618353 != nil: - section.add "MaxResults", valid_618353 - var valid_618354 = formData.getOrDefault("AssociationId") - valid_618354 = validateParameter(valid_618354, JArray, required = false, + var valid_618354 = formData.getOrDefault("NextToken") + valid_618354 = validateParameter(valid_618354, JString, required = false, default = nil) if valid_618354 != nil: - section.add "AssociationId", valid_618354 - var valid_618355 = formData.getOrDefault("Filter") - valid_618355 = validateParameter(valid_618355, JArray, required = false, - default = nil) + section.add "NextToken", valid_618354 + var valid_618355 = formData.getOrDefault("MaxResults") + valid_618355 = validateParameter(valid_618355, JInt, required = false, default = nil) if valid_618355 != nil: - section.add "Filter", valid_618355 + section.add "MaxResults", valid_618355 + var valid_618356 = formData.getOrDefault("AssociationId") + valid_618356 = validateParameter(valid_618356, JArray, required = false, + default = nil) + if valid_618356 != nil: + section.add "AssociationId", valid_618356 + var valid_618357 = formData.getOrDefault("Filter") + valid_618357 = validateParameter(valid_618357, JArray, required = false, + default = nil) + if valid_618357 != nil: + section.add "Filter", valid_618357 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618356: Call_PostDescribeIamInstanceProfileAssociations_618340; +proc call*(call_618358: Call_PostDescribeIamInstanceProfileAssociations_618342; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes your IAM instance profile associations. ## - let valid = call_618356.validator(path, query, header, formData, body) - let scheme = call_618356.pickScheme + let valid = call_618358.validator(path, query, header, formData, body) + let scheme = call_618358.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618356.url(scheme.get, call_618356.host, call_618356.base, - call_618356.route, valid.getOrDefault("path"), + let url = call_618358.url(scheme.get, call_618358.host, call_618358.base, + call_618358.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618356, url, valid) + result = atozHook(call_618358, url, valid) -proc call*(call_618357: Call_PostDescribeIamInstanceProfileAssociations_618340; +proc call*(call_618359: Call_PostDescribeIamInstanceProfileAssociations_618342; NextToken: string = ""; Action: string = "DescribeIamInstanceProfileAssociations"; Version: string = "2016-11-15"; MaxResults: int = 0; @@ -59348,28 +59375,28 @@ proc call*(call_618357: Call_PostDescribeIamInstanceProfileAssociations_618340; ## : The IAM instance profile associations. ## Filter: JArray ## :

The filters.

- var query_618358 = newJObject() - var formData_618359 = newJObject() - add(formData_618359, "NextToken", newJString(NextToken)) - add(query_618358, "Action", newJString(Action)) - add(query_618358, "Version", newJString(Version)) - add(formData_618359, "MaxResults", newJInt(MaxResults)) + var query_618360 = newJObject() + var formData_618361 = newJObject() + add(formData_618361, "NextToken", newJString(NextToken)) + add(query_618360, "Action", newJString(Action)) + add(query_618360, "Version", newJString(Version)) + add(formData_618361, "MaxResults", newJInt(MaxResults)) if AssociationId != nil: - formData_618359.add "AssociationId", AssociationId + formData_618361.add "AssociationId", AssociationId if Filter != nil: - formData_618359.add "Filter", Filter - result = call_618357.call(nil, query_618358, nil, formData_618359, nil) + formData_618361.add "Filter", Filter + result = call_618359.call(nil, query_618360, nil, formData_618361, nil) -var postDescribeIamInstanceProfileAssociations* = Call_PostDescribeIamInstanceProfileAssociations_618340( +var postDescribeIamInstanceProfileAssociations* = Call_PostDescribeIamInstanceProfileAssociations_618342( name: "postDescribeIamInstanceProfileAssociations", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeIamInstanceProfileAssociations", - validator: validate_PostDescribeIamInstanceProfileAssociations_618341, - base: "/", url: url_PostDescribeIamInstanceProfileAssociations_618342, + validator: validate_PostDescribeIamInstanceProfileAssociations_618343, + base: "/", url: url_PostDescribeIamInstanceProfileAssociations_618344, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeIamInstanceProfileAssociations_618321 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeIamInstanceProfileAssociations_618323(protocol: Scheme; + Call_GetDescribeIamInstanceProfileAssociations_618323 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeIamInstanceProfileAssociations_618325(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -59379,7 +59406,7 @@ proc url_GetDescribeIamInstanceProfileAssociations_618323(protocol: Scheme; else: result.path = base & route -proc validate_GetDescribeIamInstanceProfileAssociations_618322(path: JsonNode; +proc validate_GetDescribeIamInstanceProfileAssociations_618324(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes your IAM instance profile associations. ## @@ -59399,35 +59426,35 @@ proc validate_GetDescribeIamInstanceProfileAssociations_618322(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618324 = query.getOrDefault("MaxResults") - valid_618324 = validateParameter(valid_618324, JInt, required = false, default = nil) - if valid_618324 != nil: - section.add "MaxResults", valid_618324 - var valid_618325 = query.getOrDefault("NextToken") - valid_618325 = validateParameter(valid_618325, JString, required = false, - default = nil) - if valid_618325 != nil: - section.add "NextToken", valid_618325 - var valid_618326 = query.getOrDefault("AssociationId") - valid_618326 = validateParameter(valid_618326, JArray, required = false, - default = nil) + var valid_618326 = query.getOrDefault("MaxResults") + valid_618326 = validateParameter(valid_618326, JInt, required = false, default = nil) if valid_618326 != nil: - section.add "AssociationId", valid_618326 - var valid_618327 = query.getOrDefault("Filter") - valid_618327 = validateParameter(valid_618327, JArray, required = false, + section.add "MaxResults", valid_618326 + var valid_618327 = query.getOrDefault("NextToken") + valid_618327 = validateParameter(valid_618327, JString, required = false, default = nil) if valid_618327 != nil: - section.add "Filter", valid_618327 - var valid_618328 = query.getOrDefault("Action") - valid_618328 = validateParameter(valid_618328, JString, required = true, default = newJString( - "DescribeIamInstanceProfileAssociations")) + section.add "NextToken", valid_618327 + var valid_618328 = query.getOrDefault("AssociationId") + valid_618328 = validateParameter(valid_618328, JArray, required = false, + default = nil) if valid_618328 != nil: - section.add "Action", valid_618328 - var valid_618329 = query.getOrDefault("Version") - valid_618329 = validateParameter(valid_618329, JString, required = true, - default = newJString("2016-11-15")) + section.add "AssociationId", valid_618328 + var valid_618329 = query.getOrDefault("Filter") + valid_618329 = validateParameter(valid_618329, JArray, required = false, + default = nil) if valid_618329 != nil: - section.add "Version", valid_618329 + section.add "Filter", valid_618329 + var valid_618330 = query.getOrDefault("Action") + valid_618330 = validateParameter(valid_618330, JString, required = true, default = newJString( + "DescribeIamInstanceProfileAssociations")) + if valid_618330 != nil: + section.add "Action", valid_618330 + var valid_618331 = query.getOrDefault("Version") + valid_618331 = validateParameter(valid_618331, JString, required = true, + default = newJString("2016-11-15")) + if valid_618331 != nil: + section.add "Version", valid_618331 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -59438,62 +59465,62 @@ proc validate_GetDescribeIamInstanceProfileAssociations_618322(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618330 = header.getOrDefault("X-Amz-Signature") - valid_618330 = validateParameter(valid_618330, JString, required = false, - default = nil) - if valid_618330 != nil: - section.add "X-Amz-Signature", valid_618330 - var valid_618331 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618331 = validateParameter(valid_618331, JString, required = false, - default = nil) - if valid_618331 != nil: - section.add "X-Amz-Content-Sha256", valid_618331 - var valid_618332 = header.getOrDefault("X-Amz-Date") + var valid_618332 = header.getOrDefault("X-Amz-Signature") valid_618332 = validateParameter(valid_618332, JString, required = false, default = nil) if valid_618332 != nil: - section.add "X-Amz-Date", valid_618332 - var valid_618333 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618332 + var valid_618333 = header.getOrDefault("X-Amz-Content-Sha256") valid_618333 = validateParameter(valid_618333, JString, required = false, default = nil) if valid_618333 != nil: - section.add "X-Amz-Credential", valid_618333 - var valid_618334 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618333 + var valid_618334 = header.getOrDefault("X-Amz-Date") valid_618334 = validateParameter(valid_618334, JString, required = false, default = nil) if valid_618334 != nil: - section.add "X-Amz-Security-Token", valid_618334 - var valid_618335 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618334 + var valid_618335 = header.getOrDefault("X-Amz-Credential") valid_618335 = validateParameter(valid_618335, JString, required = false, default = nil) if valid_618335 != nil: - section.add "X-Amz-Algorithm", valid_618335 - var valid_618336 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618335 + var valid_618336 = header.getOrDefault("X-Amz-Security-Token") valid_618336 = validateParameter(valid_618336, JString, required = false, default = nil) if valid_618336 != nil: - section.add "X-Amz-SignedHeaders", valid_618336 + section.add "X-Amz-Security-Token", valid_618336 + var valid_618337 = header.getOrDefault("X-Amz-Algorithm") + valid_618337 = validateParameter(valid_618337, JString, required = false, + default = nil) + if valid_618337 != nil: + section.add "X-Amz-Algorithm", valid_618337 + var valid_618338 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618338 = validateParameter(valid_618338, JString, required = false, + default = nil) + if valid_618338 != nil: + section.add "X-Amz-SignedHeaders", valid_618338 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618337: Call_GetDescribeIamInstanceProfileAssociations_618321; +proc call*(call_618339: Call_GetDescribeIamInstanceProfileAssociations_618323; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes your IAM instance profile associations. ## - let valid = call_618337.validator(path, query, header, formData, body) - let scheme = call_618337.pickScheme + let valid = call_618339.validator(path, query, header, formData, body) + let scheme = call_618339.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618337.url(scheme.get, call_618337.host, call_618337.base, - call_618337.route, valid.getOrDefault("path"), + let url = call_618339.url(scheme.get, call_618339.host, call_618339.base, + call_618339.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618337, url, valid) + result = atozHook(call_618339, url, valid) -proc call*(call_618338: Call_GetDescribeIamInstanceProfileAssociations_618321; +proc call*(call_618340: Call_GetDescribeIamInstanceProfileAssociations_618323; MaxResults: int = 0; NextToken: string = ""; AssociationId: JsonNode = nil; Filter: JsonNode = nil; Action: string = "DescribeIamInstanceProfileAssociations"; @@ -59510,27 +59537,27 @@ proc call*(call_618338: Call_GetDescribeIamInstanceProfileAssociations_618321; ## :

The filters.

## Action: string (required) ## Version: string (required) - var query_618339 = newJObject() - add(query_618339, "MaxResults", newJInt(MaxResults)) - add(query_618339, "NextToken", newJString(NextToken)) + var query_618341 = newJObject() + add(query_618341, "MaxResults", newJInt(MaxResults)) + add(query_618341, "NextToken", newJString(NextToken)) if AssociationId != nil: - query_618339.add "AssociationId", AssociationId + query_618341.add "AssociationId", AssociationId if Filter != nil: - query_618339.add "Filter", Filter - add(query_618339, "Action", newJString(Action)) - add(query_618339, "Version", newJString(Version)) - result = call_618338.call(nil, query_618339, nil, nil, nil) + query_618341.add "Filter", Filter + add(query_618341, "Action", newJString(Action)) + add(query_618341, "Version", newJString(Version)) + result = call_618340.call(nil, query_618341, nil, nil, nil) -var getDescribeIamInstanceProfileAssociations* = Call_GetDescribeIamInstanceProfileAssociations_618321( +var getDescribeIamInstanceProfileAssociations* = Call_GetDescribeIamInstanceProfileAssociations_618323( name: "getDescribeIamInstanceProfileAssociations", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeIamInstanceProfileAssociations", - validator: validate_GetDescribeIamInstanceProfileAssociations_618322, - base: "/", url: url_GetDescribeIamInstanceProfileAssociations_618323, + validator: validate_GetDescribeIamInstanceProfileAssociations_618324, + base: "/", url: url_GetDescribeIamInstanceProfileAssociations_618325, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeIdFormat_618376 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeIdFormat_618378(protocol: Scheme; host: string; base: string; + Call_PostDescribeIdFormat_618378 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeIdFormat_618380(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -59540,7 +59567,7 @@ proc url_PostDescribeIdFormat_618378(protocol: Scheme; host: string; base: strin else: result.path = base & route -proc validate_PostDescribeIdFormat_618377(path: JsonNode; query: JsonNode; +proc validate_PostDescribeIdFormat_618379(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the ID format settings for your resources on a per-Region basis, for example, to view which resource types are enabled for longer IDs. This request only returns information about resource types whose ID formats can be modified; it does not return information about other resource types.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

These settings apply to the IAM user who makes the request; they do not apply to the entire AWS account. By default, an IAM user defaults to the same settings as the root user, unless they explicitly override the settings by running the ModifyIdFormat command. Resources created with longer IDs are visible to all IAM users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

## @@ -59552,16 +59579,16 @@ proc validate_PostDescribeIdFormat_618377(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618379 = query.getOrDefault("Action") - valid_618379 = validateParameter(valid_618379, JString, required = true, + var valid_618381 = query.getOrDefault("Action") + valid_618381 = validateParameter(valid_618381, JString, required = true, default = newJString("DescribeIdFormat")) - if valid_618379 != nil: - section.add "Action", valid_618379 - var valid_618380 = query.getOrDefault("Version") - valid_618380 = validateParameter(valid_618380, JString, required = true, + if valid_618381 != nil: + section.add "Action", valid_618381 + var valid_618382 = query.getOrDefault("Version") + valid_618382 = validateParameter(valid_618382, JString, required = true, default = newJString("2016-11-15")) - if valid_618380 != nil: - section.add "Version", valid_618380 + if valid_618382 != nil: + section.add "Version", valid_618382 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -59572,69 +59599,69 @@ proc validate_PostDescribeIdFormat_618377(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618381 = header.getOrDefault("X-Amz-Signature") - valid_618381 = validateParameter(valid_618381, JString, required = false, - default = nil) - if valid_618381 != nil: - section.add "X-Amz-Signature", valid_618381 - var valid_618382 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618382 = validateParameter(valid_618382, JString, required = false, - default = nil) - if valid_618382 != nil: - section.add "X-Amz-Content-Sha256", valid_618382 - var valid_618383 = header.getOrDefault("X-Amz-Date") + var valid_618383 = header.getOrDefault("X-Amz-Signature") valid_618383 = validateParameter(valid_618383, JString, required = false, default = nil) if valid_618383 != nil: - section.add "X-Amz-Date", valid_618383 - var valid_618384 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618383 + var valid_618384 = header.getOrDefault("X-Amz-Content-Sha256") valid_618384 = validateParameter(valid_618384, JString, required = false, default = nil) if valid_618384 != nil: - section.add "X-Amz-Credential", valid_618384 - var valid_618385 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618384 + var valid_618385 = header.getOrDefault("X-Amz-Date") valid_618385 = validateParameter(valid_618385, JString, required = false, default = nil) if valid_618385 != nil: - section.add "X-Amz-Security-Token", valid_618385 - var valid_618386 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618385 + var valid_618386 = header.getOrDefault("X-Amz-Credential") valid_618386 = validateParameter(valid_618386, JString, required = false, default = nil) if valid_618386 != nil: - section.add "X-Amz-Algorithm", valid_618386 - var valid_618387 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618386 + var valid_618387 = header.getOrDefault("X-Amz-Security-Token") valid_618387 = validateParameter(valid_618387, JString, required = false, default = nil) if valid_618387 != nil: - section.add "X-Amz-SignedHeaders", valid_618387 + section.add "X-Amz-Security-Token", valid_618387 + var valid_618388 = header.getOrDefault("X-Amz-Algorithm") + valid_618388 = validateParameter(valid_618388, JString, required = false, + default = nil) + if valid_618388 != nil: + section.add "X-Amz-Algorithm", valid_618388 + var valid_618389 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618389 = validateParameter(valid_618389, JString, required = false, + default = nil) + if valid_618389 != nil: + section.add "X-Amz-SignedHeaders", valid_618389 result.add "header", section ## parameters in `formData` object: ## Resource: JString ## : The type of resource: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway section = newJObject() - var valid_618388 = formData.getOrDefault("Resource") - valid_618388 = validateParameter(valid_618388, JString, required = false, + var valid_618390 = formData.getOrDefault("Resource") + valid_618390 = validateParameter(valid_618390, JString, required = false, default = nil) - if valid_618388 != nil: - section.add "Resource", valid_618388 + if valid_618390 != nil: + section.add "Resource", valid_618390 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618389: Call_PostDescribeIdFormat_618376; path: JsonNode; +proc call*(call_618391: Call_PostDescribeIdFormat_618378; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the ID format settings for your resources on a per-Region basis, for example, to view which resource types are enabled for longer IDs. This request only returns information about resource types whose ID formats can be modified; it does not return information about other resource types.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

These settings apply to the IAM user who makes the request; they do not apply to the entire AWS account. By default, an IAM user defaults to the same settings as the root user, unless they explicitly override the settings by running the ModifyIdFormat command. Resources created with longer IDs are visible to all IAM users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

## - let valid = call_618389.validator(path, query, header, formData, body) - let scheme = call_618389.pickScheme + let valid = call_618391.validator(path, query, header, formData, body) + let scheme = call_618391.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618389.url(scheme.get, call_618389.host, call_618389.base, - call_618389.route, valid.getOrDefault("path"), + let url = call_618391.url(scheme.get, call_618391.host, call_618391.base, + call_618391.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618389, url, valid) + result = atozHook(call_618391, url, valid) -proc call*(call_618390: Call_PostDescribeIdFormat_618376; Resource: string = ""; +proc call*(call_618392: Call_PostDescribeIdFormat_618378; Resource: string = ""; Action: string = "DescribeIdFormat"; Version: string = "2016-11-15"): Recallable = ## postDescribeIdFormat ##

Describes the ID format settings for your resources on a per-Region basis, for example, to view which resource types are enabled for longer IDs. This request only returns information about resource types whose ID formats can be modified; it does not return information about other resource types.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

These settings apply to the IAM user who makes the request; they do not apply to the entire AWS account. By default, an IAM user defaults to the same settings as the root user, unless they explicitly override the settings by running the ModifyIdFormat command. Resources created with longer IDs are visible to all IAM users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

@@ -59642,21 +59669,21 @@ proc call*(call_618390: Call_PostDescribeIdFormat_618376; Resource: string = ""; ## : The type of resource: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway ## Action: string (required) ## Version: string (required) - var query_618391 = newJObject() - var formData_618392 = newJObject() - add(formData_618392, "Resource", newJString(Resource)) - add(query_618391, "Action", newJString(Action)) - add(query_618391, "Version", newJString(Version)) - result = call_618390.call(nil, query_618391, nil, formData_618392, nil) + var query_618393 = newJObject() + var formData_618394 = newJObject() + add(formData_618394, "Resource", newJString(Resource)) + add(query_618393, "Action", newJString(Action)) + add(query_618393, "Version", newJString(Version)) + result = call_618392.call(nil, query_618393, nil, formData_618394, nil) -var postDescribeIdFormat* = Call_PostDescribeIdFormat_618376( +var postDescribeIdFormat* = Call_PostDescribeIdFormat_618378( name: "postDescribeIdFormat", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeIdFormat", - validator: validate_PostDescribeIdFormat_618377, base: "/", - url: url_PostDescribeIdFormat_618378, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDescribeIdFormat_618379, base: "/", + url: url_PostDescribeIdFormat_618380, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeIdFormat_618360 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeIdFormat_618362(protocol: Scheme; host: string; base: string; + Call_GetDescribeIdFormat_618362 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeIdFormat_618364(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -59666,7 +59693,7 @@ proc url_GetDescribeIdFormat_618362(protocol: Scheme; host: string; base: string else: result.path = base & route -proc validate_GetDescribeIdFormat_618361(path: JsonNode; query: JsonNode; +proc validate_GetDescribeIdFormat_618363(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the ID format settings for your resources on a per-Region basis, for example, to view which resource types are enabled for longer IDs. This request only returns information about resource types whose ID formats can be modified; it does not return information about other resource types.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

These settings apply to the IAM user who makes the request; they do not apply to the entire AWS account. By default, an IAM user defaults to the same settings as the root user, unless they explicitly override the settings by running the ModifyIdFormat command. Resources created with longer IDs are visible to all IAM users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

@@ -59681,21 +59708,21 @@ proc validate_GetDescribeIdFormat_618361(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618363 = query.getOrDefault("Resource") - valid_618363 = validateParameter(valid_618363, JString, required = false, + var valid_618365 = query.getOrDefault("Resource") + valid_618365 = validateParameter(valid_618365, JString, required = false, default = nil) - if valid_618363 != nil: - section.add "Resource", valid_618363 - var valid_618364 = query.getOrDefault("Action") - valid_618364 = validateParameter(valid_618364, JString, required = true, + if valid_618365 != nil: + section.add "Resource", valid_618365 + var valid_618366 = query.getOrDefault("Action") + valid_618366 = validateParameter(valid_618366, JString, required = true, default = newJString("DescribeIdFormat")) - if valid_618364 != nil: - section.add "Action", valid_618364 - var valid_618365 = query.getOrDefault("Version") - valid_618365 = validateParameter(valid_618365, JString, required = true, + if valid_618366 != nil: + section.add "Action", valid_618366 + var valid_618367 = query.getOrDefault("Version") + valid_618367 = validateParameter(valid_618367, JString, required = true, default = newJString("2016-11-15")) - if valid_618365 != nil: - section.add "Version", valid_618365 + if valid_618367 != nil: + section.add "Version", valid_618367 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -59706,61 +59733,61 @@ proc validate_GetDescribeIdFormat_618361(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618366 = header.getOrDefault("X-Amz-Signature") - valid_618366 = validateParameter(valid_618366, JString, required = false, - default = nil) - if valid_618366 != nil: - section.add "X-Amz-Signature", valid_618366 - var valid_618367 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618367 = validateParameter(valid_618367, JString, required = false, - default = nil) - if valid_618367 != nil: - section.add "X-Amz-Content-Sha256", valid_618367 - var valid_618368 = header.getOrDefault("X-Amz-Date") + var valid_618368 = header.getOrDefault("X-Amz-Signature") valid_618368 = validateParameter(valid_618368, JString, required = false, default = nil) if valid_618368 != nil: - section.add "X-Amz-Date", valid_618368 - var valid_618369 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618368 + var valid_618369 = header.getOrDefault("X-Amz-Content-Sha256") valid_618369 = validateParameter(valid_618369, JString, required = false, default = nil) if valid_618369 != nil: - section.add "X-Amz-Credential", valid_618369 - var valid_618370 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618369 + var valid_618370 = header.getOrDefault("X-Amz-Date") valid_618370 = validateParameter(valid_618370, JString, required = false, default = nil) if valid_618370 != nil: - section.add "X-Amz-Security-Token", valid_618370 - var valid_618371 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618370 + var valid_618371 = header.getOrDefault("X-Amz-Credential") valid_618371 = validateParameter(valid_618371, JString, required = false, default = nil) if valid_618371 != nil: - section.add "X-Amz-Algorithm", valid_618371 - var valid_618372 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618371 + var valid_618372 = header.getOrDefault("X-Amz-Security-Token") valid_618372 = validateParameter(valid_618372, JString, required = false, default = nil) if valid_618372 != nil: - section.add "X-Amz-SignedHeaders", valid_618372 + section.add "X-Amz-Security-Token", valid_618372 + var valid_618373 = header.getOrDefault("X-Amz-Algorithm") + valid_618373 = validateParameter(valid_618373, JString, required = false, + default = nil) + if valid_618373 != nil: + section.add "X-Amz-Algorithm", valid_618373 + var valid_618374 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618374 = validateParameter(valid_618374, JString, required = false, + default = nil) + if valid_618374 != nil: + section.add "X-Amz-SignedHeaders", valid_618374 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618373: Call_GetDescribeIdFormat_618360; path: JsonNode; +proc call*(call_618375: Call_GetDescribeIdFormat_618362; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the ID format settings for your resources on a per-Region basis, for example, to view which resource types are enabled for longer IDs. This request only returns information about resource types whose ID formats can be modified; it does not return information about other resource types.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

These settings apply to the IAM user who makes the request; they do not apply to the entire AWS account. By default, an IAM user defaults to the same settings as the root user, unless they explicitly override the settings by running the ModifyIdFormat command. Resources created with longer IDs are visible to all IAM users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

## - let valid = call_618373.validator(path, query, header, formData, body) - let scheme = call_618373.pickScheme + let valid = call_618375.validator(path, query, header, formData, body) + let scheme = call_618375.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618373.url(scheme.get, call_618373.host, call_618373.base, - call_618373.route, valid.getOrDefault("path"), + let url = call_618375.url(scheme.get, call_618375.host, call_618375.base, + call_618375.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618373, url, valid) + result = atozHook(call_618375, url, valid) -proc call*(call_618374: Call_GetDescribeIdFormat_618360; Resource: string = ""; +proc call*(call_618376: Call_GetDescribeIdFormat_618362; Resource: string = ""; Action: string = "DescribeIdFormat"; Version: string = "2016-11-15"): Recallable = ## getDescribeIdFormat ##

Describes the ID format settings for your resources on a per-Region basis, for example, to view which resource types are enabled for longer IDs. This request only returns information about resource types whose ID formats can be modified; it does not return information about other resource types.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

These settings apply to the IAM user who makes the request; they do not apply to the entire AWS account. By default, an IAM user defaults to the same settings as the root user, unless they explicitly override the settings by running the ModifyIdFormat command. Resources created with longer IDs are visible to all IAM users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

@@ -59768,20 +59795,20 @@ proc call*(call_618374: Call_GetDescribeIdFormat_618360; Resource: string = ""; ## : The type of resource: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway ## Action: string (required) ## Version: string (required) - var query_618375 = newJObject() - add(query_618375, "Resource", newJString(Resource)) - add(query_618375, "Action", newJString(Action)) - add(query_618375, "Version", newJString(Version)) - result = call_618374.call(nil, query_618375, nil, nil, nil) + var query_618377 = newJObject() + add(query_618377, "Resource", newJString(Resource)) + add(query_618377, "Action", newJString(Action)) + add(query_618377, "Version", newJString(Version)) + result = call_618376.call(nil, query_618377, nil, nil, nil) -var getDescribeIdFormat* = Call_GetDescribeIdFormat_618360( +var getDescribeIdFormat* = Call_GetDescribeIdFormat_618362( name: "getDescribeIdFormat", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeIdFormat", - validator: validate_GetDescribeIdFormat_618361, base: "/", - url: url_GetDescribeIdFormat_618362, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDescribeIdFormat_618363, base: "/", + url: url_GetDescribeIdFormat_618364, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeIdentityIdFormat_618410 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeIdentityIdFormat_618412(protocol: Scheme; host: string; + Call_PostDescribeIdentityIdFormat_618412 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeIdentityIdFormat_618414(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -59791,7 +59818,7 @@ proc url_PostDescribeIdentityIdFormat_618412(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeIdentityIdFormat_618411(path: JsonNode; query: JsonNode; +proc validate_PostDescribeIdentityIdFormat_618413(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the ID format settings for resources for the specified IAM user, IAM role, or root user. For example, you can view the resource types that are enabled for longer IDs. This request only returns information about resource types whose ID formats can be modified; it does not return information about other resource types. For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

These settings apply to the principal specified in the request. They do not apply to the principal that makes the request.

## @@ -59803,16 +59830,16 @@ proc validate_PostDescribeIdentityIdFormat_618411(path: JsonNode; query: JsonNod ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618413 = query.getOrDefault("Action") - valid_618413 = validateParameter(valid_618413, JString, required = true, default = newJString( + var valid_618415 = query.getOrDefault("Action") + valid_618415 = validateParameter(valid_618415, JString, required = true, default = newJString( "DescribeIdentityIdFormat")) - if valid_618413 != nil: - section.add "Action", valid_618413 - var valid_618414 = query.getOrDefault("Version") - valid_618414 = validateParameter(valid_618414, JString, required = true, + if valid_618415 != nil: + section.add "Action", valid_618415 + var valid_618416 = query.getOrDefault("Version") + valid_618416 = validateParameter(valid_618416, JString, required = true, default = newJString("2016-11-15")) - if valid_618414 != nil: - section.add "Version", valid_618414 + if valid_618416 != nil: + section.add "Version", valid_618416 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -59823,41 +59850,41 @@ proc validate_PostDescribeIdentityIdFormat_618411(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618415 = header.getOrDefault("X-Amz-Signature") - valid_618415 = validateParameter(valid_618415, JString, required = false, - default = nil) - if valid_618415 != nil: - section.add "X-Amz-Signature", valid_618415 - var valid_618416 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618416 = validateParameter(valid_618416, JString, required = false, - default = nil) - if valid_618416 != nil: - section.add "X-Amz-Content-Sha256", valid_618416 - var valid_618417 = header.getOrDefault("X-Amz-Date") + var valid_618417 = header.getOrDefault("X-Amz-Signature") valid_618417 = validateParameter(valid_618417, JString, required = false, default = nil) if valid_618417 != nil: - section.add "X-Amz-Date", valid_618417 - var valid_618418 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618417 + var valid_618418 = header.getOrDefault("X-Amz-Content-Sha256") valid_618418 = validateParameter(valid_618418, JString, required = false, default = nil) if valid_618418 != nil: - section.add "X-Amz-Credential", valid_618418 - var valid_618419 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618418 + var valid_618419 = header.getOrDefault("X-Amz-Date") valid_618419 = validateParameter(valid_618419, JString, required = false, default = nil) if valid_618419 != nil: - section.add "X-Amz-Security-Token", valid_618419 - var valid_618420 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618419 + var valid_618420 = header.getOrDefault("X-Amz-Credential") valid_618420 = validateParameter(valid_618420, JString, required = false, default = nil) if valid_618420 != nil: - section.add "X-Amz-Algorithm", valid_618420 - var valid_618421 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618420 + var valid_618421 = header.getOrDefault("X-Amz-Security-Token") valid_618421 = validateParameter(valid_618421, JString, required = false, default = nil) if valid_618421 != nil: - section.add "X-Amz-SignedHeaders", valid_618421 + section.add "X-Amz-Security-Token", valid_618421 + var valid_618422 = header.getOrDefault("X-Amz-Algorithm") + valid_618422 = validateParameter(valid_618422, JString, required = false, + default = nil) + if valid_618422 != nil: + section.add "X-Amz-Algorithm", valid_618422 + var valid_618423 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618423 = validateParameter(valid_618423, JString, required = false, + default = nil) + if valid_618423 != nil: + section.add "X-Amz-SignedHeaders", valid_618423 result.add "header", section ## parameters in `formData` object: ## Resource: JString @@ -59865,36 +59892,36 @@ proc validate_PostDescribeIdentityIdFormat_618411(path: JsonNode; query: JsonNod ## PrincipalArn: JString (required) ## : The ARN of the principal, which can be an IAM role, IAM user, or the root user. section = newJObject() - var valid_618422 = formData.getOrDefault("Resource") - valid_618422 = validateParameter(valid_618422, JString, required = false, + var valid_618424 = formData.getOrDefault("Resource") + valid_618424 = validateParameter(valid_618424, JString, required = false, default = nil) - if valid_618422 != nil: - section.add "Resource", valid_618422 + if valid_618424 != nil: + section.add "Resource", valid_618424 assert formData != nil, "formData argument is necessary due to required `PrincipalArn` field" - var valid_618423 = formData.getOrDefault("PrincipalArn") - valid_618423 = validateParameter(valid_618423, JString, required = true, + var valid_618425 = formData.getOrDefault("PrincipalArn") + valid_618425 = validateParameter(valid_618425, JString, required = true, default = nil) - if valid_618423 != nil: - section.add "PrincipalArn", valid_618423 + if valid_618425 != nil: + section.add "PrincipalArn", valid_618425 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618424: Call_PostDescribeIdentityIdFormat_618410; path: JsonNode; +proc call*(call_618426: Call_PostDescribeIdentityIdFormat_618412; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the ID format settings for resources for the specified IAM user, IAM role, or root user. For example, you can view the resource types that are enabled for longer IDs. This request only returns information about resource types whose ID formats can be modified; it does not return information about other resource types. For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

These settings apply to the principal specified in the request. They do not apply to the principal that makes the request.

## - let valid = call_618424.validator(path, query, header, formData, body) - let scheme = call_618424.pickScheme + let valid = call_618426.validator(path, query, header, formData, body) + let scheme = call_618426.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618424.url(scheme.get, call_618424.host, call_618424.base, - call_618424.route, valid.getOrDefault("path"), + let url = call_618426.url(scheme.get, call_618426.host, call_618426.base, + call_618426.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618424, url, valid) + result = atozHook(call_618426, url, valid) -proc call*(call_618425: Call_PostDescribeIdentityIdFormat_618410; +proc call*(call_618427: Call_PostDescribeIdentityIdFormat_618412; PrincipalArn: string; Resource: string = ""; Action: string = "DescribeIdentityIdFormat"; Version: string = "2016-11-15"): Recallable = @@ -59906,23 +59933,23 @@ proc call*(call_618425: Call_PostDescribeIdentityIdFormat_618410; ## Version: string (required) ## PrincipalArn: string (required) ## : The ARN of the principal, which can be an IAM role, IAM user, or the root user. - var query_618426 = newJObject() - var formData_618427 = newJObject() - add(formData_618427, "Resource", newJString(Resource)) - add(query_618426, "Action", newJString(Action)) - add(query_618426, "Version", newJString(Version)) - add(formData_618427, "PrincipalArn", newJString(PrincipalArn)) - result = call_618425.call(nil, query_618426, nil, formData_618427, nil) - -var postDescribeIdentityIdFormat* = Call_PostDescribeIdentityIdFormat_618410( + var query_618428 = newJObject() + var formData_618429 = newJObject() + add(formData_618429, "Resource", newJString(Resource)) + add(query_618428, "Action", newJString(Action)) + add(query_618428, "Version", newJString(Version)) + add(formData_618429, "PrincipalArn", newJString(PrincipalArn)) + result = call_618427.call(nil, query_618428, nil, formData_618429, nil) + +var postDescribeIdentityIdFormat* = Call_PostDescribeIdentityIdFormat_618412( name: "postDescribeIdentityIdFormat", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeIdentityIdFormat", - validator: validate_PostDescribeIdentityIdFormat_618411, base: "/", - url: url_PostDescribeIdentityIdFormat_618412, + validator: validate_PostDescribeIdentityIdFormat_618413, base: "/", + url: url_PostDescribeIdentityIdFormat_618414, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeIdentityIdFormat_618393 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeIdentityIdFormat_618395(protocol: Scheme; host: string; + Call_GetDescribeIdentityIdFormat_618395 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeIdentityIdFormat_618397(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -59932,7 +59959,7 @@ proc url_GetDescribeIdentityIdFormat_618395(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeIdentityIdFormat_618394(path: JsonNode; query: JsonNode; +proc validate_GetDescribeIdentityIdFormat_618396(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the ID format settings for resources for the specified IAM user, IAM role, or root user. For example, you can view the resource types that are enabled for longer IDs. This request only returns information about resource types whose ID formats can be modified; it does not return information about other resource types. For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

These settings apply to the principal specified in the request. They do not apply to the principal that makes the request.

## @@ -59948,28 +59975,28 @@ proc validate_GetDescribeIdentityIdFormat_618394(path: JsonNode; query: JsonNode ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618396 = query.getOrDefault("Resource") - valid_618396 = validateParameter(valid_618396, JString, required = false, + var valid_618398 = query.getOrDefault("Resource") + valid_618398 = validateParameter(valid_618398, JString, required = false, default = nil) - if valid_618396 != nil: - section.add "Resource", valid_618396 + if valid_618398 != nil: + section.add "Resource", valid_618398 assert query != nil, "query argument is necessary due to required `PrincipalArn` field" - var valid_618397 = query.getOrDefault("PrincipalArn") - valid_618397 = validateParameter(valid_618397, JString, required = true, + var valid_618399 = query.getOrDefault("PrincipalArn") + valid_618399 = validateParameter(valid_618399, JString, required = true, default = nil) - if valid_618397 != nil: - section.add "PrincipalArn", valid_618397 - var valid_618398 = query.getOrDefault("Action") - valid_618398 = validateParameter(valid_618398, JString, required = true, default = newJString( + if valid_618399 != nil: + section.add "PrincipalArn", valid_618399 + var valid_618400 = query.getOrDefault("Action") + valid_618400 = validateParameter(valid_618400, JString, required = true, default = newJString( "DescribeIdentityIdFormat")) - if valid_618398 != nil: - section.add "Action", valid_618398 - var valid_618399 = query.getOrDefault("Version") - valid_618399 = validateParameter(valid_618399, JString, required = true, + if valid_618400 != nil: + section.add "Action", valid_618400 + var valid_618401 = query.getOrDefault("Version") + valid_618401 = validateParameter(valid_618401, JString, required = true, default = newJString("2016-11-15")) - if valid_618399 != nil: - section.add "Version", valid_618399 + if valid_618401 != nil: + section.add "Version", valid_618401 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -59980,61 +60007,61 @@ proc validate_GetDescribeIdentityIdFormat_618394(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618400 = header.getOrDefault("X-Amz-Signature") - valid_618400 = validateParameter(valid_618400, JString, required = false, - default = nil) - if valid_618400 != nil: - section.add "X-Amz-Signature", valid_618400 - var valid_618401 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618401 = validateParameter(valid_618401, JString, required = false, - default = nil) - if valid_618401 != nil: - section.add "X-Amz-Content-Sha256", valid_618401 - var valid_618402 = header.getOrDefault("X-Amz-Date") + var valid_618402 = header.getOrDefault("X-Amz-Signature") valid_618402 = validateParameter(valid_618402, JString, required = false, default = nil) if valid_618402 != nil: - section.add "X-Amz-Date", valid_618402 - var valid_618403 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618402 + var valid_618403 = header.getOrDefault("X-Amz-Content-Sha256") valid_618403 = validateParameter(valid_618403, JString, required = false, default = nil) if valid_618403 != nil: - section.add "X-Amz-Credential", valid_618403 - var valid_618404 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618403 + var valid_618404 = header.getOrDefault("X-Amz-Date") valid_618404 = validateParameter(valid_618404, JString, required = false, default = nil) if valid_618404 != nil: - section.add "X-Amz-Security-Token", valid_618404 - var valid_618405 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618404 + var valid_618405 = header.getOrDefault("X-Amz-Credential") valid_618405 = validateParameter(valid_618405, JString, required = false, default = nil) if valid_618405 != nil: - section.add "X-Amz-Algorithm", valid_618405 - var valid_618406 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618405 + var valid_618406 = header.getOrDefault("X-Amz-Security-Token") valid_618406 = validateParameter(valid_618406, JString, required = false, default = nil) if valid_618406 != nil: - section.add "X-Amz-SignedHeaders", valid_618406 + section.add "X-Amz-Security-Token", valid_618406 + var valid_618407 = header.getOrDefault("X-Amz-Algorithm") + valid_618407 = validateParameter(valid_618407, JString, required = false, + default = nil) + if valid_618407 != nil: + section.add "X-Amz-Algorithm", valid_618407 + var valid_618408 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618408 = validateParameter(valid_618408, JString, required = false, + default = nil) + if valid_618408 != nil: + section.add "X-Amz-SignedHeaders", valid_618408 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618407: Call_GetDescribeIdentityIdFormat_618393; path: JsonNode; +proc call*(call_618409: Call_GetDescribeIdentityIdFormat_618395; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the ID format settings for resources for the specified IAM user, IAM role, or root user. For example, you can view the resource types that are enabled for longer IDs. This request only returns information about resource types whose ID formats can be modified; it does not return information about other resource types. For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

These settings apply to the principal specified in the request. They do not apply to the principal that makes the request.

## - let valid = call_618407.validator(path, query, header, formData, body) - let scheme = call_618407.pickScheme + let valid = call_618409.validator(path, query, header, formData, body) + let scheme = call_618409.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618407.url(scheme.get, call_618407.host, call_618407.base, - call_618407.route, valid.getOrDefault("path"), + let url = call_618409.url(scheme.get, call_618409.host, call_618409.base, + call_618409.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618407, url, valid) + result = atozHook(call_618409, url, valid) -proc call*(call_618408: Call_GetDescribeIdentityIdFormat_618393; +proc call*(call_618410: Call_GetDescribeIdentityIdFormat_618395; PrincipalArn: string; Resource: string = ""; Action: string = "DescribeIdentityIdFormat"; Version: string = "2016-11-15"): Recallable = @@ -60046,22 +60073,22 @@ proc call*(call_618408: Call_GetDescribeIdentityIdFormat_618393; ## : The ARN of the principal, which can be an IAM role, IAM user, or the root user. ## Action: string (required) ## Version: string (required) - var query_618409 = newJObject() - add(query_618409, "Resource", newJString(Resource)) - add(query_618409, "PrincipalArn", newJString(PrincipalArn)) - add(query_618409, "Action", newJString(Action)) - add(query_618409, "Version", newJString(Version)) - result = call_618408.call(nil, query_618409, nil, nil, nil) + var query_618411 = newJObject() + add(query_618411, "Resource", newJString(Resource)) + add(query_618411, "PrincipalArn", newJString(PrincipalArn)) + add(query_618411, "Action", newJString(Action)) + add(query_618411, "Version", newJString(Version)) + result = call_618410.call(nil, query_618411, nil, nil, nil) -var getDescribeIdentityIdFormat* = Call_GetDescribeIdentityIdFormat_618393( +var getDescribeIdentityIdFormat* = Call_GetDescribeIdentityIdFormat_618395( name: "getDescribeIdentityIdFormat", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeIdentityIdFormat", - validator: validate_GetDescribeIdentityIdFormat_618394, base: "/", - url: url_GetDescribeIdentityIdFormat_618395, + validator: validate_GetDescribeIdentityIdFormat_618396, base: "/", + url: url_GetDescribeIdentityIdFormat_618397, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeImageAttribute_618446 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeImageAttribute_618448(protocol: Scheme; host: string; + Call_PostDescribeImageAttribute_618448 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeImageAttribute_618450(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -60071,7 +60098,7 @@ proc url_PostDescribeImageAttribute_618448(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeImageAttribute_618447(path: JsonNode; query: JsonNode; +proc validate_PostDescribeImageAttribute_618449(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the specified attribute of the specified AMI. You can specify only one attribute at a time. ## @@ -60083,16 +60110,16 @@ proc validate_PostDescribeImageAttribute_618447(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618449 = query.getOrDefault("Action") - valid_618449 = validateParameter(valid_618449, JString, required = true, + var valid_618451 = query.getOrDefault("Action") + valid_618451 = validateParameter(valid_618451, JString, required = true, default = newJString("DescribeImageAttribute")) - if valid_618449 != nil: - section.add "Action", valid_618449 - var valid_618450 = query.getOrDefault("Version") - valid_618450 = validateParameter(valid_618450, JString, required = true, + if valid_618451 != nil: + section.add "Action", valid_618451 + var valid_618452 = query.getOrDefault("Version") + valid_618452 = validateParameter(valid_618452, JString, required = true, default = newJString("2016-11-15")) - if valid_618450 != nil: - section.add "Version", valid_618450 + if valid_618452 != nil: + section.add "Version", valid_618452 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -60103,41 +60130,41 @@ proc validate_PostDescribeImageAttribute_618447(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618451 = header.getOrDefault("X-Amz-Signature") - valid_618451 = validateParameter(valid_618451, JString, required = false, - default = nil) - if valid_618451 != nil: - section.add "X-Amz-Signature", valid_618451 - var valid_618452 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618452 = validateParameter(valid_618452, JString, required = false, - default = nil) - if valid_618452 != nil: - section.add "X-Amz-Content-Sha256", valid_618452 - var valid_618453 = header.getOrDefault("X-Amz-Date") + var valid_618453 = header.getOrDefault("X-Amz-Signature") valid_618453 = validateParameter(valid_618453, JString, required = false, default = nil) if valid_618453 != nil: - section.add "X-Amz-Date", valid_618453 - var valid_618454 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618453 + var valid_618454 = header.getOrDefault("X-Amz-Content-Sha256") valid_618454 = validateParameter(valid_618454, JString, required = false, default = nil) if valid_618454 != nil: - section.add "X-Amz-Credential", valid_618454 - var valid_618455 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618454 + var valid_618455 = header.getOrDefault("X-Amz-Date") valid_618455 = validateParameter(valid_618455, JString, required = false, default = nil) if valid_618455 != nil: - section.add "X-Amz-Security-Token", valid_618455 - var valid_618456 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618455 + var valid_618456 = header.getOrDefault("X-Amz-Credential") valid_618456 = validateParameter(valid_618456, JString, required = false, default = nil) if valid_618456 != nil: - section.add "X-Amz-Algorithm", valid_618456 - var valid_618457 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618456 + var valid_618457 = header.getOrDefault("X-Amz-Security-Token") valid_618457 = validateParameter(valid_618457, JString, required = false, default = nil) if valid_618457 != nil: - section.add "X-Amz-SignedHeaders", valid_618457 + section.add "X-Amz-Security-Token", valid_618457 + var valid_618458 = header.getOrDefault("X-Amz-Algorithm") + valid_618458 = validateParameter(valid_618458, JString, required = false, + default = nil) + if valid_618458 != nil: + section.add "X-Amz-Algorithm", valid_618458 + var valid_618459 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618459 = validateParameter(valid_618459, JString, required = false, + default = nil) + if valid_618459 != nil: + section.add "X-Amz-SignedHeaders", valid_618459 result.add "header", section ## parameters in `formData` object: ## Attribute: JString (required) @@ -60147,38 +60174,38 @@ proc validate_PostDescribeImageAttribute_618447(path: JsonNode; query: JsonNode; ## ImageId: JString (required) ## : The ID of the AMI. section = newJObject() - var valid_618458 = formData.getOrDefault("Attribute") - valid_618458 = validateParameter(valid_618458, JString, required = true, - default = newJString("description")) - if valid_618458 != nil: - section.add "Attribute", valid_618458 - var valid_618459 = formData.getOrDefault("DryRun") - valid_618459 = validateParameter(valid_618459, JBool, required = false, default = nil) - if valid_618459 != nil: - section.add "DryRun", valid_618459 - var valid_618460 = formData.getOrDefault("ImageId") + var valid_618460 = formData.getOrDefault("Attribute") valid_618460 = validateParameter(valid_618460, JString, required = true, - default = nil) + default = newJString("description")) if valid_618460 != nil: - section.add "ImageId", valid_618460 + section.add "Attribute", valid_618460 + var valid_618461 = formData.getOrDefault("DryRun") + valid_618461 = validateParameter(valid_618461, JBool, required = false, default = nil) + if valid_618461 != nil: + section.add "DryRun", valid_618461 + var valid_618462 = formData.getOrDefault("ImageId") + valid_618462 = validateParameter(valid_618462, JString, required = true, + default = nil) + if valid_618462 != nil: + section.add "ImageId", valid_618462 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618461: Call_PostDescribeImageAttribute_618446; path: JsonNode; +proc call*(call_618463: Call_PostDescribeImageAttribute_618448; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the specified attribute of the specified AMI. You can specify only one attribute at a time. ## - let valid = call_618461.validator(path, query, header, formData, body) - let scheme = call_618461.pickScheme + let valid = call_618463.validator(path, query, header, formData, body) + let scheme = call_618463.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618461.url(scheme.get, call_618461.host, call_618461.base, - call_618461.route, valid.getOrDefault("path"), + let url = call_618463.url(scheme.get, call_618463.host, call_618463.base, + call_618463.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618461, url, valid) + result = atozHook(call_618463, url, valid) -proc call*(call_618462: Call_PostDescribeImageAttribute_618446; ImageId: string; +proc call*(call_618464: Call_PostDescribeImageAttribute_618448; ImageId: string; Attribute: string = "description"; DryRun: bool = false; Action: string = "DescribeImageAttribute"; Version: string = "2016-11-15"): Recallable = ## postDescribeImageAttribute @@ -60191,24 +60218,24 @@ proc call*(call_618462: Call_PostDescribeImageAttribute_618446; ImageId: string; ## ImageId: string (required) ## : The ID of the AMI. ## Version: string (required) - var query_618463 = newJObject() - var formData_618464 = newJObject() - add(formData_618464, "Attribute", newJString(Attribute)) - add(formData_618464, "DryRun", newJBool(DryRun)) - add(query_618463, "Action", newJString(Action)) - add(formData_618464, "ImageId", newJString(ImageId)) - add(query_618463, "Version", newJString(Version)) - result = call_618462.call(nil, query_618463, nil, formData_618464, nil) + var query_618465 = newJObject() + var formData_618466 = newJObject() + add(formData_618466, "Attribute", newJString(Attribute)) + add(formData_618466, "DryRun", newJBool(DryRun)) + add(query_618465, "Action", newJString(Action)) + add(formData_618466, "ImageId", newJString(ImageId)) + add(query_618465, "Version", newJString(Version)) + result = call_618464.call(nil, query_618465, nil, formData_618466, nil) -var postDescribeImageAttribute* = Call_PostDescribeImageAttribute_618446( +var postDescribeImageAttribute* = Call_PostDescribeImageAttribute_618448( name: "postDescribeImageAttribute", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeImageAttribute", - validator: validate_PostDescribeImageAttribute_618447, base: "/", - url: url_PostDescribeImageAttribute_618448, + validator: validate_PostDescribeImageAttribute_618449, base: "/", + url: url_PostDescribeImageAttribute_618450, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeImageAttribute_618428 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeImageAttribute_618430(protocol: Scheme; host: string; + Call_GetDescribeImageAttribute_618430 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeImageAttribute_618432(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -60218,7 +60245,7 @@ proc url_GetDescribeImageAttribute_618430(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeImageAttribute_618429(path: JsonNode; query: JsonNode; +proc validate_GetDescribeImageAttribute_618431(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the specified attribute of the specified AMI. You can specify only one attribute at a time. ## @@ -60237,30 +60264,30 @@ proc validate_GetDescribeImageAttribute_618429(path: JsonNode; query: JsonNode; ## :

The AMI attribute.

Note: Depending on your account privileges, the blockDeviceMapping attribute may return a Client.AuthFailure error. If this happens, use DescribeImages to get information about the block device mapping for the AMI.

section = newJObject() assert query != nil, "query argument is necessary due to required `ImageId` field" - var valid_618431 = query.getOrDefault("ImageId") - valid_618431 = validateParameter(valid_618431, JString, required = true, - default = nil) - if valid_618431 != nil: - section.add "ImageId", valid_618431 - var valid_618432 = query.getOrDefault("DryRun") - valid_618432 = validateParameter(valid_618432, JBool, required = false, default = nil) - if valid_618432 != nil: - section.add "DryRun", valid_618432 - var valid_618433 = query.getOrDefault("Action") + var valid_618433 = query.getOrDefault("ImageId") valid_618433 = validateParameter(valid_618433, JString, required = true, - default = newJString("DescribeImageAttribute")) + default = nil) if valid_618433 != nil: - section.add "Action", valid_618433 - var valid_618434 = query.getOrDefault("Version") - valid_618434 = validateParameter(valid_618434, JString, required = true, - default = newJString("2016-11-15")) + section.add "ImageId", valid_618433 + var valid_618434 = query.getOrDefault("DryRun") + valid_618434 = validateParameter(valid_618434, JBool, required = false, default = nil) if valid_618434 != nil: - section.add "Version", valid_618434 - var valid_618435 = query.getOrDefault("Attribute") + section.add "DryRun", valid_618434 + var valid_618435 = query.getOrDefault("Action") valid_618435 = validateParameter(valid_618435, JString, required = true, - default = newJString("description")) + default = newJString("DescribeImageAttribute")) if valid_618435 != nil: - section.add "Attribute", valid_618435 + section.add "Action", valid_618435 + var valid_618436 = query.getOrDefault("Version") + valid_618436 = validateParameter(valid_618436, JString, required = true, + default = newJString("2016-11-15")) + if valid_618436 != nil: + section.add "Version", valid_618436 + var valid_618437 = query.getOrDefault("Attribute") + valid_618437 = validateParameter(valid_618437, JString, required = true, + default = newJString("description")) + if valid_618437 != nil: + section.add "Attribute", valid_618437 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -60271,61 +60298,61 @@ proc validate_GetDescribeImageAttribute_618429(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618436 = header.getOrDefault("X-Amz-Signature") - valid_618436 = validateParameter(valid_618436, JString, required = false, - default = nil) - if valid_618436 != nil: - section.add "X-Amz-Signature", valid_618436 - var valid_618437 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618437 = validateParameter(valid_618437, JString, required = false, - default = nil) - if valid_618437 != nil: - section.add "X-Amz-Content-Sha256", valid_618437 - var valid_618438 = header.getOrDefault("X-Amz-Date") + var valid_618438 = header.getOrDefault("X-Amz-Signature") valid_618438 = validateParameter(valid_618438, JString, required = false, default = nil) if valid_618438 != nil: - section.add "X-Amz-Date", valid_618438 - var valid_618439 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618438 + var valid_618439 = header.getOrDefault("X-Amz-Content-Sha256") valid_618439 = validateParameter(valid_618439, JString, required = false, default = nil) if valid_618439 != nil: - section.add "X-Amz-Credential", valid_618439 - var valid_618440 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618439 + var valid_618440 = header.getOrDefault("X-Amz-Date") valid_618440 = validateParameter(valid_618440, JString, required = false, default = nil) if valid_618440 != nil: - section.add "X-Amz-Security-Token", valid_618440 - var valid_618441 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618440 + var valid_618441 = header.getOrDefault("X-Amz-Credential") valid_618441 = validateParameter(valid_618441, JString, required = false, default = nil) if valid_618441 != nil: - section.add "X-Amz-Algorithm", valid_618441 - var valid_618442 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618441 + var valid_618442 = header.getOrDefault("X-Amz-Security-Token") valid_618442 = validateParameter(valid_618442, JString, required = false, default = nil) if valid_618442 != nil: - section.add "X-Amz-SignedHeaders", valid_618442 + section.add "X-Amz-Security-Token", valid_618442 + var valid_618443 = header.getOrDefault("X-Amz-Algorithm") + valid_618443 = validateParameter(valid_618443, JString, required = false, + default = nil) + if valid_618443 != nil: + section.add "X-Amz-Algorithm", valid_618443 + var valid_618444 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618444 = validateParameter(valid_618444, JString, required = false, + default = nil) + if valid_618444 != nil: + section.add "X-Amz-SignedHeaders", valid_618444 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618443: Call_GetDescribeImageAttribute_618428; path: JsonNode; +proc call*(call_618445: Call_GetDescribeImageAttribute_618430; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the specified attribute of the specified AMI. You can specify only one attribute at a time. ## - let valid = call_618443.validator(path, query, header, formData, body) - let scheme = call_618443.pickScheme + let valid = call_618445.validator(path, query, header, formData, body) + let scheme = call_618445.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618443.url(scheme.get, call_618443.host, call_618443.base, - call_618443.route, valid.getOrDefault("path"), + let url = call_618445.url(scheme.get, call_618445.host, call_618445.base, + call_618445.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618443, url, valid) + result = atozHook(call_618445, url, valid) -proc call*(call_618444: Call_GetDescribeImageAttribute_618428; ImageId: string; +proc call*(call_618446: Call_GetDescribeImageAttribute_618430; ImageId: string; DryRun: bool = false; Action: string = "DescribeImageAttribute"; Version: string = "2016-11-15"; Attribute: string = "description"): Recallable = ## getDescribeImageAttribute @@ -60338,23 +60365,23 @@ proc call*(call_618444: Call_GetDescribeImageAttribute_618428; ImageId: string; ## Version: string (required) ## Attribute: string (required) ## :

The AMI attribute.

Note: Depending on your account privileges, the blockDeviceMapping attribute may return a Client.AuthFailure error. If this happens, use DescribeImages to get information about the block device mapping for the AMI.

- var query_618445 = newJObject() - add(query_618445, "ImageId", newJString(ImageId)) - add(query_618445, "DryRun", newJBool(DryRun)) - add(query_618445, "Action", newJString(Action)) - add(query_618445, "Version", newJString(Version)) - add(query_618445, "Attribute", newJString(Attribute)) - result = call_618444.call(nil, query_618445, nil, nil, nil) - -var getDescribeImageAttribute* = Call_GetDescribeImageAttribute_618428( + var query_618447 = newJObject() + add(query_618447, "ImageId", newJString(ImageId)) + add(query_618447, "DryRun", newJBool(DryRun)) + add(query_618447, "Action", newJString(Action)) + add(query_618447, "Version", newJString(Version)) + add(query_618447, "Attribute", newJString(Attribute)) + result = call_618446.call(nil, query_618447, nil, nil, nil) + +var getDescribeImageAttribute* = Call_GetDescribeImageAttribute_618430( name: "getDescribeImageAttribute", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeImageAttribute", - validator: validate_GetDescribeImageAttribute_618429, base: "/", - url: url_GetDescribeImageAttribute_618430, + validator: validate_GetDescribeImageAttribute_618431, base: "/", + url: url_GetDescribeImageAttribute_618432, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeImages_618485 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeImages_618487(protocol: Scheme; host: string; base: string; + Call_PostDescribeImages_618487 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeImages_618489(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -60364,7 +60391,7 @@ proc url_PostDescribeImages_618487(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostDescribeImages_618486(path: JsonNode; query: JsonNode; +proc validate_PostDescribeImages_618488(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the specified images (AMIs, AKIs, and ARIs) available to you or all of the images available to you.

The images available to you include public images, private images that you own, and private images owned by other AWS accounts for which you have explicit launch permissions.

Recently deregistered images appear in the returned results for a short interval and then return empty results. After all instances that reference a deregistered AMI are terminated, specifying the ID of the image results in an error indicating that the AMI ID cannot be found.

@@ -60377,16 +60404,16 @@ proc validate_PostDescribeImages_618486(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618488 = query.getOrDefault("Action") - valid_618488 = validateParameter(valid_618488, JString, required = true, + var valid_618490 = query.getOrDefault("Action") + valid_618490 = validateParameter(valid_618490, JString, required = true, default = newJString("DescribeImages")) - if valid_618488 != nil: - section.add "Action", valid_618488 - var valid_618489 = query.getOrDefault("Version") - valid_618489 = validateParameter(valid_618489, JString, required = true, + if valid_618490 != nil: + section.add "Action", valid_618490 + var valid_618491 = query.getOrDefault("Version") + valid_618491 = validateParameter(valid_618491, JString, required = true, default = newJString("2016-11-15")) - if valid_618489 != nil: - section.add "Version", valid_618489 + if valid_618491 != nil: + section.add "Version", valid_618491 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -60397,41 +60424,41 @@ proc validate_PostDescribeImages_618486(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618490 = header.getOrDefault("X-Amz-Signature") - valid_618490 = validateParameter(valid_618490, JString, required = false, - default = nil) - if valid_618490 != nil: - section.add "X-Amz-Signature", valid_618490 - var valid_618491 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618491 = validateParameter(valid_618491, JString, required = false, - default = nil) - if valid_618491 != nil: - section.add "X-Amz-Content-Sha256", valid_618491 - var valid_618492 = header.getOrDefault("X-Amz-Date") + var valid_618492 = header.getOrDefault("X-Amz-Signature") valid_618492 = validateParameter(valid_618492, JString, required = false, default = nil) if valid_618492 != nil: - section.add "X-Amz-Date", valid_618492 - var valid_618493 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618492 + var valid_618493 = header.getOrDefault("X-Amz-Content-Sha256") valid_618493 = validateParameter(valid_618493, JString, required = false, default = nil) if valid_618493 != nil: - section.add "X-Amz-Credential", valid_618493 - var valid_618494 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618493 + var valid_618494 = header.getOrDefault("X-Amz-Date") valid_618494 = validateParameter(valid_618494, JString, required = false, default = nil) if valid_618494 != nil: - section.add "X-Amz-Security-Token", valid_618494 - var valid_618495 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618494 + var valid_618495 = header.getOrDefault("X-Amz-Credential") valid_618495 = validateParameter(valid_618495, JString, required = false, default = nil) if valid_618495 != nil: - section.add "X-Amz-Algorithm", valid_618495 - var valid_618496 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618495 + var valid_618496 = header.getOrDefault("X-Amz-Security-Token") valid_618496 = validateParameter(valid_618496, JString, required = false, default = nil) if valid_618496 != nil: - section.add "X-Amz-SignedHeaders", valid_618496 + section.add "X-Amz-Security-Token", valid_618496 + var valid_618497 = header.getOrDefault("X-Amz-Algorithm") + valid_618497 = validateParameter(valid_618497, JString, required = false, + default = nil) + if valid_618497 != nil: + section.add "X-Amz-Algorithm", valid_618497 + var valid_618498 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618498 = validateParameter(valid_618498, JString, required = false, + default = nil) + if valid_618498 != nil: + section.add "X-Amz-SignedHeaders", valid_618498 result.add "header", section ## parameters in `formData` object: ## ExecutableBy: JArray @@ -60445,48 +60472,48 @@ proc validate_PostDescribeImages_618486(path: JsonNode; query: JsonNode; ## Filter: JArray ## :

The filters.

section = newJObject() - var valid_618497 = formData.getOrDefault("ExecutableBy") - valid_618497 = validateParameter(valid_618497, JArray, required = false, - default = nil) - if valid_618497 != nil: - section.add "ExecutableBy", valid_618497 - var valid_618498 = formData.getOrDefault("DryRun") - valid_618498 = validateParameter(valid_618498, JBool, required = false, default = nil) - if valid_618498 != nil: - section.add "DryRun", valid_618498 - var valid_618499 = formData.getOrDefault("Owner") + var valid_618499 = formData.getOrDefault("ExecutableBy") valid_618499 = validateParameter(valid_618499, JArray, required = false, default = nil) if valid_618499 != nil: - section.add "Owner", valid_618499 - var valid_618500 = formData.getOrDefault("ImageId") - valid_618500 = validateParameter(valid_618500, JArray, required = false, - default = nil) + section.add "ExecutableBy", valid_618499 + var valid_618500 = formData.getOrDefault("DryRun") + valid_618500 = validateParameter(valid_618500, JBool, required = false, default = nil) if valid_618500 != nil: - section.add "ImageId", valid_618500 - var valid_618501 = formData.getOrDefault("Filter") + section.add "DryRun", valid_618500 + var valid_618501 = formData.getOrDefault("Owner") valid_618501 = validateParameter(valid_618501, JArray, required = false, default = nil) if valid_618501 != nil: - section.add "Filter", valid_618501 + section.add "Owner", valid_618501 + var valid_618502 = formData.getOrDefault("ImageId") + valid_618502 = validateParameter(valid_618502, JArray, required = false, + default = nil) + if valid_618502 != nil: + section.add "ImageId", valid_618502 + var valid_618503 = formData.getOrDefault("Filter") + valid_618503 = validateParameter(valid_618503, JArray, required = false, + default = nil) + if valid_618503 != nil: + section.add "Filter", valid_618503 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618502: Call_PostDescribeImages_618485; path: JsonNode; +proc call*(call_618504: Call_PostDescribeImages_618487; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the specified images (AMIs, AKIs, and ARIs) available to you or all of the images available to you.

The images available to you include public images, private images that you own, and private images owned by other AWS accounts for which you have explicit launch permissions.

Recently deregistered images appear in the returned results for a short interval and then return empty results. After all instances that reference a deregistered AMI are terminated, specifying the ID of the image results in an error indicating that the AMI ID cannot be found.

## - let valid = call_618502.validator(path, query, header, formData, body) - let scheme = call_618502.pickScheme + let valid = call_618504.validator(path, query, header, formData, body) + let scheme = call_618504.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618502.url(scheme.get, call_618502.host, call_618502.base, - call_618502.route, valid.getOrDefault("path"), + let url = call_618504.url(scheme.get, call_618504.host, call_618504.base, + call_618504.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618502, url, valid) + result = atozHook(call_618504, url, valid) -proc call*(call_618503: Call_PostDescribeImages_618485; +proc call*(call_618505: Call_PostDescribeImages_618487; ExecutableBy: JsonNode = nil; DryRun: bool = false; Action: string = "DescribeImages"; Owner: JsonNode = nil; ImageId: JsonNode = nil; Version: string = "2016-11-15"; @@ -60505,29 +60532,29 @@ proc call*(call_618503: Call_PostDescribeImages_618485; ## Version: string (required) ## Filter: JArray ## :

The filters.

- var query_618504 = newJObject() - var formData_618505 = newJObject() + var query_618506 = newJObject() + var formData_618507 = newJObject() if ExecutableBy != nil: - formData_618505.add "ExecutableBy", ExecutableBy - add(formData_618505, "DryRun", newJBool(DryRun)) - add(query_618504, "Action", newJString(Action)) + formData_618507.add "ExecutableBy", ExecutableBy + add(formData_618507, "DryRun", newJBool(DryRun)) + add(query_618506, "Action", newJString(Action)) if Owner != nil: - formData_618505.add "Owner", Owner + formData_618507.add "Owner", Owner if ImageId != nil: - formData_618505.add "ImageId", ImageId - add(query_618504, "Version", newJString(Version)) + formData_618507.add "ImageId", ImageId + add(query_618506, "Version", newJString(Version)) if Filter != nil: - formData_618505.add "Filter", Filter - result = call_618503.call(nil, query_618504, nil, formData_618505, nil) + formData_618507.add "Filter", Filter + result = call_618505.call(nil, query_618506, nil, formData_618507, nil) -var postDescribeImages* = Call_PostDescribeImages_618485( +var postDescribeImages* = Call_PostDescribeImages_618487( name: "postDescribeImages", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeImages", - validator: validate_PostDescribeImages_618486, base: "/", - url: url_PostDescribeImages_618487, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDescribeImages_618488, base: "/", + url: url_PostDescribeImages_618489, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeImages_618465 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeImages_618467(protocol: Scheme; host: string; base: string; + Call_GetDescribeImages_618467 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeImages_618469(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -60537,7 +60564,7 @@ proc url_GetDescribeImages_618467(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetDescribeImages_618466(path: JsonNode; query: JsonNode; +proc validate_GetDescribeImages_618468(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the specified images (AMIs, AKIs, and ARIs) available to you or all of the images available to you.

The images available to you include public images, private images that you own, and private images owned by other AWS accounts for which you have explicit launch permissions.

Recently deregistered images appear in the returned results for a short interval and then return empty results. After all instances that reference a deregistered AMI are terminated, specifying the ID of the image results in an error indicating that the AMI ID cannot be found.

@@ -60560,40 +60587,40 @@ proc validate_GetDescribeImages_618466(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618468 = query.getOrDefault("ImageId") - valid_618468 = validateParameter(valid_618468, JArray, required = false, - default = nil) - if valid_618468 != nil: - section.add "ImageId", valid_618468 - var valid_618469 = query.getOrDefault("Owner") - valid_618469 = validateParameter(valid_618469, JArray, required = false, - default = nil) - if valid_618469 != nil: - section.add "Owner", valid_618469 - var valid_618470 = query.getOrDefault("ExecutableBy") + var valid_618470 = query.getOrDefault("ImageId") valid_618470 = validateParameter(valid_618470, JArray, required = false, default = nil) if valid_618470 != nil: - section.add "ExecutableBy", valid_618470 - var valid_618471 = query.getOrDefault("DryRun") - valid_618471 = validateParameter(valid_618471, JBool, required = false, default = nil) + section.add "ImageId", valid_618470 + var valid_618471 = query.getOrDefault("Owner") + valid_618471 = validateParameter(valid_618471, JArray, required = false, + default = nil) if valid_618471 != nil: - section.add "DryRun", valid_618471 - var valid_618472 = query.getOrDefault("Filter") + section.add "Owner", valid_618471 + var valid_618472 = query.getOrDefault("ExecutableBy") valid_618472 = validateParameter(valid_618472, JArray, required = false, default = nil) if valid_618472 != nil: - section.add "Filter", valid_618472 - var valid_618473 = query.getOrDefault("Action") - valid_618473 = validateParameter(valid_618473, JString, required = true, - default = newJString("DescribeImages")) + section.add "ExecutableBy", valid_618472 + var valid_618473 = query.getOrDefault("DryRun") + valid_618473 = validateParameter(valid_618473, JBool, required = false, default = nil) if valid_618473 != nil: - section.add "Action", valid_618473 - var valid_618474 = query.getOrDefault("Version") - valid_618474 = validateParameter(valid_618474, JString, required = true, - default = newJString("2016-11-15")) + section.add "DryRun", valid_618473 + var valid_618474 = query.getOrDefault("Filter") + valid_618474 = validateParameter(valid_618474, JArray, required = false, + default = nil) if valid_618474 != nil: - section.add "Version", valid_618474 + section.add "Filter", valid_618474 + var valid_618475 = query.getOrDefault("Action") + valid_618475 = validateParameter(valid_618475, JString, required = true, + default = newJString("DescribeImages")) + if valid_618475 != nil: + section.add "Action", valid_618475 + var valid_618476 = query.getOrDefault("Version") + valid_618476 = validateParameter(valid_618476, JString, required = true, + default = newJString("2016-11-15")) + if valid_618476 != nil: + section.add "Version", valid_618476 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -60604,61 +60631,61 @@ proc validate_GetDescribeImages_618466(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618475 = header.getOrDefault("X-Amz-Signature") - valid_618475 = validateParameter(valid_618475, JString, required = false, - default = nil) - if valid_618475 != nil: - section.add "X-Amz-Signature", valid_618475 - var valid_618476 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618476 = validateParameter(valid_618476, JString, required = false, - default = nil) - if valid_618476 != nil: - section.add "X-Amz-Content-Sha256", valid_618476 - var valid_618477 = header.getOrDefault("X-Amz-Date") + var valid_618477 = header.getOrDefault("X-Amz-Signature") valid_618477 = validateParameter(valid_618477, JString, required = false, default = nil) if valid_618477 != nil: - section.add "X-Amz-Date", valid_618477 - var valid_618478 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618477 + var valid_618478 = header.getOrDefault("X-Amz-Content-Sha256") valid_618478 = validateParameter(valid_618478, JString, required = false, default = nil) if valid_618478 != nil: - section.add "X-Amz-Credential", valid_618478 - var valid_618479 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618478 + var valid_618479 = header.getOrDefault("X-Amz-Date") valid_618479 = validateParameter(valid_618479, JString, required = false, default = nil) if valid_618479 != nil: - section.add "X-Amz-Security-Token", valid_618479 - var valid_618480 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618479 + var valid_618480 = header.getOrDefault("X-Amz-Credential") valid_618480 = validateParameter(valid_618480, JString, required = false, default = nil) if valid_618480 != nil: - section.add "X-Amz-Algorithm", valid_618480 - var valid_618481 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618480 + var valid_618481 = header.getOrDefault("X-Amz-Security-Token") valid_618481 = validateParameter(valid_618481, JString, required = false, default = nil) if valid_618481 != nil: - section.add "X-Amz-SignedHeaders", valid_618481 + section.add "X-Amz-Security-Token", valid_618481 + var valid_618482 = header.getOrDefault("X-Amz-Algorithm") + valid_618482 = validateParameter(valid_618482, JString, required = false, + default = nil) + if valid_618482 != nil: + section.add "X-Amz-Algorithm", valid_618482 + var valid_618483 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618483 = validateParameter(valid_618483, JString, required = false, + default = nil) + if valid_618483 != nil: + section.add "X-Amz-SignedHeaders", valid_618483 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618482: Call_GetDescribeImages_618465; path: JsonNode; +proc call*(call_618484: Call_GetDescribeImages_618467; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the specified images (AMIs, AKIs, and ARIs) available to you or all of the images available to you.

The images available to you include public images, private images that you own, and private images owned by other AWS accounts for which you have explicit launch permissions.

Recently deregistered images appear in the returned results for a short interval and then return empty results. After all instances that reference a deregistered AMI are terminated, specifying the ID of the image results in an error indicating that the AMI ID cannot be found.

## - let valid = call_618482.validator(path, query, header, formData, body) - let scheme = call_618482.pickScheme + let valid = call_618484.validator(path, query, header, formData, body) + let scheme = call_618484.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618482.url(scheme.get, call_618482.host, call_618482.base, - call_618482.route, valid.getOrDefault("path"), + let url = call_618484.url(scheme.get, call_618484.host, call_618484.base, + call_618484.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618482, url, valid) + result = atozHook(call_618484, url, valid) -proc call*(call_618483: Call_GetDescribeImages_618465; ImageId: JsonNode = nil; +proc call*(call_618485: Call_GetDescribeImages_618467; ImageId: JsonNode = nil; Owner: JsonNode = nil; ExecutableBy: JsonNode = nil; DryRun: bool = false; Filter: JsonNode = nil; Action: string = "DescribeImages"; Version: string = "2016-11-15"): Recallable = @@ -60676,28 +60703,28 @@ proc call*(call_618483: Call_GetDescribeImages_618465; ImageId: JsonNode = nil; ## :

The filters.

## Action: string (required) ## Version: string (required) - var query_618484 = newJObject() + var query_618486 = newJObject() if ImageId != nil: - query_618484.add "ImageId", ImageId + query_618486.add "ImageId", ImageId if Owner != nil: - query_618484.add "Owner", Owner + query_618486.add "Owner", Owner if ExecutableBy != nil: - query_618484.add "ExecutableBy", ExecutableBy - add(query_618484, "DryRun", newJBool(DryRun)) + query_618486.add "ExecutableBy", ExecutableBy + add(query_618486, "DryRun", newJBool(DryRun)) if Filter != nil: - query_618484.add "Filter", Filter - add(query_618484, "Action", newJString(Action)) - add(query_618484, "Version", newJString(Version)) - result = call_618483.call(nil, query_618484, nil, nil, nil) + query_618486.add "Filter", Filter + add(query_618486, "Action", newJString(Action)) + add(query_618486, "Version", newJString(Version)) + result = call_618485.call(nil, query_618486, nil, nil, nil) -var getDescribeImages* = Call_GetDescribeImages_618465(name: "getDescribeImages", +var getDescribeImages* = Call_GetDescribeImages_618467(name: "getDescribeImages", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=DescribeImages", validator: validate_GetDescribeImages_618466, - base: "/", url: url_GetDescribeImages_618467, + route: "/#Action=DescribeImages", validator: validate_GetDescribeImages_618468, + base: "/", url: url_GetDescribeImages_618469, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeImportImageTasks_618526 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeImportImageTasks_618528(protocol: Scheme; host: string; + Call_PostDescribeImportImageTasks_618528 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeImportImageTasks_618530(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -60707,7 +60734,7 @@ proc url_PostDescribeImportImageTasks_618528(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeImportImageTasks_618527(path: JsonNode; query: JsonNode; +proc validate_PostDescribeImportImageTasks_618529(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Displays details about an import virtual machine or import snapshot tasks that are already created. ## @@ -60719,16 +60746,16 @@ proc validate_PostDescribeImportImageTasks_618527(path: JsonNode; query: JsonNod ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618529 = query.getOrDefault("Action") - valid_618529 = validateParameter(valid_618529, JString, required = true, default = newJString( + var valid_618531 = query.getOrDefault("Action") + valid_618531 = validateParameter(valid_618531, JString, required = true, default = newJString( "DescribeImportImageTasks")) - if valid_618529 != nil: - section.add "Action", valid_618529 - var valid_618530 = query.getOrDefault("Version") - valid_618530 = validateParameter(valid_618530, JString, required = true, + if valid_618531 != nil: + section.add "Action", valid_618531 + var valid_618532 = query.getOrDefault("Version") + valid_618532 = validateParameter(valid_618532, JString, required = true, default = newJString("2016-11-15")) - if valid_618530 != nil: - section.add "Version", valid_618530 + if valid_618532 != nil: + section.add "Version", valid_618532 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -60739,41 +60766,41 @@ proc validate_PostDescribeImportImageTasks_618527(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618531 = header.getOrDefault("X-Amz-Signature") - valid_618531 = validateParameter(valid_618531, JString, required = false, - default = nil) - if valid_618531 != nil: - section.add "X-Amz-Signature", valid_618531 - var valid_618532 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618532 = validateParameter(valid_618532, JString, required = false, - default = nil) - if valid_618532 != nil: - section.add "X-Amz-Content-Sha256", valid_618532 - var valid_618533 = header.getOrDefault("X-Amz-Date") + var valid_618533 = header.getOrDefault("X-Amz-Signature") valid_618533 = validateParameter(valid_618533, JString, required = false, default = nil) if valid_618533 != nil: - section.add "X-Amz-Date", valid_618533 - var valid_618534 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618533 + var valid_618534 = header.getOrDefault("X-Amz-Content-Sha256") valid_618534 = validateParameter(valid_618534, JString, required = false, default = nil) if valid_618534 != nil: - section.add "X-Amz-Credential", valid_618534 - var valid_618535 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618534 + var valid_618535 = header.getOrDefault("X-Amz-Date") valid_618535 = validateParameter(valid_618535, JString, required = false, default = nil) if valid_618535 != nil: - section.add "X-Amz-Security-Token", valid_618535 - var valid_618536 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618535 + var valid_618536 = header.getOrDefault("X-Amz-Credential") valid_618536 = validateParameter(valid_618536, JString, required = false, default = nil) if valid_618536 != nil: - section.add "X-Amz-Algorithm", valid_618536 - var valid_618537 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618536 + var valid_618537 = header.getOrDefault("X-Amz-Security-Token") valid_618537 = validateParameter(valid_618537, JString, required = false, default = nil) if valid_618537 != nil: - section.add "X-Amz-SignedHeaders", valid_618537 + section.add "X-Amz-Security-Token", valid_618537 + var valid_618538 = header.getOrDefault("X-Amz-Algorithm") + valid_618538 = validateParameter(valid_618538, JString, required = false, + default = nil) + if valid_618538 != nil: + section.add "X-Amz-Algorithm", valid_618538 + var valid_618539 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618539 = validateParameter(valid_618539, JString, required = false, + default = nil) + if valid_618539 != nil: + section.add "X-Amz-SignedHeaders", valid_618539 result.add "header", section ## parameters in `formData` object: ## ImportTaskId: JArray @@ -60787,47 +60814,47 @@ proc validate_PostDescribeImportImageTasks_618527(path: JsonNode; query: JsonNod ## MaxResults: JInt ## : The maximum number of results to return in a single call. section = newJObject() - var valid_618538 = formData.getOrDefault("ImportTaskId") - valid_618538 = validateParameter(valid_618538, JArray, required = false, - default = nil) - if valid_618538 != nil: - section.add "ImportTaskId", valid_618538 - var valid_618539 = formData.getOrDefault("NextToken") - valid_618539 = validateParameter(valid_618539, JString, required = false, + var valid_618540 = formData.getOrDefault("ImportTaskId") + valid_618540 = validateParameter(valid_618540, JArray, required = false, default = nil) - if valid_618539 != nil: - section.add "NextToken", valid_618539 - var valid_618540 = formData.getOrDefault("DryRun") - valid_618540 = validateParameter(valid_618540, JBool, required = false, default = nil) if valid_618540 != nil: - section.add "DryRun", valid_618540 - var valid_618541 = formData.getOrDefault("Filters") - valid_618541 = validateParameter(valid_618541, JArray, required = false, + section.add "ImportTaskId", valid_618540 + var valid_618541 = formData.getOrDefault("NextToken") + valid_618541 = validateParameter(valid_618541, JString, required = false, default = nil) if valid_618541 != nil: - section.add "Filters", valid_618541 - var valid_618542 = formData.getOrDefault("MaxResults") - valid_618542 = validateParameter(valid_618542, JInt, required = false, default = nil) + section.add "NextToken", valid_618541 + var valid_618542 = formData.getOrDefault("DryRun") + valid_618542 = validateParameter(valid_618542, JBool, required = false, default = nil) if valid_618542 != nil: - section.add "MaxResults", valid_618542 + section.add "DryRun", valid_618542 + var valid_618543 = formData.getOrDefault("Filters") + valid_618543 = validateParameter(valid_618543, JArray, required = false, + default = nil) + if valid_618543 != nil: + section.add "Filters", valid_618543 + var valid_618544 = formData.getOrDefault("MaxResults") + valid_618544 = validateParameter(valid_618544, JInt, required = false, default = nil) + if valid_618544 != nil: + section.add "MaxResults", valid_618544 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618543: Call_PostDescribeImportImageTasks_618526; path: JsonNode; +proc call*(call_618545: Call_PostDescribeImportImageTasks_618528; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Displays details about an import virtual machine or import snapshot tasks that are already created. ## - let valid = call_618543.validator(path, query, header, formData, body) - let scheme = call_618543.pickScheme + let valid = call_618545.validator(path, query, header, formData, body) + let scheme = call_618545.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618543.url(scheme.get, call_618543.host, call_618543.base, - call_618543.route, valid.getOrDefault("path"), + let url = call_618545.url(scheme.get, call_618545.host, call_618545.base, + call_618545.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618543, url, valid) + result = atozHook(call_618545, url, valid) -proc call*(call_618544: Call_PostDescribeImportImageTasks_618526; +proc call*(call_618546: Call_PostDescribeImportImageTasks_618528; ImportTaskId: JsonNode = nil; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeImportImageTasks"; Filters: JsonNode = nil; Version: string = "2016-11-15"; MaxResults: int = 0): Recallable = @@ -60845,28 +60872,28 @@ proc call*(call_618544: Call_PostDescribeImportImageTasks_618526; ## Version: string (required) ## MaxResults: int ## : The maximum number of results to return in a single call. - var query_618545 = newJObject() - var formData_618546 = newJObject() + var query_618547 = newJObject() + var formData_618548 = newJObject() if ImportTaskId != nil: - formData_618546.add "ImportTaskId", ImportTaskId - add(formData_618546, "NextToken", newJString(NextToken)) - add(formData_618546, "DryRun", newJBool(DryRun)) - add(query_618545, "Action", newJString(Action)) + formData_618548.add "ImportTaskId", ImportTaskId + add(formData_618548, "NextToken", newJString(NextToken)) + add(formData_618548, "DryRun", newJBool(DryRun)) + add(query_618547, "Action", newJString(Action)) if Filters != nil: - formData_618546.add "Filters", Filters - add(query_618545, "Version", newJString(Version)) - add(formData_618546, "MaxResults", newJInt(MaxResults)) - result = call_618544.call(nil, query_618545, nil, formData_618546, nil) + formData_618548.add "Filters", Filters + add(query_618547, "Version", newJString(Version)) + add(formData_618548, "MaxResults", newJInt(MaxResults)) + result = call_618546.call(nil, query_618547, nil, formData_618548, nil) -var postDescribeImportImageTasks* = Call_PostDescribeImportImageTasks_618526( +var postDescribeImportImageTasks* = Call_PostDescribeImportImageTasks_618528( name: "postDescribeImportImageTasks", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeImportImageTasks", - validator: validate_PostDescribeImportImageTasks_618527, base: "/", - url: url_PostDescribeImportImageTasks_618528, + validator: validate_PostDescribeImportImageTasks_618529, base: "/", + url: url_PostDescribeImportImageTasks_618530, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeImportImageTasks_618506 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeImportImageTasks_618508(protocol: Scheme; host: string; + Call_GetDescribeImportImageTasks_618508 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeImportImageTasks_618510(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -60876,7 +60903,7 @@ proc url_GetDescribeImportImageTasks_618508(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeImportImageTasks_618507(path: JsonNode; query: JsonNode; +proc validate_GetDescribeImportImageTasks_618509(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Displays details about an import virtual machine or import snapshot tasks that are already created. ## @@ -60898,39 +60925,39 @@ proc validate_GetDescribeImportImageTasks_618507(path: JsonNode; query: JsonNode ## Filters: JArray ## : Filter tasks using the task-state filter and one of the following values: active, completed, deleting, or deleted. section = newJObject() - var valid_618509 = query.getOrDefault("ImportTaskId") - valid_618509 = validateParameter(valid_618509, JArray, required = false, - default = nil) - if valid_618509 != nil: - section.add "ImportTaskId", valid_618509 - var valid_618510 = query.getOrDefault("MaxResults") - valid_618510 = validateParameter(valid_618510, JInt, required = false, default = nil) - if valid_618510 != nil: - section.add "MaxResults", valid_618510 - var valid_618511 = query.getOrDefault("DryRun") - valid_618511 = validateParameter(valid_618511, JBool, required = false, default = nil) - if valid_618511 != nil: - section.add "DryRun", valid_618511 - var valid_618512 = query.getOrDefault("NextToken") - valid_618512 = validateParameter(valid_618512, JString, required = false, + var valid_618511 = query.getOrDefault("ImportTaskId") + valid_618511 = validateParameter(valid_618511, JArray, required = false, default = nil) + if valid_618511 != nil: + section.add "ImportTaskId", valid_618511 + var valid_618512 = query.getOrDefault("MaxResults") + valid_618512 = validateParameter(valid_618512, JInt, required = false, default = nil) if valid_618512 != nil: - section.add "NextToken", valid_618512 - var valid_618513 = query.getOrDefault("Action") - valid_618513 = validateParameter(valid_618513, JString, required = true, default = newJString( - "DescribeImportImageTasks")) + section.add "MaxResults", valid_618512 + var valid_618513 = query.getOrDefault("DryRun") + valid_618513 = validateParameter(valid_618513, JBool, required = false, default = nil) if valid_618513 != nil: - section.add "Action", valid_618513 - var valid_618514 = query.getOrDefault("Version") - valid_618514 = validateParameter(valid_618514, JString, required = true, - default = newJString("2016-11-15")) - if valid_618514 != nil: - section.add "Version", valid_618514 - var valid_618515 = query.getOrDefault("Filters") - valid_618515 = validateParameter(valid_618515, JArray, required = false, + section.add "DryRun", valid_618513 + var valid_618514 = query.getOrDefault("NextToken") + valid_618514 = validateParameter(valid_618514, JString, required = false, default = nil) + if valid_618514 != nil: + section.add "NextToken", valid_618514 + var valid_618515 = query.getOrDefault("Action") + valid_618515 = validateParameter(valid_618515, JString, required = true, default = newJString( + "DescribeImportImageTasks")) if valid_618515 != nil: - section.add "Filters", valid_618515 + section.add "Action", valid_618515 + var valid_618516 = query.getOrDefault("Version") + valid_618516 = validateParameter(valid_618516, JString, required = true, + default = newJString("2016-11-15")) + if valid_618516 != nil: + section.add "Version", valid_618516 + var valid_618517 = query.getOrDefault("Filters") + valid_618517 = validateParameter(valid_618517, JArray, required = false, + default = nil) + if valid_618517 != nil: + section.add "Filters", valid_618517 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -60941,61 +60968,61 @@ proc validate_GetDescribeImportImageTasks_618507(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618516 = header.getOrDefault("X-Amz-Signature") - valid_618516 = validateParameter(valid_618516, JString, required = false, - default = nil) - if valid_618516 != nil: - section.add "X-Amz-Signature", valid_618516 - var valid_618517 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618517 = validateParameter(valid_618517, JString, required = false, - default = nil) - if valid_618517 != nil: - section.add "X-Amz-Content-Sha256", valid_618517 - var valid_618518 = header.getOrDefault("X-Amz-Date") + var valid_618518 = header.getOrDefault("X-Amz-Signature") valid_618518 = validateParameter(valid_618518, JString, required = false, default = nil) if valid_618518 != nil: - section.add "X-Amz-Date", valid_618518 - var valid_618519 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618518 + var valid_618519 = header.getOrDefault("X-Amz-Content-Sha256") valid_618519 = validateParameter(valid_618519, JString, required = false, default = nil) if valid_618519 != nil: - section.add "X-Amz-Credential", valid_618519 - var valid_618520 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618519 + var valid_618520 = header.getOrDefault("X-Amz-Date") valid_618520 = validateParameter(valid_618520, JString, required = false, default = nil) if valid_618520 != nil: - section.add "X-Amz-Security-Token", valid_618520 - var valid_618521 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618520 + var valid_618521 = header.getOrDefault("X-Amz-Credential") valid_618521 = validateParameter(valid_618521, JString, required = false, default = nil) if valid_618521 != nil: - section.add "X-Amz-Algorithm", valid_618521 - var valid_618522 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618521 + var valid_618522 = header.getOrDefault("X-Amz-Security-Token") valid_618522 = validateParameter(valid_618522, JString, required = false, default = nil) if valid_618522 != nil: - section.add "X-Amz-SignedHeaders", valid_618522 + section.add "X-Amz-Security-Token", valid_618522 + var valid_618523 = header.getOrDefault("X-Amz-Algorithm") + valid_618523 = validateParameter(valid_618523, JString, required = false, + default = nil) + if valid_618523 != nil: + section.add "X-Amz-Algorithm", valid_618523 + var valid_618524 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618524 = validateParameter(valid_618524, JString, required = false, + default = nil) + if valid_618524 != nil: + section.add "X-Amz-SignedHeaders", valid_618524 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618523: Call_GetDescribeImportImageTasks_618506; path: JsonNode; +proc call*(call_618525: Call_GetDescribeImportImageTasks_618508; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Displays details about an import virtual machine or import snapshot tasks that are already created. ## - let valid = call_618523.validator(path, query, header, formData, body) - let scheme = call_618523.pickScheme + let valid = call_618525.validator(path, query, header, formData, body) + let scheme = call_618525.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618523.url(scheme.get, call_618523.host, call_618523.base, - call_618523.route, valid.getOrDefault("path"), + let url = call_618525.url(scheme.get, call_618525.host, call_618525.base, + call_618525.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618523, url, valid) + result = atozHook(call_618525, url, valid) -proc call*(call_618524: Call_GetDescribeImportImageTasks_618506; +proc call*(call_618526: Call_GetDescribeImportImageTasks_618508; ImportTaskId: JsonNode = nil; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Action: string = "DescribeImportImageTasks"; Version: string = "2016-11-15"; Filters: JsonNode = nil): Recallable = @@ -61013,27 +61040,27 @@ proc call*(call_618524: Call_GetDescribeImportImageTasks_618506; ## Version: string (required) ## Filters: JArray ## : Filter tasks using the task-state filter and one of the following values: active, completed, deleting, or deleted. - var query_618525 = newJObject() + var query_618527 = newJObject() if ImportTaskId != nil: - query_618525.add "ImportTaskId", ImportTaskId - add(query_618525, "MaxResults", newJInt(MaxResults)) - add(query_618525, "DryRun", newJBool(DryRun)) - add(query_618525, "NextToken", newJString(NextToken)) - add(query_618525, "Action", newJString(Action)) - add(query_618525, "Version", newJString(Version)) + query_618527.add "ImportTaskId", ImportTaskId + add(query_618527, "MaxResults", newJInt(MaxResults)) + add(query_618527, "DryRun", newJBool(DryRun)) + add(query_618527, "NextToken", newJString(NextToken)) + add(query_618527, "Action", newJString(Action)) + add(query_618527, "Version", newJString(Version)) if Filters != nil: - query_618525.add "Filters", Filters - result = call_618524.call(nil, query_618525, nil, nil, nil) + query_618527.add "Filters", Filters + result = call_618526.call(nil, query_618527, nil, nil, nil) -var getDescribeImportImageTasks* = Call_GetDescribeImportImageTasks_618506( +var getDescribeImportImageTasks* = Call_GetDescribeImportImageTasks_618508( name: "getDescribeImportImageTasks", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeImportImageTasks", - validator: validate_GetDescribeImportImageTasks_618507, base: "/", - url: url_GetDescribeImportImageTasks_618508, + validator: validate_GetDescribeImportImageTasks_618509, base: "/", + url: url_GetDescribeImportImageTasks_618510, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeImportSnapshotTasks_618567 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeImportSnapshotTasks_618569(protocol: Scheme; host: string; + Call_PostDescribeImportSnapshotTasks_618569 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeImportSnapshotTasks_618571(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -61043,7 +61070,7 @@ proc url_PostDescribeImportSnapshotTasks_618569(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeImportSnapshotTasks_618568(path: JsonNode; +proc validate_PostDescribeImportSnapshotTasks_618570(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes your import snapshot tasks. ## @@ -61055,16 +61082,16 @@ proc validate_PostDescribeImportSnapshotTasks_618568(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618570 = query.getOrDefault("Action") - valid_618570 = validateParameter(valid_618570, JString, required = true, default = newJString( + var valid_618572 = query.getOrDefault("Action") + valid_618572 = validateParameter(valid_618572, JString, required = true, default = newJString( "DescribeImportSnapshotTasks")) - if valid_618570 != nil: - section.add "Action", valid_618570 - var valid_618571 = query.getOrDefault("Version") - valid_618571 = validateParameter(valid_618571, JString, required = true, + if valid_618572 != nil: + section.add "Action", valid_618572 + var valid_618573 = query.getOrDefault("Version") + valid_618573 = validateParameter(valid_618573, JString, required = true, default = newJString("2016-11-15")) - if valid_618571 != nil: - section.add "Version", valid_618571 + if valid_618573 != nil: + section.add "Version", valid_618573 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -61075,41 +61102,41 @@ proc validate_PostDescribeImportSnapshotTasks_618568(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618572 = header.getOrDefault("X-Amz-Signature") - valid_618572 = validateParameter(valid_618572, JString, required = false, - default = nil) - if valid_618572 != nil: - section.add "X-Amz-Signature", valid_618572 - var valid_618573 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618573 = validateParameter(valid_618573, JString, required = false, - default = nil) - if valid_618573 != nil: - section.add "X-Amz-Content-Sha256", valid_618573 - var valid_618574 = header.getOrDefault("X-Amz-Date") + var valid_618574 = header.getOrDefault("X-Amz-Signature") valid_618574 = validateParameter(valid_618574, JString, required = false, default = nil) if valid_618574 != nil: - section.add "X-Amz-Date", valid_618574 - var valid_618575 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618574 + var valid_618575 = header.getOrDefault("X-Amz-Content-Sha256") valid_618575 = validateParameter(valid_618575, JString, required = false, default = nil) if valid_618575 != nil: - section.add "X-Amz-Credential", valid_618575 - var valid_618576 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618575 + var valid_618576 = header.getOrDefault("X-Amz-Date") valid_618576 = validateParameter(valid_618576, JString, required = false, default = nil) if valid_618576 != nil: - section.add "X-Amz-Security-Token", valid_618576 - var valid_618577 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618576 + var valid_618577 = header.getOrDefault("X-Amz-Credential") valid_618577 = validateParameter(valid_618577, JString, required = false, default = nil) if valid_618577 != nil: - section.add "X-Amz-Algorithm", valid_618577 - var valid_618578 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618577 + var valid_618578 = header.getOrDefault("X-Amz-Security-Token") valid_618578 = validateParameter(valid_618578, JString, required = false, default = nil) if valid_618578 != nil: - section.add "X-Amz-SignedHeaders", valid_618578 + section.add "X-Amz-Security-Token", valid_618578 + var valid_618579 = header.getOrDefault("X-Amz-Algorithm") + valid_618579 = validateParameter(valid_618579, JString, required = false, + default = nil) + if valid_618579 != nil: + section.add "X-Amz-Algorithm", valid_618579 + var valid_618580 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618580 = validateParameter(valid_618580, JString, required = false, + default = nil) + if valid_618580 != nil: + section.add "X-Amz-SignedHeaders", valid_618580 result.add "header", section ## parameters in `formData` object: ## ImportTaskId: JArray @@ -61123,48 +61150,48 @@ proc validate_PostDescribeImportSnapshotTasks_618568(path: JsonNode; ## MaxResults: JInt ## : The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value. section = newJObject() - var valid_618579 = formData.getOrDefault("ImportTaskId") - valid_618579 = validateParameter(valid_618579, JArray, required = false, - default = nil) - if valid_618579 != nil: - section.add "ImportTaskId", valid_618579 - var valid_618580 = formData.getOrDefault("NextToken") - valid_618580 = validateParameter(valid_618580, JString, required = false, + var valid_618581 = formData.getOrDefault("ImportTaskId") + valid_618581 = validateParameter(valid_618581, JArray, required = false, default = nil) - if valid_618580 != nil: - section.add "NextToken", valid_618580 - var valid_618581 = formData.getOrDefault("DryRun") - valid_618581 = validateParameter(valid_618581, JBool, required = false, default = nil) if valid_618581 != nil: - section.add "DryRun", valid_618581 - var valid_618582 = formData.getOrDefault("Filters") - valid_618582 = validateParameter(valid_618582, JArray, required = false, + section.add "ImportTaskId", valid_618581 + var valid_618582 = formData.getOrDefault("NextToken") + valid_618582 = validateParameter(valid_618582, JString, required = false, default = nil) if valid_618582 != nil: - section.add "Filters", valid_618582 - var valid_618583 = formData.getOrDefault("MaxResults") - valid_618583 = validateParameter(valid_618583, JInt, required = false, default = nil) + section.add "NextToken", valid_618582 + var valid_618583 = formData.getOrDefault("DryRun") + valid_618583 = validateParameter(valid_618583, JBool, required = false, default = nil) if valid_618583 != nil: - section.add "MaxResults", valid_618583 + section.add "DryRun", valid_618583 + var valid_618584 = formData.getOrDefault("Filters") + valid_618584 = validateParameter(valid_618584, JArray, required = false, + default = nil) + if valid_618584 != nil: + section.add "Filters", valid_618584 + var valid_618585 = formData.getOrDefault("MaxResults") + valid_618585 = validateParameter(valid_618585, JInt, required = false, default = nil) + if valid_618585 != nil: + section.add "MaxResults", valid_618585 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618584: Call_PostDescribeImportSnapshotTasks_618567; +proc call*(call_618586: Call_PostDescribeImportSnapshotTasks_618569; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes your import snapshot tasks. ## - let valid = call_618584.validator(path, query, header, formData, body) - let scheme = call_618584.pickScheme + let valid = call_618586.validator(path, query, header, formData, body) + let scheme = call_618586.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618584.url(scheme.get, call_618584.host, call_618584.base, - call_618584.route, valid.getOrDefault("path"), + let url = call_618586.url(scheme.get, call_618586.host, call_618586.base, + call_618586.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618584, url, valid) + result = atozHook(call_618586, url, valid) -proc call*(call_618585: Call_PostDescribeImportSnapshotTasks_618567; +proc call*(call_618587: Call_PostDescribeImportSnapshotTasks_618569; ImportTaskId: JsonNode = nil; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeImportSnapshotTasks"; Filters: JsonNode = nil; Version: string = "2016-11-15"; MaxResults: int = 0): Recallable = @@ -61182,28 +61209,28 @@ proc call*(call_618585: Call_PostDescribeImportSnapshotTasks_618567; ## Version: string (required) ## MaxResults: int ## : The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value. - var query_618586 = newJObject() - var formData_618587 = newJObject() + var query_618588 = newJObject() + var formData_618589 = newJObject() if ImportTaskId != nil: - formData_618587.add "ImportTaskId", ImportTaskId - add(formData_618587, "NextToken", newJString(NextToken)) - add(formData_618587, "DryRun", newJBool(DryRun)) - add(query_618586, "Action", newJString(Action)) + formData_618589.add "ImportTaskId", ImportTaskId + add(formData_618589, "NextToken", newJString(NextToken)) + add(formData_618589, "DryRun", newJBool(DryRun)) + add(query_618588, "Action", newJString(Action)) if Filters != nil: - formData_618587.add "Filters", Filters - add(query_618586, "Version", newJString(Version)) - add(formData_618587, "MaxResults", newJInt(MaxResults)) - result = call_618585.call(nil, query_618586, nil, formData_618587, nil) + formData_618589.add "Filters", Filters + add(query_618588, "Version", newJString(Version)) + add(formData_618589, "MaxResults", newJInt(MaxResults)) + result = call_618587.call(nil, query_618588, nil, formData_618589, nil) -var postDescribeImportSnapshotTasks* = Call_PostDescribeImportSnapshotTasks_618567( +var postDescribeImportSnapshotTasks* = Call_PostDescribeImportSnapshotTasks_618569( name: "postDescribeImportSnapshotTasks", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeImportSnapshotTasks", - validator: validate_PostDescribeImportSnapshotTasks_618568, base: "/", - url: url_PostDescribeImportSnapshotTasks_618569, + validator: validate_PostDescribeImportSnapshotTasks_618570, base: "/", + url: url_PostDescribeImportSnapshotTasks_618571, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeImportSnapshotTasks_618547 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeImportSnapshotTasks_618549(protocol: Scheme; host: string; + Call_GetDescribeImportSnapshotTasks_618549 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeImportSnapshotTasks_618551(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -61213,7 +61240,7 @@ proc url_GetDescribeImportSnapshotTasks_618549(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeImportSnapshotTasks_618548(path: JsonNode; +proc validate_GetDescribeImportSnapshotTasks_618550(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes your import snapshot tasks. ## @@ -61235,39 +61262,39 @@ proc validate_GetDescribeImportSnapshotTasks_618548(path: JsonNode; ## Filters: JArray ## : The filters. section = newJObject() - var valid_618550 = query.getOrDefault("ImportTaskId") - valid_618550 = validateParameter(valid_618550, JArray, required = false, - default = nil) - if valid_618550 != nil: - section.add "ImportTaskId", valid_618550 - var valid_618551 = query.getOrDefault("MaxResults") - valid_618551 = validateParameter(valid_618551, JInt, required = false, default = nil) - if valid_618551 != nil: - section.add "MaxResults", valid_618551 - var valid_618552 = query.getOrDefault("DryRun") - valid_618552 = validateParameter(valid_618552, JBool, required = false, default = nil) - if valid_618552 != nil: - section.add "DryRun", valid_618552 - var valid_618553 = query.getOrDefault("NextToken") - valid_618553 = validateParameter(valid_618553, JString, required = false, + var valid_618552 = query.getOrDefault("ImportTaskId") + valid_618552 = validateParameter(valid_618552, JArray, required = false, default = nil) + if valid_618552 != nil: + section.add "ImportTaskId", valid_618552 + var valid_618553 = query.getOrDefault("MaxResults") + valid_618553 = validateParameter(valid_618553, JInt, required = false, default = nil) if valid_618553 != nil: - section.add "NextToken", valid_618553 - var valid_618554 = query.getOrDefault("Action") - valid_618554 = validateParameter(valid_618554, JString, required = true, default = newJString( - "DescribeImportSnapshotTasks")) + section.add "MaxResults", valid_618553 + var valid_618554 = query.getOrDefault("DryRun") + valid_618554 = validateParameter(valid_618554, JBool, required = false, default = nil) if valid_618554 != nil: - section.add "Action", valid_618554 - var valid_618555 = query.getOrDefault("Version") - valid_618555 = validateParameter(valid_618555, JString, required = true, - default = newJString("2016-11-15")) - if valid_618555 != nil: - section.add "Version", valid_618555 - var valid_618556 = query.getOrDefault("Filters") - valid_618556 = validateParameter(valid_618556, JArray, required = false, + section.add "DryRun", valid_618554 + var valid_618555 = query.getOrDefault("NextToken") + valid_618555 = validateParameter(valid_618555, JString, required = false, default = nil) + if valid_618555 != nil: + section.add "NextToken", valid_618555 + var valid_618556 = query.getOrDefault("Action") + valid_618556 = validateParameter(valid_618556, JString, required = true, default = newJString( + "DescribeImportSnapshotTasks")) if valid_618556 != nil: - section.add "Filters", valid_618556 + section.add "Action", valid_618556 + var valid_618557 = query.getOrDefault("Version") + valid_618557 = validateParameter(valid_618557, JString, required = true, + default = newJString("2016-11-15")) + if valid_618557 != nil: + section.add "Version", valid_618557 + var valid_618558 = query.getOrDefault("Filters") + valid_618558 = validateParameter(valid_618558, JArray, required = false, + default = nil) + if valid_618558 != nil: + section.add "Filters", valid_618558 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -61278,61 +61305,61 @@ proc validate_GetDescribeImportSnapshotTasks_618548(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618557 = header.getOrDefault("X-Amz-Signature") - valid_618557 = validateParameter(valid_618557, JString, required = false, - default = nil) - if valid_618557 != nil: - section.add "X-Amz-Signature", valid_618557 - var valid_618558 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618558 = validateParameter(valid_618558, JString, required = false, - default = nil) - if valid_618558 != nil: - section.add "X-Amz-Content-Sha256", valid_618558 - var valid_618559 = header.getOrDefault("X-Amz-Date") + var valid_618559 = header.getOrDefault("X-Amz-Signature") valid_618559 = validateParameter(valid_618559, JString, required = false, default = nil) if valid_618559 != nil: - section.add "X-Amz-Date", valid_618559 - var valid_618560 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618559 + var valid_618560 = header.getOrDefault("X-Amz-Content-Sha256") valid_618560 = validateParameter(valid_618560, JString, required = false, default = nil) if valid_618560 != nil: - section.add "X-Amz-Credential", valid_618560 - var valid_618561 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618560 + var valid_618561 = header.getOrDefault("X-Amz-Date") valid_618561 = validateParameter(valid_618561, JString, required = false, default = nil) if valid_618561 != nil: - section.add "X-Amz-Security-Token", valid_618561 - var valid_618562 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618561 + var valid_618562 = header.getOrDefault("X-Amz-Credential") valid_618562 = validateParameter(valid_618562, JString, required = false, default = nil) if valid_618562 != nil: - section.add "X-Amz-Algorithm", valid_618562 - var valid_618563 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618562 + var valid_618563 = header.getOrDefault("X-Amz-Security-Token") valid_618563 = validateParameter(valid_618563, JString, required = false, default = nil) if valid_618563 != nil: - section.add "X-Amz-SignedHeaders", valid_618563 + section.add "X-Amz-Security-Token", valid_618563 + var valid_618564 = header.getOrDefault("X-Amz-Algorithm") + valid_618564 = validateParameter(valid_618564, JString, required = false, + default = nil) + if valid_618564 != nil: + section.add "X-Amz-Algorithm", valid_618564 + var valid_618565 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618565 = validateParameter(valid_618565, JString, required = false, + default = nil) + if valid_618565 != nil: + section.add "X-Amz-SignedHeaders", valid_618565 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618564: Call_GetDescribeImportSnapshotTasks_618547; path: JsonNode; +proc call*(call_618566: Call_GetDescribeImportSnapshotTasks_618549; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes your import snapshot tasks. ## - let valid = call_618564.validator(path, query, header, formData, body) - let scheme = call_618564.pickScheme + let valid = call_618566.validator(path, query, header, formData, body) + let scheme = call_618566.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618564.url(scheme.get, call_618564.host, call_618564.base, - call_618564.route, valid.getOrDefault("path"), + let url = call_618566.url(scheme.get, call_618566.host, call_618566.base, + call_618566.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618564, url, valid) + result = atozHook(call_618566, url, valid) -proc call*(call_618565: Call_GetDescribeImportSnapshotTasks_618547; +proc call*(call_618567: Call_GetDescribeImportSnapshotTasks_618549; ImportTaskId: JsonNode = nil; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Action: string = "DescribeImportSnapshotTasks"; Version: string = "2016-11-15"; Filters: JsonNode = nil): Recallable = @@ -61350,27 +61377,27 @@ proc call*(call_618565: Call_GetDescribeImportSnapshotTasks_618547; ## Version: string (required) ## Filters: JArray ## : The filters. - var query_618566 = newJObject() + var query_618568 = newJObject() if ImportTaskId != nil: - query_618566.add "ImportTaskId", ImportTaskId - add(query_618566, "MaxResults", newJInt(MaxResults)) - add(query_618566, "DryRun", newJBool(DryRun)) - add(query_618566, "NextToken", newJString(NextToken)) - add(query_618566, "Action", newJString(Action)) - add(query_618566, "Version", newJString(Version)) + query_618568.add "ImportTaskId", ImportTaskId + add(query_618568, "MaxResults", newJInt(MaxResults)) + add(query_618568, "DryRun", newJBool(DryRun)) + add(query_618568, "NextToken", newJString(NextToken)) + add(query_618568, "Action", newJString(Action)) + add(query_618568, "Version", newJString(Version)) if Filters != nil: - query_618566.add "Filters", Filters - result = call_618565.call(nil, query_618566, nil, nil, nil) + query_618568.add "Filters", Filters + result = call_618567.call(nil, query_618568, nil, nil, nil) -var getDescribeImportSnapshotTasks* = Call_GetDescribeImportSnapshotTasks_618547( +var getDescribeImportSnapshotTasks* = Call_GetDescribeImportSnapshotTasks_618549( name: "getDescribeImportSnapshotTasks", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeImportSnapshotTasks", - validator: validate_GetDescribeImportSnapshotTasks_618548, base: "/", - url: url_GetDescribeImportSnapshotTasks_618549, + validator: validate_GetDescribeImportSnapshotTasks_618550, base: "/", + url: url_GetDescribeImportSnapshotTasks_618551, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeInstanceAttribute_618606 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeInstanceAttribute_618608(protocol: Scheme; host: string; + Call_PostDescribeInstanceAttribute_618608 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeInstanceAttribute_618610(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -61380,7 +61407,7 @@ proc url_PostDescribeInstanceAttribute_618608(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeInstanceAttribute_618607(path: JsonNode; query: JsonNode; +proc validate_PostDescribeInstanceAttribute_618609(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the specified attribute of the specified instance. You can specify only one attribute at a time. Valid attribute values are: instanceType | kernel | ramdisk | userData | disableApiTermination | instanceInitiatedShutdownBehavior | rootDeviceName | blockDeviceMapping | productCodes | sourceDestCheck | groupSet | ebsOptimized | sriovNetSupport ## @@ -61392,16 +61419,16 @@ proc validate_PostDescribeInstanceAttribute_618607(path: JsonNode; query: JsonNo ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618609 = query.getOrDefault("Action") - valid_618609 = validateParameter(valid_618609, JString, required = true, default = newJString( + var valid_618611 = query.getOrDefault("Action") + valid_618611 = validateParameter(valid_618611, JString, required = true, default = newJString( "DescribeInstanceAttribute")) - if valid_618609 != nil: - section.add "Action", valid_618609 - var valid_618610 = query.getOrDefault("Version") - valid_618610 = validateParameter(valid_618610, JString, required = true, + if valid_618611 != nil: + section.add "Action", valid_618611 + var valid_618612 = query.getOrDefault("Version") + valid_618612 = validateParameter(valid_618612, JString, required = true, default = newJString("2016-11-15")) - if valid_618610 != nil: - section.add "Version", valid_618610 + if valid_618612 != nil: + section.add "Version", valid_618612 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -61412,41 +61439,41 @@ proc validate_PostDescribeInstanceAttribute_618607(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618611 = header.getOrDefault("X-Amz-Signature") - valid_618611 = validateParameter(valid_618611, JString, required = false, - default = nil) - if valid_618611 != nil: - section.add "X-Amz-Signature", valid_618611 - var valid_618612 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618612 = validateParameter(valid_618612, JString, required = false, - default = nil) - if valid_618612 != nil: - section.add "X-Amz-Content-Sha256", valid_618612 - var valid_618613 = header.getOrDefault("X-Amz-Date") + var valid_618613 = header.getOrDefault("X-Amz-Signature") valid_618613 = validateParameter(valid_618613, JString, required = false, default = nil) if valid_618613 != nil: - section.add "X-Amz-Date", valid_618613 - var valid_618614 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618613 + var valid_618614 = header.getOrDefault("X-Amz-Content-Sha256") valid_618614 = validateParameter(valid_618614, JString, required = false, default = nil) if valid_618614 != nil: - section.add "X-Amz-Credential", valid_618614 - var valid_618615 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618614 + var valid_618615 = header.getOrDefault("X-Amz-Date") valid_618615 = validateParameter(valid_618615, JString, required = false, default = nil) if valid_618615 != nil: - section.add "X-Amz-Security-Token", valid_618615 - var valid_618616 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618615 + var valid_618616 = header.getOrDefault("X-Amz-Credential") valid_618616 = validateParameter(valid_618616, JString, required = false, default = nil) if valid_618616 != nil: - section.add "X-Amz-Algorithm", valid_618616 - var valid_618617 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618616 + var valid_618617 = header.getOrDefault("X-Amz-Security-Token") valid_618617 = validateParameter(valid_618617, JString, required = false, default = nil) if valid_618617 != nil: - section.add "X-Amz-SignedHeaders", valid_618617 + section.add "X-Amz-Security-Token", valid_618617 + var valid_618618 = header.getOrDefault("X-Amz-Algorithm") + valid_618618 = validateParameter(valid_618618, JString, required = false, + default = nil) + if valid_618618 != nil: + section.add "X-Amz-Algorithm", valid_618618 + var valid_618619 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618619 = validateParameter(valid_618619, JString, required = false, + default = nil) + if valid_618619 != nil: + section.add "X-Amz-SignedHeaders", valid_618619 result.add "header", section ## parameters in `formData` object: ## Attribute: JString (required) @@ -61456,38 +61483,38 @@ proc validate_PostDescribeInstanceAttribute_618607(path: JsonNode; query: JsonNo ## InstanceId: JString (required) ## : The ID of the instance. section = newJObject() - var valid_618618 = formData.getOrDefault("Attribute") - valid_618618 = validateParameter(valid_618618, JString, required = true, - default = newJString("instanceType")) - if valid_618618 != nil: - section.add "Attribute", valid_618618 - var valid_618619 = formData.getOrDefault("DryRun") - valid_618619 = validateParameter(valid_618619, JBool, required = false, default = nil) - if valid_618619 != nil: - section.add "DryRun", valid_618619 - var valid_618620 = formData.getOrDefault("InstanceId") + var valid_618620 = formData.getOrDefault("Attribute") valid_618620 = validateParameter(valid_618620, JString, required = true, - default = nil) + default = newJString("instanceType")) if valid_618620 != nil: - section.add "InstanceId", valid_618620 + section.add "Attribute", valid_618620 + var valid_618621 = formData.getOrDefault("DryRun") + valid_618621 = validateParameter(valid_618621, JBool, required = false, default = nil) + if valid_618621 != nil: + section.add "DryRun", valid_618621 + var valid_618622 = formData.getOrDefault("InstanceId") + valid_618622 = validateParameter(valid_618622, JString, required = true, + default = nil) + if valid_618622 != nil: + section.add "InstanceId", valid_618622 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618621: Call_PostDescribeInstanceAttribute_618606; path: JsonNode; +proc call*(call_618623: Call_PostDescribeInstanceAttribute_618608; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the specified attribute of the specified instance. You can specify only one attribute at a time. Valid attribute values are: instanceType | kernel | ramdisk | userData | disableApiTermination | instanceInitiatedShutdownBehavior | rootDeviceName | blockDeviceMapping | productCodes | sourceDestCheck | groupSet | ebsOptimized | sriovNetSupport ## - let valid = call_618621.validator(path, query, header, formData, body) - let scheme = call_618621.pickScheme + let valid = call_618623.validator(path, query, header, formData, body) + let scheme = call_618623.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618621.url(scheme.get, call_618621.host, call_618621.base, - call_618621.route, valid.getOrDefault("path"), + let url = call_618623.url(scheme.get, call_618623.host, call_618623.base, + call_618623.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618621, url, valid) + result = atozHook(call_618623, url, valid) -proc call*(call_618622: Call_PostDescribeInstanceAttribute_618606; +proc call*(call_618624: Call_PostDescribeInstanceAttribute_618608; InstanceId: string; Attribute: string = "instanceType"; DryRun: bool = false; Action: string = "DescribeInstanceAttribute"; Version: string = "2016-11-15"): Recallable = @@ -61501,24 +61528,24 @@ proc call*(call_618622: Call_PostDescribeInstanceAttribute_618606; ## : The ID of the instance. ## Action: string (required) ## Version: string (required) - var query_618623 = newJObject() - var formData_618624 = newJObject() - add(formData_618624, "Attribute", newJString(Attribute)) - add(formData_618624, "DryRun", newJBool(DryRun)) - add(formData_618624, "InstanceId", newJString(InstanceId)) - add(query_618623, "Action", newJString(Action)) - add(query_618623, "Version", newJString(Version)) - result = call_618622.call(nil, query_618623, nil, formData_618624, nil) + var query_618625 = newJObject() + var formData_618626 = newJObject() + add(formData_618626, "Attribute", newJString(Attribute)) + add(formData_618626, "DryRun", newJBool(DryRun)) + add(formData_618626, "InstanceId", newJString(InstanceId)) + add(query_618625, "Action", newJString(Action)) + add(query_618625, "Version", newJString(Version)) + result = call_618624.call(nil, query_618625, nil, formData_618626, nil) -var postDescribeInstanceAttribute* = Call_PostDescribeInstanceAttribute_618606( +var postDescribeInstanceAttribute* = Call_PostDescribeInstanceAttribute_618608( name: "postDescribeInstanceAttribute", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeInstanceAttribute", - validator: validate_PostDescribeInstanceAttribute_618607, base: "/", - url: url_PostDescribeInstanceAttribute_618608, + validator: validate_PostDescribeInstanceAttribute_618609, base: "/", + url: url_PostDescribeInstanceAttribute_618610, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeInstanceAttribute_618588 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeInstanceAttribute_618590(protocol: Scheme; host: string; + Call_GetDescribeInstanceAttribute_618590 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeInstanceAttribute_618592(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -61528,7 +61555,7 @@ proc url_GetDescribeInstanceAttribute_618590(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeInstanceAttribute_618589(path: JsonNode; query: JsonNode; +proc validate_GetDescribeInstanceAttribute_618591(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the specified attribute of the specified instance. You can specify only one attribute at a time. Valid attribute values are: instanceType | kernel | ramdisk | userData | disableApiTermination | instanceInitiatedShutdownBehavior | rootDeviceName | blockDeviceMapping | productCodes | sourceDestCheck | groupSet | ebsOptimized | sriovNetSupport ## @@ -61546,32 +61573,32 @@ proc validate_GetDescribeInstanceAttribute_618589(path: JsonNode; query: JsonNod ## Attribute: JString (required) ## :

The instance attribute.

Note: The enaSupport attribute is not supported at this time.

section = newJObject() - var valid_618591 = query.getOrDefault("DryRun") - valid_618591 = validateParameter(valid_618591, JBool, required = false, default = nil) - if valid_618591 != nil: - section.add "DryRun", valid_618591 + var valid_618593 = query.getOrDefault("DryRun") + valid_618593 = validateParameter(valid_618593, JBool, required = false, default = nil) + if valid_618593 != nil: + section.add "DryRun", valid_618593 assert query != nil, "query argument is necessary due to required `InstanceId` field" - var valid_618592 = query.getOrDefault("InstanceId") - valid_618592 = validateParameter(valid_618592, JString, required = true, + var valid_618594 = query.getOrDefault("InstanceId") + valid_618594 = validateParameter(valid_618594, JString, required = true, default = nil) - if valid_618592 != nil: - section.add "InstanceId", valid_618592 - var valid_618593 = query.getOrDefault("Action") - valid_618593 = validateParameter(valid_618593, JString, required = true, default = newJString( + if valid_618594 != nil: + section.add "InstanceId", valid_618594 + var valid_618595 = query.getOrDefault("Action") + valid_618595 = validateParameter(valid_618595, JString, required = true, default = newJString( "DescribeInstanceAttribute")) - if valid_618593 != nil: - section.add "Action", valid_618593 - var valid_618594 = query.getOrDefault("Version") - valid_618594 = validateParameter(valid_618594, JString, required = true, + if valid_618595 != nil: + section.add "Action", valid_618595 + var valid_618596 = query.getOrDefault("Version") + valid_618596 = validateParameter(valid_618596, JString, required = true, default = newJString("2016-11-15")) - if valid_618594 != nil: - section.add "Version", valid_618594 - var valid_618595 = query.getOrDefault("Attribute") - valid_618595 = validateParameter(valid_618595, JString, required = true, + if valid_618596 != nil: + section.add "Version", valid_618596 + var valid_618597 = query.getOrDefault("Attribute") + valid_618597 = validateParameter(valid_618597, JString, required = true, default = newJString("instanceType")) - if valid_618595 != nil: - section.add "Attribute", valid_618595 + if valid_618597 != nil: + section.add "Attribute", valid_618597 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -61582,61 +61609,61 @@ proc validate_GetDescribeInstanceAttribute_618589(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618596 = header.getOrDefault("X-Amz-Signature") - valid_618596 = validateParameter(valid_618596, JString, required = false, - default = nil) - if valid_618596 != nil: - section.add "X-Amz-Signature", valid_618596 - var valid_618597 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618597 = validateParameter(valid_618597, JString, required = false, - default = nil) - if valid_618597 != nil: - section.add "X-Amz-Content-Sha256", valid_618597 - var valid_618598 = header.getOrDefault("X-Amz-Date") + var valid_618598 = header.getOrDefault("X-Amz-Signature") valid_618598 = validateParameter(valid_618598, JString, required = false, default = nil) if valid_618598 != nil: - section.add "X-Amz-Date", valid_618598 - var valid_618599 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618598 + var valid_618599 = header.getOrDefault("X-Amz-Content-Sha256") valid_618599 = validateParameter(valid_618599, JString, required = false, default = nil) if valid_618599 != nil: - section.add "X-Amz-Credential", valid_618599 - var valid_618600 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618599 + var valid_618600 = header.getOrDefault("X-Amz-Date") valid_618600 = validateParameter(valid_618600, JString, required = false, default = nil) if valid_618600 != nil: - section.add "X-Amz-Security-Token", valid_618600 - var valid_618601 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618600 + var valid_618601 = header.getOrDefault("X-Amz-Credential") valid_618601 = validateParameter(valid_618601, JString, required = false, default = nil) if valid_618601 != nil: - section.add "X-Amz-Algorithm", valid_618601 - var valid_618602 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618601 + var valid_618602 = header.getOrDefault("X-Amz-Security-Token") valid_618602 = validateParameter(valid_618602, JString, required = false, default = nil) if valid_618602 != nil: - section.add "X-Amz-SignedHeaders", valid_618602 + section.add "X-Amz-Security-Token", valid_618602 + var valid_618603 = header.getOrDefault("X-Amz-Algorithm") + valid_618603 = validateParameter(valid_618603, JString, required = false, + default = nil) + if valid_618603 != nil: + section.add "X-Amz-Algorithm", valid_618603 + var valid_618604 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618604 = validateParameter(valid_618604, JString, required = false, + default = nil) + if valid_618604 != nil: + section.add "X-Amz-SignedHeaders", valid_618604 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618603: Call_GetDescribeInstanceAttribute_618588; path: JsonNode; +proc call*(call_618605: Call_GetDescribeInstanceAttribute_618590; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the specified attribute of the specified instance. You can specify only one attribute at a time. Valid attribute values are: instanceType | kernel | ramdisk | userData | disableApiTermination | instanceInitiatedShutdownBehavior | rootDeviceName | blockDeviceMapping | productCodes | sourceDestCheck | groupSet | ebsOptimized | sriovNetSupport ## - let valid = call_618603.validator(path, query, header, formData, body) - let scheme = call_618603.pickScheme + let valid = call_618605.validator(path, query, header, formData, body) + let scheme = call_618605.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618603.url(scheme.get, call_618603.host, call_618603.base, - call_618603.route, valid.getOrDefault("path"), + let url = call_618605.url(scheme.get, call_618605.host, call_618605.base, + call_618605.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618603, url, valid) + result = atozHook(call_618605, url, valid) -proc call*(call_618604: Call_GetDescribeInstanceAttribute_618588; +proc call*(call_618606: Call_GetDescribeInstanceAttribute_618590; InstanceId: string; DryRun: bool = false; Action: string = "DescribeInstanceAttribute"; Version: string = "2016-11-15"; Attribute: string = "instanceType"): Recallable = @@ -61650,23 +61677,23 @@ proc call*(call_618604: Call_GetDescribeInstanceAttribute_618588; ## Version: string (required) ## Attribute: string (required) ## :

The instance attribute.

Note: The enaSupport attribute is not supported at this time.

- var query_618605 = newJObject() - add(query_618605, "DryRun", newJBool(DryRun)) - add(query_618605, "InstanceId", newJString(InstanceId)) - add(query_618605, "Action", newJString(Action)) - add(query_618605, "Version", newJString(Version)) - add(query_618605, "Attribute", newJString(Attribute)) - result = call_618604.call(nil, query_618605, nil, nil, nil) - -var getDescribeInstanceAttribute* = Call_GetDescribeInstanceAttribute_618588( + var query_618607 = newJObject() + add(query_618607, "DryRun", newJBool(DryRun)) + add(query_618607, "InstanceId", newJString(InstanceId)) + add(query_618607, "Action", newJString(Action)) + add(query_618607, "Version", newJString(Version)) + add(query_618607, "Attribute", newJString(Attribute)) + result = call_618606.call(nil, query_618607, nil, nil, nil) + +var getDescribeInstanceAttribute* = Call_GetDescribeInstanceAttribute_618590( name: "getDescribeInstanceAttribute", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeInstanceAttribute", - validator: validate_GetDescribeInstanceAttribute_618589, base: "/", - url: url_GetDescribeInstanceAttribute_618590, + validator: validate_GetDescribeInstanceAttribute_618591, base: "/", + url: url_GetDescribeInstanceAttribute_618592, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeInstanceCreditSpecifications_618645 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeInstanceCreditSpecifications_618647(protocol: Scheme; + Call_PostDescribeInstanceCreditSpecifications_618647 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeInstanceCreditSpecifications_618649(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -61676,7 +61703,7 @@ proc url_PostDescribeInstanceCreditSpecifications_618647(protocol: Scheme; else: result.path = base & route -proc validate_PostDescribeInstanceCreditSpecifications_618646(path: JsonNode; +proc validate_PostDescribeInstanceCreditSpecifications_618648(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the credit option for CPU usage of the specified burstable performance instances. The credit options are standard and unlimited.

If you do not specify an instance ID, Amazon EC2 returns burstable performance instances with the unlimited credit option, as well as instances that were previously configured as T2, T3, and T3a with the unlimited credit option. For example, if you resize a T2 instance, while it is configured as unlimited, to an M4 instance, Amazon EC2 returns the M4 instance.

If you specify one or more instance IDs, Amazon EC2 returns the credit option (standard or unlimited) of those instances. If you specify an instance ID that is not valid, such as an instance that is not a burstable performance instance, an error is returned.

Recently terminated instances might appear in the returned results. This interval is usually less than one hour.

If an Availability Zone is experiencing a service disruption and you specify instance IDs in the affected zone, or do not specify any instance IDs at all, the call fails. If you specify only instance IDs in an unaffected zone, the call works normally.

For more information, see Burstable Performance Instances in the Amazon Elastic Compute Cloud User Guide.

## @@ -61688,16 +61715,16 @@ proc validate_PostDescribeInstanceCreditSpecifications_618646(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618648 = query.getOrDefault("Action") - valid_618648 = validateParameter(valid_618648, JString, required = true, default = newJString( + var valid_618650 = query.getOrDefault("Action") + valid_618650 = validateParameter(valid_618650, JString, required = true, default = newJString( "DescribeInstanceCreditSpecifications")) - if valid_618648 != nil: - section.add "Action", valid_618648 - var valid_618649 = query.getOrDefault("Version") - valid_618649 = validateParameter(valid_618649, JString, required = true, + if valid_618650 != nil: + section.add "Action", valid_618650 + var valid_618651 = query.getOrDefault("Version") + valid_618651 = validateParameter(valid_618651, JString, required = true, default = newJString("2016-11-15")) - if valid_618649 != nil: - section.add "Version", valid_618649 + if valid_618651 != nil: + section.add "Version", valid_618651 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -61708,41 +61735,41 @@ proc validate_PostDescribeInstanceCreditSpecifications_618646(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618650 = header.getOrDefault("X-Amz-Signature") - valid_618650 = validateParameter(valid_618650, JString, required = false, - default = nil) - if valid_618650 != nil: - section.add "X-Amz-Signature", valid_618650 - var valid_618651 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618651 = validateParameter(valid_618651, JString, required = false, - default = nil) - if valid_618651 != nil: - section.add "X-Amz-Content-Sha256", valid_618651 - var valid_618652 = header.getOrDefault("X-Amz-Date") + var valid_618652 = header.getOrDefault("X-Amz-Signature") valid_618652 = validateParameter(valid_618652, JString, required = false, default = nil) if valid_618652 != nil: - section.add "X-Amz-Date", valid_618652 - var valid_618653 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618652 + var valid_618653 = header.getOrDefault("X-Amz-Content-Sha256") valid_618653 = validateParameter(valid_618653, JString, required = false, default = nil) if valid_618653 != nil: - section.add "X-Amz-Credential", valid_618653 - var valid_618654 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618653 + var valid_618654 = header.getOrDefault("X-Amz-Date") valid_618654 = validateParameter(valid_618654, JString, required = false, default = nil) if valid_618654 != nil: - section.add "X-Amz-Security-Token", valid_618654 - var valid_618655 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618654 + var valid_618655 = header.getOrDefault("X-Amz-Credential") valid_618655 = validateParameter(valid_618655, JString, required = false, default = nil) if valid_618655 != nil: - section.add "X-Amz-Algorithm", valid_618655 - var valid_618656 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618655 + var valid_618656 = header.getOrDefault("X-Amz-Security-Token") valid_618656 = validateParameter(valid_618656, JString, required = false, default = nil) if valid_618656 != nil: - section.add "X-Amz-SignedHeaders", valid_618656 + section.add "X-Amz-Security-Token", valid_618656 + var valid_618657 = header.getOrDefault("X-Amz-Algorithm") + valid_618657 = validateParameter(valid_618657, JString, required = false, + default = nil) + if valid_618657 != nil: + section.add "X-Amz-Algorithm", valid_618657 + var valid_618658 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618658 = validateParameter(valid_618658, JString, required = false, + default = nil) + if valid_618658 != nil: + section.add "X-Amz-SignedHeaders", valid_618658 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -61756,48 +61783,48 @@ proc validate_PostDescribeInstanceCreditSpecifications_618646(path: JsonNode; ## Filter: JArray ## :

The filters.

section = newJObject() - var valid_618657 = formData.getOrDefault("NextToken") - valid_618657 = validateParameter(valid_618657, JString, required = false, - default = nil) - if valid_618657 != nil: - section.add "NextToken", valid_618657 - var valid_618658 = formData.getOrDefault("DryRun") - valid_618658 = validateParameter(valid_618658, JBool, required = false, default = nil) - if valid_618658 != nil: - section.add "DryRun", valid_618658 - var valid_618659 = formData.getOrDefault("InstanceId") - valid_618659 = validateParameter(valid_618659, JArray, required = false, + var valid_618659 = formData.getOrDefault("NextToken") + valid_618659 = validateParameter(valid_618659, JString, required = false, default = nil) if valid_618659 != nil: - section.add "InstanceId", valid_618659 - var valid_618660 = formData.getOrDefault("MaxResults") - valid_618660 = validateParameter(valid_618660, JInt, required = false, default = nil) + section.add "NextToken", valid_618659 + var valid_618660 = formData.getOrDefault("DryRun") + valid_618660 = validateParameter(valid_618660, JBool, required = false, default = nil) if valid_618660 != nil: - section.add "MaxResults", valid_618660 - var valid_618661 = formData.getOrDefault("Filter") + section.add "DryRun", valid_618660 + var valid_618661 = formData.getOrDefault("InstanceId") valid_618661 = validateParameter(valid_618661, JArray, required = false, default = nil) if valid_618661 != nil: - section.add "Filter", valid_618661 + section.add "InstanceId", valid_618661 + var valid_618662 = formData.getOrDefault("MaxResults") + valid_618662 = validateParameter(valid_618662, JInt, required = false, default = nil) + if valid_618662 != nil: + section.add "MaxResults", valid_618662 + var valid_618663 = formData.getOrDefault("Filter") + valid_618663 = validateParameter(valid_618663, JArray, required = false, + default = nil) + if valid_618663 != nil: + section.add "Filter", valid_618663 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618662: Call_PostDescribeInstanceCreditSpecifications_618645; +proc call*(call_618664: Call_PostDescribeInstanceCreditSpecifications_618647; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the credit option for CPU usage of the specified burstable performance instances. The credit options are standard and unlimited.

If you do not specify an instance ID, Amazon EC2 returns burstable performance instances with the unlimited credit option, as well as instances that were previously configured as T2, T3, and T3a with the unlimited credit option. For example, if you resize a T2 instance, while it is configured as unlimited, to an M4 instance, Amazon EC2 returns the M4 instance.

If you specify one or more instance IDs, Amazon EC2 returns the credit option (standard or unlimited) of those instances. If you specify an instance ID that is not valid, such as an instance that is not a burstable performance instance, an error is returned.

Recently terminated instances might appear in the returned results. This interval is usually less than one hour.

If an Availability Zone is experiencing a service disruption and you specify instance IDs in the affected zone, or do not specify any instance IDs at all, the call fails. If you specify only instance IDs in an unaffected zone, the call works normally.

For more information, see Burstable Performance Instances in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_618662.validator(path, query, header, formData, body) - let scheme = call_618662.pickScheme + let valid = call_618664.validator(path, query, header, formData, body) + let scheme = call_618664.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618662.url(scheme.get, call_618662.host, call_618662.base, - call_618662.route, valid.getOrDefault("path"), + let url = call_618664.url(scheme.get, call_618664.host, call_618664.base, + call_618664.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618662, url, valid) + result = atozHook(call_618664, url, valid) -proc call*(call_618663: Call_PostDescribeInstanceCreditSpecifications_618645; +proc call*(call_618665: Call_PostDescribeInstanceCreditSpecifications_618647; NextToken: string = ""; DryRun: bool = false; InstanceId: JsonNode = nil; Action: string = "DescribeInstanceCreditSpecifications"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -61815,29 +61842,29 @@ proc call*(call_618663: Call_PostDescribeInstanceCreditSpecifications_618645; ## : The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value. This value can be between 5 and 1000. You cannot specify this parameter and the instance IDs parameter in the same call. ## Filter: JArray ## :

The filters.

- var query_618664 = newJObject() - var formData_618665 = newJObject() - add(formData_618665, "NextToken", newJString(NextToken)) - add(formData_618665, "DryRun", newJBool(DryRun)) + var query_618666 = newJObject() + var formData_618667 = newJObject() + add(formData_618667, "NextToken", newJString(NextToken)) + add(formData_618667, "DryRun", newJBool(DryRun)) if InstanceId != nil: - formData_618665.add "InstanceId", InstanceId - add(query_618664, "Action", newJString(Action)) - add(query_618664, "Version", newJString(Version)) - add(formData_618665, "MaxResults", newJInt(MaxResults)) + formData_618667.add "InstanceId", InstanceId + add(query_618666, "Action", newJString(Action)) + add(query_618666, "Version", newJString(Version)) + add(formData_618667, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_618665.add "Filter", Filter - result = call_618663.call(nil, query_618664, nil, formData_618665, nil) + formData_618667.add "Filter", Filter + result = call_618665.call(nil, query_618666, nil, formData_618667, nil) -var postDescribeInstanceCreditSpecifications* = Call_PostDescribeInstanceCreditSpecifications_618645( +var postDescribeInstanceCreditSpecifications* = Call_PostDescribeInstanceCreditSpecifications_618647( name: "postDescribeInstanceCreditSpecifications", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeInstanceCreditSpecifications", - validator: validate_PostDescribeInstanceCreditSpecifications_618646, - base: "/", url: url_PostDescribeInstanceCreditSpecifications_618647, + validator: validate_PostDescribeInstanceCreditSpecifications_618648, + base: "/", url: url_PostDescribeInstanceCreditSpecifications_618649, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeInstanceCreditSpecifications_618625 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeInstanceCreditSpecifications_618627(protocol: Scheme; + Call_GetDescribeInstanceCreditSpecifications_618627 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeInstanceCreditSpecifications_618629(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -61847,7 +61874,7 @@ proc url_GetDescribeInstanceCreditSpecifications_618627(protocol: Scheme; else: result.path = base & route -proc validate_GetDescribeInstanceCreditSpecifications_618626(path: JsonNode; +proc validate_GetDescribeInstanceCreditSpecifications_618628(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the credit option for CPU usage of the specified burstable performance instances. The credit options are standard and unlimited.

If you do not specify an instance ID, Amazon EC2 returns burstable performance instances with the unlimited credit option, as well as instances that were previously configured as T2, T3, and T3a with the unlimited credit option. For example, if you resize a T2 instance, while it is configured as unlimited, to an M4 instance, Amazon EC2 returns the M4 instance.

If you specify one or more instance IDs, Amazon EC2 returns the credit option (standard or unlimited) of those instances. If you specify an instance ID that is not valid, such as an instance that is not a burstable performance instance, an error is returned.

Recently terminated instances might appear in the returned results. This interval is usually less than one hour.

If an Availability Zone is experiencing a service disruption and you specify instance IDs in the affected zone, or do not specify any instance IDs at all, the call fails. If you specify only instance IDs in an unaffected zone, the call works normally.

For more information, see Burstable Performance Instances in the Amazon Elastic Compute Cloud User Guide.

## @@ -61869,39 +61896,39 @@ proc validate_GetDescribeInstanceCreditSpecifications_618626(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618628 = query.getOrDefault("MaxResults") - valid_618628 = validateParameter(valid_618628, JInt, required = false, default = nil) - if valid_618628 != nil: - section.add "MaxResults", valid_618628 - var valid_618629 = query.getOrDefault("DryRun") - valid_618629 = validateParameter(valid_618629, JBool, required = false, default = nil) - if valid_618629 != nil: - section.add "DryRun", valid_618629 - var valid_618630 = query.getOrDefault("NextToken") - valid_618630 = validateParameter(valid_618630, JString, required = false, - default = nil) + var valid_618630 = query.getOrDefault("MaxResults") + valid_618630 = validateParameter(valid_618630, JInt, required = false, default = nil) if valid_618630 != nil: - section.add "NextToken", valid_618630 - var valid_618631 = query.getOrDefault("InstanceId") - valid_618631 = validateParameter(valid_618631, JArray, required = false, - default = nil) + section.add "MaxResults", valid_618630 + var valid_618631 = query.getOrDefault("DryRun") + valid_618631 = validateParameter(valid_618631, JBool, required = false, default = nil) if valid_618631 != nil: - section.add "InstanceId", valid_618631 - var valid_618632 = query.getOrDefault("Filter") - valid_618632 = validateParameter(valid_618632, JArray, required = false, + section.add "DryRun", valid_618631 + var valid_618632 = query.getOrDefault("NextToken") + valid_618632 = validateParameter(valid_618632, JString, required = false, default = nil) if valid_618632 != nil: - section.add "Filter", valid_618632 - var valid_618633 = query.getOrDefault("Action") - valid_618633 = validateParameter(valid_618633, JString, required = true, default = newJString( - "DescribeInstanceCreditSpecifications")) + section.add "NextToken", valid_618632 + var valid_618633 = query.getOrDefault("InstanceId") + valid_618633 = validateParameter(valid_618633, JArray, required = false, + default = nil) if valid_618633 != nil: - section.add "Action", valid_618633 - var valid_618634 = query.getOrDefault("Version") - valid_618634 = validateParameter(valid_618634, JString, required = true, - default = newJString("2016-11-15")) + section.add "InstanceId", valid_618633 + var valid_618634 = query.getOrDefault("Filter") + valid_618634 = validateParameter(valid_618634, JArray, required = false, + default = nil) if valid_618634 != nil: - section.add "Version", valid_618634 + section.add "Filter", valid_618634 + var valid_618635 = query.getOrDefault("Action") + valid_618635 = validateParameter(valid_618635, JString, required = true, default = newJString( + "DescribeInstanceCreditSpecifications")) + if valid_618635 != nil: + section.add "Action", valid_618635 + var valid_618636 = query.getOrDefault("Version") + valid_618636 = validateParameter(valid_618636, JString, required = true, + default = newJString("2016-11-15")) + if valid_618636 != nil: + section.add "Version", valid_618636 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -61912,62 +61939,62 @@ proc validate_GetDescribeInstanceCreditSpecifications_618626(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618635 = header.getOrDefault("X-Amz-Signature") - valid_618635 = validateParameter(valid_618635, JString, required = false, - default = nil) - if valid_618635 != nil: - section.add "X-Amz-Signature", valid_618635 - var valid_618636 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618636 = validateParameter(valid_618636, JString, required = false, - default = nil) - if valid_618636 != nil: - section.add "X-Amz-Content-Sha256", valid_618636 - var valid_618637 = header.getOrDefault("X-Amz-Date") + var valid_618637 = header.getOrDefault("X-Amz-Signature") valid_618637 = validateParameter(valid_618637, JString, required = false, default = nil) if valid_618637 != nil: - section.add "X-Amz-Date", valid_618637 - var valid_618638 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618637 + var valid_618638 = header.getOrDefault("X-Amz-Content-Sha256") valid_618638 = validateParameter(valid_618638, JString, required = false, default = nil) if valid_618638 != nil: - section.add "X-Amz-Credential", valid_618638 - var valid_618639 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618638 + var valid_618639 = header.getOrDefault("X-Amz-Date") valid_618639 = validateParameter(valid_618639, JString, required = false, default = nil) if valid_618639 != nil: - section.add "X-Amz-Security-Token", valid_618639 - var valid_618640 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618639 + var valid_618640 = header.getOrDefault("X-Amz-Credential") valid_618640 = validateParameter(valid_618640, JString, required = false, default = nil) if valid_618640 != nil: - section.add "X-Amz-Algorithm", valid_618640 - var valid_618641 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618640 + var valid_618641 = header.getOrDefault("X-Amz-Security-Token") valid_618641 = validateParameter(valid_618641, JString, required = false, default = nil) if valid_618641 != nil: - section.add "X-Amz-SignedHeaders", valid_618641 + section.add "X-Amz-Security-Token", valid_618641 + var valid_618642 = header.getOrDefault("X-Amz-Algorithm") + valid_618642 = validateParameter(valid_618642, JString, required = false, + default = nil) + if valid_618642 != nil: + section.add "X-Amz-Algorithm", valid_618642 + var valid_618643 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618643 = validateParameter(valid_618643, JString, required = false, + default = nil) + if valid_618643 != nil: + section.add "X-Amz-SignedHeaders", valid_618643 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618642: Call_GetDescribeInstanceCreditSpecifications_618625; +proc call*(call_618644: Call_GetDescribeInstanceCreditSpecifications_618627; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the credit option for CPU usage of the specified burstable performance instances. The credit options are standard and unlimited.

If you do not specify an instance ID, Amazon EC2 returns burstable performance instances with the unlimited credit option, as well as instances that were previously configured as T2, T3, and T3a with the unlimited credit option. For example, if you resize a T2 instance, while it is configured as unlimited, to an M4 instance, Amazon EC2 returns the M4 instance.

If you specify one or more instance IDs, Amazon EC2 returns the credit option (standard or unlimited) of those instances. If you specify an instance ID that is not valid, such as an instance that is not a burstable performance instance, an error is returned.

Recently terminated instances might appear in the returned results. This interval is usually less than one hour.

If an Availability Zone is experiencing a service disruption and you specify instance IDs in the affected zone, or do not specify any instance IDs at all, the call fails. If you specify only instance IDs in an unaffected zone, the call works normally.

For more information, see Burstable Performance Instances in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_618642.validator(path, query, header, formData, body) - let scheme = call_618642.pickScheme + let valid = call_618644.validator(path, query, header, formData, body) + let scheme = call_618644.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618642.url(scheme.get, call_618642.host, call_618642.base, - call_618642.route, valid.getOrDefault("path"), + let url = call_618644.url(scheme.get, call_618644.host, call_618644.base, + call_618644.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618642, url, valid) + result = atozHook(call_618644, url, valid) -proc call*(call_618643: Call_GetDescribeInstanceCreditSpecifications_618625; +proc call*(call_618645: Call_GetDescribeInstanceCreditSpecifications_618627; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; InstanceId: JsonNode = nil; Filter: JsonNode = nil; Action: string = "DescribeInstanceCreditSpecifications"; @@ -61986,28 +62013,28 @@ proc call*(call_618643: Call_GetDescribeInstanceCreditSpecifications_618625; ## :

The filters.

## Action: string (required) ## Version: string (required) - var query_618644 = newJObject() - add(query_618644, "MaxResults", newJInt(MaxResults)) - add(query_618644, "DryRun", newJBool(DryRun)) - add(query_618644, "NextToken", newJString(NextToken)) + var query_618646 = newJObject() + add(query_618646, "MaxResults", newJInt(MaxResults)) + add(query_618646, "DryRun", newJBool(DryRun)) + add(query_618646, "NextToken", newJString(NextToken)) if InstanceId != nil: - query_618644.add "InstanceId", InstanceId + query_618646.add "InstanceId", InstanceId if Filter != nil: - query_618644.add "Filter", Filter - add(query_618644, "Action", newJString(Action)) - add(query_618644, "Version", newJString(Version)) - result = call_618643.call(nil, query_618644, nil, nil, nil) + query_618646.add "Filter", Filter + add(query_618646, "Action", newJString(Action)) + add(query_618646, "Version", newJString(Version)) + result = call_618645.call(nil, query_618646, nil, nil, nil) -var getDescribeInstanceCreditSpecifications* = Call_GetDescribeInstanceCreditSpecifications_618625( +var getDescribeInstanceCreditSpecifications* = Call_GetDescribeInstanceCreditSpecifications_618627( name: "getDescribeInstanceCreditSpecifications", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeInstanceCreditSpecifications", - validator: validate_GetDescribeInstanceCreditSpecifications_618626, base: "/", - url: url_GetDescribeInstanceCreditSpecifications_618627, + validator: validate_GetDescribeInstanceCreditSpecifications_618628, base: "/", + url: url_GetDescribeInstanceCreditSpecifications_618629, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeInstanceStatus_618687 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeInstanceStatus_618689(protocol: Scheme; host: string; + Call_PostDescribeInstanceStatus_618689 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeInstanceStatus_618691(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -62017,7 +62044,7 @@ proc url_PostDescribeInstanceStatus_618689(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeInstanceStatus_618688(path: JsonNode; query: JsonNode; +proc validate_PostDescribeInstanceStatus_618690(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the status of the specified instances or all of your instances. By default, only running instances are described, unless you specifically indicate to return the status of all instances.

Instance status includes the following components:

## @@ -62029,16 +62056,16 @@ proc validate_PostDescribeInstanceStatus_618688(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618690 = query.getOrDefault("Action") - valid_618690 = validateParameter(valid_618690, JString, required = true, + var valid_618692 = query.getOrDefault("Action") + valid_618692 = validateParameter(valid_618692, JString, required = true, default = newJString("DescribeInstanceStatus")) - if valid_618690 != nil: - section.add "Action", valid_618690 - var valid_618691 = query.getOrDefault("Version") - valid_618691 = validateParameter(valid_618691, JString, required = true, + if valid_618692 != nil: + section.add "Action", valid_618692 + var valid_618693 = query.getOrDefault("Version") + valid_618693 = validateParameter(valid_618693, JString, required = true, default = newJString("2016-11-15")) - if valid_618691 != nil: - section.add "Version", valid_618691 + if valid_618693 != nil: + section.add "Version", valid_618693 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -62049,41 +62076,41 @@ proc validate_PostDescribeInstanceStatus_618688(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618692 = header.getOrDefault("X-Amz-Signature") - valid_618692 = validateParameter(valid_618692, JString, required = false, - default = nil) - if valid_618692 != nil: - section.add "X-Amz-Signature", valid_618692 - var valid_618693 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618693 = validateParameter(valid_618693, JString, required = false, - default = nil) - if valid_618693 != nil: - section.add "X-Amz-Content-Sha256", valid_618693 - var valid_618694 = header.getOrDefault("X-Amz-Date") + var valid_618694 = header.getOrDefault("X-Amz-Signature") valid_618694 = validateParameter(valid_618694, JString, required = false, default = nil) if valid_618694 != nil: - section.add "X-Amz-Date", valid_618694 - var valid_618695 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618694 + var valid_618695 = header.getOrDefault("X-Amz-Content-Sha256") valid_618695 = validateParameter(valid_618695, JString, required = false, default = nil) if valid_618695 != nil: - section.add "X-Amz-Credential", valid_618695 - var valid_618696 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618695 + var valid_618696 = header.getOrDefault("X-Amz-Date") valid_618696 = validateParameter(valid_618696, JString, required = false, default = nil) if valid_618696 != nil: - section.add "X-Amz-Security-Token", valid_618696 - var valid_618697 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618696 + var valid_618697 = header.getOrDefault("X-Amz-Credential") valid_618697 = validateParameter(valid_618697, JString, required = false, default = nil) if valid_618697 != nil: - section.add "X-Amz-Algorithm", valid_618697 - var valid_618698 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618697 + var valid_618698 = header.getOrDefault("X-Amz-Security-Token") valid_618698 = validateParameter(valid_618698, JString, required = false, default = nil) if valid_618698 != nil: - section.add "X-Amz-SignedHeaders", valid_618698 + section.add "X-Amz-Security-Token", valid_618698 + var valid_618699 = header.getOrDefault("X-Amz-Algorithm") + valid_618699 = validateParameter(valid_618699, JString, required = false, + default = nil) + if valid_618699 != nil: + section.add "X-Amz-Algorithm", valid_618699 + var valid_618700 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618700 = validateParameter(valid_618700, JString, required = false, + default = nil) + if valid_618700 != nil: + section.add "X-Amz-SignedHeaders", valid_618700 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -62099,51 +62126,51 @@ proc validate_PostDescribeInstanceStatus_618688(path: JsonNode; query: JsonNode; ## Filter: JArray ## :

The filters.

section = newJObject() - var valid_618699 = formData.getOrDefault("NextToken") - valid_618699 = validateParameter(valid_618699, JString, required = false, - default = nil) - if valid_618699 != nil: - section.add "NextToken", valid_618699 - var valid_618700 = formData.getOrDefault("DryRun") - valid_618700 = validateParameter(valid_618700, JBool, required = false, default = nil) - if valid_618700 != nil: - section.add "DryRun", valid_618700 - var valid_618701 = formData.getOrDefault("InstanceId") - valid_618701 = validateParameter(valid_618701, JArray, required = false, + var valid_618701 = formData.getOrDefault("NextToken") + valid_618701 = validateParameter(valid_618701, JString, required = false, default = nil) if valid_618701 != nil: - section.add "InstanceId", valid_618701 - var valid_618702 = formData.getOrDefault("IncludeAllInstances") + section.add "NextToken", valid_618701 + var valid_618702 = formData.getOrDefault("DryRun") valid_618702 = validateParameter(valid_618702, JBool, required = false, default = nil) if valid_618702 != nil: - section.add "IncludeAllInstances", valid_618702 - var valid_618703 = formData.getOrDefault("MaxResults") - valid_618703 = validateParameter(valid_618703, JInt, required = false, default = nil) - if valid_618703 != nil: - section.add "MaxResults", valid_618703 - var valid_618704 = formData.getOrDefault("Filter") - valid_618704 = validateParameter(valid_618704, JArray, required = false, + section.add "DryRun", valid_618702 + var valid_618703 = formData.getOrDefault("InstanceId") + valid_618703 = validateParameter(valid_618703, JArray, required = false, default = nil) + if valid_618703 != nil: + section.add "InstanceId", valid_618703 + var valid_618704 = formData.getOrDefault("IncludeAllInstances") + valid_618704 = validateParameter(valid_618704, JBool, required = false, default = nil) if valid_618704 != nil: - section.add "Filter", valid_618704 + section.add "IncludeAllInstances", valid_618704 + var valid_618705 = formData.getOrDefault("MaxResults") + valid_618705 = validateParameter(valid_618705, JInt, required = false, default = nil) + if valid_618705 != nil: + section.add "MaxResults", valid_618705 + var valid_618706 = formData.getOrDefault("Filter") + valid_618706 = validateParameter(valid_618706, JArray, required = false, + default = nil) + if valid_618706 != nil: + section.add "Filter", valid_618706 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618705: Call_PostDescribeInstanceStatus_618687; path: JsonNode; +proc call*(call_618707: Call_PostDescribeInstanceStatus_618689; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the status of the specified instances or all of your instances. By default, only running instances are described, unless you specifically indicate to return the status of all instances.

Instance status includes the following components:

## - let valid = call_618705.validator(path, query, header, formData, body) - let scheme = call_618705.pickScheme + let valid = call_618707.validator(path, query, header, formData, body) + let scheme = call_618707.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618705.url(scheme.get, call_618705.host, call_618705.base, - call_618705.route, valid.getOrDefault("path"), + let url = call_618707.url(scheme.get, call_618707.host, call_618707.base, + call_618707.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618705, url, valid) + result = atozHook(call_618707, url, valid) -proc call*(call_618706: Call_PostDescribeInstanceStatus_618687; +proc call*(call_618708: Call_PostDescribeInstanceStatus_618689; NextToken: string = ""; DryRun: bool = false; InstanceId: JsonNode = nil; Action: string = "DescribeInstanceStatus"; IncludeAllInstances: bool = false; Version: string = "2016-11-15"; @@ -62164,29 +62191,29 @@ proc call*(call_618706: Call_PostDescribeInstanceStatus_618687; ## : The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value. This value can be between 5 and 1000. You cannot specify this parameter and the instance IDs parameter in the same call. ## Filter: JArray ## :

The filters.

- var query_618707 = newJObject() - var formData_618708 = newJObject() - add(formData_618708, "NextToken", newJString(NextToken)) - add(formData_618708, "DryRun", newJBool(DryRun)) + var query_618709 = newJObject() + var formData_618710 = newJObject() + add(formData_618710, "NextToken", newJString(NextToken)) + add(formData_618710, "DryRun", newJBool(DryRun)) if InstanceId != nil: - formData_618708.add "InstanceId", InstanceId - add(query_618707, "Action", newJString(Action)) - add(formData_618708, "IncludeAllInstances", newJBool(IncludeAllInstances)) - add(query_618707, "Version", newJString(Version)) - add(formData_618708, "MaxResults", newJInt(MaxResults)) + formData_618710.add "InstanceId", InstanceId + add(query_618709, "Action", newJString(Action)) + add(formData_618710, "IncludeAllInstances", newJBool(IncludeAllInstances)) + add(query_618709, "Version", newJString(Version)) + add(formData_618710, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_618708.add "Filter", Filter - result = call_618706.call(nil, query_618707, nil, formData_618708, nil) + formData_618710.add "Filter", Filter + result = call_618708.call(nil, query_618709, nil, formData_618710, nil) -var postDescribeInstanceStatus* = Call_PostDescribeInstanceStatus_618687( +var postDescribeInstanceStatus* = Call_PostDescribeInstanceStatus_618689( name: "postDescribeInstanceStatus", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeInstanceStatus", - validator: validate_PostDescribeInstanceStatus_618688, base: "/", - url: url_PostDescribeInstanceStatus_618689, + validator: validate_PostDescribeInstanceStatus_618690, base: "/", + url: url_PostDescribeInstanceStatus_618691, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeInstanceStatus_618666 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeInstanceStatus_618668(protocol: Scheme; host: string; + Call_GetDescribeInstanceStatus_618668 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeInstanceStatus_618670(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -62196,7 +62223,7 @@ proc url_GetDescribeInstanceStatus_618668(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeInstanceStatus_618667(path: JsonNode; query: JsonNode; +proc validate_GetDescribeInstanceStatus_618669(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the status of the specified instances or all of your instances. By default, only running instances are described, unless you specifically indicate to return the status of all instances.

Instance status includes the following components:

## @@ -62220,43 +62247,43 @@ proc validate_GetDescribeInstanceStatus_618667(path: JsonNode; query: JsonNode; ## IncludeAllInstances: JBool ## :

When true, includes the health status for all instances. When false, includes the health status for running instances only.

Default: false

section = newJObject() - var valid_618669 = query.getOrDefault("MaxResults") - valid_618669 = validateParameter(valid_618669, JInt, required = false, default = nil) - if valid_618669 != nil: - section.add "MaxResults", valid_618669 - var valid_618670 = query.getOrDefault("DryRun") - valid_618670 = validateParameter(valid_618670, JBool, required = false, default = nil) - if valid_618670 != nil: - section.add "DryRun", valid_618670 - var valid_618671 = query.getOrDefault("NextToken") - valid_618671 = validateParameter(valid_618671, JString, required = false, - default = nil) + var valid_618671 = query.getOrDefault("MaxResults") + valid_618671 = validateParameter(valid_618671, JInt, required = false, default = nil) if valid_618671 != nil: - section.add "NextToken", valid_618671 - var valid_618672 = query.getOrDefault("InstanceId") - valid_618672 = validateParameter(valid_618672, JArray, required = false, - default = nil) + section.add "MaxResults", valid_618671 + var valid_618672 = query.getOrDefault("DryRun") + valid_618672 = validateParameter(valid_618672, JBool, required = false, default = nil) if valid_618672 != nil: - section.add "InstanceId", valid_618672 - var valid_618673 = query.getOrDefault("Filter") - valid_618673 = validateParameter(valid_618673, JArray, required = false, + section.add "DryRun", valid_618672 + var valid_618673 = query.getOrDefault("NextToken") + valid_618673 = validateParameter(valid_618673, JString, required = false, default = nil) if valid_618673 != nil: - section.add "Filter", valid_618673 - var valid_618674 = query.getOrDefault("Action") - valid_618674 = validateParameter(valid_618674, JString, required = true, - default = newJString("DescribeInstanceStatus")) + section.add "NextToken", valid_618673 + var valid_618674 = query.getOrDefault("InstanceId") + valid_618674 = validateParameter(valid_618674, JArray, required = false, + default = nil) if valid_618674 != nil: - section.add "Action", valid_618674 - var valid_618675 = query.getOrDefault("Version") - valid_618675 = validateParameter(valid_618675, JString, required = true, - default = newJString("2016-11-15")) + section.add "InstanceId", valid_618674 + var valid_618675 = query.getOrDefault("Filter") + valid_618675 = validateParameter(valid_618675, JArray, required = false, + default = nil) if valid_618675 != nil: - section.add "Version", valid_618675 - var valid_618676 = query.getOrDefault("IncludeAllInstances") - valid_618676 = validateParameter(valid_618676, JBool, required = false, default = nil) + section.add "Filter", valid_618675 + var valid_618676 = query.getOrDefault("Action") + valid_618676 = validateParameter(valid_618676, JString, required = true, + default = newJString("DescribeInstanceStatus")) if valid_618676 != nil: - section.add "IncludeAllInstances", valid_618676 + section.add "Action", valid_618676 + var valid_618677 = query.getOrDefault("Version") + valid_618677 = validateParameter(valid_618677, JString, required = true, + default = newJString("2016-11-15")) + if valid_618677 != nil: + section.add "Version", valid_618677 + var valid_618678 = query.getOrDefault("IncludeAllInstances") + valid_618678 = validateParameter(valid_618678, JBool, required = false, default = nil) + if valid_618678 != nil: + section.add "IncludeAllInstances", valid_618678 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -62267,61 +62294,61 @@ proc validate_GetDescribeInstanceStatus_618667(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618677 = header.getOrDefault("X-Amz-Signature") - valid_618677 = validateParameter(valid_618677, JString, required = false, - default = nil) - if valid_618677 != nil: - section.add "X-Amz-Signature", valid_618677 - var valid_618678 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618678 = validateParameter(valid_618678, JString, required = false, - default = nil) - if valid_618678 != nil: - section.add "X-Amz-Content-Sha256", valid_618678 - var valid_618679 = header.getOrDefault("X-Amz-Date") + var valid_618679 = header.getOrDefault("X-Amz-Signature") valid_618679 = validateParameter(valid_618679, JString, required = false, default = nil) if valid_618679 != nil: - section.add "X-Amz-Date", valid_618679 - var valid_618680 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618679 + var valid_618680 = header.getOrDefault("X-Amz-Content-Sha256") valid_618680 = validateParameter(valid_618680, JString, required = false, default = nil) if valid_618680 != nil: - section.add "X-Amz-Credential", valid_618680 - var valid_618681 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618680 + var valid_618681 = header.getOrDefault("X-Amz-Date") valid_618681 = validateParameter(valid_618681, JString, required = false, default = nil) if valid_618681 != nil: - section.add "X-Amz-Security-Token", valid_618681 - var valid_618682 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618681 + var valid_618682 = header.getOrDefault("X-Amz-Credential") valid_618682 = validateParameter(valid_618682, JString, required = false, default = nil) if valid_618682 != nil: - section.add "X-Amz-Algorithm", valid_618682 - var valid_618683 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618682 + var valid_618683 = header.getOrDefault("X-Amz-Security-Token") valid_618683 = validateParameter(valid_618683, JString, required = false, default = nil) if valid_618683 != nil: - section.add "X-Amz-SignedHeaders", valid_618683 + section.add "X-Amz-Security-Token", valid_618683 + var valid_618684 = header.getOrDefault("X-Amz-Algorithm") + valid_618684 = validateParameter(valid_618684, JString, required = false, + default = nil) + if valid_618684 != nil: + section.add "X-Amz-Algorithm", valid_618684 + var valid_618685 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618685 = validateParameter(valid_618685, JString, required = false, + default = nil) + if valid_618685 != nil: + section.add "X-Amz-SignedHeaders", valid_618685 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618684: Call_GetDescribeInstanceStatus_618666; path: JsonNode; +proc call*(call_618686: Call_GetDescribeInstanceStatus_618668; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the status of the specified instances or all of your instances. By default, only running instances are described, unless you specifically indicate to return the status of all instances.

Instance status includes the following components:

## - let valid = call_618684.validator(path, query, header, formData, body) - let scheme = call_618684.pickScheme + let valid = call_618686.validator(path, query, header, formData, body) + let scheme = call_618686.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618684.url(scheme.get, call_618684.host, call_618684.base, - call_618684.route, valid.getOrDefault("path"), + let url = call_618686.url(scheme.get, call_618686.host, call_618686.base, + call_618686.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618684, url, valid) + result = atozHook(call_618686, url, valid) -proc call*(call_618685: Call_GetDescribeInstanceStatus_618666; MaxResults: int = 0; +proc call*(call_618687: Call_GetDescribeInstanceStatus_618668; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; InstanceId: JsonNode = nil; Filter: JsonNode = nil; Action: string = "DescribeInstanceStatus"; Version: string = "2016-11-15"; IncludeAllInstances: bool = false): Recallable = @@ -62341,28 +62368,28 @@ proc call*(call_618685: Call_GetDescribeInstanceStatus_618666; MaxResults: int = ## Version: string (required) ## IncludeAllInstances: bool ## :

When true, includes the health status for all instances. When false, includes the health status for running instances only.

Default: false

- var query_618686 = newJObject() - add(query_618686, "MaxResults", newJInt(MaxResults)) - add(query_618686, "DryRun", newJBool(DryRun)) - add(query_618686, "NextToken", newJString(NextToken)) + var query_618688 = newJObject() + add(query_618688, "MaxResults", newJInt(MaxResults)) + add(query_618688, "DryRun", newJBool(DryRun)) + add(query_618688, "NextToken", newJString(NextToken)) if InstanceId != nil: - query_618686.add "InstanceId", InstanceId + query_618688.add "InstanceId", InstanceId if Filter != nil: - query_618686.add "Filter", Filter - add(query_618686, "Action", newJString(Action)) - add(query_618686, "Version", newJString(Version)) - add(query_618686, "IncludeAllInstances", newJBool(IncludeAllInstances)) - result = call_618685.call(nil, query_618686, nil, nil, nil) + query_618688.add "Filter", Filter + add(query_618688, "Action", newJString(Action)) + add(query_618688, "Version", newJString(Version)) + add(query_618688, "IncludeAllInstances", newJBool(IncludeAllInstances)) + result = call_618687.call(nil, query_618688, nil, nil, nil) -var getDescribeInstanceStatus* = Call_GetDescribeInstanceStatus_618666( +var getDescribeInstanceStatus* = Call_GetDescribeInstanceStatus_618668( name: "getDescribeInstanceStatus", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeInstanceStatus", - validator: validate_GetDescribeInstanceStatus_618667, base: "/", - url: url_GetDescribeInstanceStatus_618668, + validator: validate_GetDescribeInstanceStatus_618669, base: "/", + url: url_GetDescribeInstanceStatus_618670, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeInstanceTypeOfferings_618729 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeInstanceTypeOfferings_618731(protocol: Scheme; host: string; + Call_PostDescribeInstanceTypeOfferings_618731 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeInstanceTypeOfferings_618733(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -62372,7 +62399,7 @@ proc url_PostDescribeInstanceTypeOfferings_618731(protocol: Scheme; host: string else: result.path = base & route -proc validate_PostDescribeInstanceTypeOfferings_618730(path: JsonNode; +proc validate_PostDescribeInstanceTypeOfferings_618732(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Returns a list of all instance types offered. The results can be filtered by location (Region or Availability Zone). If no location is specified, the instance types offered in the current Region are returned. ## @@ -62384,16 +62411,16 @@ proc validate_PostDescribeInstanceTypeOfferings_618730(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618732 = query.getOrDefault("Action") - valid_618732 = validateParameter(valid_618732, JString, required = true, default = newJString( + var valid_618734 = query.getOrDefault("Action") + valid_618734 = validateParameter(valid_618734, JString, required = true, default = newJString( "DescribeInstanceTypeOfferings")) - if valid_618732 != nil: - section.add "Action", valid_618732 - var valid_618733 = query.getOrDefault("Version") - valid_618733 = validateParameter(valid_618733, JString, required = true, + if valid_618734 != nil: + section.add "Action", valid_618734 + var valid_618735 = query.getOrDefault("Version") + valid_618735 = validateParameter(valid_618735, JString, required = true, default = newJString("2016-11-15")) - if valid_618733 != nil: - section.add "Version", valid_618733 + if valid_618735 != nil: + section.add "Version", valid_618735 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -62404,41 +62431,41 @@ proc validate_PostDescribeInstanceTypeOfferings_618730(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618734 = header.getOrDefault("X-Amz-Signature") - valid_618734 = validateParameter(valid_618734, JString, required = false, - default = nil) - if valid_618734 != nil: - section.add "X-Amz-Signature", valid_618734 - var valid_618735 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618735 = validateParameter(valid_618735, JString, required = false, - default = nil) - if valid_618735 != nil: - section.add "X-Amz-Content-Sha256", valid_618735 - var valid_618736 = header.getOrDefault("X-Amz-Date") + var valid_618736 = header.getOrDefault("X-Amz-Signature") valid_618736 = validateParameter(valid_618736, JString, required = false, default = nil) if valid_618736 != nil: - section.add "X-Amz-Date", valid_618736 - var valid_618737 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618736 + var valid_618737 = header.getOrDefault("X-Amz-Content-Sha256") valid_618737 = validateParameter(valid_618737, JString, required = false, default = nil) if valid_618737 != nil: - section.add "X-Amz-Credential", valid_618737 - var valid_618738 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618737 + var valid_618738 = header.getOrDefault("X-Amz-Date") valid_618738 = validateParameter(valid_618738, JString, required = false, default = nil) if valid_618738 != nil: - section.add "X-Amz-Security-Token", valid_618738 - var valid_618739 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618738 + var valid_618739 = header.getOrDefault("X-Amz-Credential") valid_618739 = validateParameter(valid_618739, JString, required = false, default = nil) if valid_618739 != nil: - section.add "X-Amz-Algorithm", valid_618739 - var valid_618740 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618739 + var valid_618740 = header.getOrDefault("X-Amz-Security-Token") valid_618740 = validateParameter(valid_618740, JString, required = false, default = nil) if valid_618740 != nil: - section.add "X-Amz-SignedHeaders", valid_618740 + section.add "X-Amz-Security-Token", valid_618740 + var valid_618741 = header.getOrDefault("X-Amz-Algorithm") + valid_618741 = validateParameter(valid_618741, JString, required = false, + default = nil) + if valid_618741 != nil: + section.add "X-Amz-Algorithm", valid_618741 + var valid_618742 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618742 = validateParameter(valid_618742, JString, required = false, + default = nil) + if valid_618742 != nil: + section.add "X-Amz-SignedHeaders", valid_618742 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -62452,48 +62479,48 @@ proc validate_PostDescribeInstanceTypeOfferings_618730(path: JsonNode; ## Filter: JArray ## :

One or more filters. Filter names and values are case-sensitive.

section = newJObject() - var valid_618741 = formData.getOrDefault("NextToken") - valid_618741 = validateParameter(valid_618741, JString, required = false, - default = nil) - if valid_618741 != nil: - section.add "NextToken", valid_618741 - var valid_618742 = formData.getOrDefault("DryRun") - valid_618742 = validateParameter(valid_618742, JBool, required = false, default = nil) - if valid_618742 != nil: - section.add "DryRun", valid_618742 - var valid_618743 = formData.getOrDefault("LocationType") + var valid_618743 = formData.getOrDefault("NextToken") valid_618743 = validateParameter(valid_618743, JString, required = false, - default = newJString("region")) + default = nil) if valid_618743 != nil: - section.add "LocationType", valid_618743 - var valid_618744 = formData.getOrDefault("MaxResults") - valid_618744 = validateParameter(valid_618744, JInt, required = false, default = nil) + section.add "NextToken", valid_618743 + var valid_618744 = formData.getOrDefault("DryRun") + valid_618744 = validateParameter(valid_618744, JBool, required = false, default = nil) if valid_618744 != nil: - section.add "MaxResults", valid_618744 - var valid_618745 = formData.getOrDefault("Filter") - valid_618745 = validateParameter(valid_618745, JArray, required = false, - default = nil) + section.add "DryRun", valid_618744 + var valid_618745 = formData.getOrDefault("LocationType") + valid_618745 = validateParameter(valid_618745, JString, required = false, + default = newJString("region")) if valid_618745 != nil: - section.add "Filter", valid_618745 + section.add "LocationType", valid_618745 + var valid_618746 = formData.getOrDefault("MaxResults") + valid_618746 = validateParameter(valid_618746, JInt, required = false, default = nil) + if valid_618746 != nil: + section.add "MaxResults", valid_618746 + var valid_618747 = formData.getOrDefault("Filter") + valid_618747 = validateParameter(valid_618747, JArray, required = false, + default = nil) + if valid_618747 != nil: + section.add "Filter", valid_618747 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618746: Call_PostDescribeInstanceTypeOfferings_618729; +proc call*(call_618748: Call_PostDescribeInstanceTypeOfferings_618731; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Returns a list of all instance types offered. The results can be filtered by location (Region or Availability Zone). If no location is specified, the instance types offered in the current Region are returned. ## - let valid = call_618746.validator(path, query, header, formData, body) - let scheme = call_618746.pickScheme + let valid = call_618748.validator(path, query, header, formData, body) + let scheme = call_618748.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618746.url(scheme.get, call_618746.host, call_618746.base, - call_618746.route, valid.getOrDefault("path"), + let url = call_618748.url(scheme.get, call_618748.host, call_618748.base, + call_618748.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618746, url, valid) + result = atozHook(call_618748, url, valid) -proc call*(call_618747: Call_PostDescribeInstanceTypeOfferings_618729; +proc call*(call_618749: Call_PostDescribeInstanceTypeOfferings_618731; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeInstanceTypeOfferings"; LocationType: string = "region"; Version: string = "2016-11-15"; @@ -62512,27 +62539,27 @@ proc call*(call_618747: Call_PostDescribeInstanceTypeOfferings_618729; ## : The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the next token value. ## Filter: JArray ## :

One or more filters. Filter names and values are case-sensitive.

- var query_618748 = newJObject() - var formData_618749 = newJObject() - add(formData_618749, "NextToken", newJString(NextToken)) - add(formData_618749, "DryRun", newJBool(DryRun)) - add(query_618748, "Action", newJString(Action)) - add(formData_618749, "LocationType", newJString(LocationType)) - add(query_618748, "Version", newJString(Version)) - add(formData_618749, "MaxResults", newJInt(MaxResults)) + var query_618750 = newJObject() + var formData_618751 = newJObject() + add(formData_618751, "NextToken", newJString(NextToken)) + add(formData_618751, "DryRun", newJBool(DryRun)) + add(query_618750, "Action", newJString(Action)) + add(formData_618751, "LocationType", newJString(LocationType)) + add(query_618750, "Version", newJString(Version)) + add(formData_618751, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_618749.add "Filter", Filter - result = call_618747.call(nil, query_618748, nil, formData_618749, nil) + formData_618751.add "Filter", Filter + result = call_618749.call(nil, query_618750, nil, formData_618751, nil) -var postDescribeInstanceTypeOfferings* = Call_PostDescribeInstanceTypeOfferings_618729( +var postDescribeInstanceTypeOfferings* = Call_PostDescribeInstanceTypeOfferings_618731( name: "postDescribeInstanceTypeOfferings", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeInstanceTypeOfferings", - validator: validate_PostDescribeInstanceTypeOfferings_618730, base: "/", - url: url_PostDescribeInstanceTypeOfferings_618731, + validator: validate_PostDescribeInstanceTypeOfferings_618732, base: "/", + url: url_PostDescribeInstanceTypeOfferings_618733, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeInstanceTypeOfferings_618709 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeInstanceTypeOfferings_618711(protocol: Scheme; host: string; + Call_GetDescribeInstanceTypeOfferings_618711 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeInstanceTypeOfferings_618713(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -62542,7 +62569,7 @@ proc url_GetDescribeInstanceTypeOfferings_618711(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeInstanceTypeOfferings_618710(path: JsonNode; +proc validate_GetDescribeInstanceTypeOfferings_618712(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Returns a list of all instance types offered. The results can be filtered by location (Region or Availability Zone). If no location is specified, the instance types offered in the current Region are returned. ## @@ -62564,39 +62591,39 @@ proc validate_GetDescribeInstanceTypeOfferings_618710(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618712 = query.getOrDefault("MaxResults") - valid_618712 = validateParameter(valid_618712, JInt, required = false, default = nil) - if valid_618712 != nil: - section.add "MaxResults", valid_618712 - var valid_618713 = query.getOrDefault("DryRun") - valid_618713 = validateParameter(valid_618713, JBool, required = false, default = nil) - if valid_618713 != nil: - section.add "DryRun", valid_618713 - var valid_618714 = query.getOrDefault("NextToken") - valid_618714 = validateParameter(valid_618714, JString, required = false, - default = nil) + var valid_618714 = query.getOrDefault("MaxResults") + valid_618714 = validateParameter(valid_618714, JInt, required = false, default = nil) if valid_618714 != nil: - section.add "NextToken", valid_618714 - var valid_618715 = query.getOrDefault("LocationType") - valid_618715 = validateParameter(valid_618715, JString, required = false, - default = newJString("region")) + section.add "MaxResults", valid_618714 + var valid_618715 = query.getOrDefault("DryRun") + valid_618715 = validateParameter(valid_618715, JBool, required = false, default = nil) if valid_618715 != nil: - section.add "LocationType", valid_618715 - var valid_618716 = query.getOrDefault("Filter") - valid_618716 = validateParameter(valid_618716, JArray, required = false, + section.add "DryRun", valid_618715 + var valid_618716 = query.getOrDefault("NextToken") + valid_618716 = validateParameter(valid_618716, JString, required = false, default = nil) if valid_618716 != nil: - section.add "Filter", valid_618716 - var valid_618717 = query.getOrDefault("Action") - valid_618717 = validateParameter(valid_618717, JString, required = true, default = newJString( - "DescribeInstanceTypeOfferings")) + section.add "NextToken", valid_618716 + var valid_618717 = query.getOrDefault("LocationType") + valid_618717 = validateParameter(valid_618717, JString, required = false, + default = newJString("region")) if valid_618717 != nil: - section.add "Action", valid_618717 - var valid_618718 = query.getOrDefault("Version") - valid_618718 = validateParameter(valid_618718, JString, required = true, - default = newJString("2016-11-15")) + section.add "LocationType", valid_618717 + var valid_618718 = query.getOrDefault("Filter") + valid_618718 = validateParameter(valid_618718, JArray, required = false, + default = nil) if valid_618718 != nil: - section.add "Version", valid_618718 + section.add "Filter", valid_618718 + var valid_618719 = query.getOrDefault("Action") + valid_618719 = validateParameter(valid_618719, JString, required = true, default = newJString( + "DescribeInstanceTypeOfferings")) + if valid_618719 != nil: + section.add "Action", valid_618719 + var valid_618720 = query.getOrDefault("Version") + valid_618720 = validateParameter(valid_618720, JString, required = true, + default = newJString("2016-11-15")) + if valid_618720 != nil: + section.add "Version", valid_618720 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -62607,62 +62634,62 @@ proc validate_GetDescribeInstanceTypeOfferings_618710(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618719 = header.getOrDefault("X-Amz-Signature") - valid_618719 = validateParameter(valid_618719, JString, required = false, - default = nil) - if valid_618719 != nil: - section.add "X-Amz-Signature", valid_618719 - var valid_618720 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618720 = validateParameter(valid_618720, JString, required = false, - default = nil) - if valid_618720 != nil: - section.add "X-Amz-Content-Sha256", valid_618720 - var valid_618721 = header.getOrDefault("X-Amz-Date") + var valid_618721 = header.getOrDefault("X-Amz-Signature") valid_618721 = validateParameter(valid_618721, JString, required = false, default = nil) if valid_618721 != nil: - section.add "X-Amz-Date", valid_618721 - var valid_618722 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618721 + var valid_618722 = header.getOrDefault("X-Amz-Content-Sha256") valid_618722 = validateParameter(valid_618722, JString, required = false, default = nil) if valid_618722 != nil: - section.add "X-Amz-Credential", valid_618722 - var valid_618723 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618722 + var valid_618723 = header.getOrDefault("X-Amz-Date") valid_618723 = validateParameter(valid_618723, JString, required = false, default = nil) if valid_618723 != nil: - section.add "X-Amz-Security-Token", valid_618723 - var valid_618724 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618723 + var valid_618724 = header.getOrDefault("X-Amz-Credential") valid_618724 = validateParameter(valid_618724, JString, required = false, default = nil) if valid_618724 != nil: - section.add "X-Amz-Algorithm", valid_618724 - var valid_618725 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618724 + var valid_618725 = header.getOrDefault("X-Amz-Security-Token") valid_618725 = validateParameter(valid_618725, JString, required = false, default = nil) if valid_618725 != nil: - section.add "X-Amz-SignedHeaders", valid_618725 + section.add "X-Amz-Security-Token", valid_618725 + var valid_618726 = header.getOrDefault("X-Amz-Algorithm") + valid_618726 = validateParameter(valid_618726, JString, required = false, + default = nil) + if valid_618726 != nil: + section.add "X-Amz-Algorithm", valid_618726 + var valid_618727 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618727 = validateParameter(valid_618727, JString, required = false, + default = nil) + if valid_618727 != nil: + section.add "X-Amz-SignedHeaders", valid_618727 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618726: Call_GetDescribeInstanceTypeOfferings_618709; +proc call*(call_618728: Call_GetDescribeInstanceTypeOfferings_618711; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Returns a list of all instance types offered. The results can be filtered by location (Region or Availability Zone). If no location is specified, the instance types offered in the current Region are returned. ## - let valid = call_618726.validator(path, query, header, formData, body) - let scheme = call_618726.pickScheme + let valid = call_618728.validator(path, query, header, formData, body) + let scheme = call_618728.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618726.url(scheme.get, call_618726.host, call_618726.base, - call_618726.route, valid.getOrDefault("path"), + let url = call_618728.url(scheme.get, call_618728.host, call_618728.base, + call_618728.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618726, url, valid) + result = atozHook(call_618728, url, valid) -proc call*(call_618727: Call_GetDescribeInstanceTypeOfferings_618709; +proc call*(call_618729: Call_GetDescribeInstanceTypeOfferings_618711; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; LocationType: string = "region"; Filter: JsonNode = nil; Action: string = "DescribeInstanceTypeOfferings"; @@ -62681,26 +62708,26 @@ proc call*(call_618727: Call_GetDescribeInstanceTypeOfferings_618709; ## :

One or more filters. Filter names and values are case-sensitive.

## Action: string (required) ## Version: string (required) - var query_618728 = newJObject() - add(query_618728, "MaxResults", newJInt(MaxResults)) - add(query_618728, "DryRun", newJBool(DryRun)) - add(query_618728, "NextToken", newJString(NextToken)) - add(query_618728, "LocationType", newJString(LocationType)) + var query_618730 = newJObject() + add(query_618730, "MaxResults", newJInt(MaxResults)) + add(query_618730, "DryRun", newJBool(DryRun)) + add(query_618730, "NextToken", newJString(NextToken)) + add(query_618730, "LocationType", newJString(LocationType)) if Filter != nil: - query_618728.add "Filter", Filter - add(query_618728, "Action", newJString(Action)) - add(query_618728, "Version", newJString(Version)) - result = call_618727.call(nil, query_618728, nil, nil, nil) + query_618730.add "Filter", Filter + add(query_618730, "Action", newJString(Action)) + add(query_618730, "Version", newJString(Version)) + result = call_618729.call(nil, query_618730, nil, nil, nil) -var getDescribeInstanceTypeOfferings* = Call_GetDescribeInstanceTypeOfferings_618709( +var getDescribeInstanceTypeOfferings* = Call_GetDescribeInstanceTypeOfferings_618711( name: "getDescribeInstanceTypeOfferings", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeInstanceTypeOfferings", - validator: validate_GetDescribeInstanceTypeOfferings_618710, base: "/", - url: url_GetDescribeInstanceTypeOfferings_618711, + validator: validate_GetDescribeInstanceTypeOfferings_618712, base: "/", + url: url_GetDescribeInstanceTypeOfferings_618713, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeInstanceTypes_618770 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeInstanceTypes_618772(protocol: Scheme; host: string; + Call_PostDescribeInstanceTypes_618772 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeInstanceTypes_618774(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -62710,7 +62737,7 @@ proc url_PostDescribeInstanceTypes_618772(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeInstanceTypes_618771(path: JsonNode; query: JsonNode; +proc validate_PostDescribeInstanceTypes_618773(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Returns a list of all instance types offered in your current AWS Region. The results can be filtered by the attributes of the instance types. ## @@ -62722,16 +62749,16 @@ proc validate_PostDescribeInstanceTypes_618771(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618773 = query.getOrDefault("Action") - valid_618773 = validateParameter(valid_618773, JString, required = true, + var valid_618775 = query.getOrDefault("Action") + valid_618775 = validateParameter(valid_618775, JString, required = true, default = newJString("DescribeInstanceTypes")) - if valid_618773 != nil: - section.add "Action", valid_618773 - var valid_618774 = query.getOrDefault("Version") - valid_618774 = validateParameter(valid_618774, JString, required = true, + if valid_618775 != nil: + section.add "Action", valid_618775 + var valid_618776 = query.getOrDefault("Version") + valid_618776 = validateParameter(valid_618776, JString, required = true, default = newJString("2016-11-15")) - if valid_618774 != nil: - section.add "Version", valid_618774 + if valid_618776 != nil: + section.add "Version", valid_618776 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -62742,41 +62769,41 @@ proc validate_PostDescribeInstanceTypes_618771(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618775 = header.getOrDefault("X-Amz-Signature") - valid_618775 = validateParameter(valid_618775, JString, required = false, - default = nil) - if valid_618775 != nil: - section.add "X-Amz-Signature", valid_618775 - var valid_618776 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618776 = validateParameter(valid_618776, JString, required = false, - default = nil) - if valid_618776 != nil: - section.add "X-Amz-Content-Sha256", valid_618776 - var valid_618777 = header.getOrDefault("X-Amz-Date") + var valid_618777 = header.getOrDefault("X-Amz-Signature") valid_618777 = validateParameter(valid_618777, JString, required = false, default = nil) if valid_618777 != nil: - section.add "X-Amz-Date", valid_618777 - var valid_618778 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618777 + var valid_618778 = header.getOrDefault("X-Amz-Content-Sha256") valid_618778 = validateParameter(valid_618778, JString, required = false, default = nil) if valid_618778 != nil: - section.add "X-Amz-Credential", valid_618778 - var valid_618779 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618778 + var valid_618779 = header.getOrDefault("X-Amz-Date") valid_618779 = validateParameter(valid_618779, JString, required = false, default = nil) if valid_618779 != nil: - section.add "X-Amz-Security-Token", valid_618779 - var valid_618780 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618779 + var valid_618780 = header.getOrDefault("X-Amz-Credential") valid_618780 = validateParameter(valid_618780, JString, required = false, default = nil) if valid_618780 != nil: - section.add "X-Amz-Algorithm", valid_618780 - var valid_618781 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618780 + var valid_618781 = header.getOrDefault("X-Amz-Security-Token") valid_618781 = validateParameter(valid_618781, JString, required = false, default = nil) if valid_618781 != nil: - section.add "X-Amz-SignedHeaders", valid_618781 + section.add "X-Amz-Security-Token", valid_618781 + var valid_618782 = header.getOrDefault("X-Amz-Algorithm") + valid_618782 = validateParameter(valid_618782, JString, required = false, + default = nil) + if valid_618782 != nil: + section.add "X-Amz-Algorithm", valid_618782 + var valid_618783 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618783 = validateParameter(valid_618783, JString, required = false, + default = nil) + if valid_618783 != nil: + section.add "X-Amz-SignedHeaders", valid_618783 result.add "header", section ## parameters in `formData` object: ## InstanceType: JArray @@ -62791,47 +62818,47 @@ proc validate_PostDescribeInstanceTypes_618771(path: JsonNode; query: JsonNode; ## Filter: JArray ## :

One or more filters. Filter names and values are case-sensitive.

section = newJObject() - var valid_618782 = formData.getOrDefault("InstanceType") - valid_618782 = validateParameter(valid_618782, JArray, required = false, + var valid_618784 = formData.getOrDefault("InstanceType") + valid_618784 = validateParameter(valid_618784, JArray, required = false, default = nil) - if valid_618782 != nil: - section.add "InstanceType", valid_618782 - var valid_618783 = formData.getOrDefault("NextToken") - valid_618783 = validateParameter(valid_618783, JString, required = false, - default = nil) - if valid_618783 != nil: - section.add "NextToken", valid_618783 - var valid_618784 = formData.getOrDefault("DryRun") - valid_618784 = validateParameter(valid_618784, JBool, required = false, default = nil) if valid_618784 != nil: - section.add "DryRun", valid_618784 - var valid_618785 = formData.getOrDefault("MaxResults") - valid_618785 = validateParameter(valid_618785, JInt, required = false, default = nil) - if valid_618785 != nil: - section.add "MaxResults", valid_618785 - var valid_618786 = formData.getOrDefault("Filter") - valid_618786 = validateParameter(valid_618786, JArray, required = false, + section.add "InstanceType", valid_618784 + var valid_618785 = formData.getOrDefault("NextToken") + valid_618785 = validateParameter(valid_618785, JString, required = false, default = nil) + if valid_618785 != nil: + section.add "NextToken", valid_618785 + var valid_618786 = formData.getOrDefault("DryRun") + valid_618786 = validateParameter(valid_618786, JBool, required = false, default = nil) if valid_618786 != nil: - section.add "Filter", valid_618786 + section.add "DryRun", valid_618786 + var valid_618787 = formData.getOrDefault("MaxResults") + valid_618787 = validateParameter(valid_618787, JInt, required = false, default = nil) + if valid_618787 != nil: + section.add "MaxResults", valid_618787 + var valid_618788 = formData.getOrDefault("Filter") + valid_618788 = validateParameter(valid_618788, JArray, required = false, + default = nil) + if valid_618788 != nil: + section.add "Filter", valid_618788 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618787: Call_PostDescribeInstanceTypes_618770; path: JsonNode; +proc call*(call_618789: Call_PostDescribeInstanceTypes_618772; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Returns a list of all instance types offered in your current AWS Region. The results can be filtered by the attributes of the instance types. ## - let valid = call_618787.validator(path, query, header, formData, body) - let scheme = call_618787.pickScheme + let valid = call_618789.validator(path, query, header, formData, body) + let scheme = call_618789.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618787.url(scheme.get, call_618787.host, call_618787.base, - call_618787.route, valid.getOrDefault("path"), + let url = call_618789.url(scheme.get, call_618789.host, call_618789.base, + call_618789.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618787, url, valid) + result = atozHook(call_618789, url, valid) -proc call*(call_618788: Call_PostDescribeInstanceTypes_618770; +proc call*(call_618790: Call_PostDescribeInstanceTypes_618772; InstanceType: JsonNode = nil; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeInstanceTypes"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -62850,28 +62877,28 @@ proc call*(call_618788: Call_PostDescribeInstanceTypes_618770; ## : The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the next token value. ## Filter: JArray ## :

One or more filters. Filter names and values are case-sensitive.

- var query_618789 = newJObject() - var formData_618790 = newJObject() + var query_618791 = newJObject() + var formData_618792 = newJObject() if InstanceType != nil: - formData_618790.add "InstanceType", InstanceType - add(formData_618790, "NextToken", newJString(NextToken)) - add(formData_618790, "DryRun", newJBool(DryRun)) - add(query_618789, "Action", newJString(Action)) - add(query_618789, "Version", newJString(Version)) - add(formData_618790, "MaxResults", newJInt(MaxResults)) + formData_618792.add "InstanceType", InstanceType + add(formData_618792, "NextToken", newJString(NextToken)) + add(formData_618792, "DryRun", newJBool(DryRun)) + add(query_618791, "Action", newJString(Action)) + add(query_618791, "Version", newJString(Version)) + add(formData_618792, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_618790.add "Filter", Filter - result = call_618788.call(nil, query_618789, nil, formData_618790, nil) + formData_618792.add "Filter", Filter + result = call_618790.call(nil, query_618791, nil, formData_618792, nil) -var postDescribeInstanceTypes* = Call_PostDescribeInstanceTypes_618770( +var postDescribeInstanceTypes* = Call_PostDescribeInstanceTypes_618772( name: "postDescribeInstanceTypes", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeInstanceTypes", - validator: validate_PostDescribeInstanceTypes_618771, base: "/", - url: url_PostDescribeInstanceTypes_618772, + validator: validate_PostDescribeInstanceTypes_618773, base: "/", + url: url_PostDescribeInstanceTypes_618774, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeInstanceTypes_618750 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeInstanceTypes_618752(protocol: Scheme; host: string; + Call_GetDescribeInstanceTypes_618752 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeInstanceTypes_618754(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -62882,7 +62909,7 @@ proc url_GetDescribeInstanceTypes_618752(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeInstanceTypes_618751(path: JsonNode; query: JsonNode; +proc validate_GetDescribeInstanceTypes_618753(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Returns a list of all instance types offered in your current AWS Region. The results can be filtered by the attributes of the instance types. ## @@ -62905,39 +62932,39 @@ proc validate_GetDescribeInstanceTypes_618751(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618753 = query.getOrDefault("MaxResults") - valid_618753 = validateParameter(valid_618753, JInt, required = false, default = nil) - if valid_618753 != nil: - section.add "MaxResults", valid_618753 - var valid_618754 = query.getOrDefault("DryRun") - valid_618754 = validateParameter(valid_618754, JBool, required = false, default = nil) - if valid_618754 != nil: - section.add "DryRun", valid_618754 - var valid_618755 = query.getOrDefault("NextToken") - valid_618755 = validateParameter(valid_618755, JString, required = false, - default = nil) + var valid_618755 = query.getOrDefault("MaxResults") + valid_618755 = validateParameter(valid_618755, JInt, required = false, default = nil) if valid_618755 != nil: - section.add "NextToken", valid_618755 - var valid_618756 = query.getOrDefault("Filter") - valid_618756 = validateParameter(valid_618756, JArray, required = false, - default = nil) + section.add "MaxResults", valid_618755 + var valid_618756 = query.getOrDefault("DryRun") + valid_618756 = validateParameter(valid_618756, JBool, required = false, default = nil) if valid_618756 != nil: - section.add "Filter", valid_618756 - var valid_618757 = query.getOrDefault("InstanceType") - valid_618757 = validateParameter(valid_618757, JArray, required = false, + section.add "DryRun", valid_618756 + var valid_618757 = query.getOrDefault("NextToken") + valid_618757 = validateParameter(valid_618757, JString, required = false, default = nil) if valid_618757 != nil: - section.add "InstanceType", valid_618757 - var valid_618758 = query.getOrDefault("Action") - valid_618758 = validateParameter(valid_618758, JString, required = true, - default = newJString("DescribeInstanceTypes")) + section.add "NextToken", valid_618757 + var valid_618758 = query.getOrDefault("Filter") + valid_618758 = validateParameter(valid_618758, JArray, required = false, + default = nil) if valid_618758 != nil: - section.add "Action", valid_618758 - var valid_618759 = query.getOrDefault("Version") - valid_618759 = validateParameter(valid_618759, JString, required = true, - default = newJString("2016-11-15")) + section.add "Filter", valid_618758 + var valid_618759 = query.getOrDefault("InstanceType") + valid_618759 = validateParameter(valid_618759, JArray, required = false, + default = nil) if valid_618759 != nil: - section.add "Version", valid_618759 + section.add "InstanceType", valid_618759 + var valid_618760 = query.getOrDefault("Action") + valid_618760 = validateParameter(valid_618760, JString, required = true, + default = newJString("DescribeInstanceTypes")) + if valid_618760 != nil: + section.add "Action", valid_618760 + var valid_618761 = query.getOrDefault("Version") + valid_618761 = validateParameter(valid_618761, JString, required = true, + default = newJString("2016-11-15")) + if valid_618761 != nil: + section.add "Version", valid_618761 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -62948,61 +62975,61 @@ proc validate_GetDescribeInstanceTypes_618751(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618760 = header.getOrDefault("X-Amz-Signature") - valid_618760 = validateParameter(valid_618760, JString, required = false, - default = nil) - if valid_618760 != nil: - section.add "X-Amz-Signature", valid_618760 - var valid_618761 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618761 = validateParameter(valid_618761, JString, required = false, - default = nil) - if valid_618761 != nil: - section.add "X-Amz-Content-Sha256", valid_618761 - var valid_618762 = header.getOrDefault("X-Amz-Date") + var valid_618762 = header.getOrDefault("X-Amz-Signature") valid_618762 = validateParameter(valid_618762, JString, required = false, default = nil) if valid_618762 != nil: - section.add "X-Amz-Date", valid_618762 - var valid_618763 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618762 + var valid_618763 = header.getOrDefault("X-Amz-Content-Sha256") valid_618763 = validateParameter(valid_618763, JString, required = false, default = nil) if valid_618763 != nil: - section.add "X-Amz-Credential", valid_618763 - var valid_618764 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618763 + var valid_618764 = header.getOrDefault("X-Amz-Date") valid_618764 = validateParameter(valid_618764, JString, required = false, default = nil) if valid_618764 != nil: - section.add "X-Amz-Security-Token", valid_618764 - var valid_618765 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618764 + var valid_618765 = header.getOrDefault("X-Amz-Credential") valid_618765 = validateParameter(valid_618765, JString, required = false, default = nil) if valid_618765 != nil: - section.add "X-Amz-Algorithm", valid_618765 - var valid_618766 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618765 + var valid_618766 = header.getOrDefault("X-Amz-Security-Token") valid_618766 = validateParameter(valid_618766, JString, required = false, default = nil) if valid_618766 != nil: - section.add "X-Amz-SignedHeaders", valid_618766 + section.add "X-Amz-Security-Token", valid_618766 + var valid_618767 = header.getOrDefault("X-Amz-Algorithm") + valid_618767 = validateParameter(valid_618767, JString, required = false, + default = nil) + if valid_618767 != nil: + section.add "X-Amz-Algorithm", valid_618767 + var valid_618768 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618768 = validateParameter(valid_618768, JString, required = false, + default = nil) + if valid_618768 != nil: + section.add "X-Amz-SignedHeaders", valid_618768 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618767: Call_GetDescribeInstanceTypes_618750; path: JsonNode; +proc call*(call_618769: Call_GetDescribeInstanceTypes_618752; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Returns a list of all instance types offered in your current AWS Region. The results can be filtered by the attributes of the instance types. ## - let valid = call_618767.validator(path, query, header, formData, body) - let scheme = call_618767.pickScheme + let valid = call_618769.validator(path, query, header, formData, body) + let scheme = call_618769.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618767.url(scheme.get, call_618767.host, call_618767.base, - call_618767.route, valid.getOrDefault("path"), + let url = call_618769.url(scheme.get, call_618769.host, call_618769.base, + call_618769.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618767, url, valid) + result = atozHook(call_618769, url, valid) -proc call*(call_618768: Call_GetDescribeInstanceTypes_618750; MaxResults: int = 0; +proc call*(call_618770: Call_GetDescribeInstanceTypes_618752; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; InstanceType: JsonNode = nil; Action: string = "DescribeInstanceTypes"; Version: string = "2016-11-15"): Recallable = @@ -63021,26 +63048,26 @@ proc call*(call_618768: Call_GetDescribeInstanceTypes_618750; MaxResults: int = ## href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html">Instance Types in the Amazon Elastic Compute Cloud User Guide. ## Action: string (required) ## Version: string (required) - var query_618769 = newJObject() - add(query_618769, "MaxResults", newJInt(MaxResults)) - add(query_618769, "DryRun", newJBool(DryRun)) - add(query_618769, "NextToken", newJString(NextToken)) + var query_618771 = newJObject() + add(query_618771, "MaxResults", newJInt(MaxResults)) + add(query_618771, "DryRun", newJBool(DryRun)) + add(query_618771, "NextToken", newJString(NextToken)) if Filter != nil: - query_618769.add "Filter", Filter + query_618771.add "Filter", Filter if InstanceType != nil: - query_618769.add "InstanceType", InstanceType - add(query_618769, "Action", newJString(Action)) - add(query_618769, "Version", newJString(Version)) - result = call_618768.call(nil, query_618769, nil, nil, nil) + query_618771.add "InstanceType", InstanceType + add(query_618771, "Action", newJString(Action)) + add(query_618771, "Version", newJString(Version)) + result = call_618770.call(nil, query_618771, nil, nil, nil) -var getDescribeInstanceTypes* = Call_GetDescribeInstanceTypes_618750( +var getDescribeInstanceTypes* = Call_GetDescribeInstanceTypes_618752( name: "getDescribeInstanceTypes", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeInstanceTypes", - validator: validate_GetDescribeInstanceTypes_618751, base: "/", - url: url_GetDescribeInstanceTypes_618752, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDescribeInstanceTypes_618753, base: "/", + url: url_GetDescribeInstanceTypes_618754, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeInstances_618811 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeInstances_618813(protocol: Scheme; host: string; base: string; + Call_PostDescribeInstances_618813 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeInstances_618815(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -63050,7 +63077,7 @@ proc url_PostDescribeInstances_618813(protocol: Scheme; host: string; base: stri else: result.path = base & route -proc validate_PostDescribeInstances_618812(path: JsonNode; query: JsonNode; +proc validate_PostDescribeInstances_618814(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the specified instances or all of AWS account's instances.

If you specify one or more instance IDs, Amazon EC2 returns information for those instances. If you do not specify instance IDs, Amazon EC2 returns information for all relevant instances. If you specify an instance ID that is not valid, an error is returned. If you specify an instance that you do not own, it is not included in the returned results.

Recently terminated instances might appear in the returned results. This interval is usually less than one hour.

If you describe instances in the rare case where an Availability Zone is experiencing a service disruption and you specify instance IDs that are in the affected zone, or do not specify any instance IDs at all, the call fails. If you describe instances and specify only instance IDs that are in an unaffected zone, the call works normally.

## @@ -63062,16 +63089,16 @@ proc validate_PostDescribeInstances_618812(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618814 = query.getOrDefault("Action") - valid_618814 = validateParameter(valid_618814, JString, required = true, + var valid_618816 = query.getOrDefault("Action") + valid_618816 = validateParameter(valid_618816, JString, required = true, default = newJString("DescribeInstances")) - if valid_618814 != nil: - section.add "Action", valid_618814 - var valid_618815 = query.getOrDefault("Version") - valid_618815 = validateParameter(valid_618815, JString, required = true, + if valid_618816 != nil: + section.add "Action", valid_618816 + var valid_618817 = query.getOrDefault("Version") + valid_618817 = validateParameter(valid_618817, JString, required = true, default = newJString("2016-11-15")) - if valid_618815 != nil: - section.add "Version", valid_618815 + if valid_618817 != nil: + section.add "Version", valid_618817 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -63082,41 +63109,41 @@ proc validate_PostDescribeInstances_618812(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618816 = header.getOrDefault("X-Amz-Signature") - valid_618816 = validateParameter(valid_618816, JString, required = false, - default = nil) - if valid_618816 != nil: - section.add "X-Amz-Signature", valid_618816 - var valid_618817 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618817 = validateParameter(valid_618817, JString, required = false, - default = nil) - if valid_618817 != nil: - section.add "X-Amz-Content-Sha256", valid_618817 - var valid_618818 = header.getOrDefault("X-Amz-Date") + var valid_618818 = header.getOrDefault("X-Amz-Signature") valid_618818 = validateParameter(valid_618818, JString, required = false, default = nil) if valid_618818 != nil: - section.add "X-Amz-Date", valid_618818 - var valid_618819 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618818 + var valid_618819 = header.getOrDefault("X-Amz-Content-Sha256") valid_618819 = validateParameter(valid_618819, JString, required = false, default = nil) if valid_618819 != nil: - section.add "X-Amz-Credential", valid_618819 - var valid_618820 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618819 + var valid_618820 = header.getOrDefault("X-Amz-Date") valid_618820 = validateParameter(valid_618820, JString, required = false, default = nil) if valid_618820 != nil: - section.add "X-Amz-Security-Token", valid_618820 - var valid_618821 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618820 + var valid_618821 = header.getOrDefault("X-Amz-Credential") valid_618821 = validateParameter(valid_618821, JString, required = false, default = nil) if valid_618821 != nil: - section.add "X-Amz-Algorithm", valid_618821 - var valid_618822 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618821 + var valid_618822 = header.getOrDefault("X-Amz-Security-Token") valid_618822 = validateParameter(valid_618822, JString, required = false, default = nil) if valid_618822 != nil: - section.add "X-Amz-SignedHeaders", valid_618822 + section.add "X-Amz-Security-Token", valid_618822 + var valid_618823 = header.getOrDefault("X-Amz-Algorithm") + valid_618823 = validateParameter(valid_618823, JString, required = false, + default = nil) + if valid_618823 != nil: + section.add "X-Amz-Algorithm", valid_618823 + var valid_618824 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618824 = validateParameter(valid_618824, JString, required = false, + default = nil) + if valid_618824 != nil: + section.add "X-Amz-SignedHeaders", valid_618824 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -63130,47 +63157,47 @@ proc validate_PostDescribeInstances_618812(path: JsonNode; query: JsonNode; ## Filter: JArray ## :

The filters.

section = newJObject() - var valid_618823 = formData.getOrDefault("NextToken") - valid_618823 = validateParameter(valid_618823, JString, required = false, - default = nil) - if valid_618823 != nil: - section.add "NextToken", valid_618823 - var valid_618824 = formData.getOrDefault("DryRun") - valid_618824 = validateParameter(valid_618824, JBool, required = false, default = nil) - if valid_618824 != nil: - section.add "DryRun", valid_618824 - var valid_618825 = formData.getOrDefault("InstanceId") - valid_618825 = validateParameter(valid_618825, JArray, required = false, + var valid_618825 = formData.getOrDefault("NextToken") + valid_618825 = validateParameter(valid_618825, JString, required = false, default = nil) if valid_618825 != nil: - section.add "InstanceId", valid_618825 - var valid_618826 = formData.getOrDefault("MaxResults") - valid_618826 = validateParameter(valid_618826, JInt, required = false, default = nil) + section.add "NextToken", valid_618825 + var valid_618826 = formData.getOrDefault("DryRun") + valid_618826 = validateParameter(valid_618826, JBool, required = false, default = nil) if valid_618826 != nil: - section.add "MaxResults", valid_618826 - var valid_618827 = formData.getOrDefault("Filter") + section.add "DryRun", valid_618826 + var valid_618827 = formData.getOrDefault("InstanceId") valid_618827 = validateParameter(valid_618827, JArray, required = false, default = nil) if valid_618827 != nil: - section.add "Filter", valid_618827 + section.add "InstanceId", valid_618827 + var valid_618828 = formData.getOrDefault("MaxResults") + valid_618828 = validateParameter(valid_618828, JInt, required = false, default = nil) + if valid_618828 != nil: + section.add "MaxResults", valid_618828 + var valid_618829 = formData.getOrDefault("Filter") + valid_618829 = validateParameter(valid_618829, JArray, required = false, + default = nil) + if valid_618829 != nil: + section.add "Filter", valid_618829 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618828: Call_PostDescribeInstances_618811; path: JsonNode; +proc call*(call_618830: Call_PostDescribeInstances_618813; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the specified instances or all of AWS account's instances.

If you specify one or more instance IDs, Amazon EC2 returns information for those instances. If you do not specify instance IDs, Amazon EC2 returns information for all relevant instances. If you specify an instance ID that is not valid, an error is returned. If you specify an instance that you do not own, it is not included in the returned results.

Recently terminated instances might appear in the returned results. This interval is usually less than one hour.

If you describe instances in the rare case where an Availability Zone is experiencing a service disruption and you specify instance IDs that are in the affected zone, or do not specify any instance IDs at all, the call fails. If you describe instances and specify only instance IDs that are in an unaffected zone, the call works normally.

## - let valid = call_618828.validator(path, query, header, formData, body) - let scheme = call_618828.pickScheme + let valid = call_618830.validator(path, query, header, formData, body) + let scheme = call_618830.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618828.url(scheme.get, call_618828.host, call_618828.base, - call_618828.route, valid.getOrDefault("path"), + let url = call_618830.url(scheme.get, call_618830.host, call_618830.base, + call_618830.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618828, url, valid) + result = atozHook(call_618830, url, valid) -proc call*(call_618829: Call_PostDescribeInstances_618811; NextToken: string = ""; +proc call*(call_618831: Call_PostDescribeInstances_618813; NextToken: string = ""; DryRun: bool = false; InstanceId: JsonNode = nil; Action: string = "DescribeInstances"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -63188,27 +63215,27 @@ proc call*(call_618829: Call_PostDescribeInstances_618811; NextToken: string = " ## : The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value. This value can be between 5 and 1000. You cannot specify this parameter and the instance IDs parameter in the same call. ## Filter: JArray ## :

The filters.

- var query_618830 = newJObject() - var formData_618831 = newJObject() - add(formData_618831, "NextToken", newJString(NextToken)) - add(formData_618831, "DryRun", newJBool(DryRun)) + var query_618832 = newJObject() + var formData_618833 = newJObject() + add(formData_618833, "NextToken", newJString(NextToken)) + add(formData_618833, "DryRun", newJBool(DryRun)) if InstanceId != nil: - formData_618831.add "InstanceId", InstanceId - add(query_618830, "Action", newJString(Action)) - add(query_618830, "Version", newJString(Version)) - add(formData_618831, "MaxResults", newJInt(MaxResults)) + formData_618833.add "InstanceId", InstanceId + add(query_618832, "Action", newJString(Action)) + add(query_618832, "Version", newJString(Version)) + add(formData_618833, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_618831.add "Filter", Filter - result = call_618829.call(nil, query_618830, nil, formData_618831, nil) + formData_618833.add "Filter", Filter + result = call_618831.call(nil, query_618832, nil, formData_618833, nil) -var postDescribeInstances* = Call_PostDescribeInstances_618811( +var postDescribeInstances* = Call_PostDescribeInstances_618813( name: "postDescribeInstances", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeInstances", - validator: validate_PostDescribeInstances_618812, base: "/", - url: url_PostDescribeInstances_618813, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDescribeInstances_618814, base: "/", + url: url_PostDescribeInstances_618815, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeInstances_618791 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeInstances_618793(protocol: Scheme; host: string; base: string; + Call_GetDescribeInstances_618793 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeInstances_618795(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -63218,7 +63245,7 @@ proc url_GetDescribeInstances_618793(protocol: Scheme; host: string; base: strin else: result.path = base & route -proc validate_GetDescribeInstances_618792(path: JsonNode; query: JsonNode; +proc validate_GetDescribeInstances_618794(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the specified instances or all of AWS account's instances.

If you specify one or more instance IDs, Amazon EC2 returns information for those instances. If you do not specify instance IDs, Amazon EC2 returns information for all relevant instances. If you specify an instance ID that is not valid, an error is returned. If you specify an instance that you do not own, it is not included in the returned results.

Recently terminated instances might appear in the returned results. This interval is usually less than one hour.

If you describe instances in the rare case where an Availability Zone is experiencing a service disruption and you specify instance IDs that are in the affected zone, or do not specify any instance IDs at all, the call fails. If you describe instances and specify only instance IDs that are in an unaffected zone, the call works normally.

## @@ -63240,39 +63267,39 @@ proc validate_GetDescribeInstances_618792(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618794 = query.getOrDefault("MaxResults") - valid_618794 = validateParameter(valid_618794, JInt, required = false, default = nil) - if valid_618794 != nil: - section.add "MaxResults", valid_618794 - var valid_618795 = query.getOrDefault("DryRun") - valid_618795 = validateParameter(valid_618795, JBool, required = false, default = nil) - if valid_618795 != nil: - section.add "DryRun", valid_618795 - var valid_618796 = query.getOrDefault("NextToken") - valid_618796 = validateParameter(valid_618796, JString, required = false, - default = nil) + var valid_618796 = query.getOrDefault("MaxResults") + valid_618796 = validateParameter(valid_618796, JInt, required = false, default = nil) if valid_618796 != nil: - section.add "NextToken", valid_618796 - var valid_618797 = query.getOrDefault("InstanceId") - valid_618797 = validateParameter(valid_618797, JArray, required = false, - default = nil) + section.add "MaxResults", valid_618796 + var valid_618797 = query.getOrDefault("DryRun") + valid_618797 = validateParameter(valid_618797, JBool, required = false, default = nil) if valid_618797 != nil: - section.add "InstanceId", valid_618797 - var valid_618798 = query.getOrDefault("Filter") - valid_618798 = validateParameter(valid_618798, JArray, required = false, + section.add "DryRun", valid_618797 + var valid_618798 = query.getOrDefault("NextToken") + valid_618798 = validateParameter(valid_618798, JString, required = false, default = nil) if valid_618798 != nil: - section.add "Filter", valid_618798 - var valid_618799 = query.getOrDefault("Action") - valid_618799 = validateParameter(valid_618799, JString, required = true, - default = newJString("DescribeInstances")) + section.add "NextToken", valid_618798 + var valid_618799 = query.getOrDefault("InstanceId") + valid_618799 = validateParameter(valid_618799, JArray, required = false, + default = nil) if valid_618799 != nil: - section.add "Action", valid_618799 - var valid_618800 = query.getOrDefault("Version") - valid_618800 = validateParameter(valid_618800, JString, required = true, - default = newJString("2016-11-15")) + section.add "InstanceId", valid_618799 + var valid_618800 = query.getOrDefault("Filter") + valid_618800 = validateParameter(valid_618800, JArray, required = false, + default = nil) if valid_618800 != nil: - section.add "Version", valid_618800 + section.add "Filter", valid_618800 + var valid_618801 = query.getOrDefault("Action") + valid_618801 = validateParameter(valid_618801, JString, required = true, + default = newJString("DescribeInstances")) + if valid_618801 != nil: + section.add "Action", valid_618801 + var valid_618802 = query.getOrDefault("Version") + valid_618802 = validateParameter(valid_618802, JString, required = true, + default = newJString("2016-11-15")) + if valid_618802 != nil: + section.add "Version", valid_618802 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -63283,61 +63310,61 @@ proc validate_GetDescribeInstances_618792(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618801 = header.getOrDefault("X-Amz-Signature") - valid_618801 = validateParameter(valid_618801, JString, required = false, - default = nil) - if valid_618801 != nil: - section.add "X-Amz-Signature", valid_618801 - var valid_618802 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618802 = validateParameter(valid_618802, JString, required = false, - default = nil) - if valid_618802 != nil: - section.add "X-Amz-Content-Sha256", valid_618802 - var valid_618803 = header.getOrDefault("X-Amz-Date") + var valid_618803 = header.getOrDefault("X-Amz-Signature") valid_618803 = validateParameter(valid_618803, JString, required = false, default = nil) if valid_618803 != nil: - section.add "X-Amz-Date", valid_618803 - var valid_618804 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618803 + var valid_618804 = header.getOrDefault("X-Amz-Content-Sha256") valid_618804 = validateParameter(valid_618804, JString, required = false, default = nil) if valid_618804 != nil: - section.add "X-Amz-Credential", valid_618804 - var valid_618805 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618804 + var valid_618805 = header.getOrDefault("X-Amz-Date") valid_618805 = validateParameter(valid_618805, JString, required = false, default = nil) if valid_618805 != nil: - section.add "X-Amz-Security-Token", valid_618805 - var valid_618806 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618805 + var valid_618806 = header.getOrDefault("X-Amz-Credential") valid_618806 = validateParameter(valid_618806, JString, required = false, default = nil) if valid_618806 != nil: - section.add "X-Amz-Algorithm", valid_618806 - var valid_618807 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618806 + var valid_618807 = header.getOrDefault("X-Amz-Security-Token") valid_618807 = validateParameter(valid_618807, JString, required = false, default = nil) if valid_618807 != nil: - section.add "X-Amz-SignedHeaders", valid_618807 + section.add "X-Amz-Security-Token", valid_618807 + var valid_618808 = header.getOrDefault("X-Amz-Algorithm") + valid_618808 = validateParameter(valid_618808, JString, required = false, + default = nil) + if valid_618808 != nil: + section.add "X-Amz-Algorithm", valid_618808 + var valid_618809 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618809 = validateParameter(valid_618809, JString, required = false, + default = nil) + if valid_618809 != nil: + section.add "X-Amz-SignedHeaders", valid_618809 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618808: Call_GetDescribeInstances_618791; path: JsonNode; +proc call*(call_618810: Call_GetDescribeInstances_618793; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the specified instances or all of AWS account's instances.

If you specify one or more instance IDs, Amazon EC2 returns information for those instances. If you do not specify instance IDs, Amazon EC2 returns information for all relevant instances. If you specify an instance ID that is not valid, an error is returned. If you specify an instance that you do not own, it is not included in the returned results.

Recently terminated instances might appear in the returned results. This interval is usually less than one hour.

If you describe instances in the rare case where an Availability Zone is experiencing a service disruption and you specify instance IDs that are in the affected zone, or do not specify any instance IDs at all, the call fails. If you describe instances and specify only instance IDs that are in an unaffected zone, the call works normally.

## - let valid = call_618808.validator(path, query, header, formData, body) - let scheme = call_618808.pickScheme + let valid = call_618810.validator(path, query, header, formData, body) + let scheme = call_618810.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618808.url(scheme.get, call_618808.host, call_618808.base, - call_618808.route, valid.getOrDefault("path"), + let url = call_618810.url(scheme.get, call_618810.host, call_618810.base, + call_618810.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618808, url, valid) + result = atozHook(call_618810, url, valid) -proc call*(call_618809: Call_GetDescribeInstances_618791; MaxResults: int = 0; +proc call*(call_618811: Call_GetDescribeInstances_618793; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; InstanceId: JsonNode = nil; Filter: JsonNode = nil; Action: string = "DescribeInstances"; Version: string = "2016-11-15"): Recallable = @@ -63355,26 +63382,26 @@ proc call*(call_618809: Call_GetDescribeInstances_618791; MaxResults: int = 0; ## :

The filters.

## Action: string (required) ## Version: string (required) - var query_618810 = newJObject() - add(query_618810, "MaxResults", newJInt(MaxResults)) - add(query_618810, "DryRun", newJBool(DryRun)) - add(query_618810, "NextToken", newJString(NextToken)) + var query_618812 = newJObject() + add(query_618812, "MaxResults", newJInt(MaxResults)) + add(query_618812, "DryRun", newJBool(DryRun)) + add(query_618812, "NextToken", newJString(NextToken)) if InstanceId != nil: - query_618810.add "InstanceId", InstanceId + query_618812.add "InstanceId", InstanceId if Filter != nil: - query_618810.add "Filter", Filter - add(query_618810, "Action", newJString(Action)) - add(query_618810, "Version", newJString(Version)) - result = call_618809.call(nil, query_618810, nil, nil, nil) + query_618812.add "Filter", Filter + add(query_618812, "Action", newJString(Action)) + add(query_618812, "Version", newJString(Version)) + result = call_618811.call(nil, query_618812, nil, nil, nil) -var getDescribeInstances* = Call_GetDescribeInstances_618791( +var getDescribeInstances* = Call_GetDescribeInstances_618793( name: "getDescribeInstances", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeInstances", - validator: validate_GetDescribeInstances_618792, base: "/", - url: url_GetDescribeInstances_618793, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDescribeInstances_618794, base: "/", + url: url_GetDescribeInstances_618795, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeInternetGateways_618852 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeInternetGateways_618854(protocol: Scheme; host: string; + Call_PostDescribeInternetGateways_618854 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeInternetGateways_618856(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -63384,7 +63411,7 @@ proc url_PostDescribeInternetGateways_618854(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeInternetGateways_618853(path: JsonNode; query: JsonNode; +proc validate_PostDescribeInternetGateways_618855(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more of your internet gateways. ## @@ -63396,16 +63423,16 @@ proc validate_PostDescribeInternetGateways_618853(path: JsonNode; query: JsonNod ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618855 = query.getOrDefault("Action") - valid_618855 = validateParameter(valid_618855, JString, required = true, default = newJString( + var valid_618857 = query.getOrDefault("Action") + valid_618857 = validateParameter(valid_618857, JString, required = true, default = newJString( "DescribeInternetGateways")) - if valid_618855 != nil: - section.add "Action", valid_618855 - var valid_618856 = query.getOrDefault("Version") - valid_618856 = validateParameter(valid_618856, JString, required = true, + if valid_618857 != nil: + section.add "Action", valid_618857 + var valid_618858 = query.getOrDefault("Version") + valid_618858 = validateParameter(valid_618858, JString, required = true, default = newJString("2016-11-15")) - if valid_618856 != nil: - section.add "Version", valid_618856 + if valid_618858 != nil: + section.add "Version", valid_618858 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -63416,41 +63443,41 @@ proc validate_PostDescribeInternetGateways_618853(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618857 = header.getOrDefault("X-Amz-Signature") - valid_618857 = validateParameter(valid_618857, JString, required = false, - default = nil) - if valid_618857 != nil: - section.add "X-Amz-Signature", valid_618857 - var valid_618858 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618858 = validateParameter(valid_618858, JString, required = false, - default = nil) - if valid_618858 != nil: - section.add "X-Amz-Content-Sha256", valid_618858 - var valid_618859 = header.getOrDefault("X-Amz-Date") + var valid_618859 = header.getOrDefault("X-Amz-Signature") valid_618859 = validateParameter(valid_618859, JString, required = false, default = nil) if valid_618859 != nil: - section.add "X-Amz-Date", valid_618859 - var valid_618860 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618859 + var valid_618860 = header.getOrDefault("X-Amz-Content-Sha256") valid_618860 = validateParameter(valid_618860, JString, required = false, default = nil) if valid_618860 != nil: - section.add "X-Amz-Credential", valid_618860 - var valid_618861 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618860 + var valid_618861 = header.getOrDefault("X-Amz-Date") valid_618861 = validateParameter(valid_618861, JString, required = false, default = nil) if valid_618861 != nil: - section.add "X-Amz-Security-Token", valid_618861 - var valid_618862 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618861 + var valid_618862 = header.getOrDefault("X-Amz-Credential") valid_618862 = validateParameter(valid_618862, JString, required = false, default = nil) if valid_618862 != nil: - section.add "X-Amz-Algorithm", valid_618862 - var valid_618863 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618862 + var valid_618863 = header.getOrDefault("X-Amz-Security-Token") valid_618863 = validateParameter(valid_618863, JString, required = false, default = nil) if valid_618863 != nil: - section.add "X-Amz-SignedHeaders", valid_618863 + section.add "X-Amz-Security-Token", valid_618863 + var valid_618864 = header.getOrDefault("X-Amz-Algorithm") + valid_618864 = validateParameter(valid_618864, JString, required = false, + default = nil) + if valid_618864 != nil: + section.add "X-Amz-Algorithm", valid_618864 + var valid_618865 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618865 = validateParameter(valid_618865, JString, required = false, + default = nil) + if valid_618865 != nil: + section.add "X-Amz-SignedHeaders", valid_618865 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -63464,47 +63491,47 @@ proc validate_PostDescribeInternetGateways_618853(path: JsonNode; query: JsonNod ## Filter: JArray ## :

One or more filters.

section = newJObject() - var valid_618864 = formData.getOrDefault("NextToken") - valid_618864 = validateParameter(valid_618864, JString, required = false, + var valid_618866 = formData.getOrDefault("NextToken") + valid_618866 = validateParameter(valid_618866, JString, required = false, default = nil) - if valid_618864 != nil: - section.add "NextToken", valid_618864 - var valid_618865 = formData.getOrDefault("InternetGatewayId") - valid_618865 = validateParameter(valid_618865, JArray, required = false, - default = nil) - if valid_618865 != nil: - section.add "InternetGatewayId", valid_618865 - var valid_618866 = formData.getOrDefault("DryRun") - valid_618866 = validateParameter(valid_618866, JBool, required = false, default = nil) if valid_618866 != nil: - section.add "DryRun", valid_618866 - var valid_618867 = formData.getOrDefault("MaxResults") - valid_618867 = validateParameter(valid_618867, JInt, required = false, default = nil) - if valid_618867 != nil: - section.add "MaxResults", valid_618867 - var valid_618868 = formData.getOrDefault("Filter") - valid_618868 = validateParameter(valid_618868, JArray, required = false, + section.add "NextToken", valid_618866 + var valid_618867 = formData.getOrDefault("InternetGatewayId") + valid_618867 = validateParameter(valid_618867, JArray, required = false, default = nil) + if valid_618867 != nil: + section.add "InternetGatewayId", valid_618867 + var valid_618868 = formData.getOrDefault("DryRun") + valid_618868 = validateParameter(valid_618868, JBool, required = false, default = nil) if valid_618868 != nil: - section.add "Filter", valid_618868 + section.add "DryRun", valid_618868 + var valid_618869 = formData.getOrDefault("MaxResults") + valid_618869 = validateParameter(valid_618869, JInt, required = false, default = nil) + if valid_618869 != nil: + section.add "MaxResults", valid_618869 + var valid_618870 = formData.getOrDefault("Filter") + valid_618870 = validateParameter(valid_618870, JArray, required = false, + default = nil) + if valid_618870 != nil: + section.add "Filter", valid_618870 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618869: Call_PostDescribeInternetGateways_618852; path: JsonNode; +proc call*(call_618871: Call_PostDescribeInternetGateways_618854; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more of your internet gateways. ## - let valid = call_618869.validator(path, query, header, formData, body) - let scheme = call_618869.pickScheme + let valid = call_618871.validator(path, query, header, formData, body) + let scheme = call_618871.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618869.url(scheme.get, call_618869.host, call_618869.base, - call_618869.route, valid.getOrDefault("path"), + let url = call_618871.url(scheme.get, call_618871.host, call_618871.base, + call_618871.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618869, url, valid) + result = atozHook(call_618871, url, valid) -proc call*(call_618870: Call_PostDescribeInternetGateways_618852; +proc call*(call_618872: Call_PostDescribeInternetGateways_618854; NextToken: string = ""; InternetGatewayId: JsonNode = nil; DryRun: bool = false; Action: string = "DescribeInternetGateways"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -63522,28 +63549,28 @@ proc call*(call_618870: Call_PostDescribeInternetGateways_618852; ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## Filter: JArray ## :

One or more filters.

- var query_618871 = newJObject() - var formData_618872 = newJObject() - add(formData_618872, "NextToken", newJString(NextToken)) + var query_618873 = newJObject() + var formData_618874 = newJObject() + add(formData_618874, "NextToken", newJString(NextToken)) if InternetGatewayId != nil: - formData_618872.add "InternetGatewayId", InternetGatewayId - add(formData_618872, "DryRun", newJBool(DryRun)) - add(query_618871, "Action", newJString(Action)) - add(query_618871, "Version", newJString(Version)) - add(formData_618872, "MaxResults", newJInt(MaxResults)) + formData_618874.add "InternetGatewayId", InternetGatewayId + add(formData_618874, "DryRun", newJBool(DryRun)) + add(query_618873, "Action", newJString(Action)) + add(query_618873, "Version", newJString(Version)) + add(formData_618874, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_618872.add "Filter", Filter - result = call_618870.call(nil, query_618871, nil, formData_618872, nil) + formData_618874.add "Filter", Filter + result = call_618872.call(nil, query_618873, nil, formData_618874, nil) -var postDescribeInternetGateways* = Call_PostDescribeInternetGateways_618852( +var postDescribeInternetGateways* = Call_PostDescribeInternetGateways_618854( name: "postDescribeInternetGateways", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeInternetGateways", - validator: validate_PostDescribeInternetGateways_618853, base: "/", - url: url_PostDescribeInternetGateways_618854, + validator: validate_PostDescribeInternetGateways_618855, base: "/", + url: url_PostDescribeInternetGateways_618856, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeInternetGateways_618832 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeInternetGateways_618834(protocol: Scheme; host: string; + Call_GetDescribeInternetGateways_618834 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeInternetGateways_618836(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -63553,7 +63580,7 @@ proc url_GetDescribeInternetGateways_618834(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeInternetGateways_618833(path: JsonNode; query: JsonNode; +proc validate_GetDescribeInternetGateways_618835(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more of your internet gateways. ## @@ -63575,39 +63602,39 @@ proc validate_GetDescribeInternetGateways_618833(path: JsonNode; query: JsonNode ## InternetGatewayId: JArray ## :

One or more internet gateway IDs.

Default: Describes all your internet gateways.

section = newJObject() - var valid_618835 = query.getOrDefault("MaxResults") - valid_618835 = validateParameter(valid_618835, JInt, required = false, default = nil) - if valid_618835 != nil: - section.add "MaxResults", valid_618835 - var valid_618836 = query.getOrDefault("DryRun") - valid_618836 = validateParameter(valid_618836, JBool, required = false, default = nil) - if valid_618836 != nil: - section.add "DryRun", valid_618836 - var valid_618837 = query.getOrDefault("NextToken") - valid_618837 = validateParameter(valid_618837, JString, required = false, - default = nil) + var valid_618837 = query.getOrDefault("MaxResults") + valid_618837 = validateParameter(valid_618837, JInt, required = false, default = nil) if valid_618837 != nil: - section.add "NextToken", valid_618837 - var valid_618838 = query.getOrDefault("Filter") - valid_618838 = validateParameter(valid_618838, JArray, required = false, - default = nil) + section.add "MaxResults", valid_618837 + var valid_618838 = query.getOrDefault("DryRun") + valid_618838 = validateParameter(valid_618838, JBool, required = false, default = nil) if valid_618838 != nil: - section.add "Filter", valid_618838 - var valid_618839 = query.getOrDefault("Action") - valid_618839 = validateParameter(valid_618839, JString, required = true, default = newJString( - "DescribeInternetGateways")) + section.add "DryRun", valid_618838 + var valid_618839 = query.getOrDefault("NextToken") + valid_618839 = validateParameter(valid_618839, JString, required = false, + default = nil) if valid_618839 != nil: - section.add "Action", valid_618839 - var valid_618840 = query.getOrDefault("Version") - valid_618840 = validateParameter(valid_618840, JString, required = true, - default = newJString("2016-11-15")) - if valid_618840 != nil: - section.add "Version", valid_618840 - var valid_618841 = query.getOrDefault("InternetGatewayId") - valid_618841 = validateParameter(valid_618841, JArray, required = false, + section.add "NextToken", valid_618839 + var valid_618840 = query.getOrDefault("Filter") + valid_618840 = validateParameter(valid_618840, JArray, required = false, default = nil) + if valid_618840 != nil: + section.add "Filter", valid_618840 + var valid_618841 = query.getOrDefault("Action") + valid_618841 = validateParameter(valid_618841, JString, required = true, default = newJString( + "DescribeInternetGateways")) if valid_618841 != nil: - section.add "InternetGatewayId", valid_618841 + section.add "Action", valid_618841 + var valid_618842 = query.getOrDefault("Version") + valid_618842 = validateParameter(valid_618842, JString, required = true, + default = newJString("2016-11-15")) + if valid_618842 != nil: + section.add "Version", valid_618842 + var valid_618843 = query.getOrDefault("InternetGatewayId") + valid_618843 = validateParameter(valid_618843, JArray, required = false, + default = nil) + if valid_618843 != nil: + section.add "InternetGatewayId", valid_618843 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -63618,61 +63645,61 @@ proc validate_GetDescribeInternetGateways_618833(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618842 = header.getOrDefault("X-Amz-Signature") - valid_618842 = validateParameter(valid_618842, JString, required = false, - default = nil) - if valid_618842 != nil: - section.add "X-Amz-Signature", valid_618842 - var valid_618843 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618843 = validateParameter(valid_618843, JString, required = false, - default = nil) - if valid_618843 != nil: - section.add "X-Amz-Content-Sha256", valid_618843 - var valid_618844 = header.getOrDefault("X-Amz-Date") + var valid_618844 = header.getOrDefault("X-Amz-Signature") valid_618844 = validateParameter(valid_618844, JString, required = false, default = nil) if valid_618844 != nil: - section.add "X-Amz-Date", valid_618844 - var valid_618845 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618844 + var valid_618845 = header.getOrDefault("X-Amz-Content-Sha256") valid_618845 = validateParameter(valid_618845, JString, required = false, default = nil) if valid_618845 != nil: - section.add "X-Amz-Credential", valid_618845 - var valid_618846 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618845 + var valid_618846 = header.getOrDefault("X-Amz-Date") valid_618846 = validateParameter(valid_618846, JString, required = false, default = nil) if valid_618846 != nil: - section.add "X-Amz-Security-Token", valid_618846 - var valid_618847 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618846 + var valid_618847 = header.getOrDefault("X-Amz-Credential") valid_618847 = validateParameter(valid_618847, JString, required = false, default = nil) if valid_618847 != nil: - section.add "X-Amz-Algorithm", valid_618847 - var valid_618848 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618847 + var valid_618848 = header.getOrDefault("X-Amz-Security-Token") valid_618848 = validateParameter(valid_618848, JString, required = false, default = nil) if valid_618848 != nil: - section.add "X-Amz-SignedHeaders", valid_618848 + section.add "X-Amz-Security-Token", valid_618848 + var valid_618849 = header.getOrDefault("X-Amz-Algorithm") + valid_618849 = validateParameter(valid_618849, JString, required = false, + default = nil) + if valid_618849 != nil: + section.add "X-Amz-Algorithm", valid_618849 + var valid_618850 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618850 = validateParameter(valid_618850, JString, required = false, + default = nil) + if valid_618850 != nil: + section.add "X-Amz-SignedHeaders", valid_618850 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618849: Call_GetDescribeInternetGateways_618832; path: JsonNode; +proc call*(call_618851: Call_GetDescribeInternetGateways_618834; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more of your internet gateways. ## - let valid = call_618849.validator(path, query, header, formData, body) - let scheme = call_618849.pickScheme + let valid = call_618851.validator(path, query, header, formData, body) + let scheme = call_618851.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618849.url(scheme.get, call_618849.host, call_618849.base, - call_618849.route, valid.getOrDefault("path"), + let url = call_618851.url(scheme.get, call_618851.host, call_618851.base, + call_618851.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618849, url, valid) + result = atozHook(call_618851, url, valid) -proc call*(call_618850: Call_GetDescribeInternetGateways_618832; +proc call*(call_618852: Call_GetDescribeInternetGateways_618834; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeInternetGateways"; Version: string = "2016-11-15"; InternetGatewayId: JsonNode = nil): Recallable = @@ -63690,27 +63717,27 @@ proc call*(call_618850: Call_GetDescribeInternetGateways_618832; ## Version: string (required) ## InternetGatewayId: JArray ## :

One or more internet gateway IDs.

Default: Describes all your internet gateways.

- var query_618851 = newJObject() - add(query_618851, "MaxResults", newJInt(MaxResults)) - add(query_618851, "DryRun", newJBool(DryRun)) - add(query_618851, "NextToken", newJString(NextToken)) + var query_618853 = newJObject() + add(query_618853, "MaxResults", newJInt(MaxResults)) + add(query_618853, "DryRun", newJBool(DryRun)) + add(query_618853, "NextToken", newJString(NextToken)) if Filter != nil: - query_618851.add "Filter", Filter - add(query_618851, "Action", newJString(Action)) - add(query_618851, "Version", newJString(Version)) + query_618853.add "Filter", Filter + add(query_618853, "Action", newJString(Action)) + add(query_618853, "Version", newJString(Version)) if InternetGatewayId != nil: - query_618851.add "InternetGatewayId", InternetGatewayId - result = call_618850.call(nil, query_618851, nil, nil, nil) + query_618853.add "InternetGatewayId", InternetGatewayId + result = call_618852.call(nil, query_618853, nil, nil, nil) -var getDescribeInternetGateways* = Call_GetDescribeInternetGateways_618832( +var getDescribeInternetGateways* = Call_GetDescribeInternetGateways_618834( name: "getDescribeInternetGateways", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeInternetGateways", - validator: validate_GetDescribeInternetGateways_618833, base: "/", - url: url_GetDescribeInternetGateways_618834, + validator: validate_GetDescribeInternetGateways_618835, base: "/", + url: url_GetDescribeInternetGateways_618836, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeIpv6Pools_618893 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeIpv6Pools_618895(protocol: Scheme; host: string; base: string; + Call_PostDescribeIpv6Pools_618895 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeIpv6Pools_618897(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -63720,7 +63747,7 @@ proc url_PostDescribeIpv6Pools_618895(protocol: Scheme; host: string; base: stri else: result.path = base & route -proc validate_PostDescribeIpv6Pools_618894(path: JsonNode; query: JsonNode; +proc validate_PostDescribeIpv6Pools_618896(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes your IPv6 address pools. ## @@ -63732,16 +63759,16 @@ proc validate_PostDescribeIpv6Pools_618894(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618896 = query.getOrDefault("Action") - valid_618896 = validateParameter(valid_618896, JString, required = true, + var valid_618898 = query.getOrDefault("Action") + valid_618898 = validateParameter(valid_618898, JString, required = true, default = newJString("DescribeIpv6Pools")) - if valid_618896 != nil: - section.add "Action", valid_618896 - var valid_618897 = query.getOrDefault("Version") - valid_618897 = validateParameter(valid_618897, JString, required = true, + if valid_618898 != nil: + section.add "Action", valid_618898 + var valid_618899 = query.getOrDefault("Version") + valid_618899 = validateParameter(valid_618899, JString, required = true, default = newJString("2016-11-15")) - if valid_618897 != nil: - section.add "Version", valid_618897 + if valid_618899 != nil: + section.add "Version", valid_618899 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -63752,41 +63779,41 @@ proc validate_PostDescribeIpv6Pools_618894(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618898 = header.getOrDefault("X-Amz-Signature") - valid_618898 = validateParameter(valid_618898, JString, required = false, - default = nil) - if valid_618898 != nil: - section.add "X-Amz-Signature", valid_618898 - var valid_618899 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618899 = validateParameter(valid_618899, JString, required = false, - default = nil) - if valid_618899 != nil: - section.add "X-Amz-Content-Sha256", valid_618899 - var valid_618900 = header.getOrDefault("X-Amz-Date") + var valid_618900 = header.getOrDefault("X-Amz-Signature") valid_618900 = validateParameter(valid_618900, JString, required = false, default = nil) if valid_618900 != nil: - section.add "X-Amz-Date", valid_618900 - var valid_618901 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618900 + var valid_618901 = header.getOrDefault("X-Amz-Content-Sha256") valid_618901 = validateParameter(valid_618901, JString, required = false, default = nil) if valid_618901 != nil: - section.add "X-Amz-Credential", valid_618901 - var valid_618902 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618901 + var valid_618902 = header.getOrDefault("X-Amz-Date") valid_618902 = validateParameter(valid_618902, JString, required = false, default = nil) if valid_618902 != nil: - section.add "X-Amz-Security-Token", valid_618902 - var valid_618903 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618902 + var valid_618903 = header.getOrDefault("X-Amz-Credential") valid_618903 = validateParameter(valid_618903, JString, required = false, default = nil) if valid_618903 != nil: - section.add "X-Amz-Algorithm", valid_618903 - var valid_618904 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618903 + var valid_618904 = header.getOrDefault("X-Amz-Security-Token") valid_618904 = validateParameter(valid_618904, JString, required = false, default = nil) if valid_618904 != nil: - section.add "X-Amz-SignedHeaders", valid_618904 + section.add "X-Amz-Security-Token", valid_618904 + var valid_618905 = header.getOrDefault("X-Amz-Algorithm") + valid_618905 = validateParameter(valid_618905, JString, required = false, + default = nil) + if valid_618905 != nil: + section.add "X-Amz-Algorithm", valid_618905 + var valid_618906 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618906 = validateParameter(valid_618906, JString, required = false, + default = nil) + if valid_618906 != nil: + section.add "X-Amz-SignedHeaders", valid_618906 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -63800,47 +63827,47 @@ proc validate_PostDescribeIpv6Pools_618894(path: JsonNode; query: JsonNode; ## Filter: JArray ## :

One or more filters.

section = newJObject() - var valid_618905 = formData.getOrDefault("NextToken") - valid_618905 = validateParameter(valid_618905, JString, required = false, + var valid_618907 = formData.getOrDefault("NextToken") + valid_618907 = validateParameter(valid_618907, JString, required = false, default = nil) - if valid_618905 != nil: - section.add "NextToken", valid_618905 - var valid_618906 = formData.getOrDefault("DryRun") - valid_618906 = validateParameter(valid_618906, JBool, required = false, default = nil) - if valid_618906 != nil: - section.add "DryRun", valid_618906 - var valid_618907 = formData.getOrDefault("MaxResults") - valid_618907 = validateParameter(valid_618907, JInt, required = false, default = nil) if valid_618907 != nil: - section.add "MaxResults", valid_618907 - var valid_618908 = formData.getOrDefault("PoolId") - valid_618908 = validateParameter(valid_618908, JArray, required = false, - default = nil) + section.add "NextToken", valid_618907 + var valid_618908 = formData.getOrDefault("DryRun") + valid_618908 = validateParameter(valid_618908, JBool, required = false, default = nil) if valid_618908 != nil: - section.add "PoolId", valid_618908 - var valid_618909 = formData.getOrDefault("Filter") - valid_618909 = validateParameter(valid_618909, JArray, required = false, - default = nil) + section.add "DryRun", valid_618908 + var valid_618909 = formData.getOrDefault("MaxResults") + valid_618909 = validateParameter(valid_618909, JInt, required = false, default = nil) if valid_618909 != nil: - section.add "Filter", valid_618909 + section.add "MaxResults", valid_618909 + var valid_618910 = formData.getOrDefault("PoolId") + valid_618910 = validateParameter(valid_618910, JArray, required = false, + default = nil) + if valid_618910 != nil: + section.add "PoolId", valid_618910 + var valid_618911 = formData.getOrDefault("Filter") + valid_618911 = validateParameter(valid_618911, JArray, required = false, + default = nil) + if valid_618911 != nil: + section.add "Filter", valid_618911 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618910: Call_PostDescribeIpv6Pools_618893; path: JsonNode; +proc call*(call_618912: Call_PostDescribeIpv6Pools_618895; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes your IPv6 address pools. ## - let valid = call_618910.validator(path, query, header, formData, body) - let scheme = call_618910.pickScheme + let valid = call_618912.validator(path, query, header, formData, body) + let scheme = call_618912.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618910.url(scheme.get, call_618910.host, call_618910.base, - call_618910.route, valid.getOrDefault("path"), + let url = call_618912.url(scheme.get, call_618912.host, call_618912.base, + call_618912.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618910, url, valid) + result = atozHook(call_618912, url, valid) -proc call*(call_618911: Call_PostDescribeIpv6Pools_618893; NextToken: string = ""; +proc call*(call_618913: Call_PostDescribeIpv6Pools_618895; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeIpv6Pools"; Version: string = "2016-11-15"; MaxResults: int = 0; PoolId: JsonNode = nil; Filter: JsonNode = nil): Recallable = @@ -63858,27 +63885,27 @@ proc call*(call_618911: Call_PostDescribeIpv6Pools_618893; NextToken: string = " ## : The IDs of the IPv6 address pools. ## Filter: JArray ## :

One or more filters.

- var query_618912 = newJObject() - var formData_618913 = newJObject() - add(formData_618913, "NextToken", newJString(NextToken)) - add(formData_618913, "DryRun", newJBool(DryRun)) - add(query_618912, "Action", newJString(Action)) - add(query_618912, "Version", newJString(Version)) - add(formData_618913, "MaxResults", newJInt(MaxResults)) + var query_618914 = newJObject() + var formData_618915 = newJObject() + add(formData_618915, "NextToken", newJString(NextToken)) + add(formData_618915, "DryRun", newJBool(DryRun)) + add(query_618914, "Action", newJString(Action)) + add(query_618914, "Version", newJString(Version)) + add(formData_618915, "MaxResults", newJInt(MaxResults)) if PoolId != nil: - formData_618913.add "PoolId", PoolId + formData_618915.add "PoolId", PoolId if Filter != nil: - formData_618913.add "Filter", Filter - result = call_618911.call(nil, query_618912, nil, formData_618913, nil) + formData_618915.add "Filter", Filter + result = call_618913.call(nil, query_618914, nil, formData_618915, nil) -var postDescribeIpv6Pools* = Call_PostDescribeIpv6Pools_618893( +var postDescribeIpv6Pools* = Call_PostDescribeIpv6Pools_618895( name: "postDescribeIpv6Pools", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeIpv6Pools", - validator: validate_PostDescribeIpv6Pools_618894, base: "/", - url: url_PostDescribeIpv6Pools_618895, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDescribeIpv6Pools_618896, base: "/", + url: url_PostDescribeIpv6Pools_618897, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeIpv6Pools_618873 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeIpv6Pools_618875(protocol: Scheme; host: string; base: string; + Call_GetDescribeIpv6Pools_618875 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeIpv6Pools_618877(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -63888,7 +63915,7 @@ proc url_GetDescribeIpv6Pools_618875(protocol: Scheme; host: string; base: strin else: result.path = base & route -proc validate_GetDescribeIpv6Pools_618874(path: JsonNode; query: JsonNode; +proc validate_GetDescribeIpv6Pools_618876(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes your IPv6 address pools. ## @@ -63910,39 +63937,39 @@ proc validate_GetDescribeIpv6Pools_618874(path: JsonNode; query: JsonNode; ## : The IDs of the IPv6 address pools. ## Version: JString (required) section = newJObject() - var valid_618876 = query.getOrDefault("MaxResults") - valid_618876 = validateParameter(valid_618876, JInt, required = false, default = nil) - if valid_618876 != nil: - section.add "MaxResults", valid_618876 - var valid_618877 = query.getOrDefault("DryRun") - valid_618877 = validateParameter(valid_618877, JBool, required = false, default = nil) - if valid_618877 != nil: - section.add "DryRun", valid_618877 - var valid_618878 = query.getOrDefault("NextToken") - valid_618878 = validateParameter(valid_618878, JString, required = false, - default = nil) + var valid_618878 = query.getOrDefault("MaxResults") + valid_618878 = validateParameter(valid_618878, JInt, required = false, default = nil) if valid_618878 != nil: - section.add "NextToken", valid_618878 - var valid_618879 = query.getOrDefault("Filter") - valid_618879 = validateParameter(valid_618879, JArray, required = false, - default = nil) + section.add "MaxResults", valid_618878 + var valid_618879 = query.getOrDefault("DryRun") + valid_618879 = validateParameter(valid_618879, JBool, required = false, default = nil) if valid_618879 != nil: - section.add "Filter", valid_618879 - var valid_618880 = query.getOrDefault("Action") - valid_618880 = validateParameter(valid_618880, JString, required = true, - default = newJString("DescribeIpv6Pools")) + section.add "DryRun", valid_618879 + var valid_618880 = query.getOrDefault("NextToken") + valid_618880 = validateParameter(valid_618880, JString, required = false, + default = nil) if valid_618880 != nil: - section.add "Action", valid_618880 - var valid_618881 = query.getOrDefault("PoolId") + section.add "NextToken", valid_618880 + var valid_618881 = query.getOrDefault("Filter") valid_618881 = validateParameter(valid_618881, JArray, required = false, default = nil) if valid_618881 != nil: - section.add "PoolId", valid_618881 - var valid_618882 = query.getOrDefault("Version") + section.add "Filter", valid_618881 + var valid_618882 = query.getOrDefault("Action") valid_618882 = validateParameter(valid_618882, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("DescribeIpv6Pools")) if valid_618882 != nil: - section.add "Version", valid_618882 + section.add "Action", valid_618882 + var valid_618883 = query.getOrDefault("PoolId") + valid_618883 = validateParameter(valid_618883, JArray, required = false, + default = nil) + if valid_618883 != nil: + section.add "PoolId", valid_618883 + var valid_618884 = query.getOrDefault("Version") + valid_618884 = validateParameter(valid_618884, JString, required = true, + default = newJString("2016-11-15")) + if valid_618884 != nil: + section.add "Version", valid_618884 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -63953,61 +63980,61 @@ proc validate_GetDescribeIpv6Pools_618874(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618883 = header.getOrDefault("X-Amz-Signature") - valid_618883 = validateParameter(valid_618883, JString, required = false, - default = nil) - if valid_618883 != nil: - section.add "X-Amz-Signature", valid_618883 - var valid_618884 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618884 = validateParameter(valid_618884, JString, required = false, - default = nil) - if valid_618884 != nil: - section.add "X-Amz-Content-Sha256", valid_618884 - var valid_618885 = header.getOrDefault("X-Amz-Date") + var valid_618885 = header.getOrDefault("X-Amz-Signature") valid_618885 = validateParameter(valid_618885, JString, required = false, default = nil) if valid_618885 != nil: - section.add "X-Amz-Date", valid_618885 - var valid_618886 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618885 + var valid_618886 = header.getOrDefault("X-Amz-Content-Sha256") valid_618886 = validateParameter(valid_618886, JString, required = false, default = nil) if valid_618886 != nil: - section.add "X-Amz-Credential", valid_618886 - var valid_618887 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618886 + var valid_618887 = header.getOrDefault("X-Amz-Date") valid_618887 = validateParameter(valid_618887, JString, required = false, default = nil) if valid_618887 != nil: - section.add "X-Amz-Security-Token", valid_618887 - var valid_618888 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618887 + var valid_618888 = header.getOrDefault("X-Amz-Credential") valid_618888 = validateParameter(valid_618888, JString, required = false, default = nil) if valid_618888 != nil: - section.add "X-Amz-Algorithm", valid_618888 - var valid_618889 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618888 + var valid_618889 = header.getOrDefault("X-Amz-Security-Token") valid_618889 = validateParameter(valid_618889, JString, required = false, default = nil) if valid_618889 != nil: - section.add "X-Amz-SignedHeaders", valid_618889 + section.add "X-Amz-Security-Token", valid_618889 + var valid_618890 = header.getOrDefault("X-Amz-Algorithm") + valid_618890 = validateParameter(valid_618890, JString, required = false, + default = nil) + if valid_618890 != nil: + section.add "X-Amz-Algorithm", valid_618890 + var valid_618891 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618891 = validateParameter(valid_618891, JString, required = false, + default = nil) + if valid_618891 != nil: + section.add "X-Amz-SignedHeaders", valid_618891 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618890: Call_GetDescribeIpv6Pools_618873; path: JsonNode; +proc call*(call_618892: Call_GetDescribeIpv6Pools_618875; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes your IPv6 address pools. ## - let valid = call_618890.validator(path, query, header, formData, body) - let scheme = call_618890.pickScheme + let valid = call_618892.validator(path, query, header, formData, body) + let scheme = call_618892.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618890.url(scheme.get, call_618890.host, call_618890.base, - call_618890.route, valid.getOrDefault("path"), + let url = call_618892.url(scheme.get, call_618892.host, call_618892.base, + call_618892.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618890, url, valid) + result = atozHook(call_618892, url, valid) -proc call*(call_618891: Call_GetDescribeIpv6Pools_618873; MaxResults: int = 0; +proc call*(call_618893: Call_GetDescribeIpv6Pools_618875; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeIpv6Pools"; PoolId: JsonNode = nil; Version: string = "2016-11-15"): Recallable = @@ -64025,26 +64052,26 @@ proc call*(call_618891: Call_GetDescribeIpv6Pools_618873; MaxResults: int = 0; ## PoolId: JArray ## : The IDs of the IPv6 address pools. ## Version: string (required) - var query_618892 = newJObject() - add(query_618892, "MaxResults", newJInt(MaxResults)) - add(query_618892, "DryRun", newJBool(DryRun)) - add(query_618892, "NextToken", newJString(NextToken)) + var query_618894 = newJObject() + add(query_618894, "MaxResults", newJInt(MaxResults)) + add(query_618894, "DryRun", newJBool(DryRun)) + add(query_618894, "NextToken", newJString(NextToken)) if Filter != nil: - query_618892.add "Filter", Filter - add(query_618892, "Action", newJString(Action)) + query_618894.add "Filter", Filter + add(query_618894, "Action", newJString(Action)) if PoolId != nil: - query_618892.add "PoolId", PoolId - add(query_618892, "Version", newJString(Version)) - result = call_618891.call(nil, query_618892, nil, nil, nil) + query_618894.add "PoolId", PoolId + add(query_618894, "Version", newJString(Version)) + result = call_618893.call(nil, query_618894, nil, nil, nil) -var getDescribeIpv6Pools* = Call_GetDescribeIpv6Pools_618873( +var getDescribeIpv6Pools* = Call_GetDescribeIpv6Pools_618875( name: "getDescribeIpv6Pools", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeIpv6Pools", - validator: validate_GetDescribeIpv6Pools_618874, base: "/", - url: url_GetDescribeIpv6Pools_618875, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDescribeIpv6Pools_618876, base: "/", + url: url_GetDescribeIpv6Pools_618877, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeKeyPairs_618933 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeKeyPairs_618935(protocol: Scheme; host: string; base: string; + Call_PostDescribeKeyPairs_618935 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeKeyPairs_618937(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -64054,7 +64081,7 @@ proc url_PostDescribeKeyPairs_618935(protocol: Scheme; host: string; base: strin else: result.path = base & route -proc validate_PostDescribeKeyPairs_618934(path: JsonNode; query: JsonNode; +proc validate_PostDescribeKeyPairs_618936(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the specified key pairs or all of your key pairs.

For more information about key pairs, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.

## @@ -64066,16 +64093,16 @@ proc validate_PostDescribeKeyPairs_618934(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618936 = query.getOrDefault("Action") - valid_618936 = validateParameter(valid_618936, JString, required = true, + var valid_618938 = query.getOrDefault("Action") + valid_618938 = validateParameter(valid_618938, JString, required = true, default = newJString("DescribeKeyPairs")) - if valid_618936 != nil: - section.add "Action", valid_618936 - var valid_618937 = query.getOrDefault("Version") - valid_618937 = validateParameter(valid_618937, JString, required = true, + if valid_618938 != nil: + section.add "Action", valid_618938 + var valid_618939 = query.getOrDefault("Version") + valid_618939 = validateParameter(valid_618939, JString, required = true, default = newJString("2016-11-15")) - if valid_618937 != nil: - section.add "Version", valid_618937 + if valid_618939 != nil: + section.add "Version", valid_618939 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -64086,41 +64113,41 @@ proc validate_PostDescribeKeyPairs_618934(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618938 = header.getOrDefault("X-Amz-Signature") - valid_618938 = validateParameter(valid_618938, JString, required = false, - default = nil) - if valid_618938 != nil: - section.add "X-Amz-Signature", valid_618938 - var valid_618939 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618939 = validateParameter(valid_618939, JString, required = false, - default = nil) - if valid_618939 != nil: - section.add "X-Amz-Content-Sha256", valid_618939 - var valid_618940 = header.getOrDefault("X-Amz-Date") + var valid_618940 = header.getOrDefault("X-Amz-Signature") valid_618940 = validateParameter(valid_618940, JString, required = false, default = nil) if valid_618940 != nil: - section.add "X-Amz-Date", valid_618940 - var valid_618941 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618940 + var valid_618941 = header.getOrDefault("X-Amz-Content-Sha256") valid_618941 = validateParameter(valid_618941, JString, required = false, default = nil) if valid_618941 != nil: - section.add "X-Amz-Credential", valid_618941 - var valid_618942 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618941 + var valid_618942 = header.getOrDefault("X-Amz-Date") valid_618942 = validateParameter(valid_618942, JString, required = false, default = nil) if valid_618942 != nil: - section.add "X-Amz-Security-Token", valid_618942 - var valid_618943 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618942 + var valid_618943 = header.getOrDefault("X-Amz-Credential") valid_618943 = validateParameter(valid_618943, JString, required = false, default = nil) if valid_618943 != nil: - section.add "X-Amz-Algorithm", valid_618943 - var valid_618944 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618943 + var valid_618944 = header.getOrDefault("X-Amz-Security-Token") valid_618944 = validateParameter(valid_618944, JString, required = false, default = nil) if valid_618944 != nil: - section.add "X-Amz-SignedHeaders", valid_618944 + section.add "X-Amz-Security-Token", valid_618944 + var valid_618945 = header.getOrDefault("X-Amz-Algorithm") + valid_618945 = validateParameter(valid_618945, JString, required = false, + default = nil) + if valid_618945 != nil: + section.add "X-Amz-Algorithm", valid_618945 + var valid_618946 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618946 = validateParameter(valid_618946, JString, required = false, + default = nil) + if valid_618946 != nil: + section.add "X-Amz-SignedHeaders", valid_618946 result.add "header", section ## parameters in `formData` object: ## KeyName: JArray @@ -64132,43 +64159,43 @@ proc validate_PostDescribeKeyPairs_618934(path: JsonNode; query: JsonNode; ## Filter: JArray ## :

The filters.

section = newJObject() - var valid_618945 = formData.getOrDefault("KeyName") - valid_618945 = validateParameter(valid_618945, JArray, required = false, - default = nil) - if valid_618945 != nil: - section.add "KeyName", valid_618945 - var valid_618946 = formData.getOrDefault("DryRun") - valid_618946 = validateParameter(valid_618946, JBool, required = false, default = nil) - if valid_618946 != nil: - section.add "DryRun", valid_618946 - var valid_618947 = formData.getOrDefault("KeyPairId") + var valid_618947 = formData.getOrDefault("KeyName") valid_618947 = validateParameter(valid_618947, JArray, required = false, default = nil) if valid_618947 != nil: - section.add "KeyPairId", valid_618947 - var valid_618948 = formData.getOrDefault("Filter") - valid_618948 = validateParameter(valid_618948, JArray, required = false, - default = nil) + section.add "KeyName", valid_618947 + var valid_618948 = formData.getOrDefault("DryRun") + valid_618948 = validateParameter(valid_618948, JBool, required = false, default = nil) if valid_618948 != nil: - section.add "Filter", valid_618948 + section.add "DryRun", valid_618948 + var valid_618949 = formData.getOrDefault("KeyPairId") + valid_618949 = validateParameter(valid_618949, JArray, required = false, + default = nil) + if valid_618949 != nil: + section.add "KeyPairId", valid_618949 + var valid_618950 = formData.getOrDefault("Filter") + valid_618950 = validateParameter(valid_618950, JArray, required = false, + default = nil) + if valid_618950 != nil: + section.add "Filter", valid_618950 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618949: Call_PostDescribeKeyPairs_618933; path: JsonNode; +proc call*(call_618951: Call_PostDescribeKeyPairs_618935; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the specified key pairs or all of your key pairs.

For more information about key pairs, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_618949.validator(path, query, header, formData, body) - let scheme = call_618949.pickScheme + let valid = call_618951.validator(path, query, header, formData, body) + let scheme = call_618951.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618949.url(scheme.get, call_618949.host, call_618949.base, - call_618949.route, valid.getOrDefault("path"), + let url = call_618951.url(scheme.get, call_618951.host, call_618951.base, + call_618951.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618949, url, valid) + result = atozHook(call_618951, url, valid) -proc call*(call_618950: Call_PostDescribeKeyPairs_618933; KeyName: JsonNode = nil; +proc call*(call_618952: Call_PostDescribeKeyPairs_618935; KeyName: JsonNode = nil; DryRun: bool = false; KeyPairId: JsonNode = nil; Action: string = "DescribeKeyPairs"; Version: string = "2016-11-15"; Filter: JsonNode = nil): Recallable = @@ -64184,27 +64211,27 @@ proc call*(call_618950: Call_PostDescribeKeyPairs_618933; KeyName: JsonNode = ni ## Version: string (required) ## Filter: JArray ## :

The filters.

- var query_618951 = newJObject() - var formData_618952 = newJObject() + var query_618953 = newJObject() + var formData_618954 = newJObject() if KeyName != nil: - formData_618952.add "KeyName", KeyName - add(formData_618952, "DryRun", newJBool(DryRun)) + formData_618954.add "KeyName", KeyName + add(formData_618954, "DryRun", newJBool(DryRun)) if KeyPairId != nil: - formData_618952.add "KeyPairId", KeyPairId - add(query_618951, "Action", newJString(Action)) - add(query_618951, "Version", newJString(Version)) + formData_618954.add "KeyPairId", KeyPairId + add(query_618953, "Action", newJString(Action)) + add(query_618953, "Version", newJString(Version)) if Filter != nil: - formData_618952.add "Filter", Filter - result = call_618950.call(nil, query_618951, nil, formData_618952, nil) + formData_618954.add "Filter", Filter + result = call_618952.call(nil, query_618953, nil, formData_618954, nil) -var postDescribeKeyPairs* = Call_PostDescribeKeyPairs_618933( +var postDescribeKeyPairs* = Call_PostDescribeKeyPairs_618935( name: "postDescribeKeyPairs", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeKeyPairs", - validator: validate_PostDescribeKeyPairs_618934, base: "/", - url: url_PostDescribeKeyPairs_618935, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDescribeKeyPairs_618936, base: "/", + url: url_PostDescribeKeyPairs_618937, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeKeyPairs_618914 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeKeyPairs_618916(protocol: Scheme; host: string; base: string; + Call_GetDescribeKeyPairs_618916 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeKeyPairs_618918(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -64214,7 +64241,7 @@ proc url_GetDescribeKeyPairs_618916(protocol: Scheme; host: string; base: string else: result.path = base & route -proc validate_GetDescribeKeyPairs_618915(path: JsonNode; query: JsonNode; +proc validate_GetDescribeKeyPairs_618917(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the specified key pairs or all of your key pairs.

For more information about key pairs, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.

@@ -64235,35 +64262,35 @@ proc validate_GetDescribeKeyPairs_618915(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618917 = query.getOrDefault("KeyName") - valid_618917 = validateParameter(valid_618917, JArray, required = false, - default = nil) - if valid_618917 != nil: - section.add "KeyName", valid_618917 - var valid_618918 = query.getOrDefault("DryRun") - valid_618918 = validateParameter(valid_618918, JBool, required = false, default = nil) - if valid_618918 != nil: - section.add "DryRun", valid_618918 - var valid_618919 = query.getOrDefault("Filter") + var valid_618919 = query.getOrDefault("KeyName") valid_618919 = validateParameter(valid_618919, JArray, required = false, default = nil) if valid_618919 != nil: - section.add "Filter", valid_618919 - var valid_618920 = query.getOrDefault("KeyPairId") - valid_618920 = validateParameter(valid_618920, JArray, required = false, - default = nil) + section.add "KeyName", valid_618919 + var valid_618920 = query.getOrDefault("DryRun") + valid_618920 = validateParameter(valid_618920, JBool, required = false, default = nil) if valid_618920 != nil: - section.add "KeyPairId", valid_618920 - var valid_618921 = query.getOrDefault("Action") - valid_618921 = validateParameter(valid_618921, JString, required = true, - default = newJString("DescribeKeyPairs")) + section.add "DryRun", valid_618920 + var valid_618921 = query.getOrDefault("Filter") + valid_618921 = validateParameter(valid_618921, JArray, required = false, + default = nil) if valid_618921 != nil: - section.add "Action", valid_618921 - var valid_618922 = query.getOrDefault("Version") - valid_618922 = validateParameter(valid_618922, JString, required = true, - default = newJString("2016-11-15")) + section.add "Filter", valid_618921 + var valid_618922 = query.getOrDefault("KeyPairId") + valid_618922 = validateParameter(valid_618922, JArray, required = false, + default = nil) if valid_618922 != nil: - section.add "Version", valid_618922 + section.add "KeyPairId", valid_618922 + var valid_618923 = query.getOrDefault("Action") + valid_618923 = validateParameter(valid_618923, JString, required = true, + default = newJString("DescribeKeyPairs")) + if valid_618923 != nil: + section.add "Action", valid_618923 + var valid_618924 = query.getOrDefault("Version") + valid_618924 = validateParameter(valid_618924, JString, required = true, + default = newJString("2016-11-15")) + if valid_618924 != nil: + section.add "Version", valid_618924 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -64274,61 +64301,61 @@ proc validate_GetDescribeKeyPairs_618915(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618923 = header.getOrDefault("X-Amz-Signature") - valid_618923 = validateParameter(valid_618923, JString, required = false, - default = nil) - if valid_618923 != nil: - section.add "X-Amz-Signature", valid_618923 - var valid_618924 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618924 = validateParameter(valid_618924, JString, required = false, - default = nil) - if valid_618924 != nil: - section.add "X-Amz-Content-Sha256", valid_618924 - var valid_618925 = header.getOrDefault("X-Amz-Date") + var valid_618925 = header.getOrDefault("X-Amz-Signature") valid_618925 = validateParameter(valid_618925, JString, required = false, default = nil) if valid_618925 != nil: - section.add "X-Amz-Date", valid_618925 - var valid_618926 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618925 + var valid_618926 = header.getOrDefault("X-Amz-Content-Sha256") valid_618926 = validateParameter(valid_618926, JString, required = false, default = nil) if valid_618926 != nil: - section.add "X-Amz-Credential", valid_618926 - var valid_618927 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618926 + var valid_618927 = header.getOrDefault("X-Amz-Date") valid_618927 = validateParameter(valid_618927, JString, required = false, default = nil) if valid_618927 != nil: - section.add "X-Amz-Security-Token", valid_618927 - var valid_618928 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618927 + var valid_618928 = header.getOrDefault("X-Amz-Credential") valid_618928 = validateParameter(valid_618928, JString, required = false, default = nil) if valid_618928 != nil: - section.add "X-Amz-Algorithm", valid_618928 - var valid_618929 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618928 + var valid_618929 = header.getOrDefault("X-Amz-Security-Token") valid_618929 = validateParameter(valid_618929, JString, required = false, default = nil) if valid_618929 != nil: - section.add "X-Amz-SignedHeaders", valid_618929 + section.add "X-Amz-Security-Token", valid_618929 + var valid_618930 = header.getOrDefault("X-Amz-Algorithm") + valid_618930 = validateParameter(valid_618930, JString, required = false, + default = nil) + if valid_618930 != nil: + section.add "X-Amz-Algorithm", valid_618930 + var valid_618931 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618931 = validateParameter(valid_618931, JString, required = false, + default = nil) + if valid_618931 != nil: + section.add "X-Amz-SignedHeaders", valid_618931 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618930: Call_GetDescribeKeyPairs_618914; path: JsonNode; +proc call*(call_618932: Call_GetDescribeKeyPairs_618916; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the specified key pairs or all of your key pairs.

For more information about key pairs, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_618930.validator(path, query, header, formData, body) - let scheme = call_618930.pickScheme + let valid = call_618932.validator(path, query, header, formData, body) + let scheme = call_618932.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618930.url(scheme.get, call_618930.host, call_618930.base, - call_618930.route, valid.getOrDefault("path"), + let url = call_618932.url(scheme.get, call_618932.host, call_618932.base, + call_618932.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618930, url, valid) + result = atozHook(call_618932, url, valid) -proc call*(call_618931: Call_GetDescribeKeyPairs_618914; KeyName: JsonNode = nil; +proc call*(call_618933: Call_GetDescribeKeyPairs_618916; KeyName: JsonNode = nil; DryRun: bool = false; Filter: JsonNode = nil; KeyPairId: JsonNode = nil; Action: string = "DescribeKeyPairs"; Version: string = "2016-11-15"): Recallable = ## getDescribeKeyPairs @@ -64343,26 +64370,26 @@ proc call*(call_618931: Call_GetDescribeKeyPairs_618914; KeyName: JsonNode = nil ## : The IDs of the key pairs. ## Action: string (required) ## Version: string (required) - var query_618932 = newJObject() + var query_618934 = newJObject() if KeyName != nil: - query_618932.add "KeyName", KeyName - add(query_618932, "DryRun", newJBool(DryRun)) + query_618934.add "KeyName", KeyName + add(query_618934, "DryRun", newJBool(DryRun)) if Filter != nil: - query_618932.add "Filter", Filter + query_618934.add "Filter", Filter if KeyPairId != nil: - query_618932.add "KeyPairId", KeyPairId - add(query_618932, "Action", newJString(Action)) - add(query_618932, "Version", newJString(Version)) - result = call_618931.call(nil, query_618932, nil, nil, nil) + query_618934.add "KeyPairId", KeyPairId + add(query_618934, "Action", newJString(Action)) + add(query_618934, "Version", newJString(Version)) + result = call_618933.call(nil, query_618934, nil, nil, nil) -var getDescribeKeyPairs* = Call_GetDescribeKeyPairs_618914( +var getDescribeKeyPairs* = Call_GetDescribeKeyPairs_618916( name: "getDescribeKeyPairs", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeKeyPairs", - validator: validate_GetDescribeKeyPairs_618915, base: "/", - url: url_GetDescribeKeyPairs_618916, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDescribeKeyPairs_618917, base: "/", + url: url_GetDescribeKeyPairs_618918, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeLaunchTemplateVersions_618977 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeLaunchTemplateVersions_618979(protocol: Scheme; host: string; + Call_PostDescribeLaunchTemplateVersions_618979 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeLaunchTemplateVersions_618981(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -64372,7 +64399,7 @@ proc url_PostDescribeLaunchTemplateVersions_618979(protocol: Scheme; host: strin else: result.path = base & route -proc validate_PostDescribeLaunchTemplateVersions_618978(path: JsonNode; +proc validate_PostDescribeLaunchTemplateVersions_618980(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more versions of a specified launch template. You can describe all versions, individual versions, or a range of versions. ## @@ -64384,16 +64411,16 @@ proc validate_PostDescribeLaunchTemplateVersions_618978(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_618980 = query.getOrDefault("Action") - valid_618980 = validateParameter(valid_618980, JString, required = true, default = newJString( + var valid_618982 = query.getOrDefault("Action") + valid_618982 = validateParameter(valid_618982, JString, required = true, default = newJString( "DescribeLaunchTemplateVersions")) - if valid_618980 != nil: - section.add "Action", valid_618980 - var valid_618981 = query.getOrDefault("Version") - valid_618981 = validateParameter(valid_618981, JString, required = true, + if valid_618982 != nil: + section.add "Action", valid_618982 + var valid_618983 = query.getOrDefault("Version") + valid_618983 = validateParameter(valid_618983, JString, required = true, default = newJString("2016-11-15")) - if valid_618981 != nil: - section.add "Version", valid_618981 + if valid_618983 != nil: + section.add "Version", valid_618983 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -64404,41 +64431,41 @@ proc validate_PostDescribeLaunchTemplateVersions_618978(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618982 = header.getOrDefault("X-Amz-Signature") - valid_618982 = validateParameter(valid_618982, JString, required = false, - default = nil) - if valid_618982 != nil: - section.add "X-Amz-Signature", valid_618982 - var valid_618983 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618983 = validateParameter(valid_618983, JString, required = false, - default = nil) - if valid_618983 != nil: - section.add "X-Amz-Content-Sha256", valid_618983 - var valid_618984 = header.getOrDefault("X-Amz-Date") + var valid_618984 = header.getOrDefault("X-Amz-Signature") valid_618984 = validateParameter(valid_618984, JString, required = false, default = nil) if valid_618984 != nil: - section.add "X-Amz-Date", valid_618984 - var valid_618985 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618984 + var valid_618985 = header.getOrDefault("X-Amz-Content-Sha256") valid_618985 = validateParameter(valid_618985, JString, required = false, default = nil) if valid_618985 != nil: - section.add "X-Amz-Credential", valid_618985 - var valid_618986 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618985 + var valid_618986 = header.getOrDefault("X-Amz-Date") valid_618986 = validateParameter(valid_618986, JString, required = false, default = nil) if valid_618986 != nil: - section.add "X-Amz-Security-Token", valid_618986 - var valid_618987 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618986 + var valid_618987 = header.getOrDefault("X-Amz-Credential") valid_618987 = validateParameter(valid_618987, JString, required = false, default = nil) if valid_618987 != nil: - section.add "X-Amz-Algorithm", valid_618987 - var valid_618988 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618987 + var valid_618988 = header.getOrDefault("X-Amz-Security-Token") valid_618988 = validateParameter(valid_618988, JString, required = false, default = nil) if valid_618988 != nil: - section.add "X-Amz-SignedHeaders", valid_618988 + section.add "X-Amz-Security-Token", valid_618988 + var valid_618989 = header.getOrDefault("X-Amz-Algorithm") + valid_618989 = validateParameter(valid_618989, JString, required = false, + default = nil) + if valid_618989 != nil: + section.add "X-Amz-Algorithm", valid_618989 + var valid_618990 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618990 = validateParameter(valid_618990, JString, required = false, + default = nil) + if valid_618990 != nil: + section.add "X-Amz-SignedHeaders", valid_618990 result.add "header", section ## parameters in `formData` object: ## MaxVersion: JString @@ -64460,68 +64487,68 @@ proc validate_PostDescribeLaunchTemplateVersions_618978(path: JsonNode; ## Filter: JArray ## :

One or more filters.

section = newJObject() - var valid_618989 = formData.getOrDefault("MaxVersion") - valid_618989 = validateParameter(valid_618989, JString, required = false, - default = nil) - if valid_618989 != nil: - section.add "MaxVersion", valid_618989 - var valid_618990 = formData.getOrDefault("NextToken") - valid_618990 = validateParameter(valid_618990, JString, required = false, - default = nil) - if valid_618990 != nil: - section.add "NextToken", valid_618990 - var valid_618991 = formData.getOrDefault("LaunchTemplateId") + var valid_618991 = formData.getOrDefault("MaxVersion") valid_618991 = validateParameter(valid_618991, JString, required = false, default = nil) if valid_618991 != nil: - section.add "LaunchTemplateId", valid_618991 - var valid_618992 = formData.getOrDefault("MinVersion") + section.add "MaxVersion", valid_618991 + var valid_618992 = formData.getOrDefault("NextToken") valid_618992 = validateParameter(valid_618992, JString, required = false, default = nil) if valid_618992 != nil: - section.add "MinVersion", valid_618992 - var valid_618993 = formData.getOrDefault("DryRun") - valid_618993 = validateParameter(valid_618993, JBool, required = false, default = nil) + section.add "NextToken", valid_618992 + var valid_618993 = formData.getOrDefault("LaunchTemplateId") + valid_618993 = validateParameter(valid_618993, JString, required = false, + default = nil) if valid_618993 != nil: - section.add "DryRun", valid_618993 - var valid_618994 = formData.getOrDefault("LaunchTemplateVersion") - valid_618994 = validateParameter(valid_618994, JArray, required = false, + section.add "LaunchTemplateId", valid_618993 + var valid_618994 = formData.getOrDefault("MinVersion") + valid_618994 = validateParameter(valid_618994, JString, required = false, default = nil) if valid_618994 != nil: - section.add "LaunchTemplateVersion", valid_618994 - var valid_618995 = formData.getOrDefault("LaunchTemplateName") - valid_618995 = validateParameter(valid_618995, JString, required = false, - default = nil) + section.add "MinVersion", valid_618994 + var valid_618995 = formData.getOrDefault("DryRun") + valid_618995 = validateParameter(valid_618995, JBool, required = false, default = nil) if valid_618995 != nil: - section.add "LaunchTemplateName", valid_618995 - var valid_618996 = formData.getOrDefault("MaxResults") - valid_618996 = validateParameter(valid_618996, JInt, required = false, default = nil) + section.add "DryRun", valid_618995 + var valid_618996 = formData.getOrDefault("LaunchTemplateVersion") + valid_618996 = validateParameter(valid_618996, JArray, required = false, + default = nil) if valid_618996 != nil: - section.add "MaxResults", valid_618996 - var valid_618997 = formData.getOrDefault("Filter") - valid_618997 = validateParameter(valid_618997, JArray, required = false, + section.add "LaunchTemplateVersion", valid_618996 + var valid_618997 = formData.getOrDefault("LaunchTemplateName") + valid_618997 = validateParameter(valid_618997, JString, required = false, default = nil) if valid_618997 != nil: - section.add "Filter", valid_618997 + section.add "LaunchTemplateName", valid_618997 + var valid_618998 = formData.getOrDefault("MaxResults") + valid_618998 = validateParameter(valid_618998, JInt, required = false, default = nil) + if valid_618998 != nil: + section.add "MaxResults", valid_618998 + var valid_618999 = formData.getOrDefault("Filter") + valid_618999 = validateParameter(valid_618999, JArray, required = false, + default = nil) + if valid_618999 != nil: + section.add "Filter", valid_618999 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618998: Call_PostDescribeLaunchTemplateVersions_618977; +proc call*(call_619000: Call_PostDescribeLaunchTemplateVersions_618979; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more versions of a specified launch template. You can describe all versions, individual versions, or a range of versions. ## - let valid = call_618998.validator(path, query, header, formData, body) - let scheme = call_618998.pickScheme + let valid = call_619000.validator(path, query, header, formData, body) + let scheme = call_619000.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618998.url(scheme.get, call_618998.host, call_618998.base, - call_618998.route, valid.getOrDefault("path"), + let url = call_619000.url(scheme.get, call_619000.host, call_619000.base, + call_619000.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618998, url, valid) + result = atozHook(call_619000, url, valid) -proc call*(call_618999: Call_PostDescribeLaunchTemplateVersions_618977; +proc call*(call_619001: Call_PostDescribeLaunchTemplateVersions_618979; MaxVersion: string = ""; NextToken: string = ""; LaunchTemplateId: string = ""; MinVersion: string = ""; DryRun: bool = false; Action: string = "DescribeLaunchTemplateVersions"; @@ -64549,32 +64576,32 @@ proc call*(call_618999: Call_PostDescribeLaunchTemplateVersions_618977; ## : The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value. This value can be between 1 and 200. ## Filter: JArray ## :

One or more filters.

- var query_619000 = newJObject() - var formData_619001 = newJObject() - add(formData_619001, "MaxVersion", newJString(MaxVersion)) - add(formData_619001, "NextToken", newJString(NextToken)) - add(formData_619001, "LaunchTemplateId", newJString(LaunchTemplateId)) - add(formData_619001, "MinVersion", newJString(MinVersion)) - add(formData_619001, "DryRun", newJBool(DryRun)) - add(query_619000, "Action", newJString(Action)) + var query_619002 = newJObject() + var formData_619003 = newJObject() + add(formData_619003, "MaxVersion", newJString(MaxVersion)) + add(formData_619003, "NextToken", newJString(NextToken)) + add(formData_619003, "LaunchTemplateId", newJString(LaunchTemplateId)) + add(formData_619003, "MinVersion", newJString(MinVersion)) + add(formData_619003, "DryRun", newJBool(DryRun)) + add(query_619002, "Action", newJString(Action)) if LaunchTemplateVersion != nil: - formData_619001.add "LaunchTemplateVersion", LaunchTemplateVersion - add(query_619000, "Version", newJString(Version)) - add(formData_619001, "LaunchTemplateName", newJString(LaunchTemplateName)) - add(formData_619001, "MaxResults", newJInt(MaxResults)) + formData_619003.add "LaunchTemplateVersion", LaunchTemplateVersion + add(query_619002, "Version", newJString(Version)) + add(formData_619003, "LaunchTemplateName", newJString(LaunchTemplateName)) + add(formData_619003, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_619001.add "Filter", Filter - result = call_618999.call(nil, query_619000, nil, formData_619001, nil) + formData_619003.add "Filter", Filter + result = call_619001.call(nil, query_619002, nil, formData_619003, nil) -var postDescribeLaunchTemplateVersions* = Call_PostDescribeLaunchTemplateVersions_618977( +var postDescribeLaunchTemplateVersions* = Call_PostDescribeLaunchTemplateVersions_618979( name: "postDescribeLaunchTemplateVersions", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeLaunchTemplateVersions", - validator: validate_PostDescribeLaunchTemplateVersions_618978, base: "/", - url: url_PostDescribeLaunchTemplateVersions_618979, + validator: validate_PostDescribeLaunchTemplateVersions_618980, base: "/", + url: url_PostDescribeLaunchTemplateVersions_618981, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeLaunchTemplateVersions_618953 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeLaunchTemplateVersions_618955(protocol: Scheme; host: string; + Call_GetDescribeLaunchTemplateVersions_618955 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeLaunchTemplateVersions_618957(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -64584,7 +64611,7 @@ proc url_GetDescribeLaunchTemplateVersions_618955(protocol: Scheme; host: string else: result.path = base & route -proc validate_GetDescribeLaunchTemplateVersions_618954(path: JsonNode; +proc validate_GetDescribeLaunchTemplateVersions_618956(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more versions of a specified launch template. You can describe all versions, individual versions, or a range of versions. ## @@ -64614,59 +64641,59 @@ proc validate_GetDescribeLaunchTemplateVersions_618954(path: JsonNode; ## LaunchTemplateName: JString ## : The name of the launch template. You must specify either the launch template ID or launch template name in the request. section = newJObject() - var valid_618956 = query.getOrDefault("MaxVersion") - valid_618956 = validateParameter(valid_618956, JString, required = false, - default = nil) - if valid_618956 != nil: - section.add "MaxVersion", valid_618956 - var valid_618957 = query.getOrDefault("MaxResults") - valid_618957 = validateParameter(valid_618957, JInt, required = false, default = nil) - if valid_618957 != nil: - section.add "MaxResults", valid_618957 - var valid_618958 = query.getOrDefault("DryRun") - valid_618958 = validateParameter(valid_618958, JBool, required = false, default = nil) - if valid_618958 != nil: - section.add "DryRun", valid_618958 - var valid_618959 = query.getOrDefault("MinVersion") - valid_618959 = validateParameter(valid_618959, JString, required = false, + var valid_618958 = query.getOrDefault("MaxVersion") + valid_618958 = validateParameter(valid_618958, JString, required = false, default = nil) + if valid_618958 != nil: + section.add "MaxVersion", valid_618958 + var valid_618959 = query.getOrDefault("MaxResults") + valid_618959 = validateParameter(valid_618959, JInt, required = false, default = nil) if valid_618959 != nil: - section.add "MinVersion", valid_618959 - var valid_618960 = query.getOrDefault("NextToken") - valid_618960 = validateParameter(valid_618960, JString, required = false, - default = nil) + section.add "MaxResults", valid_618959 + var valid_618960 = query.getOrDefault("DryRun") + valid_618960 = validateParameter(valid_618960, JBool, required = false, default = nil) if valid_618960 != nil: - section.add "NextToken", valid_618960 - var valid_618961 = query.getOrDefault("Filter") - valid_618961 = validateParameter(valid_618961, JArray, required = false, + section.add "DryRun", valid_618960 + var valid_618961 = query.getOrDefault("MinVersion") + valid_618961 = validateParameter(valid_618961, JString, required = false, default = nil) if valid_618961 != nil: - section.add "Filter", valid_618961 - var valid_618962 = query.getOrDefault("LaunchTemplateVersion") - valid_618962 = validateParameter(valid_618962, JArray, required = false, + section.add "MinVersion", valid_618961 + var valid_618962 = query.getOrDefault("NextToken") + valid_618962 = validateParameter(valid_618962, JString, required = false, default = nil) if valid_618962 != nil: - section.add "LaunchTemplateVersion", valid_618962 - var valid_618963 = query.getOrDefault("LaunchTemplateId") - valid_618963 = validateParameter(valid_618963, JString, required = false, + section.add "NextToken", valid_618962 + var valid_618963 = query.getOrDefault("Filter") + valid_618963 = validateParameter(valid_618963, JArray, required = false, default = nil) if valid_618963 != nil: - section.add "LaunchTemplateId", valid_618963 - var valid_618964 = query.getOrDefault("Action") - valid_618964 = validateParameter(valid_618964, JString, required = true, default = newJString( - "DescribeLaunchTemplateVersions")) + section.add "Filter", valid_618963 + var valid_618964 = query.getOrDefault("LaunchTemplateVersion") + valid_618964 = validateParameter(valid_618964, JArray, required = false, + default = nil) if valid_618964 != nil: - section.add "Action", valid_618964 - var valid_618965 = query.getOrDefault("Version") - valid_618965 = validateParameter(valid_618965, JString, required = true, - default = newJString("2016-11-15")) - if valid_618965 != nil: - section.add "Version", valid_618965 - var valid_618966 = query.getOrDefault("LaunchTemplateName") - valid_618966 = validateParameter(valid_618966, JString, required = false, + section.add "LaunchTemplateVersion", valid_618964 + var valid_618965 = query.getOrDefault("LaunchTemplateId") + valid_618965 = validateParameter(valid_618965, JString, required = false, default = nil) + if valid_618965 != nil: + section.add "LaunchTemplateId", valid_618965 + var valid_618966 = query.getOrDefault("Action") + valid_618966 = validateParameter(valid_618966, JString, required = true, default = newJString( + "DescribeLaunchTemplateVersions")) if valid_618966 != nil: - section.add "LaunchTemplateName", valid_618966 + section.add "Action", valid_618966 + var valid_618967 = query.getOrDefault("Version") + valid_618967 = validateParameter(valid_618967, JString, required = true, + default = newJString("2016-11-15")) + if valid_618967 != nil: + section.add "Version", valid_618967 + var valid_618968 = query.getOrDefault("LaunchTemplateName") + valid_618968 = validateParameter(valid_618968, JString, required = false, + default = nil) + if valid_618968 != nil: + section.add "LaunchTemplateName", valid_618968 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -64677,62 +64704,62 @@ proc validate_GetDescribeLaunchTemplateVersions_618954(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_618967 = header.getOrDefault("X-Amz-Signature") - valid_618967 = validateParameter(valid_618967, JString, required = false, - default = nil) - if valid_618967 != nil: - section.add "X-Amz-Signature", valid_618967 - var valid_618968 = header.getOrDefault("X-Amz-Content-Sha256") - valid_618968 = validateParameter(valid_618968, JString, required = false, - default = nil) - if valid_618968 != nil: - section.add "X-Amz-Content-Sha256", valid_618968 - var valid_618969 = header.getOrDefault("X-Amz-Date") + var valid_618969 = header.getOrDefault("X-Amz-Signature") valid_618969 = validateParameter(valid_618969, JString, required = false, default = nil) if valid_618969 != nil: - section.add "X-Amz-Date", valid_618969 - var valid_618970 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_618969 + var valid_618970 = header.getOrDefault("X-Amz-Content-Sha256") valid_618970 = validateParameter(valid_618970, JString, required = false, default = nil) if valid_618970 != nil: - section.add "X-Amz-Credential", valid_618970 - var valid_618971 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_618970 + var valid_618971 = header.getOrDefault("X-Amz-Date") valid_618971 = validateParameter(valid_618971, JString, required = false, default = nil) if valid_618971 != nil: - section.add "X-Amz-Security-Token", valid_618971 - var valid_618972 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_618971 + var valid_618972 = header.getOrDefault("X-Amz-Credential") valid_618972 = validateParameter(valid_618972, JString, required = false, default = nil) if valid_618972 != nil: - section.add "X-Amz-Algorithm", valid_618972 - var valid_618973 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_618972 + var valid_618973 = header.getOrDefault("X-Amz-Security-Token") valid_618973 = validateParameter(valid_618973, JString, required = false, default = nil) if valid_618973 != nil: - section.add "X-Amz-SignedHeaders", valid_618973 + section.add "X-Amz-Security-Token", valid_618973 + var valid_618974 = header.getOrDefault("X-Amz-Algorithm") + valid_618974 = validateParameter(valid_618974, JString, required = false, + default = nil) + if valid_618974 != nil: + section.add "X-Amz-Algorithm", valid_618974 + var valid_618975 = header.getOrDefault("X-Amz-SignedHeaders") + valid_618975 = validateParameter(valid_618975, JString, required = false, + default = nil) + if valid_618975 != nil: + section.add "X-Amz-SignedHeaders", valid_618975 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_618974: Call_GetDescribeLaunchTemplateVersions_618953; +proc call*(call_618976: Call_GetDescribeLaunchTemplateVersions_618955; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more versions of a specified launch template. You can describe all versions, individual versions, or a range of versions. ## - let valid = call_618974.validator(path, query, header, formData, body) - let scheme = call_618974.pickScheme + let valid = call_618976.validator(path, query, header, formData, body) + let scheme = call_618976.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_618974.url(scheme.get, call_618974.host, call_618974.base, - call_618974.route, valid.getOrDefault("path"), + let url = call_618976.url(scheme.get, call_618976.host, call_618976.base, + call_618976.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_618974, url, valid) + result = atozHook(call_618976, url, valid) -proc call*(call_618975: Call_GetDescribeLaunchTemplateVersions_618953; +proc call*(call_618977: Call_GetDescribeLaunchTemplateVersions_618955; MaxVersion: string = ""; MaxResults: int = 0; DryRun: bool = false; MinVersion: string = ""; NextToken: string = ""; Filter: JsonNode = nil; LaunchTemplateVersion: JsonNode = nil; LaunchTemplateId: string = ""; @@ -64760,31 +64787,31 @@ proc call*(call_618975: Call_GetDescribeLaunchTemplateVersions_618953; ## Version: string (required) ## LaunchTemplateName: string ## : The name of the launch template. You must specify either the launch template ID or launch template name in the request. - var query_618976 = newJObject() - add(query_618976, "MaxVersion", newJString(MaxVersion)) - add(query_618976, "MaxResults", newJInt(MaxResults)) - add(query_618976, "DryRun", newJBool(DryRun)) - add(query_618976, "MinVersion", newJString(MinVersion)) - add(query_618976, "NextToken", newJString(NextToken)) + var query_618978 = newJObject() + add(query_618978, "MaxVersion", newJString(MaxVersion)) + add(query_618978, "MaxResults", newJInt(MaxResults)) + add(query_618978, "DryRun", newJBool(DryRun)) + add(query_618978, "MinVersion", newJString(MinVersion)) + add(query_618978, "NextToken", newJString(NextToken)) if Filter != nil: - query_618976.add "Filter", Filter + query_618978.add "Filter", Filter if LaunchTemplateVersion != nil: - query_618976.add "LaunchTemplateVersion", LaunchTemplateVersion - add(query_618976, "LaunchTemplateId", newJString(LaunchTemplateId)) - add(query_618976, "Action", newJString(Action)) - add(query_618976, "Version", newJString(Version)) - add(query_618976, "LaunchTemplateName", newJString(LaunchTemplateName)) - result = call_618975.call(nil, query_618976, nil, nil, nil) - -var getDescribeLaunchTemplateVersions* = Call_GetDescribeLaunchTemplateVersions_618953( + query_618978.add "LaunchTemplateVersion", LaunchTemplateVersion + add(query_618978, "LaunchTemplateId", newJString(LaunchTemplateId)) + add(query_618978, "Action", newJString(Action)) + add(query_618978, "Version", newJString(Version)) + add(query_618978, "LaunchTemplateName", newJString(LaunchTemplateName)) + result = call_618977.call(nil, query_618978, nil, nil, nil) + +var getDescribeLaunchTemplateVersions* = Call_GetDescribeLaunchTemplateVersions_618955( name: "getDescribeLaunchTemplateVersions", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeLaunchTemplateVersions", - validator: validate_GetDescribeLaunchTemplateVersions_618954, base: "/", - url: url_GetDescribeLaunchTemplateVersions_618955, + validator: validate_GetDescribeLaunchTemplateVersions_618956, base: "/", + url: url_GetDescribeLaunchTemplateVersions_618957, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeLaunchTemplates_619023 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeLaunchTemplates_619025(protocol: Scheme; host: string; + Call_PostDescribeLaunchTemplates_619025 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeLaunchTemplates_619027(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -64794,7 +64821,7 @@ proc url_PostDescribeLaunchTemplates_619025(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeLaunchTemplates_619024(path: JsonNode; query: JsonNode; +proc validate_PostDescribeLaunchTemplates_619026(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more launch templates. ## @@ -64806,16 +64833,16 @@ proc validate_PostDescribeLaunchTemplates_619024(path: JsonNode; query: JsonNode ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619026 = query.getOrDefault("Action") - valid_619026 = validateParameter(valid_619026, JString, required = true, default = newJString( + var valid_619028 = query.getOrDefault("Action") + valid_619028 = validateParameter(valid_619028, JString, required = true, default = newJString( "DescribeLaunchTemplates")) - if valid_619026 != nil: - section.add "Action", valid_619026 - var valid_619027 = query.getOrDefault("Version") - valid_619027 = validateParameter(valid_619027, JString, required = true, + if valid_619028 != nil: + section.add "Action", valid_619028 + var valid_619029 = query.getOrDefault("Version") + valid_619029 = validateParameter(valid_619029, JString, required = true, default = newJString("2016-11-15")) - if valid_619027 != nil: - section.add "Version", valid_619027 + if valid_619029 != nil: + section.add "Version", valid_619029 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -64826,41 +64853,41 @@ proc validate_PostDescribeLaunchTemplates_619024(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619028 = header.getOrDefault("X-Amz-Signature") - valid_619028 = validateParameter(valid_619028, JString, required = false, - default = nil) - if valid_619028 != nil: - section.add "X-Amz-Signature", valid_619028 - var valid_619029 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619029 = validateParameter(valid_619029, JString, required = false, - default = nil) - if valid_619029 != nil: - section.add "X-Amz-Content-Sha256", valid_619029 - var valid_619030 = header.getOrDefault("X-Amz-Date") + var valid_619030 = header.getOrDefault("X-Amz-Signature") valid_619030 = validateParameter(valid_619030, JString, required = false, default = nil) if valid_619030 != nil: - section.add "X-Amz-Date", valid_619030 - var valid_619031 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619030 + var valid_619031 = header.getOrDefault("X-Amz-Content-Sha256") valid_619031 = validateParameter(valid_619031, JString, required = false, default = nil) if valid_619031 != nil: - section.add "X-Amz-Credential", valid_619031 - var valid_619032 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619031 + var valid_619032 = header.getOrDefault("X-Amz-Date") valid_619032 = validateParameter(valid_619032, JString, required = false, default = nil) if valid_619032 != nil: - section.add "X-Amz-Security-Token", valid_619032 - var valid_619033 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619032 + var valid_619033 = header.getOrDefault("X-Amz-Credential") valid_619033 = validateParameter(valid_619033, JString, required = false, default = nil) if valid_619033 != nil: - section.add "X-Amz-Algorithm", valid_619033 - var valid_619034 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619033 + var valid_619034 = header.getOrDefault("X-Amz-Security-Token") valid_619034 = validateParameter(valid_619034, JString, required = false, default = nil) if valid_619034 != nil: - section.add "X-Amz-SignedHeaders", valid_619034 + section.add "X-Amz-Security-Token", valid_619034 + var valid_619035 = header.getOrDefault("X-Amz-Algorithm") + valid_619035 = validateParameter(valid_619035, JString, required = false, + default = nil) + if valid_619035 != nil: + section.add "X-Amz-Algorithm", valid_619035 + var valid_619036 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619036 = validateParameter(valid_619036, JString, required = false, + default = nil) + if valid_619036 != nil: + section.add "X-Amz-SignedHeaders", valid_619036 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -64876,52 +64903,52 @@ proc validate_PostDescribeLaunchTemplates_619024(path: JsonNode; query: JsonNode ## Filter: JArray ## :

One or more filters.

section = newJObject() - var valid_619035 = formData.getOrDefault("NextToken") - valid_619035 = validateParameter(valid_619035, JString, required = false, - default = nil) - if valid_619035 != nil: - section.add "NextToken", valid_619035 - var valid_619036 = formData.getOrDefault("LaunchTemplateId") - valid_619036 = validateParameter(valid_619036, JArray, required = false, + var valid_619037 = formData.getOrDefault("NextToken") + valid_619037 = validateParameter(valid_619037, JString, required = false, default = nil) - if valid_619036 != nil: - section.add "LaunchTemplateId", valid_619036 - var valid_619037 = formData.getOrDefault("DryRun") - valid_619037 = validateParameter(valid_619037, JBool, required = false, default = nil) if valid_619037 != nil: - section.add "DryRun", valid_619037 - var valid_619038 = formData.getOrDefault("LaunchTemplateName") + section.add "NextToken", valid_619037 + var valid_619038 = formData.getOrDefault("LaunchTemplateId") valid_619038 = validateParameter(valid_619038, JArray, required = false, default = nil) if valid_619038 != nil: - section.add "LaunchTemplateName", valid_619038 - var valid_619039 = formData.getOrDefault("MaxResults") - valid_619039 = validateParameter(valid_619039, JInt, required = false, default = nil) + section.add "LaunchTemplateId", valid_619038 + var valid_619039 = formData.getOrDefault("DryRun") + valid_619039 = validateParameter(valid_619039, JBool, required = false, default = nil) if valid_619039 != nil: - section.add "MaxResults", valid_619039 - var valid_619040 = formData.getOrDefault("Filter") + section.add "DryRun", valid_619039 + var valid_619040 = formData.getOrDefault("LaunchTemplateName") valid_619040 = validateParameter(valid_619040, JArray, required = false, default = nil) if valid_619040 != nil: - section.add "Filter", valid_619040 + section.add "LaunchTemplateName", valid_619040 + var valid_619041 = formData.getOrDefault("MaxResults") + valid_619041 = validateParameter(valid_619041, JInt, required = false, default = nil) + if valid_619041 != nil: + section.add "MaxResults", valid_619041 + var valid_619042 = formData.getOrDefault("Filter") + valid_619042 = validateParameter(valid_619042, JArray, required = false, + default = nil) + if valid_619042 != nil: + section.add "Filter", valid_619042 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619041: Call_PostDescribeLaunchTemplates_619023; path: JsonNode; +proc call*(call_619043: Call_PostDescribeLaunchTemplates_619025; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more launch templates. ## - let valid = call_619041.validator(path, query, header, formData, body) - let scheme = call_619041.pickScheme + let valid = call_619043.validator(path, query, header, formData, body) + let scheme = call_619043.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619041.url(scheme.get, call_619041.host, call_619041.base, - call_619041.route, valid.getOrDefault("path"), + let url = call_619043.url(scheme.get, call_619043.host, call_619043.base, + call_619043.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619041, url, valid) + result = atozHook(call_619043, url, valid) -proc call*(call_619042: Call_PostDescribeLaunchTemplates_619023; +proc call*(call_619044: Call_PostDescribeLaunchTemplates_619025; NextToken: string = ""; LaunchTemplateId: JsonNode = nil; DryRun: bool = false; Action: string = "DescribeLaunchTemplates"; Version: string = "2016-11-15"; LaunchTemplateName: JsonNode = nil; @@ -64942,30 +64969,30 @@ proc call*(call_619042: Call_PostDescribeLaunchTemplates_619023; ## : The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value. This value can be between 1 and 200. ## Filter: JArray ## :

One or more filters.

- var query_619043 = newJObject() - var formData_619044 = newJObject() - add(formData_619044, "NextToken", newJString(NextToken)) + var query_619045 = newJObject() + var formData_619046 = newJObject() + add(formData_619046, "NextToken", newJString(NextToken)) if LaunchTemplateId != nil: - formData_619044.add "LaunchTemplateId", LaunchTemplateId - add(formData_619044, "DryRun", newJBool(DryRun)) - add(query_619043, "Action", newJString(Action)) - add(query_619043, "Version", newJString(Version)) + formData_619046.add "LaunchTemplateId", LaunchTemplateId + add(formData_619046, "DryRun", newJBool(DryRun)) + add(query_619045, "Action", newJString(Action)) + add(query_619045, "Version", newJString(Version)) if LaunchTemplateName != nil: - formData_619044.add "LaunchTemplateName", LaunchTemplateName - add(formData_619044, "MaxResults", newJInt(MaxResults)) + formData_619046.add "LaunchTemplateName", LaunchTemplateName + add(formData_619046, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_619044.add "Filter", Filter - result = call_619042.call(nil, query_619043, nil, formData_619044, nil) + formData_619046.add "Filter", Filter + result = call_619044.call(nil, query_619045, nil, formData_619046, nil) -var postDescribeLaunchTemplates* = Call_PostDescribeLaunchTemplates_619023( +var postDescribeLaunchTemplates* = Call_PostDescribeLaunchTemplates_619025( name: "postDescribeLaunchTemplates", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeLaunchTemplates", - validator: validate_PostDescribeLaunchTemplates_619024, base: "/", - url: url_PostDescribeLaunchTemplates_619025, + validator: validate_PostDescribeLaunchTemplates_619026, base: "/", + url: url_PostDescribeLaunchTemplates_619027, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeLaunchTemplates_619002 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeLaunchTemplates_619004(protocol: Scheme; host: string; + Call_GetDescribeLaunchTemplates_619004 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeLaunchTemplates_619006(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -64975,7 +65002,7 @@ proc url_GetDescribeLaunchTemplates_619004(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeLaunchTemplates_619003(path: JsonNode; query: JsonNode; +proc validate_GetDescribeLaunchTemplates_619005(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more launch templates. ## @@ -64999,44 +65026,44 @@ proc validate_GetDescribeLaunchTemplates_619003(path: JsonNode; query: JsonNode; ## LaunchTemplateName: JArray ## : One or more launch template names. section = newJObject() - var valid_619005 = query.getOrDefault("MaxResults") - valid_619005 = validateParameter(valid_619005, JInt, required = false, default = nil) - if valid_619005 != nil: - section.add "MaxResults", valid_619005 - var valid_619006 = query.getOrDefault("DryRun") - valid_619006 = validateParameter(valid_619006, JBool, required = false, default = nil) - if valid_619006 != nil: - section.add "DryRun", valid_619006 - var valid_619007 = query.getOrDefault("NextToken") - valid_619007 = validateParameter(valid_619007, JString, required = false, - default = nil) + var valid_619007 = query.getOrDefault("MaxResults") + valid_619007 = validateParameter(valid_619007, JInt, required = false, default = nil) if valid_619007 != nil: - section.add "NextToken", valid_619007 - var valid_619008 = query.getOrDefault("Filter") - valid_619008 = validateParameter(valid_619008, JArray, required = false, - default = nil) + section.add "MaxResults", valid_619007 + var valid_619008 = query.getOrDefault("DryRun") + valid_619008 = validateParameter(valid_619008, JBool, required = false, default = nil) if valid_619008 != nil: - section.add "Filter", valid_619008 - var valid_619009 = query.getOrDefault("LaunchTemplateId") - valid_619009 = validateParameter(valid_619009, JArray, required = false, + section.add "DryRun", valid_619008 + var valid_619009 = query.getOrDefault("NextToken") + valid_619009 = validateParameter(valid_619009, JString, required = false, default = nil) if valid_619009 != nil: - section.add "LaunchTemplateId", valid_619009 - var valid_619010 = query.getOrDefault("Action") - valid_619010 = validateParameter(valid_619010, JString, required = true, default = newJString( - "DescribeLaunchTemplates")) + section.add "NextToken", valid_619009 + var valid_619010 = query.getOrDefault("Filter") + valid_619010 = validateParameter(valid_619010, JArray, required = false, + default = nil) if valid_619010 != nil: - section.add "Action", valid_619010 - var valid_619011 = query.getOrDefault("Version") - valid_619011 = validateParameter(valid_619011, JString, required = true, - default = newJString("2016-11-15")) - if valid_619011 != nil: - section.add "Version", valid_619011 - var valid_619012 = query.getOrDefault("LaunchTemplateName") - valid_619012 = validateParameter(valid_619012, JArray, required = false, + section.add "Filter", valid_619010 + var valid_619011 = query.getOrDefault("LaunchTemplateId") + valid_619011 = validateParameter(valid_619011, JArray, required = false, default = nil) + if valid_619011 != nil: + section.add "LaunchTemplateId", valid_619011 + var valid_619012 = query.getOrDefault("Action") + valid_619012 = validateParameter(valid_619012, JString, required = true, default = newJString( + "DescribeLaunchTemplates")) if valid_619012 != nil: - section.add "LaunchTemplateName", valid_619012 + section.add "Action", valid_619012 + var valid_619013 = query.getOrDefault("Version") + valid_619013 = validateParameter(valid_619013, JString, required = true, + default = newJString("2016-11-15")) + if valid_619013 != nil: + section.add "Version", valid_619013 + var valid_619014 = query.getOrDefault("LaunchTemplateName") + valid_619014 = validateParameter(valid_619014, JArray, required = false, + default = nil) + if valid_619014 != nil: + section.add "LaunchTemplateName", valid_619014 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -65047,61 +65074,61 @@ proc validate_GetDescribeLaunchTemplates_619003(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619013 = header.getOrDefault("X-Amz-Signature") - valid_619013 = validateParameter(valid_619013, JString, required = false, - default = nil) - if valid_619013 != nil: - section.add "X-Amz-Signature", valid_619013 - var valid_619014 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619014 = validateParameter(valid_619014, JString, required = false, - default = nil) - if valid_619014 != nil: - section.add "X-Amz-Content-Sha256", valid_619014 - var valid_619015 = header.getOrDefault("X-Amz-Date") + var valid_619015 = header.getOrDefault("X-Amz-Signature") valid_619015 = validateParameter(valid_619015, JString, required = false, default = nil) if valid_619015 != nil: - section.add "X-Amz-Date", valid_619015 - var valid_619016 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619015 + var valid_619016 = header.getOrDefault("X-Amz-Content-Sha256") valid_619016 = validateParameter(valid_619016, JString, required = false, default = nil) if valid_619016 != nil: - section.add "X-Amz-Credential", valid_619016 - var valid_619017 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619016 + var valid_619017 = header.getOrDefault("X-Amz-Date") valid_619017 = validateParameter(valid_619017, JString, required = false, default = nil) if valid_619017 != nil: - section.add "X-Amz-Security-Token", valid_619017 - var valid_619018 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619017 + var valid_619018 = header.getOrDefault("X-Amz-Credential") valid_619018 = validateParameter(valid_619018, JString, required = false, default = nil) if valid_619018 != nil: - section.add "X-Amz-Algorithm", valid_619018 - var valid_619019 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619018 + var valid_619019 = header.getOrDefault("X-Amz-Security-Token") valid_619019 = validateParameter(valid_619019, JString, required = false, default = nil) if valid_619019 != nil: - section.add "X-Amz-SignedHeaders", valid_619019 + section.add "X-Amz-Security-Token", valid_619019 + var valid_619020 = header.getOrDefault("X-Amz-Algorithm") + valid_619020 = validateParameter(valid_619020, JString, required = false, + default = nil) + if valid_619020 != nil: + section.add "X-Amz-Algorithm", valid_619020 + var valid_619021 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619021 = validateParameter(valid_619021, JString, required = false, + default = nil) + if valid_619021 != nil: + section.add "X-Amz-SignedHeaders", valid_619021 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619020: Call_GetDescribeLaunchTemplates_619002; path: JsonNode; +proc call*(call_619022: Call_GetDescribeLaunchTemplates_619004; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more launch templates. ## - let valid = call_619020.validator(path, query, header, formData, body) - let scheme = call_619020.pickScheme + let valid = call_619022.validator(path, query, header, formData, body) + let scheme = call_619022.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619020.url(scheme.get, call_619020.host, call_619020.base, - call_619020.route, valid.getOrDefault("path"), + let url = call_619022.url(scheme.get, call_619022.host, call_619022.base, + call_619022.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619020, url, valid) + result = atozHook(call_619022, url, valid) -proc call*(call_619021: Call_GetDescribeLaunchTemplates_619002; +proc call*(call_619023: Call_GetDescribeLaunchTemplates_619004; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; LaunchTemplateId: JsonNode = nil; Action: string = "DescribeLaunchTemplates"; @@ -65122,29 +65149,29 @@ proc call*(call_619021: Call_GetDescribeLaunchTemplates_619002; ## Version: string (required) ## LaunchTemplateName: JArray ## : One or more launch template names. - var query_619022 = newJObject() - add(query_619022, "MaxResults", newJInt(MaxResults)) - add(query_619022, "DryRun", newJBool(DryRun)) - add(query_619022, "NextToken", newJString(NextToken)) + var query_619024 = newJObject() + add(query_619024, "MaxResults", newJInt(MaxResults)) + add(query_619024, "DryRun", newJBool(DryRun)) + add(query_619024, "NextToken", newJString(NextToken)) if Filter != nil: - query_619022.add "Filter", Filter + query_619024.add "Filter", Filter if LaunchTemplateId != nil: - query_619022.add "LaunchTemplateId", LaunchTemplateId - add(query_619022, "Action", newJString(Action)) - add(query_619022, "Version", newJString(Version)) + query_619024.add "LaunchTemplateId", LaunchTemplateId + add(query_619024, "Action", newJString(Action)) + add(query_619024, "Version", newJString(Version)) if LaunchTemplateName != nil: - query_619022.add "LaunchTemplateName", LaunchTemplateName - result = call_619021.call(nil, query_619022, nil, nil, nil) + query_619024.add "LaunchTemplateName", LaunchTemplateName + result = call_619023.call(nil, query_619024, nil, nil, nil) -var getDescribeLaunchTemplates* = Call_GetDescribeLaunchTemplates_619002( +var getDescribeLaunchTemplates* = Call_GetDescribeLaunchTemplates_619004( name: "getDescribeLaunchTemplates", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeLaunchTemplates", - validator: validate_GetDescribeLaunchTemplates_619003, base: "/", - url: url_GetDescribeLaunchTemplates_619004, + validator: validate_GetDescribeLaunchTemplates_619005, base: "/", + url: url_GetDescribeLaunchTemplates_619006, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619065 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619067( + Call_PostDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619067 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619069( protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -65155,7 +65182,7 @@ proc url_PostDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619 else: result.path = base & route -proc validate_PostDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619066( +proc validate_PostDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619068( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the associations between virtual interface groups and local gateway route tables. @@ -65168,16 +65195,16 @@ proc validate_PostDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociation ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619068 = query.getOrDefault("Action") - valid_619068 = validateParameter(valid_619068, JString, required = true, default = newJString( + var valid_619070 = query.getOrDefault("Action") + valid_619070 = validateParameter(valid_619070, JString, required = true, default = newJString( "DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations")) - if valid_619068 != nil: - section.add "Action", valid_619068 - var valid_619069 = query.getOrDefault("Version") - valid_619069 = validateParameter(valid_619069, JString, required = true, + if valid_619070 != nil: + section.add "Action", valid_619070 + var valid_619071 = query.getOrDefault("Version") + valid_619071 = validateParameter(valid_619071, JString, required = true, default = newJString("2016-11-15")) - if valid_619069 != nil: - section.add "Version", valid_619069 + if valid_619071 != nil: + section.add "Version", valid_619071 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -65188,41 +65215,41 @@ proc validate_PostDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociation ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619070 = header.getOrDefault("X-Amz-Signature") - valid_619070 = validateParameter(valid_619070, JString, required = false, - default = nil) - if valid_619070 != nil: - section.add "X-Amz-Signature", valid_619070 - var valid_619071 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619071 = validateParameter(valid_619071, JString, required = false, - default = nil) - if valid_619071 != nil: - section.add "X-Amz-Content-Sha256", valid_619071 - var valid_619072 = header.getOrDefault("X-Amz-Date") + var valid_619072 = header.getOrDefault("X-Amz-Signature") valid_619072 = validateParameter(valid_619072, JString, required = false, default = nil) if valid_619072 != nil: - section.add "X-Amz-Date", valid_619072 - var valid_619073 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619072 + var valid_619073 = header.getOrDefault("X-Amz-Content-Sha256") valid_619073 = validateParameter(valid_619073, JString, required = false, default = nil) if valid_619073 != nil: - section.add "X-Amz-Credential", valid_619073 - var valid_619074 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619073 + var valid_619074 = header.getOrDefault("X-Amz-Date") valid_619074 = validateParameter(valid_619074, JString, required = false, default = nil) if valid_619074 != nil: - section.add "X-Amz-Security-Token", valid_619074 - var valid_619075 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619074 + var valid_619075 = header.getOrDefault("X-Amz-Credential") valid_619075 = validateParameter(valid_619075, JString, required = false, default = nil) if valid_619075 != nil: - section.add "X-Amz-Algorithm", valid_619075 - var valid_619076 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619075 + var valid_619076 = header.getOrDefault("X-Amz-Security-Token") valid_619076 = validateParameter(valid_619076, JString, required = false, default = nil) if valid_619076 != nil: - section.add "X-Amz-SignedHeaders", valid_619076 + section.add "X-Amz-Security-Token", valid_619076 + var valid_619077 = header.getOrDefault("X-Amz-Algorithm") + valid_619077 = validateParameter(valid_619077, JString, required = false, + default = nil) + if valid_619077 != nil: + section.add "X-Amz-Algorithm", valid_619077 + var valid_619078 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619078 = validateParameter(valid_619078, JString, required = false, + default = nil) + if valid_619078 != nil: + section.add "X-Amz-SignedHeaders", valid_619078 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -65236,48 +65263,48 @@ proc validate_PostDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociation ## Filter: JArray ## : One or more filters. section = newJObject() - var valid_619077 = formData.getOrDefault("NextToken") - valid_619077 = validateParameter(valid_619077, JString, required = false, - default = nil) - if valid_619077 != nil: - section.add "NextToken", valid_619077 - var valid_619078 = formData.getOrDefault("DryRun") - valid_619078 = validateParameter(valid_619078, JBool, required = false, default = nil) - if valid_619078 != nil: - section.add "DryRun", valid_619078 - var valid_619079 = formData.getOrDefault("LocalGatewayRouteTableVirtualInterfaceGroupAssociationId") - valid_619079 = validateParameter(valid_619079, JArray, required = false, + var valid_619079 = formData.getOrDefault("NextToken") + valid_619079 = validateParameter(valid_619079, JString, required = false, default = nil) if valid_619079 != nil: - section.add "LocalGatewayRouteTableVirtualInterfaceGroupAssociationId", valid_619079 - var valid_619080 = formData.getOrDefault("MaxResults") - valid_619080 = validateParameter(valid_619080, JInt, required = false, default = nil) + section.add "NextToken", valid_619079 + var valid_619080 = formData.getOrDefault("DryRun") + valid_619080 = validateParameter(valid_619080, JBool, required = false, default = nil) if valid_619080 != nil: - section.add "MaxResults", valid_619080 - var valid_619081 = formData.getOrDefault("Filter") + section.add "DryRun", valid_619080 + var valid_619081 = formData.getOrDefault("LocalGatewayRouteTableVirtualInterfaceGroupAssociationId") valid_619081 = validateParameter(valid_619081, JArray, required = false, default = nil) if valid_619081 != nil: - section.add "Filter", valid_619081 + section.add "LocalGatewayRouteTableVirtualInterfaceGroupAssociationId", valid_619081 + var valid_619082 = formData.getOrDefault("MaxResults") + valid_619082 = validateParameter(valid_619082, JInt, required = false, default = nil) + if valid_619082 != nil: + section.add "MaxResults", valid_619082 + var valid_619083 = formData.getOrDefault("Filter") + valid_619083 = validateParameter(valid_619083, JArray, required = false, + default = nil) + if valid_619083 != nil: + section.add "Filter", valid_619083 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619082: Call_PostDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619065; +proc call*(call_619084: Call_PostDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619067; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the associations between virtual interface groups and local gateway route tables. ## - let valid = call_619082.validator(path, query, header, formData, body) - let scheme = call_619082.pickScheme + let valid = call_619084.validator(path, query, header, formData, body) + let scheme = call_619084.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619082.url(scheme.get, call_619082.host, call_619082.base, - call_619082.route, valid.getOrDefault("path"), + let url = call_619084.url(scheme.get, call_619084.host, call_619084.base, + call_619084.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619082, url, valid) + result = atozHook(call_619084, url, valid) -proc call*(call_619083: Call_PostDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619065; +proc call*(call_619085: Call_PostDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619067; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations"; LocalGatewayRouteTableVirtualInterfaceGroupAssociationId: JsonNode = nil; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -65295,27 +65322,27 @@ proc call*(call_619083: Call_PostDescribeLocalGatewayRouteTableVirtualInterfaceG ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## Filter: JArray ## : One or more filters. - var query_619084 = newJObject() - var formData_619085 = newJObject() - add(formData_619085, "NextToken", newJString(NextToken)) - add(formData_619085, "DryRun", newJBool(DryRun)) - add(query_619084, "Action", newJString(Action)) + var query_619086 = newJObject() + var formData_619087 = newJObject() + add(formData_619087, "NextToken", newJString(NextToken)) + add(formData_619087, "DryRun", newJBool(DryRun)) + add(query_619086, "Action", newJString(Action)) if LocalGatewayRouteTableVirtualInterfaceGroupAssociationId != nil: - formData_619085.add "LocalGatewayRouteTableVirtualInterfaceGroupAssociationId", + formData_619087.add "LocalGatewayRouteTableVirtualInterfaceGroupAssociationId", LocalGatewayRouteTableVirtualInterfaceGroupAssociationId - add(query_619084, "Version", newJString(Version)) - add(formData_619085, "MaxResults", newJInt(MaxResults)) + add(query_619086, "Version", newJString(Version)) + add(formData_619087, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_619085.add "Filter", Filter - result = call_619083.call(nil, query_619084, nil, formData_619085, nil) + formData_619087.add "Filter", Filter + result = call_619085.call(nil, query_619086, nil, formData_619087, nil) -var postDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations* = Call_PostDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619065(name: "postDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations", - meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations", validator: validate_PostDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619066, - base: "/", url: url_PostDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619067, +var postDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations* = Call_PostDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619067(name: "postDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations", + meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations", validator: validate_PostDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619068, + base: "/", url: url_PostDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619069, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619045 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619047( + Call_GetDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619047 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619049( protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -65326,7 +65353,7 @@ proc url_GetDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_6190 else: result.path = base & route -proc validate_GetDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619046( +proc validate_GetDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619048( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the associations between virtual interface groups and local gateway route tables. @@ -65349,39 +65376,39 @@ proc validate_GetDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619048 = query.getOrDefault("MaxResults") - valid_619048 = validateParameter(valid_619048, JInt, required = false, default = nil) - if valid_619048 != nil: - section.add "MaxResults", valid_619048 - var valid_619049 = query.getOrDefault("LocalGatewayRouteTableVirtualInterfaceGroupAssociationId") - valid_619049 = validateParameter(valid_619049, JArray, required = false, - default = nil) - if valid_619049 != nil: - section.add "LocalGatewayRouteTableVirtualInterfaceGroupAssociationId", valid_619049 - var valid_619050 = query.getOrDefault("DryRun") - valid_619050 = validateParameter(valid_619050, JBool, required = false, default = nil) + var valid_619050 = query.getOrDefault("MaxResults") + valid_619050 = validateParameter(valid_619050, JInt, required = false, default = nil) if valid_619050 != nil: - section.add "DryRun", valid_619050 - var valid_619051 = query.getOrDefault("NextToken") - valid_619051 = validateParameter(valid_619051, JString, required = false, + section.add "MaxResults", valid_619050 + var valid_619051 = query.getOrDefault("LocalGatewayRouteTableVirtualInterfaceGroupAssociationId") + valid_619051 = validateParameter(valid_619051, JArray, required = false, default = nil) if valid_619051 != nil: - section.add "NextToken", valid_619051 - var valid_619052 = query.getOrDefault("Filter") - valid_619052 = validateParameter(valid_619052, JArray, required = false, - default = nil) + section.add "LocalGatewayRouteTableVirtualInterfaceGroupAssociationId", valid_619051 + var valid_619052 = query.getOrDefault("DryRun") + valid_619052 = validateParameter(valid_619052, JBool, required = false, default = nil) if valid_619052 != nil: - section.add "Filter", valid_619052 - var valid_619053 = query.getOrDefault("Action") - valid_619053 = validateParameter(valid_619053, JString, required = true, default = newJString( - "DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations")) + section.add "DryRun", valid_619052 + var valid_619053 = query.getOrDefault("NextToken") + valid_619053 = validateParameter(valid_619053, JString, required = false, + default = nil) if valid_619053 != nil: - section.add "Action", valid_619053 - var valid_619054 = query.getOrDefault("Version") - valid_619054 = validateParameter(valid_619054, JString, required = true, - default = newJString("2016-11-15")) + section.add "NextToken", valid_619053 + var valid_619054 = query.getOrDefault("Filter") + valid_619054 = validateParameter(valid_619054, JArray, required = false, + default = nil) if valid_619054 != nil: - section.add "Version", valid_619054 + section.add "Filter", valid_619054 + var valid_619055 = query.getOrDefault("Action") + valid_619055 = validateParameter(valid_619055, JString, required = true, default = newJString( + "DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations")) + if valid_619055 != nil: + section.add "Action", valid_619055 + var valid_619056 = query.getOrDefault("Version") + valid_619056 = validateParameter(valid_619056, JString, required = true, + default = newJString("2016-11-15")) + if valid_619056 != nil: + section.add "Version", valid_619056 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -65392,62 +65419,62 @@ proc validate_GetDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619055 = header.getOrDefault("X-Amz-Signature") - valid_619055 = validateParameter(valid_619055, JString, required = false, - default = nil) - if valid_619055 != nil: - section.add "X-Amz-Signature", valid_619055 - var valid_619056 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619056 = validateParameter(valid_619056, JString, required = false, - default = nil) - if valid_619056 != nil: - section.add "X-Amz-Content-Sha256", valid_619056 - var valid_619057 = header.getOrDefault("X-Amz-Date") + var valid_619057 = header.getOrDefault("X-Amz-Signature") valid_619057 = validateParameter(valid_619057, JString, required = false, default = nil) if valid_619057 != nil: - section.add "X-Amz-Date", valid_619057 - var valid_619058 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619057 + var valid_619058 = header.getOrDefault("X-Amz-Content-Sha256") valid_619058 = validateParameter(valid_619058, JString, required = false, default = nil) if valid_619058 != nil: - section.add "X-Amz-Credential", valid_619058 - var valid_619059 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619058 + var valid_619059 = header.getOrDefault("X-Amz-Date") valid_619059 = validateParameter(valid_619059, JString, required = false, default = nil) if valid_619059 != nil: - section.add "X-Amz-Security-Token", valid_619059 - var valid_619060 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619059 + var valid_619060 = header.getOrDefault("X-Amz-Credential") valid_619060 = validateParameter(valid_619060, JString, required = false, default = nil) if valid_619060 != nil: - section.add "X-Amz-Algorithm", valid_619060 - var valid_619061 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619060 + var valid_619061 = header.getOrDefault("X-Amz-Security-Token") valid_619061 = validateParameter(valid_619061, JString, required = false, default = nil) if valid_619061 != nil: - section.add "X-Amz-SignedHeaders", valid_619061 + section.add "X-Amz-Security-Token", valid_619061 + var valid_619062 = header.getOrDefault("X-Amz-Algorithm") + valid_619062 = validateParameter(valid_619062, JString, required = false, + default = nil) + if valid_619062 != nil: + section.add "X-Amz-Algorithm", valid_619062 + var valid_619063 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619063 = validateParameter(valid_619063, JString, required = false, + default = nil) + if valid_619063 != nil: + section.add "X-Amz-SignedHeaders", valid_619063 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619062: Call_GetDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619045; +proc call*(call_619064: Call_GetDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619047; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the associations between virtual interface groups and local gateway route tables. ## - let valid = call_619062.validator(path, query, header, formData, body) - let scheme = call_619062.pickScheme + let valid = call_619064.validator(path, query, header, formData, body) + let scheme = call_619064.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619062.url(scheme.get, call_619062.host, call_619062.base, - call_619062.route, valid.getOrDefault("path"), + let url = call_619064.url(scheme.get, call_619064.host, call_619064.base, + call_619064.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619062, url, valid) + result = atozHook(call_619064, url, valid) -proc call*(call_619063: Call_GetDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619045; +proc call*(call_619065: Call_GetDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619047; MaxResults: int = 0; LocalGatewayRouteTableVirtualInterfaceGroupAssociationId: JsonNode = nil; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations"; Version: string = "2016-11-15"): Recallable = @@ -65465,27 +65492,27 @@ proc call*(call_619063: Call_GetDescribeLocalGatewayRouteTableVirtualInterfaceGr ## : One or more filters. ## Action: string (required) ## Version: string (required) - var query_619064 = newJObject() - add(query_619064, "MaxResults", newJInt(MaxResults)) + var query_619066 = newJObject() + add(query_619066, "MaxResults", newJInt(MaxResults)) if LocalGatewayRouteTableVirtualInterfaceGroupAssociationId != nil: - query_619064.add "LocalGatewayRouteTableVirtualInterfaceGroupAssociationId", + query_619066.add "LocalGatewayRouteTableVirtualInterfaceGroupAssociationId", LocalGatewayRouteTableVirtualInterfaceGroupAssociationId - add(query_619064, "DryRun", newJBool(DryRun)) - add(query_619064, "NextToken", newJString(NextToken)) + add(query_619066, "DryRun", newJBool(DryRun)) + add(query_619066, "NextToken", newJString(NextToken)) if Filter != nil: - query_619064.add "Filter", Filter - add(query_619064, "Action", newJString(Action)) - add(query_619064, "Version", newJString(Version)) - result = call_619063.call(nil, query_619064, nil, nil, nil) + query_619066.add "Filter", Filter + add(query_619066, "Action", newJString(Action)) + add(query_619066, "Version", newJString(Version)) + result = call_619065.call(nil, query_619066, nil, nil, nil) -var getDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations* = Call_GetDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619045( +var getDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations* = Call_GetDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619047( name: "getDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations", - meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations", validator: validate_GetDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619046, - base: "/", url: url_GetDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619047, + meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations", validator: validate_GetDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619048, + base: "/", url: url_GetDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations_619049, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeLocalGatewayRouteTableVpcAssociations_619106 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeLocalGatewayRouteTableVpcAssociations_619108( + Call_PostDescribeLocalGatewayRouteTableVpcAssociations_619108 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeLocalGatewayRouteTableVpcAssociations_619110( protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -65496,7 +65523,7 @@ proc url_PostDescribeLocalGatewayRouteTableVpcAssociations_619108( else: result.path = base & route -proc validate_PostDescribeLocalGatewayRouteTableVpcAssociations_619107( +proc validate_PostDescribeLocalGatewayRouteTableVpcAssociations_619109( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the specified associations between VPCs and local gateway route tables. @@ -65509,16 +65536,16 @@ proc validate_PostDescribeLocalGatewayRouteTableVpcAssociations_619107( ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619109 = query.getOrDefault("Action") - valid_619109 = validateParameter(valid_619109, JString, required = true, default = newJString( + var valid_619111 = query.getOrDefault("Action") + valid_619111 = validateParameter(valid_619111, JString, required = true, default = newJString( "DescribeLocalGatewayRouteTableVpcAssociations")) - if valid_619109 != nil: - section.add "Action", valid_619109 - var valid_619110 = query.getOrDefault("Version") - valid_619110 = validateParameter(valid_619110, JString, required = true, + if valid_619111 != nil: + section.add "Action", valid_619111 + var valid_619112 = query.getOrDefault("Version") + valid_619112 = validateParameter(valid_619112, JString, required = true, default = newJString("2016-11-15")) - if valid_619110 != nil: - section.add "Version", valid_619110 + if valid_619112 != nil: + section.add "Version", valid_619112 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -65529,41 +65556,41 @@ proc validate_PostDescribeLocalGatewayRouteTableVpcAssociations_619107( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619111 = header.getOrDefault("X-Amz-Signature") - valid_619111 = validateParameter(valid_619111, JString, required = false, - default = nil) - if valid_619111 != nil: - section.add "X-Amz-Signature", valid_619111 - var valid_619112 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619112 = validateParameter(valid_619112, JString, required = false, - default = nil) - if valid_619112 != nil: - section.add "X-Amz-Content-Sha256", valid_619112 - var valid_619113 = header.getOrDefault("X-Amz-Date") + var valid_619113 = header.getOrDefault("X-Amz-Signature") valid_619113 = validateParameter(valid_619113, JString, required = false, default = nil) if valid_619113 != nil: - section.add "X-Amz-Date", valid_619113 - var valid_619114 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619113 + var valid_619114 = header.getOrDefault("X-Amz-Content-Sha256") valid_619114 = validateParameter(valid_619114, JString, required = false, default = nil) if valid_619114 != nil: - section.add "X-Amz-Credential", valid_619114 - var valid_619115 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619114 + var valid_619115 = header.getOrDefault("X-Amz-Date") valid_619115 = validateParameter(valid_619115, JString, required = false, default = nil) if valid_619115 != nil: - section.add "X-Amz-Security-Token", valid_619115 - var valid_619116 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619115 + var valid_619116 = header.getOrDefault("X-Amz-Credential") valid_619116 = validateParameter(valid_619116, JString, required = false, default = nil) if valid_619116 != nil: - section.add "X-Amz-Algorithm", valid_619116 - var valid_619117 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619116 + var valid_619117 = header.getOrDefault("X-Amz-Security-Token") valid_619117 = validateParameter(valid_619117, JString, required = false, default = nil) if valid_619117 != nil: - section.add "X-Amz-SignedHeaders", valid_619117 + section.add "X-Amz-Security-Token", valid_619117 + var valid_619118 = header.getOrDefault("X-Amz-Algorithm") + valid_619118 = validateParameter(valid_619118, JString, required = false, + default = nil) + if valid_619118 != nil: + section.add "X-Amz-Algorithm", valid_619118 + var valid_619119 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619119 = validateParameter(valid_619119, JString, required = false, + default = nil) + if valid_619119 != nil: + section.add "X-Amz-SignedHeaders", valid_619119 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -65577,48 +65604,48 @@ proc validate_PostDescribeLocalGatewayRouteTableVpcAssociations_619107( ## Filter: JArray ## : One or more filters. section = newJObject() - var valid_619118 = formData.getOrDefault("NextToken") - valid_619118 = validateParameter(valid_619118, JString, required = false, - default = nil) - if valid_619118 != nil: - section.add "NextToken", valid_619118 - var valid_619119 = formData.getOrDefault("LocalGatewayRouteTableVpcAssociationId") - valid_619119 = validateParameter(valid_619119, JArray, required = false, + var valid_619120 = formData.getOrDefault("NextToken") + valid_619120 = validateParameter(valid_619120, JString, required = false, default = nil) - if valid_619119 != nil: - section.add "LocalGatewayRouteTableVpcAssociationId", valid_619119 - var valid_619120 = formData.getOrDefault("DryRun") - valid_619120 = validateParameter(valid_619120, JBool, required = false, default = nil) if valid_619120 != nil: - section.add "DryRun", valid_619120 - var valid_619121 = formData.getOrDefault("MaxResults") - valid_619121 = validateParameter(valid_619121, JInt, required = false, default = nil) - if valid_619121 != nil: - section.add "MaxResults", valid_619121 - var valid_619122 = formData.getOrDefault("Filter") - valid_619122 = validateParameter(valid_619122, JArray, required = false, + section.add "NextToken", valid_619120 + var valid_619121 = formData.getOrDefault("LocalGatewayRouteTableVpcAssociationId") + valid_619121 = validateParameter(valid_619121, JArray, required = false, default = nil) + if valid_619121 != nil: + section.add "LocalGatewayRouteTableVpcAssociationId", valid_619121 + var valid_619122 = formData.getOrDefault("DryRun") + valid_619122 = validateParameter(valid_619122, JBool, required = false, default = nil) if valid_619122 != nil: - section.add "Filter", valid_619122 + section.add "DryRun", valid_619122 + var valid_619123 = formData.getOrDefault("MaxResults") + valid_619123 = validateParameter(valid_619123, JInt, required = false, default = nil) + if valid_619123 != nil: + section.add "MaxResults", valid_619123 + var valid_619124 = formData.getOrDefault("Filter") + valid_619124 = validateParameter(valid_619124, JArray, required = false, + default = nil) + if valid_619124 != nil: + section.add "Filter", valid_619124 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619123: Call_PostDescribeLocalGatewayRouteTableVpcAssociations_619106; +proc call*(call_619125: Call_PostDescribeLocalGatewayRouteTableVpcAssociations_619108; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the specified associations between VPCs and local gateway route tables. ## - let valid = call_619123.validator(path, query, header, formData, body) - let scheme = call_619123.pickScheme + let valid = call_619125.validator(path, query, header, formData, body) + let scheme = call_619125.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619123.url(scheme.get, call_619123.host, call_619123.base, - call_619123.route, valid.getOrDefault("path"), + let url = call_619125.url(scheme.get, call_619125.host, call_619125.base, + call_619125.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619123, url, valid) + result = atozHook(call_619125, url, valid) -proc call*(call_619124: Call_PostDescribeLocalGatewayRouteTableVpcAssociations_619106; +proc call*(call_619126: Call_PostDescribeLocalGatewayRouteTableVpcAssociations_619108; NextToken: string = ""; LocalGatewayRouteTableVpcAssociationId: JsonNode = nil; DryRun: bool = false; @@ -65638,30 +65665,30 @@ proc call*(call_619124: Call_PostDescribeLocalGatewayRouteTableVpcAssociations_6 ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## Filter: JArray ## : One or more filters. - var query_619125 = newJObject() - var formData_619126 = newJObject() - add(formData_619126, "NextToken", newJString(NextToken)) + var query_619127 = newJObject() + var formData_619128 = newJObject() + add(formData_619128, "NextToken", newJString(NextToken)) if LocalGatewayRouteTableVpcAssociationId != nil: - formData_619126.add "LocalGatewayRouteTableVpcAssociationId", + formData_619128.add "LocalGatewayRouteTableVpcAssociationId", LocalGatewayRouteTableVpcAssociationId - add(formData_619126, "DryRun", newJBool(DryRun)) - add(query_619125, "Action", newJString(Action)) - add(query_619125, "Version", newJString(Version)) - add(formData_619126, "MaxResults", newJInt(MaxResults)) + add(formData_619128, "DryRun", newJBool(DryRun)) + add(query_619127, "Action", newJString(Action)) + add(query_619127, "Version", newJString(Version)) + add(formData_619128, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_619126.add "Filter", Filter - result = call_619124.call(nil, query_619125, nil, formData_619126, nil) + formData_619128.add "Filter", Filter + result = call_619126.call(nil, query_619127, nil, formData_619128, nil) -var postDescribeLocalGatewayRouteTableVpcAssociations* = Call_PostDescribeLocalGatewayRouteTableVpcAssociations_619106( +var postDescribeLocalGatewayRouteTableVpcAssociations* = Call_PostDescribeLocalGatewayRouteTableVpcAssociations_619108( name: "postDescribeLocalGatewayRouteTableVpcAssociations", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeLocalGatewayRouteTableVpcAssociations", - validator: validate_PostDescribeLocalGatewayRouteTableVpcAssociations_619107, - base: "/", url: url_PostDescribeLocalGatewayRouteTableVpcAssociations_619108, + validator: validate_PostDescribeLocalGatewayRouteTableVpcAssociations_619109, + base: "/", url: url_PostDescribeLocalGatewayRouteTableVpcAssociations_619110, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeLocalGatewayRouteTableVpcAssociations_619086 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeLocalGatewayRouteTableVpcAssociations_619088( + Call_GetDescribeLocalGatewayRouteTableVpcAssociations_619088 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeLocalGatewayRouteTableVpcAssociations_619090( protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -65672,7 +65699,7 @@ proc url_GetDescribeLocalGatewayRouteTableVpcAssociations_619088( else: result.path = base & route -proc validate_GetDescribeLocalGatewayRouteTableVpcAssociations_619087( +proc validate_GetDescribeLocalGatewayRouteTableVpcAssociations_619089( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the specified associations between VPCs and local gateway route tables. @@ -65695,39 +65722,39 @@ proc validate_GetDescribeLocalGatewayRouteTableVpcAssociations_619087( ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619089 = query.getOrDefault("MaxResults") - valid_619089 = validateParameter(valid_619089, JInt, required = false, default = nil) - if valid_619089 != nil: - section.add "MaxResults", valid_619089 - var valid_619090 = query.getOrDefault("DryRun") - valid_619090 = validateParameter(valid_619090, JBool, required = false, default = nil) - if valid_619090 != nil: - section.add "DryRun", valid_619090 - var valid_619091 = query.getOrDefault("NextToken") - valid_619091 = validateParameter(valid_619091, JString, required = false, - default = nil) + var valid_619091 = query.getOrDefault("MaxResults") + valid_619091 = validateParameter(valid_619091, JInt, required = false, default = nil) if valid_619091 != nil: - section.add "NextToken", valid_619091 - var valid_619092 = query.getOrDefault("Filter") - valid_619092 = validateParameter(valid_619092, JArray, required = false, - default = nil) + section.add "MaxResults", valid_619091 + var valid_619092 = query.getOrDefault("DryRun") + valid_619092 = validateParameter(valid_619092, JBool, required = false, default = nil) if valid_619092 != nil: - section.add "Filter", valid_619092 - var valid_619093 = query.getOrDefault("LocalGatewayRouteTableVpcAssociationId") - valid_619093 = validateParameter(valid_619093, JArray, required = false, + section.add "DryRun", valid_619092 + var valid_619093 = query.getOrDefault("NextToken") + valid_619093 = validateParameter(valid_619093, JString, required = false, default = nil) if valid_619093 != nil: - section.add "LocalGatewayRouteTableVpcAssociationId", valid_619093 - var valid_619094 = query.getOrDefault("Action") - valid_619094 = validateParameter(valid_619094, JString, required = true, default = newJString( - "DescribeLocalGatewayRouteTableVpcAssociations")) + section.add "NextToken", valid_619093 + var valid_619094 = query.getOrDefault("Filter") + valid_619094 = validateParameter(valid_619094, JArray, required = false, + default = nil) if valid_619094 != nil: - section.add "Action", valid_619094 - var valid_619095 = query.getOrDefault("Version") - valid_619095 = validateParameter(valid_619095, JString, required = true, - default = newJString("2016-11-15")) + section.add "Filter", valid_619094 + var valid_619095 = query.getOrDefault("LocalGatewayRouteTableVpcAssociationId") + valid_619095 = validateParameter(valid_619095, JArray, required = false, + default = nil) if valid_619095 != nil: - section.add "Version", valid_619095 + section.add "LocalGatewayRouteTableVpcAssociationId", valid_619095 + var valid_619096 = query.getOrDefault("Action") + valid_619096 = validateParameter(valid_619096, JString, required = true, default = newJString( + "DescribeLocalGatewayRouteTableVpcAssociations")) + if valid_619096 != nil: + section.add "Action", valid_619096 + var valid_619097 = query.getOrDefault("Version") + valid_619097 = validateParameter(valid_619097, JString, required = true, + default = newJString("2016-11-15")) + if valid_619097 != nil: + section.add "Version", valid_619097 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -65738,62 +65765,62 @@ proc validate_GetDescribeLocalGatewayRouteTableVpcAssociations_619087( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619096 = header.getOrDefault("X-Amz-Signature") - valid_619096 = validateParameter(valid_619096, JString, required = false, - default = nil) - if valid_619096 != nil: - section.add "X-Amz-Signature", valid_619096 - var valid_619097 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619097 = validateParameter(valid_619097, JString, required = false, - default = nil) - if valid_619097 != nil: - section.add "X-Amz-Content-Sha256", valid_619097 - var valid_619098 = header.getOrDefault("X-Amz-Date") + var valid_619098 = header.getOrDefault("X-Amz-Signature") valid_619098 = validateParameter(valid_619098, JString, required = false, default = nil) if valid_619098 != nil: - section.add "X-Amz-Date", valid_619098 - var valid_619099 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619098 + var valid_619099 = header.getOrDefault("X-Amz-Content-Sha256") valid_619099 = validateParameter(valid_619099, JString, required = false, default = nil) if valid_619099 != nil: - section.add "X-Amz-Credential", valid_619099 - var valid_619100 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619099 + var valid_619100 = header.getOrDefault("X-Amz-Date") valid_619100 = validateParameter(valid_619100, JString, required = false, default = nil) if valid_619100 != nil: - section.add "X-Amz-Security-Token", valid_619100 - var valid_619101 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619100 + var valid_619101 = header.getOrDefault("X-Amz-Credential") valid_619101 = validateParameter(valid_619101, JString, required = false, default = nil) if valid_619101 != nil: - section.add "X-Amz-Algorithm", valid_619101 - var valid_619102 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619101 + var valid_619102 = header.getOrDefault("X-Amz-Security-Token") valid_619102 = validateParameter(valid_619102, JString, required = false, default = nil) if valid_619102 != nil: - section.add "X-Amz-SignedHeaders", valid_619102 + section.add "X-Amz-Security-Token", valid_619102 + var valid_619103 = header.getOrDefault("X-Amz-Algorithm") + valid_619103 = validateParameter(valid_619103, JString, required = false, + default = nil) + if valid_619103 != nil: + section.add "X-Amz-Algorithm", valid_619103 + var valid_619104 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619104 = validateParameter(valid_619104, JString, required = false, + default = nil) + if valid_619104 != nil: + section.add "X-Amz-SignedHeaders", valid_619104 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619103: Call_GetDescribeLocalGatewayRouteTableVpcAssociations_619086; +proc call*(call_619105: Call_GetDescribeLocalGatewayRouteTableVpcAssociations_619088; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the specified associations between VPCs and local gateway route tables. ## - let valid = call_619103.validator(path, query, header, formData, body) - let scheme = call_619103.pickScheme + let valid = call_619105.validator(path, query, header, formData, body) + let scheme = call_619105.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619103.url(scheme.get, call_619103.host, call_619103.base, - call_619103.route, valid.getOrDefault("path"), + let url = call_619105.url(scheme.get, call_619105.host, call_619105.base, + call_619105.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619103, url, valid) + result = atozHook(call_619105, url, valid) -proc call*(call_619104: Call_GetDescribeLocalGatewayRouteTableVpcAssociations_619086; +proc call*(call_619106: Call_GetDescribeLocalGatewayRouteTableVpcAssociations_619088; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; LocalGatewayRouteTableVpcAssociationId: JsonNode = nil; @@ -65813,29 +65840,29 @@ proc call*(call_619104: Call_GetDescribeLocalGatewayRouteTableVpcAssociations_61 ## : The IDs of the associations. ## Action: string (required) ## Version: string (required) - var query_619105 = newJObject() - add(query_619105, "MaxResults", newJInt(MaxResults)) - add(query_619105, "DryRun", newJBool(DryRun)) - add(query_619105, "NextToken", newJString(NextToken)) + var query_619107 = newJObject() + add(query_619107, "MaxResults", newJInt(MaxResults)) + add(query_619107, "DryRun", newJBool(DryRun)) + add(query_619107, "NextToken", newJString(NextToken)) if Filter != nil: - query_619105.add "Filter", Filter + query_619107.add "Filter", Filter if LocalGatewayRouteTableVpcAssociationId != nil: - query_619105.add "LocalGatewayRouteTableVpcAssociationId", + query_619107.add "LocalGatewayRouteTableVpcAssociationId", LocalGatewayRouteTableVpcAssociationId - add(query_619105, "Action", newJString(Action)) - add(query_619105, "Version", newJString(Version)) - result = call_619104.call(nil, query_619105, nil, nil, nil) + add(query_619107, "Action", newJString(Action)) + add(query_619107, "Version", newJString(Version)) + result = call_619106.call(nil, query_619107, nil, nil, nil) -var getDescribeLocalGatewayRouteTableVpcAssociations* = Call_GetDescribeLocalGatewayRouteTableVpcAssociations_619086( +var getDescribeLocalGatewayRouteTableVpcAssociations* = Call_GetDescribeLocalGatewayRouteTableVpcAssociations_619088( name: "getDescribeLocalGatewayRouteTableVpcAssociations", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeLocalGatewayRouteTableVpcAssociations", - validator: validate_GetDescribeLocalGatewayRouteTableVpcAssociations_619087, - base: "/", url: url_GetDescribeLocalGatewayRouteTableVpcAssociations_619088, + validator: validate_GetDescribeLocalGatewayRouteTableVpcAssociations_619089, + base: "/", url: url_GetDescribeLocalGatewayRouteTableVpcAssociations_619090, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeLocalGatewayRouteTables_619147 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeLocalGatewayRouteTables_619149(protocol: Scheme; host: string; + Call_PostDescribeLocalGatewayRouteTables_619149 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeLocalGatewayRouteTables_619151(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -65845,7 +65872,7 @@ proc url_PostDescribeLocalGatewayRouteTables_619149(protocol: Scheme; host: stri else: result.path = base & route -proc validate_PostDescribeLocalGatewayRouteTables_619148(path: JsonNode; +proc validate_PostDescribeLocalGatewayRouteTables_619150(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more local gateway route tables. By default, all local gateway route tables are described. Alternatively, you can filter the results. ## @@ -65857,16 +65884,16 @@ proc validate_PostDescribeLocalGatewayRouteTables_619148(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619150 = query.getOrDefault("Action") - valid_619150 = validateParameter(valid_619150, JString, required = true, default = newJString( + var valid_619152 = query.getOrDefault("Action") + valid_619152 = validateParameter(valid_619152, JString, required = true, default = newJString( "DescribeLocalGatewayRouteTables")) - if valid_619150 != nil: - section.add "Action", valid_619150 - var valid_619151 = query.getOrDefault("Version") - valid_619151 = validateParameter(valid_619151, JString, required = true, + if valid_619152 != nil: + section.add "Action", valid_619152 + var valid_619153 = query.getOrDefault("Version") + valid_619153 = validateParameter(valid_619153, JString, required = true, default = newJString("2016-11-15")) - if valid_619151 != nil: - section.add "Version", valid_619151 + if valid_619153 != nil: + section.add "Version", valid_619153 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -65877,41 +65904,41 @@ proc validate_PostDescribeLocalGatewayRouteTables_619148(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619152 = header.getOrDefault("X-Amz-Signature") - valid_619152 = validateParameter(valid_619152, JString, required = false, - default = nil) - if valid_619152 != nil: - section.add "X-Amz-Signature", valid_619152 - var valid_619153 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619153 = validateParameter(valid_619153, JString, required = false, - default = nil) - if valid_619153 != nil: - section.add "X-Amz-Content-Sha256", valid_619153 - var valid_619154 = header.getOrDefault("X-Amz-Date") + var valid_619154 = header.getOrDefault("X-Amz-Signature") valid_619154 = validateParameter(valid_619154, JString, required = false, default = nil) if valid_619154 != nil: - section.add "X-Amz-Date", valid_619154 - var valid_619155 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619154 + var valid_619155 = header.getOrDefault("X-Amz-Content-Sha256") valid_619155 = validateParameter(valid_619155, JString, required = false, default = nil) if valid_619155 != nil: - section.add "X-Amz-Credential", valid_619155 - var valid_619156 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619155 + var valid_619156 = header.getOrDefault("X-Amz-Date") valid_619156 = validateParameter(valid_619156, JString, required = false, default = nil) if valid_619156 != nil: - section.add "X-Amz-Security-Token", valid_619156 - var valid_619157 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619156 + var valid_619157 = header.getOrDefault("X-Amz-Credential") valid_619157 = validateParameter(valid_619157, JString, required = false, default = nil) if valid_619157 != nil: - section.add "X-Amz-Algorithm", valid_619157 - var valid_619158 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619157 + var valid_619158 = header.getOrDefault("X-Amz-Security-Token") valid_619158 = validateParameter(valid_619158, JString, required = false, default = nil) if valid_619158 != nil: - section.add "X-Amz-SignedHeaders", valid_619158 + section.add "X-Amz-Security-Token", valid_619158 + var valid_619159 = header.getOrDefault("X-Amz-Algorithm") + valid_619159 = validateParameter(valid_619159, JString, required = false, + default = nil) + if valid_619159 != nil: + section.add "X-Amz-Algorithm", valid_619159 + var valid_619160 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619160 = validateParameter(valid_619160, JString, required = false, + default = nil) + if valid_619160 != nil: + section.add "X-Amz-SignedHeaders", valid_619160 result.add "header", section ## parameters in `formData` object: ## LocalGatewayRouteTableId: JArray @@ -65925,48 +65952,48 @@ proc validate_PostDescribeLocalGatewayRouteTables_619148(path: JsonNode; ## Filter: JArray ## : One or more filters. section = newJObject() - var valid_619159 = formData.getOrDefault("LocalGatewayRouteTableId") - valid_619159 = validateParameter(valid_619159, JArray, required = false, - default = nil) - if valid_619159 != nil: - section.add "LocalGatewayRouteTableId", valid_619159 - var valid_619160 = formData.getOrDefault("NextToken") - valid_619160 = validateParameter(valid_619160, JString, required = false, + var valid_619161 = formData.getOrDefault("LocalGatewayRouteTableId") + valid_619161 = validateParameter(valid_619161, JArray, required = false, default = nil) - if valid_619160 != nil: - section.add "NextToken", valid_619160 - var valid_619161 = formData.getOrDefault("DryRun") - valid_619161 = validateParameter(valid_619161, JBool, required = false, default = nil) if valid_619161 != nil: - section.add "DryRun", valid_619161 - var valid_619162 = formData.getOrDefault("MaxResults") - valid_619162 = validateParameter(valid_619162, JInt, required = false, default = nil) - if valid_619162 != nil: - section.add "MaxResults", valid_619162 - var valid_619163 = formData.getOrDefault("Filter") - valid_619163 = validateParameter(valid_619163, JArray, required = false, + section.add "LocalGatewayRouteTableId", valid_619161 + var valid_619162 = formData.getOrDefault("NextToken") + valid_619162 = validateParameter(valid_619162, JString, required = false, default = nil) + if valid_619162 != nil: + section.add "NextToken", valid_619162 + var valid_619163 = formData.getOrDefault("DryRun") + valid_619163 = validateParameter(valid_619163, JBool, required = false, default = nil) if valid_619163 != nil: - section.add "Filter", valid_619163 + section.add "DryRun", valid_619163 + var valid_619164 = formData.getOrDefault("MaxResults") + valid_619164 = validateParameter(valid_619164, JInt, required = false, default = nil) + if valid_619164 != nil: + section.add "MaxResults", valid_619164 + var valid_619165 = formData.getOrDefault("Filter") + valid_619165 = validateParameter(valid_619165, JArray, required = false, + default = nil) + if valid_619165 != nil: + section.add "Filter", valid_619165 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619164: Call_PostDescribeLocalGatewayRouteTables_619147; +proc call*(call_619166: Call_PostDescribeLocalGatewayRouteTables_619149; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more local gateway route tables. By default, all local gateway route tables are described. Alternatively, you can filter the results. ## - let valid = call_619164.validator(path, query, header, formData, body) - let scheme = call_619164.pickScheme + let valid = call_619166.validator(path, query, header, formData, body) + let scheme = call_619166.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619164.url(scheme.get, call_619164.host, call_619164.base, - call_619164.route, valid.getOrDefault("path"), + let url = call_619166.url(scheme.get, call_619166.host, call_619166.base, + call_619166.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619164, url, valid) + result = atozHook(call_619166, url, valid) -proc call*(call_619165: Call_PostDescribeLocalGatewayRouteTables_619147; +proc call*(call_619167: Call_PostDescribeLocalGatewayRouteTables_619149; LocalGatewayRouteTableId: JsonNode = nil; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeLocalGatewayRouteTables"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -65984,28 +66011,28 @@ proc call*(call_619165: Call_PostDescribeLocalGatewayRouteTables_619147; ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## Filter: JArray ## : One or more filters. - var query_619166 = newJObject() - var formData_619167 = newJObject() + var query_619168 = newJObject() + var formData_619169 = newJObject() if LocalGatewayRouteTableId != nil: - formData_619167.add "LocalGatewayRouteTableId", LocalGatewayRouteTableId - add(formData_619167, "NextToken", newJString(NextToken)) - add(formData_619167, "DryRun", newJBool(DryRun)) - add(query_619166, "Action", newJString(Action)) - add(query_619166, "Version", newJString(Version)) - add(formData_619167, "MaxResults", newJInt(MaxResults)) + formData_619169.add "LocalGatewayRouteTableId", LocalGatewayRouteTableId + add(formData_619169, "NextToken", newJString(NextToken)) + add(formData_619169, "DryRun", newJBool(DryRun)) + add(query_619168, "Action", newJString(Action)) + add(query_619168, "Version", newJString(Version)) + add(formData_619169, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_619167.add "Filter", Filter - result = call_619165.call(nil, query_619166, nil, formData_619167, nil) + formData_619169.add "Filter", Filter + result = call_619167.call(nil, query_619168, nil, formData_619169, nil) -var postDescribeLocalGatewayRouteTables* = Call_PostDescribeLocalGatewayRouteTables_619147( +var postDescribeLocalGatewayRouteTables* = Call_PostDescribeLocalGatewayRouteTables_619149( name: "postDescribeLocalGatewayRouteTables", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeLocalGatewayRouteTables", - validator: validate_PostDescribeLocalGatewayRouteTables_619148, base: "/", - url: url_PostDescribeLocalGatewayRouteTables_619149, + validator: validate_PostDescribeLocalGatewayRouteTables_619150, base: "/", + url: url_PostDescribeLocalGatewayRouteTables_619151, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeLocalGatewayRouteTables_619127 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeLocalGatewayRouteTables_619129(protocol: Scheme; host: string; + Call_GetDescribeLocalGatewayRouteTables_619129 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeLocalGatewayRouteTables_619131(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -66015,7 +66042,7 @@ proc url_GetDescribeLocalGatewayRouteTables_619129(protocol: Scheme; host: strin else: result.path = base & route -proc validate_GetDescribeLocalGatewayRouteTables_619128(path: JsonNode; +proc validate_GetDescribeLocalGatewayRouteTables_619130(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more local gateway route tables. By default, all local gateway route tables are described. Alternatively, you can filter the results. ## @@ -66037,39 +66064,39 @@ proc validate_GetDescribeLocalGatewayRouteTables_619128(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619130 = query.getOrDefault("LocalGatewayRouteTableId") - valid_619130 = validateParameter(valid_619130, JArray, required = false, + var valid_619132 = query.getOrDefault("LocalGatewayRouteTableId") + valid_619132 = validateParameter(valid_619132, JArray, required = false, default = nil) - if valid_619130 != nil: - section.add "LocalGatewayRouteTableId", valid_619130 - var valid_619131 = query.getOrDefault("MaxResults") - valid_619131 = validateParameter(valid_619131, JInt, required = false, default = nil) - if valid_619131 != nil: - section.add "MaxResults", valid_619131 - var valid_619132 = query.getOrDefault("DryRun") - valid_619132 = validateParameter(valid_619132, JBool, required = false, default = nil) if valid_619132 != nil: - section.add "DryRun", valid_619132 - var valid_619133 = query.getOrDefault("NextToken") - valid_619133 = validateParameter(valid_619133, JString, required = false, - default = nil) + section.add "LocalGatewayRouteTableId", valid_619132 + var valid_619133 = query.getOrDefault("MaxResults") + valid_619133 = validateParameter(valid_619133, JInt, required = false, default = nil) if valid_619133 != nil: - section.add "NextToken", valid_619133 - var valid_619134 = query.getOrDefault("Filter") - valid_619134 = validateParameter(valid_619134, JArray, required = false, - default = nil) + section.add "MaxResults", valid_619133 + var valid_619134 = query.getOrDefault("DryRun") + valid_619134 = validateParameter(valid_619134, JBool, required = false, default = nil) if valid_619134 != nil: - section.add "Filter", valid_619134 - var valid_619135 = query.getOrDefault("Action") - valid_619135 = validateParameter(valid_619135, JString, required = true, default = newJString( - "DescribeLocalGatewayRouteTables")) + section.add "DryRun", valid_619134 + var valid_619135 = query.getOrDefault("NextToken") + valid_619135 = validateParameter(valid_619135, JString, required = false, + default = nil) if valid_619135 != nil: - section.add "Action", valid_619135 - var valid_619136 = query.getOrDefault("Version") - valid_619136 = validateParameter(valid_619136, JString, required = true, - default = newJString("2016-11-15")) + section.add "NextToken", valid_619135 + var valid_619136 = query.getOrDefault("Filter") + valid_619136 = validateParameter(valid_619136, JArray, required = false, + default = nil) if valid_619136 != nil: - section.add "Version", valid_619136 + section.add "Filter", valid_619136 + var valid_619137 = query.getOrDefault("Action") + valid_619137 = validateParameter(valid_619137, JString, required = true, default = newJString( + "DescribeLocalGatewayRouteTables")) + if valid_619137 != nil: + section.add "Action", valid_619137 + var valid_619138 = query.getOrDefault("Version") + valid_619138 = validateParameter(valid_619138, JString, required = true, + default = newJString("2016-11-15")) + if valid_619138 != nil: + section.add "Version", valid_619138 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -66080,62 +66107,62 @@ proc validate_GetDescribeLocalGatewayRouteTables_619128(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619137 = header.getOrDefault("X-Amz-Signature") - valid_619137 = validateParameter(valid_619137, JString, required = false, - default = nil) - if valid_619137 != nil: - section.add "X-Amz-Signature", valid_619137 - var valid_619138 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619138 = validateParameter(valid_619138, JString, required = false, - default = nil) - if valid_619138 != nil: - section.add "X-Amz-Content-Sha256", valid_619138 - var valid_619139 = header.getOrDefault("X-Amz-Date") + var valid_619139 = header.getOrDefault("X-Amz-Signature") valid_619139 = validateParameter(valid_619139, JString, required = false, default = nil) if valid_619139 != nil: - section.add "X-Amz-Date", valid_619139 - var valid_619140 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619139 + var valid_619140 = header.getOrDefault("X-Amz-Content-Sha256") valid_619140 = validateParameter(valid_619140, JString, required = false, default = nil) if valid_619140 != nil: - section.add "X-Amz-Credential", valid_619140 - var valid_619141 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619140 + var valid_619141 = header.getOrDefault("X-Amz-Date") valid_619141 = validateParameter(valid_619141, JString, required = false, default = nil) if valid_619141 != nil: - section.add "X-Amz-Security-Token", valid_619141 - var valid_619142 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619141 + var valid_619142 = header.getOrDefault("X-Amz-Credential") valid_619142 = validateParameter(valid_619142, JString, required = false, default = nil) if valid_619142 != nil: - section.add "X-Amz-Algorithm", valid_619142 - var valid_619143 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619142 + var valid_619143 = header.getOrDefault("X-Amz-Security-Token") valid_619143 = validateParameter(valid_619143, JString, required = false, default = nil) if valid_619143 != nil: - section.add "X-Amz-SignedHeaders", valid_619143 + section.add "X-Amz-Security-Token", valid_619143 + var valid_619144 = header.getOrDefault("X-Amz-Algorithm") + valid_619144 = validateParameter(valid_619144, JString, required = false, + default = nil) + if valid_619144 != nil: + section.add "X-Amz-Algorithm", valid_619144 + var valid_619145 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619145 = validateParameter(valid_619145, JString, required = false, + default = nil) + if valid_619145 != nil: + section.add "X-Amz-SignedHeaders", valid_619145 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619144: Call_GetDescribeLocalGatewayRouteTables_619127; +proc call*(call_619146: Call_GetDescribeLocalGatewayRouteTables_619129; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more local gateway route tables. By default, all local gateway route tables are described. Alternatively, you can filter the results. ## - let valid = call_619144.validator(path, query, header, formData, body) - let scheme = call_619144.pickScheme + let valid = call_619146.validator(path, query, header, formData, body) + let scheme = call_619146.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619144.url(scheme.get, call_619144.host, call_619144.base, - call_619144.route, valid.getOrDefault("path"), + let url = call_619146.url(scheme.get, call_619146.host, call_619146.base, + call_619146.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619144, url, valid) + result = atozHook(call_619146, url, valid) -proc call*(call_619145: Call_GetDescribeLocalGatewayRouteTables_619127; +proc call*(call_619147: Call_GetDescribeLocalGatewayRouteTables_619129; LocalGatewayRouteTableId: JsonNode = nil; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeLocalGatewayRouteTables"; @@ -66154,27 +66181,27 @@ proc call*(call_619145: Call_GetDescribeLocalGatewayRouteTables_619127; ## : One or more filters. ## Action: string (required) ## Version: string (required) - var query_619146 = newJObject() + var query_619148 = newJObject() if LocalGatewayRouteTableId != nil: - query_619146.add "LocalGatewayRouteTableId", LocalGatewayRouteTableId - add(query_619146, "MaxResults", newJInt(MaxResults)) - add(query_619146, "DryRun", newJBool(DryRun)) - add(query_619146, "NextToken", newJString(NextToken)) + query_619148.add "LocalGatewayRouteTableId", LocalGatewayRouteTableId + add(query_619148, "MaxResults", newJInt(MaxResults)) + add(query_619148, "DryRun", newJBool(DryRun)) + add(query_619148, "NextToken", newJString(NextToken)) if Filter != nil: - query_619146.add "Filter", Filter - add(query_619146, "Action", newJString(Action)) - add(query_619146, "Version", newJString(Version)) - result = call_619145.call(nil, query_619146, nil, nil, nil) + query_619148.add "Filter", Filter + add(query_619148, "Action", newJString(Action)) + add(query_619148, "Version", newJString(Version)) + result = call_619147.call(nil, query_619148, nil, nil, nil) -var getDescribeLocalGatewayRouteTables* = Call_GetDescribeLocalGatewayRouteTables_619127( +var getDescribeLocalGatewayRouteTables* = Call_GetDescribeLocalGatewayRouteTables_619129( name: "getDescribeLocalGatewayRouteTables", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeLocalGatewayRouteTables", - validator: validate_GetDescribeLocalGatewayRouteTables_619128, base: "/", - url: url_GetDescribeLocalGatewayRouteTables_619129, + validator: validate_GetDescribeLocalGatewayRouteTables_619130, base: "/", + url: url_GetDescribeLocalGatewayRouteTables_619131, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeLocalGatewayVirtualInterfaceGroups_619188 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeLocalGatewayVirtualInterfaceGroups_619190(protocol: Scheme; + Call_PostDescribeLocalGatewayVirtualInterfaceGroups_619190 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeLocalGatewayVirtualInterfaceGroups_619192(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -66184,7 +66211,7 @@ proc url_PostDescribeLocalGatewayVirtualInterfaceGroups_619190(protocol: Scheme; else: result.path = base & route -proc validate_PostDescribeLocalGatewayVirtualInterfaceGroups_619189( +proc validate_PostDescribeLocalGatewayVirtualInterfaceGroups_619191( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the specified local gateway virtual interface groups. @@ -66197,16 +66224,16 @@ proc validate_PostDescribeLocalGatewayVirtualInterfaceGroups_619189( ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619191 = query.getOrDefault("Action") - valid_619191 = validateParameter(valid_619191, JString, required = true, default = newJString( + var valid_619193 = query.getOrDefault("Action") + valid_619193 = validateParameter(valid_619193, JString, required = true, default = newJString( "DescribeLocalGatewayVirtualInterfaceGroups")) - if valid_619191 != nil: - section.add "Action", valid_619191 - var valid_619192 = query.getOrDefault("Version") - valid_619192 = validateParameter(valid_619192, JString, required = true, + if valid_619193 != nil: + section.add "Action", valid_619193 + var valid_619194 = query.getOrDefault("Version") + valid_619194 = validateParameter(valid_619194, JString, required = true, default = newJString("2016-11-15")) - if valid_619192 != nil: - section.add "Version", valid_619192 + if valid_619194 != nil: + section.add "Version", valid_619194 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -66217,41 +66244,41 @@ proc validate_PostDescribeLocalGatewayVirtualInterfaceGroups_619189( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619193 = header.getOrDefault("X-Amz-Signature") - valid_619193 = validateParameter(valid_619193, JString, required = false, - default = nil) - if valid_619193 != nil: - section.add "X-Amz-Signature", valid_619193 - var valid_619194 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619194 = validateParameter(valid_619194, JString, required = false, - default = nil) - if valid_619194 != nil: - section.add "X-Amz-Content-Sha256", valid_619194 - var valid_619195 = header.getOrDefault("X-Amz-Date") + var valid_619195 = header.getOrDefault("X-Amz-Signature") valid_619195 = validateParameter(valid_619195, JString, required = false, default = nil) if valid_619195 != nil: - section.add "X-Amz-Date", valid_619195 - var valid_619196 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619195 + var valid_619196 = header.getOrDefault("X-Amz-Content-Sha256") valid_619196 = validateParameter(valid_619196, JString, required = false, default = nil) if valid_619196 != nil: - section.add "X-Amz-Credential", valid_619196 - var valid_619197 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619196 + var valid_619197 = header.getOrDefault("X-Amz-Date") valid_619197 = validateParameter(valid_619197, JString, required = false, default = nil) if valid_619197 != nil: - section.add "X-Amz-Security-Token", valid_619197 - var valid_619198 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619197 + var valid_619198 = header.getOrDefault("X-Amz-Credential") valid_619198 = validateParameter(valid_619198, JString, required = false, default = nil) if valid_619198 != nil: - section.add "X-Amz-Algorithm", valid_619198 - var valid_619199 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619198 + var valid_619199 = header.getOrDefault("X-Amz-Security-Token") valid_619199 = validateParameter(valid_619199, JString, required = false, default = nil) if valid_619199 != nil: - section.add "X-Amz-SignedHeaders", valid_619199 + section.add "X-Amz-Security-Token", valid_619199 + var valid_619200 = header.getOrDefault("X-Amz-Algorithm") + valid_619200 = validateParameter(valid_619200, JString, required = false, + default = nil) + if valid_619200 != nil: + section.add "X-Amz-Algorithm", valid_619200 + var valid_619201 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619201 = validateParameter(valid_619201, JString, required = false, + default = nil) + if valid_619201 != nil: + section.add "X-Amz-SignedHeaders", valid_619201 result.add "header", section ## parameters in `formData` object: ## LocalGatewayVirtualInterfaceGroupId: JArray @@ -66265,48 +66292,48 @@ proc validate_PostDescribeLocalGatewayVirtualInterfaceGroups_619189( ## Filter: JArray ## : One or more filters. section = newJObject() - var valid_619200 = formData.getOrDefault("LocalGatewayVirtualInterfaceGroupId") - valid_619200 = validateParameter(valid_619200, JArray, required = false, - default = nil) - if valid_619200 != nil: - section.add "LocalGatewayVirtualInterfaceGroupId", valid_619200 - var valid_619201 = formData.getOrDefault("NextToken") - valid_619201 = validateParameter(valid_619201, JString, required = false, + var valid_619202 = formData.getOrDefault("LocalGatewayVirtualInterfaceGroupId") + valid_619202 = validateParameter(valid_619202, JArray, required = false, default = nil) - if valid_619201 != nil: - section.add "NextToken", valid_619201 - var valid_619202 = formData.getOrDefault("DryRun") - valid_619202 = validateParameter(valid_619202, JBool, required = false, default = nil) if valid_619202 != nil: - section.add "DryRun", valid_619202 - var valid_619203 = formData.getOrDefault("MaxResults") - valid_619203 = validateParameter(valid_619203, JInt, required = false, default = nil) - if valid_619203 != nil: - section.add "MaxResults", valid_619203 - var valid_619204 = formData.getOrDefault("Filter") - valid_619204 = validateParameter(valid_619204, JArray, required = false, + section.add "LocalGatewayVirtualInterfaceGroupId", valid_619202 + var valid_619203 = formData.getOrDefault("NextToken") + valid_619203 = validateParameter(valid_619203, JString, required = false, default = nil) + if valid_619203 != nil: + section.add "NextToken", valid_619203 + var valid_619204 = formData.getOrDefault("DryRun") + valid_619204 = validateParameter(valid_619204, JBool, required = false, default = nil) if valid_619204 != nil: - section.add "Filter", valid_619204 + section.add "DryRun", valid_619204 + var valid_619205 = formData.getOrDefault("MaxResults") + valid_619205 = validateParameter(valid_619205, JInt, required = false, default = nil) + if valid_619205 != nil: + section.add "MaxResults", valid_619205 + var valid_619206 = formData.getOrDefault("Filter") + valid_619206 = validateParameter(valid_619206, JArray, required = false, + default = nil) + if valid_619206 != nil: + section.add "Filter", valid_619206 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619205: Call_PostDescribeLocalGatewayVirtualInterfaceGroups_619188; +proc call*(call_619207: Call_PostDescribeLocalGatewayVirtualInterfaceGroups_619190; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the specified local gateway virtual interface groups. ## - let valid = call_619205.validator(path, query, header, formData, body) - let scheme = call_619205.pickScheme + let valid = call_619207.validator(path, query, header, formData, body) + let scheme = call_619207.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619205.url(scheme.get, call_619205.host, call_619205.base, - call_619205.route, valid.getOrDefault("path"), + let url = call_619207.url(scheme.get, call_619207.host, call_619207.base, + call_619207.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619205, url, valid) + result = atozHook(call_619207, url, valid) -proc call*(call_619206: Call_PostDescribeLocalGatewayVirtualInterfaceGroups_619188; +proc call*(call_619208: Call_PostDescribeLocalGatewayVirtualInterfaceGroups_619190; LocalGatewayVirtualInterfaceGroupId: JsonNode = nil; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeLocalGatewayVirtualInterfaceGroups"; @@ -66325,30 +66352,30 @@ proc call*(call_619206: Call_PostDescribeLocalGatewayVirtualInterfaceGroups_6191 ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## Filter: JArray ## : One or more filters. - var query_619207 = newJObject() - var formData_619208 = newJObject() + var query_619209 = newJObject() + var formData_619210 = newJObject() if LocalGatewayVirtualInterfaceGroupId != nil: - formData_619208.add "LocalGatewayVirtualInterfaceGroupId", + formData_619210.add "LocalGatewayVirtualInterfaceGroupId", LocalGatewayVirtualInterfaceGroupId - add(formData_619208, "NextToken", newJString(NextToken)) - add(formData_619208, "DryRun", newJBool(DryRun)) - add(query_619207, "Action", newJString(Action)) - add(query_619207, "Version", newJString(Version)) - add(formData_619208, "MaxResults", newJInt(MaxResults)) + add(formData_619210, "NextToken", newJString(NextToken)) + add(formData_619210, "DryRun", newJBool(DryRun)) + add(query_619209, "Action", newJString(Action)) + add(query_619209, "Version", newJString(Version)) + add(formData_619210, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_619208.add "Filter", Filter - result = call_619206.call(nil, query_619207, nil, formData_619208, nil) + formData_619210.add "Filter", Filter + result = call_619208.call(nil, query_619209, nil, formData_619210, nil) -var postDescribeLocalGatewayVirtualInterfaceGroups* = Call_PostDescribeLocalGatewayVirtualInterfaceGroups_619188( +var postDescribeLocalGatewayVirtualInterfaceGroups* = Call_PostDescribeLocalGatewayVirtualInterfaceGroups_619190( name: "postDescribeLocalGatewayVirtualInterfaceGroups", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeLocalGatewayVirtualInterfaceGroups", - validator: validate_PostDescribeLocalGatewayVirtualInterfaceGroups_619189, - base: "/", url: url_PostDescribeLocalGatewayVirtualInterfaceGroups_619190, + validator: validate_PostDescribeLocalGatewayVirtualInterfaceGroups_619191, + base: "/", url: url_PostDescribeLocalGatewayVirtualInterfaceGroups_619192, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeLocalGatewayVirtualInterfaceGroups_619168 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeLocalGatewayVirtualInterfaceGroups_619170(protocol: Scheme; + Call_GetDescribeLocalGatewayVirtualInterfaceGroups_619170 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeLocalGatewayVirtualInterfaceGroups_619172(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -66358,7 +66385,7 @@ proc url_GetDescribeLocalGatewayVirtualInterfaceGroups_619170(protocol: Scheme; else: result.path = base & route -proc validate_GetDescribeLocalGatewayVirtualInterfaceGroups_619169( +proc validate_GetDescribeLocalGatewayVirtualInterfaceGroups_619171( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the specified local gateway virtual interface groups. @@ -66381,39 +66408,39 @@ proc validate_GetDescribeLocalGatewayVirtualInterfaceGroups_619169( ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619171 = query.getOrDefault("MaxResults") - valid_619171 = validateParameter(valid_619171, JInt, required = false, default = nil) - if valid_619171 != nil: - section.add "MaxResults", valid_619171 - var valid_619172 = query.getOrDefault("DryRun") - valid_619172 = validateParameter(valid_619172, JBool, required = false, default = nil) - if valid_619172 != nil: - section.add "DryRun", valid_619172 - var valid_619173 = query.getOrDefault("NextToken") - valid_619173 = validateParameter(valid_619173, JString, required = false, - default = nil) + var valid_619173 = query.getOrDefault("MaxResults") + valid_619173 = validateParameter(valid_619173, JInt, required = false, default = nil) if valid_619173 != nil: - section.add "NextToken", valid_619173 - var valid_619174 = query.getOrDefault("Filter") - valid_619174 = validateParameter(valid_619174, JArray, required = false, - default = nil) + section.add "MaxResults", valid_619173 + var valid_619174 = query.getOrDefault("DryRun") + valid_619174 = validateParameter(valid_619174, JBool, required = false, default = nil) if valid_619174 != nil: - section.add "Filter", valid_619174 - var valid_619175 = query.getOrDefault("LocalGatewayVirtualInterfaceGroupId") - valid_619175 = validateParameter(valid_619175, JArray, required = false, + section.add "DryRun", valid_619174 + var valid_619175 = query.getOrDefault("NextToken") + valid_619175 = validateParameter(valid_619175, JString, required = false, default = nil) if valid_619175 != nil: - section.add "LocalGatewayVirtualInterfaceGroupId", valid_619175 - var valid_619176 = query.getOrDefault("Action") - valid_619176 = validateParameter(valid_619176, JString, required = true, default = newJString( - "DescribeLocalGatewayVirtualInterfaceGroups")) + section.add "NextToken", valid_619175 + var valid_619176 = query.getOrDefault("Filter") + valid_619176 = validateParameter(valid_619176, JArray, required = false, + default = nil) if valid_619176 != nil: - section.add "Action", valid_619176 - var valid_619177 = query.getOrDefault("Version") - valid_619177 = validateParameter(valid_619177, JString, required = true, - default = newJString("2016-11-15")) + section.add "Filter", valid_619176 + var valid_619177 = query.getOrDefault("LocalGatewayVirtualInterfaceGroupId") + valid_619177 = validateParameter(valid_619177, JArray, required = false, + default = nil) if valid_619177 != nil: - section.add "Version", valid_619177 + section.add "LocalGatewayVirtualInterfaceGroupId", valid_619177 + var valid_619178 = query.getOrDefault("Action") + valid_619178 = validateParameter(valid_619178, JString, required = true, default = newJString( + "DescribeLocalGatewayVirtualInterfaceGroups")) + if valid_619178 != nil: + section.add "Action", valid_619178 + var valid_619179 = query.getOrDefault("Version") + valid_619179 = validateParameter(valid_619179, JString, required = true, + default = newJString("2016-11-15")) + if valid_619179 != nil: + section.add "Version", valid_619179 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -66424,62 +66451,62 @@ proc validate_GetDescribeLocalGatewayVirtualInterfaceGroups_619169( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619178 = header.getOrDefault("X-Amz-Signature") - valid_619178 = validateParameter(valid_619178, JString, required = false, - default = nil) - if valid_619178 != nil: - section.add "X-Amz-Signature", valid_619178 - var valid_619179 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619179 = validateParameter(valid_619179, JString, required = false, - default = nil) - if valid_619179 != nil: - section.add "X-Amz-Content-Sha256", valid_619179 - var valid_619180 = header.getOrDefault("X-Amz-Date") + var valid_619180 = header.getOrDefault("X-Amz-Signature") valid_619180 = validateParameter(valid_619180, JString, required = false, default = nil) if valid_619180 != nil: - section.add "X-Amz-Date", valid_619180 - var valid_619181 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619180 + var valid_619181 = header.getOrDefault("X-Amz-Content-Sha256") valid_619181 = validateParameter(valid_619181, JString, required = false, default = nil) if valid_619181 != nil: - section.add "X-Amz-Credential", valid_619181 - var valid_619182 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619181 + var valid_619182 = header.getOrDefault("X-Amz-Date") valid_619182 = validateParameter(valid_619182, JString, required = false, default = nil) if valid_619182 != nil: - section.add "X-Amz-Security-Token", valid_619182 - var valid_619183 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619182 + var valid_619183 = header.getOrDefault("X-Amz-Credential") valid_619183 = validateParameter(valid_619183, JString, required = false, default = nil) if valid_619183 != nil: - section.add "X-Amz-Algorithm", valid_619183 - var valid_619184 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619183 + var valid_619184 = header.getOrDefault("X-Amz-Security-Token") valid_619184 = validateParameter(valid_619184, JString, required = false, default = nil) if valid_619184 != nil: - section.add "X-Amz-SignedHeaders", valid_619184 + section.add "X-Amz-Security-Token", valid_619184 + var valid_619185 = header.getOrDefault("X-Amz-Algorithm") + valid_619185 = validateParameter(valid_619185, JString, required = false, + default = nil) + if valid_619185 != nil: + section.add "X-Amz-Algorithm", valid_619185 + var valid_619186 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619186 = validateParameter(valid_619186, JString, required = false, + default = nil) + if valid_619186 != nil: + section.add "X-Amz-SignedHeaders", valid_619186 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619185: Call_GetDescribeLocalGatewayVirtualInterfaceGroups_619168; +proc call*(call_619187: Call_GetDescribeLocalGatewayVirtualInterfaceGroups_619170; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the specified local gateway virtual interface groups. ## - let valid = call_619185.validator(path, query, header, formData, body) - let scheme = call_619185.pickScheme + let valid = call_619187.validator(path, query, header, formData, body) + let scheme = call_619187.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619185.url(scheme.get, call_619185.host, call_619185.base, - call_619185.route, valid.getOrDefault("path"), + let url = call_619187.url(scheme.get, call_619187.host, call_619187.base, + call_619187.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619185, url, valid) + result = atozHook(call_619187, url, valid) -proc call*(call_619186: Call_GetDescribeLocalGatewayVirtualInterfaceGroups_619168; +proc call*(call_619188: Call_GetDescribeLocalGatewayVirtualInterfaceGroups_619170; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; LocalGatewayVirtualInterfaceGroupId: JsonNode = nil; @@ -66499,29 +66526,29 @@ proc call*(call_619186: Call_GetDescribeLocalGatewayVirtualInterfaceGroups_61916 ## : The IDs of the virtual interface groups. ## Action: string (required) ## Version: string (required) - var query_619187 = newJObject() - add(query_619187, "MaxResults", newJInt(MaxResults)) - add(query_619187, "DryRun", newJBool(DryRun)) - add(query_619187, "NextToken", newJString(NextToken)) + var query_619189 = newJObject() + add(query_619189, "MaxResults", newJInt(MaxResults)) + add(query_619189, "DryRun", newJBool(DryRun)) + add(query_619189, "NextToken", newJString(NextToken)) if Filter != nil: - query_619187.add "Filter", Filter + query_619189.add "Filter", Filter if LocalGatewayVirtualInterfaceGroupId != nil: - query_619187.add "LocalGatewayVirtualInterfaceGroupId", + query_619189.add "LocalGatewayVirtualInterfaceGroupId", LocalGatewayVirtualInterfaceGroupId - add(query_619187, "Action", newJString(Action)) - add(query_619187, "Version", newJString(Version)) - result = call_619186.call(nil, query_619187, nil, nil, nil) + add(query_619189, "Action", newJString(Action)) + add(query_619189, "Version", newJString(Version)) + result = call_619188.call(nil, query_619189, nil, nil, nil) -var getDescribeLocalGatewayVirtualInterfaceGroups* = Call_GetDescribeLocalGatewayVirtualInterfaceGroups_619168( +var getDescribeLocalGatewayVirtualInterfaceGroups* = Call_GetDescribeLocalGatewayVirtualInterfaceGroups_619170( name: "getDescribeLocalGatewayVirtualInterfaceGroups", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeLocalGatewayVirtualInterfaceGroups", - validator: validate_GetDescribeLocalGatewayVirtualInterfaceGroups_619169, - base: "/", url: url_GetDescribeLocalGatewayVirtualInterfaceGroups_619170, + validator: validate_GetDescribeLocalGatewayVirtualInterfaceGroups_619171, + base: "/", url: url_GetDescribeLocalGatewayVirtualInterfaceGroups_619172, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeLocalGatewayVirtualInterfaces_619229 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeLocalGatewayVirtualInterfaces_619231(protocol: Scheme; + Call_PostDescribeLocalGatewayVirtualInterfaces_619231 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeLocalGatewayVirtualInterfaces_619233(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -66531,7 +66558,7 @@ proc url_PostDescribeLocalGatewayVirtualInterfaces_619231(protocol: Scheme; else: result.path = base & route -proc validate_PostDescribeLocalGatewayVirtualInterfaces_619230(path: JsonNode; +proc validate_PostDescribeLocalGatewayVirtualInterfaces_619232(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the specified local gateway virtual interfaces. ## @@ -66543,16 +66570,16 @@ proc validate_PostDescribeLocalGatewayVirtualInterfaces_619230(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619232 = query.getOrDefault("Action") - valid_619232 = validateParameter(valid_619232, JString, required = true, default = newJString( + var valid_619234 = query.getOrDefault("Action") + valid_619234 = validateParameter(valid_619234, JString, required = true, default = newJString( "DescribeLocalGatewayVirtualInterfaces")) - if valid_619232 != nil: - section.add "Action", valid_619232 - var valid_619233 = query.getOrDefault("Version") - valid_619233 = validateParameter(valid_619233, JString, required = true, + if valid_619234 != nil: + section.add "Action", valid_619234 + var valid_619235 = query.getOrDefault("Version") + valid_619235 = validateParameter(valid_619235, JString, required = true, default = newJString("2016-11-15")) - if valid_619233 != nil: - section.add "Version", valid_619233 + if valid_619235 != nil: + section.add "Version", valid_619235 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -66563,41 +66590,41 @@ proc validate_PostDescribeLocalGatewayVirtualInterfaces_619230(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619234 = header.getOrDefault("X-Amz-Signature") - valid_619234 = validateParameter(valid_619234, JString, required = false, - default = nil) - if valid_619234 != nil: - section.add "X-Amz-Signature", valid_619234 - var valid_619235 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619235 = validateParameter(valid_619235, JString, required = false, - default = nil) - if valid_619235 != nil: - section.add "X-Amz-Content-Sha256", valid_619235 - var valid_619236 = header.getOrDefault("X-Amz-Date") + var valid_619236 = header.getOrDefault("X-Amz-Signature") valid_619236 = validateParameter(valid_619236, JString, required = false, default = nil) if valid_619236 != nil: - section.add "X-Amz-Date", valid_619236 - var valid_619237 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619236 + var valid_619237 = header.getOrDefault("X-Amz-Content-Sha256") valid_619237 = validateParameter(valid_619237, JString, required = false, default = nil) if valid_619237 != nil: - section.add "X-Amz-Credential", valid_619237 - var valid_619238 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619237 + var valid_619238 = header.getOrDefault("X-Amz-Date") valid_619238 = validateParameter(valid_619238, JString, required = false, default = nil) if valid_619238 != nil: - section.add "X-Amz-Security-Token", valid_619238 - var valid_619239 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619238 + var valid_619239 = header.getOrDefault("X-Amz-Credential") valid_619239 = validateParameter(valid_619239, JString, required = false, default = nil) if valid_619239 != nil: - section.add "X-Amz-Algorithm", valid_619239 - var valid_619240 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619239 + var valid_619240 = header.getOrDefault("X-Amz-Security-Token") valid_619240 = validateParameter(valid_619240, JString, required = false, default = nil) if valid_619240 != nil: - section.add "X-Amz-SignedHeaders", valid_619240 + section.add "X-Amz-Security-Token", valid_619240 + var valid_619241 = header.getOrDefault("X-Amz-Algorithm") + valid_619241 = validateParameter(valid_619241, JString, required = false, + default = nil) + if valid_619241 != nil: + section.add "X-Amz-Algorithm", valid_619241 + var valid_619242 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619242 = validateParameter(valid_619242, JString, required = false, + default = nil) + if valid_619242 != nil: + section.add "X-Amz-SignedHeaders", valid_619242 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -66611,48 +66638,48 @@ proc validate_PostDescribeLocalGatewayVirtualInterfaces_619230(path: JsonNode; ## Filter: JArray ## : One or more filters. section = newJObject() - var valid_619241 = formData.getOrDefault("NextToken") - valid_619241 = validateParameter(valid_619241, JString, required = false, - default = nil) - if valid_619241 != nil: - section.add "NextToken", valid_619241 - var valid_619242 = formData.getOrDefault("LocalGatewayVirtualInterfaceId") - valid_619242 = validateParameter(valid_619242, JArray, required = false, + var valid_619243 = formData.getOrDefault("NextToken") + valid_619243 = validateParameter(valid_619243, JString, required = false, default = nil) - if valid_619242 != nil: - section.add "LocalGatewayVirtualInterfaceId", valid_619242 - var valid_619243 = formData.getOrDefault("DryRun") - valid_619243 = validateParameter(valid_619243, JBool, required = false, default = nil) if valid_619243 != nil: - section.add "DryRun", valid_619243 - var valid_619244 = formData.getOrDefault("MaxResults") - valid_619244 = validateParameter(valid_619244, JInt, required = false, default = nil) - if valid_619244 != nil: - section.add "MaxResults", valid_619244 - var valid_619245 = formData.getOrDefault("Filter") - valid_619245 = validateParameter(valid_619245, JArray, required = false, + section.add "NextToken", valid_619243 + var valid_619244 = formData.getOrDefault("LocalGatewayVirtualInterfaceId") + valid_619244 = validateParameter(valid_619244, JArray, required = false, default = nil) + if valid_619244 != nil: + section.add "LocalGatewayVirtualInterfaceId", valid_619244 + var valid_619245 = formData.getOrDefault("DryRun") + valid_619245 = validateParameter(valid_619245, JBool, required = false, default = nil) if valid_619245 != nil: - section.add "Filter", valid_619245 + section.add "DryRun", valid_619245 + var valid_619246 = formData.getOrDefault("MaxResults") + valid_619246 = validateParameter(valid_619246, JInt, required = false, default = nil) + if valid_619246 != nil: + section.add "MaxResults", valid_619246 + var valid_619247 = formData.getOrDefault("Filter") + valid_619247 = validateParameter(valid_619247, JArray, required = false, + default = nil) + if valid_619247 != nil: + section.add "Filter", valid_619247 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619246: Call_PostDescribeLocalGatewayVirtualInterfaces_619229; +proc call*(call_619248: Call_PostDescribeLocalGatewayVirtualInterfaces_619231; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the specified local gateway virtual interfaces. ## - let valid = call_619246.validator(path, query, header, formData, body) - let scheme = call_619246.pickScheme + let valid = call_619248.validator(path, query, header, formData, body) + let scheme = call_619248.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619246.url(scheme.get, call_619246.host, call_619246.base, - call_619246.route, valid.getOrDefault("path"), + let url = call_619248.url(scheme.get, call_619248.host, call_619248.base, + call_619248.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619246, url, valid) + result = atozHook(call_619248, url, valid) -proc call*(call_619247: Call_PostDescribeLocalGatewayVirtualInterfaces_619229; +proc call*(call_619249: Call_PostDescribeLocalGatewayVirtualInterfaces_619231; NextToken: string = ""; LocalGatewayVirtualInterfaceId: JsonNode = nil; DryRun: bool = false; Action: string = "DescribeLocalGatewayVirtualInterfaces"; @@ -66671,30 +66698,30 @@ proc call*(call_619247: Call_PostDescribeLocalGatewayVirtualInterfaces_619229; ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## Filter: JArray ## : One or more filters. - var query_619248 = newJObject() - var formData_619249 = newJObject() - add(formData_619249, "NextToken", newJString(NextToken)) + var query_619250 = newJObject() + var formData_619251 = newJObject() + add(formData_619251, "NextToken", newJString(NextToken)) if LocalGatewayVirtualInterfaceId != nil: - formData_619249.add "LocalGatewayVirtualInterfaceId", + formData_619251.add "LocalGatewayVirtualInterfaceId", LocalGatewayVirtualInterfaceId - add(formData_619249, "DryRun", newJBool(DryRun)) - add(query_619248, "Action", newJString(Action)) - add(query_619248, "Version", newJString(Version)) - add(formData_619249, "MaxResults", newJInt(MaxResults)) + add(formData_619251, "DryRun", newJBool(DryRun)) + add(query_619250, "Action", newJString(Action)) + add(query_619250, "Version", newJString(Version)) + add(formData_619251, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_619249.add "Filter", Filter - result = call_619247.call(nil, query_619248, nil, formData_619249, nil) + formData_619251.add "Filter", Filter + result = call_619249.call(nil, query_619250, nil, formData_619251, nil) -var postDescribeLocalGatewayVirtualInterfaces* = Call_PostDescribeLocalGatewayVirtualInterfaces_619229( +var postDescribeLocalGatewayVirtualInterfaces* = Call_PostDescribeLocalGatewayVirtualInterfaces_619231( name: "postDescribeLocalGatewayVirtualInterfaces", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeLocalGatewayVirtualInterfaces", - validator: validate_PostDescribeLocalGatewayVirtualInterfaces_619230, - base: "/", url: url_PostDescribeLocalGatewayVirtualInterfaces_619231, + validator: validate_PostDescribeLocalGatewayVirtualInterfaces_619232, + base: "/", url: url_PostDescribeLocalGatewayVirtualInterfaces_619233, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeLocalGatewayVirtualInterfaces_619209 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeLocalGatewayVirtualInterfaces_619211(protocol: Scheme; + Call_GetDescribeLocalGatewayVirtualInterfaces_619211 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeLocalGatewayVirtualInterfaces_619213(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -66704,7 +66731,7 @@ proc url_GetDescribeLocalGatewayVirtualInterfaces_619211(protocol: Scheme; else: result.path = base & route -proc validate_GetDescribeLocalGatewayVirtualInterfaces_619210(path: JsonNode; +proc validate_GetDescribeLocalGatewayVirtualInterfaces_619212(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the specified local gateway virtual interfaces. ## @@ -66726,39 +66753,39 @@ proc validate_GetDescribeLocalGatewayVirtualInterfaces_619210(path: JsonNode; ## LocalGatewayVirtualInterfaceId: JArray ## : The IDs of the virtual interfaces. section = newJObject() - var valid_619212 = query.getOrDefault("MaxResults") - valid_619212 = validateParameter(valid_619212, JInt, required = false, default = nil) - if valid_619212 != nil: - section.add "MaxResults", valid_619212 - var valid_619213 = query.getOrDefault("DryRun") - valid_619213 = validateParameter(valid_619213, JBool, required = false, default = nil) - if valid_619213 != nil: - section.add "DryRun", valid_619213 - var valid_619214 = query.getOrDefault("NextToken") - valid_619214 = validateParameter(valid_619214, JString, required = false, - default = nil) + var valid_619214 = query.getOrDefault("MaxResults") + valid_619214 = validateParameter(valid_619214, JInt, required = false, default = nil) if valid_619214 != nil: - section.add "NextToken", valid_619214 - var valid_619215 = query.getOrDefault("Filter") - valid_619215 = validateParameter(valid_619215, JArray, required = false, - default = nil) + section.add "MaxResults", valid_619214 + var valid_619215 = query.getOrDefault("DryRun") + valid_619215 = validateParameter(valid_619215, JBool, required = false, default = nil) if valid_619215 != nil: - section.add "Filter", valid_619215 - var valid_619216 = query.getOrDefault("Action") - valid_619216 = validateParameter(valid_619216, JString, required = true, default = newJString( - "DescribeLocalGatewayVirtualInterfaces")) + section.add "DryRun", valid_619215 + var valid_619216 = query.getOrDefault("NextToken") + valid_619216 = validateParameter(valid_619216, JString, required = false, + default = nil) if valid_619216 != nil: - section.add "Action", valid_619216 - var valid_619217 = query.getOrDefault("Version") - valid_619217 = validateParameter(valid_619217, JString, required = true, - default = newJString("2016-11-15")) - if valid_619217 != nil: - section.add "Version", valid_619217 - var valid_619218 = query.getOrDefault("LocalGatewayVirtualInterfaceId") - valid_619218 = validateParameter(valid_619218, JArray, required = false, + section.add "NextToken", valid_619216 + var valid_619217 = query.getOrDefault("Filter") + valid_619217 = validateParameter(valid_619217, JArray, required = false, default = nil) + if valid_619217 != nil: + section.add "Filter", valid_619217 + var valid_619218 = query.getOrDefault("Action") + valid_619218 = validateParameter(valid_619218, JString, required = true, default = newJString( + "DescribeLocalGatewayVirtualInterfaces")) if valid_619218 != nil: - section.add "LocalGatewayVirtualInterfaceId", valid_619218 + section.add "Action", valid_619218 + var valid_619219 = query.getOrDefault("Version") + valid_619219 = validateParameter(valid_619219, JString, required = true, + default = newJString("2016-11-15")) + if valid_619219 != nil: + section.add "Version", valid_619219 + var valid_619220 = query.getOrDefault("LocalGatewayVirtualInterfaceId") + valid_619220 = validateParameter(valid_619220, JArray, required = false, + default = nil) + if valid_619220 != nil: + section.add "LocalGatewayVirtualInterfaceId", valid_619220 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -66769,62 +66796,62 @@ proc validate_GetDescribeLocalGatewayVirtualInterfaces_619210(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619219 = header.getOrDefault("X-Amz-Signature") - valid_619219 = validateParameter(valid_619219, JString, required = false, - default = nil) - if valid_619219 != nil: - section.add "X-Amz-Signature", valid_619219 - var valid_619220 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619220 = validateParameter(valid_619220, JString, required = false, - default = nil) - if valid_619220 != nil: - section.add "X-Amz-Content-Sha256", valid_619220 - var valid_619221 = header.getOrDefault("X-Amz-Date") + var valid_619221 = header.getOrDefault("X-Amz-Signature") valid_619221 = validateParameter(valid_619221, JString, required = false, default = nil) if valid_619221 != nil: - section.add "X-Amz-Date", valid_619221 - var valid_619222 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619221 + var valid_619222 = header.getOrDefault("X-Amz-Content-Sha256") valid_619222 = validateParameter(valid_619222, JString, required = false, default = nil) if valid_619222 != nil: - section.add "X-Amz-Credential", valid_619222 - var valid_619223 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619222 + var valid_619223 = header.getOrDefault("X-Amz-Date") valid_619223 = validateParameter(valid_619223, JString, required = false, default = nil) if valid_619223 != nil: - section.add "X-Amz-Security-Token", valid_619223 - var valid_619224 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619223 + var valid_619224 = header.getOrDefault("X-Amz-Credential") valid_619224 = validateParameter(valid_619224, JString, required = false, default = nil) if valid_619224 != nil: - section.add "X-Amz-Algorithm", valid_619224 - var valid_619225 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619224 + var valid_619225 = header.getOrDefault("X-Amz-Security-Token") valid_619225 = validateParameter(valid_619225, JString, required = false, default = nil) if valid_619225 != nil: - section.add "X-Amz-SignedHeaders", valid_619225 + section.add "X-Amz-Security-Token", valid_619225 + var valid_619226 = header.getOrDefault("X-Amz-Algorithm") + valid_619226 = validateParameter(valid_619226, JString, required = false, + default = nil) + if valid_619226 != nil: + section.add "X-Amz-Algorithm", valid_619226 + var valid_619227 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619227 = validateParameter(valid_619227, JString, required = false, + default = nil) + if valid_619227 != nil: + section.add "X-Amz-SignedHeaders", valid_619227 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619226: Call_GetDescribeLocalGatewayVirtualInterfaces_619209; +proc call*(call_619228: Call_GetDescribeLocalGatewayVirtualInterfaces_619211; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the specified local gateway virtual interfaces. ## - let valid = call_619226.validator(path, query, header, formData, body) - let scheme = call_619226.pickScheme + let valid = call_619228.validator(path, query, header, formData, body) + let scheme = call_619228.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619226.url(scheme.get, call_619226.host, call_619226.base, - call_619226.route, valid.getOrDefault("path"), + let url = call_619228.url(scheme.get, call_619228.host, call_619228.base, + call_619228.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619226, url, valid) + result = atozHook(call_619228, url, valid) -proc call*(call_619227: Call_GetDescribeLocalGatewayVirtualInterfaces_619209; +proc call*(call_619229: Call_GetDescribeLocalGatewayVirtualInterfaces_619211; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeLocalGatewayVirtualInterfaces"; @@ -66844,29 +66871,29 @@ proc call*(call_619227: Call_GetDescribeLocalGatewayVirtualInterfaces_619209; ## Version: string (required) ## LocalGatewayVirtualInterfaceId: JArray ## : The IDs of the virtual interfaces. - var query_619228 = newJObject() - add(query_619228, "MaxResults", newJInt(MaxResults)) - add(query_619228, "DryRun", newJBool(DryRun)) - add(query_619228, "NextToken", newJString(NextToken)) + var query_619230 = newJObject() + add(query_619230, "MaxResults", newJInt(MaxResults)) + add(query_619230, "DryRun", newJBool(DryRun)) + add(query_619230, "NextToken", newJString(NextToken)) if Filter != nil: - query_619228.add "Filter", Filter - add(query_619228, "Action", newJString(Action)) - add(query_619228, "Version", newJString(Version)) + query_619230.add "Filter", Filter + add(query_619230, "Action", newJString(Action)) + add(query_619230, "Version", newJString(Version)) if LocalGatewayVirtualInterfaceId != nil: - query_619228.add "LocalGatewayVirtualInterfaceId", + query_619230.add "LocalGatewayVirtualInterfaceId", LocalGatewayVirtualInterfaceId - result = call_619227.call(nil, query_619228, nil, nil, nil) + result = call_619229.call(nil, query_619230, nil, nil, nil) -var getDescribeLocalGatewayVirtualInterfaces* = Call_GetDescribeLocalGatewayVirtualInterfaces_619209( +var getDescribeLocalGatewayVirtualInterfaces* = Call_GetDescribeLocalGatewayVirtualInterfaces_619211( name: "getDescribeLocalGatewayVirtualInterfaces", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeLocalGatewayVirtualInterfaces", - validator: validate_GetDescribeLocalGatewayVirtualInterfaces_619210, - base: "/", url: url_GetDescribeLocalGatewayVirtualInterfaces_619211, + validator: validate_GetDescribeLocalGatewayVirtualInterfaces_619212, + base: "/", url: url_GetDescribeLocalGatewayVirtualInterfaces_619213, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeLocalGateways_619270 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeLocalGateways_619272(protocol: Scheme; host: string; + Call_PostDescribeLocalGateways_619272 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeLocalGateways_619274(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -66876,7 +66903,7 @@ proc url_PostDescribeLocalGateways_619272(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeLocalGateways_619271(path: JsonNode; query: JsonNode; +proc validate_PostDescribeLocalGateways_619273(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more local gateways. By default, all local gateways are described. Alternatively, you can filter the results. ## @@ -66888,16 +66915,16 @@ proc validate_PostDescribeLocalGateways_619271(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619273 = query.getOrDefault("Action") - valid_619273 = validateParameter(valid_619273, JString, required = true, + var valid_619275 = query.getOrDefault("Action") + valid_619275 = validateParameter(valid_619275, JString, required = true, default = newJString("DescribeLocalGateways")) - if valid_619273 != nil: - section.add "Action", valid_619273 - var valid_619274 = query.getOrDefault("Version") - valid_619274 = validateParameter(valid_619274, JString, required = true, + if valid_619275 != nil: + section.add "Action", valid_619275 + var valid_619276 = query.getOrDefault("Version") + valid_619276 = validateParameter(valid_619276, JString, required = true, default = newJString("2016-11-15")) - if valid_619274 != nil: - section.add "Version", valid_619274 + if valid_619276 != nil: + section.add "Version", valid_619276 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -66908,41 +66935,41 @@ proc validate_PostDescribeLocalGateways_619271(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619275 = header.getOrDefault("X-Amz-Signature") - valid_619275 = validateParameter(valid_619275, JString, required = false, - default = nil) - if valid_619275 != nil: - section.add "X-Amz-Signature", valid_619275 - var valid_619276 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619276 = validateParameter(valid_619276, JString, required = false, - default = nil) - if valid_619276 != nil: - section.add "X-Amz-Content-Sha256", valid_619276 - var valid_619277 = header.getOrDefault("X-Amz-Date") + var valid_619277 = header.getOrDefault("X-Amz-Signature") valid_619277 = validateParameter(valid_619277, JString, required = false, default = nil) if valid_619277 != nil: - section.add "X-Amz-Date", valid_619277 - var valid_619278 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619277 + var valid_619278 = header.getOrDefault("X-Amz-Content-Sha256") valid_619278 = validateParameter(valid_619278, JString, required = false, default = nil) if valid_619278 != nil: - section.add "X-Amz-Credential", valid_619278 - var valid_619279 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619278 + var valid_619279 = header.getOrDefault("X-Amz-Date") valid_619279 = validateParameter(valid_619279, JString, required = false, default = nil) if valid_619279 != nil: - section.add "X-Amz-Security-Token", valid_619279 - var valid_619280 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619279 + var valid_619280 = header.getOrDefault("X-Amz-Credential") valid_619280 = validateParameter(valid_619280, JString, required = false, default = nil) if valid_619280 != nil: - section.add "X-Amz-Algorithm", valid_619280 - var valid_619281 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619280 + var valid_619281 = header.getOrDefault("X-Amz-Security-Token") valid_619281 = validateParameter(valid_619281, JString, required = false, default = nil) if valid_619281 != nil: - section.add "X-Amz-SignedHeaders", valid_619281 + section.add "X-Amz-Security-Token", valid_619281 + var valid_619282 = header.getOrDefault("X-Amz-Algorithm") + valid_619282 = validateParameter(valid_619282, JString, required = false, + default = nil) + if valid_619282 != nil: + section.add "X-Amz-Algorithm", valid_619282 + var valid_619283 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619283 = validateParameter(valid_619283, JString, required = false, + default = nil) + if valid_619283 != nil: + section.add "X-Amz-SignedHeaders", valid_619283 result.add "header", section ## parameters in `formData` object: ## LocalGatewayId: JArray @@ -66956,47 +66983,47 @@ proc validate_PostDescribeLocalGateways_619271(path: JsonNode; query: JsonNode; ## Filter: JArray ## : One or more filters. section = newJObject() - var valid_619282 = formData.getOrDefault("LocalGatewayId") - valid_619282 = validateParameter(valid_619282, JArray, required = false, + var valid_619284 = formData.getOrDefault("LocalGatewayId") + valid_619284 = validateParameter(valid_619284, JArray, required = false, default = nil) - if valid_619282 != nil: - section.add "LocalGatewayId", valid_619282 - var valid_619283 = formData.getOrDefault("NextToken") - valid_619283 = validateParameter(valid_619283, JString, required = false, - default = nil) - if valid_619283 != nil: - section.add "NextToken", valid_619283 - var valid_619284 = formData.getOrDefault("DryRun") - valid_619284 = validateParameter(valid_619284, JBool, required = false, default = nil) if valid_619284 != nil: - section.add "DryRun", valid_619284 - var valid_619285 = formData.getOrDefault("MaxResults") - valid_619285 = validateParameter(valid_619285, JInt, required = false, default = nil) - if valid_619285 != nil: - section.add "MaxResults", valid_619285 - var valid_619286 = formData.getOrDefault("Filter") - valid_619286 = validateParameter(valid_619286, JArray, required = false, + section.add "LocalGatewayId", valid_619284 + var valid_619285 = formData.getOrDefault("NextToken") + valid_619285 = validateParameter(valid_619285, JString, required = false, default = nil) + if valid_619285 != nil: + section.add "NextToken", valid_619285 + var valid_619286 = formData.getOrDefault("DryRun") + valid_619286 = validateParameter(valid_619286, JBool, required = false, default = nil) if valid_619286 != nil: - section.add "Filter", valid_619286 + section.add "DryRun", valid_619286 + var valid_619287 = formData.getOrDefault("MaxResults") + valid_619287 = validateParameter(valid_619287, JInt, required = false, default = nil) + if valid_619287 != nil: + section.add "MaxResults", valid_619287 + var valid_619288 = formData.getOrDefault("Filter") + valid_619288 = validateParameter(valid_619288, JArray, required = false, + default = nil) + if valid_619288 != nil: + section.add "Filter", valid_619288 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619287: Call_PostDescribeLocalGateways_619270; path: JsonNode; +proc call*(call_619289: Call_PostDescribeLocalGateways_619272; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more local gateways. By default, all local gateways are described. Alternatively, you can filter the results. ## - let valid = call_619287.validator(path, query, header, formData, body) - let scheme = call_619287.pickScheme + let valid = call_619289.validator(path, query, header, formData, body) + let scheme = call_619289.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619287.url(scheme.get, call_619287.host, call_619287.base, - call_619287.route, valid.getOrDefault("path"), + let url = call_619289.url(scheme.get, call_619289.host, call_619289.base, + call_619289.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619287, url, valid) + result = atozHook(call_619289, url, valid) -proc call*(call_619288: Call_PostDescribeLocalGateways_619270; +proc call*(call_619290: Call_PostDescribeLocalGateways_619272; LocalGatewayId: JsonNode = nil; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeLocalGateways"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -67014,28 +67041,28 @@ proc call*(call_619288: Call_PostDescribeLocalGateways_619270; ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## Filter: JArray ## : One or more filters. - var query_619289 = newJObject() - var formData_619290 = newJObject() + var query_619291 = newJObject() + var formData_619292 = newJObject() if LocalGatewayId != nil: - formData_619290.add "LocalGatewayId", LocalGatewayId - add(formData_619290, "NextToken", newJString(NextToken)) - add(formData_619290, "DryRun", newJBool(DryRun)) - add(query_619289, "Action", newJString(Action)) - add(query_619289, "Version", newJString(Version)) - add(formData_619290, "MaxResults", newJInt(MaxResults)) + formData_619292.add "LocalGatewayId", LocalGatewayId + add(formData_619292, "NextToken", newJString(NextToken)) + add(formData_619292, "DryRun", newJBool(DryRun)) + add(query_619291, "Action", newJString(Action)) + add(query_619291, "Version", newJString(Version)) + add(formData_619292, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_619290.add "Filter", Filter - result = call_619288.call(nil, query_619289, nil, formData_619290, nil) + formData_619292.add "Filter", Filter + result = call_619290.call(nil, query_619291, nil, formData_619292, nil) -var postDescribeLocalGateways* = Call_PostDescribeLocalGateways_619270( +var postDescribeLocalGateways* = Call_PostDescribeLocalGateways_619272( name: "postDescribeLocalGateways", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeLocalGateways", - validator: validate_PostDescribeLocalGateways_619271, base: "/", - url: url_PostDescribeLocalGateways_619272, + validator: validate_PostDescribeLocalGateways_619273, base: "/", + url: url_PostDescribeLocalGateways_619274, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeLocalGateways_619250 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeLocalGateways_619252(protocol: Scheme; host: string; + Call_GetDescribeLocalGateways_619252 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeLocalGateways_619254(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -67046,7 +67073,7 @@ proc url_GetDescribeLocalGateways_619252(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeLocalGateways_619251(path: JsonNode; query: JsonNode; +proc validate_GetDescribeLocalGateways_619253(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more local gateways. By default, all local gateways are described. Alternatively, you can filter the results. ## @@ -67068,39 +67095,39 @@ proc validate_GetDescribeLocalGateways_619251(path: JsonNode; query: JsonNode; ## : The IDs of the local gateways. ## Version: JString (required) section = newJObject() - var valid_619253 = query.getOrDefault("MaxResults") - valid_619253 = validateParameter(valid_619253, JInt, required = false, default = nil) - if valid_619253 != nil: - section.add "MaxResults", valid_619253 - var valid_619254 = query.getOrDefault("DryRun") - valid_619254 = validateParameter(valid_619254, JBool, required = false, default = nil) - if valid_619254 != nil: - section.add "DryRun", valid_619254 - var valid_619255 = query.getOrDefault("NextToken") - valid_619255 = validateParameter(valid_619255, JString, required = false, - default = nil) + var valid_619255 = query.getOrDefault("MaxResults") + valid_619255 = validateParameter(valid_619255, JInt, required = false, default = nil) if valid_619255 != nil: - section.add "NextToken", valid_619255 - var valid_619256 = query.getOrDefault("Filter") - valid_619256 = validateParameter(valid_619256, JArray, required = false, - default = nil) + section.add "MaxResults", valid_619255 + var valid_619256 = query.getOrDefault("DryRun") + valid_619256 = validateParameter(valid_619256, JBool, required = false, default = nil) if valid_619256 != nil: - section.add "Filter", valid_619256 - var valid_619257 = query.getOrDefault("Action") - valid_619257 = validateParameter(valid_619257, JString, required = true, - default = newJString("DescribeLocalGateways")) + section.add "DryRun", valid_619256 + var valid_619257 = query.getOrDefault("NextToken") + valid_619257 = validateParameter(valid_619257, JString, required = false, + default = nil) if valid_619257 != nil: - section.add "Action", valid_619257 - var valid_619258 = query.getOrDefault("LocalGatewayId") + section.add "NextToken", valid_619257 + var valid_619258 = query.getOrDefault("Filter") valid_619258 = validateParameter(valid_619258, JArray, required = false, default = nil) if valid_619258 != nil: - section.add "LocalGatewayId", valid_619258 - var valid_619259 = query.getOrDefault("Version") + section.add "Filter", valid_619258 + var valid_619259 = query.getOrDefault("Action") valid_619259 = validateParameter(valid_619259, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("DescribeLocalGateways")) if valid_619259 != nil: - section.add "Version", valid_619259 + section.add "Action", valid_619259 + var valid_619260 = query.getOrDefault("LocalGatewayId") + valid_619260 = validateParameter(valid_619260, JArray, required = false, + default = nil) + if valid_619260 != nil: + section.add "LocalGatewayId", valid_619260 + var valid_619261 = query.getOrDefault("Version") + valid_619261 = validateParameter(valid_619261, JString, required = true, + default = newJString("2016-11-15")) + if valid_619261 != nil: + section.add "Version", valid_619261 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -67111,61 +67138,61 @@ proc validate_GetDescribeLocalGateways_619251(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619260 = header.getOrDefault("X-Amz-Signature") - valid_619260 = validateParameter(valid_619260, JString, required = false, - default = nil) - if valid_619260 != nil: - section.add "X-Amz-Signature", valid_619260 - var valid_619261 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619261 = validateParameter(valid_619261, JString, required = false, - default = nil) - if valid_619261 != nil: - section.add "X-Amz-Content-Sha256", valid_619261 - var valid_619262 = header.getOrDefault("X-Amz-Date") + var valid_619262 = header.getOrDefault("X-Amz-Signature") valid_619262 = validateParameter(valid_619262, JString, required = false, default = nil) if valid_619262 != nil: - section.add "X-Amz-Date", valid_619262 - var valid_619263 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619262 + var valid_619263 = header.getOrDefault("X-Amz-Content-Sha256") valid_619263 = validateParameter(valid_619263, JString, required = false, default = nil) if valid_619263 != nil: - section.add "X-Amz-Credential", valid_619263 - var valid_619264 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619263 + var valid_619264 = header.getOrDefault("X-Amz-Date") valid_619264 = validateParameter(valid_619264, JString, required = false, default = nil) if valid_619264 != nil: - section.add "X-Amz-Security-Token", valid_619264 - var valid_619265 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619264 + var valid_619265 = header.getOrDefault("X-Amz-Credential") valid_619265 = validateParameter(valid_619265, JString, required = false, default = nil) if valid_619265 != nil: - section.add "X-Amz-Algorithm", valid_619265 - var valid_619266 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619265 + var valid_619266 = header.getOrDefault("X-Amz-Security-Token") valid_619266 = validateParameter(valid_619266, JString, required = false, default = nil) if valid_619266 != nil: - section.add "X-Amz-SignedHeaders", valid_619266 + section.add "X-Amz-Security-Token", valid_619266 + var valid_619267 = header.getOrDefault("X-Amz-Algorithm") + valid_619267 = validateParameter(valid_619267, JString, required = false, + default = nil) + if valid_619267 != nil: + section.add "X-Amz-Algorithm", valid_619267 + var valid_619268 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619268 = validateParameter(valid_619268, JString, required = false, + default = nil) + if valid_619268 != nil: + section.add "X-Amz-SignedHeaders", valid_619268 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619267: Call_GetDescribeLocalGateways_619250; path: JsonNode; +proc call*(call_619269: Call_GetDescribeLocalGateways_619252; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more local gateways. By default, all local gateways are described. Alternatively, you can filter the results. ## - let valid = call_619267.validator(path, query, header, formData, body) - let scheme = call_619267.pickScheme + let valid = call_619269.validator(path, query, header, formData, body) + let scheme = call_619269.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619267.url(scheme.get, call_619267.host, call_619267.base, - call_619267.route, valid.getOrDefault("path"), + let url = call_619269.url(scheme.get, call_619269.host, call_619269.base, + call_619269.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619267, url, valid) + result = atozHook(call_619269, url, valid) -proc call*(call_619268: Call_GetDescribeLocalGateways_619250; MaxResults: int = 0; +proc call*(call_619270: Call_GetDescribeLocalGateways_619252; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeLocalGateways"; LocalGatewayId: JsonNode = nil; Version: string = "2016-11-15"): Recallable = @@ -67183,26 +67210,26 @@ proc call*(call_619268: Call_GetDescribeLocalGateways_619250; MaxResults: int = ## LocalGatewayId: JArray ## : The IDs of the local gateways. ## Version: string (required) - var query_619269 = newJObject() - add(query_619269, "MaxResults", newJInt(MaxResults)) - add(query_619269, "DryRun", newJBool(DryRun)) - add(query_619269, "NextToken", newJString(NextToken)) + var query_619271 = newJObject() + add(query_619271, "MaxResults", newJInt(MaxResults)) + add(query_619271, "DryRun", newJBool(DryRun)) + add(query_619271, "NextToken", newJString(NextToken)) if Filter != nil: - query_619269.add "Filter", Filter - add(query_619269, "Action", newJString(Action)) + query_619271.add "Filter", Filter + add(query_619271, "Action", newJString(Action)) if LocalGatewayId != nil: - query_619269.add "LocalGatewayId", LocalGatewayId - add(query_619269, "Version", newJString(Version)) - result = call_619268.call(nil, query_619269, nil, nil, nil) + query_619271.add "LocalGatewayId", LocalGatewayId + add(query_619271, "Version", newJString(Version)) + result = call_619270.call(nil, query_619271, nil, nil, nil) -var getDescribeLocalGateways* = Call_GetDescribeLocalGateways_619250( +var getDescribeLocalGateways* = Call_GetDescribeLocalGateways_619252( name: "getDescribeLocalGateways", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeLocalGateways", - validator: validate_GetDescribeLocalGateways_619251, base: "/", - url: url_GetDescribeLocalGateways_619252, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDescribeLocalGateways_619253, base: "/", + url: url_GetDescribeLocalGateways_619254, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeMovingAddresses_619311 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeMovingAddresses_619313(protocol: Scheme; host: string; + Call_PostDescribeMovingAddresses_619313 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeMovingAddresses_619315(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -67212,7 +67239,7 @@ proc url_PostDescribeMovingAddresses_619313(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeMovingAddresses_619312(path: JsonNode; query: JsonNode; +proc validate_PostDescribeMovingAddresses_619314(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes your Elastic IP addresses that are being moved to the EC2-VPC platform, or that are being restored to the EC2-Classic platform. This request does not return information about any other Elastic IP addresses in your account. ## @@ -67224,16 +67251,16 @@ proc validate_PostDescribeMovingAddresses_619312(path: JsonNode; query: JsonNode ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619314 = query.getOrDefault("Action") - valid_619314 = validateParameter(valid_619314, JString, required = true, default = newJString( + var valid_619316 = query.getOrDefault("Action") + valid_619316 = validateParameter(valid_619316, JString, required = true, default = newJString( "DescribeMovingAddresses")) - if valid_619314 != nil: - section.add "Action", valid_619314 - var valid_619315 = query.getOrDefault("Version") - valid_619315 = validateParameter(valid_619315, JString, required = true, + if valid_619316 != nil: + section.add "Action", valid_619316 + var valid_619317 = query.getOrDefault("Version") + valid_619317 = validateParameter(valid_619317, JString, required = true, default = newJString("2016-11-15")) - if valid_619315 != nil: - section.add "Version", valid_619315 + if valid_619317 != nil: + section.add "Version", valid_619317 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -67244,41 +67271,41 @@ proc validate_PostDescribeMovingAddresses_619312(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619316 = header.getOrDefault("X-Amz-Signature") - valid_619316 = validateParameter(valid_619316, JString, required = false, - default = nil) - if valid_619316 != nil: - section.add "X-Amz-Signature", valid_619316 - var valid_619317 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619317 = validateParameter(valid_619317, JString, required = false, - default = nil) - if valid_619317 != nil: - section.add "X-Amz-Content-Sha256", valid_619317 - var valid_619318 = header.getOrDefault("X-Amz-Date") + var valid_619318 = header.getOrDefault("X-Amz-Signature") valid_619318 = validateParameter(valid_619318, JString, required = false, default = nil) if valid_619318 != nil: - section.add "X-Amz-Date", valid_619318 - var valid_619319 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619318 + var valid_619319 = header.getOrDefault("X-Amz-Content-Sha256") valid_619319 = validateParameter(valid_619319, JString, required = false, default = nil) if valid_619319 != nil: - section.add "X-Amz-Credential", valid_619319 - var valid_619320 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619319 + var valid_619320 = header.getOrDefault("X-Amz-Date") valid_619320 = validateParameter(valid_619320, JString, required = false, default = nil) if valid_619320 != nil: - section.add "X-Amz-Security-Token", valid_619320 - var valid_619321 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619320 + var valid_619321 = header.getOrDefault("X-Amz-Credential") valid_619321 = validateParameter(valid_619321, JString, required = false, default = nil) if valid_619321 != nil: - section.add "X-Amz-Algorithm", valid_619321 - var valid_619322 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619321 + var valid_619322 = header.getOrDefault("X-Amz-Security-Token") valid_619322 = validateParameter(valid_619322, JString, required = false, default = nil) if valid_619322 != nil: - section.add "X-Amz-SignedHeaders", valid_619322 + section.add "X-Amz-Security-Token", valid_619322 + var valid_619323 = header.getOrDefault("X-Amz-Algorithm") + valid_619323 = validateParameter(valid_619323, JString, required = false, + default = nil) + if valid_619323 != nil: + section.add "X-Amz-Algorithm", valid_619323 + var valid_619324 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619324 = validateParameter(valid_619324, JString, required = false, + default = nil) + if valid_619324 != nil: + section.add "X-Amz-SignedHeaders", valid_619324 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -67292,47 +67319,47 @@ proc validate_PostDescribeMovingAddresses_619312(path: JsonNode; query: JsonNode ## Filter: JArray ## :

One or more filters.

section = newJObject() - var valid_619323 = formData.getOrDefault("NextToken") - valid_619323 = validateParameter(valid_619323, JString, required = false, - default = nil) - if valid_619323 != nil: - section.add "NextToken", valid_619323 - var valid_619324 = formData.getOrDefault("DryRun") - valid_619324 = validateParameter(valid_619324, JBool, required = false, default = nil) - if valid_619324 != nil: - section.add "DryRun", valid_619324 - var valid_619325 = formData.getOrDefault("PublicIp") - valid_619325 = validateParameter(valid_619325, JArray, required = false, + var valid_619325 = formData.getOrDefault("NextToken") + valid_619325 = validateParameter(valid_619325, JString, required = false, default = nil) if valid_619325 != nil: - section.add "PublicIp", valid_619325 - var valid_619326 = formData.getOrDefault("MaxResults") - valid_619326 = validateParameter(valid_619326, JInt, required = false, default = nil) + section.add "NextToken", valid_619325 + var valid_619326 = formData.getOrDefault("DryRun") + valid_619326 = validateParameter(valid_619326, JBool, required = false, default = nil) if valid_619326 != nil: - section.add "MaxResults", valid_619326 - var valid_619327 = formData.getOrDefault("Filter") + section.add "DryRun", valid_619326 + var valid_619327 = formData.getOrDefault("PublicIp") valid_619327 = validateParameter(valid_619327, JArray, required = false, default = nil) if valid_619327 != nil: - section.add "Filter", valid_619327 + section.add "PublicIp", valid_619327 + var valid_619328 = formData.getOrDefault("MaxResults") + valid_619328 = validateParameter(valid_619328, JInt, required = false, default = nil) + if valid_619328 != nil: + section.add "MaxResults", valid_619328 + var valid_619329 = formData.getOrDefault("Filter") + valid_619329 = validateParameter(valid_619329, JArray, required = false, + default = nil) + if valid_619329 != nil: + section.add "Filter", valid_619329 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619328: Call_PostDescribeMovingAddresses_619311; path: JsonNode; +proc call*(call_619330: Call_PostDescribeMovingAddresses_619313; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes your Elastic IP addresses that are being moved to the EC2-VPC platform, or that are being restored to the EC2-Classic platform. This request does not return information about any other Elastic IP addresses in your account. ## - let valid = call_619328.validator(path, query, header, formData, body) - let scheme = call_619328.pickScheme + let valid = call_619330.validator(path, query, header, formData, body) + let scheme = call_619330.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619328.url(scheme.get, call_619328.host, call_619328.base, - call_619328.route, valid.getOrDefault("path"), + let url = call_619330.url(scheme.get, call_619330.host, call_619330.base, + call_619330.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619328, url, valid) + result = atozHook(call_619330, url, valid) -proc call*(call_619329: Call_PostDescribeMovingAddresses_619311; +proc call*(call_619331: Call_PostDescribeMovingAddresses_619313; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeMovingAddresses"; PublicIp: JsonNode = nil; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -67350,28 +67377,28 @@ proc call*(call_619329: Call_PostDescribeMovingAddresses_619311; ## :

The maximum number of results to return for the request in a single page. The remaining results of the initial request can be seen by sending another request with the returned NextToken value. This value can be between 5 and 1000; if MaxResults is given a value outside of this range, an error is returned.

Default: If no value is provided, the default is 1000.

## Filter: JArray ## :

One or more filters.

- var query_619330 = newJObject() - var formData_619331 = newJObject() - add(formData_619331, "NextToken", newJString(NextToken)) - add(formData_619331, "DryRun", newJBool(DryRun)) - add(query_619330, "Action", newJString(Action)) + var query_619332 = newJObject() + var formData_619333 = newJObject() + add(formData_619333, "NextToken", newJString(NextToken)) + add(formData_619333, "DryRun", newJBool(DryRun)) + add(query_619332, "Action", newJString(Action)) if PublicIp != nil: - formData_619331.add "PublicIp", PublicIp - add(query_619330, "Version", newJString(Version)) - add(formData_619331, "MaxResults", newJInt(MaxResults)) + formData_619333.add "PublicIp", PublicIp + add(query_619332, "Version", newJString(Version)) + add(formData_619333, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_619331.add "Filter", Filter - result = call_619329.call(nil, query_619330, nil, formData_619331, nil) + formData_619333.add "Filter", Filter + result = call_619331.call(nil, query_619332, nil, formData_619333, nil) -var postDescribeMovingAddresses* = Call_PostDescribeMovingAddresses_619311( +var postDescribeMovingAddresses* = Call_PostDescribeMovingAddresses_619313( name: "postDescribeMovingAddresses", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeMovingAddresses", - validator: validate_PostDescribeMovingAddresses_619312, base: "/", - url: url_PostDescribeMovingAddresses_619313, + validator: validate_PostDescribeMovingAddresses_619314, base: "/", + url: url_PostDescribeMovingAddresses_619315, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeMovingAddresses_619291 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeMovingAddresses_619293(protocol: Scheme; host: string; + Call_GetDescribeMovingAddresses_619293 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeMovingAddresses_619295(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -67381,7 +67408,7 @@ proc url_GetDescribeMovingAddresses_619293(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeMovingAddresses_619292(path: JsonNode; query: JsonNode; +proc validate_GetDescribeMovingAddresses_619294(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes your Elastic IP addresses that are being moved to the EC2-VPC platform, or that are being restored to the EC2-Classic platform. This request does not return information about any other Elastic IP addresses in your account. ## @@ -67403,39 +67430,39 @@ proc validate_GetDescribeMovingAddresses_619292(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619294 = query.getOrDefault("MaxResults") - valid_619294 = validateParameter(valid_619294, JInt, required = false, default = nil) - if valid_619294 != nil: - section.add "MaxResults", valid_619294 - var valid_619295 = query.getOrDefault("DryRun") - valid_619295 = validateParameter(valid_619295, JBool, required = false, default = nil) - if valid_619295 != nil: - section.add "DryRun", valid_619295 - var valid_619296 = query.getOrDefault("NextToken") - valid_619296 = validateParameter(valid_619296, JString, required = false, - default = nil) + var valid_619296 = query.getOrDefault("MaxResults") + valid_619296 = validateParameter(valid_619296, JInt, required = false, default = nil) if valid_619296 != nil: - section.add "NextToken", valid_619296 - var valid_619297 = query.getOrDefault("Filter") - valid_619297 = validateParameter(valid_619297, JArray, required = false, - default = nil) + section.add "MaxResults", valid_619296 + var valid_619297 = query.getOrDefault("DryRun") + valid_619297 = validateParameter(valid_619297, JBool, required = false, default = nil) if valid_619297 != nil: - section.add "Filter", valid_619297 - var valid_619298 = query.getOrDefault("PublicIp") - valid_619298 = validateParameter(valid_619298, JArray, required = false, + section.add "DryRun", valid_619297 + var valid_619298 = query.getOrDefault("NextToken") + valid_619298 = validateParameter(valid_619298, JString, required = false, default = nil) if valid_619298 != nil: - section.add "PublicIp", valid_619298 - var valid_619299 = query.getOrDefault("Action") - valid_619299 = validateParameter(valid_619299, JString, required = true, default = newJString( - "DescribeMovingAddresses")) + section.add "NextToken", valid_619298 + var valid_619299 = query.getOrDefault("Filter") + valid_619299 = validateParameter(valid_619299, JArray, required = false, + default = nil) if valid_619299 != nil: - section.add "Action", valid_619299 - var valid_619300 = query.getOrDefault("Version") - valid_619300 = validateParameter(valid_619300, JString, required = true, - default = newJString("2016-11-15")) + section.add "Filter", valid_619299 + var valid_619300 = query.getOrDefault("PublicIp") + valid_619300 = validateParameter(valid_619300, JArray, required = false, + default = nil) if valid_619300 != nil: - section.add "Version", valid_619300 + section.add "PublicIp", valid_619300 + var valid_619301 = query.getOrDefault("Action") + valid_619301 = validateParameter(valid_619301, JString, required = true, default = newJString( + "DescribeMovingAddresses")) + if valid_619301 != nil: + section.add "Action", valid_619301 + var valid_619302 = query.getOrDefault("Version") + valid_619302 = validateParameter(valid_619302, JString, required = true, + default = newJString("2016-11-15")) + if valid_619302 != nil: + section.add "Version", valid_619302 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -67446,61 +67473,61 @@ proc validate_GetDescribeMovingAddresses_619292(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619301 = header.getOrDefault("X-Amz-Signature") - valid_619301 = validateParameter(valid_619301, JString, required = false, - default = nil) - if valid_619301 != nil: - section.add "X-Amz-Signature", valid_619301 - var valid_619302 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619302 = validateParameter(valid_619302, JString, required = false, - default = nil) - if valid_619302 != nil: - section.add "X-Amz-Content-Sha256", valid_619302 - var valid_619303 = header.getOrDefault("X-Amz-Date") + var valid_619303 = header.getOrDefault("X-Amz-Signature") valid_619303 = validateParameter(valid_619303, JString, required = false, default = nil) if valid_619303 != nil: - section.add "X-Amz-Date", valid_619303 - var valid_619304 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619303 + var valid_619304 = header.getOrDefault("X-Amz-Content-Sha256") valid_619304 = validateParameter(valid_619304, JString, required = false, default = nil) if valid_619304 != nil: - section.add "X-Amz-Credential", valid_619304 - var valid_619305 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619304 + var valid_619305 = header.getOrDefault("X-Amz-Date") valid_619305 = validateParameter(valid_619305, JString, required = false, default = nil) if valid_619305 != nil: - section.add "X-Amz-Security-Token", valid_619305 - var valid_619306 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619305 + var valid_619306 = header.getOrDefault("X-Amz-Credential") valid_619306 = validateParameter(valid_619306, JString, required = false, default = nil) if valid_619306 != nil: - section.add "X-Amz-Algorithm", valid_619306 - var valid_619307 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619306 + var valid_619307 = header.getOrDefault("X-Amz-Security-Token") valid_619307 = validateParameter(valid_619307, JString, required = false, default = nil) if valid_619307 != nil: - section.add "X-Amz-SignedHeaders", valid_619307 + section.add "X-Amz-Security-Token", valid_619307 + var valid_619308 = header.getOrDefault("X-Amz-Algorithm") + valid_619308 = validateParameter(valid_619308, JString, required = false, + default = nil) + if valid_619308 != nil: + section.add "X-Amz-Algorithm", valid_619308 + var valid_619309 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619309 = validateParameter(valid_619309, JString, required = false, + default = nil) + if valid_619309 != nil: + section.add "X-Amz-SignedHeaders", valid_619309 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619308: Call_GetDescribeMovingAddresses_619291; path: JsonNode; +proc call*(call_619310: Call_GetDescribeMovingAddresses_619293; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes your Elastic IP addresses that are being moved to the EC2-VPC platform, or that are being restored to the EC2-Classic platform. This request does not return information about any other Elastic IP addresses in your account. ## - let valid = call_619308.validator(path, query, header, formData, body) - let scheme = call_619308.pickScheme + let valid = call_619310.validator(path, query, header, formData, body) + let scheme = call_619310.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619308.url(scheme.get, call_619308.host, call_619308.base, - call_619308.route, valid.getOrDefault("path"), + let url = call_619310.url(scheme.get, call_619310.host, call_619310.base, + call_619310.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619308, url, valid) + result = atozHook(call_619310, url, valid) -proc call*(call_619309: Call_GetDescribeMovingAddresses_619291; +proc call*(call_619311: Call_GetDescribeMovingAddresses_619293; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; PublicIp: JsonNode = nil; Action: string = "DescribeMovingAddresses"; Version: string = "2016-11-15"): Recallable = @@ -67518,27 +67545,27 @@ proc call*(call_619309: Call_GetDescribeMovingAddresses_619291; ## : One or more Elastic IP addresses. ## Action: string (required) ## Version: string (required) - var query_619310 = newJObject() - add(query_619310, "MaxResults", newJInt(MaxResults)) - add(query_619310, "DryRun", newJBool(DryRun)) - add(query_619310, "NextToken", newJString(NextToken)) + var query_619312 = newJObject() + add(query_619312, "MaxResults", newJInt(MaxResults)) + add(query_619312, "DryRun", newJBool(DryRun)) + add(query_619312, "NextToken", newJString(NextToken)) if Filter != nil: - query_619310.add "Filter", Filter + query_619312.add "Filter", Filter if PublicIp != nil: - query_619310.add "PublicIp", PublicIp - add(query_619310, "Action", newJString(Action)) - add(query_619310, "Version", newJString(Version)) - result = call_619309.call(nil, query_619310, nil, nil, nil) + query_619312.add "PublicIp", PublicIp + add(query_619312, "Action", newJString(Action)) + add(query_619312, "Version", newJString(Version)) + result = call_619311.call(nil, query_619312, nil, nil, nil) -var getDescribeMovingAddresses* = Call_GetDescribeMovingAddresses_619291( +var getDescribeMovingAddresses* = Call_GetDescribeMovingAddresses_619293( name: "getDescribeMovingAddresses", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeMovingAddresses", - validator: validate_GetDescribeMovingAddresses_619292, base: "/", - url: url_GetDescribeMovingAddresses_619293, + validator: validate_GetDescribeMovingAddresses_619294, base: "/", + url: url_GetDescribeMovingAddresses_619295, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeNatGateways_619351 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeNatGateways_619353(protocol: Scheme; host: string; base: string; + Call_PostDescribeNatGateways_619353 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeNatGateways_619355(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -67549,7 +67576,7 @@ proc url_PostDescribeNatGateways_619353(protocol: Scheme; host: string; base: st else: result.path = base & route -proc validate_PostDescribeNatGateways_619352(path: JsonNode; query: JsonNode; +proc validate_PostDescribeNatGateways_619354(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more of your NAT gateways. ## @@ -67561,16 +67588,16 @@ proc validate_PostDescribeNatGateways_619352(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619354 = query.getOrDefault("Action") - valid_619354 = validateParameter(valid_619354, JString, required = true, + var valid_619356 = query.getOrDefault("Action") + valid_619356 = validateParameter(valid_619356, JString, required = true, default = newJString("DescribeNatGateways")) - if valid_619354 != nil: - section.add "Action", valid_619354 - var valid_619355 = query.getOrDefault("Version") - valid_619355 = validateParameter(valid_619355, JString, required = true, + if valid_619356 != nil: + section.add "Action", valid_619356 + var valid_619357 = query.getOrDefault("Version") + valid_619357 = validateParameter(valid_619357, JString, required = true, default = newJString("2016-11-15")) - if valid_619355 != nil: - section.add "Version", valid_619355 + if valid_619357 != nil: + section.add "Version", valid_619357 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -67581,41 +67608,41 @@ proc validate_PostDescribeNatGateways_619352(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619356 = header.getOrDefault("X-Amz-Signature") - valid_619356 = validateParameter(valid_619356, JString, required = false, - default = nil) - if valid_619356 != nil: - section.add "X-Amz-Signature", valid_619356 - var valid_619357 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619357 = validateParameter(valid_619357, JString, required = false, - default = nil) - if valid_619357 != nil: - section.add "X-Amz-Content-Sha256", valid_619357 - var valid_619358 = header.getOrDefault("X-Amz-Date") + var valid_619358 = header.getOrDefault("X-Amz-Signature") valid_619358 = validateParameter(valid_619358, JString, required = false, default = nil) if valid_619358 != nil: - section.add "X-Amz-Date", valid_619358 - var valid_619359 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619358 + var valid_619359 = header.getOrDefault("X-Amz-Content-Sha256") valid_619359 = validateParameter(valid_619359, JString, required = false, default = nil) if valid_619359 != nil: - section.add "X-Amz-Credential", valid_619359 - var valid_619360 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619359 + var valid_619360 = header.getOrDefault("X-Amz-Date") valid_619360 = validateParameter(valid_619360, JString, required = false, default = nil) if valid_619360 != nil: - section.add "X-Amz-Security-Token", valid_619360 - var valid_619361 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619360 + var valid_619361 = header.getOrDefault("X-Amz-Credential") valid_619361 = validateParameter(valid_619361, JString, required = false, default = nil) if valid_619361 != nil: - section.add "X-Amz-Algorithm", valid_619361 - var valid_619362 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619361 + var valid_619362 = header.getOrDefault("X-Amz-Security-Token") valid_619362 = validateParameter(valid_619362, JString, required = false, default = nil) if valid_619362 != nil: - section.add "X-Amz-SignedHeaders", valid_619362 + section.add "X-Amz-Security-Token", valid_619362 + var valid_619363 = header.getOrDefault("X-Amz-Algorithm") + valid_619363 = validateParameter(valid_619363, JString, required = false, + default = nil) + if valid_619363 != nil: + section.add "X-Amz-Algorithm", valid_619363 + var valid_619364 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619364 = validateParameter(valid_619364, JString, required = false, + default = nil) + if valid_619364 != nil: + section.add "X-Amz-SignedHeaders", valid_619364 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -67627,43 +67654,43 @@ proc validate_PostDescribeNatGateways_619352(path: JsonNode; query: JsonNode; ## Filter: JArray ## :

One or more filters.

section = newJObject() - var valid_619363 = formData.getOrDefault("NextToken") - valid_619363 = validateParameter(valid_619363, JString, required = false, + var valid_619365 = formData.getOrDefault("NextToken") + valid_619365 = validateParameter(valid_619365, JString, required = false, default = nil) - if valid_619363 != nil: - section.add "NextToken", valid_619363 - var valid_619364 = formData.getOrDefault("NatGatewayId") - valid_619364 = validateParameter(valid_619364, JArray, required = false, - default = nil) - if valid_619364 != nil: - section.add "NatGatewayId", valid_619364 - var valid_619365 = formData.getOrDefault("MaxResults") - valid_619365 = validateParameter(valid_619365, JInt, required = false, default = nil) if valid_619365 != nil: - section.add "MaxResults", valid_619365 - var valid_619366 = formData.getOrDefault("Filter") + section.add "NextToken", valid_619365 + var valid_619366 = formData.getOrDefault("NatGatewayId") valid_619366 = validateParameter(valid_619366, JArray, required = false, default = nil) if valid_619366 != nil: - section.add "Filter", valid_619366 + section.add "NatGatewayId", valid_619366 + var valid_619367 = formData.getOrDefault("MaxResults") + valid_619367 = validateParameter(valid_619367, JInt, required = false, default = nil) + if valid_619367 != nil: + section.add "MaxResults", valid_619367 + var valid_619368 = formData.getOrDefault("Filter") + valid_619368 = validateParameter(valid_619368, JArray, required = false, + default = nil) + if valid_619368 != nil: + section.add "Filter", valid_619368 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619367: Call_PostDescribeNatGateways_619351; path: JsonNode; +proc call*(call_619369: Call_PostDescribeNatGateways_619353; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more of your NAT gateways. ## - let valid = call_619367.validator(path, query, header, formData, body) - let scheme = call_619367.pickScheme + let valid = call_619369.validator(path, query, header, formData, body) + let scheme = call_619369.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619367.url(scheme.get, call_619367.host, call_619367.base, - call_619367.route, valid.getOrDefault("path"), + let url = call_619369.url(scheme.get, call_619369.host, call_619369.base, + call_619369.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619367, url, valid) + result = atozHook(call_619369, url, valid) -proc call*(call_619368: Call_PostDescribeNatGateways_619351; +proc call*(call_619370: Call_PostDescribeNatGateways_619353; NextToken: string = ""; Action: string = "DescribeNatGateways"; NatGatewayId: JsonNode = nil; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -67679,26 +67706,26 @@ proc call*(call_619368: Call_PostDescribeNatGateways_619351; ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## Filter: JArray ## :

One or more filters.

- var query_619369 = newJObject() - var formData_619370 = newJObject() - add(formData_619370, "NextToken", newJString(NextToken)) - add(query_619369, "Action", newJString(Action)) + var query_619371 = newJObject() + var formData_619372 = newJObject() + add(formData_619372, "NextToken", newJString(NextToken)) + add(query_619371, "Action", newJString(Action)) if NatGatewayId != nil: - formData_619370.add "NatGatewayId", NatGatewayId - add(query_619369, "Version", newJString(Version)) - add(formData_619370, "MaxResults", newJInt(MaxResults)) + formData_619372.add "NatGatewayId", NatGatewayId + add(query_619371, "Version", newJString(Version)) + add(formData_619372, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_619370.add "Filter", Filter - result = call_619368.call(nil, query_619369, nil, formData_619370, nil) + formData_619372.add "Filter", Filter + result = call_619370.call(nil, query_619371, nil, formData_619372, nil) -var postDescribeNatGateways* = Call_PostDescribeNatGateways_619351( +var postDescribeNatGateways* = Call_PostDescribeNatGateways_619353( name: "postDescribeNatGateways", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeNatGateways", - validator: validate_PostDescribeNatGateways_619352, base: "/", - url: url_PostDescribeNatGateways_619353, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDescribeNatGateways_619354, base: "/", + url: url_PostDescribeNatGateways_619355, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeNatGateways_619332 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeNatGateways_619334(protocol: Scheme; host: string; base: string; + Call_GetDescribeNatGateways_619334 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeNatGateways_619336(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -67708,7 +67735,7 @@ proc url_GetDescribeNatGateways_619334(protocol: Scheme; host: string; base: str else: result.path = base & route -proc validate_GetDescribeNatGateways_619333(path: JsonNode; query: JsonNode; +proc validate_GetDescribeNatGateways_619335(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more of your NAT gateways. ## @@ -67728,35 +67755,35 @@ proc validate_GetDescribeNatGateways_619333(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619335 = query.getOrDefault("MaxResults") - valid_619335 = validateParameter(valid_619335, JInt, required = false, default = nil) - if valid_619335 != nil: - section.add "MaxResults", valid_619335 - var valid_619336 = query.getOrDefault("NextToken") - valid_619336 = validateParameter(valid_619336, JString, required = false, - default = nil) - if valid_619336 != nil: - section.add "NextToken", valid_619336 - var valid_619337 = query.getOrDefault("Filter") - valid_619337 = validateParameter(valid_619337, JArray, required = false, - default = nil) + var valid_619337 = query.getOrDefault("MaxResults") + valid_619337 = validateParameter(valid_619337, JInt, required = false, default = nil) if valid_619337 != nil: - section.add "Filter", valid_619337 - var valid_619338 = query.getOrDefault("NatGatewayId") - valid_619338 = validateParameter(valid_619338, JArray, required = false, + section.add "MaxResults", valid_619337 + var valid_619338 = query.getOrDefault("NextToken") + valid_619338 = validateParameter(valid_619338, JString, required = false, default = nil) if valid_619338 != nil: - section.add "NatGatewayId", valid_619338 - var valid_619339 = query.getOrDefault("Action") - valid_619339 = validateParameter(valid_619339, JString, required = true, - default = newJString("DescribeNatGateways")) + section.add "NextToken", valid_619338 + var valid_619339 = query.getOrDefault("Filter") + valid_619339 = validateParameter(valid_619339, JArray, required = false, + default = nil) if valid_619339 != nil: - section.add "Action", valid_619339 - var valid_619340 = query.getOrDefault("Version") - valid_619340 = validateParameter(valid_619340, JString, required = true, - default = newJString("2016-11-15")) + section.add "Filter", valid_619339 + var valid_619340 = query.getOrDefault("NatGatewayId") + valid_619340 = validateParameter(valid_619340, JArray, required = false, + default = nil) if valid_619340 != nil: - section.add "Version", valid_619340 + section.add "NatGatewayId", valid_619340 + var valid_619341 = query.getOrDefault("Action") + valid_619341 = validateParameter(valid_619341, JString, required = true, + default = newJString("DescribeNatGateways")) + if valid_619341 != nil: + section.add "Action", valid_619341 + var valid_619342 = query.getOrDefault("Version") + valid_619342 = validateParameter(valid_619342, JString, required = true, + default = newJString("2016-11-15")) + if valid_619342 != nil: + section.add "Version", valid_619342 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -67767,61 +67794,61 @@ proc validate_GetDescribeNatGateways_619333(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619341 = header.getOrDefault("X-Amz-Signature") - valid_619341 = validateParameter(valid_619341, JString, required = false, - default = nil) - if valid_619341 != nil: - section.add "X-Amz-Signature", valid_619341 - var valid_619342 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619342 = validateParameter(valid_619342, JString, required = false, - default = nil) - if valid_619342 != nil: - section.add "X-Amz-Content-Sha256", valid_619342 - var valid_619343 = header.getOrDefault("X-Amz-Date") + var valid_619343 = header.getOrDefault("X-Amz-Signature") valid_619343 = validateParameter(valid_619343, JString, required = false, default = nil) if valid_619343 != nil: - section.add "X-Amz-Date", valid_619343 - var valid_619344 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619343 + var valid_619344 = header.getOrDefault("X-Amz-Content-Sha256") valid_619344 = validateParameter(valid_619344, JString, required = false, default = nil) if valid_619344 != nil: - section.add "X-Amz-Credential", valid_619344 - var valid_619345 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619344 + var valid_619345 = header.getOrDefault("X-Amz-Date") valid_619345 = validateParameter(valid_619345, JString, required = false, default = nil) if valid_619345 != nil: - section.add "X-Amz-Security-Token", valid_619345 - var valid_619346 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619345 + var valid_619346 = header.getOrDefault("X-Amz-Credential") valid_619346 = validateParameter(valid_619346, JString, required = false, default = nil) if valid_619346 != nil: - section.add "X-Amz-Algorithm", valid_619346 - var valid_619347 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619346 + var valid_619347 = header.getOrDefault("X-Amz-Security-Token") valid_619347 = validateParameter(valid_619347, JString, required = false, default = nil) if valid_619347 != nil: - section.add "X-Amz-SignedHeaders", valid_619347 + section.add "X-Amz-Security-Token", valid_619347 + var valid_619348 = header.getOrDefault("X-Amz-Algorithm") + valid_619348 = validateParameter(valid_619348, JString, required = false, + default = nil) + if valid_619348 != nil: + section.add "X-Amz-Algorithm", valid_619348 + var valid_619349 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619349 = validateParameter(valid_619349, JString, required = false, + default = nil) + if valid_619349 != nil: + section.add "X-Amz-SignedHeaders", valid_619349 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619348: Call_GetDescribeNatGateways_619332; path: JsonNode; +proc call*(call_619350: Call_GetDescribeNatGateways_619334; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more of your NAT gateways. ## - let valid = call_619348.validator(path, query, header, formData, body) - let scheme = call_619348.pickScheme + let valid = call_619350.validator(path, query, header, formData, body) + let scheme = call_619350.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619348.url(scheme.get, call_619348.host, call_619348.base, - call_619348.route, valid.getOrDefault("path"), + let url = call_619350.url(scheme.get, call_619350.host, call_619350.base, + call_619350.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619348, url, valid) + result = atozHook(call_619350, url, valid) -proc call*(call_619349: Call_GetDescribeNatGateways_619332; MaxResults: int = 0; +proc call*(call_619351: Call_GetDescribeNatGateways_619334; MaxResults: int = 0; NextToken: string = ""; Filter: JsonNode = nil; NatGatewayId: JsonNode = nil; Action: string = "DescribeNatGateways"; Version: string = "2016-11-15"): Recallable = ## getDescribeNatGateways @@ -67836,25 +67863,25 @@ proc call*(call_619349: Call_GetDescribeNatGateways_619332; MaxResults: int = 0; ## : One or more NAT gateway IDs. ## Action: string (required) ## Version: string (required) - var query_619350 = newJObject() - add(query_619350, "MaxResults", newJInt(MaxResults)) - add(query_619350, "NextToken", newJString(NextToken)) + var query_619352 = newJObject() + add(query_619352, "MaxResults", newJInt(MaxResults)) + add(query_619352, "NextToken", newJString(NextToken)) if Filter != nil: - query_619350.add "Filter", Filter + query_619352.add "Filter", Filter if NatGatewayId != nil: - query_619350.add "NatGatewayId", NatGatewayId - add(query_619350, "Action", newJString(Action)) - add(query_619350, "Version", newJString(Version)) - result = call_619349.call(nil, query_619350, nil, nil, nil) + query_619352.add "NatGatewayId", NatGatewayId + add(query_619352, "Action", newJString(Action)) + add(query_619352, "Version", newJString(Version)) + result = call_619351.call(nil, query_619352, nil, nil, nil) -var getDescribeNatGateways* = Call_GetDescribeNatGateways_619332( +var getDescribeNatGateways* = Call_GetDescribeNatGateways_619334( name: "getDescribeNatGateways", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeNatGateways", - validator: validate_GetDescribeNatGateways_619333, base: "/", - url: url_GetDescribeNatGateways_619334, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDescribeNatGateways_619335, base: "/", + url: url_GetDescribeNatGateways_619336, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeNetworkAcls_619391 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeNetworkAcls_619393(protocol: Scheme; host: string; base: string; + Call_PostDescribeNetworkAcls_619393 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeNetworkAcls_619395(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -67865,7 +67892,7 @@ proc url_PostDescribeNetworkAcls_619393(protocol: Scheme; host: string; base: st else: result.path = base & route -proc validate_PostDescribeNetworkAcls_619392(path: JsonNode; query: JsonNode; +proc validate_PostDescribeNetworkAcls_619394(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes one or more of your network ACLs.

For more information, see Network ACLs in the Amazon Virtual Private Cloud User Guide.

## @@ -67877,16 +67904,16 @@ proc validate_PostDescribeNetworkAcls_619392(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619394 = query.getOrDefault("Action") - valid_619394 = validateParameter(valid_619394, JString, required = true, + var valid_619396 = query.getOrDefault("Action") + valid_619396 = validateParameter(valid_619396, JString, required = true, default = newJString("DescribeNetworkAcls")) - if valid_619394 != nil: - section.add "Action", valid_619394 - var valid_619395 = query.getOrDefault("Version") - valid_619395 = validateParameter(valid_619395, JString, required = true, + if valid_619396 != nil: + section.add "Action", valid_619396 + var valid_619397 = query.getOrDefault("Version") + valid_619397 = validateParameter(valid_619397, JString, required = true, default = newJString("2016-11-15")) - if valid_619395 != nil: - section.add "Version", valid_619395 + if valid_619397 != nil: + section.add "Version", valid_619397 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -67897,41 +67924,41 @@ proc validate_PostDescribeNetworkAcls_619392(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619396 = header.getOrDefault("X-Amz-Signature") - valid_619396 = validateParameter(valid_619396, JString, required = false, - default = nil) - if valid_619396 != nil: - section.add "X-Amz-Signature", valid_619396 - var valid_619397 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619397 = validateParameter(valid_619397, JString, required = false, - default = nil) - if valid_619397 != nil: - section.add "X-Amz-Content-Sha256", valid_619397 - var valid_619398 = header.getOrDefault("X-Amz-Date") + var valid_619398 = header.getOrDefault("X-Amz-Signature") valid_619398 = validateParameter(valid_619398, JString, required = false, default = nil) if valid_619398 != nil: - section.add "X-Amz-Date", valid_619398 - var valid_619399 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619398 + var valid_619399 = header.getOrDefault("X-Amz-Content-Sha256") valid_619399 = validateParameter(valid_619399, JString, required = false, default = nil) if valid_619399 != nil: - section.add "X-Amz-Credential", valid_619399 - var valid_619400 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619399 + var valid_619400 = header.getOrDefault("X-Amz-Date") valid_619400 = validateParameter(valid_619400, JString, required = false, default = nil) if valid_619400 != nil: - section.add "X-Amz-Security-Token", valid_619400 - var valid_619401 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619400 + var valid_619401 = header.getOrDefault("X-Amz-Credential") valid_619401 = validateParameter(valid_619401, JString, required = false, default = nil) if valid_619401 != nil: - section.add "X-Amz-Algorithm", valid_619401 - var valid_619402 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619401 + var valid_619402 = header.getOrDefault("X-Amz-Security-Token") valid_619402 = validateParameter(valid_619402, JString, required = false, default = nil) if valid_619402 != nil: - section.add "X-Amz-SignedHeaders", valid_619402 + section.add "X-Amz-Security-Token", valid_619402 + var valid_619403 = header.getOrDefault("X-Amz-Algorithm") + valid_619403 = validateParameter(valid_619403, JString, required = false, + default = nil) + if valid_619403 != nil: + section.add "X-Amz-Algorithm", valid_619403 + var valid_619404 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619404 = validateParameter(valid_619404, JString, required = false, + default = nil) + if valid_619404 != nil: + section.add "X-Amz-SignedHeaders", valid_619404 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -67945,47 +67972,47 @@ proc validate_PostDescribeNetworkAcls_619392(path: JsonNode; query: JsonNode; ## Filter: JArray ## :

One or more filters.

section = newJObject() - var valid_619403 = formData.getOrDefault("NextToken") - valid_619403 = validateParameter(valid_619403, JString, required = false, - default = nil) - if valid_619403 != nil: - section.add "NextToken", valid_619403 - var valid_619404 = formData.getOrDefault("NetworkAclId") - valid_619404 = validateParameter(valid_619404, JArray, required = false, + var valid_619405 = formData.getOrDefault("NextToken") + valid_619405 = validateParameter(valid_619405, JString, required = false, default = nil) - if valid_619404 != nil: - section.add "NetworkAclId", valid_619404 - var valid_619405 = formData.getOrDefault("DryRun") - valid_619405 = validateParameter(valid_619405, JBool, required = false, default = nil) if valid_619405 != nil: - section.add "DryRun", valid_619405 - var valid_619406 = formData.getOrDefault("MaxResults") - valid_619406 = validateParameter(valid_619406, JInt, required = false, default = nil) - if valid_619406 != nil: - section.add "MaxResults", valid_619406 - var valid_619407 = formData.getOrDefault("Filter") - valid_619407 = validateParameter(valid_619407, JArray, required = false, + section.add "NextToken", valid_619405 + var valid_619406 = formData.getOrDefault("NetworkAclId") + valid_619406 = validateParameter(valid_619406, JArray, required = false, default = nil) + if valid_619406 != nil: + section.add "NetworkAclId", valid_619406 + var valid_619407 = formData.getOrDefault("DryRun") + valid_619407 = validateParameter(valid_619407, JBool, required = false, default = nil) if valid_619407 != nil: - section.add "Filter", valid_619407 + section.add "DryRun", valid_619407 + var valid_619408 = formData.getOrDefault("MaxResults") + valid_619408 = validateParameter(valid_619408, JInt, required = false, default = nil) + if valid_619408 != nil: + section.add "MaxResults", valid_619408 + var valid_619409 = formData.getOrDefault("Filter") + valid_619409 = validateParameter(valid_619409, JArray, required = false, + default = nil) + if valid_619409 != nil: + section.add "Filter", valid_619409 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619408: Call_PostDescribeNetworkAcls_619391; path: JsonNode; +proc call*(call_619410: Call_PostDescribeNetworkAcls_619393; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes one or more of your network ACLs.

For more information, see Network ACLs in the Amazon Virtual Private Cloud User Guide.

## - let valid = call_619408.validator(path, query, header, formData, body) - let scheme = call_619408.pickScheme + let valid = call_619410.validator(path, query, header, formData, body) + let scheme = call_619410.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619408.url(scheme.get, call_619408.host, call_619408.base, - call_619408.route, valid.getOrDefault("path"), + let url = call_619410.url(scheme.get, call_619410.host, call_619410.base, + call_619410.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619408, url, valid) + result = atozHook(call_619410, url, valid) -proc call*(call_619409: Call_PostDescribeNetworkAcls_619391; +proc call*(call_619411: Call_PostDescribeNetworkAcls_619393; NextToken: string = ""; NetworkAclId: JsonNode = nil; DryRun: bool = false; Action: string = "DescribeNetworkAcls"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -68003,27 +68030,27 @@ proc call*(call_619409: Call_PostDescribeNetworkAcls_619391; ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## Filter: JArray ## :

One or more filters.

- var query_619410 = newJObject() - var formData_619411 = newJObject() - add(formData_619411, "NextToken", newJString(NextToken)) + var query_619412 = newJObject() + var formData_619413 = newJObject() + add(formData_619413, "NextToken", newJString(NextToken)) if NetworkAclId != nil: - formData_619411.add "NetworkAclId", NetworkAclId - add(formData_619411, "DryRun", newJBool(DryRun)) - add(query_619410, "Action", newJString(Action)) - add(query_619410, "Version", newJString(Version)) - add(formData_619411, "MaxResults", newJInt(MaxResults)) + formData_619413.add "NetworkAclId", NetworkAclId + add(formData_619413, "DryRun", newJBool(DryRun)) + add(query_619412, "Action", newJString(Action)) + add(query_619412, "Version", newJString(Version)) + add(formData_619413, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_619411.add "Filter", Filter - result = call_619409.call(nil, query_619410, nil, formData_619411, nil) + formData_619413.add "Filter", Filter + result = call_619411.call(nil, query_619412, nil, formData_619413, nil) -var postDescribeNetworkAcls* = Call_PostDescribeNetworkAcls_619391( +var postDescribeNetworkAcls* = Call_PostDescribeNetworkAcls_619393( name: "postDescribeNetworkAcls", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeNetworkAcls", - validator: validate_PostDescribeNetworkAcls_619392, base: "/", - url: url_PostDescribeNetworkAcls_619393, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDescribeNetworkAcls_619394, base: "/", + url: url_PostDescribeNetworkAcls_619395, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeNetworkAcls_619371 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeNetworkAcls_619373(protocol: Scheme; host: string; base: string; + Call_GetDescribeNetworkAcls_619373 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeNetworkAcls_619375(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -68033,7 +68060,7 @@ proc url_GetDescribeNetworkAcls_619373(protocol: Scheme; host: string; base: str else: result.path = base & route -proc validate_GetDescribeNetworkAcls_619372(path: JsonNode; query: JsonNode; +proc validate_GetDescribeNetworkAcls_619374(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes one or more of your network ACLs.

For more information, see Network ACLs in the Amazon Virtual Private Cloud User Guide.

## @@ -68055,39 +68082,39 @@ proc validate_GetDescribeNetworkAcls_619372(path: JsonNode; query: JsonNode; ## :

One or more network ACL IDs.

Default: Describes all your network ACLs.

## Version: JString (required) section = newJObject() - var valid_619374 = query.getOrDefault("MaxResults") - valid_619374 = validateParameter(valid_619374, JInt, required = false, default = nil) - if valid_619374 != nil: - section.add "MaxResults", valid_619374 - var valid_619375 = query.getOrDefault("DryRun") - valid_619375 = validateParameter(valid_619375, JBool, required = false, default = nil) - if valid_619375 != nil: - section.add "DryRun", valid_619375 - var valid_619376 = query.getOrDefault("NextToken") - valid_619376 = validateParameter(valid_619376, JString, required = false, - default = nil) + var valid_619376 = query.getOrDefault("MaxResults") + valid_619376 = validateParameter(valid_619376, JInt, required = false, default = nil) if valid_619376 != nil: - section.add "NextToken", valid_619376 - var valid_619377 = query.getOrDefault("Filter") - valid_619377 = validateParameter(valid_619377, JArray, required = false, - default = nil) + section.add "MaxResults", valid_619376 + var valid_619377 = query.getOrDefault("DryRun") + valid_619377 = validateParameter(valid_619377, JBool, required = false, default = nil) if valid_619377 != nil: - section.add "Filter", valid_619377 - var valid_619378 = query.getOrDefault("Action") - valid_619378 = validateParameter(valid_619378, JString, required = true, - default = newJString("DescribeNetworkAcls")) + section.add "DryRun", valid_619377 + var valid_619378 = query.getOrDefault("NextToken") + valid_619378 = validateParameter(valid_619378, JString, required = false, + default = nil) if valid_619378 != nil: - section.add "Action", valid_619378 - var valid_619379 = query.getOrDefault("NetworkAclId") + section.add "NextToken", valid_619378 + var valid_619379 = query.getOrDefault("Filter") valid_619379 = validateParameter(valid_619379, JArray, required = false, default = nil) if valid_619379 != nil: - section.add "NetworkAclId", valid_619379 - var valid_619380 = query.getOrDefault("Version") + section.add "Filter", valid_619379 + var valid_619380 = query.getOrDefault("Action") valid_619380 = validateParameter(valid_619380, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("DescribeNetworkAcls")) if valid_619380 != nil: - section.add "Version", valid_619380 + section.add "Action", valid_619380 + var valid_619381 = query.getOrDefault("NetworkAclId") + valid_619381 = validateParameter(valid_619381, JArray, required = false, + default = nil) + if valid_619381 != nil: + section.add "NetworkAclId", valid_619381 + var valid_619382 = query.getOrDefault("Version") + valid_619382 = validateParameter(valid_619382, JString, required = true, + default = newJString("2016-11-15")) + if valid_619382 != nil: + section.add "Version", valid_619382 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -68098,61 +68125,61 @@ proc validate_GetDescribeNetworkAcls_619372(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619381 = header.getOrDefault("X-Amz-Signature") - valid_619381 = validateParameter(valid_619381, JString, required = false, - default = nil) - if valid_619381 != nil: - section.add "X-Amz-Signature", valid_619381 - var valid_619382 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619382 = validateParameter(valid_619382, JString, required = false, - default = nil) - if valid_619382 != nil: - section.add "X-Amz-Content-Sha256", valid_619382 - var valid_619383 = header.getOrDefault("X-Amz-Date") + var valid_619383 = header.getOrDefault("X-Amz-Signature") valid_619383 = validateParameter(valid_619383, JString, required = false, default = nil) if valid_619383 != nil: - section.add "X-Amz-Date", valid_619383 - var valid_619384 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619383 + var valid_619384 = header.getOrDefault("X-Amz-Content-Sha256") valid_619384 = validateParameter(valid_619384, JString, required = false, default = nil) if valid_619384 != nil: - section.add "X-Amz-Credential", valid_619384 - var valid_619385 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619384 + var valid_619385 = header.getOrDefault("X-Amz-Date") valid_619385 = validateParameter(valid_619385, JString, required = false, default = nil) if valid_619385 != nil: - section.add "X-Amz-Security-Token", valid_619385 - var valid_619386 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619385 + var valid_619386 = header.getOrDefault("X-Amz-Credential") valid_619386 = validateParameter(valid_619386, JString, required = false, default = nil) if valid_619386 != nil: - section.add "X-Amz-Algorithm", valid_619386 - var valid_619387 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619386 + var valid_619387 = header.getOrDefault("X-Amz-Security-Token") valid_619387 = validateParameter(valid_619387, JString, required = false, default = nil) if valid_619387 != nil: - section.add "X-Amz-SignedHeaders", valid_619387 + section.add "X-Amz-Security-Token", valid_619387 + var valid_619388 = header.getOrDefault("X-Amz-Algorithm") + valid_619388 = validateParameter(valid_619388, JString, required = false, + default = nil) + if valid_619388 != nil: + section.add "X-Amz-Algorithm", valid_619388 + var valid_619389 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619389 = validateParameter(valid_619389, JString, required = false, + default = nil) + if valid_619389 != nil: + section.add "X-Amz-SignedHeaders", valid_619389 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619388: Call_GetDescribeNetworkAcls_619371; path: JsonNode; +proc call*(call_619390: Call_GetDescribeNetworkAcls_619373; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes one or more of your network ACLs.

For more information, see Network ACLs in the Amazon Virtual Private Cloud User Guide.

## - let valid = call_619388.validator(path, query, header, formData, body) - let scheme = call_619388.pickScheme + let valid = call_619390.validator(path, query, header, formData, body) + let scheme = call_619390.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619388.url(scheme.get, call_619388.host, call_619388.base, - call_619388.route, valid.getOrDefault("path"), + let url = call_619390.url(scheme.get, call_619390.host, call_619390.base, + call_619390.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619388, url, valid) + result = atozHook(call_619390, url, valid) -proc call*(call_619389: Call_GetDescribeNetworkAcls_619371; MaxResults: int = 0; +proc call*(call_619391: Call_GetDescribeNetworkAcls_619373; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeNetworkAcls"; NetworkAclId: JsonNode = nil; Version: string = "2016-11-15"): Recallable = @@ -68170,26 +68197,26 @@ proc call*(call_619389: Call_GetDescribeNetworkAcls_619371; MaxResults: int = 0; ## NetworkAclId: JArray ## :

One or more network ACL IDs.

Default: Describes all your network ACLs.

## Version: string (required) - var query_619390 = newJObject() - add(query_619390, "MaxResults", newJInt(MaxResults)) - add(query_619390, "DryRun", newJBool(DryRun)) - add(query_619390, "NextToken", newJString(NextToken)) + var query_619392 = newJObject() + add(query_619392, "MaxResults", newJInt(MaxResults)) + add(query_619392, "DryRun", newJBool(DryRun)) + add(query_619392, "NextToken", newJString(NextToken)) if Filter != nil: - query_619390.add "Filter", Filter - add(query_619390, "Action", newJString(Action)) + query_619392.add "Filter", Filter + add(query_619392, "Action", newJString(Action)) if NetworkAclId != nil: - query_619390.add "NetworkAclId", NetworkAclId - add(query_619390, "Version", newJString(Version)) - result = call_619389.call(nil, query_619390, nil, nil, nil) + query_619392.add "NetworkAclId", NetworkAclId + add(query_619392, "Version", newJString(Version)) + result = call_619391.call(nil, query_619392, nil, nil, nil) -var getDescribeNetworkAcls* = Call_GetDescribeNetworkAcls_619371( +var getDescribeNetworkAcls* = Call_GetDescribeNetworkAcls_619373( name: "getDescribeNetworkAcls", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeNetworkAcls", - validator: validate_GetDescribeNetworkAcls_619372, base: "/", - url: url_GetDescribeNetworkAcls_619373, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDescribeNetworkAcls_619374, base: "/", + url: url_GetDescribeNetworkAcls_619375, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeNetworkInterfaceAttribute_619430 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeNetworkInterfaceAttribute_619432(protocol: Scheme; + Call_PostDescribeNetworkInterfaceAttribute_619432 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeNetworkInterfaceAttribute_619434(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -68199,7 +68226,7 @@ proc url_PostDescribeNetworkInterfaceAttribute_619432(protocol: Scheme; else: result.path = base & route -proc validate_PostDescribeNetworkInterfaceAttribute_619431(path: JsonNode; +proc validate_PostDescribeNetworkInterfaceAttribute_619433(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes a network interface attribute. You can specify only one attribute at a time. ## @@ -68211,16 +68238,16 @@ proc validate_PostDescribeNetworkInterfaceAttribute_619431(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619433 = query.getOrDefault("Action") - valid_619433 = validateParameter(valid_619433, JString, required = true, default = newJString( + var valid_619435 = query.getOrDefault("Action") + valid_619435 = validateParameter(valid_619435, JString, required = true, default = newJString( "DescribeNetworkInterfaceAttribute")) - if valid_619433 != nil: - section.add "Action", valid_619433 - var valid_619434 = query.getOrDefault("Version") - valid_619434 = validateParameter(valid_619434, JString, required = true, + if valid_619435 != nil: + section.add "Action", valid_619435 + var valid_619436 = query.getOrDefault("Version") + valid_619436 = validateParameter(valid_619436, JString, required = true, default = newJString("2016-11-15")) - if valid_619434 != nil: - section.add "Version", valid_619434 + if valid_619436 != nil: + section.add "Version", valid_619436 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -68231,41 +68258,41 @@ proc validate_PostDescribeNetworkInterfaceAttribute_619431(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619435 = header.getOrDefault("X-Amz-Signature") - valid_619435 = validateParameter(valid_619435, JString, required = false, - default = nil) - if valid_619435 != nil: - section.add "X-Amz-Signature", valid_619435 - var valid_619436 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619436 = validateParameter(valid_619436, JString, required = false, - default = nil) - if valid_619436 != nil: - section.add "X-Amz-Content-Sha256", valid_619436 - var valid_619437 = header.getOrDefault("X-Amz-Date") + var valid_619437 = header.getOrDefault("X-Amz-Signature") valid_619437 = validateParameter(valid_619437, JString, required = false, default = nil) if valid_619437 != nil: - section.add "X-Amz-Date", valid_619437 - var valid_619438 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619437 + var valid_619438 = header.getOrDefault("X-Amz-Content-Sha256") valid_619438 = validateParameter(valid_619438, JString, required = false, default = nil) if valid_619438 != nil: - section.add "X-Amz-Credential", valid_619438 - var valid_619439 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619438 + var valid_619439 = header.getOrDefault("X-Amz-Date") valid_619439 = validateParameter(valid_619439, JString, required = false, default = nil) if valid_619439 != nil: - section.add "X-Amz-Security-Token", valid_619439 - var valid_619440 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619439 + var valid_619440 = header.getOrDefault("X-Amz-Credential") valid_619440 = validateParameter(valid_619440, JString, required = false, default = nil) if valid_619440 != nil: - section.add "X-Amz-Algorithm", valid_619440 - var valid_619441 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619440 + var valid_619441 = header.getOrDefault("X-Amz-Security-Token") valid_619441 = validateParameter(valid_619441, JString, required = false, default = nil) if valid_619441 != nil: - section.add "X-Amz-SignedHeaders", valid_619441 + section.add "X-Amz-Security-Token", valid_619441 + var valid_619442 = header.getOrDefault("X-Amz-Algorithm") + valid_619442 = validateParameter(valid_619442, JString, required = false, + default = nil) + if valid_619442 != nil: + section.add "X-Amz-Algorithm", valid_619442 + var valid_619443 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619443 = validateParameter(valid_619443, JString, required = false, + default = nil) + if valid_619443 != nil: + section.add "X-Amz-SignedHeaders", valid_619443 result.add "header", section ## parameters in `formData` object: ## Attribute: JString @@ -68275,40 +68302,40 @@ proc validate_PostDescribeNetworkInterfaceAttribute_619431(path: JsonNode; ## DryRun: JBool ## : 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. section = newJObject() - var valid_619442 = formData.getOrDefault("Attribute") - valid_619442 = validateParameter(valid_619442, JString, required = false, + var valid_619444 = formData.getOrDefault("Attribute") + valid_619444 = validateParameter(valid_619444, JString, required = false, default = newJString("description")) - if valid_619442 != nil: - section.add "Attribute", valid_619442 + if valid_619444 != nil: + section.add "Attribute", valid_619444 assert formData != nil, "formData argument is necessary due to required `NetworkInterfaceId` field" - var valid_619443 = formData.getOrDefault("NetworkInterfaceId") - valid_619443 = validateParameter(valid_619443, JString, required = true, + var valid_619445 = formData.getOrDefault("NetworkInterfaceId") + valid_619445 = validateParameter(valid_619445, JString, required = true, default = nil) - if valid_619443 != nil: - section.add "NetworkInterfaceId", valid_619443 - var valid_619444 = formData.getOrDefault("DryRun") - valid_619444 = validateParameter(valid_619444, JBool, required = false, default = nil) - if valid_619444 != nil: - section.add "DryRun", valid_619444 + if valid_619445 != nil: + section.add "NetworkInterfaceId", valid_619445 + var valid_619446 = formData.getOrDefault("DryRun") + valid_619446 = validateParameter(valid_619446, JBool, required = false, default = nil) + if valid_619446 != nil: + section.add "DryRun", valid_619446 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619445: Call_PostDescribeNetworkInterfaceAttribute_619430; +proc call*(call_619447: Call_PostDescribeNetworkInterfaceAttribute_619432; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes a network interface attribute. You can specify only one attribute at a time. ## - let valid = call_619445.validator(path, query, header, formData, body) - let scheme = call_619445.pickScheme + let valid = call_619447.validator(path, query, header, formData, body) + let scheme = call_619447.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619445.url(scheme.get, call_619445.host, call_619445.base, - call_619445.route, valid.getOrDefault("path"), + let url = call_619447.url(scheme.get, call_619447.host, call_619447.base, + call_619447.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619445, url, valid) + result = atozHook(call_619447, url, valid) -proc call*(call_619446: Call_PostDescribeNetworkInterfaceAttribute_619430; +proc call*(call_619448: Call_PostDescribeNetworkInterfaceAttribute_619432; NetworkInterfaceId: string; Attribute: string = "description"; DryRun: bool = false; Action: string = "DescribeNetworkInterfaceAttribute"; @@ -68323,25 +68350,25 @@ proc call*(call_619446: Call_PostDescribeNetworkInterfaceAttribute_619430; ## : 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. ## Action: string (required) ## Version: string (required) - var query_619447 = newJObject() - var formData_619448 = newJObject() - add(formData_619448, "Attribute", newJString(Attribute)) - add(formData_619448, "NetworkInterfaceId", newJString(NetworkInterfaceId)) - add(formData_619448, "DryRun", newJBool(DryRun)) - add(query_619447, "Action", newJString(Action)) - add(query_619447, "Version", newJString(Version)) - result = call_619446.call(nil, query_619447, nil, formData_619448, nil) + var query_619449 = newJObject() + var formData_619450 = newJObject() + add(formData_619450, "Attribute", newJString(Attribute)) + add(formData_619450, "NetworkInterfaceId", newJString(NetworkInterfaceId)) + add(formData_619450, "DryRun", newJBool(DryRun)) + add(query_619449, "Action", newJString(Action)) + add(query_619449, "Version", newJString(Version)) + result = call_619448.call(nil, query_619449, nil, formData_619450, nil) -var postDescribeNetworkInterfaceAttribute* = Call_PostDescribeNetworkInterfaceAttribute_619430( +var postDescribeNetworkInterfaceAttribute* = Call_PostDescribeNetworkInterfaceAttribute_619432( name: "postDescribeNetworkInterfaceAttribute", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeNetworkInterfaceAttribute", - validator: validate_PostDescribeNetworkInterfaceAttribute_619431, base: "/", - url: url_PostDescribeNetworkInterfaceAttribute_619432, + validator: validate_PostDescribeNetworkInterfaceAttribute_619433, base: "/", + url: url_PostDescribeNetworkInterfaceAttribute_619434, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeNetworkInterfaceAttribute_619412 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeNetworkInterfaceAttribute_619414(protocol: Scheme; + Call_GetDescribeNetworkInterfaceAttribute_619414 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeNetworkInterfaceAttribute_619416(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -68351,7 +68378,7 @@ proc url_GetDescribeNetworkInterfaceAttribute_619414(protocol: Scheme; else: result.path = base & route -proc validate_GetDescribeNetworkInterfaceAttribute_619413(path: JsonNode; +proc validate_GetDescribeNetworkInterfaceAttribute_619415(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes a network interface attribute. You can specify only one attribute at a time. ## @@ -68370,30 +68397,30 @@ proc validate_GetDescribeNetworkInterfaceAttribute_619413(path: JsonNode; ## : The attribute of the network interface. This parameter is required. section = newJObject() assert query != nil, "query argument is necessary due to required `NetworkInterfaceId` field" - var valid_619415 = query.getOrDefault("NetworkInterfaceId") - valid_619415 = validateParameter(valid_619415, JString, required = true, - default = nil) - if valid_619415 != nil: - section.add "NetworkInterfaceId", valid_619415 - var valid_619416 = query.getOrDefault("DryRun") - valid_619416 = validateParameter(valid_619416, JBool, required = false, default = nil) - if valid_619416 != nil: - section.add "DryRun", valid_619416 - var valid_619417 = query.getOrDefault("Action") - valid_619417 = validateParameter(valid_619417, JString, required = true, default = newJString( - "DescribeNetworkInterfaceAttribute")) + var valid_619417 = query.getOrDefault("NetworkInterfaceId") + valid_619417 = validateParameter(valid_619417, JString, required = true, + default = nil) if valid_619417 != nil: - section.add "Action", valid_619417 - var valid_619418 = query.getOrDefault("Version") - valid_619418 = validateParameter(valid_619418, JString, required = true, - default = newJString("2016-11-15")) + section.add "NetworkInterfaceId", valid_619417 + var valid_619418 = query.getOrDefault("DryRun") + valid_619418 = validateParameter(valid_619418, JBool, required = false, default = nil) if valid_619418 != nil: - section.add "Version", valid_619418 - var valid_619419 = query.getOrDefault("Attribute") - valid_619419 = validateParameter(valid_619419, JString, required = false, - default = newJString("description")) + section.add "DryRun", valid_619418 + var valid_619419 = query.getOrDefault("Action") + valid_619419 = validateParameter(valid_619419, JString, required = true, default = newJString( + "DescribeNetworkInterfaceAttribute")) if valid_619419 != nil: - section.add "Attribute", valid_619419 + section.add "Action", valid_619419 + var valid_619420 = query.getOrDefault("Version") + valid_619420 = validateParameter(valid_619420, JString, required = true, + default = newJString("2016-11-15")) + if valid_619420 != nil: + section.add "Version", valid_619420 + var valid_619421 = query.getOrDefault("Attribute") + valid_619421 = validateParameter(valid_619421, JString, required = false, + default = newJString("description")) + if valid_619421 != nil: + section.add "Attribute", valid_619421 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -68404,62 +68431,62 @@ proc validate_GetDescribeNetworkInterfaceAttribute_619413(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619420 = header.getOrDefault("X-Amz-Signature") - valid_619420 = validateParameter(valid_619420, JString, required = false, - default = nil) - if valid_619420 != nil: - section.add "X-Amz-Signature", valid_619420 - var valid_619421 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619421 = validateParameter(valid_619421, JString, required = false, - default = nil) - if valid_619421 != nil: - section.add "X-Amz-Content-Sha256", valid_619421 - var valid_619422 = header.getOrDefault("X-Amz-Date") + var valid_619422 = header.getOrDefault("X-Amz-Signature") valid_619422 = validateParameter(valid_619422, JString, required = false, default = nil) if valid_619422 != nil: - section.add "X-Amz-Date", valid_619422 - var valid_619423 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619422 + var valid_619423 = header.getOrDefault("X-Amz-Content-Sha256") valid_619423 = validateParameter(valid_619423, JString, required = false, default = nil) if valid_619423 != nil: - section.add "X-Amz-Credential", valid_619423 - var valid_619424 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619423 + var valid_619424 = header.getOrDefault("X-Amz-Date") valid_619424 = validateParameter(valid_619424, JString, required = false, default = nil) if valid_619424 != nil: - section.add "X-Amz-Security-Token", valid_619424 - var valid_619425 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619424 + var valid_619425 = header.getOrDefault("X-Amz-Credential") valid_619425 = validateParameter(valid_619425, JString, required = false, default = nil) if valid_619425 != nil: - section.add "X-Amz-Algorithm", valid_619425 - var valid_619426 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619425 + var valid_619426 = header.getOrDefault("X-Amz-Security-Token") valid_619426 = validateParameter(valid_619426, JString, required = false, default = nil) if valid_619426 != nil: - section.add "X-Amz-SignedHeaders", valid_619426 + section.add "X-Amz-Security-Token", valid_619426 + var valid_619427 = header.getOrDefault("X-Amz-Algorithm") + valid_619427 = validateParameter(valid_619427, JString, required = false, + default = nil) + if valid_619427 != nil: + section.add "X-Amz-Algorithm", valid_619427 + var valid_619428 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619428 = validateParameter(valid_619428, JString, required = false, + default = nil) + if valid_619428 != nil: + section.add "X-Amz-SignedHeaders", valid_619428 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619427: Call_GetDescribeNetworkInterfaceAttribute_619412; +proc call*(call_619429: Call_GetDescribeNetworkInterfaceAttribute_619414; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes a network interface attribute. You can specify only one attribute at a time. ## - let valid = call_619427.validator(path, query, header, formData, body) - let scheme = call_619427.pickScheme + let valid = call_619429.validator(path, query, header, formData, body) + let scheme = call_619429.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619427.url(scheme.get, call_619427.host, call_619427.base, - call_619427.route, valid.getOrDefault("path"), + let url = call_619429.url(scheme.get, call_619429.host, call_619429.base, + call_619429.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619427, url, valid) + result = atozHook(call_619429, url, valid) -proc call*(call_619428: Call_GetDescribeNetworkInterfaceAttribute_619412; +proc call*(call_619430: Call_GetDescribeNetworkInterfaceAttribute_619414; NetworkInterfaceId: string; DryRun: bool = false; Action: string = "DescribeNetworkInterfaceAttribute"; Version: string = "2016-11-15"; Attribute: string = "description"): Recallable = @@ -68473,24 +68500,24 @@ proc call*(call_619428: Call_GetDescribeNetworkInterfaceAttribute_619412; ## Version: string (required) ## Attribute: string ## : The attribute of the network interface. This parameter is required. - var query_619429 = newJObject() - add(query_619429, "NetworkInterfaceId", newJString(NetworkInterfaceId)) - add(query_619429, "DryRun", newJBool(DryRun)) - add(query_619429, "Action", newJString(Action)) - add(query_619429, "Version", newJString(Version)) - add(query_619429, "Attribute", newJString(Attribute)) - result = call_619428.call(nil, query_619429, nil, nil, nil) - -var getDescribeNetworkInterfaceAttribute* = Call_GetDescribeNetworkInterfaceAttribute_619412( + var query_619431 = newJObject() + add(query_619431, "NetworkInterfaceId", newJString(NetworkInterfaceId)) + add(query_619431, "DryRun", newJBool(DryRun)) + add(query_619431, "Action", newJString(Action)) + add(query_619431, "Version", newJString(Version)) + add(query_619431, "Attribute", newJString(Attribute)) + result = call_619430.call(nil, query_619431, nil, nil, nil) + +var getDescribeNetworkInterfaceAttribute* = Call_GetDescribeNetworkInterfaceAttribute_619414( name: "getDescribeNetworkInterfaceAttribute", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeNetworkInterfaceAttribute", - validator: validate_GetDescribeNetworkInterfaceAttribute_619413, base: "/", - url: url_GetDescribeNetworkInterfaceAttribute_619414, + validator: validate_GetDescribeNetworkInterfaceAttribute_619415, base: "/", + url: url_GetDescribeNetworkInterfaceAttribute_619416, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeNetworkInterfacePermissions_619468 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeNetworkInterfacePermissions_619470(protocol: Scheme; + Call_PostDescribeNetworkInterfacePermissions_619470 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeNetworkInterfacePermissions_619472(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -68500,7 +68527,7 @@ proc url_PostDescribeNetworkInterfacePermissions_619470(protocol: Scheme; else: result.path = base & route -proc validate_PostDescribeNetworkInterfacePermissions_619469(path: JsonNode; +proc validate_PostDescribeNetworkInterfacePermissions_619471(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the permissions for your network interfaces. ## @@ -68512,16 +68539,16 @@ proc validate_PostDescribeNetworkInterfacePermissions_619469(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619471 = query.getOrDefault("Action") - valid_619471 = validateParameter(valid_619471, JString, required = true, default = newJString( + var valid_619473 = query.getOrDefault("Action") + valid_619473 = validateParameter(valid_619473, JString, required = true, default = newJString( "DescribeNetworkInterfacePermissions")) - if valid_619471 != nil: - section.add "Action", valid_619471 - var valid_619472 = query.getOrDefault("Version") - valid_619472 = validateParameter(valid_619472, JString, required = true, + if valid_619473 != nil: + section.add "Action", valid_619473 + var valid_619474 = query.getOrDefault("Version") + valid_619474 = validateParameter(valid_619474, JString, required = true, default = newJString("2016-11-15")) - if valid_619472 != nil: - section.add "Version", valid_619472 + if valid_619474 != nil: + section.add "Version", valid_619474 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -68532,41 +68559,41 @@ proc validate_PostDescribeNetworkInterfacePermissions_619469(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619473 = header.getOrDefault("X-Amz-Signature") - valid_619473 = validateParameter(valid_619473, JString, required = false, - default = nil) - if valid_619473 != nil: - section.add "X-Amz-Signature", valid_619473 - var valid_619474 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619474 = validateParameter(valid_619474, JString, required = false, - default = nil) - if valid_619474 != nil: - section.add "X-Amz-Content-Sha256", valid_619474 - var valid_619475 = header.getOrDefault("X-Amz-Date") + var valid_619475 = header.getOrDefault("X-Amz-Signature") valid_619475 = validateParameter(valid_619475, JString, required = false, default = nil) if valid_619475 != nil: - section.add "X-Amz-Date", valid_619475 - var valid_619476 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619475 + var valid_619476 = header.getOrDefault("X-Amz-Content-Sha256") valid_619476 = validateParameter(valid_619476, JString, required = false, default = nil) if valid_619476 != nil: - section.add "X-Amz-Credential", valid_619476 - var valid_619477 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619476 + var valid_619477 = header.getOrDefault("X-Amz-Date") valid_619477 = validateParameter(valid_619477, JString, required = false, default = nil) if valid_619477 != nil: - section.add "X-Amz-Security-Token", valid_619477 - var valid_619478 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619477 + var valid_619478 = header.getOrDefault("X-Amz-Credential") valid_619478 = validateParameter(valid_619478, JString, required = false, default = nil) if valid_619478 != nil: - section.add "X-Amz-Algorithm", valid_619478 - var valid_619479 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619478 + var valid_619479 = header.getOrDefault("X-Amz-Security-Token") valid_619479 = validateParameter(valid_619479, JString, required = false, default = nil) if valid_619479 != nil: - section.add "X-Amz-SignedHeaders", valid_619479 + section.add "X-Amz-Security-Token", valid_619479 + var valid_619480 = header.getOrDefault("X-Amz-Algorithm") + valid_619480 = validateParameter(valid_619480, JString, required = false, + default = nil) + if valid_619480 != nil: + section.add "X-Amz-Algorithm", valid_619480 + var valid_619481 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619481 = validateParameter(valid_619481, JString, required = false, + default = nil) + if valid_619481 != nil: + section.add "X-Amz-SignedHeaders", valid_619481 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -68578,44 +68605,44 @@ proc validate_PostDescribeNetworkInterfacePermissions_619469(path: JsonNode; ## Filter: JArray ## :

One or more filters.

section = newJObject() - var valid_619480 = formData.getOrDefault("NextToken") - valid_619480 = validateParameter(valid_619480, JString, required = false, - default = nil) - if valid_619480 != nil: - section.add "NextToken", valid_619480 - var valid_619481 = formData.getOrDefault("NetworkInterfacePermissionId") - valid_619481 = validateParameter(valid_619481, JArray, required = false, + var valid_619482 = formData.getOrDefault("NextToken") + valid_619482 = validateParameter(valid_619482, JString, required = false, default = nil) - if valid_619481 != nil: - section.add "NetworkInterfacePermissionId", valid_619481 - var valid_619482 = formData.getOrDefault("MaxResults") - valid_619482 = validateParameter(valid_619482, JInt, required = false, default = nil) if valid_619482 != nil: - section.add "MaxResults", valid_619482 - var valid_619483 = formData.getOrDefault("Filter") + section.add "NextToken", valid_619482 + var valid_619483 = formData.getOrDefault("NetworkInterfacePermissionId") valid_619483 = validateParameter(valid_619483, JArray, required = false, default = nil) if valid_619483 != nil: - section.add "Filter", valid_619483 + section.add "NetworkInterfacePermissionId", valid_619483 + var valid_619484 = formData.getOrDefault("MaxResults") + valid_619484 = validateParameter(valid_619484, JInt, required = false, default = nil) + if valid_619484 != nil: + section.add "MaxResults", valid_619484 + var valid_619485 = formData.getOrDefault("Filter") + valid_619485 = validateParameter(valid_619485, JArray, required = false, + default = nil) + if valid_619485 != nil: + section.add "Filter", valid_619485 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619484: Call_PostDescribeNetworkInterfacePermissions_619468; +proc call*(call_619486: Call_PostDescribeNetworkInterfacePermissions_619470; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the permissions for your network interfaces. ## - let valid = call_619484.validator(path, query, header, formData, body) - let scheme = call_619484.pickScheme + let valid = call_619486.validator(path, query, header, formData, body) + let scheme = call_619486.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619484.url(scheme.get, call_619484.host, call_619484.base, - call_619484.route, valid.getOrDefault("path"), + let url = call_619486.url(scheme.get, call_619486.host, call_619486.base, + call_619486.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619484, url, valid) + result = atozHook(call_619486, url, valid) -proc call*(call_619485: Call_PostDescribeNetworkInterfacePermissions_619468; +proc call*(call_619487: Call_PostDescribeNetworkInterfacePermissions_619470; NextToken: string = ""; Action: string = "DescribeNetworkInterfacePermissions"; NetworkInterfacePermissionId: JsonNode = nil; @@ -68632,29 +68659,29 @@ proc call*(call_619485: Call_PostDescribeNetworkInterfacePermissions_619468; ## : The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value. If this parameter is not specified, up to 50 results are returned by default. ## Filter: JArray ## :

One or more filters.

- var query_619486 = newJObject() - var formData_619487 = newJObject() - add(formData_619487, "NextToken", newJString(NextToken)) - add(query_619486, "Action", newJString(Action)) + var query_619488 = newJObject() + var formData_619489 = newJObject() + add(formData_619489, "NextToken", newJString(NextToken)) + add(query_619488, "Action", newJString(Action)) if NetworkInterfacePermissionId != nil: - formData_619487.add "NetworkInterfacePermissionId", + formData_619489.add "NetworkInterfacePermissionId", NetworkInterfacePermissionId - add(query_619486, "Version", newJString(Version)) - add(formData_619487, "MaxResults", newJInt(MaxResults)) + add(query_619488, "Version", newJString(Version)) + add(formData_619489, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_619487.add "Filter", Filter - result = call_619485.call(nil, query_619486, nil, formData_619487, nil) + formData_619489.add "Filter", Filter + result = call_619487.call(nil, query_619488, nil, formData_619489, nil) -var postDescribeNetworkInterfacePermissions* = Call_PostDescribeNetworkInterfacePermissions_619468( +var postDescribeNetworkInterfacePermissions* = Call_PostDescribeNetworkInterfacePermissions_619470( name: "postDescribeNetworkInterfacePermissions", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeNetworkInterfacePermissions", - validator: validate_PostDescribeNetworkInterfacePermissions_619469, base: "/", - url: url_PostDescribeNetworkInterfacePermissions_619470, + validator: validate_PostDescribeNetworkInterfacePermissions_619471, base: "/", + url: url_PostDescribeNetworkInterfacePermissions_619472, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeNetworkInterfacePermissions_619449 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeNetworkInterfacePermissions_619451(protocol: Scheme; + Call_GetDescribeNetworkInterfacePermissions_619451 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeNetworkInterfacePermissions_619453(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -68664,7 +68691,7 @@ proc url_GetDescribeNetworkInterfacePermissions_619451(protocol: Scheme; else: result.path = base & route -proc validate_GetDescribeNetworkInterfacePermissions_619450(path: JsonNode; +proc validate_GetDescribeNetworkInterfacePermissions_619452(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the permissions for your network interfaces. ## @@ -68684,35 +68711,35 @@ proc validate_GetDescribeNetworkInterfacePermissions_619450(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619452 = query.getOrDefault("MaxResults") - valid_619452 = validateParameter(valid_619452, JInt, required = false, default = nil) - if valid_619452 != nil: - section.add "MaxResults", valid_619452 - var valid_619453 = query.getOrDefault("NetworkInterfacePermissionId") - valid_619453 = validateParameter(valid_619453, JArray, required = false, - default = nil) - if valid_619453 != nil: - section.add "NetworkInterfacePermissionId", valid_619453 - var valid_619454 = query.getOrDefault("NextToken") - valid_619454 = validateParameter(valid_619454, JString, required = false, - default = nil) + var valid_619454 = query.getOrDefault("MaxResults") + valid_619454 = validateParameter(valid_619454, JInt, required = false, default = nil) if valid_619454 != nil: - section.add "NextToken", valid_619454 - var valid_619455 = query.getOrDefault("Filter") + section.add "MaxResults", valid_619454 + var valid_619455 = query.getOrDefault("NetworkInterfacePermissionId") valid_619455 = validateParameter(valid_619455, JArray, required = false, default = nil) if valid_619455 != nil: - section.add "Filter", valid_619455 - var valid_619456 = query.getOrDefault("Action") - valid_619456 = validateParameter(valid_619456, JString, required = true, default = newJString( - "DescribeNetworkInterfacePermissions")) + section.add "NetworkInterfacePermissionId", valid_619455 + var valid_619456 = query.getOrDefault("NextToken") + valid_619456 = validateParameter(valid_619456, JString, required = false, + default = nil) if valid_619456 != nil: - section.add "Action", valid_619456 - var valid_619457 = query.getOrDefault("Version") - valid_619457 = validateParameter(valid_619457, JString, required = true, - default = newJString("2016-11-15")) + section.add "NextToken", valid_619456 + var valid_619457 = query.getOrDefault("Filter") + valid_619457 = validateParameter(valid_619457, JArray, required = false, + default = nil) if valid_619457 != nil: - section.add "Version", valid_619457 + section.add "Filter", valid_619457 + var valid_619458 = query.getOrDefault("Action") + valid_619458 = validateParameter(valid_619458, JString, required = true, default = newJString( + "DescribeNetworkInterfacePermissions")) + if valid_619458 != nil: + section.add "Action", valid_619458 + var valid_619459 = query.getOrDefault("Version") + valid_619459 = validateParameter(valid_619459, JString, required = true, + default = newJString("2016-11-15")) + if valid_619459 != nil: + section.add "Version", valid_619459 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -68723,62 +68750,62 @@ proc validate_GetDescribeNetworkInterfacePermissions_619450(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619458 = header.getOrDefault("X-Amz-Signature") - valid_619458 = validateParameter(valid_619458, JString, required = false, - default = nil) - if valid_619458 != nil: - section.add "X-Amz-Signature", valid_619458 - var valid_619459 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619459 = validateParameter(valid_619459, JString, required = false, - default = nil) - if valid_619459 != nil: - section.add "X-Amz-Content-Sha256", valid_619459 - var valid_619460 = header.getOrDefault("X-Amz-Date") + var valid_619460 = header.getOrDefault("X-Amz-Signature") valid_619460 = validateParameter(valid_619460, JString, required = false, default = nil) if valid_619460 != nil: - section.add "X-Amz-Date", valid_619460 - var valid_619461 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619460 + var valid_619461 = header.getOrDefault("X-Amz-Content-Sha256") valid_619461 = validateParameter(valid_619461, JString, required = false, default = nil) if valid_619461 != nil: - section.add "X-Amz-Credential", valid_619461 - var valid_619462 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619461 + var valid_619462 = header.getOrDefault("X-Amz-Date") valid_619462 = validateParameter(valid_619462, JString, required = false, default = nil) if valid_619462 != nil: - section.add "X-Amz-Security-Token", valid_619462 - var valid_619463 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619462 + var valid_619463 = header.getOrDefault("X-Amz-Credential") valid_619463 = validateParameter(valid_619463, JString, required = false, default = nil) if valid_619463 != nil: - section.add "X-Amz-Algorithm", valid_619463 - var valid_619464 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619463 + var valid_619464 = header.getOrDefault("X-Amz-Security-Token") valid_619464 = validateParameter(valid_619464, JString, required = false, default = nil) if valid_619464 != nil: - section.add "X-Amz-SignedHeaders", valid_619464 + section.add "X-Amz-Security-Token", valid_619464 + var valid_619465 = header.getOrDefault("X-Amz-Algorithm") + valid_619465 = validateParameter(valid_619465, JString, required = false, + default = nil) + if valid_619465 != nil: + section.add "X-Amz-Algorithm", valid_619465 + var valid_619466 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619466 = validateParameter(valid_619466, JString, required = false, + default = nil) + if valid_619466 != nil: + section.add "X-Amz-SignedHeaders", valid_619466 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619465: Call_GetDescribeNetworkInterfacePermissions_619449; +proc call*(call_619467: Call_GetDescribeNetworkInterfacePermissions_619451; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the permissions for your network interfaces. ## - let valid = call_619465.validator(path, query, header, formData, body) - let scheme = call_619465.pickScheme + let valid = call_619467.validator(path, query, header, formData, body) + let scheme = call_619467.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619465.url(scheme.get, call_619465.host, call_619465.base, - call_619465.route, valid.getOrDefault("path"), + let url = call_619467.url(scheme.get, call_619467.host, call_619467.base, + call_619467.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619465, url, valid) + result = atozHook(call_619467, url, valid) -proc call*(call_619466: Call_GetDescribeNetworkInterfacePermissions_619449; +proc call*(call_619468: Call_GetDescribeNetworkInterfacePermissions_619451; MaxResults: int = 0; NetworkInterfacePermissionId: JsonNode = nil; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeNetworkInterfacePermissions"; @@ -68795,27 +68822,27 @@ proc call*(call_619466: Call_GetDescribeNetworkInterfacePermissions_619449; ## :

One or more filters.

## Action: string (required) ## Version: string (required) - var query_619467 = newJObject() - add(query_619467, "MaxResults", newJInt(MaxResults)) + var query_619469 = newJObject() + add(query_619469, "MaxResults", newJInt(MaxResults)) if NetworkInterfacePermissionId != nil: - query_619467.add "NetworkInterfacePermissionId", NetworkInterfacePermissionId - add(query_619467, "NextToken", newJString(NextToken)) + query_619469.add "NetworkInterfacePermissionId", NetworkInterfacePermissionId + add(query_619469, "NextToken", newJString(NextToken)) if Filter != nil: - query_619467.add "Filter", Filter - add(query_619467, "Action", newJString(Action)) - add(query_619467, "Version", newJString(Version)) - result = call_619466.call(nil, query_619467, nil, nil, nil) + query_619469.add "Filter", Filter + add(query_619469, "Action", newJString(Action)) + add(query_619469, "Version", newJString(Version)) + result = call_619468.call(nil, query_619469, nil, nil, nil) -var getDescribeNetworkInterfacePermissions* = Call_GetDescribeNetworkInterfacePermissions_619449( +var getDescribeNetworkInterfacePermissions* = Call_GetDescribeNetworkInterfacePermissions_619451( name: "getDescribeNetworkInterfacePermissions", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeNetworkInterfacePermissions", - validator: validate_GetDescribeNetworkInterfacePermissions_619450, base: "/", - url: url_GetDescribeNetworkInterfacePermissions_619451, + validator: validate_GetDescribeNetworkInterfacePermissions_619452, base: "/", + url: url_GetDescribeNetworkInterfacePermissions_619453, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeNetworkInterfaces_619508 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeNetworkInterfaces_619510(protocol: Scheme; host: string; + Call_PostDescribeNetworkInterfaces_619510 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeNetworkInterfaces_619512(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -68825,7 +68852,7 @@ proc url_PostDescribeNetworkInterfaces_619510(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeNetworkInterfaces_619509(path: JsonNode; query: JsonNode; +proc validate_PostDescribeNetworkInterfaces_619511(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more of your network interfaces. ## @@ -68837,16 +68864,16 @@ proc validate_PostDescribeNetworkInterfaces_619509(path: JsonNode; query: JsonNo ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619511 = query.getOrDefault("Action") - valid_619511 = validateParameter(valid_619511, JString, required = true, default = newJString( + var valid_619513 = query.getOrDefault("Action") + valid_619513 = validateParameter(valid_619513, JString, required = true, default = newJString( "DescribeNetworkInterfaces")) - if valid_619511 != nil: - section.add "Action", valid_619511 - var valid_619512 = query.getOrDefault("Version") - valid_619512 = validateParameter(valid_619512, JString, required = true, + if valid_619513 != nil: + section.add "Action", valid_619513 + var valid_619514 = query.getOrDefault("Version") + valid_619514 = validateParameter(valid_619514, JString, required = true, default = newJString("2016-11-15")) - if valid_619512 != nil: - section.add "Version", valid_619512 + if valid_619514 != nil: + section.add "Version", valid_619514 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -68857,41 +68884,41 @@ proc validate_PostDescribeNetworkInterfaces_619509(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619513 = header.getOrDefault("X-Amz-Signature") - valid_619513 = validateParameter(valid_619513, JString, required = false, - default = nil) - if valid_619513 != nil: - section.add "X-Amz-Signature", valid_619513 - var valid_619514 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619514 = validateParameter(valid_619514, JString, required = false, - default = nil) - if valid_619514 != nil: - section.add "X-Amz-Content-Sha256", valid_619514 - var valid_619515 = header.getOrDefault("X-Amz-Date") + var valid_619515 = header.getOrDefault("X-Amz-Signature") valid_619515 = validateParameter(valid_619515, JString, required = false, default = nil) if valid_619515 != nil: - section.add "X-Amz-Date", valid_619515 - var valid_619516 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619515 + var valid_619516 = header.getOrDefault("X-Amz-Content-Sha256") valid_619516 = validateParameter(valid_619516, JString, required = false, default = nil) if valid_619516 != nil: - section.add "X-Amz-Credential", valid_619516 - var valid_619517 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619516 + var valid_619517 = header.getOrDefault("X-Amz-Date") valid_619517 = validateParameter(valid_619517, JString, required = false, default = nil) if valid_619517 != nil: - section.add "X-Amz-Security-Token", valid_619517 - var valid_619518 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619517 + var valid_619518 = header.getOrDefault("X-Amz-Credential") valid_619518 = validateParameter(valid_619518, JString, required = false, default = nil) if valid_619518 != nil: - section.add "X-Amz-Algorithm", valid_619518 - var valid_619519 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619518 + var valid_619519 = header.getOrDefault("X-Amz-Security-Token") valid_619519 = validateParameter(valid_619519, JString, required = false, default = nil) if valid_619519 != nil: - section.add "X-Amz-SignedHeaders", valid_619519 + section.add "X-Amz-Security-Token", valid_619519 + var valid_619520 = header.getOrDefault("X-Amz-Algorithm") + valid_619520 = validateParameter(valid_619520, JString, required = false, + default = nil) + if valid_619520 != nil: + section.add "X-Amz-Algorithm", valid_619520 + var valid_619521 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619521 = validateParameter(valid_619521, JString, required = false, + default = nil) + if valid_619521 != nil: + section.add "X-Amz-SignedHeaders", valid_619521 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -68905,47 +68932,47 @@ proc validate_PostDescribeNetworkInterfaces_619509(path: JsonNode; query: JsonNo ## Filter: JArray ## :

One or more filters.

section = newJObject() - var valid_619520 = formData.getOrDefault("NextToken") - valid_619520 = validateParameter(valid_619520, JString, required = false, - default = nil) - if valid_619520 != nil: - section.add "NextToken", valid_619520 - var valid_619521 = formData.getOrDefault("NetworkInterfaceId") - valid_619521 = validateParameter(valid_619521, JArray, required = false, + var valid_619522 = formData.getOrDefault("NextToken") + valid_619522 = validateParameter(valid_619522, JString, required = false, default = nil) - if valid_619521 != nil: - section.add "NetworkInterfaceId", valid_619521 - var valid_619522 = formData.getOrDefault("DryRun") - valid_619522 = validateParameter(valid_619522, JBool, required = false, default = nil) if valid_619522 != nil: - section.add "DryRun", valid_619522 - var valid_619523 = formData.getOrDefault("MaxResults") - valid_619523 = validateParameter(valid_619523, JInt, required = false, default = nil) - if valid_619523 != nil: - section.add "MaxResults", valid_619523 - var valid_619524 = formData.getOrDefault("Filter") - valid_619524 = validateParameter(valid_619524, JArray, required = false, + section.add "NextToken", valid_619522 + var valid_619523 = formData.getOrDefault("NetworkInterfaceId") + valid_619523 = validateParameter(valid_619523, JArray, required = false, default = nil) + if valid_619523 != nil: + section.add "NetworkInterfaceId", valid_619523 + var valid_619524 = formData.getOrDefault("DryRun") + valid_619524 = validateParameter(valid_619524, JBool, required = false, default = nil) if valid_619524 != nil: - section.add "Filter", valid_619524 + section.add "DryRun", valid_619524 + var valid_619525 = formData.getOrDefault("MaxResults") + valid_619525 = validateParameter(valid_619525, JInt, required = false, default = nil) + if valid_619525 != nil: + section.add "MaxResults", valid_619525 + var valid_619526 = formData.getOrDefault("Filter") + valid_619526 = validateParameter(valid_619526, JArray, required = false, + default = nil) + if valid_619526 != nil: + section.add "Filter", valid_619526 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619525: Call_PostDescribeNetworkInterfaces_619508; path: JsonNode; +proc call*(call_619527: Call_PostDescribeNetworkInterfaces_619510; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more of your network interfaces. ## - let valid = call_619525.validator(path, query, header, formData, body) - let scheme = call_619525.pickScheme + let valid = call_619527.validator(path, query, header, formData, body) + let scheme = call_619527.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619525.url(scheme.get, call_619525.host, call_619525.base, - call_619525.route, valid.getOrDefault("path"), + let url = call_619527.url(scheme.get, call_619527.host, call_619527.base, + call_619527.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619525, url, valid) + result = atozHook(call_619527, url, valid) -proc call*(call_619526: Call_PostDescribeNetworkInterfaces_619508; +proc call*(call_619528: Call_PostDescribeNetworkInterfaces_619510; NextToken: string = ""; NetworkInterfaceId: JsonNode = nil; DryRun: bool = false; Action: string = "DescribeNetworkInterfaces"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -68963,28 +68990,28 @@ proc call*(call_619526: Call_PostDescribeNetworkInterfaces_619508; ## : The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results. You cannot specify this parameter and the network interface IDs parameter in the same request. ## Filter: JArray ## :

One or more filters.

- var query_619527 = newJObject() - var formData_619528 = newJObject() - add(formData_619528, "NextToken", newJString(NextToken)) + var query_619529 = newJObject() + var formData_619530 = newJObject() + add(formData_619530, "NextToken", newJString(NextToken)) if NetworkInterfaceId != nil: - formData_619528.add "NetworkInterfaceId", NetworkInterfaceId - add(formData_619528, "DryRun", newJBool(DryRun)) - add(query_619527, "Action", newJString(Action)) - add(query_619527, "Version", newJString(Version)) - add(formData_619528, "MaxResults", newJInt(MaxResults)) + formData_619530.add "NetworkInterfaceId", NetworkInterfaceId + add(formData_619530, "DryRun", newJBool(DryRun)) + add(query_619529, "Action", newJString(Action)) + add(query_619529, "Version", newJString(Version)) + add(formData_619530, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_619528.add "Filter", Filter - result = call_619526.call(nil, query_619527, nil, formData_619528, nil) + formData_619530.add "Filter", Filter + result = call_619528.call(nil, query_619529, nil, formData_619530, nil) -var postDescribeNetworkInterfaces* = Call_PostDescribeNetworkInterfaces_619508( +var postDescribeNetworkInterfaces* = Call_PostDescribeNetworkInterfaces_619510( name: "postDescribeNetworkInterfaces", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeNetworkInterfaces", - validator: validate_PostDescribeNetworkInterfaces_619509, base: "/", - url: url_PostDescribeNetworkInterfaces_619510, + validator: validate_PostDescribeNetworkInterfaces_619511, base: "/", + url: url_PostDescribeNetworkInterfaces_619512, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeNetworkInterfaces_619488 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeNetworkInterfaces_619490(protocol: Scheme; host: string; + Call_GetDescribeNetworkInterfaces_619490 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeNetworkInterfaces_619492(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -68994,7 +69021,7 @@ proc url_GetDescribeNetworkInterfaces_619490(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeNetworkInterfaces_619489(path: JsonNode; query: JsonNode; +proc validate_GetDescribeNetworkInterfaces_619491(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more of your network interfaces. ## @@ -69016,39 +69043,39 @@ proc validate_GetDescribeNetworkInterfaces_619489(path: JsonNode; query: JsonNod ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619491 = query.getOrDefault("MaxResults") - valid_619491 = validateParameter(valid_619491, JInt, required = false, default = nil) - if valid_619491 != nil: - section.add "MaxResults", valid_619491 - var valid_619492 = query.getOrDefault("NetworkInterfaceId") - valid_619492 = validateParameter(valid_619492, JArray, required = false, - default = nil) - if valid_619492 != nil: - section.add "NetworkInterfaceId", valid_619492 - var valid_619493 = query.getOrDefault("DryRun") - valid_619493 = validateParameter(valid_619493, JBool, required = false, default = nil) + var valid_619493 = query.getOrDefault("MaxResults") + valid_619493 = validateParameter(valid_619493, JInt, required = false, default = nil) if valid_619493 != nil: - section.add "DryRun", valid_619493 - var valid_619494 = query.getOrDefault("NextToken") - valid_619494 = validateParameter(valid_619494, JString, required = false, + section.add "MaxResults", valid_619493 + var valid_619494 = query.getOrDefault("NetworkInterfaceId") + valid_619494 = validateParameter(valid_619494, JArray, required = false, default = nil) if valid_619494 != nil: - section.add "NextToken", valid_619494 - var valid_619495 = query.getOrDefault("Filter") - valid_619495 = validateParameter(valid_619495, JArray, required = false, - default = nil) + section.add "NetworkInterfaceId", valid_619494 + var valid_619495 = query.getOrDefault("DryRun") + valid_619495 = validateParameter(valid_619495, JBool, required = false, default = nil) if valid_619495 != nil: - section.add "Filter", valid_619495 - var valid_619496 = query.getOrDefault("Action") - valid_619496 = validateParameter(valid_619496, JString, required = true, default = newJString( - "DescribeNetworkInterfaces")) + section.add "DryRun", valid_619495 + var valid_619496 = query.getOrDefault("NextToken") + valid_619496 = validateParameter(valid_619496, JString, required = false, + default = nil) if valid_619496 != nil: - section.add "Action", valid_619496 - var valid_619497 = query.getOrDefault("Version") - valid_619497 = validateParameter(valid_619497, JString, required = true, - default = newJString("2016-11-15")) + section.add "NextToken", valid_619496 + var valid_619497 = query.getOrDefault("Filter") + valid_619497 = validateParameter(valid_619497, JArray, required = false, + default = nil) if valid_619497 != nil: - section.add "Version", valid_619497 + section.add "Filter", valid_619497 + var valid_619498 = query.getOrDefault("Action") + valid_619498 = validateParameter(valid_619498, JString, required = true, default = newJString( + "DescribeNetworkInterfaces")) + if valid_619498 != nil: + section.add "Action", valid_619498 + var valid_619499 = query.getOrDefault("Version") + valid_619499 = validateParameter(valid_619499, JString, required = true, + default = newJString("2016-11-15")) + if valid_619499 != nil: + section.add "Version", valid_619499 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -69059,61 +69086,61 @@ proc validate_GetDescribeNetworkInterfaces_619489(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619498 = header.getOrDefault("X-Amz-Signature") - valid_619498 = validateParameter(valid_619498, JString, required = false, - default = nil) - if valid_619498 != nil: - section.add "X-Amz-Signature", valid_619498 - var valid_619499 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619499 = validateParameter(valid_619499, JString, required = false, - default = nil) - if valid_619499 != nil: - section.add "X-Amz-Content-Sha256", valid_619499 - var valid_619500 = header.getOrDefault("X-Amz-Date") + var valid_619500 = header.getOrDefault("X-Amz-Signature") valid_619500 = validateParameter(valid_619500, JString, required = false, default = nil) if valid_619500 != nil: - section.add "X-Amz-Date", valid_619500 - var valid_619501 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619500 + var valid_619501 = header.getOrDefault("X-Amz-Content-Sha256") valid_619501 = validateParameter(valid_619501, JString, required = false, default = nil) if valid_619501 != nil: - section.add "X-Amz-Credential", valid_619501 - var valid_619502 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619501 + var valid_619502 = header.getOrDefault("X-Amz-Date") valid_619502 = validateParameter(valid_619502, JString, required = false, default = nil) if valid_619502 != nil: - section.add "X-Amz-Security-Token", valid_619502 - var valid_619503 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619502 + var valid_619503 = header.getOrDefault("X-Amz-Credential") valid_619503 = validateParameter(valid_619503, JString, required = false, default = nil) if valid_619503 != nil: - section.add "X-Amz-Algorithm", valid_619503 - var valid_619504 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619503 + var valid_619504 = header.getOrDefault("X-Amz-Security-Token") valid_619504 = validateParameter(valid_619504, JString, required = false, default = nil) if valid_619504 != nil: - section.add "X-Amz-SignedHeaders", valid_619504 + section.add "X-Amz-Security-Token", valid_619504 + var valid_619505 = header.getOrDefault("X-Amz-Algorithm") + valid_619505 = validateParameter(valid_619505, JString, required = false, + default = nil) + if valid_619505 != nil: + section.add "X-Amz-Algorithm", valid_619505 + var valid_619506 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619506 = validateParameter(valid_619506, JString, required = false, + default = nil) + if valid_619506 != nil: + section.add "X-Amz-SignedHeaders", valid_619506 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619505: Call_GetDescribeNetworkInterfaces_619488; path: JsonNode; +proc call*(call_619507: Call_GetDescribeNetworkInterfaces_619490; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more of your network interfaces. ## - let valid = call_619505.validator(path, query, header, formData, body) - let scheme = call_619505.pickScheme + let valid = call_619507.validator(path, query, header, formData, body) + let scheme = call_619507.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619505.url(scheme.get, call_619505.host, call_619505.base, - call_619505.route, valid.getOrDefault("path"), + let url = call_619507.url(scheme.get, call_619507.host, call_619507.base, + call_619507.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619505, url, valid) + result = atozHook(call_619507, url, valid) -proc call*(call_619506: Call_GetDescribeNetworkInterfaces_619488; +proc call*(call_619508: Call_GetDescribeNetworkInterfaces_619490; MaxResults: int = 0; NetworkInterfaceId: JsonNode = nil; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeNetworkInterfaces"; @@ -69132,27 +69159,27 @@ proc call*(call_619506: Call_GetDescribeNetworkInterfaces_619488; ## :

One or more filters.

## Action: string (required) ## Version: string (required) - var query_619507 = newJObject() - add(query_619507, "MaxResults", newJInt(MaxResults)) + var query_619509 = newJObject() + add(query_619509, "MaxResults", newJInt(MaxResults)) if NetworkInterfaceId != nil: - query_619507.add "NetworkInterfaceId", NetworkInterfaceId - add(query_619507, "DryRun", newJBool(DryRun)) - add(query_619507, "NextToken", newJString(NextToken)) + query_619509.add "NetworkInterfaceId", NetworkInterfaceId + add(query_619509, "DryRun", newJBool(DryRun)) + add(query_619509, "NextToken", newJString(NextToken)) if Filter != nil: - query_619507.add "Filter", Filter - add(query_619507, "Action", newJString(Action)) - add(query_619507, "Version", newJString(Version)) - result = call_619506.call(nil, query_619507, nil, nil, nil) + query_619509.add "Filter", Filter + add(query_619509, "Action", newJString(Action)) + add(query_619509, "Version", newJString(Version)) + result = call_619508.call(nil, query_619509, nil, nil, nil) -var getDescribeNetworkInterfaces* = Call_GetDescribeNetworkInterfaces_619488( +var getDescribeNetworkInterfaces* = Call_GetDescribeNetworkInterfaces_619490( name: "getDescribeNetworkInterfaces", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeNetworkInterfaces", - validator: validate_GetDescribeNetworkInterfaces_619489, base: "/", - url: url_GetDescribeNetworkInterfaces_619490, + validator: validate_GetDescribeNetworkInterfaces_619491, base: "/", + url: url_GetDescribeNetworkInterfaces_619492, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribePlacementGroups_619548 = ref object of OpenApiRestCall_610658 -proc url_PostDescribePlacementGroups_619550(protocol: Scheme; host: string; + Call_PostDescribePlacementGroups_619550 = ref object of OpenApiRestCall_610658 +proc url_PostDescribePlacementGroups_619552(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -69162,7 +69189,7 @@ proc url_PostDescribePlacementGroups_619550(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribePlacementGroups_619549(path: JsonNode; query: JsonNode; +proc validate_PostDescribePlacementGroups_619551(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the specified placement groups or all of your placement groups. For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide. ## @@ -69174,16 +69201,16 @@ proc validate_PostDescribePlacementGroups_619549(path: JsonNode; query: JsonNode ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619551 = query.getOrDefault("Action") - valid_619551 = validateParameter(valid_619551, JString, required = true, default = newJString( + var valid_619553 = query.getOrDefault("Action") + valid_619553 = validateParameter(valid_619553, JString, required = true, default = newJString( "DescribePlacementGroups")) - if valid_619551 != nil: - section.add "Action", valid_619551 - var valid_619552 = query.getOrDefault("Version") - valid_619552 = validateParameter(valid_619552, JString, required = true, + if valid_619553 != nil: + section.add "Action", valid_619553 + var valid_619554 = query.getOrDefault("Version") + valid_619554 = validateParameter(valid_619554, JString, required = true, default = newJString("2016-11-15")) - if valid_619552 != nil: - section.add "Version", valid_619552 + if valid_619554 != nil: + section.add "Version", valid_619554 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -69194,41 +69221,41 @@ proc validate_PostDescribePlacementGroups_619549(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619553 = header.getOrDefault("X-Amz-Signature") - valid_619553 = validateParameter(valid_619553, JString, required = false, - default = nil) - if valid_619553 != nil: - section.add "X-Amz-Signature", valid_619553 - var valid_619554 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619554 = validateParameter(valid_619554, JString, required = false, - default = nil) - if valid_619554 != nil: - section.add "X-Amz-Content-Sha256", valid_619554 - var valid_619555 = header.getOrDefault("X-Amz-Date") + var valid_619555 = header.getOrDefault("X-Amz-Signature") valid_619555 = validateParameter(valid_619555, JString, required = false, default = nil) if valid_619555 != nil: - section.add "X-Amz-Date", valid_619555 - var valid_619556 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619555 + var valid_619556 = header.getOrDefault("X-Amz-Content-Sha256") valid_619556 = validateParameter(valid_619556, JString, required = false, default = nil) if valid_619556 != nil: - section.add "X-Amz-Credential", valid_619556 - var valid_619557 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619556 + var valid_619557 = header.getOrDefault("X-Amz-Date") valid_619557 = validateParameter(valid_619557, JString, required = false, default = nil) if valid_619557 != nil: - section.add "X-Amz-Security-Token", valid_619557 - var valid_619558 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619557 + var valid_619558 = header.getOrDefault("X-Amz-Credential") valid_619558 = validateParameter(valid_619558, JString, required = false, default = nil) if valid_619558 != nil: - section.add "X-Amz-Algorithm", valid_619558 - var valid_619559 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619558 + var valid_619559 = header.getOrDefault("X-Amz-Security-Token") valid_619559 = validateParameter(valid_619559, JString, required = false, default = nil) if valid_619559 != nil: - section.add "X-Amz-SignedHeaders", valid_619559 + section.add "X-Amz-Security-Token", valid_619559 + var valid_619560 = header.getOrDefault("X-Amz-Algorithm") + valid_619560 = validateParameter(valid_619560, JString, required = false, + default = nil) + if valid_619560 != nil: + section.add "X-Amz-Algorithm", valid_619560 + var valid_619561 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619561 = validateParameter(valid_619561, JString, required = false, + default = nil) + if valid_619561 != nil: + section.add "X-Amz-SignedHeaders", valid_619561 result.add "header", section ## parameters in `formData` object: ## GroupId: JArray @@ -69240,43 +69267,43 @@ proc validate_PostDescribePlacementGroups_619549(path: JsonNode; query: JsonNode ## Filter: JArray ## :

The filters.

section = newJObject() - var valid_619560 = formData.getOrDefault("GroupId") - valid_619560 = validateParameter(valid_619560, JArray, required = false, - default = nil) - if valid_619560 != nil: - section.add "GroupId", valid_619560 - var valid_619561 = formData.getOrDefault("GroupName") - valid_619561 = validateParameter(valid_619561, JArray, required = false, + var valid_619562 = formData.getOrDefault("GroupId") + valid_619562 = validateParameter(valid_619562, JArray, required = false, default = nil) - if valid_619561 != nil: - section.add "GroupName", valid_619561 - var valid_619562 = formData.getOrDefault("DryRun") - valid_619562 = validateParameter(valid_619562, JBool, required = false, default = nil) if valid_619562 != nil: - section.add "DryRun", valid_619562 - var valid_619563 = formData.getOrDefault("Filter") + section.add "GroupId", valid_619562 + var valid_619563 = formData.getOrDefault("GroupName") valid_619563 = validateParameter(valid_619563, JArray, required = false, default = nil) if valid_619563 != nil: - section.add "Filter", valid_619563 + section.add "GroupName", valid_619563 + var valid_619564 = formData.getOrDefault("DryRun") + valid_619564 = validateParameter(valid_619564, JBool, required = false, default = nil) + if valid_619564 != nil: + section.add "DryRun", valid_619564 + var valid_619565 = formData.getOrDefault("Filter") + valid_619565 = validateParameter(valid_619565, JArray, required = false, + default = nil) + if valid_619565 != nil: + section.add "Filter", valid_619565 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619564: Call_PostDescribePlacementGroups_619548; path: JsonNode; +proc call*(call_619566: Call_PostDescribePlacementGroups_619550; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the specified placement groups or all of your placement groups. For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide. ## - let valid = call_619564.validator(path, query, header, formData, body) - let scheme = call_619564.pickScheme + let valid = call_619566.validator(path, query, header, formData, body) + let scheme = call_619566.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619564.url(scheme.get, call_619564.host, call_619564.base, - call_619564.route, valid.getOrDefault("path"), + let url = call_619566.url(scheme.get, call_619566.host, call_619566.base, + call_619566.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619564, url, valid) + result = atozHook(call_619566, url, valid) -proc call*(call_619565: Call_PostDescribePlacementGroups_619548; +proc call*(call_619567: Call_PostDescribePlacementGroups_619550; GroupId: JsonNode = nil; GroupName: JsonNode = nil; DryRun: bool = false; Action: string = "DescribePlacementGroups"; Version: string = "2016-11-15"; Filter: JsonNode = nil): Recallable = @@ -69292,28 +69319,28 @@ proc call*(call_619565: Call_PostDescribePlacementGroups_619548; ## Version: string (required) ## Filter: JArray ## :

The filters.

- var query_619566 = newJObject() - var formData_619567 = newJObject() + var query_619568 = newJObject() + var formData_619569 = newJObject() if GroupId != nil: - formData_619567.add "GroupId", GroupId + formData_619569.add "GroupId", GroupId if GroupName != nil: - formData_619567.add "GroupName", GroupName - add(formData_619567, "DryRun", newJBool(DryRun)) - add(query_619566, "Action", newJString(Action)) - add(query_619566, "Version", newJString(Version)) + formData_619569.add "GroupName", GroupName + add(formData_619569, "DryRun", newJBool(DryRun)) + add(query_619568, "Action", newJString(Action)) + add(query_619568, "Version", newJString(Version)) if Filter != nil: - formData_619567.add "Filter", Filter - result = call_619565.call(nil, query_619566, nil, formData_619567, nil) + formData_619569.add "Filter", Filter + result = call_619567.call(nil, query_619568, nil, formData_619569, nil) -var postDescribePlacementGroups* = Call_PostDescribePlacementGroups_619548( +var postDescribePlacementGroups* = Call_PostDescribePlacementGroups_619550( name: "postDescribePlacementGroups", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribePlacementGroups", - validator: validate_PostDescribePlacementGroups_619549, base: "/", - url: url_PostDescribePlacementGroups_619550, + validator: validate_PostDescribePlacementGroups_619551, base: "/", + url: url_PostDescribePlacementGroups_619552, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribePlacementGroups_619529 = ref object of OpenApiRestCall_610658 -proc url_GetDescribePlacementGroups_619531(protocol: Scheme; host: string; + Call_GetDescribePlacementGroups_619531 = ref object of OpenApiRestCall_610658 +proc url_GetDescribePlacementGroups_619533(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -69323,7 +69350,7 @@ proc url_GetDescribePlacementGroups_619531(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribePlacementGroups_619530(path: JsonNode; query: JsonNode; +proc validate_GetDescribePlacementGroups_619532(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the specified placement groups or all of your placement groups. For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide. ## @@ -69343,35 +69370,35 @@ proc validate_GetDescribePlacementGroups_619530(path: JsonNode; query: JsonNode; ## : The IDs of the placement groups. ## Version: JString (required) section = newJObject() - var valid_619532 = query.getOrDefault("GroupName") - valid_619532 = validateParameter(valid_619532, JArray, required = false, - default = nil) - if valid_619532 != nil: - section.add "GroupName", valid_619532 - var valid_619533 = query.getOrDefault("DryRun") - valid_619533 = validateParameter(valid_619533, JBool, required = false, default = nil) - if valid_619533 != nil: - section.add "DryRun", valid_619533 - var valid_619534 = query.getOrDefault("Filter") + var valid_619534 = query.getOrDefault("GroupName") valid_619534 = validateParameter(valid_619534, JArray, required = false, default = nil) if valid_619534 != nil: - section.add "Filter", valid_619534 - var valid_619535 = query.getOrDefault("Action") - valid_619535 = validateParameter(valid_619535, JString, required = true, default = newJString( - "DescribePlacementGroups")) + section.add "GroupName", valid_619534 + var valid_619535 = query.getOrDefault("DryRun") + valid_619535 = validateParameter(valid_619535, JBool, required = false, default = nil) if valid_619535 != nil: - section.add "Action", valid_619535 - var valid_619536 = query.getOrDefault("GroupId") + section.add "DryRun", valid_619535 + var valid_619536 = query.getOrDefault("Filter") valid_619536 = validateParameter(valid_619536, JArray, required = false, default = nil) if valid_619536 != nil: - section.add "GroupId", valid_619536 - var valid_619537 = query.getOrDefault("Version") - valid_619537 = validateParameter(valid_619537, JString, required = true, - default = newJString("2016-11-15")) + section.add "Filter", valid_619536 + var valid_619537 = query.getOrDefault("Action") + valid_619537 = validateParameter(valid_619537, JString, required = true, default = newJString( + "DescribePlacementGroups")) if valid_619537 != nil: - section.add "Version", valid_619537 + section.add "Action", valid_619537 + var valid_619538 = query.getOrDefault("GroupId") + valid_619538 = validateParameter(valid_619538, JArray, required = false, + default = nil) + if valid_619538 != nil: + section.add "GroupId", valid_619538 + var valid_619539 = query.getOrDefault("Version") + valid_619539 = validateParameter(valid_619539, JString, required = true, + default = newJString("2016-11-15")) + if valid_619539 != nil: + section.add "Version", valid_619539 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -69382,61 +69409,61 @@ proc validate_GetDescribePlacementGroups_619530(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619538 = header.getOrDefault("X-Amz-Signature") - valid_619538 = validateParameter(valid_619538, JString, required = false, - default = nil) - if valid_619538 != nil: - section.add "X-Amz-Signature", valid_619538 - var valid_619539 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619539 = validateParameter(valid_619539, JString, required = false, - default = nil) - if valid_619539 != nil: - section.add "X-Amz-Content-Sha256", valid_619539 - var valid_619540 = header.getOrDefault("X-Amz-Date") + var valid_619540 = header.getOrDefault("X-Amz-Signature") valid_619540 = validateParameter(valid_619540, JString, required = false, default = nil) if valid_619540 != nil: - section.add "X-Amz-Date", valid_619540 - var valid_619541 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619540 + var valid_619541 = header.getOrDefault("X-Amz-Content-Sha256") valid_619541 = validateParameter(valid_619541, JString, required = false, default = nil) if valid_619541 != nil: - section.add "X-Amz-Credential", valid_619541 - var valid_619542 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619541 + var valid_619542 = header.getOrDefault("X-Amz-Date") valid_619542 = validateParameter(valid_619542, JString, required = false, default = nil) if valid_619542 != nil: - section.add "X-Amz-Security-Token", valid_619542 - var valid_619543 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619542 + var valid_619543 = header.getOrDefault("X-Amz-Credential") valid_619543 = validateParameter(valid_619543, JString, required = false, default = nil) if valid_619543 != nil: - section.add "X-Amz-Algorithm", valid_619543 - var valid_619544 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619543 + var valid_619544 = header.getOrDefault("X-Amz-Security-Token") valid_619544 = validateParameter(valid_619544, JString, required = false, default = nil) if valid_619544 != nil: - section.add "X-Amz-SignedHeaders", valid_619544 + section.add "X-Amz-Security-Token", valid_619544 + var valid_619545 = header.getOrDefault("X-Amz-Algorithm") + valid_619545 = validateParameter(valid_619545, JString, required = false, + default = nil) + if valid_619545 != nil: + section.add "X-Amz-Algorithm", valid_619545 + var valid_619546 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619546 = validateParameter(valid_619546, JString, required = false, + default = nil) + if valid_619546 != nil: + section.add "X-Amz-SignedHeaders", valid_619546 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619545: Call_GetDescribePlacementGroups_619529; path: JsonNode; +proc call*(call_619547: Call_GetDescribePlacementGroups_619531; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the specified placement groups or all of your placement groups. For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide. ## - let valid = call_619545.validator(path, query, header, formData, body) - let scheme = call_619545.pickScheme + let valid = call_619547.validator(path, query, header, formData, body) + let scheme = call_619547.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619545.url(scheme.get, call_619545.host, call_619545.base, - call_619545.route, valid.getOrDefault("path"), + let url = call_619547.url(scheme.get, call_619547.host, call_619547.base, + call_619547.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619545, url, valid) + result = atozHook(call_619547, url, valid) -proc call*(call_619546: Call_GetDescribePlacementGroups_619529; +proc call*(call_619548: Call_GetDescribePlacementGroups_619531; GroupName: JsonNode = nil; DryRun: bool = false; Filter: JsonNode = nil; Action: string = "DescribePlacementGroups"; GroupId: JsonNode = nil; Version: string = "2016-11-15"): Recallable = @@ -69452,27 +69479,27 @@ proc call*(call_619546: Call_GetDescribePlacementGroups_619529; ## GroupId: JArray ## : The IDs of the placement groups. ## Version: string (required) - var query_619547 = newJObject() + var query_619549 = newJObject() if GroupName != nil: - query_619547.add "GroupName", GroupName - add(query_619547, "DryRun", newJBool(DryRun)) + query_619549.add "GroupName", GroupName + add(query_619549, "DryRun", newJBool(DryRun)) if Filter != nil: - query_619547.add "Filter", Filter - add(query_619547, "Action", newJString(Action)) + query_619549.add "Filter", Filter + add(query_619549, "Action", newJString(Action)) if GroupId != nil: - query_619547.add "GroupId", GroupId - add(query_619547, "Version", newJString(Version)) - result = call_619546.call(nil, query_619547, nil, nil, nil) + query_619549.add "GroupId", GroupId + add(query_619549, "Version", newJString(Version)) + result = call_619548.call(nil, query_619549, nil, nil, nil) -var getDescribePlacementGroups* = Call_GetDescribePlacementGroups_619529( +var getDescribePlacementGroups* = Call_GetDescribePlacementGroups_619531( name: "getDescribePlacementGroups", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribePlacementGroups", - validator: validate_GetDescribePlacementGroups_619530, base: "/", - url: url_GetDescribePlacementGroups_619531, + validator: validate_GetDescribePlacementGroups_619532, base: "/", + url: url_GetDescribePlacementGroups_619533, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribePrefixLists_619588 = ref object of OpenApiRestCall_610658 -proc url_PostDescribePrefixLists_619590(protocol: Scheme; host: string; base: string; + Call_PostDescribePrefixLists_619590 = ref object of OpenApiRestCall_610658 +proc url_PostDescribePrefixLists_619592(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -69483,7 +69510,7 @@ proc url_PostDescribePrefixLists_619590(protocol: Scheme; host: string; base: st else: result.path = base & route -proc validate_PostDescribePrefixLists_619589(path: JsonNode; query: JsonNode; +proc validate_PostDescribePrefixLists_619591(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes available AWS services in a prefix list format, which includes the prefix list name and prefix list ID of the service and the IP address range for the service. A prefix list ID is required for creating an outbound security group rule that allows traffic from a VPC to access an AWS service through a gateway VPC endpoint. Currently, the services that support this action are Amazon S3 and Amazon DynamoDB. ## @@ -69495,16 +69522,16 @@ proc validate_PostDescribePrefixLists_619589(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619591 = query.getOrDefault("Action") - valid_619591 = validateParameter(valid_619591, JString, required = true, + var valid_619593 = query.getOrDefault("Action") + valid_619593 = validateParameter(valid_619593, JString, required = true, default = newJString("DescribePrefixLists")) - if valid_619591 != nil: - section.add "Action", valid_619591 - var valid_619592 = query.getOrDefault("Version") - valid_619592 = validateParameter(valid_619592, JString, required = true, + if valid_619593 != nil: + section.add "Action", valid_619593 + var valid_619594 = query.getOrDefault("Version") + valid_619594 = validateParameter(valid_619594, JString, required = true, default = newJString("2016-11-15")) - if valid_619592 != nil: - section.add "Version", valid_619592 + if valid_619594 != nil: + section.add "Version", valid_619594 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -69515,41 +69542,41 @@ proc validate_PostDescribePrefixLists_619589(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619593 = header.getOrDefault("X-Amz-Signature") - valid_619593 = validateParameter(valid_619593, JString, required = false, - default = nil) - if valid_619593 != nil: - section.add "X-Amz-Signature", valid_619593 - var valid_619594 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619594 = validateParameter(valid_619594, JString, required = false, - default = nil) - if valid_619594 != nil: - section.add "X-Amz-Content-Sha256", valid_619594 - var valid_619595 = header.getOrDefault("X-Amz-Date") + var valid_619595 = header.getOrDefault("X-Amz-Signature") valid_619595 = validateParameter(valid_619595, JString, required = false, default = nil) if valid_619595 != nil: - section.add "X-Amz-Date", valid_619595 - var valid_619596 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619595 + var valid_619596 = header.getOrDefault("X-Amz-Content-Sha256") valid_619596 = validateParameter(valid_619596, JString, required = false, default = nil) if valid_619596 != nil: - section.add "X-Amz-Credential", valid_619596 - var valid_619597 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619596 + var valid_619597 = header.getOrDefault("X-Amz-Date") valid_619597 = validateParameter(valid_619597, JString, required = false, default = nil) if valid_619597 != nil: - section.add "X-Amz-Security-Token", valid_619597 - var valid_619598 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619597 + var valid_619598 = header.getOrDefault("X-Amz-Credential") valid_619598 = validateParameter(valid_619598, JString, required = false, default = nil) if valid_619598 != nil: - section.add "X-Amz-Algorithm", valid_619598 - var valid_619599 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619598 + var valid_619599 = header.getOrDefault("X-Amz-Security-Token") valid_619599 = validateParameter(valid_619599, JString, required = false, default = nil) if valid_619599 != nil: - section.add "X-Amz-SignedHeaders", valid_619599 + section.add "X-Amz-Security-Token", valid_619599 + var valid_619600 = header.getOrDefault("X-Amz-Algorithm") + valid_619600 = validateParameter(valid_619600, JString, required = false, + default = nil) + if valid_619600 != nil: + section.add "X-Amz-Algorithm", valid_619600 + var valid_619601 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619601 = validateParameter(valid_619601, JString, required = false, + default = nil) + if valid_619601 != nil: + section.add "X-Amz-SignedHeaders", valid_619601 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -69563,47 +69590,47 @@ proc validate_PostDescribePrefixLists_619589(path: JsonNode; query: JsonNode; ## Filter: JArray ## :

One or more filters.

section = newJObject() - var valid_619600 = formData.getOrDefault("NextToken") - valid_619600 = validateParameter(valid_619600, JString, required = false, - default = nil) - if valid_619600 != nil: - section.add "NextToken", valid_619600 - var valid_619601 = formData.getOrDefault("PrefixListId") - valid_619601 = validateParameter(valid_619601, JArray, required = false, + var valid_619602 = formData.getOrDefault("NextToken") + valid_619602 = validateParameter(valid_619602, JString, required = false, default = nil) - if valid_619601 != nil: - section.add "PrefixListId", valid_619601 - var valid_619602 = formData.getOrDefault("DryRun") - valid_619602 = validateParameter(valid_619602, JBool, required = false, default = nil) if valid_619602 != nil: - section.add "DryRun", valid_619602 - var valid_619603 = formData.getOrDefault("MaxResults") - valid_619603 = validateParameter(valid_619603, JInt, required = false, default = nil) - if valid_619603 != nil: - section.add "MaxResults", valid_619603 - var valid_619604 = formData.getOrDefault("Filter") - valid_619604 = validateParameter(valid_619604, JArray, required = false, + section.add "NextToken", valid_619602 + var valid_619603 = formData.getOrDefault("PrefixListId") + valid_619603 = validateParameter(valid_619603, JArray, required = false, default = nil) + if valid_619603 != nil: + section.add "PrefixListId", valid_619603 + var valid_619604 = formData.getOrDefault("DryRun") + valid_619604 = validateParameter(valid_619604, JBool, required = false, default = nil) if valid_619604 != nil: - section.add "Filter", valid_619604 + section.add "DryRun", valid_619604 + var valid_619605 = formData.getOrDefault("MaxResults") + valid_619605 = validateParameter(valid_619605, JInt, required = false, default = nil) + if valid_619605 != nil: + section.add "MaxResults", valid_619605 + var valid_619606 = formData.getOrDefault("Filter") + valid_619606 = validateParameter(valid_619606, JArray, required = false, + default = nil) + if valid_619606 != nil: + section.add "Filter", valid_619606 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619605: Call_PostDescribePrefixLists_619588; path: JsonNode; +proc call*(call_619607: Call_PostDescribePrefixLists_619590; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes available AWS services in a prefix list format, which includes the prefix list name and prefix list ID of the service and the IP address range for the service. A prefix list ID is required for creating an outbound security group rule that allows traffic from a VPC to access an AWS service through a gateway VPC endpoint. Currently, the services that support this action are Amazon S3 and Amazon DynamoDB. ## - let valid = call_619605.validator(path, query, header, formData, body) - let scheme = call_619605.pickScheme + let valid = call_619607.validator(path, query, header, formData, body) + let scheme = call_619607.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619605.url(scheme.get, call_619605.host, call_619605.base, - call_619605.route, valid.getOrDefault("path"), + let url = call_619607.url(scheme.get, call_619607.host, call_619607.base, + call_619607.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619605, url, valid) + result = atozHook(call_619607, url, valid) -proc call*(call_619606: Call_PostDescribePrefixLists_619588; +proc call*(call_619608: Call_PostDescribePrefixLists_619590; NextToken: string = ""; PrefixListId: JsonNode = nil; DryRun: bool = false; Action: string = "DescribePrefixLists"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -69621,27 +69648,27 @@ proc call*(call_619606: Call_PostDescribePrefixLists_619588; ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## Filter: JArray ## :

One or more filters.

- var query_619607 = newJObject() - var formData_619608 = newJObject() - add(formData_619608, "NextToken", newJString(NextToken)) + var query_619609 = newJObject() + var formData_619610 = newJObject() + add(formData_619610, "NextToken", newJString(NextToken)) if PrefixListId != nil: - formData_619608.add "PrefixListId", PrefixListId - add(formData_619608, "DryRun", newJBool(DryRun)) - add(query_619607, "Action", newJString(Action)) - add(query_619607, "Version", newJString(Version)) - add(formData_619608, "MaxResults", newJInt(MaxResults)) + formData_619610.add "PrefixListId", PrefixListId + add(formData_619610, "DryRun", newJBool(DryRun)) + add(query_619609, "Action", newJString(Action)) + add(query_619609, "Version", newJString(Version)) + add(formData_619610, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_619608.add "Filter", Filter - result = call_619606.call(nil, query_619607, nil, formData_619608, nil) + formData_619610.add "Filter", Filter + result = call_619608.call(nil, query_619609, nil, formData_619610, nil) -var postDescribePrefixLists* = Call_PostDescribePrefixLists_619588( +var postDescribePrefixLists* = Call_PostDescribePrefixLists_619590( name: "postDescribePrefixLists", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribePrefixLists", - validator: validate_PostDescribePrefixLists_619589, base: "/", - url: url_PostDescribePrefixLists_619590, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDescribePrefixLists_619591, base: "/", + url: url_PostDescribePrefixLists_619592, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribePrefixLists_619568 = ref object of OpenApiRestCall_610658 -proc url_GetDescribePrefixLists_619570(protocol: Scheme; host: string; base: string; + Call_GetDescribePrefixLists_619570 = ref object of OpenApiRestCall_610658 +proc url_GetDescribePrefixLists_619572(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -69651,7 +69678,7 @@ proc url_GetDescribePrefixLists_619570(protocol: Scheme; host: string; base: str else: result.path = base & route -proc validate_GetDescribePrefixLists_619569(path: JsonNode; query: JsonNode; +proc validate_GetDescribePrefixLists_619571(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes available AWS services in a prefix list format, which includes the prefix list name and prefix list ID of the service and the IP address range for the service. A prefix list ID is required for creating an outbound security group rule that allows traffic from a VPC to access an AWS service through a gateway VPC endpoint. Currently, the services that support this action are Amazon S3 and Amazon DynamoDB. ## @@ -69673,39 +69700,39 @@ proc validate_GetDescribePrefixLists_619569(path: JsonNode; query: JsonNode; ## : One or more prefix list IDs. ## Version: JString (required) section = newJObject() - var valid_619571 = query.getOrDefault("MaxResults") - valid_619571 = validateParameter(valid_619571, JInt, required = false, default = nil) - if valid_619571 != nil: - section.add "MaxResults", valid_619571 - var valid_619572 = query.getOrDefault("DryRun") - valid_619572 = validateParameter(valid_619572, JBool, required = false, default = nil) - if valid_619572 != nil: - section.add "DryRun", valid_619572 - var valid_619573 = query.getOrDefault("NextToken") - valid_619573 = validateParameter(valid_619573, JString, required = false, - default = nil) + var valid_619573 = query.getOrDefault("MaxResults") + valid_619573 = validateParameter(valid_619573, JInt, required = false, default = nil) if valid_619573 != nil: - section.add "NextToken", valid_619573 - var valid_619574 = query.getOrDefault("Filter") - valid_619574 = validateParameter(valid_619574, JArray, required = false, - default = nil) + section.add "MaxResults", valid_619573 + var valid_619574 = query.getOrDefault("DryRun") + valid_619574 = validateParameter(valid_619574, JBool, required = false, default = nil) if valid_619574 != nil: - section.add "Filter", valid_619574 - var valid_619575 = query.getOrDefault("Action") - valid_619575 = validateParameter(valid_619575, JString, required = true, - default = newJString("DescribePrefixLists")) + section.add "DryRun", valid_619574 + var valid_619575 = query.getOrDefault("NextToken") + valid_619575 = validateParameter(valid_619575, JString, required = false, + default = nil) if valid_619575 != nil: - section.add "Action", valid_619575 - var valid_619576 = query.getOrDefault("PrefixListId") + section.add "NextToken", valid_619575 + var valid_619576 = query.getOrDefault("Filter") valid_619576 = validateParameter(valid_619576, JArray, required = false, default = nil) if valid_619576 != nil: - section.add "PrefixListId", valid_619576 - var valid_619577 = query.getOrDefault("Version") + section.add "Filter", valid_619576 + var valid_619577 = query.getOrDefault("Action") valid_619577 = validateParameter(valid_619577, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("DescribePrefixLists")) if valid_619577 != nil: - section.add "Version", valid_619577 + section.add "Action", valid_619577 + var valid_619578 = query.getOrDefault("PrefixListId") + valid_619578 = validateParameter(valid_619578, JArray, required = false, + default = nil) + if valid_619578 != nil: + section.add "PrefixListId", valid_619578 + var valid_619579 = query.getOrDefault("Version") + valid_619579 = validateParameter(valid_619579, JString, required = true, + default = newJString("2016-11-15")) + if valid_619579 != nil: + section.add "Version", valid_619579 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -69716,61 +69743,61 @@ proc validate_GetDescribePrefixLists_619569(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619578 = header.getOrDefault("X-Amz-Signature") - valid_619578 = validateParameter(valid_619578, JString, required = false, - default = nil) - if valid_619578 != nil: - section.add "X-Amz-Signature", valid_619578 - var valid_619579 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619579 = validateParameter(valid_619579, JString, required = false, - default = nil) - if valid_619579 != nil: - section.add "X-Amz-Content-Sha256", valid_619579 - var valid_619580 = header.getOrDefault("X-Amz-Date") + var valid_619580 = header.getOrDefault("X-Amz-Signature") valid_619580 = validateParameter(valid_619580, JString, required = false, default = nil) if valid_619580 != nil: - section.add "X-Amz-Date", valid_619580 - var valid_619581 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619580 + var valid_619581 = header.getOrDefault("X-Amz-Content-Sha256") valid_619581 = validateParameter(valid_619581, JString, required = false, default = nil) if valid_619581 != nil: - section.add "X-Amz-Credential", valid_619581 - var valid_619582 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619581 + var valid_619582 = header.getOrDefault("X-Amz-Date") valid_619582 = validateParameter(valid_619582, JString, required = false, default = nil) if valid_619582 != nil: - section.add "X-Amz-Security-Token", valid_619582 - var valid_619583 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619582 + var valid_619583 = header.getOrDefault("X-Amz-Credential") valid_619583 = validateParameter(valid_619583, JString, required = false, default = nil) if valid_619583 != nil: - section.add "X-Amz-Algorithm", valid_619583 - var valid_619584 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619583 + var valid_619584 = header.getOrDefault("X-Amz-Security-Token") valid_619584 = validateParameter(valid_619584, JString, required = false, default = nil) if valid_619584 != nil: - section.add "X-Amz-SignedHeaders", valid_619584 + section.add "X-Amz-Security-Token", valid_619584 + var valid_619585 = header.getOrDefault("X-Amz-Algorithm") + valid_619585 = validateParameter(valid_619585, JString, required = false, + default = nil) + if valid_619585 != nil: + section.add "X-Amz-Algorithm", valid_619585 + var valid_619586 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619586 = validateParameter(valid_619586, JString, required = false, + default = nil) + if valid_619586 != nil: + section.add "X-Amz-SignedHeaders", valid_619586 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619585: Call_GetDescribePrefixLists_619568; path: JsonNode; +proc call*(call_619587: Call_GetDescribePrefixLists_619570; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes available AWS services in a prefix list format, which includes the prefix list name and prefix list ID of the service and the IP address range for the service. A prefix list ID is required for creating an outbound security group rule that allows traffic from a VPC to access an AWS service through a gateway VPC endpoint. Currently, the services that support this action are Amazon S3 and Amazon DynamoDB. ## - let valid = call_619585.validator(path, query, header, formData, body) - let scheme = call_619585.pickScheme + let valid = call_619587.validator(path, query, header, formData, body) + let scheme = call_619587.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619585.url(scheme.get, call_619585.host, call_619585.base, - call_619585.route, valid.getOrDefault("path"), + let url = call_619587.url(scheme.get, call_619587.host, call_619587.base, + call_619587.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619585, url, valid) + result = atozHook(call_619587, url, valid) -proc call*(call_619586: Call_GetDescribePrefixLists_619568; MaxResults: int = 0; +proc call*(call_619588: Call_GetDescribePrefixLists_619570; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribePrefixLists"; PrefixListId: JsonNode = nil; Version: string = "2016-11-15"): Recallable = @@ -69788,26 +69815,26 @@ proc call*(call_619586: Call_GetDescribePrefixLists_619568; MaxResults: int = 0; ## PrefixListId: JArray ## : One or more prefix list IDs. ## Version: string (required) - var query_619587 = newJObject() - add(query_619587, "MaxResults", newJInt(MaxResults)) - add(query_619587, "DryRun", newJBool(DryRun)) - add(query_619587, "NextToken", newJString(NextToken)) + var query_619589 = newJObject() + add(query_619589, "MaxResults", newJInt(MaxResults)) + add(query_619589, "DryRun", newJBool(DryRun)) + add(query_619589, "NextToken", newJString(NextToken)) if Filter != nil: - query_619587.add "Filter", Filter - add(query_619587, "Action", newJString(Action)) + query_619589.add "Filter", Filter + add(query_619589, "Action", newJString(Action)) if PrefixListId != nil: - query_619587.add "PrefixListId", PrefixListId - add(query_619587, "Version", newJString(Version)) - result = call_619586.call(nil, query_619587, nil, nil, nil) + query_619589.add "PrefixListId", PrefixListId + add(query_619589, "Version", newJString(Version)) + result = call_619588.call(nil, query_619589, nil, nil, nil) -var getDescribePrefixLists* = Call_GetDescribePrefixLists_619568( +var getDescribePrefixLists* = Call_GetDescribePrefixLists_619570( name: "getDescribePrefixLists", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribePrefixLists", - validator: validate_GetDescribePrefixLists_619569, base: "/", - url: url_GetDescribePrefixLists_619570, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDescribePrefixLists_619571, base: "/", + url: url_GetDescribePrefixLists_619572, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribePrincipalIdFormat_619628 = ref object of OpenApiRestCall_610658 -proc url_PostDescribePrincipalIdFormat_619630(protocol: Scheme; host: string; + Call_PostDescribePrincipalIdFormat_619630 = ref object of OpenApiRestCall_610658 +proc url_PostDescribePrincipalIdFormat_619632(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -69817,7 +69844,7 @@ proc url_PostDescribePrincipalIdFormat_619630(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribePrincipalIdFormat_619629(path: JsonNode; query: JsonNode; +proc validate_PostDescribePrincipalIdFormat_619631(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the ID format settings for the root user and all IAM roles and IAM users that have explicitly specified a longer ID (17-character ID) preference.

By default, all IAM roles and IAM users default to the same ID settings as the root user, unless they explicitly override the settings. This request is useful for identifying those IAM users and IAM roles that have overridden the default ID settings.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

## @@ -69829,16 +69856,16 @@ proc validate_PostDescribePrincipalIdFormat_619629(path: JsonNode; query: JsonNo ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619631 = query.getOrDefault("Action") - valid_619631 = validateParameter(valid_619631, JString, required = true, default = newJString( + var valid_619633 = query.getOrDefault("Action") + valid_619633 = validateParameter(valid_619633, JString, required = true, default = newJString( "DescribePrincipalIdFormat")) - if valid_619631 != nil: - section.add "Action", valid_619631 - var valid_619632 = query.getOrDefault("Version") - valid_619632 = validateParameter(valid_619632, JString, required = true, + if valid_619633 != nil: + section.add "Action", valid_619633 + var valid_619634 = query.getOrDefault("Version") + valid_619634 = validateParameter(valid_619634, JString, required = true, default = newJString("2016-11-15")) - if valid_619632 != nil: - section.add "Version", valid_619632 + if valid_619634 != nil: + section.add "Version", valid_619634 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -69849,41 +69876,41 @@ proc validate_PostDescribePrincipalIdFormat_619629(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619633 = header.getOrDefault("X-Amz-Signature") - valid_619633 = validateParameter(valid_619633, JString, required = false, - default = nil) - if valid_619633 != nil: - section.add "X-Amz-Signature", valid_619633 - var valid_619634 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619634 = validateParameter(valid_619634, JString, required = false, - default = nil) - if valid_619634 != nil: - section.add "X-Amz-Content-Sha256", valid_619634 - var valid_619635 = header.getOrDefault("X-Amz-Date") + var valid_619635 = header.getOrDefault("X-Amz-Signature") valid_619635 = validateParameter(valid_619635, JString, required = false, default = nil) if valid_619635 != nil: - section.add "X-Amz-Date", valid_619635 - var valid_619636 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619635 + var valid_619636 = header.getOrDefault("X-Amz-Content-Sha256") valid_619636 = validateParameter(valid_619636, JString, required = false, default = nil) if valid_619636 != nil: - section.add "X-Amz-Credential", valid_619636 - var valid_619637 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619636 + var valid_619637 = header.getOrDefault("X-Amz-Date") valid_619637 = validateParameter(valid_619637, JString, required = false, default = nil) if valid_619637 != nil: - section.add "X-Amz-Security-Token", valid_619637 - var valid_619638 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619637 + var valid_619638 = header.getOrDefault("X-Amz-Credential") valid_619638 = validateParameter(valid_619638, JString, required = false, default = nil) if valid_619638 != nil: - section.add "X-Amz-Algorithm", valid_619638 - var valid_619639 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619638 + var valid_619639 = header.getOrDefault("X-Amz-Security-Token") valid_619639 = validateParameter(valid_619639, JString, required = false, default = nil) if valid_619639 != nil: - section.add "X-Amz-SignedHeaders", valid_619639 + section.add "X-Amz-Security-Token", valid_619639 + var valid_619640 = header.getOrDefault("X-Amz-Algorithm") + valid_619640 = validateParameter(valid_619640, JString, required = false, + default = nil) + if valid_619640 != nil: + section.add "X-Amz-Algorithm", valid_619640 + var valid_619641 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619641 = validateParameter(valid_619641, JString, required = false, + default = nil) + if valid_619641 != nil: + section.add "X-Amz-SignedHeaders", valid_619641 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -69895,42 +69922,42 @@ proc validate_PostDescribePrincipalIdFormat_619629(path: JsonNode; query: JsonNo ## MaxResults: JInt ## : The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value. section = newJObject() - var valid_619640 = formData.getOrDefault("NextToken") - valid_619640 = validateParameter(valid_619640, JString, required = false, - default = nil) - if valid_619640 != nil: - section.add "NextToken", valid_619640 - var valid_619641 = formData.getOrDefault("Resource") - valid_619641 = validateParameter(valid_619641, JArray, required = false, + var valid_619642 = formData.getOrDefault("NextToken") + valid_619642 = validateParameter(valid_619642, JString, required = false, default = nil) - if valid_619641 != nil: - section.add "Resource", valid_619641 - var valid_619642 = formData.getOrDefault("DryRun") - valid_619642 = validateParameter(valid_619642, JBool, required = false, default = nil) if valid_619642 != nil: - section.add "DryRun", valid_619642 - var valid_619643 = formData.getOrDefault("MaxResults") - valid_619643 = validateParameter(valid_619643, JInt, required = false, default = nil) + section.add "NextToken", valid_619642 + var valid_619643 = formData.getOrDefault("Resource") + valid_619643 = validateParameter(valid_619643, JArray, required = false, + default = nil) if valid_619643 != nil: - section.add "MaxResults", valid_619643 + section.add "Resource", valid_619643 + var valid_619644 = formData.getOrDefault("DryRun") + valid_619644 = validateParameter(valid_619644, JBool, required = false, default = nil) + if valid_619644 != nil: + section.add "DryRun", valid_619644 + var valid_619645 = formData.getOrDefault("MaxResults") + valid_619645 = validateParameter(valid_619645, JInt, required = false, default = nil) + if valid_619645 != nil: + section.add "MaxResults", valid_619645 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619644: Call_PostDescribePrincipalIdFormat_619628; path: JsonNode; +proc call*(call_619646: Call_PostDescribePrincipalIdFormat_619630; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the ID format settings for the root user and all IAM roles and IAM users that have explicitly specified a longer ID (17-character ID) preference.

By default, all IAM roles and IAM users default to the same ID settings as the root user, unless they explicitly override the settings. This request is useful for identifying those IAM users and IAM roles that have overridden the default ID settings.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

## - let valid = call_619644.validator(path, query, header, formData, body) - let scheme = call_619644.pickScheme + let valid = call_619646.validator(path, query, header, formData, body) + let scheme = call_619646.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619644.url(scheme.get, call_619644.host, call_619644.base, - call_619644.route, valid.getOrDefault("path"), + let url = call_619646.url(scheme.get, call_619646.host, call_619646.base, + call_619646.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619644, url, valid) + result = atozHook(call_619646, url, valid) -proc call*(call_619645: Call_PostDescribePrincipalIdFormat_619628; +proc call*(call_619647: Call_PostDescribePrincipalIdFormat_619630; NextToken: string = ""; Resource: JsonNode = nil; DryRun: bool = false; Action: string = "DescribePrincipalIdFormat"; Version: string = "2016-11-15"; MaxResults: int = 0): Recallable = @@ -69946,26 +69973,26 @@ proc call*(call_619645: Call_PostDescribePrincipalIdFormat_619628; ## Version: string (required) ## MaxResults: int ## : The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value. - var query_619646 = newJObject() - var formData_619647 = newJObject() - add(formData_619647, "NextToken", newJString(NextToken)) + var query_619648 = newJObject() + var formData_619649 = newJObject() + add(formData_619649, "NextToken", newJString(NextToken)) if Resource != nil: - formData_619647.add "Resource", Resource - add(formData_619647, "DryRun", newJBool(DryRun)) - add(query_619646, "Action", newJString(Action)) - add(query_619646, "Version", newJString(Version)) - add(formData_619647, "MaxResults", newJInt(MaxResults)) - result = call_619645.call(nil, query_619646, nil, formData_619647, nil) - -var postDescribePrincipalIdFormat* = Call_PostDescribePrincipalIdFormat_619628( + formData_619649.add "Resource", Resource + add(formData_619649, "DryRun", newJBool(DryRun)) + add(query_619648, "Action", newJString(Action)) + add(query_619648, "Version", newJString(Version)) + add(formData_619649, "MaxResults", newJInt(MaxResults)) + result = call_619647.call(nil, query_619648, nil, formData_619649, nil) + +var postDescribePrincipalIdFormat* = Call_PostDescribePrincipalIdFormat_619630( name: "postDescribePrincipalIdFormat", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribePrincipalIdFormat", - validator: validate_PostDescribePrincipalIdFormat_619629, base: "/", - url: url_PostDescribePrincipalIdFormat_619630, + validator: validate_PostDescribePrincipalIdFormat_619631, base: "/", + url: url_PostDescribePrincipalIdFormat_619632, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribePrincipalIdFormat_619609 = ref object of OpenApiRestCall_610658 -proc url_GetDescribePrincipalIdFormat_619611(protocol: Scheme; host: string; + Call_GetDescribePrincipalIdFormat_619611 = ref object of OpenApiRestCall_610658 +proc url_GetDescribePrincipalIdFormat_619613(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -69975,7 +70002,7 @@ proc url_GetDescribePrincipalIdFormat_619611(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribePrincipalIdFormat_619610(path: JsonNode; query: JsonNode; +proc validate_GetDescribePrincipalIdFormat_619612(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the ID format settings for the root user and all IAM roles and IAM users that have explicitly specified a longer ID (17-character ID) preference.

By default, all IAM roles and IAM users default to the same ID settings as the root user, unless they explicitly override the settings. This request is useful for identifying those IAM users and IAM roles that have overridden the default ID settings.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

## @@ -69995,34 +70022,34 @@ proc validate_GetDescribePrincipalIdFormat_619610(path: JsonNode; query: JsonNod ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619612 = query.getOrDefault("MaxResults") - valid_619612 = validateParameter(valid_619612, JInt, required = false, default = nil) - if valid_619612 != nil: - section.add "MaxResults", valid_619612 - var valid_619613 = query.getOrDefault("Resource") - valid_619613 = validateParameter(valid_619613, JArray, required = false, - default = nil) - if valid_619613 != nil: - section.add "Resource", valid_619613 - var valid_619614 = query.getOrDefault("DryRun") - valid_619614 = validateParameter(valid_619614, JBool, required = false, default = nil) + var valid_619614 = query.getOrDefault("MaxResults") + valid_619614 = validateParameter(valid_619614, JInt, required = false, default = nil) if valid_619614 != nil: - section.add "DryRun", valid_619614 - var valid_619615 = query.getOrDefault("NextToken") - valid_619615 = validateParameter(valid_619615, JString, required = false, + section.add "MaxResults", valid_619614 + var valid_619615 = query.getOrDefault("Resource") + valid_619615 = validateParameter(valid_619615, JArray, required = false, default = nil) if valid_619615 != nil: - section.add "NextToken", valid_619615 - var valid_619616 = query.getOrDefault("Action") - valid_619616 = validateParameter(valid_619616, JString, required = true, default = newJString( - "DescribePrincipalIdFormat")) + section.add "Resource", valid_619615 + var valid_619616 = query.getOrDefault("DryRun") + valid_619616 = validateParameter(valid_619616, JBool, required = false, default = nil) if valid_619616 != nil: - section.add "Action", valid_619616 - var valid_619617 = query.getOrDefault("Version") - valid_619617 = validateParameter(valid_619617, JString, required = true, - default = newJString("2016-11-15")) + section.add "DryRun", valid_619616 + var valid_619617 = query.getOrDefault("NextToken") + valid_619617 = validateParameter(valid_619617, JString, required = false, + default = nil) if valid_619617 != nil: - section.add "Version", valid_619617 + section.add "NextToken", valid_619617 + var valid_619618 = query.getOrDefault("Action") + valid_619618 = validateParameter(valid_619618, JString, required = true, default = newJString( + "DescribePrincipalIdFormat")) + if valid_619618 != nil: + section.add "Action", valid_619618 + var valid_619619 = query.getOrDefault("Version") + valid_619619 = validateParameter(valid_619619, JString, required = true, + default = newJString("2016-11-15")) + if valid_619619 != nil: + section.add "Version", valid_619619 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -70033,61 +70060,61 @@ proc validate_GetDescribePrincipalIdFormat_619610(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619618 = header.getOrDefault("X-Amz-Signature") - valid_619618 = validateParameter(valid_619618, JString, required = false, - default = nil) - if valid_619618 != nil: - section.add "X-Amz-Signature", valid_619618 - var valid_619619 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619619 = validateParameter(valid_619619, JString, required = false, - default = nil) - if valid_619619 != nil: - section.add "X-Amz-Content-Sha256", valid_619619 - var valid_619620 = header.getOrDefault("X-Amz-Date") + var valid_619620 = header.getOrDefault("X-Amz-Signature") valid_619620 = validateParameter(valid_619620, JString, required = false, default = nil) if valid_619620 != nil: - section.add "X-Amz-Date", valid_619620 - var valid_619621 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619620 + var valid_619621 = header.getOrDefault("X-Amz-Content-Sha256") valid_619621 = validateParameter(valid_619621, JString, required = false, default = nil) if valid_619621 != nil: - section.add "X-Amz-Credential", valid_619621 - var valid_619622 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619621 + var valid_619622 = header.getOrDefault("X-Amz-Date") valid_619622 = validateParameter(valid_619622, JString, required = false, default = nil) if valid_619622 != nil: - section.add "X-Amz-Security-Token", valid_619622 - var valid_619623 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619622 + var valid_619623 = header.getOrDefault("X-Amz-Credential") valid_619623 = validateParameter(valid_619623, JString, required = false, default = nil) if valid_619623 != nil: - section.add "X-Amz-Algorithm", valid_619623 - var valid_619624 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619623 + var valid_619624 = header.getOrDefault("X-Amz-Security-Token") valid_619624 = validateParameter(valid_619624, JString, required = false, default = nil) if valid_619624 != nil: - section.add "X-Amz-SignedHeaders", valid_619624 + section.add "X-Amz-Security-Token", valid_619624 + var valid_619625 = header.getOrDefault("X-Amz-Algorithm") + valid_619625 = validateParameter(valid_619625, JString, required = false, + default = nil) + if valid_619625 != nil: + section.add "X-Amz-Algorithm", valid_619625 + var valid_619626 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619626 = validateParameter(valid_619626, JString, required = false, + default = nil) + if valid_619626 != nil: + section.add "X-Amz-SignedHeaders", valid_619626 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619625: Call_GetDescribePrincipalIdFormat_619609; path: JsonNode; +proc call*(call_619627: Call_GetDescribePrincipalIdFormat_619611; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the ID format settings for the root user and all IAM roles and IAM users that have explicitly specified a longer ID (17-character ID) preference.

By default, all IAM roles and IAM users default to the same ID settings as the root user, unless they explicitly override the settings. This request is useful for identifying those IAM users and IAM roles that have overridden the default ID settings.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

## - let valid = call_619625.validator(path, query, header, formData, body) - let scheme = call_619625.pickScheme + let valid = call_619627.validator(path, query, header, formData, body) + let scheme = call_619627.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619625.url(scheme.get, call_619625.host, call_619625.base, - call_619625.route, valid.getOrDefault("path"), + let url = call_619627.url(scheme.get, call_619627.host, call_619627.base, + call_619627.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619625, url, valid) + result = atozHook(call_619627, url, valid) -proc call*(call_619626: Call_GetDescribePrincipalIdFormat_619609; +proc call*(call_619628: Call_GetDescribePrincipalIdFormat_619611; MaxResults: int = 0; Resource: JsonNode = nil; DryRun: bool = false; NextToken: string = ""; Action: string = "DescribePrincipalIdFormat"; Version: string = "2016-11-15"): Recallable = @@ -70103,25 +70130,25 @@ proc call*(call_619626: Call_GetDescribePrincipalIdFormat_619609; ## : The token to request the next page of results. ## Action: string (required) ## Version: string (required) - var query_619627 = newJObject() - add(query_619627, "MaxResults", newJInt(MaxResults)) + var query_619629 = newJObject() + add(query_619629, "MaxResults", newJInt(MaxResults)) if Resource != nil: - query_619627.add "Resource", Resource - add(query_619627, "DryRun", newJBool(DryRun)) - add(query_619627, "NextToken", newJString(NextToken)) - add(query_619627, "Action", newJString(Action)) - add(query_619627, "Version", newJString(Version)) - result = call_619626.call(nil, query_619627, nil, nil, nil) - -var getDescribePrincipalIdFormat* = Call_GetDescribePrincipalIdFormat_619609( + query_619629.add "Resource", Resource + add(query_619629, "DryRun", newJBool(DryRun)) + add(query_619629, "NextToken", newJString(NextToken)) + add(query_619629, "Action", newJString(Action)) + add(query_619629, "Version", newJString(Version)) + result = call_619628.call(nil, query_619629, nil, nil, nil) + +var getDescribePrincipalIdFormat* = Call_GetDescribePrincipalIdFormat_619611( name: "getDescribePrincipalIdFormat", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribePrincipalIdFormat", - validator: validate_GetDescribePrincipalIdFormat_619610, base: "/", - url: url_GetDescribePrincipalIdFormat_619611, + validator: validate_GetDescribePrincipalIdFormat_619612, base: "/", + url: url_GetDescribePrincipalIdFormat_619613, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribePublicIpv4Pools_619667 = ref object of OpenApiRestCall_610658 -proc url_PostDescribePublicIpv4Pools_619669(protocol: Scheme; host: string; + Call_PostDescribePublicIpv4Pools_619669 = ref object of OpenApiRestCall_610658 +proc url_PostDescribePublicIpv4Pools_619671(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -70131,7 +70158,7 @@ proc url_PostDescribePublicIpv4Pools_619669(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribePublicIpv4Pools_619668(path: JsonNode; query: JsonNode; +proc validate_PostDescribePublicIpv4Pools_619670(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the specified IPv4 address pools. ## @@ -70143,16 +70170,16 @@ proc validate_PostDescribePublicIpv4Pools_619668(path: JsonNode; query: JsonNode ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619670 = query.getOrDefault("Action") - valid_619670 = validateParameter(valid_619670, JString, required = true, default = newJString( + var valid_619672 = query.getOrDefault("Action") + valid_619672 = validateParameter(valid_619672, JString, required = true, default = newJString( "DescribePublicIpv4Pools")) - if valid_619670 != nil: - section.add "Action", valid_619670 - var valid_619671 = query.getOrDefault("Version") - valid_619671 = validateParameter(valid_619671, JString, required = true, + if valid_619672 != nil: + section.add "Action", valid_619672 + var valid_619673 = query.getOrDefault("Version") + valid_619673 = validateParameter(valid_619673, JString, required = true, default = newJString("2016-11-15")) - if valid_619671 != nil: - section.add "Version", valid_619671 + if valid_619673 != nil: + section.add "Version", valid_619673 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -70163,41 +70190,41 @@ proc validate_PostDescribePublicIpv4Pools_619668(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619672 = header.getOrDefault("X-Amz-Signature") - valid_619672 = validateParameter(valid_619672, JString, required = false, - default = nil) - if valid_619672 != nil: - section.add "X-Amz-Signature", valid_619672 - var valid_619673 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619673 = validateParameter(valid_619673, JString, required = false, - default = nil) - if valid_619673 != nil: - section.add "X-Amz-Content-Sha256", valid_619673 - var valid_619674 = header.getOrDefault("X-Amz-Date") + var valid_619674 = header.getOrDefault("X-Amz-Signature") valid_619674 = validateParameter(valid_619674, JString, required = false, default = nil) if valid_619674 != nil: - section.add "X-Amz-Date", valid_619674 - var valid_619675 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619674 + var valid_619675 = header.getOrDefault("X-Amz-Content-Sha256") valid_619675 = validateParameter(valid_619675, JString, required = false, default = nil) if valid_619675 != nil: - section.add "X-Amz-Credential", valid_619675 - var valid_619676 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619675 + var valid_619676 = header.getOrDefault("X-Amz-Date") valid_619676 = validateParameter(valid_619676, JString, required = false, default = nil) if valid_619676 != nil: - section.add "X-Amz-Security-Token", valid_619676 - var valid_619677 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619676 + var valid_619677 = header.getOrDefault("X-Amz-Credential") valid_619677 = validateParameter(valid_619677, JString, required = false, default = nil) if valid_619677 != nil: - section.add "X-Amz-Algorithm", valid_619677 - var valid_619678 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619677 + var valid_619678 = header.getOrDefault("X-Amz-Security-Token") valid_619678 = validateParameter(valid_619678, JString, required = false, default = nil) if valid_619678 != nil: - section.add "X-Amz-SignedHeaders", valid_619678 + section.add "X-Amz-Security-Token", valid_619678 + var valid_619679 = header.getOrDefault("X-Amz-Algorithm") + valid_619679 = validateParameter(valid_619679, JString, required = false, + default = nil) + if valid_619679 != nil: + section.add "X-Amz-Algorithm", valid_619679 + var valid_619680 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619680 = validateParameter(valid_619680, JString, required = false, + default = nil) + if valid_619680 != nil: + section.add "X-Amz-SignedHeaders", valid_619680 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -70209,43 +70236,43 @@ proc validate_PostDescribePublicIpv4Pools_619668(path: JsonNode; query: JsonNode ## Filter: JArray ## :

One or more filters.

section = newJObject() - var valid_619679 = formData.getOrDefault("NextToken") - valid_619679 = validateParameter(valid_619679, JString, required = false, - default = nil) - if valid_619679 != nil: - section.add "NextToken", valid_619679 - var valid_619680 = formData.getOrDefault("MaxResults") - valid_619680 = validateParameter(valid_619680, JInt, required = false, default = nil) - if valid_619680 != nil: - section.add "MaxResults", valid_619680 - var valid_619681 = formData.getOrDefault("PoolId") - valid_619681 = validateParameter(valid_619681, JArray, required = false, + var valid_619681 = formData.getOrDefault("NextToken") + valid_619681 = validateParameter(valid_619681, JString, required = false, default = nil) if valid_619681 != nil: - section.add "PoolId", valid_619681 - var valid_619682 = formData.getOrDefault("Filter") - valid_619682 = validateParameter(valid_619682, JArray, required = false, - default = nil) + section.add "NextToken", valid_619681 + var valid_619682 = formData.getOrDefault("MaxResults") + valid_619682 = validateParameter(valid_619682, JInt, required = false, default = nil) if valid_619682 != nil: - section.add "Filter", valid_619682 + section.add "MaxResults", valid_619682 + var valid_619683 = formData.getOrDefault("PoolId") + valid_619683 = validateParameter(valid_619683, JArray, required = false, + default = nil) + if valid_619683 != nil: + section.add "PoolId", valid_619683 + var valid_619684 = formData.getOrDefault("Filter") + valid_619684 = validateParameter(valid_619684, JArray, required = false, + default = nil) + if valid_619684 != nil: + section.add "Filter", valid_619684 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619683: Call_PostDescribePublicIpv4Pools_619667; path: JsonNode; +proc call*(call_619685: Call_PostDescribePublicIpv4Pools_619669; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the specified IPv4 address pools. ## - let valid = call_619683.validator(path, query, header, formData, body) - let scheme = call_619683.pickScheme + let valid = call_619685.validator(path, query, header, formData, body) + let scheme = call_619685.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619683.url(scheme.get, call_619683.host, call_619683.base, - call_619683.route, valid.getOrDefault("path"), + let url = call_619685.url(scheme.get, call_619685.host, call_619685.base, + call_619685.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619683, url, valid) + result = atozHook(call_619685, url, valid) -proc call*(call_619684: Call_PostDescribePublicIpv4Pools_619667; +proc call*(call_619686: Call_PostDescribePublicIpv4Pools_619669; NextToken: string = ""; Action: string = "DescribePublicIpv4Pools"; Version: string = "2016-11-15"; MaxResults: int = 0; PoolId: JsonNode = nil; Filter: JsonNode = nil): Recallable = @@ -70261,27 +70288,27 @@ proc call*(call_619684: Call_PostDescribePublicIpv4Pools_619667; ## : The IDs of the address pools. ## Filter: JArray ## :

One or more filters.

- var query_619685 = newJObject() - var formData_619686 = newJObject() - add(formData_619686, "NextToken", newJString(NextToken)) - add(query_619685, "Action", newJString(Action)) - add(query_619685, "Version", newJString(Version)) - add(formData_619686, "MaxResults", newJInt(MaxResults)) + var query_619687 = newJObject() + var formData_619688 = newJObject() + add(formData_619688, "NextToken", newJString(NextToken)) + add(query_619687, "Action", newJString(Action)) + add(query_619687, "Version", newJString(Version)) + add(formData_619688, "MaxResults", newJInt(MaxResults)) if PoolId != nil: - formData_619686.add "PoolId", PoolId + formData_619688.add "PoolId", PoolId if Filter != nil: - formData_619686.add "Filter", Filter - result = call_619684.call(nil, query_619685, nil, formData_619686, nil) + formData_619688.add "Filter", Filter + result = call_619686.call(nil, query_619687, nil, formData_619688, nil) -var postDescribePublicIpv4Pools* = Call_PostDescribePublicIpv4Pools_619667( +var postDescribePublicIpv4Pools* = Call_PostDescribePublicIpv4Pools_619669( name: "postDescribePublicIpv4Pools", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribePublicIpv4Pools", - validator: validate_PostDescribePublicIpv4Pools_619668, base: "/", - url: url_PostDescribePublicIpv4Pools_619669, + validator: validate_PostDescribePublicIpv4Pools_619670, base: "/", + url: url_PostDescribePublicIpv4Pools_619671, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribePublicIpv4Pools_619648 = ref object of OpenApiRestCall_610658 -proc url_GetDescribePublicIpv4Pools_619650(protocol: Scheme; host: string; + Call_GetDescribePublicIpv4Pools_619650 = ref object of OpenApiRestCall_610658 +proc url_GetDescribePublicIpv4Pools_619652(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -70291,7 +70318,7 @@ proc url_GetDescribePublicIpv4Pools_619650(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribePublicIpv4Pools_619649(path: JsonNode; query: JsonNode; +proc validate_GetDescribePublicIpv4Pools_619651(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the specified IPv4 address pools. ## @@ -70311,35 +70338,35 @@ proc validate_GetDescribePublicIpv4Pools_619649(path: JsonNode; query: JsonNode; ## : The IDs of the address pools. ## Version: JString (required) section = newJObject() - var valid_619651 = query.getOrDefault("MaxResults") - valid_619651 = validateParameter(valid_619651, JInt, required = false, default = nil) - if valid_619651 != nil: - section.add "MaxResults", valid_619651 - var valid_619652 = query.getOrDefault("NextToken") - valid_619652 = validateParameter(valid_619652, JString, required = false, - default = nil) - if valid_619652 != nil: - section.add "NextToken", valid_619652 - var valid_619653 = query.getOrDefault("Filter") - valid_619653 = validateParameter(valid_619653, JArray, required = false, - default = nil) + var valid_619653 = query.getOrDefault("MaxResults") + valid_619653 = validateParameter(valid_619653, JInt, required = false, default = nil) if valid_619653 != nil: - section.add "Filter", valid_619653 - var valid_619654 = query.getOrDefault("Action") - valid_619654 = validateParameter(valid_619654, JString, required = true, default = newJString( - "DescribePublicIpv4Pools")) + section.add "MaxResults", valid_619653 + var valid_619654 = query.getOrDefault("NextToken") + valid_619654 = validateParameter(valid_619654, JString, required = false, + default = nil) if valid_619654 != nil: - section.add "Action", valid_619654 - var valid_619655 = query.getOrDefault("PoolId") + section.add "NextToken", valid_619654 + var valid_619655 = query.getOrDefault("Filter") valid_619655 = validateParameter(valid_619655, JArray, required = false, default = nil) if valid_619655 != nil: - section.add "PoolId", valid_619655 - var valid_619656 = query.getOrDefault("Version") - valid_619656 = validateParameter(valid_619656, JString, required = true, - default = newJString("2016-11-15")) + section.add "Filter", valid_619655 + var valid_619656 = query.getOrDefault("Action") + valid_619656 = validateParameter(valid_619656, JString, required = true, default = newJString( + "DescribePublicIpv4Pools")) if valid_619656 != nil: - section.add "Version", valid_619656 + section.add "Action", valid_619656 + var valid_619657 = query.getOrDefault("PoolId") + valid_619657 = validateParameter(valid_619657, JArray, required = false, + default = nil) + if valid_619657 != nil: + section.add "PoolId", valid_619657 + var valid_619658 = query.getOrDefault("Version") + valid_619658 = validateParameter(valid_619658, JString, required = true, + default = newJString("2016-11-15")) + if valid_619658 != nil: + section.add "Version", valid_619658 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -70350,61 +70377,61 @@ proc validate_GetDescribePublicIpv4Pools_619649(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619657 = header.getOrDefault("X-Amz-Signature") - valid_619657 = validateParameter(valid_619657, JString, required = false, - default = nil) - if valid_619657 != nil: - section.add "X-Amz-Signature", valid_619657 - var valid_619658 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619658 = validateParameter(valid_619658, JString, required = false, - default = nil) - if valid_619658 != nil: - section.add "X-Amz-Content-Sha256", valid_619658 - var valid_619659 = header.getOrDefault("X-Amz-Date") + var valid_619659 = header.getOrDefault("X-Amz-Signature") valid_619659 = validateParameter(valid_619659, JString, required = false, default = nil) if valid_619659 != nil: - section.add "X-Amz-Date", valid_619659 - var valid_619660 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619659 + var valid_619660 = header.getOrDefault("X-Amz-Content-Sha256") valid_619660 = validateParameter(valid_619660, JString, required = false, default = nil) if valid_619660 != nil: - section.add "X-Amz-Credential", valid_619660 - var valid_619661 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619660 + var valid_619661 = header.getOrDefault("X-Amz-Date") valid_619661 = validateParameter(valid_619661, JString, required = false, default = nil) if valid_619661 != nil: - section.add "X-Amz-Security-Token", valid_619661 - var valid_619662 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619661 + var valid_619662 = header.getOrDefault("X-Amz-Credential") valid_619662 = validateParameter(valid_619662, JString, required = false, default = nil) if valid_619662 != nil: - section.add "X-Amz-Algorithm", valid_619662 - var valid_619663 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619662 + var valid_619663 = header.getOrDefault("X-Amz-Security-Token") valid_619663 = validateParameter(valid_619663, JString, required = false, default = nil) if valid_619663 != nil: - section.add "X-Amz-SignedHeaders", valid_619663 + section.add "X-Amz-Security-Token", valid_619663 + var valid_619664 = header.getOrDefault("X-Amz-Algorithm") + valid_619664 = validateParameter(valid_619664, JString, required = false, + default = nil) + if valid_619664 != nil: + section.add "X-Amz-Algorithm", valid_619664 + var valid_619665 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619665 = validateParameter(valid_619665, JString, required = false, + default = nil) + if valid_619665 != nil: + section.add "X-Amz-SignedHeaders", valid_619665 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619664: Call_GetDescribePublicIpv4Pools_619648; path: JsonNode; +proc call*(call_619666: Call_GetDescribePublicIpv4Pools_619650; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the specified IPv4 address pools. ## - let valid = call_619664.validator(path, query, header, formData, body) - let scheme = call_619664.pickScheme + let valid = call_619666.validator(path, query, header, formData, body) + let scheme = call_619666.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619664.url(scheme.get, call_619664.host, call_619664.base, - call_619664.route, valid.getOrDefault("path"), + let url = call_619666.url(scheme.get, call_619666.host, call_619666.base, + call_619666.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619664, url, valid) + result = atozHook(call_619666, url, valid) -proc call*(call_619665: Call_GetDescribePublicIpv4Pools_619648; +proc call*(call_619667: Call_GetDescribePublicIpv4Pools_619650; MaxResults: int = 0; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribePublicIpv4Pools"; PoolId: JsonNode = nil; Version: string = "2016-11-15"): Recallable = @@ -70420,26 +70447,26 @@ proc call*(call_619665: Call_GetDescribePublicIpv4Pools_619648; ## PoolId: JArray ## : The IDs of the address pools. ## Version: string (required) - var query_619666 = newJObject() - add(query_619666, "MaxResults", newJInt(MaxResults)) - add(query_619666, "NextToken", newJString(NextToken)) + var query_619668 = newJObject() + add(query_619668, "MaxResults", newJInt(MaxResults)) + add(query_619668, "NextToken", newJString(NextToken)) if Filter != nil: - query_619666.add "Filter", Filter - add(query_619666, "Action", newJString(Action)) + query_619668.add "Filter", Filter + add(query_619668, "Action", newJString(Action)) if PoolId != nil: - query_619666.add "PoolId", PoolId - add(query_619666, "Version", newJString(Version)) - result = call_619665.call(nil, query_619666, nil, nil, nil) + query_619668.add "PoolId", PoolId + add(query_619668, "Version", newJString(Version)) + result = call_619667.call(nil, query_619668, nil, nil, nil) -var getDescribePublicIpv4Pools* = Call_GetDescribePublicIpv4Pools_619648( +var getDescribePublicIpv4Pools* = Call_GetDescribePublicIpv4Pools_619650( name: "getDescribePublicIpv4Pools", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribePublicIpv4Pools", - validator: validate_GetDescribePublicIpv4Pools_619649, base: "/", - url: url_GetDescribePublicIpv4Pools_619650, + validator: validate_GetDescribePublicIpv4Pools_619651, base: "/", + url: url_GetDescribePublicIpv4Pools_619652, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeRegions_619706 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeRegions_619708(protocol: Scheme; host: string; base: string; + Call_PostDescribeRegions_619708 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeRegions_619710(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -70449,7 +70476,7 @@ proc url_PostDescribeRegions_619708(protocol: Scheme; host: string; base: string else: result.path = base & route -proc validate_PostDescribeRegions_619707(path: JsonNode; query: JsonNode; +proc validate_PostDescribeRegions_619709(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the Regions that are enabled for your account, or all Regions.

For a list of the Regions supported by Amazon EC2, see Regions and Endpoints.

For information about enabling and disabling Regions for your account, see Managing AWS Regions in the AWS General Reference.

@@ -70462,16 +70489,16 @@ proc validate_PostDescribeRegions_619707(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619709 = query.getOrDefault("Action") - valid_619709 = validateParameter(valid_619709, JString, required = true, + var valid_619711 = query.getOrDefault("Action") + valid_619711 = validateParameter(valid_619711, JString, required = true, default = newJString("DescribeRegions")) - if valid_619709 != nil: - section.add "Action", valid_619709 - var valid_619710 = query.getOrDefault("Version") - valid_619710 = validateParameter(valid_619710, JString, required = true, + if valid_619711 != nil: + section.add "Action", valid_619711 + var valid_619712 = query.getOrDefault("Version") + valid_619712 = validateParameter(valid_619712, JString, required = true, default = newJString("2016-11-15")) - if valid_619710 != nil: - section.add "Version", valid_619710 + if valid_619712 != nil: + section.add "Version", valid_619712 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -70482,41 +70509,41 @@ proc validate_PostDescribeRegions_619707(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619711 = header.getOrDefault("X-Amz-Signature") - valid_619711 = validateParameter(valid_619711, JString, required = false, - default = nil) - if valid_619711 != nil: - section.add "X-Amz-Signature", valid_619711 - var valid_619712 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619712 = validateParameter(valid_619712, JString, required = false, - default = nil) - if valid_619712 != nil: - section.add "X-Amz-Content-Sha256", valid_619712 - var valid_619713 = header.getOrDefault("X-Amz-Date") + var valid_619713 = header.getOrDefault("X-Amz-Signature") valid_619713 = validateParameter(valid_619713, JString, required = false, default = nil) if valid_619713 != nil: - section.add "X-Amz-Date", valid_619713 - var valid_619714 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619713 + var valid_619714 = header.getOrDefault("X-Amz-Content-Sha256") valid_619714 = validateParameter(valid_619714, JString, required = false, default = nil) if valid_619714 != nil: - section.add "X-Amz-Credential", valid_619714 - var valid_619715 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619714 + var valid_619715 = header.getOrDefault("X-Amz-Date") valid_619715 = validateParameter(valid_619715, JString, required = false, default = nil) if valid_619715 != nil: - section.add "X-Amz-Security-Token", valid_619715 - var valid_619716 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619715 + var valid_619716 = header.getOrDefault("X-Amz-Credential") valid_619716 = validateParameter(valid_619716, JString, required = false, default = nil) if valid_619716 != nil: - section.add "X-Amz-Algorithm", valid_619716 - var valid_619717 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619716 + var valid_619717 = header.getOrDefault("X-Amz-Security-Token") valid_619717 = validateParameter(valid_619717, JString, required = false, default = nil) if valid_619717 != nil: - section.add "X-Amz-SignedHeaders", valid_619717 + section.add "X-Amz-Security-Token", valid_619717 + var valid_619718 = header.getOrDefault("X-Amz-Algorithm") + valid_619718 = validateParameter(valid_619718, JString, required = false, + default = nil) + if valid_619718 != nil: + section.add "X-Amz-Algorithm", valid_619718 + var valid_619719 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619719 = validateParameter(valid_619719, JString, required = false, + default = nil) + if valid_619719 != nil: + section.add "X-Amz-SignedHeaders", valid_619719 result.add "header", section ## parameters in `formData` object: ## AllRegions: JBool @@ -70528,42 +70555,42 @@ proc validate_PostDescribeRegions_619707(path: JsonNode; query: JsonNode; ## Filter: JArray ## :

The filters.

section = newJObject() - var valid_619718 = formData.getOrDefault("AllRegions") - valid_619718 = validateParameter(valid_619718, JBool, required = false, default = nil) - if valid_619718 != nil: - section.add "AllRegions", valid_619718 - var valid_619719 = formData.getOrDefault("DryRun") - valid_619719 = validateParameter(valid_619719, JBool, required = false, default = nil) - if valid_619719 != nil: - section.add "DryRun", valid_619719 - var valid_619720 = formData.getOrDefault("RegionName") - valid_619720 = validateParameter(valid_619720, JArray, required = false, - default = nil) + var valid_619720 = formData.getOrDefault("AllRegions") + valid_619720 = validateParameter(valid_619720, JBool, required = false, default = nil) if valid_619720 != nil: - section.add "RegionName", valid_619720 - var valid_619721 = formData.getOrDefault("Filter") - valid_619721 = validateParameter(valid_619721, JArray, required = false, - default = nil) + section.add "AllRegions", valid_619720 + var valid_619721 = formData.getOrDefault("DryRun") + valid_619721 = validateParameter(valid_619721, JBool, required = false, default = nil) if valid_619721 != nil: - section.add "Filter", valid_619721 + section.add "DryRun", valid_619721 + var valid_619722 = formData.getOrDefault("RegionName") + valid_619722 = validateParameter(valid_619722, JArray, required = false, + default = nil) + if valid_619722 != nil: + section.add "RegionName", valid_619722 + var valid_619723 = formData.getOrDefault("Filter") + valid_619723 = validateParameter(valid_619723, JArray, required = false, + default = nil) + if valid_619723 != nil: + section.add "Filter", valid_619723 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619722: Call_PostDescribeRegions_619706; path: JsonNode; +proc call*(call_619724: Call_PostDescribeRegions_619708; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the Regions that are enabled for your account, or all Regions.

For a list of the Regions supported by Amazon EC2, see Regions and Endpoints.

For information about enabling and disabling Regions for your account, see Managing AWS Regions in the AWS General Reference.

## - let valid = call_619722.validator(path, query, header, formData, body) - let scheme = call_619722.pickScheme + let valid = call_619724.validator(path, query, header, formData, body) + let scheme = call_619724.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619722.url(scheme.get, call_619722.host, call_619722.base, - call_619722.route, valid.getOrDefault("path"), + let url = call_619724.url(scheme.get, call_619724.host, call_619724.base, + call_619724.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619722, url, valid) + result = atozHook(call_619724, url, valid) -proc call*(call_619723: Call_PostDescribeRegions_619706; AllRegions: bool = false; +proc call*(call_619725: Call_PostDescribeRegions_619708; AllRegions: bool = false; DryRun: bool = false; Action: string = "DescribeRegions"; Version: string = "2016-11-15"; RegionName: JsonNode = nil; Filter: JsonNode = nil): Recallable = @@ -70579,26 +70606,26 @@ proc call*(call_619723: Call_PostDescribeRegions_619706; AllRegions: bool = fals ## : The names of the Regions. You can specify any Regions, whether they are enabled and disabled for your account. ## Filter: JArray ## :

The filters.

- var query_619724 = newJObject() - var formData_619725 = newJObject() - add(formData_619725, "AllRegions", newJBool(AllRegions)) - add(formData_619725, "DryRun", newJBool(DryRun)) - add(query_619724, "Action", newJString(Action)) - add(query_619724, "Version", newJString(Version)) + var query_619726 = newJObject() + var formData_619727 = newJObject() + add(formData_619727, "AllRegions", newJBool(AllRegions)) + add(formData_619727, "DryRun", newJBool(DryRun)) + add(query_619726, "Action", newJString(Action)) + add(query_619726, "Version", newJString(Version)) if RegionName != nil: - formData_619725.add "RegionName", RegionName + formData_619727.add "RegionName", RegionName if Filter != nil: - formData_619725.add "Filter", Filter - result = call_619723.call(nil, query_619724, nil, formData_619725, nil) + formData_619727.add "Filter", Filter + result = call_619725.call(nil, query_619726, nil, formData_619727, nil) -var postDescribeRegions* = Call_PostDescribeRegions_619706( +var postDescribeRegions* = Call_PostDescribeRegions_619708( name: "postDescribeRegions", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeRegions", - validator: validate_PostDescribeRegions_619707, base: "/", - url: url_PostDescribeRegions_619708, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDescribeRegions_619709, base: "/", + url: url_PostDescribeRegions_619710, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeRegions_619687 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeRegions_619689(protocol: Scheme; host: string; base: string; + Call_GetDescribeRegions_619689 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeRegions_619691(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -70608,7 +70635,7 @@ proc url_GetDescribeRegions_619689(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetDescribeRegions_619688(path: JsonNode; query: JsonNode; +proc validate_GetDescribeRegions_619690(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the Regions that are enabled for your account, or all Regions.

For a list of the Regions supported by Amazon EC2, see Regions and Endpoints.

For information about enabling and disabling Regions for your account, see Managing AWS Regions in the AWS General Reference.

@@ -70629,34 +70656,34 @@ proc validate_GetDescribeRegions_619688(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619690 = query.getOrDefault("DryRun") - valid_619690 = validateParameter(valid_619690, JBool, required = false, default = nil) - if valid_619690 != nil: - section.add "DryRun", valid_619690 - var valid_619691 = query.getOrDefault("AllRegions") - valid_619691 = validateParameter(valid_619691, JBool, required = false, default = nil) - if valid_619691 != nil: - section.add "AllRegions", valid_619691 - var valid_619692 = query.getOrDefault("Filter") - valid_619692 = validateParameter(valid_619692, JArray, required = false, - default = nil) + var valid_619692 = query.getOrDefault("DryRun") + valid_619692 = validateParameter(valid_619692, JBool, required = false, default = nil) if valid_619692 != nil: - section.add "Filter", valid_619692 - var valid_619693 = query.getOrDefault("RegionName") - valid_619693 = validateParameter(valid_619693, JArray, required = false, - default = nil) + section.add "DryRun", valid_619692 + var valid_619693 = query.getOrDefault("AllRegions") + valid_619693 = validateParameter(valid_619693, JBool, required = false, default = nil) if valid_619693 != nil: - section.add "RegionName", valid_619693 - var valid_619694 = query.getOrDefault("Action") - valid_619694 = validateParameter(valid_619694, JString, required = true, - default = newJString("DescribeRegions")) + section.add "AllRegions", valid_619693 + var valid_619694 = query.getOrDefault("Filter") + valid_619694 = validateParameter(valid_619694, JArray, required = false, + default = nil) if valid_619694 != nil: - section.add "Action", valid_619694 - var valid_619695 = query.getOrDefault("Version") - valid_619695 = validateParameter(valid_619695, JString, required = true, - default = newJString("2016-11-15")) + section.add "Filter", valid_619694 + var valid_619695 = query.getOrDefault("RegionName") + valid_619695 = validateParameter(valid_619695, JArray, required = false, + default = nil) if valid_619695 != nil: - section.add "Version", valid_619695 + section.add "RegionName", valid_619695 + var valid_619696 = query.getOrDefault("Action") + valid_619696 = validateParameter(valid_619696, JString, required = true, + default = newJString("DescribeRegions")) + if valid_619696 != nil: + section.add "Action", valid_619696 + var valid_619697 = query.getOrDefault("Version") + valid_619697 = validateParameter(valid_619697, JString, required = true, + default = newJString("2016-11-15")) + if valid_619697 != nil: + section.add "Version", valid_619697 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -70667,61 +70694,61 @@ proc validate_GetDescribeRegions_619688(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619696 = header.getOrDefault("X-Amz-Signature") - valid_619696 = validateParameter(valid_619696, JString, required = false, - default = nil) - if valid_619696 != nil: - section.add "X-Amz-Signature", valid_619696 - var valid_619697 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619697 = validateParameter(valid_619697, JString, required = false, - default = nil) - if valid_619697 != nil: - section.add "X-Amz-Content-Sha256", valid_619697 - var valid_619698 = header.getOrDefault("X-Amz-Date") + var valid_619698 = header.getOrDefault("X-Amz-Signature") valid_619698 = validateParameter(valid_619698, JString, required = false, default = nil) if valid_619698 != nil: - section.add "X-Amz-Date", valid_619698 - var valid_619699 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619698 + var valid_619699 = header.getOrDefault("X-Amz-Content-Sha256") valid_619699 = validateParameter(valid_619699, JString, required = false, default = nil) if valid_619699 != nil: - section.add "X-Amz-Credential", valid_619699 - var valid_619700 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619699 + var valid_619700 = header.getOrDefault("X-Amz-Date") valid_619700 = validateParameter(valid_619700, JString, required = false, default = nil) if valid_619700 != nil: - section.add "X-Amz-Security-Token", valid_619700 - var valid_619701 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619700 + var valid_619701 = header.getOrDefault("X-Amz-Credential") valid_619701 = validateParameter(valid_619701, JString, required = false, default = nil) if valid_619701 != nil: - section.add "X-Amz-Algorithm", valid_619701 - var valid_619702 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619701 + var valid_619702 = header.getOrDefault("X-Amz-Security-Token") valid_619702 = validateParameter(valid_619702, JString, required = false, default = nil) if valid_619702 != nil: - section.add "X-Amz-SignedHeaders", valid_619702 + section.add "X-Amz-Security-Token", valid_619702 + var valid_619703 = header.getOrDefault("X-Amz-Algorithm") + valid_619703 = validateParameter(valid_619703, JString, required = false, + default = nil) + if valid_619703 != nil: + section.add "X-Amz-Algorithm", valid_619703 + var valid_619704 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619704 = validateParameter(valid_619704, JString, required = false, + default = nil) + if valid_619704 != nil: + section.add "X-Amz-SignedHeaders", valid_619704 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619703: Call_GetDescribeRegions_619687; path: JsonNode; +proc call*(call_619705: Call_GetDescribeRegions_619689; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the Regions that are enabled for your account, or all Regions.

For a list of the Regions supported by Amazon EC2, see Regions and Endpoints.

For information about enabling and disabling Regions for your account, see Managing AWS Regions in the AWS General Reference.

## - let valid = call_619703.validator(path, query, header, formData, body) - let scheme = call_619703.pickScheme + let valid = call_619705.validator(path, query, header, formData, body) + let scheme = call_619705.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619703.url(scheme.get, call_619703.host, call_619703.base, - call_619703.route, valid.getOrDefault("path"), + let url = call_619705.url(scheme.get, call_619705.host, call_619705.base, + call_619705.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619703, url, valid) + result = atozHook(call_619705, url, valid) -proc call*(call_619704: Call_GetDescribeRegions_619687; DryRun: bool = false; +proc call*(call_619706: Call_GetDescribeRegions_619689; DryRun: bool = false; AllRegions: bool = false; Filter: JsonNode = nil; RegionName: JsonNode = nil; Action: string = "DescribeRegions"; Version: string = "2016-11-15"): Recallable = ## getDescribeRegions @@ -70736,25 +70763,25 @@ proc call*(call_619704: Call_GetDescribeRegions_619687; DryRun: bool = false; ## : The names of the Regions. You can specify any Regions, whether they are enabled and disabled for your account. ## Action: string (required) ## Version: string (required) - var query_619705 = newJObject() - add(query_619705, "DryRun", newJBool(DryRun)) - add(query_619705, "AllRegions", newJBool(AllRegions)) + var query_619707 = newJObject() + add(query_619707, "DryRun", newJBool(DryRun)) + add(query_619707, "AllRegions", newJBool(AllRegions)) if Filter != nil: - query_619705.add "Filter", Filter + query_619707.add "Filter", Filter if RegionName != nil: - query_619705.add "RegionName", RegionName - add(query_619705, "Action", newJString(Action)) - add(query_619705, "Version", newJString(Version)) - result = call_619704.call(nil, query_619705, nil, nil, nil) + query_619707.add "RegionName", RegionName + add(query_619707, "Action", newJString(Action)) + add(query_619707, "Version", newJString(Version)) + result = call_619706.call(nil, query_619707, nil, nil, nil) -var getDescribeRegions* = Call_GetDescribeRegions_619687( +var getDescribeRegions* = Call_GetDescribeRegions_619689( name: "getDescribeRegions", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=DescribeRegions", validator: validate_GetDescribeRegions_619688, - base: "/", url: url_GetDescribeRegions_619689, + route: "/#Action=DescribeRegions", validator: validate_GetDescribeRegions_619690, + base: "/", url: url_GetDescribeRegions_619691, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeReservedInstances_619746 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeReservedInstances_619748(protocol: Scheme; host: string; + Call_PostDescribeReservedInstances_619748 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeReservedInstances_619750(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -70764,7 +70791,7 @@ proc url_PostDescribeReservedInstances_619748(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeReservedInstances_619747(path: JsonNode; query: JsonNode; +proc validate_PostDescribeReservedInstances_619749(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes one or more of the Reserved Instances that you purchased.

For more information about Reserved Instances, see Reserved Instances in the Amazon Elastic Compute Cloud User Guide.

## @@ -70776,16 +70803,16 @@ proc validate_PostDescribeReservedInstances_619747(path: JsonNode; query: JsonNo ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619749 = query.getOrDefault("Action") - valid_619749 = validateParameter(valid_619749, JString, required = true, default = newJString( + var valid_619751 = query.getOrDefault("Action") + valid_619751 = validateParameter(valid_619751, JString, required = true, default = newJString( "DescribeReservedInstances")) - if valid_619749 != nil: - section.add "Action", valid_619749 - var valid_619750 = query.getOrDefault("Version") - valid_619750 = validateParameter(valid_619750, JString, required = true, + if valid_619751 != nil: + section.add "Action", valid_619751 + var valid_619752 = query.getOrDefault("Version") + valid_619752 = validateParameter(valid_619752, JString, required = true, default = newJString("2016-11-15")) - if valid_619750 != nil: - section.add "Version", valid_619750 + if valid_619752 != nil: + section.add "Version", valid_619752 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -70796,41 +70823,41 @@ proc validate_PostDescribeReservedInstances_619747(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619751 = header.getOrDefault("X-Amz-Signature") - valid_619751 = validateParameter(valid_619751, JString, required = false, - default = nil) - if valid_619751 != nil: - section.add "X-Amz-Signature", valid_619751 - var valid_619752 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619752 = validateParameter(valid_619752, JString, required = false, - default = nil) - if valid_619752 != nil: - section.add "X-Amz-Content-Sha256", valid_619752 - var valid_619753 = header.getOrDefault("X-Amz-Date") + var valid_619753 = header.getOrDefault("X-Amz-Signature") valid_619753 = validateParameter(valid_619753, JString, required = false, default = nil) if valid_619753 != nil: - section.add "X-Amz-Date", valid_619753 - var valid_619754 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619753 + var valid_619754 = header.getOrDefault("X-Amz-Content-Sha256") valid_619754 = validateParameter(valid_619754, JString, required = false, default = nil) if valid_619754 != nil: - section.add "X-Amz-Credential", valid_619754 - var valid_619755 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619754 + var valid_619755 = header.getOrDefault("X-Amz-Date") valid_619755 = validateParameter(valid_619755, JString, required = false, default = nil) if valid_619755 != nil: - section.add "X-Amz-Security-Token", valid_619755 - var valid_619756 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619755 + var valid_619756 = header.getOrDefault("X-Amz-Credential") valid_619756 = validateParameter(valid_619756, JString, required = false, default = nil) if valid_619756 != nil: - section.add "X-Amz-Algorithm", valid_619756 - var valid_619757 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619756 + var valid_619757 = header.getOrDefault("X-Amz-Security-Token") valid_619757 = validateParameter(valid_619757, JString, required = false, default = nil) if valid_619757 != nil: - section.add "X-Amz-SignedHeaders", valid_619757 + section.add "X-Amz-Security-Token", valid_619757 + var valid_619758 = header.getOrDefault("X-Amz-Algorithm") + valid_619758 = validateParameter(valid_619758, JString, required = false, + default = nil) + if valid_619758 != nil: + section.add "X-Amz-Algorithm", valid_619758 + var valid_619759 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619759 = validateParameter(valid_619759, JString, required = false, + default = nil) + if valid_619759 != nil: + section.add "X-Amz-SignedHeaders", valid_619759 result.add "header", section ## parameters in `formData` object: ## OfferingClass: JString @@ -70844,48 +70871,48 @@ proc validate_PostDescribeReservedInstances_619747(path: JsonNode; query: JsonNo ## Filter: JArray ## :

One or more filters.

section = newJObject() - var valid_619758 = formData.getOrDefault("OfferingClass") - valid_619758 = validateParameter(valid_619758, JString, required = false, - default = newJString("standard")) - if valid_619758 != nil: - section.add "OfferingClass", valid_619758 - var valid_619759 = formData.getOrDefault("ReservedInstancesId") - valid_619759 = validateParameter(valid_619759, JArray, required = false, - default = nil) - if valid_619759 != nil: - section.add "ReservedInstancesId", valid_619759 - var valid_619760 = formData.getOrDefault("OfferingType") + var valid_619760 = formData.getOrDefault("OfferingClass") valid_619760 = validateParameter(valid_619760, JString, required = false, - default = newJString("Heavy Utilization")) + default = newJString("standard")) if valid_619760 != nil: - section.add "OfferingType", valid_619760 - var valid_619761 = formData.getOrDefault("DryRun") - valid_619761 = validateParameter(valid_619761, JBool, required = false, default = nil) - if valid_619761 != nil: - section.add "DryRun", valid_619761 - var valid_619762 = formData.getOrDefault("Filter") - valid_619762 = validateParameter(valid_619762, JArray, required = false, + section.add "OfferingClass", valid_619760 + var valid_619761 = formData.getOrDefault("ReservedInstancesId") + valid_619761 = validateParameter(valid_619761, JArray, required = false, default = nil) + if valid_619761 != nil: + section.add "ReservedInstancesId", valid_619761 + var valid_619762 = formData.getOrDefault("OfferingType") + valid_619762 = validateParameter(valid_619762, JString, required = false, + default = newJString("Heavy Utilization")) if valid_619762 != nil: - section.add "Filter", valid_619762 + section.add "OfferingType", valid_619762 + var valid_619763 = formData.getOrDefault("DryRun") + valid_619763 = validateParameter(valid_619763, JBool, required = false, default = nil) + if valid_619763 != nil: + section.add "DryRun", valid_619763 + var valid_619764 = formData.getOrDefault("Filter") + valid_619764 = validateParameter(valid_619764, JArray, required = false, + default = nil) + if valid_619764 != nil: + section.add "Filter", valid_619764 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619763: Call_PostDescribeReservedInstances_619746; path: JsonNode; +proc call*(call_619765: Call_PostDescribeReservedInstances_619748; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes one or more of the Reserved Instances that you purchased.

For more information about Reserved Instances, see Reserved Instances in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_619763.validator(path, query, header, formData, body) - let scheme = call_619763.pickScheme + let valid = call_619765.validator(path, query, header, formData, body) + let scheme = call_619765.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619763.url(scheme.get, call_619763.host, call_619763.base, - call_619763.route, valid.getOrDefault("path"), + let url = call_619765.url(scheme.get, call_619765.host, call_619765.base, + call_619765.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619763, url, valid) + result = atozHook(call_619765, url, valid) -proc call*(call_619764: Call_PostDescribeReservedInstances_619746; +proc call*(call_619766: Call_PostDescribeReservedInstances_619748; OfferingClass: string = "standard"; ReservedInstancesId: JsonNode = nil; OfferingType: string = "Heavy Utilization"; DryRun: bool = false; Action: string = "DescribeReservedInstances"; @@ -70904,28 +70931,28 @@ proc call*(call_619764: Call_PostDescribeReservedInstances_619746; ## Version: string (required) ## Filter: JArray ## :

One or more filters.

- var query_619765 = newJObject() - var formData_619766 = newJObject() - add(formData_619766, "OfferingClass", newJString(OfferingClass)) + var query_619767 = newJObject() + var formData_619768 = newJObject() + add(formData_619768, "OfferingClass", newJString(OfferingClass)) if ReservedInstancesId != nil: - formData_619766.add "ReservedInstancesId", ReservedInstancesId - add(formData_619766, "OfferingType", newJString(OfferingType)) - add(formData_619766, "DryRun", newJBool(DryRun)) - add(query_619765, "Action", newJString(Action)) - add(query_619765, "Version", newJString(Version)) + formData_619768.add "ReservedInstancesId", ReservedInstancesId + add(formData_619768, "OfferingType", newJString(OfferingType)) + add(formData_619768, "DryRun", newJBool(DryRun)) + add(query_619767, "Action", newJString(Action)) + add(query_619767, "Version", newJString(Version)) if Filter != nil: - formData_619766.add "Filter", Filter - result = call_619764.call(nil, query_619765, nil, formData_619766, nil) + formData_619768.add "Filter", Filter + result = call_619766.call(nil, query_619767, nil, formData_619768, nil) -var postDescribeReservedInstances* = Call_PostDescribeReservedInstances_619746( +var postDescribeReservedInstances* = Call_PostDescribeReservedInstances_619748( name: "postDescribeReservedInstances", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeReservedInstances", - validator: validate_PostDescribeReservedInstances_619747, base: "/", - url: url_PostDescribeReservedInstances_619748, + validator: validate_PostDescribeReservedInstances_619749, base: "/", + url: url_PostDescribeReservedInstances_619750, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeReservedInstances_619726 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeReservedInstances_619728(protocol: Scheme; host: string; + Call_GetDescribeReservedInstances_619728 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeReservedInstances_619730(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -70935,7 +70962,7 @@ proc url_GetDescribeReservedInstances_619728(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeReservedInstances_619727(path: JsonNode; query: JsonNode; +proc validate_GetDescribeReservedInstances_619729(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes one or more of the Reserved Instances that you purchased.

For more information about Reserved Instances, see Reserved Instances in the Amazon Elastic Compute Cloud User Guide.

## @@ -70957,40 +70984,40 @@ proc validate_GetDescribeReservedInstances_619727(path: JsonNode; query: JsonNod ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619729 = query.getOrDefault("ReservedInstancesId") - valid_619729 = validateParameter(valid_619729, JArray, required = false, + var valid_619731 = query.getOrDefault("ReservedInstancesId") + valid_619731 = validateParameter(valid_619731, JArray, required = false, default = nil) - if valid_619729 != nil: - section.add "ReservedInstancesId", valid_619729 - var valid_619730 = query.getOrDefault("DryRun") - valid_619730 = validateParameter(valid_619730, JBool, required = false, default = nil) - if valid_619730 != nil: - section.add "DryRun", valid_619730 - var valid_619731 = query.getOrDefault("OfferingType") - valid_619731 = validateParameter(valid_619731, JString, required = false, - default = newJString("Heavy Utilization")) if valid_619731 != nil: - section.add "OfferingType", valid_619731 - var valid_619732 = query.getOrDefault("OfferingClass") - valid_619732 = validateParameter(valid_619732, JString, required = false, - default = newJString("standard")) + section.add "ReservedInstancesId", valid_619731 + var valid_619732 = query.getOrDefault("DryRun") + valid_619732 = validateParameter(valid_619732, JBool, required = false, default = nil) if valid_619732 != nil: - section.add "OfferingClass", valid_619732 - var valid_619733 = query.getOrDefault("Filter") - valid_619733 = validateParameter(valid_619733, JArray, required = false, - default = nil) + section.add "DryRun", valid_619732 + var valid_619733 = query.getOrDefault("OfferingType") + valid_619733 = validateParameter(valid_619733, JString, required = false, + default = newJString("Heavy Utilization")) if valid_619733 != nil: - section.add "Filter", valid_619733 - var valid_619734 = query.getOrDefault("Action") - valid_619734 = validateParameter(valid_619734, JString, required = true, default = newJString( - "DescribeReservedInstances")) + section.add "OfferingType", valid_619733 + var valid_619734 = query.getOrDefault("OfferingClass") + valid_619734 = validateParameter(valid_619734, JString, required = false, + default = newJString("standard")) if valid_619734 != nil: - section.add "Action", valid_619734 - var valid_619735 = query.getOrDefault("Version") - valid_619735 = validateParameter(valid_619735, JString, required = true, - default = newJString("2016-11-15")) + section.add "OfferingClass", valid_619734 + var valid_619735 = query.getOrDefault("Filter") + valid_619735 = validateParameter(valid_619735, JArray, required = false, + default = nil) if valid_619735 != nil: - section.add "Version", valid_619735 + section.add "Filter", valid_619735 + var valid_619736 = query.getOrDefault("Action") + valid_619736 = validateParameter(valid_619736, JString, required = true, default = newJString( + "DescribeReservedInstances")) + if valid_619736 != nil: + section.add "Action", valid_619736 + var valid_619737 = query.getOrDefault("Version") + valid_619737 = validateParameter(valid_619737, JString, required = true, + default = newJString("2016-11-15")) + if valid_619737 != nil: + section.add "Version", valid_619737 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -71001,61 +71028,61 @@ proc validate_GetDescribeReservedInstances_619727(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619736 = header.getOrDefault("X-Amz-Signature") - valid_619736 = validateParameter(valid_619736, JString, required = false, - default = nil) - if valid_619736 != nil: - section.add "X-Amz-Signature", valid_619736 - var valid_619737 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619737 = validateParameter(valid_619737, JString, required = false, - default = nil) - if valid_619737 != nil: - section.add "X-Amz-Content-Sha256", valid_619737 - var valid_619738 = header.getOrDefault("X-Amz-Date") + var valid_619738 = header.getOrDefault("X-Amz-Signature") valid_619738 = validateParameter(valid_619738, JString, required = false, default = nil) if valid_619738 != nil: - section.add "X-Amz-Date", valid_619738 - var valid_619739 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619738 + var valid_619739 = header.getOrDefault("X-Amz-Content-Sha256") valid_619739 = validateParameter(valid_619739, JString, required = false, default = nil) if valid_619739 != nil: - section.add "X-Amz-Credential", valid_619739 - var valid_619740 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619739 + var valid_619740 = header.getOrDefault("X-Amz-Date") valid_619740 = validateParameter(valid_619740, JString, required = false, default = nil) if valid_619740 != nil: - section.add "X-Amz-Security-Token", valid_619740 - var valid_619741 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619740 + var valid_619741 = header.getOrDefault("X-Amz-Credential") valid_619741 = validateParameter(valid_619741, JString, required = false, default = nil) if valid_619741 != nil: - section.add "X-Amz-Algorithm", valid_619741 - var valid_619742 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619741 + var valid_619742 = header.getOrDefault("X-Amz-Security-Token") valid_619742 = validateParameter(valid_619742, JString, required = false, default = nil) if valid_619742 != nil: - section.add "X-Amz-SignedHeaders", valid_619742 + section.add "X-Amz-Security-Token", valid_619742 + var valid_619743 = header.getOrDefault("X-Amz-Algorithm") + valid_619743 = validateParameter(valid_619743, JString, required = false, + default = nil) + if valid_619743 != nil: + section.add "X-Amz-Algorithm", valid_619743 + var valid_619744 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619744 = validateParameter(valid_619744, JString, required = false, + default = nil) + if valid_619744 != nil: + section.add "X-Amz-SignedHeaders", valid_619744 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619743: Call_GetDescribeReservedInstances_619726; path: JsonNode; +proc call*(call_619745: Call_GetDescribeReservedInstances_619728; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes one or more of the Reserved Instances that you purchased.

For more information about Reserved Instances, see Reserved Instances in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_619743.validator(path, query, header, formData, body) - let scheme = call_619743.pickScheme + let valid = call_619745.validator(path, query, header, formData, body) + let scheme = call_619745.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619743.url(scheme.get, call_619743.host, call_619743.base, - call_619743.route, valid.getOrDefault("path"), + let url = call_619745.url(scheme.get, call_619745.host, call_619745.base, + call_619745.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619743, url, valid) + result = atozHook(call_619745, url, valid) -proc call*(call_619744: Call_GetDescribeReservedInstances_619726; +proc call*(call_619746: Call_GetDescribeReservedInstances_619728; ReservedInstancesId: JsonNode = nil; DryRun: bool = false; OfferingType: string = "Heavy Utilization"; OfferingClass: string = "standard"; Filter: JsonNode = nil; @@ -71075,27 +71102,27 @@ proc call*(call_619744: Call_GetDescribeReservedInstances_619726; ## :

One or more filters.

## Action: string (required) ## Version: string (required) - var query_619745 = newJObject() + var query_619747 = newJObject() if ReservedInstancesId != nil: - query_619745.add "ReservedInstancesId", ReservedInstancesId - add(query_619745, "DryRun", newJBool(DryRun)) - add(query_619745, "OfferingType", newJString(OfferingType)) - add(query_619745, "OfferingClass", newJString(OfferingClass)) + query_619747.add "ReservedInstancesId", ReservedInstancesId + add(query_619747, "DryRun", newJBool(DryRun)) + add(query_619747, "OfferingType", newJString(OfferingType)) + add(query_619747, "OfferingClass", newJString(OfferingClass)) if Filter != nil: - query_619745.add "Filter", Filter - add(query_619745, "Action", newJString(Action)) - add(query_619745, "Version", newJString(Version)) - result = call_619744.call(nil, query_619745, nil, nil, nil) + query_619747.add "Filter", Filter + add(query_619747, "Action", newJString(Action)) + add(query_619747, "Version", newJString(Version)) + result = call_619746.call(nil, query_619747, nil, nil, nil) -var getDescribeReservedInstances* = Call_GetDescribeReservedInstances_619726( +var getDescribeReservedInstances* = Call_GetDescribeReservedInstances_619728( name: "getDescribeReservedInstances", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeReservedInstances", - validator: validate_GetDescribeReservedInstances_619727, base: "/", - url: url_GetDescribeReservedInstances_619728, + validator: validate_GetDescribeReservedInstances_619729, base: "/", + url: url_GetDescribeReservedInstances_619730, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeReservedInstancesListings_619785 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeReservedInstancesListings_619787(protocol: Scheme; + Call_PostDescribeReservedInstancesListings_619787 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeReservedInstancesListings_619789(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -71105,7 +71132,7 @@ proc url_PostDescribeReservedInstancesListings_619787(protocol: Scheme; else: result.path = base & route -proc validate_PostDescribeReservedInstancesListings_619786(path: JsonNode; +proc validate_PostDescribeReservedInstancesListings_619788(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes your account's Reserved Instance listings in the Reserved Instance Marketplace.

The Reserved Instance Marketplace matches sellers who want to resell Reserved Instance capacity that they no longer need with buyers who want to purchase additional capacity. Reserved Instances bought and sold through the Reserved Instance Marketplace work like any other Reserved Instances.

As a seller, you choose to list some or all of your Reserved Instances, and you specify the upfront price to receive for them. Your Reserved Instances are then listed in the Reserved Instance Marketplace and are available for purchase.

As a buyer, you specify the configuration of the Reserved Instance to purchase, and the Marketplace matches what you're searching for with what's available. The Marketplace first sells the lowest priced Reserved Instances to you, and continues to sell available Reserved Instance listings to you until your demand is met. You are charged based on the total price of all of the listings that you purchase.

For more information, see Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.

## @@ -71117,16 +71144,16 @@ proc validate_PostDescribeReservedInstancesListings_619786(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619788 = query.getOrDefault("Action") - valid_619788 = validateParameter(valid_619788, JString, required = true, default = newJString( + var valid_619790 = query.getOrDefault("Action") + valid_619790 = validateParameter(valid_619790, JString, required = true, default = newJString( "DescribeReservedInstancesListings")) - if valid_619788 != nil: - section.add "Action", valid_619788 - var valid_619789 = query.getOrDefault("Version") - valid_619789 = validateParameter(valid_619789, JString, required = true, + if valid_619790 != nil: + section.add "Action", valid_619790 + var valid_619791 = query.getOrDefault("Version") + valid_619791 = validateParameter(valid_619791, JString, required = true, default = newJString("2016-11-15")) - if valid_619789 != nil: - section.add "Version", valid_619789 + if valid_619791 != nil: + section.add "Version", valid_619791 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -71137,41 +71164,41 @@ proc validate_PostDescribeReservedInstancesListings_619786(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619790 = header.getOrDefault("X-Amz-Signature") - valid_619790 = validateParameter(valid_619790, JString, required = false, - default = nil) - if valid_619790 != nil: - section.add "X-Amz-Signature", valid_619790 - var valid_619791 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619791 = validateParameter(valid_619791, JString, required = false, - default = nil) - if valid_619791 != nil: - section.add "X-Amz-Content-Sha256", valid_619791 - var valid_619792 = header.getOrDefault("X-Amz-Date") + var valid_619792 = header.getOrDefault("X-Amz-Signature") valid_619792 = validateParameter(valid_619792, JString, required = false, default = nil) if valid_619792 != nil: - section.add "X-Amz-Date", valid_619792 - var valid_619793 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619792 + var valid_619793 = header.getOrDefault("X-Amz-Content-Sha256") valid_619793 = validateParameter(valid_619793, JString, required = false, default = nil) if valid_619793 != nil: - section.add "X-Amz-Credential", valid_619793 - var valid_619794 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619793 + var valid_619794 = header.getOrDefault("X-Amz-Date") valid_619794 = validateParameter(valid_619794, JString, required = false, default = nil) if valid_619794 != nil: - section.add "X-Amz-Security-Token", valid_619794 - var valid_619795 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619794 + var valid_619795 = header.getOrDefault("X-Amz-Credential") valid_619795 = validateParameter(valid_619795, JString, required = false, default = nil) if valid_619795 != nil: - section.add "X-Amz-Algorithm", valid_619795 - var valid_619796 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619795 + var valid_619796 = header.getOrDefault("X-Amz-Security-Token") valid_619796 = validateParameter(valid_619796, JString, required = false, default = nil) if valid_619796 != nil: - section.add "X-Amz-SignedHeaders", valid_619796 + section.add "X-Amz-Security-Token", valid_619796 + var valid_619797 = header.getOrDefault("X-Amz-Algorithm") + valid_619797 = validateParameter(valid_619797, JString, required = false, + default = nil) + if valid_619797 != nil: + section.add "X-Amz-Algorithm", valid_619797 + var valid_619798 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619798 = validateParameter(valid_619798, JString, required = false, + default = nil) + if valid_619798 != nil: + section.add "X-Amz-SignedHeaders", valid_619798 result.add "header", section ## parameters in `formData` object: ## ReservedInstancesId: JString @@ -71181,40 +71208,40 @@ proc validate_PostDescribeReservedInstancesListings_619786(path: JsonNode; ## ReservedInstancesListingId: JString ## : One or more Reserved Instance listing IDs. section = newJObject() - var valid_619797 = formData.getOrDefault("ReservedInstancesId") - valid_619797 = validateParameter(valid_619797, JString, required = false, - default = nil) - if valid_619797 != nil: - section.add "ReservedInstancesId", valid_619797 - var valid_619798 = formData.getOrDefault("Filter") - valid_619798 = validateParameter(valid_619798, JArray, required = false, - default = nil) - if valid_619798 != nil: - section.add "Filter", valid_619798 - var valid_619799 = formData.getOrDefault("ReservedInstancesListingId") + var valid_619799 = formData.getOrDefault("ReservedInstancesId") valid_619799 = validateParameter(valid_619799, JString, required = false, default = nil) if valid_619799 != nil: - section.add "ReservedInstancesListingId", valid_619799 + section.add "ReservedInstancesId", valid_619799 + var valid_619800 = formData.getOrDefault("Filter") + valid_619800 = validateParameter(valid_619800, JArray, required = false, + default = nil) + if valid_619800 != nil: + section.add "Filter", valid_619800 + var valid_619801 = formData.getOrDefault("ReservedInstancesListingId") + valid_619801 = validateParameter(valid_619801, JString, required = false, + default = nil) + if valid_619801 != nil: + section.add "ReservedInstancesListingId", valid_619801 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619800: Call_PostDescribeReservedInstancesListings_619785; +proc call*(call_619802: Call_PostDescribeReservedInstancesListings_619787; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes your account's Reserved Instance listings in the Reserved Instance Marketplace.

The Reserved Instance Marketplace matches sellers who want to resell Reserved Instance capacity that they no longer need with buyers who want to purchase additional capacity. Reserved Instances bought and sold through the Reserved Instance Marketplace work like any other Reserved Instances.

As a seller, you choose to list some or all of your Reserved Instances, and you specify the upfront price to receive for them. Your Reserved Instances are then listed in the Reserved Instance Marketplace and are available for purchase.

As a buyer, you specify the configuration of the Reserved Instance to purchase, and the Marketplace matches what you're searching for with what's available. The Marketplace first sells the lowest priced Reserved Instances to you, and continues to sell available Reserved Instance listings to you until your demand is met. You are charged based on the total price of all of the listings that you purchase.

For more information, see Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_619800.validator(path, query, header, formData, body) - let scheme = call_619800.pickScheme + let valid = call_619802.validator(path, query, header, formData, body) + let scheme = call_619802.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619800.url(scheme.get, call_619800.host, call_619800.base, - call_619800.route, valid.getOrDefault("path"), + let url = call_619802.url(scheme.get, call_619802.host, call_619802.base, + call_619802.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619800, url, valid) + result = atozHook(call_619802, url, valid) -proc call*(call_619801: Call_PostDescribeReservedInstancesListings_619785; +proc call*(call_619803: Call_PostDescribeReservedInstancesListings_619787; ReservedInstancesId: string = ""; Action: string = "DescribeReservedInstancesListings"; Version: string = "2016-11-15"; Filter: JsonNode = nil; @@ -71229,27 +71256,27 @@ proc call*(call_619801: Call_PostDescribeReservedInstancesListings_619785; ## :

One or more filters.

## ReservedInstancesListingId: string ## : One or more Reserved Instance listing IDs. - var query_619802 = newJObject() - var formData_619803 = newJObject() - add(formData_619803, "ReservedInstancesId", newJString(ReservedInstancesId)) - add(query_619802, "Action", newJString(Action)) - add(query_619802, "Version", newJString(Version)) + var query_619804 = newJObject() + var formData_619805 = newJObject() + add(formData_619805, "ReservedInstancesId", newJString(ReservedInstancesId)) + add(query_619804, "Action", newJString(Action)) + add(query_619804, "Version", newJString(Version)) if Filter != nil: - formData_619803.add "Filter", Filter - add(formData_619803, "ReservedInstancesListingId", + formData_619805.add "Filter", Filter + add(formData_619805, "ReservedInstancesListingId", newJString(ReservedInstancesListingId)) - result = call_619801.call(nil, query_619802, nil, formData_619803, nil) + result = call_619803.call(nil, query_619804, nil, formData_619805, nil) -var postDescribeReservedInstancesListings* = Call_PostDescribeReservedInstancesListings_619785( +var postDescribeReservedInstancesListings* = Call_PostDescribeReservedInstancesListings_619787( name: "postDescribeReservedInstancesListings", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeReservedInstancesListings", - validator: validate_PostDescribeReservedInstancesListings_619786, base: "/", - url: url_PostDescribeReservedInstancesListings_619787, + validator: validate_PostDescribeReservedInstancesListings_619788, base: "/", + url: url_PostDescribeReservedInstancesListings_619789, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeReservedInstancesListings_619767 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeReservedInstancesListings_619769(protocol: Scheme; + Call_GetDescribeReservedInstancesListings_619769 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeReservedInstancesListings_619771(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -71259,7 +71286,7 @@ proc url_GetDescribeReservedInstancesListings_619769(protocol: Scheme; else: result.path = base & route -proc validate_GetDescribeReservedInstancesListings_619768(path: JsonNode; +proc validate_GetDescribeReservedInstancesListings_619770(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes your account's Reserved Instance listings in the Reserved Instance Marketplace.

The Reserved Instance Marketplace matches sellers who want to resell Reserved Instance capacity that they no longer need with buyers who want to purchase additional capacity. Reserved Instances bought and sold through the Reserved Instance Marketplace work like any other Reserved Instances.

As a seller, you choose to list some or all of your Reserved Instances, and you specify the upfront price to receive for them. Your Reserved Instances are then listed in the Reserved Instance Marketplace and are available for purchase.

As a buyer, you specify the configuration of the Reserved Instance to purchase, and the Marketplace matches what you're searching for with what's available. The Marketplace first sells the lowest priced Reserved Instances to you, and continues to sell available Reserved Instance listings to you until your demand is met. You are charged based on the total price of all of the listings that you purchase.

For more information, see Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.

## @@ -71277,31 +71304,31 @@ proc validate_GetDescribeReservedInstancesListings_619768(path: JsonNode; ## ReservedInstancesListingId: JString ## : One or more Reserved Instance listing IDs. section = newJObject() - var valid_619770 = query.getOrDefault("ReservedInstancesId") - valid_619770 = validateParameter(valid_619770, JString, required = false, + var valid_619772 = query.getOrDefault("ReservedInstancesId") + valid_619772 = validateParameter(valid_619772, JString, required = false, default = nil) - if valid_619770 != nil: - section.add "ReservedInstancesId", valid_619770 - var valid_619771 = query.getOrDefault("Filter") - valid_619771 = validateParameter(valid_619771, JArray, required = false, + if valid_619772 != nil: + section.add "ReservedInstancesId", valid_619772 + var valid_619773 = query.getOrDefault("Filter") + valid_619773 = validateParameter(valid_619773, JArray, required = false, default = nil) - if valid_619771 != nil: - section.add "Filter", valid_619771 - var valid_619772 = query.getOrDefault("Action") - valid_619772 = validateParameter(valid_619772, JString, required = true, default = newJString( + if valid_619773 != nil: + section.add "Filter", valid_619773 + var valid_619774 = query.getOrDefault("Action") + valid_619774 = validateParameter(valid_619774, JString, required = true, default = newJString( "DescribeReservedInstancesListings")) - if valid_619772 != nil: - section.add "Action", valid_619772 - var valid_619773 = query.getOrDefault("Version") - valid_619773 = validateParameter(valid_619773, JString, required = true, + if valid_619774 != nil: + section.add "Action", valid_619774 + var valid_619775 = query.getOrDefault("Version") + valid_619775 = validateParameter(valid_619775, JString, required = true, default = newJString("2016-11-15")) - if valid_619773 != nil: - section.add "Version", valid_619773 - var valid_619774 = query.getOrDefault("ReservedInstancesListingId") - valid_619774 = validateParameter(valid_619774, JString, required = false, + if valid_619775 != nil: + section.add "Version", valid_619775 + var valid_619776 = query.getOrDefault("ReservedInstancesListingId") + valid_619776 = validateParameter(valid_619776, JString, required = false, default = nil) - if valid_619774 != nil: - section.add "ReservedInstancesListingId", valid_619774 + if valid_619776 != nil: + section.add "ReservedInstancesListingId", valid_619776 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -71312,62 +71339,62 @@ proc validate_GetDescribeReservedInstancesListings_619768(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619775 = header.getOrDefault("X-Amz-Signature") - valid_619775 = validateParameter(valid_619775, JString, required = false, - default = nil) - if valid_619775 != nil: - section.add "X-Amz-Signature", valid_619775 - var valid_619776 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619776 = validateParameter(valid_619776, JString, required = false, - default = nil) - if valid_619776 != nil: - section.add "X-Amz-Content-Sha256", valid_619776 - var valid_619777 = header.getOrDefault("X-Amz-Date") + var valid_619777 = header.getOrDefault("X-Amz-Signature") valid_619777 = validateParameter(valid_619777, JString, required = false, default = nil) if valid_619777 != nil: - section.add "X-Amz-Date", valid_619777 - var valid_619778 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619777 + var valid_619778 = header.getOrDefault("X-Amz-Content-Sha256") valid_619778 = validateParameter(valid_619778, JString, required = false, default = nil) if valid_619778 != nil: - section.add "X-Amz-Credential", valid_619778 - var valid_619779 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619778 + var valid_619779 = header.getOrDefault("X-Amz-Date") valid_619779 = validateParameter(valid_619779, JString, required = false, default = nil) if valid_619779 != nil: - section.add "X-Amz-Security-Token", valid_619779 - var valid_619780 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619779 + var valid_619780 = header.getOrDefault("X-Amz-Credential") valid_619780 = validateParameter(valid_619780, JString, required = false, default = nil) if valid_619780 != nil: - section.add "X-Amz-Algorithm", valid_619780 - var valid_619781 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619780 + var valid_619781 = header.getOrDefault("X-Amz-Security-Token") valid_619781 = validateParameter(valid_619781, JString, required = false, default = nil) if valid_619781 != nil: - section.add "X-Amz-SignedHeaders", valid_619781 + section.add "X-Amz-Security-Token", valid_619781 + var valid_619782 = header.getOrDefault("X-Amz-Algorithm") + valid_619782 = validateParameter(valid_619782, JString, required = false, + default = nil) + if valid_619782 != nil: + section.add "X-Amz-Algorithm", valid_619782 + var valid_619783 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619783 = validateParameter(valid_619783, JString, required = false, + default = nil) + if valid_619783 != nil: + section.add "X-Amz-SignedHeaders", valid_619783 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619782: Call_GetDescribeReservedInstancesListings_619767; +proc call*(call_619784: Call_GetDescribeReservedInstancesListings_619769; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes your account's Reserved Instance listings in the Reserved Instance Marketplace.

The Reserved Instance Marketplace matches sellers who want to resell Reserved Instance capacity that they no longer need with buyers who want to purchase additional capacity. Reserved Instances bought and sold through the Reserved Instance Marketplace work like any other Reserved Instances.

As a seller, you choose to list some or all of your Reserved Instances, and you specify the upfront price to receive for them. Your Reserved Instances are then listed in the Reserved Instance Marketplace and are available for purchase.

As a buyer, you specify the configuration of the Reserved Instance to purchase, and the Marketplace matches what you're searching for with what's available. The Marketplace first sells the lowest priced Reserved Instances to you, and continues to sell available Reserved Instance listings to you until your demand is met. You are charged based on the total price of all of the listings that you purchase.

For more information, see Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_619782.validator(path, query, header, formData, body) - let scheme = call_619782.pickScheme + let valid = call_619784.validator(path, query, header, formData, body) + let scheme = call_619784.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619782.url(scheme.get, call_619782.host, call_619782.base, - call_619782.route, valid.getOrDefault("path"), + let url = call_619784.url(scheme.get, call_619784.host, call_619784.base, + call_619784.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619782, url, valid) + result = atozHook(call_619784, url, valid) -proc call*(call_619783: Call_GetDescribeReservedInstancesListings_619767; +proc call*(call_619785: Call_GetDescribeReservedInstancesListings_619769; ReservedInstancesId: string = ""; Filter: JsonNode = nil; Action: string = "DescribeReservedInstancesListings"; Version: string = "2016-11-15"; ReservedInstancesListingId: string = ""): Recallable = @@ -71381,26 +71408,26 @@ proc call*(call_619783: Call_GetDescribeReservedInstancesListings_619767; ## Version: string (required) ## ReservedInstancesListingId: string ## : One or more Reserved Instance listing IDs. - var query_619784 = newJObject() - add(query_619784, "ReservedInstancesId", newJString(ReservedInstancesId)) + var query_619786 = newJObject() + add(query_619786, "ReservedInstancesId", newJString(ReservedInstancesId)) if Filter != nil: - query_619784.add "Filter", Filter - add(query_619784, "Action", newJString(Action)) - add(query_619784, "Version", newJString(Version)) - add(query_619784, "ReservedInstancesListingId", + query_619786.add "Filter", Filter + add(query_619786, "Action", newJString(Action)) + add(query_619786, "Version", newJString(Version)) + add(query_619786, "ReservedInstancesListingId", newJString(ReservedInstancesListingId)) - result = call_619783.call(nil, query_619784, nil, nil, nil) + result = call_619785.call(nil, query_619786, nil, nil, nil) -var getDescribeReservedInstancesListings* = Call_GetDescribeReservedInstancesListings_619767( +var getDescribeReservedInstancesListings* = Call_GetDescribeReservedInstancesListings_619769( name: "getDescribeReservedInstancesListings", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeReservedInstancesListings", - validator: validate_GetDescribeReservedInstancesListings_619768, base: "/", - url: url_GetDescribeReservedInstancesListings_619769, + validator: validate_GetDescribeReservedInstancesListings_619770, base: "/", + url: url_GetDescribeReservedInstancesListings_619771, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeReservedInstancesModifications_619822 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeReservedInstancesModifications_619824(protocol: Scheme; + Call_PostDescribeReservedInstancesModifications_619824 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeReservedInstancesModifications_619826(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -71410,7 +71437,7 @@ proc url_PostDescribeReservedInstancesModifications_619824(protocol: Scheme; else: result.path = base & route -proc validate_PostDescribeReservedInstancesModifications_619823(path: JsonNode; +proc validate_PostDescribeReservedInstancesModifications_619825(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the modifications made to your Reserved Instances. If no parameter is specified, information about all your Reserved Instances modification requests is returned. If a modification ID is specified, only information about the specific modification is returned.

For more information, see Modifying Reserved Instances in the Amazon Elastic Compute Cloud User Guide.

## @@ -71422,16 +71449,16 @@ proc validate_PostDescribeReservedInstancesModifications_619823(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619825 = query.getOrDefault("Action") - valid_619825 = validateParameter(valid_619825, JString, required = true, default = newJString( + var valid_619827 = query.getOrDefault("Action") + valid_619827 = validateParameter(valid_619827, JString, required = true, default = newJString( "DescribeReservedInstancesModifications")) - if valid_619825 != nil: - section.add "Action", valid_619825 - var valid_619826 = query.getOrDefault("Version") - valid_619826 = validateParameter(valid_619826, JString, required = true, + if valid_619827 != nil: + section.add "Action", valid_619827 + var valid_619828 = query.getOrDefault("Version") + valid_619828 = validateParameter(valid_619828, JString, required = true, default = newJString("2016-11-15")) - if valid_619826 != nil: - section.add "Version", valid_619826 + if valid_619828 != nil: + section.add "Version", valid_619828 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -71442,41 +71469,41 @@ proc validate_PostDescribeReservedInstancesModifications_619823(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619827 = header.getOrDefault("X-Amz-Signature") - valid_619827 = validateParameter(valid_619827, JString, required = false, - default = nil) - if valid_619827 != nil: - section.add "X-Amz-Signature", valid_619827 - var valid_619828 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619828 = validateParameter(valid_619828, JString, required = false, - default = nil) - if valid_619828 != nil: - section.add "X-Amz-Content-Sha256", valid_619828 - var valid_619829 = header.getOrDefault("X-Amz-Date") + var valid_619829 = header.getOrDefault("X-Amz-Signature") valid_619829 = validateParameter(valid_619829, JString, required = false, default = nil) if valid_619829 != nil: - section.add "X-Amz-Date", valid_619829 - var valid_619830 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619829 + var valid_619830 = header.getOrDefault("X-Amz-Content-Sha256") valid_619830 = validateParameter(valid_619830, JString, required = false, default = nil) if valid_619830 != nil: - section.add "X-Amz-Credential", valid_619830 - var valid_619831 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619830 + var valid_619831 = header.getOrDefault("X-Amz-Date") valid_619831 = validateParameter(valid_619831, JString, required = false, default = nil) if valid_619831 != nil: - section.add "X-Amz-Security-Token", valid_619831 - var valid_619832 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619831 + var valid_619832 = header.getOrDefault("X-Amz-Credential") valid_619832 = validateParameter(valid_619832, JString, required = false, default = nil) if valid_619832 != nil: - section.add "X-Amz-Algorithm", valid_619832 - var valid_619833 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619832 + var valid_619833 = header.getOrDefault("X-Amz-Security-Token") valid_619833 = validateParameter(valid_619833, JString, required = false, default = nil) if valid_619833 != nil: - section.add "X-Amz-SignedHeaders", valid_619833 + section.add "X-Amz-Security-Token", valid_619833 + var valid_619834 = header.getOrDefault("X-Amz-Algorithm") + valid_619834 = validateParameter(valid_619834, JString, required = false, + default = nil) + if valid_619834 != nil: + section.add "X-Amz-Algorithm", valid_619834 + var valid_619835 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619835 = validateParameter(valid_619835, JString, required = false, + default = nil) + if valid_619835 != nil: + section.add "X-Amz-SignedHeaders", valid_619835 result.add "header", section ## parameters in `formData` object: ## ReservedInstancesModificationId: JArray @@ -71486,40 +71513,40 @@ proc validate_PostDescribeReservedInstancesModifications_619823(path: JsonNode; ## Filter: JArray ## :

One or more filters.

section = newJObject() - var valid_619834 = formData.getOrDefault("ReservedInstancesModificationId") - valid_619834 = validateParameter(valid_619834, JArray, required = false, - default = nil) - if valid_619834 != nil: - section.add "ReservedInstancesModificationId", valid_619834 - var valid_619835 = formData.getOrDefault("NextToken") - valid_619835 = validateParameter(valid_619835, JString, required = false, - default = nil) - if valid_619835 != nil: - section.add "NextToken", valid_619835 - var valid_619836 = formData.getOrDefault("Filter") + var valid_619836 = formData.getOrDefault("ReservedInstancesModificationId") valid_619836 = validateParameter(valid_619836, JArray, required = false, default = nil) if valid_619836 != nil: - section.add "Filter", valid_619836 + section.add "ReservedInstancesModificationId", valid_619836 + var valid_619837 = formData.getOrDefault("NextToken") + valid_619837 = validateParameter(valid_619837, JString, required = false, + default = nil) + if valid_619837 != nil: + section.add "NextToken", valid_619837 + var valid_619838 = formData.getOrDefault("Filter") + valid_619838 = validateParameter(valid_619838, JArray, required = false, + default = nil) + if valid_619838 != nil: + section.add "Filter", valid_619838 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619837: Call_PostDescribeReservedInstancesModifications_619822; +proc call*(call_619839: Call_PostDescribeReservedInstancesModifications_619824; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the modifications made to your Reserved Instances. If no parameter is specified, information about all your Reserved Instances modification requests is returned. If a modification ID is specified, only information about the specific modification is returned.

For more information, see Modifying Reserved Instances in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_619837.validator(path, query, header, formData, body) - let scheme = call_619837.pickScheme + let valid = call_619839.validator(path, query, header, formData, body) + let scheme = call_619839.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619837.url(scheme.get, call_619837.host, call_619837.base, - call_619837.route, valid.getOrDefault("path"), + let url = call_619839.url(scheme.get, call_619839.host, call_619839.base, + call_619839.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619837, url, valid) + result = atozHook(call_619839, url, valid) -proc call*(call_619838: Call_PostDescribeReservedInstancesModifications_619822; +proc call*(call_619840: Call_PostDescribeReservedInstancesModifications_619824; ReservedInstancesModificationId: JsonNode = nil; NextToken: string = ""; Action: string = "DescribeReservedInstancesModifications"; Version: string = "2016-11-15"; Filter: JsonNode = nil): Recallable = @@ -71533,28 +71560,28 @@ proc call*(call_619838: Call_PostDescribeReservedInstancesModifications_619822; ## Version: string (required) ## Filter: JArray ## :

One or more filters.

- var query_619839 = newJObject() - var formData_619840 = newJObject() + var query_619841 = newJObject() + var formData_619842 = newJObject() if ReservedInstancesModificationId != nil: - formData_619840.add "ReservedInstancesModificationId", + formData_619842.add "ReservedInstancesModificationId", ReservedInstancesModificationId - add(formData_619840, "NextToken", newJString(NextToken)) - add(query_619839, "Action", newJString(Action)) - add(query_619839, "Version", newJString(Version)) + add(formData_619842, "NextToken", newJString(NextToken)) + add(query_619841, "Action", newJString(Action)) + add(query_619841, "Version", newJString(Version)) if Filter != nil: - formData_619840.add "Filter", Filter - result = call_619838.call(nil, query_619839, nil, formData_619840, nil) + formData_619842.add "Filter", Filter + result = call_619840.call(nil, query_619841, nil, formData_619842, nil) -var postDescribeReservedInstancesModifications* = Call_PostDescribeReservedInstancesModifications_619822( +var postDescribeReservedInstancesModifications* = Call_PostDescribeReservedInstancesModifications_619824( name: "postDescribeReservedInstancesModifications", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeReservedInstancesModifications", - validator: validate_PostDescribeReservedInstancesModifications_619823, - base: "/", url: url_PostDescribeReservedInstancesModifications_619824, + validator: validate_PostDescribeReservedInstancesModifications_619825, + base: "/", url: url_PostDescribeReservedInstancesModifications_619826, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeReservedInstancesModifications_619804 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeReservedInstancesModifications_619806(protocol: Scheme; + Call_GetDescribeReservedInstancesModifications_619806 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeReservedInstancesModifications_619808(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -71564,7 +71591,7 @@ proc url_GetDescribeReservedInstancesModifications_619806(protocol: Scheme; else: result.path = base & route -proc validate_GetDescribeReservedInstancesModifications_619805(path: JsonNode; +proc validate_GetDescribeReservedInstancesModifications_619807(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the modifications made to your Reserved Instances. If no parameter is specified, information about all your Reserved Instances modification requests is returned. If a modification ID is specified, only information about the specific modification is returned.

For more information, see Modifying Reserved Instances in the Amazon Elastic Compute Cloud User Guide.

## @@ -71582,31 +71609,31 @@ proc validate_GetDescribeReservedInstancesModifications_619805(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619807 = query.getOrDefault("ReservedInstancesModificationId") - valid_619807 = validateParameter(valid_619807, JArray, required = false, - default = nil) - if valid_619807 != nil: - section.add "ReservedInstancesModificationId", valid_619807 - var valid_619808 = query.getOrDefault("NextToken") - valid_619808 = validateParameter(valid_619808, JString, required = false, - default = nil) - if valid_619808 != nil: - section.add "NextToken", valid_619808 - var valid_619809 = query.getOrDefault("Filter") + var valid_619809 = query.getOrDefault("ReservedInstancesModificationId") valid_619809 = validateParameter(valid_619809, JArray, required = false, default = nil) if valid_619809 != nil: - section.add "Filter", valid_619809 - var valid_619810 = query.getOrDefault("Action") - valid_619810 = validateParameter(valid_619810, JString, required = true, default = newJString( - "DescribeReservedInstancesModifications")) + section.add "ReservedInstancesModificationId", valid_619809 + var valid_619810 = query.getOrDefault("NextToken") + valid_619810 = validateParameter(valid_619810, JString, required = false, + default = nil) if valid_619810 != nil: - section.add "Action", valid_619810 - var valid_619811 = query.getOrDefault("Version") - valid_619811 = validateParameter(valid_619811, JString, required = true, - default = newJString("2016-11-15")) + section.add "NextToken", valid_619810 + var valid_619811 = query.getOrDefault("Filter") + valid_619811 = validateParameter(valid_619811, JArray, required = false, + default = nil) if valid_619811 != nil: - section.add "Version", valid_619811 + section.add "Filter", valid_619811 + var valid_619812 = query.getOrDefault("Action") + valid_619812 = validateParameter(valid_619812, JString, required = true, default = newJString( + "DescribeReservedInstancesModifications")) + if valid_619812 != nil: + section.add "Action", valid_619812 + var valid_619813 = query.getOrDefault("Version") + valid_619813 = validateParameter(valid_619813, JString, required = true, + default = newJString("2016-11-15")) + if valid_619813 != nil: + section.add "Version", valid_619813 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -71617,62 +71644,62 @@ proc validate_GetDescribeReservedInstancesModifications_619805(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619812 = header.getOrDefault("X-Amz-Signature") - valid_619812 = validateParameter(valid_619812, JString, required = false, - default = nil) - if valid_619812 != nil: - section.add "X-Amz-Signature", valid_619812 - var valid_619813 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619813 = validateParameter(valid_619813, JString, required = false, - default = nil) - if valid_619813 != nil: - section.add "X-Amz-Content-Sha256", valid_619813 - var valid_619814 = header.getOrDefault("X-Amz-Date") + var valid_619814 = header.getOrDefault("X-Amz-Signature") valid_619814 = validateParameter(valid_619814, JString, required = false, default = nil) if valid_619814 != nil: - section.add "X-Amz-Date", valid_619814 - var valid_619815 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619814 + var valid_619815 = header.getOrDefault("X-Amz-Content-Sha256") valid_619815 = validateParameter(valid_619815, JString, required = false, default = nil) if valid_619815 != nil: - section.add "X-Amz-Credential", valid_619815 - var valid_619816 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619815 + var valid_619816 = header.getOrDefault("X-Amz-Date") valid_619816 = validateParameter(valid_619816, JString, required = false, default = nil) if valid_619816 != nil: - section.add "X-Amz-Security-Token", valid_619816 - var valid_619817 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619816 + var valid_619817 = header.getOrDefault("X-Amz-Credential") valid_619817 = validateParameter(valid_619817, JString, required = false, default = nil) if valid_619817 != nil: - section.add "X-Amz-Algorithm", valid_619817 - var valid_619818 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619817 + var valid_619818 = header.getOrDefault("X-Amz-Security-Token") valid_619818 = validateParameter(valid_619818, JString, required = false, default = nil) if valid_619818 != nil: - section.add "X-Amz-SignedHeaders", valid_619818 + section.add "X-Amz-Security-Token", valid_619818 + var valid_619819 = header.getOrDefault("X-Amz-Algorithm") + valid_619819 = validateParameter(valid_619819, JString, required = false, + default = nil) + if valid_619819 != nil: + section.add "X-Amz-Algorithm", valid_619819 + var valid_619820 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619820 = validateParameter(valid_619820, JString, required = false, + default = nil) + if valid_619820 != nil: + section.add "X-Amz-SignedHeaders", valid_619820 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619819: Call_GetDescribeReservedInstancesModifications_619804; +proc call*(call_619821: Call_GetDescribeReservedInstancesModifications_619806; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the modifications made to your Reserved Instances. If no parameter is specified, information about all your Reserved Instances modification requests is returned. If a modification ID is specified, only information about the specific modification is returned.

For more information, see Modifying Reserved Instances in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_619819.validator(path, query, header, formData, body) - let scheme = call_619819.pickScheme + let valid = call_619821.validator(path, query, header, formData, body) + let scheme = call_619821.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619819.url(scheme.get, call_619819.host, call_619819.base, - call_619819.route, valid.getOrDefault("path"), + let url = call_619821.url(scheme.get, call_619821.host, call_619821.base, + call_619821.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619819, url, valid) + result = atozHook(call_619821, url, valid) -proc call*(call_619820: Call_GetDescribeReservedInstancesModifications_619804; +proc call*(call_619822: Call_GetDescribeReservedInstancesModifications_619806; ReservedInstancesModificationId: JsonNode = nil; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeReservedInstancesModifications"; @@ -71687,27 +71714,27 @@ proc call*(call_619820: Call_GetDescribeReservedInstancesModifications_619804; ## :

One or more filters.

## Action: string (required) ## Version: string (required) - var query_619821 = newJObject() + var query_619823 = newJObject() if ReservedInstancesModificationId != nil: - query_619821.add "ReservedInstancesModificationId", + query_619823.add "ReservedInstancesModificationId", ReservedInstancesModificationId - add(query_619821, "NextToken", newJString(NextToken)) + add(query_619823, "NextToken", newJString(NextToken)) if Filter != nil: - query_619821.add "Filter", Filter - add(query_619821, "Action", newJString(Action)) - add(query_619821, "Version", newJString(Version)) - result = call_619820.call(nil, query_619821, nil, nil, nil) + query_619823.add "Filter", Filter + add(query_619823, "Action", newJString(Action)) + add(query_619823, "Version", newJString(Version)) + result = call_619822.call(nil, query_619823, nil, nil, nil) -var getDescribeReservedInstancesModifications* = Call_GetDescribeReservedInstancesModifications_619804( +var getDescribeReservedInstancesModifications* = Call_GetDescribeReservedInstancesModifications_619806( name: "getDescribeReservedInstancesModifications", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeReservedInstancesModifications", - validator: validate_GetDescribeReservedInstancesModifications_619805, - base: "/", url: url_GetDescribeReservedInstancesModifications_619806, + validator: validate_GetDescribeReservedInstancesModifications_619807, + base: "/", url: url_GetDescribeReservedInstancesModifications_619808, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeReservedInstancesOfferings_619871 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeReservedInstancesOfferings_619873(protocol: Scheme; + Call_PostDescribeReservedInstancesOfferings_619873 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeReservedInstancesOfferings_619875(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -71717,7 +71744,7 @@ proc url_PostDescribeReservedInstancesOfferings_619873(protocol: Scheme; else: result.path = base & route -proc validate_PostDescribeReservedInstancesOfferings_619872(path: JsonNode; +proc validate_PostDescribeReservedInstancesOfferings_619874(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes Reserved Instance offerings that are available for purchase. With Reserved Instances, you purchase the right to launch instances for a period of time. During that time period, you do not receive insufficient capacity errors, and you pay a lower usage rate than the rate charged for On-Demand instances for the actual time used.

If you have listed your own Reserved Instances for sale in the Reserved Instance Marketplace, they will be excluded from these results. This is to ensure that you do not purchase your own Reserved Instances.

For more information, see Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.

## @@ -71729,16 +71756,16 @@ proc validate_PostDescribeReservedInstancesOfferings_619872(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619874 = query.getOrDefault("Action") - valid_619874 = validateParameter(valid_619874, JString, required = true, default = newJString( + var valid_619876 = query.getOrDefault("Action") + valid_619876 = validateParameter(valid_619876, JString, required = true, default = newJString( "DescribeReservedInstancesOfferings")) - if valid_619874 != nil: - section.add "Action", valid_619874 - var valid_619875 = query.getOrDefault("Version") - valid_619875 = validateParameter(valid_619875, JString, required = true, + if valid_619876 != nil: + section.add "Action", valid_619876 + var valid_619877 = query.getOrDefault("Version") + valid_619877 = validateParameter(valid_619877, JString, required = true, default = newJString("2016-11-15")) - if valid_619875 != nil: - section.add "Version", valid_619875 + if valid_619877 != nil: + section.add "Version", valid_619877 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -71749,41 +71776,41 @@ proc validate_PostDescribeReservedInstancesOfferings_619872(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619876 = header.getOrDefault("X-Amz-Signature") - valid_619876 = validateParameter(valid_619876, JString, required = false, - default = nil) - if valid_619876 != nil: - section.add "X-Amz-Signature", valid_619876 - var valid_619877 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619877 = validateParameter(valid_619877, JString, required = false, - default = nil) - if valid_619877 != nil: - section.add "X-Amz-Content-Sha256", valid_619877 - var valid_619878 = header.getOrDefault("X-Amz-Date") + var valid_619878 = header.getOrDefault("X-Amz-Signature") valid_619878 = validateParameter(valid_619878, JString, required = false, default = nil) if valid_619878 != nil: - section.add "X-Amz-Date", valid_619878 - var valid_619879 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619878 + var valid_619879 = header.getOrDefault("X-Amz-Content-Sha256") valid_619879 = validateParameter(valid_619879, JString, required = false, default = nil) if valid_619879 != nil: - section.add "X-Amz-Credential", valid_619879 - var valid_619880 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619879 + var valid_619880 = header.getOrDefault("X-Amz-Date") valid_619880 = validateParameter(valid_619880, JString, required = false, default = nil) if valid_619880 != nil: - section.add "X-Amz-Security-Token", valid_619880 - var valid_619881 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619880 + var valid_619881 = header.getOrDefault("X-Amz-Credential") valid_619881 = validateParameter(valid_619881, JString, required = false, default = nil) if valid_619881 != nil: - section.add "X-Amz-Algorithm", valid_619881 - var valid_619882 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619881 + var valid_619882 = header.getOrDefault("X-Amz-Security-Token") valid_619882 = validateParameter(valid_619882, JString, required = false, default = nil) if valid_619882 != nil: - section.add "X-Amz-SignedHeaders", valid_619882 + section.add "X-Amz-Security-Token", valid_619882 + var valid_619883 = header.getOrDefault("X-Amz-Algorithm") + valid_619883 = validateParameter(valid_619883, JString, required = false, + default = nil) + if valid_619883 != nil: + section.add "X-Amz-Algorithm", valid_619883 + var valid_619884 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619884 = validateParameter(valid_619884, JString, required = false, + default = nil) + if valid_619884 != nil: + section.add "X-Amz-SignedHeaders", valid_619884 result.add "header", section ## parameters in `formData` object: ## InstanceType: JString @@ -71818,94 +71845,94 @@ proc validate_PostDescribeReservedInstancesOfferings_619872(path: JsonNode; ## Filter: JArray ## :

One or more filters.

section = newJObject() - var valid_619883 = formData.getOrDefault("InstanceType") - valid_619883 = validateParameter(valid_619883, JString, required = false, + var valid_619885 = formData.getOrDefault("InstanceType") + valid_619885 = validateParameter(valid_619885, JString, required = false, default = newJString("t1.micro")) - if valid_619883 != nil: - section.add "InstanceType", valid_619883 - var valid_619884 = formData.getOrDefault("ReservedInstancesOfferingId") - valid_619884 = validateParameter(valid_619884, JArray, required = false, - default = nil) - if valid_619884 != nil: - section.add "ReservedInstancesOfferingId", valid_619884 - var valid_619885 = formData.getOrDefault("MaxInstanceCount") - valid_619885 = validateParameter(valid_619885, JInt, required = false, default = nil) if valid_619885 != nil: - section.add "MaxInstanceCount", valid_619885 - var valid_619886 = formData.getOrDefault("NextToken") - valid_619886 = validateParameter(valid_619886, JString, required = false, + section.add "InstanceType", valid_619885 + var valid_619886 = formData.getOrDefault("ReservedInstancesOfferingId") + valid_619886 = validateParameter(valid_619886, JArray, required = false, default = nil) if valid_619886 != nil: - section.add "NextToken", valid_619886 - var valid_619887 = formData.getOrDefault("IncludeMarketplace") - valid_619887 = validateParameter(valid_619887, JBool, required = false, default = nil) + section.add "ReservedInstancesOfferingId", valid_619886 + var valid_619887 = formData.getOrDefault("MaxInstanceCount") + valid_619887 = validateParameter(valid_619887, JInt, required = false, default = nil) if valid_619887 != nil: - section.add "IncludeMarketplace", valid_619887 - var valid_619888 = formData.getOrDefault("OfferingClass") + section.add "MaxInstanceCount", valid_619887 + var valid_619888 = formData.getOrDefault("NextToken") valid_619888 = validateParameter(valid_619888, JString, required = false, - default = newJString("standard")) - if valid_619888 != nil: - section.add "OfferingClass", valid_619888 - var valid_619889 = formData.getOrDefault("AvailabilityZone") - valid_619889 = validateParameter(valid_619889, JString, required = false, default = nil) + if valid_619888 != nil: + section.add "NextToken", valid_619888 + var valid_619889 = formData.getOrDefault("IncludeMarketplace") + valid_619889 = validateParameter(valid_619889, JBool, required = false, default = nil) if valid_619889 != nil: - section.add "AvailabilityZone", valid_619889 - var valid_619890 = formData.getOrDefault("MinDuration") - valid_619890 = validateParameter(valid_619890, JInt, required = false, default = nil) + section.add "IncludeMarketplace", valid_619889 + var valid_619890 = formData.getOrDefault("OfferingClass") + valid_619890 = validateParameter(valid_619890, JString, required = false, + default = newJString("standard")) if valid_619890 != nil: - section.add "MinDuration", valid_619890 - var valid_619891 = formData.getOrDefault("OfferingType") + section.add "OfferingClass", valid_619890 + var valid_619891 = formData.getOrDefault("AvailabilityZone") valid_619891 = validateParameter(valid_619891, JString, required = false, - default = newJString("Heavy Utilization")) + default = nil) if valid_619891 != nil: - section.add "OfferingType", valid_619891 - var valid_619892 = formData.getOrDefault("DryRun") - valid_619892 = validateParameter(valid_619892, JBool, required = false, default = nil) + section.add "AvailabilityZone", valid_619891 + var valid_619892 = formData.getOrDefault("MinDuration") + valid_619892 = validateParameter(valid_619892, JInt, required = false, default = nil) if valid_619892 != nil: - section.add "DryRun", valid_619892 - var valid_619893 = formData.getOrDefault("ProductDescription") + section.add "MinDuration", valid_619892 + var valid_619893 = formData.getOrDefault("OfferingType") valid_619893 = validateParameter(valid_619893, JString, required = false, - default = newJString("Linux/UNIX")) + default = newJString("Heavy Utilization")) if valid_619893 != nil: - section.add "ProductDescription", valid_619893 - var valid_619894 = formData.getOrDefault("InstanceTenancy") - valid_619894 = validateParameter(valid_619894, JString, required = false, - default = newJString("default")) + section.add "OfferingType", valid_619893 + var valid_619894 = formData.getOrDefault("DryRun") + valid_619894 = validateParameter(valid_619894, JBool, required = false, default = nil) if valid_619894 != nil: - section.add "InstanceTenancy", valid_619894 - var valid_619895 = formData.getOrDefault("MaxDuration") - valid_619895 = validateParameter(valid_619895, JInt, required = false, default = nil) + section.add "DryRun", valid_619894 + var valid_619895 = formData.getOrDefault("ProductDescription") + valid_619895 = validateParameter(valid_619895, JString, required = false, + default = newJString("Linux/UNIX")) if valid_619895 != nil: - section.add "MaxDuration", valid_619895 - var valid_619896 = formData.getOrDefault("MaxResults") - valid_619896 = validateParameter(valid_619896, JInt, required = false, default = nil) + section.add "ProductDescription", valid_619895 + var valid_619896 = formData.getOrDefault("InstanceTenancy") + valid_619896 = validateParameter(valid_619896, JString, required = false, + default = newJString("default")) if valid_619896 != nil: - section.add "MaxResults", valid_619896 - var valid_619897 = formData.getOrDefault("Filter") - valid_619897 = validateParameter(valid_619897, JArray, required = false, - default = nil) + section.add "InstanceTenancy", valid_619896 + var valid_619897 = formData.getOrDefault("MaxDuration") + valid_619897 = validateParameter(valid_619897, JInt, required = false, default = nil) if valid_619897 != nil: - section.add "Filter", valid_619897 + section.add "MaxDuration", valid_619897 + var valid_619898 = formData.getOrDefault("MaxResults") + valid_619898 = validateParameter(valid_619898, JInt, required = false, default = nil) + if valid_619898 != nil: + section.add "MaxResults", valid_619898 + var valid_619899 = formData.getOrDefault("Filter") + valid_619899 = validateParameter(valid_619899, JArray, required = false, + default = nil) + if valid_619899 != nil: + section.add "Filter", valid_619899 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619898: Call_PostDescribeReservedInstancesOfferings_619871; +proc call*(call_619900: Call_PostDescribeReservedInstancesOfferings_619873; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes Reserved Instance offerings that are available for purchase. With Reserved Instances, you purchase the right to launch instances for a period of time. During that time period, you do not receive insufficient capacity errors, and you pay a lower usage rate than the rate charged for On-Demand instances for the actual time used.

If you have listed your own Reserved Instances for sale in the Reserved Instance Marketplace, they will be excluded from these results. This is to ensure that you do not purchase your own Reserved Instances.

For more information, see Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_619898.validator(path, query, header, formData, body) - let scheme = call_619898.pickScheme + let valid = call_619900.validator(path, query, header, formData, body) + let scheme = call_619900.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619898.url(scheme.get, call_619898.host, call_619898.base, - call_619898.route, valid.getOrDefault("path"), + let url = call_619900.url(scheme.get, call_619900.host, call_619900.base, + call_619900.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619898, url, valid) + result = atozHook(call_619900, url, valid) -proc call*(call_619899: Call_PostDescribeReservedInstancesOfferings_619871; +proc call*(call_619901: Call_PostDescribeReservedInstancesOfferings_619873; InstanceType: string = "t1.micro"; ReservedInstancesOfferingId: JsonNode = nil; MaxInstanceCount: int = 0; NextToken: string = ""; IncludeMarketplace: bool = false; @@ -71950,39 +71977,39 @@ proc call*(call_619899: Call_PostDescribeReservedInstancesOfferings_619871; ## :

The maximum number of results to return for the request in a single page. The remaining results of the initial request can be seen by sending another request with the returned NextToken value. The maximum is 100.

Default: 100

## Filter: JArray ## :

One or more filters.

- var query_619900 = newJObject() - var formData_619901 = newJObject() - add(formData_619901, "InstanceType", newJString(InstanceType)) + var query_619902 = newJObject() + var formData_619903 = newJObject() + add(formData_619903, "InstanceType", newJString(InstanceType)) if ReservedInstancesOfferingId != nil: - formData_619901.add "ReservedInstancesOfferingId", ReservedInstancesOfferingId - add(formData_619901, "MaxInstanceCount", newJInt(MaxInstanceCount)) - add(formData_619901, "NextToken", newJString(NextToken)) - add(formData_619901, "IncludeMarketplace", newJBool(IncludeMarketplace)) - add(formData_619901, "OfferingClass", newJString(OfferingClass)) - add(formData_619901, "AvailabilityZone", newJString(AvailabilityZone)) - add(formData_619901, "MinDuration", newJInt(MinDuration)) - add(formData_619901, "OfferingType", newJString(OfferingType)) - add(formData_619901, "DryRun", newJBool(DryRun)) - add(formData_619901, "ProductDescription", newJString(ProductDescription)) - add(query_619900, "Action", newJString(Action)) - add(formData_619901, "InstanceTenancy", newJString(InstanceTenancy)) - add(formData_619901, "MaxDuration", newJInt(MaxDuration)) - add(query_619900, "Version", newJString(Version)) - add(formData_619901, "MaxResults", newJInt(MaxResults)) + formData_619903.add "ReservedInstancesOfferingId", ReservedInstancesOfferingId + add(formData_619903, "MaxInstanceCount", newJInt(MaxInstanceCount)) + add(formData_619903, "NextToken", newJString(NextToken)) + add(formData_619903, "IncludeMarketplace", newJBool(IncludeMarketplace)) + add(formData_619903, "OfferingClass", newJString(OfferingClass)) + add(formData_619903, "AvailabilityZone", newJString(AvailabilityZone)) + add(formData_619903, "MinDuration", newJInt(MinDuration)) + add(formData_619903, "OfferingType", newJString(OfferingType)) + add(formData_619903, "DryRun", newJBool(DryRun)) + add(formData_619903, "ProductDescription", newJString(ProductDescription)) + add(query_619902, "Action", newJString(Action)) + add(formData_619903, "InstanceTenancy", newJString(InstanceTenancy)) + add(formData_619903, "MaxDuration", newJInt(MaxDuration)) + add(query_619902, "Version", newJString(Version)) + add(formData_619903, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_619901.add "Filter", Filter - result = call_619899.call(nil, query_619900, nil, formData_619901, nil) + formData_619903.add "Filter", Filter + result = call_619901.call(nil, query_619902, nil, formData_619903, nil) -var postDescribeReservedInstancesOfferings* = Call_PostDescribeReservedInstancesOfferings_619871( +var postDescribeReservedInstancesOfferings* = Call_PostDescribeReservedInstancesOfferings_619873( name: "postDescribeReservedInstancesOfferings", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeReservedInstancesOfferings", - validator: validate_PostDescribeReservedInstancesOfferings_619872, base: "/", - url: url_PostDescribeReservedInstancesOfferings_619873, + validator: validate_PostDescribeReservedInstancesOfferings_619874, base: "/", + url: url_PostDescribeReservedInstancesOfferings_619875, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeReservedInstancesOfferings_619841 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeReservedInstancesOfferings_619843(protocol: Scheme; + Call_GetDescribeReservedInstancesOfferings_619843 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeReservedInstancesOfferings_619845(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -71992,7 +72019,7 @@ proc url_GetDescribeReservedInstancesOfferings_619843(protocol: Scheme; else: result.path = base & route -proc validate_GetDescribeReservedInstancesOfferings_619842(path: JsonNode; +proc validate_GetDescribeReservedInstancesOfferings_619844(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes Reserved Instance offerings that are available for purchase. With Reserved Instances, you purchase the right to launch instances for a period of time. During that time period, you do not receive insufficient capacity errors, and you pay a lower usage rate than the rate charged for On-Demand instances for the actual time used.

If you have listed your own Reserved Instances for sale in the Reserved Instance Marketplace, they will be excluded from these results. This is to ensure that you do not purchase your own Reserved Instances.

For more information, see Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.

## @@ -72035,85 +72062,85 @@ proc validate_GetDescribeReservedInstancesOfferings_619842(path: JsonNode; ## : The Availability Zone in which the Reserved Instance can be used. ## Version: JString (required) section = newJObject() - var valid_619844 = query.getOrDefault("MaxResults") - valid_619844 = validateParameter(valid_619844, JInt, required = false, default = nil) - if valid_619844 != nil: - section.add "MaxResults", valid_619844 - var valid_619845 = query.getOrDefault("ProductDescription") - valid_619845 = validateParameter(valid_619845, JString, required = false, - default = newJString("Linux/UNIX")) - if valid_619845 != nil: - section.add "ProductDescription", valid_619845 - var valid_619846 = query.getOrDefault("DryRun") - valid_619846 = validateParameter(valid_619846, JBool, required = false, default = nil) + var valid_619846 = query.getOrDefault("MaxResults") + valid_619846 = validateParameter(valid_619846, JInt, required = false, default = nil) if valid_619846 != nil: - section.add "DryRun", valid_619846 - var valid_619847 = query.getOrDefault("ReservedInstancesOfferingId") - valid_619847 = validateParameter(valid_619847, JArray, required = false, - default = nil) + section.add "MaxResults", valid_619846 + var valid_619847 = query.getOrDefault("ProductDescription") + valid_619847 = validateParameter(valid_619847, JString, required = false, + default = newJString("Linux/UNIX")) if valid_619847 != nil: - section.add "ReservedInstancesOfferingId", valid_619847 - var valid_619848 = query.getOrDefault("NextToken") - valid_619848 = validateParameter(valid_619848, JString, required = false, - default = nil) + section.add "ProductDescription", valid_619847 + var valid_619848 = query.getOrDefault("DryRun") + valid_619848 = validateParameter(valid_619848, JBool, required = false, default = nil) if valid_619848 != nil: - section.add "NextToken", valid_619848 - var valid_619849 = query.getOrDefault("OfferingType") - valid_619849 = validateParameter(valid_619849, JString, required = false, - default = newJString("Heavy Utilization")) + section.add "DryRun", valid_619848 + var valid_619849 = query.getOrDefault("ReservedInstancesOfferingId") + valid_619849 = validateParameter(valid_619849, JArray, required = false, + default = nil) if valid_619849 != nil: - section.add "OfferingType", valid_619849 - var valid_619850 = query.getOrDefault("MinDuration") - valid_619850 = validateParameter(valid_619850, JInt, required = false, default = nil) + section.add "ReservedInstancesOfferingId", valid_619849 + var valid_619850 = query.getOrDefault("NextToken") + valid_619850 = validateParameter(valid_619850, JString, required = false, + default = nil) if valid_619850 != nil: - section.add "MinDuration", valid_619850 - var valid_619851 = query.getOrDefault("InstanceTenancy") + section.add "NextToken", valid_619850 + var valid_619851 = query.getOrDefault("OfferingType") valid_619851 = validateParameter(valid_619851, JString, required = false, - default = newJString("default")) + default = newJString("Heavy Utilization")) if valid_619851 != nil: - section.add "InstanceTenancy", valid_619851 - var valid_619852 = query.getOrDefault("OfferingClass") - valid_619852 = validateParameter(valid_619852, JString, required = false, - default = newJString("standard")) + section.add "OfferingType", valid_619851 + var valid_619852 = query.getOrDefault("MinDuration") + valid_619852 = validateParameter(valid_619852, JInt, required = false, default = nil) if valid_619852 != nil: - section.add "OfferingClass", valid_619852 - var valid_619853 = query.getOrDefault("Filter") - valid_619853 = validateParameter(valid_619853, JArray, required = false, - default = nil) + section.add "MinDuration", valid_619852 + var valid_619853 = query.getOrDefault("InstanceTenancy") + valid_619853 = validateParameter(valid_619853, JString, required = false, + default = newJString("default")) if valid_619853 != nil: - section.add "Filter", valid_619853 - var valid_619854 = query.getOrDefault("MaxDuration") - valid_619854 = validateParameter(valid_619854, JInt, required = false, default = nil) + section.add "InstanceTenancy", valid_619853 + var valid_619854 = query.getOrDefault("OfferingClass") + valid_619854 = validateParameter(valid_619854, JString, required = false, + default = newJString("standard")) if valid_619854 != nil: - section.add "MaxDuration", valid_619854 - var valid_619855 = query.getOrDefault("InstanceType") - valid_619855 = validateParameter(valid_619855, JString, required = false, - default = newJString("t1.micro")) + section.add "OfferingClass", valid_619854 + var valid_619855 = query.getOrDefault("Filter") + valid_619855 = validateParameter(valid_619855, JArray, required = false, + default = nil) if valid_619855 != nil: - section.add "InstanceType", valid_619855 - var valid_619856 = query.getOrDefault("Action") - valid_619856 = validateParameter(valid_619856, JString, required = true, default = newJString( - "DescribeReservedInstancesOfferings")) + section.add "Filter", valid_619855 + var valid_619856 = query.getOrDefault("MaxDuration") + valid_619856 = validateParameter(valid_619856, JInt, required = false, default = nil) if valid_619856 != nil: - section.add "Action", valid_619856 - var valid_619857 = query.getOrDefault("IncludeMarketplace") - valid_619857 = validateParameter(valid_619857, JBool, required = false, default = nil) + section.add "MaxDuration", valid_619856 + var valid_619857 = query.getOrDefault("InstanceType") + valid_619857 = validateParameter(valid_619857, JString, required = false, + default = newJString("t1.micro")) if valid_619857 != nil: - section.add "IncludeMarketplace", valid_619857 - var valid_619858 = query.getOrDefault("MaxInstanceCount") - valid_619858 = validateParameter(valid_619858, JInt, required = false, default = nil) + section.add "InstanceType", valid_619857 + var valid_619858 = query.getOrDefault("Action") + valid_619858 = validateParameter(valid_619858, JString, required = true, default = newJString( + "DescribeReservedInstancesOfferings")) if valid_619858 != nil: - section.add "MaxInstanceCount", valid_619858 - var valid_619859 = query.getOrDefault("AvailabilityZone") - valid_619859 = validateParameter(valid_619859, JString, required = false, - default = nil) + section.add "Action", valid_619858 + var valid_619859 = query.getOrDefault("IncludeMarketplace") + valid_619859 = validateParameter(valid_619859, JBool, required = false, default = nil) if valid_619859 != nil: - section.add "AvailabilityZone", valid_619859 - var valid_619860 = query.getOrDefault("Version") - valid_619860 = validateParameter(valid_619860, JString, required = true, - default = newJString("2016-11-15")) + section.add "IncludeMarketplace", valid_619859 + var valid_619860 = query.getOrDefault("MaxInstanceCount") + valid_619860 = validateParameter(valid_619860, JInt, required = false, default = nil) if valid_619860 != nil: - section.add "Version", valid_619860 + section.add "MaxInstanceCount", valid_619860 + var valid_619861 = query.getOrDefault("AvailabilityZone") + valid_619861 = validateParameter(valid_619861, JString, required = false, + default = nil) + if valid_619861 != nil: + section.add "AvailabilityZone", valid_619861 + var valid_619862 = query.getOrDefault("Version") + valid_619862 = validateParameter(valid_619862, JString, required = true, + default = newJString("2016-11-15")) + if valid_619862 != nil: + section.add "Version", valid_619862 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -72124,62 +72151,62 @@ proc validate_GetDescribeReservedInstancesOfferings_619842(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619861 = header.getOrDefault("X-Amz-Signature") - valid_619861 = validateParameter(valid_619861, JString, required = false, - default = nil) - if valid_619861 != nil: - section.add "X-Amz-Signature", valid_619861 - var valid_619862 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619862 = validateParameter(valid_619862, JString, required = false, - default = nil) - if valid_619862 != nil: - section.add "X-Amz-Content-Sha256", valid_619862 - var valid_619863 = header.getOrDefault("X-Amz-Date") + var valid_619863 = header.getOrDefault("X-Amz-Signature") valid_619863 = validateParameter(valid_619863, JString, required = false, default = nil) if valid_619863 != nil: - section.add "X-Amz-Date", valid_619863 - var valid_619864 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619863 + var valid_619864 = header.getOrDefault("X-Amz-Content-Sha256") valid_619864 = validateParameter(valid_619864, JString, required = false, default = nil) if valid_619864 != nil: - section.add "X-Amz-Credential", valid_619864 - var valid_619865 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619864 + var valid_619865 = header.getOrDefault("X-Amz-Date") valid_619865 = validateParameter(valid_619865, JString, required = false, default = nil) if valid_619865 != nil: - section.add "X-Amz-Security-Token", valid_619865 - var valid_619866 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619865 + var valid_619866 = header.getOrDefault("X-Amz-Credential") valid_619866 = validateParameter(valid_619866, JString, required = false, default = nil) if valid_619866 != nil: - section.add "X-Amz-Algorithm", valid_619866 - var valid_619867 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619866 + var valid_619867 = header.getOrDefault("X-Amz-Security-Token") valid_619867 = validateParameter(valid_619867, JString, required = false, default = nil) if valid_619867 != nil: - section.add "X-Amz-SignedHeaders", valid_619867 + section.add "X-Amz-Security-Token", valid_619867 + var valid_619868 = header.getOrDefault("X-Amz-Algorithm") + valid_619868 = validateParameter(valid_619868, JString, required = false, + default = nil) + if valid_619868 != nil: + section.add "X-Amz-Algorithm", valid_619868 + var valid_619869 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619869 = validateParameter(valid_619869, JString, required = false, + default = nil) + if valid_619869 != nil: + section.add "X-Amz-SignedHeaders", valid_619869 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619868: Call_GetDescribeReservedInstancesOfferings_619841; +proc call*(call_619870: Call_GetDescribeReservedInstancesOfferings_619843; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes Reserved Instance offerings that are available for purchase. With Reserved Instances, you purchase the right to launch instances for a period of time. During that time period, you do not receive insufficient capacity errors, and you pay a lower usage rate than the rate charged for On-Demand instances for the actual time used.

If you have listed your own Reserved Instances for sale in the Reserved Instance Marketplace, they will be excluded from these results. This is to ensure that you do not purchase your own Reserved Instances.

For more information, see Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_619868.validator(path, query, header, formData, body) - let scheme = call_619868.pickScheme + let valid = call_619870.validator(path, query, header, formData, body) + let scheme = call_619870.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619868.url(scheme.get, call_619868.host, call_619868.base, - call_619868.route, valid.getOrDefault("path"), + let url = call_619870.url(scheme.get, call_619870.host, call_619870.base, + call_619870.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619868, url, valid) + result = atozHook(call_619870, url, valid) -proc call*(call_619869: Call_GetDescribeReservedInstancesOfferings_619841; +proc call*(call_619871: Call_GetDescribeReservedInstancesOfferings_619843; MaxResults: int = 0; ProductDescription: string = "Linux/UNIX"; DryRun: bool = false; ReservedInstancesOfferingId: JsonNode = nil; NextToken: string = ""; OfferingType: string = "Heavy Utilization"; @@ -72224,38 +72251,38 @@ proc call*(call_619869: Call_GetDescribeReservedInstancesOfferings_619841; ## AvailabilityZone: string ## : The Availability Zone in which the Reserved Instance can be used. ## Version: string (required) - var query_619870 = newJObject() - add(query_619870, "MaxResults", newJInt(MaxResults)) - add(query_619870, "ProductDescription", newJString(ProductDescription)) - add(query_619870, "DryRun", newJBool(DryRun)) + var query_619872 = newJObject() + add(query_619872, "MaxResults", newJInt(MaxResults)) + add(query_619872, "ProductDescription", newJString(ProductDescription)) + add(query_619872, "DryRun", newJBool(DryRun)) if ReservedInstancesOfferingId != nil: - query_619870.add "ReservedInstancesOfferingId", ReservedInstancesOfferingId - add(query_619870, "NextToken", newJString(NextToken)) - add(query_619870, "OfferingType", newJString(OfferingType)) - add(query_619870, "MinDuration", newJInt(MinDuration)) - add(query_619870, "InstanceTenancy", newJString(InstanceTenancy)) - add(query_619870, "OfferingClass", newJString(OfferingClass)) + query_619872.add "ReservedInstancesOfferingId", ReservedInstancesOfferingId + add(query_619872, "NextToken", newJString(NextToken)) + add(query_619872, "OfferingType", newJString(OfferingType)) + add(query_619872, "MinDuration", newJInt(MinDuration)) + add(query_619872, "InstanceTenancy", newJString(InstanceTenancy)) + add(query_619872, "OfferingClass", newJString(OfferingClass)) if Filter != nil: - query_619870.add "Filter", Filter - add(query_619870, "MaxDuration", newJInt(MaxDuration)) - add(query_619870, "InstanceType", newJString(InstanceType)) - add(query_619870, "Action", newJString(Action)) - add(query_619870, "IncludeMarketplace", newJBool(IncludeMarketplace)) - add(query_619870, "MaxInstanceCount", newJInt(MaxInstanceCount)) - add(query_619870, "AvailabilityZone", newJString(AvailabilityZone)) - add(query_619870, "Version", newJString(Version)) - result = call_619869.call(nil, query_619870, nil, nil, nil) - -var getDescribeReservedInstancesOfferings* = Call_GetDescribeReservedInstancesOfferings_619841( + query_619872.add "Filter", Filter + add(query_619872, "MaxDuration", newJInt(MaxDuration)) + add(query_619872, "InstanceType", newJString(InstanceType)) + add(query_619872, "Action", newJString(Action)) + add(query_619872, "IncludeMarketplace", newJBool(IncludeMarketplace)) + add(query_619872, "MaxInstanceCount", newJInt(MaxInstanceCount)) + add(query_619872, "AvailabilityZone", newJString(AvailabilityZone)) + add(query_619872, "Version", newJString(Version)) + result = call_619871.call(nil, query_619872, nil, nil, nil) + +var getDescribeReservedInstancesOfferings* = Call_GetDescribeReservedInstancesOfferings_619843( name: "getDescribeReservedInstancesOfferings", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeReservedInstancesOfferings", - validator: validate_GetDescribeReservedInstancesOfferings_619842, base: "/", - url: url_GetDescribeReservedInstancesOfferings_619843, + validator: validate_GetDescribeReservedInstancesOfferings_619844, base: "/", + url: url_GetDescribeReservedInstancesOfferings_619845, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeRouteTables_619922 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeRouteTables_619924(protocol: Scheme; host: string; base: string; + Call_PostDescribeRouteTables_619924 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeRouteTables_619926(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -72266,7 +72293,7 @@ proc url_PostDescribeRouteTables_619924(protocol: Scheme; host: string; base: st else: result.path = base & route -proc validate_PostDescribeRouteTables_619923(path: JsonNode; query: JsonNode; +proc validate_PostDescribeRouteTables_619925(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes one or more of your route tables.

Each subnet in your VPC must be associated with a route table. If a subnet is not explicitly associated with any route table, it is implicitly associated with the main route table. This command does not return the subnet ID for implicit associations.

For more information, see Route Tables in the Amazon Virtual Private Cloud User Guide.

## @@ -72278,16 +72305,16 @@ proc validate_PostDescribeRouteTables_619923(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619925 = query.getOrDefault("Action") - valid_619925 = validateParameter(valid_619925, JString, required = true, + var valid_619927 = query.getOrDefault("Action") + valid_619927 = validateParameter(valid_619927, JString, required = true, default = newJString("DescribeRouteTables")) - if valid_619925 != nil: - section.add "Action", valid_619925 - var valid_619926 = query.getOrDefault("Version") - valid_619926 = validateParameter(valid_619926, JString, required = true, + if valid_619927 != nil: + section.add "Action", valid_619927 + var valid_619928 = query.getOrDefault("Version") + valid_619928 = validateParameter(valid_619928, JString, required = true, default = newJString("2016-11-15")) - if valid_619926 != nil: - section.add "Version", valid_619926 + if valid_619928 != nil: + section.add "Version", valid_619928 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -72298,41 +72325,41 @@ proc validate_PostDescribeRouteTables_619923(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619927 = header.getOrDefault("X-Amz-Signature") - valid_619927 = validateParameter(valid_619927, JString, required = false, - default = nil) - if valid_619927 != nil: - section.add "X-Amz-Signature", valid_619927 - var valid_619928 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619928 = validateParameter(valid_619928, JString, required = false, - default = nil) - if valid_619928 != nil: - section.add "X-Amz-Content-Sha256", valid_619928 - var valid_619929 = header.getOrDefault("X-Amz-Date") + var valid_619929 = header.getOrDefault("X-Amz-Signature") valid_619929 = validateParameter(valid_619929, JString, required = false, default = nil) if valid_619929 != nil: - section.add "X-Amz-Date", valid_619929 - var valid_619930 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619929 + var valid_619930 = header.getOrDefault("X-Amz-Content-Sha256") valid_619930 = validateParameter(valid_619930, JString, required = false, default = nil) if valid_619930 != nil: - section.add "X-Amz-Credential", valid_619930 - var valid_619931 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619930 + var valid_619931 = header.getOrDefault("X-Amz-Date") valid_619931 = validateParameter(valid_619931, JString, required = false, default = nil) if valid_619931 != nil: - section.add "X-Amz-Security-Token", valid_619931 - var valid_619932 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619931 + var valid_619932 = header.getOrDefault("X-Amz-Credential") valid_619932 = validateParameter(valid_619932, JString, required = false, default = nil) if valid_619932 != nil: - section.add "X-Amz-Algorithm", valid_619932 - var valid_619933 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619932 + var valid_619933 = header.getOrDefault("X-Amz-Security-Token") valid_619933 = validateParameter(valid_619933, JString, required = false, default = nil) if valid_619933 != nil: - section.add "X-Amz-SignedHeaders", valid_619933 + section.add "X-Amz-Security-Token", valid_619933 + var valid_619934 = header.getOrDefault("X-Amz-Algorithm") + valid_619934 = validateParameter(valid_619934, JString, required = false, + default = nil) + if valid_619934 != nil: + section.add "X-Amz-Algorithm", valid_619934 + var valid_619935 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619935 = validateParameter(valid_619935, JString, required = false, + default = nil) + if valid_619935 != nil: + section.add "X-Amz-SignedHeaders", valid_619935 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -72346,47 +72373,47 @@ proc validate_PostDescribeRouteTables_619923(path: JsonNode; query: JsonNode; ## Filter: JArray ## :

One or more filters.

section = newJObject() - var valid_619934 = formData.getOrDefault("NextToken") - valid_619934 = validateParameter(valid_619934, JString, required = false, - default = nil) - if valid_619934 != nil: - section.add "NextToken", valid_619934 - var valid_619935 = formData.getOrDefault("DryRun") - valid_619935 = validateParameter(valid_619935, JBool, required = false, default = nil) - if valid_619935 != nil: - section.add "DryRun", valid_619935 - var valid_619936 = formData.getOrDefault("RouteTableId") - valid_619936 = validateParameter(valid_619936, JArray, required = false, + var valid_619936 = formData.getOrDefault("NextToken") + valid_619936 = validateParameter(valid_619936, JString, required = false, default = nil) if valid_619936 != nil: - section.add "RouteTableId", valid_619936 - var valid_619937 = formData.getOrDefault("MaxResults") - valid_619937 = validateParameter(valid_619937, JInt, required = false, default = nil) + section.add "NextToken", valid_619936 + var valid_619937 = formData.getOrDefault("DryRun") + valid_619937 = validateParameter(valid_619937, JBool, required = false, default = nil) if valid_619937 != nil: - section.add "MaxResults", valid_619937 - var valid_619938 = formData.getOrDefault("Filter") + section.add "DryRun", valid_619937 + var valid_619938 = formData.getOrDefault("RouteTableId") valid_619938 = validateParameter(valid_619938, JArray, required = false, default = nil) if valid_619938 != nil: - section.add "Filter", valid_619938 + section.add "RouteTableId", valid_619938 + var valid_619939 = formData.getOrDefault("MaxResults") + valid_619939 = validateParameter(valid_619939, JInt, required = false, default = nil) + if valid_619939 != nil: + section.add "MaxResults", valid_619939 + var valid_619940 = formData.getOrDefault("Filter") + valid_619940 = validateParameter(valid_619940, JArray, required = false, + default = nil) + if valid_619940 != nil: + section.add "Filter", valid_619940 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619939: Call_PostDescribeRouteTables_619922; path: JsonNode; +proc call*(call_619941: Call_PostDescribeRouteTables_619924; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes one or more of your route tables.

Each subnet in your VPC must be associated with a route table. If a subnet is not explicitly associated with any route table, it is implicitly associated with the main route table. This command does not return the subnet ID for implicit associations.

For more information, see Route Tables in the Amazon Virtual Private Cloud User Guide.

## - let valid = call_619939.validator(path, query, header, formData, body) - let scheme = call_619939.pickScheme + let valid = call_619941.validator(path, query, header, formData, body) + let scheme = call_619941.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619939.url(scheme.get, call_619939.host, call_619939.base, - call_619939.route, valid.getOrDefault("path"), + let url = call_619941.url(scheme.get, call_619941.host, call_619941.base, + call_619941.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619939, url, valid) + result = atozHook(call_619941, url, valid) -proc call*(call_619940: Call_PostDescribeRouteTables_619922; +proc call*(call_619942: Call_PostDescribeRouteTables_619924; NextToken: string = ""; DryRun: bool = false; RouteTableId: JsonNode = nil; Action: string = "DescribeRouteTables"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -72404,27 +72431,27 @@ proc call*(call_619940: Call_PostDescribeRouteTables_619922; ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## Filter: JArray ## :

One or more filters.

- var query_619941 = newJObject() - var formData_619942 = newJObject() - add(formData_619942, "NextToken", newJString(NextToken)) - add(formData_619942, "DryRun", newJBool(DryRun)) + var query_619943 = newJObject() + var formData_619944 = newJObject() + add(formData_619944, "NextToken", newJString(NextToken)) + add(formData_619944, "DryRun", newJBool(DryRun)) if RouteTableId != nil: - formData_619942.add "RouteTableId", RouteTableId - add(query_619941, "Action", newJString(Action)) - add(query_619941, "Version", newJString(Version)) - add(formData_619942, "MaxResults", newJInt(MaxResults)) + formData_619944.add "RouteTableId", RouteTableId + add(query_619943, "Action", newJString(Action)) + add(query_619943, "Version", newJString(Version)) + add(formData_619944, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_619942.add "Filter", Filter - result = call_619940.call(nil, query_619941, nil, formData_619942, nil) + formData_619944.add "Filter", Filter + result = call_619942.call(nil, query_619943, nil, formData_619944, nil) -var postDescribeRouteTables* = Call_PostDescribeRouteTables_619922( +var postDescribeRouteTables* = Call_PostDescribeRouteTables_619924( name: "postDescribeRouteTables", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeRouteTables", - validator: validate_PostDescribeRouteTables_619923, base: "/", - url: url_PostDescribeRouteTables_619924, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDescribeRouteTables_619925, base: "/", + url: url_PostDescribeRouteTables_619926, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeRouteTables_619902 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeRouteTables_619904(protocol: Scheme; host: string; base: string; + Call_GetDescribeRouteTables_619904 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeRouteTables_619906(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -72434,7 +72461,7 @@ proc url_GetDescribeRouteTables_619904(protocol: Scheme; host: string; base: str else: result.path = base & route -proc validate_GetDescribeRouteTables_619903(path: JsonNode; query: JsonNode; +proc validate_GetDescribeRouteTables_619905(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes one or more of your route tables.

Each subnet in your VPC must be associated with a route table. If a subnet is not explicitly associated with any route table, it is implicitly associated with the main route table. This command does not return the subnet ID for implicit associations.

For more information, see Route Tables in the Amazon Virtual Private Cloud User Guide.

## @@ -72456,39 +72483,39 @@ proc validate_GetDescribeRouteTables_619903(path: JsonNode; query: JsonNode; ## RouteTableId: JArray ## :

One or more route table IDs.

Default: Describes all your route tables.

section = newJObject() - var valid_619905 = query.getOrDefault("MaxResults") - valid_619905 = validateParameter(valid_619905, JInt, required = false, default = nil) - if valid_619905 != nil: - section.add "MaxResults", valid_619905 - var valid_619906 = query.getOrDefault("DryRun") - valid_619906 = validateParameter(valid_619906, JBool, required = false, default = nil) - if valid_619906 != nil: - section.add "DryRun", valid_619906 - var valid_619907 = query.getOrDefault("NextToken") - valid_619907 = validateParameter(valid_619907, JString, required = false, - default = nil) + var valid_619907 = query.getOrDefault("MaxResults") + valid_619907 = validateParameter(valid_619907, JInt, required = false, default = nil) if valid_619907 != nil: - section.add "NextToken", valid_619907 - var valid_619908 = query.getOrDefault("Filter") - valid_619908 = validateParameter(valid_619908, JArray, required = false, - default = nil) + section.add "MaxResults", valid_619907 + var valid_619908 = query.getOrDefault("DryRun") + valid_619908 = validateParameter(valid_619908, JBool, required = false, default = nil) if valid_619908 != nil: - section.add "Filter", valid_619908 - var valid_619909 = query.getOrDefault("Action") - valid_619909 = validateParameter(valid_619909, JString, required = true, - default = newJString("DescribeRouteTables")) + section.add "DryRun", valid_619908 + var valid_619909 = query.getOrDefault("NextToken") + valid_619909 = validateParameter(valid_619909, JString, required = false, + default = nil) if valid_619909 != nil: - section.add "Action", valid_619909 - var valid_619910 = query.getOrDefault("Version") - valid_619910 = validateParameter(valid_619910, JString, required = true, - default = newJString("2016-11-15")) - if valid_619910 != nil: - section.add "Version", valid_619910 - var valid_619911 = query.getOrDefault("RouteTableId") - valid_619911 = validateParameter(valid_619911, JArray, required = false, + section.add "NextToken", valid_619909 + var valid_619910 = query.getOrDefault("Filter") + valid_619910 = validateParameter(valid_619910, JArray, required = false, default = nil) + if valid_619910 != nil: + section.add "Filter", valid_619910 + var valid_619911 = query.getOrDefault("Action") + valid_619911 = validateParameter(valid_619911, JString, required = true, + default = newJString("DescribeRouteTables")) if valid_619911 != nil: - section.add "RouteTableId", valid_619911 + section.add "Action", valid_619911 + var valid_619912 = query.getOrDefault("Version") + valid_619912 = validateParameter(valid_619912, JString, required = true, + default = newJString("2016-11-15")) + if valid_619912 != nil: + section.add "Version", valid_619912 + var valid_619913 = query.getOrDefault("RouteTableId") + valid_619913 = validateParameter(valid_619913, JArray, required = false, + default = nil) + if valid_619913 != nil: + section.add "RouteTableId", valid_619913 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -72499,61 +72526,61 @@ proc validate_GetDescribeRouteTables_619903(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619912 = header.getOrDefault("X-Amz-Signature") - valid_619912 = validateParameter(valid_619912, JString, required = false, - default = nil) - if valid_619912 != nil: - section.add "X-Amz-Signature", valid_619912 - var valid_619913 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619913 = validateParameter(valid_619913, JString, required = false, - default = nil) - if valid_619913 != nil: - section.add "X-Amz-Content-Sha256", valid_619913 - var valid_619914 = header.getOrDefault("X-Amz-Date") + var valid_619914 = header.getOrDefault("X-Amz-Signature") valid_619914 = validateParameter(valid_619914, JString, required = false, default = nil) if valid_619914 != nil: - section.add "X-Amz-Date", valid_619914 - var valid_619915 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619914 + var valid_619915 = header.getOrDefault("X-Amz-Content-Sha256") valid_619915 = validateParameter(valid_619915, JString, required = false, default = nil) if valid_619915 != nil: - section.add "X-Amz-Credential", valid_619915 - var valid_619916 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619915 + var valid_619916 = header.getOrDefault("X-Amz-Date") valid_619916 = validateParameter(valid_619916, JString, required = false, default = nil) if valid_619916 != nil: - section.add "X-Amz-Security-Token", valid_619916 - var valid_619917 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619916 + var valid_619917 = header.getOrDefault("X-Amz-Credential") valid_619917 = validateParameter(valid_619917, JString, required = false, default = nil) if valid_619917 != nil: - section.add "X-Amz-Algorithm", valid_619917 - var valid_619918 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619917 + var valid_619918 = header.getOrDefault("X-Amz-Security-Token") valid_619918 = validateParameter(valid_619918, JString, required = false, default = nil) if valid_619918 != nil: - section.add "X-Amz-SignedHeaders", valid_619918 + section.add "X-Amz-Security-Token", valid_619918 + var valid_619919 = header.getOrDefault("X-Amz-Algorithm") + valid_619919 = validateParameter(valid_619919, JString, required = false, + default = nil) + if valid_619919 != nil: + section.add "X-Amz-Algorithm", valid_619919 + var valid_619920 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619920 = validateParameter(valid_619920, JString, required = false, + default = nil) + if valid_619920 != nil: + section.add "X-Amz-SignedHeaders", valid_619920 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619919: Call_GetDescribeRouteTables_619902; path: JsonNode; +proc call*(call_619921: Call_GetDescribeRouteTables_619904; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes one or more of your route tables.

Each subnet in your VPC must be associated with a route table. If a subnet is not explicitly associated with any route table, it is implicitly associated with the main route table. This command does not return the subnet ID for implicit associations.

For more information, see Route Tables in the Amazon Virtual Private Cloud User Guide.

## - let valid = call_619919.validator(path, query, header, formData, body) - let scheme = call_619919.pickScheme + let valid = call_619921.validator(path, query, header, formData, body) + let scheme = call_619921.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619919.url(scheme.get, call_619919.host, call_619919.base, - call_619919.route, valid.getOrDefault("path"), + let url = call_619921.url(scheme.get, call_619921.host, call_619921.base, + call_619921.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619919, url, valid) + result = atozHook(call_619921, url, valid) -proc call*(call_619920: Call_GetDescribeRouteTables_619902; MaxResults: int = 0; +proc call*(call_619922: Call_GetDescribeRouteTables_619904; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeRouteTables"; Version: string = "2016-11-15"; RouteTableId: JsonNode = nil): Recallable = @@ -72571,26 +72598,26 @@ proc call*(call_619920: Call_GetDescribeRouteTables_619902; MaxResults: int = 0; ## Version: string (required) ## RouteTableId: JArray ## :

One or more route table IDs.

Default: Describes all your route tables.

- var query_619921 = newJObject() - add(query_619921, "MaxResults", newJInt(MaxResults)) - add(query_619921, "DryRun", newJBool(DryRun)) - add(query_619921, "NextToken", newJString(NextToken)) + var query_619923 = newJObject() + add(query_619923, "MaxResults", newJInt(MaxResults)) + add(query_619923, "DryRun", newJBool(DryRun)) + add(query_619923, "NextToken", newJString(NextToken)) if Filter != nil: - query_619921.add "Filter", Filter - add(query_619921, "Action", newJString(Action)) - add(query_619921, "Version", newJString(Version)) + query_619923.add "Filter", Filter + add(query_619923, "Action", newJString(Action)) + add(query_619923, "Version", newJString(Version)) if RouteTableId != nil: - query_619921.add "RouteTableId", RouteTableId - result = call_619920.call(nil, query_619921, nil, nil, nil) + query_619923.add "RouteTableId", RouteTableId + result = call_619922.call(nil, query_619923, nil, nil, nil) -var getDescribeRouteTables* = Call_GetDescribeRouteTables_619902( +var getDescribeRouteTables* = Call_GetDescribeRouteTables_619904( name: "getDescribeRouteTables", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeRouteTables", - validator: validate_GetDescribeRouteTables_619903, base: "/", - url: url_GetDescribeRouteTables_619904, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDescribeRouteTables_619905, base: "/", + url: url_GetDescribeRouteTables_619906, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeScheduledInstanceAvailability_619971 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeScheduledInstanceAvailability_619973(protocol: Scheme; + Call_PostDescribeScheduledInstanceAvailability_619973 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeScheduledInstanceAvailability_619975(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -72600,7 +72627,7 @@ proc url_PostDescribeScheduledInstanceAvailability_619973(protocol: Scheme; else: result.path = base & route -proc validate_PostDescribeScheduledInstanceAvailability_619972(path: JsonNode; +proc validate_PostDescribeScheduledInstanceAvailability_619974(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Finds available schedules that meet the specified criteria.

You can search for an available schedule no more than 3 months in advance. You must meet the minimum required duration of 1,200 hours per year. For example, the minimum daily schedule is 4 hours, the minimum weekly schedule is 24 hours, and the minimum monthly schedule is 100 hours.

After you find a schedule that meets your needs, call PurchaseScheduledInstances to purchase Scheduled Instances with that schedule.

## @@ -72612,16 +72639,16 @@ proc validate_PostDescribeScheduledInstanceAvailability_619972(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_619974 = query.getOrDefault("Action") - valid_619974 = validateParameter(valid_619974, JString, required = true, default = newJString( + var valid_619976 = query.getOrDefault("Action") + valid_619976 = validateParameter(valid_619976, JString, required = true, default = newJString( "DescribeScheduledInstanceAvailability")) - if valid_619974 != nil: - section.add "Action", valid_619974 - var valid_619975 = query.getOrDefault("Version") - valid_619975 = validateParameter(valid_619975, JString, required = true, + if valid_619976 != nil: + section.add "Action", valid_619976 + var valid_619977 = query.getOrDefault("Version") + valid_619977 = validateParameter(valid_619977, JString, required = true, default = newJString("2016-11-15")) - if valid_619975 != nil: - section.add "Version", valid_619975 + if valid_619977 != nil: + section.add "Version", valid_619977 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -72632,41 +72659,41 @@ proc validate_PostDescribeScheduledInstanceAvailability_619972(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619976 = header.getOrDefault("X-Amz-Signature") - valid_619976 = validateParameter(valid_619976, JString, required = false, - default = nil) - if valid_619976 != nil: - section.add "X-Amz-Signature", valid_619976 - var valid_619977 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619977 = validateParameter(valid_619977, JString, required = false, - default = nil) - if valid_619977 != nil: - section.add "X-Amz-Content-Sha256", valid_619977 - var valid_619978 = header.getOrDefault("X-Amz-Date") + var valid_619978 = header.getOrDefault("X-Amz-Signature") valid_619978 = validateParameter(valid_619978, JString, required = false, default = nil) if valid_619978 != nil: - section.add "X-Amz-Date", valid_619978 - var valid_619979 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619978 + var valid_619979 = header.getOrDefault("X-Amz-Content-Sha256") valid_619979 = validateParameter(valid_619979, JString, required = false, default = nil) if valid_619979 != nil: - section.add "X-Amz-Credential", valid_619979 - var valid_619980 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619979 + var valid_619980 = header.getOrDefault("X-Amz-Date") valid_619980 = validateParameter(valid_619980, JString, required = false, default = nil) if valid_619980 != nil: - section.add "X-Amz-Security-Token", valid_619980 - var valid_619981 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619980 + var valid_619981 = header.getOrDefault("X-Amz-Credential") valid_619981 = validateParameter(valid_619981, JString, required = false, default = nil) if valid_619981 != nil: - section.add "X-Amz-Algorithm", valid_619981 - var valid_619982 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619981 + var valid_619982 = header.getOrDefault("X-Amz-Security-Token") valid_619982 = validateParameter(valid_619982, JString, required = false, default = nil) if valid_619982 != nil: - section.add "X-Amz-SignedHeaders", valid_619982 + section.add "X-Amz-Security-Token", valid_619982 + var valid_619983 = header.getOrDefault("X-Amz-Algorithm") + valid_619983 = validateParameter(valid_619983, JString, required = false, + default = nil) + if valid_619983 != nil: + section.add "X-Amz-Algorithm", valid_619983 + var valid_619984 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619984 = validateParameter(valid_619984, JString, required = false, + default = nil) + if valid_619984 != nil: + section.add "X-Amz-SignedHeaders", valid_619984 result.add "header", section ## parameters in `formData` object: ## FirstSlotStartTimeRange.EarliestTime: JString @@ -72703,86 +72730,86 @@ proc validate_PostDescribeScheduledInstanceAvailability_619972(path: JsonNode; ## Filter: JArray ## :

The filters.

section = newJObject() - var valid_619983 = formData.getOrDefault("FirstSlotStartTimeRange.EarliestTime") - valid_619983 = validateParameter(valid_619983, JString, required = false, - default = nil) - if valid_619983 != nil: - section.add "FirstSlotStartTimeRange.EarliestTime", valid_619983 - var valid_619984 = formData.getOrDefault("NextToken") - valid_619984 = validateParameter(valid_619984, JString, required = false, - default = nil) - if valid_619984 != nil: - section.add "NextToken", valid_619984 - var valid_619985 = formData.getOrDefault("FirstSlotStartTimeRange.LatestTime") + var valid_619985 = formData.getOrDefault("FirstSlotStartTimeRange.EarliestTime") valid_619985 = validateParameter(valid_619985, JString, required = false, default = nil) if valid_619985 != nil: - section.add "FirstSlotStartTimeRange.LatestTime", valid_619985 - var valid_619986 = formData.getOrDefault("Recurrence.OccurrenceUnit") + section.add "FirstSlotStartTimeRange.EarliestTime", valid_619985 + var valid_619986 = formData.getOrDefault("NextToken") valid_619986 = validateParameter(valid_619986, JString, required = false, default = nil) if valid_619986 != nil: - section.add "Recurrence.OccurrenceUnit", valid_619986 - var valid_619987 = formData.getOrDefault("Recurrence.Frequency") + section.add "NextToken", valid_619986 + var valid_619987 = formData.getOrDefault("FirstSlotStartTimeRange.LatestTime") valid_619987 = validateParameter(valid_619987, JString, required = false, default = nil) if valid_619987 != nil: - section.add "Recurrence.Frequency", valid_619987 - var valid_619988 = formData.getOrDefault("Recurrence.OccurrenceRelativeToEnd") + section.add "FirstSlotStartTimeRange.LatestTime", valid_619987 + var valid_619988 = formData.getOrDefault("Recurrence.OccurrenceUnit") valid_619988 = validateParameter(valid_619988, JString, required = false, default = nil) if valid_619988 != nil: - section.add "Recurrence.OccurrenceRelativeToEnd", valid_619988 - var valid_619989 = formData.getOrDefault("Recurrence.OccurrenceDays") - valid_619989 = validateParameter(valid_619989, JArray, required = false, + section.add "Recurrence.OccurrenceUnit", valid_619988 + var valid_619989 = formData.getOrDefault("Recurrence.Frequency") + valid_619989 = validateParameter(valid_619989, JString, required = false, default = nil) if valid_619989 != nil: - section.add "Recurrence.OccurrenceDays", valid_619989 - var valid_619990 = formData.getOrDefault("MinSlotDurationInHours") - valid_619990 = validateParameter(valid_619990, JInt, required = false, default = nil) + section.add "Recurrence.Frequency", valid_619989 + var valid_619990 = formData.getOrDefault("Recurrence.OccurrenceRelativeToEnd") + valid_619990 = validateParameter(valid_619990, JString, required = false, + default = nil) if valid_619990 != nil: - section.add "MinSlotDurationInHours", valid_619990 - var valid_619991 = formData.getOrDefault("DryRun") - valid_619991 = validateParameter(valid_619991, JBool, required = false, default = nil) + section.add "Recurrence.OccurrenceRelativeToEnd", valid_619990 + var valid_619991 = formData.getOrDefault("Recurrence.OccurrenceDays") + valid_619991 = validateParameter(valid_619991, JArray, required = false, + default = nil) if valid_619991 != nil: - section.add "DryRun", valid_619991 - var valid_619992 = formData.getOrDefault("MaxSlotDurationInHours") + section.add "Recurrence.OccurrenceDays", valid_619991 + var valid_619992 = formData.getOrDefault("MinSlotDurationInHours") valid_619992 = validateParameter(valid_619992, JInt, required = false, default = nil) if valid_619992 != nil: - section.add "MaxSlotDurationInHours", valid_619992 - var valid_619993 = formData.getOrDefault("Recurrence.Interval") - valid_619993 = validateParameter(valid_619993, JString, required = false, - default = nil) + section.add "MinSlotDurationInHours", valid_619992 + var valid_619993 = formData.getOrDefault("DryRun") + valid_619993 = validateParameter(valid_619993, JBool, required = false, default = nil) if valid_619993 != nil: - section.add "Recurrence.Interval", valid_619993 - var valid_619994 = formData.getOrDefault("MaxResults") + section.add "DryRun", valid_619993 + var valid_619994 = formData.getOrDefault("MaxSlotDurationInHours") valid_619994 = validateParameter(valid_619994, JInt, required = false, default = nil) if valid_619994 != nil: - section.add "MaxResults", valid_619994 - var valid_619995 = formData.getOrDefault("Filter") - valid_619995 = validateParameter(valid_619995, JArray, required = false, + section.add "MaxSlotDurationInHours", valid_619994 + var valid_619995 = formData.getOrDefault("Recurrence.Interval") + valid_619995 = validateParameter(valid_619995, JString, required = false, default = nil) if valid_619995 != nil: - section.add "Filter", valid_619995 + section.add "Recurrence.Interval", valid_619995 + var valid_619996 = formData.getOrDefault("MaxResults") + valid_619996 = validateParameter(valid_619996, JInt, required = false, default = nil) + if valid_619996 != nil: + section.add "MaxResults", valid_619996 + var valid_619997 = formData.getOrDefault("Filter") + valid_619997 = validateParameter(valid_619997, JArray, required = false, + default = nil) + if valid_619997 != nil: + section.add "Filter", valid_619997 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619996: Call_PostDescribeScheduledInstanceAvailability_619971; +proc call*(call_619998: Call_PostDescribeScheduledInstanceAvailability_619973; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Finds available schedules that meet the specified criteria.

You can search for an available schedule no more than 3 months in advance. You must meet the minimum required duration of 1,200 hours per year. For example, the minimum daily schedule is 4 hours, the minimum weekly schedule is 24 hours, and the minimum monthly schedule is 100 hours.

After you find a schedule that meets your needs, call PurchaseScheduledInstances to purchase Scheduled Instances with that schedule.

## - let valid = call_619996.validator(path, query, header, formData, body) - let scheme = call_619996.pickScheme + let valid = call_619998.validator(path, query, header, formData, body) + let scheme = call_619998.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619996.url(scheme.get, call_619996.host, call_619996.base, - call_619996.route, valid.getOrDefault("path"), + let url = call_619998.url(scheme.get, call_619998.host, call_619998.base, + call_619998.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619996, url, valid) + result = atozHook(call_619998, url, valid) -proc call*(call_619997: Call_PostDescribeScheduledInstanceAvailability_619971; +proc call*(call_619999: Call_PostDescribeScheduledInstanceAvailability_619973; FirstSlotStartTimeRangeEarliestTime: string = ""; NextToken: string = ""; FirstSlotStartTimeRangeLatestTime: string = ""; RecurrenceOccurrenceUnit: string = ""; RecurrenceFrequency: string = ""; @@ -72829,41 +72856,41 @@ proc call*(call_619997: Call_PostDescribeScheduledInstanceAvailability_619971; ## : The maximum number of results to return in a single call. This value can be between 5 and 300. The default value is 300. To retrieve the remaining results, make another call with the returned NextToken value. ## Filter: JArray ## :

The filters.

- var query_619998 = newJObject() - var formData_619999 = newJObject() - add(formData_619999, "FirstSlotStartTimeRange.EarliestTime", + var query_620000 = newJObject() + var formData_620001 = newJObject() + add(formData_620001, "FirstSlotStartTimeRange.EarliestTime", newJString(FirstSlotStartTimeRangeEarliestTime)) - add(formData_619999, "NextToken", newJString(NextToken)) - add(formData_619999, "FirstSlotStartTimeRange.LatestTime", + add(formData_620001, "NextToken", newJString(NextToken)) + add(formData_620001, "FirstSlotStartTimeRange.LatestTime", newJString(FirstSlotStartTimeRangeLatestTime)) - add(formData_619999, "Recurrence.OccurrenceUnit", + add(formData_620001, "Recurrence.OccurrenceUnit", newJString(RecurrenceOccurrenceUnit)) - add(formData_619999, "Recurrence.Frequency", newJString(RecurrenceFrequency)) - add(formData_619999, "Recurrence.OccurrenceRelativeToEnd", + add(formData_620001, "Recurrence.Frequency", newJString(RecurrenceFrequency)) + add(formData_620001, "Recurrence.OccurrenceRelativeToEnd", newJString(RecurrenceOccurrenceRelativeToEnd)) if RecurrenceOccurrenceDays != nil: - formData_619999.add "Recurrence.OccurrenceDays", RecurrenceOccurrenceDays - add(formData_619999, "MinSlotDurationInHours", newJInt(MinSlotDurationInHours)) - add(formData_619999, "DryRun", newJBool(DryRun)) - add(formData_619999, "MaxSlotDurationInHours", newJInt(MaxSlotDurationInHours)) - add(query_619998, "Action", newJString(Action)) - add(formData_619999, "Recurrence.Interval", newJString(RecurrenceInterval)) - add(query_619998, "Version", newJString(Version)) - add(formData_619999, "MaxResults", newJInt(MaxResults)) + formData_620001.add "Recurrence.OccurrenceDays", RecurrenceOccurrenceDays + add(formData_620001, "MinSlotDurationInHours", newJInt(MinSlotDurationInHours)) + add(formData_620001, "DryRun", newJBool(DryRun)) + add(formData_620001, "MaxSlotDurationInHours", newJInt(MaxSlotDurationInHours)) + add(query_620000, "Action", newJString(Action)) + add(formData_620001, "Recurrence.Interval", newJString(RecurrenceInterval)) + add(query_620000, "Version", newJString(Version)) + add(formData_620001, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_619999.add "Filter", Filter - result = call_619997.call(nil, query_619998, nil, formData_619999, nil) + formData_620001.add "Filter", Filter + result = call_619999.call(nil, query_620000, nil, formData_620001, nil) -var postDescribeScheduledInstanceAvailability* = Call_PostDescribeScheduledInstanceAvailability_619971( +var postDescribeScheduledInstanceAvailability* = Call_PostDescribeScheduledInstanceAvailability_619973( name: "postDescribeScheduledInstanceAvailability", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeScheduledInstanceAvailability", - validator: validate_PostDescribeScheduledInstanceAvailability_619972, - base: "/", url: url_PostDescribeScheduledInstanceAvailability_619973, + validator: validate_PostDescribeScheduledInstanceAvailability_619974, + base: "/", url: url_PostDescribeScheduledInstanceAvailability_619975, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeScheduledInstanceAvailability_619943 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeScheduledInstanceAvailability_619945(protocol: Scheme; + Call_GetDescribeScheduledInstanceAvailability_619945 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeScheduledInstanceAvailability_619947(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -72873,7 +72900,7 @@ proc url_GetDescribeScheduledInstanceAvailability_619945(protocol: Scheme; else: result.path = base & route -proc validate_GetDescribeScheduledInstanceAvailability_619944(path: JsonNode; +proc validate_GetDescribeScheduledInstanceAvailability_619946(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Finds available schedules that meet the specified criteria.

You can search for an available schedule no more than 3 months in advance. You must meet the minimum required duration of 1,200 hours per year. For example, the minimum daily schedule is 4 hours, the minimum weekly schedule is 24 hours, and the minimum monthly schedule is 100 hours.

After you find a schedule that meets your needs, call PurchaseScheduledInstances to purchase Scheduled Instances with that schedule.

## @@ -72918,77 +72945,77 @@ proc validate_GetDescribeScheduledInstanceAvailability_619944(path: JsonNode; ## : Describes the recurring schedule for a Scheduled Instance. ## Indicates whether the occurrence is relative to the end of the specified week or month. You can't specify this value with a daily schedule. section = newJObject() - var valid_619946 = query.getOrDefault("MaxResults") - valid_619946 = validateParameter(valid_619946, JInt, required = false, default = nil) - if valid_619946 != nil: - section.add "MaxResults", valid_619946 - var valid_619947 = query.getOrDefault("DryRun") - valid_619947 = validateParameter(valid_619947, JBool, required = false, default = nil) - if valid_619947 != nil: - section.add "DryRun", valid_619947 - var valid_619948 = query.getOrDefault("Recurrence.OccurrenceUnit") - valid_619948 = validateParameter(valid_619948, JString, required = false, - default = nil) + var valid_619948 = query.getOrDefault("MaxResults") + valid_619948 = validateParameter(valid_619948, JInt, required = false, default = nil) if valid_619948 != nil: - section.add "Recurrence.OccurrenceUnit", valid_619948 - var valid_619949 = query.getOrDefault("MaxSlotDurationInHours") - valid_619949 = validateParameter(valid_619949, JInt, required = false, default = nil) + section.add "MaxResults", valid_619948 + var valid_619949 = query.getOrDefault("DryRun") + valid_619949 = validateParameter(valid_619949, JBool, required = false, default = nil) if valid_619949 != nil: - section.add "MaxSlotDurationInHours", valid_619949 - var valid_619950 = query.getOrDefault("MinSlotDurationInHours") - valid_619950 = validateParameter(valid_619950, JInt, required = false, default = nil) - if valid_619950 != nil: - section.add "MinSlotDurationInHours", valid_619950 - var valid_619951 = query.getOrDefault("NextToken") - valid_619951 = validateParameter(valid_619951, JString, required = false, + section.add "DryRun", valid_619949 + var valid_619950 = query.getOrDefault("Recurrence.OccurrenceUnit") + valid_619950 = validateParameter(valid_619950, JString, required = false, default = nil) + if valid_619950 != nil: + section.add "Recurrence.OccurrenceUnit", valid_619950 + var valid_619951 = query.getOrDefault("MaxSlotDurationInHours") + valid_619951 = validateParameter(valid_619951, JInt, required = false, default = nil) if valid_619951 != nil: - section.add "NextToken", valid_619951 - var valid_619952 = query.getOrDefault("Recurrence.Interval") - valid_619952 = validateParameter(valid_619952, JString, required = false, - default = nil) + section.add "MaxSlotDurationInHours", valid_619951 + var valid_619952 = query.getOrDefault("MinSlotDurationInHours") + valid_619952 = validateParameter(valid_619952, JInt, required = false, default = nil) if valid_619952 != nil: - section.add "Recurrence.Interval", valid_619952 - var valid_619953 = query.getOrDefault("Recurrence.Frequency") + section.add "MinSlotDurationInHours", valid_619952 + var valid_619953 = query.getOrDefault("NextToken") valid_619953 = validateParameter(valid_619953, JString, required = false, default = nil) if valid_619953 != nil: - section.add "Recurrence.Frequency", valid_619953 - var valid_619954 = query.getOrDefault("Recurrence.OccurrenceDays") - valid_619954 = validateParameter(valid_619954, JArray, required = false, + section.add "NextToken", valid_619953 + var valid_619954 = query.getOrDefault("Recurrence.Interval") + valid_619954 = validateParameter(valid_619954, JString, required = false, default = nil) if valid_619954 != nil: - section.add "Recurrence.OccurrenceDays", valid_619954 - var valid_619955 = query.getOrDefault("Filter") - valid_619955 = validateParameter(valid_619955, JArray, required = false, + section.add "Recurrence.Interval", valid_619954 + var valid_619955 = query.getOrDefault("Recurrence.Frequency") + valid_619955 = validateParameter(valid_619955, JString, required = false, default = nil) if valid_619955 != nil: - section.add "Filter", valid_619955 - var valid_619956 = query.getOrDefault("Action") - valid_619956 = validateParameter(valid_619956, JString, required = true, default = newJString( - "DescribeScheduledInstanceAvailability")) + section.add "Recurrence.Frequency", valid_619955 + var valid_619956 = query.getOrDefault("Recurrence.OccurrenceDays") + valid_619956 = validateParameter(valid_619956, JArray, required = false, + default = nil) if valid_619956 != nil: - section.add "Action", valid_619956 - var valid_619957 = query.getOrDefault("FirstSlotStartTimeRange.LatestTime") - valid_619957 = validateParameter(valid_619957, JString, required = false, + section.add "Recurrence.OccurrenceDays", valid_619956 + var valid_619957 = query.getOrDefault("Filter") + valid_619957 = validateParameter(valid_619957, JArray, required = false, default = nil) if valid_619957 != nil: - section.add "FirstSlotStartTimeRange.LatestTime", valid_619957 - var valid_619958 = query.getOrDefault("FirstSlotStartTimeRange.EarliestTime") - valid_619958 = validateParameter(valid_619958, JString, required = false, - default = nil) + section.add "Filter", valid_619957 + var valid_619958 = query.getOrDefault("Action") + valid_619958 = validateParameter(valid_619958, JString, required = true, default = newJString( + "DescribeScheduledInstanceAvailability")) if valid_619958 != nil: - section.add "FirstSlotStartTimeRange.EarliestTime", valid_619958 - var valid_619959 = query.getOrDefault("Version") - valid_619959 = validateParameter(valid_619959, JString, required = true, - default = newJString("2016-11-15")) + section.add "Action", valid_619958 + var valid_619959 = query.getOrDefault("FirstSlotStartTimeRange.LatestTime") + valid_619959 = validateParameter(valid_619959, JString, required = false, + default = nil) if valid_619959 != nil: - section.add "Version", valid_619959 - var valid_619960 = query.getOrDefault("Recurrence.OccurrenceRelativeToEnd") + section.add "FirstSlotStartTimeRange.LatestTime", valid_619959 + var valid_619960 = query.getOrDefault("FirstSlotStartTimeRange.EarliestTime") valid_619960 = validateParameter(valid_619960, JString, required = false, default = nil) if valid_619960 != nil: - section.add "Recurrence.OccurrenceRelativeToEnd", valid_619960 + section.add "FirstSlotStartTimeRange.EarliestTime", valid_619960 + var valid_619961 = query.getOrDefault("Version") + valid_619961 = validateParameter(valid_619961, JString, required = true, + default = newJString("2016-11-15")) + if valid_619961 != nil: + section.add "Version", valid_619961 + var valid_619962 = query.getOrDefault("Recurrence.OccurrenceRelativeToEnd") + valid_619962 = validateParameter(valid_619962, JString, required = false, + default = nil) + if valid_619962 != nil: + section.add "Recurrence.OccurrenceRelativeToEnd", valid_619962 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -72999,62 +73026,62 @@ proc validate_GetDescribeScheduledInstanceAvailability_619944(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_619961 = header.getOrDefault("X-Amz-Signature") - valid_619961 = validateParameter(valid_619961, JString, required = false, - default = nil) - if valid_619961 != nil: - section.add "X-Amz-Signature", valid_619961 - var valid_619962 = header.getOrDefault("X-Amz-Content-Sha256") - valid_619962 = validateParameter(valid_619962, JString, required = false, - default = nil) - if valid_619962 != nil: - section.add "X-Amz-Content-Sha256", valid_619962 - var valid_619963 = header.getOrDefault("X-Amz-Date") + var valid_619963 = header.getOrDefault("X-Amz-Signature") valid_619963 = validateParameter(valid_619963, JString, required = false, default = nil) if valid_619963 != nil: - section.add "X-Amz-Date", valid_619963 - var valid_619964 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_619963 + var valid_619964 = header.getOrDefault("X-Amz-Content-Sha256") valid_619964 = validateParameter(valid_619964, JString, required = false, default = nil) if valid_619964 != nil: - section.add "X-Amz-Credential", valid_619964 - var valid_619965 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_619964 + var valid_619965 = header.getOrDefault("X-Amz-Date") valid_619965 = validateParameter(valid_619965, JString, required = false, default = nil) if valid_619965 != nil: - section.add "X-Amz-Security-Token", valid_619965 - var valid_619966 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_619965 + var valid_619966 = header.getOrDefault("X-Amz-Credential") valid_619966 = validateParameter(valid_619966, JString, required = false, default = nil) if valid_619966 != nil: - section.add "X-Amz-Algorithm", valid_619966 - var valid_619967 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_619966 + var valid_619967 = header.getOrDefault("X-Amz-Security-Token") valid_619967 = validateParameter(valid_619967, JString, required = false, default = nil) if valid_619967 != nil: - section.add "X-Amz-SignedHeaders", valid_619967 + section.add "X-Amz-Security-Token", valid_619967 + var valid_619968 = header.getOrDefault("X-Amz-Algorithm") + valid_619968 = validateParameter(valid_619968, JString, required = false, + default = nil) + if valid_619968 != nil: + section.add "X-Amz-Algorithm", valid_619968 + var valid_619969 = header.getOrDefault("X-Amz-SignedHeaders") + valid_619969 = validateParameter(valid_619969, JString, required = false, + default = nil) + if valid_619969 != nil: + section.add "X-Amz-SignedHeaders", valid_619969 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_619968: Call_GetDescribeScheduledInstanceAvailability_619943; +proc call*(call_619970: Call_GetDescribeScheduledInstanceAvailability_619945; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Finds available schedules that meet the specified criteria.

You can search for an available schedule no more than 3 months in advance. You must meet the minimum required duration of 1,200 hours per year. For example, the minimum daily schedule is 4 hours, the minimum weekly schedule is 24 hours, and the minimum monthly schedule is 100 hours.

After you find a schedule that meets your needs, call PurchaseScheduledInstances to purchase Scheduled Instances with that schedule.

## - let valid = call_619968.validator(path, query, header, formData, body) - let scheme = call_619968.pickScheme + let valid = call_619970.validator(path, query, header, formData, body) + let scheme = call_619970.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_619968.url(scheme.get, call_619968.host, call_619968.base, - call_619968.route, valid.getOrDefault("path"), + let url = call_619970.url(scheme.get, call_619970.host, call_619970.base, + call_619970.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_619968, url, valid) + result = atozHook(call_619970, url, valid) -proc call*(call_619969: Call_GetDescribeScheduledInstanceAvailability_619943; +proc call*(call_619971: Call_GetDescribeScheduledInstanceAvailability_619945; MaxResults: int = 0; DryRun: bool = false; RecurrenceOccurrenceUnit: string = ""; MaxSlotDurationInHours: int = 0; MinSlotDurationInHours: int = 0; NextToken: string = ""; @@ -73102,40 +73129,40 @@ proc call*(call_619969: Call_GetDescribeScheduledInstanceAvailability_619943; ## RecurrenceOccurrenceRelativeToEnd: string ## : Describes the recurring schedule for a Scheduled Instance. ## Indicates whether the occurrence is relative to the end of the specified week or month. You can't specify this value with a daily schedule. - var query_619970 = newJObject() - add(query_619970, "MaxResults", newJInt(MaxResults)) - add(query_619970, "DryRun", newJBool(DryRun)) - add(query_619970, "Recurrence.OccurrenceUnit", + var query_619972 = newJObject() + add(query_619972, "MaxResults", newJInt(MaxResults)) + add(query_619972, "DryRun", newJBool(DryRun)) + add(query_619972, "Recurrence.OccurrenceUnit", newJString(RecurrenceOccurrenceUnit)) - add(query_619970, "MaxSlotDurationInHours", newJInt(MaxSlotDurationInHours)) - add(query_619970, "MinSlotDurationInHours", newJInt(MinSlotDurationInHours)) - add(query_619970, "NextToken", newJString(NextToken)) - add(query_619970, "Recurrence.Interval", newJString(RecurrenceInterval)) - add(query_619970, "Recurrence.Frequency", newJString(RecurrenceFrequency)) + add(query_619972, "MaxSlotDurationInHours", newJInt(MaxSlotDurationInHours)) + add(query_619972, "MinSlotDurationInHours", newJInt(MinSlotDurationInHours)) + add(query_619972, "NextToken", newJString(NextToken)) + add(query_619972, "Recurrence.Interval", newJString(RecurrenceInterval)) + add(query_619972, "Recurrence.Frequency", newJString(RecurrenceFrequency)) if RecurrenceOccurrenceDays != nil: - query_619970.add "Recurrence.OccurrenceDays", RecurrenceOccurrenceDays + query_619972.add "Recurrence.OccurrenceDays", RecurrenceOccurrenceDays if Filter != nil: - query_619970.add "Filter", Filter - add(query_619970, "Action", newJString(Action)) - add(query_619970, "FirstSlotStartTimeRange.LatestTime", + query_619972.add "Filter", Filter + add(query_619972, "Action", newJString(Action)) + add(query_619972, "FirstSlotStartTimeRange.LatestTime", newJString(FirstSlotStartTimeRangeLatestTime)) - add(query_619970, "FirstSlotStartTimeRange.EarliestTime", + add(query_619972, "FirstSlotStartTimeRange.EarliestTime", newJString(FirstSlotStartTimeRangeEarliestTime)) - add(query_619970, "Version", newJString(Version)) - add(query_619970, "Recurrence.OccurrenceRelativeToEnd", + add(query_619972, "Version", newJString(Version)) + add(query_619972, "Recurrence.OccurrenceRelativeToEnd", newJString(RecurrenceOccurrenceRelativeToEnd)) - result = call_619969.call(nil, query_619970, nil, nil, nil) + result = call_619971.call(nil, query_619972, nil, nil, nil) -var getDescribeScheduledInstanceAvailability* = Call_GetDescribeScheduledInstanceAvailability_619943( +var getDescribeScheduledInstanceAvailability* = Call_GetDescribeScheduledInstanceAvailability_619945( name: "getDescribeScheduledInstanceAvailability", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeScheduledInstanceAvailability", - validator: validate_GetDescribeScheduledInstanceAvailability_619944, - base: "/", url: url_GetDescribeScheduledInstanceAvailability_619945, + validator: validate_GetDescribeScheduledInstanceAvailability_619946, + base: "/", url: url_GetDescribeScheduledInstanceAvailability_619947, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeScheduledInstances_620022 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeScheduledInstances_620024(protocol: Scheme; host: string; + Call_PostDescribeScheduledInstances_620024 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeScheduledInstances_620026(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -73145,7 +73172,7 @@ proc url_PostDescribeScheduledInstances_620024(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeScheduledInstances_620023(path: JsonNode; +proc validate_PostDescribeScheduledInstances_620025(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the specified Scheduled Instances or all your Scheduled Instances. ## @@ -73157,16 +73184,16 @@ proc validate_PostDescribeScheduledInstances_620023(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620025 = query.getOrDefault("Action") - valid_620025 = validateParameter(valid_620025, JString, required = true, default = newJString( + var valid_620027 = query.getOrDefault("Action") + valid_620027 = validateParameter(valid_620027, JString, required = true, default = newJString( "DescribeScheduledInstances")) - if valid_620025 != nil: - section.add "Action", valid_620025 - var valid_620026 = query.getOrDefault("Version") - valid_620026 = validateParameter(valid_620026, JString, required = true, + if valid_620027 != nil: + section.add "Action", valid_620027 + var valid_620028 = query.getOrDefault("Version") + valid_620028 = validateParameter(valid_620028, JString, required = true, default = newJString("2016-11-15")) - if valid_620026 != nil: - section.add "Version", valid_620026 + if valid_620028 != nil: + section.add "Version", valid_620028 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -73177,41 +73204,41 @@ proc validate_PostDescribeScheduledInstances_620023(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620027 = header.getOrDefault("X-Amz-Signature") - valid_620027 = validateParameter(valid_620027, JString, required = false, - default = nil) - if valid_620027 != nil: - section.add "X-Amz-Signature", valid_620027 - var valid_620028 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620028 = validateParameter(valid_620028, JString, required = false, - default = nil) - if valid_620028 != nil: - section.add "X-Amz-Content-Sha256", valid_620028 - var valid_620029 = header.getOrDefault("X-Amz-Date") + var valid_620029 = header.getOrDefault("X-Amz-Signature") valid_620029 = validateParameter(valid_620029, JString, required = false, default = nil) if valid_620029 != nil: - section.add "X-Amz-Date", valid_620029 - var valid_620030 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620029 + var valid_620030 = header.getOrDefault("X-Amz-Content-Sha256") valid_620030 = validateParameter(valid_620030, JString, required = false, default = nil) if valid_620030 != nil: - section.add "X-Amz-Credential", valid_620030 - var valid_620031 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620030 + var valid_620031 = header.getOrDefault("X-Amz-Date") valid_620031 = validateParameter(valid_620031, JString, required = false, default = nil) if valid_620031 != nil: - section.add "X-Amz-Security-Token", valid_620031 - var valid_620032 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620031 + var valid_620032 = header.getOrDefault("X-Amz-Credential") valid_620032 = validateParameter(valid_620032, JString, required = false, default = nil) if valid_620032 != nil: - section.add "X-Amz-Algorithm", valid_620032 - var valid_620033 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620032 + var valid_620033 = header.getOrDefault("X-Amz-Security-Token") valid_620033 = validateParameter(valid_620033, JString, required = false, default = nil) if valid_620033 != nil: - section.add "X-Amz-SignedHeaders", valid_620033 + section.add "X-Amz-Security-Token", valid_620033 + var valid_620034 = header.getOrDefault("X-Amz-Algorithm") + valid_620034 = validateParameter(valid_620034, JString, required = false, + default = nil) + if valid_620034 != nil: + section.add "X-Amz-Algorithm", valid_620034 + var valid_620035 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620035 = validateParameter(valid_620035, JString, required = false, + default = nil) + if valid_620035 != nil: + section.add "X-Amz-SignedHeaders", valid_620035 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -73231,57 +73258,57 @@ proc validate_PostDescribeScheduledInstances_620023(path: JsonNode; ## Filter: JArray ## :

The filters.

section = newJObject() - var valid_620034 = formData.getOrDefault("NextToken") - valid_620034 = validateParameter(valid_620034, JString, required = false, - default = nil) - if valid_620034 != nil: - section.add "NextToken", valid_620034 - var valid_620035 = formData.getOrDefault("SlotStartTimeRange.EarliestTime") - valid_620035 = validateParameter(valid_620035, JString, required = false, + var valid_620036 = formData.getOrDefault("NextToken") + valid_620036 = validateParameter(valid_620036, JString, required = false, default = nil) - if valid_620035 != nil: - section.add "SlotStartTimeRange.EarliestTime", valid_620035 - var valid_620036 = formData.getOrDefault("DryRun") - valid_620036 = validateParameter(valid_620036, JBool, required = false, default = nil) if valid_620036 != nil: - section.add "DryRun", valid_620036 - var valid_620037 = formData.getOrDefault("SlotStartTimeRange.LatestTime") + section.add "NextToken", valid_620036 + var valid_620037 = formData.getOrDefault("SlotStartTimeRange.EarliestTime") valid_620037 = validateParameter(valid_620037, JString, required = false, default = nil) if valid_620037 != nil: - section.add "SlotStartTimeRange.LatestTime", valid_620037 - var valid_620038 = formData.getOrDefault("MaxResults") - valid_620038 = validateParameter(valid_620038, JInt, required = false, default = nil) + section.add "SlotStartTimeRange.EarliestTime", valid_620037 + var valid_620038 = formData.getOrDefault("DryRun") + valid_620038 = validateParameter(valid_620038, JBool, required = false, default = nil) if valid_620038 != nil: - section.add "MaxResults", valid_620038 - var valid_620039 = formData.getOrDefault("ScheduledInstanceId") - valid_620039 = validateParameter(valid_620039, JArray, required = false, + section.add "DryRun", valid_620038 + var valid_620039 = formData.getOrDefault("SlotStartTimeRange.LatestTime") + valid_620039 = validateParameter(valid_620039, JString, required = false, default = nil) if valid_620039 != nil: - section.add "ScheduledInstanceId", valid_620039 - var valid_620040 = formData.getOrDefault("Filter") - valid_620040 = validateParameter(valid_620040, JArray, required = false, - default = nil) + section.add "SlotStartTimeRange.LatestTime", valid_620039 + var valid_620040 = formData.getOrDefault("MaxResults") + valid_620040 = validateParameter(valid_620040, JInt, required = false, default = nil) if valid_620040 != nil: - section.add "Filter", valid_620040 + section.add "MaxResults", valid_620040 + var valid_620041 = formData.getOrDefault("ScheduledInstanceId") + valid_620041 = validateParameter(valid_620041, JArray, required = false, + default = nil) + if valid_620041 != nil: + section.add "ScheduledInstanceId", valid_620041 + var valid_620042 = formData.getOrDefault("Filter") + valid_620042 = validateParameter(valid_620042, JArray, required = false, + default = nil) + if valid_620042 != nil: + section.add "Filter", valid_620042 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620041: Call_PostDescribeScheduledInstances_620022; path: JsonNode; +proc call*(call_620043: Call_PostDescribeScheduledInstances_620024; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the specified Scheduled Instances or all your Scheduled Instances. ## - let valid = call_620041.validator(path, query, header, formData, body) - let scheme = call_620041.pickScheme + let valid = call_620043.validator(path, query, header, formData, body) + let scheme = call_620043.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620041.url(scheme.get, call_620041.host, call_620041.base, - call_620041.route, valid.getOrDefault("path"), + let url = call_620043.url(scheme.get, call_620043.host, call_620043.base, + call_620043.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620041, url, valid) + result = atozHook(call_620043, url, valid) -proc call*(call_620042: Call_PostDescribeScheduledInstances_620022; +proc call*(call_620044: Call_PostDescribeScheduledInstances_620024; NextToken: string = ""; SlotStartTimeRangeEarliestTime: string = ""; DryRun: bool = false; Action: string = "DescribeScheduledInstances"; SlotStartTimeRangeLatestTime: string = ""; Version: string = "2016-11-15"; @@ -73307,32 +73334,32 @@ proc call*(call_620042: Call_PostDescribeScheduledInstances_620022; ## : The Scheduled Instance IDs. ## Filter: JArray ## :

The filters.

- var query_620043 = newJObject() - var formData_620044 = newJObject() - add(formData_620044, "NextToken", newJString(NextToken)) - add(formData_620044, "SlotStartTimeRange.EarliestTime", + var query_620045 = newJObject() + var formData_620046 = newJObject() + add(formData_620046, "NextToken", newJString(NextToken)) + add(formData_620046, "SlotStartTimeRange.EarliestTime", newJString(SlotStartTimeRangeEarliestTime)) - add(formData_620044, "DryRun", newJBool(DryRun)) - add(query_620043, "Action", newJString(Action)) - add(formData_620044, "SlotStartTimeRange.LatestTime", + add(formData_620046, "DryRun", newJBool(DryRun)) + add(query_620045, "Action", newJString(Action)) + add(formData_620046, "SlotStartTimeRange.LatestTime", newJString(SlotStartTimeRangeLatestTime)) - add(query_620043, "Version", newJString(Version)) - add(formData_620044, "MaxResults", newJInt(MaxResults)) + add(query_620045, "Version", newJString(Version)) + add(formData_620046, "MaxResults", newJInt(MaxResults)) if ScheduledInstanceId != nil: - formData_620044.add "ScheduledInstanceId", ScheduledInstanceId + formData_620046.add "ScheduledInstanceId", ScheduledInstanceId if Filter != nil: - formData_620044.add "Filter", Filter - result = call_620042.call(nil, query_620043, nil, formData_620044, nil) + formData_620046.add "Filter", Filter + result = call_620044.call(nil, query_620045, nil, formData_620046, nil) -var postDescribeScheduledInstances* = Call_PostDescribeScheduledInstances_620022( +var postDescribeScheduledInstances* = Call_PostDescribeScheduledInstances_620024( name: "postDescribeScheduledInstances", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeScheduledInstances", - validator: validate_PostDescribeScheduledInstances_620023, base: "/", - url: url_PostDescribeScheduledInstances_620024, + validator: validate_PostDescribeScheduledInstances_620025, base: "/", + url: url_PostDescribeScheduledInstances_620026, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeScheduledInstances_620000 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeScheduledInstances_620002(protocol: Scheme; host: string; + Call_GetDescribeScheduledInstances_620002 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeScheduledInstances_620004(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -73342,7 +73369,7 @@ proc url_GetDescribeScheduledInstances_620002(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeScheduledInstances_620001(path: JsonNode; query: JsonNode; +proc validate_GetDescribeScheduledInstances_620003(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the specified Scheduled Instances or all your Scheduled Instances. ## @@ -73370,49 +73397,49 @@ proc validate_GetDescribeScheduledInstances_620001(path: JsonNode; query: JsonNo ## : The Scheduled Instance IDs. ## Version: JString (required) section = newJObject() - var valid_620003 = query.getOrDefault("MaxResults") - valid_620003 = validateParameter(valid_620003, JInt, required = false, default = nil) - if valid_620003 != nil: - section.add "MaxResults", valid_620003 - var valid_620004 = query.getOrDefault("DryRun") - valid_620004 = validateParameter(valid_620004, JBool, required = false, default = nil) - if valid_620004 != nil: - section.add "DryRun", valid_620004 - var valid_620005 = query.getOrDefault("NextToken") - valid_620005 = validateParameter(valid_620005, JString, required = false, - default = nil) + var valid_620005 = query.getOrDefault("MaxResults") + valid_620005 = validateParameter(valid_620005, JInt, required = false, default = nil) if valid_620005 != nil: - section.add "NextToken", valid_620005 - var valid_620006 = query.getOrDefault("SlotStartTimeRange.EarliestTime") - valid_620006 = validateParameter(valid_620006, JString, required = false, - default = nil) + section.add "MaxResults", valid_620005 + var valid_620006 = query.getOrDefault("DryRun") + valid_620006 = validateParameter(valid_620006, JBool, required = false, default = nil) if valid_620006 != nil: - section.add "SlotStartTimeRange.EarliestTime", valid_620006 - var valid_620007 = query.getOrDefault("SlotStartTimeRange.LatestTime") + section.add "DryRun", valid_620006 + var valid_620007 = query.getOrDefault("NextToken") valid_620007 = validateParameter(valid_620007, JString, required = false, default = nil) if valid_620007 != nil: - section.add "SlotStartTimeRange.LatestTime", valid_620007 - var valid_620008 = query.getOrDefault("Filter") - valid_620008 = validateParameter(valid_620008, JArray, required = false, + section.add "NextToken", valid_620007 + var valid_620008 = query.getOrDefault("SlotStartTimeRange.EarliestTime") + valid_620008 = validateParameter(valid_620008, JString, required = false, default = nil) if valid_620008 != nil: - section.add "Filter", valid_620008 - var valid_620009 = query.getOrDefault("Action") - valid_620009 = validateParameter(valid_620009, JString, required = true, default = newJString( - "DescribeScheduledInstances")) + section.add "SlotStartTimeRange.EarliestTime", valid_620008 + var valid_620009 = query.getOrDefault("SlotStartTimeRange.LatestTime") + valid_620009 = validateParameter(valid_620009, JString, required = false, + default = nil) if valid_620009 != nil: - section.add "Action", valid_620009 - var valid_620010 = query.getOrDefault("ScheduledInstanceId") + section.add "SlotStartTimeRange.LatestTime", valid_620009 + var valid_620010 = query.getOrDefault("Filter") valid_620010 = validateParameter(valid_620010, JArray, required = false, default = nil) if valid_620010 != nil: - section.add "ScheduledInstanceId", valid_620010 - var valid_620011 = query.getOrDefault("Version") - valid_620011 = validateParameter(valid_620011, JString, required = true, - default = newJString("2016-11-15")) + section.add "Filter", valid_620010 + var valid_620011 = query.getOrDefault("Action") + valid_620011 = validateParameter(valid_620011, JString, required = true, default = newJString( + "DescribeScheduledInstances")) if valid_620011 != nil: - section.add "Version", valid_620011 + section.add "Action", valid_620011 + var valid_620012 = query.getOrDefault("ScheduledInstanceId") + valid_620012 = validateParameter(valid_620012, JArray, required = false, + default = nil) + if valid_620012 != nil: + section.add "ScheduledInstanceId", valid_620012 + var valid_620013 = query.getOrDefault("Version") + valid_620013 = validateParameter(valid_620013, JString, required = true, + default = newJString("2016-11-15")) + if valid_620013 != nil: + section.add "Version", valid_620013 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -73423,61 +73450,61 @@ proc validate_GetDescribeScheduledInstances_620001(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620012 = header.getOrDefault("X-Amz-Signature") - valid_620012 = validateParameter(valid_620012, JString, required = false, - default = nil) - if valid_620012 != nil: - section.add "X-Amz-Signature", valid_620012 - var valid_620013 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620013 = validateParameter(valid_620013, JString, required = false, - default = nil) - if valid_620013 != nil: - section.add "X-Amz-Content-Sha256", valid_620013 - var valid_620014 = header.getOrDefault("X-Amz-Date") + var valid_620014 = header.getOrDefault("X-Amz-Signature") valid_620014 = validateParameter(valid_620014, JString, required = false, default = nil) if valid_620014 != nil: - section.add "X-Amz-Date", valid_620014 - var valid_620015 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620014 + var valid_620015 = header.getOrDefault("X-Amz-Content-Sha256") valid_620015 = validateParameter(valid_620015, JString, required = false, default = nil) if valid_620015 != nil: - section.add "X-Amz-Credential", valid_620015 - var valid_620016 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620015 + var valid_620016 = header.getOrDefault("X-Amz-Date") valid_620016 = validateParameter(valid_620016, JString, required = false, default = nil) if valid_620016 != nil: - section.add "X-Amz-Security-Token", valid_620016 - var valid_620017 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620016 + var valid_620017 = header.getOrDefault("X-Amz-Credential") valid_620017 = validateParameter(valid_620017, JString, required = false, default = nil) if valid_620017 != nil: - section.add "X-Amz-Algorithm", valid_620017 - var valid_620018 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620017 + var valid_620018 = header.getOrDefault("X-Amz-Security-Token") valid_620018 = validateParameter(valid_620018, JString, required = false, default = nil) if valid_620018 != nil: - section.add "X-Amz-SignedHeaders", valid_620018 + section.add "X-Amz-Security-Token", valid_620018 + var valid_620019 = header.getOrDefault("X-Amz-Algorithm") + valid_620019 = validateParameter(valid_620019, JString, required = false, + default = nil) + if valid_620019 != nil: + section.add "X-Amz-Algorithm", valid_620019 + var valid_620020 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620020 = validateParameter(valid_620020, JString, required = false, + default = nil) + if valid_620020 != nil: + section.add "X-Amz-SignedHeaders", valid_620020 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620019: Call_GetDescribeScheduledInstances_620000; path: JsonNode; +proc call*(call_620021: Call_GetDescribeScheduledInstances_620002; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the specified Scheduled Instances or all your Scheduled Instances. ## - let valid = call_620019.validator(path, query, header, formData, body) - let scheme = call_620019.pickScheme + let valid = call_620021.validator(path, query, header, formData, body) + let scheme = call_620021.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620019.url(scheme.get, call_620019.host, call_620019.base, - call_620019.route, valid.getOrDefault("path"), + let url = call_620021.url(scheme.get, call_620021.host, call_620021.base, + call_620021.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620019, url, valid) + result = atozHook(call_620021, url, valid) -proc call*(call_620020: Call_GetDescribeScheduledInstances_620000; +proc call*(call_620022: Call_GetDescribeScheduledInstances_620002; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; SlotStartTimeRangeEarliestTime: string = ""; SlotStartTimeRangeLatestTime: string = ""; Filter: JsonNode = nil; @@ -73503,31 +73530,31 @@ proc call*(call_620020: Call_GetDescribeScheduledInstances_620000; ## ScheduledInstanceId: JArray ## : The Scheduled Instance IDs. ## Version: string (required) - var query_620021 = newJObject() - add(query_620021, "MaxResults", newJInt(MaxResults)) - add(query_620021, "DryRun", newJBool(DryRun)) - add(query_620021, "NextToken", newJString(NextToken)) - add(query_620021, "SlotStartTimeRange.EarliestTime", + var query_620023 = newJObject() + add(query_620023, "MaxResults", newJInt(MaxResults)) + add(query_620023, "DryRun", newJBool(DryRun)) + add(query_620023, "NextToken", newJString(NextToken)) + add(query_620023, "SlotStartTimeRange.EarliestTime", newJString(SlotStartTimeRangeEarliestTime)) - add(query_620021, "SlotStartTimeRange.LatestTime", + add(query_620023, "SlotStartTimeRange.LatestTime", newJString(SlotStartTimeRangeLatestTime)) if Filter != nil: - query_620021.add "Filter", Filter - add(query_620021, "Action", newJString(Action)) + query_620023.add "Filter", Filter + add(query_620023, "Action", newJString(Action)) if ScheduledInstanceId != nil: - query_620021.add "ScheduledInstanceId", ScheduledInstanceId - add(query_620021, "Version", newJString(Version)) - result = call_620020.call(nil, query_620021, nil, nil, nil) + query_620023.add "ScheduledInstanceId", ScheduledInstanceId + add(query_620023, "Version", newJString(Version)) + result = call_620022.call(nil, query_620023, nil, nil, nil) -var getDescribeScheduledInstances* = Call_GetDescribeScheduledInstances_620000( +var getDescribeScheduledInstances* = Call_GetDescribeScheduledInstances_620002( name: "getDescribeScheduledInstances", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeScheduledInstances", - validator: validate_GetDescribeScheduledInstances_620001, base: "/", - url: url_GetDescribeScheduledInstances_620002, + validator: validate_GetDescribeScheduledInstances_620003, base: "/", + url: url_GetDescribeScheduledInstances_620004, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeSecurityGroupReferences_620062 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeSecurityGroupReferences_620064(protocol: Scheme; host: string; + Call_PostDescribeSecurityGroupReferences_620064 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeSecurityGroupReferences_620066(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -73537,7 +73564,7 @@ proc url_PostDescribeSecurityGroupReferences_620064(protocol: Scheme; host: stri else: result.path = base & route -proc validate_PostDescribeSecurityGroupReferences_620063(path: JsonNode; +proc validate_PostDescribeSecurityGroupReferences_620065(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## [VPC only] Describes the VPCs on the other side of a VPC peering connection that are referencing the security groups you've specified in this request. ## @@ -73549,16 +73576,16 @@ proc validate_PostDescribeSecurityGroupReferences_620063(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620065 = query.getOrDefault("Action") - valid_620065 = validateParameter(valid_620065, JString, required = true, default = newJString( + var valid_620067 = query.getOrDefault("Action") + valid_620067 = validateParameter(valid_620067, JString, required = true, default = newJString( "DescribeSecurityGroupReferences")) - if valid_620065 != nil: - section.add "Action", valid_620065 - var valid_620066 = query.getOrDefault("Version") - valid_620066 = validateParameter(valid_620066, JString, required = true, + if valid_620067 != nil: + section.add "Action", valid_620067 + var valid_620068 = query.getOrDefault("Version") + valid_620068 = validateParameter(valid_620068, JString, required = true, default = newJString("2016-11-15")) - if valid_620066 != nil: - section.add "Version", valid_620066 + if valid_620068 != nil: + section.add "Version", valid_620068 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -73569,41 +73596,41 @@ proc validate_PostDescribeSecurityGroupReferences_620063(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620067 = header.getOrDefault("X-Amz-Signature") - valid_620067 = validateParameter(valid_620067, JString, required = false, - default = nil) - if valid_620067 != nil: - section.add "X-Amz-Signature", valid_620067 - var valid_620068 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620068 = validateParameter(valid_620068, JString, required = false, - default = nil) - if valid_620068 != nil: - section.add "X-Amz-Content-Sha256", valid_620068 - var valid_620069 = header.getOrDefault("X-Amz-Date") + var valid_620069 = header.getOrDefault("X-Amz-Signature") valid_620069 = validateParameter(valid_620069, JString, required = false, default = nil) if valid_620069 != nil: - section.add "X-Amz-Date", valid_620069 - var valid_620070 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620069 + var valid_620070 = header.getOrDefault("X-Amz-Content-Sha256") valid_620070 = validateParameter(valid_620070, JString, required = false, default = nil) if valid_620070 != nil: - section.add "X-Amz-Credential", valid_620070 - var valid_620071 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620070 + var valid_620071 = header.getOrDefault("X-Amz-Date") valid_620071 = validateParameter(valid_620071, JString, required = false, default = nil) if valid_620071 != nil: - section.add "X-Amz-Security-Token", valid_620071 - var valid_620072 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620071 + var valid_620072 = header.getOrDefault("X-Amz-Credential") valid_620072 = validateParameter(valid_620072, JString, required = false, default = nil) if valid_620072 != nil: - section.add "X-Amz-Algorithm", valid_620072 - var valid_620073 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620072 + var valid_620073 = header.getOrDefault("X-Amz-Security-Token") valid_620073 = validateParameter(valid_620073, JString, required = false, default = nil) if valid_620073 != nil: - section.add "X-Amz-SignedHeaders", valid_620073 + section.add "X-Amz-Security-Token", valid_620073 + var valid_620074 = header.getOrDefault("X-Amz-Algorithm") + valid_620074 = validateParameter(valid_620074, JString, required = false, + default = nil) + if valid_620074 != nil: + section.add "X-Amz-Algorithm", valid_620074 + var valid_620075 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620075 = validateParameter(valid_620075, JString, required = false, + default = nil) + if valid_620075 != nil: + section.add "X-Amz-SignedHeaders", valid_620075 result.add "header", section ## parameters in `formData` object: ## GroupId: JArray (required) @@ -73613,33 +73640,33 @@ proc validate_PostDescribeSecurityGroupReferences_620063(path: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `GroupId` field" - var valid_620074 = formData.getOrDefault("GroupId") - valid_620074 = validateParameter(valid_620074, JArray, required = true, default = nil) - if valid_620074 != nil: - section.add "GroupId", valid_620074 - var valid_620075 = formData.getOrDefault("DryRun") - valid_620075 = validateParameter(valid_620075, JBool, required = false, default = nil) - if valid_620075 != nil: - section.add "DryRun", valid_620075 + var valid_620076 = formData.getOrDefault("GroupId") + valid_620076 = validateParameter(valid_620076, JArray, required = true, default = nil) + if valid_620076 != nil: + section.add "GroupId", valid_620076 + var valid_620077 = formData.getOrDefault("DryRun") + valid_620077 = validateParameter(valid_620077, JBool, required = false, default = nil) + if valid_620077 != nil: + section.add "DryRun", valid_620077 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620076: Call_PostDescribeSecurityGroupReferences_620062; +proc call*(call_620078: Call_PostDescribeSecurityGroupReferences_620064; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## [VPC only] Describes the VPCs on the other side of a VPC peering connection that are referencing the security groups you've specified in this request. ## - let valid = call_620076.validator(path, query, header, formData, body) - let scheme = call_620076.pickScheme + let valid = call_620078.validator(path, query, header, formData, body) + let scheme = call_620078.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620076.url(scheme.get, call_620076.host, call_620076.base, - call_620076.route, valid.getOrDefault("path"), + let url = call_620078.url(scheme.get, call_620078.host, call_620078.base, + call_620078.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620076, url, valid) + result = atozHook(call_620078, url, valid) -proc call*(call_620077: Call_PostDescribeSecurityGroupReferences_620062; +proc call*(call_620079: Call_PostDescribeSecurityGroupReferences_620064; GroupId: JsonNode; DryRun: bool = false; Action: string = "DescribeSecurityGroupReferences"; Version: string = "2016-11-15"): Recallable = @@ -73651,24 +73678,24 @@ proc call*(call_620077: Call_PostDescribeSecurityGroupReferences_620062; ## : 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. ## Action: string (required) ## Version: string (required) - var query_620078 = newJObject() - var formData_620079 = newJObject() + var query_620080 = newJObject() + var formData_620081 = newJObject() if GroupId != nil: - formData_620079.add "GroupId", GroupId - add(formData_620079, "DryRun", newJBool(DryRun)) - add(query_620078, "Action", newJString(Action)) - add(query_620078, "Version", newJString(Version)) - result = call_620077.call(nil, query_620078, nil, formData_620079, nil) + formData_620081.add "GroupId", GroupId + add(formData_620081, "DryRun", newJBool(DryRun)) + add(query_620080, "Action", newJString(Action)) + add(query_620080, "Version", newJString(Version)) + result = call_620079.call(nil, query_620080, nil, formData_620081, nil) -var postDescribeSecurityGroupReferences* = Call_PostDescribeSecurityGroupReferences_620062( +var postDescribeSecurityGroupReferences* = Call_PostDescribeSecurityGroupReferences_620064( name: "postDescribeSecurityGroupReferences", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeSecurityGroupReferences", - validator: validate_PostDescribeSecurityGroupReferences_620063, base: "/", - url: url_PostDescribeSecurityGroupReferences_620064, + validator: validate_PostDescribeSecurityGroupReferences_620065, base: "/", + url: url_PostDescribeSecurityGroupReferences_620066, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeSecurityGroupReferences_620045 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeSecurityGroupReferences_620047(protocol: Scheme; host: string; + Call_GetDescribeSecurityGroupReferences_620047 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeSecurityGroupReferences_620049(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -73678,7 +73705,7 @@ proc url_GetDescribeSecurityGroupReferences_620047(protocol: Scheme; host: strin else: result.path = base & route -proc validate_GetDescribeSecurityGroupReferences_620046(path: JsonNode; +proc validate_GetDescribeSecurityGroupReferences_620048(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## [VPC only] Describes the VPCs on the other side of a VPC peering connection that are referencing the security groups you've specified in this request. ## @@ -73694,24 +73721,24 @@ proc validate_GetDescribeSecurityGroupReferences_620046(path: JsonNode; ## : The IDs of the security groups in your account. ## Version: JString (required) section = newJObject() - var valid_620048 = query.getOrDefault("DryRun") - valid_620048 = validateParameter(valid_620048, JBool, required = false, default = nil) - if valid_620048 != nil: - section.add "DryRun", valid_620048 - var valid_620049 = query.getOrDefault("Action") - valid_620049 = validateParameter(valid_620049, JString, required = true, default = newJString( - "DescribeSecurityGroupReferences")) - if valid_620049 != nil: - section.add "Action", valid_620049 - var valid_620050 = query.getOrDefault("GroupId") - valid_620050 = validateParameter(valid_620050, JArray, required = true, default = nil) + var valid_620050 = query.getOrDefault("DryRun") + valid_620050 = validateParameter(valid_620050, JBool, required = false, default = nil) if valid_620050 != nil: - section.add "GroupId", valid_620050 - var valid_620051 = query.getOrDefault("Version") - valid_620051 = validateParameter(valid_620051, JString, required = true, - default = newJString("2016-11-15")) + section.add "DryRun", valid_620050 + var valid_620051 = query.getOrDefault("Action") + valid_620051 = validateParameter(valid_620051, JString, required = true, default = newJString( + "DescribeSecurityGroupReferences")) if valid_620051 != nil: - section.add "Version", valid_620051 + section.add "Action", valid_620051 + var valid_620052 = query.getOrDefault("GroupId") + valid_620052 = validateParameter(valid_620052, JArray, required = true, default = nil) + if valid_620052 != nil: + section.add "GroupId", valid_620052 + var valid_620053 = query.getOrDefault("Version") + valid_620053 = validateParameter(valid_620053, JString, required = true, + default = newJString("2016-11-15")) + if valid_620053 != nil: + section.add "Version", valid_620053 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -73722,62 +73749,62 @@ proc validate_GetDescribeSecurityGroupReferences_620046(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620052 = header.getOrDefault("X-Amz-Signature") - valid_620052 = validateParameter(valid_620052, JString, required = false, - default = nil) - if valid_620052 != nil: - section.add "X-Amz-Signature", valid_620052 - var valid_620053 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620053 = validateParameter(valid_620053, JString, required = false, - default = nil) - if valid_620053 != nil: - section.add "X-Amz-Content-Sha256", valid_620053 - var valid_620054 = header.getOrDefault("X-Amz-Date") + var valid_620054 = header.getOrDefault("X-Amz-Signature") valid_620054 = validateParameter(valid_620054, JString, required = false, default = nil) if valid_620054 != nil: - section.add "X-Amz-Date", valid_620054 - var valid_620055 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620054 + var valid_620055 = header.getOrDefault("X-Amz-Content-Sha256") valid_620055 = validateParameter(valid_620055, JString, required = false, default = nil) if valid_620055 != nil: - section.add "X-Amz-Credential", valid_620055 - var valid_620056 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620055 + var valid_620056 = header.getOrDefault("X-Amz-Date") valid_620056 = validateParameter(valid_620056, JString, required = false, default = nil) if valid_620056 != nil: - section.add "X-Amz-Security-Token", valid_620056 - var valid_620057 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620056 + var valid_620057 = header.getOrDefault("X-Amz-Credential") valid_620057 = validateParameter(valid_620057, JString, required = false, default = nil) if valid_620057 != nil: - section.add "X-Amz-Algorithm", valid_620057 - var valid_620058 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620057 + var valid_620058 = header.getOrDefault("X-Amz-Security-Token") valid_620058 = validateParameter(valid_620058, JString, required = false, default = nil) if valid_620058 != nil: - section.add "X-Amz-SignedHeaders", valid_620058 + section.add "X-Amz-Security-Token", valid_620058 + var valid_620059 = header.getOrDefault("X-Amz-Algorithm") + valid_620059 = validateParameter(valid_620059, JString, required = false, + default = nil) + if valid_620059 != nil: + section.add "X-Amz-Algorithm", valid_620059 + var valid_620060 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620060 = validateParameter(valid_620060, JString, required = false, + default = nil) + if valid_620060 != nil: + section.add "X-Amz-SignedHeaders", valid_620060 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620059: Call_GetDescribeSecurityGroupReferences_620045; +proc call*(call_620061: Call_GetDescribeSecurityGroupReferences_620047; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## [VPC only] Describes the VPCs on the other side of a VPC peering connection that are referencing the security groups you've specified in this request. ## - let valid = call_620059.validator(path, query, header, formData, body) - let scheme = call_620059.pickScheme + let valid = call_620061.validator(path, query, header, formData, body) + let scheme = call_620061.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620059.url(scheme.get, call_620059.host, call_620059.base, - call_620059.route, valid.getOrDefault("path"), + let url = call_620061.url(scheme.get, call_620061.host, call_620061.base, + call_620061.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620059, url, valid) + result = atozHook(call_620061, url, valid) -proc call*(call_620060: Call_GetDescribeSecurityGroupReferences_620045; +proc call*(call_620062: Call_GetDescribeSecurityGroupReferences_620047; GroupId: JsonNode; DryRun: bool = false; Action: string = "DescribeSecurityGroupReferences"; Version: string = "2016-11-15"): Recallable = @@ -73789,23 +73816,23 @@ proc call*(call_620060: Call_GetDescribeSecurityGroupReferences_620045; ## GroupId: JArray (required) ## : The IDs of the security groups in your account. ## Version: string (required) - var query_620061 = newJObject() - add(query_620061, "DryRun", newJBool(DryRun)) - add(query_620061, "Action", newJString(Action)) + var query_620063 = newJObject() + add(query_620063, "DryRun", newJBool(DryRun)) + add(query_620063, "Action", newJString(Action)) if GroupId != nil: - query_620061.add "GroupId", GroupId - add(query_620061, "Version", newJString(Version)) - result = call_620060.call(nil, query_620061, nil, nil, nil) + query_620063.add "GroupId", GroupId + add(query_620063, "Version", newJString(Version)) + result = call_620062.call(nil, query_620063, nil, nil, nil) -var getDescribeSecurityGroupReferences* = Call_GetDescribeSecurityGroupReferences_620045( +var getDescribeSecurityGroupReferences* = Call_GetDescribeSecurityGroupReferences_620047( name: "getDescribeSecurityGroupReferences", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeSecurityGroupReferences", - validator: validate_GetDescribeSecurityGroupReferences_620046, base: "/", - url: url_GetDescribeSecurityGroupReferences_620047, + validator: validate_GetDescribeSecurityGroupReferences_620048, base: "/", + url: url_GetDescribeSecurityGroupReferences_620049, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeSecurityGroups_620101 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeSecurityGroups_620103(protocol: Scheme; host: string; + Call_PostDescribeSecurityGroups_620103 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeSecurityGroups_620105(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -73815,7 +73842,7 @@ proc url_PostDescribeSecurityGroups_620103(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeSecurityGroups_620102(path: JsonNode; query: JsonNode; +proc validate_PostDescribeSecurityGroups_620104(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the specified security groups or all of your security groups.

A security group is for use with instances either in the EC2-Classic platform or in a specific VPC. For more information, see Amazon EC2 Security Groups in the Amazon Elastic Compute Cloud User Guide and Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.

## @@ -73827,16 +73854,16 @@ proc validate_PostDescribeSecurityGroups_620102(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620104 = query.getOrDefault("Action") - valid_620104 = validateParameter(valid_620104, JString, required = true, + var valid_620106 = query.getOrDefault("Action") + valid_620106 = validateParameter(valid_620106, JString, required = true, default = newJString("DescribeSecurityGroups")) - if valid_620104 != nil: - section.add "Action", valid_620104 - var valid_620105 = query.getOrDefault("Version") - valid_620105 = validateParameter(valid_620105, JString, required = true, + if valid_620106 != nil: + section.add "Action", valid_620106 + var valid_620107 = query.getOrDefault("Version") + valid_620107 = validateParameter(valid_620107, JString, required = true, default = newJString("2016-11-15")) - if valid_620105 != nil: - section.add "Version", valid_620105 + if valid_620107 != nil: + section.add "Version", valid_620107 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -73847,41 +73874,41 @@ proc validate_PostDescribeSecurityGroups_620102(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620106 = header.getOrDefault("X-Amz-Signature") - valid_620106 = validateParameter(valid_620106, JString, required = false, - default = nil) - if valid_620106 != nil: - section.add "X-Amz-Signature", valid_620106 - var valid_620107 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620107 = validateParameter(valid_620107, JString, required = false, - default = nil) - if valid_620107 != nil: - section.add "X-Amz-Content-Sha256", valid_620107 - var valid_620108 = header.getOrDefault("X-Amz-Date") + var valid_620108 = header.getOrDefault("X-Amz-Signature") valid_620108 = validateParameter(valid_620108, JString, required = false, default = nil) if valid_620108 != nil: - section.add "X-Amz-Date", valid_620108 - var valid_620109 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620108 + var valid_620109 = header.getOrDefault("X-Amz-Content-Sha256") valid_620109 = validateParameter(valid_620109, JString, required = false, default = nil) if valid_620109 != nil: - section.add "X-Amz-Credential", valid_620109 - var valid_620110 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620109 + var valid_620110 = header.getOrDefault("X-Amz-Date") valid_620110 = validateParameter(valid_620110, JString, required = false, default = nil) if valid_620110 != nil: - section.add "X-Amz-Security-Token", valid_620110 - var valid_620111 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620110 + var valid_620111 = header.getOrDefault("X-Amz-Credential") valid_620111 = validateParameter(valid_620111, JString, required = false, default = nil) if valid_620111 != nil: - section.add "X-Amz-Algorithm", valid_620111 - var valid_620112 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620111 + var valid_620112 = header.getOrDefault("X-Amz-Security-Token") valid_620112 = validateParameter(valid_620112, JString, required = false, default = nil) if valid_620112 != nil: - section.add "X-Amz-SignedHeaders", valid_620112 + section.add "X-Amz-Security-Token", valid_620112 + var valid_620113 = header.getOrDefault("X-Amz-Algorithm") + valid_620113 = validateParameter(valid_620113, JString, required = false, + default = nil) + if valid_620113 != nil: + section.add "X-Amz-Algorithm", valid_620113 + var valid_620114 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620114 = validateParameter(valid_620114, JString, required = false, + default = nil) + if valid_620114 != nil: + section.add "X-Amz-SignedHeaders", valid_620114 result.add "header", section ## parameters in `formData` object: ## GroupId: JArray @@ -73897,52 +73924,52 @@ proc validate_PostDescribeSecurityGroups_620102(path: JsonNode; query: JsonNode; ## Filter: JArray ## :

The filters. If using multiple filters for rules, the results include security groups for which any combination of rules - not necessarily a single rule - match all filters.

section = newJObject() - var valid_620113 = formData.getOrDefault("GroupId") - valid_620113 = validateParameter(valid_620113, JArray, required = false, - default = nil) - if valid_620113 != nil: - section.add "GroupId", valid_620113 - var valid_620114 = formData.getOrDefault("NextToken") - valid_620114 = validateParameter(valid_620114, JString, required = false, - default = nil) - if valid_620114 != nil: - section.add "NextToken", valid_620114 - var valid_620115 = formData.getOrDefault("GroupName") + var valid_620115 = formData.getOrDefault("GroupId") valid_620115 = validateParameter(valid_620115, JArray, required = false, default = nil) if valid_620115 != nil: - section.add "GroupName", valid_620115 - var valid_620116 = formData.getOrDefault("DryRun") - valid_620116 = validateParameter(valid_620116, JBool, required = false, default = nil) + section.add "GroupId", valid_620115 + var valid_620116 = formData.getOrDefault("NextToken") + valid_620116 = validateParameter(valid_620116, JString, required = false, + default = nil) if valid_620116 != nil: - section.add "DryRun", valid_620116 - var valid_620117 = formData.getOrDefault("MaxResults") - valid_620117 = validateParameter(valid_620117, JInt, required = false, default = nil) - if valid_620117 != nil: - section.add "MaxResults", valid_620117 - var valid_620118 = formData.getOrDefault("Filter") - valid_620118 = validateParameter(valid_620118, JArray, required = false, + section.add "NextToken", valid_620116 + var valid_620117 = formData.getOrDefault("GroupName") + valid_620117 = validateParameter(valid_620117, JArray, required = false, default = nil) + if valid_620117 != nil: + section.add "GroupName", valid_620117 + var valid_620118 = formData.getOrDefault("DryRun") + valid_620118 = validateParameter(valid_620118, JBool, required = false, default = nil) if valid_620118 != nil: - section.add "Filter", valid_620118 + section.add "DryRun", valid_620118 + var valid_620119 = formData.getOrDefault("MaxResults") + valid_620119 = validateParameter(valid_620119, JInt, required = false, default = nil) + if valid_620119 != nil: + section.add "MaxResults", valid_620119 + var valid_620120 = formData.getOrDefault("Filter") + valid_620120 = validateParameter(valid_620120, JArray, required = false, + default = nil) + if valid_620120 != nil: + section.add "Filter", valid_620120 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620119: Call_PostDescribeSecurityGroups_620101; path: JsonNode; +proc call*(call_620121: Call_PostDescribeSecurityGroups_620103; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the specified security groups or all of your security groups.

A security group is for use with instances either in the EC2-Classic platform or in a specific VPC. For more information, see Amazon EC2 Security Groups in the Amazon Elastic Compute Cloud User Guide and Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.

## - let valid = call_620119.validator(path, query, header, formData, body) - let scheme = call_620119.pickScheme + let valid = call_620121.validator(path, query, header, formData, body) + let scheme = call_620121.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620119.url(scheme.get, call_620119.host, call_620119.base, - call_620119.route, valid.getOrDefault("path"), + let url = call_620121.url(scheme.get, call_620121.host, call_620121.base, + call_620121.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620119, url, valid) + result = atozHook(call_620121, url, valid) -proc call*(call_620120: Call_PostDescribeSecurityGroups_620101; +proc call*(call_620122: Call_PostDescribeSecurityGroups_620103; GroupId: JsonNode = nil; NextToken: string = ""; GroupName: JsonNode = nil; DryRun: bool = false; Action: string = "DescribeSecurityGroups"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -73962,30 +73989,30 @@ proc call*(call_620120: Call_PostDescribeSecurityGroups_620101; ## : The maximum number of results to return in a single call. To retrieve the remaining results, make another request with the returned NextToken value. This value can be between 5 and 1000. If this parameter is not specified, then all results are returned. ## Filter: JArray ## :

The filters. If using multiple filters for rules, the results include security groups for which any combination of rules - not necessarily a single rule - match all filters.

- var query_620121 = newJObject() - var formData_620122 = newJObject() + var query_620123 = newJObject() + var formData_620124 = newJObject() if GroupId != nil: - formData_620122.add "GroupId", GroupId - add(formData_620122, "NextToken", newJString(NextToken)) + formData_620124.add "GroupId", GroupId + add(formData_620124, "NextToken", newJString(NextToken)) if GroupName != nil: - formData_620122.add "GroupName", GroupName - add(formData_620122, "DryRun", newJBool(DryRun)) - add(query_620121, "Action", newJString(Action)) - add(query_620121, "Version", newJString(Version)) - add(formData_620122, "MaxResults", newJInt(MaxResults)) + formData_620124.add "GroupName", GroupName + add(formData_620124, "DryRun", newJBool(DryRun)) + add(query_620123, "Action", newJString(Action)) + add(query_620123, "Version", newJString(Version)) + add(formData_620124, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_620122.add "Filter", Filter - result = call_620120.call(nil, query_620121, nil, formData_620122, nil) + formData_620124.add "Filter", Filter + result = call_620122.call(nil, query_620123, nil, formData_620124, nil) -var postDescribeSecurityGroups* = Call_PostDescribeSecurityGroups_620101( +var postDescribeSecurityGroups* = Call_PostDescribeSecurityGroups_620103( name: "postDescribeSecurityGroups", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeSecurityGroups", - validator: validate_PostDescribeSecurityGroups_620102, base: "/", - url: url_PostDescribeSecurityGroups_620103, + validator: validate_PostDescribeSecurityGroups_620104, base: "/", + url: url_PostDescribeSecurityGroups_620105, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeSecurityGroups_620080 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeSecurityGroups_620082(protocol: Scheme; host: string; + Call_GetDescribeSecurityGroups_620082 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeSecurityGroups_620084(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -73995,7 +74022,7 @@ proc url_GetDescribeSecurityGroups_620082(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeSecurityGroups_620081(path: JsonNode; query: JsonNode; +proc validate_GetDescribeSecurityGroups_620083(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the specified security groups or all of your security groups.

A security group is for use with instances either in the EC2-Classic platform or in a specific VPC. For more information, see Amazon EC2 Security Groups in the Amazon Elastic Compute Cloud User Guide and Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.

## @@ -74019,44 +74046,44 @@ proc validate_GetDescribeSecurityGroups_620081(path: JsonNode; query: JsonNode; ## :

The IDs of the security groups. Required for security groups in a nondefault VPC.

Default: Describes all your security groups.

## Version: JString (required) section = newJObject() - var valid_620083 = query.getOrDefault("MaxResults") - valid_620083 = validateParameter(valid_620083, JInt, required = false, default = nil) - if valid_620083 != nil: - section.add "MaxResults", valid_620083 - var valid_620084 = query.getOrDefault("GroupName") - valid_620084 = validateParameter(valid_620084, JArray, required = false, - default = nil) - if valid_620084 != nil: - section.add "GroupName", valid_620084 - var valid_620085 = query.getOrDefault("DryRun") - valid_620085 = validateParameter(valid_620085, JBool, required = false, default = nil) + var valid_620085 = query.getOrDefault("MaxResults") + valid_620085 = validateParameter(valid_620085, JInt, required = false, default = nil) if valid_620085 != nil: - section.add "DryRun", valid_620085 - var valid_620086 = query.getOrDefault("NextToken") - valid_620086 = validateParameter(valid_620086, JString, required = false, + section.add "MaxResults", valid_620085 + var valid_620086 = query.getOrDefault("GroupName") + valid_620086 = validateParameter(valid_620086, JArray, required = false, default = nil) if valid_620086 != nil: - section.add "NextToken", valid_620086 - var valid_620087 = query.getOrDefault("Filter") - valid_620087 = validateParameter(valid_620087, JArray, required = false, - default = nil) + section.add "GroupName", valid_620086 + var valid_620087 = query.getOrDefault("DryRun") + valid_620087 = validateParameter(valid_620087, JBool, required = false, default = nil) if valid_620087 != nil: - section.add "Filter", valid_620087 - var valid_620088 = query.getOrDefault("Action") - valid_620088 = validateParameter(valid_620088, JString, required = true, - default = newJString("DescribeSecurityGroups")) + section.add "DryRun", valid_620087 + var valid_620088 = query.getOrDefault("NextToken") + valid_620088 = validateParameter(valid_620088, JString, required = false, + default = nil) if valid_620088 != nil: - section.add "Action", valid_620088 - var valid_620089 = query.getOrDefault("GroupId") + section.add "NextToken", valid_620088 + var valid_620089 = query.getOrDefault("Filter") valid_620089 = validateParameter(valid_620089, JArray, required = false, default = nil) if valid_620089 != nil: - section.add "GroupId", valid_620089 - var valid_620090 = query.getOrDefault("Version") + section.add "Filter", valid_620089 + var valid_620090 = query.getOrDefault("Action") valid_620090 = validateParameter(valid_620090, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("DescribeSecurityGroups")) if valid_620090 != nil: - section.add "Version", valid_620090 + section.add "Action", valid_620090 + var valid_620091 = query.getOrDefault("GroupId") + valid_620091 = validateParameter(valid_620091, JArray, required = false, + default = nil) + if valid_620091 != nil: + section.add "GroupId", valid_620091 + var valid_620092 = query.getOrDefault("Version") + valid_620092 = validateParameter(valid_620092, JString, required = true, + default = newJString("2016-11-15")) + if valid_620092 != nil: + section.add "Version", valid_620092 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -74067,61 +74094,61 @@ proc validate_GetDescribeSecurityGroups_620081(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620091 = header.getOrDefault("X-Amz-Signature") - valid_620091 = validateParameter(valid_620091, JString, required = false, - default = nil) - if valid_620091 != nil: - section.add "X-Amz-Signature", valid_620091 - var valid_620092 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620092 = validateParameter(valid_620092, JString, required = false, - default = nil) - if valid_620092 != nil: - section.add "X-Amz-Content-Sha256", valid_620092 - var valid_620093 = header.getOrDefault("X-Amz-Date") + var valid_620093 = header.getOrDefault("X-Amz-Signature") valid_620093 = validateParameter(valid_620093, JString, required = false, default = nil) if valid_620093 != nil: - section.add "X-Amz-Date", valid_620093 - var valid_620094 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620093 + var valid_620094 = header.getOrDefault("X-Amz-Content-Sha256") valid_620094 = validateParameter(valid_620094, JString, required = false, default = nil) if valid_620094 != nil: - section.add "X-Amz-Credential", valid_620094 - var valid_620095 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620094 + var valid_620095 = header.getOrDefault("X-Amz-Date") valid_620095 = validateParameter(valid_620095, JString, required = false, default = nil) if valid_620095 != nil: - section.add "X-Amz-Security-Token", valid_620095 - var valid_620096 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620095 + var valid_620096 = header.getOrDefault("X-Amz-Credential") valid_620096 = validateParameter(valid_620096, JString, required = false, default = nil) if valid_620096 != nil: - section.add "X-Amz-Algorithm", valid_620096 - var valid_620097 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620096 + var valid_620097 = header.getOrDefault("X-Amz-Security-Token") valid_620097 = validateParameter(valid_620097, JString, required = false, default = nil) if valid_620097 != nil: - section.add "X-Amz-SignedHeaders", valid_620097 + section.add "X-Amz-Security-Token", valid_620097 + var valid_620098 = header.getOrDefault("X-Amz-Algorithm") + valid_620098 = validateParameter(valid_620098, JString, required = false, + default = nil) + if valid_620098 != nil: + section.add "X-Amz-Algorithm", valid_620098 + var valid_620099 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620099 = validateParameter(valid_620099, JString, required = false, + default = nil) + if valid_620099 != nil: + section.add "X-Amz-SignedHeaders", valid_620099 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620098: Call_GetDescribeSecurityGroups_620080; path: JsonNode; +proc call*(call_620100: Call_GetDescribeSecurityGroups_620082; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the specified security groups or all of your security groups.

A security group is for use with instances either in the EC2-Classic platform or in a specific VPC. For more information, see Amazon EC2 Security Groups in the Amazon Elastic Compute Cloud User Guide and Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.

## - let valid = call_620098.validator(path, query, header, formData, body) - let scheme = call_620098.pickScheme + let valid = call_620100.validator(path, query, header, formData, body) + let scheme = call_620100.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620098.url(scheme.get, call_620098.host, call_620098.base, - call_620098.route, valid.getOrDefault("path"), + let url = call_620100.url(scheme.get, call_620100.host, call_620100.base, + call_620100.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620098, url, valid) + result = atozHook(call_620100, url, valid) -proc call*(call_620099: Call_GetDescribeSecurityGroups_620080; MaxResults: int = 0; +proc call*(call_620101: Call_GetDescribeSecurityGroups_620082; MaxResults: int = 0; GroupName: JsonNode = nil; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeSecurityGroups"; GroupId: JsonNode = nil; Version: string = "2016-11-15"): Recallable = @@ -74141,29 +74168,29 @@ proc call*(call_620099: Call_GetDescribeSecurityGroups_620080; MaxResults: int = ## GroupId: JArray ## :

The IDs of the security groups. Required for security groups in a nondefault VPC.

Default: Describes all your security groups.

## Version: string (required) - var query_620100 = newJObject() - add(query_620100, "MaxResults", newJInt(MaxResults)) + var query_620102 = newJObject() + add(query_620102, "MaxResults", newJInt(MaxResults)) if GroupName != nil: - query_620100.add "GroupName", GroupName - add(query_620100, "DryRun", newJBool(DryRun)) - add(query_620100, "NextToken", newJString(NextToken)) + query_620102.add "GroupName", GroupName + add(query_620102, "DryRun", newJBool(DryRun)) + add(query_620102, "NextToken", newJString(NextToken)) if Filter != nil: - query_620100.add "Filter", Filter - add(query_620100, "Action", newJString(Action)) + query_620102.add "Filter", Filter + add(query_620102, "Action", newJString(Action)) if GroupId != nil: - query_620100.add "GroupId", GroupId - add(query_620100, "Version", newJString(Version)) - result = call_620099.call(nil, query_620100, nil, nil, nil) + query_620102.add "GroupId", GroupId + add(query_620102, "Version", newJString(Version)) + result = call_620101.call(nil, query_620102, nil, nil, nil) -var getDescribeSecurityGroups* = Call_GetDescribeSecurityGroups_620080( +var getDescribeSecurityGroups* = Call_GetDescribeSecurityGroups_620082( name: "getDescribeSecurityGroups", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeSecurityGroups", - validator: validate_GetDescribeSecurityGroups_620081, base: "/", - url: url_GetDescribeSecurityGroups_620082, + validator: validate_GetDescribeSecurityGroups_620083, base: "/", + url: url_GetDescribeSecurityGroups_620084, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeSnapshotAttribute_620141 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeSnapshotAttribute_620143(protocol: Scheme; host: string; + Call_PostDescribeSnapshotAttribute_620143 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeSnapshotAttribute_620145(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -74173,7 +74200,7 @@ proc url_PostDescribeSnapshotAttribute_620143(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeSnapshotAttribute_620142(path: JsonNode; query: JsonNode; +proc validate_PostDescribeSnapshotAttribute_620144(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the specified attribute of the specified snapshot. You can specify only one attribute at a time.

For more information about EBS snapshots, see Amazon EBS Snapshots in the Amazon Elastic Compute Cloud User Guide.

## @@ -74185,16 +74212,16 @@ proc validate_PostDescribeSnapshotAttribute_620142(path: JsonNode; query: JsonNo ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620144 = query.getOrDefault("Action") - valid_620144 = validateParameter(valid_620144, JString, required = true, default = newJString( + var valid_620146 = query.getOrDefault("Action") + valid_620146 = validateParameter(valid_620146, JString, required = true, default = newJString( "DescribeSnapshotAttribute")) - if valid_620144 != nil: - section.add "Action", valid_620144 - var valid_620145 = query.getOrDefault("Version") - valid_620145 = validateParameter(valid_620145, JString, required = true, + if valid_620146 != nil: + section.add "Action", valid_620146 + var valid_620147 = query.getOrDefault("Version") + valid_620147 = validateParameter(valid_620147, JString, required = true, default = newJString("2016-11-15")) - if valid_620145 != nil: - section.add "Version", valid_620145 + if valid_620147 != nil: + section.add "Version", valid_620147 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -74205,41 +74232,41 @@ proc validate_PostDescribeSnapshotAttribute_620142(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620146 = header.getOrDefault("X-Amz-Signature") - valid_620146 = validateParameter(valid_620146, JString, required = false, - default = nil) - if valid_620146 != nil: - section.add "X-Amz-Signature", valid_620146 - var valid_620147 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620147 = validateParameter(valid_620147, JString, required = false, - default = nil) - if valid_620147 != nil: - section.add "X-Amz-Content-Sha256", valid_620147 - var valid_620148 = header.getOrDefault("X-Amz-Date") + var valid_620148 = header.getOrDefault("X-Amz-Signature") valid_620148 = validateParameter(valid_620148, JString, required = false, default = nil) if valid_620148 != nil: - section.add "X-Amz-Date", valid_620148 - var valid_620149 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620148 + var valid_620149 = header.getOrDefault("X-Amz-Content-Sha256") valid_620149 = validateParameter(valid_620149, JString, required = false, default = nil) if valid_620149 != nil: - section.add "X-Amz-Credential", valid_620149 - var valid_620150 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620149 + var valid_620150 = header.getOrDefault("X-Amz-Date") valid_620150 = validateParameter(valid_620150, JString, required = false, default = nil) if valid_620150 != nil: - section.add "X-Amz-Security-Token", valid_620150 - var valid_620151 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620150 + var valid_620151 = header.getOrDefault("X-Amz-Credential") valid_620151 = validateParameter(valid_620151, JString, required = false, default = nil) if valid_620151 != nil: - section.add "X-Amz-Algorithm", valid_620151 - var valid_620152 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620151 + var valid_620152 = header.getOrDefault("X-Amz-Security-Token") valid_620152 = validateParameter(valid_620152, JString, required = false, default = nil) if valid_620152 != nil: - section.add "X-Amz-SignedHeaders", valid_620152 + section.add "X-Amz-Security-Token", valid_620152 + var valid_620153 = header.getOrDefault("X-Amz-Algorithm") + valid_620153 = validateParameter(valid_620153, JString, required = false, + default = nil) + if valid_620153 != nil: + section.add "X-Amz-Algorithm", valid_620153 + var valid_620154 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620154 = validateParameter(valid_620154, JString, required = false, + default = nil) + if valid_620154 != nil: + section.add "X-Amz-SignedHeaders", valid_620154 result.add "header", section ## parameters in `formData` object: ## Attribute: JString (required) @@ -74249,38 +74276,38 @@ proc validate_PostDescribeSnapshotAttribute_620142(path: JsonNode; query: JsonNo ## DryRun: JBool ## : 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. section = newJObject() - var valid_620153 = formData.getOrDefault("Attribute") - valid_620153 = validateParameter(valid_620153, JString, required = true, + var valid_620155 = formData.getOrDefault("Attribute") + valid_620155 = validateParameter(valid_620155, JString, required = true, default = newJString("productCodes")) - if valid_620153 != nil: - section.add "Attribute", valid_620153 - var valid_620154 = formData.getOrDefault("SnapshotId") - valid_620154 = validateParameter(valid_620154, JString, required = true, - default = nil) - if valid_620154 != nil: - section.add "SnapshotId", valid_620154 - var valid_620155 = formData.getOrDefault("DryRun") - valid_620155 = validateParameter(valid_620155, JBool, required = false, default = nil) if valid_620155 != nil: - section.add "DryRun", valid_620155 + section.add "Attribute", valid_620155 + var valid_620156 = formData.getOrDefault("SnapshotId") + valid_620156 = validateParameter(valid_620156, JString, required = true, + default = nil) + if valid_620156 != nil: + section.add "SnapshotId", valid_620156 + var valid_620157 = formData.getOrDefault("DryRun") + valid_620157 = validateParameter(valid_620157, JBool, required = false, default = nil) + if valid_620157 != nil: + section.add "DryRun", valid_620157 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620156: Call_PostDescribeSnapshotAttribute_620141; path: JsonNode; +proc call*(call_620158: Call_PostDescribeSnapshotAttribute_620143; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the specified attribute of the specified snapshot. You can specify only one attribute at a time.

For more information about EBS snapshots, see Amazon EBS Snapshots in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_620156.validator(path, query, header, formData, body) - let scheme = call_620156.pickScheme + let valid = call_620158.validator(path, query, header, formData, body) + let scheme = call_620158.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620156.url(scheme.get, call_620156.host, call_620156.base, - call_620156.route, valid.getOrDefault("path"), + let url = call_620158.url(scheme.get, call_620158.host, call_620158.base, + call_620158.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620156, url, valid) + result = atozHook(call_620158, url, valid) -proc call*(call_620157: Call_PostDescribeSnapshotAttribute_620141; +proc call*(call_620159: Call_PostDescribeSnapshotAttribute_620143; SnapshotId: string; Attribute: string = "productCodes"; DryRun: bool = false; Action: string = "DescribeSnapshotAttribute"; Version: string = "2016-11-15"): Recallable = @@ -74294,24 +74321,24 @@ proc call*(call_620157: Call_PostDescribeSnapshotAttribute_620141; ## : 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. ## Action: string (required) ## Version: string (required) - var query_620158 = newJObject() - var formData_620159 = newJObject() - add(formData_620159, "Attribute", newJString(Attribute)) - add(formData_620159, "SnapshotId", newJString(SnapshotId)) - add(formData_620159, "DryRun", newJBool(DryRun)) - add(query_620158, "Action", newJString(Action)) - add(query_620158, "Version", newJString(Version)) - result = call_620157.call(nil, query_620158, nil, formData_620159, nil) + var query_620160 = newJObject() + var formData_620161 = newJObject() + add(formData_620161, "Attribute", newJString(Attribute)) + add(formData_620161, "SnapshotId", newJString(SnapshotId)) + add(formData_620161, "DryRun", newJBool(DryRun)) + add(query_620160, "Action", newJString(Action)) + add(query_620160, "Version", newJString(Version)) + result = call_620159.call(nil, query_620160, nil, formData_620161, nil) -var postDescribeSnapshotAttribute* = Call_PostDescribeSnapshotAttribute_620141( +var postDescribeSnapshotAttribute* = Call_PostDescribeSnapshotAttribute_620143( name: "postDescribeSnapshotAttribute", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeSnapshotAttribute", - validator: validate_PostDescribeSnapshotAttribute_620142, base: "/", - url: url_PostDescribeSnapshotAttribute_620143, + validator: validate_PostDescribeSnapshotAttribute_620144, base: "/", + url: url_PostDescribeSnapshotAttribute_620145, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeSnapshotAttribute_620123 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeSnapshotAttribute_620125(protocol: Scheme; host: string; + Call_GetDescribeSnapshotAttribute_620125 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeSnapshotAttribute_620127(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -74321,7 +74348,7 @@ proc url_GetDescribeSnapshotAttribute_620125(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeSnapshotAttribute_620124(path: JsonNode; query: JsonNode; +proc validate_GetDescribeSnapshotAttribute_620126(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the specified attribute of the specified snapshot. You can specify only one attribute at a time.

For more information about EBS snapshots, see Amazon EBS Snapshots in the Amazon Elastic Compute Cloud User Guide.

## @@ -74339,30 +74366,30 @@ proc validate_GetDescribeSnapshotAttribute_620124(path: JsonNode; query: JsonNod ## Attribute: JString (required) ## : The snapshot attribute you would like to view. section = newJObject() - var valid_620126 = query.getOrDefault("DryRun") - valid_620126 = validateParameter(valid_620126, JBool, required = false, default = nil) - if valid_620126 != nil: - section.add "DryRun", valid_620126 - var valid_620127 = query.getOrDefault("Action") - valid_620127 = validateParameter(valid_620127, JString, required = true, default = newJString( - "DescribeSnapshotAttribute")) - if valid_620127 != nil: - section.add "Action", valid_620127 - var valid_620128 = query.getOrDefault("Version") - valid_620128 = validateParameter(valid_620128, JString, required = true, - default = newJString("2016-11-15")) + var valid_620128 = query.getOrDefault("DryRun") + valid_620128 = validateParameter(valid_620128, JBool, required = false, default = nil) if valid_620128 != nil: - section.add "Version", valid_620128 - var valid_620129 = query.getOrDefault("SnapshotId") - valid_620129 = validateParameter(valid_620129, JString, required = true, - default = nil) + section.add "DryRun", valid_620128 + var valid_620129 = query.getOrDefault("Action") + valid_620129 = validateParameter(valid_620129, JString, required = true, default = newJString( + "DescribeSnapshotAttribute")) if valid_620129 != nil: - section.add "SnapshotId", valid_620129 - var valid_620130 = query.getOrDefault("Attribute") + section.add "Action", valid_620129 + var valid_620130 = query.getOrDefault("Version") valid_620130 = validateParameter(valid_620130, JString, required = true, - default = newJString("productCodes")) + default = newJString("2016-11-15")) if valid_620130 != nil: - section.add "Attribute", valid_620130 + section.add "Version", valid_620130 + var valid_620131 = query.getOrDefault("SnapshotId") + valid_620131 = validateParameter(valid_620131, JString, required = true, + default = nil) + if valid_620131 != nil: + section.add "SnapshotId", valid_620131 + var valid_620132 = query.getOrDefault("Attribute") + valid_620132 = validateParameter(valid_620132, JString, required = true, + default = newJString("productCodes")) + if valid_620132 != nil: + section.add "Attribute", valid_620132 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -74373,61 +74400,61 @@ proc validate_GetDescribeSnapshotAttribute_620124(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620131 = header.getOrDefault("X-Amz-Signature") - valid_620131 = validateParameter(valid_620131, JString, required = false, - default = nil) - if valid_620131 != nil: - section.add "X-Amz-Signature", valid_620131 - var valid_620132 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620132 = validateParameter(valid_620132, JString, required = false, - default = nil) - if valid_620132 != nil: - section.add "X-Amz-Content-Sha256", valid_620132 - var valid_620133 = header.getOrDefault("X-Amz-Date") + var valid_620133 = header.getOrDefault("X-Amz-Signature") valid_620133 = validateParameter(valid_620133, JString, required = false, default = nil) if valid_620133 != nil: - section.add "X-Amz-Date", valid_620133 - var valid_620134 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620133 + var valid_620134 = header.getOrDefault("X-Amz-Content-Sha256") valid_620134 = validateParameter(valid_620134, JString, required = false, default = nil) if valid_620134 != nil: - section.add "X-Amz-Credential", valid_620134 - var valid_620135 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620134 + var valid_620135 = header.getOrDefault("X-Amz-Date") valid_620135 = validateParameter(valid_620135, JString, required = false, default = nil) if valid_620135 != nil: - section.add "X-Amz-Security-Token", valid_620135 - var valid_620136 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620135 + var valid_620136 = header.getOrDefault("X-Amz-Credential") valid_620136 = validateParameter(valid_620136, JString, required = false, default = nil) if valid_620136 != nil: - section.add "X-Amz-Algorithm", valid_620136 - var valid_620137 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620136 + var valid_620137 = header.getOrDefault("X-Amz-Security-Token") valid_620137 = validateParameter(valid_620137, JString, required = false, default = nil) if valid_620137 != nil: - section.add "X-Amz-SignedHeaders", valid_620137 + section.add "X-Amz-Security-Token", valid_620137 + var valid_620138 = header.getOrDefault("X-Amz-Algorithm") + valid_620138 = validateParameter(valid_620138, JString, required = false, + default = nil) + if valid_620138 != nil: + section.add "X-Amz-Algorithm", valid_620138 + var valid_620139 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620139 = validateParameter(valid_620139, JString, required = false, + default = nil) + if valid_620139 != nil: + section.add "X-Amz-SignedHeaders", valid_620139 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620138: Call_GetDescribeSnapshotAttribute_620123; path: JsonNode; +proc call*(call_620140: Call_GetDescribeSnapshotAttribute_620125; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the specified attribute of the specified snapshot. You can specify only one attribute at a time.

For more information about EBS snapshots, see Amazon EBS Snapshots in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_620138.validator(path, query, header, formData, body) - let scheme = call_620138.pickScheme + let valid = call_620140.validator(path, query, header, formData, body) + let scheme = call_620140.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620138.url(scheme.get, call_620138.host, call_620138.base, - call_620138.route, valid.getOrDefault("path"), + let url = call_620140.url(scheme.get, call_620140.host, call_620140.base, + call_620140.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620138, url, valid) + result = atozHook(call_620140, url, valid) -proc call*(call_620139: Call_GetDescribeSnapshotAttribute_620123; +proc call*(call_620141: Call_GetDescribeSnapshotAttribute_620125; SnapshotId: string; DryRun: bool = false; Action: string = "DescribeSnapshotAttribute"; Version: string = "2016-11-15"; Attribute: string = "productCodes"): Recallable = @@ -74441,23 +74468,23 @@ proc call*(call_620139: Call_GetDescribeSnapshotAttribute_620123; ## : The ID of the EBS snapshot. ## Attribute: string (required) ## : The snapshot attribute you would like to view. - var query_620140 = newJObject() - add(query_620140, "DryRun", newJBool(DryRun)) - add(query_620140, "Action", newJString(Action)) - add(query_620140, "Version", newJString(Version)) - add(query_620140, "SnapshotId", newJString(SnapshotId)) - add(query_620140, "Attribute", newJString(Attribute)) - result = call_620139.call(nil, query_620140, nil, nil, nil) - -var getDescribeSnapshotAttribute* = Call_GetDescribeSnapshotAttribute_620123( + var query_620142 = newJObject() + add(query_620142, "DryRun", newJBool(DryRun)) + add(query_620142, "Action", newJString(Action)) + add(query_620142, "Version", newJString(Version)) + add(query_620142, "SnapshotId", newJString(SnapshotId)) + add(query_620142, "Attribute", newJString(Attribute)) + result = call_620141.call(nil, query_620142, nil, nil, nil) + +var getDescribeSnapshotAttribute* = Call_GetDescribeSnapshotAttribute_620125( name: "getDescribeSnapshotAttribute", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeSnapshotAttribute", - validator: validate_GetDescribeSnapshotAttribute_620124, base: "/", - url: url_GetDescribeSnapshotAttribute_620125, + validator: validate_GetDescribeSnapshotAttribute_620126, base: "/", + url: url_GetDescribeSnapshotAttribute_620127, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeSnapshots_620182 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeSnapshots_620184(protocol: Scheme; host: string; base: string; + Call_PostDescribeSnapshots_620184 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeSnapshots_620186(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -74467,7 +74494,7 @@ proc url_PostDescribeSnapshots_620184(protocol: Scheme; host: string; base: stri else: result.path = base & route -proc validate_PostDescribeSnapshots_620183(path: JsonNode; query: JsonNode; +proc validate_PostDescribeSnapshots_620185(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the specified EBS snapshots available to you or all of the EBS snapshots available to you.

The snapshots available to you include public snapshots, private snapshots that you own, and private snapshots owned by other AWS accounts for which you have explicit create volume permissions.

The create volume permissions fall into the following categories:

The list of snapshots returned can be filtered by specifying snapshot IDs, snapshot owners, or AWS accounts with create volume permissions. If no options are specified, Amazon EC2 returns all snapshots for which you have create volume permissions.

If you specify one or more snapshot IDs, only snapshots that have the specified IDs are returned. If you specify an invalid snapshot ID, an error is returned. If you specify a snapshot ID for which you do not have access, it is not included in the returned results.

If you specify one or more snapshot owners using the OwnerIds option, only snapshots from the specified owners and for which you have access are returned. The results can include the AWS account IDs of the specified owners, amazon for snapshots owned by Amazon, or self for snapshots that you own.

If you specify a list of restorable users, only snapshots with create snapshot permissions for those users are returned. You can specify AWS account IDs (if you own the snapshots), self for snapshots for which you own or have explicit permissions, or all for public snapshots.

If you are describing a long list of snapshots, you can paginate the output to make the list more manageable. The MaxResults parameter sets the maximum number of results returned in a single page. If the list of results exceeds your MaxResults value, then that number of results is returned along with a NextToken value that can be passed to a subsequent DescribeSnapshots request to retrieve the remaining results.

To get the state of fast snapshot restores for a snapshot, use DescribeFastSnapshotRestores.

For more information about EBS snapshots, see Amazon EBS Snapshots in the Amazon Elastic Compute Cloud User Guide.

## @@ -74479,16 +74506,16 @@ proc validate_PostDescribeSnapshots_620183(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620185 = query.getOrDefault("Action") - valid_620185 = validateParameter(valid_620185, JString, required = true, + var valid_620187 = query.getOrDefault("Action") + valid_620187 = validateParameter(valid_620187, JString, required = true, default = newJString("DescribeSnapshots")) - if valid_620185 != nil: - section.add "Action", valid_620185 - var valid_620186 = query.getOrDefault("Version") - valid_620186 = validateParameter(valid_620186, JString, required = true, + if valid_620187 != nil: + section.add "Action", valid_620187 + var valid_620188 = query.getOrDefault("Version") + valid_620188 = validateParameter(valid_620188, JString, required = true, default = newJString("2016-11-15")) - if valid_620186 != nil: - section.add "Version", valid_620186 + if valid_620188 != nil: + section.add "Version", valid_620188 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -74499,41 +74526,41 @@ proc validate_PostDescribeSnapshots_620183(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620187 = header.getOrDefault("X-Amz-Signature") - valid_620187 = validateParameter(valid_620187, JString, required = false, - default = nil) - if valid_620187 != nil: - section.add "X-Amz-Signature", valid_620187 - var valid_620188 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620188 = validateParameter(valid_620188, JString, required = false, - default = nil) - if valid_620188 != nil: - section.add "X-Amz-Content-Sha256", valid_620188 - var valid_620189 = header.getOrDefault("X-Amz-Date") + var valid_620189 = header.getOrDefault("X-Amz-Signature") valid_620189 = validateParameter(valid_620189, JString, required = false, default = nil) if valid_620189 != nil: - section.add "X-Amz-Date", valid_620189 - var valid_620190 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620189 + var valid_620190 = header.getOrDefault("X-Amz-Content-Sha256") valid_620190 = validateParameter(valid_620190, JString, required = false, default = nil) if valid_620190 != nil: - section.add "X-Amz-Credential", valid_620190 - var valid_620191 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620190 + var valid_620191 = header.getOrDefault("X-Amz-Date") valid_620191 = validateParameter(valid_620191, JString, required = false, default = nil) if valid_620191 != nil: - section.add "X-Amz-Security-Token", valid_620191 - var valid_620192 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620191 + var valid_620192 = header.getOrDefault("X-Amz-Credential") valid_620192 = validateParameter(valid_620192, JString, required = false, default = nil) if valid_620192 != nil: - section.add "X-Amz-Algorithm", valid_620192 - var valid_620193 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620192 + var valid_620193 = header.getOrDefault("X-Amz-Security-Token") valid_620193 = validateParameter(valid_620193, JString, required = false, default = nil) if valid_620193 != nil: - section.add "X-Amz-SignedHeaders", valid_620193 + section.add "X-Amz-Security-Token", valid_620193 + var valid_620194 = header.getOrDefault("X-Amz-Algorithm") + valid_620194 = validateParameter(valid_620194, JString, required = false, + default = nil) + if valid_620194 != nil: + section.add "X-Amz-Algorithm", valid_620194 + var valid_620195 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620195 = validateParameter(valid_620195, JString, required = false, + default = nil) + if valid_620195 != nil: + section.add "X-Amz-SignedHeaders", valid_620195 result.add "header", section ## parameters in `formData` object: ## RestorableBy: JArray @@ -74551,57 +74578,57 @@ proc validate_PostDescribeSnapshots_620183(path: JsonNode; query: JsonNode; ## Filter: JArray ## :

The filters.

section = newJObject() - var valid_620194 = formData.getOrDefault("RestorableBy") - valid_620194 = validateParameter(valid_620194, JArray, required = false, - default = nil) - if valid_620194 != nil: - section.add "RestorableBy", valid_620194 - var valid_620195 = formData.getOrDefault("NextToken") - valid_620195 = validateParameter(valid_620195, JString, required = false, - default = nil) - if valid_620195 != nil: - section.add "NextToken", valid_620195 - var valid_620196 = formData.getOrDefault("SnapshotId") + var valid_620196 = formData.getOrDefault("RestorableBy") valid_620196 = validateParameter(valid_620196, JArray, required = false, default = nil) if valid_620196 != nil: - section.add "SnapshotId", valid_620196 - var valid_620197 = formData.getOrDefault("DryRun") - valid_620197 = validateParameter(valid_620197, JBool, required = false, default = nil) + section.add "RestorableBy", valid_620196 + var valid_620197 = formData.getOrDefault("NextToken") + valid_620197 = validateParameter(valid_620197, JString, required = false, + default = nil) if valid_620197 != nil: - section.add "DryRun", valid_620197 - var valid_620198 = formData.getOrDefault("Owner") + section.add "NextToken", valid_620197 + var valid_620198 = formData.getOrDefault("SnapshotId") valid_620198 = validateParameter(valid_620198, JArray, required = false, default = nil) if valid_620198 != nil: - section.add "Owner", valid_620198 - var valid_620199 = formData.getOrDefault("MaxResults") - valid_620199 = validateParameter(valid_620199, JInt, required = false, default = nil) + section.add "SnapshotId", valid_620198 + var valid_620199 = formData.getOrDefault("DryRun") + valid_620199 = validateParameter(valid_620199, JBool, required = false, default = nil) if valid_620199 != nil: - section.add "MaxResults", valid_620199 - var valid_620200 = formData.getOrDefault("Filter") + section.add "DryRun", valid_620199 + var valid_620200 = formData.getOrDefault("Owner") valid_620200 = validateParameter(valid_620200, JArray, required = false, default = nil) if valid_620200 != nil: - section.add "Filter", valid_620200 + section.add "Owner", valid_620200 + var valid_620201 = formData.getOrDefault("MaxResults") + valid_620201 = validateParameter(valid_620201, JInt, required = false, default = nil) + if valid_620201 != nil: + section.add "MaxResults", valid_620201 + var valid_620202 = formData.getOrDefault("Filter") + valid_620202 = validateParameter(valid_620202, JArray, required = false, + default = nil) + if valid_620202 != nil: + section.add "Filter", valid_620202 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620201: Call_PostDescribeSnapshots_620182; path: JsonNode; +proc call*(call_620203: Call_PostDescribeSnapshots_620184; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the specified EBS snapshots available to you or all of the EBS snapshots available to you.

The snapshots available to you include public snapshots, private snapshots that you own, and private snapshots owned by other AWS accounts for which you have explicit create volume permissions.

The create volume permissions fall into the following categories:

The list of snapshots returned can be filtered by specifying snapshot IDs, snapshot owners, or AWS accounts with create volume permissions. If no options are specified, Amazon EC2 returns all snapshots for which you have create volume permissions.

If you specify one or more snapshot IDs, only snapshots that have the specified IDs are returned. If you specify an invalid snapshot ID, an error is returned. If you specify a snapshot ID for which you do not have access, it is not included in the returned results.

If you specify one or more snapshot owners using the OwnerIds option, only snapshots from the specified owners and for which you have access are returned. The results can include the AWS account IDs of the specified owners, amazon for snapshots owned by Amazon, or self for snapshots that you own.

If you specify a list of restorable users, only snapshots with create snapshot permissions for those users are returned. You can specify AWS account IDs (if you own the snapshots), self for snapshots for which you own or have explicit permissions, or all for public snapshots.

If you are describing a long list of snapshots, you can paginate the output to make the list more manageable. The MaxResults parameter sets the maximum number of results returned in a single page. If the list of results exceeds your MaxResults value, then that number of results is returned along with a NextToken value that can be passed to a subsequent DescribeSnapshots request to retrieve the remaining results.

To get the state of fast snapshot restores for a snapshot, use DescribeFastSnapshotRestores.

For more information about EBS snapshots, see Amazon EBS Snapshots in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_620201.validator(path, query, header, formData, body) - let scheme = call_620201.pickScheme + let valid = call_620203.validator(path, query, header, formData, body) + let scheme = call_620203.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620201.url(scheme.get, call_620201.host, call_620201.base, - call_620201.route, valid.getOrDefault("path"), + let url = call_620203.url(scheme.get, call_620203.host, call_620203.base, + call_620203.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620201, url, valid) + result = atozHook(call_620203, url, valid) -proc call*(call_620202: Call_PostDescribeSnapshots_620182; +proc call*(call_620204: Call_PostDescribeSnapshots_620184; RestorableBy: JsonNode = nil; NextToken: string = ""; SnapshotId: JsonNode = nil; DryRun: bool = false; Action: string = "DescribeSnapshots"; Owner: JsonNode = nil; @@ -74624,31 +74651,31 @@ proc call*(call_620202: Call_PostDescribeSnapshots_620182; ## : The maximum number of snapshot results returned by DescribeSnapshots in paginated output. When this parameter is used, DescribeSnapshots only returns MaxResults results in a single page along with a NextToken response element. The remaining results of the initial request can be seen by sending another DescribeSnapshots request with the returned NextToken value. This value can be between 5 and 1000; if MaxResults is given a value larger than 1000, only 1000 results are returned. If this parameter is not used, then DescribeSnapshots returns all results. You cannot specify this parameter and the snapshot IDs parameter in the same request. ## Filter: JArray ## :

The filters.

- var query_620203 = newJObject() - var formData_620204 = newJObject() + var query_620205 = newJObject() + var formData_620206 = newJObject() if RestorableBy != nil: - formData_620204.add "RestorableBy", RestorableBy - add(formData_620204, "NextToken", newJString(NextToken)) + formData_620206.add "RestorableBy", RestorableBy + add(formData_620206, "NextToken", newJString(NextToken)) if SnapshotId != nil: - formData_620204.add "SnapshotId", SnapshotId - add(formData_620204, "DryRun", newJBool(DryRun)) - add(query_620203, "Action", newJString(Action)) + formData_620206.add "SnapshotId", SnapshotId + add(formData_620206, "DryRun", newJBool(DryRun)) + add(query_620205, "Action", newJString(Action)) if Owner != nil: - formData_620204.add "Owner", Owner - add(query_620203, "Version", newJString(Version)) - add(formData_620204, "MaxResults", newJInt(MaxResults)) + formData_620206.add "Owner", Owner + add(query_620205, "Version", newJString(Version)) + add(formData_620206, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_620204.add "Filter", Filter - result = call_620202.call(nil, query_620203, nil, formData_620204, nil) + formData_620206.add "Filter", Filter + result = call_620204.call(nil, query_620205, nil, formData_620206, nil) -var postDescribeSnapshots* = Call_PostDescribeSnapshots_620182( +var postDescribeSnapshots* = Call_PostDescribeSnapshots_620184( name: "postDescribeSnapshots", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeSnapshots", - validator: validate_PostDescribeSnapshots_620183, base: "/", - url: url_PostDescribeSnapshots_620184, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDescribeSnapshots_620185, base: "/", + url: url_PostDescribeSnapshots_620186, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeSnapshots_620160 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeSnapshots_620162(protocol: Scheme; host: string; base: string; + Call_GetDescribeSnapshots_620162 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeSnapshots_620164(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -74658,7 +74685,7 @@ proc url_GetDescribeSnapshots_620162(protocol: Scheme; host: string; base: strin else: result.path = base & route -proc validate_GetDescribeSnapshots_620161(path: JsonNode; query: JsonNode; +proc validate_GetDescribeSnapshots_620163(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the specified EBS snapshots available to you or all of the EBS snapshots available to you.

The snapshots available to you include public snapshots, private snapshots that you own, and private snapshots owned by other AWS accounts for which you have explicit create volume permissions.

The create volume permissions fall into the following categories:

The list of snapshots returned can be filtered by specifying snapshot IDs, snapshot owners, or AWS accounts with create volume permissions. If no options are specified, Amazon EC2 returns all snapshots for which you have create volume permissions.

If you specify one or more snapshot IDs, only snapshots that have the specified IDs are returned. If you specify an invalid snapshot ID, an error is returned. If you specify a snapshot ID for which you do not have access, it is not included in the returned results.

If you specify one or more snapshot owners using the OwnerIds option, only snapshots from the specified owners and for which you have access are returned. The results can include the AWS account IDs of the specified owners, amazon for snapshots owned by Amazon, or self for snapshots that you own.

If you specify a list of restorable users, only snapshots with create snapshot permissions for those users are returned. You can specify AWS account IDs (if you own the snapshots), self for snapshots for which you own or have explicit permissions, or all for public snapshots.

If you are describing a long list of snapshots, you can paginate the output to make the list more manageable. The MaxResults parameter sets the maximum number of results returned in a single page. If the list of results exceeds your MaxResults value, then that number of results is returned along with a NextToken value that can be passed to a subsequent DescribeSnapshots request to retrieve the remaining results.

To get the state of fast snapshot restores for a snapshot, use DescribeFastSnapshotRestores.

For more information about EBS snapshots, see Amazon EBS Snapshots in the Amazon Elastic Compute Cloud User Guide.

## @@ -74684,49 +74711,49 @@ proc validate_GetDescribeSnapshots_620161(path: JsonNode; query: JsonNode; ## SnapshotId: JArray ## :

The snapshot IDs.

Default: Describes the snapshots for which you have create volume permissions.

section = newJObject() - var valid_620163 = query.getOrDefault("MaxResults") - valid_620163 = validateParameter(valid_620163, JInt, required = false, default = nil) - if valid_620163 != nil: - section.add "MaxResults", valid_620163 - var valid_620164 = query.getOrDefault("Owner") - valid_620164 = validateParameter(valid_620164, JArray, required = false, - default = nil) - if valid_620164 != nil: - section.add "Owner", valid_620164 - var valid_620165 = query.getOrDefault("DryRun") - valid_620165 = validateParameter(valid_620165, JBool, required = false, default = nil) + var valid_620165 = query.getOrDefault("MaxResults") + valid_620165 = validateParameter(valid_620165, JInt, required = false, default = nil) if valid_620165 != nil: - section.add "DryRun", valid_620165 - var valid_620166 = query.getOrDefault("RestorableBy") + section.add "MaxResults", valid_620165 + var valid_620166 = query.getOrDefault("Owner") valid_620166 = validateParameter(valid_620166, JArray, required = false, default = nil) if valid_620166 != nil: - section.add "RestorableBy", valid_620166 - var valid_620167 = query.getOrDefault("NextToken") - valid_620167 = validateParameter(valid_620167, JString, required = false, - default = nil) + section.add "Owner", valid_620166 + var valid_620167 = query.getOrDefault("DryRun") + valid_620167 = validateParameter(valid_620167, JBool, required = false, default = nil) if valid_620167 != nil: - section.add "NextToken", valid_620167 - var valid_620168 = query.getOrDefault("Filter") + section.add "DryRun", valid_620167 + var valid_620168 = query.getOrDefault("RestorableBy") valid_620168 = validateParameter(valid_620168, JArray, required = false, default = nil) if valid_620168 != nil: - section.add "Filter", valid_620168 - var valid_620169 = query.getOrDefault("Action") - valid_620169 = validateParameter(valid_620169, JString, required = true, - default = newJString("DescribeSnapshots")) + section.add "RestorableBy", valid_620168 + var valid_620169 = query.getOrDefault("NextToken") + valid_620169 = validateParameter(valid_620169, JString, required = false, + default = nil) if valid_620169 != nil: - section.add "Action", valid_620169 - var valid_620170 = query.getOrDefault("Version") - valid_620170 = validateParameter(valid_620170, JString, required = true, - default = newJString("2016-11-15")) - if valid_620170 != nil: - section.add "Version", valid_620170 - var valid_620171 = query.getOrDefault("SnapshotId") - valid_620171 = validateParameter(valid_620171, JArray, required = false, + section.add "NextToken", valid_620169 + var valid_620170 = query.getOrDefault("Filter") + valid_620170 = validateParameter(valid_620170, JArray, required = false, default = nil) + if valid_620170 != nil: + section.add "Filter", valid_620170 + var valid_620171 = query.getOrDefault("Action") + valid_620171 = validateParameter(valid_620171, JString, required = true, + default = newJString("DescribeSnapshots")) if valid_620171 != nil: - section.add "SnapshotId", valid_620171 + section.add "Action", valid_620171 + var valid_620172 = query.getOrDefault("Version") + valid_620172 = validateParameter(valid_620172, JString, required = true, + default = newJString("2016-11-15")) + if valid_620172 != nil: + section.add "Version", valid_620172 + var valid_620173 = query.getOrDefault("SnapshotId") + valid_620173 = validateParameter(valid_620173, JArray, required = false, + default = nil) + if valid_620173 != nil: + section.add "SnapshotId", valid_620173 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -74737,61 +74764,61 @@ proc validate_GetDescribeSnapshots_620161(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620172 = header.getOrDefault("X-Amz-Signature") - valid_620172 = validateParameter(valid_620172, JString, required = false, - default = nil) - if valid_620172 != nil: - section.add "X-Amz-Signature", valid_620172 - var valid_620173 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620173 = validateParameter(valid_620173, JString, required = false, - default = nil) - if valid_620173 != nil: - section.add "X-Amz-Content-Sha256", valid_620173 - var valid_620174 = header.getOrDefault("X-Amz-Date") + var valid_620174 = header.getOrDefault("X-Amz-Signature") valid_620174 = validateParameter(valid_620174, JString, required = false, default = nil) if valid_620174 != nil: - section.add "X-Amz-Date", valid_620174 - var valid_620175 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620174 + var valid_620175 = header.getOrDefault("X-Amz-Content-Sha256") valid_620175 = validateParameter(valid_620175, JString, required = false, default = nil) if valid_620175 != nil: - section.add "X-Amz-Credential", valid_620175 - var valid_620176 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620175 + var valid_620176 = header.getOrDefault("X-Amz-Date") valid_620176 = validateParameter(valid_620176, JString, required = false, default = nil) if valid_620176 != nil: - section.add "X-Amz-Security-Token", valid_620176 - var valid_620177 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620176 + var valid_620177 = header.getOrDefault("X-Amz-Credential") valid_620177 = validateParameter(valid_620177, JString, required = false, default = nil) if valid_620177 != nil: - section.add "X-Amz-Algorithm", valid_620177 - var valid_620178 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620177 + var valid_620178 = header.getOrDefault("X-Amz-Security-Token") valid_620178 = validateParameter(valid_620178, JString, required = false, default = nil) if valid_620178 != nil: - section.add "X-Amz-SignedHeaders", valid_620178 + section.add "X-Amz-Security-Token", valid_620178 + var valid_620179 = header.getOrDefault("X-Amz-Algorithm") + valid_620179 = validateParameter(valid_620179, JString, required = false, + default = nil) + if valid_620179 != nil: + section.add "X-Amz-Algorithm", valid_620179 + var valid_620180 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620180 = validateParameter(valid_620180, JString, required = false, + default = nil) + if valid_620180 != nil: + section.add "X-Amz-SignedHeaders", valid_620180 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620179: Call_GetDescribeSnapshots_620160; path: JsonNode; +proc call*(call_620181: Call_GetDescribeSnapshots_620162; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the specified EBS snapshots available to you or all of the EBS snapshots available to you.

The snapshots available to you include public snapshots, private snapshots that you own, and private snapshots owned by other AWS accounts for which you have explicit create volume permissions.

The create volume permissions fall into the following categories:

The list of snapshots returned can be filtered by specifying snapshot IDs, snapshot owners, or AWS accounts with create volume permissions. If no options are specified, Amazon EC2 returns all snapshots for which you have create volume permissions.

If you specify one or more snapshot IDs, only snapshots that have the specified IDs are returned. If you specify an invalid snapshot ID, an error is returned. If you specify a snapshot ID for which you do not have access, it is not included in the returned results.

If you specify one or more snapshot owners using the OwnerIds option, only snapshots from the specified owners and for which you have access are returned. The results can include the AWS account IDs of the specified owners, amazon for snapshots owned by Amazon, or self for snapshots that you own.

If you specify a list of restorable users, only snapshots with create snapshot permissions for those users are returned. You can specify AWS account IDs (if you own the snapshots), self for snapshots for which you own or have explicit permissions, or all for public snapshots.

If you are describing a long list of snapshots, you can paginate the output to make the list more manageable. The MaxResults parameter sets the maximum number of results returned in a single page. If the list of results exceeds your MaxResults value, then that number of results is returned along with a NextToken value that can be passed to a subsequent DescribeSnapshots request to retrieve the remaining results.

To get the state of fast snapshot restores for a snapshot, use DescribeFastSnapshotRestores.

For more information about EBS snapshots, see Amazon EBS Snapshots in the Amazon Elastic Compute Cloud User Guide.

## - let valid = call_620179.validator(path, query, header, formData, body) - let scheme = call_620179.pickScheme + let valid = call_620181.validator(path, query, header, formData, body) + let scheme = call_620181.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620179.url(scheme.get, call_620179.host, call_620179.base, - call_620179.route, valid.getOrDefault("path"), + let url = call_620181.url(scheme.get, call_620181.host, call_620181.base, + call_620181.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620179, url, valid) + result = atozHook(call_620181, url, valid) -proc call*(call_620180: Call_GetDescribeSnapshots_620160; MaxResults: int = 0; +proc call*(call_620182: Call_GetDescribeSnapshots_620162; MaxResults: int = 0; Owner: JsonNode = nil; DryRun: bool = false; RestorableBy: JsonNode = nil; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeSnapshots"; Version: string = "2016-11-15"; @@ -74814,30 +74841,30 @@ proc call*(call_620180: Call_GetDescribeSnapshots_620160; MaxResults: int = 0; ## Version: string (required) ## SnapshotId: JArray ## :

The snapshot IDs.

Default: Describes the snapshots for which you have create volume permissions.

- var query_620181 = newJObject() - add(query_620181, "MaxResults", newJInt(MaxResults)) + var query_620183 = newJObject() + add(query_620183, "MaxResults", newJInt(MaxResults)) if Owner != nil: - query_620181.add "Owner", Owner - add(query_620181, "DryRun", newJBool(DryRun)) + query_620183.add "Owner", Owner + add(query_620183, "DryRun", newJBool(DryRun)) if RestorableBy != nil: - query_620181.add "RestorableBy", RestorableBy - add(query_620181, "NextToken", newJString(NextToken)) + query_620183.add "RestorableBy", RestorableBy + add(query_620183, "NextToken", newJString(NextToken)) if Filter != nil: - query_620181.add "Filter", Filter - add(query_620181, "Action", newJString(Action)) - add(query_620181, "Version", newJString(Version)) + query_620183.add "Filter", Filter + add(query_620183, "Action", newJString(Action)) + add(query_620183, "Version", newJString(Version)) if SnapshotId != nil: - query_620181.add "SnapshotId", SnapshotId - result = call_620180.call(nil, query_620181, nil, nil, nil) + query_620183.add "SnapshotId", SnapshotId + result = call_620182.call(nil, query_620183, nil, nil, nil) -var getDescribeSnapshots* = Call_GetDescribeSnapshots_620160( +var getDescribeSnapshots* = Call_GetDescribeSnapshots_620162( name: "getDescribeSnapshots", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeSnapshots", - validator: validate_GetDescribeSnapshots_620161, base: "/", - url: url_GetDescribeSnapshots_620162, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDescribeSnapshots_620163, base: "/", + url: url_GetDescribeSnapshots_620164, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeSpotDatafeedSubscription_620221 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeSpotDatafeedSubscription_620223(protocol: Scheme; + Call_PostDescribeSpotDatafeedSubscription_620223 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeSpotDatafeedSubscription_620225(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -74847,7 +74874,7 @@ proc url_PostDescribeSpotDatafeedSubscription_620223(protocol: Scheme; else: result.path = base & route -proc validate_PostDescribeSpotDatafeedSubscription_620222(path: JsonNode; +proc validate_PostDescribeSpotDatafeedSubscription_620224(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the data feed for Spot Instances. For more information, see Spot Instance Data Feed in the Amazon EC2 User Guide for Linux Instances. ## @@ -74859,16 +74886,16 @@ proc validate_PostDescribeSpotDatafeedSubscription_620222(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620224 = query.getOrDefault("Action") - valid_620224 = validateParameter(valid_620224, JString, required = true, default = newJString( + var valid_620226 = query.getOrDefault("Action") + valid_620226 = validateParameter(valid_620226, JString, required = true, default = newJString( "DescribeSpotDatafeedSubscription")) - if valid_620224 != nil: - section.add "Action", valid_620224 - var valid_620225 = query.getOrDefault("Version") - valid_620225 = validateParameter(valid_620225, JString, required = true, + if valid_620226 != nil: + section.add "Action", valid_620226 + var valid_620227 = query.getOrDefault("Version") + valid_620227 = validateParameter(valid_620227, JString, required = true, default = newJString("2016-11-15")) - if valid_620225 != nil: - section.add "Version", valid_620225 + if valid_620227 != nil: + section.add "Version", valid_620227 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -74879,69 +74906,69 @@ proc validate_PostDescribeSpotDatafeedSubscription_620222(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620226 = header.getOrDefault("X-Amz-Signature") - valid_620226 = validateParameter(valid_620226, JString, required = false, - default = nil) - if valid_620226 != nil: - section.add "X-Amz-Signature", valid_620226 - var valid_620227 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620227 = validateParameter(valid_620227, JString, required = false, - default = nil) - if valid_620227 != nil: - section.add "X-Amz-Content-Sha256", valid_620227 - var valid_620228 = header.getOrDefault("X-Amz-Date") + var valid_620228 = header.getOrDefault("X-Amz-Signature") valid_620228 = validateParameter(valid_620228, JString, required = false, default = nil) if valid_620228 != nil: - section.add "X-Amz-Date", valid_620228 - var valid_620229 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620228 + var valid_620229 = header.getOrDefault("X-Amz-Content-Sha256") valid_620229 = validateParameter(valid_620229, JString, required = false, default = nil) if valid_620229 != nil: - section.add "X-Amz-Credential", valid_620229 - var valid_620230 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620229 + var valid_620230 = header.getOrDefault("X-Amz-Date") valid_620230 = validateParameter(valid_620230, JString, required = false, default = nil) if valid_620230 != nil: - section.add "X-Amz-Security-Token", valid_620230 - var valid_620231 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620230 + var valid_620231 = header.getOrDefault("X-Amz-Credential") valid_620231 = validateParameter(valid_620231, JString, required = false, default = nil) if valid_620231 != nil: - section.add "X-Amz-Algorithm", valid_620231 - var valid_620232 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620231 + var valid_620232 = header.getOrDefault("X-Amz-Security-Token") valid_620232 = validateParameter(valid_620232, JString, required = false, default = nil) if valid_620232 != nil: - section.add "X-Amz-SignedHeaders", valid_620232 + section.add "X-Amz-Security-Token", valid_620232 + var valid_620233 = header.getOrDefault("X-Amz-Algorithm") + valid_620233 = validateParameter(valid_620233, JString, required = false, + default = nil) + if valid_620233 != nil: + section.add "X-Amz-Algorithm", valid_620233 + var valid_620234 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620234 = validateParameter(valid_620234, JString, required = false, + default = nil) + if valid_620234 != nil: + section.add "X-Amz-SignedHeaders", valid_620234 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool ## : 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. section = newJObject() - var valid_620233 = formData.getOrDefault("DryRun") - valid_620233 = validateParameter(valid_620233, JBool, required = false, default = nil) - if valid_620233 != nil: - section.add "DryRun", valid_620233 + var valid_620235 = formData.getOrDefault("DryRun") + valid_620235 = validateParameter(valid_620235, JBool, required = false, default = nil) + if valid_620235 != nil: + section.add "DryRun", valid_620235 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620234: Call_PostDescribeSpotDatafeedSubscription_620221; +proc call*(call_620236: Call_PostDescribeSpotDatafeedSubscription_620223; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the data feed for Spot Instances. For more information, see Spot Instance Data Feed in the Amazon EC2 User Guide for Linux Instances. ## - let valid = call_620234.validator(path, query, header, formData, body) - let scheme = call_620234.pickScheme + let valid = call_620236.validator(path, query, header, formData, body) + let scheme = call_620236.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620234.url(scheme.get, call_620234.host, call_620234.base, - call_620234.route, valid.getOrDefault("path"), + let url = call_620236.url(scheme.get, call_620236.host, call_620236.base, + call_620236.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620234, url, valid) + result = atozHook(call_620236, url, valid) -proc call*(call_620235: Call_PostDescribeSpotDatafeedSubscription_620221; +proc call*(call_620237: Call_PostDescribeSpotDatafeedSubscription_620223; DryRun: bool = false; Action: string = "DescribeSpotDatafeedSubscription"; Version: string = "2016-11-15"): Recallable = ## postDescribeSpotDatafeedSubscription @@ -74950,22 +74977,22 @@ proc call*(call_620235: Call_PostDescribeSpotDatafeedSubscription_620221; ## : 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. ## Action: string (required) ## Version: string (required) - var query_620236 = newJObject() - var formData_620237 = newJObject() - add(formData_620237, "DryRun", newJBool(DryRun)) - add(query_620236, "Action", newJString(Action)) - add(query_620236, "Version", newJString(Version)) - result = call_620235.call(nil, query_620236, nil, formData_620237, nil) + var query_620238 = newJObject() + var formData_620239 = newJObject() + add(formData_620239, "DryRun", newJBool(DryRun)) + add(query_620238, "Action", newJString(Action)) + add(query_620238, "Version", newJString(Version)) + result = call_620237.call(nil, query_620238, nil, formData_620239, nil) -var postDescribeSpotDatafeedSubscription* = Call_PostDescribeSpotDatafeedSubscription_620221( +var postDescribeSpotDatafeedSubscription* = Call_PostDescribeSpotDatafeedSubscription_620223( name: "postDescribeSpotDatafeedSubscription", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeSpotDatafeedSubscription", - validator: validate_PostDescribeSpotDatafeedSubscription_620222, base: "/", - url: url_PostDescribeSpotDatafeedSubscription_620223, + validator: validate_PostDescribeSpotDatafeedSubscription_620224, base: "/", + url: url_PostDescribeSpotDatafeedSubscription_620225, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeSpotDatafeedSubscription_620205 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeSpotDatafeedSubscription_620207(protocol: Scheme; host: string; + Call_GetDescribeSpotDatafeedSubscription_620207 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeSpotDatafeedSubscription_620209(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -74975,7 +75002,7 @@ proc url_GetDescribeSpotDatafeedSubscription_620207(protocol: Scheme; host: stri else: result.path = base & route -proc validate_GetDescribeSpotDatafeedSubscription_620206(path: JsonNode; +proc validate_GetDescribeSpotDatafeedSubscription_620208(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the data feed for Spot Instances. For more information, see Spot Instance Data Feed in the Amazon EC2 User Guide for Linux Instances. ## @@ -74989,20 +75016,20 @@ proc validate_GetDescribeSpotDatafeedSubscription_620206(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620208 = query.getOrDefault("DryRun") - valid_620208 = validateParameter(valid_620208, JBool, required = false, default = nil) - if valid_620208 != nil: - section.add "DryRun", valid_620208 - var valid_620209 = query.getOrDefault("Action") - valid_620209 = validateParameter(valid_620209, JString, required = true, default = newJString( + var valid_620210 = query.getOrDefault("DryRun") + valid_620210 = validateParameter(valid_620210, JBool, required = false, default = nil) + if valid_620210 != nil: + section.add "DryRun", valid_620210 + var valid_620211 = query.getOrDefault("Action") + valid_620211 = validateParameter(valid_620211, JString, required = true, default = newJString( "DescribeSpotDatafeedSubscription")) - if valid_620209 != nil: - section.add "Action", valid_620209 - var valid_620210 = query.getOrDefault("Version") - valid_620210 = validateParameter(valid_620210, JString, required = true, + if valid_620211 != nil: + section.add "Action", valid_620211 + var valid_620212 = query.getOrDefault("Version") + valid_620212 = validateParameter(valid_620212, JString, required = true, default = newJString("2016-11-15")) - if valid_620210 != nil: - section.add "Version", valid_620210 + if valid_620212 != nil: + section.add "Version", valid_620212 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -75013,62 +75040,62 @@ proc validate_GetDescribeSpotDatafeedSubscription_620206(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620211 = header.getOrDefault("X-Amz-Signature") - valid_620211 = validateParameter(valid_620211, JString, required = false, - default = nil) - if valid_620211 != nil: - section.add "X-Amz-Signature", valid_620211 - var valid_620212 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620212 = validateParameter(valid_620212, JString, required = false, - default = nil) - if valid_620212 != nil: - section.add "X-Amz-Content-Sha256", valid_620212 - var valid_620213 = header.getOrDefault("X-Amz-Date") + var valid_620213 = header.getOrDefault("X-Amz-Signature") valid_620213 = validateParameter(valid_620213, JString, required = false, default = nil) if valid_620213 != nil: - section.add "X-Amz-Date", valid_620213 - var valid_620214 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620213 + var valid_620214 = header.getOrDefault("X-Amz-Content-Sha256") valid_620214 = validateParameter(valid_620214, JString, required = false, default = nil) if valid_620214 != nil: - section.add "X-Amz-Credential", valid_620214 - var valid_620215 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620214 + var valid_620215 = header.getOrDefault("X-Amz-Date") valid_620215 = validateParameter(valid_620215, JString, required = false, default = nil) if valid_620215 != nil: - section.add "X-Amz-Security-Token", valid_620215 - var valid_620216 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620215 + var valid_620216 = header.getOrDefault("X-Amz-Credential") valid_620216 = validateParameter(valid_620216, JString, required = false, default = nil) if valid_620216 != nil: - section.add "X-Amz-Algorithm", valid_620216 - var valid_620217 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620216 + var valid_620217 = header.getOrDefault("X-Amz-Security-Token") valid_620217 = validateParameter(valid_620217, JString, required = false, default = nil) if valid_620217 != nil: - section.add "X-Amz-SignedHeaders", valid_620217 + section.add "X-Amz-Security-Token", valid_620217 + var valid_620218 = header.getOrDefault("X-Amz-Algorithm") + valid_620218 = validateParameter(valid_620218, JString, required = false, + default = nil) + if valid_620218 != nil: + section.add "X-Amz-Algorithm", valid_620218 + var valid_620219 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620219 = validateParameter(valid_620219, JString, required = false, + default = nil) + if valid_620219 != nil: + section.add "X-Amz-SignedHeaders", valid_620219 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620218: Call_GetDescribeSpotDatafeedSubscription_620205; +proc call*(call_620220: Call_GetDescribeSpotDatafeedSubscription_620207; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the data feed for Spot Instances. For more information, see Spot Instance Data Feed in the Amazon EC2 User Guide for Linux Instances. ## - let valid = call_620218.validator(path, query, header, formData, body) - let scheme = call_620218.pickScheme + let valid = call_620220.validator(path, query, header, formData, body) + let scheme = call_620220.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620218.url(scheme.get, call_620218.host, call_620218.base, - call_620218.route, valid.getOrDefault("path"), + let url = call_620220.url(scheme.get, call_620220.host, call_620220.base, + call_620220.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620218, url, valid) + result = atozHook(call_620220, url, valid) -proc call*(call_620219: Call_GetDescribeSpotDatafeedSubscription_620205; +proc call*(call_620221: Call_GetDescribeSpotDatafeedSubscription_620207; DryRun: bool = false; Action: string = "DescribeSpotDatafeedSubscription"; Version: string = "2016-11-15"): Recallable = ## getDescribeSpotDatafeedSubscription @@ -75077,21 +75104,21 @@ proc call*(call_620219: Call_GetDescribeSpotDatafeedSubscription_620205; ## : 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. ## Action: string (required) ## Version: string (required) - var query_620220 = newJObject() - add(query_620220, "DryRun", newJBool(DryRun)) - add(query_620220, "Action", newJString(Action)) - add(query_620220, "Version", newJString(Version)) - result = call_620219.call(nil, query_620220, nil, nil, nil) + var query_620222 = newJObject() + add(query_620222, "DryRun", newJBool(DryRun)) + add(query_620222, "Action", newJString(Action)) + add(query_620222, "Version", newJString(Version)) + result = call_620221.call(nil, query_620222, nil, nil, nil) -var getDescribeSpotDatafeedSubscription* = Call_GetDescribeSpotDatafeedSubscription_620205( +var getDescribeSpotDatafeedSubscription* = Call_GetDescribeSpotDatafeedSubscription_620207( name: "getDescribeSpotDatafeedSubscription", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeSpotDatafeedSubscription", - validator: validate_GetDescribeSpotDatafeedSubscription_620206, base: "/", - url: url_GetDescribeSpotDatafeedSubscription_620207, + validator: validate_GetDescribeSpotDatafeedSubscription_620208, base: "/", + url: url_GetDescribeSpotDatafeedSubscription_620209, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeSpotFleetInstances_620257 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeSpotFleetInstances_620259(protocol: Scheme; host: string; + Call_PostDescribeSpotFleetInstances_620259 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeSpotFleetInstances_620261(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -75101,7 +75128,7 @@ proc url_PostDescribeSpotFleetInstances_620259(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeSpotFleetInstances_620258(path: JsonNode; +proc validate_PostDescribeSpotFleetInstances_620260(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the running instances for the specified Spot Fleet. ## @@ -75113,16 +75140,16 @@ proc validate_PostDescribeSpotFleetInstances_620258(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620260 = query.getOrDefault("Action") - valid_620260 = validateParameter(valid_620260, JString, required = true, default = newJString( + var valid_620262 = query.getOrDefault("Action") + valid_620262 = validateParameter(valid_620262, JString, required = true, default = newJString( "DescribeSpotFleetInstances")) - if valid_620260 != nil: - section.add "Action", valid_620260 - var valid_620261 = query.getOrDefault("Version") - valid_620261 = validateParameter(valid_620261, JString, required = true, + if valid_620262 != nil: + section.add "Action", valid_620262 + var valid_620263 = query.getOrDefault("Version") + valid_620263 = validateParameter(valid_620263, JString, required = true, default = newJString("2016-11-15")) - if valid_620261 != nil: - section.add "Version", valid_620261 + if valid_620263 != nil: + section.add "Version", valid_620263 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -75133,41 +75160,41 @@ proc validate_PostDescribeSpotFleetInstances_620258(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620262 = header.getOrDefault("X-Amz-Signature") - valid_620262 = validateParameter(valid_620262, JString, required = false, - default = nil) - if valid_620262 != nil: - section.add "X-Amz-Signature", valid_620262 - var valid_620263 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620263 = validateParameter(valid_620263, JString, required = false, - default = nil) - if valid_620263 != nil: - section.add "X-Amz-Content-Sha256", valid_620263 - var valid_620264 = header.getOrDefault("X-Amz-Date") + var valid_620264 = header.getOrDefault("X-Amz-Signature") valid_620264 = validateParameter(valid_620264, JString, required = false, default = nil) if valid_620264 != nil: - section.add "X-Amz-Date", valid_620264 - var valid_620265 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620264 + var valid_620265 = header.getOrDefault("X-Amz-Content-Sha256") valid_620265 = validateParameter(valid_620265, JString, required = false, default = nil) if valid_620265 != nil: - section.add "X-Amz-Credential", valid_620265 - var valid_620266 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620265 + var valid_620266 = header.getOrDefault("X-Amz-Date") valid_620266 = validateParameter(valid_620266, JString, required = false, default = nil) if valid_620266 != nil: - section.add "X-Amz-Security-Token", valid_620266 - var valid_620267 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620266 + var valid_620267 = header.getOrDefault("X-Amz-Credential") valid_620267 = validateParameter(valid_620267, JString, required = false, default = nil) if valid_620267 != nil: - section.add "X-Amz-Algorithm", valid_620267 - var valid_620268 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620267 + var valid_620268 = header.getOrDefault("X-Amz-Security-Token") valid_620268 = validateParameter(valid_620268, JString, required = false, default = nil) if valid_620268 != nil: - section.add "X-Amz-SignedHeaders", valid_620268 + section.add "X-Amz-Security-Token", valid_620268 + var valid_620269 = header.getOrDefault("X-Amz-Algorithm") + valid_620269 = validateParameter(valid_620269, JString, required = false, + default = nil) + if valid_620269 != nil: + section.add "X-Amz-Algorithm", valid_620269 + var valid_620270 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620270 = validateParameter(valid_620270, JString, required = false, + default = nil) + if valid_620270 != nil: + section.add "X-Amz-SignedHeaders", valid_620270 result.add "header", section ## parameters in `formData` object: ## SpotFleetRequestId: JString (required) @@ -75180,42 +75207,42 @@ proc validate_PostDescribeSpotFleetInstances_620258(path: JsonNode; ## : The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned NextToken value. section = newJObject() assert formData != nil, "formData argument is necessary due to required `SpotFleetRequestId` field" - var valid_620269 = formData.getOrDefault("SpotFleetRequestId") - valid_620269 = validateParameter(valid_620269, JString, required = true, - default = nil) - if valid_620269 != nil: - section.add "SpotFleetRequestId", valid_620269 - var valid_620270 = formData.getOrDefault("NextToken") - valid_620270 = validateParameter(valid_620270, JString, required = false, + var valid_620271 = formData.getOrDefault("SpotFleetRequestId") + valid_620271 = validateParameter(valid_620271, JString, required = true, default = nil) - if valid_620270 != nil: - section.add "NextToken", valid_620270 - var valid_620271 = formData.getOrDefault("DryRun") - valid_620271 = validateParameter(valid_620271, JBool, required = false, default = nil) if valid_620271 != nil: - section.add "DryRun", valid_620271 - var valid_620272 = formData.getOrDefault("MaxResults") - valid_620272 = validateParameter(valid_620272, JInt, required = false, default = nil) + section.add "SpotFleetRequestId", valid_620271 + var valid_620272 = formData.getOrDefault("NextToken") + valid_620272 = validateParameter(valid_620272, JString, required = false, + default = nil) if valid_620272 != nil: - section.add "MaxResults", valid_620272 + section.add "NextToken", valid_620272 + var valid_620273 = formData.getOrDefault("DryRun") + valid_620273 = validateParameter(valid_620273, JBool, required = false, default = nil) + if valid_620273 != nil: + section.add "DryRun", valid_620273 + var valid_620274 = formData.getOrDefault("MaxResults") + valid_620274 = validateParameter(valid_620274, JInt, required = false, default = nil) + if valid_620274 != nil: + section.add "MaxResults", valid_620274 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620273: Call_PostDescribeSpotFleetInstances_620257; path: JsonNode; +proc call*(call_620275: Call_PostDescribeSpotFleetInstances_620259; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the running instances for the specified Spot Fleet. ## - let valid = call_620273.validator(path, query, header, formData, body) - let scheme = call_620273.pickScheme + let valid = call_620275.validator(path, query, header, formData, body) + let scheme = call_620275.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620273.url(scheme.get, call_620273.host, call_620273.base, - call_620273.route, valid.getOrDefault("path"), + let url = call_620275.url(scheme.get, call_620275.host, call_620275.base, + call_620275.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620273, url, valid) + result = atozHook(call_620275, url, valid) -proc call*(call_620274: Call_PostDescribeSpotFleetInstances_620257; +proc call*(call_620276: Call_PostDescribeSpotFleetInstances_620259; SpotFleetRequestId: string; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeSpotFleetInstances"; Version: string = "2016-11-15"; MaxResults: int = 0): Recallable = @@ -75231,25 +75258,25 @@ proc call*(call_620274: Call_PostDescribeSpotFleetInstances_620257; ## Version: string (required) ## MaxResults: int ## : The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned NextToken value. - var query_620275 = newJObject() - var formData_620276 = newJObject() - add(formData_620276, "SpotFleetRequestId", newJString(SpotFleetRequestId)) - add(formData_620276, "NextToken", newJString(NextToken)) - add(formData_620276, "DryRun", newJBool(DryRun)) - add(query_620275, "Action", newJString(Action)) - add(query_620275, "Version", newJString(Version)) - add(formData_620276, "MaxResults", newJInt(MaxResults)) - result = call_620274.call(nil, query_620275, nil, formData_620276, nil) - -var postDescribeSpotFleetInstances* = Call_PostDescribeSpotFleetInstances_620257( + var query_620277 = newJObject() + var formData_620278 = newJObject() + add(formData_620278, "SpotFleetRequestId", newJString(SpotFleetRequestId)) + add(formData_620278, "NextToken", newJString(NextToken)) + add(formData_620278, "DryRun", newJBool(DryRun)) + add(query_620277, "Action", newJString(Action)) + add(query_620277, "Version", newJString(Version)) + add(formData_620278, "MaxResults", newJInt(MaxResults)) + result = call_620276.call(nil, query_620277, nil, formData_620278, nil) + +var postDescribeSpotFleetInstances* = Call_PostDescribeSpotFleetInstances_620259( name: "postDescribeSpotFleetInstances", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeSpotFleetInstances", - validator: validate_PostDescribeSpotFleetInstances_620258, base: "/", - url: url_PostDescribeSpotFleetInstances_620259, + validator: validate_PostDescribeSpotFleetInstances_620260, base: "/", + url: url_PostDescribeSpotFleetInstances_620261, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeSpotFleetInstances_620238 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeSpotFleetInstances_620240(protocol: Scheme; host: string; + Call_GetDescribeSpotFleetInstances_620240 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeSpotFleetInstances_620242(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -75259,7 +75286,7 @@ proc url_GetDescribeSpotFleetInstances_620240(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeSpotFleetInstances_620239(path: JsonNode; query: JsonNode; +proc validate_GetDescribeSpotFleetInstances_620241(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the running instances for the specified Spot Fleet. ## @@ -75279,34 +75306,34 @@ proc validate_GetDescribeSpotFleetInstances_620239(path: JsonNode; query: JsonNo ## : The ID of the Spot Fleet request. ## Version: JString (required) section = newJObject() - var valid_620241 = query.getOrDefault("MaxResults") - valid_620241 = validateParameter(valid_620241, JInt, required = false, default = nil) - if valid_620241 != nil: - section.add "MaxResults", valid_620241 - var valid_620242 = query.getOrDefault("DryRun") - valid_620242 = validateParameter(valid_620242, JBool, required = false, default = nil) - if valid_620242 != nil: - section.add "DryRun", valid_620242 - var valid_620243 = query.getOrDefault("NextToken") - valid_620243 = validateParameter(valid_620243, JString, required = false, - default = nil) + var valid_620243 = query.getOrDefault("MaxResults") + valid_620243 = validateParameter(valid_620243, JInt, required = false, default = nil) if valid_620243 != nil: - section.add "NextToken", valid_620243 - var valid_620244 = query.getOrDefault("Action") - valid_620244 = validateParameter(valid_620244, JString, required = true, default = newJString( - "DescribeSpotFleetInstances")) + section.add "MaxResults", valid_620243 + var valid_620244 = query.getOrDefault("DryRun") + valid_620244 = validateParameter(valid_620244, JBool, required = false, default = nil) if valid_620244 != nil: - section.add "Action", valid_620244 - var valid_620245 = query.getOrDefault("SpotFleetRequestId") - valid_620245 = validateParameter(valid_620245, JString, required = true, + section.add "DryRun", valid_620244 + var valid_620245 = query.getOrDefault("NextToken") + valid_620245 = validateParameter(valid_620245, JString, required = false, default = nil) if valid_620245 != nil: - section.add "SpotFleetRequestId", valid_620245 - var valid_620246 = query.getOrDefault("Version") - valid_620246 = validateParameter(valid_620246, JString, required = true, - default = newJString("2016-11-15")) + section.add "NextToken", valid_620245 + var valid_620246 = query.getOrDefault("Action") + valid_620246 = validateParameter(valid_620246, JString, required = true, default = newJString( + "DescribeSpotFleetInstances")) if valid_620246 != nil: - section.add "Version", valid_620246 + section.add "Action", valid_620246 + var valid_620247 = query.getOrDefault("SpotFleetRequestId") + valid_620247 = validateParameter(valid_620247, JString, required = true, + default = nil) + if valid_620247 != nil: + section.add "SpotFleetRequestId", valid_620247 + var valid_620248 = query.getOrDefault("Version") + valid_620248 = validateParameter(valid_620248, JString, required = true, + default = newJString("2016-11-15")) + if valid_620248 != nil: + section.add "Version", valid_620248 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -75317,61 +75344,61 @@ proc validate_GetDescribeSpotFleetInstances_620239(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620247 = header.getOrDefault("X-Amz-Signature") - valid_620247 = validateParameter(valid_620247, JString, required = false, - default = nil) - if valid_620247 != nil: - section.add "X-Amz-Signature", valid_620247 - var valid_620248 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620248 = validateParameter(valid_620248, JString, required = false, - default = nil) - if valid_620248 != nil: - section.add "X-Amz-Content-Sha256", valid_620248 - var valid_620249 = header.getOrDefault("X-Amz-Date") + var valid_620249 = header.getOrDefault("X-Amz-Signature") valid_620249 = validateParameter(valid_620249, JString, required = false, default = nil) if valid_620249 != nil: - section.add "X-Amz-Date", valid_620249 - var valid_620250 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620249 + var valid_620250 = header.getOrDefault("X-Amz-Content-Sha256") valid_620250 = validateParameter(valid_620250, JString, required = false, default = nil) if valid_620250 != nil: - section.add "X-Amz-Credential", valid_620250 - var valid_620251 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620250 + var valid_620251 = header.getOrDefault("X-Amz-Date") valid_620251 = validateParameter(valid_620251, JString, required = false, default = nil) if valid_620251 != nil: - section.add "X-Amz-Security-Token", valid_620251 - var valid_620252 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620251 + var valid_620252 = header.getOrDefault("X-Amz-Credential") valid_620252 = validateParameter(valid_620252, JString, required = false, default = nil) if valid_620252 != nil: - section.add "X-Amz-Algorithm", valid_620252 - var valid_620253 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620252 + var valid_620253 = header.getOrDefault("X-Amz-Security-Token") valid_620253 = validateParameter(valid_620253, JString, required = false, default = nil) if valid_620253 != nil: - section.add "X-Amz-SignedHeaders", valid_620253 + section.add "X-Amz-Security-Token", valid_620253 + var valid_620254 = header.getOrDefault("X-Amz-Algorithm") + valid_620254 = validateParameter(valid_620254, JString, required = false, + default = nil) + if valid_620254 != nil: + section.add "X-Amz-Algorithm", valid_620254 + var valid_620255 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620255 = validateParameter(valid_620255, JString, required = false, + default = nil) + if valid_620255 != nil: + section.add "X-Amz-SignedHeaders", valid_620255 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620254: Call_GetDescribeSpotFleetInstances_620238; path: JsonNode; +proc call*(call_620256: Call_GetDescribeSpotFleetInstances_620240; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the running instances for the specified Spot Fleet. ## - let valid = call_620254.validator(path, query, header, formData, body) - let scheme = call_620254.pickScheme + let valid = call_620256.validator(path, query, header, formData, body) + let scheme = call_620256.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620254.url(scheme.get, call_620254.host, call_620254.base, - call_620254.route, valid.getOrDefault("path"), + let url = call_620256.url(scheme.get, call_620256.host, call_620256.base, + call_620256.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620254, url, valid) + result = atozHook(call_620256, url, valid) -proc call*(call_620255: Call_GetDescribeSpotFleetInstances_620238; +proc call*(call_620257: Call_GetDescribeSpotFleetInstances_620240; SpotFleetRequestId: string; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Action: string = "DescribeSpotFleetInstances"; Version: string = "2016-11-15"): Recallable = @@ -75387,24 +75414,24 @@ proc call*(call_620255: Call_GetDescribeSpotFleetInstances_620238; ## SpotFleetRequestId: string (required) ## : The ID of the Spot Fleet request. ## Version: string (required) - var query_620256 = newJObject() - add(query_620256, "MaxResults", newJInt(MaxResults)) - add(query_620256, "DryRun", newJBool(DryRun)) - add(query_620256, "NextToken", newJString(NextToken)) - add(query_620256, "Action", newJString(Action)) - add(query_620256, "SpotFleetRequestId", newJString(SpotFleetRequestId)) - add(query_620256, "Version", newJString(Version)) - result = call_620255.call(nil, query_620256, nil, nil, nil) + var query_620258 = newJObject() + add(query_620258, "MaxResults", newJInt(MaxResults)) + add(query_620258, "DryRun", newJBool(DryRun)) + add(query_620258, "NextToken", newJString(NextToken)) + add(query_620258, "Action", newJString(Action)) + add(query_620258, "SpotFleetRequestId", newJString(SpotFleetRequestId)) + add(query_620258, "Version", newJString(Version)) + result = call_620257.call(nil, query_620258, nil, nil, nil) -var getDescribeSpotFleetInstances* = Call_GetDescribeSpotFleetInstances_620238( +var getDescribeSpotFleetInstances* = Call_GetDescribeSpotFleetInstances_620240( name: "getDescribeSpotFleetInstances", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeSpotFleetInstances", - validator: validate_GetDescribeSpotFleetInstances_620239, base: "/", - url: url_GetDescribeSpotFleetInstances_620240, + validator: validate_GetDescribeSpotFleetInstances_620241, base: "/", + url: url_GetDescribeSpotFleetInstances_620242, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeSpotFleetRequestHistory_620298 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeSpotFleetRequestHistory_620300(protocol: Scheme; host: string; + Call_PostDescribeSpotFleetRequestHistory_620300 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeSpotFleetRequestHistory_620302(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -75414,7 +75441,7 @@ proc url_PostDescribeSpotFleetRequestHistory_620300(protocol: Scheme; host: stri else: result.path = base & route -proc validate_PostDescribeSpotFleetRequestHistory_620299(path: JsonNode; +proc validate_PostDescribeSpotFleetRequestHistory_620301(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the events for the specified Spot Fleet request during the specified time.

Spot Fleet events are delayed by up to 30 seconds before they can be described. This ensures that you can query by the last evaluated time and not miss a recorded event. Spot Fleet events are available for 48 hours.

## @@ -75426,16 +75453,16 @@ proc validate_PostDescribeSpotFleetRequestHistory_620299(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620301 = query.getOrDefault("Action") - valid_620301 = validateParameter(valid_620301, JString, required = true, default = newJString( + var valid_620303 = query.getOrDefault("Action") + valid_620303 = validateParameter(valid_620303, JString, required = true, default = newJString( "DescribeSpotFleetRequestHistory")) - if valid_620301 != nil: - section.add "Action", valid_620301 - var valid_620302 = query.getOrDefault("Version") - valid_620302 = validateParameter(valid_620302, JString, required = true, + if valid_620303 != nil: + section.add "Action", valid_620303 + var valid_620304 = query.getOrDefault("Version") + valid_620304 = validateParameter(valid_620304, JString, required = true, default = newJString("2016-11-15")) - if valid_620302 != nil: - section.add "Version", valid_620302 + if valid_620304 != nil: + section.add "Version", valid_620304 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -75446,41 +75473,41 @@ proc validate_PostDescribeSpotFleetRequestHistory_620299(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620303 = header.getOrDefault("X-Amz-Signature") - valid_620303 = validateParameter(valid_620303, JString, required = false, - default = nil) - if valid_620303 != nil: - section.add "X-Amz-Signature", valid_620303 - var valid_620304 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620304 = validateParameter(valid_620304, JString, required = false, - default = nil) - if valid_620304 != nil: - section.add "X-Amz-Content-Sha256", valid_620304 - var valid_620305 = header.getOrDefault("X-Amz-Date") + var valid_620305 = header.getOrDefault("X-Amz-Signature") valid_620305 = validateParameter(valid_620305, JString, required = false, default = nil) if valid_620305 != nil: - section.add "X-Amz-Date", valid_620305 - var valid_620306 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620305 + var valid_620306 = header.getOrDefault("X-Amz-Content-Sha256") valid_620306 = validateParameter(valid_620306, JString, required = false, default = nil) if valid_620306 != nil: - section.add "X-Amz-Credential", valid_620306 - var valid_620307 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620306 + var valid_620307 = header.getOrDefault("X-Amz-Date") valid_620307 = validateParameter(valid_620307, JString, required = false, default = nil) if valid_620307 != nil: - section.add "X-Amz-Security-Token", valid_620307 - var valid_620308 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620307 + var valid_620308 = header.getOrDefault("X-Amz-Credential") valid_620308 = validateParameter(valid_620308, JString, required = false, default = nil) if valid_620308 != nil: - section.add "X-Amz-Algorithm", valid_620308 - var valid_620309 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620308 + var valid_620309 = header.getOrDefault("X-Amz-Security-Token") valid_620309 = validateParameter(valid_620309, JString, required = false, default = nil) if valid_620309 != nil: - section.add "X-Amz-SignedHeaders", valid_620309 + section.add "X-Amz-Security-Token", valid_620309 + var valid_620310 = header.getOrDefault("X-Amz-Algorithm") + valid_620310 = validateParameter(valid_620310, JString, required = false, + default = nil) + if valid_620310 != nil: + section.add "X-Amz-Algorithm", valid_620310 + var valid_620311 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620311 = validateParameter(valid_620311, JString, required = false, + default = nil) + if valid_620311 != nil: + section.add "X-Amz-SignedHeaders", valid_620311 result.add "header", section ## parameters in `formData` object: ## SpotFleetRequestId: JString (required) @@ -75497,53 +75524,53 @@ proc validate_PostDescribeSpotFleetRequestHistory_620299(path: JsonNode; ## : The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned NextToken value. section = newJObject() assert formData != nil, "formData argument is necessary due to required `SpotFleetRequestId` field" - var valid_620310 = formData.getOrDefault("SpotFleetRequestId") - valid_620310 = validateParameter(valid_620310, JString, required = true, - default = nil) - if valid_620310 != nil: - section.add "SpotFleetRequestId", valid_620310 - var valid_620311 = formData.getOrDefault("NextToken") - valid_620311 = validateParameter(valid_620311, JString, required = false, - default = nil) - if valid_620311 != nil: - section.add "NextToken", valid_620311 - var valid_620312 = formData.getOrDefault("StartTime") + var valid_620312 = formData.getOrDefault("SpotFleetRequestId") valid_620312 = validateParameter(valid_620312, JString, required = true, default = nil) if valid_620312 != nil: - section.add "StartTime", valid_620312 - var valid_620313 = formData.getOrDefault("DryRun") - valid_620313 = validateParameter(valid_620313, JBool, required = false, default = nil) + section.add "SpotFleetRequestId", valid_620312 + var valid_620313 = formData.getOrDefault("NextToken") + valid_620313 = validateParameter(valid_620313, JString, required = false, + default = nil) if valid_620313 != nil: - section.add "DryRun", valid_620313 - var valid_620314 = formData.getOrDefault("EventType") - valid_620314 = validateParameter(valid_620314, JString, required = false, - default = newJString("instanceChange")) + section.add "NextToken", valid_620313 + var valid_620314 = formData.getOrDefault("StartTime") + valid_620314 = validateParameter(valid_620314, JString, required = true, + default = nil) if valid_620314 != nil: - section.add "EventType", valid_620314 - var valid_620315 = formData.getOrDefault("MaxResults") - valid_620315 = validateParameter(valid_620315, JInt, required = false, default = nil) + section.add "StartTime", valid_620314 + var valid_620315 = formData.getOrDefault("DryRun") + valid_620315 = validateParameter(valid_620315, JBool, required = false, default = nil) if valid_620315 != nil: - section.add "MaxResults", valid_620315 + section.add "DryRun", valid_620315 + var valid_620316 = formData.getOrDefault("EventType") + valid_620316 = validateParameter(valid_620316, JString, required = false, + default = newJString("instanceChange")) + if valid_620316 != nil: + section.add "EventType", valid_620316 + var valid_620317 = formData.getOrDefault("MaxResults") + valid_620317 = validateParameter(valid_620317, JInt, required = false, default = nil) + if valid_620317 != nil: + section.add "MaxResults", valid_620317 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620316: Call_PostDescribeSpotFleetRequestHistory_620298; +proc call*(call_620318: Call_PostDescribeSpotFleetRequestHistory_620300; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the events for the specified Spot Fleet request during the specified time.

Spot Fleet events are delayed by up to 30 seconds before they can be described. This ensures that you can query by the last evaluated time and not miss a recorded event. Spot Fleet events are available for 48 hours.

## - let valid = call_620316.validator(path, query, header, formData, body) - let scheme = call_620316.pickScheme + let valid = call_620318.validator(path, query, header, formData, body) + let scheme = call_620318.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620316.url(scheme.get, call_620316.host, call_620316.base, - call_620316.route, valid.getOrDefault("path"), + let url = call_620318.url(scheme.get, call_620318.host, call_620318.base, + call_620318.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620316, url, valid) + result = atozHook(call_620318, url, valid) -proc call*(call_620317: Call_PostDescribeSpotFleetRequestHistory_620298; +proc call*(call_620319: Call_PostDescribeSpotFleetRequestHistory_620300; SpotFleetRequestId: string; StartTime: string; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeSpotFleetRequestHistory"; EventType: string = "instanceChange"; Version: string = "2016-11-15"; @@ -75564,27 +75591,27 @@ proc call*(call_620317: Call_PostDescribeSpotFleetRequestHistory_620298; ## Version: string (required) ## MaxResults: int ## : The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned NextToken value. - var query_620318 = newJObject() - var formData_620319 = newJObject() - add(formData_620319, "SpotFleetRequestId", newJString(SpotFleetRequestId)) - add(formData_620319, "NextToken", newJString(NextToken)) - add(formData_620319, "StartTime", newJString(StartTime)) - add(formData_620319, "DryRun", newJBool(DryRun)) - add(query_620318, "Action", newJString(Action)) - add(formData_620319, "EventType", newJString(EventType)) - add(query_620318, "Version", newJString(Version)) - add(formData_620319, "MaxResults", newJInt(MaxResults)) - result = call_620317.call(nil, query_620318, nil, formData_620319, nil) - -var postDescribeSpotFleetRequestHistory* = Call_PostDescribeSpotFleetRequestHistory_620298( + var query_620320 = newJObject() + var formData_620321 = newJObject() + add(formData_620321, "SpotFleetRequestId", newJString(SpotFleetRequestId)) + add(formData_620321, "NextToken", newJString(NextToken)) + add(formData_620321, "StartTime", newJString(StartTime)) + add(formData_620321, "DryRun", newJBool(DryRun)) + add(query_620320, "Action", newJString(Action)) + add(formData_620321, "EventType", newJString(EventType)) + add(query_620320, "Version", newJString(Version)) + add(formData_620321, "MaxResults", newJInt(MaxResults)) + result = call_620319.call(nil, query_620320, nil, formData_620321, nil) + +var postDescribeSpotFleetRequestHistory* = Call_PostDescribeSpotFleetRequestHistory_620300( name: "postDescribeSpotFleetRequestHistory", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeSpotFleetRequestHistory", - validator: validate_PostDescribeSpotFleetRequestHistory_620299, base: "/", - url: url_PostDescribeSpotFleetRequestHistory_620300, + validator: validate_PostDescribeSpotFleetRequestHistory_620301, base: "/", + url: url_PostDescribeSpotFleetRequestHistory_620302, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeSpotFleetRequestHistory_620277 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeSpotFleetRequestHistory_620279(protocol: Scheme; host: string; + Call_GetDescribeSpotFleetRequestHistory_620279 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeSpotFleetRequestHistory_620281(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -75594,7 +75621,7 @@ proc url_GetDescribeSpotFleetRequestHistory_620279(protocol: Scheme; host: strin else: result.path = base & route -proc validate_GetDescribeSpotFleetRequestHistory_620278(path: JsonNode; +proc validate_GetDescribeSpotFleetRequestHistory_620280(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the events for the specified Spot Fleet request during the specified time.

Spot Fleet events are delayed by up to 30 seconds before they can be described. This ensures that you can query by the last evaluated time and not miss a recorded event. Spot Fleet events are available for 48 hours.

## @@ -75618,44 +75645,44 @@ proc validate_GetDescribeSpotFleetRequestHistory_620278(path: JsonNode; ## : The ID of the Spot Fleet request. ## Version: JString (required) section = newJObject() - var valid_620280 = query.getOrDefault("MaxResults") - valid_620280 = validateParameter(valid_620280, JInt, required = false, default = nil) - if valid_620280 != nil: - section.add "MaxResults", valid_620280 - var valid_620281 = query.getOrDefault("EventType") - valid_620281 = validateParameter(valid_620281, JString, required = false, - default = newJString("instanceChange")) - if valid_620281 != nil: - section.add "EventType", valid_620281 - var valid_620282 = query.getOrDefault("DryRun") - valid_620282 = validateParameter(valid_620282, JBool, required = false, default = nil) + var valid_620282 = query.getOrDefault("MaxResults") + valid_620282 = validateParameter(valid_620282, JInt, required = false, default = nil) if valid_620282 != nil: - section.add "DryRun", valid_620282 - var valid_620283 = query.getOrDefault("NextToken") + section.add "MaxResults", valid_620282 + var valid_620283 = query.getOrDefault("EventType") valid_620283 = validateParameter(valid_620283, JString, required = false, - default = nil) + default = newJString("instanceChange")) if valid_620283 != nil: - section.add "NextToken", valid_620283 - var valid_620284 = query.getOrDefault("Action") - valid_620284 = validateParameter(valid_620284, JString, required = true, default = newJString( - "DescribeSpotFleetRequestHistory")) + section.add "EventType", valid_620283 + var valid_620284 = query.getOrDefault("DryRun") + valid_620284 = validateParameter(valid_620284, JBool, required = false, default = nil) if valid_620284 != nil: - section.add "Action", valid_620284 - var valid_620285 = query.getOrDefault("StartTime") - valid_620285 = validateParameter(valid_620285, JString, required = true, + section.add "DryRun", valid_620284 + var valid_620285 = query.getOrDefault("NextToken") + valid_620285 = validateParameter(valid_620285, JString, required = false, default = nil) if valid_620285 != nil: - section.add "StartTime", valid_620285 - var valid_620286 = query.getOrDefault("SpotFleetRequestId") - valid_620286 = validateParameter(valid_620286, JString, required = true, - default = nil) + section.add "NextToken", valid_620285 + var valid_620286 = query.getOrDefault("Action") + valid_620286 = validateParameter(valid_620286, JString, required = true, default = newJString( + "DescribeSpotFleetRequestHistory")) if valid_620286 != nil: - section.add "SpotFleetRequestId", valid_620286 - var valid_620287 = query.getOrDefault("Version") + section.add "Action", valid_620286 + var valid_620287 = query.getOrDefault("StartTime") valid_620287 = validateParameter(valid_620287, JString, required = true, - default = newJString("2016-11-15")) + default = nil) if valid_620287 != nil: - section.add "Version", valid_620287 + section.add "StartTime", valid_620287 + var valid_620288 = query.getOrDefault("SpotFleetRequestId") + valid_620288 = validateParameter(valid_620288, JString, required = true, + default = nil) + if valid_620288 != nil: + section.add "SpotFleetRequestId", valid_620288 + var valid_620289 = query.getOrDefault("Version") + valid_620289 = validateParameter(valid_620289, JString, required = true, + default = newJString("2016-11-15")) + if valid_620289 != nil: + section.add "Version", valid_620289 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -75666,62 +75693,62 @@ proc validate_GetDescribeSpotFleetRequestHistory_620278(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620288 = header.getOrDefault("X-Amz-Signature") - valid_620288 = validateParameter(valid_620288, JString, required = false, - default = nil) - if valid_620288 != nil: - section.add "X-Amz-Signature", valid_620288 - var valid_620289 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620289 = validateParameter(valid_620289, JString, required = false, - default = nil) - if valid_620289 != nil: - section.add "X-Amz-Content-Sha256", valid_620289 - var valid_620290 = header.getOrDefault("X-Amz-Date") + var valid_620290 = header.getOrDefault("X-Amz-Signature") valid_620290 = validateParameter(valid_620290, JString, required = false, default = nil) if valid_620290 != nil: - section.add "X-Amz-Date", valid_620290 - var valid_620291 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620290 + var valid_620291 = header.getOrDefault("X-Amz-Content-Sha256") valid_620291 = validateParameter(valid_620291, JString, required = false, default = nil) if valid_620291 != nil: - section.add "X-Amz-Credential", valid_620291 - var valid_620292 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620291 + var valid_620292 = header.getOrDefault("X-Amz-Date") valid_620292 = validateParameter(valid_620292, JString, required = false, default = nil) if valid_620292 != nil: - section.add "X-Amz-Security-Token", valid_620292 - var valid_620293 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620292 + var valid_620293 = header.getOrDefault("X-Amz-Credential") valid_620293 = validateParameter(valid_620293, JString, required = false, default = nil) if valid_620293 != nil: - section.add "X-Amz-Algorithm", valid_620293 - var valid_620294 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620293 + var valid_620294 = header.getOrDefault("X-Amz-Security-Token") valid_620294 = validateParameter(valid_620294, JString, required = false, default = nil) if valid_620294 != nil: - section.add "X-Amz-SignedHeaders", valid_620294 + section.add "X-Amz-Security-Token", valid_620294 + var valid_620295 = header.getOrDefault("X-Amz-Algorithm") + valid_620295 = validateParameter(valid_620295, JString, required = false, + default = nil) + if valid_620295 != nil: + section.add "X-Amz-Algorithm", valid_620295 + var valid_620296 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620296 = validateParameter(valid_620296, JString, required = false, + default = nil) + if valid_620296 != nil: + section.add "X-Amz-SignedHeaders", valid_620296 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620295: Call_GetDescribeSpotFleetRequestHistory_620277; +proc call*(call_620297: Call_GetDescribeSpotFleetRequestHistory_620279; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the events for the specified Spot Fleet request during the specified time.

Spot Fleet events are delayed by up to 30 seconds before they can be described. This ensures that you can query by the last evaluated time and not miss a recorded event. Spot Fleet events are available for 48 hours.

## - let valid = call_620295.validator(path, query, header, formData, body) - let scheme = call_620295.pickScheme + let valid = call_620297.validator(path, query, header, formData, body) + let scheme = call_620297.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620295.url(scheme.get, call_620295.host, call_620295.base, - call_620295.route, valid.getOrDefault("path"), + let url = call_620297.url(scheme.get, call_620297.host, call_620297.base, + call_620297.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620295, url, valid) + result = atozHook(call_620297, url, valid) -proc call*(call_620296: Call_GetDescribeSpotFleetRequestHistory_620277; +proc call*(call_620298: Call_GetDescribeSpotFleetRequestHistory_620279; StartTime: string; SpotFleetRequestId: string; MaxResults: int = 0; EventType: string = "instanceChange"; DryRun: bool = false; NextToken: string = ""; @@ -75743,26 +75770,26 @@ proc call*(call_620296: Call_GetDescribeSpotFleetRequestHistory_620277; ## SpotFleetRequestId: string (required) ## : The ID of the Spot Fleet request. ## Version: string (required) - var query_620297 = newJObject() - add(query_620297, "MaxResults", newJInt(MaxResults)) - add(query_620297, "EventType", newJString(EventType)) - add(query_620297, "DryRun", newJBool(DryRun)) - add(query_620297, "NextToken", newJString(NextToken)) - add(query_620297, "Action", newJString(Action)) - add(query_620297, "StartTime", newJString(StartTime)) - add(query_620297, "SpotFleetRequestId", newJString(SpotFleetRequestId)) - add(query_620297, "Version", newJString(Version)) - result = call_620296.call(nil, query_620297, nil, nil, nil) - -var getDescribeSpotFleetRequestHistory* = Call_GetDescribeSpotFleetRequestHistory_620277( + var query_620299 = newJObject() + add(query_620299, "MaxResults", newJInt(MaxResults)) + add(query_620299, "EventType", newJString(EventType)) + add(query_620299, "DryRun", newJBool(DryRun)) + add(query_620299, "NextToken", newJString(NextToken)) + add(query_620299, "Action", newJString(Action)) + add(query_620299, "StartTime", newJString(StartTime)) + add(query_620299, "SpotFleetRequestId", newJString(SpotFleetRequestId)) + add(query_620299, "Version", newJString(Version)) + result = call_620298.call(nil, query_620299, nil, nil, nil) + +var getDescribeSpotFleetRequestHistory* = Call_GetDescribeSpotFleetRequestHistory_620279( name: "getDescribeSpotFleetRequestHistory", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeSpotFleetRequestHistory", - validator: validate_GetDescribeSpotFleetRequestHistory_620278, base: "/", - url: url_GetDescribeSpotFleetRequestHistory_620279, + validator: validate_GetDescribeSpotFleetRequestHistory_620280, base: "/", + url: url_GetDescribeSpotFleetRequestHistory_620281, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeSpotFleetRequests_620339 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeSpotFleetRequests_620341(protocol: Scheme; host: string; + Call_PostDescribeSpotFleetRequests_620341 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeSpotFleetRequests_620343(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -75772,7 +75799,7 @@ proc url_PostDescribeSpotFleetRequests_620341(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeSpotFleetRequests_620340(path: JsonNode; query: JsonNode; +proc validate_PostDescribeSpotFleetRequests_620342(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes your Spot Fleet requests.

Spot Fleet requests are deleted 48 hours after they are canceled and their instances are terminated.

## @@ -75784,16 +75811,16 @@ proc validate_PostDescribeSpotFleetRequests_620340(path: JsonNode; query: JsonNo ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620342 = query.getOrDefault("Action") - valid_620342 = validateParameter(valid_620342, JString, required = true, default = newJString( + var valid_620344 = query.getOrDefault("Action") + valid_620344 = validateParameter(valid_620344, JString, required = true, default = newJString( "DescribeSpotFleetRequests")) - if valid_620342 != nil: - section.add "Action", valid_620342 - var valid_620343 = query.getOrDefault("Version") - valid_620343 = validateParameter(valid_620343, JString, required = true, + if valid_620344 != nil: + section.add "Action", valid_620344 + var valid_620345 = query.getOrDefault("Version") + valid_620345 = validateParameter(valid_620345, JString, required = true, default = newJString("2016-11-15")) - if valid_620343 != nil: - section.add "Version", valid_620343 + if valid_620345 != nil: + section.add "Version", valid_620345 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -75804,41 +75831,41 @@ proc validate_PostDescribeSpotFleetRequests_620340(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620344 = header.getOrDefault("X-Amz-Signature") - valid_620344 = validateParameter(valid_620344, JString, required = false, - default = nil) - if valid_620344 != nil: - section.add "X-Amz-Signature", valid_620344 - var valid_620345 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620345 = validateParameter(valid_620345, JString, required = false, - default = nil) - if valid_620345 != nil: - section.add "X-Amz-Content-Sha256", valid_620345 - var valid_620346 = header.getOrDefault("X-Amz-Date") + var valid_620346 = header.getOrDefault("X-Amz-Signature") valid_620346 = validateParameter(valid_620346, JString, required = false, default = nil) if valid_620346 != nil: - section.add "X-Amz-Date", valid_620346 - var valid_620347 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620346 + var valid_620347 = header.getOrDefault("X-Amz-Content-Sha256") valid_620347 = validateParameter(valid_620347, JString, required = false, default = nil) if valid_620347 != nil: - section.add "X-Amz-Credential", valid_620347 - var valid_620348 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620347 + var valid_620348 = header.getOrDefault("X-Amz-Date") valid_620348 = validateParameter(valid_620348, JString, required = false, default = nil) if valid_620348 != nil: - section.add "X-Amz-Security-Token", valid_620348 - var valid_620349 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620348 + var valid_620349 = header.getOrDefault("X-Amz-Credential") valid_620349 = validateParameter(valid_620349, JString, required = false, default = nil) if valid_620349 != nil: - section.add "X-Amz-Algorithm", valid_620349 - var valid_620350 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620349 + var valid_620350 = header.getOrDefault("X-Amz-Security-Token") valid_620350 = validateParameter(valid_620350, JString, required = false, default = nil) if valid_620350 != nil: - section.add "X-Amz-SignedHeaders", valid_620350 + section.add "X-Amz-Security-Token", valid_620350 + var valid_620351 = header.getOrDefault("X-Amz-Algorithm") + valid_620351 = validateParameter(valid_620351, JString, required = false, + default = nil) + if valid_620351 != nil: + section.add "X-Amz-Algorithm", valid_620351 + var valid_620352 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620352 = validateParameter(valid_620352, JString, required = false, + default = nil) + if valid_620352 != nil: + section.add "X-Amz-SignedHeaders", valid_620352 result.add "header", section ## parameters in `formData` object: ## SpotFleetRequestId: JArray @@ -75850,42 +75877,42 @@ proc validate_PostDescribeSpotFleetRequests_620340(path: JsonNode; query: JsonNo ## MaxResults: JInt ## : The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned NextToken value. section = newJObject() - var valid_620351 = formData.getOrDefault("SpotFleetRequestId") - valid_620351 = validateParameter(valid_620351, JArray, required = false, - default = nil) - if valid_620351 != nil: - section.add "SpotFleetRequestId", valid_620351 - var valid_620352 = formData.getOrDefault("NextToken") - valid_620352 = validateParameter(valid_620352, JString, required = false, + var valid_620353 = formData.getOrDefault("SpotFleetRequestId") + valid_620353 = validateParameter(valid_620353, JArray, required = false, default = nil) - if valid_620352 != nil: - section.add "NextToken", valid_620352 - var valid_620353 = formData.getOrDefault("DryRun") - valid_620353 = validateParameter(valid_620353, JBool, required = false, default = nil) if valid_620353 != nil: - section.add "DryRun", valid_620353 - var valid_620354 = formData.getOrDefault("MaxResults") - valid_620354 = validateParameter(valid_620354, JInt, required = false, default = nil) + section.add "SpotFleetRequestId", valid_620353 + var valid_620354 = formData.getOrDefault("NextToken") + valid_620354 = validateParameter(valid_620354, JString, required = false, + default = nil) if valid_620354 != nil: - section.add "MaxResults", valid_620354 + section.add "NextToken", valid_620354 + var valid_620355 = formData.getOrDefault("DryRun") + valid_620355 = validateParameter(valid_620355, JBool, required = false, default = nil) + if valid_620355 != nil: + section.add "DryRun", valid_620355 + var valid_620356 = formData.getOrDefault("MaxResults") + valid_620356 = validateParameter(valid_620356, JInt, required = false, default = nil) + if valid_620356 != nil: + section.add "MaxResults", valid_620356 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620355: Call_PostDescribeSpotFleetRequests_620339; path: JsonNode; +proc call*(call_620357: Call_PostDescribeSpotFleetRequests_620341; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes your Spot Fleet requests.

Spot Fleet requests are deleted 48 hours after they are canceled and their instances are terminated.

## - let valid = call_620355.validator(path, query, header, formData, body) - let scheme = call_620355.pickScheme + let valid = call_620357.validator(path, query, header, formData, body) + let scheme = call_620357.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620355.url(scheme.get, call_620355.host, call_620355.base, - call_620355.route, valid.getOrDefault("path"), + let url = call_620357.url(scheme.get, call_620357.host, call_620357.base, + call_620357.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620355, url, valid) + result = atozHook(call_620357, url, valid) -proc call*(call_620356: Call_PostDescribeSpotFleetRequests_620339; +proc call*(call_620358: Call_PostDescribeSpotFleetRequests_620341; SpotFleetRequestId: JsonNode = nil; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeSpotFleetRequests"; Version: string = "2016-11-15"; MaxResults: int = 0): Recallable = @@ -75901,26 +75928,26 @@ proc call*(call_620356: Call_PostDescribeSpotFleetRequests_620339; ## Version: string (required) ## MaxResults: int ## : The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned NextToken value. - var query_620357 = newJObject() - var formData_620358 = newJObject() + var query_620359 = newJObject() + var formData_620360 = newJObject() if SpotFleetRequestId != nil: - formData_620358.add "SpotFleetRequestId", SpotFleetRequestId - add(formData_620358, "NextToken", newJString(NextToken)) - add(formData_620358, "DryRun", newJBool(DryRun)) - add(query_620357, "Action", newJString(Action)) - add(query_620357, "Version", newJString(Version)) - add(formData_620358, "MaxResults", newJInt(MaxResults)) - result = call_620356.call(nil, query_620357, nil, formData_620358, nil) - -var postDescribeSpotFleetRequests* = Call_PostDescribeSpotFleetRequests_620339( + formData_620360.add "SpotFleetRequestId", SpotFleetRequestId + add(formData_620360, "NextToken", newJString(NextToken)) + add(formData_620360, "DryRun", newJBool(DryRun)) + add(query_620359, "Action", newJString(Action)) + add(query_620359, "Version", newJString(Version)) + add(formData_620360, "MaxResults", newJInt(MaxResults)) + result = call_620358.call(nil, query_620359, nil, formData_620360, nil) + +var postDescribeSpotFleetRequests* = Call_PostDescribeSpotFleetRequests_620341( name: "postDescribeSpotFleetRequests", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeSpotFleetRequests", - validator: validate_PostDescribeSpotFleetRequests_620340, base: "/", - url: url_PostDescribeSpotFleetRequests_620341, + validator: validate_PostDescribeSpotFleetRequests_620342, base: "/", + url: url_PostDescribeSpotFleetRequests_620343, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeSpotFleetRequests_620320 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeSpotFleetRequests_620322(protocol: Scheme; host: string; + Call_GetDescribeSpotFleetRequests_620322 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeSpotFleetRequests_620324(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -75930,7 +75957,7 @@ proc url_GetDescribeSpotFleetRequests_620322(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeSpotFleetRequests_620321(path: JsonNode; query: JsonNode; +proc validate_GetDescribeSpotFleetRequests_620323(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes your Spot Fleet requests.

Spot Fleet requests are deleted 48 hours after they are canceled and their instances are terminated.

## @@ -75950,34 +75977,34 @@ proc validate_GetDescribeSpotFleetRequests_620321(path: JsonNode; query: JsonNod ## : The IDs of the Spot Fleet requests. ## Version: JString (required) section = newJObject() - var valid_620323 = query.getOrDefault("MaxResults") - valid_620323 = validateParameter(valid_620323, JInt, required = false, default = nil) - if valid_620323 != nil: - section.add "MaxResults", valid_620323 - var valid_620324 = query.getOrDefault("DryRun") - valid_620324 = validateParameter(valid_620324, JBool, required = false, default = nil) - if valid_620324 != nil: - section.add "DryRun", valid_620324 - var valid_620325 = query.getOrDefault("NextToken") - valid_620325 = validateParameter(valid_620325, JString, required = false, - default = nil) + var valid_620325 = query.getOrDefault("MaxResults") + valid_620325 = validateParameter(valid_620325, JInt, required = false, default = nil) if valid_620325 != nil: - section.add "NextToken", valid_620325 - var valid_620326 = query.getOrDefault("Action") - valid_620326 = validateParameter(valid_620326, JString, required = true, default = newJString( - "DescribeSpotFleetRequests")) + section.add "MaxResults", valid_620325 + var valid_620326 = query.getOrDefault("DryRun") + valid_620326 = validateParameter(valid_620326, JBool, required = false, default = nil) if valid_620326 != nil: - section.add "Action", valid_620326 - var valid_620327 = query.getOrDefault("SpotFleetRequestId") - valid_620327 = validateParameter(valid_620327, JArray, required = false, + section.add "DryRun", valid_620326 + var valid_620327 = query.getOrDefault("NextToken") + valid_620327 = validateParameter(valid_620327, JString, required = false, default = nil) if valid_620327 != nil: - section.add "SpotFleetRequestId", valid_620327 - var valid_620328 = query.getOrDefault("Version") - valid_620328 = validateParameter(valid_620328, JString, required = true, - default = newJString("2016-11-15")) + section.add "NextToken", valid_620327 + var valid_620328 = query.getOrDefault("Action") + valid_620328 = validateParameter(valid_620328, JString, required = true, default = newJString( + "DescribeSpotFleetRequests")) if valid_620328 != nil: - section.add "Version", valid_620328 + section.add "Action", valid_620328 + var valid_620329 = query.getOrDefault("SpotFleetRequestId") + valid_620329 = validateParameter(valid_620329, JArray, required = false, + default = nil) + if valid_620329 != nil: + section.add "SpotFleetRequestId", valid_620329 + var valid_620330 = query.getOrDefault("Version") + valid_620330 = validateParameter(valid_620330, JString, required = true, + default = newJString("2016-11-15")) + if valid_620330 != nil: + section.add "Version", valid_620330 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -75988,61 +76015,61 @@ proc validate_GetDescribeSpotFleetRequests_620321(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620329 = header.getOrDefault("X-Amz-Signature") - valid_620329 = validateParameter(valid_620329, JString, required = false, - default = nil) - if valid_620329 != nil: - section.add "X-Amz-Signature", valid_620329 - var valid_620330 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620330 = validateParameter(valid_620330, JString, required = false, - default = nil) - if valid_620330 != nil: - section.add "X-Amz-Content-Sha256", valid_620330 - var valid_620331 = header.getOrDefault("X-Amz-Date") + var valid_620331 = header.getOrDefault("X-Amz-Signature") valid_620331 = validateParameter(valid_620331, JString, required = false, default = nil) if valid_620331 != nil: - section.add "X-Amz-Date", valid_620331 - var valid_620332 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620331 + var valid_620332 = header.getOrDefault("X-Amz-Content-Sha256") valid_620332 = validateParameter(valid_620332, JString, required = false, default = nil) if valid_620332 != nil: - section.add "X-Amz-Credential", valid_620332 - var valid_620333 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620332 + var valid_620333 = header.getOrDefault("X-Amz-Date") valid_620333 = validateParameter(valid_620333, JString, required = false, default = nil) if valid_620333 != nil: - section.add "X-Amz-Security-Token", valid_620333 - var valid_620334 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620333 + var valid_620334 = header.getOrDefault("X-Amz-Credential") valid_620334 = validateParameter(valid_620334, JString, required = false, default = nil) if valid_620334 != nil: - section.add "X-Amz-Algorithm", valid_620334 - var valid_620335 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620334 + var valid_620335 = header.getOrDefault("X-Amz-Security-Token") valid_620335 = validateParameter(valid_620335, JString, required = false, default = nil) if valid_620335 != nil: - section.add "X-Amz-SignedHeaders", valid_620335 + section.add "X-Amz-Security-Token", valid_620335 + var valid_620336 = header.getOrDefault("X-Amz-Algorithm") + valid_620336 = validateParameter(valid_620336, JString, required = false, + default = nil) + if valid_620336 != nil: + section.add "X-Amz-Algorithm", valid_620336 + var valid_620337 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620337 = validateParameter(valid_620337, JString, required = false, + default = nil) + if valid_620337 != nil: + section.add "X-Amz-SignedHeaders", valid_620337 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620336: Call_GetDescribeSpotFleetRequests_620320; path: JsonNode; +proc call*(call_620338: Call_GetDescribeSpotFleetRequests_620322; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes your Spot Fleet requests.

Spot Fleet requests are deleted 48 hours after they are canceled and their instances are terminated.

## - let valid = call_620336.validator(path, query, header, formData, body) - let scheme = call_620336.pickScheme + let valid = call_620338.validator(path, query, header, formData, body) + let scheme = call_620338.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620336.url(scheme.get, call_620336.host, call_620336.base, - call_620336.route, valid.getOrDefault("path"), + let url = call_620338.url(scheme.get, call_620338.host, call_620338.base, + call_620338.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620336, url, valid) + result = atozHook(call_620338, url, valid) -proc call*(call_620337: Call_GetDescribeSpotFleetRequests_620320; +proc call*(call_620339: Call_GetDescribeSpotFleetRequests_620322; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Action: string = "DescribeSpotFleetRequests"; SpotFleetRequestId: JsonNode = nil; Version: string = "2016-11-15"): Recallable = @@ -76058,25 +76085,25 @@ proc call*(call_620337: Call_GetDescribeSpotFleetRequests_620320; ## SpotFleetRequestId: JArray ## : The IDs of the Spot Fleet requests. ## Version: string (required) - var query_620338 = newJObject() - add(query_620338, "MaxResults", newJInt(MaxResults)) - add(query_620338, "DryRun", newJBool(DryRun)) - add(query_620338, "NextToken", newJString(NextToken)) - add(query_620338, "Action", newJString(Action)) + var query_620340 = newJObject() + add(query_620340, "MaxResults", newJInt(MaxResults)) + add(query_620340, "DryRun", newJBool(DryRun)) + add(query_620340, "NextToken", newJString(NextToken)) + add(query_620340, "Action", newJString(Action)) if SpotFleetRequestId != nil: - query_620338.add "SpotFleetRequestId", SpotFleetRequestId - add(query_620338, "Version", newJString(Version)) - result = call_620337.call(nil, query_620338, nil, nil, nil) + query_620340.add "SpotFleetRequestId", SpotFleetRequestId + add(query_620340, "Version", newJString(Version)) + result = call_620339.call(nil, query_620340, nil, nil, nil) -var getDescribeSpotFleetRequests* = Call_GetDescribeSpotFleetRequests_620320( +var getDescribeSpotFleetRequests* = Call_GetDescribeSpotFleetRequests_620322( name: "getDescribeSpotFleetRequests", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeSpotFleetRequests", - validator: validate_GetDescribeSpotFleetRequests_620321, base: "/", - url: url_GetDescribeSpotFleetRequests_620322, + validator: validate_GetDescribeSpotFleetRequests_620323, base: "/", + url: url_GetDescribeSpotFleetRequests_620324, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeSpotInstanceRequests_620379 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeSpotInstanceRequests_620381(protocol: Scheme; host: string; + Call_PostDescribeSpotInstanceRequests_620381 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeSpotInstanceRequests_620383(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -76086,7 +76113,7 @@ proc url_PostDescribeSpotInstanceRequests_620381(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeSpotInstanceRequests_620380(path: JsonNode; +proc validate_PostDescribeSpotInstanceRequests_620382(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

Describes the specified Spot Instance requests.

You can use DescribeSpotInstanceRequests to find a running Spot Instance by examining the response. If the status of the Spot Instance is fulfilled, the instance ID appears in the response and contains the identifier of the instance. Alternatively, you can use DescribeInstances with a filter to look for instances where the instance lifecycle is spot.

We recommend that you set MaxResults to a value between 5 and 1000 to limit the number of results returned. This paginates the output, which makes the list more manageable and returns the results faster. If the list of results exceeds your MaxResults value, then that number of results is returned along with a NextToken value that can be passed to a subsequent DescribeSpotInstanceRequests request to retrieve the remaining results.

Spot Instance requests are deleted four hours after they are canceled and their instances are terminated.

## @@ -76098,16 +76125,16 @@ proc validate_PostDescribeSpotInstanceRequests_620380(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620382 = query.getOrDefault("Action") - valid_620382 = validateParameter(valid_620382, JString, required = true, default = newJString( + var valid_620384 = query.getOrDefault("Action") + valid_620384 = validateParameter(valid_620384, JString, required = true, default = newJString( "DescribeSpotInstanceRequests")) - if valid_620382 != nil: - section.add "Action", valid_620382 - var valid_620383 = query.getOrDefault("Version") - valid_620383 = validateParameter(valid_620383, JString, required = true, + if valid_620384 != nil: + section.add "Action", valid_620384 + var valid_620385 = query.getOrDefault("Version") + valid_620385 = validateParameter(valid_620385, JString, required = true, default = newJString("2016-11-15")) - if valid_620383 != nil: - section.add "Version", valid_620383 + if valid_620385 != nil: + section.add "Version", valid_620385 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -76118,41 +76145,41 @@ proc validate_PostDescribeSpotInstanceRequests_620380(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620384 = header.getOrDefault("X-Amz-Signature") - valid_620384 = validateParameter(valid_620384, JString, required = false, - default = nil) - if valid_620384 != nil: - section.add "X-Amz-Signature", valid_620384 - var valid_620385 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620385 = validateParameter(valid_620385, JString, required = false, - default = nil) - if valid_620385 != nil: - section.add "X-Amz-Content-Sha256", valid_620385 - var valid_620386 = header.getOrDefault("X-Amz-Date") + var valid_620386 = header.getOrDefault("X-Amz-Signature") valid_620386 = validateParameter(valid_620386, JString, required = false, default = nil) if valid_620386 != nil: - section.add "X-Amz-Date", valid_620386 - var valid_620387 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620386 + var valid_620387 = header.getOrDefault("X-Amz-Content-Sha256") valid_620387 = validateParameter(valid_620387, JString, required = false, default = nil) if valid_620387 != nil: - section.add "X-Amz-Credential", valid_620387 - var valid_620388 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620387 + var valid_620388 = header.getOrDefault("X-Amz-Date") valid_620388 = validateParameter(valid_620388, JString, required = false, default = nil) if valid_620388 != nil: - section.add "X-Amz-Security-Token", valid_620388 - var valid_620389 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620388 + var valid_620389 = header.getOrDefault("X-Amz-Credential") valid_620389 = validateParameter(valid_620389, JString, required = false, default = nil) if valid_620389 != nil: - section.add "X-Amz-Algorithm", valid_620389 - var valid_620390 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620389 + var valid_620390 = header.getOrDefault("X-Amz-Security-Token") valid_620390 = validateParameter(valid_620390, JString, required = false, default = nil) if valid_620390 != nil: - section.add "X-Amz-SignedHeaders", valid_620390 + section.add "X-Amz-Security-Token", valid_620390 + var valid_620391 = header.getOrDefault("X-Amz-Algorithm") + valid_620391 = validateParameter(valid_620391, JString, required = false, + default = nil) + if valid_620391 != nil: + section.add "X-Amz-Algorithm", valid_620391 + var valid_620392 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620392 = validateParameter(valid_620392, JString, required = false, + default = nil) + if valid_620392 != nil: + section.add "X-Amz-SignedHeaders", valid_620392 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -76167,48 +76194,48 @@ proc validate_PostDescribeSpotInstanceRequests_620380(path: JsonNode; ## SpotInstanceRequestId: JArray ## : One or more Spot Instance request IDs. section = newJObject() - var valid_620391 = formData.getOrDefault("NextToken") - valid_620391 = validateParameter(valid_620391, JString, required = false, + var valid_620393 = formData.getOrDefault("NextToken") + valid_620393 = validateParameter(valid_620393, JString, required = false, default = nil) - if valid_620391 != nil: - section.add "NextToken", valid_620391 - var valid_620392 = formData.getOrDefault("DryRun") - valid_620392 = validateParameter(valid_620392, JBool, required = false, default = nil) - if valid_620392 != nil: - section.add "DryRun", valid_620392 - var valid_620393 = formData.getOrDefault("MaxResults") - valid_620393 = validateParameter(valid_620393, JInt, required = false, default = nil) if valid_620393 != nil: - section.add "MaxResults", valid_620393 - var valid_620394 = formData.getOrDefault("Filter") - valid_620394 = validateParameter(valid_620394, JArray, required = false, - default = nil) + section.add "NextToken", valid_620393 + var valid_620394 = formData.getOrDefault("DryRun") + valid_620394 = validateParameter(valid_620394, JBool, required = false, default = nil) if valid_620394 != nil: - section.add "Filter", valid_620394 - var valid_620395 = formData.getOrDefault("SpotInstanceRequestId") - valid_620395 = validateParameter(valid_620395, JArray, required = false, - default = nil) + section.add "DryRun", valid_620394 + var valid_620395 = formData.getOrDefault("MaxResults") + valid_620395 = validateParameter(valid_620395, JInt, required = false, default = nil) if valid_620395 != nil: - section.add "SpotInstanceRequestId", valid_620395 + section.add "MaxResults", valid_620395 + var valid_620396 = formData.getOrDefault("Filter") + valid_620396 = validateParameter(valid_620396, JArray, required = false, + default = nil) + if valid_620396 != nil: + section.add "Filter", valid_620396 + var valid_620397 = formData.getOrDefault("SpotInstanceRequestId") + valid_620397 = validateParameter(valid_620397, JArray, required = false, + default = nil) + if valid_620397 != nil: + section.add "SpotInstanceRequestId", valid_620397 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620396: Call_PostDescribeSpotInstanceRequests_620379; +proc call*(call_620398: Call_PostDescribeSpotInstanceRequests_620381; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

Describes the specified Spot Instance requests.

You can use DescribeSpotInstanceRequests to find a running Spot Instance by examining the response. If the status of the Spot Instance is fulfilled, the instance ID appears in the response and contains the identifier of the instance. Alternatively, you can use DescribeInstances with a filter to look for instances where the instance lifecycle is spot.

We recommend that you set MaxResults to a value between 5 and 1000 to limit the number of results returned. This paginates the output, which makes the list more manageable and returns the results faster. If the list of results exceeds your MaxResults value, then that number of results is returned along with a NextToken value that can be passed to a subsequent DescribeSpotInstanceRequests request to retrieve the remaining results.

Spot Instance requests are deleted four hours after they are canceled and their instances are terminated.

## - let valid = call_620396.validator(path, query, header, formData, body) - let scheme = call_620396.pickScheme + let valid = call_620398.validator(path, query, header, formData, body) + let scheme = call_620398.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620396.url(scheme.get, call_620396.host, call_620396.base, - call_620396.route, valid.getOrDefault("path"), + let url = call_620398.url(scheme.get, call_620398.host, call_620398.base, + call_620398.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620396, url, valid) + result = atozHook(call_620398, url, valid) -proc call*(call_620397: Call_PostDescribeSpotInstanceRequests_620379; +proc call*(call_620399: Call_PostDescribeSpotInstanceRequests_620381; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeSpotInstanceRequests"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil; @@ -76228,28 +76255,28 @@ proc call*(call_620397: Call_PostDescribeSpotInstanceRequests_620379; ## href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html">Spot Request Status in the Amazon EC2 User Guide for Linux Instances.

  • status-code - The short code describing the most recent evaluation of your Spot Instance request.

  • status-message - The message explaining the status of the Spot Instance request.

  • tag:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

  • type - The type of Spot Instance request (one-time | persistent).

  • valid-from - The start date of the request.

  • valid-until - The end date of the request.

  • ## SpotInstanceRequestId: JArray ## : One or more Spot Instance request IDs. - var query_620398 = newJObject() - var formData_620399 = newJObject() - add(formData_620399, "NextToken", newJString(NextToken)) - add(formData_620399, "DryRun", newJBool(DryRun)) - add(query_620398, "Action", newJString(Action)) - add(query_620398, "Version", newJString(Version)) - add(formData_620399, "MaxResults", newJInt(MaxResults)) + var query_620400 = newJObject() + var formData_620401 = newJObject() + add(formData_620401, "NextToken", newJString(NextToken)) + add(formData_620401, "DryRun", newJBool(DryRun)) + add(query_620400, "Action", newJString(Action)) + add(query_620400, "Version", newJString(Version)) + add(formData_620401, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_620399.add "Filter", Filter + formData_620401.add "Filter", Filter if SpotInstanceRequestId != nil: - formData_620399.add "SpotInstanceRequestId", SpotInstanceRequestId - result = call_620397.call(nil, query_620398, nil, formData_620399, nil) + formData_620401.add "SpotInstanceRequestId", SpotInstanceRequestId + result = call_620399.call(nil, query_620400, nil, formData_620401, nil) -var postDescribeSpotInstanceRequests* = Call_PostDescribeSpotInstanceRequests_620379( +var postDescribeSpotInstanceRequests* = Call_PostDescribeSpotInstanceRequests_620381( name: "postDescribeSpotInstanceRequests", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeSpotInstanceRequests", - validator: validate_PostDescribeSpotInstanceRequests_620380, base: "/", - url: url_PostDescribeSpotInstanceRequests_620381, + validator: validate_PostDescribeSpotInstanceRequests_620382, base: "/", + url: url_PostDescribeSpotInstanceRequests_620383, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeSpotInstanceRequests_620359 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeSpotInstanceRequests_620361(protocol: Scheme; host: string; + Call_GetDescribeSpotInstanceRequests_620361 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeSpotInstanceRequests_620363(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -76259,7 +76286,7 @@ proc url_GetDescribeSpotInstanceRequests_620361(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeSpotInstanceRequests_620360(path: JsonNode; +proc validate_GetDescribeSpotInstanceRequests_620362(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Describes the specified Spot Instance requests.

    You can use DescribeSpotInstanceRequests to find a running Spot Instance by examining the response. If the status of the Spot Instance is fulfilled, the instance ID appears in the response and contains the identifier of the instance. Alternatively, you can use DescribeInstances with a filter to look for instances where the instance lifecycle is spot.

    We recommend that you set MaxResults to a value between 5 and 1000 to limit the number of results returned. This paginates the output, which makes the list more manageable and returns the results faster. If the list of results exceeds your MaxResults value, then that number of results is returned along with a NextToken value that can be passed to a subsequent DescribeSpotInstanceRequests request to retrieve the remaining results.

    Spot Instance requests are deleted four hours after they are canceled and their instances are terminated.

    ## @@ -76282,39 +76309,39 @@ proc validate_GetDescribeSpotInstanceRequests_620360(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620362 = query.getOrDefault("MaxResults") - valid_620362 = validateParameter(valid_620362, JInt, required = false, default = nil) - if valid_620362 != nil: - section.add "MaxResults", valid_620362 - var valid_620363 = query.getOrDefault("SpotInstanceRequestId") - valid_620363 = validateParameter(valid_620363, JArray, required = false, - default = nil) - if valid_620363 != nil: - section.add "SpotInstanceRequestId", valid_620363 - var valid_620364 = query.getOrDefault("DryRun") - valid_620364 = validateParameter(valid_620364, JBool, required = false, default = nil) + var valid_620364 = query.getOrDefault("MaxResults") + valid_620364 = validateParameter(valid_620364, JInt, required = false, default = nil) if valid_620364 != nil: - section.add "DryRun", valid_620364 - var valid_620365 = query.getOrDefault("NextToken") - valid_620365 = validateParameter(valid_620365, JString, required = false, + section.add "MaxResults", valid_620364 + var valid_620365 = query.getOrDefault("SpotInstanceRequestId") + valid_620365 = validateParameter(valid_620365, JArray, required = false, default = nil) if valid_620365 != nil: - section.add "NextToken", valid_620365 - var valid_620366 = query.getOrDefault("Filter") - valid_620366 = validateParameter(valid_620366, JArray, required = false, - default = nil) + section.add "SpotInstanceRequestId", valid_620365 + var valid_620366 = query.getOrDefault("DryRun") + valid_620366 = validateParameter(valid_620366, JBool, required = false, default = nil) if valid_620366 != nil: - section.add "Filter", valid_620366 - var valid_620367 = query.getOrDefault("Action") - valid_620367 = validateParameter(valid_620367, JString, required = true, default = newJString( - "DescribeSpotInstanceRequests")) + section.add "DryRun", valid_620366 + var valid_620367 = query.getOrDefault("NextToken") + valid_620367 = validateParameter(valid_620367, JString, required = false, + default = nil) if valid_620367 != nil: - section.add "Action", valid_620367 - var valid_620368 = query.getOrDefault("Version") - valid_620368 = validateParameter(valid_620368, JString, required = true, - default = newJString("2016-11-15")) + section.add "NextToken", valid_620367 + var valid_620368 = query.getOrDefault("Filter") + valid_620368 = validateParameter(valid_620368, JArray, required = false, + default = nil) if valid_620368 != nil: - section.add "Version", valid_620368 + section.add "Filter", valid_620368 + var valid_620369 = query.getOrDefault("Action") + valid_620369 = validateParameter(valid_620369, JString, required = true, default = newJString( + "DescribeSpotInstanceRequests")) + if valid_620369 != nil: + section.add "Action", valid_620369 + var valid_620370 = query.getOrDefault("Version") + valid_620370 = validateParameter(valid_620370, JString, required = true, + default = newJString("2016-11-15")) + if valid_620370 != nil: + section.add "Version", valid_620370 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -76325,62 +76352,62 @@ proc validate_GetDescribeSpotInstanceRequests_620360(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620369 = header.getOrDefault("X-Amz-Signature") - valid_620369 = validateParameter(valid_620369, JString, required = false, - default = nil) - if valid_620369 != nil: - section.add "X-Amz-Signature", valid_620369 - var valid_620370 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620370 = validateParameter(valid_620370, JString, required = false, - default = nil) - if valid_620370 != nil: - section.add "X-Amz-Content-Sha256", valid_620370 - var valid_620371 = header.getOrDefault("X-Amz-Date") + var valid_620371 = header.getOrDefault("X-Amz-Signature") valid_620371 = validateParameter(valid_620371, JString, required = false, default = nil) if valid_620371 != nil: - section.add "X-Amz-Date", valid_620371 - var valid_620372 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620371 + var valid_620372 = header.getOrDefault("X-Amz-Content-Sha256") valid_620372 = validateParameter(valid_620372, JString, required = false, default = nil) if valid_620372 != nil: - section.add "X-Amz-Credential", valid_620372 - var valid_620373 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620372 + var valid_620373 = header.getOrDefault("X-Amz-Date") valid_620373 = validateParameter(valid_620373, JString, required = false, default = nil) if valid_620373 != nil: - section.add "X-Amz-Security-Token", valid_620373 - var valid_620374 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620373 + var valid_620374 = header.getOrDefault("X-Amz-Credential") valid_620374 = validateParameter(valid_620374, JString, required = false, default = nil) if valid_620374 != nil: - section.add "X-Amz-Algorithm", valid_620374 - var valid_620375 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620374 + var valid_620375 = header.getOrDefault("X-Amz-Security-Token") valid_620375 = validateParameter(valid_620375, JString, required = false, default = nil) if valid_620375 != nil: - section.add "X-Amz-SignedHeaders", valid_620375 + section.add "X-Amz-Security-Token", valid_620375 + var valid_620376 = header.getOrDefault("X-Amz-Algorithm") + valid_620376 = validateParameter(valid_620376, JString, required = false, + default = nil) + if valid_620376 != nil: + section.add "X-Amz-Algorithm", valid_620376 + var valid_620377 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620377 = validateParameter(valid_620377, JString, required = false, + default = nil) + if valid_620377 != nil: + section.add "X-Amz-SignedHeaders", valid_620377 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620376: Call_GetDescribeSpotInstanceRequests_620359; +proc call*(call_620378: Call_GetDescribeSpotInstanceRequests_620361; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Describes the specified Spot Instance requests.

    You can use DescribeSpotInstanceRequests to find a running Spot Instance by examining the response. If the status of the Spot Instance is fulfilled, the instance ID appears in the response and contains the identifier of the instance. Alternatively, you can use DescribeInstances with a filter to look for instances where the instance lifecycle is spot.

    We recommend that you set MaxResults to a value between 5 and 1000 to limit the number of results returned. This paginates the output, which makes the list more manageable and returns the results faster. If the list of results exceeds your MaxResults value, then that number of results is returned along with a NextToken value that can be passed to a subsequent DescribeSpotInstanceRequests request to retrieve the remaining results.

    Spot Instance requests are deleted four hours after they are canceled and their instances are terminated.

    ## - let valid = call_620376.validator(path, query, header, formData, body) - let scheme = call_620376.pickScheme + let valid = call_620378.validator(path, query, header, formData, body) + let scheme = call_620378.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620376.url(scheme.get, call_620376.host, call_620376.base, - call_620376.route, valid.getOrDefault("path"), + let url = call_620378.url(scheme.get, call_620378.host, call_620378.base, + call_620378.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620376, url, valid) + result = atozHook(call_620378, url, valid) -proc call*(call_620377: Call_GetDescribeSpotInstanceRequests_620359; +proc call*(call_620379: Call_GetDescribeSpotInstanceRequests_620361; MaxResults: int = 0; SpotInstanceRequestId: JsonNode = nil; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeSpotInstanceRequests"; @@ -76400,27 +76427,27 @@ proc call*(call_620377: Call_GetDescribeSpotInstanceRequests_620359; ## href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html">Spot Request Status in the Amazon EC2 User Guide for Linux Instances.

  • status-code - The short code describing the most recent evaluation of your Spot Instance request.

  • status-message - The message explaining the status of the Spot Instance request.

  • tag:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

  • type - The type of Spot Instance request (one-time | persistent).

  • valid-from - The start date of the request.

  • valid-until - The end date of the request.

  • ## Action: string (required) ## Version: string (required) - var query_620378 = newJObject() - add(query_620378, "MaxResults", newJInt(MaxResults)) + var query_620380 = newJObject() + add(query_620380, "MaxResults", newJInt(MaxResults)) if SpotInstanceRequestId != nil: - query_620378.add "SpotInstanceRequestId", SpotInstanceRequestId - add(query_620378, "DryRun", newJBool(DryRun)) - add(query_620378, "NextToken", newJString(NextToken)) + query_620380.add "SpotInstanceRequestId", SpotInstanceRequestId + add(query_620380, "DryRun", newJBool(DryRun)) + add(query_620380, "NextToken", newJString(NextToken)) if Filter != nil: - query_620378.add "Filter", Filter - add(query_620378, "Action", newJString(Action)) - add(query_620378, "Version", newJString(Version)) - result = call_620377.call(nil, query_620378, nil, nil, nil) + query_620380.add "Filter", Filter + add(query_620380, "Action", newJString(Action)) + add(query_620380, "Version", newJString(Version)) + result = call_620379.call(nil, query_620380, nil, nil, nil) -var getDescribeSpotInstanceRequests* = Call_GetDescribeSpotInstanceRequests_620359( +var getDescribeSpotInstanceRequests* = Call_GetDescribeSpotInstanceRequests_620361( name: "getDescribeSpotInstanceRequests", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeSpotInstanceRequests", - validator: validate_GetDescribeSpotInstanceRequests_620360, base: "/", - url: url_GetDescribeSpotInstanceRequests_620361, + validator: validate_GetDescribeSpotInstanceRequests_620362, base: "/", + url: url_GetDescribeSpotInstanceRequests_620363, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeSpotPriceHistory_620424 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeSpotPriceHistory_620426(protocol: Scheme; host: string; + Call_PostDescribeSpotPriceHistory_620426 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeSpotPriceHistory_620428(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -76430,7 +76457,7 @@ proc url_PostDescribeSpotPriceHistory_620426(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeSpotPriceHistory_620425(path: JsonNode; query: JsonNode; +proc validate_PostDescribeSpotPriceHistory_620427(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Describes the Spot price history. For more information, see Spot Instance Pricing History in the Amazon EC2 User Guide for Linux Instances.

    When you specify a start and end time, this operation returns the prices of the instance types within the time range that you specified and the time when the price changed. The price is valid within the time period that you specified; the response merely indicates the last time that the price changed.

    ## @@ -76442,16 +76469,16 @@ proc validate_PostDescribeSpotPriceHistory_620425(path: JsonNode; query: JsonNod ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620427 = query.getOrDefault("Action") - valid_620427 = validateParameter(valid_620427, JString, required = true, default = newJString( + var valid_620429 = query.getOrDefault("Action") + valid_620429 = validateParameter(valid_620429, JString, required = true, default = newJString( "DescribeSpotPriceHistory")) - if valid_620427 != nil: - section.add "Action", valid_620427 - var valid_620428 = query.getOrDefault("Version") - valid_620428 = validateParameter(valid_620428, JString, required = true, + if valid_620429 != nil: + section.add "Action", valid_620429 + var valid_620430 = query.getOrDefault("Version") + valid_620430 = validateParameter(valid_620430, JString, required = true, default = newJString("2016-11-15")) - if valid_620428 != nil: - section.add "Version", valid_620428 + if valid_620430 != nil: + section.add "Version", valid_620430 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -76462,41 +76489,41 @@ proc validate_PostDescribeSpotPriceHistory_620425(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620429 = header.getOrDefault("X-Amz-Signature") - valid_620429 = validateParameter(valid_620429, JString, required = false, - default = nil) - if valid_620429 != nil: - section.add "X-Amz-Signature", valid_620429 - var valid_620430 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620430 = validateParameter(valid_620430, JString, required = false, - default = nil) - if valid_620430 != nil: - section.add "X-Amz-Content-Sha256", valid_620430 - var valid_620431 = header.getOrDefault("X-Amz-Date") + var valid_620431 = header.getOrDefault("X-Amz-Signature") valid_620431 = validateParameter(valid_620431, JString, required = false, default = nil) if valid_620431 != nil: - section.add "X-Amz-Date", valid_620431 - var valid_620432 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620431 + var valid_620432 = header.getOrDefault("X-Amz-Content-Sha256") valid_620432 = validateParameter(valid_620432, JString, required = false, default = nil) if valid_620432 != nil: - section.add "X-Amz-Credential", valid_620432 - var valid_620433 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620432 + var valid_620433 = header.getOrDefault("X-Amz-Date") valid_620433 = validateParameter(valid_620433, JString, required = false, default = nil) if valid_620433 != nil: - section.add "X-Amz-Security-Token", valid_620433 - var valid_620434 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620433 + var valid_620434 = header.getOrDefault("X-Amz-Credential") valid_620434 = validateParameter(valid_620434, JString, required = false, default = nil) if valid_620434 != nil: - section.add "X-Amz-Algorithm", valid_620434 - var valid_620435 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620434 + var valid_620435 = header.getOrDefault("X-Amz-Security-Token") valid_620435 = validateParameter(valid_620435, JString, required = false, default = nil) if valid_620435 != nil: - section.add "X-Amz-SignedHeaders", valid_620435 + section.add "X-Amz-Security-Token", valid_620435 + var valid_620436 = header.getOrDefault("X-Amz-Algorithm") + valid_620436 = validateParameter(valid_620436, JString, required = false, + default = nil) + if valid_620436 != nil: + section.add "X-Amz-Algorithm", valid_620436 + var valid_620437 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620437 = validateParameter(valid_620437, JString, required = false, + default = nil) + if valid_620437 != nil: + section.add "X-Amz-SignedHeaders", valid_620437 result.add "header", section ## parameters in `formData` object: ## InstanceType: JArray @@ -76518,67 +76545,67 @@ proc validate_PostDescribeSpotPriceHistory_620425(path: JsonNode; query: JsonNod ## Filter: JArray ## :

    One or more filters.

    section = newJObject() - var valid_620436 = formData.getOrDefault("InstanceType") - valid_620436 = validateParameter(valid_620436, JArray, required = false, - default = nil) - if valid_620436 != nil: - section.add "InstanceType", valid_620436 - var valid_620437 = formData.getOrDefault("NextToken") - valid_620437 = validateParameter(valid_620437, JString, required = false, - default = nil) - if valid_620437 != nil: - section.add "NextToken", valid_620437 - var valid_620438 = formData.getOrDefault("AvailabilityZone") - valid_620438 = validateParameter(valid_620438, JString, required = false, + var valid_620438 = formData.getOrDefault("InstanceType") + valid_620438 = validateParameter(valid_620438, JArray, required = false, default = nil) if valid_620438 != nil: - section.add "AvailabilityZone", valid_620438 - var valid_620439 = formData.getOrDefault("EndTime") + section.add "InstanceType", valid_620438 + var valid_620439 = formData.getOrDefault("NextToken") valid_620439 = validateParameter(valid_620439, JString, required = false, default = nil) if valid_620439 != nil: - section.add "EndTime", valid_620439 - var valid_620440 = formData.getOrDefault("StartTime") + section.add "NextToken", valid_620439 + var valid_620440 = formData.getOrDefault("AvailabilityZone") valid_620440 = validateParameter(valid_620440, JString, required = false, default = nil) if valid_620440 != nil: - section.add "StartTime", valid_620440 - var valid_620441 = formData.getOrDefault("DryRun") - valid_620441 = validateParameter(valid_620441, JBool, required = false, default = nil) + section.add "AvailabilityZone", valid_620440 + var valid_620441 = formData.getOrDefault("EndTime") + valid_620441 = validateParameter(valid_620441, JString, required = false, + default = nil) if valid_620441 != nil: - section.add "DryRun", valid_620441 - var valid_620442 = formData.getOrDefault("ProductDescription") - valid_620442 = validateParameter(valid_620442, JArray, required = false, + section.add "EndTime", valid_620441 + var valid_620442 = formData.getOrDefault("StartTime") + valid_620442 = validateParameter(valid_620442, JString, required = false, default = nil) if valid_620442 != nil: - section.add "ProductDescription", valid_620442 - var valid_620443 = formData.getOrDefault("MaxResults") - valid_620443 = validateParameter(valid_620443, JInt, required = false, default = nil) + section.add "StartTime", valid_620442 + var valid_620443 = formData.getOrDefault("DryRun") + valid_620443 = validateParameter(valid_620443, JBool, required = false, default = nil) if valid_620443 != nil: - section.add "MaxResults", valid_620443 - var valid_620444 = formData.getOrDefault("Filter") + section.add "DryRun", valid_620443 + var valid_620444 = formData.getOrDefault("ProductDescription") valid_620444 = validateParameter(valid_620444, JArray, required = false, default = nil) if valid_620444 != nil: - section.add "Filter", valid_620444 + section.add "ProductDescription", valid_620444 + var valid_620445 = formData.getOrDefault("MaxResults") + valid_620445 = validateParameter(valid_620445, JInt, required = false, default = nil) + if valid_620445 != nil: + section.add "MaxResults", valid_620445 + var valid_620446 = formData.getOrDefault("Filter") + valid_620446 = validateParameter(valid_620446, JArray, required = false, + default = nil) + if valid_620446 != nil: + section.add "Filter", valid_620446 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620445: Call_PostDescribeSpotPriceHistory_620424; path: JsonNode; +proc call*(call_620447: Call_PostDescribeSpotPriceHistory_620426; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Describes the Spot price history. For more information, see Spot Instance Pricing History in the Amazon EC2 User Guide for Linux Instances.

    When you specify a start and end time, this operation returns the prices of the instance types within the time range that you specified and the time when the price changed. The price is valid within the time period that you specified; the response merely indicates the last time that the price changed.

    ## - let valid = call_620445.validator(path, query, header, formData, body) - let scheme = call_620445.pickScheme + let valid = call_620447.validator(path, query, header, formData, body) + let scheme = call_620447.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620445.url(scheme.get, call_620445.host, call_620445.base, - call_620445.route, valid.getOrDefault("path"), + let url = call_620447.url(scheme.get, call_620447.host, call_620447.base, + call_620447.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620445, url, valid) + result = atozHook(call_620447, url, valid) -proc call*(call_620446: Call_PostDescribeSpotPriceHistory_620424; +proc call*(call_620448: Call_PostDescribeSpotPriceHistory_620426; InstanceType: JsonNode = nil; NextToken: string = ""; AvailabilityZone: string = ""; EndTime: string = ""; StartTime: string = ""; DryRun: bool = false; ProductDescription: JsonNode = nil; @@ -76606,33 +76633,33 @@ proc call*(call_620446: Call_PostDescribeSpotPriceHistory_620424; ## : The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned NextToken value. ## Filter: JArray ## :

    One or more filters.

    - var query_620447 = newJObject() - var formData_620448 = newJObject() + var query_620449 = newJObject() + var formData_620450 = newJObject() if InstanceType != nil: - formData_620448.add "InstanceType", InstanceType - add(formData_620448, "NextToken", newJString(NextToken)) - add(formData_620448, "AvailabilityZone", newJString(AvailabilityZone)) - add(formData_620448, "EndTime", newJString(EndTime)) - add(formData_620448, "StartTime", newJString(StartTime)) - add(formData_620448, "DryRun", newJBool(DryRun)) + formData_620450.add "InstanceType", InstanceType + add(formData_620450, "NextToken", newJString(NextToken)) + add(formData_620450, "AvailabilityZone", newJString(AvailabilityZone)) + add(formData_620450, "EndTime", newJString(EndTime)) + add(formData_620450, "StartTime", newJString(StartTime)) + add(formData_620450, "DryRun", newJBool(DryRun)) if ProductDescription != nil: - formData_620448.add "ProductDescription", ProductDescription - add(query_620447, "Action", newJString(Action)) - add(query_620447, "Version", newJString(Version)) - add(formData_620448, "MaxResults", newJInt(MaxResults)) + formData_620450.add "ProductDescription", ProductDescription + add(query_620449, "Action", newJString(Action)) + add(query_620449, "Version", newJString(Version)) + add(formData_620450, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_620448.add "Filter", Filter - result = call_620446.call(nil, query_620447, nil, formData_620448, nil) + formData_620450.add "Filter", Filter + result = call_620448.call(nil, query_620449, nil, formData_620450, nil) -var postDescribeSpotPriceHistory* = Call_PostDescribeSpotPriceHistory_620424( +var postDescribeSpotPriceHistory* = Call_PostDescribeSpotPriceHistory_620426( name: "postDescribeSpotPriceHistory", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeSpotPriceHistory", - validator: validate_PostDescribeSpotPriceHistory_620425, base: "/", - url: url_PostDescribeSpotPriceHistory_620426, + validator: validate_PostDescribeSpotPriceHistory_620427, base: "/", + url: url_PostDescribeSpotPriceHistory_620428, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeSpotPriceHistory_620400 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeSpotPriceHistory_620402(protocol: Scheme; host: string; + Call_GetDescribeSpotPriceHistory_620402 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeSpotPriceHistory_620404(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -76642,7 +76669,7 @@ proc url_GetDescribeSpotPriceHistory_620402(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeSpotPriceHistory_620401(path: JsonNode; query: JsonNode; +proc validate_GetDescribeSpotPriceHistory_620403(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Describes the Spot price history. For more information, see Spot Instance Pricing History in the Amazon EC2 User Guide for Linux Instances.

    When you specify a start and end time, this operation returns the prices of the instance types within the time range that you specified and the time when the price changed. The price is valid within the time period that you specified; the response merely indicates the last time that the price changed.

    ## @@ -76672,59 +76699,59 @@ proc validate_GetDescribeSpotPriceHistory_620401(path: JsonNode; query: JsonNode ## : The date and time, up to the current date, from which to stop retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). ## Version: JString (required) section = newJObject() - var valid_620403 = query.getOrDefault("MaxResults") - valid_620403 = validateParameter(valid_620403, JInt, required = false, default = nil) - if valid_620403 != nil: - section.add "MaxResults", valid_620403 - var valid_620404 = query.getOrDefault("ProductDescription") - valid_620404 = validateParameter(valid_620404, JArray, required = false, - default = nil) - if valid_620404 != nil: - section.add "ProductDescription", valid_620404 - var valid_620405 = query.getOrDefault("DryRun") - valid_620405 = validateParameter(valid_620405, JBool, required = false, default = nil) + var valid_620405 = query.getOrDefault("MaxResults") + valid_620405 = validateParameter(valid_620405, JInt, required = false, default = nil) if valid_620405 != nil: - section.add "DryRun", valid_620405 - var valid_620406 = query.getOrDefault("NextToken") - valid_620406 = validateParameter(valid_620406, JString, required = false, + section.add "MaxResults", valid_620405 + var valid_620406 = query.getOrDefault("ProductDescription") + valid_620406 = validateParameter(valid_620406, JArray, required = false, default = nil) if valid_620406 != nil: - section.add "NextToken", valid_620406 - var valid_620407 = query.getOrDefault("Filter") - valid_620407 = validateParameter(valid_620407, JArray, required = false, - default = nil) + section.add "ProductDescription", valid_620406 + var valid_620407 = query.getOrDefault("DryRun") + valid_620407 = validateParameter(valid_620407, JBool, required = false, default = nil) if valid_620407 != nil: - section.add "Filter", valid_620407 - var valid_620408 = query.getOrDefault("InstanceType") - valid_620408 = validateParameter(valid_620408, JArray, required = false, + section.add "DryRun", valid_620407 + var valid_620408 = query.getOrDefault("NextToken") + valid_620408 = validateParameter(valid_620408, JString, required = false, default = nil) if valid_620408 != nil: - section.add "InstanceType", valid_620408 - var valid_620409 = query.getOrDefault("Action") - valid_620409 = validateParameter(valid_620409, JString, required = true, default = newJString( - "DescribeSpotPriceHistory")) + section.add "NextToken", valid_620408 + var valid_620409 = query.getOrDefault("Filter") + valid_620409 = validateParameter(valid_620409, JArray, required = false, + default = nil) if valid_620409 != nil: - section.add "Action", valid_620409 - var valid_620410 = query.getOrDefault("StartTime") - valid_620410 = validateParameter(valid_620410, JString, required = false, + section.add "Filter", valid_620409 + var valid_620410 = query.getOrDefault("InstanceType") + valid_620410 = validateParameter(valid_620410, JArray, required = false, default = nil) if valid_620410 != nil: - section.add "StartTime", valid_620410 - var valid_620411 = query.getOrDefault("AvailabilityZone") - valid_620411 = validateParameter(valid_620411, JString, required = false, - default = nil) + section.add "InstanceType", valid_620410 + var valid_620411 = query.getOrDefault("Action") + valid_620411 = validateParameter(valid_620411, JString, required = true, default = newJString( + "DescribeSpotPriceHistory")) if valid_620411 != nil: - section.add "AvailabilityZone", valid_620411 - var valid_620412 = query.getOrDefault("EndTime") + section.add "Action", valid_620411 + var valid_620412 = query.getOrDefault("StartTime") valid_620412 = validateParameter(valid_620412, JString, required = false, default = nil) if valid_620412 != nil: - section.add "EndTime", valid_620412 - var valid_620413 = query.getOrDefault("Version") - valid_620413 = validateParameter(valid_620413, JString, required = true, - default = newJString("2016-11-15")) + section.add "StartTime", valid_620412 + var valid_620413 = query.getOrDefault("AvailabilityZone") + valid_620413 = validateParameter(valid_620413, JString, required = false, + default = nil) if valid_620413 != nil: - section.add "Version", valid_620413 + section.add "AvailabilityZone", valid_620413 + var valid_620414 = query.getOrDefault("EndTime") + valid_620414 = validateParameter(valid_620414, JString, required = false, + default = nil) + if valid_620414 != nil: + section.add "EndTime", valid_620414 + var valid_620415 = query.getOrDefault("Version") + valid_620415 = validateParameter(valid_620415, JString, required = true, + default = newJString("2016-11-15")) + if valid_620415 != nil: + section.add "Version", valid_620415 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -76735,61 +76762,61 @@ proc validate_GetDescribeSpotPriceHistory_620401(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620414 = header.getOrDefault("X-Amz-Signature") - valid_620414 = validateParameter(valid_620414, JString, required = false, - default = nil) - if valid_620414 != nil: - section.add "X-Amz-Signature", valid_620414 - var valid_620415 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620415 = validateParameter(valid_620415, JString, required = false, - default = nil) - if valid_620415 != nil: - section.add "X-Amz-Content-Sha256", valid_620415 - var valid_620416 = header.getOrDefault("X-Amz-Date") + var valid_620416 = header.getOrDefault("X-Amz-Signature") valid_620416 = validateParameter(valid_620416, JString, required = false, default = nil) if valid_620416 != nil: - section.add "X-Amz-Date", valid_620416 - var valid_620417 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620416 + var valid_620417 = header.getOrDefault("X-Amz-Content-Sha256") valid_620417 = validateParameter(valid_620417, JString, required = false, default = nil) if valid_620417 != nil: - section.add "X-Amz-Credential", valid_620417 - var valid_620418 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620417 + var valid_620418 = header.getOrDefault("X-Amz-Date") valid_620418 = validateParameter(valid_620418, JString, required = false, default = nil) if valid_620418 != nil: - section.add "X-Amz-Security-Token", valid_620418 - var valid_620419 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620418 + var valid_620419 = header.getOrDefault("X-Amz-Credential") valid_620419 = validateParameter(valid_620419, JString, required = false, default = nil) if valid_620419 != nil: - section.add "X-Amz-Algorithm", valid_620419 - var valid_620420 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620419 + var valid_620420 = header.getOrDefault("X-Amz-Security-Token") valid_620420 = validateParameter(valid_620420, JString, required = false, default = nil) if valid_620420 != nil: - section.add "X-Amz-SignedHeaders", valid_620420 + section.add "X-Amz-Security-Token", valid_620420 + var valid_620421 = header.getOrDefault("X-Amz-Algorithm") + valid_620421 = validateParameter(valid_620421, JString, required = false, + default = nil) + if valid_620421 != nil: + section.add "X-Amz-Algorithm", valid_620421 + var valid_620422 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620422 = validateParameter(valid_620422, JString, required = false, + default = nil) + if valid_620422 != nil: + section.add "X-Amz-SignedHeaders", valid_620422 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620421: Call_GetDescribeSpotPriceHistory_620400; path: JsonNode; +proc call*(call_620423: Call_GetDescribeSpotPriceHistory_620402; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Describes the Spot price history. For more information, see Spot Instance Pricing History in the Amazon EC2 User Guide for Linux Instances.

    When you specify a start and end time, this operation returns the prices of the instance types within the time range that you specified and the time when the price changed. The price is valid within the time period that you specified; the response merely indicates the last time that the price changed.

    ## - let valid = call_620421.validator(path, query, header, formData, body) - let scheme = call_620421.pickScheme + let valid = call_620423.validator(path, query, header, formData, body) + let scheme = call_620423.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620421.url(scheme.get, call_620421.host, call_620421.base, - call_620421.route, valid.getOrDefault("path"), + let url = call_620423.url(scheme.get, call_620423.host, call_620423.base, + call_620423.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620421, url, valid) + result = atozHook(call_620423, url, valid) -proc call*(call_620422: Call_GetDescribeSpotPriceHistory_620400; +proc call*(call_620424: Call_GetDescribeSpotPriceHistory_620402; MaxResults: int = 0; ProductDescription: JsonNode = nil; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; InstanceType: JsonNode = nil; Action: string = "DescribeSpotPriceHistory"; StartTime: string = ""; @@ -76817,32 +76844,32 @@ proc call*(call_620422: Call_GetDescribeSpotPriceHistory_620400; ## EndTime: string ## : The date and time, up to the current date, from which to stop retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). ## Version: string (required) - var query_620423 = newJObject() - add(query_620423, "MaxResults", newJInt(MaxResults)) + var query_620425 = newJObject() + add(query_620425, "MaxResults", newJInt(MaxResults)) if ProductDescription != nil: - query_620423.add "ProductDescription", ProductDescription - add(query_620423, "DryRun", newJBool(DryRun)) - add(query_620423, "NextToken", newJString(NextToken)) + query_620425.add "ProductDescription", ProductDescription + add(query_620425, "DryRun", newJBool(DryRun)) + add(query_620425, "NextToken", newJString(NextToken)) if Filter != nil: - query_620423.add "Filter", Filter + query_620425.add "Filter", Filter if InstanceType != nil: - query_620423.add "InstanceType", InstanceType - add(query_620423, "Action", newJString(Action)) - add(query_620423, "StartTime", newJString(StartTime)) - add(query_620423, "AvailabilityZone", newJString(AvailabilityZone)) - add(query_620423, "EndTime", newJString(EndTime)) - add(query_620423, "Version", newJString(Version)) - result = call_620422.call(nil, query_620423, nil, nil, nil) - -var getDescribeSpotPriceHistory* = Call_GetDescribeSpotPriceHistory_620400( + query_620425.add "InstanceType", InstanceType + add(query_620425, "Action", newJString(Action)) + add(query_620425, "StartTime", newJString(StartTime)) + add(query_620425, "AvailabilityZone", newJString(AvailabilityZone)) + add(query_620425, "EndTime", newJString(EndTime)) + add(query_620425, "Version", newJString(Version)) + result = call_620424.call(nil, query_620425, nil, nil, nil) + +var getDescribeSpotPriceHistory* = Call_GetDescribeSpotPriceHistory_620402( name: "getDescribeSpotPriceHistory", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeSpotPriceHistory", - validator: validate_GetDescribeSpotPriceHistory_620401, base: "/", - url: url_GetDescribeSpotPriceHistory_620402, + validator: validate_GetDescribeSpotPriceHistory_620403, base: "/", + url: url_GetDescribeSpotPriceHistory_620404, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeStaleSecurityGroups_620468 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeStaleSecurityGroups_620470(protocol: Scheme; host: string; + Call_PostDescribeStaleSecurityGroups_620470 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeStaleSecurityGroups_620472(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -76852,7 +76879,7 @@ proc url_PostDescribeStaleSecurityGroups_620470(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeStaleSecurityGroups_620469(path: JsonNode; +proc validate_PostDescribeStaleSecurityGroups_620471(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## [VPC only] Describes the stale security group rules for security groups in a specified VPC. Rules are stale when they reference a deleted security group in a peer VPC, or a security group in a peer VPC for which the VPC peering connection has been deleted. ## @@ -76864,16 +76891,16 @@ proc validate_PostDescribeStaleSecurityGroups_620469(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620471 = query.getOrDefault("Action") - valid_620471 = validateParameter(valid_620471, JString, required = true, default = newJString( + var valid_620473 = query.getOrDefault("Action") + valid_620473 = validateParameter(valid_620473, JString, required = true, default = newJString( "DescribeStaleSecurityGroups")) - if valid_620471 != nil: - section.add "Action", valid_620471 - var valid_620472 = query.getOrDefault("Version") - valid_620472 = validateParameter(valid_620472, JString, required = true, + if valid_620473 != nil: + section.add "Action", valid_620473 + var valid_620474 = query.getOrDefault("Version") + valid_620474 = validateParameter(valid_620474, JString, required = true, default = newJString("2016-11-15")) - if valid_620472 != nil: - section.add "Version", valid_620472 + if valid_620474 != nil: + section.add "Version", valid_620474 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -76884,41 +76911,41 @@ proc validate_PostDescribeStaleSecurityGroups_620469(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620473 = header.getOrDefault("X-Amz-Signature") - valid_620473 = validateParameter(valid_620473, JString, required = false, - default = nil) - if valid_620473 != nil: - section.add "X-Amz-Signature", valid_620473 - var valid_620474 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620474 = validateParameter(valid_620474, JString, required = false, - default = nil) - if valid_620474 != nil: - section.add "X-Amz-Content-Sha256", valid_620474 - var valid_620475 = header.getOrDefault("X-Amz-Date") + var valid_620475 = header.getOrDefault("X-Amz-Signature") valid_620475 = validateParameter(valid_620475, JString, required = false, default = nil) if valid_620475 != nil: - section.add "X-Amz-Date", valid_620475 - var valid_620476 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620475 + var valid_620476 = header.getOrDefault("X-Amz-Content-Sha256") valid_620476 = validateParameter(valid_620476, JString, required = false, default = nil) if valid_620476 != nil: - section.add "X-Amz-Credential", valid_620476 - var valid_620477 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620476 + var valid_620477 = header.getOrDefault("X-Amz-Date") valid_620477 = validateParameter(valid_620477, JString, required = false, default = nil) if valid_620477 != nil: - section.add "X-Amz-Security-Token", valid_620477 - var valid_620478 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620477 + var valid_620478 = header.getOrDefault("X-Amz-Credential") valid_620478 = validateParameter(valid_620478, JString, required = false, default = nil) if valid_620478 != nil: - section.add "X-Amz-Algorithm", valid_620478 - var valid_620479 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620478 + var valid_620479 = header.getOrDefault("X-Amz-Security-Token") valid_620479 = validateParameter(valid_620479, JString, required = false, default = nil) if valid_620479 != nil: - section.add "X-Amz-SignedHeaders", valid_620479 + section.add "X-Amz-Security-Token", valid_620479 + var valid_620480 = header.getOrDefault("X-Amz-Algorithm") + valid_620480 = validateParameter(valid_620480, JString, required = false, + default = nil) + if valid_620480 != nil: + section.add "X-Amz-Algorithm", valid_620480 + var valid_620481 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620481 = validateParameter(valid_620481, JString, required = false, + default = nil) + if valid_620481 != nil: + section.add "X-Amz-SignedHeaders", valid_620481 result.add "header", section ## parameters in `formData` object: ## VpcId: JString (required) @@ -76932,43 +76959,43 @@ proc validate_PostDescribeStaleSecurityGroups_620469(path: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `VpcId` field" - var valid_620480 = formData.getOrDefault("VpcId") - valid_620480 = validateParameter(valid_620480, JString, required = true, - default = nil) - if valid_620480 != nil: - section.add "VpcId", valid_620480 - var valid_620481 = formData.getOrDefault("NextToken") - valid_620481 = validateParameter(valid_620481, JString, required = false, + var valid_620482 = formData.getOrDefault("VpcId") + valid_620482 = validateParameter(valid_620482, JString, required = true, default = nil) - if valid_620481 != nil: - section.add "NextToken", valid_620481 - var valid_620482 = formData.getOrDefault("DryRun") - valid_620482 = validateParameter(valid_620482, JBool, required = false, default = nil) if valid_620482 != nil: - section.add "DryRun", valid_620482 - var valid_620483 = formData.getOrDefault("MaxResults") - valid_620483 = validateParameter(valid_620483, JInt, required = false, default = nil) + section.add "VpcId", valid_620482 + var valid_620483 = formData.getOrDefault("NextToken") + valid_620483 = validateParameter(valid_620483, JString, required = false, + default = nil) if valid_620483 != nil: - section.add "MaxResults", valid_620483 + section.add "NextToken", valid_620483 + var valid_620484 = formData.getOrDefault("DryRun") + valid_620484 = validateParameter(valid_620484, JBool, required = false, default = nil) + if valid_620484 != nil: + section.add "DryRun", valid_620484 + var valid_620485 = formData.getOrDefault("MaxResults") + valid_620485 = validateParameter(valid_620485, JInt, required = false, default = nil) + if valid_620485 != nil: + section.add "MaxResults", valid_620485 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620484: Call_PostDescribeStaleSecurityGroups_620468; +proc call*(call_620486: Call_PostDescribeStaleSecurityGroups_620470; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## [VPC only] Describes the stale security group rules for security groups in a specified VPC. Rules are stale when they reference a deleted security group in a peer VPC, or a security group in a peer VPC for which the VPC peering connection has been deleted. ## - let valid = call_620484.validator(path, query, header, formData, body) - let scheme = call_620484.pickScheme + let valid = call_620486.validator(path, query, header, formData, body) + let scheme = call_620486.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620484.url(scheme.get, call_620484.host, call_620484.base, - call_620484.route, valid.getOrDefault("path"), + let url = call_620486.url(scheme.get, call_620486.host, call_620486.base, + call_620486.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620484, url, valid) + result = atozHook(call_620486, url, valid) -proc call*(call_620485: Call_PostDescribeStaleSecurityGroups_620468; VpcId: string; +proc call*(call_620487: Call_PostDescribeStaleSecurityGroups_620470; VpcId: string; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeStaleSecurityGroups"; Version: string = "2016-11-15"; MaxResults: int = 0): Recallable = @@ -76984,25 +77011,25 @@ proc call*(call_620485: Call_PostDescribeStaleSecurityGroups_620468; VpcId: stri ## Version: string (required) ## MaxResults: int ## : The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results. - var query_620486 = newJObject() - var formData_620487 = newJObject() - add(formData_620487, "VpcId", newJString(VpcId)) - add(formData_620487, "NextToken", newJString(NextToken)) - add(formData_620487, "DryRun", newJBool(DryRun)) - add(query_620486, "Action", newJString(Action)) - add(query_620486, "Version", newJString(Version)) - add(formData_620487, "MaxResults", newJInt(MaxResults)) - result = call_620485.call(nil, query_620486, nil, formData_620487, nil) - -var postDescribeStaleSecurityGroups* = Call_PostDescribeStaleSecurityGroups_620468( + var query_620488 = newJObject() + var formData_620489 = newJObject() + add(formData_620489, "VpcId", newJString(VpcId)) + add(formData_620489, "NextToken", newJString(NextToken)) + add(formData_620489, "DryRun", newJBool(DryRun)) + add(query_620488, "Action", newJString(Action)) + add(query_620488, "Version", newJString(Version)) + add(formData_620489, "MaxResults", newJInt(MaxResults)) + result = call_620487.call(nil, query_620488, nil, formData_620489, nil) + +var postDescribeStaleSecurityGroups* = Call_PostDescribeStaleSecurityGroups_620470( name: "postDescribeStaleSecurityGroups", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeStaleSecurityGroups", - validator: validate_PostDescribeStaleSecurityGroups_620469, base: "/", - url: url_PostDescribeStaleSecurityGroups_620470, + validator: validate_PostDescribeStaleSecurityGroups_620471, base: "/", + url: url_PostDescribeStaleSecurityGroups_620472, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeStaleSecurityGroups_620449 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeStaleSecurityGroups_620451(protocol: Scheme; host: string; + Call_GetDescribeStaleSecurityGroups_620451 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeStaleSecurityGroups_620453(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -77012,7 +77039,7 @@ proc url_GetDescribeStaleSecurityGroups_620451(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeStaleSecurityGroups_620450(path: JsonNode; +proc validate_GetDescribeStaleSecurityGroups_620452(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## [VPC only] Describes the stale security group rules for security groups in a specified VPC. Rules are stale when they reference a deleted security group in a peer VPC, or a security group in a peer VPC for which the VPC peering connection has been deleted. ## @@ -77032,35 +77059,35 @@ proc validate_GetDescribeStaleSecurityGroups_620450(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620452 = query.getOrDefault("MaxResults") - valid_620452 = validateParameter(valid_620452, JInt, required = false, default = nil) - if valid_620452 != nil: - section.add "MaxResults", valid_620452 - var valid_620453 = query.getOrDefault("DryRun") - valid_620453 = validateParameter(valid_620453, JBool, required = false, default = nil) - if valid_620453 != nil: - section.add "DryRun", valid_620453 + var valid_620454 = query.getOrDefault("MaxResults") + valid_620454 = validateParameter(valid_620454, JInt, required = false, default = nil) + if valid_620454 != nil: + section.add "MaxResults", valid_620454 + var valid_620455 = query.getOrDefault("DryRun") + valid_620455 = validateParameter(valid_620455, JBool, required = false, default = nil) + if valid_620455 != nil: + section.add "DryRun", valid_620455 assert query != nil, "query argument is necessary due to required `VpcId` field" - var valid_620454 = query.getOrDefault("VpcId") - valid_620454 = validateParameter(valid_620454, JString, required = true, + var valid_620456 = query.getOrDefault("VpcId") + valid_620456 = validateParameter(valid_620456, JString, required = true, default = nil) - if valid_620454 != nil: - section.add "VpcId", valid_620454 - var valid_620455 = query.getOrDefault("NextToken") - valid_620455 = validateParameter(valid_620455, JString, required = false, + if valid_620456 != nil: + section.add "VpcId", valid_620456 + var valid_620457 = query.getOrDefault("NextToken") + valid_620457 = validateParameter(valid_620457, JString, required = false, default = nil) - if valid_620455 != nil: - section.add "NextToken", valid_620455 - var valid_620456 = query.getOrDefault("Action") - valid_620456 = validateParameter(valid_620456, JString, required = true, default = newJString( + if valid_620457 != nil: + section.add "NextToken", valid_620457 + var valid_620458 = query.getOrDefault("Action") + valid_620458 = validateParameter(valid_620458, JString, required = true, default = newJString( "DescribeStaleSecurityGroups")) - if valid_620456 != nil: - section.add "Action", valid_620456 - var valid_620457 = query.getOrDefault("Version") - valid_620457 = validateParameter(valid_620457, JString, required = true, + if valid_620458 != nil: + section.add "Action", valid_620458 + var valid_620459 = query.getOrDefault("Version") + valid_620459 = validateParameter(valid_620459, JString, required = true, default = newJString("2016-11-15")) - if valid_620457 != nil: - section.add "Version", valid_620457 + if valid_620459 != nil: + section.add "Version", valid_620459 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -77071,61 +77098,61 @@ proc validate_GetDescribeStaleSecurityGroups_620450(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620458 = header.getOrDefault("X-Amz-Signature") - valid_620458 = validateParameter(valid_620458, JString, required = false, - default = nil) - if valid_620458 != nil: - section.add "X-Amz-Signature", valid_620458 - var valid_620459 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620459 = validateParameter(valid_620459, JString, required = false, - default = nil) - if valid_620459 != nil: - section.add "X-Amz-Content-Sha256", valid_620459 - var valid_620460 = header.getOrDefault("X-Amz-Date") + var valid_620460 = header.getOrDefault("X-Amz-Signature") valid_620460 = validateParameter(valid_620460, JString, required = false, default = nil) if valid_620460 != nil: - section.add "X-Amz-Date", valid_620460 - var valid_620461 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620460 + var valid_620461 = header.getOrDefault("X-Amz-Content-Sha256") valid_620461 = validateParameter(valid_620461, JString, required = false, default = nil) if valid_620461 != nil: - section.add "X-Amz-Credential", valid_620461 - var valid_620462 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620461 + var valid_620462 = header.getOrDefault("X-Amz-Date") valid_620462 = validateParameter(valid_620462, JString, required = false, default = nil) if valid_620462 != nil: - section.add "X-Amz-Security-Token", valid_620462 - var valid_620463 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620462 + var valid_620463 = header.getOrDefault("X-Amz-Credential") valid_620463 = validateParameter(valid_620463, JString, required = false, default = nil) if valid_620463 != nil: - section.add "X-Amz-Algorithm", valid_620463 - var valid_620464 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620463 + var valid_620464 = header.getOrDefault("X-Amz-Security-Token") valid_620464 = validateParameter(valid_620464, JString, required = false, default = nil) if valid_620464 != nil: - section.add "X-Amz-SignedHeaders", valid_620464 + section.add "X-Amz-Security-Token", valid_620464 + var valid_620465 = header.getOrDefault("X-Amz-Algorithm") + valid_620465 = validateParameter(valid_620465, JString, required = false, + default = nil) + if valid_620465 != nil: + section.add "X-Amz-Algorithm", valid_620465 + var valid_620466 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620466 = validateParameter(valid_620466, JString, required = false, + default = nil) + if valid_620466 != nil: + section.add "X-Amz-SignedHeaders", valid_620466 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620465: Call_GetDescribeStaleSecurityGroups_620449; path: JsonNode; +proc call*(call_620467: Call_GetDescribeStaleSecurityGroups_620451; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## [VPC only] Describes the stale security group rules for security groups in a specified VPC. Rules are stale when they reference a deleted security group in a peer VPC, or a security group in a peer VPC for which the VPC peering connection has been deleted. ## - let valid = call_620465.validator(path, query, header, formData, body) - let scheme = call_620465.pickScheme + let valid = call_620467.validator(path, query, header, formData, body) + let scheme = call_620467.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620465.url(scheme.get, call_620465.host, call_620465.base, - call_620465.route, valid.getOrDefault("path"), + let url = call_620467.url(scheme.get, call_620467.host, call_620467.base, + call_620467.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620465, url, valid) + result = atozHook(call_620467, url, valid) -proc call*(call_620466: Call_GetDescribeStaleSecurityGroups_620449; VpcId: string; +proc call*(call_620468: Call_GetDescribeStaleSecurityGroups_620451; VpcId: string; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Action: string = "DescribeStaleSecurityGroups"; Version: string = "2016-11-15"): Recallable = @@ -77141,24 +77168,24 @@ proc call*(call_620466: Call_GetDescribeStaleSecurityGroups_620449; VpcId: strin ## : The token for the next set of items to return. (You received this token from a prior call.) ## Action: string (required) ## Version: string (required) - var query_620467 = newJObject() - add(query_620467, "MaxResults", newJInt(MaxResults)) - add(query_620467, "DryRun", newJBool(DryRun)) - add(query_620467, "VpcId", newJString(VpcId)) - add(query_620467, "NextToken", newJString(NextToken)) - add(query_620467, "Action", newJString(Action)) - add(query_620467, "Version", newJString(Version)) - result = call_620466.call(nil, query_620467, nil, nil, nil) + var query_620469 = newJObject() + add(query_620469, "MaxResults", newJInt(MaxResults)) + add(query_620469, "DryRun", newJBool(DryRun)) + add(query_620469, "VpcId", newJString(VpcId)) + add(query_620469, "NextToken", newJString(NextToken)) + add(query_620469, "Action", newJString(Action)) + add(query_620469, "Version", newJString(Version)) + result = call_620468.call(nil, query_620469, nil, nil, nil) -var getDescribeStaleSecurityGroups* = Call_GetDescribeStaleSecurityGroups_620449( +var getDescribeStaleSecurityGroups* = Call_GetDescribeStaleSecurityGroups_620451( name: "getDescribeStaleSecurityGroups", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeStaleSecurityGroups", - validator: validate_GetDescribeStaleSecurityGroups_620450, base: "/", - url: url_GetDescribeStaleSecurityGroups_620451, + validator: validate_GetDescribeStaleSecurityGroups_620452, base: "/", + url: url_GetDescribeStaleSecurityGroups_620453, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeSubnets_620508 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeSubnets_620510(protocol: Scheme; host: string; base: string; + Call_PostDescribeSubnets_620510 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeSubnets_620512(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -77168,7 +77195,7 @@ proc url_PostDescribeSubnets_620510(protocol: Scheme; host: string; base: string else: result.path = base & route -proc validate_PostDescribeSubnets_620509(path: JsonNode; query: JsonNode; +proc validate_PostDescribeSubnets_620511(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Describes one or more of your subnets.

    For more information, see Your VPC and Subnets in the Amazon Virtual Private Cloud User Guide.

    @@ -77181,16 +77208,16 @@ proc validate_PostDescribeSubnets_620509(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620511 = query.getOrDefault("Action") - valid_620511 = validateParameter(valid_620511, JString, required = true, + var valid_620513 = query.getOrDefault("Action") + valid_620513 = validateParameter(valid_620513, JString, required = true, default = newJString("DescribeSubnets")) - if valid_620511 != nil: - section.add "Action", valid_620511 - var valid_620512 = query.getOrDefault("Version") - valid_620512 = validateParameter(valid_620512, JString, required = true, + if valid_620513 != nil: + section.add "Action", valid_620513 + var valid_620514 = query.getOrDefault("Version") + valid_620514 = validateParameter(valid_620514, JString, required = true, default = newJString("2016-11-15")) - if valid_620512 != nil: - section.add "Version", valid_620512 + if valid_620514 != nil: + section.add "Version", valid_620514 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -77201,41 +77228,41 @@ proc validate_PostDescribeSubnets_620509(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620513 = header.getOrDefault("X-Amz-Signature") - valid_620513 = validateParameter(valid_620513, JString, required = false, - default = nil) - if valid_620513 != nil: - section.add "X-Amz-Signature", valid_620513 - var valid_620514 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620514 = validateParameter(valid_620514, JString, required = false, - default = nil) - if valid_620514 != nil: - section.add "X-Amz-Content-Sha256", valid_620514 - var valid_620515 = header.getOrDefault("X-Amz-Date") + var valid_620515 = header.getOrDefault("X-Amz-Signature") valid_620515 = validateParameter(valid_620515, JString, required = false, default = nil) if valid_620515 != nil: - section.add "X-Amz-Date", valid_620515 - var valid_620516 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620515 + var valid_620516 = header.getOrDefault("X-Amz-Content-Sha256") valid_620516 = validateParameter(valid_620516, JString, required = false, default = nil) if valid_620516 != nil: - section.add "X-Amz-Credential", valid_620516 - var valid_620517 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620516 + var valid_620517 = header.getOrDefault("X-Amz-Date") valid_620517 = validateParameter(valid_620517, JString, required = false, default = nil) if valid_620517 != nil: - section.add "X-Amz-Security-Token", valid_620517 - var valid_620518 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620517 + var valid_620518 = header.getOrDefault("X-Amz-Credential") valid_620518 = validateParameter(valid_620518, JString, required = false, default = nil) if valid_620518 != nil: - section.add "X-Amz-Algorithm", valid_620518 - var valid_620519 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620518 + var valid_620519 = header.getOrDefault("X-Amz-Security-Token") valid_620519 = validateParameter(valid_620519, JString, required = false, default = nil) if valid_620519 != nil: - section.add "X-Amz-SignedHeaders", valid_620519 + section.add "X-Amz-Security-Token", valid_620519 + var valid_620520 = header.getOrDefault("X-Amz-Algorithm") + valid_620520 = validateParameter(valid_620520, JString, required = false, + default = nil) + if valid_620520 != nil: + section.add "X-Amz-Algorithm", valid_620520 + var valid_620521 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620521 = validateParameter(valid_620521, JString, required = false, + default = nil) + if valid_620521 != nil: + section.add "X-Amz-SignedHeaders", valid_620521 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -77249,47 +77276,47 @@ proc validate_PostDescribeSubnets_620509(path: JsonNode; query: JsonNode; ## Filter: JArray ## :

    One or more filters.

    section = newJObject() - var valid_620520 = formData.getOrDefault("NextToken") - valid_620520 = validateParameter(valid_620520, JString, required = false, - default = nil) - if valid_620520 != nil: - section.add "NextToken", valid_620520 - var valid_620521 = formData.getOrDefault("SubnetId") - valid_620521 = validateParameter(valid_620521, JArray, required = false, + var valid_620522 = formData.getOrDefault("NextToken") + valid_620522 = validateParameter(valid_620522, JString, required = false, default = nil) - if valid_620521 != nil: - section.add "SubnetId", valid_620521 - var valid_620522 = formData.getOrDefault("DryRun") - valid_620522 = validateParameter(valid_620522, JBool, required = false, default = nil) if valid_620522 != nil: - section.add "DryRun", valid_620522 - var valid_620523 = formData.getOrDefault("MaxResults") - valid_620523 = validateParameter(valid_620523, JInt, required = false, default = nil) - if valid_620523 != nil: - section.add "MaxResults", valid_620523 - var valid_620524 = formData.getOrDefault("Filter") - valid_620524 = validateParameter(valid_620524, JArray, required = false, + section.add "NextToken", valid_620522 + var valid_620523 = formData.getOrDefault("SubnetId") + valid_620523 = validateParameter(valid_620523, JArray, required = false, default = nil) + if valid_620523 != nil: + section.add "SubnetId", valid_620523 + var valid_620524 = formData.getOrDefault("DryRun") + valid_620524 = validateParameter(valid_620524, JBool, required = false, default = nil) if valid_620524 != nil: - section.add "Filter", valid_620524 + section.add "DryRun", valid_620524 + var valid_620525 = formData.getOrDefault("MaxResults") + valid_620525 = validateParameter(valid_620525, JInt, required = false, default = nil) + if valid_620525 != nil: + section.add "MaxResults", valid_620525 + var valid_620526 = formData.getOrDefault("Filter") + valid_620526 = validateParameter(valid_620526, JArray, required = false, + default = nil) + if valid_620526 != nil: + section.add "Filter", valid_620526 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620525: Call_PostDescribeSubnets_620508; path: JsonNode; +proc call*(call_620527: Call_PostDescribeSubnets_620510; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Describes one or more of your subnets.

    For more information, see Your VPC and Subnets in the Amazon Virtual Private Cloud User Guide.

    ## - let valid = call_620525.validator(path, query, header, formData, body) - let scheme = call_620525.pickScheme + let valid = call_620527.validator(path, query, header, formData, body) + let scheme = call_620527.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620525.url(scheme.get, call_620525.host, call_620525.base, - call_620525.route, valid.getOrDefault("path"), + let url = call_620527.url(scheme.get, call_620527.host, call_620527.base, + call_620527.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620525, url, valid) + result = atozHook(call_620527, url, valid) -proc call*(call_620526: Call_PostDescribeSubnets_620508; NextToken: string = ""; +proc call*(call_620528: Call_PostDescribeSubnets_620510; NextToken: string = ""; SubnetId: JsonNode = nil; DryRun: bool = false; Action: string = "DescribeSubnets"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -77307,27 +77334,27 @@ proc call*(call_620526: Call_PostDescribeSubnets_620508; NextToken: string = ""; ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## Filter: JArray ## :

    One or more filters.

    - var query_620527 = newJObject() - var formData_620528 = newJObject() - add(formData_620528, "NextToken", newJString(NextToken)) + var query_620529 = newJObject() + var formData_620530 = newJObject() + add(formData_620530, "NextToken", newJString(NextToken)) if SubnetId != nil: - formData_620528.add "SubnetId", SubnetId - add(formData_620528, "DryRun", newJBool(DryRun)) - add(query_620527, "Action", newJString(Action)) - add(query_620527, "Version", newJString(Version)) - add(formData_620528, "MaxResults", newJInt(MaxResults)) + formData_620530.add "SubnetId", SubnetId + add(formData_620530, "DryRun", newJBool(DryRun)) + add(query_620529, "Action", newJString(Action)) + add(query_620529, "Version", newJString(Version)) + add(formData_620530, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_620528.add "Filter", Filter - result = call_620526.call(nil, query_620527, nil, formData_620528, nil) + formData_620530.add "Filter", Filter + result = call_620528.call(nil, query_620529, nil, formData_620530, nil) -var postDescribeSubnets* = Call_PostDescribeSubnets_620508( +var postDescribeSubnets* = Call_PostDescribeSubnets_620510( name: "postDescribeSubnets", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeSubnets", - validator: validate_PostDescribeSubnets_620509, base: "/", - url: url_PostDescribeSubnets_620510, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDescribeSubnets_620511, base: "/", + url: url_PostDescribeSubnets_620512, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeSubnets_620488 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeSubnets_620490(protocol: Scheme; host: string; base: string; + Call_GetDescribeSubnets_620490 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeSubnets_620492(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -77337,7 +77364,7 @@ proc url_GetDescribeSubnets_620490(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetDescribeSubnets_620489(path: JsonNode; query: JsonNode; +proc validate_GetDescribeSubnets_620491(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Describes one or more of your subnets.

    For more information, see Your VPC and Subnets in the Amazon Virtual Private Cloud User Guide.

    @@ -77360,39 +77387,39 @@ proc validate_GetDescribeSubnets_620489(path: JsonNode; query: JsonNode; ## :

    One or more subnet IDs.

    Default: Describes all your subnets.

    ## Version: JString (required) section = newJObject() - var valid_620491 = query.getOrDefault("MaxResults") - valid_620491 = validateParameter(valid_620491, JInt, required = false, default = nil) - if valid_620491 != nil: - section.add "MaxResults", valid_620491 - var valid_620492 = query.getOrDefault("DryRun") - valid_620492 = validateParameter(valid_620492, JBool, required = false, default = nil) - if valid_620492 != nil: - section.add "DryRun", valid_620492 - var valid_620493 = query.getOrDefault("NextToken") - valid_620493 = validateParameter(valid_620493, JString, required = false, - default = nil) + var valid_620493 = query.getOrDefault("MaxResults") + valid_620493 = validateParameter(valid_620493, JInt, required = false, default = nil) if valid_620493 != nil: - section.add "NextToken", valid_620493 - var valid_620494 = query.getOrDefault("Filter") - valid_620494 = validateParameter(valid_620494, JArray, required = false, - default = nil) + section.add "MaxResults", valid_620493 + var valid_620494 = query.getOrDefault("DryRun") + valid_620494 = validateParameter(valid_620494, JBool, required = false, default = nil) if valid_620494 != nil: - section.add "Filter", valid_620494 - var valid_620495 = query.getOrDefault("Action") - valid_620495 = validateParameter(valid_620495, JString, required = true, - default = newJString("DescribeSubnets")) + section.add "DryRun", valid_620494 + var valid_620495 = query.getOrDefault("NextToken") + valid_620495 = validateParameter(valid_620495, JString, required = false, + default = nil) if valid_620495 != nil: - section.add "Action", valid_620495 - var valid_620496 = query.getOrDefault("SubnetId") + section.add "NextToken", valid_620495 + var valid_620496 = query.getOrDefault("Filter") valid_620496 = validateParameter(valid_620496, JArray, required = false, default = nil) if valid_620496 != nil: - section.add "SubnetId", valid_620496 - var valid_620497 = query.getOrDefault("Version") + section.add "Filter", valid_620496 + var valid_620497 = query.getOrDefault("Action") valid_620497 = validateParameter(valid_620497, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("DescribeSubnets")) if valid_620497 != nil: - section.add "Version", valid_620497 + section.add "Action", valid_620497 + var valid_620498 = query.getOrDefault("SubnetId") + valid_620498 = validateParameter(valid_620498, JArray, required = false, + default = nil) + if valid_620498 != nil: + section.add "SubnetId", valid_620498 + var valid_620499 = query.getOrDefault("Version") + valid_620499 = validateParameter(valid_620499, JString, required = true, + default = newJString("2016-11-15")) + if valid_620499 != nil: + section.add "Version", valid_620499 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -77403,61 +77430,61 @@ proc validate_GetDescribeSubnets_620489(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620498 = header.getOrDefault("X-Amz-Signature") - valid_620498 = validateParameter(valid_620498, JString, required = false, - default = nil) - if valid_620498 != nil: - section.add "X-Amz-Signature", valid_620498 - var valid_620499 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620499 = validateParameter(valid_620499, JString, required = false, - default = nil) - if valid_620499 != nil: - section.add "X-Amz-Content-Sha256", valid_620499 - var valid_620500 = header.getOrDefault("X-Amz-Date") + var valid_620500 = header.getOrDefault("X-Amz-Signature") valid_620500 = validateParameter(valid_620500, JString, required = false, default = nil) if valid_620500 != nil: - section.add "X-Amz-Date", valid_620500 - var valid_620501 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620500 + var valid_620501 = header.getOrDefault("X-Amz-Content-Sha256") valid_620501 = validateParameter(valid_620501, JString, required = false, default = nil) if valid_620501 != nil: - section.add "X-Amz-Credential", valid_620501 - var valid_620502 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620501 + var valid_620502 = header.getOrDefault("X-Amz-Date") valid_620502 = validateParameter(valid_620502, JString, required = false, default = nil) if valid_620502 != nil: - section.add "X-Amz-Security-Token", valid_620502 - var valid_620503 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620502 + var valid_620503 = header.getOrDefault("X-Amz-Credential") valid_620503 = validateParameter(valid_620503, JString, required = false, default = nil) if valid_620503 != nil: - section.add "X-Amz-Algorithm", valid_620503 - var valid_620504 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620503 + var valid_620504 = header.getOrDefault("X-Amz-Security-Token") valid_620504 = validateParameter(valid_620504, JString, required = false, default = nil) if valid_620504 != nil: - section.add "X-Amz-SignedHeaders", valid_620504 + section.add "X-Amz-Security-Token", valid_620504 + var valid_620505 = header.getOrDefault("X-Amz-Algorithm") + valid_620505 = validateParameter(valid_620505, JString, required = false, + default = nil) + if valid_620505 != nil: + section.add "X-Amz-Algorithm", valid_620505 + var valid_620506 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620506 = validateParameter(valid_620506, JString, required = false, + default = nil) + if valid_620506 != nil: + section.add "X-Amz-SignedHeaders", valid_620506 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620505: Call_GetDescribeSubnets_620488; path: JsonNode; +proc call*(call_620507: Call_GetDescribeSubnets_620490; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Describes one or more of your subnets.

    For more information, see Your VPC and Subnets in the Amazon Virtual Private Cloud User Guide.

    ## - let valid = call_620505.validator(path, query, header, formData, body) - let scheme = call_620505.pickScheme + let valid = call_620507.validator(path, query, header, formData, body) + let scheme = call_620507.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620505.url(scheme.get, call_620505.host, call_620505.base, - call_620505.route, valid.getOrDefault("path"), + let url = call_620507.url(scheme.get, call_620507.host, call_620507.base, + call_620507.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620505, url, valid) + result = atozHook(call_620507, url, valid) -proc call*(call_620506: Call_GetDescribeSubnets_620488; MaxResults: int = 0; +proc call*(call_620508: Call_GetDescribeSubnets_620490; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeSubnets"; SubnetId: JsonNode = nil; Version: string = "2016-11-15"): Recallable = @@ -77475,26 +77502,26 @@ proc call*(call_620506: Call_GetDescribeSubnets_620488; MaxResults: int = 0; ## SubnetId: JArray ## :

    One or more subnet IDs.

    Default: Describes all your subnets.

    ## Version: string (required) - var query_620507 = newJObject() - add(query_620507, "MaxResults", newJInt(MaxResults)) - add(query_620507, "DryRun", newJBool(DryRun)) - add(query_620507, "NextToken", newJString(NextToken)) + var query_620509 = newJObject() + add(query_620509, "MaxResults", newJInt(MaxResults)) + add(query_620509, "DryRun", newJBool(DryRun)) + add(query_620509, "NextToken", newJString(NextToken)) if Filter != nil: - query_620507.add "Filter", Filter - add(query_620507, "Action", newJString(Action)) + query_620509.add "Filter", Filter + add(query_620509, "Action", newJString(Action)) if SubnetId != nil: - query_620507.add "SubnetId", SubnetId - add(query_620507, "Version", newJString(Version)) - result = call_620506.call(nil, query_620507, nil, nil, nil) + query_620509.add "SubnetId", SubnetId + add(query_620509, "Version", newJString(Version)) + result = call_620508.call(nil, query_620509, nil, nil, nil) -var getDescribeSubnets* = Call_GetDescribeSubnets_620488( +var getDescribeSubnets* = Call_GetDescribeSubnets_620490( name: "getDescribeSubnets", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=DescribeSubnets", validator: validate_GetDescribeSubnets_620489, - base: "/", url: url_GetDescribeSubnets_620490, + route: "/#Action=DescribeSubnets", validator: validate_GetDescribeSubnets_620491, + base: "/", url: url_GetDescribeSubnets_620492, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeTags_620548 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeTags_620550(protocol: Scheme; host: string; base: string; + Call_PostDescribeTags_620550 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeTags_620552(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -77504,7 +77531,7 @@ proc url_PostDescribeTags_620550(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostDescribeTags_620549(path: JsonNode; query: JsonNode; +proc validate_PostDescribeTags_620551(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Describes the specified tags for your EC2 resources.

    For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide.

    @@ -77517,16 +77544,16 @@ proc validate_PostDescribeTags_620549(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620551 = query.getOrDefault("Action") - valid_620551 = validateParameter(valid_620551, JString, required = true, + var valid_620553 = query.getOrDefault("Action") + valid_620553 = validateParameter(valid_620553, JString, required = true, default = newJString("DescribeTags")) - if valid_620551 != nil: - section.add "Action", valid_620551 - var valid_620552 = query.getOrDefault("Version") - valid_620552 = validateParameter(valid_620552, JString, required = true, + if valid_620553 != nil: + section.add "Action", valid_620553 + var valid_620554 = query.getOrDefault("Version") + valid_620554 = validateParameter(valid_620554, JString, required = true, default = newJString("2016-11-15")) - if valid_620552 != nil: - section.add "Version", valid_620552 + if valid_620554 != nil: + section.add "Version", valid_620554 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -77537,41 +77564,41 @@ proc validate_PostDescribeTags_620549(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620553 = header.getOrDefault("X-Amz-Signature") - valid_620553 = validateParameter(valid_620553, JString, required = false, - default = nil) - if valid_620553 != nil: - section.add "X-Amz-Signature", valid_620553 - var valid_620554 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620554 = validateParameter(valid_620554, JString, required = false, - default = nil) - if valid_620554 != nil: - section.add "X-Amz-Content-Sha256", valid_620554 - var valid_620555 = header.getOrDefault("X-Amz-Date") + var valid_620555 = header.getOrDefault("X-Amz-Signature") valid_620555 = validateParameter(valid_620555, JString, required = false, default = nil) if valid_620555 != nil: - section.add "X-Amz-Date", valid_620555 - var valid_620556 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620555 + var valid_620556 = header.getOrDefault("X-Amz-Content-Sha256") valid_620556 = validateParameter(valid_620556, JString, required = false, default = nil) if valid_620556 != nil: - section.add "X-Amz-Credential", valid_620556 - var valid_620557 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620556 + var valid_620557 = header.getOrDefault("X-Amz-Date") valid_620557 = validateParameter(valid_620557, JString, required = false, default = nil) if valid_620557 != nil: - section.add "X-Amz-Security-Token", valid_620557 - var valid_620558 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620557 + var valid_620558 = header.getOrDefault("X-Amz-Credential") valid_620558 = validateParameter(valid_620558, JString, required = false, default = nil) if valid_620558 != nil: - section.add "X-Amz-Algorithm", valid_620558 - var valid_620559 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620558 + var valid_620559 = header.getOrDefault("X-Amz-Security-Token") valid_620559 = validateParameter(valid_620559, JString, required = false, default = nil) if valid_620559 != nil: - section.add "X-Amz-SignedHeaders", valid_620559 + section.add "X-Amz-Security-Token", valid_620559 + var valid_620560 = header.getOrDefault("X-Amz-Algorithm") + valid_620560 = validateParameter(valid_620560, JString, required = false, + default = nil) + if valid_620560 != nil: + section.add "X-Amz-Algorithm", valid_620560 + var valid_620561 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620561 = validateParameter(valid_620561, JString, required = false, + default = nil) + if valid_620561 != nil: + section.add "X-Amz-SignedHeaders", valid_620561 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -77583,42 +77610,42 @@ proc validate_PostDescribeTags_620549(path: JsonNode; query: JsonNode; ## Filter: JArray ## :

    The filters.

    section = newJObject() - var valid_620560 = formData.getOrDefault("NextToken") - valid_620560 = validateParameter(valid_620560, JString, required = false, + var valid_620562 = formData.getOrDefault("NextToken") + valid_620562 = validateParameter(valid_620562, JString, required = false, default = nil) - if valid_620560 != nil: - section.add "NextToken", valid_620560 - var valid_620561 = formData.getOrDefault("DryRun") - valid_620561 = validateParameter(valid_620561, JBool, required = false, default = nil) - if valid_620561 != nil: - section.add "DryRun", valid_620561 - var valid_620562 = formData.getOrDefault("MaxResults") - valid_620562 = validateParameter(valid_620562, JInt, required = false, default = nil) if valid_620562 != nil: - section.add "MaxResults", valid_620562 - var valid_620563 = formData.getOrDefault("Filter") - valid_620563 = validateParameter(valid_620563, JArray, required = false, - default = nil) + section.add "NextToken", valid_620562 + var valid_620563 = formData.getOrDefault("DryRun") + valid_620563 = validateParameter(valid_620563, JBool, required = false, default = nil) if valid_620563 != nil: - section.add "Filter", valid_620563 + section.add "DryRun", valid_620563 + var valid_620564 = formData.getOrDefault("MaxResults") + valid_620564 = validateParameter(valid_620564, JInt, required = false, default = nil) + if valid_620564 != nil: + section.add "MaxResults", valid_620564 + var valid_620565 = formData.getOrDefault("Filter") + valid_620565 = validateParameter(valid_620565, JArray, required = false, + default = nil) + if valid_620565 != nil: + section.add "Filter", valid_620565 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620564: Call_PostDescribeTags_620548; path: JsonNode; +proc call*(call_620566: Call_PostDescribeTags_620550; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Describes the specified tags for your EC2 resources.

    For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_620564.validator(path, query, header, formData, body) - let scheme = call_620564.pickScheme + let valid = call_620566.validator(path, query, header, formData, body) + let scheme = call_620566.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620564.url(scheme.get, call_620564.host, call_620564.base, - call_620564.route, valid.getOrDefault("path"), + let url = call_620566.url(scheme.get, call_620566.host, call_620566.base, + call_620566.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620564, url, valid) + result = atozHook(call_620566, url, valid) -proc call*(call_620565: Call_PostDescribeTags_620548; NextToken: string = ""; +proc call*(call_620567: Call_PostDescribeTags_620550; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeTags"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = ## postDescribeTags @@ -77633,25 +77660,25 @@ proc call*(call_620565: Call_PostDescribeTags_620548; NextToken: string = ""; ## : The maximum number of results to return in a single call. This value can be between 5 and 1000. To retrieve the remaining results, make another call with the returned NextToken value. ## Filter: JArray ## :

    The filters.

    - var query_620566 = newJObject() - var formData_620567 = newJObject() - add(formData_620567, "NextToken", newJString(NextToken)) - add(formData_620567, "DryRun", newJBool(DryRun)) - add(query_620566, "Action", newJString(Action)) - add(query_620566, "Version", newJString(Version)) - add(formData_620567, "MaxResults", newJInt(MaxResults)) + var query_620568 = newJObject() + var formData_620569 = newJObject() + add(formData_620569, "NextToken", newJString(NextToken)) + add(formData_620569, "DryRun", newJBool(DryRun)) + add(query_620568, "Action", newJString(Action)) + add(query_620568, "Version", newJString(Version)) + add(formData_620569, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_620567.add "Filter", Filter - result = call_620565.call(nil, query_620566, nil, formData_620567, nil) + formData_620569.add "Filter", Filter + result = call_620567.call(nil, query_620568, nil, formData_620569, nil) -var postDescribeTags* = Call_PostDescribeTags_620548(name: "postDescribeTags", +var postDescribeTags* = Call_PostDescribeTags_620550(name: "postDescribeTags", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", - route: "/#Action=DescribeTags", validator: validate_PostDescribeTags_620549, - base: "/", url: url_PostDescribeTags_620550, + route: "/#Action=DescribeTags", validator: validate_PostDescribeTags_620551, + base: "/", url: url_PostDescribeTags_620552, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeTags_620529 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeTags_620531(protocol: Scheme; host: string; base: string; + Call_GetDescribeTags_620531 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeTags_620533(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -77661,7 +77688,7 @@ proc url_GetDescribeTags_620531(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetDescribeTags_620530(path: JsonNode; query: JsonNode; +proc validate_GetDescribeTags_620532(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Describes the specified tags for your EC2 resources.

    For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide.

    @@ -77682,34 +77709,34 @@ proc validate_GetDescribeTags_620530(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620532 = query.getOrDefault("MaxResults") - valid_620532 = validateParameter(valid_620532, JInt, required = false, default = nil) - if valid_620532 != nil: - section.add "MaxResults", valid_620532 - var valid_620533 = query.getOrDefault("DryRun") - valid_620533 = validateParameter(valid_620533, JBool, required = false, default = nil) - if valid_620533 != nil: - section.add "DryRun", valid_620533 - var valid_620534 = query.getOrDefault("NextToken") - valid_620534 = validateParameter(valid_620534, JString, required = false, - default = nil) + var valid_620534 = query.getOrDefault("MaxResults") + valid_620534 = validateParameter(valid_620534, JInt, required = false, default = nil) if valid_620534 != nil: - section.add "NextToken", valid_620534 - var valid_620535 = query.getOrDefault("Filter") - valid_620535 = validateParameter(valid_620535, JArray, required = false, - default = nil) + section.add "MaxResults", valid_620534 + var valid_620535 = query.getOrDefault("DryRun") + valid_620535 = validateParameter(valid_620535, JBool, required = false, default = nil) if valid_620535 != nil: - section.add "Filter", valid_620535 - var valid_620536 = query.getOrDefault("Action") - valid_620536 = validateParameter(valid_620536, JString, required = true, - default = newJString("DescribeTags")) + section.add "DryRun", valid_620535 + var valid_620536 = query.getOrDefault("NextToken") + valid_620536 = validateParameter(valid_620536, JString, required = false, + default = nil) if valid_620536 != nil: - section.add "Action", valid_620536 - var valid_620537 = query.getOrDefault("Version") - valid_620537 = validateParameter(valid_620537, JString, required = true, - default = newJString("2016-11-15")) + section.add "NextToken", valid_620536 + var valid_620537 = query.getOrDefault("Filter") + valid_620537 = validateParameter(valid_620537, JArray, required = false, + default = nil) if valid_620537 != nil: - section.add "Version", valid_620537 + section.add "Filter", valid_620537 + var valid_620538 = query.getOrDefault("Action") + valid_620538 = validateParameter(valid_620538, JString, required = true, + default = newJString("DescribeTags")) + if valid_620538 != nil: + section.add "Action", valid_620538 + var valid_620539 = query.getOrDefault("Version") + valid_620539 = validateParameter(valid_620539, JString, required = true, + default = newJString("2016-11-15")) + if valid_620539 != nil: + section.add "Version", valid_620539 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -77720,61 +77747,61 @@ proc validate_GetDescribeTags_620530(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620538 = header.getOrDefault("X-Amz-Signature") - valid_620538 = validateParameter(valid_620538, JString, required = false, - default = nil) - if valid_620538 != nil: - section.add "X-Amz-Signature", valid_620538 - var valid_620539 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620539 = validateParameter(valid_620539, JString, required = false, - default = nil) - if valid_620539 != nil: - section.add "X-Amz-Content-Sha256", valid_620539 - var valid_620540 = header.getOrDefault("X-Amz-Date") + var valid_620540 = header.getOrDefault("X-Amz-Signature") valid_620540 = validateParameter(valid_620540, JString, required = false, default = nil) if valid_620540 != nil: - section.add "X-Amz-Date", valid_620540 - var valid_620541 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620540 + var valid_620541 = header.getOrDefault("X-Amz-Content-Sha256") valid_620541 = validateParameter(valid_620541, JString, required = false, default = nil) if valid_620541 != nil: - section.add "X-Amz-Credential", valid_620541 - var valid_620542 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620541 + var valid_620542 = header.getOrDefault("X-Amz-Date") valid_620542 = validateParameter(valid_620542, JString, required = false, default = nil) if valid_620542 != nil: - section.add "X-Amz-Security-Token", valid_620542 - var valid_620543 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620542 + var valid_620543 = header.getOrDefault("X-Amz-Credential") valid_620543 = validateParameter(valid_620543, JString, required = false, default = nil) if valid_620543 != nil: - section.add "X-Amz-Algorithm", valid_620543 - var valid_620544 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620543 + var valid_620544 = header.getOrDefault("X-Amz-Security-Token") valid_620544 = validateParameter(valid_620544, JString, required = false, default = nil) if valid_620544 != nil: - section.add "X-Amz-SignedHeaders", valid_620544 + section.add "X-Amz-Security-Token", valid_620544 + var valid_620545 = header.getOrDefault("X-Amz-Algorithm") + valid_620545 = validateParameter(valid_620545, JString, required = false, + default = nil) + if valid_620545 != nil: + section.add "X-Amz-Algorithm", valid_620545 + var valid_620546 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620546 = validateParameter(valid_620546, JString, required = false, + default = nil) + if valid_620546 != nil: + section.add "X-Amz-SignedHeaders", valid_620546 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620545: Call_GetDescribeTags_620529; path: JsonNode; query: JsonNode; +proc call*(call_620547: Call_GetDescribeTags_620531; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Describes the specified tags for your EC2 resources.

    For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_620545.validator(path, query, header, formData, body) - let scheme = call_620545.pickScheme + let valid = call_620547.validator(path, query, header, formData, body) + let scheme = call_620547.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620545.url(scheme.get, call_620545.host, call_620545.base, - call_620545.route, valid.getOrDefault("path"), + let url = call_620547.url(scheme.get, call_620547.host, call_620547.base, + call_620547.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620545, url, valid) + result = atozHook(call_620547, url, valid) -proc call*(call_620546: Call_GetDescribeTags_620529; MaxResults: int = 0; +proc call*(call_620548: Call_GetDescribeTags_620531; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeTags"; Version: string = "2016-11-15"): Recallable = ## getDescribeTags @@ -77789,23 +77816,23 @@ proc call*(call_620546: Call_GetDescribeTags_620529; MaxResults: int = 0; ## :

    The filters.

    ## Action: string (required) ## Version: string (required) - var query_620547 = newJObject() - add(query_620547, "MaxResults", newJInt(MaxResults)) - add(query_620547, "DryRun", newJBool(DryRun)) - add(query_620547, "NextToken", newJString(NextToken)) + var query_620549 = newJObject() + add(query_620549, "MaxResults", newJInt(MaxResults)) + add(query_620549, "DryRun", newJBool(DryRun)) + add(query_620549, "NextToken", newJString(NextToken)) if Filter != nil: - query_620547.add "Filter", Filter - add(query_620547, "Action", newJString(Action)) - add(query_620547, "Version", newJString(Version)) - result = call_620546.call(nil, query_620547, nil, nil, nil) + query_620549.add "Filter", Filter + add(query_620549, "Action", newJString(Action)) + add(query_620549, "Version", newJString(Version)) + result = call_620548.call(nil, query_620549, nil, nil, nil) -var getDescribeTags* = Call_GetDescribeTags_620529(name: "getDescribeTags", +var getDescribeTags* = Call_GetDescribeTags_620531(name: "getDescribeTags", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=DescribeTags", validator: validate_GetDescribeTags_620530, - base: "/", url: url_GetDescribeTags_620531, schemes: {Scheme.Https, Scheme.Http}) + route: "/#Action=DescribeTags", validator: validate_GetDescribeTags_620532, + base: "/", url: url_GetDescribeTags_620533, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeTrafficMirrorFilters_620588 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeTrafficMirrorFilters_620590(protocol: Scheme; host: string; + Call_PostDescribeTrafficMirrorFilters_620590 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeTrafficMirrorFilters_620592(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -77815,7 +77842,7 @@ proc url_PostDescribeTrafficMirrorFilters_620590(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeTrafficMirrorFilters_620589(path: JsonNode; +proc validate_PostDescribeTrafficMirrorFilters_620591(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more Traffic Mirror filters. ## @@ -77827,16 +77854,16 @@ proc validate_PostDescribeTrafficMirrorFilters_620589(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620591 = query.getOrDefault("Action") - valid_620591 = validateParameter(valid_620591, JString, required = true, default = newJString( + var valid_620593 = query.getOrDefault("Action") + valid_620593 = validateParameter(valid_620593, JString, required = true, default = newJString( "DescribeTrafficMirrorFilters")) - if valid_620591 != nil: - section.add "Action", valid_620591 - var valid_620592 = query.getOrDefault("Version") - valid_620592 = validateParameter(valid_620592, JString, required = true, + if valid_620593 != nil: + section.add "Action", valid_620593 + var valid_620594 = query.getOrDefault("Version") + valid_620594 = validateParameter(valid_620594, JString, required = true, default = newJString("2016-11-15")) - if valid_620592 != nil: - section.add "Version", valid_620592 + if valid_620594 != nil: + section.add "Version", valid_620594 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -77847,41 +77874,41 @@ proc validate_PostDescribeTrafficMirrorFilters_620589(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620593 = header.getOrDefault("X-Amz-Signature") - valid_620593 = validateParameter(valid_620593, JString, required = false, - default = nil) - if valid_620593 != nil: - section.add "X-Amz-Signature", valid_620593 - var valid_620594 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620594 = validateParameter(valid_620594, JString, required = false, - default = nil) - if valid_620594 != nil: - section.add "X-Amz-Content-Sha256", valid_620594 - var valid_620595 = header.getOrDefault("X-Amz-Date") + var valid_620595 = header.getOrDefault("X-Amz-Signature") valid_620595 = validateParameter(valid_620595, JString, required = false, default = nil) if valid_620595 != nil: - section.add "X-Amz-Date", valid_620595 - var valid_620596 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620595 + var valid_620596 = header.getOrDefault("X-Amz-Content-Sha256") valid_620596 = validateParameter(valid_620596, JString, required = false, default = nil) if valid_620596 != nil: - section.add "X-Amz-Credential", valid_620596 - var valid_620597 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620596 + var valid_620597 = header.getOrDefault("X-Amz-Date") valid_620597 = validateParameter(valid_620597, JString, required = false, default = nil) if valid_620597 != nil: - section.add "X-Amz-Security-Token", valid_620597 - var valid_620598 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620597 + var valid_620598 = header.getOrDefault("X-Amz-Credential") valid_620598 = validateParameter(valid_620598, JString, required = false, default = nil) if valid_620598 != nil: - section.add "X-Amz-Algorithm", valid_620598 - var valid_620599 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620598 + var valid_620599 = header.getOrDefault("X-Amz-Security-Token") valid_620599 = validateParameter(valid_620599, JString, required = false, default = nil) if valid_620599 != nil: - section.add "X-Amz-SignedHeaders", valid_620599 + section.add "X-Amz-Security-Token", valid_620599 + var valid_620600 = header.getOrDefault("X-Amz-Algorithm") + valid_620600 = validateParameter(valid_620600, JString, required = false, + default = nil) + if valid_620600 != nil: + section.add "X-Amz-Algorithm", valid_620600 + var valid_620601 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620601 = validateParameter(valid_620601, JString, required = false, + default = nil) + if valid_620601 != nil: + section.add "X-Amz-SignedHeaders", valid_620601 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -77895,48 +77922,48 @@ proc validate_PostDescribeTrafficMirrorFilters_620589(path: JsonNode; ## Filter: JArray ## :

    One or more filters. The possible values are:

    section = newJObject() - var valid_620600 = formData.getOrDefault("NextToken") - valid_620600 = validateParameter(valid_620600, JString, required = false, + var valid_620602 = formData.getOrDefault("NextToken") + valid_620602 = validateParameter(valid_620602, JString, required = false, default = nil) - if valid_620600 != nil: - section.add "NextToken", valid_620600 - var valid_620601 = formData.getOrDefault("DryRun") - valid_620601 = validateParameter(valid_620601, JBool, required = false, default = nil) - if valid_620601 != nil: - section.add "DryRun", valid_620601 - var valid_620602 = formData.getOrDefault("MaxResults") - valid_620602 = validateParameter(valid_620602, JInt, required = false, default = nil) if valid_620602 != nil: - section.add "MaxResults", valid_620602 - var valid_620603 = formData.getOrDefault("TrafficMirrorFilterId") - valid_620603 = validateParameter(valid_620603, JArray, required = false, - default = nil) + section.add "NextToken", valid_620602 + var valid_620603 = formData.getOrDefault("DryRun") + valid_620603 = validateParameter(valid_620603, JBool, required = false, default = nil) if valid_620603 != nil: - section.add "TrafficMirrorFilterId", valid_620603 - var valid_620604 = formData.getOrDefault("Filter") - valid_620604 = validateParameter(valid_620604, JArray, required = false, - default = nil) + section.add "DryRun", valid_620603 + var valid_620604 = formData.getOrDefault("MaxResults") + valid_620604 = validateParameter(valid_620604, JInt, required = false, default = nil) if valid_620604 != nil: - section.add "Filter", valid_620604 + section.add "MaxResults", valid_620604 + var valid_620605 = formData.getOrDefault("TrafficMirrorFilterId") + valid_620605 = validateParameter(valid_620605, JArray, required = false, + default = nil) + if valid_620605 != nil: + section.add "TrafficMirrorFilterId", valid_620605 + var valid_620606 = formData.getOrDefault("Filter") + valid_620606 = validateParameter(valid_620606, JArray, required = false, + default = nil) + if valid_620606 != nil: + section.add "Filter", valid_620606 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620605: Call_PostDescribeTrafficMirrorFilters_620588; +proc call*(call_620607: Call_PostDescribeTrafficMirrorFilters_620590; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more Traffic Mirror filters. ## - let valid = call_620605.validator(path, query, header, formData, body) - let scheme = call_620605.pickScheme + let valid = call_620607.validator(path, query, header, formData, body) + let scheme = call_620607.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620605.url(scheme.get, call_620605.host, call_620605.base, - call_620605.route, valid.getOrDefault("path"), + let url = call_620607.url(scheme.get, call_620607.host, call_620607.base, + call_620607.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620605, url, valid) + result = atozHook(call_620607, url, valid) -proc call*(call_620606: Call_PostDescribeTrafficMirrorFilters_620588; +proc call*(call_620608: Call_PostDescribeTrafficMirrorFilters_620590; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeTrafficMirrorFilters"; Version: string = "2016-11-15"; MaxResults: int = 0; @@ -77955,28 +77982,28 @@ proc call*(call_620606: Call_PostDescribeTrafficMirrorFilters_620588; ## : The ID of the Traffic Mirror filter. ## Filter: JArray ## :

    One or more filters. The possible values are:

    - var query_620607 = newJObject() - var formData_620608 = newJObject() - add(formData_620608, "NextToken", newJString(NextToken)) - add(formData_620608, "DryRun", newJBool(DryRun)) - add(query_620607, "Action", newJString(Action)) - add(query_620607, "Version", newJString(Version)) - add(formData_620608, "MaxResults", newJInt(MaxResults)) + var query_620609 = newJObject() + var formData_620610 = newJObject() + add(formData_620610, "NextToken", newJString(NextToken)) + add(formData_620610, "DryRun", newJBool(DryRun)) + add(query_620609, "Action", newJString(Action)) + add(query_620609, "Version", newJString(Version)) + add(formData_620610, "MaxResults", newJInt(MaxResults)) if TrafficMirrorFilterId != nil: - formData_620608.add "TrafficMirrorFilterId", TrafficMirrorFilterId + formData_620610.add "TrafficMirrorFilterId", TrafficMirrorFilterId if Filter != nil: - formData_620608.add "Filter", Filter - result = call_620606.call(nil, query_620607, nil, formData_620608, nil) + formData_620610.add "Filter", Filter + result = call_620608.call(nil, query_620609, nil, formData_620610, nil) -var postDescribeTrafficMirrorFilters* = Call_PostDescribeTrafficMirrorFilters_620588( +var postDescribeTrafficMirrorFilters* = Call_PostDescribeTrafficMirrorFilters_620590( name: "postDescribeTrafficMirrorFilters", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeTrafficMirrorFilters", - validator: validate_PostDescribeTrafficMirrorFilters_620589, base: "/", - url: url_PostDescribeTrafficMirrorFilters_620590, + validator: validate_PostDescribeTrafficMirrorFilters_620591, base: "/", + url: url_PostDescribeTrafficMirrorFilters_620592, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeTrafficMirrorFilters_620568 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeTrafficMirrorFilters_620570(protocol: Scheme; host: string; + Call_GetDescribeTrafficMirrorFilters_620570 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeTrafficMirrorFilters_620572(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -77986,7 +78013,7 @@ proc url_GetDescribeTrafficMirrorFilters_620570(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeTrafficMirrorFilters_620569(path: JsonNode; +proc validate_GetDescribeTrafficMirrorFilters_620571(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more Traffic Mirror filters. ## @@ -78008,39 +78035,39 @@ proc validate_GetDescribeTrafficMirrorFilters_620569(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620571 = query.getOrDefault("MaxResults") - valid_620571 = validateParameter(valid_620571, JInt, required = false, default = nil) - if valid_620571 != nil: - section.add "MaxResults", valid_620571 - var valid_620572 = query.getOrDefault("DryRun") - valid_620572 = validateParameter(valid_620572, JBool, required = false, default = nil) - if valid_620572 != nil: - section.add "DryRun", valid_620572 - var valid_620573 = query.getOrDefault("NextToken") - valid_620573 = validateParameter(valid_620573, JString, required = false, - default = nil) + var valid_620573 = query.getOrDefault("MaxResults") + valid_620573 = validateParameter(valid_620573, JInt, required = false, default = nil) if valid_620573 != nil: - section.add "NextToken", valid_620573 - var valid_620574 = query.getOrDefault("Filter") - valid_620574 = validateParameter(valid_620574, JArray, required = false, - default = nil) + section.add "MaxResults", valid_620573 + var valid_620574 = query.getOrDefault("DryRun") + valid_620574 = validateParameter(valid_620574, JBool, required = false, default = nil) if valid_620574 != nil: - section.add "Filter", valid_620574 - var valid_620575 = query.getOrDefault("TrafficMirrorFilterId") - valid_620575 = validateParameter(valid_620575, JArray, required = false, + section.add "DryRun", valid_620574 + var valid_620575 = query.getOrDefault("NextToken") + valid_620575 = validateParameter(valid_620575, JString, required = false, default = nil) if valid_620575 != nil: - section.add "TrafficMirrorFilterId", valid_620575 - var valid_620576 = query.getOrDefault("Action") - valid_620576 = validateParameter(valid_620576, JString, required = true, default = newJString( - "DescribeTrafficMirrorFilters")) + section.add "NextToken", valid_620575 + var valid_620576 = query.getOrDefault("Filter") + valid_620576 = validateParameter(valid_620576, JArray, required = false, + default = nil) if valid_620576 != nil: - section.add "Action", valid_620576 - var valid_620577 = query.getOrDefault("Version") - valid_620577 = validateParameter(valid_620577, JString, required = true, - default = newJString("2016-11-15")) + section.add "Filter", valid_620576 + var valid_620577 = query.getOrDefault("TrafficMirrorFilterId") + valid_620577 = validateParameter(valid_620577, JArray, required = false, + default = nil) if valid_620577 != nil: - section.add "Version", valid_620577 + section.add "TrafficMirrorFilterId", valid_620577 + var valid_620578 = query.getOrDefault("Action") + valid_620578 = validateParameter(valid_620578, JString, required = true, default = newJString( + "DescribeTrafficMirrorFilters")) + if valid_620578 != nil: + section.add "Action", valid_620578 + var valid_620579 = query.getOrDefault("Version") + valid_620579 = validateParameter(valid_620579, JString, required = true, + default = newJString("2016-11-15")) + if valid_620579 != nil: + section.add "Version", valid_620579 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -78051,62 +78078,62 @@ proc validate_GetDescribeTrafficMirrorFilters_620569(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620578 = header.getOrDefault("X-Amz-Signature") - valid_620578 = validateParameter(valid_620578, JString, required = false, - default = nil) - if valid_620578 != nil: - section.add "X-Amz-Signature", valid_620578 - var valid_620579 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620579 = validateParameter(valid_620579, JString, required = false, - default = nil) - if valid_620579 != nil: - section.add "X-Amz-Content-Sha256", valid_620579 - var valid_620580 = header.getOrDefault("X-Amz-Date") + var valid_620580 = header.getOrDefault("X-Amz-Signature") valid_620580 = validateParameter(valid_620580, JString, required = false, default = nil) if valid_620580 != nil: - section.add "X-Amz-Date", valid_620580 - var valid_620581 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620580 + var valid_620581 = header.getOrDefault("X-Amz-Content-Sha256") valid_620581 = validateParameter(valid_620581, JString, required = false, default = nil) if valid_620581 != nil: - section.add "X-Amz-Credential", valid_620581 - var valid_620582 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620581 + var valid_620582 = header.getOrDefault("X-Amz-Date") valid_620582 = validateParameter(valid_620582, JString, required = false, default = nil) if valid_620582 != nil: - section.add "X-Amz-Security-Token", valid_620582 - var valid_620583 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620582 + var valid_620583 = header.getOrDefault("X-Amz-Credential") valid_620583 = validateParameter(valid_620583, JString, required = false, default = nil) if valid_620583 != nil: - section.add "X-Amz-Algorithm", valid_620583 - var valid_620584 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620583 + var valid_620584 = header.getOrDefault("X-Amz-Security-Token") valid_620584 = validateParameter(valid_620584, JString, required = false, default = nil) if valid_620584 != nil: - section.add "X-Amz-SignedHeaders", valid_620584 + section.add "X-Amz-Security-Token", valid_620584 + var valid_620585 = header.getOrDefault("X-Amz-Algorithm") + valid_620585 = validateParameter(valid_620585, JString, required = false, + default = nil) + if valid_620585 != nil: + section.add "X-Amz-Algorithm", valid_620585 + var valid_620586 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620586 = validateParameter(valid_620586, JString, required = false, + default = nil) + if valid_620586 != nil: + section.add "X-Amz-SignedHeaders", valid_620586 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620585: Call_GetDescribeTrafficMirrorFilters_620568; +proc call*(call_620587: Call_GetDescribeTrafficMirrorFilters_620570; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more Traffic Mirror filters. ## - let valid = call_620585.validator(path, query, header, formData, body) - let scheme = call_620585.pickScheme + let valid = call_620587.validator(path, query, header, formData, body) + let scheme = call_620587.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620585.url(scheme.get, call_620585.host, call_620585.base, - call_620585.route, valid.getOrDefault("path"), + let url = call_620587.url(scheme.get, call_620587.host, call_620587.base, + call_620587.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620585, url, valid) + result = atozHook(call_620587, url, valid) -proc call*(call_620586: Call_GetDescribeTrafficMirrorFilters_620568; +proc call*(call_620588: Call_GetDescribeTrafficMirrorFilters_620570; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; TrafficMirrorFilterId: JsonNode = nil; Action: string = "DescribeTrafficMirrorFilters"; @@ -78125,27 +78152,27 @@ proc call*(call_620586: Call_GetDescribeTrafficMirrorFilters_620568; ## : The ID of the Traffic Mirror filter. ## Action: string (required) ## Version: string (required) - var query_620587 = newJObject() - add(query_620587, "MaxResults", newJInt(MaxResults)) - add(query_620587, "DryRun", newJBool(DryRun)) - add(query_620587, "NextToken", newJString(NextToken)) + var query_620589 = newJObject() + add(query_620589, "MaxResults", newJInt(MaxResults)) + add(query_620589, "DryRun", newJBool(DryRun)) + add(query_620589, "NextToken", newJString(NextToken)) if Filter != nil: - query_620587.add "Filter", Filter + query_620589.add "Filter", Filter if TrafficMirrorFilterId != nil: - query_620587.add "TrafficMirrorFilterId", TrafficMirrorFilterId - add(query_620587, "Action", newJString(Action)) - add(query_620587, "Version", newJString(Version)) - result = call_620586.call(nil, query_620587, nil, nil, nil) + query_620589.add "TrafficMirrorFilterId", TrafficMirrorFilterId + add(query_620589, "Action", newJString(Action)) + add(query_620589, "Version", newJString(Version)) + result = call_620588.call(nil, query_620589, nil, nil, nil) -var getDescribeTrafficMirrorFilters* = Call_GetDescribeTrafficMirrorFilters_620568( +var getDescribeTrafficMirrorFilters* = Call_GetDescribeTrafficMirrorFilters_620570( name: "getDescribeTrafficMirrorFilters", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeTrafficMirrorFilters", - validator: validate_GetDescribeTrafficMirrorFilters_620569, base: "/", - url: url_GetDescribeTrafficMirrorFilters_620570, + validator: validate_GetDescribeTrafficMirrorFilters_620571, base: "/", + url: url_GetDescribeTrafficMirrorFilters_620572, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeTrafficMirrorSessions_620629 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeTrafficMirrorSessions_620631(protocol: Scheme; host: string; + Call_PostDescribeTrafficMirrorSessions_620631 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeTrafficMirrorSessions_620633(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -78155,7 +78182,7 @@ proc url_PostDescribeTrafficMirrorSessions_620631(protocol: Scheme; host: string else: result.path = base & route -proc validate_PostDescribeTrafficMirrorSessions_620630(path: JsonNode; +proc validate_PostDescribeTrafficMirrorSessions_620632(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more Traffic Mirror sessions. By default, all Traffic Mirror sessions are described. Alternatively, you can filter the results. ## @@ -78167,16 +78194,16 @@ proc validate_PostDescribeTrafficMirrorSessions_620630(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620632 = query.getOrDefault("Action") - valid_620632 = validateParameter(valid_620632, JString, required = true, default = newJString( + var valid_620634 = query.getOrDefault("Action") + valid_620634 = validateParameter(valid_620634, JString, required = true, default = newJString( "DescribeTrafficMirrorSessions")) - if valid_620632 != nil: - section.add "Action", valid_620632 - var valid_620633 = query.getOrDefault("Version") - valid_620633 = validateParameter(valid_620633, JString, required = true, + if valid_620634 != nil: + section.add "Action", valid_620634 + var valid_620635 = query.getOrDefault("Version") + valid_620635 = validateParameter(valid_620635, JString, required = true, default = newJString("2016-11-15")) - if valid_620633 != nil: - section.add "Version", valid_620633 + if valid_620635 != nil: + section.add "Version", valid_620635 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -78187,41 +78214,41 @@ proc validate_PostDescribeTrafficMirrorSessions_620630(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620634 = header.getOrDefault("X-Amz-Signature") - valid_620634 = validateParameter(valid_620634, JString, required = false, - default = nil) - if valid_620634 != nil: - section.add "X-Amz-Signature", valid_620634 - var valid_620635 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620635 = validateParameter(valid_620635, JString, required = false, - default = nil) - if valid_620635 != nil: - section.add "X-Amz-Content-Sha256", valid_620635 - var valid_620636 = header.getOrDefault("X-Amz-Date") + var valid_620636 = header.getOrDefault("X-Amz-Signature") valid_620636 = validateParameter(valid_620636, JString, required = false, default = nil) if valid_620636 != nil: - section.add "X-Amz-Date", valid_620636 - var valid_620637 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620636 + var valid_620637 = header.getOrDefault("X-Amz-Content-Sha256") valid_620637 = validateParameter(valid_620637, JString, required = false, default = nil) if valid_620637 != nil: - section.add "X-Amz-Credential", valid_620637 - var valid_620638 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620637 + var valid_620638 = header.getOrDefault("X-Amz-Date") valid_620638 = validateParameter(valid_620638, JString, required = false, default = nil) if valid_620638 != nil: - section.add "X-Amz-Security-Token", valid_620638 - var valid_620639 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620638 + var valid_620639 = header.getOrDefault("X-Amz-Credential") valid_620639 = validateParameter(valid_620639, JString, required = false, default = nil) if valid_620639 != nil: - section.add "X-Amz-Algorithm", valid_620639 - var valid_620640 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620639 + var valid_620640 = header.getOrDefault("X-Amz-Security-Token") valid_620640 = validateParameter(valid_620640, JString, required = false, default = nil) if valid_620640 != nil: - section.add "X-Amz-SignedHeaders", valid_620640 + section.add "X-Amz-Security-Token", valid_620640 + var valid_620641 = header.getOrDefault("X-Amz-Algorithm") + valid_620641 = validateParameter(valid_620641, JString, required = false, + default = nil) + if valid_620641 != nil: + section.add "X-Amz-Algorithm", valid_620641 + var valid_620642 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620642 = validateParameter(valid_620642, JString, required = false, + default = nil) + if valid_620642 != nil: + section.add "X-Amz-SignedHeaders", valid_620642 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -78235,48 +78262,48 @@ proc validate_PostDescribeTrafficMirrorSessions_620630(path: JsonNode; ## Filter: JArray ## :

    One or more filters. The possible values are:

    section = newJObject() - var valid_620641 = formData.getOrDefault("NextToken") - valid_620641 = validateParameter(valid_620641, JString, required = false, + var valid_620643 = formData.getOrDefault("NextToken") + valid_620643 = validateParameter(valid_620643, JString, required = false, default = nil) - if valid_620641 != nil: - section.add "NextToken", valid_620641 - var valid_620642 = formData.getOrDefault("TrafficMirrorSessionId") - valid_620642 = validateParameter(valid_620642, JArray, required = false, - default = nil) - if valid_620642 != nil: - section.add "TrafficMirrorSessionId", valid_620642 - var valid_620643 = formData.getOrDefault("DryRun") - valid_620643 = validateParameter(valid_620643, JBool, required = false, default = nil) if valid_620643 != nil: - section.add "DryRun", valid_620643 - var valid_620644 = formData.getOrDefault("MaxResults") - valid_620644 = validateParameter(valid_620644, JInt, required = false, default = nil) - if valid_620644 != nil: - section.add "MaxResults", valid_620644 - var valid_620645 = formData.getOrDefault("Filter") - valid_620645 = validateParameter(valid_620645, JArray, required = false, + section.add "NextToken", valid_620643 + var valid_620644 = formData.getOrDefault("TrafficMirrorSessionId") + valid_620644 = validateParameter(valid_620644, JArray, required = false, default = nil) + if valid_620644 != nil: + section.add "TrafficMirrorSessionId", valid_620644 + var valid_620645 = formData.getOrDefault("DryRun") + valid_620645 = validateParameter(valid_620645, JBool, required = false, default = nil) if valid_620645 != nil: - section.add "Filter", valid_620645 + section.add "DryRun", valid_620645 + var valid_620646 = formData.getOrDefault("MaxResults") + valid_620646 = validateParameter(valid_620646, JInt, required = false, default = nil) + if valid_620646 != nil: + section.add "MaxResults", valid_620646 + var valid_620647 = formData.getOrDefault("Filter") + valid_620647 = validateParameter(valid_620647, JArray, required = false, + default = nil) + if valid_620647 != nil: + section.add "Filter", valid_620647 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620646: Call_PostDescribeTrafficMirrorSessions_620629; +proc call*(call_620648: Call_PostDescribeTrafficMirrorSessions_620631; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more Traffic Mirror sessions. By default, all Traffic Mirror sessions are described. Alternatively, you can filter the results. ## - let valid = call_620646.validator(path, query, header, formData, body) - let scheme = call_620646.pickScheme + let valid = call_620648.validator(path, query, header, formData, body) + let scheme = call_620648.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620646.url(scheme.get, call_620646.host, call_620646.base, - call_620646.route, valid.getOrDefault("path"), + let url = call_620648.url(scheme.get, call_620648.host, call_620648.base, + call_620648.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620646, url, valid) + result = atozHook(call_620648, url, valid) -proc call*(call_620647: Call_PostDescribeTrafficMirrorSessions_620629; +proc call*(call_620649: Call_PostDescribeTrafficMirrorSessions_620631; NextToken: string = ""; TrafficMirrorSessionId: JsonNode = nil; DryRun: bool = false; Action: string = "DescribeTrafficMirrorSessions"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -78294,28 +78321,28 @@ proc call*(call_620647: Call_PostDescribeTrafficMirrorSessions_620629; ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## Filter: JArray ## :

    One or more filters. The possible values are:

    - var query_620648 = newJObject() - var formData_620649 = newJObject() - add(formData_620649, "NextToken", newJString(NextToken)) + var query_620650 = newJObject() + var formData_620651 = newJObject() + add(formData_620651, "NextToken", newJString(NextToken)) if TrafficMirrorSessionId != nil: - formData_620649.add "TrafficMirrorSessionId", TrafficMirrorSessionId - add(formData_620649, "DryRun", newJBool(DryRun)) - add(query_620648, "Action", newJString(Action)) - add(query_620648, "Version", newJString(Version)) - add(formData_620649, "MaxResults", newJInt(MaxResults)) + formData_620651.add "TrafficMirrorSessionId", TrafficMirrorSessionId + add(formData_620651, "DryRun", newJBool(DryRun)) + add(query_620650, "Action", newJString(Action)) + add(query_620650, "Version", newJString(Version)) + add(formData_620651, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_620649.add "Filter", Filter - result = call_620647.call(nil, query_620648, nil, formData_620649, nil) + formData_620651.add "Filter", Filter + result = call_620649.call(nil, query_620650, nil, formData_620651, nil) -var postDescribeTrafficMirrorSessions* = Call_PostDescribeTrafficMirrorSessions_620629( +var postDescribeTrafficMirrorSessions* = Call_PostDescribeTrafficMirrorSessions_620631( name: "postDescribeTrafficMirrorSessions", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeTrafficMirrorSessions", - validator: validate_PostDescribeTrafficMirrorSessions_620630, base: "/", - url: url_PostDescribeTrafficMirrorSessions_620631, + validator: validate_PostDescribeTrafficMirrorSessions_620632, base: "/", + url: url_PostDescribeTrafficMirrorSessions_620633, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeTrafficMirrorSessions_620609 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeTrafficMirrorSessions_620611(protocol: Scheme; host: string; + Call_GetDescribeTrafficMirrorSessions_620611 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeTrafficMirrorSessions_620613(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -78325,7 +78352,7 @@ proc url_GetDescribeTrafficMirrorSessions_620611(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeTrafficMirrorSessions_620610(path: JsonNode; +proc validate_GetDescribeTrafficMirrorSessions_620612(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more Traffic Mirror sessions. By default, all Traffic Mirror sessions are described. Alternatively, you can filter the results. ## @@ -78347,39 +78374,39 @@ proc validate_GetDescribeTrafficMirrorSessions_620610(path: JsonNode; ## TrafficMirrorSessionId: JArray ## : The ID of the Traffic Mirror session. section = newJObject() - var valid_620612 = query.getOrDefault("MaxResults") - valid_620612 = validateParameter(valid_620612, JInt, required = false, default = nil) - if valid_620612 != nil: - section.add "MaxResults", valid_620612 - var valid_620613 = query.getOrDefault("DryRun") - valid_620613 = validateParameter(valid_620613, JBool, required = false, default = nil) - if valid_620613 != nil: - section.add "DryRun", valid_620613 - var valid_620614 = query.getOrDefault("NextToken") - valid_620614 = validateParameter(valid_620614, JString, required = false, - default = nil) + var valid_620614 = query.getOrDefault("MaxResults") + valid_620614 = validateParameter(valid_620614, JInt, required = false, default = nil) if valid_620614 != nil: - section.add "NextToken", valid_620614 - var valid_620615 = query.getOrDefault("Filter") - valid_620615 = validateParameter(valid_620615, JArray, required = false, - default = nil) + section.add "MaxResults", valid_620614 + var valid_620615 = query.getOrDefault("DryRun") + valid_620615 = validateParameter(valid_620615, JBool, required = false, default = nil) if valid_620615 != nil: - section.add "Filter", valid_620615 - var valid_620616 = query.getOrDefault("Action") - valid_620616 = validateParameter(valid_620616, JString, required = true, default = newJString( - "DescribeTrafficMirrorSessions")) + section.add "DryRun", valid_620615 + var valid_620616 = query.getOrDefault("NextToken") + valid_620616 = validateParameter(valid_620616, JString, required = false, + default = nil) if valid_620616 != nil: - section.add "Action", valid_620616 - var valid_620617 = query.getOrDefault("Version") - valid_620617 = validateParameter(valid_620617, JString, required = true, - default = newJString("2016-11-15")) - if valid_620617 != nil: - section.add "Version", valid_620617 - var valid_620618 = query.getOrDefault("TrafficMirrorSessionId") - valid_620618 = validateParameter(valid_620618, JArray, required = false, + section.add "NextToken", valid_620616 + var valid_620617 = query.getOrDefault("Filter") + valid_620617 = validateParameter(valid_620617, JArray, required = false, default = nil) + if valid_620617 != nil: + section.add "Filter", valid_620617 + var valid_620618 = query.getOrDefault("Action") + valid_620618 = validateParameter(valid_620618, JString, required = true, default = newJString( + "DescribeTrafficMirrorSessions")) if valid_620618 != nil: - section.add "TrafficMirrorSessionId", valid_620618 + section.add "Action", valid_620618 + var valid_620619 = query.getOrDefault("Version") + valid_620619 = validateParameter(valid_620619, JString, required = true, + default = newJString("2016-11-15")) + if valid_620619 != nil: + section.add "Version", valid_620619 + var valid_620620 = query.getOrDefault("TrafficMirrorSessionId") + valid_620620 = validateParameter(valid_620620, JArray, required = false, + default = nil) + if valid_620620 != nil: + section.add "TrafficMirrorSessionId", valid_620620 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -78390,62 +78417,62 @@ proc validate_GetDescribeTrafficMirrorSessions_620610(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620619 = header.getOrDefault("X-Amz-Signature") - valid_620619 = validateParameter(valid_620619, JString, required = false, - default = nil) - if valid_620619 != nil: - section.add "X-Amz-Signature", valid_620619 - var valid_620620 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620620 = validateParameter(valid_620620, JString, required = false, - default = nil) - if valid_620620 != nil: - section.add "X-Amz-Content-Sha256", valid_620620 - var valid_620621 = header.getOrDefault("X-Amz-Date") + var valid_620621 = header.getOrDefault("X-Amz-Signature") valid_620621 = validateParameter(valid_620621, JString, required = false, default = nil) if valid_620621 != nil: - section.add "X-Amz-Date", valid_620621 - var valid_620622 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620621 + var valid_620622 = header.getOrDefault("X-Amz-Content-Sha256") valid_620622 = validateParameter(valid_620622, JString, required = false, default = nil) if valid_620622 != nil: - section.add "X-Amz-Credential", valid_620622 - var valid_620623 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620622 + var valid_620623 = header.getOrDefault("X-Amz-Date") valid_620623 = validateParameter(valid_620623, JString, required = false, default = nil) if valid_620623 != nil: - section.add "X-Amz-Security-Token", valid_620623 - var valid_620624 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620623 + var valid_620624 = header.getOrDefault("X-Amz-Credential") valid_620624 = validateParameter(valid_620624, JString, required = false, default = nil) if valid_620624 != nil: - section.add "X-Amz-Algorithm", valid_620624 - var valid_620625 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620624 + var valid_620625 = header.getOrDefault("X-Amz-Security-Token") valid_620625 = validateParameter(valid_620625, JString, required = false, default = nil) if valid_620625 != nil: - section.add "X-Amz-SignedHeaders", valid_620625 + section.add "X-Amz-Security-Token", valid_620625 + var valid_620626 = header.getOrDefault("X-Amz-Algorithm") + valid_620626 = validateParameter(valid_620626, JString, required = false, + default = nil) + if valid_620626 != nil: + section.add "X-Amz-Algorithm", valid_620626 + var valid_620627 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620627 = validateParameter(valid_620627, JString, required = false, + default = nil) + if valid_620627 != nil: + section.add "X-Amz-SignedHeaders", valid_620627 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620626: Call_GetDescribeTrafficMirrorSessions_620609; +proc call*(call_620628: Call_GetDescribeTrafficMirrorSessions_620611; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more Traffic Mirror sessions. By default, all Traffic Mirror sessions are described. Alternatively, you can filter the results. ## - let valid = call_620626.validator(path, query, header, formData, body) - let scheme = call_620626.pickScheme + let valid = call_620628.validator(path, query, header, formData, body) + let scheme = call_620628.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620626.url(scheme.get, call_620626.host, call_620626.base, - call_620626.route, valid.getOrDefault("path"), + let url = call_620628.url(scheme.get, call_620628.host, call_620628.base, + call_620628.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620626, url, valid) + result = atozHook(call_620628, url, valid) -proc call*(call_620627: Call_GetDescribeTrafficMirrorSessions_620609; +proc call*(call_620629: Call_GetDescribeTrafficMirrorSessions_620611; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeTrafficMirrorSessions"; Version: string = "2016-11-15"; TrafficMirrorSessionId: JsonNode = nil): Recallable = @@ -78463,27 +78490,27 @@ proc call*(call_620627: Call_GetDescribeTrafficMirrorSessions_620609; ## Version: string (required) ## TrafficMirrorSessionId: JArray ## : The ID of the Traffic Mirror session. - var query_620628 = newJObject() - add(query_620628, "MaxResults", newJInt(MaxResults)) - add(query_620628, "DryRun", newJBool(DryRun)) - add(query_620628, "NextToken", newJString(NextToken)) + var query_620630 = newJObject() + add(query_620630, "MaxResults", newJInt(MaxResults)) + add(query_620630, "DryRun", newJBool(DryRun)) + add(query_620630, "NextToken", newJString(NextToken)) if Filter != nil: - query_620628.add "Filter", Filter - add(query_620628, "Action", newJString(Action)) - add(query_620628, "Version", newJString(Version)) + query_620630.add "Filter", Filter + add(query_620630, "Action", newJString(Action)) + add(query_620630, "Version", newJString(Version)) if TrafficMirrorSessionId != nil: - query_620628.add "TrafficMirrorSessionId", TrafficMirrorSessionId - result = call_620627.call(nil, query_620628, nil, nil, nil) + query_620630.add "TrafficMirrorSessionId", TrafficMirrorSessionId + result = call_620629.call(nil, query_620630, nil, nil, nil) -var getDescribeTrafficMirrorSessions* = Call_GetDescribeTrafficMirrorSessions_620609( +var getDescribeTrafficMirrorSessions* = Call_GetDescribeTrafficMirrorSessions_620611( name: "getDescribeTrafficMirrorSessions", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeTrafficMirrorSessions", - validator: validate_GetDescribeTrafficMirrorSessions_620610, base: "/", - url: url_GetDescribeTrafficMirrorSessions_620611, + validator: validate_GetDescribeTrafficMirrorSessions_620612, base: "/", + url: url_GetDescribeTrafficMirrorSessions_620613, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeTrafficMirrorTargets_620670 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeTrafficMirrorTargets_620672(protocol: Scheme; host: string; + Call_PostDescribeTrafficMirrorTargets_620672 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeTrafficMirrorTargets_620674(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -78493,7 +78520,7 @@ proc url_PostDescribeTrafficMirrorTargets_620672(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeTrafficMirrorTargets_620671(path: JsonNode; +proc validate_PostDescribeTrafficMirrorTargets_620673(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Information about one or more Traffic Mirror targets. ## @@ -78505,16 +78532,16 @@ proc validate_PostDescribeTrafficMirrorTargets_620671(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620673 = query.getOrDefault("Action") - valid_620673 = validateParameter(valid_620673, JString, required = true, default = newJString( + var valid_620675 = query.getOrDefault("Action") + valid_620675 = validateParameter(valid_620675, JString, required = true, default = newJString( "DescribeTrafficMirrorTargets")) - if valid_620673 != nil: - section.add "Action", valid_620673 - var valid_620674 = query.getOrDefault("Version") - valid_620674 = validateParameter(valid_620674, JString, required = true, + if valid_620675 != nil: + section.add "Action", valid_620675 + var valid_620676 = query.getOrDefault("Version") + valid_620676 = validateParameter(valid_620676, JString, required = true, default = newJString("2016-11-15")) - if valid_620674 != nil: - section.add "Version", valid_620674 + if valid_620676 != nil: + section.add "Version", valid_620676 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -78525,41 +78552,41 @@ proc validate_PostDescribeTrafficMirrorTargets_620671(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620675 = header.getOrDefault("X-Amz-Signature") - valid_620675 = validateParameter(valid_620675, JString, required = false, - default = nil) - if valid_620675 != nil: - section.add "X-Amz-Signature", valid_620675 - var valid_620676 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620676 = validateParameter(valid_620676, JString, required = false, - default = nil) - if valid_620676 != nil: - section.add "X-Amz-Content-Sha256", valid_620676 - var valid_620677 = header.getOrDefault("X-Amz-Date") + var valid_620677 = header.getOrDefault("X-Amz-Signature") valid_620677 = validateParameter(valid_620677, JString, required = false, default = nil) if valid_620677 != nil: - section.add "X-Amz-Date", valid_620677 - var valid_620678 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620677 + var valid_620678 = header.getOrDefault("X-Amz-Content-Sha256") valid_620678 = validateParameter(valid_620678, JString, required = false, default = nil) if valid_620678 != nil: - section.add "X-Amz-Credential", valid_620678 - var valid_620679 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620678 + var valid_620679 = header.getOrDefault("X-Amz-Date") valid_620679 = validateParameter(valid_620679, JString, required = false, default = nil) if valid_620679 != nil: - section.add "X-Amz-Security-Token", valid_620679 - var valid_620680 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620679 + var valid_620680 = header.getOrDefault("X-Amz-Credential") valid_620680 = validateParameter(valid_620680, JString, required = false, default = nil) if valid_620680 != nil: - section.add "X-Amz-Algorithm", valid_620680 - var valid_620681 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620680 + var valid_620681 = header.getOrDefault("X-Amz-Security-Token") valid_620681 = validateParameter(valid_620681, JString, required = false, default = nil) if valid_620681 != nil: - section.add "X-Amz-SignedHeaders", valid_620681 + section.add "X-Amz-Security-Token", valid_620681 + var valid_620682 = header.getOrDefault("X-Amz-Algorithm") + valid_620682 = validateParameter(valid_620682, JString, required = false, + default = nil) + if valid_620682 != nil: + section.add "X-Amz-Algorithm", valid_620682 + var valid_620683 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620683 = validateParameter(valid_620683, JString, required = false, + default = nil) + if valid_620683 != nil: + section.add "X-Amz-SignedHeaders", valid_620683 result.add "header", section ## parameters in `formData` object: ## TrafficMirrorTargetId: JArray @@ -78573,48 +78600,48 @@ proc validate_PostDescribeTrafficMirrorTargets_620671(path: JsonNode; ## Filter: JArray ## :

    One or more filters. The possible values are:

    section = newJObject() - var valid_620682 = formData.getOrDefault("TrafficMirrorTargetId") - valid_620682 = validateParameter(valid_620682, JArray, required = false, + var valid_620684 = formData.getOrDefault("TrafficMirrorTargetId") + valid_620684 = validateParameter(valid_620684, JArray, required = false, default = nil) - if valid_620682 != nil: - section.add "TrafficMirrorTargetId", valid_620682 - var valid_620683 = formData.getOrDefault("NextToken") - valid_620683 = validateParameter(valid_620683, JString, required = false, - default = nil) - if valid_620683 != nil: - section.add "NextToken", valid_620683 - var valid_620684 = formData.getOrDefault("DryRun") - valid_620684 = validateParameter(valid_620684, JBool, required = false, default = nil) if valid_620684 != nil: - section.add "DryRun", valid_620684 - var valid_620685 = formData.getOrDefault("MaxResults") - valid_620685 = validateParameter(valid_620685, JInt, required = false, default = nil) - if valid_620685 != nil: - section.add "MaxResults", valid_620685 - var valid_620686 = formData.getOrDefault("Filter") - valid_620686 = validateParameter(valid_620686, JArray, required = false, + section.add "TrafficMirrorTargetId", valid_620684 + var valid_620685 = formData.getOrDefault("NextToken") + valid_620685 = validateParameter(valid_620685, JString, required = false, default = nil) + if valid_620685 != nil: + section.add "NextToken", valid_620685 + var valid_620686 = formData.getOrDefault("DryRun") + valid_620686 = validateParameter(valid_620686, JBool, required = false, default = nil) if valid_620686 != nil: - section.add "Filter", valid_620686 + section.add "DryRun", valid_620686 + var valid_620687 = formData.getOrDefault("MaxResults") + valid_620687 = validateParameter(valid_620687, JInt, required = false, default = nil) + if valid_620687 != nil: + section.add "MaxResults", valid_620687 + var valid_620688 = formData.getOrDefault("Filter") + valid_620688 = validateParameter(valid_620688, JArray, required = false, + default = nil) + if valid_620688 != nil: + section.add "Filter", valid_620688 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620687: Call_PostDescribeTrafficMirrorTargets_620670; +proc call*(call_620689: Call_PostDescribeTrafficMirrorTargets_620672; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Information about one or more Traffic Mirror targets. ## - let valid = call_620687.validator(path, query, header, formData, body) - let scheme = call_620687.pickScheme + let valid = call_620689.validator(path, query, header, formData, body) + let scheme = call_620689.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620687.url(scheme.get, call_620687.host, call_620687.base, - call_620687.route, valid.getOrDefault("path"), + let url = call_620689.url(scheme.get, call_620689.host, call_620689.base, + call_620689.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620687, url, valid) + result = atozHook(call_620689, url, valid) -proc call*(call_620688: Call_PostDescribeTrafficMirrorTargets_620670; +proc call*(call_620690: Call_PostDescribeTrafficMirrorTargets_620672; TrafficMirrorTargetId: JsonNode = nil; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeTrafficMirrorTargets"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -78632,28 +78659,28 @@ proc call*(call_620688: Call_PostDescribeTrafficMirrorTargets_620670; ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## Filter: JArray ## :

    One or more filters. The possible values are:

    - var query_620689 = newJObject() - var formData_620690 = newJObject() + var query_620691 = newJObject() + var formData_620692 = newJObject() if TrafficMirrorTargetId != nil: - formData_620690.add "TrafficMirrorTargetId", TrafficMirrorTargetId - add(formData_620690, "NextToken", newJString(NextToken)) - add(formData_620690, "DryRun", newJBool(DryRun)) - add(query_620689, "Action", newJString(Action)) - add(query_620689, "Version", newJString(Version)) - add(formData_620690, "MaxResults", newJInt(MaxResults)) + formData_620692.add "TrafficMirrorTargetId", TrafficMirrorTargetId + add(formData_620692, "NextToken", newJString(NextToken)) + add(formData_620692, "DryRun", newJBool(DryRun)) + add(query_620691, "Action", newJString(Action)) + add(query_620691, "Version", newJString(Version)) + add(formData_620692, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_620690.add "Filter", Filter - result = call_620688.call(nil, query_620689, nil, formData_620690, nil) + formData_620692.add "Filter", Filter + result = call_620690.call(nil, query_620691, nil, formData_620692, nil) -var postDescribeTrafficMirrorTargets* = Call_PostDescribeTrafficMirrorTargets_620670( +var postDescribeTrafficMirrorTargets* = Call_PostDescribeTrafficMirrorTargets_620672( name: "postDescribeTrafficMirrorTargets", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeTrafficMirrorTargets", - validator: validate_PostDescribeTrafficMirrorTargets_620671, base: "/", - url: url_PostDescribeTrafficMirrorTargets_620672, + validator: validate_PostDescribeTrafficMirrorTargets_620673, base: "/", + url: url_PostDescribeTrafficMirrorTargets_620674, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeTrafficMirrorTargets_620650 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeTrafficMirrorTargets_620652(protocol: Scheme; host: string; + Call_GetDescribeTrafficMirrorTargets_620652 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeTrafficMirrorTargets_620654(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -78663,7 +78690,7 @@ proc url_GetDescribeTrafficMirrorTargets_620652(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeTrafficMirrorTargets_620651(path: JsonNode; +proc validate_GetDescribeTrafficMirrorTargets_620653(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Information about one or more Traffic Mirror targets. ## @@ -78685,39 +78712,39 @@ proc validate_GetDescribeTrafficMirrorTargets_620651(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620653 = query.getOrDefault("MaxResults") - valid_620653 = validateParameter(valid_620653, JInt, required = false, default = nil) - if valid_620653 != nil: - section.add "MaxResults", valid_620653 - var valid_620654 = query.getOrDefault("TrafficMirrorTargetId") - valid_620654 = validateParameter(valid_620654, JArray, required = false, - default = nil) - if valid_620654 != nil: - section.add "TrafficMirrorTargetId", valid_620654 - var valid_620655 = query.getOrDefault("DryRun") - valid_620655 = validateParameter(valid_620655, JBool, required = false, default = nil) + var valid_620655 = query.getOrDefault("MaxResults") + valid_620655 = validateParameter(valid_620655, JInt, required = false, default = nil) if valid_620655 != nil: - section.add "DryRun", valid_620655 - var valid_620656 = query.getOrDefault("NextToken") - valid_620656 = validateParameter(valid_620656, JString, required = false, + section.add "MaxResults", valid_620655 + var valid_620656 = query.getOrDefault("TrafficMirrorTargetId") + valid_620656 = validateParameter(valid_620656, JArray, required = false, default = nil) if valid_620656 != nil: - section.add "NextToken", valid_620656 - var valid_620657 = query.getOrDefault("Filter") - valid_620657 = validateParameter(valid_620657, JArray, required = false, - default = nil) + section.add "TrafficMirrorTargetId", valid_620656 + var valid_620657 = query.getOrDefault("DryRun") + valid_620657 = validateParameter(valid_620657, JBool, required = false, default = nil) if valid_620657 != nil: - section.add "Filter", valid_620657 - var valid_620658 = query.getOrDefault("Action") - valid_620658 = validateParameter(valid_620658, JString, required = true, default = newJString( - "DescribeTrafficMirrorTargets")) + section.add "DryRun", valid_620657 + var valid_620658 = query.getOrDefault("NextToken") + valid_620658 = validateParameter(valid_620658, JString, required = false, + default = nil) if valid_620658 != nil: - section.add "Action", valid_620658 - var valid_620659 = query.getOrDefault("Version") - valid_620659 = validateParameter(valid_620659, JString, required = true, - default = newJString("2016-11-15")) + section.add "NextToken", valid_620658 + var valid_620659 = query.getOrDefault("Filter") + valid_620659 = validateParameter(valid_620659, JArray, required = false, + default = nil) if valid_620659 != nil: - section.add "Version", valid_620659 + section.add "Filter", valid_620659 + var valid_620660 = query.getOrDefault("Action") + valid_620660 = validateParameter(valid_620660, JString, required = true, default = newJString( + "DescribeTrafficMirrorTargets")) + if valid_620660 != nil: + section.add "Action", valid_620660 + var valid_620661 = query.getOrDefault("Version") + valid_620661 = validateParameter(valid_620661, JString, required = true, + default = newJString("2016-11-15")) + if valid_620661 != nil: + section.add "Version", valid_620661 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -78728,62 +78755,62 @@ proc validate_GetDescribeTrafficMirrorTargets_620651(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620660 = header.getOrDefault("X-Amz-Signature") - valid_620660 = validateParameter(valid_620660, JString, required = false, - default = nil) - if valid_620660 != nil: - section.add "X-Amz-Signature", valid_620660 - var valid_620661 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620661 = validateParameter(valid_620661, JString, required = false, - default = nil) - if valid_620661 != nil: - section.add "X-Amz-Content-Sha256", valid_620661 - var valid_620662 = header.getOrDefault("X-Amz-Date") + var valid_620662 = header.getOrDefault("X-Amz-Signature") valid_620662 = validateParameter(valid_620662, JString, required = false, default = nil) if valid_620662 != nil: - section.add "X-Amz-Date", valid_620662 - var valid_620663 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620662 + var valid_620663 = header.getOrDefault("X-Amz-Content-Sha256") valid_620663 = validateParameter(valid_620663, JString, required = false, default = nil) if valid_620663 != nil: - section.add "X-Amz-Credential", valid_620663 - var valid_620664 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620663 + var valid_620664 = header.getOrDefault("X-Amz-Date") valid_620664 = validateParameter(valid_620664, JString, required = false, default = nil) if valid_620664 != nil: - section.add "X-Amz-Security-Token", valid_620664 - var valid_620665 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620664 + var valid_620665 = header.getOrDefault("X-Amz-Credential") valid_620665 = validateParameter(valid_620665, JString, required = false, default = nil) if valid_620665 != nil: - section.add "X-Amz-Algorithm", valid_620665 - var valid_620666 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620665 + var valid_620666 = header.getOrDefault("X-Amz-Security-Token") valid_620666 = validateParameter(valid_620666, JString, required = false, default = nil) if valid_620666 != nil: - section.add "X-Amz-SignedHeaders", valid_620666 + section.add "X-Amz-Security-Token", valid_620666 + var valid_620667 = header.getOrDefault("X-Amz-Algorithm") + valid_620667 = validateParameter(valid_620667, JString, required = false, + default = nil) + if valid_620667 != nil: + section.add "X-Amz-Algorithm", valid_620667 + var valid_620668 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620668 = validateParameter(valid_620668, JString, required = false, + default = nil) + if valid_620668 != nil: + section.add "X-Amz-SignedHeaders", valid_620668 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620667: Call_GetDescribeTrafficMirrorTargets_620650; +proc call*(call_620669: Call_GetDescribeTrafficMirrorTargets_620652; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Information about one or more Traffic Mirror targets. ## - let valid = call_620667.validator(path, query, header, formData, body) - let scheme = call_620667.pickScheme + let valid = call_620669.validator(path, query, header, formData, body) + let scheme = call_620669.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620667.url(scheme.get, call_620667.host, call_620667.base, - call_620667.route, valid.getOrDefault("path"), + let url = call_620669.url(scheme.get, call_620669.host, call_620669.base, + call_620669.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620667, url, valid) + result = atozHook(call_620669, url, valid) -proc call*(call_620668: Call_GetDescribeTrafficMirrorTargets_620650; +proc call*(call_620670: Call_GetDescribeTrafficMirrorTargets_620652; MaxResults: int = 0; TrafficMirrorTargetId: JsonNode = nil; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeTrafficMirrorTargets"; @@ -78802,27 +78829,27 @@ proc call*(call_620668: Call_GetDescribeTrafficMirrorTargets_620650; ## :

    One or more filters. The possible values are:

    ## Action: string (required) ## Version: string (required) - var query_620669 = newJObject() - add(query_620669, "MaxResults", newJInt(MaxResults)) + var query_620671 = newJObject() + add(query_620671, "MaxResults", newJInt(MaxResults)) if TrafficMirrorTargetId != nil: - query_620669.add "TrafficMirrorTargetId", TrafficMirrorTargetId - add(query_620669, "DryRun", newJBool(DryRun)) - add(query_620669, "NextToken", newJString(NextToken)) + query_620671.add "TrafficMirrorTargetId", TrafficMirrorTargetId + add(query_620671, "DryRun", newJBool(DryRun)) + add(query_620671, "NextToken", newJString(NextToken)) if Filter != nil: - query_620669.add "Filter", Filter - add(query_620669, "Action", newJString(Action)) - add(query_620669, "Version", newJString(Version)) - result = call_620668.call(nil, query_620669, nil, nil, nil) + query_620671.add "Filter", Filter + add(query_620671, "Action", newJString(Action)) + add(query_620671, "Version", newJString(Version)) + result = call_620670.call(nil, query_620671, nil, nil, nil) -var getDescribeTrafficMirrorTargets* = Call_GetDescribeTrafficMirrorTargets_620650( +var getDescribeTrafficMirrorTargets* = Call_GetDescribeTrafficMirrorTargets_620652( name: "getDescribeTrafficMirrorTargets", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeTrafficMirrorTargets", - validator: validate_GetDescribeTrafficMirrorTargets_620651, base: "/", - url: url_GetDescribeTrafficMirrorTargets_620652, + validator: validate_GetDescribeTrafficMirrorTargets_620653, base: "/", + url: url_GetDescribeTrafficMirrorTargets_620654, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeTransitGatewayAttachments_620711 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeTransitGatewayAttachments_620713(protocol: Scheme; + Call_PostDescribeTransitGatewayAttachments_620713 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeTransitGatewayAttachments_620715(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -78832,7 +78859,7 @@ proc url_PostDescribeTransitGatewayAttachments_620713(protocol: Scheme; else: result.path = base & route -proc validate_PostDescribeTransitGatewayAttachments_620712(path: JsonNode; +proc validate_PostDescribeTransitGatewayAttachments_620714(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more attachments between resources and transit gateways. By default, all attachments are described. Alternatively, you can filter the results by attachment ID, attachment state, resource ID, or resource owner. ## @@ -78844,16 +78871,16 @@ proc validate_PostDescribeTransitGatewayAttachments_620712(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620714 = query.getOrDefault("Action") - valid_620714 = validateParameter(valid_620714, JString, required = true, default = newJString( + var valid_620716 = query.getOrDefault("Action") + valid_620716 = validateParameter(valid_620716, JString, required = true, default = newJString( "DescribeTransitGatewayAttachments")) - if valid_620714 != nil: - section.add "Action", valid_620714 - var valid_620715 = query.getOrDefault("Version") - valid_620715 = validateParameter(valid_620715, JString, required = true, + if valid_620716 != nil: + section.add "Action", valid_620716 + var valid_620717 = query.getOrDefault("Version") + valid_620717 = validateParameter(valid_620717, JString, required = true, default = newJString("2016-11-15")) - if valid_620715 != nil: - section.add "Version", valid_620715 + if valid_620717 != nil: + section.add "Version", valid_620717 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -78864,41 +78891,41 @@ proc validate_PostDescribeTransitGatewayAttachments_620712(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620716 = header.getOrDefault("X-Amz-Signature") - valid_620716 = validateParameter(valid_620716, JString, required = false, - default = nil) - if valid_620716 != nil: - section.add "X-Amz-Signature", valid_620716 - var valid_620717 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620717 = validateParameter(valid_620717, JString, required = false, - default = nil) - if valid_620717 != nil: - section.add "X-Amz-Content-Sha256", valid_620717 - var valid_620718 = header.getOrDefault("X-Amz-Date") + var valid_620718 = header.getOrDefault("X-Amz-Signature") valid_620718 = validateParameter(valid_620718, JString, required = false, default = nil) if valid_620718 != nil: - section.add "X-Amz-Date", valid_620718 - var valid_620719 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620718 + var valid_620719 = header.getOrDefault("X-Amz-Content-Sha256") valid_620719 = validateParameter(valid_620719, JString, required = false, default = nil) if valid_620719 != nil: - section.add "X-Amz-Credential", valid_620719 - var valid_620720 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620719 + var valid_620720 = header.getOrDefault("X-Amz-Date") valid_620720 = validateParameter(valid_620720, JString, required = false, default = nil) if valid_620720 != nil: - section.add "X-Amz-Security-Token", valid_620720 - var valid_620721 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620720 + var valid_620721 = header.getOrDefault("X-Amz-Credential") valid_620721 = validateParameter(valid_620721, JString, required = false, default = nil) if valid_620721 != nil: - section.add "X-Amz-Algorithm", valid_620721 - var valid_620722 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620721 + var valid_620722 = header.getOrDefault("X-Amz-Security-Token") valid_620722 = validateParameter(valid_620722, JString, required = false, default = nil) if valid_620722 != nil: - section.add "X-Amz-SignedHeaders", valid_620722 + section.add "X-Amz-Security-Token", valid_620722 + var valid_620723 = header.getOrDefault("X-Amz-Algorithm") + valid_620723 = validateParameter(valid_620723, JString, required = false, + default = nil) + if valid_620723 != nil: + section.add "X-Amz-Algorithm", valid_620723 + var valid_620724 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620724 = validateParameter(valid_620724, JString, required = false, + default = nil) + if valid_620724 != nil: + section.add "X-Amz-SignedHeaders", valid_620724 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -78912,48 +78939,48 @@ proc validate_PostDescribeTransitGatewayAttachments_620712(path: JsonNode; ## Filter: JArray ## :

    One or more filters. The possible values are:

    section = newJObject() - var valid_620723 = formData.getOrDefault("NextToken") - valid_620723 = validateParameter(valid_620723, JString, required = false, - default = nil) - if valid_620723 != nil: - section.add "NextToken", valid_620723 - var valid_620724 = formData.getOrDefault("TransitGatewayAttachmentIds") - valid_620724 = validateParameter(valid_620724, JArray, required = false, + var valid_620725 = formData.getOrDefault("NextToken") + valid_620725 = validateParameter(valid_620725, JString, required = false, default = nil) - if valid_620724 != nil: - section.add "TransitGatewayAttachmentIds", valid_620724 - var valid_620725 = formData.getOrDefault("DryRun") - valid_620725 = validateParameter(valid_620725, JBool, required = false, default = nil) if valid_620725 != nil: - section.add "DryRun", valid_620725 - var valid_620726 = formData.getOrDefault("MaxResults") - valid_620726 = validateParameter(valid_620726, JInt, required = false, default = nil) - if valid_620726 != nil: - section.add "MaxResults", valid_620726 - var valid_620727 = formData.getOrDefault("Filter") - valid_620727 = validateParameter(valid_620727, JArray, required = false, + section.add "NextToken", valid_620725 + var valid_620726 = formData.getOrDefault("TransitGatewayAttachmentIds") + valid_620726 = validateParameter(valid_620726, JArray, required = false, default = nil) + if valid_620726 != nil: + section.add "TransitGatewayAttachmentIds", valid_620726 + var valid_620727 = formData.getOrDefault("DryRun") + valid_620727 = validateParameter(valid_620727, JBool, required = false, default = nil) if valid_620727 != nil: - section.add "Filter", valid_620727 + section.add "DryRun", valid_620727 + var valid_620728 = formData.getOrDefault("MaxResults") + valid_620728 = validateParameter(valid_620728, JInt, required = false, default = nil) + if valid_620728 != nil: + section.add "MaxResults", valid_620728 + var valid_620729 = formData.getOrDefault("Filter") + valid_620729 = validateParameter(valid_620729, JArray, required = false, + default = nil) + if valid_620729 != nil: + section.add "Filter", valid_620729 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620728: Call_PostDescribeTransitGatewayAttachments_620711; +proc call*(call_620730: Call_PostDescribeTransitGatewayAttachments_620713; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more attachments between resources and transit gateways. By default, all attachments are described. Alternatively, you can filter the results by attachment ID, attachment state, resource ID, or resource owner. ## - let valid = call_620728.validator(path, query, header, formData, body) - let scheme = call_620728.pickScheme + let valid = call_620730.validator(path, query, header, formData, body) + let scheme = call_620730.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620728.url(scheme.get, call_620728.host, call_620728.base, - call_620728.route, valid.getOrDefault("path"), + let url = call_620730.url(scheme.get, call_620730.host, call_620730.base, + call_620730.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620728, url, valid) + result = atozHook(call_620730, url, valid) -proc call*(call_620729: Call_PostDescribeTransitGatewayAttachments_620711; +proc call*(call_620731: Call_PostDescribeTransitGatewayAttachments_620713; NextToken: string = ""; TransitGatewayAttachmentIds: JsonNode = nil; DryRun: bool = false; Action: string = "DescribeTransitGatewayAttachments"; @@ -78972,29 +78999,29 @@ proc call*(call_620729: Call_PostDescribeTransitGatewayAttachments_620711; ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## Filter: JArray ## :

    One or more filters. The possible values are:

    - var query_620730 = newJObject() - var formData_620731 = newJObject() - add(formData_620731, "NextToken", newJString(NextToken)) + var query_620732 = newJObject() + var formData_620733 = newJObject() + add(formData_620733, "NextToken", newJString(NextToken)) if TransitGatewayAttachmentIds != nil: - formData_620731.add "TransitGatewayAttachmentIds", TransitGatewayAttachmentIds - add(formData_620731, "DryRun", newJBool(DryRun)) - add(query_620730, "Action", newJString(Action)) - add(query_620730, "Version", newJString(Version)) - add(formData_620731, "MaxResults", newJInt(MaxResults)) + formData_620733.add "TransitGatewayAttachmentIds", TransitGatewayAttachmentIds + add(formData_620733, "DryRun", newJBool(DryRun)) + add(query_620732, "Action", newJString(Action)) + add(query_620732, "Version", newJString(Version)) + add(formData_620733, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_620731.add "Filter", Filter - result = call_620729.call(nil, query_620730, nil, formData_620731, nil) + formData_620733.add "Filter", Filter + result = call_620731.call(nil, query_620732, nil, formData_620733, nil) -var postDescribeTransitGatewayAttachments* = Call_PostDescribeTransitGatewayAttachments_620711( +var postDescribeTransitGatewayAttachments* = Call_PostDescribeTransitGatewayAttachments_620713( name: "postDescribeTransitGatewayAttachments", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeTransitGatewayAttachments", - validator: validate_PostDescribeTransitGatewayAttachments_620712, base: "/", - url: url_PostDescribeTransitGatewayAttachments_620713, + validator: validate_PostDescribeTransitGatewayAttachments_620714, base: "/", + url: url_PostDescribeTransitGatewayAttachments_620715, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeTransitGatewayAttachments_620691 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeTransitGatewayAttachments_620693(protocol: Scheme; + Call_GetDescribeTransitGatewayAttachments_620693 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeTransitGatewayAttachments_620695(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -79004,7 +79031,7 @@ proc url_GetDescribeTransitGatewayAttachments_620693(protocol: Scheme; else: result.path = base & route -proc validate_GetDescribeTransitGatewayAttachments_620692(path: JsonNode; +proc validate_GetDescribeTransitGatewayAttachments_620694(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more attachments between resources and transit gateways. By default, all attachments are described. Alternatively, you can filter the results by attachment ID, attachment state, resource ID, or resource owner. ## @@ -79026,39 +79053,39 @@ proc validate_GetDescribeTransitGatewayAttachments_620692(path: JsonNode; ## TransitGatewayAttachmentIds: JArray ## : The IDs of the attachments. section = newJObject() - var valid_620694 = query.getOrDefault("MaxResults") - valid_620694 = validateParameter(valid_620694, JInt, required = false, default = nil) - if valid_620694 != nil: - section.add "MaxResults", valid_620694 - var valid_620695 = query.getOrDefault("DryRun") - valid_620695 = validateParameter(valid_620695, JBool, required = false, default = nil) - if valid_620695 != nil: - section.add "DryRun", valid_620695 - var valid_620696 = query.getOrDefault("NextToken") - valid_620696 = validateParameter(valid_620696, JString, required = false, - default = nil) + var valid_620696 = query.getOrDefault("MaxResults") + valid_620696 = validateParameter(valid_620696, JInt, required = false, default = nil) if valid_620696 != nil: - section.add "NextToken", valid_620696 - var valid_620697 = query.getOrDefault("Filter") - valid_620697 = validateParameter(valid_620697, JArray, required = false, - default = nil) + section.add "MaxResults", valid_620696 + var valid_620697 = query.getOrDefault("DryRun") + valid_620697 = validateParameter(valid_620697, JBool, required = false, default = nil) if valid_620697 != nil: - section.add "Filter", valid_620697 - var valid_620698 = query.getOrDefault("Action") - valid_620698 = validateParameter(valid_620698, JString, required = true, default = newJString( - "DescribeTransitGatewayAttachments")) + section.add "DryRun", valid_620697 + var valid_620698 = query.getOrDefault("NextToken") + valid_620698 = validateParameter(valid_620698, JString, required = false, + default = nil) if valid_620698 != nil: - section.add "Action", valid_620698 - var valid_620699 = query.getOrDefault("Version") - valid_620699 = validateParameter(valid_620699, JString, required = true, - default = newJString("2016-11-15")) - if valid_620699 != nil: - section.add "Version", valid_620699 - var valid_620700 = query.getOrDefault("TransitGatewayAttachmentIds") - valid_620700 = validateParameter(valid_620700, JArray, required = false, + section.add "NextToken", valid_620698 + var valid_620699 = query.getOrDefault("Filter") + valid_620699 = validateParameter(valid_620699, JArray, required = false, default = nil) + if valid_620699 != nil: + section.add "Filter", valid_620699 + var valid_620700 = query.getOrDefault("Action") + valid_620700 = validateParameter(valid_620700, JString, required = true, default = newJString( + "DescribeTransitGatewayAttachments")) if valid_620700 != nil: - section.add "TransitGatewayAttachmentIds", valid_620700 + section.add "Action", valid_620700 + var valid_620701 = query.getOrDefault("Version") + valid_620701 = validateParameter(valid_620701, JString, required = true, + default = newJString("2016-11-15")) + if valid_620701 != nil: + section.add "Version", valid_620701 + var valid_620702 = query.getOrDefault("TransitGatewayAttachmentIds") + valid_620702 = validateParameter(valid_620702, JArray, required = false, + default = nil) + if valid_620702 != nil: + section.add "TransitGatewayAttachmentIds", valid_620702 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -79069,62 +79096,62 @@ proc validate_GetDescribeTransitGatewayAttachments_620692(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620701 = header.getOrDefault("X-Amz-Signature") - valid_620701 = validateParameter(valid_620701, JString, required = false, - default = nil) - if valid_620701 != nil: - section.add "X-Amz-Signature", valid_620701 - var valid_620702 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620702 = validateParameter(valid_620702, JString, required = false, - default = nil) - if valid_620702 != nil: - section.add "X-Amz-Content-Sha256", valid_620702 - var valid_620703 = header.getOrDefault("X-Amz-Date") + var valid_620703 = header.getOrDefault("X-Amz-Signature") valid_620703 = validateParameter(valid_620703, JString, required = false, default = nil) if valid_620703 != nil: - section.add "X-Amz-Date", valid_620703 - var valid_620704 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620703 + var valid_620704 = header.getOrDefault("X-Amz-Content-Sha256") valid_620704 = validateParameter(valid_620704, JString, required = false, default = nil) if valid_620704 != nil: - section.add "X-Amz-Credential", valid_620704 - var valid_620705 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620704 + var valid_620705 = header.getOrDefault("X-Amz-Date") valid_620705 = validateParameter(valid_620705, JString, required = false, default = nil) if valid_620705 != nil: - section.add "X-Amz-Security-Token", valid_620705 - var valid_620706 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620705 + var valid_620706 = header.getOrDefault("X-Amz-Credential") valid_620706 = validateParameter(valid_620706, JString, required = false, default = nil) if valid_620706 != nil: - section.add "X-Amz-Algorithm", valid_620706 - var valid_620707 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620706 + var valid_620707 = header.getOrDefault("X-Amz-Security-Token") valid_620707 = validateParameter(valid_620707, JString, required = false, default = nil) if valid_620707 != nil: - section.add "X-Amz-SignedHeaders", valid_620707 + section.add "X-Amz-Security-Token", valid_620707 + var valid_620708 = header.getOrDefault("X-Amz-Algorithm") + valid_620708 = validateParameter(valid_620708, JString, required = false, + default = nil) + if valid_620708 != nil: + section.add "X-Amz-Algorithm", valid_620708 + var valid_620709 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620709 = validateParameter(valid_620709, JString, required = false, + default = nil) + if valid_620709 != nil: + section.add "X-Amz-SignedHeaders", valid_620709 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620708: Call_GetDescribeTransitGatewayAttachments_620691; +proc call*(call_620710: Call_GetDescribeTransitGatewayAttachments_620693; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more attachments between resources and transit gateways. By default, all attachments are described. Alternatively, you can filter the results by attachment ID, attachment state, resource ID, or resource owner. ## - let valid = call_620708.validator(path, query, header, formData, body) - let scheme = call_620708.pickScheme + let valid = call_620710.validator(path, query, header, formData, body) + let scheme = call_620710.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620708.url(scheme.get, call_620708.host, call_620708.base, - call_620708.route, valid.getOrDefault("path"), + let url = call_620710.url(scheme.get, call_620710.host, call_620710.base, + call_620710.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620708, url, valid) + result = atozHook(call_620710, url, valid) -proc call*(call_620709: Call_GetDescribeTransitGatewayAttachments_620691; +proc call*(call_620711: Call_GetDescribeTransitGatewayAttachments_620693; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeTransitGatewayAttachments"; @@ -79144,28 +79171,28 @@ proc call*(call_620709: Call_GetDescribeTransitGatewayAttachments_620691; ## Version: string (required) ## TransitGatewayAttachmentIds: JArray ## : The IDs of the attachments. - var query_620710 = newJObject() - add(query_620710, "MaxResults", newJInt(MaxResults)) - add(query_620710, "DryRun", newJBool(DryRun)) - add(query_620710, "NextToken", newJString(NextToken)) + var query_620712 = newJObject() + add(query_620712, "MaxResults", newJInt(MaxResults)) + add(query_620712, "DryRun", newJBool(DryRun)) + add(query_620712, "NextToken", newJString(NextToken)) if Filter != nil: - query_620710.add "Filter", Filter - add(query_620710, "Action", newJString(Action)) - add(query_620710, "Version", newJString(Version)) + query_620712.add "Filter", Filter + add(query_620712, "Action", newJString(Action)) + add(query_620712, "Version", newJString(Version)) if TransitGatewayAttachmentIds != nil: - query_620710.add "TransitGatewayAttachmentIds", TransitGatewayAttachmentIds - result = call_620709.call(nil, query_620710, nil, nil, nil) + query_620712.add "TransitGatewayAttachmentIds", TransitGatewayAttachmentIds + result = call_620711.call(nil, query_620712, nil, nil, nil) -var getDescribeTransitGatewayAttachments* = Call_GetDescribeTransitGatewayAttachments_620691( +var getDescribeTransitGatewayAttachments* = Call_GetDescribeTransitGatewayAttachments_620693( name: "getDescribeTransitGatewayAttachments", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeTransitGatewayAttachments", - validator: validate_GetDescribeTransitGatewayAttachments_620692, base: "/", - url: url_GetDescribeTransitGatewayAttachments_620693, + validator: validate_GetDescribeTransitGatewayAttachments_620694, base: "/", + url: url_GetDescribeTransitGatewayAttachments_620695, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeTransitGatewayMulticastDomains_620752 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeTransitGatewayMulticastDomains_620754(protocol: Scheme; + Call_PostDescribeTransitGatewayMulticastDomains_620754 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeTransitGatewayMulticastDomains_620756(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -79175,7 +79202,7 @@ proc url_PostDescribeTransitGatewayMulticastDomains_620754(protocol: Scheme; else: result.path = base & route -proc validate_PostDescribeTransitGatewayMulticastDomains_620753(path: JsonNode; +proc validate_PostDescribeTransitGatewayMulticastDomains_620755(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more transit gateway multicast domains. ## @@ -79187,16 +79214,16 @@ proc validate_PostDescribeTransitGatewayMulticastDomains_620753(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620755 = query.getOrDefault("Action") - valid_620755 = validateParameter(valid_620755, JString, required = true, default = newJString( + var valid_620757 = query.getOrDefault("Action") + valid_620757 = validateParameter(valid_620757, JString, required = true, default = newJString( "DescribeTransitGatewayMulticastDomains")) - if valid_620755 != nil: - section.add "Action", valid_620755 - var valid_620756 = query.getOrDefault("Version") - valid_620756 = validateParameter(valid_620756, JString, required = true, + if valid_620757 != nil: + section.add "Action", valid_620757 + var valid_620758 = query.getOrDefault("Version") + valid_620758 = validateParameter(valid_620758, JString, required = true, default = newJString("2016-11-15")) - if valid_620756 != nil: - section.add "Version", valid_620756 + if valid_620758 != nil: + section.add "Version", valid_620758 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -79207,41 +79234,41 @@ proc validate_PostDescribeTransitGatewayMulticastDomains_620753(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620757 = header.getOrDefault("X-Amz-Signature") - valid_620757 = validateParameter(valid_620757, JString, required = false, - default = nil) - if valid_620757 != nil: - section.add "X-Amz-Signature", valid_620757 - var valid_620758 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620758 = validateParameter(valid_620758, JString, required = false, - default = nil) - if valid_620758 != nil: - section.add "X-Amz-Content-Sha256", valid_620758 - var valid_620759 = header.getOrDefault("X-Amz-Date") + var valid_620759 = header.getOrDefault("X-Amz-Signature") valid_620759 = validateParameter(valid_620759, JString, required = false, default = nil) if valid_620759 != nil: - section.add "X-Amz-Date", valid_620759 - var valid_620760 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620759 + var valid_620760 = header.getOrDefault("X-Amz-Content-Sha256") valid_620760 = validateParameter(valid_620760, JString, required = false, default = nil) if valid_620760 != nil: - section.add "X-Amz-Credential", valid_620760 - var valid_620761 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620760 + var valid_620761 = header.getOrDefault("X-Amz-Date") valid_620761 = validateParameter(valid_620761, JString, required = false, default = nil) if valid_620761 != nil: - section.add "X-Amz-Security-Token", valid_620761 - var valid_620762 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620761 + var valid_620762 = header.getOrDefault("X-Amz-Credential") valid_620762 = validateParameter(valid_620762, JString, required = false, default = nil) if valid_620762 != nil: - section.add "X-Amz-Algorithm", valid_620762 - var valid_620763 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620762 + var valid_620763 = header.getOrDefault("X-Amz-Security-Token") valid_620763 = validateParameter(valid_620763, JString, required = false, default = nil) if valid_620763 != nil: - section.add "X-Amz-SignedHeaders", valid_620763 + section.add "X-Amz-Security-Token", valid_620763 + var valid_620764 = header.getOrDefault("X-Amz-Algorithm") + valid_620764 = validateParameter(valid_620764, JString, required = false, + default = nil) + if valid_620764 != nil: + section.add "X-Amz-Algorithm", valid_620764 + var valid_620765 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620765 = validateParameter(valid_620765, JString, required = false, + default = nil) + if valid_620765 != nil: + section.add "X-Amz-SignedHeaders", valid_620765 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -79255,48 +79282,48 @@ proc validate_PostDescribeTransitGatewayMulticastDomains_620753(path: JsonNode; ## Filter: JArray ## :

    One or more filters. The possible values are:

    section = newJObject() - var valid_620764 = formData.getOrDefault("NextToken") - valid_620764 = validateParameter(valid_620764, JString, required = false, - default = nil) - if valid_620764 != nil: - section.add "NextToken", valid_620764 - var valid_620765 = formData.getOrDefault("DryRun") - valid_620765 = validateParameter(valid_620765, JBool, required = false, default = nil) - if valid_620765 != nil: - section.add "DryRun", valid_620765 - var valid_620766 = formData.getOrDefault("TransitGatewayMulticastDomainIds") - valid_620766 = validateParameter(valid_620766, JArray, required = false, + var valid_620766 = formData.getOrDefault("NextToken") + valid_620766 = validateParameter(valid_620766, JString, required = false, default = nil) if valid_620766 != nil: - section.add "TransitGatewayMulticastDomainIds", valid_620766 - var valid_620767 = formData.getOrDefault("MaxResults") - valid_620767 = validateParameter(valid_620767, JInt, required = false, default = nil) + section.add "NextToken", valid_620766 + var valid_620767 = formData.getOrDefault("DryRun") + valid_620767 = validateParameter(valid_620767, JBool, required = false, default = nil) if valid_620767 != nil: - section.add "MaxResults", valid_620767 - var valid_620768 = formData.getOrDefault("Filter") + section.add "DryRun", valid_620767 + var valid_620768 = formData.getOrDefault("TransitGatewayMulticastDomainIds") valid_620768 = validateParameter(valid_620768, JArray, required = false, default = nil) if valid_620768 != nil: - section.add "Filter", valid_620768 + section.add "TransitGatewayMulticastDomainIds", valid_620768 + var valid_620769 = formData.getOrDefault("MaxResults") + valid_620769 = validateParameter(valid_620769, JInt, required = false, default = nil) + if valid_620769 != nil: + section.add "MaxResults", valid_620769 + var valid_620770 = formData.getOrDefault("Filter") + valid_620770 = validateParameter(valid_620770, JArray, required = false, + default = nil) + if valid_620770 != nil: + section.add "Filter", valid_620770 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620769: Call_PostDescribeTransitGatewayMulticastDomains_620752; +proc call*(call_620771: Call_PostDescribeTransitGatewayMulticastDomains_620754; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more transit gateway multicast domains. ## - let valid = call_620769.validator(path, query, header, formData, body) - let scheme = call_620769.pickScheme + let valid = call_620771.validator(path, query, header, formData, body) + let scheme = call_620771.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620769.url(scheme.get, call_620769.host, call_620769.base, - call_620769.route, valid.getOrDefault("path"), + let url = call_620771.url(scheme.get, call_620771.host, call_620771.base, + call_620771.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620769, url, valid) + result = atozHook(call_620771, url, valid) -proc call*(call_620770: Call_PostDescribeTransitGatewayMulticastDomains_620752; +proc call*(call_620772: Call_PostDescribeTransitGatewayMulticastDomains_620754; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeTransitGatewayMulticastDomains"; TransitGatewayMulticastDomainIds: JsonNode = nil; @@ -79315,30 +79342,30 @@ proc call*(call_620770: Call_PostDescribeTransitGatewayMulticastDomains_620752; ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## Filter: JArray ## :

    One or more filters. The possible values are:

    - var query_620771 = newJObject() - var formData_620772 = newJObject() - add(formData_620772, "NextToken", newJString(NextToken)) - add(formData_620772, "DryRun", newJBool(DryRun)) - add(query_620771, "Action", newJString(Action)) + var query_620773 = newJObject() + var formData_620774 = newJObject() + add(formData_620774, "NextToken", newJString(NextToken)) + add(formData_620774, "DryRun", newJBool(DryRun)) + add(query_620773, "Action", newJString(Action)) if TransitGatewayMulticastDomainIds != nil: - formData_620772.add "TransitGatewayMulticastDomainIds", + formData_620774.add "TransitGatewayMulticastDomainIds", TransitGatewayMulticastDomainIds - add(query_620771, "Version", newJString(Version)) - add(formData_620772, "MaxResults", newJInt(MaxResults)) + add(query_620773, "Version", newJString(Version)) + add(formData_620774, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_620772.add "Filter", Filter - result = call_620770.call(nil, query_620771, nil, formData_620772, nil) + formData_620774.add "Filter", Filter + result = call_620772.call(nil, query_620773, nil, formData_620774, nil) -var postDescribeTransitGatewayMulticastDomains* = Call_PostDescribeTransitGatewayMulticastDomains_620752( +var postDescribeTransitGatewayMulticastDomains* = Call_PostDescribeTransitGatewayMulticastDomains_620754( name: "postDescribeTransitGatewayMulticastDomains", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeTransitGatewayMulticastDomains", - validator: validate_PostDescribeTransitGatewayMulticastDomains_620753, - base: "/", url: url_PostDescribeTransitGatewayMulticastDomains_620754, + validator: validate_PostDescribeTransitGatewayMulticastDomains_620755, + base: "/", url: url_PostDescribeTransitGatewayMulticastDomains_620756, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeTransitGatewayMulticastDomains_620732 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeTransitGatewayMulticastDomains_620734(protocol: Scheme; + Call_GetDescribeTransitGatewayMulticastDomains_620734 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeTransitGatewayMulticastDomains_620736(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -79348,7 +79375,7 @@ proc url_GetDescribeTransitGatewayMulticastDomains_620734(protocol: Scheme; else: result.path = base & route -proc validate_GetDescribeTransitGatewayMulticastDomains_620733(path: JsonNode; +proc validate_GetDescribeTransitGatewayMulticastDomains_620735(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more transit gateway multicast domains. ## @@ -79370,39 +79397,39 @@ proc validate_GetDescribeTransitGatewayMulticastDomains_620733(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620735 = query.getOrDefault("MaxResults") - valid_620735 = validateParameter(valid_620735, JInt, required = false, default = nil) - if valid_620735 != nil: - section.add "MaxResults", valid_620735 - var valid_620736 = query.getOrDefault("DryRun") - valid_620736 = validateParameter(valid_620736, JBool, required = false, default = nil) - if valid_620736 != nil: - section.add "DryRun", valid_620736 - var valid_620737 = query.getOrDefault("NextToken") - valid_620737 = validateParameter(valid_620737, JString, required = false, - default = nil) + var valid_620737 = query.getOrDefault("MaxResults") + valid_620737 = validateParameter(valid_620737, JInt, required = false, default = nil) if valid_620737 != nil: - section.add "NextToken", valid_620737 - var valid_620738 = query.getOrDefault("TransitGatewayMulticastDomainIds") - valid_620738 = validateParameter(valid_620738, JArray, required = false, - default = nil) + section.add "MaxResults", valid_620737 + var valid_620738 = query.getOrDefault("DryRun") + valid_620738 = validateParameter(valid_620738, JBool, required = false, default = nil) if valid_620738 != nil: - section.add "TransitGatewayMulticastDomainIds", valid_620738 - var valid_620739 = query.getOrDefault("Filter") - valid_620739 = validateParameter(valid_620739, JArray, required = false, + section.add "DryRun", valid_620738 + var valid_620739 = query.getOrDefault("NextToken") + valid_620739 = validateParameter(valid_620739, JString, required = false, default = nil) if valid_620739 != nil: - section.add "Filter", valid_620739 - var valid_620740 = query.getOrDefault("Action") - valid_620740 = validateParameter(valid_620740, JString, required = true, default = newJString( - "DescribeTransitGatewayMulticastDomains")) + section.add "NextToken", valid_620739 + var valid_620740 = query.getOrDefault("TransitGatewayMulticastDomainIds") + valid_620740 = validateParameter(valid_620740, JArray, required = false, + default = nil) if valid_620740 != nil: - section.add "Action", valid_620740 - var valid_620741 = query.getOrDefault("Version") - valid_620741 = validateParameter(valid_620741, JString, required = true, - default = newJString("2016-11-15")) + section.add "TransitGatewayMulticastDomainIds", valid_620740 + var valid_620741 = query.getOrDefault("Filter") + valid_620741 = validateParameter(valid_620741, JArray, required = false, + default = nil) if valid_620741 != nil: - section.add "Version", valid_620741 + section.add "Filter", valid_620741 + var valid_620742 = query.getOrDefault("Action") + valid_620742 = validateParameter(valid_620742, JString, required = true, default = newJString( + "DescribeTransitGatewayMulticastDomains")) + if valid_620742 != nil: + section.add "Action", valid_620742 + var valid_620743 = query.getOrDefault("Version") + valid_620743 = validateParameter(valid_620743, JString, required = true, + default = newJString("2016-11-15")) + if valid_620743 != nil: + section.add "Version", valid_620743 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -79413,62 +79440,62 @@ proc validate_GetDescribeTransitGatewayMulticastDomains_620733(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620742 = header.getOrDefault("X-Amz-Signature") - valid_620742 = validateParameter(valid_620742, JString, required = false, - default = nil) - if valid_620742 != nil: - section.add "X-Amz-Signature", valid_620742 - var valid_620743 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620743 = validateParameter(valid_620743, JString, required = false, - default = nil) - if valid_620743 != nil: - section.add "X-Amz-Content-Sha256", valid_620743 - var valid_620744 = header.getOrDefault("X-Amz-Date") + var valid_620744 = header.getOrDefault("X-Amz-Signature") valid_620744 = validateParameter(valid_620744, JString, required = false, default = nil) if valid_620744 != nil: - section.add "X-Amz-Date", valid_620744 - var valid_620745 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620744 + var valid_620745 = header.getOrDefault("X-Amz-Content-Sha256") valid_620745 = validateParameter(valid_620745, JString, required = false, default = nil) if valid_620745 != nil: - section.add "X-Amz-Credential", valid_620745 - var valid_620746 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620745 + var valid_620746 = header.getOrDefault("X-Amz-Date") valid_620746 = validateParameter(valid_620746, JString, required = false, default = nil) if valid_620746 != nil: - section.add "X-Amz-Security-Token", valid_620746 - var valid_620747 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620746 + var valid_620747 = header.getOrDefault("X-Amz-Credential") valid_620747 = validateParameter(valid_620747, JString, required = false, default = nil) if valid_620747 != nil: - section.add "X-Amz-Algorithm", valid_620747 - var valid_620748 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620747 + var valid_620748 = header.getOrDefault("X-Amz-Security-Token") valid_620748 = validateParameter(valid_620748, JString, required = false, default = nil) if valid_620748 != nil: - section.add "X-Amz-SignedHeaders", valid_620748 + section.add "X-Amz-Security-Token", valid_620748 + var valid_620749 = header.getOrDefault("X-Amz-Algorithm") + valid_620749 = validateParameter(valid_620749, JString, required = false, + default = nil) + if valid_620749 != nil: + section.add "X-Amz-Algorithm", valid_620749 + var valid_620750 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620750 = validateParameter(valid_620750, JString, required = false, + default = nil) + if valid_620750 != nil: + section.add "X-Amz-SignedHeaders", valid_620750 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620749: Call_GetDescribeTransitGatewayMulticastDomains_620732; +proc call*(call_620751: Call_GetDescribeTransitGatewayMulticastDomains_620734; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more transit gateway multicast domains. ## - let valid = call_620749.validator(path, query, header, formData, body) - let scheme = call_620749.pickScheme + let valid = call_620751.validator(path, query, header, formData, body) + let scheme = call_620751.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620749.url(scheme.get, call_620749.host, call_620749.base, - call_620749.route, valid.getOrDefault("path"), + let url = call_620751.url(scheme.get, call_620751.host, call_620751.base, + call_620751.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620749, url, valid) + result = atozHook(call_620751, url, valid) -proc call*(call_620750: Call_GetDescribeTransitGatewayMulticastDomains_620732; +proc call*(call_620752: Call_GetDescribeTransitGatewayMulticastDomains_620734; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; TransitGatewayMulticastDomainIds: JsonNode = nil; Filter: JsonNode = nil; Action: string = "DescribeTransitGatewayMulticastDomains"; @@ -79487,29 +79514,29 @@ proc call*(call_620750: Call_GetDescribeTransitGatewayMulticastDomains_620732; ## :

    One or more filters. The possible values are:

    ## Action: string (required) ## Version: string (required) - var query_620751 = newJObject() - add(query_620751, "MaxResults", newJInt(MaxResults)) - add(query_620751, "DryRun", newJBool(DryRun)) - add(query_620751, "NextToken", newJString(NextToken)) + var query_620753 = newJObject() + add(query_620753, "MaxResults", newJInt(MaxResults)) + add(query_620753, "DryRun", newJBool(DryRun)) + add(query_620753, "NextToken", newJString(NextToken)) if TransitGatewayMulticastDomainIds != nil: - query_620751.add "TransitGatewayMulticastDomainIds", + query_620753.add "TransitGatewayMulticastDomainIds", TransitGatewayMulticastDomainIds if Filter != nil: - query_620751.add "Filter", Filter - add(query_620751, "Action", newJString(Action)) - add(query_620751, "Version", newJString(Version)) - result = call_620750.call(nil, query_620751, nil, nil, nil) + query_620753.add "Filter", Filter + add(query_620753, "Action", newJString(Action)) + add(query_620753, "Version", newJString(Version)) + result = call_620752.call(nil, query_620753, nil, nil, nil) -var getDescribeTransitGatewayMulticastDomains* = Call_GetDescribeTransitGatewayMulticastDomains_620732( +var getDescribeTransitGatewayMulticastDomains* = Call_GetDescribeTransitGatewayMulticastDomains_620734( name: "getDescribeTransitGatewayMulticastDomains", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeTransitGatewayMulticastDomains", - validator: validate_GetDescribeTransitGatewayMulticastDomains_620733, - base: "/", url: url_GetDescribeTransitGatewayMulticastDomains_620734, + validator: validate_GetDescribeTransitGatewayMulticastDomains_620735, + base: "/", url: url_GetDescribeTransitGatewayMulticastDomains_620736, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeTransitGatewayPeeringAttachments_620793 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeTransitGatewayPeeringAttachments_620795(protocol: Scheme; + Call_PostDescribeTransitGatewayPeeringAttachments_620795 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeTransitGatewayPeeringAttachments_620797(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -79519,7 +79546,7 @@ proc url_PostDescribeTransitGatewayPeeringAttachments_620795(protocol: Scheme; else: result.path = base & route -proc validate_PostDescribeTransitGatewayPeeringAttachments_620794(path: JsonNode; +proc validate_PostDescribeTransitGatewayPeeringAttachments_620796(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes your transit gateway peering attachments. ## @@ -79531,16 +79558,16 @@ proc validate_PostDescribeTransitGatewayPeeringAttachments_620794(path: JsonNode ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620796 = query.getOrDefault("Action") - valid_620796 = validateParameter(valid_620796, JString, required = true, default = newJString( + var valid_620798 = query.getOrDefault("Action") + valid_620798 = validateParameter(valid_620798, JString, required = true, default = newJString( "DescribeTransitGatewayPeeringAttachments")) - if valid_620796 != nil: - section.add "Action", valid_620796 - var valid_620797 = query.getOrDefault("Version") - valid_620797 = validateParameter(valid_620797, JString, required = true, + if valid_620798 != nil: + section.add "Action", valid_620798 + var valid_620799 = query.getOrDefault("Version") + valid_620799 = validateParameter(valid_620799, JString, required = true, default = newJString("2016-11-15")) - if valid_620797 != nil: - section.add "Version", valid_620797 + if valid_620799 != nil: + section.add "Version", valid_620799 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -79551,41 +79578,41 @@ proc validate_PostDescribeTransitGatewayPeeringAttachments_620794(path: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620798 = header.getOrDefault("X-Amz-Signature") - valid_620798 = validateParameter(valid_620798, JString, required = false, - default = nil) - if valid_620798 != nil: - section.add "X-Amz-Signature", valid_620798 - var valid_620799 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620799 = validateParameter(valid_620799, JString, required = false, - default = nil) - if valid_620799 != nil: - section.add "X-Amz-Content-Sha256", valid_620799 - var valid_620800 = header.getOrDefault("X-Amz-Date") + var valid_620800 = header.getOrDefault("X-Amz-Signature") valid_620800 = validateParameter(valid_620800, JString, required = false, default = nil) if valid_620800 != nil: - section.add "X-Amz-Date", valid_620800 - var valid_620801 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620800 + var valid_620801 = header.getOrDefault("X-Amz-Content-Sha256") valid_620801 = validateParameter(valid_620801, JString, required = false, default = nil) if valid_620801 != nil: - section.add "X-Amz-Credential", valid_620801 - var valid_620802 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620801 + var valid_620802 = header.getOrDefault("X-Amz-Date") valid_620802 = validateParameter(valid_620802, JString, required = false, default = nil) if valid_620802 != nil: - section.add "X-Amz-Security-Token", valid_620802 - var valid_620803 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620802 + var valid_620803 = header.getOrDefault("X-Amz-Credential") valid_620803 = validateParameter(valid_620803, JString, required = false, default = nil) if valid_620803 != nil: - section.add "X-Amz-Algorithm", valid_620803 - var valid_620804 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620803 + var valid_620804 = header.getOrDefault("X-Amz-Security-Token") valid_620804 = validateParameter(valid_620804, JString, required = false, default = nil) if valid_620804 != nil: - section.add "X-Amz-SignedHeaders", valid_620804 + section.add "X-Amz-Security-Token", valid_620804 + var valid_620805 = header.getOrDefault("X-Amz-Algorithm") + valid_620805 = validateParameter(valid_620805, JString, required = false, + default = nil) + if valid_620805 != nil: + section.add "X-Amz-Algorithm", valid_620805 + var valid_620806 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620806 = validateParameter(valid_620806, JString, required = false, + default = nil) + if valid_620806 != nil: + section.add "X-Amz-SignedHeaders", valid_620806 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -79599,48 +79626,48 @@ proc validate_PostDescribeTransitGatewayPeeringAttachments_620794(path: JsonNode ## Filter: JArray ## : One or more filters. section = newJObject() - var valid_620805 = formData.getOrDefault("NextToken") - valid_620805 = validateParameter(valid_620805, JString, required = false, - default = nil) - if valid_620805 != nil: - section.add "NextToken", valid_620805 - var valid_620806 = formData.getOrDefault("TransitGatewayAttachmentIds") - valid_620806 = validateParameter(valid_620806, JArray, required = false, + var valid_620807 = formData.getOrDefault("NextToken") + valid_620807 = validateParameter(valid_620807, JString, required = false, default = nil) - if valid_620806 != nil: - section.add "TransitGatewayAttachmentIds", valid_620806 - var valid_620807 = formData.getOrDefault("DryRun") - valid_620807 = validateParameter(valid_620807, JBool, required = false, default = nil) if valid_620807 != nil: - section.add "DryRun", valid_620807 - var valid_620808 = formData.getOrDefault("MaxResults") - valid_620808 = validateParameter(valid_620808, JInt, required = false, default = nil) - if valid_620808 != nil: - section.add "MaxResults", valid_620808 - var valid_620809 = formData.getOrDefault("Filter") - valid_620809 = validateParameter(valid_620809, JArray, required = false, + section.add "NextToken", valid_620807 + var valid_620808 = formData.getOrDefault("TransitGatewayAttachmentIds") + valid_620808 = validateParameter(valid_620808, JArray, required = false, default = nil) + if valid_620808 != nil: + section.add "TransitGatewayAttachmentIds", valid_620808 + var valid_620809 = formData.getOrDefault("DryRun") + valid_620809 = validateParameter(valid_620809, JBool, required = false, default = nil) if valid_620809 != nil: - section.add "Filter", valid_620809 + section.add "DryRun", valid_620809 + var valid_620810 = formData.getOrDefault("MaxResults") + valid_620810 = validateParameter(valid_620810, JInt, required = false, default = nil) + if valid_620810 != nil: + section.add "MaxResults", valid_620810 + var valid_620811 = formData.getOrDefault("Filter") + valid_620811 = validateParameter(valid_620811, JArray, required = false, + default = nil) + if valid_620811 != nil: + section.add "Filter", valid_620811 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620810: Call_PostDescribeTransitGatewayPeeringAttachments_620793; +proc call*(call_620812: Call_PostDescribeTransitGatewayPeeringAttachments_620795; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes your transit gateway peering attachments. ## - let valid = call_620810.validator(path, query, header, formData, body) - let scheme = call_620810.pickScheme + let valid = call_620812.validator(path, query, header, formData, body) + let scheme = call_620812.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620810.url(scheme.get, call_620810.host, call_620810.base, - call_620810.route, valid.getOrDefault("path"), + let url = call_620812.url(scheme.get, call_620812.host, call_620812.base, + call_620812.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620810, url, valid) + result = atozHook(call_620812, url, valid) -proc call*(call_620811: Call_PostDescribeTransitGatewayPeeringAttachments_620793; +proc call*(call_620813: Call_PostDescribeTransitGatewayPeeringAttachments_620795; NextToken: string = ""; TransitGatewayAttachmentIds: JsonNode = nil; DryRun: bool = false; Action: string = "DescribeTransitGatewayPeeringAttachments"; @@ -79659,29 +79686,29 @@ proc call*(call_620811: Call_PostDescribeTransitGatewayPeeringAttachments_620793 ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## Filter: JArray ## : One or more filters. - var query_620812 = newJObject() - var formData_620813 = newJObject() - add(formData_620813, "NextToken", newJString(NextToken)) + var query_620814 = newJObject() + var formData_620815 = newJObject() + add(formData_620815, "NextToken", newJString(NextToken)) if TransitGatewayAttachmentIds != nil: - formData_620813.add "TransitGatewayAttachmentIds", TransitGatewayAttachmentIds - add(formData_620813, "DryRun", newJBool(DryRun)) - add(query_620812, "Action", newJString(Action)) - add(query_620812, "Version", newJString(Version)) - add(formData_620813, "MaxResults", newJInt(MaxResults)) + formData_620815.add "TransitGatewayAttachmentIds", TransitGatewayAttachmentIds + add(formData_620815, "DryRun", newJBool(DryRun)) + add(query_620814, "Action", newJString(Action)) + add(query_620814, "Version", newJString(Version)) + add(formData_620815, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_620813.add "Filter", Filter - result = call_620811.call(nil, query_620812, nil, formData_620813, nil) + formData_620815.add "Filter", Filter + result = call_620813.call(nil, query_620814, nil, formData_620815, nil) -var postDescribeTransitGatewayPeeringAttachments* = Call_PostDescribeTransitGatewayPeeringAttachments_620793( +var postDescribeTransitGatewayPeeringAttachments* = Call_PostDescribeTransitGatewayPeeringAttachments_620795( name: "postDescribeTransitGatewayPeeringAttachments", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeTransitGatewayPeeringAttachments", - validator: validate_PostDescribeTransitGatewayPeeringAttachments_620794, - base: "/", url: url_PostDescribeTransitGatewayPeeringAttachments_620795, + validator: validate_PostDescribeTransitGatewayPeeringAttachments_620796, + base: "/", url: url_PostDescribeTransitGatewayPeeringAttachments_620797, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeTransitGatewayPeeringAttachments_620773 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeTransitGatewayPeeringAttachments_620775(protocol: Scheme; + Call_GetDescribeTransitGatewayPeeringAttachments_620775 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeTransitGatewayPeeringAttachments_620777(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -79691,7 +79718,7 @@ proc url_GetDescribeTransitGatewayPeeringAttachments_620775(protocol: Scheme; else: result.path = base & route -proc validate_GetDescribeTransitGatewayPeeringAttachments_620774(path: JsonNode; +proc validate_GetDescribeTransitGatewayPeeringAttachments_620776(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes your transit gateway peering attachments. ## @@ -79713,39 +79740,39 @@ proc validate_GetDescribeTransitGatewayPeeringAttachments_620774(path: JsonNode; ## TransitGatewayAttachmentIds: JArray ## : One or more IDs of the transit gateway peering attachments. section = newJObject() - var valid_620776 = query.getOrDefault("MaxResults") - valid_620776 = validateParameter(valid_620776, JInt, required = false, default = nil) - if valid_620776 != nil: - section.add "MaxResults", valid_620776 - var valid_620777 = query.getOrDefault("DryRun") - valid_620777 = validateParameter(valid_620777, JBool, required = false, default = nil) - if valid_620777 != nil: - section.add "DryRun", valid_620777 - var valid_620778 = query.getOrDefault("NextToken") - valid_620778 = validateParameter(valid_620778, JString, required = false, - default = nil) + var valid_620778 = query.getOrDefault("MaxResults") + valid_620778 = validateParameter(valid_620778, JInt, required = false, default = nil) if valid_620778 != nil: - section.add "NextToken", valid_620778 - var valid_620779 = query.getOrDefault("Filter") - valid_620779 = validateParameter(valid_620779, JArray, required = false, - default = nil) + section.add "MaxResults", valid_620778 + var valid_620779 = query.getOrDefault("DryRun") + valid_620779 = validateParameter(valid_620779, JBool, required = false, default = nil) if valid_620779 != nil: - section.add "Filter", valid_620779 - var valid_620780 = query.getOrDefault("Action") - valid_620780 = validateParameter(valid_620780, JString, required = true, default = newJString( - "DescribeTransitGatewayPeeringAttachments")) + section.add "DryRun", valid_620779 + var valid_620780 = query.getOrDefault("NextToken") + valid_620780 = validateParameter(valid_620780, JString, required = false, + default = nil) if valid_620780 != nil: - section.add "Action", valid_620780 - var valid_620781 = query.getOrDefault("Version") - valid_620781 = validateParameter(valid_620781, JString, required = true, - default = newJString("2016-11-15")) - if valid_620781 != nil: - section.add "Version", valid_620781 - var valid_620782 = query.getOrDefault("TransitGatewayAttachmentIds") - valid_620782 = validateParameter(valid_620782, JArray, required = false, + section.add "NextToken", valid_620780 + var valid_620781 = query.getOrDefault("Filter") + valid_620781 = validateParameter(valid_620781, JArray, required = false, default = nil) + if valid_620781 != nil: + section.add "Filter", valid_620781 + var valid_620782 = query.getOrDefault("Action") + valid_620782 = validateParameter(valid_620782, JString, required = true, default = newJString( + "DescribeTransitGatewayPeeringAttachments")) if valid_620782 != nil: - section.add "TransitGatewayAttachmentIds", valid_620782 + section.add "Action", valid_620782 + var valid_620783 = query.getOrDefault("Version") + valid_620783 = validateParameter(valid_620783, JString, required = true, + default = newJString("2016-11-15")) + if valid_620783 != nil: + section.add "Version", valid_620783 + var valid_620784 = query.getOrDefault("TransitGatewayAttachmentIds") + valid_620784 = validateParameter(valid_620784, JArray, required = false, + default = nil) + if valid_620784 != nil: + section.add "TransitGatewayAttachmentIds", valid_620784 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -79756,62 +79783,62 @@ proc validate_GetDescribeTransitGatewayPeeringAttachments_620774(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620783 = header.getOrDefault("X-Amz-Signature") - valid_620783 = validateParameter(valid_620783, JString, required = false, - default = nil) - if valid_620783 != nil: - section.add "X-Amz-Signature", valid_620783 - var valid_620784 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620784 = validateParameter(valid_620784, JString, required = false, - default = nil) - if valid_620784 != nil: - section.add "X-Amz-Content-Sha256", valid_620784 - var valid_620785 = header.getOrDefault("X-Amz-Date") + var valid_620785 = header.getOrDefault("X-Amz-Signature") valid_620785 = validateParameter(valid_620785, JString, required = false, default = nil) if valid_620785 != nil: - section.add "X-Amz-Date", valid_620785 - var valid_620786 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620785 + var valid_620786 = header.getOrDefault("X-Amz-Content-Sha256") valid_620786 = validateParameter(valid_620786, JString, required = false, default = nil) if valid_620786 != nil: - section.add "X-Amz-Credential", valid_620786 - var valid_620787 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620786 + var valid_620787 = header.getOrDefault("X-Amz-Date") valid_620787 = validateParameter(valid_620787, JString, required = false, default = nil) if valid_620787 != nil: - section.add "X-Amz-Security-Token", valid_620787 - var valid_620788 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620787 + var valid_620788 = header.getOrDefault("X-Amz-Credential") valid_620788 = validateParameter(valid_620788, JString, required = false, default = nil) if valid_620788 != nil: - section.add "X-Amz-Algorithm", valid_620788 - var valid_620789 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620788 + var valid_620789 = header.getOrDefault("X-Amz-Security-Token") valid_620789 = validateParameter(valid_620789, JString, required = false, default = nil) if valid_620789 != nil: - section.add "X-Amz-SignedHeaders", valid_620789 + section.add "X-Amz-Security-Token", valid_620789 + var valid_620790 = header.getOrDefault("X-Amz-Algorithm") + valid_620790 = validateParameter(valid_620790, JString, required = false, + default = nil) + if valid_620790 != nil: + section.add "X-Amz-Algorithm", valid_620790 + var valid_620791 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620791 = validateParameter(valid_620791, JString, required = false, + default = nil) + if valid_620791 != nil: + section.add "X-Amz-SignedHeaders", valid_620791 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620790: Call_GetDescribeTransitGatewayPeeringAttachments_620773; +proc call*(call_620792: Call_GetDescribeTransitGatewayPeeringAttachments_620775; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes your transit gateway peering attachments. ## - let valid = call_620790.validator(path, query, header, formData, body) - let scheme = call_620790.pickScheme + let valid = call_620792.validator(path, query, header, formData, body) + let scheme = call_620792.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620790.url(scheme.get, call_620790.host, call_620790.base, - call_620790.route, valid.getOrDefault("path"), + let url = call_620792.url(scheme.get, call_620792.host, call_620792.base, + call_620792.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620790, url, valid) + result = atozHook(call_620792, url, valid) -proc call*(call_620791: Call_GetDescribeTransitGatewayPeeringAttachments_620773; +proc call*(call_620793: Call_GetDescribeTransitGatewayPeeringAttachments_620775; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeTransitGatewayPeeringAttachments"; @@ -79831,28 +79858,28 @@ proc call*(call_620791: Call_GetDescribeTransitGatewayPeeringAttachments_620773; ## Version: string (required) ## TransitGatewayAttachmentIds: JArray ## : One or more IDs of the transit gateway peering attachments. - var query_620792 = newJObject() - add(query_620792, "MaxResults", newJInt(MaxResults)) - add(query_620792, "DryRun", newJBool(DryRun)) - add(query_620792, "NextToken", newJString(NextToken)) + var query_620794 = newJObject() + add(query_620794, "MaxResults", newJInt(MaxResults)) + add(query_620794, "DryRun", newJBool(DryRun)) + add(query_620794, "NextToken", newJString(NextToken)) if Filter != nil: - query_620792.add "Filter", Filter - add(query_620792, "Action", newJString(Action)) - add(query_620792, "Version", newJString(Version)) + query_620794.add "Filter", Filter + add(query_620794, "Action", newJString(Action)) + add(query_620794, "Version", newJString(Version)) if TransitGatewayAttachmentIds != nil: - query_620792.add "TransitGatewayAttachmentIds", TransitGatewayAttachmentIds - result = call_620791.call(nil, query_620792, nil, nil, nil) + query_620794.add "TransitGatewayAttachmentIds", TransitGatewayAttachmentIds + result = call_620793.call(nil, query_620794, nil, nil, nil) -var getDescribeTransitGatewayPeeringAttachments* = Call_GetDescribeTransitGatewayPeeringAttachments_620773( +var getDescribeTransitGatewayPeeringAttachments* = Call_GetDescribeTransitGatewayPeeringAttachments_620775( name: "getDescribeTransitGatewayPeeringAttachments", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeTransitGatewayPeeringAttachments", - validator: validate_GetDescribeTransitGatewayPeeringAttachments_620774, - base: "/", url: url_GetDescribeTransitGatewayPeeringAttachments_620775, + validator: validate_GetDescribeTransitGatewayPeeringAttachments_620776, + base: "/", url: url_GetDescribeTransitGatewayPeeringAttachments_620777, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeTransitGatewayRouteTables_620834 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeTransitGatewayRouteTables_620836(protocol: Scheme; + Call_PostDescribeTransitGatewayRouteTables_620836 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeTransitGatewayRouteTables_620838(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -79862,7 +79889,7 @@ proc url_PostDescribeTransitGatewayRouteTables_620836(protocol: Scheme; else: result.path = base & route -proc validate_PostDescribeTransitGatewayRouteTables_620835(path: JsonNode; +proc validate_PostDescribeTransitGatewayRouteTables_620837(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more transit gateway route tables. By default, all transit gateway route tables are described. Alternatively, you can filter the results. ## @@ -79874,16 +79901,16 @@ proc validate_PostDescribeTransitGatewayRouteTables_620835(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620837 = query.getOrDefault("Action") - valid_620837 = validateParameter(valid_620837, JString, required = true, default = newJString( + var valid_620839 = query.getOrDefault("Action") + valid_620839 = validateParameter(valid_620839, JString, required = true, default = newJString( "DescribeTransitGatewayRouteTables")) - if valid_620837 != nil: - section.add "Action", valid_620837 - var valid_620838 = query.getOrDefault("Version") - valid_620838 = validateParameter(valid_620838, JString, required = true, + if valid_620839 != nil: + section.add "Action", valid_620839 + var valid_620840 = query.getOrDefault("Version") + valid_620840 = validateParameter(valid_620840, JString, required = true, default = newJString("2016-11-15")) - if valid_620838 != nil: - section.add "Version", valid_620838 + if valid_620840 != nil: + section.add "Version", valid_620840 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -79894,41 +79921,41 @@ proc validate_PostDescribeTransitGatewayRouteTables_620835(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620839 = header.getOrDefault("X-Amz-Signature") - valid_620839 = validateParameter(valid_620839, JString, required = false, - default = nil) - if valid_620839 != nil: - section.add "X-Amz-Signature", valid_620839 - var valid_620840 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620840 = validateParameter(valid_620840, JString, required = false, - default = nil) - if valid_620840 != nil: - section.add "X-Amz-Content-Sha256", valid_620840 - var valid_620841 = header.getOrDefault("X-Amz-Date") + var valid_620841 = header.getOrDefault("X-Amz-Signature") valid_620841 = validateParameter(valid_620841, JString, required = false, default = nil) if valid_620841 != nil: - section.add "X-Amz-Date", valid_620841 - var valid_620842 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620841 + var valid_620842 = header.getOrDefault("X-Amz-Content-Sha256") valid_620842 = validateParameter(valid_620842, JString, required = false, default = nil) if valid_620842 != nil: - section.add "X-Amz-Credential", valid_620842 - var valid_620843 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620842 + var valid_620843 = header.getOrDefault("X-Amz-Date") valid_620843 = validateParameter(valid_620843, JString, required = false, default = nil) if valid_620843 != nil: - section.add "X-Amz-Security-Token", valid_620843 - var valid_620844 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620843 + var valid_620844 = header.getOrDefault("X-Amz-Credential") valid_620844 = validateParameter(valid_620844, JString, required = false, default = nil) if valid_620844 != nil: - section.add "X-Amz-Algorithm", valid_620844 - var valid_620845 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620844 + var valid_620845 = header.getOrDefault("X-Amz-Security-Token") valid_620845 = validateParameter(valid_620845, JString, required = false, default = nil) if valid_620845 != nil: - section.add "X-Amz-SignedHeaders", valid_620845 + section.add "X-Amz-Security-Token", valid_620845 + var valid_620846 = header.getOrDefault("X-Amz-Algorithm") + valid_620846 = validateParameter(valid_620846, JString, required = false, + default = nil) + if valid_620846 != nil: + section.add "X-Amz-Algorithm", valid_620846 + var valid_620847 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620847 = validateParameter(valid_620847, JString, required = false, + default = nil) + if valid_620847 != nil: + section.add "X-Amz-SignedHeaders", valid_620847 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -79942,48 +79969,48 @@ proc validate_PostDescribeTransitGatewayRouteTables_620835(path: JsonNode; ## Filter: JArray ## :

    One or more filters. The possible values are:

    section = newJObject() - var valid_620846 = formData.getOrDefault("NextToken") - valid_620846 = validateParameter(valid_620846, JString, required = false, - default = nil) - if valid_620846 != nil: - section.add "NextToken", valid_620846 - var valid_620847 = formData.getOrDefault("DryRun") - valid_620847 = validateParameter(valid_620847, JBool, required = false, default = nil) - if valid_620847 != nil: - section.add "DryRun", valid_620847 - var valid_620848 = formData.getOrDefault("TransitGatewayRouteTableIds") - valid_620848 = validateParameter(valid_620848, JArray, required = false, + var valid_620848 = formData.getOrDefault("NextToken") + valid_620848 = validateParameter(valid_620848, JString, required = false, default = nil) if valid_620848 != nil: - section.add "TransitGatewayRouteTableIds", valid_620848 - var valid_620849 = formData.getOrDefault("MaxResults") - valid_620849 = validateParameter(valid_620849, JInt, required = false, default = nil) + section.add "NextToken", valid_620848 + var valid_620849 = formData.getOrDefault("DryRun") + valid_620849 = validateParameter(valid_620849, JBool, required = false, default = nil) if valid_620849 != nil: - section.add "MaxResults", valid_620849 - var valid_620850 = formData.getOrDefault("Filter") + section.add "DryRun", valid_620849 + var valid_620850 = formData.getOrDefault("TransitGatewayRouteTableIds") valid_620850 = validateParameter(valid_620850, JArray, required = false, default = nil) if valid_620850 != nil: - section.add "Filter", valid_620850 + section.add "TransitGatewayRouteTableIds", valid_620850 + var valid_620851 = formData.getOrDefault("MaxResults") + valid_620851 = validateParameter(valid_620851, JInt, required = false, default = nil) + if valid_620851 != nil: + section.add "MaxResults", valid_620851 + var valid_620852 = formData.getOrDefault("Filter") + valid_620852 = validateParameter(valid_620852, JArray, required = false, + default = nil) + if valid_620852 != nil: + section.add "Filter", valid_620852 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620851: Call_PostDescribeTransitGatewayRouteTables_620834; +proc call*(call_620853: Call_PostDescribeTransitGatewayRouteTables_620836; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more transit gateway route tables. By default, all transit gateway route tables are described. Alternatively, you can filter the results. ## - let valid = call_620851.validator(path, query, header, formData, body) - let scheme = call_620851.pickScheme + let valid = call_620853.validator(path, query, header, formData, body) + let scheme = call_620853.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620851.url(scheme.get, call_620851.host, call_620851.base, - call_620851.route, valid.getOrDefault("path"), + let url = call_620853.url(scheme.get, call_620853.host, call_620853.base, + call_620853.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620851, url, valid) + result = atozHook(call_620853, url, valid) -proc call*(call_620852: Call_PostDescribeTransitGatewayRouteTables_620834; +proc call*(call_620854: Call_PostDescribeTransitGatewayRouteTables_620836; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeTransitGatewayRouteTables"; Version: string = "2016-11-15"; @@ -80003,29 +80030,29 @@ proc call*(call_620852: Call_PostDescribeTransitGatewayRouteTables_620834; ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## Filter: JArray ## :

    One or more filters. The possible values are:

    - var query_620853 = newJObject() - var formData_620854 = newJObject() - add(formData_620854, "NextToken", newJString(NextToken)) - add(formData_620854, "DryRun", newJBool(DryRun)) - add(query_620853, "Action", newJString(Action)) - add(query_620853, "Version", newJString(Version)) + var query_620855 = newJObject() + var formData_620856 = newJObject() + add(formData_620856, "NextToken", newJString(NextToken)) + add(formData_620856, "DryRun", newJBool(DryRun)) + add(query_620855, "Action", newJString(Action)) + add(query_620855, "Version", newJString(Version)) if TransitGatewayRouteTableIds != nil: - formData_620854.add "TransitGatewayRouteTableIds", TransitGatewayRouteTableIds - add(formData_620854, "MaxResults", newJInt(MaxResults)) + formData_620856.add "TransitGatewayRouteTableIds", TransitGatewayRouteTableIds + add(formData_620856, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_620854.add "Filter", Filter - result = call_620852.call(nil, query_620853, nil, formData_620854, nil) + formData_620856.add "Filter", Filter + result = call_620854.call(nil, query_620855, nil, formData_620856, nil) -var postDescribeTransitGatewayRouteTables* = Call_PostDescribeTransitGatewayRouteTables_620834( +var postDescribeTransitGatewayRouteTables* = Call_PostDescribeTransitGatewayRouteTables_620836( name: "postDescribeTransitGatewayRouteTables", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeTransitGatewayRouteTables", - validator: validate_PostDescribeTransitGatewayRouteTables_620835, base: "/", - url: url_PostDescribeTransitGatewayRouteTables_620836, + validator: validate_PostDescribeTransitGatewayRouteTables_620837, base: "/", + url: url_PostDescribeTransitGatewayRouteTables_620838, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeTransitGatewayRouteTables_620814 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeTransitGatewayRouteTables_620816(protocol: Scheme; + Call_GetDescribeTransitGatewayRouteTables_620816 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeTransitGatewayRouteTables_620818(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -80035,7 +80062,7 @@ proc url_GetDescribeTransitGatewayRouteTables_620816(protocol: Scheme; else: result.path = base & route -proc validate_GetDescribeTransitGatewayRouteTables_620815(path: JsonNode; +proc validate_GetDescribeTransitGatewayRouteTables_620817(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more transit gateway route tables. By default, all transit gateway route tables are described. Alternatively, you can filter the results. ## @@ -80057,39 +80084,39 @@ proc validate_GetDescribeTransitGatewayRouteTables_620815(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620817 = query.getOrDefault("MaxResults") - valid_620817 = validateParameter(valid_620817, JInt, required = false, default = nil) - if valid_620817 != nil: - section.add "MaxResults", valid_620817 - var valid_620818 = query.getOrDefault("DryRun") - valid_620818 = validateParameter(valid_620818, JBool, required = false, default = nil) - if valid_620818 != nil: - section.add "DryRun", valid_620818 - var valid_620819 = query.getOrDefault("NextToken") - valid_620819 = validateParameter(valid_620819, JString, required = false, - default = nil) + var valid_620819 = query.getOrDefault("MaxResults") + valid_620819 = validateParameter(valid_620819, JInt, required = false, default = nil) if valid_620819 != nil: - section.add "NextToken", valid_620819 - var valid_620820 = query.getOrDefault("TransitGatewayRouteTableIds") - valid_620820 = validateParameter(valid_620820, JArray, required = false, - default = nil) + section.add "MaxResults", valid_620819 + var valid_620820 = query.getOrDefault("DryRun") + valid_620820 = validateParameter(valid_620820, JBool, required = false, default = nil) if valid_620820 != nil: - section.add "TransitGatewayRouteTableIds", valid_620820 - var valid_620821 = query.getOrDefault("Filter") - valid_620821 = validateParameter(valid_620821, JArray, required = false, + section.add "DryRun", valid_620820 + var valid_620821 = query.getOrDefault("NextToken") + valid_620821 = validateParameter(valid_620821, JString, required = false, default = nil) if valid_620821 != nil: - section.add "Filter", valid_620821 - var valid_620822 = query.getOrDefault("Action") - valid_620822 = validateParameter(valid_620822, JString, required = true, default = newJString( - "DescribeTransitGatewayRouteTables")) + section.add "NextToken", valid_620821 + var valid_620822 = query.getOrDefault("TransitGatewayRouteTableIds") + valid_620822 = validateParameter(valid_620822, JArray, required = false, + default = nil) if valid_620822 != nil: - section.add "Action", valid_620822 - var valid_620823 = query.getOrDefault("Version") - valid_620823 = validateParameter(valid_620823, JString, required = true, - default = newJString("2016-11-15")) + section.add "TransitGatewayRouteTableIds", valid_620822 + var valid_620823 = query.getOrDefault("Filter") + valid_620823 = validateParameter(valid_620823, JArray, required = false, + default = nil) if valid_620823 != nil: - section.add "Version", valid_620823 + section.add "Filter", valid_620823 + var valid_620824 = query.getOrDefault("Action") + valid_620824 = validateParameter(valid_620824, JString, required = true, default = newJString( + "DescribeTransitGatewayRouteTables")) + if valid_620824 != nil: + section.add "Action", valid_620824 + var valid_620825 = query.getOrDefault("Version") + valid_620825 = validateParameter(valid_620825, JString, required = true, + default = newJString("2016-11-15")) + if valid_620825 != nil: + section.add "Version", valid_620825 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -80100,62 +80127,62 @@ proc validate_GetDescribeTransitGatewayRouteTables_620815(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620824 = header.getOrDefault("X-Amz-Signature") - valid_620824 = validateParameter(valid_620824, JString, required = false, - default = nil) - if valid_620824 != nil: - section.add "X-Amz-Signature", valid_620824 - var valid_620825 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620825 = validateParameter(valid_620825, JString, required = false, - default = nil) - if valid_620825 != nil: - section.add "X-Amz-Content-Sha256", valid_620825 - var valid_620826 = header.getOrDefault("X-Amz-Date") + var valid_620826 = header.getOrDefault("X-Amz-Signature") valid_620826 = validateParameter(valid_620826, JString, required = false, default = nil) if valid_620826 != nil: - section.add "X-Amz-Date", valid_620826 - var valid_620827 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620826 + var valid_620827 = header.getOrDefault("X-Amz-Content-Sha256") valid_620827 = validateParameter(valid_620827, JString, required = false, default = nil) if valid_620827 != nil: - section.add "X-Amz-Credential", valid_620827 - var valid_620828 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620827 + var valid_620828 = header.getOrDefault("X-Amz-Date") valid_620828 = validateParameter(valid_620828, JString, required = false, default = nil) if valid_620828 != nil: - section.add "X-Amz-Security-Token", valid_620828 - var valid_620829 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620828 + var valid_620829 = header.getOrDefault("X-Amz-Credential") valid_620829 = validateParameter(valid_620829, JString, required = false, default = nil) if valid_620829 != nil: - section.add "X-Amz-Algorithm", valid_620829 - var valid_620830 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620829 + var valid_620830 = header.getOrDefault("X-Amz-Security-Token") valid_620830 = validateParameter(valid_620830, JString, required = false, default = nil) if valid_620830 != nil: - section.add "X-Amz-SignedHeaders", valid_620830 + section.add "X-Amz-Security-Token", valid_620830 + var valid_620831 = header.getOrDefault("X-Amz-Algorithm") + valid_620831 = validateParameter(valid_620831, JString, required = false, + default = nil) + if valid_620831 != nil: + section.add "X-Amz-Algorithm", valid_620831 + var valid_620832 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620832 = validateParameter(valid_620832, JString, required = false, + default = nil) + if valid_620832 != nil: + section.add "X-Amz-SignedHeaders", valid_620832 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620831: Call_GetDescribeTransitGatewayRouteTables_620814; +proc call*(call_620833: Call_GetDescribeTransitGatewayRouteTables_620816; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more transit gateway route tables. By default, all transit gateway route tables are described. Alternatively, you can filter the results. ## - let valid = call_620831.validator(path, query, header, formData, body) - let scheme = call_620831.pickScheme + let valid = call_620833.validator(path, query, header, formData, body) + let scheme = call_620833.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620831.url(scheme.get, call_620831.host, call_620831.base, - call_620831.route, valid.getOrDefault("path"), + let url = call_620833.url(scheme.get, call_620833.host, call_620833.base, + call_620833.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620831, url, valid) + result = atozHook(call_620833, url, valid) -proc call*(call_620832: Call_GetDescribeTransitGatewayRouteTables_620814; +proc call*(call_620834: Call_GetDescribeTransitGatewayRouteTables_620816; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; TransitGatewayRouteTableIds: JsonNode = nil; Filter: JsonNode = nil; Action: string = "DescribeTransitGatewayRouteTables"; @@ -80174,28 +80201,28 @@ proc call*(call_620832: Call_GetDescribeTransitGatewayRouteTables_620814; ## :

    One or more filters. The possible values are:

    ## Action: string (required) ## Version: string (required) - var query_620833 = newJObject() - add(query_620833, "MaxResults", newJInt(MaxResults)) - add(query_620833, "DryRun", newJBool(DryRun)) - add(query_620833, "NextToken", newJString(NextToken)) + var query_620835 = newJObject() + add(query_620835, "MaxResults", newJInt(MaxResults)) + add(query_620835, "DryRun", newJBool(DryRun)) + add(query_620835, "NextToken", newJString(NextToken)) if TransitGatewayRouteTableIds != nil: - query_620833.add "TransitGatewayRouteTableIds", TransitGatewayRouteTableIds + query_620835.add "TransitGatewayRouteTableIds", TransitGatewayRouteTableIds if Filter != nil: - query_620833.add "Filter", Filter - add(query_620833, "Action", newJString(Action)) - add(query_620833, "Version", newJString(Version)) - result = call_620832.call(nil, query_620833, nil, nil, nil) + query_620835.add "Filter", Filter + add(query_620835, "Action", newJString(Action)) + add(query_620835, "Version", newJString(Version)) + result = call_620834.call(nil, query_620835, nil, nil, nil) -var getDescribeTransitGatewayRouteTables* = Call_GetDescribeTransitGatewayRouteTables_620814( +var getDescribeTransitGatewayRouteTables* = Call_GetDescribeTransitGatewayRouteTables_620816( name: "getDescribeTransitGatewayRouteTables", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeTransitGatewayRouteTables", - validator: validate_GetDescribeTransitGatewayRouteTables_620815, base: "/", - url: url_GetDescribeTransitGatewayRouteTables_620816, + validator: validate_GetDescribeTransitGatewayRouteTables_620817, base: "/", + url: url_GetDescribeTransitGatewayRouteTables_620818, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeTransitGatewayVpcAttachments_620875 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeTransitGatewayVpcAttachments_620877(protocol: Scheme; + Call_PostDescribeTransitGatewayVpcAttachments_620877 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeTransitGatewayVpcAttachments_620879(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -80205,7 +80232,7 @@ proc url_PostDescribeTransitGatewayVpcAttachments_620877(protocol: Scheme; else: result.path = base & route -proc validate_PostDescribeTransitGatewayVpcAttachments_620876(path: JsonNode; +proc validate_PostDescribeTransitGatewayVpcAttachments_620878(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more VPC attachments. By default, all VPC attachments are described. Alternatively, you can filter the results. ## @@ -80217,16 +80244,16 @@ proc validate_PostDescribeTransitGatewayVpcAttachments_620876(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620878 = query.getOrDefault("Action") - valid_620878 = validateParameter(valid_620878, JString, required = true, default = newJString( + var valid_620880 = query.getOrDefault("Action") + valid_620880 = validateParameter(valid_620880, JString, required = true, default = newJString( "DescribeTransitGatewayVpcAttachments")) - if valid_620878 != nil: - section.add "Action", valid_620878 - var valid_620879 = query.getOrDefault("Version") - valid_620879 = validateParameter(valid_620879, JString, required = true, + if valid_620880 != nil: + section.add "Action", valid_620880 + var valid_620881 = query.getOrDefault("Version") + valid_620881 = validateParameter(valid_620881, JString, required = true, default = newJString("2016-11-15")) - if valid_620879 != nil: - section.add "Version", valid_620879 + if valid_620881 != nil: + section.add "Version", valid_620881 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -80237,41 +80264,41 @@ proc validate_PostDescribeTransitGatewayVpcAttachments_620876(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620880 = header.getOrDefault("X-Amz-Signature") - valid_620880 = validateParameter(valid_620880, JString, required = false, - default = nil) - if valid_620880 != nil: - section.add "X-Amz-Signature", valid_620880 - var valid_620881 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620881 = validateParameter(valid_620881, JString, required = false, - default = nil) - if valid_620881 != nil: - section.add "X-Amz-Content-Sha256", valid_620881 - var valid_620882 = header.getOrDefault("X-Amz-Date") + var valid_620882 = header.getOrDefault("X-Amz-Signature") valid_620882 = validateParameter(valid_620882, JString, required = false, default = nil) if valid_620882 != nil: - section.add "X-Amz-Date", valid_620882 - var valid_620883 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620882 + var valid_620883 = header.getOrDefault("X-Amz-Content-Sha256") valid_620883 = validateParameter(valid_620883, JString, required = false, default = nil) if valid_620883 != nil: - section.add "X-Amz-Credential", valid_620883 - var valid_620884 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620883 + var valid_620884 = header.getOrDefault("X-Amz-Date") valid_620884 = validateParameter(valid_620884, JString, required = false, default = nil) if valid_620884 != nil: - section.add "X-Amz-Security-Token", valid_620884 - var valid_620885 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620884 + var valid_620885 = header.getOrDefault("X-Amz-Credential") valid_620885 = validateParameter(valid_620885, JString, required = false, default = nil) if valid_620885 != nil: - section.add "X-Amz-Algorithm", valid_620885 - var valid_620886 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620885 + var valid_620886 = header.getOrDefault("X-Amz-Security-Token") valid_620886 = validateParameter(valid_620886, JString, required = false, default = nil) if valid_620886 != nil: - section.add "X-Amz-SignedHeaders", valid_620886 + section.add "X-Amz-Security-Token", valid_620886 + var valid_620887 = header.getOrDefault("X-Amz-Algorithm") + valid_620887 = validateParameter(valid_620887, JString, required = false, + default = nil) + if valid_620887 != nil: + section.add "X-Amz-Algorithm", valid_620887 + var valid_620888 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620888 = validateParameter(valid_620888, JString, required = false, + default = nil) + if valid_620888 != nil: + section.add "X-Amz-SignedHeaders", valid_620888 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -80285,48 +80312,48 @@ proc validate_PostDescribeTransitGatewayVpcAttachments_620876(path: JsonNode; ## Filter: JArray ## :

    One or more filters. The possible values are:

    section = newJObject() - var valid_620887 = formData.getOrDefault("NextToken") - valid_620887 = validateParameter(valid_620887, JString, required = false, - default = nil) - if valid_620887 != nil: - section.add "NextToken", valid_620887 - var valid_620888 = formData.getOrDefault("TransitGatewayAttachmentIds") - valid_620888 = validateParameter(valid_620888, JArray, required = false, + var valid_620889 = formData.getOrDefault("NextToken") + valid_620889 = validateParameter(valid_620889, JString, required = false, default = nil) - if valid_620888 != nil: - section.add "TransitGatewayAttachmentIds", valid_620888 - var valid_620889 = formData.getOrDefault("DryRun") - valid_620889 = validateParameter(valid_620889, JBool, required = false, default = nil) if valid_620889 != nil: - section.add "DryRun", valid_620889 - var valid_620890 = formData.getOrDefault("MaxResults") - valid_620890 = validateParameter(valid_620890, JInt, required = false, default = nil) - if valid_620890 != nil: - section.add "MaxResults", valid_620890 - var valid_620891 = formData.getOrDefault("Filter") - valid_620891 = validateParameter(valid_620891, JArray, required = false, + section.add "NextToken", valid_620889 + var valid_620890 = formData.getOrDefault("TransitGatewayAttachmentIds") + valid_620890 = validateParameter(valid_620890, JArray, required = false, default = nil) + if valid_620890 != nil: + section.add "TransitGatewayAttachmentIds", valid_620890 + var valid_620891 = formData.getOrDefault("DryRun") + valid_620891 = validateParameter(valid_620891, JBool, required = false, default = nil) if valid_620891 != nil: - section.add "Filter", valid_620891 + section.add "DryRun", valid_620891 + var valid_620892 = formData.getOrDefault("MaxResults") + valid_620892 = validateParameter(valid_620892, JInt, required = false, default = nil) + if valid_620892 != nil: + section.add "MaxResults", valid_620892 + var valid_620893 = formData.getOrDefault("Filter") + valid_620893 = validateParameter(valid_620893, JArray, required = false, + default = nil) + if valid_620893 != nil: + section.add "Filter", valid_620893 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620892: Call_PostDescribeTransitGatewayVpcAttachments_620875; +proc call*(call_620894: Call_PostDescribeTransitGatewayVpcAttachments_620877; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more VPC attachments. By default, all VPC attachments are described. Alternatively, you can filter the results. ## - let valid = call_620892.validator(path, query, header, formData, body) - let scheme = call_620892.pickScheme + let valid = call_620894.validator(path, query, header, formData, body) + let scheme = call_620894.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620892.url(scheme.get, call_620892.host, call_620892.base, - call_620892.route, valid.getOrDefault("path"), + let url = call_620894.url(scheme.get, call_620894.host, call_620894.base, + call_620894.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620892, url, valid) + result = atozHook(call_620894, url, valid) -proc call*(call_620893: Call_PostDescribeTransitGatewayVpcAttachments_620875; +proc call*(call_620895: Call_PostDescribeTransitGatewayVpcAttachments_620877; NextToken: string = ""; TransitGatewayAttachmentIds: JsonNode = nil; DryRun: bool = false; Action: string = "DescribeTransitGatewayVpcAttachments"; @@ -80345,29 +80372,29 @@ proc call*(call_620893: Call_PostDescribeTransitGatewayVpcAttachments_620875; ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## Filter: JArray ## :

    One or more filters. The possible values are:

    - var query_620894 = newJObject() - var formData_620895 = newJObject() - add(formData_620895, "NextToken", newJString(NextToken)) + var query_620896 = newJObject() + var formData_620897 = newJObject() + add(formData_620897, "NextToken", newJString(NextToken)) if TransitGatewayAttachmentIds != nil: - formData_620895.add "TransitGatewayAttachmentIds", TransitGatewayAttachmentIds - add(formData_620895, "DryRun", newJBool(DryRun)) - add(query_620894, "Action", newJString(Action)) - add(query_620894, "Version", newJString(Version)) - add(formData_620895, "MaxResults", newJInt(MaxResults)) + formData_620897.add "TransitGatewayAttachmentIds", TransitGatewayAttachmentIds + add(formData_620897, "DryRun", newJBool(DryRun)) + add(query_620896, "Action", newJString(Action)) + add(query_620896, "Version", newJString(Version)) + add(formData_620897, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_620895.add "Filter", Filter - result = call_620893.call(nil, query_620894, nil, formData_620895, nil) + formData_620897.add "Filter", Filter + result = call_620895.call(nil, query_620896, nil, formData_620897, nil) -var postDescribeTransitGatewayVpcAttachments* = Call_PostDescribeTransitGatewayVpcAttachments_620875( +var postDescribeTransitGatewayVpcAttachments* = Call_PostDescribeTransitGatewayVpcAttachments_620877( name: "postDescribeTransitGatewayVpcAttachments", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeTransitGatewayVpcAttachments", - validator: validate_PostDescribeTransitGatewayVpcAttachments_620876, - base: "/", url: url_PostDescribeTransitGatewayVpcAttachments_620877, + validator: validate_PostDescribeTransitGatewayVpcAttachments_620878, + base: "/", url: url_PostDescribeTransitGatewayVpcAttachments_620879, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeTransitGatewayVpcAttachments_620855 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeTransitGatewayVpcAttachments_620857(protocol: Scheme; + Call_GetDescribeTransitGatewayVpcAttachments_620857 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeTransitGatewayVpcAttachments_620859(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -80377,7 +80404,7 @@ proc url_GetDescribeTransitGatewayVpcAttachments_620857(protocol: Scheme; else: result.path = base & route -proc validate_GetDescribeTransitGatewayVpcAttachments_620856(path: JsonNode; +proc validate_GetDescribeTransitGatewayVpcAttachments_620858(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more VPC attachments. By default, all VPC attachments are described. Alternatively, you can filter the results. ## @@ -80399,39 +80426,39 @@ proc validate_GetDescribeTransitGatewayVpcAttachments_620856(path: JsonNode; ## TransitGatewayAttachmentIds: JArray ## : The IDs of the attachments. section = newJObject() - var valid_620858 = query.getOrDefault("MaxResults") - valid_620858 = validateParameter(valid_620858, JInt, required = false, default = nil) - if valid_620858 != nil: - section.add "MaxResults", valid_620858 - var valid_620859 = query.getOrDefault("DryRun") - valid_620859 = validateParameter(valid_620859, JBool, required = false, default = nil) - if valid_620859 != nil: - section.add "DryRun", valid_620859 - var valid_620860 = query.getOrDefault("NextToken") - valid_620860 = validateParameter(valid_620860, JString, required = false, - default = nil) + var valid_620860 = query.getOrDefault("MaxResults") + valid_620860 = validateParameter(valid_620860, JInt, required = false, default = nil) if valid_620860 != nil: - section.add "NextToken", valid_620860 - var valid_620861 = query.getOrDefault("Filter") - valid_620861 = validateParameter(valid_620861, JArray, required = false, - default = nil) + section.add "MaxResults", valid_620860 + var valid_620861 = query.getOrDefault("DryRun") + valid_620861 = validateParameter(valid_620861, JBool, required = false, default = nil) if valid_620861 != nil: - section.add "Filter", valid_620861 - var valid_620862 = query.getOrDefault("Action") - valid_620862 = validateParameter(valid_620862, JString, required = true, default = newJString( - "DescribeTransitGatewayVpcAttachments")) + section.add "DryRun", valid_620861 + var valid_620862 = query.getOrDefault("NextToken") + valid_620862 = validateParameter(valid_620862, JString, required = false, + default = nil) if valid_620862 != nil: - section.add "Action", valid_620862 - var valid_620863 = query.getOrDefault("Version") - valid_620863 = validateParameter(valid_620863, JString, required = true, - default = newJString("2016-11-15")) - if valid_620863 != nil: - section.add "Version", valid_620863 - var valid_620864 = query.getOrDefault("TransitGatewayAttachmentIds") - valid_620864 = validateParameter(valid_620864, JArray, required = false, + section.add "NextToken", valid_620862 + var valid_620863 = query.getOrDefault("Filter") + valid_620863 = validateParameter(valid_620863, JArray, required = false, default = nil) + if valid_620863 != nil: + section.add "Filter", valid_620863 + var valid_620864 = query.getOrDefault("Action") + valid_620864 = validateParameter(valid_620864, JString, required = true, default = newJString( + "DescribeTransitGatewayVpcAttachments")) if valid_620864 != nil: - section.add "TransitGatewayAttachmentIds", valid_620864 + section.add "Action", valid_620864 + var valid_620865 = query.getOrDefault("Version") + valid_620865 = validateParameter(valid_620865, JString, required = true, + default = newJString("2016-11-15")) + if valid_620865 != nil: + section.add "Version", valid_620865 + var valid_620866 = query.getOrDefault("TransitGatewayAttachmentIds") + valid_620866 = validateParameter(valid_620866, JArray, required = false, + default = nil) + if valid_620866 != nil: + section.add "TransitGatewayAttachmentIds", valid_620866 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -80442,62 +80469,62 @@ proc validate_GetDescribeTransitGatewayVpcAttachments_620856(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620865 = header.getOrDefault("X-Amz-Signature") - valid_620865 = validateParameter(valid_620865, JString, required = false, - default = nil) - if valid_620865 != nil: - section.add "X-Amz-Signature", valid_620865 - var valid_620866 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620866 = validateParameter(valid_620866, JString, required = false, - default = nil) - if valid_620866 != nil: - section.add "X-Amz-Content-Sha256", valid_620866 - var valid_620867 = header.getOrDefault("X-Amz-Date") + var valid_620867 = header.getOrDefault("X-Amz-Signature") valid_620867 = validateParameter(valid_620867, JString, required = false, default = nil) if valid_620867 != nil: - section.add "X-Amz-Date", valid_620867 - var valid_620868 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620867 + var valid_620868 = header.getOrDefault("X-Amz-Content-Sha256") valid_620868 = validateParameter(valid_620868, JString, required = false, default = nil) if valid_620868 != nil: - section.add "X-Amz-Credential", valid_620868 - var valid_620869 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620868 + var valid_620869 = header.getOrDefault("X-Amz-Date") valid_620869 = validateParameter(valid_620869, JString, required = false, default = nil) if valid_620869 != nil: - section.add "X-Amz-Security-Token", valid_620869 - var valid_620870 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620869 + var valid_620870 = header.getOrDefault("X-Amz-Credential") valid_620870 = validateParameter(valid_620870, JString, required = false, default = nil) if valid_620870 != nil: - section.add "X-Amz-Algorithm", valid_620870 - var valid_620871 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620870 + var valid_620871 = header.getOrDefault("X-Amz-Security-Token") valid_620871 = validateParameter(valid_620871, JString, required = false, default = nil) if valid_620871 != nil: - section.add "X-Amz-SignedHeaders", valid_620871 + section.add "X-Amz-Security-Token", valid_620871 + var valid_620872 = header.getOrDefault("X-Amz-Algorithm") + valid_620872 = validateParameter(valid_620872, JString, required = false, + default = nil) + if valid_620872 != nil: + section.add "X-Amz-Algorithm", valid_620872 + var valid_620873 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620873 = validateParameter(valid_620873, JString, required = false, + default = nil) + if valid_620873 != nil: + section.add "X-Amz-SignedHeaders", valid_620873 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620872: Call_GetDescribeTransitGatewayVpcAttachments_620855; +proc call*(call_620874: Call_GetDescribeTransitGatewayVpcAttachments_620857; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more VPC attachments. By default, all VPC attachments are described. Alternatively, you can filter the results. ## - let valid = call_620872.validator(path, query, header, formData, body) - let scheme = call_620872.pickScheme + let valid = call_620874.validator(path, query, header, formData, body) + let scheme = call_620874.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620872.url(scheme.get, call_620872.host, call_620872.base, - call_620872.route, valid.getOrDefault("path"), + let url = call_620874.url(scheme.get, call_620874.host, call_620874.base, + call_620874.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620872, url, valid) + result = atozHook(call_620874, url, valid) -proc call*(call_620873: Call_GetDescribeTransitGatewayVpcAttachments_620855; +proc call*(call_620875: Call_GetDescribeTransitGatewayVpcAttachments_620857; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeTransitGatewayVpcAttachments"; @@ -80517,28 +80544,28 @@ proc call*(call_620873: Call_GetDescribeTransitGatewayVpcAttachments_620855; ## Version: string (required) ## TransitGatewayAttachmentIds: JArray ## : The IDs of the attachments. - var query_620874 = newJObject() - add(query_620874, "MaxResults", newJInt(MaxResults)) - add(query_620874, "DryRun", newJBool(DryRun)) - add(query_620874, "NextToken", newJString(NextToken)) + var query_620876 = newJObject() + add(query_620876, "MaxResults", newJInt(MaxResults)) + add(query_620876, "DryRun", newJBool(DryRun)) + add(query_620876, "NextToken", newJString(NextToken)) if Filter != nil: - query_620874.add "Filter", Filter - add(query_620874, "Action", newJString(Action)) - add(query_620874, "Version", newJString(Version)) + query_620876.add "Filter", Filter + add(query_620876, "Action", newJString(Action)) + add(query_620876, "Version", newJString(Version)) if TransitGatewayAttachmentIds != nil: - query_620874.add "TransitGatewayAttachmentIds", TransitGatewayAttachmentIds - result = call_620873.call(nil, query_620874, nil, nil, nil) + query_620876.add "TransitGatewayAttachmentIds", TransitGatewayAttachmentIds + result = call_620875.call(nil, query_620876, nil, nil, nil) -var getDescribeTransitGatewayVpcAttachments* = Call_GetDescribeTransitGatewayVpcAttachments_620855( +var getDescribeTransitGatewayVpcAttachments* = Call_GetDescribeTransitGatewayVpcAttachments_620857( name: "getDescribeTransitGatewayVpcAttachments", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeTransitGatewayVpcAttachments", - validator: validate_GetDescribeTransitGatewayVpcAttachments_620856, base: "/", - url: url_GetDescribeTransitGatewayVpcAttachments_620857, + validator: validate_GetDescribeTransitGatewayVpcAttachments_620858, base: "/", + url: url_GetDescribeTransitGatewayVpcAttachments_620859, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeTransitGateways_620916 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeTransitGateways_620918(protocol: Scheme; host: string; + Call_PostDescribeTransitGateways_620918 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeTransitGateways_620920(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -80548,7 +80575,7 @@ proc url_PostDescribeTransitGateways_620918(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeTransitGateways_620917(path: JsonNode; query: JsonNode; +proc validate_PostDescribeTransitGateways_620919(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more transit gateways. By default, all transit gateways are described. Alternatively, you can filter the results. ## @@ -80560,16 +80587,16 @@ proc validate_PostDescribeTransitGateways_620917(path: JsonNode; query: JsonNode ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620919 = query.getOrDefault("Action") - valid_620919 = validateParameter(valid_620919, JString, required = true, default = newJString( + var valid_620921 = query.getOrDefault("Action") + valid_620921 = validateParameter(valid_620921, JString, required = true, default = newJString( "DescribeTransitGateways")) - if valid_620919 != nil: - section.add "Action", valid_620919 - var valid_620920 = query.getOrDefault("Version") - valid_620920 = validateParameter(valid_620920, JString, required = true, + if valid_620921 != nil: + section.add "Action", valid_620921 + var valid_620922 = query.getOrDefault("Version") + valid_620922 = validateParameter(valid_620922, JString, required = true, default = newJString("2016-11-15")) - if valid_620920 != nil: - section.add "Version", valid_620920 + if valid_620922 != nil: + section.add "Version", valid_620922 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -80580,41 +80607,41 @@ proc validate_PostDescribeTransitGateways_620917(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620921 = header.getOrDefault("X-Amz-Signature") - valid_620921 = validateParameter(valid_620921, JString, required = false, - default = nil) - if valid_620921 != nil: - section.add "X-Amz-Signature", valid_620921 - var valid_620922 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620922 = validateParameter(valid_620922, JString, required = false, - default = nil) - if valid_620922 != nil: - section.add "X-Amz-Content-Sha256", valid_620922 - var valid_620923 = header.getOrDefault("X-Amz-Date") + var valid_620923 = header.getOrDefault("X-Amz-Signature") valid_620923 = validateParameter(valid_620923, JString, required = false, default = nil) if valid_620923 != nil: - section.add "X-Amz-Date", valid_620923 - var valid_620924 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620923 + var valid_620924 = header.getOrDefault("X-Amz-Content-Sha256") valid_620924 = validateParameter(valid_620924, JString, required = false, default = nil) if valid_620924 != nil: - section.add "X-Amz-Credential", valid_620924 - var valid_620925 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620924 + var valid_620925 = header.getOrDefault("X-Amz-Date") valid_620925 = validateParameter(valid_620925, JString, required = false, default = nil) if valid_620925 != nil: - section.add "X-Amz-Security-Token", valid_620925 - var valid_620926 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620925 + var valid_620926 = header.getOrDefault("X-Amz-Credential") valid_620926 = validateParameter(valid_620926, JString, required = false, default = nil) if valid_620926 != nil: - section.add "X-Amz-Algorithm", valid_620926 - var valid_620927 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620926 + var valid_620927 = header.getOrDefault("X-Amz-Security-Token") valid_620927 = validateParameter(valid_620927, JString, required = false, default = nil) if valid_620927 != nil: - section.add "X-Amz-SignedHeaders", valid_620927 + section.add "X-Amz-Security-Token", valid_620927 + var valid_620928 = header.getOrDefault("X-Amz-Algorithm") + valid_620928 = validateParameter(valid_620928, JString, required = false, + default = nil) + if valid_620928 != nil: + section.add "X-Amz-Algorithm", valid_620928 + var valid_620929 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620929 = validateParameter(valid_620929, JString, required = false, + default = nil) + if valid_620929 != nil: + section.add "X-Amz-SignedHeaders", valid_620929 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -80628,47 +80655,47 @@ proc validate_PostDescribeTransitGateways_620917(path: JsonNode; query: JsonNode ## Filter: JArray ## :

    One or more filters. The possible values are:

    section = newJObject() - var valid_620928 = formData.getOrDefault("NextToken") - valid_620928 = validateParameter(valid_620928, JString, required = false, - default = nil) - if valid_620928 != nil: - section.add "NextToken", valid_620928 - var valid_620929 = formData.getOrDefault("DryRun") - valid_620929 = validateParameter(valid_620929, JBool, required = false, default = nil) - if valid_620929 != nil: - section.add "DryRun", valid_620929 - var valid_620930 = formData.getOrDefault("TransitGatewayIds") - valid_620930 = validateParameter(valid_620930, JArray, required = false, + var valid_620930 = formData.getOrDefault("NextToken") + valid_620930 = validateParameter(valid_620930, JString, required = false, default = nil) if valid_620930 != nil: - section.add "TransitGatewayIds", valid_620930 - var valid_620931 = formData.getOrDefault("MaxResults") - valid_620931 = validateParameter(valid_620931, JInt, required = false, default = nil) + section.add "NextToken", valid_620930 + var valid_620931 = formData.getOrDefault("DryRun") + valid_620931 = validateParameter(valid_620931, JBool, required = false, default = nil) if valid_620931 != nil: - section.add "MaxResults", valid_620931 - var valid_620932 = formData.getOrDefault("Filter") + section.add "DryRun", valid_620931 + var valid_620932 = formData.getOrDefault("TransitGatewayIds") valid_620932 = validateParameter(valid_620932, JArray, required = false, default = nil) if valid_620932 != nil: - section.add "Filter", valid_620932 + section.add "TransitGatewayIds", valid_620932 + var valid_620933 = formData.getOrDefault("MaxResults") + valid_620933 = validateParameter(valid_620933, JInt, required = false, default = nil) + if valid_620933 != nil: + section.add "MaxResults", valid_620933 + var valid_620934 = formData.getOrDefault("Filter") + valid_620934 = validateParameter(valid_620934, JArray, required = false, + default = nil) + if valid_620934 != nil: + section.add "Filter", valid_620934 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620933: Call_PostDescribeTransitGateways_620916; path: JsonNode; +proc call*(call_620935: Call_PostDescribeTransitGateways_620918; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more transit gateways. By default, all transit gateways are described. Alternatively, you can filter the results. ## - let valid = call_620933.validator(path, query, header, formData, body) - let scheme = call_620933.pickScheme + let valid = call_620935.validator(path, query, header, formData, body) + let scheme = call_620935.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620933.url(scheme.get, call_620933.host, call_620933.base, - call_620933.route, valid.getOrDefault("path"), + let url = call_620935.url(scheme.get, call_620935.host, call_620935.base, + call_620935.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620933, url, valid) + result = atozHook(call_620935, url, valid) -proc call*(call_620934: Call_PostDescribeTransitGateways_620916; +proc call*(call_620936: Call_PostDescribeTransitGateways_620918; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeTransitGateways"; TransitGatewayIds: JsonNode = nil; Version: string = "2016-11-15"; @@ -80687,28 +80714,28 @@ proc call*(call_620934: Call_PostDescribeTransitGateways_620916; ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## Filter: JArray ## :

    One or more filters. The possible values are:

    - var query_620935 = newJObject() - var formData_620936 = newJObject() - add(formData_620936, "NextToken", newJString(NextToken)) - add(formData_620936, "DryRun", newJBool(DryRun)) - add(query_620935, "Action", newJString(Action)) + var query_620937 = newJObject() + var formData_620938 = newJObject() + add(formData_620938, "NextToken", newJString(NextToken)) + add(formData_620938, "DryRun", newJBool(DryRun)) + add(query_620937, "Action", newJString(Action)) if TransitGatewayIds != nil: - formData_620936.add "TransitGatewayIds", TransitGatewayIds - add(query_620935, "Version", newJString(Version)) - add(formData_620936, "MaxResults", newJInt(MaxResults)) + formData_620938.add "TransitGatewayIds", TransitGatewayIds + add(query_620937, "Version", newJString(Version)) + add(formData_620938, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_620936.add "Filter", Filter - result = call_620934.call(nil, query_620935, nil, formData_620936, nil) + formData_620938.add "Filter", Filter + result = call_620936.call(nil, query_620937, nil, formData_620938, nil) -var postDescribeTransitGateways* = Call_PostDescribeTransitGateways_620916( +var postDescribeTransitGateways* = Call_PostDescribeTransitGateways_620918( name: "postDescribeTransitGateways", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeTransitGateways", - validator: validate_PostDescribeTransitGateways_620917, base: "/", - url: url_PostDescribeTransitGateways_620918, + validator: validate_PostDescribeTransitGateways_620919, base: "/", + url: url_PostDescribeTransitGateways_620920, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeTransitGateways_620896 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeTransitGateways_620898(protocol: Scheme; host: string; + Call_GetDescribeTransitGateways_620898 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeTransitGateways_620900(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -80718,7 +80745,7 @@ proc url_GetDescribeTransitGateways_620898(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeTransitGateways_620897(path: JsonNode; query: JsonNode; +proc validate_GetDescribeTransitGateways_620899(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more transit gateways. By default, all transit gateways are described. Alternatively, you can filter the results. ## @@ -80740,39 +80767,39 @@ proc validate_GetDescribeTransitGateways_620897(path: JsonNode; query: JsonNode; ## TransitGatewayIds: JArray ## : The IDs of the transit gateways. section = newJObject() - var valid_620899 = query.getOrDefault("MaxResults") - valid_620899 = validateParameter(valid_620899, JInt, required = false, default = nil) - if valid_620899 != nil: - section.add "MaxResults", valid_620899 - var valid_620900 = query.getOrDefault("DryRun") - valid_620900 = validateParameter(valid_620900, JBool, required = false, default = nil) - if valid_620900 != nil: - section.add "DryRun", valid_620900 - var valid_620901 = query.getOrDefault("NextToken") - valid_620901 = validateParameter(valid_620901, JString, required = false, - default = nil) + var valid_620901 = query.getOrDefault("MaxResults") + valid_620901 = validateParameter(valid_620901, JInt, required = false, default = nil) if valid_620901 != nil: - section.add "NextToken", valid_620901 - var valid_620902 = query.getOrDefault("Filter") - valid_620902 = validateParameter(valid_620902, JArray, required = false, - default = nil) + section.add "MaxResults", valid_620901 + var valid_620902 = query.getOrDefault("DryRun") + valid_620902 = validateParameter(valid_620902, JBool, required = false, default = nil) if valid_620902 != nil: - section.add "Filter", valid_620902 - var valid_620903 = query.getOrDefault("Action") - valid_620903 = validateParameter(valid_620903, JString, required = true, default = newJString( - "DescribeTransitGateways")) + section.add "DryRun", valid_620902 + var valid_620903 = query.getOrDefault("NextToken") + valid_620903 = validateParameter(valid_620903, JString, required = false, + default = nil) if valid_620903 != nil: - section.add "Action", valid_620903 - var valid_620904 = query.getOrDefault("Version") - valid_620904 = validateParameter(valid_620904, JString, required = true, - default = newJString("2016-11-15")) - if valid_620904 != nil: - section.add "Version", valid_620904 - var valid_620905 = query.getOrDefault("TransitGatewayIds") - valid_620905 = validateParameter(valid_620905, JArray, required = false, + section.add "NextToken", valid_620903 + var valid_620904 = query.getOrDefault("Filter") + valid_620904 = validateParameter(valid_620904, JArray, required = false, default = nil) + if valid_620904 != nil: + section.add "Filter", valid_620904 + var valid_620905 = query.getOrDefault("Action") + valid_620905 = validateParameter(valid_620905, JString, required = true, default = newJString( + "DescribeTransitGateways")) if valid_620905 != nil: - section.add "TransitGatewayIds", valid_620905 + section.add "Action", valid_620905 + var valid_620906 = query.getOrDefault("Version") + valid_620906 = validateParameter(valid_620906, JString, required = true, + default = newJString("2016-11-15")) + if valid_620906 != nil: + section.add "Version", valid_620906 + var valid_620907 = query.getOrDefault("TransitGatewayIds") + valid_620907 = validateParameter(valid_620907, JArray, required = false, + default = nil) + if valid_620907 != nil: + section.add "TransitGatewayIds", valid_620907 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -80783,61 +80810,61 @@ proc validate_GetDescribeTransitGateways_620897(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620906 = header.getOrDefault("X-Amz-Signature") - valid_620906 = validateParameter(valid_620906, JString, required = false, - default = nil) - if valid_620906 != nil: - section.add "X-Amz-Signature", valid_620906 - var valid_620907 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620907 = validateParameter(valid_620907, JString, required = false, - default = nil) - if valid_620907 != nil: - section.add "X-Amz-Content-Sha256", valid_620907 - var valid_620908 = header.getOrDefault("X-Amz-Date") + var valid_620908 = header.getOrDefault("X-Amz-Signature") valid_620908 = validateParameter(valid_620908, JString, required = false, default = nil) if valid_620908 != nil: - section.add "X-Amz-Date", valid_620908 - var valid_620909 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620908 + var valid_620909 = header.getOrDefault("X-Amz-Content-Sha256") valid_620909 = validateParameter(valid_620909, JString, required = false, default = nil) if valid_620909 != nil: - section.add "X-Amz-Credential", valid_620909 - var valid_620910 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620909 + var valid_620910 = header.getOrDefault("X-Amz-Date") valid_620910 = validateParameter(valid_620910, JString, required = false, default = nil) if valid_620910 != nil: - section.add "X-Amz-Security-Token", valid_620910 - var valid_620911 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620910 + var valid_620911 = header.getOrDefault("X-Amz-Credential") valid_620911 = validateParameter(valid_620911, JString, required = false, default = nil) if valid_620911 != nil: - section.add "X-Amz-Algorithm", valid_620911 - var valid_620912 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620911 + var valid_620912 = header.getOrDefault("X-Amz-Security-Token") valid_620912 = validateParameter(valid_620912, JString, required = false, default = nil) if valid_620912 != nil: - section.add "X-Amz-SignedHeaders", valid_620912 + section.add "X-Amz-Security-Token", valid_620912 + var valid_620913 = header.getOrDefault("X-Amz-Algorithm") + valid_620913 = validateParameter(valid_620913, JString, required = false, + default = nil) + if valid_620913 != nil: + section.add "X-Amz-Algorithm", valid_620913 + var valid_620914 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620914 = validateParameter(valid_620914, JString, required = false, + default = nil) + if valid_620914 != nil: + section.add "X-Amz-SignedHeaders", valid_620914 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620913: Call_GetDescribeTransitGateways_620896; path: JsonNode; +proc call*(call_620915: Call_GetDescribeTransitGateways_620898; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more transit gateways. By default, all transit gateways are described. Alternatively, you can filter the results. ## - let valid = call_620913.validator(path, query, header, formData, body) - let scheme = call_620913.pickScheme + let valid = call_620915.validator(path, query, header, formData, body) + let scheme = call_620915.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620913.url(scheme.get, call_620913.host, call_620913.base, - call_620913.route, valid.getOrDefault("path"), + let url = call_620915.url(scheme.get, call_620915.host, call_620915.base, + call_620915.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620913, url, valid) + result = atozHook(call_620915, url, valid) -proc call*(call_620914: Call_GetDescribeTransitGateways_620896; +proc call*(call_620916: Call_GetDescribeTransitGateways_620898; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeTransitGateways"; Version: string = "2016-11-15"; TransitGatewayIds: JsonNode = nil): Recallable = @@ -80855,27 +80882,27 @@ proc call*(call_620914: Call_GetDescribeTransitGateways_620896; ## Version: string (required) ## TransitGatewayIds: JArray ## : The IDs of the transit gateways. - var query_620915 = newJObject() - add(query_620915, "MaxResults", newJInt(MaxResults)) - add(query_620915, "DryRun", newJBool(DryRun)) - add(query_620915, "NextToken", newJString(NextToken)) + var query_620917 = newJObject() + add(query_620917, "MaxResults", newJInt(MaxResults)) + add(query_620917, "DryRun", newJBool(DryRun)) + add(query_620917, "NextToken", newJString(NextToken)) if Filter != nil: - query_620915.add "Filter", Filter - add(query_620915, "Action", newJString(Action)) - add(query_620915, "Version", newJString(Version)) + query_620917.add "Filter", Filter + add(query_620917, "Action", newJString(Action)) + add(query_620917, "Version", newJString(Version)) if TransitGatewayIds != nil: - query_620915.add "TransitGatewayIds", TransitGatewayIds - result = call_620914.call(nil, query_620915, nil, nil, nil) + query_620917.add "TransitGatewayIds", TransitGatewayIds + result = call_620916.call(nil, query_620917, nil, nil, nil) -var getDescribeTransitGateways* = Call_GetDescribeTransitGateways_620896( +var getDescribeTransitGateways* = Call_GetDescribeTransitGateways_620898( name: "getDescribeTransitGateways", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeTransitGateways", - validator: validate_GetDescribeTransitGateways_620897, base: "/", - url: url_GetDescribeTransitGateways_620898, + validator: validate_GetDescribeTransitGateways_620899, base: "/", + url: url_GetDescribeTransitGateways_620900, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeVolumeAttribute_620955 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeVolumeAttribute_620957(protocol: Scheme; host: string; + Call_PostDescribeVolumeAttribute_620957 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeVolumeAttribute_620959(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -80885,7 +80912,7 @@ proc url_PostDescribeVolumeAttribute_620957(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeVolumeAttribute_620956(path: JsonNode; query: JsonNode; +proc validate_PostDescribeVolumeAttribute_620958(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Describes the specified attribute of the specified volume. You can specify only one attribute at a time.

    For more information about EBS volumes, see Amazon EBS Volumes in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -80897,16 +80924,16 @@ proc validate_PostDescribeVolumeAttribute_620956(path: JsonNode; query: JsonNode ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620958 = query.getOrDefault("Action") - valid_620958 = validateParameter(valid_620958, JString, required = true, default = newJString( + var valid_620960 = query.getOrDefault("Action") + valid_620960 = validateParameter(valid_620960, JString, required = true, default = newJString( "DescribeVolumeAttribute")) - if valid_620958 != nil: - section.add "Action", valid_620958 - var valid_620959 = query.getOrDefault("Version") - valid_620959 = validateParameter(valid_620959, JString, required = true, + if valid_620960 != nil: + section.add "Action", valid_620960 + var valid_620961 = query.getOrDefault("Version") + valid_620961 = validateParameter(valid_620961, JString, required = true, default = newJString("2016-11-15")) - if valid_620959 != nil: - section.add "Version", valid_620959 + if valid_620961 != nil: + section.add "Version", valid_620961 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -80917,41 +80944,41 @@ proc validate_PostDescribeVolumeAttribute_620956(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620960 = header.getOrDefault("X-Amz-Signature") - valid_620960 = validateParameter(valid_620960, JString, required = false, - default = nil) - if valid_620960 != nil: - section.add "X-Amz-Signature", valid_620960 - var valid_620961 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620961 = validateParameter(valid_620961, JString, required = false, - default = nil) - if valid_620961 != nil: - section.add "X-Amz-Content-Sha256", valid_620961 - var valid_620962 = header.getOrDefault("X-Amz-Date") + var valid_620962 = header.getOrDefault("X-Amz-Signature") valid_620962 = validateParameter(valid_620962, JString, required = false, default = nil) if valid_620962 != nil: - section.add "X-Amz-Date", valid_620962 - var valid_620963 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620962 + var valid_620963 = header.getOrDefault("X-Amz-Content-Sha256") valid_620963 = validateParameter(valid_620963, JString, required = false, default = nil) if valid_620963 != nil: - section.add "X-Amz-Credential", valid_620963 - var valid_620964 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620963 + var valid_620964 = header.getOrDefault("X-Amz-Date") valid_620964 = validateParameter(valid_620964, JString, required = false, default = nil) if valid_620964 != nil: - section.add "X-Amz-Security-Token", valid_620964 - var valid_620965 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620964 + var valid_620965 = header.getOrDefault("X-Amz-Credential") valid_620965 = validateParameter(valid_620965, JString, required = false, default = nil) if valid_620965 != nil: - section.add "X-Amz-Algorithm", valid_620965 - var valid_620966 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620965 + var valid_620966 = header.getOrDefault("X-Amz-Security-Token") valid_620966 = validateParameter(valid_620966, JString, required = false, default = nil) if valid_620966 != nil: - section.add "X-Amz-SignedHeaders", valid_620966 + section.add "X-Amz-Security-Token", valid_620966 + var valid_620967 = header.getOrDefault("X-Amz-Algorithm") + valid_620967 = validateParameter(valid_620967, JString, required = false, + default = nil) + if valid_620967 != nil: + section.add "X-Amz-Algorithm", valid_620967 + var valid_620968 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620968 = validateParameter(valid_620968, JString, required = false, + default = nil) + if valid_620968 != nil: + section.add "X-Amz-SignedHeaders", valid_620968 result.add "header", section ## parameters in `formData` object: ## Attribute: JString (required) @@ -80961,38 +80988,38 @@ proc validate_PostDescribeVolumeAttribute_620956(path: JsonNode; query: JsonNode ## DryRun: JBool ## : 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. section = newJObject() - var valid_620967 = formData.getOrDefault("Attribute") - valid_620967 = validateParameter(valid_620967, JString, required = true, + var valid_620969 = formData.getOrDefault("Attribute") + valid_620969 = validateParameter(valid_620969, JString, required = true, default = newJString("autoEnableIO")) - if valid_620967 != nil: - section.add "Attribute", valid_620967 - var valid_620968 = formData.getOrDefault("VolumeId") - valid_620968 = validateParameter(valid_620968, JString, required = true, - default = nil) - if valid_620968 != nil: - section.add "VolumeId", valid_620968 - var valid_620969 = formData.getOrDefault("DryRun") - valid_620969 = validateParameter(valid_620969, JBool, required = false, default = nil) if valid_620969 != nil: - section.add "DryRun", valid_620969 + section.add "Attribute", valid_620969 + var valid_620970 = formData.getOrDefault("VolumeId") + valid_620970 = validateParameter(valid_620970, JString, required = true, + default = nil) + if valid_620970 != nil: + section.add "VolumeId", valid_620970 + var valid_620971 = formData.getOrDefault("DryRun") + valid_620971 = validateParameter(valid_620971, JBool, required = false, default = nil) + if valid_620971 != nil: + section.add "DryRun", valid_620971 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620970: Call_PostDescribeVolumeAttribute_620955; path: JsonNode; +proc call*(call_620972: Call_PostDescribeVolumeAttribute_620957; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Describes the specified attribute of the specified volume. You can specify only one attribute at a time.

    For more information about EBS volumes, see Amazon EBS Volumes in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_620970.validator(path, query, header, formData, body) - let scheme = call_620970.pickScheme + let valid = call_620972.validator(path, query, header, formData, body) + let scheme = call_620972.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620970.url(scheme.get, call_620970.host, call_620970.base, - call_620970.route, valid.getOrDefault("path"), + let url = call_620972.url(scheme.get, call_620972.host, call_620972.base, + call_620972.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620970, url, valid) + result = atozHook(call_620972, url, valid) -proc call*(call_620971: Call_PostDescribeVolumeAttribute_620955; VolumeId: string; +proc call*(call_620973: Call_PostDescribeVolumeAttribute_620957; VolumeId: string; Attribute: string = "autoEnableIO"; DryRun: bool = false; Action: string = "DescribeVolumeAttribute"; Version: string = "2016-11-15"): Recallable = ## postDescribeVolumeAttribute @@ -81005,24 +81032,24 @@ proc call*(call_620971: Call_PostDescribeVolumeAttribute_620955; VolumeId: strin ## : 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. ## Action: string (required) ## Version: string (required) - var query_620972 = newJObject() - var formData_620973 = newJObject() - add(formData_620973, "Attribute", newJString(Attribute)) - add(formData_620973, "VolumeId", newJString(VolumeId)) - add(formData_620973, "DryRun", newJBool(DryRun)) - add(query_620972, "Action", newJString(Action)) - add(query_620972, "Version", newJString(Version)) - result = call_620971.call(nil, query_620972, nil, formData_620973, nil) + var query_620974 = newJObject() + var formData_620975 = newJObject() + add(formData_620975, "Attribute", newJString(Attribute)) + add(formData_620975, "VolumeId", newJString(VolumeId)) + add(formData_620975, "DryRun", newJBool(DryRun)) + add(query_620974, "Action", newJString(Action)) + add(query_620974, "Version", newJString(Version)) + result = call_620973.call(nil, query_620974, nil, formData_620975, nil) -var postDescribeVolumeAttribute* = Call_PostDescribeVolumeAttribute_620955( +var postDescribeVolumeAttribute* = Call_PostDescribeVolumeAttribute_620957( name: "postDescribeVolumeAttribute", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeVolumeAttribute", - validator: validate_PostDescribeVolumeAttribute_620956, base: "/", - url: url_PostDescribeVolumeAttribute_620957, + validator: validate_PostDescribeVolumeAttribute_620958, base: "/", + url: url_PostDescribeVolumeAttribute_620959, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeVolumeAttribute_620937 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeVolumeAttribute_620939(protocol: Scheme; host: string; + Call_GetDescribeVolumeAttribute_620939 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeVolumeAttribute_620941(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -81032,7 +81059,7 @@ proc url_GetDescribeVolumeAttribute_620939(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeVolumeAttribute_620938(path: JsonNode; query: JsonNode; +proc validate_GetDescribeVolumeAttribute_620940(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Describes the specified attribute of the specified volume. You can specify only one attribute at a time.

    For more information about EBS volumes, see Amazon EBS Volumes in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -81050,32 +81077,32 @@ proc validate_GetDescribeVolumeAttribute_620938(path: JsonNode; query: JsonNode; ## Attribute: JString (required) ## : The attribute of the volume. This parameter is required. section = newJObject() - var valid_620940 = query.getOrDefault("DryRun") - valid_620940 = validateParameter(valid_620940, JBool, required = false, default = nil) - if valid_620940 != nil: - section.add "DryRun", valid_620940 + var valid_620942 = query.getOrDefault("DryRun") + valid_620942 = validateParameter(valid_620942, JBool, required = false, default = nil) + if valid_620942 != nil: + section.add "DryRun", valid_620942 assert query != nil, "query argument is necessary due to required `VolumeId` field" - var valid_620941 = query.getOrDefault("VolumeId") - valid_620941 = validateParameter(valid_620941, JString, required = true, + var valid_620943 = query.getOrDefault("VolumeId") + valid_620943 = validateParameter(valid_620943, JString, required = true, default = nil) - if valid_620941 != nil: - section.add "VolumeId", valid_620941 - var valid_620942 = query.getOrDefault("Action") - valid_620942 = validateParameter(valid_620942, JString, required = true, default = newJString( + if valid_620943 != nil: + section.add "VolumeId", valid_620943 + var valid_620944 = query.getOrDefault("Action") + valid_620944 = validateParameter(valid_620944, JString, required = true, default = newJString( "DescribeVolumeAttribute")) - if valid_620942 != nil: - section.add "Action", valid_620942 - var valid_620943 = query.getOrDefault("Version") - valid_620943 = validateParameter(valid_620943, JString, required = true, + if valid_620944 != nil: + section.add "Action", valid_620944 + var valid_620945 = query.getOrDefault("Version") + valid_620945 = validateParameter(valid_620945, JString, required = true, default = newJString("2016-11-15")) - if valid_620943 != nil: - section.add "Version", valid_620943 - var valid_620944 = query.getOrDefault("Attribute") - valid_620944 = validateParameter(valid_620944, JString, required = true, + if valid_620945 != nil: + section.add "Version", valid_620945 + var valid_620946 = query.getOrDefault("Attribute") + valid_620946 = validateParameter(valid_620946, JString, required = true, default = newJString("autoEnableIO")) - if valid_620944 != nil: - section.add "Attribute", valid_620944 + if valid_620946 != nil: + section.add "Attribute", valid_620946 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -81086,61 +81113,61 @@ proc validate_GetDescribeVolumeAttribute_620938(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620945 = header.getOrDefault("X-Amz-Signature") - valid_620945 = validateParameter(valid_620945, JString, required = false, - default = nil) - if valid_620945 != nil: - section.add "X-Amz-Signature", valid_620945 - var valid_620946 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620946 = validateParameter(valid_620946, JString, required = false, - default = nil) - if valid_620946 != nil: - section.add "X-Amz-Content-Sha256", valid_620946 - var valid_620947 = header.getOrDefault("X-Amz-Date") + var valid_620947 = header.getOrDefault("X-Amz-Signature") valid_620947 = validateParameter(valid_620947, JString, required = false, default = nil) if valid_620947 != nil: - section.add "X-Amz-Date", valid_620947 - var valid_620948 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620947 + var valid_620948 = header.getOrDefault("X-Amz-Content-Sha256") valid_620948 = validateParameter(valid_620948, JString, required = false, default = nil) if valid_620948 != nil: - section.add "X-Amz-Credential", valid_620948 - var valid_620949 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620948 + var valid_620949 = header.getOrDefault("X-Amz-Date") valid_620949 = validateParameter(valid_620949, JString, required = false, default = nil) if valid_620949 != nil: - section.add "X-Amz-Security-Token", valid_620949 - var valid_620950 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620949 + var valid_620950 = header.getOrDefault("X-Amz-Credential") valid_620950 = validateParameter(valid_620950, JString, required = false, default = nil) if valid_620950 != nil: - section.add "X-Amz-Algorithm", valid_620950 - var valid_620951 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620950 + var valid_620951 = header.getOrDefault("X-Amz-Security-Token") valid_620951 = validateParameter(valid_620951, JString, required = false, default = nil) if valid_620951 != nil: - section.add "X-Amz-SignedHeaders", valid_620951 + section.add "X-Amz-Security-Token", valid_620951 + var valid_620952 = header.getOrDefault("X-Amz-Algorithm") + valid_620952 = validateParameter(valid_620952, JString, required = false, + default = nil) + if valid_620952 != nil: + section.add "X-Amz-Algorithm", valid_620952 + var valid_620953 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620953 = validateParameter(valid_620953, JString, required = false, + default = nil) + if valid_620953 != nil: + section.add "X-Amz-SignedHeaders", valid_620953 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620952: Call_GetDescribeVolumeAttribute_620937; path: JsonNode; +proc call*(call_620954: Call_GetDescribeVolumeAttribute_620939; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Describes the specified attribute of the specified volume. You can specify only one attribute at a time.

    For more information about EBS volumes, see Amazon EBS Volumes in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_620952.validator(path, query, header, formData, body) - let scheme = call_620952.pickScheme + let valid = call_620954.validator(path, query, header, formData, body) + let scheme = call_620954.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620952.url(scheme.get, call_620952.host, call_620952.base, - call_620952.route, valid.getOrDefault("path"), + let url = call_620954.url(scheme.get, call_620954.host, call_620954.base, + call_620954.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620952, url, valid) + result = atozHook(call_620954, url, valid) -proc call*(call_620953: Call_GetDescribeVolumeAttribute_620937; VolumeId: string; +proc call*(call_620955: Call_GetDescribeVolumeAttribute_620939; VolumeId: string; DryRun: bool = false; Action: string = "DescribeVolumeAttribute"; Version: string = "2016-11-15"; Attribute: string = "autoEnableIO"): Recallable = ## getDescribeVolumeAttribute @@ -81153,23 +81180,23 @@ proc call*(call_620953: Call_GetDescribeVolumeAttribute_620937; VolumeId: string ## Version: string (required) ## Attribute: string (required) ## : The attribute of the volume. This parameter is required. - var query_620954 = newJObject() - add(query_620954, "DryRun", newJBool(DryRun)) - add(query_620954, "VolumeId", newJString(VolumeId)) - add(query_620954, "Action", newJString(Action)) - add(query_620954, "Version", newJString(Version)) - add(query_620954, "Attribute", newJString(Attribute)) - result = call_620953.call(nil, query_620954, nil, nil, nil) - -var getDescribeVolumeAttribute* = Call_GetDescribeVolumeAttribute_620937( + var query_620956 = newJObject() + add(query_620956, "DryRun", newJBool(DryRun)) + add(query_620956, "VolumeId", newJString(VolumeId)) + add(query_620956, "Action", newJString(Action)) + add(query_620956, "Version", newJString(Version)) + add(query_620956, "Attribute", newJString(Attribute)) + result = call_620955.call(nil, query_620956, nil, nil, nil) + +var getDescribeVolumeAttribute* = Call_GetDescribeVolumeAttribute_620939( name: "getDescribeVolumeAttribute", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeVolumeAttribute", - validator: validate_GetDescribeVolumeAttribute_620938, base: "/", - url: url_GetDescribeVolumeAttribute_620939, + validator: validate_GetDescribeVolumeAttribute_620940, base: "/", + url: url_GetDescribeVolumeAttribute_620941, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeVolumeStatus_620994 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeVolumeStatus_620996(protocol: Scheme; host: string; + Call_PostDescribeVolumeStatus_620996 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeVolumeStatus_620998(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -81180,7 +81207,7 @@ proc url_PostDescribeVolumeStatus_620996(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeVolumeStatus_620995(path: JsonNode; query: JsonNode; +proc validate_PostDescribeVolumeStatus_620997(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Describes the status of the specified volumes. Volume status provides the result of the checks performed on your volumes to determine events that can impair the performance of your volumes. The performance of a volume can be affected if an issue occurs on the volume's underlying host. If the volume's underlying host experiences a power outage or system issue, after the system is restored, there could be data inconsistencies on the volume. Volume events notify you if this occurs. Volume actions notify you if any action needs to be taken in response to the event.

    The DescribeVolumeStatus operation provides the following information about the specified volumes:

    Status: Reflects the current status of the volume. The possible values are ok, impaired , warning, or insufficient-data. If all checks pass, the overall status of the volume is ok. If the check fails, the overall status is impaired. If the status is insufficient-data, then the checks may still be taking place on your volume at the time. We recommend that you retry the request. For more information about volume status, see Monitoring the Status of Your Volumes in the Amazon Elastic Compute Cloud User Guide.

    Events: Reflect the cause of a volume status and may require you to take action. For example, if your volume returns an impaired status, then the volume event might be potential-data-inconsistency. This means that your volume has been affected by an issue with the underlying host, has all I/O operations disabled, and may have inconsistent data.

    Actions: Reflect the actions you may have to take in response to an event. For example, if the status of the volume is impaired and the volume event shows potential-data-inconsistency, then the action shows enable-volume-io. This means that you may want to enable the I/O operations for the volume by calling the EnableVolumeIO action and then check the volume for data consistency.

    Volume status is based on the volume status checks, and does not reflect the volume state. Therefore, volume status does not indicate volumes in the error state (for example, when a volume is incapable of accepting I/O.)

    ## @@ -81192,16 +81219,16 @@ proc validate_PostDescribeVolumeStatus_620995(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620997 = query.getOrDefault("Action") - valid_620997 = validateParameter(valid_620997, JString, required = true, + var valid_620999 = query.getOrDefault("Action") + valid_620999 = validateParameter(valid_620999, JString, required = true, default = newJString("DescribeVolumeStatus")) - if valid_620997 != nil: - section.add "Action", valid_620997 - var valid_620998 = query.getOrDefault("Version") - valid_620998 = validateParameter(valid_620998, JString, required = true, + if valid_620999 != nil: + section.add "Action", valid_620999 + var valid_621000 = query.getOrDefault("Version") + valid_621000 = validateParameter(valid_621000, JString, required = true, default = newJString("2016-11-15")) - if valid_620998 != nil: - section.add "Version", valid_620998 + if valid_621000 != nil: + section.add "Version", valid_621000 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -81212,41 +81239,41 @@ proc validate_PostDescribeVolumeStatus_620995(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620999 = header.getOrDefault("X-Amz-Signature") - valid_620999 = validateParameter(valid_620999, JString, required = false, - default = nil) - if valid_620999 != nil: - section.add "X-Amz-Signature", valid_620999 - var valid_621000 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621000 = validateParameter(valid_621000, JString, required = false, - default = nil) - if valid_621000 != nil: - section.add "X-Amz-Content-Sha256", valid_621000 - var valid_621001 = header.getOrDefault("X-Amz-Date") + var valid_621001 = header.getOrDefault("X-Amz-Signature") valid_621001 = validateParameter(valid_621001, JString, required = false, default = nil) if valid_621001 != nil: - section.add "X-Amz-Date", valid_621001 - var valid_621002 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621001 + var valid_621002 = header.getOrDefault("X-Amz-Content-Sha256") valid_621002 = validateParameter(valid_621002, JString, required = false, default = nil) if valid_621002 != nil: - section.add "X-Amz-Credential", valid_621002 - var valid_621003 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621002 + var valid_621003 = header.getOrDefault("X-Amz-Date") valid_621003 = validateParameter(valid_621003, JString, required = false, default = nil) if valid_621003 != nil: - section.add "X-Amz-Security-Token", valid_621003 - var valid_621004 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621003 + var valid_621004 = header.getOrDefault("X-Amz-Credential") valid_621004 = validateParameter(valid_621004, JString, required = false, default = nil) if valid_621004 != nil: - section.add "X-Amz-Algorithm", valid_621004 - var valid_621005 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621004 + var valid_621005 = header.getOrDefault("X-Amz-Security-Token") valid_621005 = validateParameter(valid_621005, JString, required = false, default = nil) if valid_621005 != nil: - section.add "X-Amz-SignedHeaders", valid_621005 + section.add "X-Amz-Security-Token", valid_621005 + var valid_621006 = header.getOrDefault("X-Amz-Algorithm") + valid_621006 = validateParameter(valid_621006, JString, required = false, + default = nil) + if valid_621006 != nil: + section.add "X-Amz-Algorithm", valid_621006 + var valid_621007 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621007 = validateParameter(valid_621007, JString, required = false, + default = nil) + if valid_621007 != nil: + section.add "X-Amz-SignedHeaders", valid_621007 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -81260,47 +81287,47 @@ proc validate_PostDescribeVolumeStatus_620995(path: JsonNode; query: JsonNode; ## Filter: JArray ## :

    The filters.

    section = newJObject() - var valid_621006 = formData.getOrDefault("NextToken") - valid_621006 = validateParameter(valid_621006, JString, required = false, - default = nil) - if valid_621006 != nil: - section.add "NextToken", valid_621006 - var valid_621007 = formData.getOrDefault("VolumeId") - valid_621007 = validateParameter(valid_621007, JArray, required = false, + var valid_621008 = formData.getOrDefault("NextToken") + valid_621008 = validateParameter(valid_621008, JString, required = false, default = nil) - if valid_621007 != nil: - section.add "VolumeId", valid_621007 - var valid_621008 = formData.getOrDefault("DryRun") - valid_621008 = validateParameter(valid_621008, JBool, required = false, default = nil) if valid_621008 != nil: - section.add "DryRun", valid_621008 - var valid_621009 = formData.getOrDefault("MaxResults") - valid_621009 = validateParameter(valid_621009, JInt, required = false, default = nil) - if valid_621009 != nil: - section.add "MaxResults", valid_621009 - var valid_621010 = formData.getOrDefault("Filter") - valid_621010 = validateParameter(valid_621010, JArray, required = false, + section.add "NextToken", valid_621008 + var valid_621009 = formData.getOrDefault("VolumeId") + valid_621009 = validateParameter(valid_621009, JArray, required = false, default = nil) + if valid_621009 != nil: + section.add "VolumeId", valid_621009 + var valid_621010 = formData.getOrDefault("DryRun") + valid_621010 = validateParameter(valid_621010, JBool, required = false, default = nil) if valid_621010 != nil: - section.add "Filter", valid_621010 + section.add "DryRun", valid_621010 + var valid_621011 = formData.getOrDefault("MaxResults") + valid_621011 = validateParameter(valid_621011, JInt, required = false, default = nil) + if valid_621011 != nil: + section.add "MaxResults", valid_621011 + var valid_621012 = formData.getOrDefault("Filter") + valid_621012 = validateParameter(valid_621012, JArray, required = false, + default = nil) + if valid_621012 != nil: + section.add "Filter", valid_621012 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621011: Call_PostDescribeVolumeStatus_620994; path: JsonNode; +proc call*(call_621013: Call_PostDescribeVolumeStatus_620996; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Describes the status of the specified volumes. Volume status provides the result of the checks performed on your volumes to determine events that can impair the performance of your volumes. The performance of a volume can be affected if an issue occurs on the volume's underlying host. If the volume's underlying host experiences a power outage or system issue, after the system is restored, there could be data inconsistencies on the volume. Volume events notify you if this occurs. Volume actions notify you if any action needs to be taken in response to the event.

    The DescribeVolumeStatus operation provides the following information about the specified volumes:

    Status: Reflects the current status of the volume. The possible values are ok, impaired , warning, or insufficient-data. If all checks pass, the overall status of the volume is ok. If the check fails, the overall status is impaired. If the status is insufficient-data, then the checks may still be taking place on your volume at the time. We recommend that you retry the request. For more information about volume status, see Monitoring the Status of Your Volumes in the Amazon Elastic Compute Cloud User Guide.

    Events: Reflect the cause of a volume status and may require you to take action. For example, if your volume returns an impaired status, then the volume event might be potential-data-inconsistency. This means that your volume has been affected by an issue with the underlying host, has all I/O operations disabled, and may have inconsistent data.

    Actions: Reflect the actions you may have to take in response to an event. For example, if the status of the volume is impaired and the volume event shows potential-data-inconsistency, then the action shows enable-volume-io. This means that you may want to enable the I/O operations for the volume by calling the EnableVolumeIO action and then check the volume for data consistency.

    Volume status is based on the volume status checks, and does not reflect the volume state. Therefore, volume status does not indicate volumes in the error state (for example, when a volume is incapable of accepting I/O.)

    ## - let valid = call_621011.validator(path, query, header, formData, body) - let scheme = call_621011.pickScheme + let valid = call_621013.validator(path, query, header, formData, body) + let scheme = call_621013.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621011.url(scheme.get, call_621011.host, call_621011.base, - call_621011.route, valid.getOrDefault("path"), + let url = call_621013.url(scheme.get, call_621013.host, call_621013.base, + call_621013.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621011, url, valid) + result = atozHook(call_621013, url, valid) -proc call*(call_621012: Call_PostDescribeVolumeStatus_620994; +proc call*(call_621014: Call_PostDescribeVolumeStatus_620996; NextToken: string = ""; VolumeId: JsonNode = nil; DryRun: bool = false; Action: string = "DescribeVolumeStatus"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -81318,27 +81345,27 @@ proc call*(call_621012: Call_PostDescribeVolumeStatus_620994; ## : The maximum number of volume results returned by DescribeVolumeStatus in paginated output. When this parameter is used, the request only returns MaxResults results in a single page along with a NextToken response element. The remaining results of the initial request can be seen by sending another request with the returned NextToken value. This value can be between 5 and 1000; if MaxResults is given a value larger than 1000, only 1000 results are returned. If this parameter is not used, then DescribeVolumeStatus returns all results. You cannot specify this parameter and the volume IDs parameter in the same request. ## Filter: JArray ## :

    The filters.

    - var query_621013 = newJObject() - var formData_621014 = newJObject() - add(formData_621014, "NextToken", newJString(NextToken)) + var query_621015 = newJObject() + var formData_621016 = newJObject() + add(formData_621016, "NextToken", newJString(NextToken)) if VolumeId != nil: - formData_621014.add "VolumeId", VolumeId - add(formData_621014, "DryRun", newJBool(DryRun)) - add(query_621013, "Action", newJString(Action)) - add(query_621013, "Version", newJString(Version)) - add(formData_621014, "MaxResults", newJInt(MaxResults)) + formData_621016.add "VolumeId", VolumeId + add(formData_621016, "DryRun", newJBool(DryRun)) + add(query_621015, "Action", newJString(Action)) + add(query_621015, "Version", newJString(Version)) + add(formData_621016, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_621014.add "Filter", Filter - result = call_621012.call(nil, query_621013, nil, formData_621014, nil) + formData_621016.add "Filter", Filter + result = call_621014.call(nil, query_621015, nil, formData_621016, nil) -var postDescribeVolumeStatus* = Call_PostDescribeVolumeStatus_620994( +var postDescribeVolumeStatus* = Call_PostDescribeVolumeStatus_620996( name: "postDescribeVolumeStatus", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeVolumeStatus", - validator: validate_PostDescribeVolumeStatus_620995, base: "/", - url: url_PostDescribeVolumeStatus_620996, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDescribeVolumeStatus_620997, base: "/", + url: url_PostDescribeVolumeStatus_620998, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeVolumeStatus_620974 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeVolumeStatus_620976(protocol: Scheme; host: string; base: string; + Call_GetDescribeVolumeStatus_620976 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeVolumeStatus_620978(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -81349,7 +81376,7 @@ proc url_GetDescribeVolumeStatus_620976(protocol: Scheme; host: string; base: st else: result.path = base & route -proc validate_GetDescribeVolumeStatus_620975(path: JsonNode; query: JsonNode; +proc validate_GetDescribeVolumeStatus_620977(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Describes the status of the specified volumes. Volume status provides the result of the checks performed on your volumes to determine events that can impair the performance of your volumes. The performance of a volume can be affected if an issue occurs on the volume's underlying host. If the volume's underlying host experiences a power outage or system issue, after the system is restored, there could be data inconsistencies on the volume. Volume events notify you if this occurs. Volume actions notify you if any action needs to be taken in response to the event.

    The DescribeVolumeStatus operation provides the following information about the specified volumes:

    Status: Reflects the current status of the volume. The possible values are ok, impaired , warning, or insufficient-data. If all checks pass, the overall status of the volume is ok. If the check fails, the overall status is impaired. If the status is insufficient-data, then the checks may still be taking place on your volume at the time. We recommend that you retry the request. For more information about volume status, see Monitoring the Status of Your Volumes in the Amazon Elastic Compute Cloud User Guide.

    Events: Reflect the cause of a volume status and may require you to take action. For example, if your volume returns an impaired status, then the volume event might be potential-data-inconsistency. This means that your volume has been affected by an issue with the underlying host, has all I/O operations disabled, and may have inconsistent data.

    Actions: Reflect the actions you may have to take in response to an event. For example, if the status of the volume is impaired and the volume event shows potential-data-inconsistency, then the action shows enable-volume-io. This means that you may want to enable the I/O operations for the volume by calling the EnableVolumeIO action and then check the volume for data consistency.

    Volume status is based on the volume status checks, and does not reflect the volume state. Therefore, volume status does not indicate volumes in the error state (for example, when a volume is incapable of accepting I/O.)

    ## @@ -81371,39 +81398,39 @@ proc validate_GetDescribeVolumeStatus_620975(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_620977 = query.getOrDefault("MaxResults") - valid_620977 = validateParameter(valid_620977, JInt, required = false, default = nil) - if valid_620977 != nil: - section.add "MaxResults", valid_620977 - var valid_620978 = query.getOrDefault("DryRun") - valid_620978 = validateParameter(valid_620978, JBool, required = false, default = nil) - if valid_620978 != nil: - section.add "DryRun", valid_620978 - var valid_620979 = query.getOrDefault("NextToken") - valid_620979 = validateParameter(valid_620979, JString, required = false, - default = nil) + var valid_620979 = query.getOrDefault("MaxResults") + valid_620979 = validateParameter(valid_620979, JInt, required = false, default = nil) if valid_620979 != nil: - section.add "NextToken", valid_620979 - var valid_620980 = query.getOrDefault("Filter") - valid_620980 = validateParameter(valid_620980, JArray, required = false, - default = nil) + section.add "MaxResults", valid_620979 + var valid_620980 = query.getOrDefault("DryRun") + valid_620980 = validateParameter(valid_620980, JBool, required = false, default = nil) if valid_620980 != nil: - section.add "Filter", valid_620980 - var valid_620981 = query.getOrDefault("VolumeId") - valid_620981 = validateParameter(valid_620981, JArray, required = false, + section.add "DryRun", valid_620980 + var valid_620981 = query.getOrDefault("NextToken") + valid_620981 = validateParameter(valid_620981, JString, required = false, default = nil) if valid_620981 != nil: - section.add "VolumeId", valid_620981 - var valid_620982 = query.getOrDefault("Action") - valid_620982 = validateParameter(valid_620982, JString, required = true, - default = newJString("DescribeVolumeStatus")) + section.add "NextToken", valid_620981 + var valid_620982 = query.getOrDefault("Filter") + valid_620982 = validateParameter(valid_620982, JArray, required = false, + default = nil) if valid_620982 != nil: - section.add "Action", valid_620982 - var valid_620983 = query.getOrDefault("Version") - valid_620983 = validateParameter(valid_620983, JString, required = true, - default = newJString("2016-11-15")) + section.add "Filter", valid_620982 + var valid_620983 = query.getOrDefault("VolumeId") + valid_620983 = validateParameter(valid_620983, JArray, required = false, + default = nil) if valid_620983 != nil: - section.add "Version", valid_620983 + section.add "VolumeId", valid_620983 + var valid_620984 = query.getOrDefault("Action") + valid_620984 = validateParameter(valid_620984, JString, required = true, + default = newJString("DescribeVolumeStatus")) + if valid_620984 != nil: + section.add "Action", valid_620984 + var valid_620985 = query.getOrDefault("Version") + valid_620985 = validateParameter(valid_620985, JString, required = true, + default = newJString("2016-11-15")) + if valid_620985 != nil: + section.add "Version", valid_620985 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -81414,61 +81441,61 @@ proc validate_GetDescribeVolumeStatus_620975(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_620984 = header.getOrDefault("X-Amz-Signature") - valid_620984 = validateParameter(valid_620984, JString, required = false, - default = nil) - if valid_620984 != nil: - section.add "X-Amz-Signature", valid_620984 - var valid_620985 = header.getOrDefault("X-Amz-Content-Sha256") - valid_620985 = validateParameter(valid_620985, JString, required = false, - default = nil) - if valid_620985 != nil: - section.add "X-Amz-Content-Sha256", valid_620985 - var valid_620986 = header.getOrDefault("X-Amz-Date") + var valid_620986 = header.getOrDefault("X-Amz-Signature") valid_620986 = validateParameter(valid_620986, JString, required = false, default = nil) if valid_620986 != nil: - section.add "X-Amz-Date", valid_620986 - var valid_620987 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_620986 + var valid_620987 = header.getOrDefault("X-Amz-Content-Sha256") valid_620987 = validateParameter(valid_620987, JString, required = false, default = nil) if valid_620987 != nil: - section.add "X-Amz-Credential", valid_620987 - var valid_620988 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_620987 + var valid_620988 = header.getOrDefault("X-Amz-Date") valid_620988 = validateParameter(valid_620988, JString, required = false, default = nil) if valid_620988 != nil: - section.add "X-Amz-Security-Token", valid_620988 - var valid_620989 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_620988 + var valid_620989 = header.getOrDefault("X-Amz-Credential") valid_620989 = validateParameter(valid_620989, JString, required = false, default = nil) if valid_620989 != nil: - section.add "X-Amz-Algorithm", valid_620989 - var valid_620990 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_620989 + var valid_620990 = header.getOrDefault("X-Amz-Security-Token") valid_620990 = validateParameter(valid_620990, JString, required = false, default = nil) if valid_620990 != nil: - section.add "X-Amz-SignedHeaders", valid_620990 + section.add "X-Amz-Security-Token", valid_620990 + var valid_620991 = header.getOrDefault("X-Amz-Algorithm") + valid_620991 = validateParameter(valid_620991, JString, required = false, + default = nil) + if valid_620991 != nil: + section.add "X-Amz-Algorithm", valid_620991 + var valid_620992 = header.getOrDefault("X-Amz-SignedHeaders") + valid_620992 = validateParameter(valid_620992, JString, required = false, + default = nil) + if valid_620992 != nil: + section.add "X-Amz-SignedHeaders", valid_620992 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_620991: Call_GetDescribeVolumeStatus_620974; path: JsonNode; +proc call*(call_620993: Call_GetDescribeVolumeStatus_620976; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Describes the status of the specified volumes. Volume status provides the result of the checks performed on your volumes to determine events that can impair the performance of your volumes. The performance of a volume can be affected if an issue occurs on the volume's underlying host. If the volume's underlying host experiences a power outage or system issue, after the system is restored, there could be data inconsistencies on the volume. Volume events notify you if this occurs. Volume actions notify you if any action needs to be taken in response to the event.

    The DescribeVolumeStatus operation provides the following information about the specified volumes:

    Status: Reflects the current status of the volume. The possible values are ok, impaired , warning, or insufficient-data. If all checks pass, the overall status of the volume is ok. If the check fails, the overall status is impaired. If the status is insufficient-data, then the checks may still be taking place on your volume at the time. We recommend that you retry the request. For more information about volume status, see Monitoring the Status of Your Volumes in the Amazon Elastic Compute Cloud User Guide.

    Events: Reflect the cause of a volume status and may require you to take action. For example, if your volume returns an impaired status, then the volume event might be potential-data-inconsistency. This means that your volume has been affected by an issue with the underlying host, has all I/O operations disabled, and may have inconsistent data.

    Actions: Reflect the actions you may have to take in response to an event. For example, if the status of the volume is impaired and the volume event shows potential-data-inconsistency, then the action shows enable-volume-io. This means that you may want to enable the I/O operations for the volume by calling the EnableVolumeIO action and then check the volume for data consistency.

    Volume status is based on the volume status checks, and does not reflect the volume state. Therefore, volume status does not indicate volumes in the error state (for example, when a volume is incapable of accepting I/O.)

    ## - let valid = call_620991.validator(path, query, header, formData, body) - let scheme = call_620991.pickScheme + let valid = call_620993.validator(path, query, header, formData, body) + let scheme = call_620993.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_620991.url(scheme.get, call_620991.host, call_620991.base, - call_620991.route, valid.getOrDefault("path"), + let url = call_620993.url(scheme.get, call_620993.host, call_620993.base, + call_620993.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_620991, url, valid) + result = atozHook(call_620993, url, valid) -proc call*(call_620992: Call_GetDescribeVolumeStatus_620974; MaxResults: int = 0; +proc call*(call_620994: Call_GetDescribeVolumeStatus_620976; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; VolumeId: JsonNode = nil; Action: string = "DescribeVolumeStatus"; Version: string = "2016-11-15"): Recallable = @@ -81486,26 +81513,26 @@ proc call*(call_620992: Call_GetDescribeVolumeStatus_620974; MaxResults: int = 0 ## :

    The IDs of the volumes.

    Default: Describes all your volumes.

    ## Action: string (required) ## Version: string (required) - var query_620993 = newJObject() - add(query_620993, "MaxResults", newJInt(MaxResults)) - add(query_620993, "DryRun", newJBool(DryRun)) - add(query_620993, "NextToken", newJString(NextToken)) + var query_620995 = newJObject() + add(query_620995, "MaxResults", newJInt(MaxResults)) + add(query_620995, "DryRun", newJBool(DryRun)) + add(query_620995, "NextToken", newJString(NextToken)) if Filter != nil: - query_620993.add "Filter", Filter + query_620995.add "Filter", Filter if VolumeId != nil: - query_620993.add "VolumeId", VolumeId - add(query_620993, "Action", newJString(Action)) - add(query_620993, "Version", newJString(Version)) - result = call_620992.call(nil, query_620993, nil, nil, nil) + query_620995.add "VolumeId", VolumeId + add(query_620995, "Action", newJString(Action)) + add(query_620995, "Version", newJString(Version)) + result = call_620994.call(nil, query_620995, nil, nil, nil) -var getDescribeVolumeStatus* = Call_GetDescribeVolumeStatus_620974( +var getDescribeVolumeStatus* = Call_GetDescribeVolumeStatus_620976( name: "getDescribeVolumeStatus", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeVolumeStatus", - validator: validate_GetDescribeVolumeStatus_620975, base: "/", - url: url_GetDescribeVolumeStatus_620976, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDescribeVolumeStatus_620977, base: "/", + url: url_GetDescribeVolumeStatus_620978, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeVolumes_621035 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeVolumes_621037(protocol: Scheme; host: string; base: string; + Call_PostDescribeVolumes_621037 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeVolumes_621039(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -81515,7 +81542,7 @@ proc url_PostDescribeVolumes_621037(protocol: Scheme; host: string; base: string else: result.path = base & route -proc validate_PostDescribeVolumes_621036(path: JsonNode; query: JsonNode; +proc validate_PostDescribeVolumes_621038(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Describes the specified EBS volumes or all of your EBS volumes.

    If you are describing a long list of volumes, you can paginate the output to make the list more manageable. The MaxResults parameter sets the maximum number of results returned in a single page. If the list of results exceeds your MaxResults value, then that number of results is returned along with a NextToken value that can be passed to a subsequent DescribeVolumes request to retrieve the remaining results.

    For more information about EBS volumes, see Amazon EBS Volumes in the Amazon Elastic Compute Cloud User Guide.

    @@ -81528,16 +81555,16 @@ proc validate_PostDescribeVolumes_621036(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621038 = query.getOrDefault("Action") - valid_621038 = validateParameter(valid_621038, JString, required = true, + var valid_621040 = query.getOrDefault("Action") + valid_621040 = validateParameter(valid_621040, JString, required = true, default = newJString("DescribeVolumes")) - if valid_621038 != nil: - section.add "Action", valid_621038 - var valid_621039 = query.getOrDefault("Version") - valid_621039 = validateParameter(valid_621039, JString, required = true, + if valid_621040 != nil: + section.add "Action", valid_621040 + var valid_621041 = query.getOrDefault("Version") + valid_621041 = validateParameter(valid_621041, JString, required = true, default = newJString("2016-11-15")) - if valid_621039 != nil: - section.add "Version", valid_621039 + if valid_621041 != nil: + section.add "Version", valid_621041 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -81548,41 +81575,41 @@ proc validate_PostDescribeVolumes_621036(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621040 = header.getOrDefault("X-Amz-Signature") - valid_621040 = validateParameter(valid_621040, JString, required = false, - default = nil) - if valid_621040 != nil: - section.add "X-Amz-Signature", valid_621040 - var valid_621041 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621041 = validateParameter(valid_621041, JString, required = false, - default = nil) - if valid_621041 != nil: - section.add "X-Amz-Content-Sha256", valid_621041 - var valid_621042 = header.getOrDefault("X-Amz-Date") + var valid_621042 = header.getOrDefault("X-Amz-Signature") valid_621042 = validateParameter(valid_621042, JString, required = false, default = nil) if valid_621042 != nil: - section.add "X-Amz-Date", valid_621042 - var valid_621043 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621042 + var valid_621043 = header.getOrDefault("X-Amz-Content-Sha256") valid_621043 = validateParameter(valid_621043, JString, required = false, default = nil) if valid_621043 != nil: - section.add "X-Amz-Credential", valid_621043 - var valid_621044 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621043 + var valid_621044 = header.getOrDefault("X-Amz-Date") valid_621044 = validateParameter(valid_621044, JString, required = false, default = nil) if valid_621044 != nil: - section.add "X-Amz-Security-Token", valid_621044 - var valid_621045 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621044 + var valid_621045 = header.getOrDefault("X-Amz-Credential") valid_621045 = validateParameter(valid_621045, JString, required = false, default = nil) if valid_621045 != nil: - section.add "X-Amz-Algorithm", valid_621045 - var valid_621046 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621045 + var valid_621046 = header.getOrDefault("X-Amz-Security-Token") valid_621046 = validateParameter(valid_621046, JString, required = false, default = nil) if valid_621046 != nil: - section.add "X-Amz-SignedHeaders", valid_621046 + section.add "X-Amz-Security-Token", valid_621046 + var valid_621047 = header.getOrDefault("X-Amz-Algorithm") + valid_621047 = validateParameter(valid_621047, JString, required = false, + default = nil) + if valid_621047 != nil: + section.add "X-Amz-Algorithm", valid_621047 + var valid_621048 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621048 = validateParameter(valid_621048, JString, required = false, + default = nil) + if valid_621048 != nil: + section.add "X-Amz-SignedHeaders", valid_621048 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -81594,49 +81621,49 @@ proc validate_PostDescribeVolumes_621036(path: JsonNode; query: JsonNode; ## MaxResults: JInt ## : The maximum number of volume results returned by DescribeVolumes in paginated output. When this parameter is used, DescribeVolumes only returns MaxResults results in a single page along with a NextToken response element. The remaining results of the initial request can be seen by sending another DescribeVolumes request with the returned NextToken value. This value can be between 5 and 500; if MaxResults is given a value larger than 500, only 500 results are returned. If this parameter is not used, then DescribeVolumes returns all results. You cannot specify this parameter and the volume IDs parameter in the same request. ## Filter: JArray - ## :

    The filters.

    + ## :

    The filters.

    section = newJObject() - var valid_621047 = formData.getOrDefault("NextToken") - valid_621047 = validateParameter(valid_621047, JString, required = false, - default = nil) - if valid_621047 != nil: - section.add "NextToken", valid_621047 - var valid_621048 = formData.getOrDefault("VolumeId") - valid_621048 = validateParameter(valid_621048, JArray, required = false, + var valid_621049 = formData.getOrDefault("NextToken") + valid_621049 = validateParameter(valid_621049, JString, required = false, default = nil) - if valid_621048 != nil: - section.add "VolumeId", valid_621048 - var valid_621049 = formData.getOrDefault("DryRun") - valid_621049 = validateParameter(valid_621049, JBool, required = false, default = nil) if valid_621049 != nil: - section.add "DryRun", valid_621049 - var valid_621050 = formData.getOrDefault("MaxResults") - valid_621050 = validateParameter(valid_621050, JInt, required = false, default = nil) - if valid_621050 != nil: - section.add "MaxResults", valid_621050 - var valid_621051 = formData.getOrDefault("Filter") - valid_621051 = validateParameter(valid_621051, JArray, required = false, + section.add "NextToken", valid_621049 + var valid_621050 = formData.getOrDefault("VolumeId") + valid_621050 = validateParameter(valid_621050, JArray, required = false, default = nil) + if valid_621050 != nil: + section.add "VolumeId", valid_621050 + var valid_621051 = formData.getOrDefault("DryRun") + valid_621051 = validateParameter(valid_621051, JBool, required = false, default = nil) if valid_621051 != nil: - section.add "Filter", valid_621051 + section.add "DryRun", valid_621051 + var valid_621052 = formData.getOrDefault("MaxResults") + valid_621052 = validateParameter(valid_621052, JInt, required = false, default = nil) + if valid_621052 != nil: + section.add "MaxResults", valid_621052 + var valid_621053 = formData.getOrDefault("Filter") + valid_621053 = validateParameter(valid_621053, JArray, required = false, + default = nil) + if valid_621053 != nil: + section.add "Filter", valid_621053 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621052: Call_PostDescribeVolumes_621035; path: JsonNode; +proc call*(call_621054: Call_PostDescribeVolumes_621037; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Describes the specified EBS volumes or all of your EBS volumes.

    If you are describing a long list of volumes, you can paginate the output to make the list more manageable. The MaxResults parameter sets the maximum number of results returned in a single page. If the list of results exceeds your MaxResults value, then that number of results is returned along with a NextToken value that can be passed to a subsequent DescribeVolumes request to retrieve the remaining results.

    For more information about EBS volumes, see Amazon EBS Volumes in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_621052.validator(path, query, header, formData, body) - let scheme = call_621052.pickScheme + let valid = call_621054.validator(path, query, header, formData, body) + let scheme = call_621054.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621052.url(scheme.get, call_621052.host, call_621052.base, - call_621052.route, valid.getOrDefault("path"), + let url = call_621054.url(scheme.get, call_621054.host, call_621054.base, + call_621054.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621052, url, valid) + result = atozHook(call_621054, url, valid) -proc call*(call_621053: Call_PostDescribeVolumes_621035; NextToken: string = ""; +proc call*(call_621055: Call_PostDescribeVolumes_621037; NextToken: string = ""; VolumeId: JsonNode = nil; DryRun: bool = false; Action: string = "DescribeVolumes"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -81653,28 +81680,28 @@ proc call*(call_621053: Call_PostDescribeVolumes_621035; NextToken: string = ""; ## MaxResults: int ## : The maximum number of volume results returned by DescribeVolumes in paginated output. When this parameter is used, DescribeVolumes only returns MaxResults results in a single page along with a NextToken response element. The remaining results of the initial request can be seen by sending another DescribeVolumes request with the returned NextToken value. This value can be between 5 and 500; if MaxResults is given a value larger than 500, only 500 results are returned. If this parameter is not used, then DescribeVolumes returns all results. You cannot specify this parameter and the volume IDs parameter in the same request. ## Filter: JArray - ## :

    The filters.

    - var query_621054 = newJObject() - var formData_621055 = newJObject() - add(formData_621055, "NextToken", newJString(NextToken)) + ## :

    The filters.

    + var query_621056 = newJObject() + var formData_621057 = newJObject() + add(formData_621057, "NextToken", newJString(NextToken)) if VolumeId != nil: - formData_621055.add "VolumeId", VolumeId - add(formData_621055, "DryRun", newJBool(DryRun)) - add(query_621054, "Action", newJString(Action)) - add(query_621054, "Version", newJString(Version)) - add(formData_621055, "MaxResults", newJInt(MaxResults)) + formData_621057.add "VolumeId", VolumeId + add(formData_621057, "DryRun", newJBool(DryRun)) + add(query_621056, "Action", newJString(Action)) + add(query_621056, "Version", newJString(Version)) + add(formData_621057, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_621055.add "Filter", Filter - result = call_621053.call(nil, query_621054, nil, formData_621055, nil) + formData_621057.add "Filter", Filter + result = call_621055.call(nil, query_621056, nil, formData_621057, nil) -var postDescribeVolumes* = Call_PostDescribeVolumes_621035( +var postDescribeVolumes* = Call_PostDescribeVolumes_621037( name: "postDescribeVolumes", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeVolumes", - validator: validate_PostDescribeVolumes_621036, base: "/", - url: url_PostDescribeVolumes_621037, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDescribeVolumes_621038, base: "/", + url: url_PostDescribeVolumes_621039, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeVolumes_621015 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeVolumes_621017(protocol: Scheme; host: string; base: string; + Call_GetDescribeVolumes_621017 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeVolumes_621019(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -81684,7 +81711,7 @@ proc url_GetDescribeVolumes_621017(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetDescribeVolumes_621016(path: JsonNode; query: JsonNode; +proc validate_GetDescribeVolumes_621018(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Describes the specified EBS volumes or all of your EBS volumes.

    If you are describing a long list of volumes, you can paginate the output to make the list more manageable. The MaxResults parameter sets the maximum number of results returned in a single page. If the list of results exceeds your MaxResults value, then that number of results is returned along with a NextToken value that can be passed to a subsequent DescribeVolumes request to retrieve the remaining results.

    For more information about EBS volumes, see Amazon EBS Volumes in the Amazon Elastic Compute Cloud User Guide.

    @@ -81701,45 +81728,45 @@ proc validate_GetDescribeVolumes_621016(path: JsonNode; query: JsonNode; ## NextToken: JString ## : The NextToken value returned from a previous paginated DescribeVolumes request where MaxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the NextToken value. This value is null when there are no more results to return. ## Filter: JArray - ## :

    The filters.

    + ## :

    The filters.

    ## VolumeId: JArray ## : The volume IDs. ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621018 = query.getOrDefault("MaxResults") - valid_621018 = validateParameter(valid_621018, JInt, required = false, default = nil) - if valid_621018 != nil: - section.add "MaxResults", valid_621018 - var valid_621019 = query.getOrDefault("DryRun") - valid_621019 = validateParameter(valid_621019, JBool, required = false, default = nil) - if valid_621019 != nil: - section.add "DryRun", valid_621019 - var valid_621020 = query.getOrDefault("NextToken") - valid_621020 = validateParameter(valid_621020, JString, required = false, - default = nil) + var valid_621020 = query.getOrDefault("MaxResults") + valid_621020 = validateParameter(valid_621020, JInt, required = false, default = nil) if valid_621020 != nil: - section.add "NextToken", valid_621020 - var valid_621021 = query.getOrDefault("Filter") - valid_621021 = validateParameter(valid_621021, JArray, required = false, - default = nil) + section.add "MaxResults", valid_621020 + var valid_621021 = query.getOrDefault("DryRun") + valid_621021 = validateParameter(valid_621021, JBool, required = false, default = nil) if valid_621021 != nil: - section.add "Filter", valid_621021 - var valid_621022 = query.getOrDefault("VolumeId") - valid_621022 = validateParameter(valid_621022, JArray, required = false, + section.add "DryRun", valid_621021 + var valid_621022 = query.getOrDefault("NextToken") + valid_621022 = validateParameter(valid_621022, JString, required = false, default = nil) if valid_621022 != nil: - section.add "VolumeId", valid_621022 - var valid_621023 = query.getOrDefault("Action") - valid_621023 = validateParameter(valid_621023, JString, required = true, - default = newJString("DescribeVolumes")) + section.add "NextToken", valid_621022 + var valid_621023 = query.getOrDefault("Filter") + valid_621023 = validateParameter(valid_621023, JArray, required = false, + default = nil) if valid_621023 != nil: - section.add "Action", valid_621023 - var valid_621024 = query.getOrDefault("Version") - valid_621024 = validateParameter(valid_621024, JString, required = true, - default = newJString("2016-11-15")) + section.add "Filter", valid_621023 + var valid_621024 = query.getOrDefault("VolumeId") + valid_621024 = validateParameter(valid_621024, JArray, required = false, + default = nil) if valid_621024 != nil: - section.add "Version", valid_621024 + section.add "VolumeId", valid_621024 + var valid_621025 = query.getOrDefault("Action") + valid_621025 = validateParameter(valid_621025, JString, required = true, + default = newJString("DescribeVolumes")) + if valid_621025 != nil: + section.add "Action", valid_621025 + var valid_621026 = query.getOrDefault("Version") + valid_621026 = validateParameter(valid_621026, JString, required = true, + default = newJString("2016-11-15")) + if valid_621026 != nil: + section.add "Version", valid_621026 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -81750,61 +81777,61 @@ proc validate_GetDescribeVolumes_621016(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621025 = header.getOrDefault("X-Amz-Signature") - valid_621025 = validateParameter(valid_621025, JString, required = false, - default = nil) - if valid_621025 != nil: - section.add "X-Amz-Signature", valid_621025 - var valid_621026 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621026 = validateParameter(valid_621026, JString, required = false, - default = nil) - if valid_621026 != nil: - section.add "X-Amz-Content-Sha256", valid_621026 - var valid_621027 = header.getOrDefault("X-Amz-Date") + var valid_621027 = header.getOrDefault("X-Amz-Signature") valid_621027 = validateParameter(valid_621027, JString, required = false, default = nil) if valid_621027 != nil: - section.add "X-Amz-Date", valid_621027 - var valid_621028 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621027 + var valid_621028 = header.getOrDefault("X-Amz-Content-Sha256") valid_621028 = validateParameter(valid_621028, JString, required = false, default = nil) if valid_621028 != nil: - section.add "X-Amz-Credential", valid_621028 - var valid_621029 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621028 + var valid_621029 = header.getOrDefault("X-Amz-Date") valid_621029 = validateParameter(valid_621029, JString, required = false, default = nil) if valid_621029 != nil: - section.add "X-Amz-Security-Token", valid_621029 - var valid_621030 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621029 + var valid_621030 = header.getOrDefault("X-Amz-Credential") valid_621030 = validateParameter(valid_621030, JString, required = false, default = nil) if valid_621030 != nil: - section.add "X-Amz-Algorithm", valid_621030 - var valid_621031 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621030 + var valid_621031 = header.getOrDefault("X-Amz-Security-Token") valid_621031 = validateParameter(valid_621031, JString, required = false, default = nil) if valid_621031 != nil: - section.add "X-Amz-SignedHeaders", valid_621031 + section.add "X-Amz-Security-Token", valid_621031 + var valid_621032 = header.getOrDefault("X-Amz-Algorithm") + valid_621032 = validateParameter(valid_621032, JString, required = false, + default = nil) + if valid_621032 != nil: + section.add "X-Amz-Algorithm", valid_621032 + var valid_621033 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621033 = validateParameter(valid_621033, JString, required = false, + default = nil) + if valid_621033 != nil: + section.add "X-Amz-SignedHeaders", valid_621033 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621032: Call_GetDescribeVolumes_621015; path: JsonNode; +proc call*(call_621034: Call_GetDescribeVolumes_621017; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Describes the specified EBS volumes or all of your EBS volumes.

    If you are describing a long list of volumes, you can paginate the output to make the list more manageable. The MaxResults parameter sets the maximum number of results returned in a single page. If the list of results exceeds your MaxResults value, then that number of results is returned along with a NextToken value that can be passed to a subsequent DescribeVolumes request to retrieve the remaining results.

    For more information about EBS volumes, see Amazon EBS Volumes in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_621032.validator(path, query, header, formData, body) - let scheme = call_621032.pickScheme + let valid = call_621034.validator(path, query, header, formData, body) + let scheme = call_621034.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621032.url(scheme.get, call_621032.host, call_621032.base, - call_621032.route, valid.getOrDefault("path"), + let url = call_621034.url(scheme.get, call_621034.host, call_621034.base, + call_621034.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621032, url, valid) + result = atozHook(call_621034, url, valid) -proc call*(call_621033: Call_GetDescribeVolumes_621015; MaxResults: int = 0; +proc call*(call_621035: Call_GetDescribeVolumes_621017; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; VolumeId: JsonNode = nil; Action: string = "DescribeVolumes"; Version: string = "2016-11-15"): Recallable = @@ -81817,31 +81844,31 @@ proc call*(call_621033: Call_GetDescribeVolumes_621015; MaxResults: int = 0; ## NextToken: string ## : The NextToken value returned from a previous paginated DescribeVolumes request where MaxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the NextToken value. This value is null when there are no more results to return. ## Filter: JArray - ## :

    The filters.

    + ## :

    The filters.

    ## VolumeId: JArray ## : The volume IDs. ## Action: string (required) ## Version: string (required) - var query_621034 = newJObject() - add(query_621034, "MaxResults", newJInt(MaxResults)) - add(query_621034, "DryRun", newJBool(DryRun)) - add(query_621034, "NextToken", newJString(NextToken)) + var query_621036 = newJObject() + add(query_621036, "MaxResults", newJInt(MaxResults)) + add(query_621036, "DryRun", newJBool(DryRun)) + add(query_621036, "NextToken", newJString(NextToken)) if Filter != nil: - query_621034.add "Filter", Filter + query_621036.add "Filter", Filter if VolumeId != nil: - query_621034.add "VolumeId", VolumeId - add(query_621034, "Action", newJString(Action)) - add(query_621034, "Version", newJString(Version)) - result = call_621033.call(nil, query_621034, nil, nil, nil) + query_621036.add "VolumeId", VolumeId + add(query_621036, "Action", newJString(Action)) + add(query_621036, "Version", newJString(Version)) + result = call_621035.call(nil, query_621036, nil, nil, nil) -var getDescribeVolumes* = Call_GetDescribeVolumes_621015( +var getDescribeVolumes* = Call_GetDescribeVolumes_621017( name: "getDescribeVolumes", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=DescribeVolumes", validator: validate_GetDescribeVolumes_621016, - base: "/", url: url_GetDescribeVolumes_621017, + route: "/#Action=DescribeVolumes", validator: validate_GetDescribeVolumes_621018, + base: "/", url: url_GetDescribeVolumes_621019, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeVolumesModifications_621076 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeVolumesModifications_621078(protocol: Scheme; host: string; + Call_PostDescribeVolumesModifications_621078 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeVolumesModifications_621080(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -81851,7 +81878,7 @@ proc url_PostDescribeVolumesModifications_621078(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeVolumesModifications_621077(path: JsonNode; +proc validate_PostDescribeVolumesModifications_621079(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Reports the current modification status of EBS volumes.

    Current-generation EBS volumes support modification of attributes including type, size, and (for io1 volumes) IOPS provisioning while either attached to or detached from an instance. Following an action from the API or the console to modify a volume, the status of the modification may be modifying, optimizing, completed, or failed. If a volume has never been modified, then certain elements of the returned VolumeModification objects are null.

    You can also use CloudWatch Events to check the status of a modification to an EBS volume. For information about CloudWatch Events, see the Amazon CloudWatch Events User Guide. For more information, see Monitoring Volume Modifications" in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -81863,16 +81890,16 @@ proc validate_PostDescribeVolumesModifications_621077(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621079 = query.getOrDefault("Action") - valid_621079 = validateParameter(valid_621079, JString, required = true, default = newJString( + var valid_621081 = query.getOrDefault("Action") + valid_621081 = validateParameter(valid_621081, JString, required = true, default = newJString( "DescribeVolumesModifications")) - if valid_621079 != nil: - section.add "Action", valid_621079 - var valid_621080 = query.getOrDefault("Version") - valid_621080 = validateParameter(valid_621080, JString, required = true, + if valid_621081 != nil: + section.add "Action", valid_621081 + var valid_621082 = query.getOrDefault("Version") + valid_621082 = validateParameter(valid_621082, JString, required = true, default = newJString("2016-11-15")) - if valid_621080 != nil: - section.add "Version", valid_621080 + if valid_621082 != nil: + section.add "Version", valid_621082 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -81883,41 +81910,41 @@ proc validate_PostDescribeVolumesModifications_621077(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621081 = header.getOrDefault("X-Amz-Signature") - valid_621081 = validateParameter(valid_621081, JString, required = false, - default = nil) - if valid_621081 != nil: - section.add "X-Amz-Signature", valid_621081 - var valid_621082 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621082 = validateParameter(valid_621082, JString, required = false, - default = nil) - if valid_621082 != nil: - section.add "X-Amz-Content-Sha256", valid_621082 - var valid_621083 = header.getOrDefault("X-Amz-Date") + var valid_621083 = header.getOrDefault("X-Amz-Signature") valid_621083 = validateParameter(valid_621083, JString, required = false, default = nil) if valid_621083 != nil: - section.add "X-Amz-Date", valid_621083 - var valid_621084 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621083 + var valid_621084 = header.getOrDefault("X-Amz-Content-Sha256") valid_621084 = validateParameter(valid_621084, JString, required = false, default = nil) if valid_621084 != nil: - section.add "X-Amz-Credential", valid_621084 - var valid_621085 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621084 + var valid_621085 = header.getOrDefault("X-Amz-Date") valid_621085 = validateParameter(valid_621085, JString, required = false, default = nil) if valid_621085 != nil: - section.add "X-Amz-Security-Token", valid_621085 - var valid_621086 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621085 + var valid_621086 = header.getOrDefault("X-Amz-Credential") valid_621086 = validateParameter(valid_621086, JString, required = false, default = nil) if valid_621086 != nil: - section.add "X-Amz-Algorithm", valid_621086 - var valid_621087 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621086 + var valid_621087 = header.getOrDefault("X-Amz-Security-Token") valid_621087 = validateParameter(valid_621087, JString, required = false, default = nil) if valid_621087 != nil: - section.add "X-Amz-SignedHeaders", valid_621087 + section.add "X-Amz-Security-Token", valid_621087 + var valid_621088 = header.getOrDefault("X-Amz-Algorithm") + valid_621088 = validateParameter(valid_621088, JString, required = false, + default = nil) + if valid_621088 != nil: + section.add "X-Amz-Algorithm", valid_621088 + var valid_621089 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621089 = validateParameter(valid_621089, JString, required = false, + default = nil) + if valid_621089 != nil: + section.add "X-Amz-SignedHeaders", valid_621089 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -81929,50 +81956,50 @@ proc validate_PostDescribeVolumesModifications_621077(path: JsonNode; ## MaxResults: JInt ## : The maximum number of results (up to a limit of 500) to be returned in a paginated request. ## Filter: JArray - ## : The filters. Supported filters: volume-id, modification-state, target-size, target-iops, target-volume-type, original-size, original-iops, original-volume-type, start-time. + ## : The filters. Supported filters: volume-id | modification-state | target-size | target-iops | target-volume-type | original-size | original-iops | original-volume-type | start-time | originalMultiAttachEnabled | targetMultiAttachEnabled. section = newJObject() - var valid_621088 = formData.getOrDefault("NextToken") - valid_621088 = validateParameter(valid_621088, JString, required = false, - default = nil) - if valid_621088 != nil: - section.add "NextToken", valid_621088 - var valid_621089 = formData.getOrDefault("VolumeId") - valid_621089 = validateParameter(valid_621089, JArray, required = false, + var valid_621090 = formData.getOrDefault("NextToken") + valid_621090 = validateParameter(valid_621090, JString, required = false, default = nil) - if valid_621089 != nil: - section.add "VolumeId", valid_621089 - var valid_621090 = formData.getOrDefault("DryRun") - valid_621090 = validateParameter(valid_621090, JBool, required = false, default = nil) if valid_621090 != nil: - section.add "DryRun", valid_621090 - var valid_621091 = formData.getOrDefault("MaxResults") - valid_621091 = validateParameter(valid_621091, JInt, required = false, default = nil) - if valid_621091 != nil: - section.add "MaxResults", valid_621091 - var valid_621092 = formData.getOrDefault("Filter") - valid_621092 = validateParameter(valid_621092, JArray, required = false, + section.add "NextToken", valid_621090 + var valid_621091 = formData.getOrDefault("VolumeId") + valid_621091 = validateParameter(valid_621091, JArray, required = false, default = nil) + if valid_621091 != nil: + section.add "VolumeId", valid_621091 + var valid_621092 = formData.getOrDefault("DryRun") + valid_621092 = validateParameter(valid_621092, JBool, required = false, default = nil) if valid_621092 != nil: - section.add "Filter", valid_621092 + section.add "DryRun", valid_621092 + var valid_621093 = formData.getOrDefault("MaxResults") + valid_621093 = validateParameter(valid_621093, JInt, required = false, default = nil) + if valid_621093 != nil: + section.add "MaxResults", valid_621093 + var valid_621094 = formData.getOrDefault("Filter") + valid_621094 = validateParameter(valid_621094, JArray, required = false, + default = nil) + if valid_621094 != nil: + section.add "Filter", valid_621094 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621093: Call_PostDescribeVolumesModifications_621076; +proc call*(call_621095: Call_PostDescribeVolumesModifications_621078; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Reports the current modification status of EBS volumes.

    Current-generation EBS volumes support modification of attributes including type, size, and (for io1 volumes) IOPS provisioning while either attached to or detached from an instance. Following an action from the API or the console to modify a volume, the status of the modification may be modifying, optimizing, completed, or failed. If a volume has never been modified, then certain elements of the returned VolumeModification objects are null.

    You can also use CloudWatch Events to check the status of a modification to an EBS volume. For information about CloudWatch Events, see the Amazon CloudWatch Events User Guide. For more information, see Monitoring Volume Modifications" in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_621093.validator(path, query, header, formData, body) - let scheme = call_621093.pickScheme + let valid = call_621095.validator(path, query, header, formData, body) + let scheme = call_621095.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621093.url(scheme.get, call_621093.host, call_621093.base, - call_621093.route, valid.getOrDefault("path"), + let url = call_621095.url(scheme.get, call_621095.host, call_621095.base, + call_621095.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621093, url, valid) + result = atozHook(call_621095, url, valid) -proc call*(call_621094: Call_PostDescribeVolumesModifications_621076; +proc call*(call_621096: Call_PostDescribeVolumesModifications_621078; NextToken: string = ""; VolumeId: JsonNode = nil; DryRun: bool = false; Action: string = "DescribeVolumesModifications"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -81989,29 +82016,29 @@ proc call*(call_621094: Call_PostDescribeVolumesModifications_621076; ## MaxResults: int ## : The maximum number of results (up to a limit of 500) to be returned in a paginated request. ## Filter: JArray - ## : The filters. Supported filters: volume-id, modification-state, target-size, target-iops, target-volume-type, original-size, original-iops, original-volume-type, start-time. - var query_621095 = newJObject() - var formData_621096 = newJObject() - add(formData_621096, "NextToken", newJString(NextToken)) + ## : The filters. Supported filters: volume-id | modification-state | target-size | target-iops | target-volume-type | original-size | original-iops | original-volume-type | start-time | originalMultiAttachEnabled | targetMultiAttachEnabled. + var query_621097 = newJObject() + var formData_621098 = newJObject() + add(formData_621098, "NextToken", newJString(NextToken)) if VolumeId != nil: - formData_621096.add "VolumeId", VolumeId - add(formData_621096, "DryRun", newJBool(DryRun)) - add(query_621095, "Action", newJString(Action)) - add(query_621095, "Version", newJString(Version)) - add(formData_621096, "MaxResults", newJInt(MaxResults)) + formData_621098.add "VolumeId", VolumeId + add(formData_621098, "DryRun", newJBool(DryRun)) + add(query_621097, "Action", newJString(Action)) + add(query_621097, "Version", newJString(Version)) + add(formData_621098, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_621096.add "Filter", Filter - result = call_621094.call(nil, query_621095, nil, formData_621096, nil) + formData_621098.add "Filter", Filter + result = call_621096.call(nil, query_621097, nil, formData_621098, nil) -var postDescribeVolumesModifications* = Call_PostDescribeVolumesModifications_621076( +var postDescribeVolumesModifications* = Call_PostDescribeVolumesModifications_621078( name: "postDescribeVolumesModifications", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeVolumesModifications", - validator: validate_PostDescribeVolumesModifications_621077, base: "/", - url: url_PostDescribeVolumesModifications_621078, + validator: validate_PostDescribeVolumesModifications_621079, base: "/", + url: url_PostDescribeVolumesModifications_621080, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeVolumesModifications_621056 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeVolumesModifications_621058(protocol: Scheme; host: string; + Call_GetDescribeVolumesModifications_621058 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeVolumesModifications_621060(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -82021,7 +82048,7 @@ proc url_GetDescribeVolumesModifications_621058(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeVolumesModifications_621057(path: JsonNode; +proc validate_GetDescribeVolumesModifications_621059(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Reports the current modification status of EBS volumes.

    Current-generation EBS volumes support modification of attributes including type, size, and (for io1 volumes) IOPS provisioning while either attached to or detached from an instance. Following an action from the API or the console to modify a volume, the status of the modification may be modifying, optimizing, completed, or failed. If a volume has never been modified, then certain elements of the returned VolumeModification objects are null.

    You can also use CloudWatch Events to check the status of a modification to an EBS volume. For information about CloudWatch Events, see the Amazon CloudWatch Events User Guide. For more information, see Monitoring Volume Modifications" in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -82037,45 +82064,45 @@ proc validate_GetDescribeVolumesModifications_621057(path: JsonNode; ## NextToken: JString ## : The nextToken value returned by a previous paginated request. ## Filter: JArray - ## : The filters. Supported filters: volume-id, modification-state, target-size, target-iops, target-volume-type, original-size, original-iops, original-volume-type, start-time. + ## : The filters. Supported filters: volume-id | modification-state | target-size | target-iops | target-volume-type | original-size | original-iops | original-volume-type | start-time | originalMultiAttachEnabled | targetMultiAttachEnabled. ## VolumeId: JArray ## : The IDs of the volumes for which in-progress modifications will be described. ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621059 = query.getOrDefault("MaxResults") - valid_621059 = validateParameter(valid_621059, JInt, required = false, default = nil) - if valid_621059 != nil: - section.add "MaxResults", valid_621059 - var valid_621060 = query.getOrDefault("DryRun") - valid_621060 = validateParameter(valid_621060, JBool, required = false, default = nil) - if valid_621060 != nil: - section.add "DryRun", valid_621060 - var valid_621061 = query.getOrDefault("NextToken") - valid_621061 = validateParameter(valid_621061, JString, required = false, - default = nil) + var valid_621061 = query.getOrDefault("MaxResults") + valid_621061 = validateParameter(valid_621061, JInt, required = false, default = nil) if valid_621061 != nil: - section.add "NextToken", valid_621061 - var valid_621062 = query.getOrDefault("Filter") - valid_621062 = validateParameter(valid_621062, JArray, required = false, - default = nil) + section.add "MaxResults", valid_621061 + var valid_621062 = query.getOrDefault("DryRun") + valid_621062 = validateParameter(valid_621062, JBool, required = false, default = nil) if valid_621062 != nil: - section.add "Filter", valid_621062 - var valid_621063 = query.getOrDefault("VolumeId") - valid_621063 = validateParameter(valid_621063, JArray, required = false, + section.add "DryRun", valid_621062 + var valid_621063 = query.getOrDefault("NextToken") + valid_621063 = validateParameter(valid_621063, JString, required = false, default = nil) if valid_621063 != nil: - section.add "VolumeId", valid_621063 - var valid_621064 = query.getOrDefault("Action") - valid_621064 = validateParameter(valid_621064, JString, required = true, default = newJString( - "DescribeVolumesModifications")) + section.add "NextToken", valid_621063 + var valid_621064 = query.getOrDefault("Filter") + valid_621064 = validateParameter(valid_621064, JArray, required = false, + default = nil) if valid_621064 != nil: - section.add "Action", valid_621064 - var valid_621065 = query.getOrDefault("Version") - valid_621065 = validateParameter(valid_621065, JString, required = true, - default = newJString("2016-11-15")) + section.add "Filter", valid_621064 + var valid_621065 = query.getOrDefault("VolumeId") + valid_621065 = validateParameter(valid_621065, JArray, required = false, + default = nil) if valid_621065 != nil: - section.add "Version", valid_621065 + section.add "VolumeId", valid_621065 + var valid_621066 = query.getOrDefault("Action") + valid_621066 = validateParameter(valid_621066, JString, required = true, default = newJString( + "DescribeVolumesModifications")) + if valid_621066 != nil: + section.add "Action", valid_621066 + var valid_621067 = query.getOrDefault("Version") + valid_621067 = validateParameter(valid_621067, JString, required = true, + default = newJString("2016-11-15")) + if valid_621067 != nil: + section.add "Version", valid_621067 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -82086,62 +82113,62 @@ proc validate_GetDescribeVolumesModifications_621057(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621066 = header.getOrDefault("X-Amz-Signature") - valid_621066 = validateParameter(valid_621066, JString, required = false, - default = nil) - if valid_621066 != nil: - section.add "X-Amz-Signature", valid_621066 - var valid_621067 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621067 = validateParameter(valid_621067, JString, required = false, - default = nil) - if valid_621067 != nil: - section.add "X-Amz-Content-Sha256", valid_621067 - var valid_621068 = header.getOrDefault("X-Amz-Date") + var valid_621068 = header.getOrDefault("X-Amz-Signature") valid_621068 = validateParameter(valid_621068, JString, required = false, default = nil) if valid_621068 != nil: - section.add "X-Amz-Date", valid_621068 - var valid_621069 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621068 + var valid_621069 = header.getOrDefault("X-Amz-Content-Sha256") valid_621069 = validateParameter(valid_621069, JString, required = false, default = nil) if valid_621069 != nil: - section.add "X-Amz-Credential", valid_621069 - var valid_621070 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621069 + var valid_621070 = header.getOrDefault("X-Amz-Date") valid_621070 = validateParameter(valid_621070, JString, required = false, default = nil) if valid_621070 != nil: - section.add "X-Amz-Security-Token", valid_621070 - var valid_621071 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621070 + var valid_621071 = header.getOrDefault("X-Amz-Credential") valid_621071 = validateParameter(valid_621071, JString, required = false, default = nil) if valid_621071 != nil: - section.add "X-Amz-Algorithm", valid_621071 - var valid_621072 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621071 + var valid_621072 = header.getOrDefault("X-Amz-Security-Token") valid_621072 = validateParameter(valid_621072, JString, required = false, default = nil) if valid_621072 != nil: - section.add "X-Amz-SignedHeaders", valid_621072 + section.add "X-Amz-Security-Token", valid_621072 + var valid_621073 = header.getOrDefault("X-Amz-Algorithm") + valid_621073 = validateParameter(valid_621073, JString, required = false, + default = nil) + if valid_621073 != nil: + section.add "X-Amz-Algorithm", valid_621073 + var valid_621074 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621074 = validateParameter(valid_621074, JString, required = false, + default = nil) + if valid_621074 != nil: + section.add "X-Amz-SignedHeaders", valid_621074 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621073: Call_GetDescribeVolumesModifications_621056; +proc call*(call_621075: Call_GetDescribeVolumesModifications_621058; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Reports the current modification status of EBS volumes.

    Current-generation EBS volumes support modification of attributes including type, size, and (for io1 volumes) IOPS provisioning while either attached to or detached from an instance. Following an action from the API or the console to modify a volume, the status of the modification may be modifying, optimizing, completed, or failed. If a volume has never been modified, then certain elements of the returned VolumeModification objects are null.

    You can also use CloudWatch Events to check the status of a modification to an EBS volume. For information about CloudWatch Events, see the Amazon CloudWatch Events User Guide. For more information, see Monitoring Volume Modifications" in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_621073.validator(path, query, header, formData, body) - let scheme = call_621073.pickScheme + let valid = call_621075.validator(path, query, header, formData, body) + let scheme = call_621075.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621073.url(scheme.get, call_621073.host, call_621073.base, - call_621073.route, valid.getOrDefault("path"), + let url = call_621075.url(scheme.get, call_621075.host, call_621075.base, + call_621075.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621073, url, valid) + result = atozHook(call_621075, url, valid) -proc call*(call_621074: Call_GetDescribeVolumesModifications_621056; +proc call*(call_621076: Call_GetDescribeVolumesModifications_621058; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; VolumeId: JsonNode = nil; Action: string = "DescribeVolumesModifications"; @@ -82155,32 +82182,32 @@ proc call*(call_621074: Call_GetDescribeVolumesModifications_621056; ## NextToken: string ## : The nextToken value returned by a previous paginated request. ## Filter: JArray - ## : The filters. Supported filters: volume-id, modification-state, target-size, target-iops, target-volume-type, original-size, original-iops, original-volume-type, start-time. + ## : The filters. Supported filters: volume-id | modification-state | target-size | target-iops | target-volume-type | original-size | original-iops | original-volume-type | start-time | originalMultiAttachEnabled | targetMultiAttachEnabled. ## VolumeId: JArray ## : The IDs of the volumes for which in-progress modifications will be described. ## Action: string (required) ## Version: string (required) - var query_621075 = newJObject() - add(query_621075, "MaxResults", newJInt(MaxResults)) - add(query_621075, "DryRun", newJBool(DryRun)) - add(query_621075, "NextToken", newJString(NextToken)) + var query_621077 = newJObject() + add(query_621077, "MaxResults", newJInt(MaxResults)) + add(query_621077, "DryRun", newJBool(DryRun)) + add(query_621077, "NextToken", newJString(NextToken)) if Filter != nil: - query_621075.add "Filter", Filter + query_621077.add "Filter", Filter if VolumeId != nil: - query_621075.add "VolumeId", VolumeId - add(query_621075, "Action", newJString(Action)) - add(query_621075, "Version", newJString(Version)) - result = call_621074.call(nil, query_621075, nil, nil, nil) + query_621077.add "VolumeId", VolumeId + add(query_621077, "Action", newJString(Action)) + add(query_621077, "Version", newJString(Version)) + result = call_621076.call(nil, query_621077, nil, nil, nil) -var getDescribeVolumesModifications* = Call_GetDescribeVolumesModifications_621056( +var getDescribeVolumesModifications* = Call_GetDescribeVolumesModifications_621058( name: "getDescribeVolumesModifications", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeVolumesModifications", - validator: validate_GetDescribeVolumesModifications_621057, base: "/", - url: url_GetDescribeVolumesModifications_621058, + validator: validate_GetDescribeVolumesModifications_621059, base: "/", + url: url_GetDescribeVolumesModifications_621060, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeVpcAttribute_621115 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeVpcAttribute_621117(protocol: Scheme; host: string; + Call_PostDescribeVpcAttribute_621117 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeVpcAttribute_621119(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -82191,7 +82218,7 @@ proc url_PostDescribeVpcAttribute_621117(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeVpcAttribute_621116(path: JsonNode; query: JsonNode; +proc validate_PostDescribeVpcAttribute_621118(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the specified attribute of the specified VPC. You can specify only one attribute at a time. ## @@ -82203,16 +82230,16 @@ proc validate_PostDescribeVpcAttribute_621116(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621118 = query.getOrDefault("Action") - valid_621118 = validateParameter(valid_621118, JString, required = true, + var valid_621120 = query.getOrDefault("Action") + valid_621120 = validateParameter(valid_621120, JString, required = true, default = newJString("DescribeVpcAttribute")) - if valid_621118 != nil: - section.add "Action", valid_621118 - var valid_621119 = query.getOrDefault("Version") - valid_621119 = validateParameter(valid_621119, JString, required = true, + if valid_621120 != nil: + section.add "Action", valid_621120 + var valid_621121 = query.getOrDefault("Version") + valid_621121 = validateParameter(valid_621121, JString, required = true, default = newJString("2016-11-15")) - if valid_621119 != nil: - section.add "Version", valid_621119 + if valid_621121 != nil: + section.add "Version", valid_621121 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -82223,41 +82250,41 @@ proc validate_PostDescribeVpcAttribute_621116(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621120 = header.getOrDefault("X-Amz-Signature") - valid_621120 = validateParameter(valid_621120, JString, required = false, - default = nil) - if valid_621120 != nil: - section.add "X-Amz-Signature", valid_621120 - var valid_621121 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621121 = validateParameter(valid_621121, JString, required = false, - default = nil) - if valid_621121 != nil: - section.add "X-Amz-Content-Sha256", valid_621121 - var valid_621122 = header.getOrDefault("X-Amz-Date") + var valid_621122 = header.getOrDefault("X-Amz-Signature") valid_621122 = validateParameter(valid_621122, JString, required = false, default = nil) if valid_621122 != nil: - section.add "X-Amz-Date", valid_621122 - var valid_621123 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621122 + var valid_621123 = header.getOrDefault("X-Amz-Content-Sha256") valid_621123 = validateParameter(valid_621123, JString, required = false, default = nil) if valid_621123 != nil: - section.add "X-Amz-Credential", valid_621123 - var valid_621124 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621123 + var valid_621124 = header.getOrDefault("X-Amz-Date") valid_621124 = validateParameter(valid_621124, JString, required = false, default = nil) if valid_621124 != nil: - section.add "X-Amz-Security-Token", valid_621124 - var valid_621125 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621124 + var valid_621125 = header.getOrDefault("X-Amz-Credential") valid_621125 = validateParameter(valid_621125, JString, required = false, default = nil) if valid_621125 != nil: - section.add "X-Amz-Algorithm", valid_621125 - var valid_621126 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621125 + var valid_621126 = header.getOrDefault("X-Amz-Security-Token") valid_621126 = validateParameter(valid_621126, JString, required = false, default = nil) if valid_621126 != nil: - section.add "X-Amz-SignedHeaders", valid_621126 + section.add "X-Amz-Security-Token", valid_621126 + var valid_621127 = header.getOrDefault("X-Amz-Algorithm") + valid_621127 = validateParameter(valid_621127, JString, required = false, + default = nil) + if valid_621127 != nil: + section.add "X-Amz-Algorithm", valid_621127 + var valid_621128 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621128 = validateParameter(valid_621128, JString, required = false, + default = nil) + if valid_621128 != nil: + section.add "X-Amz-SignedHeaders", valid_621128 result.add "header", section ## parameters in `formData` object: ## Attribute: JString (required) @@ -82267,38 +82294,38 @@ proc validate_PostDescribeVpcAttribute_621116(path: JsonNode; query: JsonNode; ## DryRun: JBool ## : 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. section = newJObject() - var valid_621127 = formData.getOrDefault("Attribute") - valid_621127 = validateParameter(valid_621127, JString, required = true, + var valid_621129 = formData.getOrDefault("Attribute") + valid_621129 = validateParameter(valid_621129, JString, required = true, default = newJString("enableDnsSupport")) - if valid_621127 != nil: - section.add "Attribute", valid_621127 - var valid_621128 = formData.getOrDefault("VpcId") - valid_621128 = validateParameter(valid_621128, JString, required = true, - default = nil) - if valid_621128 != nil: - section.add "VpcId", valid_621128 - var valid_621129 = formData.getOrDefault("DryRun") - valid_621129 = validateParameter(valid_621129, JBool, required = false, default = nil) if valid_621129 != nil: - section.add "DryRun", valid_621129 + section.add "Attribute", valid_621129 + var valid_621130 = formData.getOrDefault("VpcId") + valid_621130 = validateParameter(valid_621130, JString, required = true, + default = nil) + if valid_621130 != nil: + section.add "VpcId", valid_621130 + var valid_621131 = formData.getOrDefault("DryRun") + valid_621131 = validateParameter(valid_621131, JBool, required = false, default = nil) + if valid_621131 != nil: + section.add "DryRun", valid_621131 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621130: Call_PostDescribeVpcAttribute_621115; path: JsonNode; +proc call*(call_621132: Call_PostDescribeVpcAttribute_621117; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the specified attribute of the specified VPC. You can specify only one attribute at a time. ## - let valid = call_621130.validator(path, query, header, formData, body) - let scheme = call_621130.pickScheme + let valid = call_621132.validator(path, query, header, formData, body) + let scheme = call_621132.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621130.url(scheme.get, call_621130.host, call_621130.base, - call_621130.route, valid.getOrDefault("path"), + let url = call_621132.url(scheme.get, call_621132.host, call_621132.base, + call_621132.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621130, url, valid) + result = atozHook(call_621132, url, valid) -proc call*(call_621131: Call_PostDescribeVpcAttribute_621115; VpcId: string; +proc call*(call_621133: Call_PostDescribeVpcAttribute_621117; VpcId: string; Attribute: string = "enableDnsSupport"; DryRun: bool = false; Action: string = "DescribeVpcAttribute"; Version: string = "2016-11-15"): Recallable = ## postDescribeVpcAttribute @@ -82311,23 +82338,23 @@ proc call*(call_621131: Call_PostDescribeVpcAttribute_621115; VpcId: string; ## : 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. ## Action: string (required) ## Version: string (required) - var query_621132 = newJObject() - var formData_621133 = newJObject() - add(formData_621133, "Attribute", newJString(Attribute)) - add(formData_621133, "VpcId", newJString(VpcId)) - add(formData_621133, "DryRun", newJBool(DryRun)) - add(query_621132, "Action", newJString(Action)) - add(query_621132, "Version", newJString(Version)) - result = call_621131.call(nil, query_621132, nil, formData_621133, nil) + var query_621134 = newJObject() + var formData_621135 = newJObject() + add(formData_621135, "Attribute", newJString(Attribute)) + add(formData_621135, "VpcId", newJString(VpcId)) + add(formData_621135, "DryRun", newJBool(DryRun)) + add(query_621134, "Action", newJString(Action)) + add(query_621134, "Version", newJString(Version)) + result = call_621133.call(nil, query_621134, nil, formData_621135, nil) -var postDescribeVpcAttribute* = Call_PostDescribeVpcAttribute_621115( +var postDescribeVpcAttribute* = Call_PostDescribeVpcAttribute_621117( name: "postDescribeVpcAttribute", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeVpcAttribute", - validator: validate_PostDescribeVpcAttribute_621116, base: "/", - url: url_PostDescribeVpcAttribute_621117, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDescribeVpcAttribute_621118, base: "/", + url: url_PostDescribeVpcAttribute_621119, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeVpcAttribute_621097 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeVpcAttribute_621099(protocol: Scheme; host: string; base: string; + Call_GetDescribeVpcAttribute_621099 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeVpcAttribute_621101(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -82338,7 +82365,7 @@ proc url_GetDescribeVpcAttribute_621099(protocol: Scheme; host: string; base: st else: result.path = base & route -proc validate_GetDescribeVpcAttribute_621098(path: JsonNode; query: JsonNode; +proc validate_GetDescribeVpcAttribute_621100(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the specified attribute of the specified VPC. You can specify only one attribute at a time. ## @@ -82356,31 +82383,31 @@ proc validate_GetDescribeVpcAttribute_621098(path: JsonNode; query: JsonNode; ## Attribute: JString (required) ## : The VPC attribute. section = newJObject() - var valid_621100 = query.getOrDefault("DryRun") - valid_621100 = validateParameter(valid_621100, JBool, required = false, default = nil) - if valid_621100 != nil: - section.add "DryRun", valid_621100 - assert query != nil, "query argument is necessary due to required `VpcId` field" - var valid_621101 = query.getOrDefault("VpcId") - valid_621101 = validateParameter(valid_621101, JString, required = true, - default = nil) - if valid_621101 != nil: - section.add "VpcId", valid_621101 - var valid_621102 = query.getOrDefault("Action") - valid_621102 = validateParameter(valid_621102, JString, required = true, - default = newJString("DescribeVpcAttribute")) + var valid_621102 = query.getOrDefault("DryRun") + valid_621102 = validateParameter(valid_621102, JBool, required = false, default = nil) if valid_621102 != nil: - section.add "Action", valid_621102 - var valid_621103 = query.getOrDefault("Version") + section.add "DryRun", valid_621102 + assert query != nil, "query argument is necessary due to required `VpcId` field" + var valid_621103 = query.getOrDefault("VpcId") valid_621103 = validateParameter(valid_621103, JString, required = true, - default = newJString("2016-11-15")) + default = nil) if valid_621103 != nil: - section.add "Version", valid_621103 - var valid_621104 = query.getOrDefault("Attribute") + section.add "VpcId", valid_621103 + var valid_621104 = query.getOrDefault("Action") valid_621104 = validateParameter(valid_621104, JString, required = true, - default = newJString("enableDnsSupport")) + default = newJString("DescribeVpcAttribute")) if valid_621104 != nil: - section.add "Attribute", valid_621104 + section.add "Action", valid_621104 + var valid_621105 = query.getOrDefault("Version") + valid_621105 = validateParameter(valid_621105, JString, required = true, + default = newJString("2016-11-15")) + if valid_621105 != nil: + section.add "Version", valid_621105 + var valid_621106 = query.getOrDefault("Attribute") + valid_621106 = validateParameter(valid_621106, JString, required = true, + default = newJString("enableDnsSupport")) + if valid_621106 != nil: + section.add "Attribute", valid_621106 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -82391,61 +82418,61 @@ proc validate_GetDescribeVpcAttribute_621098(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621105 = header.getOrDefault("X-Amz-Signature") - valid_621105 = validateParameter(valid_621105, JString, required = false, - default = nil) - if valid_621105 != nil: - section.add "X-Amz-Signature", valid_621105 - var valid_621106 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621106 = validateParameter(valid_621106, JString, required = false, - default = nil) - if valid_621106 != nil: - section.add "X-Amz-Content-Sha256", valid_621106 - var valid_621107 = header.getOrDefault("X-Amz-Date") + var valid_621107 = header.getOrDefault("X-Amz-Signature") valid_621107 = validateParameter(valid_621107, JString, required = false, default = nil) if valid_621107 != nil: - section.add "X-Amz-Date", valid_621107 - var valid_621108 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621107 + var valid_621108 = header.getOrDefault("X-Amz-Content-Sha256") valid_621108 = validateParameter(valid_621108, JString, required = false, default = nil) if valid_621108 != nil: - section.add "X-Amz-Credential", valid_621108 - var valid_621109 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621108 + var valid_621109 = header.getOrDefault("X-Amz-Date") valid_621109 = validateParameter(valid_621109, JString, required = false, default = nil) if valid_621109 != nil: - section.add "X-Amz-Security-Token", valid_621109 - var valid_621110 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621109 + var valid_621110 = header.getOrDefault("X-Amz-Credential") valid_621110 = validateParameter(valid_621110, JString, required = false, default = nil) if valid_621110 != nil: - section.add "X-Amz-Algorithm", valid_621110 - var valid_621111 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621110 + var valid_621111 = header.getOrDefault("X-Amz-Security-Token") valid_621111 = validateParameter(valid_621111, JString, required = false, default = nil) if valid_621111 != nil: - section.add "X-Amz-SignedHeaders", valid_621111 + section.add "X-Amz-Security-Token", valid_621111 + var valid_621112 = header.getOrDefault("X-Amz-Algorithm") + valid_621112 = validateParameter(valid_621112, JString, required = false, + default = nil) + if valid_621112 != nil: + section.add "X-Amz-Algorithm", valid_621112 + var valid_621113 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621113 = validateParameter(valid_621113, JString, required = false, + default = nil) + if valid_621113 != nil: + section.add "X-Amz-SignedHeaders", valid_621113 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621112: Call_GetDescribeVpcAttribute_621097; path: JsonNode; +proc call*(call_621114: Call_GetDescribeVpcAttribute_621099; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the specified attribute of the specified VPC. You can specify only one attribute at a time. ## - let valid = call_621112.validator(path, query, header, formData, body) - let scheme = call_621112.pickScheme + let valid = call_621114.validator(path, query, header, formData, body) + let scheme = call_621114.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621112.url(scheme.get, call_621112.host, call_621112.base, - call_621112.route, valid.getOrDefault("path"), + let url = call_621114.url(scheme.get, call_621114.host, call_621114.base, + call_621114.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621112, url, valid) + result = atozHook(call_621114, url, valid) -proc call*(call_621113: Call_GetDescribeVpcAttribute_621097; VpcId: string; +proc call*(call_621115: Call_GetDescribeVpcAttribute_621099; VpcId: string; DryRun: bool = false; Action: string = "DescribeVpcAttribute"; Version: string = "2016-11-15"; Attribute: string = "enableDnsSupport"): Recallable = ## getDescribeVpcAttribute @@ -82458,22 +82485,22 @@ proc call*(call_621113: Call_GetDescribeVpcAttribute_621097; VpcId: string; ## Version: string (required) ## Attribute: string (required) ## : The VPC attribute. - var query_621114 = newJObject() - add(query_621114, "DryRun", newJBool(DryRun)) - add(query_621114, "VpcId", newJString(VpcId)) - add(query_621114, "Action", newJString(Action)) - add(query_621114, "Version", newJString(Version)) - add(query_621114, "Attribute", newJString(Attribute)) - result = call_621113.call(nil, query_621114, nil, nil, nil) - -var getDescribeVpcAttribute* = Call_GetDescribeVpcAttribute_621097( + var query_621116 = newJObject() + add(query_621116, "DryRun", newJBool(DryRun)) + add(query_621116, "VpcId", newJString(VpcId)) + add(query_621116, "Action", newJString(Action)) + add(query_621116, "Version", newJString(Version)) + add(query_621116, "Attribute", newJString(Attribute)) + result = call_621115.call(nil, query_621116, nil, nil, nil) + +var getDescribeVpcAttribute* = Call_GetDescribeVpcAttribute_621099( name: "getDescribeVpcAttribute", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeVpcAttribute", - validator: validate_GetDescribeVpcAttribute_621098, base: "/", - url: url_GetDescribeVpcAttribute_621099, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDescribeVpcAttribute_621100, base: "/", + url: url_GetDescribeVpcAttribute_621101, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeVpcClassicLink_621152 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeVpcClassicLink_621154(protocol: Scheme; host: string; + Call_PostDescribeVpcClassicLink_621154 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeVpcClassicLink_621156(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -82483,7 +82510,7 @@ proc url_PostDescribeVpcClassicLink_621154(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeVpcClassicLink_621153(path: JsonNode; query: JsonNode; +proc validate_PostDescribeVpcClassicLink_621155(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the ClassicLink status of one or more VPCs. ## @@ -82495,16 +82522,16 @@ proc validate_PostDescribeVpcClassicLink_621153(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621155 = query.getOrDefault("Action") - valid_621155 = validateParameter(valid_621155, JString, required = true, + var valid_621157 = query.getOrDefault("Action") + valid_621157 = validateParameter(valid_621157, JString, required = true, default = newJString("DescribeVpcClassicLink")) - if valid_621155 != nil: - section.add "Action", valid_621155 - var valid_621156 = query.getOrDefault("Version") - valid_621156 = validateParameter(valid_621156, JString, required = true, + if valid_621157 != nil: + section.add "Action", valid_621157 + var valid_621158 = query.getOrDefault("Version") + valid_621158 = validateParameter(valid_621158, JString, required = true, default = newJString("2016-11-15")) - if valid_621156 != nil: - section.add "Version", valid_621156 + if valid_621158 != nil: + section.add "Version", valid_621158 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -82515,41 +82542,41 @@ proc validate_PostDescribeVpcClassicLink_621153(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621157 = header.getOrDefault("X-Amz-Signature") - valid_621157 = validateParameter(valid_621157, JString, required = false, - default = nil) - if valid_621157 != nil: - section.add "X-Amz-Signature", valid_621157 - var valid_621158 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621158 = validateParameter(valid_621158, JString, required = false, - default = nil) - if valid_621158 != nil: - section.add "X-Amz-Content-Sha256", valid_621158 - var valid_621159 = header.getOrDefault("X-Amz-Date") + var valid_621159 = header.getOrDefault("X-Amz-Signature") valid_621159 = validateParameter(valid_621159, JString, required = false, default = nil) if valid_621159 != nil: - section.add "X-Amz-Date", valid_621159 - var valid_621160 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621159 + var valid_621160 = header.getOrDefault("X-Amz-Content-Sha256") valid_621160 = validateParameter(valid_621160, JString, required = false, default = nil) if valid_621160 != nil: - section.add "X-Amz-Credential", valid_621160 - var valid_621161 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621160 + var valid_621161 = header.getOrDefault("X-Amz-Date") valid_621161 = validateParameter(valid_621161, JString, required = false, default = nil) if valid_621161 != nil: - section.add "X-Amz-Security-Token", valid_621161 - var valid_621162 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621161 + var valid_621162 = header.getOrDefault("X-Amz-Credential") valid_621162 = validateParameter(valid_621162, JString, required = false, default = nil) if valid_621162 != nil: - section.add "X-Amz-Algorithm", valid_621162 - var valid_621163 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621162 + var valid_621163 = header.getOrDefault("X-Amz-Security-Token") valid_621163 = validateParameter(valid_621163, JString, required = false, default = nil) if valid_621163 != nil: - section.add "X-Amz-SignedHeaders", valid_621163 + section.add "X-Amz-Security-Token", valid_621163 + var valid_621164 = header.getOrDefault("X-Amz-Algorithm") + valid_621164 = validateParameter(valid_621164, JString, required = false, + default = nil) + if valid_621164 != nil: + section.add "X-Amz-Algorithm", valid_621164 + var valid_621165 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621165 = validateParameter(valid_621165, JString, required = false, + default = nil) + if valid_621165 != nil: + section.add "X-Amz-SignedHeaders", valid_621165 result.add "header", section ## parameters in `formData` object: ## VpcId: JArray @@ -82559,38 +82586,38 @@ proc validate_PostDescribeVpcClassicLink_621153(path: JsonNode; query: JsonNode; ## Filter: JArray ## :

    One or more filters.

    section = newJObject() - var valid_621164 = formData.getOrDefault("VpcId") - valid_621164 = validateParameter(valid_621164, JArray, required = false, - default = nil) - if valid_621164 != nil: - section.add "VpcId", valid_621164 - var valid_621165 = formData.getOrDefault("DryRun") - valid_621165 = validateParameter(valid_621165, JBool, required = false, default = nil) - if valid_621165 != nil: - section.add "DryRun", valid_621165 - var valid_621166 = formData.getOrDefault("Filter") + var valid_621166 = formData.getOrDefault("VpcId") valid_621166 = validateParameter(valid_621166, JArray, required = false, default = nil) if valid_621166 != nil: - section.add "Filter", valid_621166 + section.add "VpcId", valid_621166 + var valid_621167 = formData.getOrDefault("DryRun") + valid_621167 = validateParameter(valid_621167, JBool, required = false, default = nil) + if valid_621167 != nil: + section.add "DryRun", valid_621167 + var valid_621168 = formData.getOrDefault("Filter") + valid_621168 = validateParameter(valid_621168, JArray, required = false, + default = nil) + if valid_621168 != nil: + section.add "Filter", valid_621168 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621167: Call_PostDescribeVpcClassicLink_621152; path: JsonNode; +proc call*(call_621169: Call_PostDescribeVpcClassicLink_621154; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the ClassicLink status of one or more VPCs. ## - let valid = call_621167.validator(path, query, header, formData, body) - let scheme = call_621167.pickScheme + let valid = call_621169.validator(path, query, header, formData, body) + let scheme = call_621169.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621167.url(scheme.get, call_621167.host, call_621167.base, - call_621167.route, valid.getOrDefault("path"), + let url = call_621169.url(scheme.get, call_621169.host, call_621169.base, + call_621169.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621167, url, valid) + result = atozHook(call_621169, url, valid) -proc call*(call_621168: Call_PostDescribeVpcClassicLink_621152; +proc call*(call_621170: Call_PostDescribeVpcClassicLink_621154; VpcId: JsonNode = nil; DryRun: bool = false; Action: string = "DescribeVpcClassicLink"; Version: string = "2016-11-15"; Filter: JsonNode = nil): Recallable = @@ -82604,26 +82631,26 @@ proc call*(call_621168: Call_PostDescribeVpcClassicLink_621152; ## Version: string (required) ## Filter: JArray ## :

    One or more filters.

    - var query_621169 = newJObject() - var formData_621170 = newJObject() + var query_621171 = newJObject() + var formData_621172 = newJObject() if VpcId != nil: - formData_621170.add "VpcId", VpcId - add(formData_621170, "DryRun", newJBool(DryRun)) - add(query_621169, "Action", newJString(Action)) - add(query_621169, "Version", newJString(Version)) + formData_621172.add "VpcId", VpcId + add(formData_621172, "DryRun", newJBool(DryRun)) + add(query_621171, "Action", newJString(Action)) + add(query_621171, "Version", newJString(Version)) if Filter != nil: - formData_621170.add "Filter", Filter - result = call_621168.call(nil, query_621169, nil, formData_621170, nil) + formData_621172.add "Filter", Filter + result = call_621170.call(nil, query_621171, nil, formData_621172, nil) -var postDescribeVpcClassicLink* = Call_PostDescribeVpcClassicLink_621152( +var postDescribeVpcClassicLink* = Call_PostDescribeVpcClassicLink_621154( name: "postDescribeVpcClassicLink", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeVpcClassicLink", - validator: validate_PostDescribeVpcClassicLink_621153, base: "/", - url: url_PostDescribeVpcClassicLink_621154, + validator: validate_PostDescribeVpcClassicLink_621155, base: "/", + url: url_PostDescribeVpcClassicLink_621156, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeVpcClassicLink_621134 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeVpcClassicLink_621136(protocol: Scheme; host: string; + Call_GetDescribeVpcClassicLink_621136 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeVpcClassicLink_621138(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -82633,7 +82660,7 @@ proc url_GetDescribeVpcClassicLink_621136(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeVpcClassicLink_621135(path: JsonNode; query: JsonNode; +proc validate_GetDescribeVpcClassicLink_621137(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the ClassicLink status of one or more VPCs. ## @@ -82651,30 +82678,30 @@ proc validate_GetDescribeVpcClassicLink_621135(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621137 = query.getOrDefault("DryRun") - valid_621137 = validateParameter(valid_621137, JBool, required = false, default = nil) - if valid_621137 != nil: - section.add "DryRun", valid_621137 - var valid_621138 = query.getOrDefault("VpcId") - valid_621138 = validateParameter(valid_621138, JArray, required = false, + var valid_621139 = query.getOrDefault("DryRun") + valid_621139 = validateParameter(valid_621139, JBool, required = false, default = nil) + if valid_621139 != nil: + section.add "DryRun", valid_621139 + var valid_621140 = query.getOrDefault("VpcId") + valid_621140 = validateParameter(valid_621140, JArray, required = false, default = nil) - if valid_621138 != nil: - section.add "VpcId", valid_621138 - var valid_621139 = query.getOrDefault("Filter") - valid_621139 = validateParameter(valid_621139, JArray, required = false, + if valid_621140 != nil: + section.add "VpcId", valid_621140 + var valid_621141 = query.getOrDefault("Filter") + valid_621141 = validateParameter(valid_621141, JArray, required = false, default = nil) - if valid_621139 != nil: - section.add "Filter", valid_621139 - var valid_621140 = query.getOrDefault("Action") - valid_621140 = validateParameter(valid_621140, JString, required = true, + if valid_621141 != nil: + section.add "Filter", valid_621141 + var valid_621142 = query.getOrDefault("Action") + valid_621142 = validateParameter(valid_621142, JString, required = true, default = newJString("DescribeVpcClassicLink")) - if valid_621140 != nil: - section.add "Action", valid_621140 - var valid_621141 = query.getOrDefault("Version") - valid_621141 = validateParameter(valid_621141, JString, required = true, + if valid_621142 != nil: + section.add "Action", valid_621142 + var valid_621143 = query.getOrDefault("Version") + valid_621143 = validateParameter(valid_621143, JString, required = true, default = newJString("2016-11-15")) - if valid_621141 != nil: - section.add "Version", valid_621141 + if valid_621143 != nil: + section.add "Version", valid_621143 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -82685,61 +82712,61 @@ proc validate_GetDescribeVpcClassicLink_621135(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621142 = header.getOrDefault("X-Amz-Signature") - valid_621142 = validateParameter(valid_621142, JString, required = false, - default = nil) - if valid_621142 != nil: - section.add "X-Amz-Signature", valid_621142 - var valid_621143 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621143 = validateParameter(valid_621143, JString, required = false, - default = nil) - if valid_621143 != nil: - section.add "X-Amz-Content-Sha256", valid_621143 - var valid_621144 = header.getOrDefault("X-Amz-Date") + var valid_621144 = header.getOrDefault("X-Amz-Signature") valid_621144 = validateParameter(valid_621144, JString, required = false, default = nil) if valid_621144 != nil: - section.add "X-Amz-Date", valid_621144 - var valid_621145 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621144 + var valid_621145 = header.getOrDefault("X-Amz-Content-Sha256") valid_621145 = validateParameter(valid_621145, JString, required = false, default = nil) if valid_621145 != nil: - section.add "X-Amz-Credential", valid_621145 - var valid_621146 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621145 + var valid_621146 = header.getOrDefault("X-Amz-Date") valid_621146 = validateParameter(valid_621146, JString, required = false, default = nil) if valid_621146 != nil: - section.add "X-Amz-Security-Token", valid_621146 - var valid_621147 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621146 + var valid_621147 = header.getOrDefault("X-Amz-Credential") valid_621147 = validateParameter(valid_621147, JString, required = false, default = nil) if valid_621147 != nil: - section.add "X-Amz-Algorithm", valid_621147 - var valid_621148 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621147 + var valid_621148 = header.getOrDefault("X-Amz-Security-Token") valid_621148 = validateParameter(valid_621148, JString, required = false, default = nil) if valid_621148 != nil: - section.add "X-Amz-SignedHeaders", valid_621148 + section.add "X-Amz-Security-Token", valid_621148 + var valid_621149 = header.getOrDefault("X-Amz-Algorithm") + valid_621149 = validateParameter(valid_621149, JString, required = false, + default = nil) + if valid_621149 != nil: + section.add "X-Amz-Algorithm", valid_621149 + var valid_621150 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621150 = validateParameter(valid_621150, JString, required = false, + default = nil) + if valid_621150 != nil: + section.add "X-Amz-SignedHeaders", valid_621150 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621149: Call_GetDescribeVpcClassicLink_621134; path: JsonNode; +proc call*(call_621151: Call_GetDescribeVpcClassicLink_621136; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the ClassicLink status of one or more VPCs. ## - let valid = call_621149.validator(path, query, header, formData, body) - let scheme = call_621149.pickScheme + let valid = call_621151.validator(path, query, header, formData, body) + let scheme = call_621151.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621149.url(scheme.get, call_621149.host, call_621149.base, - call_621149.route, valid.getOrDefault("path"), + let url = call_621151.url(scheme.get, call_621151.host, call_621151.base, + call_621151.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621149, url, valid) + result = atozHook(call_621151, url, valid) -proc call*(call_621150: Call_GetDescribeVpcClassicLink_621134; +proc call*(call_621152: Call_GetDescribeVpcClassicLink_621136; DryRun: bool = false; VpcId: JsonNode = nil; Filter: JsonNode = nil; Action: string = "DescribeVpcClassicLink"; Version: string = "2016-11-15"): Recallable = ## getDescribeVpcClassicLink @@ -82752,25 +82779,25 @@ proc call*(call_621150: Call_GetDescribeVpcClassicLink_621134; ## :

    One or more filters.

    ## Action: string (required) ## Version: string (required) - var query_621151 = newJObject() - add(query_621151, "DryRun", newJBool(DryRun)) + var query_621153 = newJObject() + add(query_621153, "DryRun", newJBool(DryRun)) if VpcId != nil: - query_621151.add "VpcId", VpcId + query_621153.add "VpcId", VpcId if Filter != nil: - query_621151.add "Filter", Filter - add(query_621151, "Action", newJString(Action)) - add(query_621151, "Version", newJString(Version)) - result = call_621150.call(nil, query_621151, nil, nil, nil) + query_621153.add "Filter", Filter + add(query_621153, "Action", newJString(Action)) + add(query_621153, "Version", newJString(Version)) + result = call_621152.call(nil, query_621153, nil, nil, nil) -var getDescribeVpcClassicLink* = Call_GetDescribeVpcClassicLink_621134( +var getDescribeVpcClassicLink* = Call_GetDescribeVpcClassicLink_621136( name: "getDescribeVpcClassicLink", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeVpcClassicLink", - validator: validate_GetDescribeVpcClassicLink_621135, base: "/", - url: url_GetDescribeVpcClassicLink_621136, + validator: validate_GetDescribeVpcClassicLink_621137, base: "/", + url: url_GetDescribeVpcClassicLink_621138, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeVpcClassicLinkDnsSupport_621189 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeVpcClassicLinkDnsSupport_621191(protocol: Scheme; + Call_PostDescribeVpcClassicLinkDnsSupport_621191 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeVpcClassicLinkDnsSupport_621193(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -82780,7 +82807,7 @@ proc url_PostDescribeVpcClassicLinkDnsSupport_621191(protocol: Scheme; else: result.path = base & route -proc validate_PostDescribeVpcClassicLinkDnsSupport_621190(path: JsonNode; +proc validate_PostDescribeVpcClassicLinkDnsSupport_621192(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the ClassicLink DNS support status of one or more VPCs. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it's linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. ## @@ -82792,16 +82819,16 @@ proc validate_PostDescribeVpcClassicLinkDnsSupport_621190(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621192 = query.getOrDefault("Action") - valid_621192 = validateParameter(valid_621192, JString, required = true, default = newJString( + var valid_621194 = query.getOrDefault("Action") + valid_621194 = validateParameter(valid_621194, JString, required = true, default = newJString( "DescribeVpcClassicLinkDnsSupport")) - if valid_621192 != nil: - section.add "Action", valid_621192 - var valid_621193 = query.getOrDefault("Version") - valid_621193 = validateParameter(valid_621193, JString, required = true, + if valid_621194 != nil: + section.add "Action", valid_621194 + var valid_621195 = query.getOrDefault("Version") + valid_621195 = validateParameter(valid_621195, JString, required = true, default = newJString("2016-11-15")) - if valid_621193 != nil: - section.add "Version", valid_621193 + if valid_621195 != nil: + section.add "Version", valid_621195 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -82812,41 +82839,41 @@ proc validate_PostDescribeVpcClassicLinkDnsSupport_621190(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621194 = header.getOrDefault("X-Amz-Signature") - valid_621194 = validateParameter(valid_621194, JString, required = false, - default = nil) - if valid_621194 != nil: - section.add "X-Amz-Signature", valid_621194 - var valid_621195 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621195 = validateParameter(valid_621195, JString, required = false, - default = nil) - if valid_621195 != nil: - section.add "X-Amz-Content-Sha256", valid_621195 - var valid_621196 = header.getOrDefault("X-Amz-Date") + var valid_621196 = header.getOrDefault("X-Amz-Signature") valid_621196 = validateParameter(valid_621196, JString, required = false, default = nil) if valid_621196 != nil: - section.add "X-Amz-Date", valid_621196 - var valid_621197 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621196 + var valid_621197 = header.getOrDefault("X-Amz-Content-Sha256") valid_621197 = validateParameter(valid_621197, JString, required = false, default = nil) if valid_621197 != nil: - section.add "X-Amz-Credential", valid_621197 - var valid_621198 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621197 + var valid_621198 = header.getOrDefault("X-Amz-Date") valid_621198 = validateParameter(valid_621198, JString, required = false, default = nil) if valid_621198 != nil: - section.add "X-Amz-Security-Token", valid_621198 - var valid_621199 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621198 + var valid_621199 = header.getOrDefault("X-Amz-Credential") valid_621199 = validateParameter(valid_621199, JString, required = false, default = nil) if valid_621199 != nil: - section.add "X-Amz-Algorithm", valid_621199 - var valid_621200 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621199 + var valid_621200 = header.getOrDefault("X-Amz-Security-Token") valid_621200 = validateParameter(valid_621200, JString, required = false, default = nil) if valid_621200 != nil: - section.add "X-Amz-SignedHeaders", valid_621200 + section.add "X-Amz-Security-Token", valid_621200 + var valid_621201 = header.getOrDefault("X-Amz-Algorithm") + valid_621201 = validateParameter(valid_621201, JString, required = false, + default = nil) + if valid_621201 != nil: + section.add "X-Amz-Algorithm", valid_621201 + var valid_621202 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621202 = validateParameter(valid_621202, JString, required = false, + default = nil) + if valid_621202 != nil: + section.add "X-Amz-SignedHeaders", valid_621202 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -82856,39 +82883,39 @@ proc validate_PostDescribeVpcClassicLinkDnsSupport_621190(path: JsonNode; ## MaxResults: JInt ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. section = newJObject() - var valid_621201 = formData.getOrDefault("NextToken") - valid_621201 = validateParameter(valid_621201, JString, required = false, + var valid_621203 = formData.getOrDefault("NextToken") + valid_621203 = validateParameter(valid_621203, JString, required = false, default = nil) - if valid_621201 != nil: - section.add "NextToken", valid_621201 - var valid_621202 = formData.getOrDefault("VpcIds") - valid_621202 = validateParameter(valid_621202, JArray, required = false, - default = nil) - if valid_621202 != nil: - section.add "VpcIds", valid_621202 - var valid_621203 = formData.getOrDefault("MaxResults") - valid_621203 = validateParameter(valid_621203, JInt, required = false, default = nil) if valid_621203 != nil: - section.add "MaxResults", valid_621203 + section.add "NextToken", valid_621203 + var valid_621204 = formData.getOrDefault("VpcIds") + valid_621204 = validateParameter(valid_621204, JArray, required = false, + default = nil) + if valid_621204 != nil: + section.add "VpcIds", valid_621204 + var valid_621205 = formData.getOrDefault("MaxResults") + valid_621205 = validateParameter(valid_621205, JInt, required = false, default = nil) + if valid_621205 != nil: + section.add "MaxResults", valid_621205 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621204: Call_PostDescribeVpcClassicLinkDnsSupport_621189; +proc call*(call_621206: Call_PostDescribeVpcClassicLinkDnsSupport_621191; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the ClassicLink DNS support status of one or more VPCs. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it's linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. ## - let valid = call_621204.validator(path, query, header, formData, body) - let scheme = call_621204.pickScheme + let valid = call_621206.validator(path, query, header, formData, body) + let scheme = call_621206.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621204.url(scheme.get, call_621204.host, call_621204.base, - call_621204.route, valid.getOrDefault("path"), + let url = call_621206.url(scheme.get, call_621206.host, call_621206.base, + call_621206.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621204, url, valid) + result = atozHook(call_621206, url, valid) -proc call*(call_621205: Call_PostDescribeVpcClassicLinkDnsSupport_621189; +proc call*(call_621207: Call_PostDescribeVpcClassicLinkDnsSupport_621191; NextToken: string = ""; VpcIds: JsonNode = nil; Action: string = "DescribeVpcClassicLinkDnsSupport"; Version: string = "2016-11-15"; MaxResults: int = 0): Recallable = @@ -82902,25 +82929,25 @@ proc call*(call_621205: Call_PostDescribeVpcClassicLinkDnsSupport_621189; ## Version: string (required) ## MaxResults: int ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. - var query_621206 = newJObject() - var formData_621207 = newJObject() - add(formData_621207, "NextToken", newJString(NextToken)) + var query_621208 = newJObject() + var formData_621209 = newJObject() + add(formData_621209, "NextToken", newJString(NextToken)) if VpcIds != nil: - formData_621207.add "VpcIds", VpcIds - add(query_621206, "Action", newJString(Action)) - add(query_621206, "Version", newJString(Version)) - add(formData_621207, "MaxResults", newJInt(MaxResults)) - result = call_621205.call(nil, query_621206, nil, formData_621207, nil) + formData_621209.add "VpcIds", VpcIds + add(query_621208, "Action", newJString(Action)) + add(query_621208, "Version", newJString(Version)) + add(formData_621209, "MaxResults", newJInt(MaxResults)) + result = call_621207.call(nil, query_621208, nil, formData_621209, nil) -var postDescribeVpcClassicLinkDnsSupport* = Call_PostDescribeVpcClassicLinkDnsSupport_621189( +var postDescribeVpcClassicLinkDnsSupport* = Call_PostDescribeVpcClassicLinkDnsSupport_621191( name: "postDescribeVpcClassicLinkDnsSupport", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeVpcClassicLinkDnsSupport", - validator: validate_PostDescribeVpcClassicLinkDnsSupport_621190, base: "/", - url: url_PostDescribeVpcClassicLinkDnsSupport_621191, + validator: validate_PostDescribeVpcClassicLinkDnsSupport_621192, base: "/", + url: url_PostDescribeVpcClassicLinkDnsSupport_621193, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeVpcClassicLinkDnsSupport_621171 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeVpcClassicLinkDnsSupport_621173(protocol: Scheme; host: string; + Call_GetDescribeVpcClassicLinkDnsSupport_621173 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeVpcClassicLinkDnsSupport_621175(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -82930,7 +82957,7 @@ proc url_GetDescribeVpcClassicLinkDnsSupport_621173(protocol: Scheme; host: stri else: result.path = base & route -proc validate_GetDescribeVpcClassicLinkDnsSupport_621172(path: JsonNode; +proc validate_GetDescribeVpcClassicLinkDnsSupport_621174(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the ClassicLink DNS support status of one or more VPCs. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it's linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. ## @@ -82948,30 +82975,30 @@ proc validate_GetDescribeVpcClassicLinkDnsSupport_621172(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621174 = query.getOrDefault("MaxResults") - valid_621174 = validateParameter(valid_621174, JInt, required = false, default = nil) - if valid_621174 != nil: - section.add "MaxResults", valid_621174 - var valid_621175 = query.getOrDefault("VpcIds") - valid_621175 = validateParameter(valid_621175, JArray, required = false, + var valid_621176 = query.getOrDefault("MaxResults") + valid_621176 = validateParameter(valid_621176, JInt, required = false, default = nil) + if valid_621176 != nil: + section.add "MaxResults", valid_621176 + var valid_621177 = query.getOrDefault("VpcIds") + valid_621177 = validateParameter(valid_621177, JArray, required = false, default = nil) - if valid_621175 != nil: - section.add "VpcIds", valid_621175 - var valid_621176 = query.getOrDefault("NextToken") - valid_621176 = validateParameter(valid_621176, JString, required = false, + if valid_621177 != nil: + section.add "VpcIds", valid_621177 + var valid_621178 = query.getOrDefault("NextToken") + valid_621178 = validateParameter(valid_621178, JString, required = false, default = nil) - if valid_621176 != nil: - section.add "NextToken", valid_621176 - var valid_621177 = query.getOrDefault("Action") - valid_621177 = validateParameter(valid_621177, JString, required = true, default = newJString( + if valid_621178 != nil: + section.add "NextToken", valid_621178 + var valid_621179 = query.getOrDefault("Action") + valid_621179 = validateParameter(valid_621179, JString, required = true, default = newJString( "DescribeVpcClassicLinkDnsSupport")) - if valid_621177 != nil: - section.add "Action", valid_621177 - var valid_621178 = query.getOrDefault("Version") - valid_621178 = validateParameter(valid_621178, JString, required = true, + if valid_621179 != nil: + section.add "Action", valid_621179 + var valid_621180 = query.getOrDefault("Version") + valid_621180 = validateParameter(valid_621180, JString, required = true, default = newJString("2016-11-15")) - if valid_621178 != nil: - section.add "Version", valid_621178 + if valid_621180 != nil: + section.add "Version", valid_621180 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -82982,62 +83009,62 @@ proc validate_GetDescribeVpcClassicLinkDnsSupport_621172(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621179 = header.getOrDefault("X-Amz-Signature") - valid_621179 = validateParameter(valid_621179, JString, required = false, - default = nil) - if valid_621179 != nil: - section.add "X-Amz-Signature", valid_621179 - var valid_621180 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621180 = validateParameter(valid_621180, JString, required = false, - default = nil) - if valid_621180 != nil: - section.add "X-Amz-Content-Sha256", valid_621180 - var valid_621181 = header.getOrDefault("X-Amz-Date") + var valid_621181 = header.getOrDefault("X-Amz-Signature") valid_621181 = validateParameter(valid_621181, JString, required = false, default = nil) if valid_621181 != nil: - section.add "X-Amz-Date", valid_621181 - var valid_621182 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621181 + var valid_621182 = header.getOrDefault("X-Amz-Content-Sha256") valid_621182 = validateParameter(valid_621182, JString, required = false, default = nil) if valid_621182 != nil: - section.add "X-Amz-Credential", valid_621182 - var valid_621183 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621182 + var valid_621183 = header.getOrDefault("X-Amz-Date") valid_621183 = validateParameter(valid_621183, JString, required = false, default = nil) if valid_621183 != nil: - section.add "X-Amz-Security-Token", valid_621183 - var valid_621184 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621183 + var valid_621184 = header.getOrDefault("X-Amz-Credential") valid_621184 = validateParameter(valid_621184, JString, required = false, default = nil) if valid_621184 != nil: - section.add "X-Amz-Algorithm", valid_621184 - var valid_621185 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621184 + var valid_621185 = header.getOrDefault("X-Amz-Security-Token") valid_621185 = validateParameter(valid_621185, JString, required = false, default = nil) if valid_621185 != nil: - section.add "X-Amz-SignedHeaders", valid_621185 + section.add "X-Amz-Security-Token", valid_621185 + var valid_621186 = header.getOrDefault("X-Amz-Algorithm") + valid_621186 = validateParameter(valid_621186, JString, required = false, + default = nil) + if valid_621186 != nil: + section.add "X-Amz-Algorithm", valid_621186 + var valid_621187 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621187 = validateParameter(valid_621187, JString, required = false, + default = nil) + if valid_621187 != nil: + section.add "X-Amz-SignedHeaders", valid_621187 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621186: Call_GetDescribeVpcClassicLinkDnsSupport_621171; +proc call*(call_621188: Call_GetDescribeVpcClassicLinkDnsSupport_621173; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the ClassicLink DNS support status of one or more VPCs. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it's linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. ## - let valid = call_621186.validator(path, query, header, formData, body) - let scheme = call_621186.pickScheme + let valid = call_621188.validator(path, query, header, formData, body) + let scheme = call_621188.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621186.url(scheme.get, call_621186.host, call_621186.base, - call_621186.route, valid.getOrDefault("path"), + let url = call_621188.url(scheme.get, call_621188.host, call_621188.base, + call_621188.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621186, url, valid) + result = atozHook(call_621188, url, valid) -proc call*(call_621187: Call_GetDescribeVpcClassicLinkDnsSupport_621171; +proc call*(call_621189: Call_GetDescribeVpcClassicLinkDnsSupport_621173; MaxResults: int = 0; VpcIds: JsonNode = nil; NextToken: string = ""; Action: string = "DescribeVpcClassicLinkDnsSupport"; Version: string = "2016-11-15"): Recallable = @@ -83051,24 +83078,24 @@ proc call*(call_621187: Call_GetDescribeVpcClassicLinkDnsSupport_621171; ## : The token for the next page of results. ## Action: string (required) ## Version: string (required) - var query_621188 = newJObject() - add(query_621188, "MaxResults", newJInt(MaxResults)) + var query_621190 = newJObject() + add(query_621190, "MaxResults", newJInt(MaxResults)) if VpcIds != nil: - query_621188.add "VpcIds", VpcIds - add(query_621188, "NextToken", newJString(NextToken)) - add(query_621188, "Action", newJString(Action)) - add(query_621188, "Version", newJString(Version)) - result = call_621187.call(nil, query_621188, nil, nil, nil) + query_621190.add "VpcIds", VpcIds + add(query_621190, "NextToken", newJString(NextToken)) + add(query_621190, "Action", newJString(Action)) + add(query_621190, "Version", newJString(Version)) + result = call_621189.call(nil, query_621190, nil, nil, nil) -var getDescribeVpcClassicLinkDnsSupport* = Call_GetDescribeVpcClassicLinkDnsSupport_621171( +var getDescribeVpcClassicLinkDnsSupport* = Call_GetDescribeVpcClassicLinkDnsSupport_621173( name: "getDescribeVpcClassicLinkDnsSupport", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeVpcClassicLinkDnsSupport", - validator: validate_GetDescribeVpcClassicLinkDnsSupport_621172, base: "/", - url: url_GetDescribeVpcClassicLinkDnsSupport_621173, + validator: validate_GetDescribeVpcClassicLinkDnsSupport_621174, base: "/", + url: url_GetDescribeVpcClassicLinkDnsSupport_621175, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeVpcEndpointConnectionNotifications_621228 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeVpcEndpointConnectionNotifications_621230(protocol: Scheme; + Call_PostDescribeVpcEndpointConnectionNotifications_621230 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeVpcEndpointConnectionNotifications_621232(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -83078,7 +83105,7 @@ proc url_PostDescribeVpcEndpointConnectionNotifications_621230(protocol: Scheme; else: result.path = base & route -proc validate_PostDescribeVpcEndpointConnectionNotifications_621229( +proc validate_PostDescribeVpcEndpointConnectionNotifications_621231( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the connection notifications for VPC endpoints and VPC endpoint services. @@ -83091,16 +83118,16 @@ proc validate_PostDescribeVpcEndpointConnectionNotifications_621229( ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621231 = query.getOrDefault("Action") - valid_621231 = validateParameter(valid_621231, JString, required = true, default = newJString( + var valid_621233 = query.getOrDefault("Action") + valid_621233 = validateParameter(valid_621233, JString, required = true, default = newJString( "DescribeVpcEndpointConnectionNotifications")) - if valid_621231 != nil: - section.add "Action", valid_621231 - var valid_621232 = query.getOrDefault("Version") - valid_621232 = validateParameter(valid_621232, JString, required = true, + if valid_621233 != nil: + section.add "Action", valid_621233 + var valid_621234 = query.getOrDefault("Version") + valid_621234 = validateParameter(valid_621234, JString, required = true, default = newJString("2016-11-15")) - if valid_621232 != nil: - section.add "Version", valid_621232 + if valid_621234 != nil: + section.add "Version", valid_621234 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -83111,41 +83138,41 @@ proc validate_PostDescribeVpcEndpointConnectionNotifications_621229( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621233 = header.getOrDefault("X-Amz-Signature") - valid_621233 = validateParameter(valid_621233, JString, required = false, - default = nil) - if valid_621233 != nil: - section.add "X-Amz-Signature", valid_621233 - var valid_621234 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621234 = validateParameter(valid_621234, JString, required = false, - default = nil) - if valid_621234 != nil: - section.add "X-Amz-Content-Sha256", valid_621234 - var valid_621235 = header.getOrDefault("X-Amz-Date") + var valid_621235 = header.getOrDefault("X-Amz-Signature") valid_621235 = validateParameter(valid_621235, JString, required = false, default = nil) if valid_621235 != nil: - section.add "X-Amz-Date", valid_621235 - var valid_621236 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621235 + var valid_621236 = header.getOrDefault("X-Amz-Content-Sha256") valid_621236 = validateParameter(valid_621236, JString, required = false, default = nil) if valid_621236 != nil: - section.add "X-Amz-Credential", valid_621236 - var valid_621237 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621236 + var valid_621237 = header.getOrDefault("X-Amz-Date") valid_621237 = validateParameter(valid_621237, JString, required = false, default = nil) if valid_621237 != nil: - section.add "X-Amz-Security-Token", valid_621237 - var valid_621238 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621237 + var valid_621238 = header.getOrDefault("X-Amz-Credential") valid_621238 = validateParameter(valid_621238, JString, required = false, default = nil) if valid_621238 != nil: - section.add "X-Amz-Algorithm", valid_621238 - var valid_621239 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621238 + var valid_621239 = header.getOrDefault("X-Amz-Security-Token") valid_621239 = validateParameter(valid_621239, JString, required = false, default = nil) if valid_621239 != nil: - section.add "X-Amz-SignedHeaders", valid_621239 + section.add "X-Amz-Security-Token", valid_621239 + var valid_621240 = header.getOrDefault("X-Amz-Algorithm") + valid_621240 = validateParameter(valid_621240, JString, required = false, + default = nil) + if valid_621240 != nil: + section.add "X-Amz-Algorithm", valid_621240 + var valid_621241 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621241 = validateParameter(valid_621241, JString, required = false, + default = nil) + if valid_621241 != nil: + section.add "X-Amz-SignedHeaders", valid_621241 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -83159,48 +83186,48 @@ proc validate_PostDescribeVpcEndpointConnectionNotifications_621229( ## Filter: JArray ## :

    One or more filters.

    section = newJObject() - var valid_621240 = formData.getOrDefault("NextToken") - valid_621240 = validateParameter(valid_621240, JString, required = false, - default = nil) - if valid_621240 != nil: - section.add "NextToken", valid_621240 - var valid_621241 = formData.getOrDefault("DryRun") - valid_621241 = validateParameter(valid_621241, JBool, required = false, default = nil) - if valid_621241 != nil: - section.add "DryRun", valid_621241 - var valid_621242 = formData.getOrDefault("ConnectionNotificationId") + var valid_621242 = formData.getOrDefault("NextToken") valid_621242 = validateParameter(valid_621242, JString, required = false, default = nil) if valid_621242 != nil: - section.add "ConnectionNotificationId", valid_621242 - var valid_621243 = formData.getOrDefault("MaxResults") - valid_621243 = validateParameter(valid_621243, JInt, required = false, default = nil) + section.add "NextToken", valid_621242 + var valid_621243 = formData.getOrDefault("DryRun") + valid_621243 = validateParameter(valid_621243, JBool, required = false, default = nil) if valid_621243 != nil: - section.add "MaxResults", valid_621243 - var valid_621244 = formData.getOrDefault("Filter") - valid_621244 = validateParameter(valid_621244, JArray, required = false, + section.add "DryRun", valid_621243 + var valid_621244 = formData.getOrDefault("ConnectionNotificationId") + valid_621244 = validateParameter(valid_621244, JString, required = false, default = nil) if valid_621244 != nil: - section.add "Filter", valid_621244 + section.add "ConnectionNotificationId", valid_621244 + var valid_621245 = formData.getOrDefault("MaxResults") + valid_621245 = validateParameter(valid_621245, JInt, required = false, default = nil) + if valid_621245 != nil: + section.add "MaxResults", valid_621245 + var valid_621246 = formData.getOrDefault("Filter") + valid_621246 = validateParameter(valid_621246, JArray, required = false, + default = nil) + if valid_621246 != nil: + section.add "Filter", valid_621246 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621245: Call_PostDescribeVpcEndpointConnectionNotifications_621228; +proc call*(call_621247: Call_PostDescribeVpcEndpointConnectionNotifications_621230; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the connection notifications for VPC endpoints and VPC endpoint services. ## - let valid = call_621245.validator(path, query, header, formData, body) - let scheme = call_621245.pickScheme + let valid = call_621247.validator(path, query, header, formData, body) + let scheme = call_621247.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621245.url(scheme.get, call_621245.host, call_621245.base, - call_621245.route, valid.getOrDefault("path"), + let url = call_621247.url(scheme.get, call_621247.host, call_621247.base, + call_621247.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621245, url, valid) + result = atozHook(call_621247, url, valid) -proc call*(call_621246: Call_PostDescribeVpcEndpointConnectionNotifications_621228; +proc call*(call_621248: Call_PostDescribeVpcEndpointConnectionNotifications_621230; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeVpcEndpointConnectionNotifications"; ConnectionNotificationId: string = ""; Version: string = "2016-11-15"; @@ -83219,29 +83246,29 @@ proc call*(call_621246: Call_PostDescribeVpcEndpointConnectionNotifications_6212 ## : The maximum number of results to return in a single call. To retrieve the remaining results, make another request with the returned NextToken value. ## Filter: JArray ## :

    One or more filters.

    - var query_621247 = newJObject() - var formData_621248 = newJObject() - add(formData_621248, "NextToken", newJString(NextToken)) - add(formData_621248, "DryRun", newJBool(DryRun)) - add(query_621247, "Action", newJString(Action)) - add(formData_621248, "ConnectionNotificationId", + var query_621249 = newJObject() + var formData_621250 = newJObject() + add(formData_621250, "NextToken", newJString(NextToken)) + add(formData_621250, "DryRun", newJBool(DryRun)) + add(query_621249, "Action", newJString(Action)) + add(formData_621250, "ConnectionNotificationId", newJString(ConnectionNotificationId)) - add(query_621247, "Version", newJString(Version)) - add(formData_621248, "MaxResults", newJInt(MaxResults)) + add(query_621249, "Version", newJString(Version)) + add(formData_621250, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_621248.add "Filter", Filter - result = call_621246.call(nil, query_621247, nil, formData_621248, nil) + formData_621250.add "Filter", Filter + result = call_621248.call(nil, query_621249, nil, formData_621250, nil) -var postDescribeVpcEndpointConnectionNotifications* = Call_PostDescribeVpcEndpointConnectionNotifications_621228( +var postDescribeVpcEndpointConnectionNotifications* = Call_PostDescribeVpcEndpointConnectionNotifications_621230( name: "postDescribeVpcEndpointConnectionNotifications", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeVpcEndpointConnectionNotifications", - validator: validate_PostDescribeVpcEndpointConnectionNotifications_621229, - base: "/", url: url_PostDescribeVpcEndpointConnectionNotifications_621230, + validator: validate_PostDescribeVpcEndpointConnectionNotifications_621231, + base: "/", url: url_PostDescribeVpcEndpointConnectionNotifications_621232, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeVpcEndpointConnectionNotifications_621208 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeVpcEndpointConnectionNotifications_621210(protocol: Scheme; + Call_GetDescribeVpcEndpointConnectionNotifications_621210 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeVpcEndpointConnectionNotifications_621212(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -83251,7 +83278,7 @@ proc url_GetDescribeVpcEndpointConnectionNotifications_621210(protocol: Scheme; else: result.path = base & route -proc validate_GetDescribeVpcEndpointConnectionNotifications_621209( +proc validate_GetDescribeVpcEndpointConnectionNotifications_621211( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the connection notifications for VPC endpoints and VPC endpoint services. @@ -83274,39 +83301,39 @@ proc validate_GetDescribeVpcEndpointConnectionNotifications_621209( ## : The ID of the notification. ## Version: JString (required) section = newJObject() - var valid_621211 = query.getOrDefault("MaxResults") - valid_621211 = validateParameter(valid_621211, JInt, required = false, default = nil) - if valid_621211 != nil: - section.add "MaxResults", valid_621211 - var valid_621212 = query.getOrDefault("DryRun") - valid_621212 = validateParameter(valid_621212, JBool, required = false, default = nil) - if valid_621212 != nil: - section.add "DryRun", valid_621212 - var valid_621213 = query.getOrDefault("NextToken") - valid_621213 = validateParameter(valid_621213, JString, required = false, - default = nil) + var valid_621213 = query.getOrDefault("MaxResults") + valid_621213 = validateParameter(valid_621213, JInt, required = false, default = nil) if valid_621213 != nil: - section.add "NextToken", valid_621213 - var valid_621214 = query.getOrDefault("Filter") - valid_621214 = validateParameter(valid_621214, JArray, required = false, - default = nil) + section.add "MaxResults", valid_621213 + var valid_621214 = query.getOrDefault("DryRun") + valid_621214 = validateParameter(valid_621214, JBool, required = false, default = nil) if valid_621214 != nil: - section.add "Filter", valid_621214 - var valid_621215 = query.getOrDefault("Action") - valid_621215 = validateParameter(valid_621215, JString, required = true, default = newJString( - "DescribeVpcEndpointConnectionNotifications")) + section.add "DryRun", valid_621214 + var valid_621215 = query.getOrDefault("NextToken") + valid_621215 = validateParameter(valid_621215, JString, required = false, + default = nil) if valid_621215 != nil: - section.add "Action", valid_621215 - var valid_621216 = query.getOrDefault("ConnectionNotificationId") - valid_621216 = validateParameter(valid_621216, JString, required = false, + section.add "NextToken", valid_621215 + var valid_621216 = query.getOrDefault("Filter") + valid_621216 = validateParameter(valid_621216, JArray, required = false, default = nil) if valid_621216 != nil: - section.add "ConnectionNotificationId", valid_621216 - var valid_621217 = query.getOrDefault("Version") - valid_621217 = validateParameter(valid_621217, JString, required = true, - default = newJString("2016-11-15")) + section.add "Filter", valid_621216 + var valid_621217 = query.getOrDefault("Action") + valid_621217 = validateParameter(valid_621217, JString, required = true, default = newJString( + "DescribeVpcEndpointConnectionNotifications")) if valid_621217 != nil: - section.add "Version", valid_621217 + section.add "Action", valid_621217 + var valid_621218 = query.getOrDefault("ConnectionNotificationId") + valid_621218 = validateParameter(valid_621218, JString, required = false, + default = nil) + if valid_621218 != nil: + section.add "ConnectionNotificationId", valid_621218 + var valid_621219 = query.getOrDefault("Version") + valid_621219 = validateParameter(valid_621219, JString, required = true, + default = newJString("2016-11-15")) + if valid_621219 != nil: + section.add "Version", valid_621219 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -83317,62 +83344,62 @@ proc validate_GetDescribeVpcEndpointConnectionNotifications_621209( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621218 = header.getOrDefault("X-Amz-Signature") - valid_621218 = validateParameter(valid_621218, JString, required = false, - default = nil) - if valid_621218 != nil: - section.add "X-Amz-Signature", valid_621218 - var valid_621219 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621219 = validateParameter(valid_621219, JString, required = false, - default = nil) - if valid_621219 != nil: - section.add "X-Amz-Content-Sha256", valid_621219 - var valid_621220 = header.getOrDefault("X-Amz-Date") + var valid_621220 = header.getOrDefault("X-Amz-Signature") valid_621220 = validateParameter(valid_621220, JString, required = false, default = nil) if valid_621220 != nil: - section.add "X-Amz-Date", valid_621220 - var valid_621221 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621220 + var valid_621221 = header.getOrDefault("X-Amz-Content-Sha256") valid_621221 = validateParameter(valid_621221, JString, required = false, default = nil) if valid_621221 != nil: - section.add "X-Amz-Credential", valid_621221 - var valid_621222 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621221 + var valid_621222 = header.getOrDefault("X-Amz-Date") valid_621222 = validateParameter(valid_621222, JString, required = false, default = nil) if valid_621222 != nil: - section.add "X-Amz-Security-Token", valid_621222 - var valid_621223 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621222 + var valid_621223 = header.getOrDefault("X-Amz-Credential") valid_621223 = validateParameter(valid_621223, JString, required = false, default = nil) if valid_621223 != nil: - section.add "X-Amz-Algorithm", valid_621223 - var valid_621224 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621223 + var valid_621224 = header.getOrDefault("X-Amz-Security-Token") valid_621224 = validateParameter(valid_621224, JString, required = false, default = nil) if valid_621224 != nil: - section.add "X-Amz-SignedHeaders", valid_621224 + section.add "X-Amz-Security-Token", valid_621224 + var valid_621225 = header.getOrDefault("X-Amz-Algorithm") + valid_621225 = validateParameter(valid_621225, JString, required = false, + default = nil) + if valid_621225 != nil: + section.add "X-Amz-Algorithm", valid_621225 + var valid_621226 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621226 = validateParameter(valid_621226, JString, required = false, + default = nil) + if valid_621226 != nil: + section.add "X-Amz-SignedHeaders", valid_621226 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621225: Call_GetDescribeVpcEndpointConnectionNotifications_621208; +proc call*(call_621227: Call_GetDescribeVpcEndpointConnectionNotifications_621210; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the connection notifications for VPC endpoints and VPC endpoint services. ## - let valid = call_621225.validator(path, query, header, formData, body) - let scheme = call_621225.pickScheme + let valid = call_621227.validator(path, query, header, formData, body) + let scheme = call_621227.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621225.url(scheme.get, call_621225.host, call_621225.base, - call_621225.route, valid.getOrDefault("path"), + let url = call_621227.url(scheme.get, call_621227.host, call_621227.base, + call_621227.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621225, url, valid) + result = atozHook(call_621227, url, valid) -proc call*(call_621226: Call_GetDescribeVpcEndpointConnectionNotifications_621208; +proc call*(call_621228: Call_GetDescribeVpcEndpointConnectionNotifications_621210; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeVpcEndpointConnectionNotifications"; @@ -83391,28 +83418,28 @@ proc call*(call_621226: Call_GetDescribeVpcEndpointConnectionNotifications_62120 ## ConnectionNotificationId: string ## : The ID of the notification. ## Version: string (required) - var query_621227 = newJObject() - add(query_621227, "MaxResults", newJInt(MaxResults)) - add(query_621227, "DryRun", newJBool(DryRun)) - add(query_621227, "NextToken", newJString(NextToken)) + var query_621229 = newJObject() + add(query_621229, "MaxResults", newJInt(MaxResults)) + add(query_621229, "DryRun", newJBool(DryRun)) + add(query_621229, "NextToken", newJString(NextToken)) if Filter != nil: - query_621227.add "Filter", Filter - add(query_621227, "Action", newJString(Action)) - add(query_621227, "ConnectionNotificationId", + query_621229.add "Filter", Filter + add(query_621229, "Action", newJString(Action)) + add(query_621229, "ConnectionNotificationId", newJString(ConnectionNotificationId)) - add(query_621227, "Version", newJString(Version)) - result = call_621226.call(nil, query_621227, nil, nil, nil) + add(query_621229, "Version", newJString(Version)) + result = call_621228.call(nil, query_621229, nil, nil, nil) -var getDescribeVpcEndpointConnectionNotifications* = Call_GetDescribeVpcEndpointConnectionNotifications_621208( +var getDescribeVpcEndpointConnectionNotifications* = Call_GetDescribeVpcEndpointConnectionNotifications_621210( name: "getDescribeVpcEndpointConnectionNotifications", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeVpcEndpointConnectionNotifications", - validator: validate_GetDescribeVpcEndpointConnectionNotifications_621209, - base: "/", url: url_GetDescribeVpcEndpointConnectionNotifications_621210, + validator: validate_GetDescribeVpcEndpointConnectionNotifications_621211, + base: "/", url: url_GetDescribeVpcEndpointConnectionNotifications_621212, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeVpcEndpointConnections_621268 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeVpcEndpointConnections_621270(protocol: Scheme; host: string; + Call_PostDescribeVpcEndpointConnections_621270 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeVpcEndpointConnections_621272(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -83422,7 +83449,7 @@ proc url_PostDescribeVpcEndpointConnections_621270(protocol: Scheme; host: strin else: result.path = base & route -proc validate_PostDescribeVpcEndpointConnections_621269(path: JsonNode; +proc validate_PostDescribeVpcEndpointConnections_621271(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the VPC endpoint connections to your VPC endpoint services, including any endpoints that are pending your acceptance. ## @@ -83434,16 +83461,16 @@ proc validate_PostDescribeVpcEndpointConnections_621269(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621271 = query.getOrDefault("Action") - valid_621271 = validateParameter(valid_621271, JString, required = true, default = newJString( + var valid_621273 = query.getOrDefault("Action") + valid_621273 = validateParameter(valid_621273, JString, required = true, default = newJString( "DescribeVpcEndpointConnections")) - if valid_621271 != nil: - section.add "Action", valid_621271 - var valid_621272 = query.getOrDefault("Version") - valid_621272 = validateParameter(valid_621272, JString, required = true, + if valid_621273 != nil: + section.add "Action", valid_621273 + var valid_621274 = query.getOrDefault("Version") + valid_621274 = validateParameter(valid_621274, JString, required = true, default = newJString("2016-11-15")) - if valid_621272 != nil: - section.add "Version", valid_621272 + if valid_621274 != nil: + section.add "Version", valid_621274 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -83454,41 +83481,41 @@ proc validate_PostDescribeVpcEndpointConnections_621269(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621273 = header.getOrDefault("X-Amz-Signature") - valid_621273 = validateParameter(valid_621273, JString, required = false, - default = nil) - if valid_621273 != nil: - section.add "X-Amz-Signature", valid_621273 - var valid_621274 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621274 = validateParameter(valid_621274, JString, required = false, - default = nil) - if valid_621274 != nil: - section.add "X-Amz-Content-Sha256", valid_621274 - var valid_621275 = header.getOrDefault("X-Amz-Date") + var valid_621275 = header.getOrDefault("X-Amz-Signature") valid_621275 = validateParameter(valid_621275, JString, required = false, default = nil) if valid_621275 != nil: - section.add "X-Amz-Date", valid_621275 - var valid_621276 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621275 + var valid_621276 = header.getOrDefault("X-Amz-Content-Sha256") valid_621276 = validateParameter(valid_621276, JString, required = false, default = nil) if valid_621276 != nil: - section.add "X-Amz-Credential", valid_621276 - var valid_621277 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621276 + var valid_621277 = header.getOrDefault("X-Amz-Date") valid_621277 = validateParameter(valid_621277, JString, required = false, default = nil) if valid_621277 != nil: - section.add "X-Amz-Security-Token", valid_621277 - var valid_621278 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621277 + var valid_621278 = header.getOrDefault("X-Amz-Credential") valid_621278 = validateParameter(valid_621278, JString, required = false, default = nil) if valid_621278 != nil: - section.add "X-Amz-Algorithm", valid_621278 - var valid_621279 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621278 + var valid_621279 = header.getOrDefault("X-Amz-Security-Token") valid_621279 = validateParameter(valid_621279, JString, required = false, default = nil) if valid_621279 != nil: - section.add "X-Amz-SignedHeaders", valid_621279 + section.add "X-Amz-Security-Token", valid_621279 + var valid_621280 = header.getOrDefault("X-Amz-Algorithm") + valid_621280 = validateParameter(valid_621280, JString, required = false, + default = nil) + if valid_621280 != nil: + section.add "X-Amz-Algorithm", valid_621280 + var valid_621281 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621281 = validateParameter(valid_621281, JString, required = false, + default = nil) + if valid_621281 != nil: + section.add "X-Amz-SignedHeaders", valid_621281 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -83500,43 +83527,43 @@ proc validate_PostDescribeVpcEndpointConnections_621269(path: JsonNode; ## Filter: JArray ## :

    One or more filters.

    section = newJObject() - var valid_621280 = formData.getOrDefault("NextToken") - valid_621280 = validateParameter(valid_621280, JString, required = false, + var valid_621282 = formData.getOrDefault("NextToken") + valid_621282 = validateParameter(valid_621282, JString, required = false, default = nil) - if valid_621280 != nil: - section.add "NextToken", valid_621280 - var valid_621281 = formData.getOrDefault("DryRun") - valid_621281 = validateParameter(valid_621281, JBool, required = false, default = nil) - if valid_621281 != nil: - section.add "DryRun", valid_621281 - var valid_621282 = formData.getOrDefault("MaxResults") - valid_621282 = validateParameter(valid_621282, JInt, required = false, default = nil) if valid_621282 != nil: - section.add "MaxResults", valid_621282 - var valid_621283 = formData.getOrDefault("Filter") - valid_621283 = validateParameter(valid_621283, JArray, required = false, - default = nil) + section.add "NextToken", valid_621282 + var valid_621283 = formData.getOrDefault("DryRun") + valid_621283 = validateParameter(valid_621283, JBool, required = false, default = nil) if valid_621283 != nil: - section.add "Filter", valid_621283 + section.add "DryRun", valid_621283 + var valid_621284 = formData.getOrDefault("MaxResults") + valid_621284 = validateParameter(valid_621284, JInt, required = false, default = nil) + if valid_621284 != nil: + section.add "MaxResults", valid_621284 + var valid_621285 = formData.getOrDefault("Filter") + valid_621285 = validateParameter(valid_621285, JArray, required = false, + default = nil) + if valid_621285 != nil: + section.add "Filter", valid_621285 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621284: Call_PostDescribeVpcEndpointConnections_621268; +proc call*(call_621286: Call_PostDescribeVpcEndpointConnections_621270; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the VPC endpoint connections to your VPC endpoint services, including any endpoints that are pending your acceptance. ## - let valid = call_621284.validator(path, query, header, formData, body) - let scheme = call_621284.pickScheme + let valid = call_621286.validator(path, query, header, formData, body) + let scheme = call_621286.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621284.url(scheme.get, call_621284.host, call_621284.base, - call_621284.route, valid.getOrDefault("path"), + let url = call_621286.url(scheme.get, call_621286.host, call_621286.base, + call_621286.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621284, url, valid) + result = atozHook(call_621286, url, valid) -proc call*(call_621285: Call_PostDescribeVpcEndpointConnections_621268; +proc call*(call_621287: Call_PostDescribeVpcEndpointConnections_621270; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeVpcEndpointConnections"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -83552,26 +83579,26 @@ proc call*(call_621285: Call_PostDescribeVpcEndpointConnections_621268; ## : The maximum number of results to return for the request in a single page. The remaining results of the initial request can be seen by sending another request with the returned NextToken value. This value can be between 5 and 1,000; if MaxResults is given a value larger than 1,000, only 1,000 results are returned. ## Filter: JArray ## :

    One or more filters.

    - var query_621286 = newJObject() - var formData_621287 = newJObject() - add(formData_621287, "NextToken", newJString(NextToken)) - add(formData_621287, "DryRun", newJBool(DryRun)) - add(query_621286, "Action", newJString(Action)) - add(query_621286, "Version", newJString(Version)) - add(formData_621287, "MaxResults", newJInt(MaxResults)) + var query_621288 = newJObject() + var formData_621289 = newJObject() + add(formData_621289, "NextToken", newJString(NextToken)) + add(formData_621289, "DryRun", newJBool(DryRun)) + add(query_621288, "Action", newJString(Action)) + add(query_621288, "Version", newJString(Version)) + add(formData_621289, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_621287.add "Filter", Filter - result = call_621285.call(nil, query_621286, nil, formData_621287, nil) + formData_621289.add "Filter", Filter + result = call_621287.call(nil, query_621288, nil, formData_621289, nil) -var postDescribeVpcEndpointConnections* = Call_PostDescribeVpcEndpointConnections_621268( +var postDescribeVpcEndpointConnections* = Call_PostDescribeVpcEndpointConnections_621270( name: "postDescribeVpcEndpointConnections", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeVpcEndpointConnections", - validator: validate_PostDescribeVpcEndpointConnections_621269, base: "/", - url: url_PostDescribeVpcEndpointConnections_621270, + validator: validate_PostDescribeVpcEndpointConnections_621271, base: "/", + url: url_PostDescribeVpcEndpointConnections_621272, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeVpcEndpointConnections_621249 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeVpcEndpointConnections_621251(protocol: Scheme; host: string; + Call_GetDescribeVpcEndpointConnections_621251 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeVpcEndpointConnections_621253(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -83581,7 +83608,7 @@ proc url_GetDescribeVpcEndpointConnections_621251(protocol: Scheme; host: string else: result.path = base & route -proc validate_GetDescribeVpcEndpointConnections_621250(path: JsonNode; +proc validate_GetDescribeVpcEndpointConnections_621252(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the VPC endpoint connections to your VPC endpoint services, including any endpoints that are pending your acceptance. ## @@ -83601,34 +83628,34 @@ proc validate_GetDescribeVpcEndpointConnections_621250(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621252 = query.getOrDefault("MaxResults") - valid_621252 = validateParameter(valid_621252, JInt, required = false, default = nil) - if valid_621252 != nil: - section.add "MaxResults", valid_621252 - var valid_621253 = query.getOrDefault("DryRun") - valid_621253 = validateParameter(valid_621253, JBool, required = false, default = nil) - if valid_621253 != nil: - section.add "DryRun", valid_621253 - var valid_621254 = query.getOrDefault("NextToken") - valid_621254 = validateParameter(valid_621254, JString, required = false, - default = nil) + var valid_621254 = query.getOrDefault("MaxResults") + valid_621254 = validateParameter(valid_621254, JInt, required = false, default = nil) if valid_621254 != nil: - section.add "NextToken", valid_621254 - var valid_621255 = query.getOrDefault("Filter") - valid_621255 = validateParameter(valid_621255, JArray, required = false, - default = nil) + section.add "MaxResults", valid_621254 + var valid_621255 = query.getOrDefault("DryRun") + valid_621255 = validateParameter(valid_621255, JBool, required = false, default = nil) if valid_621255 != nil: - section.add "Filter", valid_621255 - var valid_621256 = query.getOrDefault("Action") - valid_621256 = validateParameter(valid_621256, JString, required = true, default = newJString( - "DescribeVpcEndpointConnections")) + section.add "DryRun", valid_621255 + var valid_621256 = query.getOrDefault("NextToken") + valid_621256 = validateParameter(valid_621256, JString, required = false, + default = nil) if valid_621256 != nil: - section.add "Action", valid_621256 - var valid_621257 = query.getOrDefault("Version") - valid_621257 = validateParameter(valid_621257, JString, required = true, - default = newJString("2016-11-15")) + section.add "NextToken", valid_621256 + var valid_621257 = query.getOrDefault("Filter") + valid_621257 = validateParameter(valid_621257, JArray, required = false, + default = nil) if valid_621257 != nil: - section.add "Version", valid_621257 + section.add "Filter", valid_621257 + var valid_621258 = query.getOrDefault("Action") + valid_621258 = validateParameter(valid_621258, JString, required = true, default = newJString( + "DescribeVpcEndpointConnections")) + if valid_621258 != nil: + section.add "Action", valid_621258 + var valid_621259 = query.getOrDefault("Version") + valid_621259 = validateParameter(valid_621259, JString, required = true, + default = newJString("2016-11-15")) + if valid_621259 != nil: + section.add "Version", valid_621259 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -83639,62 +83666,62 @@ proc validate_GetDescribeVpcEndpointConnections_621250(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621258 = header.getOrDefault("X-Amz-Signature") - valid_621258 = validateParameter(valid_621258, JString, required = false, - default = nil) - if valid_621258 != nil: - section.add "X-Amz-Signature", valid_621258 - var valid_621259 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621259 = validateParameter(valid_621259, JString, required = false, - default = nil) - if valid_621259 != nil: - section.add "X-Amz-Content-Sha256", valid_621259 - var valid_621260 = header.getOrDefault("X-Amz-Date") + var valid_621260 = header.getOrDefault("X-Amz-Signature") valid_621260 = validateParameter(valid_621260, JString, required = false, default = nil) if valid_621260 != nil: - section.add "X-Amz-Date", valid_621260 - var valid_621261 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621260 + var valid_621261 = header.getOrDefault("X-Amz-Content-Sha256") valid_621261 = validateParameter(valid_621261, JString, required = false, default = nil) if valid_621261 != nil: - section.add "X-Amz-Credential", valid_621261 - var valid_621262 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621261 + var valid_621262 = header.getOrDefault("X-Amz-Date") valid_621262 = validateParameter(valid_621262, JString, required = false, default = nil) if valid_621262 != nil: - section.add "X-Amz-Security-Token", valid_621262 - var valid_621263 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621262 + var valid_621263 = header.getOrDefault("X-Amz-Credential") valid_621263 = validateParameter(valid_621263, JString, required = false, default = nil) if valid_621263 != nil: - section.add "X-Amz-Algorithm", valid_621263 - var valid_621264 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621263 + var valid_621264 = header.getOrDefault("X-Amz-Security-Token") valid_621264 = validateParameter(valid_621264, JString, required = false, default = nil) if valid_621264 != nil: - section.add "X-Amz-SignedHeaders", valid_621264 + section.add "X-Amz-Security-Token", valid_621264 + var valid_621265 = header.getOrDefault("X-Amz-Algorithm") + valid_621265 = validateParameter(valid_621265, JString, required = false, + default = nil) + if valid_621265 != nil: + section.add "X-Amz-Algorithm", valid_621265 + var valid_621266 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621266 = validateParameter(valid_621266, JString, required = false, + default = nil) + if valid_621266 != nil: + section.add "X-Amz-SignedHeaders", valid_621266 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621265: Call_GetDescribeVpcEndpointConnections_621249; +proc call*(call_621267: Call_GetDescribeVpcEndpointConnections_621251; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the VPC endpoint connections to your VPC endpoint services, including any endpoints that are pending your acceptance. ## - let valid = call_621265.validator(path, query, header, formData, body) - let scheme = call_621265.pickScheme + let valid = call_621267.validator(path, query, header, formData, body) + let scheme = call_621267.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621265.url(scheme.get, call_621265.host, call_621265.base, - call_621265.route, valid.getOrDefault("path"), + let url = call_621267.url(scheme.get, call_621267.host, call_621267.base, + call_621267.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621265, url, valid) + result = atozHook(call_621267, url, valid) -proc call*(call_621266: Call_GetDescribeVpcEndpointConnections_621249; +proc call*(call_621268: Call_GetDescribeVpcEndpointConnections_621251; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeVpcEndpointConnections"; Version: string = "2016-11-15"): Recallable = @@ -83710,25 +83737,25 @@ proc call*(call_621266: Call_GetDescribeVpcEndpointConnections_621249; ## :

    One or more filters.

    ## Action: string (required) ## Version: string (required) - var query_621267 = newJObject() - add(query_621267, "MaxResults", newJInt(MaxResults)) - add(query_621267, "DryRun", newJBool(DryRun)) - add(query_621267, "NextToken", newJString(NextToken)) + var query_621269 = newJObject() + add(query_621269, "MaxResults", newJInt(MaxResults)) + add(query_621269, "DryRun", newJBool(DryRun)) + add(query_621269, "NextToken", newJString(NextToken)) if Filter != nil: - query_621267.add "Filter", Filter - add(query_621267, "Action", newJString(Action)) - add(query_621267, "Version", newJString(Version)) - result = call_621266.call(nil, query_621267, nil, nil, nil) + query_621269.add "Filter", Filter + add(query_621269, "Action", newJString(Action)) + add(query_621269, "Version", newJString(Version)) + result = call_621268.call(nil, query_621269, nil, nil, nil) -var getDescribeVpcEndpointConnections* = Call_GetDescribeVpcEndpointConnections_621249( +var getDescribeVpcEndpointConnections* = Call_GetDescribeVpcEndpointConnections_621251( name: "getDescribeVpcEndpointConnections", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeVpcEndpointConnections", - validator: validate_GetDescribeVpcEndpointConnections_621250, base: "/", - url: url_GetDescribeVpcEndpointConnections_621251, + validator: validate_GetDescribeVpcEndpointConnections_621252, base: "/", + url: url_GetDescribeVpcEndpointConnections_621253, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeVpcEndpointServiceConfigurations_621308 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeVpcEndpointServiceConfigurations_621310(protocol: Scheme; + Call_PostDescribeVpcEndpointServiceConfigurations_621310 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeVpcEndpointServiceConfigurations_621312(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -83738,7 +83765,7 @@ proc url_PostDescribeVpcEndpointServiceConfigurations_621310(protocol: Scheme; else: result.path = base & route -proc validate_PostDescribeVpcEndpointServiceConfigurations_621309(path: JsonNode; +proc validate_PostDescribeVpcEndpointServiceConfigurations_621311(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the VPC endpoint service configurations in your account (your services). ## @@ -83750,16 +83777,16 @@ proc validate_PostDescribeVpcEndpointServiceConfigurations_621309(path: JsonNode ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621311 = query.getOrDefault("Action") - valid_621311 = validateParameter(valid_621311, JString, required = true, default = newJString( + var valid_621313 = query.getOrDefault("Action") + valid_621313 = validateParameter(valid_621313, JString, required = true, default = newJString( "DescribeVpcEndpointServiceConfigurations")) - if valid_621311 != nil: - section.add "Action", valid_621311 - var valid_621312 = query.getOrDefault("Version") - valid_621312 = validateParameter(valid_621312, JString, required = true, + if valid_621313 != nil: + section.add "Action", valid_621313 + var valid_621314 = query.getOrDefault("Version") + valid_621314 = validateParameter(valid_621314, JString, required = true, default = newJString("2016-11-15")) - if valid_621312 != nil: - section.add "Version", valid_621312 + if valid_621314 != nil: + section.add "Version", valid_621314 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -83770,41 +83797,41 @@ proc validate_PostDescribeVpcEndpointServiceConfigurations_621309(path: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621313 = header.getOrDefault("X-Amz-Signature") - valid_621313 = validateParameter(valid_621313, JString, required = false, - default = nil) - if valid_621313 != nil: - section.add "X-Amz-Signature", valid_621313 - var valid_621314 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621314 = validateParameter(valid_621314, JString, required = false, - default = nil) - if valid_621314 != nil: - section.add "X-Amz-Content-Sha256", valid_621314 - var valid_621315 = header.getOrDefault("X-Amz-Date") + var valid_621315 = header.getOrDefault("X-Amz-Signature") valid_621315 = validateParameter(valid_621315, JString, required = false, default = nil) if valid_621315 != nil: - section.add "X-Amz-Date", valid_621315 - var valid_621316 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621315 + var valid_621316 = header.getOrDefault("X-Amz-Content-Sha256") valid_621316 = validateParameter(valid_621316, JString, required = false, default = nil) if valid_621316 != nil: - section.add "X-Amz-Credential", valid_621316 - var valid_621317 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621316 + var valid_621317 = header.getOrDefault("X-Amz-Date") valid_621317 = validateParameter(valid_621317, JString, required = false, default = nil) if valid_621317 != nil: - section.add "X-Amz-Security-Token", valid_621317 - var valid_621318 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621317 + var valid_621318 = header.getOrDefault("X-Amz-Credential") valid_621318 = validateParameter(valid_621318, JString, required = false, default = nil) if valid_621318 != nil: - section.add "X-Amz-Algorithm", valid_621318 - var valid_621319 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621318 + var valid_621319 = header.getOrDefault("X-Amz-Security-Token") valid_621319 = validateParameter(valid_621319, JString, required = false, default = nil) if valid_621319 != nil: - section.add "X-Amz-SignedHeaders", valid_621319 + section.add "X-Amz-Security-Token", valid_621319 + var valid_621320 = header.getOrDefault("X-Amz-Algorithm") + valid_621320 = validateParameter(valid_621320, JString, required = false, + default = nil) + if valid_621320 != nil: + section.add "X-Amz-Algorithm", valid_621320 + var valid_621321 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621321 = validateParameter(valid_621321, JString, required = false, + default = nil) + if valid_621321 != nil: + section.add "X-Amz-SignedHeaders", valid_621321 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -83818,48 +83845,48 @@ proc validate_PostDescribeVpcEndpointServiceConfigurations_621309(path: JsonNode ## Filter: JArray ## :

    One or more filters.

    section = newJObject() - var valid_621320 = formData.getOrDefault("NextToken") - valid_621320 = validateParameter(valid_621320, JString, required = false, - default = nil) - if valid_621320 != nil: - section.add "NextToken", valid_621320 - var valid_621321 = formData.getOrDefault("ServiceId") - valid_621321 = validateParameter(valid_621321, JArray, required = false, + var valid_621322 = formData.getOrDefault("NextToken") + valid_621322 = validateParameter(valid_621322, JString, required = false, default = nil) - if valid_621321 != nil: - section.add "ServiceId", valid_621321 - var valid_621322 = formData.getOrDefault("DryRun") - valid_621322 = validateParameter(valid_621322, JBool, required = false, default = nil) if valid_621322 != nil: - section.add "DryRun", valid_621322 - var valid_621323 = formData.getOrDefault("MaxResults") - valid_621323 = validateParameter(valid_621323, JInt, required = false, default = nil) - if valid_621323 != nil: - section.add "MaxResults", valid_621323 - var valid_621324 = formData.getOrDefault("Filter") - valid_621324 = validateParameter(valid_621324, JArray, required = false, + section.add "NextToken", valid_621322 + var valid_621323 = formData.getOrDefault("ServiceId") + valid_621323 = validateParameter(valid_621323, JArray, required = false, default = nil) + if valid_621323 != nil: + section.add "ServiceId", valid_621323 + var valid_621324 = formData.getOrDefault("DryRun") + valid_621324 = validateParameter(valid_621324, JBool, required = false, default = nil) if valid_621324 != nil: - section.add "Filter", valid_621324 + section.add "DryRun", valid_621324 + var valid_621325 = formData.getOrDefault("MaxResults") + valid_621325 = validateParameter(valid_621325, JInt, required = false, default = nil) + if valid_621325 != nil: + section.add "MaxResults", valid_621325 + var valid_621326 = formData.getOrDefault("Filter") + valid_621326 = validateParameter(valid_621326, JArray, required = false, + default = nil) + if valid_621326 != nil: + section.add "Filter", valid_621326 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621325: Call_PostDescribeVpcEndpointServiceConfigurations_621308; +proc call*(call_621327: Call_PostDescribeVpcEndpointServiceConfigurations_621310; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the VPC endpoint service configurations in your account (your services). ## - let valid = call_621325.validator(path, query, header, formData, body) - let scheme = call_621325.pickScheme + let valid = call_621327.validator(path, query, header, formData, body) + let scheme = call_621327.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621325.url(scheme.get, call_621325.host, call_621325.base, - call_621325.route, valid.getOrDefault("path"), + let url = call_621327.url(scheme.get, call_621327.host, call_621327.base, + call_621327.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621325, url, valid) + result = atozHook(call_621327, url, valid) -proc call*(call_621326: Call_PostDescribeVpcEndpointServiceConfigurations_621308; +proc call*(call_621328: Call_PostDescribeVpcEndpointServiceConfigurations_621310; NextToken: string = ""; ServiceId: JsonNode = nil; DryRun: bool = false; Action: string = "DescribeVpcEndpointServiceConfigurations"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -83877,29 +83904,29 @@ proc call*(call_621326: Call_PostDescribeVpcEndpointServiceConfigurations_621308 ## : The maximum number of results to return for the request in a single page. The remaining results of the initial request can be seen by sending another request with the returned NextToken value. This value can be between 5 and 1,000; if MaxResults is given a value larger than 1,000, only 1,000 results are returned. ## Filter: JArray ## :

    One or more filters.

    - var query_621327 = newJObject() - var formData_621328 = newJObject() - add(formData_621328, "NextToken", newJString(NextToken)) + var query_621329 = newJObject() + var formData_621330 = newJObject() + add(formData_621330, "NextToken", newJString(NextToken)) if ServiceId != nil: - formData_621328.add "ServiceId", ServiceId - add(formData_621328, "DryRun", newJBool(DryRun)) - add(query_621327, "Action", newJString(Action)) - add(query_621327, "Version", newJString(Version)) - add(formData_621328, "MaxResults", newJInt(MaxResults)) + formData_621330.add "ServiceId", ServiceId + add(formData_621330, "DryRun", newJBool(DryRun)) + add(query_621329, "Action", newJString(Action)) + add(query_621329, "Version", newJString(Version)) + add(formData_621330, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_621328.add "Filter", Filter - result = call_621326.call(nil, query_621327, nil, formData_621328, nil) + formData_621330.add "Filter", Filter + result = call_621328.call(nil, query_621329, nil, formData_621330, nil) -var postDescribeVpcEndpointServiceConfigurations* = Call_PostDescribeVpcEndpointServiceConfigurations_621308( +var postDescribeVpcEndpointServiceConfigurations* = Call_PostDescribeVpcEndpointServiceConfigurations_621310( name: "postDescribeVpcEndpointServiceConfigurations", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeVpcEndpointServiceConfigurations", - validator: validate_PostDescribeVpcEndpointServiceConfigurations_621309, - base: "/", url: url_PostDescribeVpcEndpointServiceConfigurations_621310, + validator: validate_PostDescribeVpcEndpointServiceConfigurations_621311, + base: "/", url: url_PostDescribeVpcEndpointServiceConfigurations_621312, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeVpcEndpointServiceConfigurations_621288 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeVpcEndpointServiceConfigurations_621290(protocol: Scheme; + Call_GetDescribeVpcEndpointServiceConfigurations_621290 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeVpcEndpointServiceConfigurations_621292(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -83909,7 +83936,7 @@ proc url_GetDescribeVpcEndpointServiceConfigurations_621290(protocol: Scheme; else: result.path = base & route -proc validate_GetDescribeVpcEndpointServiceConfigurations_621289(path: JsonNode; +proc validate_GetDescribeVpcEndpointServiceConfigurations_621291(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the VPC endpoint service configurations in your account (your services). ## @@ -83931,39 +83958,39 @@ proc validate_GetDescribeVpcEndpointServiceConfigurations_621289(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621291 = query.getOrDefault("MaxResults") - valid_621291 = validateParameter(valid_621291, JInt, required = false, default = nil) - if valid_621291 != nil: - section.add "MaxResults", valid_621291 - var valid_621292 = query.getOrDefault("DryRun") - valid_621292 = validateParameter(valid_621292, JBool, required = false, default = nil) - if valid_621292 != nil: - section.add "DryRun", valid_621292 - var valid_621293 = query.getOrDefault("NextToken") - valid_621293 = validateParameter(valid_621293, JString, required = false, - default = nil) + var valid_621293 = query.getOrDefault("MaxResults") + valid_621293 = validateParameter(valid_621293, JInt, required = false, default = nil) if valid_621293 != nil: - section.add "NextToken", valid_621293 - var valid_621294 = query.getOrDefault("Filter") - valid_621294 = validateParameter(valid_621294, JArray, required = false, - default = nil) + section.add "MaxResults", valid_621293 + var valid_621294 = query.getOrDefault("DryRun") + valid_621294 = validateParameter(valid_621294, JBool, required = false, default = nil) if valid_621294 != nil: - section.add "Filter", valid_621294 - var valid_621295 = query.getOrDefault("ServiceId") - valid_621295 = validateParameter(valid_621295, JArray, required = false, + section.add "DryRun", valid_621294 + var valid_621295 = query.getOrDefault("NextToken") + valid_621295 = validateParameter(valid_621295, JString, required = false, default = nil) if valid_621295 != nil: - section.add "ServiceId", valid_621295 - var valid_621296 = query.getOrDefault("Action") - valid_621296 = validateParameter(valid_621296, JString, required = true, default = newJString( - "DescribeVpcEndpointServiceConfigurations")) + section.add "NextToken", valid_621295 + var valid_621296 = query.getOrDefault("Filter") + valid_621296 = validateParameter(valid_621296, JArray, required = false, + default = nil) if valid_621296 != nil: - section.add "Action", valid_621296 - var valid_621297 = query.getOrDefault("Version") - valid_621297 = validateParameter(valid_621297, JString, required = true, - default = newJString("2016-11-15")) + section.add "Filter", valid_621296 + var valid_621297 = query.getOrDefault("ServiceId") + valid_621297 = validateParameter(valid_621297, JArray, required = false, + default = nil) if valid_621297 != nil: - section.add "Version", valid_621297 + section.add "ServiceId", valid_621297 + var valid_621298 = query.getOrDefault("Action") + valid_621298 = validateParameter(valid_621298, JString, required = true, default = newJString( + "DescribeVpcEndpointServiceConfigurations")) + if valid_621298 != nil: + section.add "Action", valid_621298 + var valid_621299 = query.getOrDefault("Version") + valid_621299 = validateParameter(valid_621299, JString, required = true, + default = newJString("2016-11-15")) + if valid_621299 != nil: + section.add "Version", valid_621299 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -83974,62 +84001,62 @@ proc validate_GetDescribeVpcEndpointServiceConfigurations_621289(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621298 = header.getOrDefault("X-Amz-Signature") - valid_621298 = validateParameter(valid_621298, JString, required = false, - default = nil) - if valid_621298 != nil: - section.add "X-Amz-Signature", valid_621298 - var valid_621299 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621299 = validateParameter(valid_621299, JString, required = false, - default = nil) - if valid_621299 != nil: - section.add "X-Amz-Content-Sha256", valid_621299 - var valid_621300 = header.getOrDefault("X-Amz-Date") + var valid_621300 = header.getOrDefault("X-Amz-Signature") valid_621300 = validateParameter(valid_621300, JString, required = false, default = nil) if valid_621300 != nil: - section.add "X-Amz-Date", valid_621300 - var valid_621301 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621300 + var valid_621301 = header.getOrDefault("X-Amz-Content-Sha256") valid_621301 = validateParameter(valid_621301, JString, required = false, default = nil) if valid_621301 != nil: - section.add "X-Amz-Credential", valid_621301 - var valid_621302 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621301 + var valid_621302 = header.getOrDefault("X-Amz-Date") valid_621302 = validateParameter(valid_621302, JString, required = false, default = nil) if valid_621302 != nil: - section.add "X-Amz-Security-Token", valid_621302 - var valid_621303 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621302 + var valid_621303 = header.getOrDefault("X-Amz-Credential") valid_621303 = validateParameter(valid_621303, JString, required = false, default = nil) if valid_621303 != nil: - section.add "X-Amz-Algorithm", valid_621303 - var valid_621304 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621303 + var valid_621304 = header.getOrDefault("X-Amz-Security-Token") valid_621304 = validateParameter(valid_621304, JString, required = false, default = nil) if valid_621304 != nil: - section.add "X-Amz-SignedHeaders", valid_621304 + section.add "X-Amz-Security-Token", valid_621304 + var valid_621305 = header.getOrDefault("X-Amz-Algorithm") + valid_621305 = validateParameter(valid_621305, JString, required = false, + default = nil) + if valid_621305 != nil: + section.add "X-Amz-Algorithm", valid_621305 + var valid_621306 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621306 = validateParameter(valid_621306, JString, required = false, + default = nil) + if valid_621306 != nil: + section.add "X-Amz-SignedHeaders", valid_621306 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621305: Call_GetDescribeVpcEndpointServiceConfigurations_621288; +proc call*(call_621307: Call_GetDescribeVpcEndpointServiceConfigurations_621290; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the VPC endpoint service configurations in your account (your services). ## - let valid = call_621305.validator(path, query, header, formData, body) - let scheme = call_621305.pickScheme + let valid = call_621307.validator(path, query, header, formData, body) + let scheme = call_621307.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621305.url(scheme.get, call_621305.host, call_621305.base, - call_621305.route, valid.getOrDefault("path"), + let url = call_621307.url(scheme.get, call_621307.host, call_621307.base, + call_621307.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621305, url, valid) + result = atozHook(call_621307, url, valid) -proc call*(call_621306: Call_GetDescribeVpcEndpointServiceConfigurations_621288; +proc call*(call_621308: Call_GetDescribeVpcEndpointServiceConfigurations_621290; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; ServiceId: JsonNode = nil; Action: string = "DescribeVpcEndpointServiceConfigurations"; @@ -84048,28 +84075,28 @@ proc call*(call_621306: Call_GetDescribeVpcEndpointServiceConfigurations_621288; ## : The IDs of one or more services. ## Action: string (required) ## Version: string (required) - var query_621307 = newJObject() - add(query_621307, "MaxResults", newJInt(MaxResults)) - add(query_621307, "DryRun", newJBool(DryRun)) - add(query_621307, "NextToken", newJString(NextToken)) + var query_621309 = newJObject() + add(query_621309, "MaxResults", newJInt(MaxResults)) + add(query_621309, "DryRun", newJBool(DryRun)) + add(query_621309, "NextToken", newJString(NextToken)) if Filter != nil: - query_621307.add "Filter", Filter + query_621309.add "Filter", Filter if ServiceId != nil: - query_621307.add "ServiceId", ServiceId - add(query_621307, "Action", newJString(Action)) - add(query_621307, "Version", newJString(Version)) - result = call_621306.call(nil, query_621307, nil, nil, nil) + query_621309.add "ServiceId", ServiceId + add(query_621309, "Action", newJString(Action)) + add(query_621309, "Version", newJString(Version)) + result = call_621308.call(nil, query_621309, nil, nil, nil) -var getDescribeVpcEndpointServiceConfigurations* = Call_GetDescribeVpcEndpointServiceConfigurations_621288( +var getDescribeVpcEndpointServiceConfigurations* = Call_GetDescribeVpcEndpointServiceConfigurations_621290( name: "getDescribeVpcEndpointServiceConfigurations", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeVpcEndpointServiceConfigurations", - validator: validate_GetDescribeVpcEndpointServiceConfigurations_621289, - base: "/", url: url_GetDescribeVpcEndpointServiceConfigurations_621290, + validator: validate_GetDescribeVpcEndpointServiceConfigurations_621291, + base: "/", url: url_GetDescribeVpcEndpointServiceConfigurations_621292, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeVpcEndpointServicePermissions_621349 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeVpcEndpointServicePermissions_621351(protocol: Scheme; + Call_PostDescribeVpcEndpointServicePermissions_621351 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeVpcEndpointServicePermissions_621353(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -84079,7 +84106,7 @@ proc url_PostDescribeVpcEndpointServicePermissions_621351(protocol: Scheme; else: result.path = base & route -proc validate_PostDescribeVpcEndpointServicePermissions_621350(path: JsonNode; +proc validate_PostDescribeVpcEndpointServicePermissions_621352(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the principals (service consumers) that are permitted to discover your VPC endpoint service. ## @@ -84091,16 +84118,16 @@ proc validate_PostDescribeVpcEndpointServicePermissions_621350(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621352 = query.getOrDefault("Action") - valid_621352 = validateParameter(valid_621352, JString, required = true, default = newJString( + var valid_621354 = query.getOrDefault("Action") + valid_621354 = validateParameter(valid_621354, JString, required = true, default = newJString( "DescribeVpcEndpointServicePermissions")) - if valid_621352 != nil: - section.add "Action", valid_621352 - var valid_621353 = query.getOrDefault("Version") - valid_621353 = validateParameter(valid_621353, JString, required = true, + if valid_621354 != nil: + section.add "Action", valid_621354 + var valid_621355 = query.getOrDefault("Version") + valid_621355 = validateParameter(valid_621355, JString, required = true, default = newJString("2016-11-15")) - if valid_621353 != nil: - section.add "Version", valid_621353 + if valid_621355 != nil: + section.add "Version", valid_621355 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -84111,41 +84138,41 @@ proc validate_PostDescribeVpcEndpointServicePermissions_621350(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621354 = header.getOrDefault("X-Amz-Signature") - valid_621354 = validateParameter(valid_621354, JString, required = false, - default = nil) - if valid_621354 != nil: - section.add "X-Amz-Signature", valid_621354 - var valid_621355 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621355 = validateParameter(valid_621355, JString, required = false, - default = nil) - if valid_621355 != nil: - section.add "X-Amz-Content-Sha256", valid_621355 - var valid_621356 = header.getOrDefault("X-Amz-Date") + var valid_621356 = header.getOrDefault("X-Amz-Signature") valid_621356 = validateParameter(valid_621356, JString, required = false, default = nil) if valid_621356 != nil: - section.add "X-Amz-Date", valid_621356 - var valid_621357 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621356 + var valid_621357 = header.getOrDefault("X-Amz-Content-Sha256") valid_621357 = validateParameter(valid_621357, JString, required = false, default = nil) if valid_621357 != nil: - section.add "X-Amz-Credential", valid_621357 - var valid_621358 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621357 + var valid_621358 = header.getOrDefault("X-Amz-Date") valid_621358 = validateParameter(valid_621358, JString, required = false, default = nil) if valid_621358 != nil: - section.add "X-Amz-Security-Token", valid_621358 - var valid_621359 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621358 + var valid_621359 = header.getOrDefault("X-Amz-Credential") valid_621359 = validateParameter(valid_621359, JString, required = false, default = nil) if valid_621359 != nil: - section.add "X-Amz-Algorithm", valid_621359 - var valid_621360 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621359 + var valid_621360 = header.getOrDefault("X-Amz-Security-Token") valid_621360 = validateParameter(valid_621360, JString, required = false, default = nil) if valid_621360 != nil: - section.add "X-Amz-SignedHeaders", valid_621360 + section.add "X-Amz-Security-Token", valid_621360 + var valid_621361 = header.getOrDefault("X-Amz-Algorithm") + valid_621361 = validateParameter(valid_621361, JString, required = false, + default = nil) + if valid_621361 != nil: + section.add "X-Amz-Algorithm", valid_621361 + var valid_621362 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621362 = validateParameter(valid_621362, JString, required = false, + default = nil) + if valid_621362 != nil: + section.add "X-Amz-SignedHeaders", valid_621362 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -84159,50 +84186,50 @@ proc validate_PostDescribeVpcEndpointServicePermissions_621350(path: JsonNode; ## Filter: JArray ## :

    One or more filters.

    section = newJObject() - var valid_621361 = formData.getOrDefault("NextToken") - valid_621361 = validateParameter(valid_621361, JString, required = false, + var valid_621363 = formData.getOrDefault("NextToken") + valid_621363 = validateParameter(valid_621363, JString, required = false, default = nil) - if valid_621361 != nil: - section.add "NextToken", valid_621361 + if valid_621363 != nil: + section.add "NextToken", valid_621363 assert formData != nil, "formData argument is necessary due to required `ServiceId` field" - var valid_621362 = formData.getOrDefault("ServiceId") - valid_621362 = validateParameter(valid_621362, JString, required = true, + var valid_621364 = formData.getOrDefault("ServiceId") + valid_621364 = validateParameter(valid_621364, JString, required = true, default = nil) - if valid_621362 != nil: - section.add "ServiceId", valid_621362 - var valid_621363 = formData.getOrDefault("DryRun") - valid_621363 = validateParameter(valid_621363, JBool, required = false, default = nil) - if valid_621363 != nil: - section.add "DryRun", valid_621363 - var valid_621364 = formData.getOrDefault("MaxResults") - valid_621364 = validateParameter(valid_621364, JInt, required = false, default = nil) if valid_621364 != nil: - section.add "MaxResults", valid_621364 - var valid_621365 = formData.getOrDefault("Filter") - valid_621365 = validateParameter(valid_621365, JArray, required = false, - default = nil) + section.add "ServiceId", valid_621364 + var valid_621365 = formData.getOrDefault("DryRun") + valid_621365 = validateParameter(valid_621365, JBool, required = false, default = nil) if valid_621365 != nil: - section.add "Filter", valid_621365 + section.add "DryRun", valid_621365 + var valid_621366 = formData.getOrDefault("MaxResults") + valid_621366 = validateParameter(valid_621366, JInt, required = false, default = nil) + if valid_621366 != nil: + section.add "MaxResults", valid_621366 + var valid_621367 = formData.getOrDefault("Filter") + valid_621367 = validateParameter(valid_621367, JArray, required = false, + default = nil) + if valid_621367 != nil: + section.add "Filter", valid_621367 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621366: Call_PostDescribeVpcEndpointServicePermissions_621349; +proc call*(call_621368: Call_PostDescribeVpcEndpointServicePermissions_621351; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the principals (service consumers) that are permitted to discover your VPC endpoint service. ## - let valid = call_621366.validator(path, query, header, formData, body) - let scheme = call_621366.pickScheme + let valid = call_621368.validator(path, query, header, formData, body) + let scheme = call_621368.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621366.url(scheme.get, call_621366.host, call_621366.base, - call_621366.route, valid.getOrDefault("path"), + let url = call_621368.url(scheme.get, call_621368.host, call_621368.base, + call_621368.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621366, url, valid) + result = atozHook(call_621368, url, valid) -proc call*(call_621367: Call_PostDescribeVpcEndpointServicePermissions_621349; +proc call*(call_621369: Call_PostDescribeVpcEndpointServicePermissions_621351; ServiceId: string; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeVpcEndpointServicePermissions"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -84220,28 +84247,28 @@ proc call*(call_621367: Call_PostDescribeVpcEndpointServicePermissions_621349; ## : The maximum number of results to return for the request in a single page. The remaining results of the initial request can be seen by sending another request with the returned NextToken value. This value can be between 5 and 1,000; if MaxResults is given a value larger than 1,000, only 1,000 results are returned. ## Filter: JArray ## :

    One or more filters.

    - var query_621368 = newJObject() - var formData_621369 = newJObject() - add(formData_621369, "NextToken", newJString(NextToken)) - add(formData_621369, "ServiceId", newJString(ServiceId)) - add(formData_621369, "DryRun", newJBool(DryRun)) - add(query_621368, "Action", newJString(Action)) - add(query_621368, "Version", newJString(Version)) - add(formData_621369, "MaxResults", newJInt(MaxResults)) + var query_621370 = newJObject() + var formData_621371 = newJObject() + add(formData_621371, "NextToken", newJString(NextToken)) + add(formData_621371, "ServiceId", newJString(ServiceId)) + add(formData_621371, "DryRun", newJBool(DryRun)) + add(query_621370, "Action", newJString(Action)) + add(query_621370, "Version", newJString(Version)) + add(formData_621371, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_621369.add "Filter", Filter - result = call_621367.call(nil, query_621368, nil, formData_621369, nil) + formData_621371.add "Filter", Filter + result = call_621369.call(nil, query_621370, nil, formData_621371, nil) -var postDescribeVpcEndpointServicePermissions* = Call_PostDescribeVpcEndpointServicePermissions_621349( +var postDescribeVpcEndpointServicePermissions* = Call_PostDescribeVpcEndpointServicePermissions_621351( name: "postDescribeVpcEndpointServicePermissions", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeVpcEndpointServicePermissions", - validator: validate_PostDescribeVpcEndpointServicePermissions_621350, - base: "/", url: url_PostDescribeVpcEndpointServicePermissions_621351, + validator: validate_PostDescribeVpcEndpointServicePermissions_621352, + base: "/", url: url_PostDescribeVpcEndpointServicePermissions_621353, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeVpcEndpointServicePermissions_621329 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeVpcEndpointServicePermissions_621331(protocol: Scheme; + Call_GetDescribeVpcEndpointServicePermissions_621331 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeVpcEndpointServicePermissions_621333(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -84251,7 +84278,7 @@ proc url_GetDescribeVpcEndpointServicePermissions_621331(protocol: Scheme; else: result.path = base & route -proc validate_GetDescribeVpcEndpointServicePermissions_621330(path: JsonNode; +proc validate_GetDescribeVpcEndpointServicePermissions_621332(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the principals (service consumers) that are permitted to discover your VPC endpoint service. ## @@ -84273,41 +84300,41 @@ proc validate_GetDescribeVpcEndpointServicePermissions_621330(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621332 = query.getOrDefault("MaxResults") - valid_621332 = validateParameter(valid_621332, JInt, required = false, default = nil) - if valid_621332 != nil: - section.add "MaxResults", valid_621332 - var valid_621333 = query.getOrDefault("DryRun") - valid_621333 = validateParameter(valid_621333, JBool, required = false, default = nil) - if valid_621333 != nil: - section.add "DryRun", valid_621333 - var valid_621334 = query.getOrDefault("NextToken") - valid_621334 = validateParameter(valid_621334, JString, required = false, - default = nil) + var valid_621334 = query.getOrDefault("MaxResults") + valid_621334 = validateParameter(valid_621334, JInt, required = false, default = nil) if valid_621334 != nil: - section.add "NextToken", valid_621334 - var valid_621335 = query.getOrDefault("Filter") - valid_621335 = validateParameter(valid_621335, JArray, required = false, - default = nil) + section.add "MaxResults", valid_621334 + var valid_621335 = query.getOrDefault("DryRun") + valid_621335 = validateParameter(valid_621335, JBool, required = false, default = nil) if valid_621335 != nil: - section.add "Filter", valid_621335 - assert query != nil, - "query argument is necessary due to required `ServiceId` field" - var valid_621336 = query.getOrDefault("ServiceId") - valid_621336 = validateParameter(valid_621336, JString, required = true, + section.add "DryRun", valid_621335 + var valid_621336 = query.getOrDefault("NextToken") + valid_621336 = validateParameter(valid_621336, JString, required = false, default = nil) if valid_621336 != nil: - section.add "ServiceId", valid_621336 - var valid_621337 = query.getOrDefault("Action") - valid_621337 = validateParameter(valid_621337, JString, required = true, default = newJString( - "DescribeVpcEndpointServicePermissions")) + section.add "NextToken", valid_621336 + var valid_621337 = query.getOrDefault("Filter") + valid_621337 = validateParameter(valid_621337, JArray, required = false, + default = nil) if valid_621337 != nil: - section.add "Action", valid_621337 - var valid_621338 = query.getOrDefault("Version") + section.add "Filter", valid_621337 + assert query != nil, + "query argument is necessary due to required `ServiceId` field" + var valid_621338 = query.getOrDefault("ServiceId") valid_621338 = validateParameter(valid_621338, JString, required = true, - default = newJString("2016-11-15")) + default = nil) if valid_621338 != nil: - section.add "Version", valid_621338 + section.add "ServiceId", valid_621338 + var valid_621339 = query.getOrDefault("Action") + valid_621339 = validateParameter(valid_621339, JString, required = true, default = newJString( + "DescribeVpcEndpointServicePermissions")) + if valid_621339 != nil: + section.add "Action", valid_621339 + var valid_621340 = query.getOrDefault("Version") + valid_621340 = validateParameter(valid_621340, JString, required = true, + default = newJString("2016-11-15")) + if valid_621340 != nil: + section.add "Version", valid_621340 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -84318,62 +84345,62 @@ proc validate_GetDescribeVpcEndpointServicePermissions_621330(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621339 = header.getOrDefault("X-Amz-Signature") - valid_621339 = validateParameter(valid_621339, JString, required = false, - default = nil) - if valid_621339 != nil: - section.add "X-Amz-Signature", valid_621339 - var valid_621340 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621340 = validateParameter(valid_621340, JString, required = false, - default = nil) - if valid_621340 != nil: - section.add "X-Amz-Content-Sha256", valid_621340 - var valid_621341 = header.getOrDefault("X-Amz-Date") + var valid_621341 = header.getOrDefault("X-Amz-Signature") valid_621341 = validateParameter(valid_621341, JString, required = false, default = nil) if valid_621341 != nil: - section.add "X-Amz-Date", valid_621341 - var valid_621342 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621341 + var valid_621342 = header.getOrDefault("X-Amz-Content-Sha256") valid_621342 = validateParameter(valid_621342, JString, required = false, default = nil) if valid_621342 != nil: - section.add "X-Amz-Credential", valid_621342 - var valid_621343 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621342 + var valid_621343 = header.getOrDefault("X-Amz-Date") valid_621343 = validateParameter(valid_621343, JString, required = false, default = nil) if valid_621343 != nil: - section.add "X-Amz-Security-Token", valid_621343 - var valid_621344 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621343 + var valid_621344 = header.getOrDefault("X-Amz-Credential") valid_621344 = validateParameter(valid_621344, JString, required = false, default = nil) if valid_621344 != nil: - section.add "X-Amz-Algorithm", valid_621344 - var valid_621345 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621344 + var valid_621345 = header.getOrDefault("X-Amz-Security-Token") valid_621345 = validateParameter(valid_621345, JString, required = false, default = nil) if valid_621345 != nil: - section.add "X-Amz-SignedHeaders", valid_621345 + section.add "X-Amz-Security-Token", valid_621345 + var valid_621346 = header.getOrDefault("X-Amz-Algorithm") + valid_621346 = validateParameter(valid_621346, JString, required = false, + default = nil) + if valid_621346 != nil: + section.add "X-Amz-Algorithm", valid_621346 + var valid_621347 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621347 = validateParameter(valid_621347, JString, required = false, + default = nil) + if valid_621347 != nil: + section.add "X-Amz-SignedHeaders", valid_621347 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621346: Call_GetDescribeVpcEndpointServicePermissions_621329; +proc call*(call_621348: Call_GetDescribeVpcEndpointServicePermissions_621331; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the principals (service consumers) that are permitted to discover your VPC endpoint service. ## - let valid = call_621346.validator(path, query, header, formData, body) - let scheme = call_621346.pickScheme + let valid = call_621348.validator(path, query, header, formData, body) + let scheme = call_621348.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621346.url(scheme.get, call_621346.host, call_621346.base, - call_621346.route, valid.getOrDefault("path"), + let url = call_621348.url(scheme.get, call_621348.host, call_621348.base, + call_621348.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621346, url, valid) + result = atozHook(call_621348, url, valid) -proc call*(call_621347: Call_GetDescribeVpcEndpointServicePermissions_621329; +proc call*(call_621349: Call_GetDescribeVpcEndpointServicePermissions_621331; ServiceId: string; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeVpcEndpointServicePermissions"; @@ -84392,27 +84419,27 @@ proc call*(call_621347: Call_GetDescribeVpcEndpointServicePermissions_621329; ## : The ID of the service. ## Action: string (required) ## Version: string (required) - var query_621348 = newJObject() - add(query_621348, "MaxResults", newJInt(MaxResults)) - add(query_621348, "DryRun", newJBool(DryRun)) - add(query_621348, "NextToken", newJString(NextToken)) + var query_621350 = newJObject() + add(query_621350, "MaxResults", newJInt(MaxResults)) + add(query_621350, "DryRun", newJBool(DryRun)) + add(query_621350, "NextToken", newJString(NextToken)) if Filter != nil: - query_621348.add "Filter", Filter - add(query_621348, "ServiceId", newJString(ServiceId)) - add(query_621348, "Action", newJString(Action)) - add(query_621348, "Version", newJString(Version)) - result = call_621347.call(nil, query_621348, nil, nil, nil) + query_621350.add "Filter", Filter + add(query_621350, "ServiceId", newJString(ServiceId)) + add(query_621350, "Action", newJString(Action)) + add(query_621350, "Version", newJString(Version)) + result = call_621349.call(nil, query_621350, nil, nil, nil) -var getDescribeVpcEndpointServicePermissions* = Call_GetDescribeVpcEndpointServicePermissions_621329( +var getDescribeVpcEndpointServicePermissions* = Call_GetDescribeVpcEndpointServicePermissions_621331( name: "getDescribeVpcEndpointServicePermissions", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeVpcEndpointServicePermissions", - validator: validate_GetDescribeVpcEndpointServicePermissions_621330, - base: "/", url: url_GetDescribeVpcEndpointServicePermissions_621331, + validator: validate_GetDescribeVpcEndpointServicePermissions_621332, + base: "/", url: url_GetDescribeVpcEndpointServicePermissions_621333, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeVpcEndpointServices_621390 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeVpcEndpointServices_621392(protocol: Scheme; host: string; + Call_PostDescribeVpcEndpointServices_621392 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeVpcEndpointServices_621394(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -84422,7 +84449,7 @@ proc url_PostDescribeVpcEndpointServices_621392(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeVpcEndpointServices_621391(path: JsonNode; +proc validate_PostDescribeVpcEndpointServices_621393(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes available services to which you can create a VPC endpoint. ## @@ -84434,16 +84461,16 @@ proc validate_PostDescribeVpcEndpointServices_621391(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621393 = query.getOrDefault("Action") - valid_621393 = validateParameter(valid_621393, JString, required = true, default = newJString( + var valid_621395 = query.getOrDefault("Action") + valid_621395 = validateParameter(valid_621395, JString, required = true, default = newJString( "DescribeVpcEndpointServices")) - if valid_621393 != nil: - section.add "Action", valid_621393 - var valid_621394 = query.getOrDefault("Version") - valid_621394 = validateParameter(valid_621394, JString, required = true, + if valid_621395 != nil: + section.add "Action", valid_621395 + var valid_621396 = query.getOrDefault("Version") + valid_621396 = validateParameter(valid_621396, JString, required = true, default = newJString("2016-11-15")) - if valid_621394 != nil: - section.add "Version", valid_621394 + if valid_621396 != nil: + section.add "Version", valid_621396 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -84454,41 +84481,41 @@ proc validate_PostDescribeVpcEndpointServices_621391(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621395 = header.getOrDefault("X-Amz-Signature") - valid_621395 = validateParameter(valid_621395, JString, required = false, - default = nil) - if valid_621395 != nil: - section.add "X-Amz-Signature", valid_621395 - var valid_621396 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621396 = validateParameter(valid_621396, JString, required = false, - default = nil) - if valid_621396 != nil: - section.add "X-Amz-Content-Sha256", valid_621396 - var valid_621397 = header.getOrDefault("X-Amz-Date") + var valid_621397 = header.getOrDefault("X-Amz-Signature") valid_621397 = validateParameter(valid_621397, JString, required = false, default = nil) if valid_621397 != nil: - section.add "X-Amz-Date", valid_621397 - var valid_621398 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621397 + var valid_621398 = header.getOrDefault("X-Amz-Content-Sha256") valid_621398 = validateParameter(valid_621398, JString, required = false, default = nil) if valid_621398 != nil: - section.add "X-Amz-Credential", valid_621398 - var valid_621399 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621398 + var valid_621399 = header.getOrDefault("X-Amz-Date") valid_621399 = validateParameter(valid_621399, JString, required = false, default = nil) if valid_621399 != nil: - section.add "X-Amz-Security-Token", valid_621399 - var valid_621400 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621399 + var valid_621400 = header.getOrDefault("X-Amz-Credential") valid_621400 = validateParameter(valid_621400, JString, required = false, default = nil) if valid_621400 != nil: - section.add "X-Amz-Algorithm", valid_621400 - var valid_621401 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621400 + var valid_621401 = header.getOrDefault("X-Amz-Security-Token") valid_621401 = validateParameter(valid_621401, JString, required = false, default = nil) if valid_621401 != nil: - section.add "X-Amz-SignedHeaders", valid_621401 + section.add "X-Amz-Security-Token", valid_621401 + var valid_621402 = header.getOrDefault("X-Amz-Algorithm") + valid_621402 = validateParameter(valid_621402, JString, required = false, + default = nil) + if valid_621402 != nil: + section.add "X-Amz-Algorithm", valid_621402 + var valid_621403 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621403 = validateParameter(valid_621403, JString, required = false, + default = nil) + if valid_621403 != nil: + section.add "X-Amz-SignedHeaders", valid_621403 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -84502,48 +84529,48 @@ proc validate_PostDescribeVpcEndpointServices_621391(path: JsonNode; ## Filter: JArray ## :

    One or more filters.

    section = newJObject() - var valid_621402 = formData.getOrDefault("NextToken") - valid_621402 = validateParameter(valid_621402, JString, required = false, + var valid_621404 = formData.getOrDefault("NextToken") + valid_621404 = validateParameter(valid_621404, JString, required = false, default = nil) - if valid_621402 != nil: - section.add "NextToken", valid_621402 - var valid_621403 = formData.getOrDefault("ServiceName") - valid_621403 = validateParameter(valid_621403, JArray, required = false, - default = nil) - if valid_621403 != nil: - section.add "ServiceName", valid_621403 - var valid_621404 = formData.getOrDefault("DryRun") - valid_621404 = validateParameter(valid_621404, JBool, required = false, default = nil) if valid_621404 != nil: - section.add "DryRun", valid_621404 - var valid_621405 = formData.getOrDefault("MaxResults") - valid_621405 = validateParameter(valid_621405, JInt, required = false, default = nil) - if valid_621405 != nil: - section.add "MaxResults", valid_621405 - var valid_621406 = formData.getOrDefault("Filter") - valid_621406 = validateParameter(valid_621406, JArray, required = false, + section.add "NextToken", valid_621404 + var valid_621405 = formData.getOrDefault("ServiceName") + valid_621405 = validateParameter(valid_621405, JArray, required = false, default = nil) + if valid_621405 != nil: + section.add "ServiceName", valid_621405 + var valid_621406 = formData.getOrDefault("DryRun") + valid_621406 = validateParameter(valid_621406, JBool, required = false, default = nil) if valid_621406 != nil: - section.add "Filter", valid_621406 + section.add "DryRun", valid_621406 + var valid_621407 = formData.getOrDefault("MaxResults") + valid_621407 = validateParameter(valid_621407, JInt, required = false, default = nil) + if valid_621407 != nil: + section.add "MaxResults", valid_621407 + var valid_621408 = formData.getOrDefault("Filter") + valid_621408 = validateParameter(valid_621408, JArray, required = false, + default = nil) + if valid_621408 != nil: + section.add "Filter", valid_621408 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621407: Call_PostDescribeVpcEndpointServices_621390; +proc call*(call_621409: Call_PostDescribeVpcEndpointServices_621392; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes available services to which you can create a VPC endpoint. ## - let valid = call_621407.validator(path, query, header, formData, body) - let scheme = call_621407.pickScheme + let valid = call_621409.validator(path, query, header, formData, body) + let scheme = call_621409.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621407.url(scheme.get, call_621407.host, call_621407.base, - call_621407.route, valid.getOrDefault("path"), + let url = call_621409.url(scheme.get, call_621409.host, call_621409.base, + call_621409.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621407, url, valid) + result = atozHook(call_621409, url, valid) -proc call*(call_621408: Call_PostDescribeVpcEndpointServices_621390; +proc call*(call_621410: Call_PostDescribeVpcEndpointServices_621392; NextToken: string = ""; ServiceName: JsonNode = nil; DryRun: bool = false; Action: string = "DescribeVpcEndpointServices"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -84561,28 +84588,28 @@ proc call*(call_621408: Call_PostDescribeVpcEndpointServices_621390; ## :

    The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results.

    Constraint: If the value is greater than 1,000, we return only 1,000 items.

    ## Filter: JArray ## :

    One or more filters.

    - var query_621409 = newJObject() - var formData_621410 = newJObject() - add(formData_621410, "NextToken", newJString(NextToken)) + var query_621411 = newJObject() + var formData_621412 = newJObject() + add(formData_621412, "NextToken", newJString(NextToken)) if ServiceName != nil: - formData_621410.add "ServiceName", ServiceName - add(formData_621410, "DryRun", newJBool(DryRun)) - add(query_621409, "Action", newJString(Action)) - add(query_621409, "Version", newJString(Version)) - add(formData_621410, "MaxResults", newJInt(MaxResults)) + formData_621412.add "ServiceName", ServiceName + add(formData_621412, "DryRun", newJBool(DryRun)) + add(query_621411, "Action", newJString(Action)) + add(query_621411, "Version", newJString(Version)) + add(formData_621412, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_621410.add "Filter", Filter - result = call_621408.call(nil, query_621409, nil, formData_621410, nil) + formData_621412.add "Filter", Filter + result = call_621410.call(nil, query_621411, nil, formData_621412, nil) -var postDescribeVpcEndpointServices* = Call_PostDescribeVpcEndpointServices_621390( +var postDescribeVpcEndpointServices* = Call_PostDescribeVpcEndpointServices_621392( name: "postDescribeVpcEndpointServices", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeVpcEndpointServices", - validator: validate_PostDescribeVpcEndpointServices_621391, base: "/", - url: url_PostDescribeVpcEndpointServices_621392, + validator: validate_PostDescribeVpcEndpointServices_621393, base: "/", + url: url_PostDescribeVpcEndpointServices_621394, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeVpcEndpointServices_621370 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeVpcEndpointServices_621372(protocol: Scheme; host: string; + Call_GetDescribeVpcEndpointServices_621372 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeVpcEndpointServices_621374(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -84592,7 +84619,7 @@ proc url_GetDescribeVpcEndpointServices_621372(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeVpcEndpointServices_621371(path: JsonNode; +proc validate_GetDescribeVpcEndpointServices_621373(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes available services to which you can create a VPC endpoint. ## @@ -84614,39 +84641,39 @@ proc validate_GetDescribeVpcEndpointServices_621371(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621373 = query.getOrDefault("MaxResults") - valid_621373 = validateParameter(valid_621373, JInt, required = false, default = nil) - if valid_621373 != nil: - section.add "MaxResults", valid_621373 - var valid_621374 = query.getOrDefault("DryRun") - valid_621374 = validateParameter(valid_621374, JBool, required = false, default = nil) - if valid_621374 != nil: - section.add "DryRun", valid_621374 - var valid_621375 = query.getOrDefault("NextToken") - valid_621375 = validateParameter(valid_621375, JString, required = false, - default = nil) + var valid_621375 = query.getOrDefault("MaxResults") + valid_621375 = validateParameter(valid_621375, JInt, required = false, default = nil) if valid_621375 != nil: - section.add "NextToken", valid_621375 - var valid_621376 = query.getOrDefault("Filter") - valid_621376 = validateParameter(valid_621376, JArray, required = false, - default = nil) + section.add "MaxResults", valid_621375 + var valid_621376 = query.getOrDefault("DryRun") + valid_621376 = validateParameter(valid_621376, JBool, required = false, default = nil) if valid_621376 != nil: - section.add "Filter", valid_621376 - var valid_621377 = query.getOrDefault("ServiceName") - valid_621377 = validateParameter(valid_621377, JArray, required = false, + section.add "DryRun", valid_621376 + var valid_621377 = query.getOrDefault("NextToken") + valid_621377 = validateParameter(valid_621377, JString, required = false, default = nil) if valid_621377 != nil: - section.add "ServiceName", valid_621377 - var valid_621378 = query.getOrDefault("Action") - valid_621378 = validateParameter(valid_621378, JString, required = true, default = newJString( - "DescribeVpcEndpointServices")) + section.add "NextToken", valid_621377 + var valid_621378 = query.getOrDefault("Filter") + valid_621378 = validateParameter(valid_621378, JArray, required = false, + default = nil) if valid_621378 != nil: - section.add "Action", valid_621378 - var valid_621379 = query.getOrDefault("Version") - valid_621379 = validateParameter(valid_621379, JString, required = true, - default = newJString("2016-11-15")) + section.add "Filter", valid_621378 + var valid_621379 = query.getOrDefault("ServiceName") + valid_621379 = validateParameter(valid_621379, JArray, required = false, + default = nil) if valid_621379 != nil: - section.add "Version", valid_621379 + section.add "ServiceName", valid_621379 + var valid_621380 = query.getOrDefault("Action") + valid_621380 = validateParameter(valid_621380, JString, required = true, default = newJString( + "DescribeVpcEndpointServices")) + if valid_621380 != nil: + section.add "Action", valid_621380 + var valid_621381 = query.getOrDefault("Version") + valid_621381 = validateParameter(valid_621381, JString, required = true, + default = newJString("2016-11-15")) + if valid_621381 != nil: + section.add "Version", valid_621381 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -84657,61 +84684,61 @@ proc validate_GetDescribeVpcEndpointServices_621371(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621380 = header.getOrDefault("X-Amz-Signature") - valid_621380 = validateParameter(valid_621380, JString, required = false, - default = nil) - if valid_621380 != nil: - section.add "X-Amz-Signature", valid_621380 - var valid_621381 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621381 = validateParameter(valid_621381, JString, required = false, - default = nil) - if valid_621381 != nil: - section.add "X-Amz-Content-Sha256", valid_621381 - var valid_621382 = header.getOrDefault("X-Amz-Date") + var valid_621382 = header.getOrDefault("X-Amz-Signature") valid_621382 = validateParameter(valid_621382, JString, required = false, default = nil) if valid_621382 != nil: - section.add "X-Amz-Date", valid_621382 - var valid_621383 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621382 + var valid_621383 = header.getOrDefault("X-Amz-Content-Sha256") valid_621383 = validateParameter(valid_621383, JString, required = false, default = nil) if valid_621383 != nil: - section.add "X-Amz-Credential", valid_621383 - var valid_621384 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621383 + var valid_621384 = header.getOrDefault("X-Amz-Date") valid_621384 = validateParameter(valid_621384, JString, required = false, default = nil) if valid_621384 != nil: - section.add "X-Amz-Security-Token", valid_621384 - var valid_621385 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621384 + var valid_621385 = header.getOrDefault("X-Amz-Credential") valid_621385 = validateParameter(valid_621385, JString, required = false, default = nil) if valid_621385 != nil: - section.add "X-Amz-Algorithm", valid_621385 - var valid_621386 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621385 + var valid_621386 = header.getOrDefault("X-Amz-Security-Token") valid_621386 = validateParameter(valid_621386, JString, required = false, default = nil) if valid_621386 != nil: - section.add "X-Amz-SignedHeaders", valid_621386 + section.add "X-Amz-Security-Token", valid_621386 + var valid_621387 = header.getOrDefault("X-Amz-Algorithm") + valid_621387 = validateParameter(valid_621387, JString, required = false, + default = nil) + if valid_621387 != nil: + section.add "X-Amz-Algorithm", valid_621387 + var valid_621388 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621388 = validateParameter(valid_621388, JString, required = false, + default = nil) + if valid_621388 != nil: + section.add "X-Amz-SignedHeaders", valid_621388 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621387: Call_GetDescribeVpcEndpointServices_621370; path: JsonNode; +proc call*(call_621389: Call_GetDescribeVpcEndpointServices_621372; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes available services to which you can create a VPC endpoint. ## - let valid = call_621387.validator(path, query, header, formData, body) - let scheme = call_621387.pickScheme + let valid = call_621389.validator(path, query, header, formData, body) + let scheme = call_621389.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621387.url(scheme.get, call_621387.host, call_621387.base, - call_621387.route, valid.getOrDefault("path"), + let url = call_621389.url(scheme.get, call_621389.host, call_621389.base, + call_621389.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621387, url, valid) + result = atozHook(call_621389, url, valid) -proc call*(call_621388: Call_GetDescribeVpcEndpointServices_621370; +proc call*(call_621390: Call_GetDescribeVpcEndpointServices_621372; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; ServiceName: JsonNode = nil; Action: string = "DescribeVpcEndpointServices"; @@ -84730,27 +84757,27 @@ proc call*(call_621388: Call_GetDescribeVpcEndpointServices_621370; ## : One or more service names. ## Action: string (required) ## Version: string (required) - var query_621389 = newJObject() - add(query_621389, "MaxResults", newJInt(MaxResults)) - add(query_621389, "DryRun", newJBool(DryRun)) - add(query_621389, "NextToken", newJString(NextToken)) + var query_621391 = newJObject() + add(query_621391, "MaxResults", newJInt(MaxResults)) + add(query_621391, "DryRun", newJBool(DryRun)) + add(query_621391, "NextToken", newJString(NextToken)) if Filter != nil: - query_621389.add "Filter", Filter + query_621391.add "Filter", Filter if ServiceName != nil: - query_621389.add "ServiceName", ServiceName - add(query_621389, "Action", newJString(Action)) - add(query_621389, "Version", newJString(Version)) - result = call_621388.call(nil, query_621389, nil, nil, nil) + query_621391.add "ServiceName", ServiceName + add(query_621391, "Action", newJString(Action)) + add(query_621391, "Version", newJString(Version)) + result = call_621390.call(nil, query_621391, nil, nil, nil) -var getDescribeVpcEndpointServices* = Call_GetDescribeVpcEndpointServices_621370( +var getDescribeVpcEndpointServices* = Call_GetDescribeVpcEndpointServices_621372( name: "getDescribeVpcEndpointServices", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeVpcEndpointServices", - validator: validate_GetDescribeVpcEndpointServices_621371, base: "/", - url: url_GetDescribeVpcEndpointServices_621372, + validator: validate_GetDescribeVpcEndpointServices_621373, base: "/", + url: url_GetDescribeVpcEndpointServices_621374, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeVpcEndpoints_621431 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeVpcEndpoints_621433(protocol: Scheme; host: string; + Call_PostDescribeVpcEndpoints_621433 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeVpcEndpoints_621435(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -84761,7 +84788,7 @@ proc url_PostDescribeVpcEndpoints_621433(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeVpcEndpoints_621432(path: JsonNode; query: JsonNode; +proc validate_PostDescribeVpcEndpoints_621434(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more of your VPC endpoints. ## @@ -84773,16 +84800,16 @@ proc validate_PostDescribeVpcEndpoints_621432(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621434 = query.getOrDefault("Action") - valid_621434 = validateParameter(valid_621434, JString, required = true, + var valid_621436 = query.getOrDefault("Action") + valid_621436 = validateParameter(valid_621436, JString, required = true, default = newJString("DescribeVpcEndpoints")) - if valid_621434 != nil: - section.add "Action", valid_621434 - var valid_621435 = query.getOrDefault("Version") - valid_621435 = validateParameter(valid_621435, JString, required = true, + if valid_621436 != nil: + section.add "Action", valid_621436 + var valid_621437 = query.getOrDefault("Version") + valid_621437 = validateParameter(valid_621437, JString, required = true, default = newJString("2016-11-15")) - if valid_621435 != nil: - section.add "Version", valid_621435 + if valid_621437 != nil: + section.add "Version", valid_621437 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -84793,41 +84820,41 @@ proc validate_PostDescribeVpcEndpoints_621432(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621436 = header.getOrDefault("X-Amz-Signature") - valid_621436 = validateParameter(valid_621436, JString, required = false, - default = nil) - if valid_621436 != nil: - section.add "X-Amz-Signature", valid_621436 - var valid_621437 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621437 = validateParameter(valid_621437, JString, required = false, - default = nil) - if valid_621437 != nil: - section.add "X-Amz-Content-Sha256", valid_621437 - var valid_621438 = header.getOrDefault("X-Amz-Date") + var valid_621438 = header.getOrDefault("X-Amz-Signature") valid_621438 = validateParameter(valid_621438, JString, required = false, default = nil) if valid_621438 != nil: - section.add "X-Amz-Date", valid_621438 - var valid_621439 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621438 + var valid_621439 = header.getOrDefault("X-Amz-Content-Sha256") valid_621439 = validateParameter(valid_621439, JString, required = false, default = nil) if valid_621439 != nil: - section.add "X-Amz-Credential", valid_621439 - var valid_621440 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621439 + var valid_621440 = header.getOrDefault("X-Amz-Date") valid_621440 = validateParameter(valid_621440, JString, required = false, default = nil) if valid_621440 != nil: - section.add "X-Amz-Security-Token", valid_621440 - var valid_621441 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621440 + var valid_621441 = header.getOrDefault("X-Amz-Credential") valid_621441 = validateParameter(valid_621441, JString, required = false, default = nil) if valid_621441 != nil: - section.add "X-Amz-Algorithm", valid_621441 - var valid_621442 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621441 + var valid_621442 = header.getOrDefault("X-Amz-Security-Token") valid_621442 = validateParameter(valid_621442, JString, required = false, default = nil) if valid_621442 != nil: - section.add "X-Amz-SignedHeaders", valid_621442 + section.add "X-Amz-Security-Token", valid_621442 + var valid_621443 = header.getOrDefault("X-Amz-Algorithm") + valid_621443 = validateParameter(valid_621443, JString, required = false, + default = nil) + if valid_621443 != nil: + section.add "X-Amz-Algorithm", valid_621443 + var valid_621444 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621444 = validateParameter(valid_621444, JString, required = false, + default = nil) + if valid_621444 != nil: + section.add "X-Amz-SignedHeaders", valid_621444 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -84841,47 +84868,47 @@ proc validate_PostDescribeVpcEndpoints_621432(path: JsonNode; query: JsonNode; ## VpcEndpointId: JArray ## : One or more endpoint IDs. section = newJObject() - var valid_621443 = formData.getOrDefault("NextToken") - valid_621443 = validateParameter(valid_621443, JString, required = false, + var valid_621445 = formData.getOrDefault("NextToken") + valid_621445 = validateParameter(valid_621445, JString, required = false, default = nil) - if valid_621443 != nil: - section.add "NextToken", valid_621443 - var valid_621444 = formData.getOrDefault("DryRun") - valid_621444 = validateParameter(valid_621444, JBool, required = false, default = nil) - if valid_621444 != nil: - section.add "DryRun", valid_621444 - var valid_621445 = formData.getOrDefault("MaxResults") - valid_621445 = validateParameter(valid_621445, JInt, required = false, default = nil) if valid_621445 != nil: - section.add "MaxResults", valid_621445 - var valid_621446 = formData.getOrDefault("Filter") - valid_621446 = validateParameter(valid_621446, JArray, required = false, - default = nil) + section.add "NextToken", valid_621445 + var valid_621446 = formData.getOrDefault("DryRun") + valid_621446 = validateParameter(valid_621446, JBool, required = false, default = nil) if valid_621446 != nil: - section.add "Filter", valid_621446 - var valid_621447 = formData.getOrDefault("VpcEndpointId") - valid_621447 = validateParameter(valid_621447, JArray, required = false, - default = nil) + section.add "DryRun", valid_621446 + var valid_621447 = formData.getOrDefault("MaxResults") + valid_621447 = validateParameter(valid_621447, JInt, required = false, default = nil) if valid_621447 != nil: - section.add "VpcEndpointId", valid_621447 + section.add "MaxResults", valid_621447 + var valid_621448 = formData.getOrDefault("Filter") + valid_621448 = validateParameter(valid_621448, JArray, required = false, + default = nil) + if valid_621448 != nil: + section.add "Filter", valid_621448 + var valid_621449 = formData.getOrDefault("VpcEndpointId") + valid_621449 = validateParameter(valid_621449, JArray, required = false, + default = nil) + if valid_621449 != nil: + section.add "VpcEndpointId", valid_621449 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621448: Call_PostDescribeVpcEndpoints_621431; path: JsonNode; +proc call*(call_621450: Call_PostDescribeVpcEndpoints_621433; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more of your VPC endpoints. ## - let valid = call_621448.validator(path, query, header, formData, body) - let scheme = call_621448.pickScheme + let valid = call_621450.validator(path, query, header, formData, body) + let scheme = call_621450.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621448.url(scheme.get, call_621448.host, call_621448.base, - call_621448.route, valid.getOrDefault("path"), + let url = call_621450.url(scheme.get, call_621450.host, call_621450.base, + call_621450.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621448, url, valid) + result = atozHook(call_621450, url, valid) -proc call*(call_621449: Call_PostDescribeVpcEndpoints_621431; +proc call*(call_621451: Call_PostDescribeVpcEndpoints_621433; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeVpcEndpoints"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil; VpcEndpointId: JsonNode = nil): Recallable = @@ -84899,27 +84926,27 @@ proc call*(call_621449: Call_PostDescribeVpcEndpoints_621431; ## :

    One or more filters.

    ## VpcEndpointId: JArray ## : One or more endpoint IDs. - var query_621450 = newJObject() - var formData_621451 = newJObject() - add(formData_621451, "NextToken", newJString(NextToken)) - add(formData_621451, "DryRun", newJBool(DryRun)) - add(query_621450, "Action", newJString(Action)) - add(query_621450, "Version", newJString(Version)) - add(formData_621451, "MaxResults", newJInt(MaxResults)) + var query_621452 = newJObject() + var formData_621453 = newJObject() + add(formData_621453, "NextToken", newJString(NextToken)) + add(formData_621453, "DryRun", newJBool(DryRun)) + add(query_621452, "Action", newJString(Action)) + add(query_621452, "Version", newJString(Version)) + add(formData_621453, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_621451.add "Filter", Filter + formData_621453.add "Filter", Filter if VpcEndpointId != nil: - formData_621451.add "VpcEndpointId", VpcEndpointId - result = call_621449.call(nil, query_621450, nil, formData_621451, nil) + formData_621453.add "VpcEndpointId", VpcEndpointId + result = call_621451.call(nil, query_621452, nil, formData_621453, nil) -var postDescribeVpcEndpoints* = Call_PostDescribeVpcEndpoints_621431( +var postDescribeVpcEndpoints* = Call_PostDescribeVpcEndpoints_621433( name: "postDescribeVpcEndpoints", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeVpcEndpoints", - validator: validate_PostDescribeVpcEndpoints_621432, base: "/", - url: url_PostDescribeVpcEndpoints_621433, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDescribeVpcEndpoints_621434, base: "/", + url: url_PostDescribeVpcEndpoints_621435, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeVpcEndpoints_621411 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeVpcEndpoints_621413(protocol: Scheme; host: string; base: string; + Call_GetDescribeVpcEndpoints_621413 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeVpcEndpoints_621415(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -84930,7 +84957,7 @@ proc url_GetDescribeVpcEndpoints_621413(protocol: Scheme; host: string; base: st else: result.path = base & route -proc validate_GetDescribeVpcEndpoints_621412(path: JsonNode; query: JsonNode; +proc validate_GetDescribeVpcEndpoints_621414(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more of your VPC endpoints. ## @@ -84952,39 +84979,39 @@ proc validate_GetDescribeVpcEndpoints_621412(path: JsonNode; query: JsonNode; ## : One or more endpoint IDs. ## Version: JString (required) section = newJObject() - var valid_621414 = query.getOrDefault("MaxResults") - valid_621414 = validateParameter(valid_621414, JInt, required = false, default = nil) - if valid_621414 != nil: - section.add "MaxResults", valid_621414 - var valid_621415 = query.getOrDefault("DryRun") - valid_621415 = validateParameter(valid_621415, JBool, required = false, default = nil) - if valid_621415 != nil: - section.add "DryRun", valid_621415 - var valid_621416 = query.getOrDefault("NextToken") - valid_621416 = validateParameter(valid_621416, JString, required = false, - default = nil) + var valid_621416 = query.getOrDefault("MaxResults") + valid_621416 = validateParameter(valid_621416, JInt, required = false, default = nil) if valid_621416 != nil: - section.add "NextToken", valid_621416 - var valid_621417 = query.getOrDefault("Filter") - valid_621417 = validateParameter(valid_621417, JArray, required = false, - default = nil) + section.add "MaxResults", valid_621416 + var valid_621417 = query.getOrDefault("DryRun") + valid_621417 = validateParameter(valid_621417, JBool, required = false, default = nil) if valid_621417 != nil: - section.add "Filter", valid_621417 - var valid_621418 = query.getOrDefault("Action") - valid_621418 = validateParameter(valid_621418, JString, required = true, - default = newJString("DescribeVpcEndpoints")) + section.add "DryRun", valid_621417 + var valid_621418 = query.getOrDefault("NextToken") + valid_621418 = validateParameter(valid_621418, JString, required = false, + default = nil) if valid_621418 != nil: - section.add "Action", valid_621418 - var valid_621419 = query.getOrDefault("VpcEndpointId") + section.add "NextToken", valid_621418 + var valid_621419 = query.getOrDefault("Filter") valid_621419 = validateParameter(valid_621419, JArray, required = false, default = nil) if valid_621419 != nil: - section.add "VpcEndpointId", valid_621419 - var valid_621420 = query.getOrDefault("Version") + section.add "Filter", valid_621419 + var valid_621420 = query.getOrDefault("Action") valid_621420 = validateParameter(valid_621420, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("DescribeVpcEndpoints")) if valid_621420 != nil: - section.add "Version", valid_621420 + section.add "Action", valid_621420 + var valid_621421 = query.getOrDefault("VpcEndpointId") + valid_621421 = validateParameter(valid_621421, JArray, required = false, + default = nil) + if valid_621421 != nil: + section.add "VpcEndpointId", valid_621421 + var valid_621422 = query.getOrDefault("Version") + valid_621422 = validateParameter(valid_621422, JString, required = true, + default = newJString("2016-11-15")) + if valid_621422 != nil: + section.add "Version", valid_621422 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -84995,61 +85022,61 @@ proc validate_GetDescribeVpcEndpoints_621412(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621421 = header.getOrDefault("X-Amz-Signature") - valid_621421 = validateParameter(valid_621421, JString, required = false, - default = nil) - if valid_621421 != nil: - section.add "X-Amz-Signature", valid_621421 - var valid_621422 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621422 = validateParameter(valid_621422, JString, required = false, - default = nil) - if valid_621422 != nil: - section.add "X-Amz-Content-Sha256", valid_621422 - var valid_621423 = header.getOrDefault("X-Amz-Date") + var valid_621423 = header.getOrDefault("X-Amz-Signature") valid_621423 = validateParameter(valid_621423, JString, required = false, default = nil) if valid_621423 != nil: - section.add "X-Amz-Date", valid_621423 - var valid_621424 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621423 + var valid_621424 = header.getOrDefault("X-Amz-Content-Sha256") valid_621424 = validateParameter(valid_621424, JString, required = false, default = nil) if valid_621424 != nil: - section.add "X-Amz-Credential", valid_621424 - var valid_621425 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621424 + var valid_621425 = header.getOrDefault("X-Amz-Date") valid_621425 = validateParameter(valid_621425, JString, required = false, default = nil) if valid_621425 != nil: - section.add "X-Amz-Security-Token", valid_621425 - var valid_621426 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621425 + var valid_621426 = header.getOrDefault("X-Amz-Credential") valid_621426 = validateParameter(valid_621426, JString, required = false, default = nil) if valid_621426 != nil: - section.add "X-Amz-Algorithm", valid_621426 - var valid_621427 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621426 + var valid_621427 = header.getOrDefault("X-Amz-Security-Token") valid_621427 = validateParameter(valid_621427, JString, required = false, default = nil) if valid_621427 != nil: - section.add "X-Amz-SignedHeaders", valid_621427 + section.add "X-Amz-Security-Token", valid_621427 + var valid_621428 = header.getOrDefault("X-Amz-Algorithm") + valid_621428 = validateParameter(valid_621428, JString, required = false, + default = nil) + if valid_621428 != nil: + section.add "X-Amz-Algorithm", valid_621428 + var valid_621429 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621429 = validateParameter(valid_621429, JString, required = false, + default = nil) + if valid_621429 != nil: + section.add "X-Amz-SignedHeaders", valid_621429 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621428: Call_GetDescribeVpcEndpoints_621411; path: JsonNode; +proc call*(call_621430: Call_GetDescribeVpcEndpoints_621413; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more of your VPC endpoints. ## - let valid = call_621428.validator(path, query, header, formData, body) - let scheme = call_621428.pickScheme + let valid = call_621430.validator(path, query, header, formData, body) + let scheme = call_621430.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621428.url(scheme.get, call_621428.host, call_621428.base, - call_621428.route, valid.getOrDefault("path"), + let url = call_621430.url(scheme.get, call_621430.host, call_621430.base, + call_621430.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621428, url, valid) + result = atozHook(call_621430, url, valid) -proc call*(call_621429: Call_GetDescribeVpcEndpoints_621411; MaxResults: int = 0; +proc call*(call_621431: Call_GetDescribeVpcEndpoints_621413; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeVpcEndpoints"; VpcEndpointId: JsonNode = nil; Version: string = "2016-11-15"): Recallable = @@ -85067,26 +85094,26 @@ proc call*(call_621429: Call_GetDescribeVpcEndpoints_621411; MaxResults: int = 0 ## VpcEndpointId: JArray ## : One or more endpoint IDs. ## Version: string (required) - var query_621430 = newJObject() - add(query_621430, "MaxResults", newJInt(MaxResults)) - add(query_621430, "DryRun", newJBool(DryRun)) - add(query_621430, "NextToken", newJString(NextToken)) + var query_621432 = newJObject() + add(query_621432, "MaxResults", newJInt(MaxResults)) + add(query_621432, "DryRun", newJBool(DryRun)) + add(query_621432, "NextToken", newJString(NextToken)) if Filter != nil: - query_621430.add "Filter", Filter - add(query_621430, "Action", newJString(Action)) + query_621432.add "Filter", Filter + add(query_621432, "Action", newJString(Action)) if VpcEndpointId != nil: - query_621430.add "VpcEndpointId", VpcEndpointId - add(query_621430, "Version", newJString(Version)) - result = call_621429.call(nil, query_621430, nil, nil, nil) + query_621432.add "VpcEndpointId", VpcEndpointId + add(query_621432, "Version", newJString(Version)) + result = call_621431.call(nil, query_621432, nil, nil, nil) -var getDescribeVpcEndpoints* = Call_GetDescribeVpcEndpoints_621411( +var getDescribeVpcEndpoints* = Call_GetDescribeVpcEndpoints_621413( name: "getDescribeVpcEndpoints", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeVpcEndpoints", - validator: validate_GetDescribeVpcEndpoints_621412, base: "/", - url: url_GetDescribeVpcEndpoints_621413, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDescribeVpcEndpoints_621414, base: "/", + url: url_GetDescribeVpcEndpoints_621415, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeVpcPeeringConnections_621472 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeVpcPeeringConnections_621474(protocol: Scheme; host: string; + Call_PostDescribeVpcPeeringConnections_621474 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeVpcPeeringConnections_621476(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -85096,7 +85123,7 @@ proc url_PostDescribeVpcPeeringConnections_621474(protocol: Scheme; host: string else: result.path = base & route -proc validate_PostDescribeVpcPeeringConnections_621473(path: JsonNode; +proc validate_PostDescribeVpcPeeringConnections_621475(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more of your VPC peering connections. ## @@ -85108,16 +85135,16 @@ proc validate_PostDescribeVpcPeeringConnections_621473(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621475 = query.getOrDefault("Action") - valid_621475 = validateParameter(valid_621475, JString, required = true, default = newJString( + var valid_621477 = query.getOrDefault("Action") + valid_621477 = validateParameter(valid_621477, JString, required = true, default = newJString( "DescribeVpcPeeringConnections")) - if valid_621475 != nil: - section.add "Action", valid_621475 - var valid_621476 = query.getOrDefault("Version") - valid_621476 = validateParameter(valid_621476, JString, required = true, + if valid_621477 != nil: + section.add "Action", valid_621477 + var valid_621478 = query.getOrDefault("Version") + valid_621478 = validateParameter(valid_621478, JString, required = true, default = newJString("2016-11-15")) - if valid_621476 != nil: - section.add "Version", valid_621476 + if valid_621478 != nil: + section.add "Version", valid_621478 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -85128,41 +85155,41 @@ proc validate_PostDescribeVpcPeeringConnections_621473(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621477 = header.getOrDefault("X-Amz-Signature") - valid_621477 = validateParameter(valid_621477, JString, required = false, - default = nil) - if valid_621477 != nil: - section.add "X-Amz-Signature", valid_621477 - var valid_621478 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621478 = validateParameter(valid_621478, JString, required = false, - default = nil) - if valid_621478 != nil: - section.add "X-Amz-Content-Sha256", valid_621478 - var valid_621479 = header.getOrDefault("X-Amz-Date") + var valid_621479 = header.getOrDefault("X-Amz-Signature") valid_621479 = validateParameter(valid_621479, JString, required = false, default = nil) if valid_621479 != nil: - section.add "X-Amz-Date", valid_621479 - var valid_621480 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621479 + var valid_621480 = header.getOrDefault("X-Amz-Content-Sha256") valid_621480 = validateParameter(valid_621480, JString, required = false, default = nil) if valid_621480 != nil: - section.add "X-Amz-Credential", valid_621480 - var valid_621481 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621480 + var valid_621481 = header.getOrDefault("X-Amz-Date") valid_621481 = validateParameter(valid_621481, JString, required = false, default = nil) if valid_621481 != nil: - section.add "X-Amz-Security-Token", valid_621481 - var valid_621482 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621481 + var valid_621482 = header.getOrDefault("X-Amz-Credential") valid_621482 = validateParameter(valid_621482, JString, required = false, default = nil) if valid_621482 != nil: - section.add "X-Amz-Algorithm", valid_621482 - var valid_621483 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621482 + var valid_621483 = header.getOrDefault("X-Amz-Security-Token") valid_621483 = validateParameter(valid_621483, JString, required = false, default = nil) if valid_621483 != nil: - section.add "X-Amz-SignedHeaders", valid_621483 + section.add "X-Amz-Security-Token", valid_621483 + var valid_621484 = header.getOrDefault("X-Amz-Algorithm") + valid_621484 = validateParameter(valid_621484, JString, required = false, + default = nil) + if valid_621484 != nil: + section.add "X-Amz-Algorithm", valid_621484 + var valid_621485 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621485 = validateParameter(valid_621485, JString, required = false, + default = nil) + if valid_621485 != nil: + section.add "X-Amz-SignedHeaders", valid_621485 result.add "header", section ## parameters in `formData` object: ## VpcPeeringConnectionId: JArray @@ -85176,48 +85203,48 @@ proc validate_PostDescribeVpcPeeringConnections_621473(path: JsonNode; ## Filter: JArray ## :

    One or more filters.

    section = newJObject() - var valid_621484 = formData.getOrDefault("VpcPeeringConnectionId") - valid_621484 = validateParameter(valid_621484, JArray, required = false, - default = nil) - if valid_621484 != nil: - section.add "VpcPeeringConnectionId", valid_621484 - var valid_621485 = formData.getOrDefault("NextToken") - valid_621485 = validateParameter(valid_621485, JString, required = false, + var valid_621486 = formData.getOrDefault("VpcPeeringConnectionId") + valid_621486 = validateParameter(valid_621486, JArray, required = false, default = nil) - if valid_621485 != nil: - section.add "NextToken", valid_621485 - var valid_621486 = formData.getOrDefault("DryRun") - valid_621486 = validateParameter(valid_621486, JBool, required = false, default = nil) if valid_621486 != nil: - section.add "DryRun", valid_621486 - var valid_621487 = formData.getOrDefault("MaxResults") - valid_621487 = validateParameter(valid_621487, JInt, required = false, default = nil) - if valid_621487 != nil: - section.add "MaxResults", valid_621487 - var valid_621488 = formData.getOrDefault("Filter") - valid_621488 = validateParameter(valid_621488, JArray, required = false, + section.add "VpcPeeringConnectionId", valid_621486 + var valid_621487 = formData.getOrDefault("NextToken") + valid_621487 = validateParameter(valid_621487, JString, required = false, default = nil) + if valid_621487 != nil: + section.add "NextToken", valid_621487 + var valid_621488 = formData.getOrDefault("DryRun") + valid_621488 = validateParameter(valid_621488, JBool, required = false, default = nil) if valid_621488 != nil: - section.add "Filter", valid_621488 + section.add "DryRun", valid_621488 + var valid_621489 = formData.getOrDefault("MaxResults") + valid_621489 = validateParameter(valid_621489, JInt, required = false, default = nil) + if valid_621489 != nil: + section.add "MaxResults", valid_621489 + var valid_621490 = formData.getOrDefault("Filter") + valid_621490 = validateParameter(valid_621490, JArray, required = false, + default = nil) + if valid_621490 != nil: + section.add "Filter", valid_621490 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621489: Call_PostDescribeVpcPeeringConnections_621472; +proc call*(call_621491: Call_PostDescribeVpcPeeringConnections_621474; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more of your VPC peering connections. ## - let valid = call_621489.validator(path, query, header, formData, body) - let scheme = call_621489.pickScheme + let valid = call_621491.validator(path, query, header, formData, body) + let scheme = call_621491.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621489.url(scheme.get, call_621489.host, call_621489.base, - call_621489.route, valid.getOrDefault("path"), + let url = call_621491.url(scheme.get, call_621491.host, call_621491.base, + call_621491.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621489, url, valid) + result = atozHook(call_621491, url, valid) -proc call*(call_621490: Call_PostDescribeVpcPeeringConnections_621472; +proc call*(call_621492: Call_PostDescribeVpcPeeringConnections_621474; VpcPeeringConnectionId: JsonNode = nil; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeVpcPeeringConnections"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -85235,28 +85262,28 @@ proc call*(call_621490: Call_PostDescribeVpcPeeringConnections_621472; ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## Filter: JArray ## :

    One or more filters.

    - var query_621491 = newJObject() - var formData_621492 = newJObject() + var query_621493 = newJObject() + var formData_621494 = newJObject() if VpcPeeringConnectionId != nil: - formData_621492.add "VpcPeeringConnectionId", VpcPeeringConnectionId - add(formData_621492, "NextToken", newJString(NextToken)) - add(formData_621492, "DryRun", newJBool(DryRun)) - add(query_621491, "Action", newJString(Action)) - add(query_621491, "Version", newJString(Version)) - add(formData_621492, "MaxResults", newJInt(MaxResults)) + formData_621494.add "VpcPeeringConnectionId", VpcPeeringConnectionId + add(formData_621494, "NextToken", newJString(NextToken)) + add(formData_621494, "DryRun", newJBool(DryRun)) + add(query_621493, "Action", newJString(Action)) + add(query_621493, "Version", newJString(Version)) + add(formData_621494, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_621492.add "Filter", Filter - result = call_621490.call(nil, query_621491, nil, formData_621492, nil) + formData_621494.add "Filter", Filter + result = call_621492.call(nil, query_621493, nil, formData_621494, nil) -var postDescribeVpcPeeringConnections* = Call_PostDescribeVpcPeeringConnections_621472( +var postDescribeVpcPeeringConnections* = Call_PostDescribeVpcPeeringConnections_621474( name: "postDescribeVpcPeeringConnections", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeVpcPeeringConnections", - validator: validate_PostDescribeVpcPeeringConnections_621473, base: "/", - url: url_PostDescribeVpcPeeringConnections_621474, + validator: validate_PostDescribeVpcPeeringConnections_621475, base: "/", + url: url_PostDescribeVpcPeeringConnections_621476, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeVpcPeeringConnections_621452 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeVpcPeeringConnections_621454(protocol: Scheme; host: string; + Call_GetDescribeVpcPeeringConnections_621454 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeVpcPeeringConnections_621456(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -85266,7 +85293,7 @@ proc url_GetDescribeVpcPeeringConnections_621454(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeVpcPeeringConnections_621453(path: JsonNode; +proc validate_GetDescribeVpcPeeringConnections_621455(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more of your VPC peering connections. ## @@ -85288,39 +85315,39 @@ proc validate_GetDescribeVpcPeeringConnections_621453(path: JsonNode; ## :

    One or more VPC peering connection IDs.

    Default: Describes all your VPC peering connections.

    ## Version: JString (required) section = newJObject() - var valid_621455 = query.getOrDefault("MaxResults") - valid_621455 = validateParameter(valid_621455, JInt, required = false, default = nil) - if valid_621455 != nil: - section.add "MaxResults", valid_621455 - var valid_621456 = query.getOrDefault("DryRun") - valid_621456 = validateParameter(valid_621456, JBool, required = false, default = nil) - if valid_621456 != nil: - section.add "DryRun", valid_621456 - var valid_621457 = query.getOrDefault("NextToken") - valid_621457 = validateParameter(valid_621457, JString, required = false, - default = nil) + var valid_621457 = query.getOrDefault("MaxResults") + valid_621457 = validateParameter(valid_621457, JInt, required = false, default = nil) if valid_621457 != nil: - section.add "NextToken", valid_621457 - var valid_621458 = query.getOrDefault("Filter") - valid_621458 = validateParameter(valid_621458, JArray, required = false, - default = nil) + section.add "MaxResults", valid_621457 + var valid_621458 = query.getOrDefault("DryRun") + valid_621458 = validateParameter(valid_621458, JBool, required = false, default = nil) if valid_621458 != nil: - section.add "Filter", valid_621458 - var valid_621459 = query.getOrDefault("Action") - valid_621459 = validateParameter(valid_621459, JString, required = true, default = newJString( - "DescribeVpcPeeringConnections")) + section.add "DryRun", valid_621458 + var valid_621459 = query.getOrDefault("NextToken") + valid_621459 = validateParameter(valid_621459, JString, required = false, + default = nil) if valid_621459 != nil: - section.add "Action", valid_621459 - var valid_621460 = query.getOrDefault("VpcPeeringConnectionId") + section.add "NextToken", valid_621459 + var valid_621460 = query.getOrDefault("Filter") valid_621460 = validateParameter(valid_621460, JArray, required = false, default = nil) if valid_621460 != nil: - section.add "VpcPeeringConnectionId", valid_621460 - var valid_621461 = query.getOrDefault("Version") - valid_621461 = validateParameter(valid_621461, JString, required = true, - default = newJString("2016-11-15")) + section.add "Filter", valid_621460 + var valid_621461 = query.getOrDefault("Action") + valid_621461 = validateParameter(valid_621461, JString, required = true, default = newJString( + "DescribeVpcPeeringConnections")) if valid_621461 != nil: - section.add "Version", valid_621461 + section.add "Action", valid_621461 + var valid_621462 = query.getOrDefault("VpcPeeringConnectionId") + valid_621462 = validateParameter(valid_621462, JArray, required = false, + default = nil) + if valid_621462 != nil: + section.add "VpcPeeringConnectionId", valid_621462 + var valid_621463 = query.getOrDefault("Version") + valid_621463 = validateParameter(valid_621463, JString, required = true, + default = newJString("2016-11-15")) + if valid_621463 != nil: + section.add "Version", valid_621463 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -85331,62 +85358,62 @@ proc validate_GetDescribeVpcPeeringConnections_621453(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621462 = header.getOrDefault("X-Amz-Signature") - valid_621462 = validateParameter(valid_621462, JString, required = false, - default = nil) - if valid_621462 != nil: - section.add "X-Amz-Signature", valid_621462 - var valid_621463 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621463 = validateParameter(valid_621463, JString, required = false, - default = nil) - if valid_621463 != nil: - section.add "X-Amz-Content-Sha256", valid_621463 - var valid_621464 = header.getOrDefault("X-Amz-Date") + var valid_621464 = header.getOrDefault("X-Amz-Signature") valid_621464 = validateParameter(valid_621464, JString, required = false, default = nil) if valid_621464 != nil: - section.add "X-Amz-Date", valid_621464 - var valid_621465 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621464 + var valid_621465 = header.getOrDefault("X-Amz-Content-Sha256") valid_621465 = validateParameter(valid_621465, JString, required = false, default = nil) if valid_621465 != nil: - section.add "X-Amz-Credential", valid_621465 - var valid_621466 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621465 + var valid_621466 = header.getOrDefault("X-Amz-Date") valid_621466 = validateParameter(valid_621466, JString, required = false, default = nil) if valid_621466 != nil: - section.add "X-Amz-Security-Token", valid_621466 - var valid_621467 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621466 + var valid_621467 = header.getOrDefault("X-Amz-Credential") valid_621467 = validateParameter(valid_621467, JString, required = false, default = nil) if valid_621467 != nil: - section.add "X-Amz-Algorithm", valid_621467 - var valid_621468 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621467 + var valid_621468 = header.getOrDefault("X-Amz-Security-Token") valid_621468 = validateParameter(valid_621468, JString, required = false, default = nil) if valid_621468 != nil: - section.add "X-Amz-SignedHeaders", valid_621468 + section.add "X-Amz-Security-Token", valid_621468 + var valid_621469 = header.getOrDefault("X-Amz-Algorithm") + valid_621469 = validateParameter(valid_621469, JString, required = false, + default = nil) + if valid_621469 != nil: + section.add "X-Amz-Algorithm", valid_621469 + var valid_621470 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621470 = validateParameter(valid_621470, JString, required = false, + default = nil) + if valid_621470 != nil: + section.add "X-Amz-SignedHeaders", valid_621470 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621469: Call_GetDescribeVpcPeeringConnections_621452; +proc call*(call_621471: Call_GetDescribeVpcPeeringConnections_621454; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more of your VPC peering connections. ## - let valid = call_621469.validator(path, query, header, formData, body) - let scheme = call_621469.pickScheme + let valid = call_621471.validator(path, query, header, formData, body) + let scheme = call_621471.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621469.url(scheme.get, call_621469.host, call_621469.base, - call_621469.route, valid.getOrDefault("path"), + let url = call_621471.url(scheme.get, call_621471.host, call_621471.base, + call_621471.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621469, url, valid) + result = atozHook(call_621471, url, valid) -proc call*(call_621470: Call_GetDescribeVpcPeeringConnections_621452; +proc call*(call_621472: Call_GetDescribeVpcPeeringConnections_621454; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeVpcPeeringConnections"; VpcPeeringConnectionId: JsonNode = nil; Version: string = "2016-11-15"): Recallable = @@ -85404,27 +85431,27 @@ proc call*(call_621470: Call_GetDescribeVpcPeeringConnections_621452; ## VpcPeeringConnectionId: JArray ## :

    One or more VPC peering connection IDs.

    Default: Describes all your VPC peering connections.

    ## Version: string (required) - var query_621471 = newJObject() - add(query_621471, "MaxResults", newJInt(MaxResults)) - add(query_621471, "DryRun", newJBool(DryRun)) - add(query_621471, "NextToken", newJString(NextToken)) + var query_621473 = newJObject() + add(query_621473, "MaxResults", newJInt(MaxResults)) + add(query_621473, "DryRun", newJBool(DryRun)) + add(query_621473, "NextToken", newJString(NextToken)) if Filter != nil: - query_621471.add "Filter", Filter - add(query_621471, "Action", newJString(Action)) + query_621473.add "Filter", Filter + add(query_621473, "Action", newJString(Action)) if VpcPeeringConnectionId != nil: - query_621471.add "VpcPeeringConnectionId", VpcPeeringConnectionId - add(query_621471, "Version", newJString(Version)) - result = call_621470.call(nil, query_621471, nil, nil, nil) + query_621473.add "VpcPeeringConnectionId", VpcPeeringConnectionId + add(query_621473, "Version", newJString(Version)) + result = call_621472.call(nil, query_621473, nil, nil, nil) -var getDescribeVpcPeeringConnections* = Call_GetDescribeVpcPeeringConnections_621452( +var getDescribeVpcPeeringConnections* = Call_GetDescribeVpcPeeringConnections_621454( name: "getDescribeVpcPeeringConnections", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeVpcPeeringConnections", - validator: validate_GetDescribeVpcPeeringConnections_621453, base: "/", - url: url_GetDescribeVpcPeeringConnections_621454, + validator: validate_GetDescribeVpcPeeringConnections_621455, base: "/", + url: url_GetDescribeVpcPeeringConnections_621456, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeVpcs_621513 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeVpcs_621515(protocol: Scheme; host: string; base: string; + Call_PostDescribeVpcs_621515 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeVpcs_621517(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -85434,7 +85461,7 @@ proc url_PostDescribeVpcs_621515(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostDescribeVpcs_621514(path: JsonNode; query: JsonNode; +proc validate_PostDescribeVpcs_621516(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more of your VPCs. @@ -85447,16 +85474,16 @@ proc validate_PostDescribeVpcs_621514(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621516 = query.getOrDefault("Action") - valid_621516 = validateParameter(valid_621516, JString, required = true, + var valid_621518 = query.getOrDefault("Action") + valid_621518 = validateParameter(valid_621518, JString, required = true, default = newJString("DescribeVpcs")) - if valid_621516 != nil: - section.add "Action", valid_621516 - var valid_621517 = query.getOrDefault("Version") - valid_621517 = validateParameter(valid_621517, JString, required = true, + if valid_621518 != nil: + section.add "Action", valid_621518 + var valid_621519 = query.getOrDefault("Version") + valid_621519 = validateParameter(valid_621519, JString, required = true, default = newJString("2016-11-15")) - if valid_621517 != nil: - section.add "Version", valid_621517 + if valid_621519 != nil: + section.add "Version", valid_621519 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -85467,41 +85494,41 @@ proc validate_PostDescribeVpcs_621514(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621518 = header.getOrDefault("X-Amz-Signature") - valid_621518 = validateParameter(valid_621518, JString, required = false, - default = nil) - if valid_621518 != nil: - section.add "X-Amz-Signature", valid_621518 - var valid_621519 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621519 = validateParameter(valid_621519, JString, required = false, - default = nil) - if valid_621519 != nil: - section.add "X-Amz-Content-Sha256", valid_621519 - var valid_621520 = header.getOrDefault("X-Amz-Date") + var valid_621520 = header.getOrDefault("X-Amz-Signature") valid_621520 = validateParameter(valid_621520, JString, required = false, default = nil) if valid_621520 != nil: - section.add "X-Amz-Date", valid_621520 - var valid_621521 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621520 + var valid_621521 = header.getOrDefault("X-Amz-Content-Sha256") valid_621521 = validateParameter(valid_621521, JString, required = false, default = nil) if valid_621521 != nil: - section.add "X-Amz-Credential", valid_621521 - var valid_621522 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621521 + var valid_621522 = header.getOrDefault("X-Amz-Date") valid_621522 = validateParameter(valid_621522, JString, required = false, default = nil) if valid_621522 != nil: - section.add "X-Amz-Security-Token", valid_621522 - var valid_621523 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621522 + var valid_621523 = header.getOrDefault("X-Amz-Credential") valid_621523 = validateParameter(valid_621523, JString, required = false, default = nil) if valid_621523 != nil: - section.add "X-Amz-Algorithm", valid_621523 - var valid_621524 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621523 + var valid_621524 = header.getOrDefault("X-Amz-Security-Token") valid_621524 = validateParameter(valid_621524, JString, required = false, default = nil) if valid_621524 != nil: - section.add "X-Amz-SignedHeaders", valid_621524 + section.add "X-Amz-Security-Token", valid_621524 + var valid_621525 = header.getOrDefault("X-Amz-Algorithm") + valid_621525 = validateParameter(valid_621525, JString, required = false, + default = nil) + if valid_621525 != nil: + section.add "X-Amz-Algorithm", valid_621525 + var valid_621526 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621526 = validateParameter(valid_621526, JString, required = false, + default = nil) + if valid_621526 != nil: + section.add "X-Amz-SignedHeaders", valid_621526 result.add "header", section ## parameters in `formData` object: ## VpcId: JArray @@ -85515,47 +85542,47 @@ proc validate_PostDescribeVpcs_621514(path: JsonNode; query: JsonNode; ## Filter: JArray ## :

    One or more filters.

    section = newJObject() - var valid_621525 = formData.getOrDefault("VpcId") - valid_621525 = validateParameter(valid_621525, JArray, required = false, - default = nil) - if valid_621525 != nil: - section.add "VpcId", valid_621525 - var valid_621526 = formData.getOrDefault("NextToken") - valid_621526 = validateParameter(valid_621526, JString, required = false, + var valid_621527 = formData.getOrDefault("VpcId") + valid_621527 = validateParameter(valid_621527, JArray, required = false, default = nil) - if valid_621526 != nil: - section.add "NextToken", valid_621526 - var valid_621527 = formData.getOrDefault("DryRun") - valid_621527 = validateParameter(valid_621527, JBool, required = false, default = nil) if valid_621527 != nil: - section.add "DryRun", valid_621527 - var valid_621528 = formData.getOrDefault("MaxResults") - valid_621528 = validateParameter(valid_621528, JInt, required = false, default = nil) - if valid_621528 != nil: - section.add "MaxResults", valid_621528 - var valid_621529 = formData.getOrDefault("Filter") - valid_621529 = validateParameter(valid_621529, JArray, required = false, + section.add "VpcId", valid_621527 + var valid_621528 = formData.getOrDefault("NextToken") + valid_621528 = validateParameter(valid_621528, JString, required = false, default = nil) + if valid_621528 != nil: + section.add "NextToken", valid_621528 + var valid_621529 = formData.getOrDefault("DryRun") + valid_621529 = validateParameter(valid_621529, JBool, required = false, default = nil) if valid_621529 != nil: - section.add "Filter", valid_621529 + section.add "DryRun", valid_621529 + var valid_621530 = formData.getOrDefault("MaxResults") + valid_621530 = validateParameter(valid_621530, JInt, required = false, default = nil) + if valid_621530 != nil: + section.add "MaxResults", valid_621530 + var valid_621531 = formData.getOrDefault("Filter") + valid_621531 = validateParameter(valid_621531, JArray, required = false, + default = nil) + if valid_621531 != nil: + section.add "Filter", valid_621531 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621530: Call_PostDescribeVpcs_621513; path: JsonNode; +proc call*(call_621532: Call_PostDescribeVpcs_621515; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more of your VPCs. ## - let valid = call_621530.validator(path, query, header, formData, body) - let scheme = call_621530.pickScheme + let valid = call_621532.validator(path, query, header, formData, body) + let scheme = call_621532.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621530.url(scheme.get, call_621530.host, call_621530.base, - call_621530.route, valid.getOrDefault("path"), + let url = call_621532.url(scheme.get, call_621532.host, call_621532.base, + call_621532.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621530, url, valid) + result = atozHook(call_621532, url, valid) -proc call*(call_621531: Call_PostDescribeVpcs_621513; VpcId: JsonNode = nil; +proc call*(call_621533: Call_PostDescribeVpcs_621515; VpcId: JsonNode = nil; NextToken: string = ""; DryRun: bool = false; Action: string = "DescribeVpcs"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = ## postDescribeVpcs @@ -85572,27 +85599,27 @@ proc call*(call_621531: Call_PostDescribeVpcs_621513; VpcId: JsonNode = nil; ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## Filter: JArray ## :

    One or more filters.

    - var query_621532 = newJObject() - var formData_621533 = newJObject() + var query_621534 = newJObject() + var formData_621535 = newJObject() if VpcId != nil: - formData_621533.add "VpcId", VpcId - add(formData_621533, "NextToken", newJString(NextToken)) - add(formData_621533, "DryRun", newJBool(DryRun)) - add(query_621532, "Action", newJString(Action)) - add(query_621532, "Version", newJString(Version)) - add(formData_621533, "MaxResults", newJInt(MaxResults)) + formData_621535.add "VpcId", VpcId + add(formData_621535, "NextToken", newJString(NextToken)) + add(formData_621535, "DryRun", newJBool(DryRun)) + add(query_621534, "Action", newJString(Action)) + add(query_621534, "Version", newJString(Version)) + add(formData_621535, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_621533.add "Filter", Filter - result = call_621531.call(nil, query_621532, nil, formData_621533, nil) + formData_621535.add "Filter", Filter + result = call_621533.call(nil, query_621534, nil, formData_621535, nil) -var postDescribeVpcs* = Call_PostDescribeVpcs_621513(name: "postDescribeVpcs", +var postDescribeVpcs* = Call_PostDescribeVpcs_621515(name: "postDescribeVpcs", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", - route: "/#Action=DescribeVpcs", validator: validate_PostDescribeVpcs_621514, - base: "/", url: url_PostDescribeVpcs_621515, + route: "/#Action=DescribeVpcs", validator: validate_PostDescribeVpcs_621516, + base: "/", url: url_PostDescribeVpcs_621517, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeVpcs_621493 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeVpcs_621495(protocol: Scheme; host: string; base: string; + Call_GetDescribeVpcs_621495 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeVpcs_621497(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -85602,7 +85629,7 @@ proc url_GetDescribeVpcs_621495(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetDescribeVpcs_621494(path: JsonNode; query: JsonNode; +proc validate_GetDescribeVpcs_621496(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes one or more of your VPCs. @@ -85625,39 +85652,39 @@ proc validate_GetDescribeVpcs_621494(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621496 = query.getOrDefault("MaxResults") - valid_621496 = validateParameter(valid_621496, JInt, required = false, default = nil) - if valid_621496 != nil: - section.add "MaxResults", valid_621496 - var valid_621497 = query.getOrDefault("DryRun") - valid_621497 = validateParameter(valid_621497, JBool, required = false, default = nil) - if valid_621497 != nil: - section.add "DryRun", valid_621497 - var valid_621498 = query.getOrDefault("VpcId") - valid_621498 = validateParameter(valid_621498, JArray, required = false, - default = nil) + var valid_621498 = query.getOrDefault("MaxResults") + valid_621498 = validateParameter(valid_621498, JInt, required = false, default = nil) if valid_621498 != nil: - section.add "VpcId", valid_621498 - var valid_621499 = query.getOrDefault("NextToken") - valid_621499 = validateParameter(valid_621499, JString, required = false, - default = nil) + section.add "MaxResults", valid_621498 + var valid_621499 = query.getOrDefault("DryRun") + valid_621499 = validateParameter(valid_621499, JBool, required = false, default = nil) if valid_621499 != nil: - section.add "NextToken", valid_621499 - var valid_621500 = query.getOrDefault("Filter") + section.add "DryRun", valid_621499 + var valid_621500 = query.getOrDefault("VpcId") valid_621500 = validateParameter(valid_621500, JArray, required = false, default = nil) if valid_621500 != nil: - section.add "Filter", valid_621500 - var valid_621501 = query.getOrDefault("Action") - valid_621501 = validateParameter(valid_621501, JString, required = true, - default = newJString("DescribeVpcs")) + section.add "VpcId", valid_621500 + var valid_621501 = query.getOrDefault("NextToken") + valid_621501 = validateParameter(valid_621501, JString, required = false, + default = nil) if valid_621501 != nil: - section.add "Action", valid_621501 - var valid_621502 = query.getOrDefault("Version") - valid_621502 = validateParameter(valid_621502, JString, required = true, - default = newJString("2016-11-15")) + section.add "NextToken", valid_621501 + var valid_621502 = query.getOrDefault("Filter") + valid_621502 = validateParameter(valid_621502, JArray, required = false, + default = nil) if valid_621502 != nil: - section.add "Version", valid_621502 + section.add "Filter", valid_621502 + var valid_621503 = query.getOrDefault("Action") + valid_621503 = validateParameter(valid_621503, JString, required = true, + default = newJString("DescribeVpcs")) + if valid_621503 != nil: + section.add "Action", valid_621503 + var valid_621504 = query.getOrDefault("Version") + valid_621504 = validateParameter(valid_621504, JString, required = true, + default = newJString("2016-11-15")) + if valid_621504 != nil: + section.add "Version", valid_621504 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -85668,61 +85695,61 @@ proc validate_GetDescribeVpcs_621494(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621503 = header.getOrDefault("X-Amz-Signature") - valid_621503 = validateParameter(valid_621503, JString, required = false, - default = nil) - if valid_621503 != nil: - section.add "X-Amz-Signature", valid_621503 - var valid_621504 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621504 = validateParameter(valid_621504, JString, required = false, - default = nil) - if valid_621504 != nil: - section.add "X-Amz-Content-Sha256", valid_621504 - var valid_621505 = header.getOrDefault("X-Amz-Date") + var valid_621505 = header.getOrDefault("X-Amz-Signature") valid_621505 = validateParameter(valid_621505, JString, required = false, default = nil) if valid_621505 != nil: - section.add "X-Amz-Date", valid_621505 - var valid_621506 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621505 + var valid_621506 = header.getOrDefault("X-Amz-Content-Sha256") valid_621506 = validateParameter(valid_621506, JString, required = false, default = nil) if valid_621506 != nil: - section.add "X-Amz-Credential", valid_621506 - var valid_621507 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621506 + var valid_621507 = header.getOrDefault("X-Amz-Date") valid_621507 = validateParameter(valid_621507, JString, required = false, default = nil) if valid_621507 != nil: - section.add "X-Amz-Security-Token", valid_621507 - var valid_621508 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621507 + var valid_621508 = header.getOrDefault("X-Amz-Credential") valid_621508 = validateParameter(valid_621508, JString, required = false, default = nil) if valid_621508 != nil: - section.add "X-Amz-Algorithm", valid_621508 - var valid_621509 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621508 + var valid_621509 = header.getOrDefault("X-Amz-Security-Token") valid_621509 = validateParameter(valid_621509, JString, required = false, default = nil) if valid_621509 != nil: - section.add "X-Amz-SignedHeaders", valid_621509 + section.add "X-Amz-Security-Token", valid_621509 + var valid_621510 = header.getOrDefault("X-Amz-Algorithm") + valid_621510 = validateParameter(valid_621510, JString, required = false, + default = nil) + if valid_621510 != nil: + section.add "X-Amz-Algorithm", valid_621510 + var valid_621511 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621511 = validateParameter(valid_621511, JString, required = false, + default = nil) + if valid_621511 != nil: + section.add "X-Amz-SignedHeaders", valid_621511 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621510: Call_GetDescribeVpcs_621493; path: JsonNode; query: JsonNode; +proc call*(call_621512: Call_GetDescribeVpcs_621495; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes one or more of your VPCs. ## - let valid = call_621510.validator(path, query, header, formData, body) - let scheme = call_621510.pickScheme + let valid = call_621512.validator(path, query, header, formData, body) + let scheme = call_621512.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621510.url(scheme.get, call_621510.host, call_621510.base, - call_621510.route, valid.getOrDefault("path"), + let url = call_621512.url(scheme.get, call_621512.host, call_621512.base, + call_621512.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621510, url, valid) + result = atozHook(call_621512, url, valid) -proc call*(call_621511: Call_GetDescribeVpcs_621493; MaxResults: int = 0; +proc call*(call_621513: Call_GetDescribeVpcs_621495; MaxResults: int = 0; DryRun: bool = false; VpcId: JsonNode = nil; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "DescribeVpcs"; Version: string = "2016-11-15"): Recallable = @@ -85740,25 +85767,25 @@ proc call*(call_621511: Call_GetDescribeVpcs_621493; MaxResults: int = 0; ## :

    One or more filters.

    ## Action: string (required) ## Version: string (required) - var query_621512 = newJObject() - add(query_621512, "MaxResults", newJInt(MaxResults)) - add(query_621512, "DryRun", newJBool(DryRun)) + var query_621514 = newJObject() + add(query_621514, "MaxResults", newJInt(MaxResults)) + add(query_621514, "DryRun", newJBool(DryRun)) if VpcId != nil: - query_621512.add "VpcId", VpcId - add(query_621512, "NextToken", newJString(NextToken)) + query_621514.add "VpcId", VpcId + add(query_621514, "NextToken", newJString(NextToken)) if Filter != nil: - query_621512.add "Filter", Filter - add(query_621512, "Action", newJString(Action)) - add(query_621512, "Version", newJString(Version)) - result = call_621511.call(nil, query_621512, nil, nil, nil) + query_621514.add "Filter", Filter + add(query_621514, "Action", newJString(Action)) + add(query_621514, "Version", newJString(Version)) + result = call_621513.call(nil, query_621514, nil, nil, nil) -var getDescribeVpcs* = Call_GetDescribeVpcs_621493(name: "getDescribeVpcs", +var getDescribeVpcs* = Call_GetDescribeVpcs_621495(name: "getDescribeVpcs", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=DescribeVpcs", validator: validate_GetDescribeVpcs_621494, - base: "/", url: url_GetDescribeVpcs_621495, schemes: {Scheme.Https, Scheme.Http}) + route: "/#Action=DescribeVpcs", validator: validate_GetDescribeVpcs_621496, + base: "/", url: url_GetDescribeVpcs_621497, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeVpnConnections_621552 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeVpnConnections_621554(protocol: Scheme; host: string; + Call_PostDescribeVpnConnections_621554 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeVpnConnections_621556(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -85768,7 +85795,7 @@ proc url_PostDescribeVpnConnections_621554(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDescribeVpnConnections_621553(path: JsonNode; query: JsonNode; +proc validate_PostDescribeVpnConnections_621555(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Describes one or more of your VPN connections.

    For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.

    ## @@ -85780,16 +85807,16 @@ proc validate_PostDescribeVpnConnections_621553(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621555 = query.getOrDefault("Action") - valid_621555 = validateParameter(valid_621555, JString, required = true, + var valid_621557 = query.getOrDefault("Action") + valid_621557 = validateParameter(valid_621557, JString, required = true, default = newJString("DescribeVpnConnections")) - if valid_621555 != nil: - section.add "Action", valid_621555 - var valid_621556 = query.getOrDefault("Version") - valid_621556 = validateParameter(valid_621556, JString, required = true, + if valid_621557 != nil: + section.add "Action", valid_621557 + var valid_621558 = query.getOrDefault("Version") + valid_621558 = validateParameter(valid_621558, JString, required = true, default = newJString("2016-11-15")) - if valid_621556 != nil: - section.add "Version", valid_621556 + if valid_621558 != nil: + section.add "Version", valid_621558 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -85800,41 +85827,41 @@ proc validate_PostDescribeVpnConnections_621553(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621557 = header.getOrDefault("X-Amz-Signature") - valid_621557 = validateParameter(valid_621557, JString, required = false, - default = nil) - if valid_621557 != nil: - section.add "X-Amz-Signature", valid_621557 - var valid_621558 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621558 = validateParameter(valid_621558, JString, required = false, - default = nil) - if valid_621558 != nil: - section.add "X-Amz-Content-Sha256", valid_621558 - var valid_621559 = header.getOrDefault("X-Amz-Date") + var valid_621559 = header.getOrDefault("X-Amz-Signature") valid_621559 = validateParameter(valid_621559, JString, required = false, default = nil) if valid_621559 != nil: - section.add "X-Amz-Date", valid_621559 - var valid_621560 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621559 + var valid_621560 = header.getOrDefault("X-Amz-Content-Sha256") valid_621560 = validateParameter(valid_621560, JString, required = false, default = nil) if valid_621560 != nil: - section.add "X-Amz-Credential", valid_621560 - var valid_621561 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621560 + var valid_621561 = header.getOrDefault("X-Amz-Date") valid_621561 = validateParameter(valid_621561, JString, required = false, default = nil) if valid_621561 != nil: - section.add "X-Amz-Security-Token", valid_621561 - var valid_621562 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621561 + var valid_621562 = header.getOrDefault("X-Amz-Credential") valid_621562 = validateParameter(valid_621562, JString, required = false, default = nil) if valid_621562 != nil: - section.add "X-Amz-Algorithm", valid_621562 - var valid_621563 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621562 + var valid_621563 = header.getOrDefault("X-Amz-Security-Token") valid_621563 = validateParameter(valid_621563, JString, required = false, default = nil) if valid_621563 != nil: - section.add "X-Amz-SignedHeaders", valid_621563 + section.add "X-Amz-Security-Token", valid_621563 + var valid_621564 = header.getOrDefault("X-Amz-Algorithm") + valid_621564 = validateParameter(valid_621564, JString, required = false, + default = nil) + if valid_621564 != nil: + section.add "X-Amz-Algorithm", valid_621564 + var valid_621565 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621565 = validateParameter(valid_621565, JString, required = false, + default = nil) + if valid_621565 != nil: + section.add "X-Amz-SignedHeaders", valid_621565 result.add "header", section ## parameters in `formData` object: ## VpnConnectionId: JArray @@ -85844,38 +85871,38 @@ proc validate_PostDescribeVpnConnections_621553(path: JsonNode; query: JsonNode; ## Filter: JArray ## :

    One or more filters.

    section = newJObject() - var valid_621564 = formData.getOrDefault("VpnConnectionId") - valid_621564 = validateParameter(valid_621564, JArray, required = false, - default = nil) - if valid_621564 != nil: - section.add "VpnConnectionId", valid_621564 - var valid_621565 = formData.getOrDefault("DryRun") - valid_621565 = validateParameter(valid_621565, JBool, required = false, default = nil) - if valid_621565 != nil: - section.add "DryRun", valid_621565 - var valid_621566 = formData.getOrDefault("Filter") + var valid_621566 = formData.getOrDefault("VpnConnectionId") valid_621566 = validateParameter(valid_621566, JArray, required = false, default = nil) if valid_621566 != nil: - section.add "Filter", valid_621566 + section.add "VpnConnectionId", valid_621566 + var valid_621567 = formData.getOrDefault("DryRun") + valid_621567 = validateParameter(valid_621567, JBool, required = false, default = nil) + if valid_621567 != nil: + section.add "DryRun", valid_621567 + var valid_621568 = formData.getOrDefault("Filter") + valid_621568 = validateParameter(valid_621568, JArray, required = false, + default = nil) + if valid_621568 != nil: + section.add "Filter", valid_621568 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621567: Call_PostDescribeVpnConnections_621552; path: JsonNode; +proc call*(call_621569: Call_PostDescribeVpnConnections_621554; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Describes one or more of your VPN connections.

    For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.

    ## - let valid = call_621567.validator(path, query, header, formData, body) - let scheme = call_621567.pickScheme + let valid = call_621569.validator(path, query, header, formData, body) + let scheme = call_621569.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621567.url(scheme.get, call_621567.host, call_621567.base, - call_621567.route, valid.getOrDefault("path"), + let url = call_621569.url(scheme.get, call_621569.host, call_621569.base, + call_621569.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621567, url, valid) + result = atozHook(call_621569, url, valid) -proc call*(call_621568: Call_PostDescribeVpnConnections_621552; +proc call*(call_621570: Call_PostDescribeVpnConnections_621554; VpnConnectionId: JsonNode = nil; DryRun: bool = false; Action: string = "DescribeVpnConnections"; Version: string = "2016-11-15"; Filter: JsonNode = nil): Recallable = @@ -85889,26 +85916,26 @@ proc call*(call_621568: Call_PostDescribeVpnConnections_621552; ## Version: string (required) ## Filter: JArray ## :

    One or more filters.

    - var query_621569 = newJObject() - var formData_621570 = newJObject() + var query_621571 = newJObject() + var formData_621572 = newJObject() if VpnConnectionId != nil: - formData_621570.add "VpnConnectionId", VpnConnectionId - add(formData_621570, "DryRun", newJBool(DryRun)) - add(query_621569, "Action", newJString(Action)) - add(query_621569, "Version", newJString(Version)) + formData_621572.add "VpnConnectionId", VpnConnectionId + add(formData_621572, "DryRun", newJBool(DryRun)) + add(query_621571, "Action", newJString(Action)) + add(query_621571, "Version", newJString(Version)) if Filter != nil: - formData_621570.add "Filter", Filter - result = call_621568.call(nil, query_621569, nil, formData_621570, nil) + formData_621572.add "Filter", Filter + result = call_621570.call(nil, query_621571, nil, formData_621572, nil) -var postDescribeVpnConnections* = Call_PostDescribeVpnConnections_621552( +var postDescribeVpnConnections* = Call_PostDescribeVpnConnections_621554( name: "postDescribeVpnConnections", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeVpnConnections", - validator: validate_PostDescribeVpnConnections_621553, base: "/", - url: url_PostDescribeVpnConnections_621554, + validator: validate_PostDescribeVpnConnections_621555, base: "/", + url: url_PostDescribeVpnConnections_621556, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeVpnConnections_621534 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeVpnConnections_621536(protocol: Scheme; host: string; + Call_GetDescribeVpnConnections_621536 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeVpnConnections_621538(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -85918,7 +85945,7 @@ proc url_GetDescribeVpnConnections_621536(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDescribeVpnConnections_621535(path: JsonNode; query: JsonNode; +proc validate_GetDescribeVpnConnections_621537(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Describes one or more of your VPN connections.

    For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.

    ## @@ -85936,30 +85963,30 @@ proc validate_GetDescribeVpnConnections_621535(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621537 = query.getOrDefault("DryRun") - valid_621537 = validateParameter(valid_621537, JBool, required = false, default = nil) - if valid_621537 != nil: - section.add "DryRun", valid_621537 - var valid_621538 = query.getOrDefault("Filter") - valid_621538 = validateParameter(valid_621538, JArray, required = false, + var valid_621539 = query.getOrDefault("DryRun") + valid_621539 = validateParameter(valid_621539, JBool, required = false, default = nil) + if valid_621539 != nil: + section.add "DryRun", valid_621539 + var valid_621540 = query.getOrDefault("Filter") + valid_621540 = validateParameter(valid_621540, JArray, required = false, default = nil) - if valid_621538 != nil: - section.add "Filter", valid_621538 - var valid_621539 = query.getOrDefault("VpnConnectionId") - valid_621539 = validateParameter(valid_621539, JArray, required = false, + if valid_621540 != nil: + section.add "Filter", valid_621540 + var valid_621541 = query.getOrDefault("VpnConnectionId") + valid_621541 = validateParameter(valid_621541, JArray, required = false, default = nil) - if valid_621539 != nil: - section.add "VpnConnectionId", valid_621539 - var valid_621540 = query.getOrDefault("Action") - valid_621540 = validateParameter(valid_621540, JString, required = true, + if valid_621541 != nil: + section.add "VpnConnectionId", valid_621541 + var valid_621542 = query.getOrDefault("Action") + valid_621542 = validateParameter(valid_621542, JString, required = true, default = newJString("DescribeVpnConnections")) - if valid_621540 != nil: - section.add "Action", valid_621540 - var valid_621541 = query.getOrDefault("Version") - valid_621541 = validateParameter(valid_621541, JString, required = true, + if valid_621542 != nil: + section.add "Action", valid_621542 + var valid_621543 = query.getOrDefault("Version") + valid_621543 = validateParameter(valid_621543, JString, required = true, default = newJString("2016-11-15")) - if valid_621541 != nil: - section.add "Version", valid_621541 + if valid_621543 != nil: + section.add "Version", valid_621543 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -85970,61 +85997,61 @@ proc validate_GetDescribeVpnConnections_621535(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621542 = header.getOrDefault("X-Amz-Signature") - valid_621542 = validateParameter(valid_621542, JString, required = false, - default = nil) - if valid_621542 != nil: - section.add "X-Amz-Signature", valid_621542 - var valid_621543 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621543 = validateParameter(valid_621543, JString, required = false, - default = nil) - if valid_621543 != nil: - section.add "X-Amz-Content-Sha256", valid_621543 - var valid_621544 = header.getOrDefault("X-Amz-Date") + var valid_621544 = header.getOrDefault("X-Amz-Signature") valid_621544 = validateParameter(valid_621544, JString, required = false, default = nil) if valid_621544 != nil: - section.add "X-Amz-Date", valid_621544 - var valid_621545 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621544 + var valid_621545 = header.getOrDefault("X-Amz-Content-Sha256") valid_621545 = validateParameter(valid_621545, JString, required = false, default = nil) if valid_621545 != nil: - section.add "X-Amz-Credential", valid_621545 - var valid_621546 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621545 + var valid_621546 = header.getOrDefault("X-Amz-Date") valid_621546 = validateParameter(valid_621546, JString, required = false, default = nil) if valid_621546 != nil: - section.add "X-Amz-Security-Token", valid_621546 - var valid_621547 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621546 + var valid_621547 = header.getOrDefault("X-Amz-Credential") valid_621547 = validateParameter(valid_621547, JString, required = false, default = nil) if valid_621547 != nil: - section.add "X-Amz-Algorithm", valid_621547 - var valid_621548 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621547 + var valid_621548 = header.getOrDefault("X-Amz-Security-Token") valid_621548 = validateParameter(valid_621548, JString, required = false, default = nil) if valid_621548 != nil: - section.add "X-Amz-SignedHeaders", valid_621548 + section.add "X-Amz-Security-Token", valid_621548 + var valid_621549 = header.getOrDefault("X-Amz-Algorithm") + valid_621549 = validateParameter(valid_621549, JString, required = false, + default = nil) + if valid_621549 != nil: + section.add "X-Amz-Algorithm", valid_621549 + var valid_621550 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621550 = validateParameter(valid_621550, JString, required = false, + default = nil) + if valid_621550 != nil: + section.add "X-Amz-SignedHeaders", valid_621550 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621549: Call_GetDescribeVpnConnections_621534; path: JsonNode; +proc call*(call_621551: Call_GetDescribeVpnConnections_621536; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Describes one or more of your VPN connections.

    For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.

    ## - let valid = call_621549.validator(path, query, header, formData, body) - let scheme = call_621549.pickScheme + let valid = call_621551.validator(path, query, header, formData, body) + let scheme = call_621551.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621549.url(scheme.get, call_621549.host, call_621549.base, - call_621549.route, valid.getOrDefault("path"), + let url = call_621551.url(scheme.get, call_621551.host, call_621551.base, + call_621551.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621549, url, valid) + result = atozHook(call_621551, url, valid) -proc call*(call_621550: Call_GetDescribeVpnConnections_621534; +proc call*(call_621552: Call_GetDescribeVpnConnections_621536; DryRun: bool = false; Filter: JsonNode = nil; VpnConnectionId: JsonNode = nil; Action: string = "DescribeVpnConnections"; Version: string = "2016-11-15"): Recallable = ## getDescribeVpnConnections @@ -86037,25 +86064,25 @@ proc call*(call_621550: Call_GetDescribeVpnConnections_621534; ## :

    One or more VPN connection IDs.

    Default: Describes your VPN connections.

    ## Action: string (required) ## Version: string (required) - var query_621551 = newJObject() - add(query_621551, "DryRun", newJBool(DryRun)) + var query_621553 = newJObject() + add(query_621553, "DryRun", newJBool(DryRun)) if Filter != nil: - query_621551.add "Filter", Filter + query_621553.add "Filter", Filter if VpnConnectionId != nil: - query_621551.add "VpnConnectionId", VpnConnectionId - add(query_621551, "Action", newJString(Action)) - add(query_621551, "Version", newJString(Version)) - result = call_621550.call(nil, query_621551, nil, nil, nil) + query_621553.add "VpnConnectionId", VpnConnectionId + add(query_621553, "Action", newJString(Action)) + add(query_621553, "Version", newJString(Version)) + result = call_621552.call(nil, query_621553, nil, nil, nil) -var getDescribeVpnConnections* = Call_GetDescribeVpnConnections_621534( +var getDescribeVpnConnections* = Call_GetDescribeVpnConnections_621536( name: "getDescribeVpnConnections", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeVpnConnections", - validator: validate_GetDescribeVpnConnections_621535, base: "/", - url: url_GetDescribeVpnConnections_621536, + validator: validate_GetDescribeVpnConnections_621537, base: "/", + url: url_GetDescribeVpnConnections_621538, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDescribeVpnGateways_621589 = ref object of OpenApiRestCall_610658 -proc url_PostDescribeVpnGateways_621591(protocol: Scheme; host: string; base: string; + Call_PostDescribeVpnGateways_621591 = ref object of OpenApiRestCall_610658 +proc url_PostDescribeVpnGateways_621593(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -86066,7 +86093,7 @@ proc url_PostDescribeVpnGateways_621591(protocol: Scheme; host: string; base: st else: result.path = base & route -proc validate_PostDescribeVpnGateways_621590(path: JsonNode; query: JsonNode; +proc validate_PostDescribeVpnGateways_621592(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Describes one or more of your virtual private gateways.

    For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.

    ## @@ -86078,16 +86105,16 @@ proc validate_PostDescribeVpnGateways_621590(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621592 = query.getOrDefault("Action") - valid_621592 = validateParameter(valid_621592, JString, required = true, + var valid_621594 = query.getOrDefault("Action") + valid_621594 = validateParameter(valid_621594, JString, required = true, default = newJString("DescribeVpnGateways")) - if valid_621592 != nil: - section.add "Action", valid_621592 - var valid_621593 = query.getOrDefault("Version") - valid_621593 = validateParameter(valid_621593, JString, required = true, + if valid_621594 != nil: + section.add "Action", valid_621594 + var valid_621595 = query.getOrDefault("Version") + valid_621595 = validateParameter(valid_621595, JString, required = true, default = newJString("2016-11-15")) - if valid_621593 != nil: - section.add "Version", valid_621593 + if valid_621595 != nil: + section.add "Version", valid_621595 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -86098,41 +86125,41 @@ proc validate_PostDescribeVpnGateways_621590(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621594 = header.getOrDefault("X-Amz-Signature") - valid_621594 = validateParameter(valid_621594, JString, required = false, - default = nil) - if valid_621594 != nil: - section.add "X-Amz-Signature", valid_621594 - var valid_621595 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621595 = validateParameter(valid_621595, JString, required = false, - default = nil) - if valid_621595 != nil: - section.add "X-Amz-Content-Sha256", valid_621595 - var valid_621596 = header.getOrDefault("X-Amz-Date") + var valid_621596 = header.getOrDefault("X-Amz-Signature") valid_621596 = validateParameter(valid_621596, JString, required = false, default = nil) if valid_621596 != nil: - section.add "X-Amz-Date", valid_621596 - var valid_621597 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621596 + var valid_621597 = header.getOrDefault("X-Amz-Content-Sha256") valid_621597 = validateParameter(valid_621597, JString, required = false, default = nil) if valid_621597 != nil: - section.add "X-Amz-Credential", valid_621597 - var valid_621598 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621597 + var valid_621598 = header.getOrDefault("X-Amz-Date") valid_621598 = validateParameter(valid_621598, JString, required = false, default = nil) if valid_621598 != nil: - section.add "X-Amz-Security-Token", valid_621598 - var valid_621599 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621598 + var valid_621599 = header.getOrDefault("X-Amz-Credential") valid_621599 = validateParameter(valid_621599, JString, required = false, default = nil) if valid_621599 != nil: - section.add "X-Amz-Algorithm", valid_621599 - var valid_621600 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621599 + var valid_621600 = header.getOrDefault("X-Amz-Security-Token") valid_621600 = validateParameter(valid_621600, JString, required = false, default = nil) if valid_621600 != nil: - section.add "X-Amz-SignedHeaders", valid_621600 + section.add "X-Amz-Security-Token", valid_621600 + var valid_621601 = header.getOrDefault("X-Amz-Algorithm") + valid_621601 = validateParameter(valid_621601, JString, required = false, + default = nil) + if valid_621601 != nil: + section.add "X-Amz-Algorithm", valid_621601 + var valid_621602 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621602 = validateParameter(valid_621602, JString, required = false, + default = nil) + if valid_621602 != nil: + section.add "X-Amz-SignedHeaders", valid_621602 result.add "header", section ## parameters in `formData` object: ## VpnGatewayId: JArray @@ -86142,38 +86169,38 @@ proc validate_PostDescribeVpnGateways_621590(path: JsonNode; query: JsonNode; ## Filter: JArray ## :

    One or more filters.

    section = newJObject() - var valid_621601 = formData.getOrDefault("VpnGatewayId") - valid_621601 = validateParameter(valid_621601, JArray, required = false, - default = nil) - if valid_621601 != nil: - section.add "VpnGatewayId", valid_621601 - var valid_621602 = formData.getOrDefault("DryRun") - valid_621602 = validateParameter(valid_621602, JBool, required = false, default = nil) - if valid_621602 != nil: - section.add "DryRun", valid_621602 - var valid_621603 = formData.getOrDefault("Filter") + var valid_621603 = formData.getOrDefault("VpnGatewayId") valid_621603 = validateParameter(valid_621603, JArray, required = false, default = nil) if valid_621603 != nil: - section.add "Filter", valid_621603 + section.add "VpnGatewayId", valid_621603 + var valid_621604 = formData.getOrDefault("DryRun") + valid_621604 = validateParameter(valid_621604, JBool, required = false, default = nil) + if valid_621604 != nil: + section.add "DryRun", valid_621604 + var valid_621605 = formData.getOrDefault("Filter") + valid_621605 = validateParameter(valid_621605, JArray, required = false, + default = nil) + if valid_621605 != nil: + section.add "Filter", valid_621605 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621604: Call_PostDescribeVpnGateways_621589; path: JsonNode; +proc call*(call_621606: Call_PostDescribeVpnGateways_621591; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Describes one or more of your virtual private gateways.

    For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.

    ## - let valid = call_621604.validator(path, query, header, formData, body) - let scheme = call_621604.pickScheme + let valid = call_621606.validator(path, query, header, formData, body) + let scheme = call_621606.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621604.url(scheme.get, call_621604.host, call_621604.base, - call_621604.route, valid.getOrDefault("path"), + let url = call_621606.url(scheme.get, call_621606.host, call_621606.base, + call_621606.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621604, url, valid) + result = atozHook(call_621606, url, valid) -proc call*(call_621605: Call_PostDescribeVpnGateways_621589; +proc call*(call_621607: Call_PostDescribeVpnGateways_621591; VpnGatewayId: JsonNode = nil; DryRun: bool = false; Action: string = "DescribeVpnGateways"; Version: string = "2016-11-15"; Filter: JsonNode = nil): Recallable = @@ -86187,25 +86214,25 @@ proc call*(call_621605: Call_PostDescribeVpnGateways_621589; ## Version: string (required) ## Filter: JArray ## :

    One or more filters.

    - var query_621606 = newJObject() - var formData_621607 = newJObject() + var query_621608 = newJObject() + var formData_621609 = newJObject() if VpnGatewayId != nil: - formData_621607.add "VpnGatewayId", VpnGatewayId - add(formData_621607, "DryRun", newJBool(DryRun)) - add(query_621606, "Action", newJString(Action)) - add(query_621606, "Version", newJString(Version)) + formData_621609.add "VpnGatewayId", VpnGatewayId + add(formData_621609, "DryRun", newJBool(DryRun)) + add(query_621608, "Action", newJString(Action)) + add(query_621608, "Version", newJString(Version)) if Filter != nil: - formData_621607.add "Filter", Filter - result = call_621605.call(nil, query_621606, nil, formData_621607, nil) + formData_621609.add "Filter", Filter + result = call_621607.call(nil, query_621608, nil, formData_621609, nil) -var postDescribeVpnGateways* = Call_PostDescribeVpnGateways_621589( +var postDescribeVpnGateways* = Call_PostDescribeVpnGateways_621591( name: "postDescribeVpnGateways", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DescribeVpnGateways", - validator: validate_PostDescribeVpnGateways_621590, base: "/", - url: url_PostDescribeVpnGateways_621591, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDescribeVpnGateways_621592, base: "/", + url: url_PostDescribeVpnGateways_621593, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDescribeVpnGateways_621571 = ref object of OpenApiRestCall_610658 -proc url_GetDescribeVpnGateways_621573(protocol: Scheme; host: string; base: string; + Call_GetDescribeVpnGateways_621573 = ref object of OpenApiRestCall_610658 +proc url_GetDescribeVpnGateways_621575(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -86215,7 +86242,7 @@ proc url_GetDescribeVpnGateways_621573(protocol: Scheme; host: string; base: str else: result.path = base & route -proc validate_GetDescribeVpnGateways_621572(path: JsonNode; query: JsonNode; +proc validate_GetDescribeVpnGateways_621574(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Describes one or more of your virtual private gateways.

    For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.

    ## @@ -86233,30 +86260,30 @@ proc validate_GetDescribeVpnGateways_621572(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621574 = query.getOrDefault("DryRun") - valid_621574 = validateParameter(valid_621574, JBool, required = false, default = nil) - if valid_621574 != nil: - section.add "DryRun", valid_621574 - var valid_621575 = query.getOrDefault("Filter") - valid_621575 = validateParameter(valid_621575, JArray, required = false, + var valid_621576 = query.getOrDefault("DryRun") + valid_621576 = validateParameter(valid_621576, JBool, required = false, default = nil) + if valid_621576 != nil: + section.add "DryRun", valid_621576 + var valid_621577 = query.getOrDefault("Filter") + valid_621577 = validateParameter(valid_621577, JArray, required = false, default = nil) - if valid_621575 != nil: - section.add "Filter", valid_621575 - var valid_621576 = query.getOrDefault("VpnGatewayId") - valid_621576 = validateParameter(valid_621576, JArray, required = false, + if valid_621577 != nil: + section.add "Filter", valid_621577 + var valid_621578 = query.getOrDefault("VpnGatewayId") + valid_621578 = validateParameter(valid_621578, JArray, required = false, default = nil) - if valid_621576 != nil: - section.add "VpnGatewayId", valid_621576 - var valid_621577 = query.getOrDefault("Action") - valid_621577 = validateParameter(valid_621577, JString, required = true, + if valid_621578 != nil: + section.add "VpnGatewayId", valid_621578 + var valid_621579 = query.getOrDefault("Action") + valid_621579 = validateParameter(valid_621579, JString, required = true, default = newJString("DescribeVpnGateways")) - if valid_621577 != nil: - section.add "Action", valid_621577 - var valid_621578 = query.getOrDefault("Version") - valid_621578 = validateParameter(valid_621578, JString, required = true, + if valid_621579 != nil: + section.add "Action", valid_621579 + var valid_621580 = query.getOrDefault("Version") + valid_621580 = validateParameter(valid_621580, JString, required = true, default = newJString("2016-11-15")) - if valid_621578 != nil: - section.add "Version", valid_621578 + if valid_621580 != nil: + section.add "Version", valid_621580 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -86267,61 +86294,61 @@ proc validate_GetDescribeVpnGateways_621572(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621579 = header.getOrDefault("X-Amz-Signature") - valid_621579 = validateParameter(valid_621579, JString, required = false, - default = nil) - if valid_621579 != nil: - section.add "X-Amz-Signature", valid_621579 - var valid_621580 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621580 = validateParameter(valid_621580, JString, required = false, - default = nil) - if valid_621580 != nil: - section.add "X-Amz-Content-Sha256", valid_621580 - var valid_621581 = header.getOrDefault("X-Amz-Date") + var valid_621581 = header.getOrDefault("X-Amz-Signature") valid_621581 = validateParameter(valid_621581, JString, required = false, default = nil) if valid_621581 != nil: - section.add "X-Amz-Date", valid_621581 - var valid_621582 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621581 + var valid_621582 = header.getOrDefault("X-Amz-Content-Sha256") valid_621582 = validateParameter(valid_621582, JString, required = false, default = nil) if valid_621582 != nil: - section.add "X-Amz-Credential", valid_621582 - var valid_621583 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621582 + var valid_621583 = header.getOrDefault("X-Amz-Date") valid_621583 = validateParameter(valid_621583, JString, required = false, default = nil) if valid_621583 != nil: - section.add "X-Amz-Security-Token", valid_621583 - var valid_621584 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621583 + var valid_621584 = header.getOrDefault("X-Amz-Credential") valid_621584 = validateParameter(valid_621584, JString, required = false, default = nil) if valid_621584 != nil: - section.add "X-Amz-Algorithm", valid_621584 - var valid_621585 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621584 + var valid_621585 = header.getOrDefault("X-Amz-Security-Token") valid_621585 = validateParameter(valid_621585, JString, required = false, default = nil) if valid_621585 != nil: - section.add "X-Amz-SignedHeaders", valid_621585 + section.add "X-Amz-Security-Token", valid_621585 + var valid_621586 = header.getOrDefault("X-Amz-Algorithm") + valid_621586 = validateParameter(valid_621586, JString, required = false, + default = nil) + if valid_621586 != nil: + section.add "X-Amz-Algorithm", valid_621586 + var valid_621587 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621587 = validateParameter(valid_621587, JString, required = false, + default = nil) + if valid_621587 != nil: + section.add "X-Amz-SignedHeaders", valid_621587 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621586: Call_GetDescribeVpnGateways_621571; path: JsonNode; +proc call*(call_621588: Call_GetDescribeVpnGateways_621573; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Describes one or more of your virtual private gateways.

    For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.

    ## - let valid = call_621586.validator(path, query, header, formData, body) - let scheme = call_621586.pickScheme + let valid = call_621588.validator(path, query, header, formData, body) + let scheme = call_621588.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621586.url(scheme.get, call_621586.host, call_621586.base, - call_621586.route, valid.getOrDefault("path"), + let url = call_621588.url(scheme.get, call_621588.host, call_621588.base, + call_621588.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621586, url, valid) + result = atozHook(call_621588, url, valid) -proc call*(call_621587: Call_GetDescribeVpnGateways_621571; DryRun: bool = false; +proc call*(call_621589: Call_GetDescribeVpnGateways_621573; DryRun: bool = false; Filter: JsonNode = nil; VpnGatewayId: JsonNode = nil; Action: string = "DescribeVpnGateways"; Version: string = "2016-11-15"): Recallable = ## getDescribeVpnGateways @@ -86334,24 +86361,24 @@ proc call*(call_621587: Call_GetDescribeVpnGateways_621571; DryRun: bool = false ## :

    One or more virtual private gateway IDs.

    Default: Describes all your virtual private gateways.

    ## Action: string (required) ## Version: string (required) - var query_621588 = newJObject() - add(query_621588, "DryRun", newJBool(DryRun)) + var query_621590 = newJObject() + add(query_621590, "DryRun", newJBool(DryRun)) if Filter != nil: - query_621588.add "Filter", Filter + query_621590.add "Filter", Filter if VpnGatewayId != nil: - query_621588.add "VpnGatewayId", VpnGatewayId - add(query_621588, "Action", newJString(Action)) - add(query_621588, "Version", newJString(Version)) - result = call_621587.call(nil, query_621588, nil, nil, nil) + query_621590.add "VpnGatewayId", VpnGatewayId + add(query_621590, "Action", newJString(Action)) + add(query_621590, "Version", newJString(Version)) + result = call_621589.call(nil, query_621590, nil, nil, nil) -var getDescribeVpnGateways* = Call_GetDescribeVpnGateways_621571( +var getDescribeVpnGateways* = Call_GetDescribeVpnGateways_621573( name: "getDescribeVpnGateways", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DescribeVpnGateways", - validator: validate_GetDescribeVpnGateways_621572, base: "/", - url: url_GetDescribeVpnGateways_621573, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDescribeVpnGateways_621574, base: "/", + url: url_GetDescribeVpnGateways_621575, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDetachClassicLinkVpc_621626 = ref object of OpenApiRestCall_610658 -proc url_PostDetachClassicLinkVpc_621628(protocol: Scheme; host: string; + Call_PostDetachClassicLinkVpc_621628 = ref object of OpenApiRestCall_610658 +proc url_PostDetachClassicLinkVpc_621630(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -86362,7 +86389,7 @@ proc url_PostDetachClassicLinkVpc_621628(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDetachClassicLinkVpc_621627(path: JsonNode; query: JsonNode; +proc validate_PostDetachClassicLinkVpc_621629(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Unlinks (detaches) a linked EC2-Classic instance from a VPC. After the instance has been unlinked, the VPC security groups are no longer associated with it. An instance is automatically unlinked from a VPC when it's stopped. ## @@ -86374,16 +86401,16 @@ proc validate_PostDetachClassicLinkVpc_621627(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621629 = query.getOrDefault("Action") - valid_621629 = validateParameter(valid_621629, JString, required = true, + var valid_621631 = query.getOrDefault("Action") + valid_621631 = validateParameter(valid_621631, JString, required = true, default = newJString("DetachClassicLinkVpc")) - if valid_621629 != nil: - section.add "Action", valid_621629 - var valid_621630 = query.getOrDefault("Version") - valid_621630 = validateParameter(valid_621630, JString, required = true, + if valid_621631 != nil: + section.add "Action", valid_621631 + var valid_621632 = query.getOrDefault("Version") + valid_621632 = validateParameter(valid_621632, JString, required = true, default = newJString("2016-11-15")) - if valid_621630 != nil: - section.add "Version", valid_621630 + if valid_621632 != nil: + section.add "Version", valid_621632 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -86394,41 +86421,41 @@ proc validate_PostDetachClassicLinkVpc_621627(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621631 = header.getOrDefault("X-Amz-Signature") - valid_621631 = validateParameter(valid_621631, JString, required = false, - default = nil) - if valid_621631 != nil: - section.add "X-Amz-Signature", valid_621631 - var valid_621632 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621632 = validateParameter(valid_621632, JString, required = false, - default = nil) - if valid_621632 != nil: - section.add "X-Amz-Content-Sha256", valid_621632 - var valid_621633 = header.getOrDefault("X-Amz-Date") + var valid_621633 = header.getOrDefault("X-Amz-Signature") valid_621633 = validateParameter(valid_621633, JString, required = false, default = nil) if valid_621633 != nil: - section.add "X-Amz-Date", valid_621633 - var valid_621634 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621633 + var valid_621634 = header.getOrDefault("X-Amz-Content-Sha256") valid_621634 = validateParameter(valid_621634, JString, required = false, default = nil) if valid_621634 != nil: - section.add "X-Amz-Credential", valid_621634 - var valid_621635 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621634 + var valid_621635 = header.getOrDefault("X-Amz-Date") valid_621635 = validateParameter(valid_621635, JString, required = false, default = nil) if valid_621635 != nil: - section.add "X-Amz-Security-Token", valid_621635 - var valid_621636 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621635 + var valid_621636 = header.getOrDefault("X-Amz-Credential") valid_621636 = validateParameter(valid_621636, JString, required = false, default = nil) if valid_621636 != nil: - section.add "X-Amz-Algorithm", valid_621636 - var valid_621637 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621636 + var valid_621637 = header.getOrDefault("X-Amz-Security-Token") valid_621637 = validateParameter(valid_621637, JString, required = false, default = nil) if valid_621637 != nil: - section.add "X-Amz-SignedHeaders", valid_621637 + section.add "X-Amz-Security-Token", valid_621637 + var valid_621638 = header.getOrDefault("X-Amz-Algorithm") + valid_621638 = validateParameter(valid_621638, JString, required = false, + default = nil) + if valid_621638 != nil: + section.add "X-Amz-Algorithm", valid_621638 + var valid_621639 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621639 = validateParameter(valid_621639, JString, required = false, + default = nil) + if valid_621639 != nil: + section.add "X-Amz-SignedHeaders", valid_621639 result.add "header", section ## parameters in `formData` object: ## VpcId: JString (required) @@ -86440,38 +86467,38 @@ proc validate_PostDetachClassicLinkVpc_621627(path: JsonNode; query: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `VpcId` field" - var valid_621638 = formData.getOrDefault("VpcId") - valid_621638 = validateParameter(valid_621638, JString, required = true, - default = nil) - if valid_621638 != nil: - section.add "VpcId", valid_621638 - var valid_621639 = formData.getOrDefault("DryRun") - valid_621639 = validateParameter(valid_621639, JBool, required = false, default = nil) - if valid_621639 != nil: - section.add "DryRun", valid_621639 - var valid_621640 = formData.getOrDefault("InstanceId") + var valid_621640 = formData.getOrDefault("VpcId") valid_621640 = validateParameter(valid_621640, JString, required = true, default = nil) if valid_621640 != nil: - section.add "InstanceId", valid_621640 + section.add "VpcId", valid_621640 + var valid_621641 = formData.getOrDefault("DryRun") + valid_621641 = validateParameter(valid_621641, JBool, required = false, default = nil) + if valid_621641 != nil: + section.add "DryRun", valid_621641 + var valid_621642 = formData.getOrDefault("InstanceId") + valid_621642 = validateParameter(valid_621642, JString, required = true, + default = nil) + if valid_621642 != nil: + section.add "InstanceId", valid_621642 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621641: Call_PostDetachClassicLinkVpc_621626; path: JsonNode; +proc call*(call_621643: Call_PostDetachClassicLinkVpc_621628; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Unlinks (detaches) a linked EC2-Classic instance from a VPC. After the instance has been unlinked, the VPC security groups are no longer associated with it. An instance is automatically unlinked from a VPC when it's stopped. ## - let valid = call_621641.validator(path, query, header, formData, body) - let scheme = call_621641.pickScheme + let valid = call_621643.validator(path, query, header, formData, body) + let scheme = call_621643.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621641.url(scheme.get, call_621641.host, call_621641.base, - call_621641.route, valid.getOrDefault("path"), + let url = call_621643.url(scheme.get, call_621643.host, call_621643.base, + call_621643.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621641, url, valid) + result = atozHook(call_621643, url, valid) -proc call*(call_621642: Call_PostDetachClassicLinkVpc_621626; VpcId: string; +proc call*(call_621644: Call_PostDetachClassicLinkVpc_621628; VpcId: string; InstanceId: string; DryRun: bool = false; Action: string = "DetachClassicLinkVpc"; Version: string = "2016-11-15"): Recallable = ## postDetachClassicLinkVpc @@ -86484,23 +86511,23 @@ proc call*(call_621642: Call_PostDetachClassicLinkVpc_621626; VpcId: string; ## : The ID of the instance to unlink from the VPC. ## Action: string (required) ## Version: string (required) - var query_621643 = newJObject() - var formData_621644 = newJObject() - add(formData_621644, "VpcId", newJString(VpcId)) - add(formData_621644, "DryRun", newJBool(DryRun)) - add(formData_621644, "InstanceId", newJString(InstanceId)) - add(query_621643, "Action", newJString(Action)) - add(query_621643, "Version", newJString(Version)) - result = call_621642.call(nil, query_621643, nil, formData_621644, nil) + var query_621645 = newJObject() + var formData_621646 = newJObject() + add(formData_621646, "VpcId", newJString(VpcId)) + add(formData_621646, "DryRun", newJBool(DryRun)) + add(formData_621646, "InstanceId", newJString(InstanceId)) + add(query_621645, "Action", newJString(Action)) + add(query_621645, "Version", newJString(Version)) + result = call_621644.call(nil, query_621645, nil, formData_621646, nil) -var postDetachClassicLinkVpc* = Call_PostDetachClassicLinkVpc_621626( +var postDetachClassicLinkVpc* = Call_PostDetachClassicLinkVpc_621628( name: "postDetachClassicLinkVpc", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DetachClassicLinkVpc", - validator: validate_PostDetachClassicLinkVpc_621627, base: "/", - url: url_PostDetachClassicLinkVpc_621628, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDetachClassicLinkVpc_621629, base: "/", + url: url_PostDetachClassicLinkVpc_621630, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDetachClassicLinkVpc_621608 = ref object of OpenApiRestCall_610658 -proc url_GetDetachClassicLinkVpc_621610(protocol: Scheme; host: string; base: string; + Call_GetDetachClassicLinkVpc_621610 = ref object of OpenApiRestCall_610658 +proc url_GetDetachClassicLinkVpc_621612(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -86511,7 +86538,7 @@ proc url_GetDetachClassicLinkVpc_621610(protocol: Scheme; host: string; base: st else: result.path = base & route -proc validate_GetDetachClassicLinkVpc_621609(path: JsonNode; query: JsonNode; +proc validate_GetDetachClassicLinkVpc_621611(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Unlinks (detaches) a linked EC2-Classic instance from a VPC. After the instance has been unlinked, the VPC security groups are no longer associated with it. An instance is automatically unlinked from a VPC when it's stopped. ## @@ -86529,31 +86556,31 @@ proc validate_GetDetachClassicLinkVpc_621609(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621611 = query.getOrDefault("DryRun") - valid_621611 = validateParameter(valid_621611, JBool, required = false, default = nil) - if valid_621611 != nil: - section.add "DryRun", valid_621611 - assert query != nil, "query argument is necessary due to required `VpcId` field" - var valid_621612 = query.getOrDefault("VpcId") - valid_621612 = validateParameter(valid_621612, JString, required = true, - default = nil) - if valid_621612 != nil: - section.add "VpcId", valid_621612 - var valid_621613 = query.getOrDefault("InstanceId") - valid_621613 = validateParameter(valid_621613, JString, required = true, - default = nil) + var valid_621613 = query.getOrDefault("DryRun") + valid_621613 = validateParameter(valid_621613, JBool, required = false, default = nil) if valid_621613 != nil: - section.add "InstanceId", valid_621613 - var valid_621614 = query.getOrDefault("Action") + section.add "DryRun", valid_621613 + assert query != nil, "query argument is necessary due to required `VpcId` field" + var valid_621614 = query.getOrDefault("VpcId") valid_621614 = validateParameter(valid_621614, JString, required = true, - default = newJString("DetachClassicLinkVpc")) + default = nil) if valid_621614 != nil: - section.add "Action", valid_621614 - var valid_621615 = query.getOrDefault("Version") + section.add "VpcId", valid_621614 + var valid_621615 = query.getOrDefault("InstanceId") valid_621615 = validateParameter(valid_621615, JString, required = true, - default = newJString("2016-11-15")) + default = nil) if valid_621615 != nil: - section.add "Version", valid_621615 + section.add "InstanceId", valid_621615 + var valid_621616 = query.getOrDefault("Action") + valid_621616 = validateParameter(valid_621616, JString, required = true, + default = newJString("DetachClassicLinkVpc")) + if valid_621616 != nil: + section.add "Action", valid_621616 + var valid_621617 = query.getOrDefault("Version") + valid_621617 = validateParameter(valid_621617, JString, required = true, + default = newJString("2016-11-15")) + if valid_621617 != nil: + section.add "Version", valid_621617 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -86564,61 +86591,61 @@ proc validate_GetDetachClassicLinkVpc_621609(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621616 = header.getOrDefault("X-Amz-Signature") - valid_621616 = validateParameter(valid_621616, JString, required = false, - default = nil) - if valid_621616 != nil: - section.add "X-Amz-Signature", valid_621616 - var valid_621617 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621617 = validateParameter(valid_621617, JString, required = false, - default = nil) - if valid_621617 != nil: - section.add "X-Amz-Content-Sha256", valid_621617 - var valid_621618 = header.getOrDefault("X-Amz-Date") + var valid_621618 = header.getOrDefault("X-Amz-Signature") valid_621618 = validateParameter(valid_621618, JString, required = false, default = nil) if valid_621618 != nil: - section.add "X-Amz-Date", valid_621618 - var valid_621619 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621618 + var valid_621619 = header.getOrDefault("X-Amz-Content-Sha256") valid_621619 = validateParameter(valid_621619, JString, required = false, default = nil) if valid_621619 != nil: - section.add "X-Amz-Credential", valid_621619 - var valid_621620 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621619 + var valid_621620 = header.getOrDefault("X-Amz-Date") valid_621620 = validateParameter(valid_621620, JString, required = false, default = nil) if valid_621620 != nil: - section.add "X-Amz-Security-Token", valid_621620 - var valid_621621 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621620 + var valid_621621 = header.getOrDefault("X-Amz-Credential") valid_621621 = validateParameter(valid_621621, JString, required = false, default = nil) if valid_621621 != nil: - section.add "X-Amz-Algorithm", valid_621621 - var valid_621622 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621621 + var valid_621622 = header.getOrDefault("X-Amz-Security-Token") valid_621622 = validateParameter(valid_621622, JString, required = false, default = nil) if valid_621622 != nil: - section.add "X-Amz-SignedHeaders", valid_621622 + section.add "X-Amz-Security-Token", valid_621622 + var valid_621623 = header.getOrDefault("X-Amz-Algorithm") + valid_621623 = validateParameter(valid_621623, JString, required = false, + default = nil) + if valid_621623 != nil: + section.add "X-Amz-Algorithm", valid_621623 + var valid_621624 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621624 = validateParameter(valid_621624, JString, required = false, + default = nil) + if valid_621624 != nil: + section.add "X-Amz-SignedHeaders", valid_621624 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621623: Call_GetDetachClassicLinkVpc_621608; path: JsonNode; +proc call*(call_621625: Call_GetDetachClassicLinkVpc_621610; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Unlinks (detaches) a linked EC2-Classic instance from a VPC. After the instance has been unlinked, the VPC security groups are no longer associated with it. An instance is automatically unlinked from a VPC when it's stopped. ## - let valid = call_621623.validator(path, query, header, formData, body) - let scheme = call_621623.pickScheme + let valid = call_621625.validator(path, query, header, formData, body) + let scheme = call_621625.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621623.url(scheme.get, call_621623.host, call_621623.base, - call_621623.route, valid.getOrDefault("path"), + let url = call_621625.url(scheme.get, call_621625.host, call_621625.base, + call_621625.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621623, url, valid) + result = atozHook(call_621625, url, valid) -proc call*(call_621624: Call_GetDetachClassicLinkVpc_621608; VpcId: string; +proc call*(call_621626: Call_GetDetachClassicLinkVpc_621610; VpcId: string; InstanceId: string; DryRun: bool = false; Action: string = "DetachClassicLinkVpc"; Version: string = "2016-11-15"): Recallable = ## getDetachClassicLinkVpc @@ -86631,22 +86658,22 @@ proc call*(call_621624: Call_GetDetachClassicLinkVpc_621608; VpcId: string; ## : The ID of the instance to unlink from the VPC. ## Action: string (required) ## Version: string (required) - var query_621625 = newJObject() - add(query_621625, "DryRun", newJBool(DryRun)) - add(query_621625, "VpcId", newJString(VpcId)) - add(query_621625, "InstanceId", newJString(InstanceId)) - add(query_621625, "Action", newJString(Action)) - add(query_621625, "Version", newJString(Version)) - result = call_621624.call(nil, query_621625, nil, nil, nil) + var query_621627 = newJObject() + add(query_621627, "DryRun", newJBool(DryRun)) + add(query_621627, "VpcId", newJString(VpcId)) + add(query_621627, "InstanceId", newJString(InstanceId)) + add(query_621627, "Action", newJString(Action)) + add(query_621627, "Version", newJString(Version)) + result = call_621626.call(nil, query_621627, nil, nil, nil) -var getDetachClassicLinkVpc* = Call_GetDetachClassicLinkVpc_621608( +var getDetachClassicLinkVpc* = Call_GetDetachClassicLinkVpc_621610( name: "getDetachClassicLinkVpc", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DetachClassicLinkVpc", - validator: validate_GetDetachClassicLinkVpc_621609, base: "/", - url: url_GetDetachClassicLinkVpc_621610, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDetachClassicLinkVpc_621611, base: "/", + url: url_GetDetachClassicLinkVpc_621612, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDetachInternetGateway_621663 = ref object of OpenApiRestCall_610658 -proc url_PostDetachInternetGateway_621665(protocol: Scheme; host: string; + Call_PostDetachInternetGateway_621665 = ref object of OpenApiRestCall_610658 +proc url_PostDetachInternetGateway_621667(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -86656,7 +86683,7 @@ proc url_PostDetachInternetGateway_621665(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDetachInternetGateway_621664(path: JsonNode; query: JsonNode; +proc validate_PostDetachInternetGateway_621666(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Detaches an internet gateway from a VPC, disabling connectivity between the internet and the VPC. The VPC must not contain any running instances with Elastic IP addresses or public IPv4 addresses. ## @@ -86668,16 +86695,16 @@ proc validate_PostDetachInternetGateway_621664(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621666 = query.getOrDefault("Action") - valid_621666 = validateParameter(valid_621666, JString, required = true, + var valid_621668 = query.getOrDefault("Action") + valid_621668 = validateParameter(valid_621668, JString, required = true, default = newJString("DetachInternetGateway")) - if valid_621666 != nil: - section.add "Action", valid_621666 - var valid_621667 = query.getOrDefault("Version") - valid_621667 = validateParameter(valid_621667, JString, required = true, + if valid_621668 != nil: + section.add "Action", valid_621668 + var valid_621669 = query.getOrDefault("Version") + valid_621669 = validateParameter(valid_621669, JString, required = true, default = newJString("2016-11-15")) - if valid_621667 != nil: - section.add "Version", valid_621667 + if valid_621669 != nil: + section.add "Version", valid_621669 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -86688,41 +86715,41 @@ proc validate_PostDetachInternetGateway_621664(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621668 = header.getOrDefault("X-Amz-Signature") - valid_621668 = validateParameter(valid_621668, JString, required = false, - default = nil) - if valid_621668 != nil: - section.add "X-Amz-Signature", valid_621668 - var valid_621669 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621669 = validateParameter(valid_621669, JString, required = false, - default = nil) - if valid_621669 != nil: - section.add "X-Amz-Content-Sha256", valid_621669 - var valid_621670 = header.getOrDefault("X-Amz-Date") + var valid_621670 = header.getOrDefault("X-Amz-Signature") valid_621670 = validateParameter(valid_621670, JString, required = false, default = nil) if valid_621670 != nil: - section.add "X-Amz-Date", valid_621670 - var valid_621671 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621670 + var valid_621671 = header.getOrDefault("X-Amz-Content-Sha256") valid_621671 = validateParameter(valid_621671, JString, required = false, default = nil) if valid_621671 != nil: - section.add "X-Amz-Credential", valid_621671 - var valid_621672 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621671 + var valid_621672 = header.getOrDefault("X-Amz-Date") valid_621672 = validateParameter(valid_621672, JString, required = false, default = nil) if valid_621672 != nil: - section.add "X-Amz-Security-Token", valid_621672 - var valid_621673 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621672 + var valid_621673 = header.getOrDefault("X-Amz-Credential") valid_621673 = validateParameter(valid_621673, JString, required = false, default = nil) if valid_621673 != nil: - section.add "X-Amz-Algorithm", valid_621673 - var valid_621674 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621673 + var valid_621674 = header.getOrDefault("X-Amz-Security-Token") valid_621674 = validateParameter(valid_621674, JString, required = false, default = nil) if valid_621674 != nil: - section.add "X-Amz-SignedHeaders", valid_621674 + section.add "X-Amz-Security-Token", valid_621674 + var valid_621675 = header.getOrDefault("X-Amz-Algorithm") + valid_621675 = validateParameter(valid_621675, JString, required = false, + default = nil) + if valid_621675 != nil: + section.add "X-Amz-Algorithm", valid_621675 + var valid_621676 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621676 = validateParameter(valid_621676, JString, required = false, + default = nil) + if valid_621676 != nil: + section.add "X-Amz-SignedHeaders", valid_621676 result.add "header", section ## parameters in `formData` object: ## VpcId: JString (required) @@ -86734,38 +86761,38 @@ proc validate_PostDetachInternetGateway_621664(path: JsonNode; query: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `VpcId` field" - var valid_621675 = formData.getOrDefault("VpcId") - valid_621675 = validateParameter(valid_621675, JString, required = true, - default = nil) - if valid_621675 != nil: - section.add "VpcId", valid_621675 - var valid_621676 = formData.getOrDefault("InternetGatewayId") - valid_621676 = validateParameter(valid_621676, JString, required = true, + var valid_621677 = formData.getOrDefault("VpcId") + valid_621677 = validateParameter(valid_621677, JString, required = true, default = nil) - if valid_621676 != nil: - section.add "InternetGatewayId", valid_621676 - var valid_621677 = formData.getOrDefault("DryRun") - valid_621677 = validateParameter(valid_621677, JBool, required = false, default = nil) if valid_621677 != nil: - section.add "DryRun", valid_621677 + section.add "VpcId", valid_621677 + var valid_621678 = formData.getOrDefault("InternetGatewayId") + valid_621678 = validateParameter(valid_621678, JString, required = true, + default = nil) + if valid_621678 != nil: + section.add "InternetGatewayId", valid_621678 + var valid_621679 = formData.getOrDefault("DryRun") + valid_621679 = validateParameter(valid_621679, JBool, required = false, default = nil) + if valid_621679 != nil: + section.add "DryRun", valid_621679 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621678: Call_PostDetachInternetGateway_621663; path: JsonNode; +proc call*(call_621680: Call_PostDetachInternetGateway_621665; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Detaches an internet gateway from a VPC, disabling connectivity between the internet and the VPC. The VPC must not contain any running instances with Elastic IP addresses or public IPv4 addresses. ## - let valid = call_621678.validator(path, query, header, formData, body) - let scheme = call_621678.pickScheme + let valid = call_621680.validator(path, query, header, formData, body) + let scheme = call_621680.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621678.url(scheme.get, call_621678.host, call_621678.base, - call_621678.route, valid.getOrDefault("path"), + let url = call_621680.url(scheme.get, call_621680.host, call_621680.base, + call_621680.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621678, url, valid) + result = atozHook(call_621680, url, valid) -proc call*(call_621679: Call_PostDetachInternetGateway_621663; VpcId: string; +proc call*(call_621681: Call_PostDetachInternetGateway_621665; VpcId: string; InternetGatewayId: string; DryRun: bool = false; Action: string = "DetachInternetGateway"; Version: string = "2016-11-15"): Recallable = ## postDetachInternetGateway @@ -86778,24 +86805,24 @@ proc call*(call_621679: Call_PostDetachInternetGateway_621663; VpcId: string; ## : 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. ## Action: string (required) ## Version: string (required) - var query_621680 = newJObject() - var formData_621681 = newJObject() - add(formData_621681, "VpcId", newJString(VpcId)) - add(formData_621681, "InternetGatewayId", newJString(InternetGatewayId)) - add(formData_621681, "DryRun", newJBool(DryRun)) - add(query_621680, "Action", newJString(Action)) - add(query_621680, "Version", newJString(Version)) - result = call_621679.call(nil, query_621680, nil, formData_621681, nil) + var query_621682 = newJObject() + var formData_621683 = newJObject() + add(formData_621683, "VpcId", newJString(VpcId)) + add(formData_621683, "InternetGatewayId", newJString(InternetGatewayId)) + add(formData_621683, "DryRun", newJBool(DryRun)) + add(query_621682, "Action", newJString(Action)) + add(query_621682, "Version", newJString(Version)) + result = call_621681.call(nil, query_621682, nil, formData_621683, nil) -var postDetachInternetGateway* = Call_PostDetachInternetGateway_621663( +var postDetachInternetGateway* = Call_PostDetachInternetGateway_621665( name: "postDetachInternetGateway", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DetachInternetGateway", - validator: validate_PostDetachInternetGateway_621664, base: "/", - url: url_PostDetachInternetGateway_621665, + validator: validate_PostDetachInternetGateway_621666, base: "/", + url: url_PostDetachInternetGateway_621667, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDetachInternetGateway_621645 = ref object of OpenApiRestCall_610658 -proc url_GetDetachInternetGateway_621647(protocol: Scheme; host: string; + Call_GetDetachInternetGateway_621647 = ref object of OpenApiRestCall_610658 +proc url_GetDetachInternetGateway_621649(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -86806,7 +86833,7 @@ proc url_GetDetachInternetGateway_621647(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDetachInternetGateway_621646(path: JsonNode; query: JsonNode; +proc validate_GetDetachInternetGateway_621648(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Detaches an internet gateway from a VPC, disabling connectivity between the internet and the VPC. The VPC must not contain any running instances with Elastic IP addresses or public IPv4 addresses. ## @@ -86824,31 +86851,31 @@ proc validate_GetDetachInternetGateway_621646(path: JsonNode; query: JsonNode; ## InternetGatewayId: JString (required) ## : The ID of the internet gateway. section = newJObject() - var valid_621648 = query.getOrDefault("DryRun") - valid_621648 = validateParameter(valid_621648, JBool, required = false, default = nil) - if valid_621648 != nil: - section.add "DryRun", valid_621648 - assert query != nil, "query argument is necessary due to required `VpcId` field" - var valid_621649 = query.getOrDefault("VpcId") - valid_621649 = validateParameter(valid_621649, JString, required = true, - default = nil) - if valid_621649 != nil: - section.add "VpcId", valid_621649 - var valid_621650 = query.getOrDefault("Action") - valid_621650 = validateParameter(valid_621650, JString, required = true, - default = newJString("DetachInternetGateway")) + var valid_621650 = query.getOrDefault("DryRun") + valid_621650 = validateParameter(valid_621650, JBool, required = false, default = nil) if valid_621650 != nil: - section.add "Action", valid_621650 - var valid_621651 = query.getOrDefault("Version") + section.add "DryRun", valid_621650 + assert query != nil, "query argument is necessary due to required `VpcId` field" + var valid_621651 = query.getOrDefault("VpcId") valid_621651 = validateParameter(valid_621651, JString, required = true, - default = newJString("2016-11-15")) + default = nil) if valid_621651 != nil: - section.add "Version", valid_621651 - var valid_621652 = query.getOrDefault("InternetGatewayId") + section.add "VpcId", valid_621651 + var valid_621652 = query.getOrDefault("Action") valid_621652 = validateParameter(valid_621652, JString, required = true, - default = nil) + default = newJString("DetachInternetGateway")) if valid_621652 != nil: - section.add "InternetGatewayId", valid_621652 + section.add "Action", valid_621652 + var valid_621653 = query.getOrDefault("Version") + valid_621653 = validateParameter(valid_621653, JString, required = true, + default = newJString("2016-11-15")) + if valid_621653 != nil: + section.add "Version", valid_621653 + var valid_621654 = query.getOrDefault("InternetGatewayId") + valid_621654 = validateParameter(valid_621654, JString, required = true, + default = nil) + if valid_621654 != nil: + section.add "InternetGatewayId", valid_621654 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -86859,61 +86886,61 @@ proc validate_GetDetachInternetGateway_621646(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621653 = header.getOrDefault("X-Amz-Signature") - valid_621653 = validateParameter(valid_621653, JString, required = false, - default = nil) - if valid_621653 != nil: - section.add "X-Amz-Signature", valid_621653 - var valid_621654 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621654 = validateParameter(valid_621654, JString, required = false, - default = nil) - if valid_621654 != nil: - section.add "X-Amz-Content-Sha256", valid_621654 - var valid_621655 = header.getOrDefault("X-Amz-Date") + var valid_621655 = header.getOrDefault("X-Amz-Signature") valid_621655 = validateParameter(valid_621655, JString, required = false, default = nil) if valid_621655 != nil: - section.add "X-Amz-Date", valid_621655 - var valid_621656 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621655 + var valid_621656 = header.getOrDefault("X-Amz-Content-Sha256") valid_621656 = validateParameter(valid_621656, JString, required = false, default = nil) if valid_621656 != nil: - section.add "X-Amz-Credential", valid_621656 - var valid_621657 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621656 + var valid_621657 = header.getOrDefault("X-Amz-Date") valid_621657 = validateParameter(valid_621657, JString, required = false, default = nil) if valid_621657 != nil: - section.add "X-Amz-Security-Token", valid_621657 - var valid_621658 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621657 + var valid_621658 = header.getOrDefault("X-Amz-Credential") valid_621658 = validateParameter(valid_621658, JString, required = false, default = nil) if valid_621658 != nil: - section.add "X-Amz-Algorithm", valid_621658 - var valid_621659 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621658 + var valid_621659 = header.getOrDefault("X-Amz-Security-Token") valid_621659 = validateParameter(valid_621659, JString, required = false, default = nil) if valid_621659 != nil: - section.add "X-Amz-SignedHeaders", valid_621659 + section.add "X-Amz-Security-Token", valid_621659 + var valid_621660 = header.getOrDefault("X-Amz-Algorithm") + valid_621660 = validateParameter(valid_621660, JString, required = false, + default = nil) + if valid_621660 != nil: + section.add "X-Amz-Algorithm", valid_621660 + var valid_621661 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621661 = validateParameter(valid_621661, JString, required = false, + default = nil) + if valid_621661 != nil: + section.add "X-Amz-SignedHeaders", valid_621661 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621660: Call_GetDetachInternetGateway_621645; path: JsonNode; +proc call*(call_621662: Call_GetDetachInternetGateway_621647; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Detaches an internet gateway from a VPC, disabling connectivity between the internet and the VPC. The VPC must not contain any running instances with Elastic IP addresses or public IPv4 addresses. ## - let valid = call_621660.validator(path, query, header, formData, body) - let scheme = call_621660.pickScheme + let valid = call_621662.validator(path, query, header, formData, body) + let scheme = call_621662.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621660.url(scheme.get, call_621660.host, call_621660.base, - call_621660.route, valid.getOrDefault("path"), + let url = call_621662.url(scheme.get, call_621662.host, call_621662.base, + call_621662.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621660, url, valid) + result = atozHook(call_621662, url, valid) -proc call*(call_621661: Call_GetDetachInternetGateway_621645; VpcId: string; +proc call*(call_621663: Call_GetDetachInternetGateway_621647; VpcId: string; InternetGatewayId: string; DryRun: bool = false; Action: string = "DetachInternetGateway"; Version: string = "2016-11-15"): Recallable = ## getDetachInternetGateway @@ -86926,22 +86953,22 @@ proc call*(call_621661: Call_GetDetachInternetGateway_621645; VpcId: string; ## Version: string (required) ## InternetGatewayId: string (required) ## : The ID of the internet gateway. - var query_621662 = newJObject() - add(query_621662, "DryRun", newJBool(DryRun)) - add(query_621662, "VpcId", newJString(VpcId)) - add(query_621662, "Action", newJString(Action)) - add(query_621662, "Version", newJString(Version)) - add(query_621662, "InternetGatewayId", newJString(InternetGatewayId)) - result = call_621661.call(nil, query_621662, nil, nil, nil) - -var getDetachInternetGateway* = Call_GetDetachInternetGateway_621645( + var query_621664 = newJObject() + add(query_621664, "DryRun", newJBool(DryRun)) + add(query_621664, "VpcId", newJString(VpcId)) + add(query_621664, "Action", newJString(Action)) + add(query_621664, "Version", newJString(Version)) + add(query_621664, "InternetGatewayId", newJString(InternetGatewayId)) + result = call_621663.call(nil, query_621664, nil, nil, nil) + +var getDetachInternetGateway* = Call_GetDetachInternetGateway_621647( name: "getDetachInternetGateway", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DetachInternetGateway", - validator: validate_GetDetachInternetGateway_621646, base: "/", - url: url_GetDetachInternetGateway_621647, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDetachInternetGateway_621648, base: "/", + url: url_GetDetachInternetGateway_621649, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDetachNetworkInterface_621700 = ref object of OpenApiRestCall_610658 -proc url_PostDetachNetworkInterface_621702(protocol: Scheme; host: string; + Call_PostDetachNetworkInterface_621702 = ref object of OpenApiRestCall_610658 +proc url_PostDetachNetworkInterface_621704(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -86951,7 +86978,7 @@ proc url_PostDetachNetworkInterface_621702(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDetachNetworkInterface_621701(path: JsonNode; query: JsonNode; +proc validate_PostDetachNetworkInterface_621703(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Detaches a network interface from an instance. ## @@ -86963,16 +86990,16 @@ proc validate_PostDetachNetworkInterface_621701(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621703 = query.getOrDefault("Action") - valid_621703 = validateParameter(valid_621703, JString, required = true, + var valid_621705 = query.getOrDefault("Action") + valid_621705 = validateParameter(valid_621705, JString, required = true, default = newJString("DetachNetworkInterface")) - if valid_621703 != nil: - section.add "Action", valid_621703 - var valid_621704 = query.getOrDefault("Version") - valid_621704 = validateParameter(valid_621704, JString, required = true, + if valid_621705 != nil: + section.add "Action", valid_621705 + var valid_621706 = query.getOrDefault("Version") + valid_621706 = validateParameter(valid_621706, JString, required = true, default = newJString("2016-11-15")) - if valid_621704 != nil: - section.add "Version", valid_621704 + if valid_621706 != nil: + section.add "Version", valid_621706 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -86983,41 +87010,41 @@ proc validate_PostDetachNetworkInterface_621701(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621705 = header.getOrDefault("X-Amz-Signature") - valid_621705 = validateParameter(valid_621705, JString, required = false, - default = nil) - if valid_621705 != nil: - section.add "X-Amz-Signature", valid_621705 - var valid_621706 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621706 = validateParameter(valid_621706, JString, required = false, - default = nil) - if valid_621706 != nil: - section.add "X-Amz-Content-Sha256", valid_621706 - var valid_621707 = header.getOrDefault("X-Amz-Date") + var valid_621707 = header.getOrDefault("X-Amz-Signature") valid_621707 = validateParameter(valid_621707, JString, required = false, default = nil) if valid_621707 != nil: - section.add "X-Amz-Date", valid_621707 - var valid_621708 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621707 + var valid_621708 = header.getOrDefault("X-Amz-Content-Sha256") valid_621708 = validateParameter(valid_621708, JString, required = false, default = nil) if valid_621708 != nil: - section.add "X-Amz-Credential", valid_621708 - var valid_621709 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621708 + var valid_621709 = header.getOrDefault("X-Amz-Date") valid_621709 = validateParameter(valid_621709, JString, required = false, default = nil) if valid_621709 != nil: - section.add "X-Amz-Security-Token", valid_621709 - var valid_621710 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621709 + var valid_621710 = header.getOrDefault("X-Amz-Credential") valid_621710 = validateParameter(valid_621710, JString, required = false, default = nil) if valid_621710 != nil: - section.add "X-Amz-Algorithm", valid_621710 - var valid_621711 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621710 + var valid_621711 = header.getOrDefault("X-Amz-Security-Token") valid_621711 = validateParameter(valid_621711, JString, required = false, default = nil) if valid_621711 != nil: - section.add "X-Amz-SignedHeaders", valid_621711 + section.add "X-Amz-Security-Token", valid_621711 + var valid_621712 = header.getOrDefault("X-Amz-Algorithm") + valid_621712 = validateParameter(valid_621712, JString, required = false, + default = nil) + if valid_621712 != nil: + section.add "X-Amz-Algorithm", valid_621712 + var valid_621713 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621713 = validateParameter(valid_621713, JString, required = false, + default = nil) + if valid_621713 != nil: + section.add "X-Amz-SignedHeaders", valid_621713 result.add "header", section ## parameters in `formData` object: ## Force: JBool @@ -87028,39 +87055,39 @@ proc validate_PostDetachNetworkInterface_621701(path: JsonNode; query: JsonNode; ## DryRun: JBool ## : 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. section = newJObject() - var valid_621712 = formData.getOrDefault("Force") - valid_621712 = validateParameter(valid_621712, JBool, required = false, default = nil) - if valid_621712 != nil: - section.add "Force", valid_621712 + var valid_621714 = formData.getOrDefault("Force") + valid_621714 = validateParameter(valid_621714, JBool, required = false, default = nil) + if valid_621714 != nil: + section.add "Force", valid_621714 assert formData != nil, "formData argument is necessary due to required `AttachmentId` field" - var valid_621713 = formData.getOrDefault("AttachmentId") - valid_621713 = validateParameter(valid_621713, JString, required = true, + var valid_621715 = formData.getOrDefault("AttachmentId") + valid_621715 = validateParameter(valid_621715, JString, required = true, default = nil) - if valid_621713 != nil: - section.add "AttachmentId", valid_621713 - var valid_621714 = formData.getOrDefault("DryRun") - valid_621714 = validateParameter(valid_621714, JBool, required = false, default = nil) - if valid_621714 != nil: - section.add "DryRun", valid_621714 + if valid_621715 != nil: + section.add "AttachmentId", valid_621715 + var valid_621716 = formData.getOrDefault("DryRun") + valid_621716 = validateParameter(valid_621716, JBool, required = false, default = nil) + if valid_621716 != nil: + section.add "DryRun", valid_621716 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621715: Call_PostDetachNetworkInterface_621700; path: JsonNode; +proc call*(call_621717: Call_PostDetachNetworkInterface_621702; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Detaches a network interface from an instance. ## - let valid = call_621715.validator(path, query, header, formData, body) - let scheme = call_621715.pickScheme + let valid = call_621717.validator(path, query, header, formData, body) + let scheme = call_621717.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621715.url(scheme.get, call_621715.host, call_621715.base, - call_621715.route, valid.getOrDefault("path"), + let url = call_621717.url(scheme.get, call_621717.host, call_621717.base, + call_621717.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621715, url, valid) + result = atozHook(call_621717, url, valid) -proc call*(call_621716: Call_PostDetachNetworkInterface_621700; +proc call*(call_621718: Call_PostDetachNetworkInterface_621702; AttachmentId: string; Force: bool = false; DryRun: bool = false; Action: string = "DetachNetworkInterface"; Version: string = "2016-11-15"): Recallable = ## postDetachNetworkInterface @@ -87074,24 +87101,24 @@ proc call*(call_621716: Call_PostDetachNetworkInterface_621700; ## : 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. ## Action: string (required) ## Version: string (required) - var query_621717 = newJObject() - var formData_621718 = newJObject() - add(formData_621718, "Force", newJBool(Force)) - add(formData_621718, "AttachmentId", newJString(AttachmentId)) - add(formData_621718, "DryRun", newJBool(DryRun)) - add(query_621717, "Action", newJString(Action)) - add(query_621717, "Version", newJString(Version)) - result = call_621716.call(nil, query_621717, nil, formData_621718, nil) + var query_621719 = newJObject() + var formData_621720 = newJObject() + add(formData_621720, "Force", newJBool(Force)) + add(formData_621720, "AttachmentId", newJString(AttachmentId)) + add(formData_621720, "DryRun", newJBool(DryRun)) + add(query_621719, "Action", newJString(Action)) + add(query_621719, "Version", newJString(Version)) + result = call_621718.call(nil, query_621719, nil, formData_621720, nil) -var postDetachNetworkInterface* = Call_PostDetachNetworkInterface_621700( +var postDetachNetworkInterface* = Call_PostDetachNetworkInterface_621702( name: "postDetachNetworkInterface", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DetachNetworkInterface", - validator: validate_PostDetachNetworkInterface_621701, base: "/", - url: url_PostDetachNetworkInterface_621702, + validator: validate_PostDetachNetworkInterface_621703, base: "/", + url: url_PostDetachNetworkInterface_621704, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDetachNetworkInterface_621682 = ref object of OpenApiRestCall_610658 -proc url_GetDetachNetworkInterface_621684(protocol: Scheme; host: string; + Call_GetDetachNetworkInterface_621684 = ref object of OpenApiRestCall_610658 +proc url_GetDetachNetworkInterface_621686(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -87101,7 +87128,7 @@ proc url_GetDetachNetworkInterface_621684(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDetachNetworkInterface_621683(path: JsonNode; query: JsonNode; +proc validate_GetDetachNetworkInterface_621685(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Detaches a network interface from an instance. ## @@ -87120,29 +87147,29 @@ proc validate_GetDetachNetworkInterface_621683(path: JsonNode; query: JsonNode; ## : The ID of the attachment. ## Version: JString (required) section = newJObject() - var valid_621685 = query.getOrDefault("DryRun") - valid_621685 = validateParameter(valid_621685, JBool, required = false, default = nil) - if valid_621685 != nil: - section.add "DryRun", valid_621685 - var valid_621686 = query.getOrDefault("Force") - valid_621686 = validateParameter(valid_621686, JBool, required = false, default = nil) - if valid_621686 != nil: - section.add "Force", valid_621686 - var valid_621687 = query.getOrDefault("Action") - valid_621687 = validateParameter(valid_621687, JString, required = true, - default = newJString("DetachNetworkInterface")) + var valid_621687 = query.getOrDefault("DryRun") + valid_621687 = validateParameter(valid_621687, JBool, required = false, default = nil) if valid_621687 != nil: - section.add "Action", valid_621687 - var valid_621688 = query.getOrDefault("AttachmentId") - valid_621688 = validateParameter(valid_621688, JString, required = true, - default = nil) + section.add "DryRun", valid_621687 + var valid_621688 = query.getOrDefault("Force") + valid_621688 = validateParameter(valid_621688, JBool, required = false, default = nil) if valid_621688 != nil: - section.add "AttachmentId", valid_621688 - var valid_621689 = query.getOrDefault("Version") + section.add "Force", valid_621688 + var valid_621689 = query.getOrDefault("Action") valid_621689 = validateParameter(valid_621689, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("DetachNetworkInterface")) if valid_621689 != nil: - section.add "Version", valid_621689 + section.add "Action", valid_621689 + var valid_621690 = query.getOrDefault("AttachmentId") + valid_621690 = validateParameter(valid_621690, JString, required = true, + default = nil) + if valid_621690 != nil: + section.add "AttachmentId", valid_621690 + var valid_621691 = query.getOrDefault("Version") + valid_621691 = validateParameter(valid_621691, JString, required = true, + default = newJString("2016-11-15")) + if valid_621691 != nil: + section.add "Version", valid_621691 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -87153,61 +87180,61 @@ proc validate_GetDetachNetworkInterface_621683(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621690 = header.getOrDefault("X-Amz-Signature") - valid_621690 = validateParameter(valid_621690, JString, required = false, - default = nil) - if valid_621690 != nil: - section.add "X-Amz-Signature", valid_621690 - var valid_621691 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621691 = validateParameter(valid_621691, JString, required = false, - default = nil) - if valid_621691 != nil: - section.add "X-Amz-Content-Sha256", valid_621691 - var valid_621692 = header.getOrDefault("X-Amz-Date") + var valid_621692 = header.getOrDefault("X-Amz-Signature") valid_621692 = validateParameter(valid_621692, JString, required = false, default = nil) if valid_621692 != nil: - section.add "X-Amz-Date", valid_621692 - var valid_621693 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621692 + var valid_621693 = header.getOrDefault("X-Amz-Content-Sha256") valid_621693 = validateParameter(valid_621693, JString, required = false, default = nil) if valid_621693 != nil: - section.add "X-Amz-Credential", valid_621693 - var valid_621694 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621693 + var valid_621694 = header.getOrDefault("X-Amz-Date") valid_621694 = validateParameter(valid_621694, JString, required = false, default = nil) if valid_621694 != nil: - section.add "X-Amz-Security-Token", valid_621694 - var valid_621695 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621694 + var valid_621695 = header.getOrDefault("X-Amz-Credential") valid_621695 = validateParameter(valid_621695, JString, required = false, default = nil) if valid_621695 != nil: - section.add "X-Amz-Algorithm", valid_621695 - var valid_621696 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621695 + var valid_621696 = header.getOrDefault("X-Amz-Security-Token") valid_621696 = validateParameter(valid_621696, JString, required = false, default = nil) if valid_621696 != nil: - section.add "X-Amz-SignedHeaders", valid_621696 + section.add "X-Amz-Security-Token", valid_621696 + var valid_621697 = header.getOrDefault("X-Amz-Algorithm") + valid_621697 = validateParameter(valid_621697, JString, required = false, + default = nil) + if valid_621697 != nil: + section.add "X-Amz-Algorithm", valid_621697 + var valid_621698 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621698 = validateParameter(valid_621698, JString, required = false, + default = nil) + if valid_621698 != nil: + section.add "X-Amz-SignedHeaders", valid_621698 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621697: Call_GetDetachNetworkInterface_621682; path: JsonNode; +proc call*(call_621699: Call_GetDetachNetworkInterface_621684; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Detaches a network interface from an instance. ## - let valid = call_621697.validator(path, query, header, formData, body) - let scheme = call_621697.pickScheme + let valid = call_621699.validator(path, query, header, formData, body) + let scheme = call_621699.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621697.url(scheme.get, call_621697.host, call_621697.base, - call_621697.route, valid.getOrDefault("path"), + let url = call_621699.url(scheme.get, call_621699.host, call_621699.base, + call_621699.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621697, url, valid) + result = atozHook(call_621699, url, valid) -proc call*(call_621698: Call_GetDetachNetworkInterface_621682; +proc call*(call_621700: Call_GetDetachNetworkInterface_621684; AttachmentId: string; DryRun: bool = false; Force: bool = false; Action: string = "DetachNetworkInterface"; Version: string = "2016-11-15"): Recallable = ## getDetachNetworkInterface @@ -87221,23 +87248,23 @@ proc call*(call_621698: Call_GetDetachNetworkInterface_621682; ## AttachmentId: string (required) ## : The ID of the attachment. ## Version: string (required) - var query_621699 = newJObject() - add(query_621699, "DryRun", newJBool(DryRun)) - add(query_621699, "Force", newJBool(Force)) - add(query_621699, "Action", newJString(Action)) - add(query_621699, "AttachmentId", newJString(AttachmentId)) - add(query_621699, "Version", newJString(Version)) - result = call_621698.call(nil, query_621699, nil, nil, nil) + var query_621701 = newJObject() + add(query_621701, "DryRun", newJBool(DryRun)) + add(query_621701, "Force", newJBool(Force)) + add(query_621701, "Action", newJString(Action)) + add(query_621701, "AttachmentId", newJString(AttachmentId)) + add(query_621701, "Version", newJString(Version)) + result = call_621700.call(nil, query_621701, nil, nil, nil) -var getDetachNetworkInterface* = Call_GetDetachNetworkInterface_621682( +var getDetachNetworkInterface* = Call_GetDetachNetworkInterface_621684( name: "getDetachNetworkInterface", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DetachNetworkInterface", - validator: validate_GetDetachNetworkInterface_621683, base: "/", - url: url_GetDetachNetworkInterface_621684, + validator: validate_GetDetachNetworkInterface_621685, base: "/", + url: url_GetDetachNetworkInterface_621686, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDetachVolume_621739 = ref object of OpenApiRestCall_610658 -proc url_PostDetachVolume_621741(protocol: Scheme; host: string; base: string; + Call_PostDetachVolume_621741 = ref object of OpenApiRestCall_610658 +proc url_PostDetachVolume_621743(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -87247,7 +87274,7 @@ proc url_PostDetachVolume_621741(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostDetachVolume_621740(path: JsonNode; query: JsonNode; +proc validate_PostDetachVolume_621742(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Detaches an EBS volume from an instance. Make sure to unmount any file systems on the device within your operating system before detaching the volume. Failure to do so can result in the volume becoming stuck in the busy state while detaching. If this happens, detachment can be delayed indefinitely until you unmount the volume, force detachment, reboot the instance, or all three. If an EBS volume is the root device of an instance, it can't be detached while the instance is running. To detach the root volume, stop the instance first.

    When a volume with an AWS Marketplace product code is detached from an instance, the product code is no longer associated with the instance.

    For more information, see Detaching an Amazon EBS Volume in the Amazon Elastic Compute Cloud User Guide.

    @@ -87260,16 +87287,16 @@ proc validate_PostDetachVolume_621740(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621742 = query.getOrDefault("Action") - valid_621742 = validateParameter(valid_621742, JString, required = true, + var valid_621744 = query.getOrDefault("Action") + valid_621744 = validateParameter(valid_621744, JString, required = true, default = newJString("DetachVolume")) - if valid_621742 != nil: - section.add "Action", valid_621742 - var valid_621743 = query.getOrDefault("Version") - valid_621743 = validateParameter(valid_621743, JString, required = true, + if valid_621744 != nil: + section.add "Action", valid_621744 + var valid_621745 = query.getOrDefault("Version") + valid_621745 = validateParameter(valid_621745, JString, required = true, default = newJString("2016-11-15")) - if valid_621743 != nil: - section.add "Version", valid_621743 + if valid_621745 != nil: + section.add "Version", valid_621745 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -87280,41 +87307,41 @@ proc validate_PostDetachVolume_621740(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621744 = header.getOrDefault("X-Amz-Signature") - valid_621744 = validateParameter(valid_621744, JString, required = false, - default = nil) - if valid_621744 != nil: - section.add "X-Amz-Signature", valid_621744 - var valid_621745 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621745 = validateParameter(valid_621745, JString, required = false, - default = nil) - if valid_621745 != nil: - section.add "X-Amz-Content-Sha256", valid_621745 - var valid_621746 = header.getOrDefault("X-Amz-Date") + var valid_621746 = header.getOrDefault("X-Amz-Signature") valid_621746 = validateParameter(valid_621746, JString, required = false, default = nil) if valid_621746 != nil: - section.add "X-Amz-Date", valid_621746 - var valid_621747 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621746 + var valid_621747 = header.getOrDefault("X-Amz-Content-Sha256") valid_621747 = validateParameter(valid_621747, JString, required = false, default = nil) if valid_621747 != nil: - section.add "X-Amz-Credential", valid_621747 - var valid_621748 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621747 + var valid_621748 = header.getOrDefault("X-Amz-Date") valid_621748 = validateParameter(valid_621748, JString, required = false, default = nil) if valid_621748 != nil: - section.add "X-Amz-Security-Token", valid_621748 - var valid_621749 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621748 + var valid_621749 = header.getOrDefault("X-Amz-Credential") valid_621749 = validateParameter(valid_621749, JString, required = false, default = nil) if valid_621749 != nil: - section.add "X-Amz-Algorithm", valid_621749 - var valid_621750 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621749 + var valid_621750 = header.getOrDefault("X-Amz-Security-Token") valid_621750 = validateParameter(valid_621750, JString, required = false, default = nil) if valid_621750 != nil: - section.add "X-Amz-SignedHeaders", valid_621750 + section.add "X-Amz-Security-Token", valid_621750 + var valid_621751 = header.getOrDefault("X-Amz-Algorithm") + valid_621751 = validateParameter(valid_621751, JString, required = false, + default = nil) + if valid_621751 != nil: + section.add "X-Amz-Algorithm", valid_621751 + var valid_621752 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621752 = validateParameter(valid_621752, JString, required = false, + default = nil) + if valid_621752 != nil: + section.add "X-Amz-SignedHeaders", valid_621752 result.add "header", section ## parameters in `formData` object: ## Device: JString @@ -87326,51 +87353,51 @@ proc validate_PostDetachVolume_621740(path: JsonNode; query: JsonNode; ## DryRun: JBool ## : 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. ## InstanceId: JString - ## : The ID of the instance. + ## : The ID of the instance. If you are detaching a Multi-Attach enabled volume, you must specify an instance ID. section = newJObject() - var valid_621751 = formData.getOrDefault("Device") - valid_621751 = validateParameter(valid_621751, JString, required = false, - default = nil) - if valid_621751 != nil: - section.add "Device", valid_621751 - var valid_621752 = formData.getOrDefault("Force") - valid_621752 = validateParameter(valid_621752, JBool, required = false, default = nil) - if valid_621752 != nil: - section.add "Force", valid_621752 - assert formData != nil, - "formData argument is necessary due to required `VolumeId` field" - var valid_621753 = formData.getOrDefault("VolumeId") - valid_621753 = validateParameter(valid_621753, JString, required = true, + var valid_621753 = formData.getOrDefault("Device") + valid_621753 = validateParameter(valid_621753, JString, required = false, default = nil) if valid_621753 != nil: - section.add "VolumeId", valid_621753 - var valid_621754 = formData.getOrDefault("DryRun") + section.add "Device", valid_621753 + var valid_621754 = formData.getOrDefault("Force") valid_621754 = validateParameter(valid_621754, JBool, required = false, default = nil) if valid_621754 != nil: - section.add "DryRun", valid_621754 - var valid_621755 = formData.getOrDefault("InstanceId") - valid_621755 = validateParameter(valid_621755, JString, required = false, + section.add "Force", valid_621754 + assert formData != nil, + "formData argument is necessary due to required `VolumeId` field" + var valid_621755 = formData.getOrDefault("VolumeId") + valid_621755 = validateParameter(valid_621755, JString, required = true, default = nil) if valid_621755 != nil: - section.add "InstanceId", valid_621755 + section.add "VolumeId", valid_621755 + var valid_621756 = formData.getOrDefault("DryRun") + valid_621756 = validateParameter(valid_621756, JBool, required = false, default = nil) + if valid_621756 != nil: + section.add "DryRun", valid_621756 + var valid_621757 = formData.getOrDefault("InstanceId") + valid_621757 = validateParameter(valid_621757, JString, required = false, + default = nil) + if valid_621757 != nil: + section.add "InstanceId", valid_621757 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621756: Call_PostDetachVolume_621739; path: JsonNode; +proc call*(call_621758: Call_PostDetachVolume_621741; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Detaches an EBS volume from an instance. Make sure to unmount any file systems on the device within your operating system before detaching the volume. Failure to do so can result in the volume becoming stuck in the busy state while detaching. If this happens, detachment can be delayed indefinitely until you unmount the volume, force detachment, reboot the instance, or all three. If an EBS volume is the root device of an instance, it can't be detached while the instance is running. To detach the root volume, stop the instance first.

    When a volume with an AWS Marketplace product code is detached from an instance, the product code is no longer associated with the instance.

    For more information, see Detaching an Amazon EBS Volume in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_621756.validator(path, query, header, formData, body) - let scheme = call_621756.pickScheme + let valid = call_621758.validator(path, query, header, formData, body) + let scheme = call_621758.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621756.url(scheme.get, call_621756.host, call_621756.base, - call_621756.route, valid.getOrDefault("path"), + let url = call_621758.url(scheme.get, call_621758.host, call_621758.base, + call_621758.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621756, url, valid) + result = atozHook(call_621758, url, valid) -proc call*(call_621757: Call_PostDetachVolume_621739; VolumeId: string; +proc call*(call_621759: Call_PostDetachVolume_621741; VolumeId: string; Device: string = ""; Force: bool = false; DryRun: bool = false; InstanceId: string = ""; Action: string = "DetachVolume"; Version: string = "2016-11-15"): Recallable = @@ -87385,28 +87412,28 @@ proc call*(call_621757: Call_PostDetachVolume_621739; VolumeId: string; ## DryRun: bool ## : 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. ## InstanceId: string - ## : The ID of the instance. + ## : The ID of the instance. If you are detaching a Multi-Attach enabled volume, you must specify an instance ID. ## Action: string (required) ## Version: string (required) - var query_621758 = newJObject() - var formData_621759 = newJObject() - add(formData_621759, "Device", newJString(Device)) - add(formData_621759, "Force", newJBool(Force)) - add(formData_621759, "VolumeId", newJString(VolumeId)) - add(formData_621759, "DryRun", newJBool(DryRun)) - add(formData_621759, "InstanceId", newJString(InstanceId)) - add(query_621758, "Action", newJString(Action)) - add(query_621758, "Version", newJString(Version)) - result = call_621757.call(nil, query_621758, nil, formData_621759, nil) + var query_621760 = newJObject() + var formData_621761 = newJObject() + add(formData_621761, "Device", newJString(Device)) + add(formData_621761, "Force", newJBool(Force)) + add(formData_621761, "VolumeId", newJString(VolumeId)) + add(formData_621761, "DryRun", newJBool(DryRun)) + add(formData_621761, "InstanceId", newJString(InstanceId)) + add(query_621760, "Action", newJString(Action)) + add(query_621760, "Version", newJString(Version)) + result = call_621759.call(nil, query_621760, nil, formData_621761, nil) -var postDetachVolume* = Call_PostDetachVolume_621739(name: "postDetachVolume", +var postDetachVolume* = Call_PostDetachVolume_621741(name: "postDetachVolume", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", - route: "/#Action=DetachVolume", validator: validate_PostDetachVolume_621740, - base: "/", url: url_PostDetachVolume_621741, + route: "/#Action=DetachVolume", validator: validate_PostDetachVolume_621742, + base: "/", url: url_PostDetachVolume_621743, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDetachVolume_621719 = ref object of OpenApiRestCall_610658 -proc url_GetDetachVolume_621721(protocol: Scheme; host: string; base: string; + Call_GetDetachVolume_621721 = ref object of OpenApiRestCall_610658 +proc url_GetDetachVolume_621723(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -87416,7 +87443,7 @@ proc url_GetDetachVolume_621721(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetDetachVolume_621720(path: JsonNode; query: JsonNode; +proc validate_GetDetachVolume_621722(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Detaches an EBS volume from an instance. Make sure to unmount any file systems on the device within your operating system before detaching the volume. Failure to do so can result in the volume becoming stuck in the busy state while detaching. If this happens, detachment can be delayed indefinitely until you unmount the volume, force detachment, reboot the instance, or all three. If an EBS volume is the root device of an instance, it can't be detached while the instance is running. To detach the root volume, stop the instance first.

    When a volume with an AWS Marketplace product code is detached from an instance, the product code is no longer associated with the instance.

    For more information, see Detaching an Amazon EBS Volume in the Amazon Elastic Compute Cloud User Guide.

    @@ -87429,7 +87456,7 @@ proc validate_GetDetachVolume_621720(path: JsonNode; query: JsonNode; ## DryRun: JBool ## : 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. ## InstanceId: JString - ## : The ID of the instance. + ## : The ID of the instance. If you are detaching a Multi-Attach enabled volume, you must specify an instance ID. ## Force: JBool ## : Forces detachment if the previous detachment attempt did not occur cleanly (for example, logging into an instance, unmounting the volume, and detaching normally). This option can lead to data loss or a corrupted file system. Use this option only as a last resort to detach a volume from a failed instance. The instance won't have an opportunity to flush file system caches or file system metadata. If you use this option, you must perform file system check and repair procedures. ## Device: JString @@ -87439,41 +87466,41 @@ proc validate_GetDetachVolume_621720(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621722 = query.getOrDefault("DryRun") - valid_621722 = validateParameter(valid_621722, JBool, required = false, default = nil) - if valid_621722 != nil: - section.add "DryRun", valid_621722 - var valid_621723 = query.getOrDefault("InstanceId") - valid_621723 = validateParameter(valid_621723, JString, required = false, - default = nil) - if valid_621723 != nil: - section.add "InstanceId", valid_621723 - var valid_621724 = query.getOrDefault("Force") + var valid_621724 = query.getOrDefault("DryRun") valid_621724 = validateParameter(valid_621724, JBool, required = false, default = nil) if valid_621724 != nil: - section.add "Force", valid_621724 - var valid_621725 = query.getOrDefault("Device") + section.add "DryRun", valid_621724 + var valid_621725 = query.getOrDefault("InstanceId") valid_621725 = validateParameter(valid_621725, JString, required = false, default = nil) if valid_621725 != nil: - section.add "Device", valid_621725 + section.add "InstanceId", valid_621725 + var valid_621726 = query.getOrDefault("Force") + valid_621726 = validateParameter(valid_621726, JBool, required = false, default = nil) + if valid_621726 != nil: + section.add "Force", valid_621726 + var valid_621727 = query.getOrDefault("Device") + valid_621727 = validateParameter(valid_621727, JString, required = false, + default = nil) + if valid_621727 != nil: + section.add "Device", valid_621727 assert query != nil, "query argument is necessary due to required `VolumeId` field" - var valid_621726 = query.getOrDefault("VolumeId") - valid_621726 = validateParameter(valid_621726, JString, required = true, + var valid_621728 = query.getOrDefault("VolumeId") + valid_621728 = validateParameter(valid_621728, JString, required = true, default = nil) - if valid_621726 != nil: - section.add "VolumeId", valid_621726 - var valid_621727 = query.getOrDefault("Action") - valid_621727 = validateParameter(valid_621727, JString, required = true, + if valid_621728 != nil: + section.add "VolumeId", valid_621728 + var valid_621729 = query.getOrDefault("Action") + valid_621729 = validateParameter(valid_621729, JString, required = true, default = newJString("DetachVolume")) - if valid_621727 != nil: - section.add "Action", valid_621727 - var valid_621728 = query.getOrDefault("Version") - valid_621728 = validateParameter(valid_621728, JString, required = true, + if valid_621729 != nil: + section.add "Action", valid_621729 + var valid_621730 = query.getOrDefault("Version") + valid_621730 = validateParameter(valid_621730, JString, required = true, default = newJString("2016-11-15")) - if valid_621728 != nil: - section.add "Version", valid_621728 + if valid_621730 != nil: + section.add "Version", valid_621730 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -87484,61 +87511,61 @@ proc validate_GetDetachVolume_621720(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621729 = header.getOrDefault("X-Amz-Signature") - valid_621729 = validateParameter(valid_621729, JString, required = false, - default = nil) - if valid_621729 != nil: - section.add "X-Amz-Signature", valid_621729 - var valid_621730 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621730 = validateParameter(valid_621730, JString, required = false, - default = nil) - if valid_621730 != nil: - section.add "X-Amz-Content-Sha256", valid_621730 - var valid_621731 = header.getOrDefault("X-Amz-Date") + var valid_621731 = header.getOrDefault("X-Amz-Signature") valid_621731 = validateParameter(valid_621731, JString, required = false, default = nil) if valid_621731 != nil: - section.add "X-Amz-Date", valid_621731 - var valid_621732 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621731 + var valid_621732 = header.getOrDefault("X-Amz-Content-Sha256") valid_621732 = validateParameter(valid_621732, JString, required = false, default = nil) if valid_621732 != nil: - section.add "X-Amz-Credential", valid_621732 - var valid_621733 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621732 + var valid_621733 = header.getOrDefault("X-Amz-Date") valid_621733 = validateParameter(valid_621733, JString, required = false, default = nil) if valid_621733 != nil: - section.add "X-Amz-Security-Token", valid_621733 - var valid_621734 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621733 + var valid_621734 = header.getOrDefault("X-Amz-Credential") valid_621734 = validateParameter(valid_621734, JString, required = false, default = nil) if valid_621734 != nil: - section.add "X-Amz-Algorithm", valid_621734 - var valid_621735 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621734 + var valid_621735 = header.getOrDefault("X-Amz-Security-Token") valid_621735 = validateParameter(valid_621735, JString, required = false, default = nil) if valid_621735 != nil: - section.add "X-Amz-SignedHeaders", valid_621735 + section.add "X-Amz-Security-Token", valid_621735 + var valid_621736 = header.getOrDefault("X-Amz-Algorithm") + valid_621736 = validateParameter(valid_621736, JString, required = false, + default = nil) + if valid_621736 != nil: + section.add "X-Amz-Algorithm", valid_621736 + var valid_621737 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621737 = validateParameter(valid_621737, JString, required = false, + default = nil) + if valid_621737 != nil: + section.add "X-Amz-SignedHeaders", valid_621737 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621736: Call_GetDetachVolume_621719; path: JsonNode; query: JsonNode; +proc call*(call_621738: Call_GetDetachVolume_621721; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Detaches an EBS volume from an instance. Make sure to unmount any file systems on the device within your operating system before detaching the volume. Failure to do so can result in the volume becoming stuck in the busy state while detaching. If this happens, detachment can be delayed indefinitely until you unmount the volume, force detachment, reboot the instance, or all three. If an EBS volume is the root device of an instance, it can't be detached while the instance is running. To detach the root volume, stop the instance first.

    When a volume with an AWS Marketplace product code is detached from an instance, the product code is no longer associated with the instance.

    For more information, see Detaching an Amazon EBS Volume in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_621736.validator(path, query, header, formData, body) - let scheme = call_621736.pickScheme + let valid = call_621738.validator(path, query, header, formData, body) + let scheme = call_621738.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621736.url(scheme.get, call_621736.host, call_621736.base, - call_621736.route, valid.getOrDefault("path"), + let url = call_621738.url(scheme.get, call_621738.host, call_621738.base, + call_621738.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621736, url, valid) + result = atozHook(call_621738, url, valid) -proc call*(call_621737: Call_GetDetachVolume_621719; VolumeId: string; +proc call*(call_621739: Call_GetDetachVolume_621721; VolumeId: string; DryRun: bool = false; InstanceId: string = ""; Force: bool = false; Device: string = ""; Action: string = "DetachVolume"; Version: string = "2016-11-15"): Recallable = @@ -87547,7 +87574,7 @@ proc call*(call_621737: Call_GetDetachVolume_621719; VolumeId: string; ## DryRun: bool ## : 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. ## InstanceId: string - ## : The ID of the instance. + ## : The ID of the instance. If you are detaching a Multi-Attach enabled volume, you must specify an instance ID. ## Force: bool ## : Forces detachment if the previous detachment attempt did not occur cleanly (for example, logging into an instance, unmounting the volume, and detaching normally). This option can lead to data loss or a corrupted file system. Use this option only as a last resort to detach a volume from a failed instance. The instance won't have an opportunity to flush file system caches or file system metadata. If you use this option, you must perform file system check and repair procedures. ## Device: string @@ -87556,23 +87583,23 @@ proc call*(call_621737: Call_GetDetachVolume_621719; VolumeId: string; ## : The ID of the volume. ## Action: string (required) ## Version: string (required) - var query_621738 = newJObject() - add(query_621738, "DryRun", newJBool(DryRun)) - add(query_621738, "InstanceId", newJString(InstanceId)) - add(query_621738, "Force", newJBool(Force)) - add(query_621738, "Device", newJString(Device)) - add(query_621738, "VolumeId", newJString(VolumeId)) - add(query_621738, "Action", newJString(Action)) - add(query_621738, "Version", newJString(Version)) - result = call_621737.call(nil, query_621738, nil, nil, nil) + var query_621740 = newJObject() + add(query_621740, "DryRun", newJBool(DryRun)) + add(query_621740, "InstanceId", newJString(InstanceId)) + add(query_621740, "Force", newJBool(Force)) + add(query_621740, "Device", newJString(Device)) + add(query_621740, "VolumeId", newJString(VolumeId)) + add(query_621740, "Action", newJString(Action)) + add(query_621740, "Version", newJString(Version)) + result = call_621739.call(nil, query_621740, nil, nil, nil) -var getDetachVolume* = Call_GetDetachVolume_621719(name: "getDetachVolume", +var getDetachVolume* = Call_GetDetachVolume_621721(name: "getDetachVolume", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=DetachVolume", validator: validate_GetDetachVolume_621720, - base: "/", url: url_GetDetachVolume_621721, schemes: {Scheme.Https, Scheme.Http}) + route: "/#Action=DetachVolume", validator: validate_GetDetachVolume_621722, + base: "/", url: url_GetDetachVolume_621723, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDetachVpnGateway_621778 = ref object of OpenApiRestCall_610658 -proc url_PostDetachVpnGateway_621780(protocol: Scheme; host: string; base: string; + Call_PostDetachVpnGateway_621780 = ref object of OpenApiRestCall_610658 +proc url_PostDetachVpnGateway_621782(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -87582,7 +87609,7 @@ proc url_PostDetachVpnGateway_621780(protocol: Scheme; host: string; base: strin else: result.path = base & route -proc validate_PostDetachVpnGateway_621779(path: JsonNode; query: JsonNode; +proc validate_PostDetachVpnGateway_621781(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Detaches a virtual private gateway from a VPC. You do this if you're planning to turn off the VPC and not use it anymore. You can confirm a virtual private gateway has been completely detached from a VPC by describing the virtual private gateway (any attachments to the virtual private gateway are also described).

    You must wait for the attachment's state to switch to detached before you can delete the VPC or attach a different VPC to the virtual private gateway.

    ## @@ -87594,16 +87621,16 @@ proc validate_PostDetachVpnGateway_621779(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621781 = query.getOrDefault("Action") - valid_621781 = validateParameter(valid_621781, JString, required = true, + var valid_621783 = query.getOrDefault("Action") + valid_621783 = validateParameter(valid_621783, JString, required = true, default = newJString("DetachVpnGateway")) - if valid_621781 != nil: - section.add "Action", valid_621781 - var valid_621782 = query.getOrDefault("Version") - valid_621782 = validateParameter(valid_621782, JString, required = true, + if valid_621783 != nil: + section.add "Action", valid_621783 + var valid_621784 = query.getOrDefault("Version") + valid_621784 = validateParameter(valid_621784, JString, required = true, default = newJString("2016-11-15")) - if valid_621782 != nil: - section.add "Version", valid_621782 + if valid_621784 != nil: + section.add "Version", valid_621784 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -87614,41 +87641,41 @@ proc validate_PostDetachVpnGateway_621779(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621783 = header.getOrDefault("X-Amz-Signature") - valid_621783 = validateParameter(valid_621783, JString, required = false, - default = nil) - if valid_621783 != nil: - section.add "X-Amz-Signature", valid_621783 - var valid_621784 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621784 = validateParameter(valid_621784, JString, required = false, - default = nil) - if valid_621784 != nil: - section.add "X-Amz-Content-Sha256", valid_621784 - var valid_621785 = header.getOrDefault("X-Amz-Date") + var valid_621785 = header.getOrDefault("X-Amz-Signature") valid_621785 = validateParameter(valid_621785, JString, required = false, default = nil) if valid_621785 != nil: - section.add "X-Amz-Date", valid_621785 - var valid_621786 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621785 + var valid_621786 = header.getOrDefault("X-Amz-Content-Sha256") valid_621786 = validateParameter(valid_621786, JString, required = false, default = nil) if valid_621786 != nil: - section.add "X-Amz-Credential", valid_621786 - var valid_621787 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621786 + var valid_621787 = header.getOrDefault("X-Amz-Date") valid_621787 = validateParameter(valid_621787, JString, required = false, default = nil) if valid_621787 != nil: - section.add "X-Amz-Security-Token", valid_621787 - var valid_621788 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621787 + var valid_621788 = header.getOrDefault("X-Amz-Credential") valid_621788 = validateParameter(valid_621788, JString, required = false, default = nil) if valid_621788 != nil: - section.add "X-Amz-Algorithm", valid_621788 - var valid_621789 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621788 + var valid_621789 = header.getOrDefault("X-Amz-Security-Token") valid_621789 = validateParameter(valid_621789, JString, required = false, default = nil) if valid_621789 != nil: - section.add "X-Amz-SignedHeaders", valid_621789 + section.add "X-Amz-Security-Token", valid_621789 + var valid_621790 = header.getOrDefault("X-Amz-Algorithm") + valid_621790 = validateParameter(valid_621790, JString, required = false, + default = nil) + if valid_621790 != nil: + section.add "X-Amz-Algorithm", valid_621790 + var valid_621791 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621791 = validateParameter(valid_621791, JString, required = false, + default = nil) + if valid_621791 != nil: + section.add "X-Amz-SignedHeaders", valid_621791 result.add "header", section ## parameters in `formData` object: ## VpnGatewayId: JString (required) @@ -87660,38 +87687,38 @@ proc validate_PostDetachVpnGateway_621779(path: JsonNode; query: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `VpnGatewayId` field" - var valid_621790 = formData.getOrDefault("VpnGatewayId") - valid_621790 = validateParameter(valid_621790, JString, required = true, - default = nil) - if valid_621790 != nil: - section.add "VpnGatewayId", valid_621790 - var valid_621791 = formData.getOrDefault("VpcId") - valid_621791 = validateParameter(valid_621791, JString, required = true, + var valid_621792 = formData.getOrDefault("VpnGatewayId") + valid_621792 = validateParameter(valid_621792, JString, required = true, default = nil) - if valid_621791 != nil: - section.add "VpcId", valid_621791 - var valid_621792 = formData.getOrDefault("DryRun") - valid_621792 = validateParameter(valid_621792, JBool, required = false, default = nil) if valid_621792 != nil: - section.add "DryRun", valid_621792 + section.add "VpnGatewayId", valid_621792 + var valid_621793 = formData.getOrDefault("VpcId") + valid_621793 = validateParameter(valid_621793, JString, required = true, + default = nil) + if valid_621793 != nil: + section.add "VpcId", valid_621793 + var valid_621794 = formData.getOrDefault("DryRun") + valid_621794 = validateParameter(valid_621794, JBool, required = false, default = nil) + if valid_621794 != nil: + section.add "DryRun", valid_621794 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621793: Call_PostDetachVpnGateway_621778; path: JsonNode; +proc call*(call_621795: Call_PostDetachVpnGateway_621780; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Detaches a virtual private gateway from a VPC. You do this if you're planning to turn off the VPC and not use it anymore. You can confirm a virtual private gateway has been completely detached from a VPC by describing the virtual private gateway (any attachments to the virtual private gateway are also described).

    You must wait for the attachment's state to switch to detached before you can delete the VPC or attach a different VPC to the virtual private gateway.

    ## - let valid = call_621793.validator(path, query, header, formData, body) - let scheme = call_621793.pickScheme + let valid = call_621795.validator(path, query, header, formData, body) + let scheme = call_621795.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621793.url(scheme.get, call_621793.host, call_621793.base, - call_621793.route, valid.getOrDefault("path"), + let url = call_621795.url(scheme.get, call_621795.host, call_621795.base, + call_621795.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621793, url, valid) + result = atozHook(call_621795, url, valid) -proc call*(call_621794: Call_PostDetachVpnGateway_621778; VpnGatewayId: string; +proc call*(call_621796: Call_PostDetachVpnGateway_621780; VpnGatewayId: string; VpcId: string; DryRun: bool = false; Action: string = "DetachVpnGateway"; Version: string = "2016-11-15"): Recallable = ## postDetachVpnGateway @@ -87704,23 +87731,23 @@ proc call*(call_621794: Call_PostDetachVpnGateway_621778; VpnGatewayId: string; ## : 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. ## Action: string (required) ## Version: string (required) - var query_621795 = newJObject() - var formData_621796 = newJObject() - add(formData_621796, "VpnGatewayId", newJString(VpnGatewayId)) - add(formData_621796, "VpcId", newJString(VpcId)) - add(formData_621796, "DryRun", newJBool(DryRun)) - add(query_621795, "Action", newJString(Action)) - add(query_621795, "Version", newJString(Version)) - result = call_621794.call(nil, query_621795, nil, formData_621796, nil) + var query_621797 = newJObject() + var formData_621798 = newJObject() + add(formData_621798, "VpnGatewayId", newJString(VpnGatewayId)) + add(formData_621798, "VpcId", newJString(VpcId)) + add(formData_621798, "DryRun", newJBool(DryRun)) + add(query_621797, "Action", newJString(Action)) + add(query_621797, "Version", newJString(Version)) + result = call_621796.call(nil, query_621797, nil, formData_621798, nil) -var postDetachVpnGateway* = Call_PostDetachVpnGateway_621778( +var postDetachVpnGateway* = Call_PostDetachVpnGateway_621780( name: "postDetachVpnGateway", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DetachVpnGateway", - validator: validate_PostDetachVpnGateway_621779, base: "/", - url: url_PostDetachVpnGateway_621780, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDetachVpnGateway_621781, base: "/", + url: url_PostDetachVpnGateway_621782, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDetachVpnGateway_621760 = ref object of OpenApiRestCall_610658 -proc url_GetDetachVpnGateway_621762(protocol: Scheme; host: string; base: string; + Call_GetDetachVpnGateway_621762 = ref object of OpenApiRestCall_610658 +proc url_GetDetachVpnGateway_621764(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -87730,7 +87757,7 @@ proc url_GetDetachVpnGateway_621762(protocol: Scheme; host: string; base: string else: result.path = base & route -proc validate_GetDetachVpnGateway_621761(path: JsonNode; query: JsonNode; +proc validate_GetDetachVpnGateway_621763(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Detaches a virtual private gateway from a VPC. You do this if you're planning to turn off the VPC and not use it anymore. You can confirm a virtual private gateway has been completely detached from a VPC by describing the virtual private gateway (any attachments to the virtual private gateway are also described).

    You must wait for the attachment's state to switch to detached before you can delete the VPC or attach a different VPC to the virtual private gateway.

    @@ -87749,31 +87776,31 @@ proc validate_GetDetachVpnGateway_621761(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621763 = query.getOrDefault("DryRun") - valid_621763 = validateParameter(valid_621763, JBool, required = false, default = nil) - if valid_621763 != nil: - section.add "DryRun", valid_621763 - assert query != nil, "query argument is necessary due to required `VpcId` field" - var valid_621764 = query.getOrDefault("VpcId") - valid_621764 = validateParameter(valid_621764, JString, required = true, - default = nil) - if valid_621764 != nil: - section.add "VpcId", valid_621764 - var valid_621765 = query.getOrDefault("VpnGatewayId") - valid_621765 = validateParameter(valid_621765, JString, required = true, - default = nil) + var valid_621765 = query.getOrDefault("DryRun") + valid_621765 = validateParameter(valid_621765, JBool, required = false, default = nil) if valid_621765 != nil: - section.add "VpnGatewayId", valid_621765 - var valid_621766 = query.getOrDefault("Action") + section.add "DryRun", valid_621765 + assert query != nil, "query argument is necessary due to required `VpcId` field" + var valid_621766 = query.getOrDefault("VpcId") valid_621766 = validateParameter(valid_621766, JString, required = true, - default = newJString("DetachVpnGateway")) + default = nil) if valid_621766 != nil: - section.add "Action", valid_621766 - var valid_621767 = query.getOrDefault("Version") + section.add "VpcId", valid_621766 + var valid_621767 = query.getOrDefault("VpnGatewayId") valid_621767 = validateParameter(valid_621767, JString, required = true, - default = newJString("2016-11-15")) + default = nil) if valid_621767 != nil: - section.add "Version", valid_621767 + section.add "VpnGatewayId", valid_621767 + var valid_621768 = query.getOrDefault("Action") + valid_621768 = validateParameter(valid_621768, JString, required = true, + default = newJString("DetachVpnGateway")) + if valid_621768 != nil: + section.add "Action", valid_621768 + var valid_621769 = query.getOrDefault("Version") + valid_621769 = validateParameter(valid_621769, JString, required = true, + default = newJString("2016-11-15")) + if valid_621769 != nil: + section.add "Version", valid_621769 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -87784,61 +87811,61 @@ proc validate_GetDetachVpnGateway_621761(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621768 = header.getOrDefault("X-Amz-Signature") - valid_621768 = validateParameter(valid_621768, JString, required = false, - default = nil) - if valid_621768 != nil: - section.add "X-Amz-Signature", valid_621768 - var valid_621769 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621769 = validateParameter(valid_621769, JString, required = false, - default = nil) - if valid_621769 != nil: - section.add "X-Amz-Content-Sha256", valid_621769 - var valid_621770 = header.getOrDefault("X-Amz-Date") + var valid_621770 = header.getOrDefault("X-Amz-Signature") valid_621770 = validateParameter(valid_621770, JString, required = false, default = nil) if valid_621770 != nil: - section.add "X-Amz-Date", valid_621770 - var valid_621771 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621770 + var valid_621771 = header.getOrDefault("X-Amz-Content-Sha256") valid_621771 = validateParameter(valid_621771, JString, required = false, default = nil) if valid_621771 != nil: - section.add "X-Amz-Credential", valid_621771 - var valid_621772 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621771 + var valid_621772 = header.getOrDefault("X-Amz-Date") valid_621772 = validateParameter(valid_621772, JString, required = false, default = nil) if valid_621772 != nil: - section.add "X-Amz-Security-Token", valid_621772 - var valid_621773 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621772 + var valid_621773 = header.getOrDefault("X-Amz-Credential") valid_621773 = validateParameter(valid_621773, JString, required = false, default = nil) if valid_621773 != nil: - section.add "X-Amz-Algorithm", valid_621773 - var valid_621774 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621773 + var valid_621774 = header.getOrDefault("X-Amz-Security-Token") valid_621774 = validateParameter(valid_621774, JString, required = false, default = nil) if valid_621774 != nil: - section.add "X-Amz-SignedHeaders", valid_621774 + section.add "X-Amz-Security-Token", valid_621774 + var valid_621775 = header.getOrDefault("X-Amz-Algorithm") + valid_621775 = validateParameter(valid_621775, JString, required = false, + default = nil) + if valid_621775 != nil: + section.add "X-Amz-Algorithm", valid_621775 + var valid_621776 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621776 = validateParameter(valid_621776, JString, required = false, + default = nil) + if valid_621776 != nil: + section.add "X-Amz-SignedHeaders", valid_621776 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621775: Call_GetDetachVpnGateway_621760; path: JsonNode; +proc call*(call_621777: Call_GetDetachVpnGateway_621762; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Detaches a virtual private gateway from a VPC. You do this if you're planning to turn off the VPC and not use it anymore. You can confirm a virtual private gateway has been completely detached from a VPC by describing the virtual private gateway (any attachments to the virtual private gateway are also described).

    You must wait for the attachment's state to switch to detached before you can delete the VPC or attach a different VPC to the virtual private gateway.

    ## - let valid = call_621775.validator(path, query, header, formData, body) - let scheme = call_621775.pickScheme + let valid = call_621777.validator(path, query, header, formData, body) + let scheme = call_621777.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621775.url(scheme.get, call_621775.host, call_621775.base, - call_621775.route, valid.getOrDefault("path"), + let url = call_621777.url(scheme.get, call_621777.host, call_621777.base, + call_621777.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621775, url, valid) + result = atozHook(call_621777, url, valid) -proc call*(call_621776: Call_GetDetachVpnGateway_621760; VpcId: string; +proc call*(call_621778: Call_GetDetachVpnGateway_621762; VpcId: string; VpnGatewayId: string; DryRun: bool = false; Action: string = "DetachVpnGateway"; Version: string = "2016-11-15"): Recallable = ## getDetachVpnGateway @@ -87851,22 +87878,22 @@ proc call*(call_621776: Call_GetDetachVpnGateway_621760; VpcId: string; ## : The ID of the virtual private gateway. ## Action: string (required) ## Version: string (required) - var query_621777 = newJObject() - add(query_621777, "DryRun", newJBool(DryRun)) - add(query_621777, "VpcId", newJString(VpcId)) - add(query_621777, "VpnGatewayId", newJString(VpnGatewayId)) - add(query_621777, "Action", newJString(Action)) - add(query_621777, "Version", newJString(Version)) - result = call_621776.call(nil, query_621777, nil, nil, nil) + var query_621779 = newJObject() + add(query_621779, "DryRun", newJBool(DryRun)) + add(query_621779, "VpcId", newJString(VpcId)) + add(query_621779, "VpnGatewayId", newJString(VpnGatewayId)) + add(query_621779, "Action", newJString(Action)) + add(query_621779, "Version", newJString(Version)) + result = call_621778.call(nil, query_621779, nil, nil, nil) -var getDetachVpnGateway* = Call_GetDetachVpnGateway_621760( +var getDetachVpnGateway* = Call_GetDetachVpnGateway_621762( name: "getDetachVpnGateway", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DetachVpnGateway", - validator: validate_GetDetachVpnGateway_621761, base: "/", - url: url_GetDetachVpnGateway_621762, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDetachVpnGateway_621763, base: "/", + url: url_GetDetachVpnGateway_621764, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDisableEbsEncryptionByDefault_621813 = ref object of OpenApiRestCall_610658 -proc url_PostDisableEbsEncryptionByDefault_621815(protocol: Scheme; host: string; + Call_PostDisableEbsEncryptionByDefault_621815 = ref object of OpenApiRestCall_610658 +proc url_PostDisableEbsEncryptionByDefault_621817(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -87876,7 +87903,7 @@ proc url_PostDisableEbsEncryptionByDefault_621815(protocol: Scheme; host: string else: result.path = base & route -proc validate_PostDisableEbsEncryptionByDefault_621814(path: JsonNode; +proc validate_PostDisableEbsEncryptionByDefault_621816(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Disables EBS encryption by default for your account in the current Region.

    After you disable encryption by default, you can still create encrypted volumes by enabling encryption when you create each volume.

    Disabling encryption by default does not change the encryption status of your existing volumes.

    For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -87888,16 +87915,16 @@ proc validate_PostDisableEbsEncryptionByDefault_621814(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621816 = query.getOrDefault("Action") - valid_621816 = validateParameter(valid_621816, JString, required = true, default = newJString( + var valid_621818 = query.getOrDefault("Action") + valid_621818 = validateParameter(valid_621818, JString, required = true, default = newJString( "DisableEbsEncryptionByDefault")) - if valid_621816 != nil: - section.add "Action", valid_621816 - var valid_621817 = query.getOrDefault("Version") - valid_621817 = validateParameter(valid_621817, JString, required = true, + if valid_621818 != nil: + section.add "Action", valid_621818 + var valid_621819 = query.getOrDefault("Version") + valid_621819 = validateParameter(valid_621819, JString, required = true, default = newJString("2016-11-15")) - if valid_621817 != nil: - section.add "Version", valid_621817 + if valid_621819 != nil: + section.add "Version", valid_621819 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -87908,69 +87935,69 @@ proc validate_PostDisableEbsEncryptionByDefault_621814(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621818 = header.getOrDefault("X-Amz-Signature") - valid_621818 = validateParameter(valid_621818, JString, required = false, - default = nil) - if valid_621818 != nil: - section.add "X-Amz-Signature", valid_621818 - var valid_621819 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621819 = validateParameter(valid_621819, JString, required = false, - default = nil) - if valid_621819 != nil: - section.add "X-Amz-Content-Sha256", valid_621819 - var valid_621820 = header.getOrDefault("X-Amz-Date") + var valid_621820 = header.getOrDefault("X-Amz-Signature") valid_621820 = validateParameter(valid_621820, JString, required = false, default = nil) if valid_621820 != nil: - section.add "X-Amz-Date", valid_621820 - var valid_621821 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621820 + var valid_621821 = header.getOrDefault("X-Amz-Content-Sha256") valid_621821 = validateParameter(valid_621821, JString, required = false, default = nil) if valid_621821 != nil: - section.add "X-Amz-Credential", valid_621821 - var valid_621822 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621821 + var valid_621822 = header.getOrDefault("X-Amz-Date") valid_621822 = validateParameter(valid_621822, JString, required = false, default = nil) if valid_621822 != nil: - section.add "X-Amz-Security-Token", valid_621822 - var valid_621823 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621822 + var valid_621823 = header.getOrDefault("X-Amz-Credential") valid_621823 = validateParameter(valid_621823, JString, required = false, default = nil) if valid_621823 != nil: - section.add "X-Amz-Algorithm", valid_621823 - var valid_621824 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621823 + var valid_621824 = header.getOrDefault("X-Amz-Security-Token") valid_621824 = validateParameter(valid_621824, JString, required = false, default = nil) if valid_621824 != nil: - section.add "X-Amz-SignedHeaders", valid_621824 + section.add "X-Amz-Security-Token", valid_621824 + var valid_621825 = header.getOrDefault("X-Amz-Algorithm") + valid_621825 = validateParameter(valid_621825, JString, required = false, + default = nil) + if valid_621825 != nil: + section.add "X-Amz-Algorithm", valid_621825 + var valid_621826 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621826 = validateParameter(valid_621826, JString, required = false, + default = nil) + if valid_621826 != nil: + section.add "X-Amz-SignedHeaders", valid_621826 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool ## : 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. section = newJObject() - var valid_621825 = formData.getOrDefault("DryRun") - valid_621825 = validateParameter(valid_621825, JBool, required = false, default = nil) - if valid_621825 != nil: - section.add "DryRun", valid_621825 + var valid_621827 = formData.getOrDefault("DryRun") + valid_621827 = validateParameter(valid_621827, JBool, required = false, default = nil) + if valid_621827 != nil: + section.add "DryRun", valid_621827 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621826: Call_PostDisableEbsEncryptionByDefault_621813; +proc call*(call_621828: Call_PostDisableEbsEncryptionByDefault_621815; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Disables EBS encryption by default for your account in the current Region.

    After you disable encryption by default, you can still create encrypted volumes by enabling encryption when you create each volume.

    Disabling encryption by default does not change the encryption status of your existing volumes.

    For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_621826.validator(path, query, header, formData, body) - let scheme = call_621826.pickScheme + let valid = call_621828.validator(path, query, header, formData, body) + let scheme = call_621828.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621826.url(scheme.get, call_621826.host, call_621826.base, - call_621826.route, valid.getOrDefault("path"), + let url = call_621828.url(scheme.get, call_621828.host, call_621828.base, + call_621828.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621826, url, valid) + result = atozHook(call_621828, url, valid) -proc call*(call_621827: Call_PostDisableEbsEncryptionByDefault_621813; +proc call*(call_621829: Call_PostDisableEbsEncryptionByDefault_621815; DryRun: bool = false; Action: string = "DisableEbsEncryptionByDefault"; Version: string = "2016-11-15"): Recallable = ## postDisableEbsEncryptionByDefault @@ -87979,22 +88006,22 @@ proc call*(call_621827: Call_PostDisableEbsEncryptionByDefault_621813; ## : 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. ## Action: string (required) ## Version: string (required) - var query_621828 = newJObject() - var formData_621829 = newJObject() - add(formData_621829, "DryRun", newJBool(DryRun)) - add(query_621828, "Action", newJString(Action)) - add(query_621828, "Version", newJString(Version)) - result = call_621827.call(nil, query_621828, nil, formData_621829, nil) + var query_621830 = newJObject() + var formData_621831 = newJObject() + add(formData_621831, "DryRun", newJBool(DryRun)) + add(query_621830, "Action", newJString(Action)) + add(query_621830, "Version", newJString(Version)) + result = call_621829.call(nil, query_621830, nil, formData_621831, nil) -var postDisableEbsEncryptionByDefault* = Call_PostDisableEbsEncryptionByDefault_621813( +var postDisableEbsEncryptionByDefault* = Call_PostDisableEbsEncryptionByDefault_621815( name: "postDisableEbsEncryptionByDefault", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DisableEbsEncryptionByDefault", - validator: validate_PostDisableEbsEncryptionByDefault_621814, base: "/", - url: url_PostDisableEbsEncryptionByDefault_621815, + validator: validate_PostDisableEbsEncryptionByDefault_621816, base: "/", + url: url_PostDisableEbsEncryptionByDefault_621817, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDisableEbsEncryptionByDefault_621797 = ref object of OpenApiRestCall_610658 -proc url_GetDisableEbsEncryptionByDefault_621799(protocol: Scheme; host: string; + Call_GetDisableEbsEncryptionByDefault_621799 = ref object of OpenApiRestCall_610658 +proc url_GetDisableEbsEncryptionByDefault_621801(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -88004,7 +88031,7 @@ proc url_GetDisableEbsEncryptionByDefault_621799(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDisableEbsEncryptionByDefault_621798(path: JsonNode; +proc validate_GetDisableEbsEncryptionByDefault_621800(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Disables EBS encryption by default for your account in the current Region.

    After you disable encryption by default, you can still create encrypted volumes by enabling encryption when you create each volume.

    Disabling encryption by default does not change the encryption status of your existing volumes.

    For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -88018,20 +88045,20 @@ proc validate_GetDisableEbsEncryptionByDefault_621798(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621800 = query.getOrDefault("DryRun") - valid_621800 = validateParameter(valid_621800, JBool, required = false, default = nil) - if valid_621800 != nil: - section.add "DryRun", valid_621800 - var valid_621801 = query.getOrDefault("Action") - valid_621801 = validateParameter(valid_621801, JString, required = true, default = newJString( + var valid_621802 = query.getOrDefault("DryRun") + valid_621802 = validateParameter(valid_621802, JBool, required = false, default = nil) + if valid_621802 != nil: + section.add "DryRun", valid_621802 + var valid_621803 = query.getOrDefault("Action") + valid_621803 = validateParameter(valid_621803, JString, required = true, default = newJString( "DisableEbsEncryptionByDefault")) - if valid_621801 != nil: - section.add "Action", valid_621801 - var valid_621802 = query.getOrDefault("Version") - valid_621802 = validateParameter(valid_621802, JString, required = true, + if valid_621803 != nil: + section.add "Action", valid_621803 + var valid_621804 = query.getOrDefault("Version") + valid_621804 = validateParameter(valid_621804, JString, required = true, default = newJString("2016-11-15")) - if valid_621802 != nil: - section.add "Version", valid_621802 + if valid_621804 != nil: + section.add "Version", valid_621804 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -88042,62 +88069,62 @@ proc validate_GetDisableEbsEncryptionByDefault_621798(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621803 = header.getOrDefault("X-Amz-Signature") - valid_621803 = validateParameter(valid_621803, JString, required = false, - default = nil) - if valid_621803 != nil: - section.add "X-Amz-Signature", valid_621803 - var valid_621804 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621804 = validateParameter(valid_621804, JString, required = false, - default = nil) - if valid_621804 != nil: - section.add "X-Amz-Content-Sha256", valid_621804 - var valid_621805 = header.getOrDefault("X-Amz-Date") + var valid_621805 = header.getOrDefault("X-Amz-Signature") valid_621805 = validateParameter(valid_621805, JString, required = false, default = nil) if valid_621805 != nil: - section.add "X-Amz-Date", valid_621805 - var valid_621806 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621805 + var valid_621806 = header.getOrDefault("X-Amz-Content-Sha256") valid_621806 = validateParameter(valid_621806, JString, required = false, default = nil) if valid_621806 != nil: - section.add "X-Amz-Credential", valid_621806 - var valid_621807 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621806 + var valid_621807 = header.getOrDefault("X-Amz-Date") valid_621807 = validateParameter(valid_621807, JString, required = false, default = nil) if valid_621807 != nil: - section.add "X-Amz-Security-Token", valid_621807 - var valid_621808 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621807 + var valid_621808 = header.getOrDefault("X-Amz-Credential") valid_621808 = validateParameter(valid_621808, JString, required = false, default = nil) if valid_621808 != nil: - section.add "X-Amz-Algorithm", valid_621808 - var valid_621809 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621808 + var valid_621809 = header.getOrDefault("X-Amz-Security-Token") valid_621809 = validateParameter(valid_621809, JString, required = false, default = nil) if valid_621809 != nil: - section.add "X-Amz-SignedHeaders", valid_621809 + section.add "X-Amz-Security-Token", valid_621809 + var valid_621810 = header.getOrDefault("X-Amz-Algorithm") + valid_621810 = validateParameter(valid_621810, JString, required = false, + default = nil) + if valid_621810 != nil: + section.add "X-Amz-Algorithm", valid_621810 + var valid_621811 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621811 = validateParameter(valid_621811, JString, required = false, + default = nil) + if valid_621811 != nil: + section.add "X-Amz-SignedHeaders", valid_621811 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621810: Call_GetDisableEbsEncryptionByDefault_621797; +proc call*(call_621812: Call_GetDisableEbsEncryptionByDefault_621799; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Disables EBS encryption by default for your account in the current Region.

    After you disable encryption by default, you can still create encrypted volumes by enabling encryption when you create each volume.

    Disabling encryption by default does not change the encryption status of your existing volumes.

    For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_621810.validator(path, query, header, formData, body) - let scheme = call_621810.pickScheme + let valid = call_621812.validator(path, query, header, formData, body) + let scheme = call_621812.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621810.url(scheme.get, call_621810.host, call_621810.base, - call_621810.route, valid.getOrDefault("path"), + let url = call_621812.url(scheme.get, call_621812.host, call_621812.base, + call_621812.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621810, url, valid) + result = atozHook(call_621812, url, valid) -proc call*(call_621811: Call_GetDisableEbsEncryptionByDefault_621797; +proc call*(call_621813: Call_GetDisableEbsEncryptionByDefault_621799; DryRun: bool = false; Action: string = "DisableEbsEncryptionByDefault"; Version: string = "2016-11-15"): Recallable = ## getDisableEbsEncryptionByDefault @@ -88106,21 +88133,21 @@ proc call*(call_621811: Call_GetDisableEbsEncryptionByDefault_621797; ## : 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. ## Action: string (required) ## Version: string (required) - var query_621812 = newJObject() - add(query_621812, "DryRun", newJBool(DryRun)) - add(query_621812, "Action", newJString(Action)) - add(query_621812, "Version", newJString(Version)) - result = call_621811.call(nil, query_621812, nil, nil, nil) + var query_621814 = newJObject() + add(query_621814, "DryRun", newJBool(DryRun)) + add(query_621814, "Action", newJString(Action)) + add(query_621814, "Version", newJString(Version)) + result = call_621813.call(nil, query_621814, nil, nil, nil) -var getDisableEbsEncryptionByDefault* = Call_GetDisableEbsEncryptionByDefault_621797( +var getDisableEbsEncryptionByDefault* = Call_GetDisableEbsEncryptionByDefault_621799( name: "getDisableEbsEncryptionByDefault", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DisableEbsEncryptionByDefault", - validator: validate_GetDisableEbsEncryptionByDefault_621798, base: "/", - url: url_GetDisableEbsEncryptionByDefault_621799, + validator: validate_GetDisableEbsEncryptionByDefault_621800, base: "/", + url: url_GetDisableEbsEncryptionByDefault_621801, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDisableFastSnapshotRestores_621848 = ref object of OpenApiRestCall_610658 -proc url_PostDisableFastSnapshotRestores_621850(protocol: Scheme; host: string; + Call_PostDisableFastSnapshotRestores_621850 = ref object of OpenApiRestCall_610658 +proc url_PostDisableFastSnapshotRestores_621852(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -88130,7 +88157,7 @@ proc url_PostDisableFastSnapshotRestores_621850(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDisableFastSnapshotRestores_621849(path: JsonNode; +proc validate_PostDisableFastSnapshotRestores_621851(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Disables fast snapshot restores for the specified snapshots in the specified Availability Zones. ## @@ -88142,16 +88169,16 @@ proc validate_PostDisableFastSnapshotRestores_621849(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621851 = query.getOrDefault("Action") - valid_621851 = validateParameter(valid_621851, JString, required = true, default = newJString( + var valid_621853 = query.getOrDefault("Action") + valid_621853 = validateParameter(valid_621853, JString, required = true, default = newJString( "DisableFastSnapshotRestores")) - if valid_621851 != nil: - section.add "Action", valid_621851 - var valid_621852 = query.getOrDefault("Version") - valid_621852 = validateParameter(valid_621852, JString, required = true, + if valid_621853 != nil: + section.add "Action", valid_621853 + var valid_621854 = query.getOrDefault("Version") + valid_621854 = validateParameter(valid_621854, JString, required = true, default = newJString("2016-11-15")) - if valid_621852 != nil: - section.add "Version", valid_621852 + if valid_621854 != nil: + section.add "Version", valid_621854 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -88162,41 +88189,41 @@ proc validate_PostDisableFastSnapshotRestores_621849(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621853 = header.getOrDefault("X-Amz-Signature") - valid_621853 = validateParameter(valid_621853, JString, required = false, - default = nil) - if valid_621853 != nil: - section.add "X-Amz-Signature", valid_621853 - var valid_621854 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621854 = validateParameter(valid_621854, JString, required = false, - default = nil) - if valid_621854 != nil: - section.add "X-Amz-Content-Sha256", valid_621854 - var valid_621855 = header.getOrDefault("X-Amz-Date") + var valid_621855 = header.getOrDefault("X-Amz-Signature") valid_621855 = validateParameter(valid_621855, JString, required = false, default = nil) if valid_621855 != nil: - section.add "X-Amz-Date", valid_621855 - var valid_621856 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621855 + var valid_621856 = header.getOrDefault("X-Amz-Content-Sha256") valid_621856 = validateParameter(valid_621856, JString, required = false, default = nil) if valid_621856 != nil: - section.add "X-Amz-Credential", valid_621856 - var valid_621857 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621856 + var valid_621857 = header.getOrDefault("X-Amz-Date") valid_621857 = validateParameter(valid_621857, JString, required = false, default = nil) if valid_621857 != nil: - section.add "X-Amz-Security-Token", valid_621857 - var valid_621858 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621857 + var valid_621858 = header.getOrDefault("X-Amz-Credential") valid_621858 = validateParameter(valid_621858, JString, required = false, default = nil) if valid_621858 != nil: - section.add "X-Amz-Algorithm", valid_621858 - var valid_621859 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621858 + var valid_621859 = header.getOrDefault("X-Amz-Security-Token") valid_621859 = validateParameter(valid_621859, JString, required = false, default = nil) if valid_621859 != nil: - section.add "X-Amz-SignedHeaders", valid_621859 + section.add "X-Amz-Security-Token", valid_621859 + var valid_621860 = header.getOrDefault("X-Amz-Algorithm") + valid_621860 = validateParameter(valid_621860, JString, required = false, + default = nil) + if valid_621860 != nil: + section.add "X-Amz-Algorithm", valid_621860 + var valid_621861 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621861 = validateParameter(valid_621861, JString, required = false, + default = nil) + if valid_621861 != nil: + section.add "X-Amz-SignedHeaders", valid_621861 result.add "header", section ## parameters in `formData` object: ## AvailabilityZone: JArray (required) @@ -88207,37 +88234,37 @@ proc validate_PostDisableFastSnapshotRestores_621849(path: JsonNode; ## : 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. section = newJObject() assert formData != nil, "formData argument is necessary due to required `AvailabilityZone` field" - var valid_621860 = formData.getOrDefault("AvailabilityZone") - valid_621860 = validateParameter(valid_621860, JArray, required = true, default = nil) - if valid_621860 != nil: - section.add "AvailabilityZone", valid_621860 - var valid_621861 = formData.getOrDefault("SourceSnapshotId") - valid_621861 = validateParameter(valid_621861, JArray, required = true, default = nil) - if valid_621861 != nil: - section.add "SourceSnapshotId", valid_621861 - var valid_621862 = formData.getOrDefault("DryRun") - valid_621862 = validateParameter(valid_621862, JBool, required = false, default = nil) + var valid_621862 = formData.getOrDefault("AvailabilityZone") + valid_621862 = validateParameter(valid_621862, JArray, required = true, default = nil) if valid_621862 != nil: - section.add "DryRun", valid_621862 + section.add "AvailabilityZone", valid_621862 + var valid_621863 = formData.getOrDefault("SourceSnapshotId") + valid_621863 = validateParameter(valid_621863, JArray, required = true, default = nil) + if valid_621863 != nil: + section.add "SourceSnapshotId", valid_621863 + var valid_621864 = formData.getOrDefault("DryRun") + valid_621864 = validateParameter(valid_621864, JBool, required = false, default = nil) + if valid_621864 != nil: + section.add "DryRun", valid_621864 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621863: Call_PostDisableFastSnapshotRestores_621848; +proc call*(call_621865: Call_PostDisableFastSnapshotRestores_621850; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Disables fast snapshot restores for the specified snapshots in the specified Availability Zones. ## - let valid = call_621863.validator(path, query, header, formData, body) - let scheme = call_621863.pickScheme + let valid = call_621865.validator(path, query, header, formData, body) + let scheme = call_621865.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621863.url(scheme.get, call_621863.host, call_621863.base, - call_621863.route, valid.getOrDefault("path"), + let url = call_621865.url(scheme.get, call_621865.host, call_621865.base, + call_621865.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621863, url, valid) + result = atozHook(call_621865, url, valid) -proc call*(call_621864: Call_PostDisableFastSnapshotRestores_621848; +proc call*(call_621866: Call_PostDisableFastSnapshotRestores_621850; AvailabilityZone: JsonNode; SourceSnapshotId: JsonNode; DryRun: bool = false; Action: string = "DisableFastSnapshotRestores"; Version: string = "2016-11-15"): Recallable = @@ -88251,26 +88278,26 @@ proc call*(call_621864: Call_PostDisableFastSnapshotRestores_621848; ## : 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. ## Action: string (required) ## Version: string (required) - var query_621865 = newJObject() - var formData_621866 = newJObject() + var query_621867 = newJObject() + var formData_621868 = newJObject() if AvailabilityZone != nil: - formData_621866.add "AvailabilityZone", AvailabilityZone + formData_621868.add "AvailabilityZone", AvailabilityZone if SourceSnapshotId != nil: - formData_621866.add "SourceSnapshotId", SourceSnapshotId - add(formData_621866, "DryRun", newJBool(DryRun)) - add(query_621865, "Action", newJString(Action)) - add(query_621865, "Version", newJString(Version)) - result = call_621864.call(nil, query_621865, nil, formData_621866, nil) + formData_621868.add "SourceSnapshotId", SourceSnapshotId + add(formData_621868, "DryRun", newJBool(DryRun)) + add(query_621867, "Action", newJString(Action)) + add(query_621867, "Version", newJString(Version)) + result = call_621866.call(nil, query_621867, nil, formData_621868, nil) -var postDisableFastSnapshotRestores* = Call_PostDisableFastSnapshotRestores_621848( +var postDisableFastSnapshotRestores* = Call_PostDisableFastSnapshotRestores_621850( name: "postDisableFastSnapshotRestores", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DisableFastSnapshotRestores", - validator: validate_PostDisableFastSnapshotRestores_621849, base: "/", - url: url_PostDisableFastSnapshotRestores_621850, + validator: validate_PostDisableFastSnapshotRestores_621851, base: "/", + url: url_PostDisableFastSnapshotRestores_621852, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDisableFastSnapshotRestores_621830 = ref object of OpenApiRestCall_610658 -proc url_GetDisableFastSnapshotRestores_621832(protocol: Scheme; host: string; + Call_GetDisableFastSnapshotRestores_621832 = ref object of OpenApiRestCall_610658 +proc url_GetDisableFastSnapshotRestores_621834(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -88280,7 +88307,7 @@ proc url_GetDisableFastSnapshotRestores_621832(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDisableFastSnapshotRestores_621831(path: JsonNode; +proc validate_GetDisableFastSnapshotRestores_621833(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Disables fast snapshot restores for the specified snapshots in the specified Availability Zones. ## @@ -88298,28 +88325,28 @@ proc validate_GetDisableFastSnapshotRestores_621831(path: JsonNode; ## SourceSnapshotId: JArray (required) ## : The IDs of one or more snapshots. For example, snap-1234567890abcdef0. section = newJObject() - var valid_621833 = query.getOrDefault("DryRun") - valid_621833 = validateParameter(valid_621833, JBool, required = false, default = nil) - if valid_621833 != nil: - section.add "DryRun", valid_621833 - var valid_621834 = query.getOrDefault("Action") - valid_621834 = validateParameter(valid_621834, JString, required = true, default = newJString( - "DisableFastSnapshotRestores")) - if valid_621834 != nil: - section.add "Action", valid_621834 - var valid_621835 = query.getOrDefault("AvailabilityZone") - valid_621835 = validateParameter(valid_621835, JArray, required = true, default = nil) + var valid_621835 = query.getOrDefault("DryRun") + valid_621835 = validateParameter(valid_621835, JBool, required = false, default = nil) if valid_621835 != nil: - section.add "AvailabilityZone", valid_621835 - var valid_621836 = query.getOrDefault("Version") - valid_621836 = validateParameter(valid_621836, JString, required = true, - default = newJString("2016-11-15")) + section.add "DryRun", valid_621835 + var valid_621836 = query.getOrDefault("Action") + valid_621836 = validateParameter(valid_621836, JString, required = true, default = newJString( + "DisableFastSnapshotRestores")) if valid_621836 != nil: - section.add "Version", valid_621836 - var valid_621837 = query.getOrDefault("SourceSnapshotId") + section.add "Action", valid_621836 + var valid_621837 = query.getOrDefault("AvailabilityZone") valid_621837 = validateParameter(valid_621837, JArray, required = true, default = nil) if valid_621837 != nil: - section.add "SourceSnapshotId", valid_621837 + section.add "AvailabilityZone", valid_621837 + var valid_621838 = query.getOrDefault("Version") + valid_621838 = validateParameter(valid_621838, JString, required = true, + default = newJString("2016-11-15")) + if valid_621838 != nil: + section.add "Version", valid_621838 + var valid_621839 = query.getOrDefault("SourceSnapshotId") + valid_621839 = validateParameter(valid_621839, JArray, required = true, default = nil) + if valid_621839 != nil: + section.add "SourceSnapshotId", valid_621839 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -88330,61 +88357,61 @@ proc validate_GetDisableFastSnapshotRestores_621831(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621838 = header.getOrDefault("X-Amz-Signature") - valid_621838 = validateParameter(valid_621838, JString, required = false, - default = nil) - if valid_621838 != nil: - section.add "X-Amz-Signature", valid_621838 - var valid_621839 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621839 = validateParameter(valid_621839, JString, required = false, - default = nil) - if valid_621839 != nil: - section.add "X-Amz-Content-Sha256", valid_621839 - var valid_621840 = header.getOrDefault("X-Amz-Date") + var valid_621840 = header.getOrDefault("X-Amz-Signature") valid_621840 = validateParameter(valid_621840, JString, required = false, default = nil) if valid_621840 != nil: - section.add "X-Amz-Date", valid_621840 - var valid_621841 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621840 + var valid_621841 = header.getOrDefault("X-Amz-Content-Sha256") valid_621841 = validateParameter(valid_621841, JString, required = false, default = nil) if valid_621841 != nil: - section.add "X-Amz-Credential", valid_621841 - var valid_621842 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621841 + var valid_621842 = header.getOrDefault("X-Amz-Date") valid_621842 = validateParameter(valid_621842, JString, required = false, default = nil) if valid_621842 != nil: - section.add "X-Amz-Security-Token", valid_621842 - var valid_621843 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621842 + var valid_621843 = header.getOrDefault("X-Amz-Credential") valid_621843 = validateParameter(valid_621843, JString, required = false, default = nil) if valid_621843 != nil: - section.add "X-Amz-Algorithm", valid_621843 - var valid_621844 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621843 + var valid_621844 = header.getOrDefault("X-Amz-Security-Token") valid_621844 = validateParameter(valid_621844, JString, required = false, default = nil) if valid_621844 != nil: - section.add "X-Amz-SignedHeaders", valid_621844 + section.add "X-Amz-Security-Token", valid_621844 + var valid_621845 = header.getOrDefault("X-Amz-Algorithm") + valid_621845 = validateParameter(valid_621845, JString, required = false, + default = nil) + if valid_621845 != nil: + section.add "X-Amz-Algorithm", valid_621845 + var valid_621846 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621846 = validateParameter(valid_621846, JString, required = false, + default = nil) + if valid_621846 != nil: + section.add "X-Amz-SignedHeaders", valid_621846 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621845: Call_GetDisableFastSnapshotRestores_621830; path: JsonNode; +proc call*(call_621847: Call_GetDisableFastSnapshotRestores_621832; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Disables fast snapshot restores for the specified snapshots in the specified Availability Zones. ## - let valid = call_621845.validator(path, query, header, formData, body) - let scheme = call_621845.pickScheme + let valid = call_621847.validator(path, query, header, formData, body) + let scheme = call_621847.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621845.url(scheme.get, call_621845.host, call_621845.base, - call_621845.route, valid.getOrDefault("path"), + let url = call_621847.url(scheme.get, call_621847.host, call_621847.base, + call_621847.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621845, url, valid) + result = atozHook(call_621847, url, valid) -proc call*(call_621846: Call_GetDisableFastSnapshotRestores_621830; +proc call*(call_621848: Call_GetDisableFastSnapshotRestores_621832; AvailabilityZone: JsonNode; SourceSnapshotId: JsonNode; DryRun: bool = false; Action: string = "DisableFastSnapshotRestores"; Version: string = "2016-11-15"): Recallable = @@ -88398,25 +88425,25 @@ proc call*(call_621846: Call_GetDisableFastSnapshotRestores_621830; ## Version: string (required) ## SourceSnapshotId: JArray (required) ## : The IDs of one or more snapshots. For example, snap-1234567890abcdef0. - var query_621847 = newJObject() - add(query_621847, "DryRun", newJBool(DryRun)) - add(query_621847, "Action", newJString(Action)) + var query_621849 = newJObject() + add(query_621849, "DryRun", newJBool(DryRun)) + add(query_621849, "Action", newJString(Action)) if AvailabilityZone != nil: - query_621847.add "AvailabilityZone", AvailabilityZone - add(query_621847, "Version", newJString(Version)) + query_621849.add "AvailabilityZone", AvailabilityZone + add(query_621849, "Version", newJString(Version)) if SourceSnapshotId != nil: - query_621847.add "SourceSnapshotId", SourceSnapshotId - result = call_621846.call(nil, query_621847, nil, nil, nil) + query_621849.add "SourceSnapshotId", SourceSnapshotId + result = call_621848.call(nil, query_621849, nil, nil, nil) -var getDisableFastSnapshotRestores* = Call_GetDisableFastSnapshotRestores_621830( +var getDisableFastSnapshotRestores* = Call_GetDisableFastSnapshotRestores_621832( name: "getDisableFastSnapshotRestores", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DisableFastSnapshotRestores", - validator: validate_GetDisableFastSnapshotRestores_621831, base: "/", - url: url_GetDisableFastSnapshotRestores_621832, + validator: validate_GetDisableFastSnapshotRestores_621833, base: "/", + url: url_GetDisableFastSnapshotRestores_621834, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDisableTransitGatewayRouteTablePropagation_621885 = ref object of OpenApiRestCall_610658 -proc url_PostDisableTransitGatewayRouteTablePropagation_621887(protocol: Scheme; + Call_PostDisableTransitGatewayRouteTablePropagation_621887 = ref object of OpenApiRestCall_610658 +proc url_PostDisableTransitGatewayRouteTablePropagation_621889(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -88426,7 +88453,7 @@ proc url_PostDisableTransitGatewayRouteTablePropagation_621887(protocol: Scheme; else: result.path = base & route -proc validate_PostDisableTransitGatewayRouteTablePropagation_621886( +proc validate_PostDisableTransitGatewayRouteTablePropagation_621888( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Disables the specified resource attachment from propagating routes to the specified propagation route table. @@ -88439,16 +88466,16 @@ proc validate_PostDisableTransitGatewayRouteTablePropagation_621886( ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621888 = query.getOrDefault("Action") - valid_621888 = validateParameter(valid_621888, JString, required = true, default = newJString( + var valid_621890 = query.getOrDefault("Action") + valid_621890 = validateParameter(valid_621890, JString, required = true, default = newJString( "DisableTransitGatewayRouteTablePropagation")) - if valid_621888 != nil: - section.add "Action", valid_621888 - var valid_621889 = query.getOrDefault("Version") - valid_621889 = validateParameter(valid_621889, JString, required = true, + if valid_621890 != nil: + section.add "Action", valid_621890 + var valid_621891 = query.getOrDefault("Version") + valid_621891 = validateParameter(valid_621891, JString, required = true, default = newJString("2016-11-15")) - if valid_621889 != nil: - section.add "Version", valid_621889 + if valid_621891 != nil: + section.add "Version", valid_621891 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -88459,41 +88486,41 @@ proc validate_PostDisableTransitGatewayRouteTablePropagation_621886( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621890 = header.getOrDefault("X-Amz-Signature") - valid_621890 = validateParameter(valid_621890, JString, required = false, - default = nil) - if valid_621890 != nil: - section.add "X-Amz-Signature", valid_621890 - var valid_621891 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621891 = validateParameter(valid_621891, JString, required = false, - default = nil) - if valid_621891 != nil: - section.add "X-Amz-Content-Sha256", valid_621891 - var valid_621892 = header.getOrDefault("X-Amz-Date") + var valid_621892 = header.getOrDefault("X-Amz-Signature") valid_621892 = validateParameter(valid_621892, JString, required = false, default = nil) if valid_621892 != nil: - section.add "X-Amz-Date", valid_621892 - var valid_621893 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621892 + var valid_621893 = header.getOrDefault("X-Amz-Content-Sha256") valid_621893 = validateParameter(valid_621893, JString, required = false, default = nil) if valid_621893 != nil: - section.add "X-Amz-Credential", valid_621893 - var valid_621894 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621893 + var valid_621894 = header.getOrDefault("X-Amz-Date") valid_621894 = validateParameter(valid_621894, JString, required = false, default = nil) if valid_621894 != nil: - section.add "X-Amz-Security-Token", valid_621894 - var valid_621895 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621894 + var valid_621895 = header.getOrDefault("X-Amz-Credential") valid_621895 = validateParameter(valid_621895, JString, required = false, default = nil) if valid_621895 != nil: - section.add "X-Amz-Algorithm", valid_621895 - var valid_621896 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621895 + var valid_621896 = header.getOrDefault("X-Amz-Security-Token") valid_621896 = validateParameter(valid_621896, JString, required = false, default = nil) if valid_621896 != nil: - section.add "X-Amz-SignedHeaders", valid_621896 + section.add "X-Amz-Security-Token", valid_621896 + var valid_621897 = header.getOrDefault("X-Amz-Algorithm") + valid_621897 = validateParameter(valid_621897, JString, required = false, + default = nil) + if valid_621897 != nil: + section.add "X-Amz-Algorithm", valid_621897 + var valid_621898 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621898 = validateParameter(valid_621898, JString, required = false, + default = nil) + if valid_621898 != nil: + section.add "X-Amz-SignedHeaders", valid_621898 result.add "header", section ## parameters in `formData` object: ## TransitGatewayRouteTableId: JString (required) @@ -88504,39 +88531,39 @@ proc validate_PostDisableTransitGatewayRouteTablePropagation_621886( ## : The ID of the attachment. section = newJObject() assert formData != nil, "formData argument is necessary due to required `TransitGatewayRouteTableId` field" - var valid_621897 = formData.getOrDefault("TransitGatewayRouteTableId") - valid_621897 = validateParameter(valid_621897, JString, required = true, - default = nil) - if valid_621897 != nil: - section.add "TransitGatewayRouteTableId", valid_621897 - var valid_621898 = formData.getOrDefault("DryRun") - valid_621898 = validateParameter(valid_621898, JBool, required = false, default = nil) - if valid_621898 != nil: - section.add "DryRun", valid_621898 - var valid_621899 = formData.getOrDefault("TransitGatewayAttachmentId") + var valid_621899 = formData.getOrDefault("TransitGatewayRouteTableId") valid_621899 = validateParameter(valid_621899, JString, required = true, default = nil) if valid_621899 != nil: - section.add "TransitGatewayAttachmentId", valid_621899 + section.add "TransitGatewayRouteTableId", valid_621899 + var valid_621900 = formData.getOrDefault("DryRun") + valid_621900 = validateParameter(valid_621900, JBool, required = false, default = nil) + if valid_621900 != nil: + section.add "DryRun", valid_621900 + var valid_621901 = formData.getOrDefault("TransitGatewayAttachmentId") + valid_621901 = validateParameter(valid_621901, JString, required = true, + default = nil) + if valid_621901 != nil: + section.add "TransitGatewayAttachmentId", valid_621901 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621900: Call_PostDisableTransitGatewayRouteTablePropagation_621885; +proc call*(call_621902: Call_PostDisableTransitGatewayRouteTablePropagation_621887; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Disables the specified resource attachment from propagating routes to the specified propagation route table. ## - let valid = call_621900.validator(path, query, header, formData, body) - let scheme = call_621900.pickScheme + let valid = call_621902.validator(path, query, header, formData, body) + let scheme = call_621902.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621900.url(scheme.get, call_621900.host, call_621900.base, - call_621900.route, valid.getOrDefault("path"), + let url = call_621902.url(scheme.get, call_621902.host, call_621902.base, + call_621902.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621900, url, valid) + result = atozHook(call_621902, url, valid) -proc call*(call_621901: Call_PostDisableTransitGatewayRouteTablePropagation_621885; +proc call*(call_621903: Call_PostDisableTransitGatewayRouteTablePropagation_621887; TransitGatewayRouteTableId: string; TransitGatewayAttachmentId: string; DryRun: bool = false; Action: string = "DisableTransitGatewayRouteTablePropagation"; @@ -88551,27 +88578,27 @@ proc call*(call_621901: Call_PostDisableTransitGatewayRouteTablePropagation_6218 ## Version: string (required) ## TransitGatewayAttachmentId: string (required) ## : The ID of the attachment. - var query_621902 = newJObject() - var formData_621903 = newJObject() - add(formData_621903, "TransitGatewayRouteTableId", + var query_621904 = newJObject() + var formData_621905 = newJObject() + add(formData_621905, "TransitGatewayRouteTableId", newJString(TransitGatewayRouteTableId)) - add(formData_621903, "DryRun", newJBool(DryRun)) - add(query_621902, "Action", newJString(Action)) - add(query_621902, "Version", newJString(Version)) - add(formData_621903, "TransitGatewayAttachmentId", + add(formData_621905, "DryRun", newJBool(DryRun)) + add(query_621904, "Action", newJString(Action)) + add(query_621904, "Version", newJString(Version)) + add(formData_621905, "TransitGatewayAttachmentId", newJString(TransitGatewayAttachmentId)) - result = call_621901.call(nil, query_621902, nil, formData_621903, nil) + result = call_621903.call(nil, query_621904, nil, formData_621905, nil) -var postDisableTransitGatewayRouteTablePropagation* = Call_PostDisableTransitGatewayRouteTablePropagation_621885( +var postDisableTransitGatewayRouteTablePropagation* = Call_PostDisableTransitGatewayRouteTablePropagation_621887( name: "postDisableTransitGatewayRouteTablePropagation", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DisableTransitGatewayRouteTablePropagation", - validator: validate_PostDisableTransitGatewayRouteTablePropagation_621886, - base: "/", url: url_PostDisableTransitGatewayRouteTablePropagation_621887, + validator: validate_PostDisableTransitGatewayRouteTablePropagation_621888, + base: "/", url: url_PostDisableTransitGatewayRouteTablePropagation_621889, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDisableTransitGatewayRouteTablePropagation_621867 = ref object of OpenApiRestCall_610658 -proc url_GetDisableTransitGatewayRouteTablePropagation_621869(protocol: Scheme; + Call_GetDisableTransitGatewayRouteTablePropagation_621869 = ref object of OpenApiRestCall_610658 +proc url_GetDisableTransitGatewayRouteTablePropagation_621871(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -88581,7 +88608,7 @@ proc url_GetDisableTransitGatewayRouteTablePropagation_621869(protocol: Scheme; else: result.path = base & route -proc validate_GetDisableTransitGatewayRouteTablePropagation_621868( +proc validate_GetDisableTransitGatewayRouteTablePropagation_621870( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Disables the specified resource attachment from propagating routes to the specified propagation route table. @@ -88600,31 +88627,31 @@ proc validate_GetDisableTransitGatewayRouteTablePropagation_621868( ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621870 = query.getOrDefault("DryRun") - valid_621870 = validateParameter(valid_621870, JBool, required = false, default = nil) - if valid_621870 != nil: - section.add "DryRun", valid_621870 + var valid_621872 = query.getOrDefault("DryRun") + valid_621872 = validateParameter(valid_621872, JBool, required = false, default = nil) + if valid_621872 != nil: + section.add "DryRun", valid_621872 assert query != nil, "query argument is necessary due to required `TransitGatewayRouteTableId` field" - var valid_621871 = query.getOrDefault("TransitGatewayRouteTableId") - valid_621871 = validateParameter(valid_621871, JString, required = true, - default = nil) - if valid_621871 != nil: - section.add "TransitGatewayRouteTableId", valid_621871 - var valid_621872 = query.getOrDefault("TransitGatewayAttachmentId") - valid_621872 = validateParameter(valid_621872, JString, required = true, + var valid_621873 = query.getOrDefault("TransitGatewayRouteTableId") + valid_621873 = validateParameter(valid_621873, JString, required = true, default = nil) - if valid_621872 != nil: - section.add "TransitGatewayAttachmentId", valid_621872 - var valid_621873 = query.getOrDefault("Action") - valid_621873 = validateParameter(valid_621873, JString, required = true, default = newJString( - "DisableTransitGatewayRouteTablePropagation")) if valid_621873 != nil: - section.add "Action", valid_621873 - var valid_621874 = query.getOrDefault("Version") + section.add "TransitGatewayRouteTableId", valid_621873 + var valid_621874 = query.getOrDefault("TransitGatewayAttachmentId") valid_621874 = validateParameter(valid_621874, JString, required = true, - default = newJString("2016-11-15")) + default = nil) if valid_621874 != nil: - section.add "Version", valid_621874 + section.add "TransitGatewayAttachmentId", valid_621874 + var valid_621875 = query.getOrDefault("Action") + valid_621875 = validateParameter(valid_621875, JString, required = true, default = newJString( + "DisableTransitGatewayRouteTablePropagation")) + if valid_621875 != nil: + section.add "Action", valid_621875 + var valid_621876 = query.getOrDefault("Version") + valid_621876 = validateParameter(valid_621876, JString, required = true, + default = newJString("2016-11-15")) + if valid_621876 != nil: + section.add "Version", valid_621876 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -88635,62 +88662,62 @@ proc validate_GetDisableTransitGatewayRouteTablePropagation_621868( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621875 = header.getOrDefault("X-Amz-Signature") - valid_621875 = validateParameter(valid_621875, JString, required = false, - default = nil) - if valid_621875 != nil: - section.add "X-Amz-Signature", valid_621875 - var valid_621876 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621876 = validateParameter(valid_621876, JString, required = false, - default = nil) - if valid_621876 != nil: - section.add "X-Amz-Content-Sha256", valid_621876 - var valid_621877 = header.getOrDefault("X-Amz-Date") + var valid_621877 = header.getOrDefault("X-Amz-Signature") valid_621877 = validateParameter(valid_621877, JString, required = false, default = nil) if valid_621877 != nil: - section.add "X-Amz-Date", valid_621877 - var valid_621878 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621877 + var valid_621878 = header.getOrDefault("X-Amz-Content-Sha256") valid_621878 = validateParameter(valid_621878, JString, required = false, default = nil) if valid_621878 != nil: - section.add "X-Amz-Credential", valid_621878 - var valid_621879 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621878 + var valid_621879 = header.getOrDefault("X-Amz-Date") valid_621879 = validateParameter(valid_621879, JString, required = false, default = nil) if valid_621879 != nil: - section.add "X-Amz-Security-Token", valid_621879 - var valid_621880 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621879 + var valid_621880 = header.getOrDefault("X-Amz-Credential") valid_621880 = validateParameter(valid_621880, JString, required = false, default = nil) if valid_621880 != nil: - section.add "X-Amz-Algorithm", valid_621880 - var valid_621881 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621880 + var valid_621881 = header.getOrDefault("X-Amz-Security-Token") valid_621881 = validateParameter(valid_621881, JString, required = false, default = nil) if valid_621881 != nil: - section.add "X-Amz-SignedHeaders", valid_621881 + section.add "X-Amz-Security-Token", valid_621881 + var valid_621882 = header.getOrDefault("X-Amz-Algorithm") + valid_621882 = validateParameter(valid_621882, JString, required = false, + default = nil) + if valid_621882 != nil: + section.add "X-Amz-Algorithm", valid_621882 + var valid_621883 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621883 = validateParameter(valid_621883, JString, required = false, + default = nil) + if valid_621883 != nil: + section.add "X-Amz-SignedHeaders", valid_621883 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621882: Call_GetDisableTransitGatewayRouteTablePropagation_621867; +proc call*(call_621884: Call_GetDisableTransitGatewayRouteTablePropagation_621869; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Disables the specified resource attachment from propagating routes to the specified propagation route table. ## - let valid = call_621882.validator(path, query, header, formData, body) - let scheme = call_621882.pickScheme + let valid = call_621884.validator(path, query, header, formData, body) + let scheme = call_621884.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621882.url(scheme.get, call_621882.host, call_621882.base, - call_621882.route, valid.getOrDefault("path"), + let url = call_621884.url(scheme.get, call_621884.host, call_621884.base, + call_621884.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621882, url, valid) + result = atozHook(call_621884, url, valid) -proc call*(call_621883: Call_GetDisableTransitGatewayRouteTablePropagation_621867; +proc call*(call_621885: Call_GetDisableTransitGatewayRouteTablePropagation_621869; TransitGatewayRouteTableId: string; TransitGatewayAttachmentId: string; DryRun: bool = false; Action: string = "DisableTransitGatewayRouteTablePropagation"; @@ -88705,26 +88732,26 @@ proc call*(call_621883: Call_GetDisableTransitGatewayRouteTablePropagation_62186 ## : The ID of the attachment. ## Action: string (required) ## Version: string (required) - var query_621884 = newJObject() - add(query_621884, "DryRun", newJBool(DryRun)) - add(query_621884, "TransitGatewayRouteTableId", + var query_621886 = newJObject() + add(query_621886, "DryRun", newJBool(DryRun)) + add(query_621886, "TransitGatewayRouteTableId", newJString(TransitGatewayRouteTableId)) - add(query_621884, "TransitGatewayAttachmentId", + add(query_621886, "TransitGatewayAttachmentId", newJString(TransitGatewayAttachmentId)) - add(query_621884, "Action", newJString(Action)) - add(query_621884, "Version", newJString(Version)) - result = call_621883.call(nil, query_621884, nil, nil, nil) + add(query_621886, "Action", newJString(Action)) + add(query_621886, "Version", newJString(Version)) + result = call_621885.call(nil, query_621886, nil, nil, nil) -var getDisableTransitGatewayRouteTablePropagation* = Call_GetDisableTransitGatewayRouteTablePropagation_621867( +var getDisableTransitGatewayRouteTablePropagation* = Call_GetDisableTransitGatewayRouteTablePropagation_621869( name: "getDisableTransitGatewayRouteTablePropagation", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DisableTransitGatewayRouteTablePropagation", - validator: validate_GetDisableTransitGatewayRouteTablePropagation_621868, - base: "/", url: url_GetDisableTransitGatewayRouteTablePropagation_621869, + validator: validate_GetDisableTransitGatewayRouteTablePropagation_621870, + base: "/", url: url_GetDisableTransitGatewayRouteTablePropagation_621871, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDisableVgwRoutePropagation_621921 = ref object of OpenApiRestCall_610658 -proc url_PostDisableVgwRoutePropagation_621923(protocol: Scheme; host: string; + Call_PostDisableVgwRoutePropagation_621923 = ref object of OpenApiRestCall_610658 +proc url_PostDisableVgwRoutePropagation_621925(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -88734,7 +88761,7 @@ proc url_PostDisableVgwRoutePropagation_621923(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDisableVgwRoutePropagation_621922(path: JsonNode; +proc validate_PostDisableVgwRoutePropagation_621924(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Disables a virtual private gateway (VGW) from propagating routes to a specified route table of a VPC. ## @@ -88746,16 +88773,16 @@ proc validate_PostDisableVgwRoutePropagation_621922(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621924 = query.getOrDefault("Action") - valid_621924 = validateParameter(valid_621924, JString, required = true, default = newJString( + var valid_621926 = query.getOrDefault("Action") + valid_621926 = validateParameter(valid_621926, JString, required = true, default = newJString( "DisableVgwRoutePropagation")) - if valid_621924 != nil: - section.add "Action", valid_621924 - var valid_621925 = query.getOrDefault("Version") - valid_621925 = validateParameter(valid_621925, JString, required = true, + if valid_621926 != nil: + section.add "Action", valid_621926 + var valid_621927 = query.getOrDefault("Version") + valid_621927 = validateParameter(valid_621927, JString, required = true, default = newJString("2016-11-15")) - if valid_621925 != nil: - section.add "Version", valid_621925 + if valid_621927 != nil: + section.add "Version", valid_621927 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -88766,41 +88793,41 @@ proc validate_PostDisableVgwRoutePropagation_621922(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621926 = header.getOrDefault("X-Amz-Signature") - valid_621926 = validateParameter(valid_621926, JString, required = false, - default = nil) - if valid_621926 != nil: - section.add "X-Amz-Signature", valid_621926 - var valid_621927 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621927 = validateParameter(valid_621927, JString, required = false, - default = nil) - if valid_621927 != nil: - section.add "X-Amz-Content-Sha256", valid_621927 - var valid_621928 = header.getOrDefault("X-Amz-Date") + var valid_621928 = header.getOrDefault("X-Amz-Signature") valid_621928 = validateParameter(valid_621928, JString, required = false, default = nil) if valid_621928 != nil: - section.add "X-Amz-Date", valid_621928 - var valid_621929 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621928 + var valid_621929 = header.getOrDefault("X-Amz-Content-Sha256") valid_621929 = validateParameter(valid_621929, JString, required = false, default = nil) if valid_621929 != nil: - section.add "X-Amz-Credential", valid_621929 - var valid_621930 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621929 + var valid_621930 = header.getOrDefault("X-Amz-Date") valid_621930 = validateParameter(valid_621930, JString, required = false, default = nil) if valid_621930 != nil: - section.add "X-Amz-Security-Token", valid_621930 - var valid_621931 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621930 + var valid_621931 = header.getOrDefault("X-Amz-Credential") valid_621931 = validateParameter(valid_621931, JString, required = false, default = nil) if valid_621931 != nil: - section.add "X-Amz-Algorithm", valid_621931 - var valid_621932 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621931 + var valid_621932 = header.getOrDefault("X-Amz-Security-Token") valid_621932 = validateParameter(valid_621932, JString, required = false, default = nil) if valid_621932 != nil: - section.add "X-Amz-SignedHeaders", valid_621932 + section.add "X-Amz-Security-Token", valid_621932 + var valid_621933 = header.getOrDefault("X-Amz-Algorithm") + valid_621933 = validateParameter(valid_621933, JString, required = false, + default = nil) + if valid_621933 != nil: + section.add "X-Amz-Algorithm", valid_621933 + var valid_621934 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621934 = validateParameter(valid_621934, JString, required = false, + default = nil) + if valid_621934 != nil: + section.add "X-Amz-SignedHeaders", valid_621934 result.add "header", section ## parameters in `formData` object: ## GatewayId: JString (required) @@ -88810,34 +88837,34 @@ proc validate_PostDisableVgwRoutePropagation_621922(path: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `GatewayId` field" - var valid_621933 = formData.getOrDefault("GatewayId") - valid_621933 = validateParameter(valid_621933, JString, required = true, + var valid_621935 = formData.getOrDefault("GatewayId") + valid_621935 = validateParameter(valid_621935, JString, required = true, default = nil) - if valid_621933 != nil: - section.add "GatewayId", valid_621933 - var valid_621934 = formData.getOrDefault("RouteTableId") - valid_621934 = validateParameter(valid_621934, JString, required = true, + if valid_621935 != nil: + section.add "GatewayId", valid_621935 + var valid_621936 = formData.getOrDefault("RouteTableId") + valid_621936 = validateParameter(valid_621936, JString, required = true, default = nil) - if valid_621934 != nil: - section.add "RouteTableId", valid_621934 + if valid_621936 != nil: + section.add "RouteTableId", valid_621936 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621935: Call_PostDisableVgwRoutePropagation_621921; path: JsonNode; +proc call*(call_621937: Call_PostDisableVgwRoutePropagation_621923; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Disables a virtual private gateway (VGW) from propagating routes to a specified route table of a VPC. ## - let valid = call_621935.validator(path, query, header, formData, body) - let scheme = call_621935.pickScheme + let valid = call_621937.validator(path, query, header, formData, body) + let scheme = call_621937.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621935.url(scheme.get, call_621935.host, call_621935.base, - call_621935.route, valid.getOrDefault("path"), + let url = call_621937.url(scheme.get, call_621937.host, call_621937.base, + call_621937.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621935, url, valid) + result = atozHook(call_621937, url, valid) -proc call*(call_621936: Call_PostDisableVgwRoutePropagation_621921; +proc call*(call_621938: Call_PostDisableVgwRoutePropagation_621923; GatewayId: string; RouteTableId: string; Action: string = "DisableVgwRoutePropagation"; Version: string = "2016-11-15"): Recallable = @@ -88849,23 +88876,23 @@ proc call*(call_621936: Call_PostDisableVgwRoutePropagation_621921; ## : The ID of the route table. ## Action: string (required) ## Version: string (required) - var query_621937 = newJObject() - var formData_621938 = newJObject() - add(formData_621938, "GatewayId", newJString(GatewayId)) - add(formData_621938, "RouteTableId", newJString(RouteTableId)) - add(query_621937, "Action", newJString(Action)) - add(query_621937, "Version", newJString(Version)) - result = call_621936.call(nil, query_621937, nil, formData_621938, nil) + var query_621939 = newJObject() + var formData_621940 = newJObject() + add(formData_621940, "GatewayId", newJString(GatewayId)) + add(formData_621940, "RouteTableId", newJString(RouteTableId)) + add(query_621939, "Action", newJString(Action)) + add(query_621939, "Version", newJString(Version)) + result = call_621938.call(nil, query_621939, nil, formData_621940, nil) -var postDisableVgwRoutePropagation* = Call_PostDisableVgwRoutePropagation_621921( +var postDisableVgwRoutePropagation* = Call_PostDisableVgwRoutePropagation_621923( name: "postDisableVgwRoutePropagation", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DisableVgwRoutePropagation", - validator: validate_PostDisableVgwRoutePropagation_621922, base: "/", - url: url_PostDisableVgwRoutePropagation_621923, + validator: validate_PostDisableVgwRoutePropagation_621924, base: "/", + url: url_PostDisableVgwRoutePropagation_621925, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDisableVgwRoutePropagation_621904 = ref object of OpenApiRestCall_610658 -proc url_GetDisableVgwRoutePropagation_621906(protocol: Scheme; host: string; + Call_GetDisableVgwRoutePropagation_621906 = ref object of OpenApiRestCall_610658 +proc url_GetDisableVgwRoutePropagation_621908(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -88875,7 +88902,7 @@ proc url_GetDisableVgwRoutePropagation_621906(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDisableVgwRoutePropagation_621905(path: JsonNode; query: JsonNode; +proc validate_GetDisableVgwRoutePropagation_621907(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Disables a virtual private gateway (VGW) from propagating routes to a specified route table of a VPC. ## @@ -88893,26 +88920,26 @@ proc validate_GetDisableVgwRoutePropagation_621905(path: JsonNode; query: JsonNo section = newJObject() assert query != nil, "query argument is necessary due to required `GatewayId` field" - var valid_621907 = query.getOrDefault("GatewayId") - valid_621907 = validateParameter(valid_621907, JString, required = true, + var valid_621909 = query.getOrDefault("GatewayId") + valid_621909 = validateParameter(valid_621909, JString, required = true, default = nil) - if valid_621907 != nil: - section.add "GatewayId", valid_621907 - var valid_621908 = query.getOrDefault("Action") - valid_621908 = validateParameter(valid_621908, JString, required = true, default = newJString( + if valid_621909 != nil: + section.add "GatewayId", valid_621909 + var valid_621910 = query.getOrDefault("Action") + valid_621910 = validateParameter(valid_621910, JString, required = true, default = newJString( "DisableVgwRoutePropagation")) - if valid_621908 != nil: - section.add "Action", valid_621908 - var valid_621909 = query.getOrDefault("Version") - valid_621909 = validateParameter(valid_621909, JString, required = true, + if valid_621910 != nil: + section.add "Action", valid_621910 + var valid_621911 = query.getOrDefault("Version") + valid_621911 = validateParameter(valid_621911, JString, required = true, default = newJString("2016-11-15")) - if valid_621909 != nil: - section.add "Version", valid_621909 - var valid_621910 = query.getOrDefault("RouteTableId") - valid_621910 = validateParameter(valid_621910, JString, required = true, + if valid_621911 != nil: + section.add "Version", valid_621911 + var valid_621912 = query.getOrDefault("RouteTableId") + valid_621912 = validateParameter(valid_621912, JString, required = true, default = nil) - if valid_621910 != nil: - section.add "RouteTableId", valid_621910 + if valid_621912 != nil: + section.add "RouteTableId", valid_621912 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -88923,61 +88950,61 @@ proc validate_GetDisableVgwRoutePropagation_621905(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621911 = header.getOrDefault("X-Amz-Signature") - valid_621911 = validateParameter(valid_621911, JString, required = false, - default = nil) - if valid_621911 != nil: - section.add "X-Amz-Signature", valid_621911 - var valid_621912 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621912 = validateParameter(valid_621912, JString, required = false, - default = nil) - if valid_621912 != nil: - section.add "X-Amz-Content-Sha256", valid_621912 - var valid_621913 = header.getOrDefault("X-Amz-Date") + var valid_621913 = header.getOrDefault("X-Amz-Signature") valid_621913 = validateParameter(valid_621913, JString, required = false, default = nil) if valid_621913 != nil: - section.add "X-Amz-Date", valid_621913 - var valid_621914 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621913 + var valid_621914 = header.getOrDefault("X-Amz-Content-Sha256") valid_621914 = validateParameter(valid_621914, JString, required = false, default = nil) if valid_621914 != nil: - section.add "X-Amz-Credential", valid_621914 - var valid_621915 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621914 + var valid_621915 = header.getOrDefault("X-Amz-Date") valid_621915 = validateParameter(valid_621915, JString, required = false, default = nil) if valid_621915 != nil: - section.add "X-Amz-Security-Token", valid_621915 - var valid_621916 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621915 + var valid_621916 = header.getOrDefault("X-Amz-Credential") valid_621916 = validateParameter(valid_621916, JString, required = false, default = nil) if valid_621916 != nil: - section.add "X-Amz-Algorithm", valid_621916 - var valid_621917 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621916 + var valid_621917 = header.getOrDefault("X-Amz-Security-Token") valid_621917 = validateParameter(valid_621917, JString, required = false, default = nil) if valid_621917 != nil: - section.add "X-Amz-SignedHeaders", valid_621917 + section.add "X-Amz-Security-Token", valid_621917 + var valid_621918 = header.getOrDefault("X-Amz-Algorithm") + valid_621918 = validateParameter(valid_621918, JString, required = false, + default = nil) + if valid_621918 != nil: + section.add "X-Amz-Algorithm", valid_621918 + var valid_621919 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621919 = validateParameter(valid_621919, JString, required = false, + default = nil) + if valid_621919 != nil: + section.add "X-Amz-SignedHeaders", valid_621919 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621918: Call_GetDisableVgwRoutePropagation_621904; path: JsonNode; +proc call*(call_621920: Call_GetDisableVgwRoutePropagation_621906; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Disables a virtual private gateway (VGW) from propagating routes to a specified route table of a VPC. ## - let valid = call_621918.validator(path, query, header, formData, body) - let scheme = call_621918.pickScheme + let valid = call_621920.validator(path, query, header, formData, body) + let scheme = call_621920.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621918.url(scheme.get, call_621918.host, call_621918.base, - call_621918.route, valid.getOrDefault("path"), + let url = call_621920.url(scheme.get, call_621920.host, call_621920.base, + call_621920.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621918, url, valid) + result = atozHook(call_621920, url, valid) -proc call*(call_621919: Call_GetDisableVgwRoutePropagation_621904; +proc call*(call_621921: Call_GetDisableVgwRoutePropagation_621906; GatewayId: string; RouteTableId: string; Action: string = "DisableVgwRoutePropagation"; Version: string = "2016-11-15"): Recallable = @@ -88989,22 +89016,22 @@ proc call*(call_621919: Call_GetDisableVgwRoutePropagation_621904; ## Version: string (required) ## RouteTableId: string (required) ## : The ID of the route table. - var query_621920 = newJObject() - add(query_621920, "GatewayId", newJString(GatewayId)) - add(query_621920, "Action", newJString(Action)) - add(query_621920, "Version", newJString(Version)) - add(query_621920, "RouteTableId", newJString(RouteTableId)) - result = call_621919.call(nil, query_621920, nil, nil, nil) - -var getDisableVgwRoutePropagation* = Call_GetDisableVgwRoutePropagation_621904( + var query_621922 = newJObject() + add(query_621922, "GatewayId", newJString(GatewayId)) + add(query_621922, "Action", newJString(Action)) + add(query_621922, "Version", newJString(Version)) + add(query_621922, "RouteTableId", newJString(RouteTableId)) + result = call_621921.call(nil, query_621922, nil, nil, nil) + +var getDisableVgwRoutePropagation* = Call_GetDisableVgwRoutePropagation_621906( name: "getDisableVgwRoutePropagation", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DisableVgwRoutePropagation", - validator: validate_GetDisableVgwRoutePropagation_621905, base: "/", - url: url_GetDisableVgwRoutePropagation_621906, + validator: validate_GetDisableVgwRoutePropagation_621907, base: "/", + url: url_GetDisableVgwRoutePropagation_621908, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDisableVpcClassicLink_621956 = ref object of OpenApiRestCall_610658 -proc url_PostDisableVpcClassicLink_621958(protocol: Scheme; host: string; + Call_PostDisableVpcClassicLink_621958 = ref object of OpenApiRestCall_610658 +proc url_PostDisableVpcClassicLink_621960(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -89014,7 +89041,7 @@ proc url_PostDisableVpcClassicLink_621958(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDisableVpcClassicLink_621957(path: JsonNode; query: JsonNode; +proc validate_PostDisableVpcClassicLink_621959(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Disables ClassicLink for a VPC. You cannot disable ClassicLink for a VPC that has EC2-Classic instances linked to it. ## @@ -89026,16 +89053,16 @@ proc validate_PostDisableVpcClassicLink_621957(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621959 = query.getOrDefault("Action") - valid_621959 = validateParameter(valid_621959, JString, required = true, + var valid_621961 = query.getOrDefault("Action") + valid_621961 = validateParameter(valid_621961, JString, required = true, default = newJString("DisableVpcClassicLink")) - if valid_621959 != nil: - section.add "Action", valid_621959 - var valid_621960 = query.getOrDefault("Version") - valid_621960 = validateParameter(valid_621960, JString, required = true, + if valid_621961 != nil: + section.add "Action", valid_621961 + var valid_621962 = query.getOrDefault("Version") + valid_621962 = validateParameter(valid_621962, JString, required = true, default = newJString("2016-11-15")) - if valid_621960 != nil: - section.add "Version", valid_621960 + if valid_621962 != nil: + section.add "Version", valid_621962 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -89046,41 +89073,41 @@ proc validate_PostDisableVpcClassicLink_621957(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621961 = header.getOrDefault("X-Amz-Signature") - valid_621961 = validateParameter(valid_621961, JString, required = false, - default = nil) - if valid_621961 != nil: - section.add "X-Amz-Signature", valid_621961 - var valid_621962 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621962 = validateParameter(valid_621962, JString, required = false, - default = nil) - if valid_621962 != nil: - section.add "X-Amz-Content-Sha256", valid_621962 - var valid_621963 = header.getOrDefault("X-Amz-Date") + var valid_621963 = header.getOrDefault("X-Amz-Signature") valid_621963 = validateParameter(valid_621963, JString, required = false, default = nil) if valid_621963 != nil: - section.add "X-Amz-Date", valid_621963 - var valid_621964 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621963 + var valid_621964 = header.getOrDefault("X-Amz-Content-Sha256") valid_621964 = validateParameter(valid_621964, JString, required = false, default = nil) if valid_621964 != nil: - section.add "X-Amz-Credential", valid_621964 - var valid_621965 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621964 + var valid_621965 = header.getOrDefault("X-Amz-Date") valid_621965 = validateParameter(valid_621965, JString, required = false, default = nil) if valid_621965 != nil: - section.add "X-Amz-Security-Token", valid_621965 - var valid_621966 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621965 + var valid_621966 = header.getOrDefault("X-Amz-Credential") valid_621966 = validateParameter(valid_621966, JString, required = false, default = nil) if valid_621966 != nil: - section.add "X-Amz-Algorithm", valid_621966 - var valid_621967 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621966 + var valid_621967 = header.getOrDefault("X-Amz-Security-Token") valid_621967 = validateParameter(valid_621967, JString, required = false, default = nil) if valid_621967 != nil: - section.add "X-Amz-SignedHeaders", valid_621967 + section.add "X-Amz-Security-Token", valid_621967 + var valid_621968 = header.getOrDefault("X-Amz-Algorithm") + valid_621968 = validateParameter(valid_621968, JString, required = false, + default = nil) + if valid_621968 != nil: + section.add "X-Amz-Algorithm", valid_621968 + var valid_621969 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621969 = validateParameter(valid_621969, JString, required = false, + default = nil) + if valid_621969 != nil: + section.add "X-Amz-SignedHeaders", valid_621969 result.add "header", section ## parameters in `formData` object: ## VpcId: JString (required) @@ -89090,33 +89117,33 @@ proc validate_PostDisableVpcClassicLink_621957(path: JsonNode; query: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `VpcId` field" - var valid_621968 = formData.getOrDefault("VpcId") - valid_621968 = validateParameter(valid_621968, JString, required = true, + var valid_621970 = formData.getOrDefault("VpcId") + valid_621970 = validateParameter(valid_621970, JString, required = true, default = nil) - if valid_621968 != nil: - section.add "VpcId", valid_621968 - var valid_621969 = formData.getOrDefault("DryRun") - valid_621969 = validateParameter(valid_621969, JBool, required = false, default = nil) - if valid_621969 != nil: - section.add "DryRun", valid_621969 + if valid_621970 != nil: + section.add "VpcId", valid_621970 + var valid_621971 = formData.getOrDefault("DryRun") + valid_621971 = validateParameter(valid_621971, JBool, required = false, default = nil) + if valid_621971 != nil: + section.add "DryRun", valid_621971 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621970: Call_PostDisableVpcClassicLink_621956; path: JsonNode; +proc call*(call_621972: Call_PostDisableVpcClassicLink_621958; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Disables ClassicLink for a VPC. You cannot disable ClassicLink for a VPC that has EC2-Classic instances linked to it. ## - let valid = call_621970.validator(path, query, header, formData, body) - let scheme = call_621970.pickScheme + let valid = call_621972.validator(path, query, header, formData, body) + let scheme = call_621972.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621970.url(scheme.get, call_621970.host, call_621970.base, - call_621970.route, valid.getOrDefault("path"), + let url = call_621972.url(scheme.get, call_621972.host, call_621972.base, + call_621972.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621970, url, valid) + result = atozHook(call_621972, url, valid) -proc call*(call_621971: Call_PostDisableVpcClassicLink_621956; VpcId: string; +proc call*(call_621973: Call_PostDisableVpcClassicLink_621958; VpcId: string; DryRun: bool = false; Action: string = "DisableVpcClassicLink"; Version: string = "2016-11-15"): Recallable = ## postDisableVpcClassicLink @@ -89127,23 +89154,23 @@ proc call*(call_621971: Call_PostDisableVpcClassicLink_621956; VpcId: string; ## : 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. ## Action: string (required) ## Version: string (required) - var query_621972 = newJObject() - var formData_621973 = newJObject() - add(formData_621973, "VpcId", newJString(VpcId)) - add(formData_621973, "DryRun", newJBool(DryRun)) - add(query_621972, "Action", newJString(Action)) - add(query_621972, "Version", newJString(Version)) - result = call_621971.call(nil, query_621972, nil, formData_621973, nil) + var query_621974 = newJObject() + var formData_621975 = newJObject() + add(formData_621975, "VpcId", newJString(VpcId)) + add(formData_621975, "DryRun", newJBool(DryRun)) + add(query_621974, "Action", newJString(Action)) + add(query_621974, "Version", newJString(Version)) + result = call_621973.call(nil, query_621974, nil, formData_621975, nil) -var postDisableVpcClassicLink* = Call_PostDisableVpcClassicLink_621956( +var postDisableVpcClassicLink* = Call_PostDisableVpcClassicLink_621958( name: "postDisableVpcClassicLink", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DisableVpcClassicLink", - validator: validate_PostDisableVpcClassicLink_621957, base: "/", - url: url_PostDisableVpcClassicLink_621958, + validator: validate_PostDisableVpcClassicLink_621959, base: "/", + url: url_PostDisableVpcClassicLink_621960, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDisableVpcClassicLink_621939 = ref object of OpenApiRestCall_610658 -proc url_GetDisableVpcClassicLink_621941(protocol: Scheme; host: string; + Call_GetDisableVpcClassicLink_621941 = ref object of OpenApiRestCall_610658 +proc url_GetDisableVpcClassicLink_621943(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -89154,7 +89181,7 @@ proc url_GetDisableVpcClassicLink_621941(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDisableVpcClassicLink_621940(path: JsonNode; query: JsonNode; +proc validate_GetDisableVpcClassicLink_621942(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Disables ClassicLink for a VPC. You cannot disable ClassicLink for a VPC that has EC2-Classic instances linked to it. ## @@ -89170,26 +89197,26 @@ proc validate_GetDisableVpcClassicLink_621940(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621942 = query.getOrDefault("DryRun") - valid_621942 = validateParameter(valid_621942, JBool, required = false, default = nil) - if valid_621942 != nil: - section.add "DryRun", valid_621942 + var valid_621944 = query.getOrDefault("DryRun") + valid_621944 = validateParameter(valid_621944, JBool, required = false, default = nil) + if valid_621944 != nil: + section.add "DryRun", valid_621944 assert query != nil, "query argument is necessary due to required `VpcId` field" - var valid_621943 = query.getOrDefault("VpcId") - valid_621943 = validateParameter(valid_621943, JString, required = true, + var valid_621945 = query.getOrDefault("VpcId") + valid_621945 = validateParameter(valid_621945, JString, required = true, default = nil) - if valid_621943 != nil: - section.add "VpcId", valid_621943 - var valid_621944 = query.getOrDefault("Action") - valid_621944 = validateParameter(valid_621944, JString, required = true, + if valid_621945 != nil: + section.add "VpcId", valid_621945 + var valid_621946 = query.getOrDefault("Action") + valid_621946 = validateParameter(valid_621946, JString, required = true, default = newJString("DisableVpcClassicLink")) - if valid_621944 != nil: - section.add "Action", valid_621944 - var valid_621945 = query.getOrDefault("Version") - valid_621945 = validateParameter(valid_621945, JString, required = true, + if valid_621946 != nil: + section.add "Action", valid_621946 + var valid_621947 = query.getOrDefault("Version") + valid_621947 = validateParameter(valid_621947, JString, required = true, default = newJString("2016-11-15")) - if valid_621945 != nil: - section.add "Version", valid_621945 + if valid_621947 != nil: + section.add "Version", valid_621947 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -89200,61 +89227,61 @@ proc validate_GetDisableVpcClassicLink_621940(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621946 = header.getOrDefault("X-Amz-Signature") - valid_621946 = validateParameter(valid_621946, JString, required = false, - default = nil) - if valid_621946 != nil: - section.add "X-Amz-Signature", valid_621946 - var valid_621947 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621947 = validateParameter(valid_621947, JString, required = false, - default = nil) - if valid_621947 != nil: - section.add "X-Amz-Content-Sha256", valid_621947 - var valid_621948 = header.getOrDefault("X-Amz-Date") + var valid_621948 = header.getOrDefault("X-Amz-Signature") valid_621948 = validateParameter(valid_621948, JString, required = false, default = nil) if valid_621948 != nil: - section.add "X-Amz-Date", valid_621948 - var valid_621949 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621948 + var valid_621949 = header.getOrDefault("X-Amz-Content-Sha256") valid_621949 = validateParameter(valid_621949, JString, required = false, default = nil) if valid_621949 != nil: - section.add "X-Amz-Credential", valid_621949 - var valid_621950 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621949 + var valid_621950 = header.getOrDefault("X-Amz-Date") valid_621950 = validateParameter(valid_621950, JString, required = false, default = nil) if valid_621950 != nil: - section.add "X-Amz-Security-Token", valid_621950 - var valid_621951 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621950 + var valid_621951 = header.getOrDefault("X-Amz-Credential") valid_621951 = validateParameter(valid_621951, JString, required = false, default = nil) if valid_621951 != nil: - section.add "X-Amz-Algorithm", valid_621951 - var valid_621952 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621951 + var valid_621952 = header.getOrDefault("X-Amz-Security-Token") valid_621952 = validateParameter(valid_621952, JString, required = false, default = nil) if valid_621952 != nil: - section.add "X-Amz-SignedHeaders", valid_621952 + section.add "X-Amz-Security-Token", valid_621952 + var valid_621953 = header.getOrDefault("X-Amz-Algorithm") + valid_621953 = validateParameter(valid_621953, JString, required = false, + default = nil) + if valid_621953 != nil: + section.add "X-Amz-Algorithm", valid_621953 + var valid_621954 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621954 = validateParameter(valid_621954, JString, required = false, + default = nil) + if valid_621954 != nil: + section.add "X-Amz-SignedHeaders", valid_621954 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621953: Call_GetDisableVpcClassicLink_621939; path: JsonNode; +proc call*(call_621955: Call_GetDisableVpcClassicLink_621941; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Disables ClassicLink for a VPC. You cannot disable ClassicLink for a VPC that has EC2-Classic instances linked to it. ## - let valid = call_621953.validator(path, query, header, formData, body) - let scheme = call_621953.pickScheme + let valid = call_621955.validator(path, query, header, formData, body) + let scheme = call_621955.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621953.url(scheme.get, call_621953.host, call_621953.base, - call_621953.route, valid.getOrDefault("path"), + let url = call_621955.url(scheme.get, call_621955.host, call_621955.base, + call_621955.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621953, url, valid) + result = atozHook(call_621955, url, valid) -proc call*(call_621954: Call_GetDisableVpcClassicLink_621939; VpcId: string; +proc call*(call_621956: Call_GetDisableVpcClassicLink_621941; VpcId: string; DryRun: bool = false; Action: string = "DisableVpcClassicLink"; Version: string = "2016-11-15"): Recallable = ## getDisableVpcClassicLink @@ -89265,21 +89292,21 @@ proc call*(call_621954: Call_GetDisableVpcClassicLink_621939; VpcId: string; ## : The ID of the VPC. ## Action: string (required) ## Version: string (required) - var query_621955 = newJObject() - add(query_621955, "DryRun", newJBool(DryRun)) - add(query_621955, "VpcId", newJString(VpcId)) - add(query_621955, "Action", newJString(Action)) - add(query_621955, "Version", newJString(Version)) - result = call_621954.call(nil, query_621955, nil, nil, nil) + var query_621957 = newJObject() + add(query_621957, "DryRun", newJBool(DryRun)) + add(query_621957, "VpcId", newJString(VpcId)) + add(query_621957, "Action", newJString(Action)) + add(query_621957, "Version", newJString(Version)) + result = call_621956.call(nil, query_621957, nil, nil, nil) -var getDisableVpcClassicLink* = Call_GetDisableVpcClassicLink_621939( +var getDisableVpcClassicLink* = Call_GetDisableVpcClassicLink_621941( name: "getDisableVpcClassicLink", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DisableVpcClassicLink", - validator: validate_GetDisableVpcClassicLink_621940, base: "/", - url: url_GetDisableVpcClassicLink_621941, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDisableVpcClassicLink_621942, base: "/", + url: url_GetDisableVpcClassicLink_621943, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDisableVpcClassicLinkDnsSupport_621990 = ref object of OpenApiRestCall_610658 -proc url_PostDisableVpcClassicLinkDnsSupport_621992(protocol: Scheme; host: string; + Call_PostDisableVpcClassicLinkDnsSupport_621992 = ref object of OpenApiRestCall_610658 +proc url_PostDisableVpcClassicLinkDnsSupport_621994(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -89289,7 +89316,7 @@ proc url_PostDisableVpcClassicLinkDnsSupport_621992(protocol: Scheme; host: stri else: result.path = base & route -proc validate_PostDisableVpcClassicLinkDnsSupport_621991(path: JsonNode; +proc validate_PostDisableVpcClassicLinkDnsSupport_621993(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Disables ClassicLink DNS support for a VPC. If disabled, DNS hostnames resolve to public IP addresses when addressed between a linked EC2-Classic instance and instances in the VPC to which it's linked. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. ## @@ -89301,16 +89328,16 @@ proc validate_PostDisableVpcClassicLinkDnsSupport_621991(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621993 = query.getOrDefault("Action") - valid_621993 = validateParameter(valid_621993, JString, required = true, default = newJString( + var valid_621995 = query.getOrDefault("Action") + valid_621995 = validateParameter(valid_621995, JString, required = true, default = newJString( "DisableVpcClassicLinkDnsSupport")) - if valid_621993 != nil: - section.add "Action", valid_621993 - var valid_621994 = query.getOrDefault("Version") - valid_621994 = validateParameter(valid_621994, JString, required = true, + if valid_621995 != nil: + section.add "Action", valid_621995 + var valid_621996 = query.getOrDefault("Version") + valid_621996 = validateParameter(valid_621996, JString, required = true, default = newJString("2016-11-15")) - if valid_621994 != nil: - section.add "Version", valid_621994 + if valid_621996 != nil: + section.add "Version", valid_621996 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -89321,70 +89348,70 @@ proc validate_PostDisableVpcClassicLinkDnsSupport_621991(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621995 = header.getOrDefault("X-Amz-Signature") - valid_621995 = validateParameter(valid_621995, JString, required = false, - default = nil) - if valid_621995 != nil: - section.add "X-Amz-Signature", valid_621995 - var valid_621996 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621996 = validateParameter(valid_621996, JString, required = false, - default = nil) - if valid_621996 != nil: - section.add "X-Amz-Content-Sha256", valid_621996 - var valid_621997 = header.getOrDefault("X-Amz-Date") + var valid_621997 = header.getOrDefault("X-Amz-Signature") valid_621997 = validateParameter(valid_621997, JString, required = false, default = nil) if valid_621997 != nil: - section.add "X-Amz-Date", valid_621997 - var valid_621998 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621997 + var valid_621998 = header.getOrDefault("X-Amz-Content-Sha256") valid_621998 = validateParameter(valid_621998, JString, required = false, default = nil) if valid_621998 != nil: - section.add "X-Amz-Credential", valid_621998 - var valid_621999 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621998 + var valid_621999 = header.getOrDefault("X-Amz-Date") valid_621999 = validateParameter(valid_621999, JString, required = false, default = nil) if valid_621999 != nil: - section.add "X-Amz-Security-Token", valid_621999 - var valid_622000 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621999 + var valid_622000 = header.getOrDefault("X-Amz-Credential") valid_622000 = validateParameter(valid_622000, JString, required = false, default = nil) if valid_622000 != nil: - section.add "X-Amz-Algorithm", valid_622000 - var valid_622001 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622000 + var valid_622001 = header.getOrDefault("X-Amz-Security-Token") valid_622001 = validateParameter(valid_622001, JString, required = false, default = nil) if valid_622001 != nil: - section.add "X-Amz-SignedHeaders", valid_622001 + section.add "X-Amz-Security-Token", valid_622001 + var valid_622002 = header.getOrDefault("X-Amz-Algorithm") + valid_622002 = validateParameter(valid_622002, JString, required = false, + default = nil) + if valid_622002 != nil: + section.add "X-Amz-Algorithm", valid_622002 + var valid_622003 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622003 = validateParameter(valid_622003, JString, required = false, + default = nil) + if valid_622003 != nil: + section.add "X-Amz-SignedHeaders", valid_622003 result.add "header", section ## parameters in `formData` object: ## VpcId: JString ## : The ID of the VPC. section = newJObject() - var valid_622002 = formData.getOrDefault("VpcId") - valid_622002 = validateParameter(valid_622002, JString, required = false, + var valid_622004 = formData.getOrDefault("VpcId") + valid_622004 = validateParameter(valid_622004, JString, required = false, default = nil) - if valid_622002 != nil: - section.add "VpcId", valid_622002 + if valid_622004 != nil: + section.add "VpcId", valid_622004 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622003: Call_PostDisableVpcClassicLinkDnsSupport_621990; +proc call*(call_622005: Call_PostDisableVpcClassicLinkDnsSupport_621992; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Disables ClassicLink DNS support for a VPC. If disabled, DNS hostnames resolve to public IP addresses when addressed between a linked EC2-Classic instance and instances in the VPC to which it's linked. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. ## - let valid = call_622003.validator(path, query, header, formData, body) - let scheme = call_622003.pickScheme + let valid = call_622005.validator(path, query, header, formData, body) + let scheme = call_622005.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622003.url(scheme.get, call_622003.host, call_622003.base, - call_622003.route, valid.getOrDefault("path"), + let url = call_622005.url(scheme.get, call_622005.host, call_622005.base, + call_622005.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622003, url, valid) + result = atozHook(call_622005, url, valid) -proc call*(call_622004: Call_PostDisableVpcClassicLinkDnsSupport_621990; +proc call*(call_622006: Call_PostDisableVpcClassicLinkDnsSupport_621992; VpcId: string = ""; Action: string = "DisableVpcClassicLinkDnsSupport"; Version: string = "2016-11-15"): Recallable = ## postDisableVpcClassicLinkDnsSupport @@ -89393,22 +89420,22 @@ proc call*(call_622004: Call_PostDisableVpcClassicLinkDnsSupport_621990; ## : The ID of the VPC. ## Action: string (required) ## Version: string (required) - var query_622005 = newJObject() - var formData_622006 = newJObject() - add(formData_622006, "VpcId", newJString(VpcId)) - add(query_622005, "Action", newJString(Action)) - add(query_622005, "Version", newJString(Version)) - result = call_622004.call(nil, query_622005, nil, formData_622006, nil) + var query_622007 = newJObject() + var formData_622008 = newJObject() + add(formData_622008, "VpcId", newJString(VpcId)) + add(query_622007, "Action", newJString(Action)) + add(query_622007, "Version", newJString(Version)) + result = call_622006.call(nil, query_622007, nil, formData_622008, nil) -var postDisableVpcClassicLinkDnsSupport* = Call_PostDisableVpcClassicLinkDnsSupport_621990( +var postDisableVpcClassicLinkDnsSupport* = Call_PostDisableVpcClassicLinkDnsSupport_621992( name: "postDisableVpcClassicLinkDnsSupport", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DisableVpcClassicLinkDnsSupport", - validator: validate_PostDisableVpcClassicLinkDnsSupport_621991, base: "/", - url: url_PostDisableVpcClassicLinkDnsSupport_621992, + validator: validate_PostDisableVpcClassicLinkDnsSupport_621993, base: "/", + url: url_PostDisableVpcClassicLinkDnsSupport_621994, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDisableVpcClassicLinkDnsSupport_621974 = ref object of OpenApiRestCall_610658 -proc url_GetDisableVpcClassicLinkDnsSupport_621976(protocol: Scheme; host: string; + Call_GetDisableVpcClassicLinkDnsSupport_621976 = ref object of OpenApiRestCall_610658 +proc url_GetDisableVpcClassicLinkDnsSupport_621978(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -89418,7 +89445,7 @@ proc url_GetDisableVpcClassicLinkDnsSupport_621976(protocol: Scheme; host: strin else: result.path = base & route -proc validate_GetDisableVpcClassicLinkDnsSupport_621975(path: JsonNode; +proc validate_GetDisableVpcClassicLinkDnsSupport_621977(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Disables ClassicLink DNS support for a VPC. If disabled, DNS hostnames resolve to public IP addresses when addressed between a linked EC2-Classic instance and instances in the VPC to which it's linked. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. ## @@ -89432,21 +89459,21 @@ proc validate_GetDisableVpcClassicLinkDnsSupport_621975(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_621977 = query.getOrDefault("VpcId") - valid_621977 = validateParameter(valid_621977, JString, required = false, + var valid_621979 = query.getOrDefault("VpcId") + valid_621979 = validateParameter(valid_621979, JString, required = false, default = nil) - if valid_621977 != nil: - section.add "VpcId", valid_621977 - var valid_621978 = query.getOrDefault("Action") - valid_621978 = validateParameter(valid_621978, JString, required = true, default = newJString( + if valid_621979 != nil: + section.add "VpcId", valid_621979 + var valid_621980 = query.getOrDefault("Action") + valid_621980 = validateParameter(valid_621980, JString, required = true, default = newJString( "DisableVpcClassicLinkDnsSupport")) - if valid_621978 != nil: - section.add "Action", valid_621978 - var valid_621979 = query.getOrDefault("Version") - valid_621979 = validateParameter(valid_621979, JString, required = true, + if valid_621980 != nil: + section.add "Action", valid_621980 + var valid_621981 = query.getOrDefault("Version") + valid_621981 = validateParameter(valid_621981, JString, required = true, default = newJString("2016-11-15")) - if valid_621979 != nil: - section.add "Version", valid_621979 + if valid_621981 != nil: + section.add "Version", valid_621981 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -89457,62 +89484,62 @@ proc validate_GetDisableVpcClassicLinkDnsSupport_621975(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_621980 = header.getOrDefault("X-Amz-Signature") - valid_621980 = validateParameter(valid_621980, JString, required = false, - default = nil) - if valid_621980 != nil: - section.add "X-Amz-Signature", valid_621980 - var valid_621981 = header.getOrDefault("X-Amz-Content-Sha256") - valid_621981 = validateParameter(valid_621981, JString, required = false, - default = nil) - if valid_621981 != nil: - section.add "X-Amz-Content-Sha256", valid_621981 - var valid_621982 = header.getOrDefault("X-Amz-Date") + var valid_621982 = header.getOrDefault("X-Amz-Signature") valid_621982 = validateParameter(valid_621982, JString, required = false, default = nil) if valid_621982 != nil: - section.add "X-Amz-Date", valid_621982 - var valid_621983 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_621982 + var valid_621983 = header.getOrDefault("X-Amz-Content-Sha256") valid_621983 = validateParameter(valid_621983, JString, required = false, default = nil) if valid_621983 != nil: - section.add "X-Amz-Credential", valid_621983 - var valid_621984 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_621983 + var valid_621984 = header.getOrDefault("X-Amz-Date") valid_621984 = validateParameter(valid_621984, JString, required = false, default = nil) if valid_621984 != nil: - section.add "X-Amz-Security-Token", valid_621984 - var valid_621985 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_621984 + var valid_621985 = header.getOrDefault("X-Amz-Credential") valid_621985 = validateParameter(valid_621985, JString, required = false, default = nil) if valid_621985 != nil: - section.add "X-Amz-Algorithm", valid_621985 - var valid_621986 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_621985 + var valid_621986 = header.getOrDefault("X-Amz-Security-Token") valid_621986 = validateParameter(valid_621986, JString, required = false, default = nil) if valid_621986 != nil: - section.add "X-Amz-SignedHeaders", valid_621986 + section.add "X-Amz-Security-Token", valid_621986 + var valid_621987 = header.getOrDefault("X-Amz-Algorithm") + valid_621987 = validateParameter(valid_621987, JString, required = false, + default = nil) + if valid_621987 != nil: + section.add "X-Amz-Algorithm", valid_621987 + var valid_621988 = header.getOrDefault("X-Amz-SignedHeaders") + valid_621988 = validateParameter(valid_621988, JString, required = false, + default = nil) + if valid_621988 != nil: + section.add "X-Amz-SignedHeaders", valid_621988 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_621987: Call_GetDisableVpcClassicLinkDnsSupport_621974; +proc call*(call_621989: Call_GetDisableVpcClassicLinkDnsSupport_621976; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Disables ClassicLink DNS support for a VPC. If disabled, DNS hostnames resolve to public IP addresses when addressed between a linked EC2-Classic instance and instances in the VPC to which it's linked. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. ## - let valid = call_621987.validator(path, query, header, formData, body) - let scheme = call_621987.pickScheme + let valid = call_621989.validator(path, query, header, formData, body) + let scheme = call_621989.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_621987.url(scheme.get, call_621987.host, call_621987.base, - call_621987.route, valid.getOrDefault("path"), + let url = call_621989.url(scheme.get, call_621989.host, call_621989.base, + call_621989.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_621987, url, valid) + result = atozHook(call_621989, url, valid) -proc call*(call_621988: Call_GetDisableVpcClassicLinkDnsSupport_621974; +proc call*(call_621990: Call_GetDisableVpcClassicLinkDnsSupport_621976; VpcId: string = ""; Action: string = "DisableVpcClassicLinkDnsSupport"; Version: string = "2016-11-15"): Recallable = ## getDisableVpcClassicLinkDnsSupport @@ -89521,21 +89548,21 @@ proc call*(call_621988: Call_GetDisableVpcClassicLinkDnsSupport_621974; ## : The ID of the VPC. ## Action: string (required) ## Version: string (required) - var query_621989 = newJObject() - add(query_621989, "VpcId", newJString(VpcId)) - add(query_621989, "Action", newJString(Action)) - add(query_621989, "Version", newJString(Version)) - result = call_621988.call(nil, query_621989, nil, nil, nil) + var query_621991 = newJObject() + add(query_621991, "VpcId", newJString(VpcId)) + add(query_621991, "Action", newJString(Action)) + add(query_621991, "Version", newJString(Version)) + result = call_621990.call(nil, query_621991, nil, nil, nil) -var getDisableVpcClassicLinkDnsSupport* = Call_GetDisableVpcClassicLinkDnsSupport_621974( +var getDisableVpcClassicLinkDnsSupport* = Call_GetDisableVpcClassicLinkDnsSupport_621976( name: "getDisableVpcClassicLinkDnsSupport", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DisableVpcClassicLinkDnsSupport", - validator: validate_GetDisableVpcClassicLinkDnsSupport_621975, base: "/", - url: url_GetDisableVpcClassicLinkDnsSupport_621976, + validator: validate_GetDisableVpcClassicLinkDnsSupport_621977, base: "/", + url: url_GetDisableVpcClassicLinkDnsSupport_621978, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDisassociateAddress_622025 = ref object of OpenApiRestCall_610658 -proc url_PostDisassociateAddress_622027(protocol: Scheme; host: string; base: string; + Call_PostDisassociateAddress_622027 = ref object of OpenApiRestCall_610658 +proc url_PostDisassociateAddress_622029(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -89546,7 +89573,7 @@ proc url_PostDisassociateAddress_622027(protocol: Scheme; host: string; base: st else: result.path = base & route -proc validate_PostDisassociateAddress_622026(path: JsonNode; query: JsonNode; +proc validate_PostDisassociateAddress_622028(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Disassociates an Elastic IP address from the instance or network interface it's associated with.

    An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

    This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn't return an error.

    ## @@ -89558,16 +89585,16 @@ proc validate_PostDisassociateAddress_622026(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622028 = query.getOrDefault("Action") - valid_622028 = validateParameter(valid_622028, JString, required = true, + var valid_622030 = query.getOrDefault("Action") + valid_622030 = validateParameter(valid_622030, JString, required = true, default = newJString("DisassociateAddress")) - if valid_622028 != nil: - section.add "Action", valid_622028 - var valid_622029 = query.getOrDefault("Version") - valid_622029 = validateParameter(valid_622029, JString, required = true, + if valid_622030 != nil: + section.add "Action", valid_622030 + var valid_622031 = query.getOrDefault("Version") + valid_622031 = validateParameter(valid_622031, JString, required = true, default = newJString("2016-11-15")) - if valid_622029 != nil: - section.add "Version", valid_622029 + if valid_622031 != nil: + section.add "Version", valid_622031 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -89578,41 +89605,41 @@ proc validate_PostDisassociateAddress_622026(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622030 = header.getOrDefault("X-Amz-Signature") - valid_622030 = validateParameter(valid_622030, JString, required = false, - default = nil) - if valid_622030 != nil: - section.add "X-Amz-Signature", valid_622030 - var valid_622031 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622031 = validateParameter(valid_622031, JString, required = false, - default = nil) - if valid_622031 != nil: - section.add "X-Amz-Content-Sha256", valid_622031 - var valid_622032 = header.getOrDefault("X-Amz-Date") + var valid_622032 = header.getOrDefault("X-Amz-Signature") valid_622032 = validateParameter(valid_622032, JString, required = false, default = nil) if valid_622032 != nil: - section.add "X-Amz-Date", valid_622032 - var valid_622033 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622032 + var valid_622033 = header.getOrDefault("X-Amz-Content-Sha256") valid_622033 = validateParameter(valid_622033, JString, required = false, default = nil) if valid_622033 != nil: - section.add "X-Amz-Credential", valid_622033 - var valid_622034 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622033 + var valid_622034 = header.getOrDefault("X-Amz-Date") valid_622034 = validateParameter(valid_622034, JString, required = false, default = nil) if valid_622034 != nil: - section.add "X-Amz-Security-Token", valid_622034 - var valid_622035 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622034 + var valid_622035 = header.getOrDefault("X-Amz-Credential") valid_622035 = validateParameter(valid_622035, JString, required = false, default = nil) if valid_622035 != nil: - section.add "X-Amz-Algorithm", valid_622035 - var valid_622036 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622035 + var valid_622036 = header.getOrDefault("X-Amz-Security-Token") valid_622036 = validateParameter(valid_622036, JString, required = false, default = nil) if valid_622036 != nil: - section.add "X-Amz-SignedHeaders", valid_622036 + section.add "X-Amz-Security-Token", valid_622036 + var valid_622037 = header.getOrDefault("X-Amz-Algorithm") + valid_622037 = validateParameter(valid_622037, JString, required = false, + default = nil) + if valid_622037 != nil: + section.add "X-Amz-Algorithm", valid_622037 + var valid_622038 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622038 = validateParameter(valid_622038, JString, required = false, + default = nil) + if valid_622038 != nil: + section.add "X-Amz-SignedHeaders", valid_622038 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -89622,38 +89649,38 @@ proc validate_PostDisassociateAddress_622026(path: JsonNode; query: JsonNode; ## AssociationId: JString ## : [EC2-VPC] The association ID. Required for EC2-VPC. section = newJObject() - var valid_622037 = formData.getOrDefault("DryRun") - valid_622037 = validateParameter(valid_622037, JBool, required = false, default = nil) - if valid_622037 != nil: - section.add "DryRun", valid_622037 - var valid_622038 = formData.getOrDefault("PublicIp") - valid_622038 = validateParameter(valid_622038, JString, required = false, + var valid_622039 = formData.getOrDefault("DryRun") + valid_622039 = validateParameter(valid_622039, JBool, required = false, default = nil) + if valid_622039 != nil: + section.add "DryRun", valid_622039 + var valid_622040 = formData.getOrDefault("PublicIp") + valid_622040 = validateParameter(valid_622040, JString, required = false, default = nil) - if valid_622038 != nil: - section.add "PublicIp", valid_622038 - var valid_622039 = formData.getOrDefault("AssociationId") - valid_622039 = validateParameter(valid_622039, JString, required = false, + if valid_622040 != nil: + section.add "PublicIp", valid_622040 + var valid_622041 = formData.getOrDefault("AssociationId") + valid_622041 = validateParameter(valid_622041, JString, required = false, default = nil) - if valid_622039 != nil: - section.add "AssociationId", valid_622039 + if valid_622041 != nil: + section.add "AssociationId", valid_622041 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622040: Call_PostDisassociateAddress_622025; path: JsonNode; +proc call*(call_622042: Call_PostDisassociateAddress_622027; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Disassociates an Elastic IP address from the instance or network interface it's associated with.

    An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

    This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn't return an error.

    ## - let valid = call_622040.validator(path, query, header, formData, body) - let scheme = call_622040.pickScheme + let valid = call_622042.validator(path, query, header, formData, body) + let scheme = call_622042.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622040.url(scheme.get, call_622040.host, call_622040.base, - call_622040.route, valid.getOrDefault("path"), + let url = call_622042.url(scheme.get, call_622042.host, call_622042.base, + call_622042.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622040, url, valid) + result = atozHook(call_622042, url, valid) -proc call*(call_622041: Call_PostDisassociateAddress_622025; DryRun: bool = false; +proc call*(call_622043: Call_PostDisassociateAddress_622027; DryRun: bool = false; Action: string = "DisassociateAddress"; PublicIp: string = ""; Version: string = "2016-11-15"; AssociationId: string = ""): Recallable = ## postDisassociateAddress @@ -89666,23 +89693,23 @@ proc call*(call_622041: Call_PostDisassociateAddress_622025; DryRun: bool = fals ## Version: string (required) ## AssociationId: string ## : [EC2-VPC] The association ID. Required for EC2-VPC. - var query_622042 = newJObject() - var formData_622043 = newJObject() - add(formData_622043, "DryRun", newJBool(DryRun)) - add(query_622042, "Action", newJString(Action)) - add(formData_622043, "PublicIp", newJString(PublicIp)) - add(query_622042, "Version", newJString(Version)) - add(formData_622043, "AssociationId", newJString(AssociationId)) - result = call_622041.call(nil, query_622042, nil, formData_622043, nil) - -var postDisassociateAddress* = Call_PostDisassociateAddress_622025( + var query_622044 = newJObject() + var formData_622045 = newJObject() + add(formData_622045, "DryRun", newJBool(DryRun)) + add(query_622044, "Action", newJString(Action)) + add(formData_622045, "PublicIp", newJString(PublicIp)) + add(query_622044, "Version", newJString(Version)) + add(formData_622045, "AssociationId", newJString(AssociationId)) + result = call_622043.call(nil, query_622044, nil, formData_622045, nil) + +var postDisassociateAddress* = Call_PostDisassociateAddress_622027( name: "postDisassociateAddress", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DisassociateAddress", - validator: validate_PostDisassociateAddress_622026, base: "/", - url: url_PostDisassociateAddress_622027, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostDisassociateAddress_622028, base: "/", + url: url_PostDisassociateAddress_622029, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDisassociateAddress_622007 = ref object of OpenApiRestCall_610658 -proc url_GetDisassociateAddress_622009(protocol: Scheme; host: string; base: string; + Call_GetDisassociateAddress_622009 = ref object of OpenApiRestCall_610658 +proc url_GetDisassociateAddress_622011(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -89692,7 +89719,7 @@ proc url_GetDisassociateAddress_622009(protocol: Scheme; host: string; base: str else: result.path = base & route -proc validate_GetDisassociateAddress_622008(path: JsonNode; query: JsonNode; +proc validate_GetDisassociateAddress_622010(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Disassociates an Elastic IP address from the instance or network interface it's associated with.

    An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

    This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn't return an error.

    ## @@ -89710,30 +89737,30 @@ proc validate_GetDisassociateAddress_622008(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622010 = query.getOrDefault("DryRun") - valid_622010 = validateParameter(valid_622010, JBool, required = false, default = nil) - if valid_622010 != nil: - section.add "DryRun", valid_622010 - var valid_622011 = query.getOrDefault("AssociationId") - valid_622011 = validateParameter(valid_622011, JString, required = false, + var valid_622012 = query.getOrDefault("DryRun") + valid_622012 = validateParameter(valid_622012, JBool, required = false, default = nil) + if valid_622012 != nil: + section.add "DryRun", valid_622012 + var valid_622013 = query.getOrDefault("AssociationId") + valid_622013 = validateParameter(valid_622013, JString, required = false, default = nil) - if valid_622011 != nil: - section.add "AssociationId", valid_622011 - var valid_622012 = query.getOrDefault("PublicIp") - valid_622012 = validateParameter(valid_622012, JString, required = false, + if valid_622013 != nil: + section.add "AssociationId", valid_622013 + var valid_622014 = query.getOrDefault("PublicIp") + valid_622014 = validateParameter(valid_622014, JString, required = false, default = nil) - if valid_622012 != nil: - section.add "PublicIp", valid_622012 - var valid_622013 = query.getOrDefault("Action") - valid_622013 = validateParameter(valid_622013, JString, required = true, + if valid_622014 != nil: + section.add "PublicIp", valid_622014 + var valid_622015 = query.getOrDefault("Action") + valid_622015 = validateParameter(valid_622015, JString, required = true, default = newJString("DisassociateAddress")) - if valid_622013 != nil: - section.add "Action", valid_622013 - var valid_622014 = query.getOrDefault("Version") - valid_622014 = validateParameter(valid_622014, JString, required = true, + if valid_622015 != nil: + section.add "Action", valid_622015 + var valid_622016 = query.getOrDefault("Version") + valid_622016 = validateParameter(valid_622016, JString, required = true, default = newJString("2016-11-15")) - if valid_622014 != nil: - section.add "Version", valid_622014 + if valid_622016 != nil: + section.add "Version", valid_622016 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -89744,61 +89771,61 @@ proc validate_GetDisassociateAddress_622008(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622015 = header.getOrDefault("X-Amz-Signature") - valid_622015 = validateParameter(valid_622015, JString, required = false, - default = nil) - if valid_622015 != nil: - section.add "X-Amz-Signature", valid_622015 - var valid_622016 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622016 = validateParameter(valid_622016, JString, required = false, - default = nil) - if valid_622016 != nil: - section.add "X-Amz-Content-Sha256", valid_622016 - var valid_622017 = header.getOrDefault("X-Amz-Date") + var valid_622017 = header.getOrDefault("X-Amz-Signature") valid_622017 = validateParameter(valid_622017, JString, required = false, default = nil) if valid_622017 != nil: - section.add "X-Amz-Date", valid_622017 - var valid_622018 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622017 + var valid_622018 = header.getOrDefault("X-Amz-Content-Sha256") valid_622018 = validateParameter(valid_622018, JString, required = false, default = nil) if valid_622018 != nil: - section.add "X-Amz-Credential", valid_622018 - var valid_622019 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622018 + var valid_622019 = header.getOrDefault("X-Amz-Date") valid_622019 = validateParameter(valid_622019, JString, required = false, default = nil) if valid_622019 != nil: - section.add "X-Amz-Security-Token", valid_622019 - var valid_622020 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622019 + var valid_622020 = header.getOrDefault("X-Amz-Credential") valid_622020 = validateParameter(valid_622020, JString, required = false, default = nil) if valid_622020 != nil: - section.add "X-Amz-Algorithm", valid_622020 - var valid_622021 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622020 + var valid_622021 = header.getOrDefault("X-Amz-Security-Token") valid_622021 = validateParameter(valid_622021, JString, required = false, default = nil) if valid_622021 != nil: - section.add "X-Amz-SignedHeaders", valid_622021 + section.add "X-Amz-Security-Token", valid_622021 + var valid_622022 = header.getOrDefault("X-Amz-Algorithm") + valid_622022 = validateParameter(valid_622022, JString, required = false, + default = nil) + if valid_622022 != nil: + section.add "X-Amz-Algorithm", valid_622022 + var valid_622023 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622023 = validateParameter(valid_622023, JString, required = false, + default = nil) + if valid_622023 != nil: + section.add "X-Amz-SignedHeaders", valid_622023 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622022: Call_GetDisassociateAddress_622007; path: JsonNode; +proc call*(call_622024: Call_GetDisassociateAddress_622009; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Disassociates an Elastic IP address from the instance or network interface it's associated with.

    An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

    This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn't return an error.

    ## - let valid = call_622022.validator(path, query, header, formData, body) - let scheme = call_622022.pickScheme + let valid = call_622024.validator(path, query, header, formData, body) + let scheme = call_622024.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622022.url(scheme.get, call_622022.host, call_622022.base, - call_622022.route, valid.getOrDefault("path"), + let url = call_622024.url(scheme.get, call_622024.host, call_622024.base, + call_622024.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622022, url, valid) + result = atozHook(call_622024, url, valid) -proc call*(call_622023: Call_GetDisassociateAddress_622007; DryRun: bool = false; +proc call*(call_622025: Call_GetDisassociateAddress_622009; DryRun: bool = false; AssociationId: string = ""; PublicIp: string = ""; Action: string = "DisassociateAddress"; Version: string = "2016-11-15"): Recallable = ## getDisassociateAddress @@ -89811,22 +89838,22 @@ proc call*(call_622023: Call_GetDisassociateAddress_622007; DryRun: bool = false ## : [EC2-Classic] The Elastic IP address. Required for EC2-Classic. ## Action: string (required) ## Version: string (required) - var query_622024 = newJObject() - add(query_622024, "DryRun", newJBool(DryRun)) - add(query_622024, "AssociationId", newJString(AssociationId)) - add(query_622024, "PublicIp", newJString(PublicIp)) - add(query_622024, "Action", newJString(Action)) - add(query_622024, "Version", newJString(Version)) - result = call_622023.call(nil, query_622024, nil, nil, nil) + var query_622026 = newJObject() + add(query_622026, "DryRun", newJBool(DryRun)) + add(query_622026, "AssociationId", newJString(AssociationId)) + add(query_622026, "PublicIp", newJString(PublicIp)) + add(query_622026, "Action", newJString(Action)) + add(query_622026, "Version", newJString(Version)) + result = call_622025.call(nil, query_622026, nil, nil, nil) -var getDisassociateAddress* = Call_GetDisassociateAddress_622007( +var getDisassociateAddress* = Call_GetDisassociateAddress_622009( name: "getDisassociateAddress", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DisassociateAddress", - validator: validate_GetDisassociateAddress_622008, base: "/", - url: url_GetDisassociateAddress_622009, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetDisassociateAddress_622010, base: "/", + url: url_GetDisassociateAddress_622011, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDisassociateClientVpnTargetNetwork_622062 = ref object of OpenApiRestCall_610658 -proc url_PostDisassociateClientVpnTargetNetwork_622064(protocol: Scheme; + Call_PostDisassociateClientVpnTargetNetwork_622064 = ref object of OpenApiRestCall_610658 +proc url_PostDisassociateClientVpnTargetNetwork_622066(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -89836,7 +89863,7 @@ proc url_PostDisassociateClientVpnTargetNetwork_622064(protocol: Scheme; else: result.path = base & route -proc validate_PostDisassociateClientVpnTargetNetwork_622063(path: JsonNode; +proc validate_PostDisassociateClientVpnTargetNetwork_622065(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Disassociates a target network from the specified Client VPN endpoint. When you disassociate the last target network from a Client VPN, the following happens:

    ## @@ -89848,16 +89875,16 @@ proc validate_PostDisassociateClientVpnTargetNetwork_622063(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622065 = query.getOrDefault("Action") - valid_622065 = validateParameter(valid_622065, JString, required = true, default = newJString( + var valid_622067 = query.getOrDefault("Action") + valid_622067 = validateParameter(valid_622067, JString, required = true, default = newJString( "DisassociateClientVpnTargetNetwork")) - if valid_622065 != nil: - section.add "Action", valid_622065 - var valid_622066 = query.getOrDefault("Version") - valid_622066 = validateParameter(valid_622066, JString, required = true, + if valid_622067 != nil: + section.add "Action", valid_622067 + var valid_622068 = query.getOrDefault("Version") + valid_622068 = validateParameter(valid_622068, JString, required = true, default = newJString("2016-11-15")) - if valid_622066 != nil: - section.add "Version", valid_622066 + if valid_622068 != nil: + section.add "Version", valid_622068 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -89868,41 +89895,41 @@ proc validate_PostDisassociateClientVpnTargetNetwork_622063(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622067 = header.getOrDefault("X-Amz-Signature") - valid_622067 = validateParameter(valid_622067, JString, required = false, - default = nil) - if valid_622067 != nil: - section.add "X-Amz-Signature", valid_622067 - var valid_622068 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622068 = validateParameter(valid_622068, JString, required = false, - default = nil) - if valid_622068 != nil: - section.add "X-Amz-Content-Sha256", valid_622068 - var valid_622069 = header.getOrDefault("X-Amz-Date") + var valid_622069 = header.getOrDefault("X-Amz-Signature") valid_622069 = validateParameter(valid_622069, JString, required = false, default = nil) if valid_622069 != nil: - section.add "X-Amz-Date", valid_622069 - var valid_622070 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622069 + var valid_622070 = header.getOrDefault("X-Amz-Content-Sha256") valid_622070 = validateParameter(valid_622070, JString, required = false, default = nil) if valid_622070 != nil: - section.add "X-Amz-Credential", valid_622070 - var valid_622071 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622070 + var valid_622071 = header.getOrDefault("X-Amz-Date") valid_622071 = validateParameter(valid_622071, JString, required = false, default = nil) if valid_622071 != nil: - section.add "X-Amz-Security-Token", valid_622071 - var valid_622072 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622071 + var valid_622072 = header.getOrDefault("X-Amz-Credential") valid_622072 = validateParameter(valid_622072, JString, required = false, default = nil) if valid_622072 != nil: - section.add "X-Amz-Algorithm", valid_622072 - var valid_622073 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622072 + var valid_622073 = header.getOrDefault("X-Amz-Security-Token") valid_622073 = validateParameter(valid_622073, JString, required = false, default = nil) if valid_622073 != nil: - section.add "X-Amz-SignedHeaders", valid_622073 + section.add "X-Amz-Security-Token", valid_622073 + var valid_622074 = header.getOrDefault("X-Amz-Algorithm") + valid_622074 = validateParameter(valid_622074, JString, required = false, + default = nil) + if valid_622074 != nil: + section.add "X-Amz-Algorithm", valid_622074 + var valid_622075 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622075 = validateParameter(valid_622075, JString, required = false, + default = nil) + if valid_622075 != nil: + section.add "X-Amz-SignedHeaders", valid_622075 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -89912,41 +89939,41 @@ proc validate_PostDisassociateClientVpnTargetNetwork_622063(path: JsonNode; ## ClientVpnEndpointId: JString (required) ## : The ID of the Client VPN endpoint from which to disassociate the target network. section = newJObject() - var valid_622074 = formData.getOrDefault("DryRun") - valid_622074 = validateParameter(valid_622074, JBool, required = false, default = nil) - if valid_622074 != nil: - section.add "DryRun", valid_622074 + var valid_622076 = formData.getOrDefault("DryRun") + valid_622076 = validateParameter(valid_622076, JBool, required = false, default = nil) + if valid_622076 != nil: + section.add "DryRun", valid_622076 assert formData != nil, "formData argument is necessary due to required `AssociationId` field" - var valid_622075 = formData.getOrDefault("AssociationId") - valid_622075 = validateParameter(valid_622075, JString, required = true, + var valid_622077 = formData.getOrDefault("AssociationId") + valid_622077 = validateParameter(valid_622077, JString, required = true, default = nil) - if valid_622075 != nil: - section.add "AssociationId", valid_622075 - var valid_622076 = formData.getOrDefault("ClientVpnEndpointId") - valid_622076 = validateParameter(valid_622076, JString, required = true, + if valid_622077 != nil: + section.add "AssociationId", valid_622077 + var valid_622078 = formData.getOrDefault("ClientVpnEndpointId") + valid_622078 = validateParameter(valid_622078, JString, required = true, default = nil) - if valid_622076 != nil: - section.add "ClientVpnEndpointId", valid_622076 + if valid_622078 != nil: + section.add "ClientVpnEndpointId", valid_622078 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622077: Call_PostDisassociateClientVpnTargetNetwork_622062; +proc call*(call_622079: Call_PostDisassociateClientVpnTargetNetwork_622064; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Disassociates a target network from the specified Client VPN endpoint. When you disassociate the last target network from a Client VPN, the following happens:

    ## - let valid = call_622077.validator(path, query, header, formData, body) - let scheme = call_622077.pickScheme + let valid = call_622079.validator(path, query, header, formData, body) + let scheme = call_622079.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622077.url(scheme.get, call_622077.host, call_622077.base, - call_622077.route, valid.getOrDefault("path"), + let url = call_622079.url(scheme.get, call_622079.host, call_622079.base, + call_622079.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622077, url, valid) + result = atozHook(call_622079, url, valid) -proc call*(call_622078: Call_PostDisassociateClientVpnTargetNetwork_622062; +proc call*(call_622080: Call_PostDisassociateClientVpnTargetNetwork_622064; AssociationId: string; ClientVpnEndpointId: string; DryRun: bool = false; Action: string = "DisassociateClientVpnTargetNetwork"; Version: string = "2016-11-15"): Recallable = @@ -89960,25 +89987,25 @@ proc call*(call_622078: Call_PostDisassociateClientVpnTargetNetwork_622062; ## : The ID of the target network association. ## ClientVpnEndpointId: string (required) ## : The ID of the Client VPN endpoint from which to disassociate the target network. - var query_622079 = newJObject() - var formData_622080 = newJObject() - add(formData_622080, "DryRun", newJBool(DryRun)) - add(query_622079, "Action", newJString(Action)) - add(query_622079, "Version", newJString(Version)) - add(formData_622080, "AssociationId", newJString(AssociationId)) - add(formData_622080, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) - result = call_622078.call(nil, query_622079, nil, formData_622080, nil) - -var postDisassociateClientVpnTargetNetwork* = Call_PostDisassociateClientVpnTargetNetwork_622062( + var query_622081 = newJObject() + var formData_622082 = newJObject() + add(formData_622082, "DryRun", newJBool(DryRun)) + add(query_622081, "Action", newJString(Action)) + add(query_622081, "Version", newJString(Version)) + add(formData_622082, "AssociationId", newJString(AssociationId)) + add(formData_622082, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) + result = call_622080.call(nil, query_622081, nil, formData_622082, nil) + +var postDisassociateClientVpnTargetNetwork* = Call_PostDisassociateClientVpnTargetNetwork_622064( name: "postDisassociateClientVpnTargetNetwork", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DisassociateClientVpnTargetNetwork", - validator: validate_PostDisassociateClientVpnTargetNetwork_622063, base: "/", - url: url_PostDisassociateClientVpnTargetNetwork_622064, + validator: validate_PostDisassociateClientVpnTargetNetwork_622065, base: "/", + url: url_PostDisassociateClientVpnTargetNetwork_622066, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDisassociateClientVpnTargetNetwork_622044 = ref object of OpenApiRestCall_610658 -proc url_GetDisassociateClientVpnTargetNetwork_622046(protocol: Scheme; + Call_GetDisassociateClientVpnTargetNetwork_622046 = ref object of OpenApiRestCall_610658 +proc url_GetDisassociateClientVpnTargetNetwork_622048(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -89988,7 +90015,7 @@ proc url_GetDisassociateClientVpnTargetNetwork_622046(protocol: Scheme; else: result.path = base & route -proc validate_GetDisassociateClientVpnTargetNetwork_622045(path: JsonNode; +proc validate_GetDisassociateClientVpnTargetNetwork_622047(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Disassociates a target network from the specified Client VPN endpoint. When you disassociate the last target network from a Client VPN, the following happens:

    ## @@ -90006,32 +90033,32 @@ proc validate_GetDisassociateClientVpnTargetNetwork_622045(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622047 = query.getOrDefault("DryRun") - valid_622047 = validateParameter(valid_622047, JBool, required = false, default = nil) - if valid_622047 != nil: - section.add "DryRun", valid_622047 + var valid_622049 = query.getOrDefault("DryRun") + valid_622049 = validateParameter(valid_622049, JBool, required = false, default = nil) + if valid_622049 != nil: + section.add "DryRun", valid_622049 assert query != nil, "query argument is necessary due to required `AssociationId` field" - var valid_622048 = query.getOrDefault("AssociationId") - valid_622048 = validateParameter(valid_622048, JString, required = true, + var valid_622050 = query.getOrDefault("AssociationId") + valid_622050 = validateParameter(valid_622050, JString, required = true, default = nil) - if valid_622048 != nil: - section.add "AssociationId", valid_622048 - var valid_622049 = query.getOrDefault("ClientVpnEndpointId") - valid_622049 = validateParameter(valid_622049, JString, required = true, - default = nil) - if valid_622049 != nil: - section.add "ClientVpnEndpointId", valid_622049 - var valid_622050 = query.getOrDefault("Action") - valid_622050 = validateParameter(valid_622050, JString, required = true, default = newJString( - "DisassociateClientVpnTargetNetwork")) if valid_622050 != nil: - section.add "Action", valid_622050 - var valid_622051 = query.getOrDefault("Version") + section.add "AssociationId", valid_622050 + var valid_622051 = query.getOrDefault("ClientVpnEndpointId") valid_622051 = validateParameter(valid_622051, JString, required = true, - default = newJString("2016-11-15")) + default = nil) if valid_622051 != nil: - section.add "Version", valid_622051 + section.add "ClientVpnEndpointId", valid_622051 + var valid_622052 = query.getOrDefault("Action") + valid_622052 = validateParameter(valid_622052, JString, required = true, default = newJString( + "DisassociateClientVpnTargetNetwork")) + if valid_622052 != nil: + section.add "Action", valid_622052 + var valid_622053 = query.getOrDefault("Version") + valid_622053 = validateParameter(valid_622053, JString, required = true, + default = newJString("2016-11-15")) + if valid_622053 != nil: + section.add "Version", valid_622053 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -90042,62 +90069,62 @@ proc validate_GetDisassociateClientVpnTargetNetwork_622045(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622052 = header.getOrDefault("X-Amz-Signature") - valid_622052 = validateParameter(valid_622052, JString, required = false, - default = nil) - if valid_622052 != nil: - section.add "X-Amz-Signature", valid_622052 - var valid_622053 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622053 = validateParameter(valid_622053, JString, required = false, - default = nil) - if valid_622053 != nil: - section.add "X-Amz-Content-Sha256", valid_622053 - var valid_622054 = header.getOrDefault("X-Amz-Date") + var valid_622054 = header.getOrDefault("X-Amz-Signature") valid_622054 = validateParameter(valid_622054, JString, required = false, default = nil) if valid_622054 != nil: - section.add "X-Amz-Date", valid_622054 - var valid_622055 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622054 + var valid_622055 = header.getOrDefault("X-Amz-Content-Sha256") valid_622055 = validateParameter(valid_622055, JString, required = false, default = nil) if valid_622055 != nil: - section.add "X-Amz-Credential", valid_622055 - var valid_622056 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622055 + var valid_622056 = header.getOrDefault("X-Amz-Date") valid_622056 = validateParameter(valid_622056, JString, required = false, default = nil) if valid_622056 != nil: - section.add "X-Amz-Security-Token", valid_622056 - var valid_622057 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622056 + var valid_622057 = header.getOrDefault("X-Amz-Credential") valid_622057 = validateParameter(valid_622057, JString, required = false, default = nil) if valid_622057 != nil: - section.add "X-Amz-Algorithm", valid_622057 - var valid_622058 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622057 + var valid_622058 = header.getOrDefault("X-Amz-Security-Token") valid_622058 = validateParameter(valid_622058, JString, required = false, default = nil) if valid_622058 != nil: - section.add "X-Amz-SignedHeaders", valid_622058 + section.add "X-Amz-Security-Token", valid_622058 + var valid_622059 = header.getOrDefault("X-Amz-Algorithm") + valid_622059 = validateParameter(valid_622059, JString, required = false, + default = nil) + if valid_622059 != nil: + section.add "X-Amz-Algorithm", valid_622059 + var valid_622060 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622060 = validateParameter(valid_622060, JString, required = false, + default = nil) + if valid_622060 != nil: + section.add "X-Amz-SignedHeaders", valid_622060 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622059: Call_GetDisassociateClientVpnTargetNetwork_622044; +proc call*(call_622061: Call_GetDisassociateClientVpnTargetNetwork_622046; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Disassociates a target network from the specified Client VPN endpoint. When you disassociate the last target network from a Client VPN, the following happens:

    ## - let valid = call_622059.validator(path, query, header, formData, body) - let scheme = call_622059.pickScheme + let valid = call_622061.validator(path, query, header, formData, body) + let scheme = call_622061.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622059.url(scheme.get, call_622059.host, call_622059.base, - call_622059.route, valid.getOrDefault("path"), + let url = call_622061.url(scheme.get, call_622061.host, call_622061.base, + call_622061.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622059, url, valid) + result = atozHook(call_622061, url, valid) -proc call*(call_622060: Call_GetDisassociateClientVpnTargetNetwork_622044; +proc call*(call_622062: Call_GetDisassociateClientVpnTargetNetwork_622046; AssociationId: string; ClientVpnEndpointId: string; DryRun: bool = false; Action: string = "DisassociateClientVpnTargetNetwork"; Version: string = "2016-11-15"): Recallable = @@ -90111,24 +90138,24 @@ proc call*(call_622060: Call_GetDisassociateClientVpnTargetNetwork_622044; ## : The ID of the Client VPN endpoint from which to disassociate the target network. ## Action: string (required) ## Version: string (required) - var query_622061 = newJObject() - add(query_622061, "DryRun", newJBool(DryRun)) - add(query_622061, "AssociationId", newJString(AssociationId)) - add(query_622061, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) - add(query_622061, "Action", newJString(Action)) - add(query_622061, "Version", newJString(Version)) - result = call_622060.call(nil, query_622061, nil, nil, nil) + var query_622063 = newJObject() + add(query_622063, "DryRun", newJBool(DryRun)) + add(query_622063, "AssociationId", newJString(AssociationId)) + add(query_622063, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) + add(query_622063, "Action", newJString(Action)) + add(query_622063, "Version", newJString(Version)) + result = call_622062.call(nil, query_622063, nil, nil, nil) -var getDisassociateClientVpnTargetNetwork* = Call_GetDisassociateClientVpnTargetNetwork_622044( +var getDisassociateClientVpnTargetNetwork* = Call_GetDisassociateClientVpnTargetNetwork_622046( name: "getDisassociateClientVpnTargetNetwork", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DisassociateClientVpnTargetNetwork", - validator: validate_GetDisassociateClientVpnTargetNetwork_622045, base: "/", - url: url_GetDisassociateClientVpnTargetNetwork_622046, + validator: validate_GetDisassociateClientVpnTargetNetwork_622047, base: "/", + url: url_GetDisassociateClientVpnTargetNetwork_622048, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDisassociateIamInstanceProfile_622097 = ref object of OpenApiRestCall_610658 -proc url_PostDisassociateIamInstanceProfile_622099(protocol: Scheme; host: string; + Call_PostDisassociateIamInstanceProfile_622099 = ref object of OpenApiRestCall_610658 +proc url_PostDisassociateIamInstanceProfile_622101(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -90138,7 +90165,7 @@ proc url_PostDisassociateIamInstanceProfile_622099(protocol: Scheme; host: strin else: result.path = base & route -proc validate_PostDisassociateIamInstanceProfile_622098(path: JsonNode; +proc validate_PostDisassociateIamInstanceProfile_622100(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Disassociates an IAM instance profile from a running or stopped instance.

    Use DescribeIamInstanceProfileAssociations to get the association ID.

    ## @@ -90150,16 +90177,16 @@ proc validate_PostDisassociateIamInstanceProfile_622098(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622100 = query.getOrDefault("Action") - valid_622100 = validateParameter(valid_622100, JString, required = true, default = newJString( + var valid_622102 = query.getOrDefault("Action") + valid_622102 = validateParameter(valid_622102, JString, required = true, default = newJString( "DisassociateIamInstanceProfile")) - if valid_622100 != nil: - section.add "Action", valid_622100 - var valid_622101 = query.getOrDefault("Version") - valid_622101 = validateParameter(valid_622101, JString, required = true, + if valid_622102 != nil: + section.add "Action", valid_622102 + var valid_622103 = query.getOrDefault("Version") + valid_622103 = validateParameter(valid_622103, JString, required = true, default = newJString("2016-11-15")) - if valid_622101 != nil: - section.add "Version", valid_622101 + if valid_622103 != nil: + section.add "Version", valid_622103 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -90170,41 +90197,41 @@ proc validate_PostDisassociateIamInstanceProfile_622098(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622102 = header.getOrDefault("X-Amz-Signature") - valid_622102 = validateParameter(valid_622102, JString, required = false, - default = nil) - if valid_622102 != nil: - section.add "X-Amz-Signature", valid_622102 - var valid_622103 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622103 = validateParameter(valid_622103, JString, required = false, - default = nil) - if valid_622103 != nil: - section.add "X-Amz-Content-Sha256", valid_622103 - var valid_622104 = header.getOrDefault("X-Amz-Date") + var valid_622104 = header.getOrDefault("X-Amz-Signature") valid_622104 = validateParameter(valid_622104, JString, required = false, default = nil) if valid_622104 != nil: - section.add "X-Amz-Date", valid_622104 - var valid_622105 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622104 + var valid_622105 = header.getOrDefault("X-Amz-Content-Sha256") valid_622105 = validateParameter(valid_622105, JString, required = false, default = nil) if valid_622105 != nil: - section.add "X-Amz-Credential", valid_622105 - var valid_622106 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622105 + var valid_622106 = header.getOrDefault("X-Amz-Date") valid_622106 = validateParameter(valid_622106, JString, required = false, default = nil) if valid_622106 != nil: - section.add "X-Amz-Security-Token", valid_622106 - var valid_622107 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622106 + var valid_622107 = header.getOrDefault("X-Amz-Credential") valid_622107 = validateParameter(valid_622107, JString, required = false, default = nil) if valid_622107 != nil: - section.add "X-Amz-Algorithm", valid_622107 - var valid_622108 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622107 + var valid_622108 = header.getOrDefault("X-Amz-Security-Token") valid_622108 = validateParameter(valid_622108, JString, required = false, default = nil) if valid_622108 != nil: - section.add "X-Amz-SignedHeaders", valid_622108 + section.add "X-Amz-Security-Token", valid_622108 + var valid_622109 = header.getOrDefault("X-Amz-Algorithm") + valid_622109 = validateParameter(valid_622109, JString, required = false, + default = nil) + if valid_622109 != nil: + section.add "X-Amz-Algorithm", valid_622109 + var valid_622110 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622110 = validateParameter(valid_622110, JString, required = false, + default = nil) + if valid_622110 != nil: + section.add "X-Amz-SignedHeaders", valid_622110 result.add "header", section ## parameters in `formData` object: ## AssociationId: JString (required) @@ -90212,30 +90239,30 @@ proc validate_PostDisassociateIamInstanceProfile_622098(path: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `AssociationId` field" - var valid_622109 = formData.getOrDefault("AssociationId") - valid_622109 = validateParameter(valid_622109, JString, required = true, + var valid_622111 = formData.getOrDefault("AssociationId") + valid_622111 = validateParameter(valid_622111, JString, required = true, default = nil) - if valid_622109 != nil: - section.add "AssociationId", valid_622109 + if valid_622111 != nil: + section.add "AssociationId", valid_622111 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622110: Call_PostDisassociateIamInstanceProfile_622097; +proc call*(call_622112: Call_PostDisassociateIamInstanceProfile_622099; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Disassociates an IAM instance profile from a running or stopped instance.

    Use DescribeIamInstanceProfileAssociations to get the association ID.

    ## - let valid = call_622110.validator(path, query, header, formData, body) - let scheme = call_622110.pickScheme + let valid = call_622112.validator(path, query, header, formData, body) + let scheme = call_622112.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622110.url(scheme.get, call_622110.host, call_622110.base, - call_622110.route, valid.getOrDefault("path"), + let url = call_622112.url(scheme.get, call_622112.host, call_622112.base, + call_622112.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622110, url, valid) + result = atozHook(call_622112, url, valid) -proc call*(call_622111: Call_PostDisassociateIamInstanceProfile_622097; +proc call*(call_622113: Call_PostDisassociateIamInstanceProfile_622099; AssociationId: string; Action: string = "DisassociateIamInstanceProfile"; Version: string = "2016-11-15"): Recallable = @@ -90245,22 +90272,22 @@ proc call*(call_622111: Call_PostDisassociateIamInstanceProfile_622097; ## Version: string (required) ## AssociationId: string (required) ## : The ID of the IAM instance profile association. - var query_622112 = newJObject() - var formData_622113 = newJObject() - add(query_622112, "Action", newJString(Action)) - add(query_622112, "Version", newJString(Version)) - add(formData_622113, "AssociationId", newJString(AssociationId)) - result = call_622111.call(nil, query_622112, nil, formData_622113, nil) - -var postDisassociateIamInstanceProfile* = Call_PostDisassociateIamInstanceProfile_622097( + var query_622114 = newJObject() + var formData_622115 = newJObject() + add(query_622114, "Action", newJString(Action)) + add(query_622114, "Version", newJString(Version)) + add(formData_622115, "AssociationId", newJString(AssociationId)) + result = call_622113.call(nil, query_622114, nil, formData_622115, nil) + +var postDisassociateIamInstanceProfile* = Call_PostDisassociateIamInstanceProfile_622099( name: "postDisassociateIamInstanceProfile", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DisassociateIamInstanceProfile", - validator: validate_PostDisassociateIamInstanceProfile_622098, base: "/", - url: url_PostDisassociateIamInstanceProfile_622099, + validator: validate_PostDisassociateIamInstanceProfile_622100, base: "/", + url: url_PostDisassociateIamInstanceProfile_622101, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDisassociateIamInstanceProfile_622081 = ref object of OpenApiRestCall_610658 -proc url_GetDisassociateIamInstanceProfile_622083(protocol: Scheme; host: string; + Call_GetDisassociateIamInstanceProfile_622083 = ref object of OpenApiRestCall_610658 +proc url_GetDisassociateIamInstanceProfile_622085(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -90270,7 +90297,7 @@ proc url_GetDisassociateIamInstanceProfile_622083(protocol: Scheme; host: string else: result.path = base & route -proc validate_GetDisassociateIamInstanceProfile_622082(path: JsonNode; +proc validate_GetDisassociateIamInstanceProfile_622084(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Disassociates an IAM instance profile from a running or stopped instance.

    Use DescribeIamInstanceProfileAssociations to get the association ID.

    ## @@ -90286,21 +90313,21 @@ proc validate_GetDisassociateIamInstanceProfile_622082(path: JsonNode; section = newJObject() assert query != nil, "query argument is necessary due to required `AssociationId` field" - var valid_622084 = query.getOrDefault("AssociationId") - valid_622084 = validateParameter(valid_622084, JString, required = true, + var valid_622086 = query.getOrDefault("AssociationId") + valid_622086 = validateParameter(valid_622086, JString, required = true, default = nil) - if valid_622084 != nil: - section.add "AssociationId", valid_622084 - var valid_622085 = query.getOrDefault("Action") - valid_622085 = validateParameter(valid_622085, JString, required = true, default = newJString( + if valid_622086 != nil: + section.add "AssociationId", valid_622086 + var valid_622087 = query.getOrDefault("Action") + valid_622087 = validateParameter(valid_622087, JString, required = true, default = newJString( "DisassociateIamInstanceProfile")) - if valid_622085 != nil: - section.add "Action", valid_622085 - var valid_622086 = query.getOrDefault("Version") - valid_622086 = validateParameter(valid_622086, JString, required = true, + if valid_622087 != nil: + section.add "Action", valid_622087 + var valid_622088 = query.getOrDefault("Version") + valid_622088 = validateParameter(valid_622088, JString, required = true, default = newJString("2016-11-15")) - if valid_622086 != nil: - section.add "Version", valid_622086 + if valid_622088 != nil: + section.add "Version", valid_622088 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -90311,62 +90338,62 @@ proc validate_GetDisassociateIamInstanceProfile_622082(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622087 = header.getOrDefault("X-Amz-Signature") - valid_622087 = validateParameter(valid_622087, JString, required = false, - default = nil) - if valid_622087 != nil: - section.add "X-Amz-Signature", valid_622087 - var valid_622088 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622088 = validateParameter(valid_622088, JString, required = false, - default = nil) - if valid_622088 != nil: - section.add "X-Amz-Content-Sha256", valid_622088 - var valid_622089 = header.getOrDefault("X-Amz-Date") + var valid_622089 = header.getOrDefault("X-Amz-Signature") valid_622089 = validateParameter(valid_622089, JString, required = false, default = nil) if valid_622089 != nil: - section.add "X-Amz-Date", valid_622089 - var valid_622090 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622089 + var valid_622090 = header.getOrDefault("X-Amz-Content-Sha256") valid_622090 = validateParameter(valid_622090, JString, required = false, default = nil) if valid_622090 != nil: - section.add "X-Amz-Credential", valid_622090 - var valid_622091 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622090 + var valid_622091 = header.getOrDefault("X-Amz-Date") valid_622091 = validateParameter(valid_622091, JString, required = false, default = nil) if valid_622091 != nil: - section.add "X-Amz-Security-Token", valid_622091 - var valid_622092 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622091 + var valid_622092 = header.getOrDefault("X-Amz-Credential") valid_622092 = validateParameter(valid_622092, JString, required = false, default = nil) if valid_622092 != nil: - section.add "X-Amz-Algorithm", valid_622092 - var valid_622093 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622092 + var valid_622093 = header.getOrDefault("X-Amz-Security-Token") valid_622093 = validateParameter(valid_622093, JString, required = false, default = nil) if valid_622093 != nil: - section.add "X-Amz-SignedHeaders", valid_622093 + section.add "X-Amz-Security-Token", valid_622093 + var valid_622094 = header.getOrDefault("X-Amz-Algorithm") + valid_622094 = validateParameter(valid_622094, JString, required = false, + default = nil) + if valid_622094 != nil: + section.add "X-Amz-Algorithm", valid_622094 + var valid_622095 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622095 = validateParameter(valid_622095, JString, required = false, + default = nil) + if valid_622095 != nil: + section.add "X-Amz-SignedHeaders", valid_622095 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622094: Call_GetDisassociateIamInstanceProfile_622081; +proc call*(call_622096: Call_GetDisassociateIamInstanceProfile_622083; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Disassociates an IAM instance profile from a running or stopped instance.

    Use DescribeIamInstanceProfileAssociations to get the association ID.

    ## - let valid = call_622094.validator(path, query, header, formData, body) - let scheme = call_622094.pickScheme + let valid = call_622096.validator(path, query, header, formData, body) + let scheme = call_622096.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622094.url(scheme.get, call_622094.host, call_622094.base, - call_622094.route, valid.getOrDefault("path"), + let url = call_622096.url(scheme.get, call_622096.host, call_622096.base, + call_622096.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622094, url, valid) + result = atozHook(call_622096, url, valid) -proc call*(call_622095: Call_GetDisassociateIamInstanceProfile_622081; +proc call*(call_622097: Call_GetDisassociateIamInstanceProfile_622083; AssociationId: string; Action: string = "DisassociateIamInstanceProfile"; Version: string = "2016-11-15"): Recallable = @@ -90376,21 +90403,21 @@ proc call*(call_622095: Call_GetDisassociateIamInstanceProfile_622081; ## : The ID of the IAM instance profile association. ## Action: string (required) ## Version: string (required) - var query_622096 = newJObject() - add(query_622096, "AssociationId", newJString(AssociationId)) - add(query_622096, "Action", newJString(Action)) - add(query_622096, "Version", newJString(Version)) - result = call_622095.call(nil, query_622096, nil, nil, nil) + var query_622098 = newJObject() + add(query_622098, "AssociationId", newJString(AssociationId)) + add(query_622098, "Action", newJString(Action)) + add(query_622098, "Version", newJString(Version)) + result = call_622097.call(nil, query_622098, nil, nil, nil) -var getDisassociateIamInstanceProfile* = Call_GetDisassociateIamInstanceProfile_622081( +var getDisassociateIamInstanceProfile* = Call_GetDisassociateIamInstanceProfile_622083( name: "getDisassociateIamInstanceProfile", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DisassociateIamInstanceProfile", - validator: validate_GetDisassociateIamInstanceProfile_622082, base: "/", - url: url_GetDisassociateIamInstanceProfile_622083, + validator: validate_GetDisassociateIamInstanceProfile_622084, base: "/", + url: url_GetDisassociateIamInstanceProfile_622085, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDisassociateRouteTable_622131 = ref object of OpenApiRestCall_610658 -proc url_PostDisassociateRouteTable_622133(protocol: Scheme; host: string; + Call_PostDisassociateRouteTable_622133 = ref object of OpenApiRestCall_610658 +proc url_PostDisassociateRouteTable_622135(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -90400,7 +90427,7 @@ proc url_PostDisassociateRouteTable_622133(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDisassociateRouteTable_622132(path: JsonNode; query: JsonNode; +proc validate_PostDisassociateRouteTable_622134(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Disassociates a subnet from a route table.

    After you perform this action, the subnet no longer uses the routes in the route table. Instead, it uses the routes in the VPC's main route table. For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.

    ## @@ -90412,16 +90439,16 @@ proc validate_PostDisassociateRouteTable_622132(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622134 = query.getOrDefault("Action") - valid_622134 = validateParameter(valid_622134, JString, required = true, + var valid_622136 = query.getOrDefault("Action") + valid_622136 = validateParameter(valid_622136, JString, required = true, default = newJString("DisassociateRouteTable")) - if valid_622134 != nil: - section.add "Action", valid_622134 - var valid_622135 = query.getOrDefault("Version") - valid_622135 = validateParameter(valid_622135, JString, required = true, + if valid_622136 != nil: + section.add "Action", valid_622136 + var valid_622137 = query.getOrDefault("Version") + valid_622137 = validateParameter(valid_622137, JString, required = true, default = newJString("2016-11-15")) - if valid_622135 != nil: - section.add "Version", valid_622135 + if valid_622137 != nil: + section.add "Version", valid_622137 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -90432,41 +90459,41 @@ proc validate_PostDisassociateRouteTable_622132(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622136 = header.getOrDefault("X-Amz-Signature") - valid_622136 = validateParameter(valid_622136, JString, required = false, - default = nil) - if valid_622136 != nil: - section.add "X-Amz-Signature", valid_622136 - var valid_622137 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622137 = validateParameter(valid_622137, JString, required = false, - default = nil) - if valid_622137 != nil: - section.add "X-Amz-Content-Sha256", valid_622137 - var valid_622138 = header.getOrDefault("X-Amz-Date") + var valid_622138 = header.getOrDefault("X-Amz-Signature") valid_622138 = validateParameter(valid_622138, JString, required = false, default = nil) if valid_622138 != nil: - section.add "X-Amz-Date", valid_622138 - var valid_622139 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622138 + var valid_622139 = header.getOrDefault("X-Amz-Content-Sha256") valid_622139 = validateParameter(valid_622139, JString, required = false, default = nil) if valid_622139 != nil: - section.add "X-Amz-Credential", valid_622139 - var valid_622140 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622139 + var valid_622140 = header.getOrDefault("X-Amz-Date") valid_622140 = validateParameter(valid_622140, JString, required = false, default = nil) if valid_622140 != nil: - section.add "X-Amz-Security-Token", valid_622140 - var valid_622141 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622140 + var valid_622141 = header.getOrDefault("X-Amz-Credential") valid_622141 = validateParameter(valid_622141, JString, required = false, default = nil) if valid_622141 != nil: - section.add "X-Amz-Algorithm", valid_622141 - var valid_622142 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622141 + var valid_622142 = header.getOrDefault("X-Amz-Security-Token") valid_622142 = validateParameter(valid_622142, JString, required = false, default = nil) if valid_622142 != nil: - section.add "X-Amz-SignedHeaders", valid_622142 + section.add "X-Amz-Security-Token", valid_622142 + var valid_622143 = header.getOrDefault("X-Amz-Algorithm") + valid_622143 = validateParameter(valid_622143, JString, required = false, + default = nil) + if valid_622143 != nil: + section.add "X-Amz-Algorithm", valid_622143 + var valid_622144 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622144 = validateParameter(valid_622144, JString, required = false, + default = nil) + if valid_622144 != nil: + section.add "X-Amz-SignedHeaders", valid_622144 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -90474,35 +90501,35 @@ proc validate_PostDisassociateRouteTable_622132(path: JsonNode; query: JsonNode; ## AssociationId: JString (required) ## : The association ID representing the current association between the route table and subnet. section = newJObject() - var valid_622143 = formData.getOrDefault("DryRun") - valid_622143 = validateParameter(valid_622143, JBool, required = false, default = nil) - if valid_622143 != nil: - section.add "DryRun", valid_622143 + var valid_622145 = formData.getOrDefault("DryRun") + valid_622145 = validateParameter(valid_622145, JBool, required = false, default = nil) + if valid_622145 != nil: + section.add "DryRun", valid_622145 assert formData != nil, "formData argument is necessary due to required `AssociationId` field" - var valid_622144 = formData.getOrDefault("AssociationId") - valid_622144 = validateParameter(valid_622144, JString, required = true, + var valid_622146 = formData.getOrDefault("AssociationId") + valid_622146 = validateParameter(valid_622146, JString, required = true, default = nil) - if valid_622144 != nil: - section.add "AssociationId", valid_622144 + if valid_622146 != nil: + section.add "AssociationId", valid_622146 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622145: Call_PostDisassociateRouteTable_622131; path: JsonNode; +proc call*(call_622147: Call_PostDisassociateRouteTable_622133; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Disassociates a subnet from a route table.

    After you perform this action, the subnet no longer uses the routes in the route table. Instead, it uses the routes in the VPC's main route table. For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.

    ## - let valid = call_622145.validator(path, query, header, formData, body) - let scheme = call_622145.pickScheme + let valid = call_622147.validator(path, query, header, formData, body) + let scheme = call_622147.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622145.url(scheme.get, call_622145.host, call_622145.base, - call_622145.route, valid.getOrDefault("path"), + let url = call_622147.url(scheme.get, call_622147.host, call_622147.base, + call_622147.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622145, url, valid) + result = atozHook(call_622147, url, valid) -proc call*(call_622146: Call_PostDisassociateRouteTable_622131; +proc call*(call_622148: Call_PostDisassociateRouteTable_622133; AssociationId: string; DryRun: bool = false; Action: string = "DisassociateRouteTable"; Version: string = "2016-11-15"): Recallable = ## postDisassociateRouteTable @@ -90513,23 +90540,23 @@ proc call*(call_622146: Call_PostDisassociateRouteTable_622131; ## Version: string (required) ## AssociationId: string (required) ## : The association ID representing the current association between the route table and subnet. - var query_622147 = newJObject() - var formData_622148 = newJObject() - add(formData_622148, "DryRun", newJBool(DryRun)) - add(query_622147, "Action", newJString(Action)) - add(query_622147, "Version", newJString(Version)) - add(formData_622148, "AssociationId", newJString(AssociationId)) - result = call_622146.call(nil, query_622147, nil, formData_622148, nil) - -var postDisassociateRouteTable* = Call_PostDisassociateRouteTable_622131( + var query_622149 = newJObject() + var formData_622150 = newJObject() + add(formData_622150, "DryRun", newJBool(DryRun)) + add(query_622149, "Action", newJString(Action)) + add(query_622149, "Version", newJString(Version)) + add(formData_622150, "AssociationId", newJString(AssociationId)) + result = call_622148.call(nil, query_622149, nil, formData_622150, nil) + +var postDisassociateRouteTable* = Call_PostDisassociateRouteTable_622133( name: "postDisassociateRouteTable", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DisassociateRouteTable", - validator: validate_PostDisassociateRouteTable_622132, base: "/", - url: url_PostDisassociateRouteTable_622133, + validator: validate_PostDisassociateRouteTable_622134, base: "/", + url: url_PostDisassociateRouteTable_622135, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDisassociateRouteTable_622114 = ref object of OpenApiRestCall_610658 -proc url_GetDisassociateRouteTable_622116(protocol: Scheme; host: string; + Call_GetDisassociateRouteTable_622116 = ref object of OpenApiRestCall_610658 +proc url_GetDisassociateRouteTable_622118(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -90539,7 +90566,7 @@ proc url_GetDisassociateRouteTable_622116(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDisassociateRouteTable_622115(path: JsonNode; query: JsonNode; +proc validate_GetDisassociateRouteTable_622117(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Disassociates a subnet from a route table.

    After you perform this action, the subnet no longer uses the routes in the route table. Instead, it uses the routes in the VPC's main route table. For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.

    ## @@ -90555,27 +90582,27 @@ proc validate_GetDisassociateRouteTable_622115(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622117 = query.getOrDefault("DryRun") - valid_622117 = validateParameter(valid_622117, JBool, required = false, default = nil) - if valid_622117 != nil: - section.add "DryRun", valid_622117 + var valid_622119 = query.getOrDefault("DryRun") + valid_622119 = validateParameter(valid_622119, JBool, required = false, default = nil) + if valid_622119 != nil: + section.add "DryRun", valid_622119 assert query != nil, "query argument is necessary due to required `AssociationId` field" - var valid_622118 = query.getOrDefault("AssociationId") - valid_622118 = validateParameter(valid_622118, JString, required = true, + var valid_622120 = query.getOrDefault("AssociationId") + valid_622120 = validateParameter(valid_622120, JString, required = true, default = nil) - if valid_622118 != nil: - section.add "AssociationId", valid_622118 - var valid_622119 = query.getOrDefault("Action") - valid_622119 = validateParameter(valid_622119, JString, required = true, + if valid_622120 != nil: + section.add "AssociationId", valid_622120 + var valid_622121 = query.getOrDefault("Action") + valid_622121 = validateParameter(valid_622121, JString, required = true, default = newJString("DisassociateRouteTable")) - if valid_622119 != nil: - section.add "Action", valid_622119 - var valid_622120 = query.getOrDefault("Version") - valid_622120 = validateParameter(valid_622120, JString, required = true, + if valid_622121 != nil: + section.add "Action", valid_622121 + var valid_622122 = query.getOrDefault("Version") + valid_622122 = validateParameter(valid_622122, JString, required = true, default = newJString("2016-11-15")) - if valid_622120 != nil: - section.add "Version", valid_622120 + if valid_622122 != nil: + section.add "Version", valid_622122 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -90586,61 +90613,61 @@ proc validate_GetDisassociateRouteTable_622115(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622121 = header.getOrDefault("X-Amz-Signature") - valid_622121 = validateParameter(valid_622121, JString, required = false, - default = nil) - if valid_622121 != nil: - section.add "X-Amz-Signature", valid_622121 - var valid_622122 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622122 = validateParameter(valid_622122, JString, required = false, - default = nil) - if valid_622122 != nil: - section.add "X-Amz-Content-Sha256", valid_622122 - var valid_622123 = header.getOrDefault("X-Amz-Date") + var valid_622123 = header.getOrDefault("X-Amz-Signature") valid_622123 = validateParameter(valid_622123, JString, required = false, default = nil) if valid_622123 != nil: - section.add "X-Amz-Date", valid_622123 - var valid_622124 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622123 + var valid_622124 = header.getOrDefault("X-Amz-Content-Sha256") valid_622124 = validateParameter(valid_622124, JString, required = false, default = nil) if valid_622124 != nil: - section.add "X-Amz-Credential", valid_622124 - var valid_622125 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622124 + var valid_622125 = header.getOrDefault("X-Amz-Date") valid_622125 = validateParameter(valid_622125, JString, required = false, default = nil) if valid_622125 != nil: - section.add "X-Amz-Security-Token", valid_622125 - var valid_622126 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622125 + var valid_622126 = header.getOrDefault("X-Amz-Credential") valid_622126 = validateParameter(valid_622126, JString, required = false, default = nil) if valid_622126 != nil: - section.add "X-Amz-Algorithm", valid_622126 - var valid_622127 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622126 + var valid_622127 = header.getOrDefault("X-Amz-Security-Token") valid_622127 = validateParameter(valid_622127, JString, required = false, default = nil) if valid_622127 != nil: - section.add "X-Amz-SignedHeaders", valid_622127 + section.add "X-Amz-Security-Token", valid_622127 + var valid_622128 = header.getOrDefault("X-Amz-Algorithm") + valid_622128 = validateParameter(valid_622128, JString, required = false, + default = nil) + if valid_622128 != nil: + section.add "X-Amz-Algorithm", valid_622128 + var valid_622129 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622129 = validateParameter(valid_622129, JString, required = false, + default = nil) + if valid_622129 != nil: + section.add "X-Amz-SignedHeaders", valid_622129 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622128: Call_GetDisassociateRouteTable_622114; path: JsonNode; +proc call*(call_622130: Call_GetDisassociateRouteTable_622116; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Disassociates a subnet from a route table.

    After you perform this action, the subnet no longer uses the routes in the route table. Instead, it uses the routes in the VPC's main route table. For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.

    ## - let valid = call_622128.validator(path, query, header, formData, body) - let scheme = call_622128.pickScheme + let valid = call_622130.validator(path, query, header, formData, body) + let scheme = call_622130.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622128.url(scheme.get, call_622128.host, call_622128.base, - call_622128.route, valid.getOrDefault("path"), + let url = call_622130.url(scheme.get, call_622130.host, call_622130.base, + call_622130.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622128, url, valid) + result = atozHook(call_622130, url, valid) -proc call*(call_622129: Call_GetDisassociateRouteTable_622114; +proc call*(call_622131: Call_GetDisassociateRouteTable_622116; AssociationId: string; DryRun: bool = false; Action: string = "DisassociateRouteTable"; Version: string = "2016-11-15"): Recallable = ## getDisassociateRouteTable @@ -90651,22 +90678,22 @@ proc call*(call_622129: Call_GetDisassociateRouteTable_622114; ## : The association ID representing the current association between the route table and subnet. ## Action: string (required) ## Version: string (required) - var query_622130 = newJObject() - add(query_622130, "DryRun", newJBool(DryRun)) - add(query_622130, "AssociationId", newJString(AssociationId)) - add(query_622130, "Action", newJString(Action)) - add(query_622130, "Version", newJString(Version)) - result = call_622129.call(nil, query_622130, nil, nil, nil) + var query_622132 = newJObject() + add(query_622132, "DryRun", newJBool(DryRun)) + add(query_622132, "AssociationId", newJString(AssociationId)) + add(query_622132, "Action", newJString(Action)) + add(query_622132, "Version", newJString(Version)) + result = call_622131.call(nil, query_622132, nil, nil, nil) -var getDisassociateRouteTable* = Call_GetDisassociateRouteTable_622114( +var getDisassociateRouteTable* = Call_GetDisassociateRouteTable_622116( name: "getDisassociateRouteTable", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DisassociateRouteTable", - validator: validate_GetDisassociateRouteTable_622115, base: "/", - url: url_GetDisassociateRouteTable_622116, + validator: validate_GetDisassociateRouteTable_622117, base: "/", + url: url_GetDisassociateRouteTable_622118, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDisassociateSubnetCidrBlock_622165 = ref object of OpenApiRestCall_610658 -proc url_PostDisassociateSubnetCidrBlock_622167(protocol: Scheme; host: string; + Call_PostDisassociateSubnetCidrBlock_622167 = ref object of OpenApiRestCall_610658 +proc url_PostDisassociateSubnetCidrBlock_622169(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -90676,7 +90703,7 @@ proc url_PostDisassociateSubnetCidrBlock_622167(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDisassociateSubnetCidrBlock_622166(path: JsonNode; +proc validate_PostDisassociateSubnetCidrBlock_622168(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Disassociates a CIDR block from a subnet. Currently, you can disassociate an IPv6 CIDR block only. You must detach or delete all gateways and resources that are associated with the CIDR block before you can disassociate it. ## @@ -90688,16 +90715,16 @@ proc validate_PostDisassociateSubnetCidrBlock_622166(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622168 = query.getOrDefault("Action") - valid_622168 = validateParameter(valid_622168, JString, required = true, default = newJString( + var valid_622170 = query.getOrDefault("Action") + valid_622170 = validateParameter(valid_622170, JString, required = true, default = newJString( "DisassociateSubnetCidrBlock")) - if valid_622168 != nil: - section.add "Action", valid_622168 - var valid_622169 = query.getOrDefault("Version") - valid_622169 = validateParameter(valid_622169, JString, required = true, + if valid_622170 != nil: + section.add "Action", valid_622170 + var valid_622171 = query.getOrDefault("Version") + valid_622171 = validateParameter(valid_622171, JString, required = true, default = newJString("2016-11-15")) - if valid_622169 != nil: - section.add "Version", valid_622169 + if valid_622171 != nil: + section.add "Version", valid_622171 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -90708,41 +90735,41 @@ proc validate_PostDisassociateSubnetCidrBlock_622166(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622170 = header.getOrDefault("X-Amz-Signature") - valid_622170 = validateParameter(valid_622170, JString, required = false, - default = nil) - if valid_622170 != nil: - section.add "X-Amz-Signature", valid_622170 - var valid_622171 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622171 = validateParameter(valid_622171, JString, required = false, - default = nil) - if valid_622171 != nil: - section.add "X-Amz-Content-Sha256", valid_622171 - var valid_622172 = header.getOrDefault("X-Amz-Date") + var valid_622172 = header.getOrDefault("X-Amz-Signature") valid_622172 = validateParameter(valid_622172, JString, required = false, default = nil) if valid_622172 != nil: - section.add "X-Amz-Date", valid_622172 - var valid_622173 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622172 + var valid_622173 = header.getOrDefault("X-Amz-Content-Sha256") valid_622173 = validateParameter(valid_622173, JString, required = false, default = nil) if valid_622173 != nil: - section.add "X-Amz-Credential", valid_622173 - var valid_622174 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622173 + var valid_622174 = header.getOrDefault("X-Amz-Date") valid_622174 = validateParameter(valid_622174, JString, required = false, default = nil) if valid_622174 != nil: - section.add "X-Amz-Security-Token", valid_622174 - var valid_622175 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622174 + var valid_622175 = header.getOrDefault("X-Amz-Credential") valid_622175 = validateParameter(valid_622175, JString, required = false, default = nil) if valid_622175 != nil: - section.add "X-Amz-Algorithm", valid_622175 - var valid_622176 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622175 + var valid_622176 = header.getOrDefault("X-Amz-Security-Token") valid_622176 = validateParameter(valid_622176, JString, required = false, default = nil) if valid_622176 != nil: - section.add "X-Amz-SignedHeaders", valid_622176 + section.add "X-Amz-Security-Token", valid_622176 + var valid_622177 = header.getOrDefault("X-Amz-Algorithm") + valid_622177 = validateParameter(valid_622177, JString, required = false, + default = nil) + if valid_622177 != nil: + section.add "X-Amz-Algorithm", valid_622177 + var valid_622178 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622178 = validateParameter(valid_622178, JString, required = false, + default = nil) + if valid_622178 != nil: + section.add "X-Amz-SignedHeaders", valid_622178 result.add "header", section ## parameters in `formData` object: ## AssociationId: JString (required) @@ -90750,30 +90777,30 @@ proc validate_PostDisassociateSubnetCidrBlock_622166(path: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `AssociationId` field" - var valid_622177 = formData.getOrDefault("AssociationId") - valid_622177 = validateParameter(valid_622177, JString, required = true, + var valid_622179 = formData.getOrDefault("AssociationId") + valid_622179 = validateParameter(valid_622179, JString, required = true, default = nil) - if valid_622177 != nil: - section.add "AssociationId", valid_622177 + if valid_622179 != nil: + section.add "AssociationId", valid_622179 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622178: Call_PostDisassociateSubnetCidrBlock_622165; +proc call*(call_622180: Call_PostDisassociateSubnetCidrBlock_622167; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Disassociates a CIDR block from a subnet. Currently, you can disassociate an IPv6 CIDR block only. You must detach or delete all gateways and resources that are associated with the CIDR block before you can disassociate it. ## - let valid = call_622178.validator(path, query, header, formData, body) - let scheme = call_622178.pickScheme + let valid = call_622180.validator(path, query, header, formData, body) + let scheme = call_622180.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622178.url(scheme.get, call_622178.host, call_622178.base, - call_622178.route, valid.getOrDefault("path"), + let url = call_622180.url(scheme.get, call_622180.host, call_622180.base, + call_622180.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622178, url, valid) + result = atozHook(call_622180, url, valid) -proc call*(call_622179: Call_PostDisassociateSubnetCidrBlock_622165; +proc call*(call_622181: Call_PostDisassociateSubnetCidrBlock_622167; AssociationId: string; Action: string = "DisassociateSubnetCidrBlock"; Version: string = "2016-11-15"): Recallable = ## postDisassociateSubnetCidrBlock @@ -90782,22 +90809,22 @@ proc call*(call_622179: Call_PostDisassociateSubnetCidrBlock_622165; ## Version: string (required) ## AssociationId: string (required) ## : The association ID for the CIDR block. - var query_622180 = newJObject() - var formData_622181 = newJObject() - add(query_622180, "Action", newJString(Action)) - add(query_622180, "Version", newJString(Version)) - add(formData_622181, "AssociationId", newJString(AssociationId)) - result = call_622179.call(nil, query_622180, nil, formData_622181, nil) - -var postDisassociateSubnetCidrBlock* = Call_PostDisassociateSubnetCidrBlock_622165( + var query_622182 = newJObject() + var formData_622183 = newJObject() + add(query_622182, "Action", newJString(Action)) + add(query_622182, "Version", newJString(Version)) + add(formData_622183, "AssociationId", newJString(AssociationId)) + result = call_622181.call(nil, query_622182, nil, formData_622183, nil) + +var postDisassociateSubnetCidrBlock* = Call_PostDisassociateSubnetCidrBlock_622167( name: "postDisassociateSubnetCidrBlock", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DisassociateSubnetCidrBlock", - validator: validate_PostDisassociateSubnetCidrBlock_622166, base: "/", - url: url_PostDisassociateSubnetCidrBlock_622167, + validator: validate_PostDisassociateSubnetCidrBlock_622168, base: "/", + url: url_PostDisassociateSubnetCidrBlock_622169, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDisassociateSubnetCidrBlock_622149 = ref object of OpenApiRestCall_610658 -proc url_GetDisassociateSubnetCidrBlock_622151(protocol: Scheme; host: string; + Call_GetDisassociateSubnetCidrBlock_622151 = ref object of OpenApiRestCall_610658 +proc url_GetDisassociateSubnetCidrBlock_622153(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -90807,7 +90834,7 @@ proc url_GetDisassociateSubnetCidrBlock_622151(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDisassociateSubnetCidrBlock_622150(path: JsonNode; +proc validate_GetDisassociateSubnetCidrBlock_622152(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Disassociates a CIDR block from a subnet. Currently, you can disassociate an IPv6 CIDR block only. You must detach or delete all gateways and resources that are associated with the CIDR block before you can disassociate it. ## @@ -90823,21 +90850,21 @@ proc validate_GetDisassociateSubnetCidrBlock_622150(path: JsonNode; section = newJObject() assert query != nil, "query argument is necessary due to required `AssociationId` field" - var valid_622152 = query.getOrDefault("AssociationId") - valid_622152 = validateParameter(valid_622152, JString, required = true, + var valid_622154 = query.getOrDefault("AssociationId") + valid_622154 = validateParameter(valid_622154, JString, required = true, default = nil) - if valid_622152 != nil: - section.add "AssociationId", valid_622152 - var valid_622153 = query.getOrDefault("Action") - valid_622153 = validateParameter(valid_622153, JString, required = true, default = newJString( + if valid_622154 != nil: + section.add "AssociationId", valid_622154 + var valid_622155 = query.getOrDefault("Action") + valid_622155 = validateParameter(valid_622155, JString, required = true, default = newJString( "DisassociateSubnetCidrBlock")) - if valid_622153 != nil: - section.add "Action", valid_622153 - var valid_622154 = query.getOrDefault("Version") - valid_622154 = validateParameter(valid_622154, JString, required = true, + if valid_622155 != nil: + section.add "Action", valid_622155 + var valid_622156 = query.getOrDefault("Version") + valid_622156 = validateParameter(valid_622156, JString, required = true, default = newJString("2016-11-15")) - if valid_622154 != nil: - section.add "Version", valid_622154 + if valid_622156 != nil: + section.add "Version", valid_622156 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -90848,61 +90875,61 @@ proc validate_GetDisassociateSubnetCidrBlock_622150(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622155 = header.getOrDefault("X-Amz-Signature") - valid_622155 = validateParameter(valid_622155, JString, required = false, - default = nil) - if valid_622155 != nil: - section.add "X-Amz-Signature", valid_622155 - var valid_622156 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622156 = validateParameter(valid_622156, JString, required = false, - default = nil) - if valid_622156 != nil: - section.add "X-Amz-Content-Sha256", valid_622156 - var valid_622157 = header.getOrDefault("X-Amz-Date") + var valid_622157 = header.getOrDefault("X-Amz-Signature") valid_622157 = validateParameter(valid_622157, JString, required = false, default = nil) if valid_622157 != nil: - section.add "X-Amz-Date", valid_622157 - var valid_622158 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622157 + var valid_622158 = header.getOrDefault("X-Amz-Content-Sha256") valid_622158 = validateParameter(valid_622158, JString, required = false, default = nil) if valid_622158 != nil: - section.add "X-Amz-Credential", valid_622158 - var valid_622159 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622158 + var valid_622159 = header.getOrDefault("X-Amz-Date") valid_622159 = validateParameter(valid_622159, JString, required = false, default = nil) if valid_622159 != nil: - section.add "X-Amz-Security-Token", valid_622159 - var valid_622160 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622159 + var valid_622160 = header.getOrDefault("X-Amz-Credential") valid_622160 = validateParameter(valid_622160, JString, required = false, default = nil) if valid_622160 != nil: - section.add "X-Amz-Algorithm", valid_622160 - var valid_622161 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622160 + var valid_622161 = header.getOrDefault("X-Amz-Security-Token") valid_622161 = validateParameter(valid_622161, JString, required = false, default = nil) if valid_622161 != nil: - section.add "X-Amz-SignedHeaders", valid_622161 + section.add "X-Amz-Security-Token", valid_622161 + var valid_622162 = header.getOrDefault("X-Amz-Algorithm") + valid_622162 = validateParameter(valid_622162, JString, required = false, + default = nil) + if valid_622162 != nil: + section.add "X-Amz-Algorithm", valid_622162 + var valid_622163 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622163 = validateParameter(valid_622163, JString, required = false, + default = nil) + if valid_622163 != nil: + section.add "X-Amz-SignedHeaders", valid_622163 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622162: Call_GetDisassociateSubnetCidrBlock_622149; path: JsonNode; +proc call*(call_622164: Call_GetDisassociateSubnetCidrBlock_622151; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Disassociates a CIDR block from a subnet. Currently, you can disassociate an IPv6 CIDR block only. You must detach or delete all gateways and resources that are associated with the CIDR block before you can disassociate it. ## - let valid = call_622162.validator(path, query, header, formData, body) - let scheme = call_622162.pickScheme + let valid = call_622164.validator(path, query, header, formData, body) + let scheme = call_622164.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622162.url(scheme.get, call_622162.host, call_622162.base, - call_622162.route, valid.getOrDefault("path"), + let url = call_622164.url(scheme.get, call_622164.host, call_622164.base, + call_622164.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622162, url, valid) + result = atozHook(call_622164, url, valid) -proc call*(call_622163: Call_GetDisassociateSubnetCidrBlock_622149; +proc call*(call_622165: Call_GetDisassociateSubnetCidrBlock_622151; AssociationId: string; Action: string = "DisassociateSubnetCidrBlock"; Version: string = "2016-11-15"): Recallable = ## getDisassociateSubnetCidrBlock @@ -90911,21 +90938,21 @@ proc call*(call_622163: Call_GetDisassociateSubnetCidrBlock_622149; ## : The association ID for the CIDR block. ## Action: string (required) ## Version: string (required) - var query_622164 = newJObject() - add(query_622164, "AssociationId", newJString(AssociationId)) - add(query_622164, "Action", newJString(Action)) - add(query_622164, "Version", newJString(Version)) - result = call_622163.call(nil, query_622164, nil, nil, nil) + var query_622166 = newJObject() + add(query_622166, "AssociationId", newJString(AssociationId)) + add(query_622166, "Action", newJString(Action)) + add(query_622166, "Version", newJString(Version)) + result = call_622165.call(nil, query_622166, nil, nil, nil) -var getDisassociateSubnetCidrBlock* = Call_GetDisassociateSubnetCidrBlock_622149( +var getDisassociateSubnetCidrBlock* = Call_GetDisassociateSubnetCidrBlock_622151( name: "getDisassociateSubnetCidrBlock", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DisassociateSubnetCidrBlock", - validator: validate_GetDisassociateSubnetCidrBlock_622150, base: "/", - url: url_GetDisassociateSubnetCidrBlock_622151, + validator: validate_GetDisassociateSubnetCidrBlock_622152, base: "/", + url: url_GetDisassociateSubnetCidrBlock_622153, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDisassociateTransitGatewayMulticastDomain_622201 = ref object of OpenApiRestCall_610658 -proc url_PostDisassociateTransitGatewayMulticastDomain_622203(protocol: Scheme; + Call_PostDisassociateTransitGatewayMulticastDomain_622203 = ref object of OpenApiRestCall_610658 +proc url_PostDisassociateTransitGatewayMulticastDomain_622205(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -90935,7 +90962,7 @@ proc url_PostDisassociateTransitGatewayMulticastDomain_622203(protocol: Scheme; else: result.path = base & route -proc validate_PostDisassociateTransitGatewayMulticastDomain_622202( +proc validate_PostDisassociateTransitGatewayMulticastDomain_622204( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Disassociates the specified subnets from the transit gateway multicast domain. @@ -90948,16 +90975,16 @@ proc validate_PostDisassociateTransitGatewayMulticastDomain_622202( ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622204 = query.getOrDefault("Action") - valid_622204 = validateParameter(valid_622204, JString, required = true, default = newJString( + var valid_622206 = query.getOrDefault("Action") + valid_622206 = validateParameter(valid_622206, JString, required = true, default = newJString( "DisassociateTransitGatewayMulticastDomain")) - if valid_622204 != nil: - section.add "Action", valid_622204 - var valid_622205 = query.getOrDefault("Version") - valid_622205 = validateParameter(valid_622205, JString, required = true, + if valid_622206 != nil: + section.add "Action", valid_622206 + var valid_622207 = query.getOrDefault("Version") + valid_622207 = validateParameter(valid_622207, JString, required = true, default = newJString("2016-11-15")) - if valid_622205 != nil: - section.add "Version", valid_622205 + if valid_622207 != nil: + section.add "Version", valid_622207 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -90968,41 +90995,41 @@ proc validate_PostDisassociateTransitGatewayMulticastDomain_622202( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622206 = header.getOrDefault("X-Amz-Signature") - valid_622206 = validateParameter(valid_622206, JString, required = false, - default = nil) - if valid_622206 != nil: - section.add "X-Amz-Signature", valid_622206 - var valid_622207 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622207 = validateParameter(valid_622207, JString, required = false, - default = nil) - if valid_622207 != nil: - section.add "X-Amz-Content-Sha256", valid_622207 - var valid_622208 = header.getOrDefault("X-Amz-Date") + var valid_622208 = header.getOrDefault("X-Amz-Signature") valid_622208 = validateParameter(valid_622208, JString, required = false, default = nil) if valid_622208 != nil: - section.add "X-Amz-Date", valid_622208 - var valid_622209 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622208 + var valid_622209 = header.getOrDefault("X-Amz-Content-Sha256") valid_622209 = validateParameter(valid_622209, JString, required = false, default = nil) if valid_622209 != nil: - section.add "X-Amz-Credential", valid_622209 - var valid_622210 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622209 + var valid_622210 = header.getOrDefault("X-Amz-Date") valid_622210 = validateParameter(valid_622210, JString, required = false, default = nil) if valid_622210 != nil: - section.add "X-Amz-Security-Token", valid_622210 - var valid_622211 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622210 + var valid_622211 = header.getOrDefault("X-Amz-Credential") valid_622211 = validateParameter(valid_622211, JString, required = false, default = nil) if valid_622211 != nil: - section.add "X-Amz-Algorithm", valid_622211 - var valid_622212 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622211 + var valid_622212 = header.getOrDefault("X-Amz-Security-Token") valid_622212 = validateParameter(valid_622212, JString, required = false, default = nil) if valid_622212 != nil: - section.add "X-Amz-SignedHeaders", valid_622212 + section.add "X-Amz-Security-Token", valid_622212 + var valid_622213 = header.getOrDefault("X-Amz-Algorithm") + valid_622213 = validateParameter(valid_622213, JString, required = false, + default = nil) + if valid_622213 != nil: + section.add "X-Amz-Algorithm", valid_622213 + var valid_622214 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622214 = validateParameter(valid_622214, JString, required = false, + default = nil) + if valid_622214 != nil: + section.add "X-Amz-SignedHeaders", valid_622214 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -91014,44 +91041,44 @@ proc validate_PostDisassociateTransitGatewayMulticastDomain_622202( ## SubnetIds: JArray ## : The IDs of the subnets; section = newJObject() - var valid_622213 = formData.getOrDefault("DryRun") - valid_622213 = validateParameter(valid_622213, JBool, required = false, default = nil) - if valid_622213 != nil: - section.add "DryRun", valid_622213 - var valid_622214 = formData.getOrDefault("TransitGatewayMulticastDomainId") - valid_622214 = validateParameter(valid_622214, JString, required = false, - default = nil) - if valid_622214 != nil: - section.add "TransitGatewayMulticastDomainId", valid_622214 - var valid_622215 = formData.getOrDefault("TransitGatewayAttachmentId") - valid_622215 = validateParameter(valid_622215, JString, required = false, - default = nil) + var valid_622215 = formData.getOrDefault("DryRun") + valid_622215 = validateParameter(valid_622215, JBool, required = false, default = nil) if valid_622215 != nil: - section.add "TransitGatewayAttachmentId", valid_622215 - var valid_622216 = formData.getOrDefault("SubnetIds") - valid_622216 = validateParameter(valid_622216, JArray, required = false, + section.add "DryRun", valid_622215 + var valid_622216 = formData.getOrDefault("TransitGatewayMulticastDomainId") + valid_622216 = validateParameter(valid_622216, JString, required = false, default = nil) if valid_622216 != nil: - section.add "SubnetIds", valid_622216 + section.add "TransitGatewayMulticastDomainId", valid_622216 + var valid_622217 = formData.getOrDefault("TransitGatewayAttachmentId") + valid_622217 = validateParameter(valid_622217, JString, required = false, + default = nil) + if valid_622217 != nil: + section.add "TransitGatewayAttachmentId", valid_622217 + var valid_622218 = formData.getOrDefault("SubnetIds") + valid_622218 = validateParameter(valid_622218, JArray, required = false, + default = nil) + if valid_622218 != nil: + section.add "SubnetIds", valid_622218 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622217: Call_PostDisassociateTransitGatewayMulticastDomain_622201; +proc call*(call_622219: Call_PostDisassociateTransitGatewayMulticastDomain_622203; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Disassociates the specified subnets from the transit gateway multicast domain. ## - let valid = call_622217.validator(path, query, header, formData, body) - let scheme = call_622217.pickScheme + let valid = call_622219.validator(path, query, header, formData, body) + let scheme = call_622219.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622217.url(scheme.get, call_622217.host, call_622217.base, - call_622217.route, valid.getOrDefault("path"), + let url = call_622219.url(scheme.get, call_622219.host, call_622219.base, + call_622219.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622217, url, valid) + result = atozHook(call_622219, url, valid) -proc call*(call_622218: Call_PostDisassociateTransitGatewayMulticastDomain_622201; +proc call*(call_622220: Call_PostDisassociateTransitGatewayMulticastDomain_622203; DryRun: bool = false; Action: string = "DisassociateTransitGatewayMulticastDomain"; TransitGatewayMulticastDomainId: string = ""; @@ -91069,29 +91096,29 @@ proc call*(call_622218: Call_PostDisassociateTransitGatewayMulticastDomain_62220 ## : The ID of the attachment. ## SubnetIds: JArray ## : The IDs of the subnets; - var query_622219 = newJObject() - var formData_622220 = newJObject() - add(formData_622220, "DryRun", newJBool(DryRun)) - add(query_622219, "Action", newJString(Action)) - add(formData_622220, "TransitGatewayMulticastDomainId", + var query_622221 = newJObject() + var formData_622222 = newJObject() + add(formData_622222, "DryRun", newJBool(DryRun)) + add(query_622221, "Action", newJString(Action)) + add(formData_622222, "TransitGatewayMulticastDomainId", newJString(TransitGatewayMulticastDomainId)) - add(query_622219, "Version", newJString(Version)) - add(formData_622220, "TransitGatewayAttachmentId", + add(query_622221, "Version", newJString(Version)) + add(formData_622222, "TransitGatewayAttachmentId", newJString(TransitGatewayAttachmentId)) if SubnetIds != nil: - formData_622220.add "SubnetIds", SubnetIds - result = call_622218.call(nil, query_622219, nil, formData_622220, nil) + formData_622222.add "SubnetIds", SubnetIds + result = call_622220.call(nil, query_622221, nil, formData_622222, nil) -var postDisassociateTransitGatewayMulticastDomain* = Call_PostDisassociateTransitGatewayMulticastDomain_622201( +var postDisassociateTransitGatewayMulticastDomain* = Call_PostDisassociateTransitGatewayMulticastDomain_622203( name: "postDisassociateTransitGatewayMulticastDomain", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DisassociateTransitGatewayMulticastDomain", - validator: validate_PostDisassociateTransitGatewayMulticastDomain_622202, - base: "/", url: url_PostDisassociateTransitGatewayMulticastDomain_622203, + validator: validate_PostDisassociateTransitGatewayMulticastDomain_622204, + base: "/", url: url_PostDisassociateTransitGatewayMulticastDomain_622205, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDisassociateTransitGatewayMulticastDomain_622182 = ref object of OpenApiRestCall_610658 -proc url_GetDisassociateTransitGatewayMulticastDomain_622184(protocol: Scheme; + Call_GetDisassociateTransitGatewayMulticastDomain_622184 = ref object of OpenApiRestCall_610658 +proc url_GetDisassociateTransitGatewayMulticastDomain_622186(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -91101,7 +91128,7 @@ proc url_GetDisassociateTransitGatewayMulticastDomain_622184(protocol: Scheme; else: result.path = base & route -proc validate_GetDisassociateTransitGatewayMulticastDomain_622183(path: JsonNode; +proc validate_GetDisassociateTransitGatewayMulticastDomain_622185(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Disassociates the specified subnets from the transit gateway multicast domain. ## @@ -91121,35 +91148,35 @@ proc validate_GetDisassociateTransitGatewayMulticastDomain_622183(path: JsonNode ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622185 = query.getOrDefault("DryRun") - valid_622185 = validateParameter(valid_622185, JBool, required = false, default = nil) - if valid_622185 != nil: - section.add "DryRun", valid_622185 - var valid_622186 = query.getOrDefault("SubnetIds") - valid_622186 = validateParameter(valid_622186, JArray, required = false, - default = nil) - if valid_622186 != nil: - section.add "SubnetIds", valid_622186 - var valid_622187 = query.getOrDefault("TransitGatewayAttachmentId") - valid_622187 = validateParameter(valid_622187, JString, required = false, - default = nil) + var valid_622187 = query.getOrDefault("DryRun") + valid_622187 = validateParameter(valid_622187, JBool, required = false, default = nil) if valid_622187 != nil: - section.add "TransitGatewayAttachmentId", valid_622187 - var valid_622188 = query.getOrDefault("TransitGatewayMulticastDomainId") - valid_622188 = validateParameter(valid_622188, JString, required = false, + section.add "DryRun", valid_622187 + var valid_622188 = query.getOrDefault("SubnetIds") + valid_622188 = validateParameter(valid_622188, JArray, required = false, default = nil) if valid_622188 != nil: - section.add "TransitGatewayMulticastDomainId", valid_622188 - var valid_622189 = query.getOrDefault("Action") - valid_622189 = validateParameter(valid_622189, JString, required = true, default = newJString( - "DisassociateTransitGatewayMulticastDomain")) + section.add "SubnetIds", valid_622188 + var valid_622189 = query.getOrDefault("TransitGatewayAttachmentId") + valid_622189 = validateParameter(valid_622189, JString, required = false, + default = nil) if valid_622189 != nil: - section.add "Action", valid_622189 - var valid_622190 = query.getOrDefault("Version") - valid_622190 = validateParameter(valid_622190, JString, required = true, - default = newJString("2016-11-15")) + section.add "TransitGatewayAttachmentId", valid_622189 + var valid_622190 = query.getOrDefault("TransitGatewayMulticastDomainId") + valid_622190 = validateParameter(valid_622190, JString, required = false, + default = nil) if valid_622190 != nil: - section.add "Version", valid_622190 + section.add "TransitGatewayMulticastDomainId", valid_622190 + var valid_622191 = query.getOrDefault("Action") + valid_622191 = validateParameter(valid_622191, JString, required = true, default = newJString( + "DisassociateTransitGatewayMulticastDomain")) + if valid_622191 != nil: + section.add "Action", valid_622191 + var valid_622192 = query.getOrDefault("Version") + valid_622192 = validateParameter(valid_622192, JString, required = true, + default = newJString("2016-11-15")) + if valid_622192 != nil: + section.add "Version", valid_622192 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -91160,62 +91187,62 @@ proc validate_GetDisassociateTransitGatewayMulticastDomain_622183(path: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622191 = header.getOrDefault("X-Amz-Signature") - valid_622191 = validateParameter(valid_622191, JString, required = false, - default = nil) - if valid_622191 != nil: - section.add "X-Amz-Signature", valid_622191 - var valid_622192 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622192 = validateParameter(valid_622192, JString, required = false, - default = nil) - if valid_622192 != nil: - section.add "X-Amz-Content-Sha256", valid_622192 - var valid_622193 = header.getOrDefault("X-Amz-Date") + var valid_622193 = header.getOrDefault("X-Amz-Signature") valid_622193 = validateParameter(valid_622193, JString, required = false, default = nil) if valid_622193 != nil: - section.add "X-Amz-Date", valid_622193 - var valid_622194 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622193 + var valid_622194 = header.getOrDefault("X-Amz-Content-Sha256") valid_622194 = validateParameter(valid_622194, JString, required = false, default = nil) if valid_622194 != nil: - section.add "X-Amz-Credential", valid_622194 - var valid_622195 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622194 + var valid_622195 = header.getOrDefault("X-Amz-Date") valid_622195 = validateParameter(valid_622195, JString, required = false, default = nil) if valid_622195 != nil: - section.add "X-Amz-Security-Token", valid_622195 - var valid_622196 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622195 + var valid_622196 = header.getOrDefault("X-Amz-Credential") valid_622196 = validateParameter(valid_622196, JString, required = false, default = nil) if valid_622196 != nil: - section.add "X-Amz-Algorithm", valid_622196 - var valid_622197 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622196 + var valid_622197 = header.getOrDefault("X-Amz-Security-Token") valid_622197 = validateParameter(valid_622197, JString, required = false, default = nil) if valid_622197 != nil: - section.add "X-Amz-SignedHeaders", valid_622197 + section.add "X-Amz-Security-Token", valid_622197 + var valid_622198 = header.getOrDefault("X-Amz-Algorithm") + valid_622198 = validateParameter(valid_622198, JString, required = false, + default = nil) + if valid_622198 != nil: + section.add "X-Amz-Algorithm", valid_622198 + var valid_622199 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622199 = validateParameter(valid_622199, JString, required = false, + default = nil) + if valid_622199 != nil: + section.add "X-Amz-SignedHeaders", valid_622199 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622198: Call_GetDisassociateTransitGatewayMulticastDomain_622182; +proc call*(call_622200: Call_GetDisassociateTransitGatewayMulticastDomain_622184; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Disassociates the specified subnets from the transit gateway multicast domain. ## - let valid = call_622198.validator(path, query, header, formData, body) - let scheme = call_622198.pickScheme + let valid = call_622200.validator(path, query, header, formData, body) + let scheme = call_622200.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622198.url(scheme.get, call_622198.host, call_622198.base, - call_622198.route, valid.getOrDefault("path"), + let url = call_622200.url(scheme.get, call_622200.host, call_622200.base, + call_622200.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622198, url, valid) + result = atozHook(call_622200, url, valid) -proc call*(call_622199: Call_GetDisassociateTransitGatewayMulticastDomain_622182; +proc call*(call_622201: Call_GetDisassociateTransitGatewayMulticastDomain_622184; DryRun: bool = false; SubnetIds: JsonNode = nil; TransitGatewayAttachmentId: string = ""; TransitGatewayMulticastDomainId: string = ""; @@ -91233,28 +91260,28 @@ proc call*(call_622199: Call_GetDisassociateTransitGatewayMulticastDomain_622182 ## : The ID of the transit gateway multicast domain. ## Action: string (required) ## Version: string (required) - var query_622200 = newJObject() - add(query_622200, "DryRun", newJBool(DryRun)) + var query_622202 = newJObject() + add(query_622202, "DryRun", newJBool(DryRun)) if SubnetIds != nil: - query_622200.add "SubnetIds", SubnetIds - add(query_622200, "TransitGatewayAttachmentId", + query_622202.add "SubnetIds", SubnetIds + add(query_622202, "TransitGatewayAttachmentId", newJString(TransitGatewayAttachmentId)) - add(query_622200, "TransitGatewayMulticastDomainId", + add(query_622202, "TransitGatewayMulticastDomainId", newJString(TransitGatewayMulticastDomainId)) - add(query_622200, "Action", newJString(Action)) - add(query_622200, "Version", newJString(Version)) - result = call_622199.call(nil, query_622200, nil, nil, nil) + add(query_622202, "Action", newJString(Action)) + add(query_622202, "Version", newJString(Version)) + result = call_622201.call(nil, query_622202, nil, nil, nil) -var getDisassociateTransitGatewayMulticastDomain* = Call_GetDisassociateTransitGatewayMulticastDomain_622182( +var getDisassociateTransitGatewayMulticastDomain* = Call_GetDisassociateTransitGatewayMulticastDomain_622184( name: "getDisassociateTransitGatewayMulticastDomain", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DisassociateTransitGatewayMulticastDomain", - validator: validate_GetDisassociateTransitGatewayMulticastDomain_622183, - base: "/", url: url_GetDisassociateTransitGatewayMulticastDomain_622184, + validator: validate_GetDisassociateTransitGatewayMulticastDomain_622185, + base: "/", url: url_GetDisassociateTransitGatewayMulticastDomain_622186, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDisassociateTransitGatewayRouteTable_622239 = ref object of OpenApiRestCall_610658 -proc url_PostDisassociateTransitGatewayRouteTable_622241(protocol: Scheme; + Call_PostDisassociateTransitGatewayRouteTable_622241 = ref object of OpenApiRestCall_610658 +proc url_PostDisassociateTransitGatewayRouteTable_622243(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -91264,7 +91291,7 @@ proc url_PostDisassociateTransitGatewayRouteTable_622241(protocol: Scheme; else: result.path = base & route -proc validate_PostDisassociateTransitGatewayRouteTable_622240(path: JsonNode; +proc validate_PostDisassociateTransitGatewayRouteTable_622242(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Disassociates a resource attachment from a transit gateway route table. ## @@ -91276,16 +91303,16 @@ proc validate_PostDisassociateTransitGatewayRouteTable_622240(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622242 = query.getOrDefault("Action") - valid_622242 = validateParameter(valid_622242, JString, required = true, default = newJString( + var valid_622244 = query.getOrDefault("Action") + valid_622244 = validateParameter(valid_622244, JString, required = true, default = newJString( "DisassociateTransitGatewayRouteTable")) - if valid_622242 != nil: - section.add "Action", valid_622242 - var valid_622243 = query.getOrDefault("Version") - valid_622243 = validateParameter(valid_622243, JString, required = true, + if valid_622244 != nil: + section.add "Action", valid_622244 + var valid_622245 = query.getOrDefault("Version") + valid_622245 = validateParameter(valid_622245, JString, required = true, default = newJString("2016-11-15")) - if valid_622243 != nil: - section.add "Version", valid_622243 + if valid_622245 != nil: + section.add "Version", valid_622245 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -91296,41 +91323,41 @@ proc validate_PostDisassociateTransitGatewayRouteTable_622240(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622244 = header.getOrDefault("X-Amz-Signature") - valid_622244 = validateParameter(valid_622244, JString, required = false, - default = nil) - if valid_622244 != nil: - section.add "X-Amz-Signature", valid_622244 - var valid_622245 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622245 = validateParameter(valid_622245, JString, required = false, - default = nil) - if valid_622245 != nil: - section.add "X-Amz-Content-Sha256", valid_622245 - var valid_622246 = header.getOrDefault("X-Amz-Date") + var valid_622246 = header.getOrDefault("X-Amz-Signature") valid_622246 = validateParameter(valid_622246, JString, required = false, default = nil) if valid_622246 != nil: - section.add "X-Amz-Date", valid_622246 - var valid_622247 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622246 + var valid_622247 = header.getOrDefault("X-Amz-Content-Sha256") valid_622247 = validateParameter(valid_622247, JString, required = false, default = nil) if valid_622247 != nil: - section.add "X-Amz-Credential", valid_622247 - var valid_622248 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622247 + var valid_622248 = header.getOrDefault("X-Amz-Date") valid_622248 = validateParameter(valid_622248, JString, required = false, default = nil) if valid_622248 != nil: - section.add "X-Amz-Security-Token", valid_622248 - var valid_622249 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622248 + var valid_622249 = header.getOrDefault("X-Amz-Credential") valid_622249 = validateParameter(valid_622249, JString, required = false, default = nil) if valid_622249 != nil: - section.add "X-Amz-Algorithm", valid_622249 - var valid_622250 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622249 + var valid_622250 = header.getOrDefault("X-Amz-Security-Token") valid_622250 = validateParameter(valid_622250, JString, required = false, default = nil) if valid_622250 != nil: - section.add "X-Amz-SignedHeaders", valid_622250 + section.add "X-Amz-Security-Token", valid_622250 + var valid_622251 = header.getOrDefault("X-Amz-Algorithm") + valid_622251 = validateParameter(valid_622251, JString, required = false, + default = nil) + if valid_622251 != nil: + section.add "X-Amz-Algorithm", valid_622251 + var valid_622252 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622252 = validateParameter(valid_622252, JString, required = false, + default = nil) + if valid_622252 != nil: + section.add "X-Amz-SignedHeaders", valid_622252 result.add "header", section ## parameters in `formData` object: ## TransitGatewayRouteTableId: JString (required) @@ -91341,39 +91368,39 @@ proc validate_PostDisassociateTransitGatewayRouteTable_622240(path: JsonNode; ## : The ID of the attachment. section = newJObject() assert formData != nil, "formData argument is necessary due to required `TransitGatewayRouteTableId` field" - var valid_622251 = formData.getOrDefault("TransitGatewayRouteTableId") - valid_622251 = validateParameter(valid_622251, JString, required = true, - default = nil) - if valid_622251 != nil: - section.add "TransitGatewayRouteTableId", valid_622251 - var valid_622252 = formData.getOrDefault("DryRun") - valid_622252 = validateParameter(valid_622252, JBool, required = false, default = nil) - if valid_622252 != nil: - section.add "DryRun", valid_622252 - var valid_622253 = formData.getOrDefault("TransitGatewayAttachmentId") + var valid_622253 = formData.getOrDefault("TransitGatewayRouteTableId") valid_622253 = validateParameter(valid_622253, JString, required = true, default = nil) if valid_622253 != nil: - section.add "TransitGatewayAttachmentId", valid_622253 + section.add "TransitGatewayRouteTableId", valid_622253 + var valid_622254 = formData.getOrDefault("DryRun") + valid_622254 = validateParameter(valid_622254, JBool, required = false, default = nil) + if valid_622254 != nil: + section.add "DryRun", valid_622254 + var valid_622255 = formData.getOrDefault("TransitGatewayAttachmentId") + valid_622255 = validateParameter(valid_622255, JString, required = true, + default = nil) + if valid_622255 != nil: + section.add "TransitGatewayAttachmentId", valid_622255 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622254: Call_PostDisassociateTransitGatewayRouteTable_622239; +proc call*(call_622256: Call_PostDisassociateTransitGatewayRouteTable_622241; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Disassociates a resource attachment from a transit gateway route table. ## - let valid = call_622254.validator(path, query, header, formData, body) - let scheme = call_622254.pickScheme + let valid = call_622256.validator(path, query, header, formData, body) + let scheme = call_622256.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622254.url(scheme.get, call_622254.host, call_622254.base, - call_622254.route, valid.getOrDefault("path"), + let url = call_622256.url(scheme.get, call_622256.host, call_622256.base, + call_622256.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622254, url, valid) + result = atozHook(call_622256, url, valid) -proc call*(call_622255: Call_PostDisassociateTransitGatewayRouteTable_622239; +proc call*(call_622257: Call_PostDisassociateTransitGatewayRouteTable_622241; TransitGatewayRouteTableId: string; TransitGatewayAttachmentId: string; DryRun: bool = false; Action: string = "DisassociateTransitGatewayRouteTable"; @@ -91388,27 +91415,27 @@ proc call*(call_622255: Call_PostDisassociateTransitGatewayRouteTable_622239; ## Version: string (required) ## TransitGatewayAttachmentId: string (required) ## : The ID of the attachment. - var query_622256 = newJObject() - var formData_622257 = newJObject() - add(formData_622257, "TransitGatewayRouteTableId", + var query_622258 = newJObject() + var formData_622259 = newJObject() + add(formData_622259, "TransitGatewayRouteTableId", newJString(TransitGatewayRouteTableId)) - add(formData_622257, "DryRun", newJBool(DryRun)) - add(query_622256, "Action", newJString(Action)) - add(query_622256, "Version", newJString(Version)) - add(formData_622257, "TransitGatewayAttachmentId", + add(formData_622259, "DryRun", newJBool(DryRun)) + add(query_622258, "Action", newJString(Action)) + add(query_622258, "Version", newJString(Version)) + add(formData_622259, "TransitGatewayAttachmentId", newJString(TransitGatewayAttachmentId)) - result = call_622255.call(nil, query_622256, nil, formData_622257, nil) + result = call_622257.call(nil, query_622258, nil, formData_622259, nil) -var postDisassociateTransitGatewayRouteTable* = Call_PostDisassociateTransitGatewayRouteTable_622239( +var postDisassociateTransitGatewayRouteTable* = Call_PostDisassociateTransitGatewayRouteTable_622241( name: "postDisassociateTransitGatewayRouteTable", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DisassociateTransitGatewayRouteTable", - validator: validate_PostDisassociateTransitGatewayRouteTable_622240, - base: "/", url: url_PostDisassociateTransitGatewayRouteTable_622241, + validator: validate_PostDisassociateTransitGatewayRouteTable_622242, + base: "/", url: url_PostDisassociateTransitGatewayRouteTable_622243, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDisassociateTransitGatewayRouteTable_622221 = ref object of OpenApiRestCall_610658 -proc url_GetDisassociateTransitGatewayRouteTable_622223(protocol: Scheme; + Call_GetDisassociateTransitGatewayRouteTable_622223 = ref object of OpenApiRestCall_610658 +proc url_GetDisassociateTransitGatewayRouteTable_622225(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -91418,7 +91445,7 @@ proc url_GetDisassociateTransitGatewayRouteTable_622223(protocol: Scheme; else: result.path = base & route -proc validate_GetDisassociateTransitGatewayRouteTable_622222(path: JsonNode; +proc validate_GetDisassociateTransitGatewayRouteTable_622224(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Disassociates a resource attachment from a transit gateway route table. ## @@ -91436,31 +91463,31 @@ proc validate_GetDisassociateTransitGatewayRouteTable_622222(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622224 = query.getOrDefault("DryRun") - valid_622224 = validateParameter(valid_622224, JBool, required = false, default = nil) - if valid_622224 != nil: - section.add "DryRun", valid_622224 + var valid_622226 = query.getOrDefault("DryRun") + valid_622226 = validateParameter(valid_622226, JBool, required = false, default = nil) + if valid_622226 != nil: + section.add "DryRun", valid_622226 assert query != nil, "query argument is necessary due to required `TransitGatewayRouteTableId` field" - var valid_622225 = query.getOrDefault("TransitGatewayRouteTableId") - valid_622225 = validateParameter(valid_622225, JString, required = true, - default = nil) - if valid_622225 != nil: - section.add "TransitGatewayRouteTableId", valid_622225 - var valid_622226 = query.getOrDefault("TransitGatewayAttachmentId") - valid_622226 = validateParameter(valid_622226, JString, required = true, + var valid_622227 = query.getOrDefault("TransitGatewayRouteTableId") + valid_622227 = validateParameter(valid_622227, JString, required = true, default = nil) - if valid_622226 != nil: - section.add "TransitGatewayAttachmentId", valid_622226 - var valid_622227 = query.getOrDefault("Action") - valid_622227 = validateParameter(valid_622227, JString, required = true, default = newJString( - "DisassociateTransitGatewayRouteTable")) if valid_622227 != nil: - section.add "Action", valid_622227 - var valid_622228 = query.getOrDefault("Version") + section.add "TransitGatewayRouteTableId", valid_622227 + var valid_622228 = query.getOrDefault("TransitGatewayAttachmentId") valid_622228 = validateParameter(valid_622228, JString, required = true, - default = newJString("2016-11-15")) + default = nil) if valid_622228 != nil: - section.add "Version", valid_622228 + section.add "TransitGatewayAttachmentId", valid_622228 + var valid_622229 = query.getOrDefault("Action") + valid_622229 = validateParameter(valid_622229, JString, required = true, default = newJString( + "DisassociateTransitGatewayRouteTable")) + if valid_622229 != nil: + section.add "Action", valid_622229 + var valid_622230 = query.getOrDefault("Version") + valid_622230 = validateParameter(valid_622230, JString, required = true, + default = newJString("2016-11-15")) + if valid_622230 != nil: + section.add "Version", valid_622230 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -91471,62 +91498,62 @@ proc validate_GetDisassociateTransitGatewayRouteTable_622222(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622229 = header.getOrDefault("X-Amz-Signature") - valid_622229 = validateParameter(valid_622229, JString, required = false, - default = nil) - if valid_622229 != nil: - section.add "X-Amz-Signature", valid_622229 - var valid_622230 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622230 = validateParameter(valid_622230, JString, required = false, - default = nil) - if valid_622230 != nil: - section.add "X-Amz-Content-Sha256", valid_622230 - var valid_622231 = header.getOrDefault("X-Amz-Date") + var valid_622231 = header.getOrDefault("X-Amz-Signature") valid_622231 = validateParameter(valid_622231, JString, required = false, default = nil) if valid_622231 != nil: - section.add "X-Amz-Date", valid_622231 - var valid_622232 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622231 + var valid_622232 = header.getOrDefault("X-Amz-Content-Sha256") valid_622232 = validateParameter(valid_622232, JString, required = false, default = nil) if valid_622232 != nil: - section.add "X-Amz-Credential", valid_622232 - var valid_622233 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622232 + var valid_622233 = header.getOrDefault("X-Amz-Date") valid_622233 = validateParameter(valid_622233, JString, required = false, default = nil) if valid_622233 != nil: - section.add "X-Amz-Security-Token", valid_622233 - var valid_622234 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622233 + var valid_622234 = header.getOrDefault("X-Amz-Credential") valid_622234 = validateParameter(valid_622234, JString, required = false, default = nil) if valid_622234 != nil: - section.add "X-Amz-Algorithm", valid_622234 - var valid_622235 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622234 + var valid_622235 = header.getOrDefault("X-Amz-Security-Token") valid_622235 = validateParameter(valid_622235, JString, required = false, default = nil) if valid_622235 != nil: - section.add "X-Amz-SignedHeaders", valid_622235 + section.add "X-Amz-Security-Token", valid_622235 + var valid_622236 = header.getOrDefault("X-Amz-Algorithm") + valid_622236 = validateParameter(valid_622236, JString, required = false, + default = nil) + if valid_622236 != nil: + section.add "X-Amz-Algorithm", valid_622236 + var valid_622237 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622237 = validateParameter(valid_622237, JString, required = false, + default = nil) + if valid_622237 != nil: + section.add "X-Amz-SignedHeaders", valid_622237 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622236: Call_GetDisassociateTransitGatewayRouteTable_622221; +proc call*(call_622238: Call_GetDisassociateTransitGatewayRouteTable_622223; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Disassociates a resource attachment from a transit gateway route table. ## - let valid = call_622236.validator(path, query, header, formData, body) - let scheme = call_622236.pickScheme + let valid = call_622238.validator(path, query, header, formData, body) + let scheme = call_622238.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622236.url(scheme.get, call_622236.host, call_622236.base, - call_622236.route, valid.getOrDefault("path"), + let url = call_622238.url(scheme.get, call_622238.host, call_622238.base, + call_622238.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622236, url, valid) + result = atozHook(call_622238, url, valid) -proc call*(call_622237: Call_GetDisassociateTransitGatewayRouteTable_622221; +proc call*(call_622239: Call_GetDisassociateTransitGatewayRouteTable_622223; TransitGatewayRouteTableId: string; TransitGatewayAttachmentId: string; DryRun: bool = false; Action: string = "DisassociateTransitGatewayRouteTable"; @@ -91541,26 +91568,26 @@ proc call*(call_622237: Call_GetDisassociateTransitGatewayRouteTable_622221; ## : The ID of the attachment. ## Action: string (required) ## Version: string (required) - var query_622238 = newJObject() - add(query_622238, "DryRun", newJBool(DryRun)) - add(query_622238, "TransitGatewayRouteTableId", + var query_622240 = newJObject() + add(query_622240, "DryRun", newJBool(DryRun)) + add(query_622240, "TransitGatewayRouteTableId", newJString(TransitGatewayRouteTableId)) - add(query_622238, "TransitGatewayAttachmentId", + add(query_622240, "TransitGatewayAttachmentId", newJString(TransitGatewayAttachmentId)) - add(query_622238, "Action", newJString(Action)) - add(query_622238, "Version", newJString(Version)) - result = call_622237.call(nil, query_622238, nil, nil, nil) + add(query_622240, "Action", newJString(Action)) + add(query_622240, "Version", newJString(Version)) + result = call_622239.call(nil, query_622240, nil, nil, nil) -var getDisassociateTransitGatewayRouteTable* = Call_GetDisassociateTransitGatewayRouteTable_622221( +var getDisassociateTransitGatewayRouteTable* = Call_GetDisassociateTransitGatewayRouteTable_622223( name: "getDisassociateTransitGatewayRouteTable", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DisassociateTransitGatewayRouteTable", - validator: validate_GetDisassociateTransitGatewayRouteTable_622222, base: "/", - url: url_GetDisassociateTransitGatewayRouteTable_622223, + validator: validate_GetDisassociateTransitGatewayRouteTable_622224, base: "/", + url: url_GetDisassociateTransitGatewayRouteTable_622225, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostDisassociateVpcCidrBlock_622274 = ref object of OpenApiRestCall_610658 -proc url_PostDisassociateVpcCidrBlock_622276(protocol: Scheme; host: string; + Call_PostDisassociateVpcCidrBlock_622276 = ref object of OpenApiRestCall_610658 +proc url_PostDisassociateVpcCidrBlock_622278(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -91570,7 +91597,7 @@ proc url_PostDisassociateVpcCidrBlock_622276(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostDisassociateVpcCidrBlock_622275(path: JsonNode; query: JsonNode; +proc validate_PostDisassociateVpcCidrBlock_622277(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Disassociates a CIDR block from a VPC. To disassociate the CIDR block, you must specify its association ID. You can get the association ID by using DescribeVpcs. You must detach or delete all gateways and resources that are associated with the CIDR block before you can disassociate it.

    You cannot disassociate the CIDR block with which you originally created the VPC (the primary CIDR block).

    ## @@ -91582,16 +91609,16 @@ proc validate_PostDisassociateVpcCidrBlock_622275(path: JsonNode; query: JsonNod ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622277 = query.getOrDefault("Action") - valid_622277 = validateParameter(valid_622277, JString, required = true, default = newJString( + var valid_622279 = query.getOrDefault("Action") + valid_622279 = validateParameter(valid_622279, JString, required = true, default = newJString( "DisassociateVpcCidrBlock")) - if valid_622277 != nil: - section.add "Action", valid_622277 - var valid_622278 = query.getOrDefault("Version") - valid_622278 = validateParameter(valid_622278, JString, required = true, + if valid_622279 != nil: + section.add "Action", valid_622279 + var valid_622280 = query.getOrDefault("Version") + valid_622280 = validateParameter(valid_622280, JString, required = true, default = newJString("2016-11-15")) - if valid_622278 != nil: - section.add "Version", valid_622278 + if valid_622280 != nil: + section.add "Version", valid_622280 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -91602,41 +91629,41 @@ proc validate_PostDisassociateVpcCidrBlock_622275(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622279 = header.getOrDefault("X-Amz-Signature") - valid_622279 = validateParameter(valid_622279, JString, required = false, - default = nil) - if valid_622279 != nil: - section.add "X-Amz-Signature", valid_622279 - var valid_622280 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622280 = validateParameter(valid_622280, JString, required = false, - default = nil) - if valid_622280 != nil: - section.add "X-Amz-Content-Sha256", valid_622280 - var valid_622281 = header.getOrDefault("X-Amz-Date") + var valid_622281 = header.getOrDefault("X-Amz-Signature") valid_622281 = validateParameter(valid_622281, JString, required = false, default = nil) if valid_622281 != nil: - section.add "X-Amz-Date", valid_622281 - var valid_622282 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622281 + var valid_622282 = header.getOrDefault("X-Amz-Content-Sha256") valid_622282 = validateParameter(valid_622282, JString, required = false, default = nil) if valid_622282 != nil: - section.add "X-Amz-Credential", valid_622282 - var valid_622283 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622282 + var valid_622283 = header.getOrDefault("X-Amz-Date") valid_622283 = validateParameter(valid_622283, JString, required = false, default = nil) if valid_622283 != nil: - section.add "X-Amz-Security-Token", valid_622283 - var valid_622284 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622283 + var valid_622284 = header.getOrDefault("X-Amz-Credential") valid_622284 = validateParameter(valid_622284, JString, required = false, default = nil) if valid_622284 != nil: - section.add "X-Amz-Algorithm", valid_622284 - var valid_622285 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622284 + var valid_622285 = header.getOrDefault("X-Amz-Security-Token") valid_622285 = validateParameter(valid_622285, JString, required = false, default = nil) if valid_622285 != nil: - section.add "X-Amz-SignedHeaders", valid_622285 + section.add "X-Amz-Security-Token", valid_622285 + var valid_622286 = header.getOrDefault("X-Amz-Algorithm") + valid_622286 = validateParameter(valid_622286, JString, required = false, + default = nil) + if valid_622286 != nil: + section.add "X-Amz-Algorithm", valid_622286 + var valid_622287 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622287 = validateParameter(valid_622287, JString, required = false, + default = nil) + if valid_622287 != nil: + section.add "X-Amz-SignedHeaders", valid_622287 result.add "header", section ## parameters in `formData` object: ## AssociationId: JString (required) @@ -91644,29 +91671,29 @@ proc validate_PostDisassociateVpcCidrBlock_622275(path: JsonNode; query: JsonNod section = newJObject() assert formData != nil, "formData argument is necessary due to required `AssociationId` field" - var valid_622286 = formData.getOrDefault("AssociationId") - valid_622286 = validateParameter(valid_622286, JString, required = true, + var valid_622288 = formData.getOrDefault("AssociationId") + valid_622288 = validateParameter(valid_622288, JString, required = true, default = nil) - if valid_622286 != nil: - section.add "AssociationId", valid_622286 + if valid_622288 != nil: + section.add "AssociationId", valid_622288 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622287: Call_PostDisassociateVpcCidrBlock_622274; path: JsonNode; +proc call*(call_622289: Call_PostDisassociateVpcCidrBlock_622276; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Disassociates a CIDR block from a VPC. To disassociate the CIDR block, you must specify its association ID. You can get the association ID by using DescribeVpcs. You must detach or delete all gateways and resources that are associated with the CIDR block before you can disassociate it.

    You cannot disassociate the CIDR block with which you originally created the VPC (the primary CIDR block).

    ## - let valid = call_622287.validator(path, query, header, formData, body) - let scheme = call_622287.pickScheme + let valid = call_622289.validator(path, query, header, formData, body) + let scheme = call_622289.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622287.url(scheme.get, call_622287.host, call_622287.base, - call_622287.route, valid.getOrDefault("path"), + let url = call_622289.url(scheme.get, call_622289.host, call_622289.base, + call_622289.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622287, url, valid) + result = atozHook(call_622289, url, valid) -proc call*(call_622288: Call_PostDisassociateVpcCidrBlock_622274; +proc call*(call_622290: Call_PostDisassociateVpcCidrBlock_622276; AssociationId: string; Action: string = "DisassociateVpcCidrBlock"; Version: string = "2016-11-15"): Recallable = ## postDisassociateVpcCidrBlock @@ -91675,22 +91702,22 @@ proc call*(call_622288: Call_PostDisassociateVpcCidrBlock_622274; ## Version: string (required) ## AssociationId: string (required) ## : The association ID for the CIDR block. - var query_622289 = newJObject() - var formData_622290 = newJObject() - add(query_622289, "Action", newJString(Action)) - add(query_622289, "Version", newJString(Version)) - add(formData_622290, "AssociationId", newJString(AssociationId)) - result = call_622288.call(nil, query_622289, nil, formData_622290, nil) - -var postDisassociateVpcCidrBlock* = Call_PostDisassociateVpcCidrBlock_622274( + var query_622291 = newJObject() + var formData_622292 = newJObject() + add(query_622291, "Action", newJString(Action)) + add(query_622291, "Version", newJString(Version)) + add(formData_622292, "AssociationId", newJString(AssociationId)) + result = call_622290.call(nil, query_622291, nil, formData_622292, nil) + +var postDisassociateVpcCidrBlock* = Call_PostDisassociateVpcCidrBlock_622276( name: "postDisassociateVpcCidrBlock", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=DisassociateVpcCidrBlock", - validator: validate_PostDisassociateVpcCidrBlock_622275, base: "/", - url: url_PostDisassociateVpcCidrBlock_622276, + validator: validate_PostDisassociateVpcCidrBlock_622277, base: "/", + url: url_PostDisassociateVpcCidrBlock_622278, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetDisassociateVpcCidrBlock_622258 = ref object of OpenApiRestCall_610658 -proc url_GetDisassociateVpcCidrBlock_622260(protocol: Scheme; host: string; + Call_GetDisassociateVpcCidrBlock_622260 = ref object of OpenApiRestCall_610658 +proc url_GetDisassociateVpcCidrBlock_622262(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -91700,7 +91727,7 @@ proc url_GetDisassociateVpcCidrBlock_622260(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetDisassociateVpcCidrBlock_622259(path: JsonNode; query: JsonNode; +proc validate_GetDisassociateVpcCidrBlock_622261(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Disassociates a CIDR block from a VPC. To disassociate the CIDR block, you must specify its association ID. You can get the association ID by using DescribeVpcs. You must detach or delete all gateways and resources that are associated with the CIDR block before you can disassociate it.

    You cannot disassociate the CIDR block with which you originally created the VPC (the primary CIDR block).

    ## @@ -91716,21 +91743,21 @@ proc validate_GetDisassociateVpcCidrBlock_622259(path: JsonNode; query: JsonNode section = newJObject() assert query != nil, "query argument is necessary due to required `AssociationId` field" - var valid_622261 = query.getOrDefault("AssociationId") - valid_622261 = validateParameter(valid_622261, JString, required = true, + var valid_622263 = query.getOrDefault("AssociationId") + valid_622263 = validateParameter(valid_622263, JString, required = true, default = nil) - if valid_622261 != nil: - section.add "AssociationId", valid_622261 - var valid_622262 = query.getOrDefault("Action") - valid_622262 = validateParameter(valid_622262, JString, required = true, default = newJString( + if valid_622263 != nil: + section.add "AssociationId", valid_622263 + var valid_622264 = query.getOrDefault("Action") + valid_622264 = validateParameter(valid_622264, JString, required = true, default = newJString( "DisassociateVpcCidrBlock")) - if valid_622262 != nil: - section.add "Action", valid_622262 - var valid_622263 = query.getOrDefault("Version") - valid_622263 = validateParameter(valid_622263, JString, required = true, + if valid_622264 != nil: + section.add "Action", valid_622264 + var valid_622265 = query.getOrDefault("Version") + valid_622265 = validateParameter(valid_622265, JString, required = true, default = newJString("2016-11-15")) - if valid_622263 != nil: - section.add "Version", valid_622263 + if valid_622265 != nil: + section.add "Version", valid_622265 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -91741,61 +91768,61 @@ proc validate_GetDisassociateVpcCidrBlock_622259(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622264 = header.getOrDefault("X-Amz-Signature") - valid_622264 = validateParameter(valid_622264, JString, required = false, - default = nil) - if valid_622264 != nil: - section.add "X-Amz-Signature", valid_622264 - var valid_622265 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622265 = validateParameter(valid_622265, JString, required = false, - default = nil) - if valid_622265 != nil: - section.add "X-Amz-Content-Sha256", valid_622265 - var valid_622266 = header.getOrDefault("X-Amz-Date") + var valid_622266 = header.getOrDefault("X-Amz-Signature") valid_622266 = validateParameter(valid_622266, JString, required = false, default = nil) if valid_622266 != nil: - section.add "X-Amz-Date", valid_622266 - var valid_622267 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622266 + var valid_622267 = header.getOrDefault("X-Amz-Content-Sha256") valid_622267 = validateParameter(valid_622267, JString, required = false, default = nil) if valid_622267 != nil: - section.add "X-Amz-Credential", valid_622267 - var valid_622268 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622267 + var valid_622268 = header.getOrDefault("X-Amz-Date") valid_622268 = validateParameter(valid_622268, JString, required = false, default = nil) if valid_622268 != nil: - section.add "X-Amz-Security-Token", valid_622268 - var valid_622269 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622268 + var valid_622269 = header.getOrDefault("X-Amz-Credential") valid_622269 = validateParameter(valid_622269, JString, required = false, default = nil) if valid_622269 != nil: - section.add "X-Amz-Algorithm", valid_622269 - var valid_622270 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622269 + var valid_622270 = header.getOrDefault("X-Amz-Security-Token") valid_622270 = validateParameter(valid_622270, JString, required = false, default = nil) if valid_622270 != nil: - section.add "X-Amz-SignedHeaders", valid_622270 + section.add "X-Amz-Security-Token", valid_622270 + var valid_622271 = header.getOrDefault("X-Amz-Algorithm") + valid_622271 = validateParameter(valid_622271, JString, required = false, + default = nil) + if valid_622271 != nil: + section.add "X-Amz-Algorithm", valid_622271 + var valid_622272 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622272 = validateParameter(valid_622272, JString, required = false, + default = nil) + if valid_622272 != nil: + section.add "X-Amz-SignedHeaders", valid_622272 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622271: Call_GetDisassociateVpcCidrBlock_622258; path: JsonNode; +proc call*(call_622273: Call_GetDisassociateVpcCidrBlock_622260; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Disassociates a CIDR block from a VPC. To disassociate the CIDR block, you must specify its association ID. You can get the association ID by using DescribeVpcs. You must detach or delete all gateways and resources that are associated with the CIDR block before you can disassociate it.

    You cannot disassociate the CIDR block with which you originally created the VPC (the primary CIDR block).

    ## - let valid = call_622271.validator(path, query, header, formData, body) - let scheme = call_622271.pickScheme + let valid = call_622273.validator(path, query, header, formData, body) + let scheme = call_622273.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622271.url(scheme.get, call_622271.host, call_622271.base, - call_622271.route, valid.getOrDefault("path"), + let url = call_622273.url(scheme.get, call_622273.host, call_622273.base, + call_622273.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622271, url, valid) + result = atozHook(call_622273, url, valid) -proc call*(call_622272: Call_GetDisassociateVpcCidrBlock_622258; +proc call*(call_622274: Call_GetDisassociateVpcCidrBlock_622260; AssociationId: string; Action: string = "DisassociateVpcCidrBlock"; Version: string = "2016-11-15"): Recallable = ## getDisassociateVpcCidrBlock @@ -91804,21 +91831,21 @@ proc call*(call_622272: Call_GetDisassociateVpcCidrBlock_622258; ## : The association ID for the CIDR block. ## Action: string (required) ## Version: string (required) - var query_622273 = newJObject() - add(query_622273, "AssociationId", newJString(AssociationId)) - add(query_622273, "Action", newJString(Action)) - add(query_622273, "Version", newJString(Version)) - result = call_622272.call(nil, query_622273, nil, nil, nil) + var query_622275 = newJObject() + add(query_622275, "AssociationId", newJString(AssociationId)) + add(query_622275, "Action", newJString(Action)) + add(query_622275, "Version", newJString(Version)) + result = call_622274.call(nil, query_622275, nil, nil, nil) -var getDisassociateVpcCidrBlock* = Call_GetDisassociateVpcCidrBlock_622258( +var getDisassociateVpcCidrBlock* = Call_GetDisassociateVpcCidrBlock_622260( name: "getDisassociateVpcCidrBlock", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=DisassociateVpcCidrBlock", - validator: validate_GetDisassociateVpcCidrBlock_622259, base: "/", - url: url_GetDisassociateVpcCidrBlock_622260, + validator: validate_GetDisassociateVpcCidrBlock_622261, base: "/", + url: url_GetDisassociateVpcCidrBlock_622262, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostEnableEbsEncryptionByDefault_622307 = ref object of OpenApiRestCall_610658 -proc url_PostEnableEbsEncryptionByDefault_622309(protocol: Scheme; host: string; + Call_PostEnableEbsEncryptionByDefault_622309 = ref object of OpenApiRestCall_610658 +proc url_PostEnableEbsEncryptionByDefault_622311(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -91828,7 +91855,7 @@ proc url_PostEnableEbsEncryptionByDefault_622309(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostEnableEbsEncryptionByDefault_622308(path: JsonNode; +proc validate_PostEnableEbsEncryptionByDefault_622310(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Enables EBS encryption by default for your account in the current Region.

    After you enable encryption by default, the EBS volumes that you create are are always encrypted, either using the default CMK or the CMK that you specified when you created each volume. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

    You can specify the default CMK for encryption by default using ModifyEbsDefaultKmsKeyId or ResetEbsDefaultKmsKeyId.

    Enabling encryption by default has no effect on the encryption status of your existing volumes.

    After you enable encryption by default, you can no longer launch instances using instance types that do not support encryption. For more information, see Supported Instance Types.

    ## @@ -91840,16 +91867,16 @@ proc validate_PostEnableEbsEncryptionByDefault_622308(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622310 = query.getOrDefault("Action") - valid_622310 = validateParameter(valid_622310, JString, required = true, default = newJString( + var valid_622312 = query.getOrDefault("Action") + valid_622312 = validateParameter(valid_622312, JString, required = true, default = newJString( "EnableEbsEncryptionByDefault")) - if valid_622310 != nil: - section.add "Action", valid_622310 - var valid_622311 = query.getOrDefault("Version") - valid_622311 = validateParameter(valid_622311, JString, required = true, + if valid_622312 != nil: + section.add "Action", valid_622312 + var valid_622313 = query.getOrDefault("Version") + valid_622313 = validateParameter(valid_622313, JString, required = true, default = newJString("2016-11-15")) - if valid_622311 != nil: - section.add "Version", valid_622311 + if valid_622313 != nil: + section.add "Version", valid_622313 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -91860,69 +91887,69 @@ proc validate_PostEnableEbsEncryptionByDefault_622308(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622312 = header.getOrDefault("X-Amz-Signature") - valid_622312 = validateParameter(valid_622312, JString, required = false, - default = nil) - if valid_622312 != nil: - section.add "X-Amz-Signature", valid_622312 - var valid_622313 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622313 = validateParameter(valid_622313, JString, required = false, - default = nil) - if valid_622313 != nil: - section.add "X-Amz-Content-Sha256", valid_622313 - var valid_622314 = header.getOrDefault("X-Amz-Date") + var valid_622314 = header.getOrDefault("X-Amz-Signature") valid_622314 = validateParameter(valid_622314, JString, required = false, default = nil) if valid_622314 != nil: - section.add "X-Amz-Date", valid_622314 - var valid_622315 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622314 + var valid_622315 = header.getOrDefault("X-Amz-Content-Sha256") valid_622315 = validateParameter(valid_622315, JString, required = false, default = nil) if valid_622315 != nil: - section.add "X-Amz-Credential", valid_622315 - var valid_622316 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622315 + var valid_622316 = header.getOrDefault("X-Amz-Date") valid_622316 = validateParameter(valid_622316, JString, required = false, default = nil) if valid_622316 != nil: - section.add "X-Amz-Security-Token", valid_622316 - var valid_622317 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622316 + var valid_622317 = header.getOrDefault("X-Amz-Credential") valid_622317 = validateParameter(valid_622317, JString, required = false, default = nil) if valid_622317 != nil: - section.add "X-Amz-Algorithm", valid_622317 - var valid_622318 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622317 + var valid_622318 = header.getOrDefault("X-Amz-Security-Token") valid_622318 = validateParameter(valid_622318, JString, required = false, default = nil) if valid_622318 != nil: - section.add "X-Amz-SignedHeaders", valid_622318 + section.add "X-Amz-Security-Token", valid_622318 + var valid_622319 = header.getOrDefault("X-Amz-Algorithm") + valid_622319 = validateParameter(valid_622319, JString, required = false, + default = nil) + if valid_622319 != nil: + section.add "X-Amz-Algorithm", valid_622319 + var valid_622320 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622320 = validateParameter(valid_622320, JString, required = false, + default = nil) + if valid_622320 != nil: + section.add "X-Amz-SignedHeaders", valid_622320 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool ## : 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. section = newJObject() - var valid_622319 = formData.getOrDefault("DryRun") - valid_622319 = validateParameter(valid_622319, JBool, required = false, default = nil) - if valid_622319 != nil: - section.add "DryRun", valid_622319 + var valid_622321 = formData.getOrDefault("DryRun") + valid_622321 = validateParameter(valid_622321, JBool, required = false, default = nil) + if valid_622321 != nil: + section.add "DryRun", valid_622321 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622320: Call_PostEnableEbsEncryptionByDefault_622307; +proc call*(call_622322: Call_PostEnableEbsEncryptionByDefault_622309; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Enables EBS encryption by default for your account in the current Region.

    After you enable encryption by default, the EBS volumes that you create are are always encrypted, either using the default CMK or the CMK that you specified when you created each volume. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

    You can specify the default CMK for encryption by default using ModifyEbsDefaultKmsKeyId or ResetEbsDefaultKmsKeyId.

    Enabling encryption by default has no effect on the encryption status of your existing volumes.

    After you enable encryption by default, you can no longer launch instances using instance types that do not support encryption. For more information, see Supported Instance Types.

    ## - let valid = call_622320.validator(path, query, header, formData, body) - let scheme = call_622320.pickScheme + let valid = call_622322.validator(path, query, header, formData, body) + let scheme = call_622322.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622320.url(scheme.get, call_622320.host, call_622320.base, - call_622320.route, valid.getOrDefault("path"), + let url = call_622322.url(scheme.get, call_622322.host, call_622322.base, + call_622322.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622320, url, valid) + result = atozHook(call_622322, url, valid) -proc call*(call_622321: Call_PostEnableEbsEncryptionByDefault_622307; +proc call*(call_622323: Call_PostEnableEbsEncryptionByDefault_622309; DryRun: bool = false; Action: string = "EnableEbsEncryptionByDefault"; Version: string = "2016-11-15"): Recallable = ## postEnableEbsEncryptionByDefault @@ -91931,22 +91958,22 @@ proc call*(call_622321: Call_PostEnableEbsEncryptionByDefault_622307; ## : 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. ## Action: string (required) ## Version: string (required) - var query_622322 = newJObject() - var formData_622323 = newJObject() - add(formData_622323, "DryRun", newJBool(DryRun)) - add(query_622322, "Action", newJString(Action)) - add(query_622322, "Version", newJString(Version)) - result = call_622321.call(nil, query_622322, nil, formData_622323, nil) + var query_622324 = newJObject() + var formData_622325 = newJObject() + add(formData_622325, "DryRun", newJBool(DryRun)) + add(query_622324, "Action", newJString(Action)) + add(query_622324, "Version", newJString(Version)) + result = call_622323.call(nil, query_622324, nil, formData_622325, nil) -var postEnableEbsEncryptionByDefault* = Call_PostEnableEbsEncryptionByDefault_622307( +var postEnableEbsEncryptionByDefault* = Call_PostEnableEbsEncryptionByDefault_622309( name: "postEnableEbsEncryptionByDefault", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=EnableEbsEncryptionByDefault", - validator: validate_PostEnableEbsEncryptionByDefault_622308, base: "/", - url: url_PostEnableEbsEncryptionByDefault_622309, + validator: validate_PostEnableEbsEncryptionByDefault_622310, base: "/", + url: url_PostEnableEbsEncryptionByDefault_622311, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetEnableEbsEncryptionByDefault_622291 = ref object of OpenApiRestCall_610658 -proc url_GetEnableEbsEncryptionByDefault_622293(protocol: Scheme; host: string; + Call_GetEnableEbsEncryptionByDefault_622293 = ref object of OpenApiRestCall_610658 +proc url_GetEnableEbsEncryptionByDefault_622295(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -91956,7 +91983,7 @@ proc url_GetEnableEbsEncryptionByDefault_622293(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetEnableEbsEncryptionByDefault_622292(path: JsonNode; +proc validate_GetEnableEbsEncryptionByDefault_622294(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Enables EBS encryption by default for your account in the current Region.

    After you enable encryption by default, the EBS volumes that you create are are always encrypted, either using the default CMK or the CMK that you specified when you created each volume. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

    You can specify the default CMK for encryption by default using ModifyEbsDefaultKmsKeyId or ResetEbsDefaultKmsKeyId.

    Enabling encryption by default has no effect on the encryption status of your existing volumes.

    After you enable encryption by default, you can no longer launch instances using instance types that do not support encryption. For more information, see Supported Instance Types.

    ## @@ -91970,20 +91997,20 @@ proc validate_GetEnableEbsEncryptionByDefault_622292(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622294 = query.getOrDefault("DryRun") - valid_622294 = validateParameter(valid_622294, JBool, required = false, default = nil) - if valid_622294 != nil: - section.add "DryRun", valid_622294 - var valid_622295 = query.getOrDefault("Action") - valid_622295 = validateParameter(valid_622295, JString, required = true, default = newJString( + var valid_622296 = query.getOrDefault("DryRun") + valid_622296 = validateParameter(valid_622296, JBool, required = false, default = nil) + if valid_622296 != nil: + section.add "DryRun", valid_622296 + var valid_622297 = query.getOrDefault("Action") + valid_622297 = validateParameter(valid_622297, JString, required = true, default = newJString( "EnableEbsEncryptionByDefault")) - if valid_622295 != nil: - section.add "Action", valid_622295 - var valid_622296 = query.getOrDefault("Version") - valid_622296 = validateParameter(valid_622296, JString, required = true, + if valid_622297 != nil: + section.add "Action", valid_622297 + var valid_622298 = query.getOrDefault("Version") + valid_622298 = validateParameter(valid_622298, JString, required = true, default = newJString("2016-11-15")) - if valid_622296 != nil: - section.add "Version", valid_622296 + if valid_622298 != nil: + section.add "Version", valid_622298 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -91994,62 +92021,62 @@ proc validate_GetEnableEbsEncryptionByDefault_622292(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622297 = header.getOrDefault("X-Amz-Signature") - valid_622297 = validateParameter(valid_622297, JString, required = false, - default = nil) - if valid_622297 != nil: - section.add "X-Amz-Signature", valid_622297 - var valid_622298 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622298 = validateParameter(valid_622298, JString, required = false, - default = nil) - if valid_622298 != nil: - section.add "X-Amz-Content-Sha256", valid_622298 - var valid_622299 = header.getOrDefault("X-Amz-Date") + var valid_622299 = header.getOrDefault("X-Amz-Signature") valid_622299 = validateParameter(valid_622299, JString, required = false, default = nil) if valid_622299 != nil: - section.add "X-Amz-Date", valid_622299 - var valid_622300 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622299 + var valid_622300 = header.getOrDefault("X-Amz-Content-Sha256") valid_622300 = validateParameter(valid_622300, JString, required = false, default = nil) if valid_622300 != nil: - section.add "X-Amz-Credential", valid_622300 - var valid_622301 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622300 + var valid_622301 = header.getOrDefault("X-Amz-Date") valid_622301 = validateParameter(valid_622301, JString, required = false, default = nil) if valid_622301 != nil: - section.add "X-Amz-Security-Token", valid_622301 - var valid_622302 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622301 + var valid_622302 = header.getOrDefault("X-Amz-Credential") valid_622302 = validateParameter(valid_622302, JString, required = false, default = nil) if valid_622302 != nil: - section.add "X-Amz-Algorithm", valid_622302 - var valid_622303 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622302 + var valid_622303 = header.getOrDefault("X-Amz-Security-Token") valid_622303 = validateParameter(valid_622303, JString, required = false, default = nil) if valid_622303 != nil: - section.add "X-Amz-SignedHeaders", valid_622303 + section.add "X-Amz-Security-Token", valid_622303 + var valid_622304 = header.getOrDefault("X-Amz-Algorithm") + valid_622304 = validateParameter(valid_622304, JString, required = false, + default = nil) + if valid_622304 != nil: + section.add "X-Amz-Algorithm", valid_622304 + var valid_622305 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622305 = validateParameter(valid_622305, JString, required = false, + default = nil) + if valid_622305 != nil: + section.add "X-Amz-SignedHeaders", valid_622305 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622304: Call_GetEnableEbsEncryptionByDefault_622291; +proc call*(call_622306: Call_GetEnableEbsEncryptionByDefault_622293; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Enables EBS encryption by default for your account in the current Region.

    After you enable encryption by default, the EBS volumes that you create are are always encrypted, either using the default CMK or the CMK that you specified when you created each volume. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

    You can specify the default CMK for encryption by default using ModifyEbsDefaultKmsKeyId or ResetEbsDefaultKmsKeyId.

    Enabling encryption by default has no effect on the encryption status of your existing volumes.

    After you enable encryption by default, you can no longer launch instances using instance types that do not support encryption. For more information, see Supported Instance Types.

    ## - let valid = call_622304.validator(path, query, header, formData, body) - let scheme = call_622304.pickScheme + let valid = call_622306.validator(path, query, header, formData, body) + let scheme = call_622306.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622304.url(scheme.get, call_622304.host, call_622304.base, - call_622304.route, valid.getOrDefault("path"), + let url = call_622306.url(scheme.get, call_622306.host, call_622306.base, + call_622306.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622304, url, valid) + result = atozHook(call_622306, url, valid) -proc call*(call_622305: Call_GetEnableEbsEncryptionByDefault_622291; +proc call*(call_622307: Call_GetEnableEbsEncryptionByDefault_622293; DryRun: bool = false; Action: string = "EnableEbsEncryptionByDefault"; Version: string = "2016-11-15"): Recallable = ## getEnableEbsEncryptionByDefault @@ -92058,21 +92085,21 @@ proc call*(call_622305: Call_GetEnableEbsEncryptionByDefault_622291; ## : 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. ## Action: string (required) ## Version: string (required) - var query_622306 = newJObject() - add(query_622306, "DryRun", newJBool(DryRun)) - add(query_622306, "Action", newJString(Action)) - add(query_622306, "Version", newJString(Version)) - result = call_622305.call(nil, query_622306, nil, nil, nil) + var query_622308 = newJObject() + add(query_622308, "DryRun", newJBool(DryRun)) + add(query_622308, "Action", newJString(Action)) + add(query_622308, "Version", newJString(Version)) + result = call_622307.call(nil, query_622308, nil, nil, nil) -var getEnableEbsEncryptionByDefault* = Call_GetEnableEbsEncryptionByDefault_622291( +var getEnableEbsEncryptionByDefault* = Call_GetEnableEbsEncryptionByDefault_622293( name: "getEnableEbsEncryptionByDefault", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=EnableEbsEncryptionByDefault", - validator: validate_GetEnableEbsEncryptionByDefault_622292, base: "/", - url: url_GetEnableEbsEncryptionByDefault_622293, + validator: validate_GetEnableEbsEncryptionByDefault_622294, base: "/", + url: url_GetEnableEbsEncryptionByDefault_622295, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostEnableFastSnapshotRestores_622342 = ref object of OpenApiRestCall_610658 -proc url_PostEnableFastSnapshotRestores_622344(protocol: Scheme; host: string; + Call_PostEnableFastSnapshotRestores_622344 = ref object of OpenApiRestCall_610658 +proc url_PostEnableFastSnapshotRestores_622346(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -92082,7 +92109,7 @@ proc url_PostEnableFastSnapshotRestores_622344(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostEnableFastSnapshotRestores_622343(path: JsonNode; +proc validate_PostEnableFastSnapshotRestores_622345(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Enables fast snapshot restores for the specified snapshots in the specified Availability Zones.

    You get the full benefit of fast snapshot restores after they enter the enabled state. To get the current state of fast snapshot restores, use DescribeFastSnapshotRestores. To disable fast snapshot restores, use DisableFastSnapshotRestores.

    For more information, see Amazon EBS Fast Snapshot Restore in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -92094,16 +92121,16 @@ proc validate_PostEnableFastSnapshotRestores_622343(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622345 = query.getOrDefault("Action") - valid_622345 = validateParameter(valid_622345, JString, required = true, default = newJString( + var valid_622347 = query.getOrDefault("Action") + valid_622347 = validateParameter(valid_622347, JString, required = true, default = newJString( "EnableFastSnapshotRestores")) - if valid_622345 != nil: - section.add "Action", valid_622345 - var valid_622346 = query.getOrDefault("Version") - valid_622346 = validateParameter(valid_622346, JString, required = true, + if valid_622347 != nil: + section.add "Action", valid_622347 + var valid_622348 = query.getOrDefault("Version") + valid_622348 = validateParameter(valid_622348, JString, required = true, default = newJString("2016-11-15")) - if valid_622346 != nil: - section.add "Version", valid_622346 + if valid_622348 != nil: + section.add "Version", valid_622348 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -92114,41 +92141,41 @@ proc validate_PostEnableFastSnapshotRestores_622343(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622347 = header.getOrDefault("X-Amz-Signature") - valid_622347 = validateParameter(valid_622347, JString, required = false, - default = nil) - if valid_622347 != nil: - section.add "X-Amz-Signature", valid_622347 - var valid_622348 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622348 = validateParameter(valid_622348, JString, required = false, - default = nil) - if valid_622348 != nil: - section.add "X-Amz-Content-Sha256", valid_622348 - var valid_622349 = header.getOrDefault("X-Amz-Date") + var valid_622349 = header.getOrDefault("X-Amz-Signature") valid_622349 = validateParameter(valid_622349, JString, required = false, default = nil) if valid_622349 != nil: - section.add "X-Amz-Date", valid_622349 - var valid_622350 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622349 + var valid_622350 = header.getOrDefault("X-Amz-Content-Sha256") valid_622350 = validateParameter(valid_622350, JString, required = false, default = nil) if valid_622350 != nil: - section.add "X-Amz-Credential", valid_622350 - var valid_622351 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622350 + var valid_622351 = header.getOrDefault("X-Amz-Date") valid_622351 = validateParameter(valid_622351, JString, required = false, default = nil) if valid_622351 != nil: - section.add "X-Amz-Security-Token", valid_622351 - var valid_622352 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622351 + var valid_622352 = header.getOrDefault("X-Amz-Credential") valid_622352 = validateParameter(valid_622352, JString, required = false, default = nil) if valid_622352 != nil: - section.add "X-Amz-Algorithm", valid_622352 - var valid_622353 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622352 + var valid_622353 = header.getOrDefault("X-Amz-Security-Token") valid_622353 = validateParameter(valid_622353, JString, required = false, default = nil) if valid_622353 != nil: - section.add "X-Amz-SignedHeaders", valid_622353 + section.add "X-Amz-Security-Token", valid_622353 + var valid_622354 = header.getOrDefault("X-Amz-Algorithm") + valid_622354 = validateParameter(valid_622354, JString, required = false, + default = nil) + if valid_622354 != nil: + section.add "X-Amz-Algorithm", valid_622354 + var valid_622355 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622355 = validateParameter(valid_622355, JString, required = false, + default = nil) + if valid_622355 != nil: + section.add "X-Amz-SignedHeaders", valid_622355 result.add "header", section ## parameters in `formData` object: ## AvailabilityZone: JArray (required) @@ -92159,36 +92186,36 @@ proc validate_PostEnableFastSnapshotRestores_622343(path: JsonNode; ## : 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. section = newJObject() assert formData != nil, "formData argument is necessary due to required `AvailabilityZone` field" - var valid_622354 = formData.getOrDefault("AvailabilityZone") - valid_622354 = validateParameter(valid_622354, JArray, required = true, default = nil) - if valid_622354 != nil: - section.add "AvailabilityZone", valid_622354 - var valid_622355 = formData.getOrDefault("SourceSnapshotId") - valid_622355 = validateParameter(valid_622355, JArray, required = true, default = nil) - if valid_622355 != nil: - section.add "SourceSnapshotId", valid_622355 - var valid_622356 = formData.getOrDefault("DryRun") - valid_622356 = validateParameter(valid_622356, JBool, required = false, default = nil) + var valid_622356 = formData.getOrDefault("AvailabilityZone") + valid_622356 = validateParameter(valid_622356, JArray, required = true, default = nil) if valid_622356 != nil: - section.add "DryRun", valid_622356 + section.add "AvailabilityZone", valid_622356 + var valid_622357 = formData.getOrDefault("SourceSnapshotId") + valid_622357 = validateParameter(valid_622357, JArray, required = true, default = nil) + if valid_622357 != nil: + section.add "SourceSnapshotId", valid_622357 + var valid_622358 = formData.getOrDefault("DryRun") + valid_622358 = validateParameter(valid_622358, JBool, required = false, default = nil) + if valid_622358 != nil: + section.add "DryRun", valid_622358 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622357: Call_PostEnableFastSnapshotRestores_622342; path: JsonNode; +proc call*(call_622359: Call_PostEnableFastSnapshotRestores_622344; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Enables fast snapshot restores for the specified snapshots in the specified Availability Zones.

    You get the full benefit of fast snapshot restores after they enter the enabled state. To get the current state of fast snapshot restores, use DescribeFastSnapshotRestores. To disable fast snapshot restores, use DisableFastSnapshotRestores.

    For more information, see Amazon EBS Fast Snapshot Restore in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_622357.validator(path, query, header, formData, body) - let scheme = call_622357.pickScheme + let valid = call_622359.validator(path, query, header, formData, body) + let scheme = call_622359.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622357.url(scheme.get, call_622357.host, call_622357.base, - call_622357.route, valid.getOrDefault("path"), + let url = call_622359.url(scheme.get, call_622359.host, call_622359.base, + call_622359.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622357, url, valid) + result = atozHook(call_622359, url, valid) -proc call*(call_622358: Call_PostEnableFastSnapshotRestores_622342; +proc call*(call_622360: Call_PostEnableFastSnapshotRestores_622344; AvailabilityZone: JsonNode; SourceSnapshotId: JsonNode; DryRun: bool = false; Action: string = "EnableFastSnapshotRestores"; Version: string = "2016-11-15"): Recallable = @@ -92202,26 +92229,26 @@ proc call*(call_622358: Call_PostEnableFastSnapshotRestores_622342; ## : 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. ## Action: string (required) ## Version: string (required) - var query_622359 = newJObject() - var formData_622360 = newJObject() + var query_622361 = newJObject() + var formData_622362 = newJObject() if AvailabilityZone != nil: - formData_622360.add "AvailabilityZone", AvailabilityZone + formData_622362.add "AvailabilityZone", AvailabilityZone if SourceSnapshotId != nil: - formData_622360.add "SourceSnapshotId", SourceSnapshotId - add(formData_622360, "DryRun", newJBool(DryRun)) - add(query_622359, "Action", newJString(Action)) - add(query_622359, "Version", newJString(Version)) - result = call_622358.call(nil, query_622359, nil, formData_622360, nil) + formData_622362.add "SourceSnapshotId", SourceSnapshotId + add(formData_622362, "DryRun", newJBool(DryRun)) + add(query_622361, "Action", newJString(Action)) + add(query_622361, "Version", newJString(Version)) + result = call_622360.call(nil, query_622361, nil, formData_622362, nil) -var postEnableFastSnapshotRestores* = Call_PostEnableFastSnapshotRestores_622342( +var postEnableFastSnapshotRestores* = Call_PostEnableFastSnapshotRestores_622344( name: "postEnableFastSnapshotRestores", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=EnableFastSnapshotRestores", - validator: validate_PostEnableFastSnapshotRestores_622343, base: "/", - url: url_PostEnableFastSnapshotRestores_622344, + validator: validate_PostEnableFastSnapshotRestores_622345, base: "/", + url: url_PostEnableFastSnapshotRestores_622346, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetEnableFastSnapshotRestores_622324 = ref object of OpenApiRestCall_610658 -proc url_GetEnableFastSnapshotRestores_622326(protocol: Scheme; host: string; + Call_GetEnableFastSnapshotRestores_622326 = ref object of OpenApiRestCall_610658 +proc url_GetEnableFastSnapshotRestores_622328(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -92231,7 +92258,7 @@ proc url_GetEnableFastSnapshotRestores_622326(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetEnableFastSnapshotRestores_622325(path: JsonNode; query: JsonNode; +proc validate_GetEnableFastSnapshotRestores_622327(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Enables fast snapshot restores for the specified snapshots in the specified Availability Zones.

    You get the full benefit of fast snapshot restores after they enter the enabled state. To get the current state of fast snapshot restores, use DescribeFastSnapshotRestores. To disable fast snapshot restores, use DisableFastSnapshotRestores.

    For more information, see Amazon EBS Fast Snapshot Restore in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -92249,28 +92276,28 @@ proc validate_GetEnableFastSnapshotRestores_622325(path: JsonNode; query: JsonNo ## SourceSnapshotId: JArray (required) ## : The IDs of one or more snapshots. For example, snap-1234567890abcdef0. You can specify a snapshot that was shared with you from another AWS account. section = newJObject() - var valid_622327 = query.getOrDefault("DryRun") - valid_622327 = validateParameter(valid_622327, JBool, required = false, default = nil) - if valid_622327 != nil: - section.add "DryRun", valid_622327 - var valid_622328 = query.getOrDefault("Action") - valid_622328 = validateParameter(valid_622328, JString, required = true, default = newJString( - "EnableFastSnapshotRestores")) - if valid_622328 != nil: - section.add "Action", valid_622328 - var valid_622329 = query.getOrDefault("AvailabilityZone") - valid_622329 = validateParameter(valid_622329, JArray, required = true, default = nil) + var valid_622329 = query.getOrDefault("DryRun") + valid_622329 = validateParameter(valid_622329, JBool, required = false, default = nil) if valid_622329 != nil: - section.add "AvailabilityZone", valid_622329 - var valid_622330 = query.getOrDefault("Version") - valid_622330 = validateParameter(valid_622330, JString, required = true, - default = newJString("2016-11-15")) + section.add "DryRun", valid_622329 + var valid_622330 = query.getOrDefault("Action") + valid_622330 = validateParameter(valid_622330, JString, required = true, default = newJString( + "EnableFastSnapshotRestores")) if valid_622330 != nil: - section.add "Version", valid_622330 - var valid_622331 = query.getOrDefault("SourceSnapshotId") + section.add "Action", valid_622330 + var valid_622331 = query.getOrDefault("AvailabilityZone") valid_622331 = validateParameter(valid_622331, JArray, required = true, default = nil) if valid_622331 != nil: - section.add "SourceSnapshotId", valid_622331 + section.add "AvailabilityZone", valid_622331 + var valid_622332 = query.getOrDefault("Version") + valid_622332 = validateParameter(valid_622332, JString, required = true, + default = newJString("2016-11-15")) + if valid_622332 != nil: + section.add "Version", valid_622332 + var valid_622333 = query.getOrDefault("SourceSnapshotId") + valid_622333 = validateParameter(valid_622333, JArray, required = true, default = nil) + if valid_622333 != nil: + section.add "SourceSnapshotId", valid_622333 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -92281,61 +92308,61 @@ proc validate_GetEnableFastSnapshotRestores_622325(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622332 = header.getOrDefault("X-Amz-Signature") - valid_622332 = validateParameter(valid_622332, JString, required = false, - default = nil) - if valid_622332 != nil: - section.add "X-Amz-Signature", valid_622332 - var valid_622333 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622333 = validateParameter(valid_622333, JString, required = false, - default = nil) - if valid_622333 != nil: - section.add "X-Amz-Content-Sha256", valid_622333 - var valid_622334 = header.getOrDefault("X-Amz-Date") + var valid_622334 = header.getOrDefault("X-Amz-Signature") valid_622334 = validateParameter(valid_622334, JString, required = false, default = nil) if valid_622334 != nil: - section.add "X-Amz-Date", valid_622334 - var valid_622335 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622334 + var valid_622335 = header.getOrDefault("X-Amz-Content-Sha256") valid_622335 = validateParameter(valid_622335, JString, required = false, default = nil) if valid_622335 != nil: - section.add "X-Amz-Credential", valid_622335 - var valid_622336 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622335 + var valid_622336 = header.getOrDefault("X-Amz-Date") valid_622336 = validateParameter(valid_622336, JString, required = false, default = nil) if valid_622336 != nil: - section.add "X-Amz-Security-Token", valid_622336 - var valid_622337 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622336 + var valid_622337 = header.getOrDefault("X-Amz-Credential") valid_622337 = validateParameter(valid_622337, JString, required = false, default = nil) if valid_622337 != nil: - section.add "X-Amz-Algorithm", valid_622337 - var valid_622338 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622337 + var valid_622338 = header.getOrDefault("X-Amz-Security-Token") valid_622338 = validateParameter(valid_622338, JString, required = false, default = nil) if valid_622338 != nil: - section.add "X-Amz-SignedHeaders", valid_622338 + section.add "X-Amz-Security-Token", valid_622338 + var valid_622339 = header.getOrDefault("X-Amz-Algorithm") + valid_622339 = validateParameter(valid_622339, JString, required = false, + default = nil) + if valid_622339 != nil: + section.add "X-Amz-Algorithm", valid_622339 + var valid_622340 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622340 = validateParameter(valid_622340, JString, required = false, + default = nil) + if valid_622340 != nil: + section.add "X-Amz-SignedHeaders", valid_622340 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622339: Call_GetEnableFastSnapshotRestores_622324; path: JsonNode; +proc call*(call_622341: Call_GetEnableFastSnapshotRestores_622326; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Enables fast snapshot restores for the specified snapshots in the specified Availability Zones.

    You get the full benefit of fast snapshot restores after they enter the enabled state. To get the current state of fast snapshot restores, use DescribeFastSnapshotRestores. To disable fast snapshot restores, use DisableFastSnapshotRestores.

    For more information, see Amazon EBS Fast Snapshot Restore in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_622339.validator(path, query, header, formData, body) - let scheme = call_622339.pickScheme + let valid = call_622341.validator(path, query, header, formData, body) + let scheme = call_622341.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622339.url(scheme.get, call_622339.host, call_622339.base, - call_622339.route, valid.getOrDefault("path"), + let url = call_622341.url(scheme.get, call_622341.host, call_622341.base, + call_622341.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622339, url, valid) + result = atozHook(call_622341, url, valid) -proc call*(call_622340: Call_GetEnableFastSnapshotRestores_622324; +proc call*(call_622342: Call_GetEnableFastSnapshotRestores_622326; AvailabilityZone: JsonNode; SourceSnapshotId: JsonNode; DryRun: bool = false; Action: string = "EnableFastSnapshotRestores"; Version: string = "2016-11-15"): Recallable = @@ -92349,25 +92376,25 @@ proc call*(call_622340: Call_GetEnableFastSnapshotRestores_622324; ## Version: string (required) ## SourceSnapshotId: JArray (required) ## : The IDs of one or more snapshots. For example, snap-1234567890abcdef0. You can specify a snapshot that was shared with you from another AWS account. - var query_622341 = newJObject() - add(query_622341, "DryRun", newJBool(DryRun)) - add(query_622341, "Action", newJString(Action)) + var query_622343 = newJObject() + add(query_622343, "DryRun", newJBool(DryRun)) + add(query_622343, "Action", newJString(Action)) if AvailabilityZone != nil: - query_622341.add "AvailabilityZone", AvailabilityZone - add(query_622341, "Version", newJString(Version)) + query_622343.add "AvailabilityZone", AvailabilityZone + add(query_622343, "Version", newJString(Version)) if SourceSnapshotId != nil: - query_622341.add "SourceSnapshotId", SourceSnapshotId - result = call_622340.call(nil, query_622341, nil, nil, nil) + query_622343.add "SourceSnapshotId", SourceSnapshotId + result = call_622342.call(nil, query_622343, nil, nil, nil) -var getEnableFastSnapshotRestores* = Call_GetEnableFastSnapshotRestores_622324( +var getEnableFastSnapshotRestores* = Call_GetEnableFastSnapshotRestores_622326( name: "getEnableFastSnapshotRestores", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=EnableFastSnapshotRestores", - validator: validate_GetEnableFastSnapshotRestores_622325, base: "/", - url: url_GetEnableFastSnapshotRestores_622326, + validator: validate_GetEnableFastSnapshotRestores_622327, base: "/", + url: url_GetEnableFastSnapshotRestores_622328, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostEnableTransitGatewayRouteTablePropagation_622379 = ref object of OpenApiRestCall_610658 -proc url_PostEnableTransitGatewayRouteTablePropagation_622381(protocol: Scheme; + Call_PostEnableTransitGatewayRouteTablePropagation_622381 = ref object of OpenApiRestCall_610658 +proc url_PostEnableTransitGatewayRouteTablePropagation_622383(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -92377,7 +92404,7 @@ proc url_PostEnableTransitGatewayRouteTablePropagation_622381(protocol: Scheme; else: result.path = base & route -proc validate_PostEnableTransitGatewayRouteTablePropagation_622380( +proc validate_PostEnableTransitGatewayRouteTablePropagation_622382( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Enables the specified attachment to propagate routes to the specified propagation route table. @@ -92390,16 +92417,16 @@ proc validate_PostEnableTransitGatewayRouteTablePropagation_622380( ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622382 = query.getOrDefault("Action") - valid_622382 = validateParameter(valid_622382, JString, required = true, default = newJString( + var valid_622384 = query.getOrDefault("Action") + valid_622384 = validateParameter(valid_622384, JString, required = true, default = newJString( "EnableTransitGatewayRouteTablePropagation")) - if valid_622382 != nil: - section.add "Action", valid_622382 - var valid_622383 = query.getOrDefault("Version") - valid_622383 = validateParameter(valid_622383, JString, required = true, + if valid_622384 != nil: + section.add "Action", valid_622384 + var valid_622385 = query.getOrDefault("Version") + valid_622385 = validateParameter(valid_622385, JString, required = true, default = newJString("2016-11-15")) - if valid_622383 != nil: - section.add "Version", valid_622383 + if valid_622385 != nil: + section.add "Version", valid_622385 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -92410,41 +92437,41 @@ proc validate_PostEnableTransitGatewayRouteTablePropagation_622380( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622384 = header.getOrDefault("X-Amz-Signature") - valid_622384 = validateParameter(valid_622384, JString, required = false, - default = nil) - if valid_622384 != nil: - section.add "X-Amz-Signature", valid_622384 - var valid_622385 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622385 = validateParameter(valid_622385, JString, required = false, - default = nil) - if valid_622385 != nil: - section.add "X-Amz-Content-Sha256", valid_622385 - var valid_622386 = header.getOrDefault("X-Amz-Date") + var valid_622386 = header.getOrDefault("X-Amz-Signature") valid_622386 = validateParameter(valid_622386, JString, required = false, default = nil) if valid_622386 != nil: - section.add "X-Amz-Date", valid_622386 - var valid_622387 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622386 + var valid_622387 = header.getOrDefault("X-Amz-Content-Sha256") valid_622387 = validateParameter(valid_622387, JString, required = false, default = nil) if valid_622387 != nil: - section.add "X-Amz-Credential", valid_622387 - var valid_622388 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622387 + var valid_622388 = header.getOrDefault("X-Amz-Date") valid_622388 = validateParameter(valid_622388, JString, required = false, default = nil) if valid_622388 != nil: - section.add "X-Amz-Security-Token", valid_622388 - var valid_622389 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622388 + var valid_622389 = header.getOrDefault("X-Amz-Credential") valid_622389 = validateParameter(valid_622389, JString, required = false, default = nil) if valid_622389 != nil: - section.add "X-Amz-Algorithm", valid_622389 - var valid_622390 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622389 + var valid_622390 = header.getOrDefault("X-Amz-Security-Token") valid_622390 = validateParameter(valid_622390, JString, required = false, default = nil) if valid_622390 != nil: - section.add "X-Amz-SignedHeaders", valid_622390 + section.add "X-Amz-Security-Token", valid_622390 + var valid_622391 = header.getOrDefault("X-Amz-Algorithm") + valid_622391 = validateParameter(valid_622391, JString, required = false, + default = nil) + if valid_622391 != nil: + section.add "X-Amz-Algorithm", valid_622391 + var valid_622392 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622392 = validateParameter(valid_622392, JString, required = false, + default = nil) + if valid_622392 != nil: + section.add "X-Amz-SignedHeaders", valid_622392 result.add "header", section ## parameters in `formData` object: ## TransitGatewayRouteTableId: JString (required) @@ -92455,39 +92482,39 @@ proc validate_PostEnableTransitGatewayRouteTablePropagation_622380( ## : The ID of the attachment. section = newJObject() assert formData != nil, "formData argument is necessary due to required `TransitGatewayRouteTableId` field" - var valid_622391 = formData.getOrDefault("TransitGatewayRouteTableId") - valid_622391 = validateParameter(valid_622391, JString, required = true, - default = nil) - if valid_622391 != nil: - section.add "TransitGatewayRouteTableId", valid_622391 - var valid_622392 = formData.getOrDefault("DryRun") - valid_622392 = validateParameter(valid_622392, JBool, required = false, default = nil) - if valid_622392 != nil: - section.add "DryRun", valid_622392 - var valid_622393 = formData.getOrDefault("TransitGatewayAttachmentId") + var valid_622393 = formData.getOrDefault("TransitGatewayRouteTableId") valid_622393 = validateParameter(valid_622393, JString, required = true, default = nil) if valid_622393 != nil: - section.add "TransitGatewayAttachmentId", valid_622393 + section.add "TransitGatewayRouteTableId", valid_622393 + var valid_622394 = formData.getOrDefault("DryRun") + valid_622394 = validateParameter(valid_622394, JBool, required = false, default = nil) + if valid_622394 != nil: + section.add "DryRun", valid_622394 + var valid_622395 = formData.getOrDefault("TransitGatewayAttachmentId") + valid_622395 = validateParameter(valid_622395, JString, required = true, + default = nil) + if valid_622395 != nil: + section.add "TransitGatewayAttachmentId", valid_622395 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622394: Call_PostEnableTransitGatewayRouteTablePropagation_622379; +proc call*(call_622396: Call_PostEnableTransitGatewayRouteTablePropagation_622381; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Enables the specified attachment to propagate routes to the specified propagation route table. ## - let valid = call_622394.validator(path, query, header, formData, body) - let scheme = call_622394.pickScheme + let valid = call_622396.validator(path, query, header, formData, body) + let scheme = call_622396.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622394.url(scheme.get, call_622394.host, call_622394.base, - call_622394.route, valid.getOrDefault("path"), + let url = call_622396.url(scheme.get, call_622396.host, call_622396.base, + call_622396.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622394, url, valid) + result = atozHook(call_622396, url, valid) -proc call*(call_622395: Call_PostEnableTransitGatewayRouteTablePropagation_622379; +proc call*(call_622397: Call_PostEnableTransitGatewayRouteTablePropagation_622381; TransitGatewayRouteTableId: string; TransitGatewayAttachmentId: string; DryRun: bool = false; Action: string = "EnableTransitGatewayRouteTablePropagation"; @@ -92502,27 +92529,27 @@ proc call*(call_622395: Call_PostEnableTransitGatewayRouteTablePropagation_62237 ## Version: string (required) ## TransitGatewayAttachmentId: string (required) ## : The ID of the attachment. - var query_622396 = newJObject() - var formData_622397 = newJObject() - add(formData_622397, "TransitGatewayRouteTableId", + var query_622398 = newJObject() + var formData_622399 = newJObject() + add(formData_622399, "TransitGatewayRouteTableId", newJString(TransitGatewayRouteTableId)) - add(formData_622397, "DryRun", newJBool(DryRun)) - add(query_622396, "Action", newJString(Action)) - add(query_622396, "Version", newJString(Version)) - add(formData_622397, "TransitGatewayAttachmentId", + add(formData_622399, "DryRun", newJBool(DryRun)) + add(query_622398, "Action", newJString(Action)) + add(query_622398, "Version", newJString(Version)) + add(formData_622399, "TransitGatewayAttachmentId", newJString(TransitGatewayAttachmentId)) - result = call_622395.call(nil, query_622396, nil, formData_622397, nil) + result = call_622397.call(nil, query_622398, nil, formData_622399, nil) -var postEnableTransitGatewayRouteTablePropagation* = Call_PostEnableTransitGatewayRouteTablePropagation_622379( +var postEnableTransitGatewayRouteTablePropagation* = Call_PostEnableTransitGatewayRouteTablePropagation_622381( name: "postEnableTransitGatewayRouteTablePropagation", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=EnableTransitGatewayRouteTablePropagation", - validator: validate_PostEnableTransitGatewayRouteTablePropagation_622380, - base: "/", url: url_PostEnableTransitGatewayRouteTablePropagation_622381, + validator: validate_PostEnableTransitGatewayRouteTablePropagation_622382, + base: "/", url: url_PostEnableTransitGatewayRouteTablePropagation_622383, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetEnableTransitGatewayRouteTablePropagation_622361 = ref object of OpenApiRestCall_610658 -proc url_GetEnableTransitGatewayRouteTablePropagation_622363(protocol: Scheme; + Call_GetEnableTransitGatewayRouteTablePropagation_622363 = ref object of OpenApiRestCall_610658 +proc url_GetEnableTransitGatewayRouteTablePropagation_622365(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -92532,7 +92559,7 @@ proc url_GetEnableTransitGatewayRouteTablePropagation_622363(protocol: Scheme; else: result.path = base & route -proc validate_GetEnableTransitGatewayRouteTablePropagation_622362(path: JsonNode; +proc validate_GetEnableTransitGatewayRouteTablePropagation_622364(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Enables the specified attachment to propagate routes to the specified propagation route table. ## @@ -92550,31 +92577,31 @@ proc validate_GetEnableTransitGatewayRouteTablePropagation_622362(path: JsonNode ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622364 = query.getOrDefault("DryRun") - valid_622364 = validateParameter(valid_622364, JBool, required = false, default = nil) - if valid_622364 != nil: - section.add "DryRun", valid_622364 + var valid_622366 = query.getOrDefault("DryRun") + valid_622366 = validateParameter(valid_622366, JBool, required = false, default = nil) + if valid_622366 != nil: + section.add "DryRun", valid_622366 assert query != nil, "query argument is necessary due to required `TransitGatewayRouteTableId` field" - var valid_622365 = query.getOrDefault("TransitGatewayRouteTableId") - valid_622365 = validateParameter(valid_622365, JString, required = true, - default = nil) - if valid_622365 != nil: - section.add "TransitGatewayRouteTableId", valid_622365 - var valid_622366 = query.getOrDefault("TransitGatewayAttachmentId") - valid_622366 = validateParameter(valid_622366, JString, required = true, + var valid_622367 = query.getOrDefault("TransitGatewayRouteTableId") + valid_622367 = validateParameter(valid_622367, JString, required = true, default = nil) - if valid_622366 != nil: - section.add "TransitGatewayAttachmentId", valid_622366 - var valid_622367 = query.getOrDefault("Action") - valid_622367 = validateParameter(valid_622367, JString, required = true, default = newJString( - "EnableTransitGatewayRouteTablePropagation")) if valid_622367 != nil: - section.add "Action", valid_622367 - var valid_622368 = query.getOrDefault("Version") + section.add "TransitGatewayRouteTableId", valid_622367 + var valid_622368 = query.getOrDefault("TransitGatewayAttachmentId") valid_622368 = validateParameter(valid_622368, JString, required = true, - default = newJString("2016-11-15")) + default = nil) if valid_622368 != nil: - section.add "Version", valid_622368 + section.add "TransitGatewayAttachmentId", valid_622368 + var valid_622369 = query.getOrDefault("Action") + valid_622369 = validateParameter(valid_622369, JString, required = true, default = newJString( + "EnableTransitGatewayRouteTablePropagation")) + if valid_622369 != nil: + section.add "Action", valid_622369 + var valid_622370 = query.getOrDefault("Version") + valid_622370 = validateParameter(valid_622370, JString, required = true, + default = newJString("2016-11-15")) + if valid_622370 != nil: + section.add "Version", valid_622370 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -92585,62 +92612,62 @@ proc validate_GetEnableTransitGatewayRouteTablePropagation_622362(path: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622369 = header.getOrDefault("X-Amz-Signature") - valid_622369 = validateParameter(valid_622369, JString, required = false, - default = nil) - if valid_622369 != nil: - section.add "X-Amz-Signature", valid_622369 - var valid_622370 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622370 = validateParameter(valid_622370, JString, required = false, - default = nil) - if valid_622370 != nil: - section.add "X-Amz-Content-Sha256", valid_622370 - var valid_622371 = header.getOrDefault("X-Amz-Date") + var valid_622371 = header.getOrDefault("X-Amz-Signature") valid_622371 = validateParameter(valid_622371, JString, required = false, default = nil) if valid_622371 != nil: - section.add "X-Amz-Date", valid_622371 - var valid_622372 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622371 + var valid_622372 = header.getOrDefault("X-Amz-Content-Sha256") valid_622372 = validateParameter(valid_622372, JString, required = false, default = nil) if valid_622372 != nil: - section.add "X-Amz-Credential", valid_622372 - var valid_622373 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622372 + var valid_622373 = header.getOrDefault("X-Amz-Date") valid_622373 = validateParameter(valid_622373, JString, required = false, default = nil) if valid_622373 != nil: - section.add "X-Amz-Security-Token", valid_622373 - var valid_622374 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622373 + var valid_622374 = header.getOrDefault("X-Amz-Credential") valid_622374 = validateParameter(valid_622374, JString, required = false, default = nil) if valid_622374 != nil: - section.add "X-Amz-Algorithm", valid_622374 - var valid_622375 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622374 + var valid_622375 = header.getOrDefault("X-Amz-Security-Token") valid_622375 = validateParameter(valid_622375, JString, required = false, default = nil) if valid_622375 != nil: - section.add "X-Amz-SignedHeaders", valid_622375 + section.add "X-Amz-Security-Token", valid_622375 + var valid_622376 = header.getOrDefault("X-Amz-Algorithm") + valid_622376 = validateParameter(valid_622376, JString, required = false, + default = nil) + if valid_622376 != nil: + section.add "X-Amz-Algorithm", valid_622376 + var valid_622377 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622377 = validateParameter(valid_622377, JString, required = false, + default = nil) + if valid_622377 != nil: + section.add "X-Amz-SignedHeaders", valid_622377 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622376: Call_GetEnableTransitGatewayRouteTablePropagation_622361; +proc call*(call_622378: Call_GetEnableTransitGatewayRouteTablePropagation_622363; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Enables the specified attachment to propagate routes to the specified propagation route table. ## - let valid = call_622376.validator(path, query, header, formData, body) - let scheme = call_622376.pickScheme + let valid = call_622378.validator(path, query, header, formData, body) + let scheme = call_622378.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622376.url(scheme.get, call_622376.host, call_622376.base, - call_622376.route, valid.getOrDefault("path"), + let url = call_622378.url(scheme.get, call_622378.host, call_622378.base, + call_622378.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622376, url, valid) + result = atozHook(call_622378, url, valid) -proc call*(call_622377: Call_GetEnableTransitGatewayRouteTablePropagation_622361; +proc call*(call_622379: Call_GetEnableTransitGatewayRouteTablePropagation_622363; TransitGatewayRouteTableId: string; TransitGatewayAttachmentId: string; DryRun: bool = false; Action: string = "EnableTransitGatewayRouteTablePropagation"; @@ -92655,26 +92682,26 @@ proc call*(call_622377: Call_GetEnableTransitGatewayRouteTablePropagation_622361 ## : The ID of the attachment. ## Action: string (required) ## Version: string (required) - var query_622378 = newJObject() - add(query_622378, "DryRun", newJBool(DryRun)) - add(query_622378, "TransitGatewayRouteTableId", + var query_622380 = newJObject() + add(query_622380, "DryRun", newJBool(DryRun)) + add(query_622380, "TransitGatewayRouteTableId", newJString(TransitGatewayRouteTableId)) - add(query_622378, "TransitGatewayAttachmentId", + add(query_622380, "TransitGatewayAttachmentId", newJString(TransitGatewayAttachmentId)) - add(query_622378, "Action", newJString(Action)) - add(query_622378, "Version", newJString(Version)) - result = call_622377.call(nil, query_622378, nil, nil, nil) + add(query_622380, "Action", newJString(Action)) + add(query_622380, "Version", newJString(Version)) + result = call_622379.call(nil, query_622380, nil, nil, nil) -var getEnableTransitGatewayRouteTablePropagation* = Call_GetEnableTransitGatewayRouteTablePropagation_622361( +var getEnableTransitGatewayRouteTablePropagation* = Call_GetEnableTransitGatewayRouteTablePropagation_622363( name: "getEnableTransitGatewayRouteTablePropagation", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=EnableTransitGatewayRouteTablePropagation", - validator: validate_GetEnableTransitGatewayRouteTablePropagation_622362, - base: "/", url: url_GetEnableTransitGatewayRouteTablePropagation_622363, + validator: validate_GetEnableTransitGatewayRouteTablePropagation_622364, + base: "/", url: url_GetEnableTransitGatewayRouteTablePropagation_622365, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostEnableVgwRoutePropagation_622415 = ref object of OpenApiRestCall_610658 -proc url_PostEnableVgwRoutePropagation_622417(protocol: Scheme; host: string; + Call_PostEnableVgwRoutePropagation_622417 = ref object of OpenApiRestCall_610658 +proc url_PostEnableVgwRoutePropagation_622419(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -92684,7 +92711,7 @@ proc url_PostEnableVgwRoutePropagation_622417(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostEnableVgwRoutePropagation_622416(path: JsonNode; query: JsonNode; +proc validate_PostEnableVgwRoutePropagation_622418(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Enables a virtual private gateway (VGW) to propagate routes to the specified route table of a VPC. ## @@ -92696,16 +92723,16 @@ proc validate_PostEnableVgwRoutePropagation_622416(path: JsonNode; query: JsonNo ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622418 = query.getOrDefault("Action") - valid_622418 = validateParameter(valid_622418, JString, required = true, default = newJString( + var valid_622420 = query.getOrDefault("Action") + valid_622420 = validateParameter(valid_622420, JString, required = true, default = newJString( "EnableVgwRoutePropagation")) - if valid_622418 != nil: - section.add "Action", valid_622418 - var valid_622419 = query.getOrDefault("Version") - valid_622419 = validateParameter(valid_622419, JString, required = true, + if valid_622420 != nil: + section.add "Action", valid_622420 + var valid_622421 = query.getOrDefault("Version") + valid_622421 = validateParameter(valid_622421, JString, required = true, default = newJString("2016-11-15")) - if valid_622419 != nil: - section.add "Version", valid_622419 + if valid_622421 != nil: + section.add "Version", valid_622421 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -92716,41 +92743,41 @@ proc validate_PostEnableVgwRoutePropagation_622416(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622420 = header.getOrDefault("X-Amz-Signature") - valid_622420 = validateParameter(valid_622420, JString, required = false, - default = nil) - if valid_622420 != nil: - section.add "X-Amz-Signature", valid_622420 - var valid_622421 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622421 = validateParameter(valid_622421, JString, required = false, - default = nil) - if valid_622421 != nil: - section.add "X-Amz-Content-Sha256", valid_622421 - var valid_622422 = header.getOrDefault("X-Amz-Date") + var valid_622422 = header.getOrDefault("X-Amz-Signature") valid_622422 = validateParameter(valid_622422, JString, required = false, default = nil) if valid_622422 != nil: - section.add "X-Amz-Date", valid_622422 - var valid_622423 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622422 + var valid_622423 = header.getOrDefault("X-Amz-Content-Sha256") valid_622423 = validateParameter(valid_622423, JString, required = false, default = nil) if valid_622423 != nil: - section.add "X-Amz-Credential", valid_622423 - var valid_622424 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622423 + var valid_622424 = header.getOrDefault("X-Amz-Date") valid_622424 = validateParameter(valid_622424, JString, required = false, default = nil) if valid_622424 != nil: - section.add "X-Amz-Security-Token", valid_622424 - var valid_622425 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622424 + var valid_622425 = header.getOrDefault("X-Amz-Credential") valid_622425 = validateParameter(valid_622425, JString, required = false, default = nil) if valid_622425 != nil: - section.add "X-Amz-Algorithm", valid_622425 - var valid_622426 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622425 + var valid_622426 = header.getOrDefault("X-Amz-Security-Token") valid_622426 = validateParameter(valid_622426, JString, required = false, default = nil) if valid_622426 != nil: - section.add "X-Amz-SignedHeaders", valid_622426 + section.add "X-Amz-Security-Token", valid_622426 + var valid_622427 = header.getOrDefault("X-Amz-Algorithm") + valid_622427 = validateParameter(valid_622427, JString, required = false, + default = nil) + if valid_622427 != nil: + section.add "X-Amz-Algorithm", valid_622427 + var valid_622428 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622428 = validateParameter(valid_622428, JString, required = false, + default = nil) + if valid_622428 != nil: + section.add "X-Amz-SignedHeaders", valid_622428 result.add "header", section ## parameters in `formData` object: ## GatewayId: JString (required) @@ -92760,34 +92787,34 @@ proc validate_PostEnableVgwRoutePropagation_622416(path: JsonNode; query: JsonNo section = newJObject() assert formData != nil, "formData argument is necessary due to required `GatewayId` field" - var valid_622427 = formData.getOrDefault("GatewayId") - valid_622427 = validateParameter(valid_622427, JString, required = true, + var valid_622429 = formData.getOrDefault("GatewayId") + valid_622429 = validateParameter(valid_622429, JString, required = true, default = nil) - if valid_622427 != nil: - section.add "GatewayId", valid_622427 - var valid_622428 = formData.getOrDefault("RouteTableId") - valid_622428 = validateParameter(valid_622428, JString, required = true, + if valid_622429 != nil: + section.add "GatewayId", valid_622429 + var valid_622430 = formData.getOrDefault("RouteTableId") + valid_622430 = validateParameter(valid_622430, JString, required = true, default = nil) - if valid_622428 != nil: - section.add "RouteTableId", valid_622428 + if valid_622430 != nil: + section.add "RouteTableId", valid_622430 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622429: Call_PostEnableVgwRoutePropagation_622415; path: JsonNode; +proc call*(call_622431: Call_PostEnableVgwRoutePropagation_622417; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Enables a virtual private gateway (VGW) to propagate routes to the specified route table of a VPC. ## - let valid = call_622429.validator(path, query, header, formData, body) - let scheme = call_622429.pickScheme + let valid = call_622431.validator(path, query, header, formData, body) + let scheme = call_622431.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622429.url(scheme.get, call_622429.host, call_622429.base, - call_622429.route, valid.getOrDefault("path"), + let url = call_622431.url(scheme.get, call_622431.host, call_622431.base, + call_622431.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622429, url, valid) + result = atozHook(call_622431, url, valid) -proc call*(call_622430: Call_PostEnableVgwRoutePropagation_622415; +proc call*(call_622432: Call_PostEnableVgwRoutePropagation_622417; GatewayId: string; RouteTableId: string; Action: string = "EnableVgwRoutePropagation"; Version: string = "2016-11-15"): Recallable = @@ -92799,23 +92826,23 @@ proc call*(call_622430: Call_PostEnableVgwRoutePropagation_622415; ## : The ID of the route table. The routing table must be associated with the same VPC that the virtual private gateway is attached to. ## Action: string (required) ## Version: string (required) - var query_622431 = newJObject() - var formData_622432 = newJObject() - add(formData_622432, "GatewayId", newJString(GatewayId)) - add(formData_622432, "RouteTableId", newJString(RouteTableId)) - add(query_622431, "Action", newJString(Action)) - add(query_622431, "Version", newJString(Version)) - result = call_622430.call(nil, query_622431, nil, formData_622432, nil) + var query_622433 = newJObject() + var formData_622434 = newJObject() + add(formData_622434, "GatewayId", newJString(GatewayId)) + add(formData_622434, "RouteTableId", newJString(RouteTableId)) + add(query_622433, "Action", newJString(Action)) + add(query_622433, "Version", newJString(Version)) + result = call_622432.call(nil, query_622433, nil, formData_622434, nil) -var postEnableVgwRoutePropagation* = Call_PostEnableVgwRoutePropagation_622415( +var postEnableVgwRoutePropagation* = Call_PostEnableVgwRoutePropagation_622417( name: "postEnableVgwRoutePropagation", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=EnableVgwRoutePropagation", - validator: validate_PostEnableVgwRoutePropagation_622416, base: "/", - url: url_PostEnableVgwRoutePropagation_622417, + validator: validate_PostEnableVgwRoutePropagation_622418, base: "/", + url: url_PostEnableVgwRoutePropagation_622419, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetEnableVgwRoutePropagation_622398 = ref object of OpenApiRestCall_610658 -proc url_GetEnableVgwRoutePropagation_622400(protocol: Scheme; host: string; + Call_GetEnableVgwRoutePropagation_622400 = ref object of OpenApiRestCall_610658 +proc url_GetEnableVgwRoutePropagation_622402(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -92825,7 +92852,7 @@ proc url_GetEnableVgwRoutePropagation_622400(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetEnableVgwRoutePropagation_622399(path: JsonNode; query: JsonNode; +proc validate_GetEnableVgwRoutePropagation_622401(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Enables a virtual private gateway (VGW) to propagate routes to the specified route table of a VPC. ## @@ -92843,26 +92870,26 @@ proc validate_GetEnableVgwRoutePropagation_622399(path: JsonNode; query: JsonNod section = newJObject() assert query != nil, "query argument is necessary due to required `GatewayId` field" - var valid_622401 = query.getOrDefault("GatewayId") - valid_622401 = validateParameter(valid_622401, JString, required = true, + var valid_622403 = query.getOrDefault("GatewayId") + valid_622403 = validateParameter(valid_622403, JString, required = true, default = nil) - if valid_622401 != nil: - section.add "GatewayId", valid_622401 - var valid_622402 = query.getOrDefault("Action") - valid_622402 = validateParameter(valid_622402, JString, required = true, default = newJString( + if valid_622403 != nil: + section.add "GatewayId", valid_622403 + var valid_622404 = query.getOrDefault("Action") + valid_622404 = validateParameter(valid_622404, JString, required = true, default = newJString( "EnableVgwRoutePropagation")) - if valid_622402 != nil: - section.add "Action", valid_622402 - var valid_622403 = query.getOrDefault("Version") - valid_622403 = validateParameter(valid_622403, JString, required = true, + if valid_622404 != nil: + section.add "Action", valid_622404 + var valid_622405 = query.getOrDefault("Version") + valid_622405 = validateParameter(valid_622405, JString, required = true, default = newJString("2016-11-15")) - if valid_622403 != nil: - section.add "Version", valid_622403 - var valid_622404 = query.getOrDefault("RouteTableId") - valid_622404 = validateParameter(valid_622404, JString, required = true, + if valid_622405 != nil: + section.add "Version", valid_622405 + var valid_622406 = query.getOrDefault("RouteTableId") + valid_622406 = validateParameter(valid_622406, JString, required = true, default = nil) - if valid_622404 != nil: - section.add "RouteTableId", valid_622404 + if valid_622406 != nil: + section.add "RouteTableId", valid_622406 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -92873,61 +92900,61 @@ proc validate_GetEnableVgwRoutePropagation_622399(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622405 = header.getOrDefault("X-Amz-Signature") - valid_622405 = validateParameter(valid_622405, JString, required = false, - default = nil) - if valid_622405 != nil: - section.add "X-Amz-Signature", valid_622405 - var valid_622406 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622406 = validateParameter(valid_622406, JString, required = false, - default = nil) - if valid_622406 != nil: - section.add "X-Amz-Content-Sha256", valid_622406 - var valid_622407 = header.getOrDefault("X-Amz-Date") + var valid_622407 = header.getOrDefault("X-Amz-Signature") valid_622407 = validateParameter(valid_622407, JString, required = false, default = nil) if valid_622407 != nil: - section.add "X-Amz-Date", valid_622407 - var valid_622408 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622407 + var valid_622408 = header.getOrDefault("X-Amz-Content-Sha256") valid_622408 = validateParameter(valid_622408, JString, required = false, default = nil) if valid_622408 != nil: - section.add "X-Amz-Credential", valid_622408 - var valid_622409 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622408 + var valid_622409 = header.getOrDefault("X-Amz-Date") valid_622409 = validateParameter(valid_622409, JString, required = false, default = nil) if valid_622409 != nil: - section.add "X-Amz-Security-Token", valid_622409 - var valid_622410 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622409 + var valid_622410 = header.getOrDefault("X-Amz-Credential") valid_622410 = validateParameter(valid_622410, JString, required = false, default = nil) if valid_622410 != nil: - section.add "X-Amz-Algorithm", valid_622410 - var valid_622411 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622410 + var valid_622411 = header.getOrDefault("X-Amz-Security-Token") valid_622411 = validateParameter(valid_622411, JString, required = false, default = nil) if valid_622411 != nil: - section.add "X-Amz-SignedHeaders", valid_622411 + section.add "X-Amz-Security-Token", valid_622411 + var valid_622412 = header.getOrDefault("X-Amz-Algorithm") + valid_622412 = validateParameter(valid_622412, JString, required = false, + default = nil) + if valid_622412 != nil: + section.add "X-Amz-Algorithm", valid_622412 + var valid_622413 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622413 = validateParameter(valid_622413, JString, required = false, + default = nil) + if valid_622413 != nil: + section.add "X-Amz-SignedHeaders", valid_622413 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622412: Call_GetEnableVgwRoutePropagation_622398; path: JsonNode; +proc call*(call_622414: Call_GetEnableVgwRoutePropagation_622400; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Enables a virtual private gateway (VGW) to propagate routes to the specified route table of a VPC. ## - let valid = call_622412.validator(path, query, header, formData, body) - let scheme = call_622412.pickScheme + let valid = call_622414.validator(path, query, header, formData, body) + let scheme = call_622414.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622412.url(scheme.get, call_622412.host, call_622412.base, - call_622412.route, valid.getOrDefault("path"), + let url = call_622414.url(scheme.get, call_622414.host, call_622414.base, + call_622414.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622412, url, valid) + result = atozHook(call_622414, url, valid) -proc call*(call_622413: Call_GetEnableVgwRoutePropagation_622398; +proc call*(call_622415: Call_GetEnableVgwRoutePropagation_622400; GatewayId: string; RouteTableId: string; Action: string = "EnableVgwRoutePropagation"; Version: string = "2016-11-15"): Recallable = @@ -92939,22 +92966,22 @@ proc call*(call_622413: Call_GetEnableVgwRoutePropagation_622398; ## Version: string (required) ## RouteTableId: string (required) ## : The ID of the route table. The routing table must be associated with the same VPC that the virtual private gateway is attached to. - var query_622414 = newJObject() - add(query_622414, "GatewayId", newJString(GatewayId)) - add(query_622414, "Action", newJString(Action)) - add(query_622414, "Version", newJString(Version)) - add(query_622414, "RouteTableId", newJString(RouteTableId)) - result = call_622413.call(nil, query_622414, nil, nil, nil) - -var getEnableVgwRoutePropagation* = Call_GetEnableVgwRoutePropagation_622398( + var query_622416 = newJObject() + add(query_622416, "GatewayId", newJString(GatewayId)) + add(query_622416, "Action", newJString(Action)) + add(query_622416, "Version", newJString(Version)) + add(query_622416, "RouteTableId", newJString(RouteTableId)) + result = call_622415.call(nil, query_622416, nil, nil, nil) + +var getEnableVgwRoutePropagation* = Call_GetEnableVgwRoutePropagation_622400( name: "getEnableVgwRoutePropagation", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=EnableVgwRoutePropagation", - validator: validate_GetEnableVgwRoutePropagation_622399, base: "/", - url: url_GetEnableVgwRoutePropagation_622400, + validator: validate_GetEnableVgwRoutePropagation_622401, base: "/", + url: url_GetEnableVgwRoutePropagation_622402, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostEnableVolumeIO_622450 = ref object of OpenApiRestCall_610658 -proc url_PostEnableVolumeIO_622452(protocol: Scheme; host: string; base: string; + Call_PostEnableVolumeIO_622452 = ref object of OpenApiRestCall_610658 +proc url_PostEnableVolumeIO_622454(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -92964,7 +92991,7 @@ proc url_PostEnableVolumeIO_622452(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostEnableVolumeIO_622451(path: JsonNode; query: JsonNode; +proc validate_PostEnableVolumeIO_622453(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Enables I/O operations for a volume that had I/O operations disabled because the data on the volume was potentially inconsistent. @@ -92977,16 +93004,16 @@ proc validate_PostEnableVolumeIO_622451(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622453 = query.getOrDefault("Action") - valid_622453 = validateParameter(valid_622453, JString, required = true, + var valid_622455 = query.getOrDefault("Action") + valid_622455 = validateParameter(valid_622455, JString, required = true, default = newJString("EnableVolumeIO")) - if valid_622453 != nil: - section.add "Action", valid_622453 - var valid_622454 = query.getOrDefault("Version") - valid_622454 = validateParameter(valid_622454, JString, required = true, + if valid_622455 != nil: + section.add "Action", valid_622455 + var valid_622456 = query.getOrDefault("Version") + valid_622456 = validateParameter(valid_622456, JString, required = true, default = newJString("2016-11-15")) - if valid_622454 != nil: - section.add "Version", valid_622454 + if valid_622456 != nil: + section.add "Version", valid_622456 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -92997,41 +93024,41 @@ proc validate_PostEnableVolumeIO_622451(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622455 = header.getOrDefault("X-Amz-Signature") - valid_622455 = validateParameter(valid_622455, JString, required = false, - default = nil) - if valid_622455 != nil: - section.add "X-Amz-Signature", valid_622455 - var valid_622456 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622456 = validateParameter(valid_622456, JString, required = false, - default = nil) - if valid_622456 != nil: - section.add "X-Amz-Content-Sha256", valid_622456 - var valid_622457 = header.getOrDefault("X-Amz-Date") + var valid_622457 = header.getOrDefault("X-Amz-Signature") valid_622457 = validateParameter(valid_622457, JString, required = false, default = nil) if valid_622457 != nil: - section.add "X-Amz-Date", valid_622457 - var valid_622458 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622457 + var valid_622458 = header.getOrDefault("X-Amz-Content-Sha256") valid_622458 = validateParameter(valid_622458, JString, required = false, default = nil) if valid_622458 != nil: - section.add "X-Amz-Credential", valid_622458 - var valid_622459 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622458 + var valid_622459 = header.getOrDefault("X-Amz-Date") valid_622459 = validateParameter(valid_622459, JString, required = false, default = nil) if valid_622459 != nil: - section.add "X-Amz-Security-Token", valid_622459 - var valid_622460 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622459 + var valid_622460 = header.getOrDefault("X-Amz-Credential") valid_622460 = validateParameter(valid_622460, JString, required = false, default = nil) if valid_622460 != nil: - section.add "X-Amz-Algorithm", valid_622460 - var valid_622461 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622460 + var valid_622461 = header.getOrDefault("X-Amz-Security-Token") valid_622461 = validateParameter(valid_622461, JString, required = false, default = nil) if valid_622461 != nil: - section.add "X-Amz-SignedHeaders", valid_622461 + section.add "X-Amz-Security-Token", valid_622461 + var valid_622462 = header.getOrDefault("X-Amz-Algorithm") + valid_622462 = validateParameter(valid_622462, JString, required = false, + default = nil) + if valid_622462 != nil: + section.add "X-Amz-Algorithm", valid_622462 + var valid_622463 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622463 = validateParameter(valid_622463, JString, required = false, + default = nil) + if valid_622463 != nil: + section.add "X-Amz-SignedHeaders", valid_622463 result.add "header", section ## parameters in `formData` object: ## VolumeId: JString (required) @@ -93041,33 +93068,33 @@ proc validate_PostEnableVolumeIO_622451(path: JsonNode; query: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `VolumeId` field" - var valid_622462 = formData.getOrDefault("VolumeId") - valid_622462 = validateParameter(valid_622462, JString, required = true, + var valid_622464 = formData.getOrDefault("VolumeId") + valid_622464 = validateParameter(valid_622464, JString, required = true, default = nil) - if valid_622462 != nil: - section.add "VolumeId", valid_622462 - var valid_622463 = formData.getOrDefault("DryRun") - valid_622463 = validateParameter(valid_622463, JBool, required = false, default = nil) - if valid_622463 != nil: - section.add "DryRun", valid_622463 + if valid_622464 != nil: + section.add "VolumeId", valid_622464 + var valid_622465 = formData.getOrDefault("DryRun") + valid_622465 = validateParameter(valid_622465, JBool, required = false, default = nil) + if valid_622465 != nil: + section.add "DryRun", valid_622465 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622464: Call_PostEnableVolumeIO_622450; path: JsonNode; +proc call*(call_622466: Call_PostEnableVolumeIO_622452; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Enables I/O operations for a volume that had I/O operations disabled because the data on the volume was potentially inconsistent. ## - let valid = call_622464.validator(path, query, header, formData, body) - let scheme = call_622464.pickScheme + let valid = call_622466.validator(path, query, header, formData, body) + let scheme = call_622466.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622464.url(scheme.get, call_622464.host, call_622464.base, - call_622464.route, valid.getOrDefault("path"), + let url = call_622466.url(scheme.get, call_622466.host, call_622466.base, + call_622466.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622464, url, valid) + result = atozHook(call_622466, url, valid) -proc call*(call_622465: Call_PostEnableVolumeIO_622450; VolumeId: string; +proc call*(call_622467: Call_PostEnableVolumeIO_622452; VolumeId: string; DryRun: bool = false; Action: string = "EnableVolumeIO"; Version: string = "2016-11-15"): Recallable = ## postEnableVolumeIO @@ -93078,22 +93105,22 @@ proc call*(call_622465: Call_PostEnableVolumeIO_622450; VolumeId: string; ## : 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. ## Action: string (required) ## Version: string (required) - var query_622466 = newJObject() - var formData_622467 = newJObject() - add(formData_622467, "VolumeId", newJString(VolumeId)) - add(formData_622467, "DryRun", newJBool(DryRun)) - add(query_622466, "Action", newJString(Action)) - add(query_622466, "Version", newJString(Version)) - result = call_622465.call(nil, query_622466, nil, formData_622467, nil) + var query_622468 = newJObject() + var formData_622469 = newJObject() + add(formData_622469, "VolumeId", newJString(VolumeId)) + add(formData_622469, "DryRun", newJBool(DryRun)) + add(query_622468, "Action", newJString(Action)) + add(query_622468, "Version", newJString(Version)) + result = call_622467.call(nil, query_622468, nil, formData_622469, nil) -var postEnableVolumeIO* = Call_PostEnableVolumeIO_622450( +var postEnableVolumeIO* = Call_PostEnableVolumeIO_622452( name: "postEnableVolumeIO", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=EnableVolumeIO", - validator: validate_PostEnableVolumeIO_622451, base: "/", - url: url_PostEnableVolumeIO_622452, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostEnableVolumeIO_622453, base: "/", + url: url_PostEnableVolumeIO_622454, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetEnableVolumeIO_622433 = ref object of OpenApiRestCall_610658 -proc url_GetEnableVolumeIO_622435(protocol: Scheme; host: string; base: string; + Call_GetEnableVolumeIO_622435 = ref object of OpenApiRestCall_610658 +proc url_GetEnableVolumeIO_622437(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -93103,7 +93130,7 @@ proc url_GetEnableVolumeIO_622435(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetEnableVolumeIO_622434(path: JsonNode; query: JsonNode; +proc validate_GetEnableVolumeIO_622436(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Enables I/O operations for a volume that had I/O operations disabled because the data on the volume was potentially inconsistent. @@ -93120,27 +93147,27 @@ proc validate_GetEnableVolumeIO_622434(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622436 = query.getOrDefault("DryRun") - valid_622436 = validateParameter(valid_622436, JBool, required = false, default = nil) - if valid_622436 != nil: - section.add "DryRun", valid_622436 + var valid_622438 = query.getOrDefault("DryRun") + valid_622438 = validateParameter(valid_622438, JBool, required = false, default = nil) + if valid_622438 != nil: + section.add "DryRun", valid_622438 assert query != nil, "query argument is necessary due to required `VolumeId` field" - var valid_622437 = query.getOrDefault("VolumeId") - valid_622437 = validateParameter(valid_622437, JString, required = true, + var valid_622439 = query.getOrDefault("VolumeId") + valid_622439 = validateParameter(valid_622439, JString, required = true, default = nil) - if valid_622437 != nil: - section.add "VolumeId", valid_622437 - var valid_622438 = query.getOrDefault("Action") - valid_622438 = validateParameter(valid_622438, JString, required = true, + if valid_622439 != nil: + section.add "VolumeId", valid_622439 + var valid_622440 = query.getOrDefault("Action") + valid_622440 = validateParameter(valid_622440, JString, required = true, default = newJString("EnableVolumeIO")) - if valid_622438 != nil: - section.add "Action", valid_622438 - var valid_622439 = query.getOrDefault("Version") - valid_622439 = validateParameter(valid_622439, JString, required = true, + if valid_622440 != nil: + section.add "Action", valid_622440 + var valid_622441 = query.getOrDefault("Version") + valid_622441 = validateParameter(valid_622441, JString, required = true, default = newJString("2016-11-15")) - if valid_622439 != nil: - section.add "Version", valid_622439 + if valid_622441 != nil: + section.add "Version", valid_622441 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -93151,61 +93178,61 @@ proc validate_GetEnableVolumeIO_622434(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622440 = header.getOrDefault("X-Amz-Signature") - valid_622440 = validateParameter(valid_622440, JString, required = false, - default = nil) - if valid_622440 != nil: - section.add "X-Amz-Signature", valid_622440 - var valid_622441 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622441 = validateParameter(valid_622441, JString, required = false, - default = nil) - if valid_622441 != nil: - section.add "X-Amz-Content-Sha256", valid_622441 - var valid_622442 = header.getOrDefault("X-Amz-Date") + var valid_622442 = header.getOrDefault("X-Amz-Signature") valid_622442 = validateParameter(valid_622442, JString, required = false, default = nil) if valid_622442 != nil: - section.add "X-Amz-Date", valid_622442 - var valid_622443 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622442 + var valid_622443 = header.getOrDefault("X-Amz-Content-Sha256") valid_622443 = validateParameter(valid_622443, JString, required = false, default = nil) if valid_622443 != nil: - section.add "X-Amz-Credential", valid_622443 - var valid_622444 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622443 + var valid_622444 = header.getOrDefault("X-Amz-Date") valid_622444 = validateParameter(valid_622444, JString, required = false, default = nil) if valid_622444 != nil: - section.add "X-Amz-Security-Token", valid_622444 - var valid_622445 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622444 + var valid_622445 = header.getOrDefault("X-Amz-Credential") valid_622445 = validateParameter(valid_622445, JString, required = false, default = nil) if valid_622445 != nil: - section.add "X-Amz-Algorithm", valid_622445 - var valid_622446 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622445 + var valid_622446 = header.getOrDefault("X-Amz-Security-Token") valid_622446 = validateParameter(valid_622446, JString, required = false, default = nil) if valid_622446 != nil: - section.add "X-Amz-SignedHeaders", valid_622446 + section.add "X-Amz-Security-Token", valid_622446 + var valid_622447 = header.getOrDefault("X-Amz-Algorithm") + valid_622447 = validateParameter(valid_622447, JString, required = false, + default = nil) + if valid_622447 != nil: + section.add "X-Amz-Algorithm", valid_622447 + var valid_622448 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622448 = validateParameter(valid_622448, JString, required = false, + default = nil) + if valid_622448 != nil: + section.add "X-Amz-SignedHeaders", valid_622448 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622447: Call_GetEnableVolumeIO_622433; path: JsonNode; +proc call*(call_622449: Call_GetEnableVolumeIO_622435; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Enables I/O operations for a volume that had I/O operations disabled because the data on the volume was potentially inconsistent. ## - let valid = call_622447.validator(path, query, header, formData, body) - let scheme = call_622447.pickScheme + let valid = call_622449.validator(path, query, header, formData, body) + let scheme = call_622449.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622447.url(scheme.get, call_622447.host, call_622447.base, - call_622447.route, valid.getOrDefault("path"), + let url = call_622449.url(scheme.get, call_622449.host, call_622449.base, + call_622449.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622447, url, valid) + result = atozHook(call_622449, url, valid) -proc call*(call_622448: Call_GetEnableVolumeIO_622433; VolumeId: string; +proc call*(call_622450: Call_GetEnableVolumeIO_622435; VolumeId: string; DryRun: bool = false; Action: string = "EnableVolumeIO"; Version: string = "2016-11-15"): Recallable = ## getEnableVolumeIO @@ -93216,21 +93243,21 @@ proc call*(call_622448: Call_GetEnableVolumeIO_622433; VolumeId: string; ## : The ID of the volume. ## Action: string (required) ## Version: string (required) - var query_622449 = newJObject() - add(query_622449, "DryRun", newJBool(DryRun)) - add(query_622449, "VolumeId", newJString(VolumeId)) - add(query_622449, "Action", newJString(Action)) - add(query_622449, "Version", newJString(Version)) - result = call_622448.call(nil, query_622449, nil, nil, nil) + var query_622451 = newJObject() + add(query_622451, "DryRun", newJBool(DryRun)) + add(query_622451, "VolumeId", newJString(VolumeId)) + add(query_622451, "Action", newJString(Action)) + add(query_622451, "Version", newJString(Version)) + result = call_622450.call(nil, query_622451, nil, nil, nil) -var getEnableVolumeIO* = Call_GetEnableVolumeIO_622433(name: "getEnableVolumeIO", +var getEnableVolumeIO* = Call_GetEnableVolumeIO_622435(name: "getEnableVolumeIO", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=EnableVolumeIO", validator: validate_GetEnableVolumeIO_622434, - base: "/", url: url_GetEnableVolumeIO_622435, + route: "/#Action=EnableVolumeIO", validator: validate_GetEnableVolumeIO_622436, + base: "/", url: url_GetEnableVolumeIO_622437, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostEnableVpcClassicLink_622485 = ref object of OpenApiRestCall_610658 -proc url_PostEnableVpcClassicLink_622487(protocol: Scheme; host: string; + Call_PostEnableVpcClassicLink_622487 = ref object of OpenApiRestCall_610658 +proc url_PostEnableVpcClassicLink_622489(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -93241,7 +93268,7 @@ proc url_PostEnableVpcClassicLink_622487(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostEnableVpcClassicLink_622486(path: JsonNode; query: JsonNode; +proc validate_PostEnableVpcClassicLink_622488(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Enables a VPC for ClassicLink. You can then link EC2-Classic instances to your ClassicLink-enabled VPC to allow communication over private IP addresses. You cannot enable your VPC for ClassicLink if any of your VPC route tables have existing routes for address ranges within the 10.0.0.0/8 IP address range, excluding local routes for VPCs in the 10.0.0.0/16 and 10.1.0.0/16 IP address ranges. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. ## @@ -93253,16 +93280,16 @@ proc validate_PostEnableVpcClassicLink_622486(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622488 = query.getOrDefault("Action") - valid_622488 = validateParameter(valid_622488, JString, required = true, + var valid_622490 = query.getOrDefault("Action") + valid_622490 = validateParameter(valid_622490, JString, required = true, default = newJString("EnableVpcClassicLink")) - if valid_622488 != nil: - section.add "Action", valid_622488 - var valid_622489 = query.getOrDefault("Version") - valid_622489 = validateParameter(valid_622489, JString, required = true, + if valid_622490 != nil: + section.add "Action", valid_622490 + var valid_622491 = query.getOrDefault("Version") + valid_622491 = validateParameter(valid_622491, JString, required = true, default = newJString("2016-11-15")) - if valid_622489 != nil: - section.add "Version", valid_622489 + if valid_622491 != nil: + section.add "Version", valid_622491 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -93273,41 +93300,41 @@ proc validate_PostEnableVpcClassicLink_622486(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622490 = header.getOrDefault("X-Amz-Signature") - valid_622490 = validateParameter(valid_622490, JString, required = false, - default = nil) - if valid_622490 != nil: - section.add "X-Amz-Signature", valid_622490 - var valid_622491 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622491 = validateParameter(valid_622491, JString, required = false, - default = nil) - if valid_622491 != nil: - section.add "X-Amz-Content-Sha256", valid_622491 - var valid_622492 = header.getOrDefault("X-Amz-Date") + var valid_622492 = header.getOrDefault("X-Amz-Signature") valid_622492 = validateParameter(valid_622492, JString, required = false, default = nil) if valid_622492 != nil: - section.add "X-Amz-Date", valid_622492 - var valid_622493 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622492 + var valid_622493 = header.getOrDefault("X-Amz-Content-Sha256") valid_622493 = validateParameter(valid_622493, JString, required = false, default = nil) if valid_622493 != nil: - section.add "X-Amz-Credential", valid_622493 - var valid_622494 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622493 + var valid_622494 = header.getOrDefault("X-Amz-Date") valid_622494 = validateParameter(valid_622494, JString, required = false, default = nil) if valid_622494 != nil: - section.add "X-Amz-Security-Token", valid_622494 - var valid_622495 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622494 + var valid_622495 = header.getOrDefault("X-Amz-Credential") valid_622495 = validateParameter(valid_622495, JString, required = false, default = nil) if valid_622495 != nil: - section.add "X-Amz-Algorithm", valid_622495 - var valid_622496 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622495 + var valid_622496 = header.getOrDefault("X-Amz-Security-Token") valid_622496 = validateParameter(valid_622496, JString, required = false, default = nil) if valid_622496 != nil: - section.add "X-Amz-SignedHeaders", valid_622496 + section.add "X-Amz-Security-Token", valid_622496 + var valid_622497 = header.getOrDefault("X-Amz-Algorithm") + valid_622497 = validateParameter(valid_622497, JString, required = false, + default = nil) + if valid_622497 != nil: + section.add "X-Amz-Algorithm", valid_622497 + var valid_622498 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622498 = validateParameter(valid_622498, JString, required = false, + default = nil) + if valid_622498 != nil: + section.add "X-Amz-SignedHeaders", valid_622498 result.add "header", section ## parameters in `formData` object: ## VpcId: JString (required) @@ -93317,33 +93344,33 @@ proc validate_PostEnableVpcClassicLink_622486(path: JsonNode; query: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `VpcId` field" - var valid_622497 = formData.getOrDefault("VpcId") - valid_622497 = validateParameter(valid_622497, JString, required = true, + var valid_622499 = formData.getOrDefault("VpcId") + valid_622499 = validateParameter(valid_622499, JString, required = true, default = nil) - if valid_622497 != nil: - section.add "VpcId", valid_622497 - var valid_622498 = formData.getOrDefault("DryRun") - valid_622498 = validateParameter(valid_622498, JBool, required = false, default = nil) - if valid_622498 != nil: - section.add "DryRun", valid_622498 + if valid_622499 != nil: + section.add "VpcId", valid_622499 + var valid_622500 = formData.getOrDefault("DryRun") + valid_622500 = validateParameter(valid_622500, JBool, required = false, default = nil) + if valid_622500 != nil: + section.add "DryRun", valid_622500 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622499: Call_PostEnableVpcClassicLink_622485; path: JsonNode; +proc call*(call_622501: Call_PostEnableVpcClassicLink_622487; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Enables a VPC for ClassicLink. You can then link EC2-Classic instances to your ClassicLink-enabled VPC to allow communication over private IP addresses. You cannot enable your VPC for ClassicLink if any of your VPC route tables have existing routes for address ranges within the 10.0.0.0/8 IP address range, excluding local routes for VPCs in the 10.0.0.0/16 and 10.1.0.0/16 IP address ranges. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. ## - let valid = call_622499.validator(path, query, header, formData, body) - let scheme = call_622499.pickScheme + let valid = call_622501.validator(path, query, header, formData, body) + let scheme = call_622501.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622499.url(scheme.get, call_622499.host, call_622499.base, - call_622499.route, valid.getOrDefault("path"), + let url = call_622501.url(scheme.get, call_622501.host, call_622501.base, + call_622501.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622499, url, valid) + result = atozHook(call_622501, url, valid) -proc call*(call_622500: Call_PostEnableVpcClassicLink_622485; VpcId: string; +proc call*(call_622502: Call_PostEnableVpcClassicLink_622487; VpcId: string; DryRun: bool = false; Action: string = "EnableVpcClassicLink"; Version: string = "2016-11-15"): Recallable = ## postEnableVpcClassicLink @@ -93354,22 +93381,22 @@ proc call*(call_622500: Call_PostEnableVpcClassicLink_622485; VpcId: string; ## : 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. ## Action: string (required) ## Version: string (required) - var query_622501 = newJObject() - var formData_622502 = newJObject() - add(formData_622502, "VpcId", newJString(VpcId)) - add(formData_622502, "DryRun", newJBool(DryRun)) - add(query_622501, "Action", newJString(Action)) - add(query_622501, "Version", newJString(Version)) - result = call_622500.call(nil, query_622501, nil, formData_622502, nil) + var query_622503 = newJObject() + var formData_622504 = newJObject() + add(formData_622504, "VpcId", newJString(VpcId)) + add(formData_622504, "DryRun", newJBool(DryRun)) + add(query_622503, "Action", newJString(Action)) + add(query_622503, "Version", newJString(Version)) + result = call_622502.call(nil, query_622503, nil, formData_622504, nil) -var postEnableVpcClassicLink* = Call_PostEnableVpcClassicLink_622485( +var postEnableVpcClassicLink* = Call_PostEnableVpcClassicLink_622487( name: "postEnableVpcClassicLink", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=EnableVpcClassicLink", - validator: validate_PostEnableVpcClassicLink_622486, base: "/", - url: url_PostEnableVpcClassicLink_622487, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostEnableVpcClassicLink_622488, base: "/", + url: url_PostEnableVpcClassicLink_622489, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetEnableVpcClassicLink_622468 = ref object of OpenApiRestCall_610658 -proc url_GetEnableVpcClassicLink_622470(protocol: Scheme; host: string; base: string; + Call_GetEnableVpcClassicLink_622470 = ref object of OpenApiRestCall_610658 +proc url_GetEnableVpcClassicLink_622472(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -93380,7 +93407,7 @@ proc url_GetEnableVpcClassicLink_622470(protocol: Scheme; host: string; base: st else: result.path = base & route -proc validate_GetEnableVpcClassicLink_622469(path: JsonNode; query: JsonNode; +proc validate_GetEnableVpcClassicLink_622471(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Enables a VPC for ClassicLink. You can then link EC2-Classic instances to your ClassicLink-enabled VPC to allow communication over private IP addresses. You cannot enable your VPC for ClassicLink if any of your VPC route tables have existing routes for address ranges within the 10.0.0.0/8 IP address range, excluding local routes for VPCs in the 10.0.0.0/16 and 10.1.0.0/16 IP address ranges. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. ## @@ -93396,26 +93423,26 @@ proc validate_GetEnableVpcClassicLink_622469(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622471 = query.getOrDefault("DryRun") - valid_622471 = validateParameter(valid_622471, JBool, required = false, default = nil) - if valid_622471 != nil: - section.add "DryRun", valid_622471 + var valid_622473 = query.getOrDefault("DryRun") + valid_622473 = validateParameter(valid_622473, JBool, required = false, default = nil) + if valid_622473 != nil: + section.add "DryRun", valid_622473 assert query != nil, "query argument is necessary due to required `VpcId` field" - var valid_622472 = query.getOrDefault("VpcId") - valid_622472 = validateParameter(valid_622472, JString, required = true, + var valid_622474 = query.getOrDefault("VpcId") + valid_622474 = validateParameter(valid_622474, JString, required = true, default = nil) - if valid_622472 != nil: - section.add "VpcId", valid_622472 - var valid_622473 = query.getOrDefault("Action") - valid_622473 = validateParameter(valid_622473, JString, required = true, + if valid_622474 != nil: + section.add "VpcId", valid_622474 + var valid_622475 = query.getOrDefault("Action") + valid_622475 = validateParameter(valid_622475, JString, required = true, default = newJString("EnableVpcClassicLink")) - if valid_622473 != nil: - section.add "Action", valid_622473 - var valid_622474 = query.getOrDefault("Version") - valid_622474 = validateParameter(valid_622474, JString, required = true, + if valid_622475 != nil: + section.add "Action", valid_622475 + var valid_622476 = query.getOrDefault("Version") + valid_622476 = validateParameter(valid_622476, JString, required = true, default = newJString("2016-11-15")) - if valid_622474 != nil: - section.add "Version", valid_622474 + if valid_622476 != nil: + section.add "Version", valid_622476 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -93426,61 +93453,61 @@ proc validate_GetEnableVpcClassicLink_622469(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622475 = header.getOrDefault("X-Amz-Signature") - valid_622475 = validateParameter(valid_622475, JString, required = false, - default = nil) - if valid_622475 != nil: - section.add "X-Amz-Signature", valid_622475 - var valid_622476 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622476 = validateParameter(valid_622476, JString, required = false, - default = nil) - if valid_622476 != nil: - section.add "X-Amz-Content-Sha256", valid_622476 - var valid_622477 = header.getOrDefault("X-Amz-Date") + var valid_622477 = header.getOrDefault("X-Amz-Signature") valid_622477 = validateParameter(valid_622477, JString, required = false, default = nil) if valid_622477 != nil: - section.add "X-Amz-Date", valid_622477 - var valid_622478 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622477 + var valid_622478 = header.getOrDefault("X-Amz-Content-Sha256") valid_622478 = validateParameter(valid_622478, JString, required = false, default = nil) if valid_622478 != nil: - section.add "X-Amz-Credential", valid_622478 - var valid_622479 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622478 + var valid_622479 = header.getOrDefault("X-Amz-Date") valid_622479 = validateParameter(valid_622479, JString, required = false, default = nil) if valid_622479 != nil: - section.add "X-Amz-Security-Token", valid_622479 - var valid_622480 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622479 + var valid_622480 = header.getOrDefault("X-Amz-Credential") valid_622480 = validateParameter(valid_622480, JString, required = false, default = nil) if valid_622480 != nil: - section.add "X-Amz-Algorithm", valid_622480 - var valid_622481 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622480 + var valid_622481 = header.getOrDefault("X-Amz-Security-Token") valid_622481 = validateParameter(valid_622481, JString, required = false, default = nil) if valid_622481 != nil: - section.add "X-Amz-SignedHeaders", valid_622481 + section.add "X-Amz-Security-Token", valid_622481 + var valid_622482 = header.getOrDefault("X-Amz-Algorithm") + valid_622482 = validateParameter(valid_622482, JString, required = false, + default = nil) + if valid_622482 != nil: + section.add "X-Amz-Algorithm", valid_622482 + var valid_622483 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622483 = validateParameter(valid_622483, JString, required = false, + default = nil) + if valid_622483 != nil: + section.add "X-Amz-SignedHeaders", valid_622483 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622482: Call_GetEnableVpcClassicLink_622468; path: JsonNode; +proc call*(call_622484: Call_GetEnableVpcClassicLink_622470; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Enables a VPC for ClassicLink. You can then link EC2-Classic instances to your ClassicLink-enabled VPC to allow communication over private IP addresses. You cannot enable your VPC for ClassicLink if any of your VPC route tables have existing routes for address ranges within the 10.0.0.0/8 IP address range, excluding local routes for VPCs in the 10.0.0.0/16 and 10.1.0.0/16 IP address ranges. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. ## - let valid = call_622482.validator(path, query, header, formData, body) - let scheme = call_622482.pickScheme + let valid = call_622484.validator(path, query, header, formData, body) + let scheme = call_622484.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622482.url(scheme.get, call_622482.host, call_622482.base, - call_622482.route, valid.getOrDefault("path"), + let url = call_622484.url(scheme.get, call_622484.host, call_622484.base, + call_622484.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622482, url, valid) + result = atozHook(call_622484, url, valid) -proc call*(call_622483: Call_GetEnableVpcClassicLink_622468; VpcId: string; +proc call*(call_622485: Call_GetEnableVpcClassicLink_622470; VpcId: string; DryRun: bool = false; Action: string = "EnableVpcClassicLink"; Version: string = "2016-11-15"): Recallable = ## getEnableVpcClassicLink @@ -93491,21 +93518,21 @@ proc call*(call_622483: Call_GetEnableVpcClassicLink_622468; VpcId: string; ## : The ID of the VPC. ## Action: string (required) ## Version: string (required) - var query_622484 = newJObject() - add(query_622484, "DryRun", newJBool(DryRun)) - add(query_622484, "VpcId", newJString(VpcId)) - add(query_622484, "Action", newJString(Action)) - add(query_622484, "Version", newJString(Version)) - result = call_622483.call(nil, query_622484, nil, nil, nil) + var query_622486 = newJObject() + add(query_622486, "DryRun", newJBool(DryRun)) + add(query_622486, "VpcId", newJString(VpcId)) + add(query_622486, "Action", newJString(Action)) + add(query_622486, "Version", newJString(Version)) + result = call_622485.call(nil, query_622486, nil, nil, nil) -var getEnableVpcClassicLink* = Call_GetEnableVpcClassicLink_622468( +var getEnableVpcClassicLink* = Call_GetEnableVpcClassicLink_622470( name: "getEnableVpcClassicLink", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=EnableVpcClassicLink", - validator: validate_GetEnableVpcClassicLink_622469, base: "/", - url: url_GetEnableVpcClassicLink_622470, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetEnableVpcClassicLink_622471, base: "/", + url: url_GetEnableVpcClassicLink_622472, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostEnableVpcClassicLinkDnsSupport_622519 = ref object of OpenApiRestCall_610658 -proc url_PostEnableVpcClassicLinkDnsSupport_622521(protocol: Scheme; host: string; + Call_PostEnableVpcClassicLinkDnsSupport_622521 = ref object of OpenApiRestCall_610658 +proc url_PostEnableVpcClassicLinkDnsSupport_622523(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -93515,7 +93542,7 @@ proc url_PostEnableVpcClassicLinkDnsSupport_622521(protocol: Scheme; host: strin else: result.path = base & route -proc validate_PostEnableVpcClassicLinkDnsSupport_622520(path: JsonNode; +proc validate_PostEnableVpcClassicLinkDnsSupport_622522(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Enables a VPC to support DNS hostname resolution for ClassicLink. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it's linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. ## @@ -93527,16 +93554,16 @@ proc validate_PostEnableVpcClassicLinkDnsSupport_622520(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622522 = query.getOrDefault("Action") - valid_622522 = validateParameter(valid_622522, JString, required = true, default = newJString( + var valid_622524 = query.getOrDefault("Action") + valid_622524 = validateParameter(valid_622524, JString, required = true, default = newJString( "EnableVpcClassicLinkDnsSupport")) - if valid_622522 != nil: - section.add "Action", valid_622522 - var valid_622523 = query.getOrDefault("Version") - valid_622523 = validateParameter(valid_622523, JString, required = true, + if valid_622524 != nil: + section.add "Action", valid_622524 + var valid_622525 = query.getOrDefault("Version") + valid_622525 = validateParameter(valid_622525, JString, required = true, default = newJString("2016-11-15")) - if valid_622523 != nil: - section.add "Version", valid_622523 + if valid_622525 != nil: + section.add "Version", valid_622525 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -93547,70 +93574,70 @@ proc validate_PostEnableVpcClassicLinkDnsSupport_622520(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622524 = header.getOrDefault("X-Amz-Signature") - valid_622524 = validateParameter(valid_622524, JString, required = false, - default = nil) - if valid_622524 != nil: - section.add "X-Amz-Signature", valid_622524 - var valid_622525 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622525 = validateParameter(valid_622525, JString, required = false, - default = nil) - if valid_622525 != nil: - section.add "X-Amz-Content-Sha256", valid_622525 - var valid_622526 = header.getOrDefault("X-Amz-Date") + var valid_622526 = header.getOrDefault("X-Amz-Signature") valid_622526 = validateParameter(valid_622526, JString, required = false, default = nil) if valid_622526 != nil: - section.add "X-Amz-Date", valid_622526 - var valid_622527 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622526 + var valid_622527 = header.getOrDefault("X-Amz-Content-Sha256") valid_622527 = validateParameter(valid_622527, JString, required = false, default = nil) if valid_622527 != nil: - section.add "X-Amz-Credential", valid_622527 - var valid_622528 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622527 + var valid_622528 = header.getOrDefault("X-Amz-Date") valid_622528 = validateParameter(valid_622528, JString, required = false, default = nil) if valid_622528 != nil: - section.add "X-Amz-Security-Token", valid_622528 - var valid_622529 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622528 + var valid_622529 = header.getOrDefault("X-Amz-Credential") valid_622529 = validateParameter(valid_622529, JString, required = false, default = nil) if valid_622529 != nil: - section.add "X-Amz-Algorithm", valid_622529 - var valid_622530 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622529 + var valid_622530 = header.getOrDefault("X-Amz-Security-Token") valid_622530 = validateParameter(valid_622530, JString, required = false, default = nil) if valid_622530 != nil: - section.add "X-Amz-SignedHeaders", valid_622530 + section.add "X-Amz-Security-Token", valid_622530 + var valid_622531 = header.getOrDefault("X-Amz-Algorithm") + valid_622531 = validateParameter(valid_622531, JString, required = false, + default = nil) + if valid_622531 != nil: + section.add "X-Amz-Algorithm", valid_622531 + var valid_622532 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622532 = validateParameter(valid_622532, JString, required = false, + default = nil) + if valid_622532 != nil: + section.add "X-Amz-SignedHeaders", valid_622532 result.add "header", section ## parameters in `formData` object: ## VpcId: JString ## : The ID of the VPC. section = newJObject() - var valid_622531 = formData.getOrDefault("VpcId") - valid_622531 = validateParameter(valid_622531, JString, required = false, + var valid_622533 = formData.getOrDefault("VpcId") + valid_622533 = validateParameter(valid_622533, JString, required = false, default = nil) - if valid_622531 != nil: - section.add "VpcId", valid_622531 + if valid_622533 != nil: + section.add "VpcId", valid_622533 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622532: Call_PostEnableVpcClassicLinkDnsSupport_622519; +proc call*(call_622534: Call_PostEnableVpcClassicLinkDnsSupport_622521; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Enables a VPC to support DNS hostname resolution for ClassicLink. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it's linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. ## - let valid = call_622532.validator(path, query, header, formData, body) - let scheme = call_622532.pickScheme + let valid = call_622534.validator(path, query, header, formData, body) + let scheme = call_622534.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622532.url(scheme.get, call_622532.host, call_622532.base, - call_622532.route, valid.getOrDefault("path"), + let url = call_622534.url(scheme.get, call_622534.host, call_622534.base, + call_622534.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622532, url, valid) + result = atozHook(call_622534, url, valid) -proc call*(call_622533: Call_PostEnableVpcClassicLinkDnsSupport_622519; +proc call*(call_622535: Call_PostEnableVpcClassicLinkDnsSupport_622521; VpcId: string = ""; Action: string = "EnableVpcClassicLinkDnsSupport"; Version: string = "2016-11-15"): Recallable = ## postEnableVpcClassicLinkDnsSupport @@ -93619,22 +93646,22 @@ proc call*(call_622533: Call_PostEnableVpcClassicLinkDnsSupport_622519; ## : The ID of the VPC. ## Action: string (required) ## Version: string (required) - var query_622534 = newJObject() - var formData_622535 = newJObject() - add(formData_622535, "VpcId", newJString(VpcId)) - add(query_622534, "Action", newJString(Action)) - add(query_622534, "Version", newJString(Version)) - result = call_622533.call(nil, query_622534, nil, formData_622535, nil) + var query_622536 = newJObject() + var formData_622537 = newJObject() + add(formData_622537, "VpcId", newJString(VpcId)) + add(query_622536, "Action", newJString(Action)) + add(query_622536, "Version", newJString(Version)) + result = call_622535.call(nil, query_622536, nil, formData_622537, nil) -var postEnableVpcClassicLinkDnsSupport* = Call_PostEnableVpcClassicLinkDnsSupport_622519( +var postEnableVpcClassicLinkDnsSupport* = Call_PostEnableVpcClassicLinkDnsSupport_622521( name: "postEnableVpcClassicLinkDnsSupport", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=EnableVpcClassicLinkDnsSupport", - validator: validate_PostEnableVpcClassicLinkDnsSupport_622520, base: "/", - url: url_PostEnableVpcClassicLinkDnsSupport_622521, + validator: validate_PostEnableVpcClassicLinkDnsSupport_622522, base: "/", + url: url_PostEnableVpcClassicLinkDnsSupport_622523, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetEnableVpcClassicLinkDnsSupport_622503 = ref object of OpenApiRestCall_610658 -proc url_GetEnableVpcClassicLinkDnsSupport_622505(protocol: Scheme; host: string; + Call_GetEnableVpcClassicLinkDnsSupport_622505 = ref object of OpenApiRestCall_610658 +proc url_GetEnableVpcClassicLinkDnsSupport_622507(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -93644,7 +93671,7 @@ proc url_GetEnableVpcClassicLinkDnsSupport_622505(protocol: Scheme; host: string else: result.path = base & route -proc validate_GetEnableVpcClassicLinkDnsSupport_622504(path: JsonNode; +proc validate_GetEnableVpcClassicLinkDnsSupport_622506(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Enables a VPC to support DNS hostname resolution for ClassicLink. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it's linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. ## @@ -93658,21 +93685,21 @@ proc validate_GetEnableVpcClassicLinkDnsSupport_622504(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622506 = query.getOrDefault("VpcId") - valid_622506 = validateParameter(valid_622506, JString, required = false, + var valid_622508 = query.getOrDefault("VpcId") + valid_622508 = validateParameter(valid_622508, JString, required = false, default = nil) - if valid_622506 != nil: - section.add "VpcId", valid_622506 - var valid_622507 = query.getOrDefault("Action") - valid_622507 = validateParameter(valid_622507, JString, required = true, default = newJString( + if valid_622508 != nil: + section.add "VpcId", valid_622508 + var valid_622509 = query.getOrDefault("Action") + valid_622509 = validateParameter(valid_622509, JString, required = true, default = newJString( "EnableVpcClassicLinkDnsSupport")) - if valid_622507 != nil: - section.add "Action", valid_622507 - var valid_622508 = query.getOrDefault("Version") - valid_622508 = validateParameter(valid_622508, JString, required = true, + if valid_622509 != nil: + section.add "Action", valid_622509 + var valid_622510 = query.getOrDefault("Version") + valid_622510 = validateParameter(valid_622510, JString, required = true, default = newJString("2016-11-15")) - if valid_622508 != nil: - section.add "Version", valid_622508 + if valid_622510 != nil: + section.add "Version", valid_622510 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -93683,62 +93710,62 @@ proc validate_GetEnableVpcClassicLinkDnsSupport_622504(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622509 = header.getOrDefault("X-Amz-Signature") - valid_622509 = validateParameter(valid_622509, JString, required = false, - default = nil) - if valid_622509 != nil: - section.add "X-Amz-Signature", valid_622509 - var valid_622510 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622510 = validateParameter(valid_622510, JString, required = false, - default = nil) - if valid_622510 != nil: - section.add "X-Amz-Content-Sha256", valid_622510 - var valid_622511 = header.getOrDefault("X-Amz-Date") + var valid_622511 = header.getOrDefault("X-Amz-Signature") valid_622511 = validateParameter(valid_622511, JString, required = false, default = nil) if valid_622511 != nil: - section.add "X-Amz-Date", valid_622511 - var valid_622512 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622511 + var valid_622512 = header.getOrDefault("X-Amz-Content-Sha256") valid_622512 = validateParameter(valid_622512, JString, required = false, default = nil) if valid_622512 != nil: - section.add "X-Amz-Credential", valid_622512 - var valid_622513 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622512 + var valid_622513 = header.getOrDefault("X-Amz-Date") valid_622513 = validateParameter(valid_622513, JString, required = false, default = nil) if valid_622513 != nil: - section.add "X-Amz-Security-Token", valid_622513 - var valid_622514 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622513 + var valid_622514 = header.getOrDefault("X-Amz-Credential") valid_622514 = validateParameter(valid_622514, JString, required = false, default = nil) if valid_622514 != nil: - section.add "X-Amz-Algorithm", valid_622514 - var valid_622515 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622514 + var valid_622515 = header.getOrDefault("X-Amz-Security-Token") valid_622515 = validateParameter(valid_622515, JString, required = false, default = nil) if valid_622515 != nil: - section.add "X-Amz-SignedHeaders", valid_622515 + section.add "X-Amz-Security-Token", valid_622515 + var valid_622516 = header.getOrDefault("X-Amz-Algorithm") + valid_622516 = validateParameter(valid_622516, JString, required = false, + default = nil) + if valid_622516 != nil: + section.add "X-Amz-Algorithm", valid_622516 + var valid_622517 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622517 = validateParameter(valid_622517, JString, required = false, + default = nil) + if valid_622517 != nil: + section.add "X-Amz-SignedHeaders", valid_622517 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622516: Call_GetEnableVpcClassicLinkDnsSupport_622503; +proc call*(call_622518: Call_GetEnableVpcClassicLinkDnsSupport_622505; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Enables a VPC to support DNS hostname resolution for ClassicLink. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it's linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. ## - let valid = call_622516.validator(path, query, header, formData, body) - let scheme = call_622516.pickScheme + let valid = call_622518.validator(path, query, header, formData, body) + let scheme = call_622518.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622516.url(scheme.get, call_622516.host, call_622516.base, - call_622516.route, valid.getOrDefault("path"), + let url = call_622518.url(scheme.get, call_622518.host, call_622518.base, + call_622518.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622516, url, valid) + result = atozHook(call_622518, url, valid) -proc call*(call_622517: Call_GetEnableVpcClassicLinkDnsSupport_622503; +proc call*(call_622519: Call_GetEnableVpcClassicLinkDnsSupport_622505; VpcId: string = ""; Action: string = "EnableVpcClassicLinkDnsSupport"; Version: string = "2016-11-15"): Recallable = ## getEnableVpcClassicLinkDnsSupport @@ -93747,21 +93774,21 @@ proc call*(call_622517: Call_GetEnableVpcClassicLinkDnsSupport_622503; ## : The ID of the VPC. ## Action: string (required) ## Version: string (required) - var query_622518 = newJObject() - add(query_622518, "VpcId", newJString(VpcId)) - add(query_622518, "Action", newJString(Action)) - add(query_622518, "Version", newJString(Version)) - result = call_622517.call(nil, query_622518, nil, nil, nil) + var query_622520 = newJObject() + add(query_622520, "VpcId", newJString(VpcId)) + add(query_622520, "Action", newJString(Action)) + add(query_622520, "Version", newJString(Version)) + result = call_622519.call(nil, query_622520, nil, nil, nil) -var getEnableVpcClassicLinkDnsSupport* = Call_GetEnableVpcClassicLinkDnsSupport_622503( +var getEnableVpcClassicLinkDnsSupport* = Call_GetEnableVpcClassicLinkDnsSupport_622505( name: "getEnableVpcClassicLinkDnsSupport", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=EnableVpcClassicLinkDnsSupport", - validator: validate_GetEnableVpcClassicLinkDnsSupport_622504, base: "/", - url: url_GetEnableVpcClassicLinkDnsSupport_622505, + validator: validate_GetEnableVpcClassicLinkDnsSupport_622506, base: "/", + url: url_GetEnableVpcClassicLinkDnsSupport_622507, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostExportClientVpnClientCertificateRevocationList_622553 = ref object of OpenApiRestCall_610658 -proc url_PostExportClientVpnClientCertificateRevocationList_622555( + Call_PostExportClientVpnClientCertificateRevocationList_622555 = ref object of OpenApiRestCall_610658 +proc url_PostExportClientVpnClientCertificateRevocationList_622557( protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -93772,7 +93799,7 @@ proc url_PostExportClientVpnClientCertificateRevocationList_622555( else: result.path = base & route -proc validate_PostExportClientVpnClientCertificateRevocationList_622554( +proc validate_PostExportClientVpnClientCertificateRevocationList_622556( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Downloads the client certificate revocation list for the specified Client VPN endpoint. @@ -93785,16 +93812,16 @@ proc validate_PostExportClientVpnClientCertificateRevocationList_622554( ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622556 = query.getOrDefault("Action") - valid_622556 = validateParameter(valid_622556, JString, required = true, default = newJString( + var valid_622558 = query.getOrDefault("Action") + valid_622558 = validateParameter(valid_622558, JString, required = true, default = newJString( "ExportClientVpnClientCertificateRevocationList")) - if valid_622556 != nil: - section.add "Action", valid_622556 - var valid_622557 = query.getOrDefault("Version") - valid_622557 = validateParameter(valid_622557, JString, required = true, + if valid_622558 != nil: + section.add "Action", valid_622558 + var valid_622559 = query.getOrDefault("Version") + valid_622559 = validateParameter(valid_622559, JString, required = true, default = newJString("2016-11-15")) - if valid_622557 != nil: - section.add "Version", valid_622557 + if valid_622559 != nil: + section.add "Version", valid_622559 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -93805,41 +93832,41 @@ proc validate_PostExportClientVpnClientCertificateRevocationList_622554( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622558 = header.getOrDefault("X-Amz-Signature") - valid_622558 = validateParameter(valid_622558, JString, required = false, - default = nil) - if valid_622558 != nil: - section.add "X-Amz-Signature", valid_622558 - var valid_622559 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622559 = validateParameter(valid_622559, JString, required = false, - default = nil) - if valid_622559 != nil: - section.add "X-Amz-Content-Sha256", valid_622559 - var valid_622560 = header.getOrDefault("X-Amz-Date") + var valid_622560 = header.getOrDefault("X-Amz-Signature") valid_622560 = validateParameter(valid_622560, JString, required = false, default = nil) if valid_622560 != nil: - section.add "X-Amz-Date", valid_622560 - var valid_622561 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622560 + var valid_622561 = header.getOrDefault("X-Amz-Content-Sha256") valid_622561 = validateParameter(valid_622561, JString, required = false, default = nil) if valid_622561 != nil: - section.add "X-Amz-Credential", valid_622561 - var valid_622562 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622561 + var valid_622562 = header.getOrDefault("X-Amz-Date") valid_622562 = validateParameter(valid_622562, JString, required = false, default = nil) if valid_622562 != nil: - section.add "X-Amz-Security-Token", valid_622562 - var valid_622563 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622562 + var valid_622563 = header.getOrDefault("X-Amz-Credential") valid_622563 = validateParameter(valid_622563, JString, required = false, default = nil) if valid_622563 != nil: - section.add "X-Amz-Algorithm", valid_622563 - var valid_622564 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622563 + var valid_622564 = header.getOrDefault("X-Amz-Security-Token") valid_622564 = validateParameter(valid_622564, JString, required = false, default = nil) if valid_622564 != nil: - section.add "X-Amz-SignedHeaders", valid_622564 + section.add "X-Amz-Security-Token", valid_622564 + var valid_622565 = header.getOrDefault("X-Amz-Algorithm") + valid_622565 = validateParameter(valid_622565, JString, required = false, + default = nil) + if valid_622565 != nil: + section.add "X-Amz-Algorithm", valid_622565 + var valid_622566 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622566 = validateParameter(valid_622566, JString, required = false, + default = nil) + if valid_622566 != nil: + section.add "X-Amz-SignedHeaders", valid_622566 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -93847,35 +93874,35 @@ proc validate_PostExportClientVpnClientCertificateRevocationList_622554( ## ClientVpnEndpointId: JString (required) ## : The ID of the Client VPN endpoint. section = newJObject() - var valid_622565 = formData.getOrDefault("DryRun") - valid_622565 = validateParameter(valid_622565, JBool, required = false, default = nil) - if valid_622565 != nil: - section.add "DryRun", valid_622565 + var valid_622567 = formData.getOrDefault("DryRun") + valid_622567 = validateParameter(valid_622567, JBool, required = false, default = nil) + if valid_622567 != nil: + section.add "DryRun", valid_622567 assert formData != nil, "formData argument is necessary due to required `ClientVpnEndpointId` field" - var valid_622566 = formData.getOrDefault("ClientVpnEndpointId") - valid_622566 = validateParameter(valid_622566, JString, required = true, + var valid_622568 = formData.getOrDefault("ClientVpnEndpointId") + valid_622568 = validateParameter(valid_622568, JString, required = true, default = nil) - if valid_622566 != nil: - section.add "ClientVpnEndpointId", valid_622566 + if valid_622568 != nil: + section.add "ClientVpnEndpointId", valid_622568 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622567: Call_PostExportClientVpnClientCertificateRevocationList_622553; +proc call*(call_622569: Call_PostExportClientVpnClientCertificateRevocationList_622555; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Downloads the client certificate revocation list for the specified Client VPN endpoint. ## - let valid = call_622567.validator(path, query, header, formData, body) - let scheme = call_622567.pickScheme + let valid = call_622569.validator(path, query, header, formData, body) + let scheme = call_622569.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622567.url(scheme.get, call_622567.host, call_622567.base, - call_622567.route, valid.getOrDefault("path"), + let url = call_622569.url(scheme.get, call_622569.host, call_622569.base, + call_622569.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622567, url, valid) + result = atozHook(call_622569, url, valid) -proc call*(call_622568: Call_PostExportClientVpnClientCertificateRevocationList_622553; +proc call*(call_622570: Call_PostExportClientVpnClientCertificateRevocationList_622555; ClientVpnEndpointId: string; DryRun: bool = false; Action: string = "ExportClientVpnClientCertificateRevocationList"; Version: string = "2016-11-15"): Recallable = @@ -93887,24 +93914,24 @@ proc call*(call_622568: Call_PostExportClientVpnClientCertificateRevocationList_ ## Version: string (required) ## ClientVpnEndpointId: string (required) ## : The ID of the Client VPN endpoint. - var query_622569 = newJObject() - var formData_622570 = newJObject() - add(formData_622570, "DryRun", newJBool(DryRun)) - add(query_622569, "Action", newJString(Action)) - add(query_622569, "Version", newJString(Version)) - add(formData_622570, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) - result = call_622568.call(nil, query_622569, nil, formData_622570, nil) - -var postExportClientVpnClientCertificateRevocationList* = Call_PostExportClientVpnClientCertificateRevocationList_622553( + var query_622571 = newJObject() + var formData_622572 = newJObject() + add(formData_622572, "DryRun", newJBool(DryRun)) + add(query_622571, "Action", newJString(Action)) + add(query_622571, "Version", newJString(Version)) + add(formData_622572, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) + result = call_622570.call(nil, query_622571, nil, formData_622572, nil) + +var postExportClientVpnClientCertificateRevocationList* = Call_PostExportClientVpnClientCertificateRevocationList_622555( name: "postExportClientVpnClientCertificateRevocationList", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ExportClientVpnClientCertificateRevocationList", - validator: validate_PostExportClientVpnClientCertificateRevocationList_622554, - base: "/", url: url_PostExportClientVpnClientCertificateRevocationList_622555, + validator: validate_PostExportClientVpnClientCertificateRevocationList_622556, + base: "/", url: url_PostExportClientVpnClientCertificateRevocationList_622557, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetExportClientVpnClientCertificateRevocationList_622536 = ref object of OpenApiRestCall_610658 -proc url_GetExportClientVpnClientCertificateRevocationList_622538( + Call_GetExportClientVpnClientCertificateRevocationList_622538 = ref object of OpenApiRestCall_610658 +proc url_GetExportClientVpnClientCertificateRevocationList_622540( protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -93915,7 +93942,7 @@ proc url_GetExportClientVpnClientCertificateRevocationList_622538( else: result.path = base & route -proc validate_GetExportClientVpnClientCertificateRevocationList_622537( +proc validate_GetExportClientVpnClientCertificateRevocationList_622539( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Downloads the client certificate revocation list for the specified Client VPN endpoint. @@ -93932,26 +93959,26 @@ proc validate_GetExportClientVpnClientCertificateRevocationList_622537( ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622539 = query.getOrDefault("DryRun") - valid_622539 = validateParameter(valid_622539, JBool, required = false, default = nil) - if valid_622539 != nil: - section.add "DryRun", valid_622539 + var valid_622541 = query.getOrDefault("DryRun") + valid_622541 = validateParameter(valid_622541, JBool, required = false, default = nil) + if valid_622541 != nil: + section.add "DryRun", valid_622541 assert query != nil, "query argument is necessary due to required `ClientVpnEndpointId` field" - var valid_622540 = query.getOrDefault("ClientVpnEndpointId") - valid_622540 = validateParameter(valid_622540, JString, required = true, + var valid_622542 = query.getOrDefault("ClientVpnEndpointId") + valid_622542 = validateParameter(valid_622542, JString, required = true, default = nil) - if valid_622540 != nil: - section.add "ClientVpnEndpointId", valid_622540 - var valid_622541 = query.getOrDefault("Action") - valid_622541 = validateParameter(valid_622541, JString, required = true, default = newJString( + if valid_622542 != nil: + section.add "ClientVpnEndpointId", valid_622542 + var valid_622543 = query.getOrDefault("Action") + valid_622543 = validateParameter(valid_622543, JString, required = true, default = newJString( "ExportClientVpnClientCertificateRevocationList")) - if valid_622541 != nil: - section.add "Action", valid_622541 - var valid_622542 = query.getOrDefault("Version") - valid_622542 = validateParameter(valid_622542, JString, required = true, + if valid_622543 != nil: + section.add "Action", valid_622543 + var valid_622544 = query.getOrDefault("Version") + valid_622544 = validateParameter(valid_622544, JString, required = true, default = newJString("2016-11-15")) - if valid_622542 != nil: - section.add "Version", valid_622542 + if valid_622544 != nil: + section.add "Version", valid_622544 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -93962,62 +93989,62 @@ proc validate_GetExportClientVpnClientCertificateRevocationList_622537( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622543 = header.getOrDefault("X-Amz-Signature") - valid_622543 = validateParameter(valid_622543, JString, required = false, - default = nil) - if valid_622543 != nil: - section.add "X-Amz-Signature", valid_622543 - var valid_622544 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622544 = validateParameter(valid_622544, JString, required = false, - default = nil) - if valid_622544 != nil: - section.add "X-Amz-Content-Sha256", valid_622544 - var valid_622545 = header.getOrDefault("X-Amz-Date") + var valid_622545 = header.getOrDefault("X-Amz-Signature") valid_622545 = validateParameter(valid_622545, JString, required = false, default = nil) if valid_622545 != nil: - section.add "X-Amz-Date", valid_622545 - var valid_622546 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622545 + var valid_622546 = header.getOrDefault("X-Amz-Content-Sha256") valid_622546 = validateParameter(valid_622546, JString, required = false, default = nil) if valid_622546 != nil: - section.add "X-Amz-Credential", valid_622546 - var valid_622547 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622546 + var valid_622547 = header.getOrDefault("X-Amz-Date") valid_622547 = validateParameter(valid_622547, JString, required = false, default = nil) if valid_622547 != nil: - section.add "X-Amz-Security-Token", valid_622547 - var valid_622548 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622547 + var valid_622548 = header.getOrDefault("X-Amz-Credential") valid_622548 = validateParameter(valid_622548, JString, required = false, default = nil) if valid_622548 != nil: - section.add "X-Amz-Algorithm", valid_622548 - var valid_622549 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622548 + var valid_622549 = header.getOrDefault("X-Amz-Security-Token") valid_622549 = validateParameter(valid_622549, JString, required = false, default = nil) if valid_622549 != nil: - section.add "X-Amz-SignedHeaders", valid_622549 + section.add "X-Amz-Security-Token", valid_622549 + var valid_622550 = header.getOrDefault("X-Amz-Algorithm") + valid_622550 = validateParameter(valid_622550, JString, required = false, + default = nil) + if valid_622550 != nil: + section.add "X-Amz-Algorithm", valid_622550 + var valid_622551 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622551 = validateParameter(valid_622551, JString, required = false, + default = nil) + if valid_622551 != nil: + section.add "X-Amz-SignedHeaders", valid_622551 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622550: Call_GetExportClientVpnClientCertificateRevocationList_622536; +proc call*(call_622552: Call_GetExportClientVpnClientCertificateRevocationList_622538; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Downloads the client certificate revocation list for the specified Client VPN endpoint. ## - let valid = call_622550.validator(path, query, header, formData, body) - let scheme = call_622550.pickScheme + let valid = call_622552.validator(path, query, header, formData, body) + let scheme = call_622552.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622550.url(scheme.get, call_622550.host, call_622550.base, - call_622550.route, valid.getOrDefault("path"), + let url = call_622552.url(scheme.get, call_622552.host, call_622552.base, + call_622552.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622550, url, valid) + result = atozHook(call_622552, url, valid) -proc call*(call_622551: Call_GetExportClientVpnClientCertificateRevocationList_622536; +proc call*(call_622553: Call_GetExportClientVpnClientCertificateRevocationList_622538; ClientVpnEndpointId: string; DryRun: bool = false; Action: string = "ExportClientVpnClientCertificateRevocationList"; Version: string = "2016-11-15"): Recallable = @@ -94029,23 +94056,23 @@ proc call*(call_622551: Call_GetExportClientVpnClientCertificateRevocationList_6 ## : The ID of the Client VPN endpoint. ## Action: string (required) ## Version: string (required) - var query_622552 = newJObject() - add(query_622552, "DryRun", newJBool(DryRun)) - add(query_622552, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) - add(query_622552, "Action", newJString(Action)) - add(query_622552, "Version", newJString(Version)) - result = call_622551.call(nil, query_622552, nil, nil, nil) + var query_622554 = newJObject() + add(query_622554, "DryRun", newJBool(DryRun)) + add(query_622554, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) + add(query_622554, "Action", newJString(Action)) + add(query_622554, "Version", newJString(Version)) + result = call_622553.call(nil, query_622554, nil, nil, nil) -var getExportClientVpnClientCertificateRevocationList* = Call_GetExportClientVpnClientCertificateRevocationList_622536( +var getExportClientVpnClientCertificateRevocationList* = Call_GetExportClientVpnClientCertificateRevocationList_622538( name: "getExportClientVpnClientCertificateRevocationList", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ExportClientVpnClientCertificateRevocationList", - validator: validate_GetExportClientVpnClientCertificateRevocationList_622537, - base: "/", url: url_GetExportClientVpnClientCertificateRevocationList_622538, + validator: validate_GetExportClientVpnClientCertificateRevocationList_622539, + base: "/", url: url_GetExportClientVpnClientCertificateRevocationList_622540, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostExportClientVpnClientConfiguration_622588 = ref object of OpenApiRestCall_610658 -proc url_PostExportClientVpnClientConfiguration_622590(protocol: Scheme; + Call_PostExportClientVpnClientConfiguration_622590 = ref object of OpenApiRestCall_610658 +proc url_PostExportClientVpnClientConfiguration_622592(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -94055,7 +94082,7 @@ proc url_PostExportClientVpnClientConfiguration_622590(protocol: Scheme; else: result.path = base & route -proc validate_PostExportClientVpnClientConfiguration_622589(path: JsonNode; +proc validate_PostExportClientVpnClientConfiguration_622591(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Downloads the contents of the Client VPN endpoint configuration file for the specified Client VPN endpoint. The Client VPN endpoint configuration file includes the Client VPN endpoint and certificate information clients need to establish a connection with the Client VPN endpoint. ## @@ -94067,16 +94094,16 @@ proc validate_PostExportClientVpnClientConfiguration_622589(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622591 = query.getOrDefault("Action") - valid_622591 = validateParameter(valid_622591, JString, required = true, default = newJString( + var valid_622593 = query.getOrDefault("Action") + valid_622593 = validateParameter(valid_622593, JString, required = true, default = newJString( "ExportClientVpnClientConfiguration")) - if valid_622591 != nil: - section.add "Action", valid_622591 - var valid_622592 = query.getOrDefault("Version") - valid_622592 = validateParameter(valid_622592, JString, required = true, + if valid_622593 != nil: + section.add "Action", valid_622593 + var valid_622594 = query.getOrDefault("Version") + valid_622594 = validateParameter(valid_622594, JString, required = true, default = newJString("2016-11-15")) - if valid_622592 != nil: - section.add "Version", valid_622592 + if valid_622594 != nil: + section.add "Version", valid_622594 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -94087,41 +94114,41 @@ proc validate_PostExportClientVpnClientConfiguration_622589(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622593 = header.getOrDefault("X-Amz-Signature") - valid_622593 = validateParameter(valid_622593, JString, required = false, - default = nil) - if valid_622593 != nil: - section.add "X-Amz-Signature", valid_622593 - var valid_622594 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622594 = validateParameter(valid_622594, JString, required = false, - default = nil) - if valid_622594 != nil: - section.add "X-Amz-Content-Sha256", valid_622594 - var valid_622595 = header.getOrDefault("X-Amz-Date") + var valid_622595 = header.getOrDefault("X-Amz-Signature") valid_622595 = validateParameter(valid_622595, JString, required = false, default = nil) if valid_622595 != nil: - section.add "X-Amz-Date", valid_622595 - var valid_622596 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622595 + var valid_622596 = header.getOrDefault("X-Amz-Content-Sha256") valid_622596 = validateParameter(valid_622596, JString, required = false, default = nil) if valid_622596 != nil: - section.add "X-Amz-Credential", valid_622596 - var valid_622597 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622596 + var valid_622597 = header.getOrDefault("X-Amz-Date") valid_622597 = validateParameter(valid_622597, JString, required = false, default = nil) if valid_622597 != nil: - section.add "X-Amz-Security-Token", valid_622597 - var valid_622598 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622597 + var valid_622598 = header.getOrDefault("X-Amz-Credential") valid_622598 = validateParameter(valid_622598, JString, required = false, default = nil) if valid_622598 != nil: - section.add "X-Amz-Algorithm", valid_622598 - var valid_622599 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622598 + var valid_622599 = header.getOrDefault("X-Amz-Security-Token") valid_622599 = validateParameter(valid_622599, JString, required = false, default = nil) if valid_622599 != nil: - section.add "X-Amz-SignedHeaders", valid_622599 + section.add "X-Amz-Security-Token", valid_622599 + var valid_622600 = header.getOrDefault("X-Amz-Algorithm") + valid_622600 = validateParameter(valid_622600, JString, required = false, + default = nil) + if valid_622600 != nil: + section.add "X-Amz-Algorithm", valid_622600 + var valid_622601 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622601 = validateParameter(valid_622601, JString, required = false, + default = nil) + if valid_622601 != nil: + section.add "X-Amz-SignedHeaders", valid_622601 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -94129,35 +94156,35 @@ proc validate_PostExportClientVpnClientConfiguration_622589(path: JsonNode; ## ClientVpnEndpointId: JString (required) ## : The ID of the Client VPN endpoint. section = newJObject() - var valid_622600 = formData.getOrDefault("DryRun") - valid_622600 = validateParameter(valid_622600, JBool, required = false, default = nil) - if valid_622600 != nil: - section.add "DryRun", valid_622600 + var valid_622602 = formData.getOrDefault("DryRun") + valid_622602 = validateParameter(valid_622602, JBool, required = false, default = nil) + if valid_622602 != nil: + section.add "DryRun", valid_622602 assert formData != nil, "formData argument is necessary due to required `ClientVpnEndpointId` field" - var valid_622601 = formData.getOrDefault("ClientVpnEndpointId") - valid_622601 = validateParameter(valid_622601, JString, required = true, + var valid_622603 = formData.getOrDefault("ClientVpnEndpointId") + valid_622603 = validateParameter(valid_622603, JString, required = true, default = nil) - if valid_622601 != nil: - section.add "ClientVpnEndpointId", valid_622601 + if valid_622603 != nil: + section.add "ClientVpnEndpointId", valid_622603 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622602: Call_PostExportClientVpnClientConfiguration_622588; +proc call*(call_622604: Call_PostExportClientVpnClientConfiguration_622590; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Downloads the contents of the Client VPN endpoint configuration file for the specified Client VPN endpoint. The Client VPN endpoint configuration file includes the Client VPN endpoint and certificate information clients need to establish a connection with the Client VPN endpoint. ## - let valid = call_622602.validator(path, query, header, formData, body) - let scheme = call_622602.pickScheme + let valid = call_622604.validator(path, query, header, formData, body) + let scheme = call_622604.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622602.url(scheme.get, call_622602.host, call_622602.base, - call_622602.route, valid.getOrDefault("path"), + let url = call_622604.url(scheme.get, call_622604.host, call_622604.base, + call_622604.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622602, url, valid) + result = atozHook(call_622604, url, valid) -proc call*(call_622603: Call_PostExportClientVpnClientConfiguration_622588; +proc call*(call_622605: Call_PostExportClientVpnClientConfiguration_622590; ClientVpnEndpointId: string; DryRun: bool = false; Action: string = "ExportClientVpnClientConfiguration"; Version: string = "2016-11-15"): Recallable = @@ -94169,24 +94196,24 @@ proc call*(call_622603: Call_PostExportClientVpnClientConfiguration_622588; ## Version: string (required) ## ClientVpnEndpointId: string (required) ## : The ID of the Client VPN endpoint. - var query_622604 = newJObject() - var formData_622605 = newJObject() - add(formData_622605, "DryRun", newJBool(DryRun)) - add(query_622604, "Action", newJString(Action)) - add(query_622604, "Version", newJString(Version)) - add(formData_622605, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) - result = call_622603.call(nil, query_622604, nil, formData_622605, nil) - -var postExportClientVpnClientConfiguration* = Call_PostExportClientVpnClientConfiguration_622588( + var query_622606 = newJObject() + var formData_622607 = newJObject() + add(formData_622607, "DryRun", newJBool(DryRun)) + add(query_622606, "Action", newJString(Action)) + add(query_622606, "Version", newJString(Version)) + add(formData_622607, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) + result = call_622605.call(nil, query_622606, nil, formData_622607, nil) + +var postExportClientVpnClientConfiguration* = Call_PostExportClientVpnClientConfiguration_622590( name: "postExportClientVpnClientConfiguration", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ExportClientVpnClientConfiguration", - validator: validate_PostExportClientVpnClientConfiguration_622589, base: "/", - url: url_PostExportClientVpnClientConfiguration_622590, + validator: validate_PostExportClientVpnClientConfiguration_622591, base: "/", + url: url_PostExportClientVpnClientConfiguration_622592, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetExportClientVpnClientConfiguration_622571 = ref object of OpenApiRestCall_610658 -proc url_GetExportClientVpnClientConfiguration_622573(protocol: Scheme; + Call_GetExportClientVpnClientConfiguration_622573 = ref object of OpenApiRestCall_610658 +proc url_GetExportClientVpnClientConfiguration_622575(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -94196,7 +94223,7 @@ proc url_GetExportClientVpnClientConfiguration_622573(protocol: Scheme; else: result.path = base & route -proc validate_GetExportClientVpnClientConfiguration_622572(path: JsonNode; +proc validate_GetExportClientVpnClientConfiguration_622574(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Downloads the contents of the Client VPN endpoint configuration file for the specified Client VPN endpoint. The Client VPN endpoint configuration file includes the Client VPN endpoint and certificate information clients need to establish a connection with the Client VPN endpoint. ## @@ -94212,26 +94239,26 @@ proc validate_GetExportClientVpnClientConfiguration_622572(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622574 = query.getOrDefault("DryRun") - valid_622574 = validateParameter(valid_622574, JBool, required = false, default = nil) - if valid_622574 != nil: - section.add "DryRun", valid_622574 + var valid_622576 = query.getOrDefault("DryRun") + valid_622576 = validateParameter(valid_622576, JBool, required = false, default = nil) + if valid_622576 != nil: + section.add "DryRun", valid_622576 assert query != nil, "query argument is necessary due to required `ClientVpnEndpointId` field" - var valid_622575 = query.getOrDefault("ClientVpnEndpointId") - valid_622575 = validateParameter(valid_622575, JString, required = true, + var valid_622577 = query.getOrDefault("ClientVpnEndpointId") + valid_622577 = validateParameter(valid_622577, JString, required = true, default = nil) - if valid_622575 != nil: - section.add "ClientVpnEndpointId", valid_622575 - var valid_622576 = query.getOrDefault("Action") - valid_622576 = validateParameter(valid_622576, JString, required = true, default = newJString( + if valid_622577 != nil: + section.add "ClientVpnEndpointId", valid_622577 + var valid_622578 = query.getOrDefault("Action") + valid_622578 = validateParameter(valid_622578, JString, required = true, default = newJString( "ExportClientVpnClientConfiguration")) - if valid_622576 != nil: - section.add "Action", valid_622576 - var valid_622577 = query.getOrDefault("Version") - valid_622577 = validateParameter(valid_622577, JString, required = true, + if valid_622578 != nil: + section.add "Action", valid_622578 + var valid_622579 = query.getOrDefault("Version") + valid_622579 = validateParameter(valid_622579, JString, required = true, default = newJString("2016-11-15")) - if valid_622577 != nil: - section.add "Version", valid_622577 + if valid_622579 != nil: + section.add "Version", valid_622579 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -94242,62 +94269,62 @@ proc validate_GetExportClientVpnClientConfiguration_622572(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622578 = header.getOrDefault("X-Amz-Signature") - valid_622578 = validateParameter(valid_622578, JString, required = false, - default = nil) - if valid_622578 != nil: - section.add "X-Amz-Signature", valid_622578 - var valid_622579 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622579 = validateParameter(valid_622579, JString, required = false, - default = nil) - if valid_622579 != nil: - section.add "X-Amz-Content-Sha256", valid_622579 - var valid_622580 = header.getOrDefault("X-Amz-Date") + var valid_622580 = header.getOrDefault("X-Amz-Signature") valid_622580 = validateParameter(valid_622580, JString, required = false, default = nil) if valid_622580 != nil: - section.add "X-Amz-Date", valid_622580 - var valid_622581 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622580 + var valid_622581 = header.getOrDefault("X-Amz-Content-Sha256") valid_622581 = validateParameter(valid_622581, JString, required = false, default = nil) if valid_622581 != nil: - section.add "X-Amz-Credential", valid_622581 - var valid_622582 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622581 + var valid_622582 = header.getOrDefault("X-Amz-Date") valid_622582 = validateParameter(valid_622582, JString, required = false, default = nil) if valid_622582 != nil: - section.add "X-Amz-Security-Token", valid_622582 - var valid_622583 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622582 + var valid_622583 = header.getOrDefault("X-Amz-Credential") valid_622583 = validateParameter(valid_622583, JString, required = false, default = nil) if valid_622583 != nil: - section.add "X-Amz-Algorithm", valid_622583 - var valid_622584 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622583 + var valid_622584 = header.getOrDefault("X-Amz-Security-Token") valid_622584 = validateParameter(valid_622584, JString, required = false, default = nil) if valid_622584 != nil: - section.add "X-Amz-SignedHeaders", valid_622584 + section.add "X-Amz-Security-Token", valid_622584 + var valid_622585 = header.getOrDefault("X-Amz-Algorithm") + valid_622585 = validateParameter(valid_622585, JString, required = false, + default = nil) + if valid_622585 != nil: + section.add "X-Amz-Algorithm", valid_622585 + var valid_622586 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622586 = validateParameter(valid_622586, JString, required = false, + default = nil) + if valid_622586 != nil: + section.add "X-Amz-SignedHeaders", valid_622586 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622585: Call_GetExportClientVpnClientConfiguration_622571; +proc call*(call_622587: Call_GetExportClientVpnClientConfiguration_622573; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Downloads the contents of the Client VPN endpoint configuration file for the specified Client VPN endpoint. The Client VPN endpoint configuration file includes the Client VPN endpoint and certificate information clients need to establish a connection with the Client VPN endpoint. ## - let valid = call_622585.validator(path, query, header, formData, body) - let scheme = call_622585.pickScheme + let valid = call_622587.validator(path, query, header, formData, body) + let scheme = call_622587.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622585.url(scheme.get, call_622585.host, call_622585.base, - call_622585.route, valid.getOrDefault("path"), + let url = call_622587.url(scheme.get, call_622587.host, call_622587.base, + call_622587.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622585, url, valid) + result = atozHook(call_622587, url, valid) -proc call*(call_622586: Call_GetExportClientVpnClientConfiguration_622571; +proc call*(call_622588: Call_GetExportClientVpnClientConfiguration_622573; ClientVpnEndpointId: string; DryRun: bool = false; Action: string = "ExportClientVpnClientConfiguration"; Version: string = "2016-11-15"): Recallable = @@ -94309,23 +94336,23 @@ proc call*(call_622586: Call_GetExportClientVpnClientConfiguration_622571; ## : The ID of the Client VPN endpoint. ## Action: string (required) ## Version: string (required) - var query_622587 = newJObject() - add(query_622587, "DryRun", newJBool(DryRun)) - add(query_622587, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) - add(query_622587, "Action", newJString(Action)) - add(query_622587, "Version", newJString(Version)) - result = call_622586.call(nil, query_622587, nil, nil, nil) + var query_622589 = newJObject() + add(query_622589, "DryRun", newJBool(DryRun)) + add(query_622589, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) + add(query_622589, "Action", newJString(Action)) + add(query_622589, "Version", newJString(Version)) + result = call_622588.call(nil, query_622589, nil, nil, nil) -var getExportClientVpnClientConfiguration* = Call_GetExportClientVpnClientConfiguration_622571( +var getExportClientVpnClientConfiguration* = Call_GetExportClientVpnClientConfiguration_622573( name: "getExportClientVpnClientConfiguration", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ExportClientVpnClientConfiguration", - validator: validate_GetExportClientVpnClientConfiguration_622572, base: "/", - url: url_GetExportClientVpnClientConfiguration_622573, + validator: validate_GetExportClientVpnClientConfiguration_622574, base: "/", + url: url_GetExportClientVpnClientConfiguration_622575, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostExportImage_622629 = ref object of OpenApiRestCall_610658 -proc url_PostExportImage_622631(protocol: Scheme; host: string; base: string; + Call_PostExportImage_622631 = ref object of OpenApiRestCall_610658 +proc url_PostExportImage_622633(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -94335,7 +94362,7 @@ proc url_PostExportImage_622631(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostExportImage_622630(path: JsonNode; query: JsonNode; +proc validate_PostExportImage_622632(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Exports an Amazon Machine Image (AMI) to a VM file. For more information, see Exporting a VM Directory from an Amazon Machine Image (AMI) in the VM Import/Export User Guide. @@ -94348,16 +94375,16 @@ proc validate_PostExportImage_622630(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622632 = query.getOrDefault("Action") - valid_622632 = validateParameter(valid_622632, JString, required = true, + var valid_622634 = query.getOrDefault("Action") + valid_622634 = validateParameter(valid_622634, JString, required = true, default = newJString("ExportImage")) - if valid_622632 != nil: - section.add "Action", valid_622632 - var valid_622633 = query.getOrDefault("Version") - valid_622633 = validateParameter(valid_622633, JString, required = true, + if valid_622634 != nil: + section.add "Action", valid_622634 + var valid_622635 = query.getOrDefault("Version") + valid_622635 = validateParameter(valid_622635, JString, required = true, default = newJString("2016-11-15")) - if valid_622633 != nil: - section.add "Version", valid_622633 + if valid_622635 != nil: + section.add "Version", valid_622635 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -94368,41 +94395,41 @@ proc validate_PostExportImage_622630(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622634 = header.getOrDefault("X-Amz-Signature") - valid_622634 = validateParameter(valid_622634, JString, required = false, - default = nil) - if valid_622634 != nil: - section.add "X-Amz-Signature", valid_622634 - var valid_622635 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622635 = validateParameter(valid_622635, JString, required = false, - default = nil) - if valid_622635 != nil: - section.add "X-Amz-Content-Sha256", valid_622635 - var valid_622636 = header.getOrDefault("X-Amz-Date") + var valid_622636 = header.getOrDefault("X-Amz-Signature") valid_622636 = validateParameter(valid_622636, JString, required = false, default = nil) if valid_622636 != nil: - section.add "X-Amz-Date", valid_622636 - var valid_622637 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622636 + var valid_622637 = header.getOrDefault("X-Amz-Content-Sha256") valid_622637 = validateParameter(valid_622637, JString, required = false, default = nil) if valid_622637 != nil: - section.add "X-Amz-Credential", valid_622637 - var valid_622638 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622637 + var valid_622638 = header.getOrDefault("X-Amz-Date") valid_622638 = validateParameter(valid_622638, JString, required = false, default = nil) if valid_622638 != nil: - section.add "X-Amz-Security-Token", valid_622638 - var valid_622639 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622638 + var valid_622639 = header.getOrDefault("X-Amz-Credential") valid_622639 = validateParameter(valid_622639, JString, required = false, default = nil) if valid_622639 != nil: - section.add "X-Amz-Algorithm", valid_622639 - var valid_622640 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622639 + var valid_622640 = header.getOrDefault("X-Amz-Security-Token") valid_622640 = validateParameter(valid_622640, JString, required = false, default = nil) if valid_622640 != nil: - section.add "X-Amz-SignedHeaders", valid_622640 + section.add "X-Amz-Security-Token", valid_622640 + var valid_622641 = header.getOrDefault("X-Amz-Algorithm") + valid_622641 = validateParameter(valid_622641, JString, required = false, + default = nil) + if valid_622641 != nil: + section.add "X-Amz-Algorithm", valid_622641 + var valid_622642 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622642 = validateParameter(valid_622642, JString, required = false, + default = nil) + if valid_622642 != nil: + section.add "X-Amz-SignedHeaders", valid_622642 result.add "header", section ## parameters in `formData` object: ## DiskImageFormat: JString (required) @@ -94424,63 +94451,63 @@ proc validate_PostExportImage_622630(path: JsonNode; query: JsonNode; ## ClientToken: JString ## : Token to enable idempotency for export image requests. section = newJObject() - var valid_622641 = formData.getOrDefault("DiskImageFormat") - valid_622641 = validateParameter(valid_622641, JString, required = true, + var valid_622643 = formData.getOrDefault("DiskImageFormat") + valid_622643 = validateParameter(valid_622643, JString, required = true, default = newJString("VMDK")) - if valid_622641 != nil: - section.add "DiskImageFormat", valid_622641 - var valid_622642 = formData.getOrDefault("S3ExportLocation.S3Bucket") - valid_622642 = validateParameter(valid_622642, JString, required = false, - default = nil) - if valid_622642 != nil: - section.add "S3ExportLocation.S3Bucket", valid_622642 - var valid_622643 = formData.getOrDefault("Description") - valid_622643 = validateParameter(valid_622643, JString, required = false, - default = nil) if valid_622643 != nil: - section.add "Description", valid_622643 - var valid_622644 = formData.getOrDefault("RoleName") + section.add "DiskImageFormat", valid_622643 + var valid_622644 = formData.getOrDefault("S3ExportLocation.S3Bucket") valid_622644 = validateParameter(valid_622644, JString, required = false, default = nil) if valid_622644 != nil: - section.add "RoleName", valid_622644 - var valid_622645 = formData.getOrDefault("S3ExportLocation.S3Prefix") + section.add "S3ExportLocation.S3Bucket", valid_622644 + var valid_622645 = formData.getOrDefault("Description") valid_622645 = validateParameter(valid_622645, JString, required = false, default = nil) if valid_622645 != nil: - section.add "S3ExportLocation.S3Prefix", valid_622645 - var valid_622646 = formData.getOrDefault("DryRun") - valid_622646 = validateParameter(valid_622646, JBool, required = false, default = nil) + section.add "Description", valid_622645 + var valid_622646 = formData.getOrDefault("RoleName") + valid_622646 = validateParameter(valid_622646, JString, required = false, + default = nil) if valid_622646 != nil: - section.add "DryRun", valid_622646 - var valid_622647 = formData.getOrDefault("ImageId") - valid_622647 = validateParameter(valid_622647, JString, required = true, + section.add "RoleName", valid_622646 + var valid_622647 = formData.getOrDefault("S3ExportLocation.S3Prefix") + valid_622647 = validateParameter(valid_622647, JString, required = false, default = nil) if valid_622647 != nil: - section.add "ImageId", valid_622647 - var valid_622648 = formData.getOrDefault("ClientToken") - valid_622648 = validateParameter(valid_622648, JString, required = false, - default = nil) + section.add "S3ExportLocation.S3Prefix", valid_622647 + var valid_622648 = formData.getOrDefault("DryRun") + valid_622648 = validateParameter(valid_622648, JBool, required = false, default = nil) if valid_622648 != nil: - section.add "ClientToken", valid_622648 + section.add "DryRun", valid_622648 + var valid_622649 = formData.getOrDefault("ImageId") + valid_622649 = validateParameter(valid_622649, JString, required = true, + default = nil) + if valid_622649 != nil: + section.add "ImageId", valid_622649 + var valid_622650 = formData.getOrDefault("ClientToken") + valid_622650 = validateParameter(valid_622650, JString, required = false, + default = nil) + if valid_622650 != nil: + section.add "ClientToken", valid_622650 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622649: Call_PostExportImage_622629; path: JsonNode; query: JsonNode; +proc call*(call_622651: Call_PostExportImage_622631; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Exports an Amazon Machine Image (AMI) to a VM file. For more information, see Exporting a VM Directory from an Amazon Machine Image (AMI) in the VM Import/Export User Guide. ## - let valid = call_622649.validator(path, query, header, formData, body) - let scheme = call_622649.pickScheme + let valid = call_622651.validator(path, query, header, formData, body) + let scheme = call_622651.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622649.url(scheme.get, call_622649.host, call_622649.base, - call_622649.route, valid.getOrDefault("path"), + let url = call_622651.url(scheme.get, call_622651.host, call_622651.base, + call_622651.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622649, url, valid) + result = atozHook(call_622651, url, valid) -proc call*(call_622650: Call_PostExportImage_622629; ImageId: string; +proc call*(call_622652: Call_PostExportImage_622631; ImageId: string; DiskImageFormat: string = "VMDK"; S3ExportLocationS3Bucket: string = ""; Description: string = ""; RoleName: string = ""; S3ExportLocationS3Prefix: string = ""; DryRun: bool = false; @@ -94508,29 +94535,29 @@ proc call*(call_622650: Call_PostExportImage_622629; ImageId: string; ## Version: string (required) ## ClientToken: string ## : Token to enable idempotency for export image requests. - var query_622651 = newJObject() - var formData_622652 = newJObject() - add(formData_622652, "DiskImageFormat", newJString(DiskImageFormat)) - add(formData_622652, "S3ExportLocation.S3Bucket", + var query_622653 = newJObject() + var formData_622654 = newJObject() + add(formData_622654, "DiskImageFormat", newJString(DiskImageFormat)) + add(formData_622654, "S3ExportLocation.S3Bucket", newJString(S3ExportLocationS3Bucket)) - add(formData_622652, "Description", newJString(Description)) - add(formData_622652, "RoleName", newJString(RoleName)) - add(formData_622652, "S3ExportLocation.S3Prefix", + add(formData_622654, "Description", newJString(Description)) + add(formData_622654, "RoleName", newJString(RoleName)) + add(formData_622654, "S3ExportLocation.S3Prefix", newJString(S3ExportLocationS3Prefix)) - add(formData_622652, "DryRun", newJBool(DryRun)) - add(query_622651, "Action", newJString(Action)) - add(formData_622652, "ImageId", newJString(ImageId)) - add(query_622651, "Version", newJString(Version)) - add(formData_622652, "ClientToken", newJString(ClientToken)) - result = call_622650.call(nil, query_622651, nil, formData_622652, nil) - -var postExportImage* = Call_PostExportImage_622629(name: "postExportImage", + add(formData_622654, "DryRun", newJBool(DryRun)) + add(query_622653, "Action", newJString(Action)) + add(formData_622654, "ImageId", newJString(ImageId)) + add(query_622653, "Version", newJString(Version)) + add(formData_622654, "ClientToken", newJString(ClientToken)) + result = call_622652.call(nil, query_622653, nil, formData_622654, nil) + +var postExportImage* = Call_PostExportImage_622631(name: "postExportImage", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", - route: "/#Action=ExportImage", validator: validate_PostExportImage_622630, - base: "/", url: url_PostExportImage_622631, schemes: {Scheme.Https, Scheme.Http}) + route: "/#Action=ExportImage", validator: validate_PostExportImage_622632, + base: "/", url: url_PostExportImage_622633, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetExportImage_622606 = ref object of OpenApiRestCall_610658 -proc url_GetExportImage_622608(protocol: Scheme; host: string; base: string; + Call_GetExportImage_622608 = ref object of OpenApiRestCall_610658 +proc url_GetExportImage_622610(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -94540,7 +94567,7 @@ proc url_GetExportImage_622608(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetExportImage_622607(path: JsonNode; query: JsonNode; +proc validate_GetExportImage_622609(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Exports an Amazon Machine Image (AMI) to a VM file. For more information, see Exporting a VM Directory from an Amazon Machine Image (AMI) in the VM Import/Export User Guide. @@ -94571,56 +94598,56 @@ proc validate_GetExportImage_622607(path: JsonNode; query: JsonNode; ## ClientToken: JString ## : Token to enable idempotency for export image requests. section = newJObject() - var valid_622609 = query.getOrDefault("S3ExportLocation.S3Bucket") - valid_622609 = validateParameter(valid_622609, JString, required = false, - default = nil) - if valid_622609 != nil: - section.add "S3ExportLocation.S3Bucket", valid_622609 - assert query != nil, "query argument is necessary due to required `ImageId` field" - var valid_622610 = query.getOrDefault("ImageId") - valid_622610 = validateParameter(valid_622610, JString, required = true, - default = nil) - if valid_622610 != nil: - section.add "ImageId", valid_622610 - var valid_622611 = query.getOrDefault("S3ExportLocation.S3Prefix") + var valid_622611 = query.getOrDefault("S3ExportLocation.S3Bucket") valid_622611 = validateParameter(valid_622611, JString, required = false, default = nil) if valid_622611 != nil: - section.add "S3ExportLocation.S3Prefix", valid_622611 - var valid_622612 = query.getOrDefault("DryRun") - valid_622612 = validateParameter(valid_622612, JBool, required = false, default = nil) + section.add "S3ExportLocation.S3Bucket", valid_622611 + assert query != nil, "query argument is necessary due to required `ImageId` field" + var valid_622612 = query.getOrDefault("ImageId") + valid_622612 = validateParameter(valid_622612, JString, required = true, + default = nil) if valid_622612 != nil: - section.add "DryRun", valid_622612 - var valid_622613 = query.getOrDefault("RoleName") + section.add "ImageId", valid_622612 + var valid_622613 = query.getOrDefault("S3ExportLocation.S3Prefix") valid_622613 = validateParameter(valid_622613, JString, required = false, default = nil) if valid_622613 != nil: - section.add "RoleName", valid_622613 - var valid_622614 = query.getOrDefault("Action") - valid_622614 = validateParameter(valid_622614, JString, required = true, - default = newJString("ExportImage")) + section.add "S3ExportLocation.S3Prefix", valid_622613 + var valid_622614 = query.getOrDefault("DryRun") + valid_622614 = validateParameter(valid_622614, JBool, required = false, default = nil) if valid_622614 != nil: - section.add "Action", valid_622614 - var valid_622615 = query.getOrDefault("Description") + section.add "DryRun", valid_622614 + var valid_622615 = query.getOrDefault("RoleName") valid_622615 = validateParameter(valid_622615, JString, required = false, default = nil) if valid_622615 != nil: - section.add "Description", valid_622615 - var valid_622616 = query.getOrDefault("Version") + section.add "RoleName", valid_622615 + var valid_622616 = query.getOrDefault("Action") valid_622616 = validateParameter(valid_622616, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("ExportImage")) if valid_622616 != nil: - section.add "Version", valid_622616 - var valid_622617 = query.getOrDefault("DiskImageFormat") - valid_622617 = validateParameter(valid_622617, JString, required = true, - default = newJString("VMDK")) - if valid_622617 != nil: - section.add "DiskImageFormat", valid_622617 - var valid_622618 = query.getOrDefault("ClientToken") - valid_622618 = validateParameter(valid_622618, JString, required = false, + section.add "Action", valid_622616 + var valid_622617 = query.getOrDefault("Description") + valid_622617 = validateParameter(valid_622617, JString, required = false, default = nil) + if valid_622617 != nil: + section.add "Description", valid_622617 + var valid_622618 = query.getOrDefault("Version") + valid_622618 = validateParameter(valid_622618, JString, required = true, + default = newJString("2016-11-15")) if valid_622618 != nil: - section.add "ClientToken", valid_622618 + section.add "Version", valid_622618 + var valid_622619 = query.getOrDefault("DiskImageFormat") + valid_622619 = validateParameter(valid_622619, JString, required = true, + default = newJString("VMDK")) + if valid_622619 != nil: + section.add "DiskImageFormat", valid_622619 + var valid_622620 = query.getOrDefault("ClientToken") + valid_622620 = validateParameter(valid_622620, JString, required = false, + default = nil) + if valid_622620 != nil: + section.add "ClientToken", valid_622620 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -94631,61 +94658,61 @@ proc validate_GetExportImage_622607(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622619 = header.getOrDefault("X-Amz-Signature") - valid_622619 = validateParameter(valid_622619, JString, required = false, - default = nil) - if valid_622619 != nil: - section.add "X-Amz-Signature", valid_622619 - var valid_622620 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622620 = validateParameter(valid_622620, JString, required = false, - default = nil) - if valid_622620 != nil: - section.add "X-Amz-Content-Sha256", valid_622620 - var valid_622621 = header.getOrDefault("X-Amz-Date") + var valid_622621 = header.getOrDefault("X-Amz-Signature") valid_622621 = validateParameter(valid_622621, JString, required = false, default = nil) if valid_622621 != nil: - section.add "X-Amz-Date", valid_622621 - var valid_622622 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622621 + var valid_622622 = header.getOrDefault("X-Amz-Content-Sha256") valid_622622 = validateParameter(valid_622622, JString, required = false, default = nil) if valid_622622 != nil: - section.add "X-Amz-Credential", valid_622622 - var valid_622623 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622622 + var valid_622623 = header.getOrDefault("X-Amz-Date") valid_622623 = validateParameter(valid_622623, JString, required = false, default = nil) if valid_622623 != nil: - section.add "X-Amz-Security-Token", valid_622623 - var valid_622624 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622623 + var valid_622624 = header.getOrDefault("X-Amz-Credential") valid_622624 = validateParameter(valid_622624, JString, required = false, default = nil) if valid_622624 != nil: - section.add "X-Amz-Algorithm", valid_622624 - var valid_622625 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622624 + var valid_622625 = header.getOrDefault("X-Amz-Security-Token") valid_622625 = validateParameter(valid_622625, JString, required = false, default = nil) if valid_622625 != nil: - section.add "X-Amz-SignedHeaders", valid_622625 + section.add "X-Amz-Security-Token", valid_622625 + var valid_622626 = header.getOrDefault("X-Amz-Algorithm") + valid_622626 = validateParameter(valid_622626, JString, required = false, + default = nil) + if valid_622626 != nil: + section.add "X-Amz-Algorithm", valid_622626 + var valid_622627 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622627 = validateParameter(valid_622627, JString, required = false, + default = nil) + if valid_622627 != nil: + section.add "X-Amz-SignedHeaders", valid_622627 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622626: Call_GetExportImage_622606; path: JsonNode; query: JsonNode; +proc call*(call_622628: Call_GetExportImage_622608; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Exports an Amazon Machine Image (AMI) to a VM file. For more information, see Exporting a VM Directory from an Amazon Machine Image (AMI) in the VM Import/Export User Guide. ## - let valid = call_622626.validator(path, query, header, formData, body) - let scheme = call_622626.pickScheme + let valid = call_622628.validator(path, query, header, formData, body) + let scheme = call_622628.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622626.url(scheme.get, call_622626.host, call_622626.base, - call_622626.route, valid.getOrDefault("path"), + let url = call_622628.url(scheme.get, call_622628.host, call_622628.base, + call_622628.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622626, url, valid) + result = atozHook(call_622628, url, valid) -proc call*(call_622627: Call_GetExportImage_622606; ImageId: string; +proc call*(call_622629: Call_GetExportImage_622608; ImageId: string; S3ExportLocationS3Bucket: string = ""; S3ExportLocationS3Prefix: string = ""; DryRun: bool = false; RoleName: string = ""; Action: string = "ExportImage"; @@ -94713,28 +94740,28 @@ proc call*(call_622627: Call_GetExportImage_622606; ImageId: string; ## : The disk image format. ## ClientToken: string ## : Token to enable idempotency for export image requests. - var query_622628 = newJObject() - add(query_622628, "S3ExportLocation.S3Bucket", + var query_622630 = newJObject() + add(query_622630, "S3ExportLocation.S3Bucket", newJString(S3ExportLocationS3Bucket)) - add(query_622628, "ImageId", newJString(ImageId)) - add(query_622628, "S3ExportLocation.S3Prefix", + add(query_622630, "ImageId", newJString(ImageId)) + add(query_622630, "S3ExportLocation.S3Prefix", newJString(S3ExportLocationS3Prefix)) - add(query_622628, "DryRun", newJBool(DryRun)) - add(query_622628, "RoleName", newJString(RoleName)) - add(query_622628, "Action", newJString(Action)) - add(query_622628, "Description", newJString(Description)) - add(query_622628, "Version", newJString(Version)) - add(query_622628, "DiskImageFormat", newJString(DiskImageFormat)) - add(query_622628, "ClientToken", newJString(ClientToken)) - result = call_622627.call(nil, query_622628, nil, nil, nil) - -var getExportImage* = Call_GetExportImage_622606(name: "getExportImage", + add(query_622630, "DryRun", newJBool(DryRun)) + add(query_622630, "RoleName", newJString(RoleName)) + add(query_622630, "Action", newJString(Action)) + add(query_622630, "Description", newJString(Description)) + add(query_622630, "Version", newJString(Version)) + add(query_622630, "DiskImageFormat", newJString(DiskImageFormat)) + add(query_622630, "ClientToken", newJString(ClientToken)) + result = call_622629.call(nil, query_622630, nil, nil, nil) + +var getExportImage* = Call_GetExportImage_622608(name: "getExportImage", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=ExportImage", validator: validate_GetExportImage_622607, - base: "/", url: url_GetExportImage_622608, schemes: {Scheme.Https, Scheme.Http}) + route: "/#Action=ExportImage", validator: validate_GetExportImage_622609, + base: "/", url: url_GetExportImage_622610, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostExportTransitGatewayRoutes_622672 = ref object of OpenApiRestCall_610658 -proc url_PostExportTransitGatewayRoutes_622674(protocol: Scheme; host: string; + Call_PostExportTransitGatewayRoutes_622674 = ref object of OpenApiRestCall_610658 +proc url_PostExportTransitGatewayRoutes_622676(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -94744,7 +94771,7 @@ proc url_PostExportTransitGatewayRoutes_622674(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostExportTransitGatewayRoutes_622673(path: JsonNode; +proc validate_PostExportTransitGatewayRoutes_622675(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Exports routes from the specified transit gateway route table to the specified S3 bucket. By default, all routes are exported. Alternatively, you can filter by CIDR range. ## @@ -94756,16 +94783,16 @@ proc validate_PostExportTransitGatewayRoutes_622673(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622675 = query.getOrDefault("Action") - valid_622675 = validateParameter(valid_622675, JString, required = true, default = newJString( + var valid_622677 = query.getOrDefault("Action") + valid_622677 = validateParameter(valid_622677, JString, required = true, default = newJString( "ExportTransitGatewayRoutes")) - if valid_622675 != nil: - section.add "Action", valid_622675 - var valid_622676 = query.getOrDefault("Version") - valid_622676 = validateParameter(valid_622676, JString, required = true, + if valid_622677 != nil: + section.add "Action", valid_622677 + var valid_622678 = query.getOrDefault("Version") + valid_622678 = validateParameter(valid_622678, JString, required = true, default = newJString("2016-11-15")) - if valid_622676 != nil: - section.add "Version", valid_622676 + if valid_622678 != nil: + section.add "Version", valid_622678 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -94776,41 +94803,41 @@ proc validate_PostExportTransitGatewayRoutes_622673(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622677 = header.getOrDefault("X-Amz-Signature") - valid_622677 = validateParameter(valid_622677, JString, required = false, - default = nil) - if valid_622677 != nil: - section.add "X-Amz-Signature", valid_622677 - var valid_622678 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622678 = validateParameter(valid_622678, JString, required = false, - default = nil) - if valid_622678 != nil: - section.add "X-Amz-Content-Sha256", valid_622678 - var valid_622679 = header.getOrDefault("X-Amz-Date") + var valid_622679 = header.getOrDefault("X-Amz-Signature") valid_622679 = validateParameter(valid_622679, JString, required = false, default = nil) if valid_622679 != nil: - section.add "X-Amz-Date", valid_622679 - var valid_622680 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622679 + var valid_622680 = header.getOrDefault("X-Amz-Content-Sha256") valid_622680 = validateParameter(valid_622680, JString, required = false, default = nil) if valid_622680 != nil: - section.add "X-Amz-Credential", valid_622680 - var valid_622681 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622680 + var valid_622681 = header.getOrDefault("X-Amz-Date") valid_622681 = validateParameter(valid_622681, JString, required = false, default = nil) if valid_622681 != nil: - section.add "X-Amz-Security-Token", valid_622681 - var valid_622682 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622681 + var valid_622682 = header.getOrDefault("X-Amz-Credential") valid_622682 = validateParameter(valid_622682, JString, required = false, default = nil) if valid_622682 != nil: - section.add "X-Amz-Algorithm", valid_622682 - var valid_622683 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622682 + var valid_622683 = header.getOrDefault("X-Amz-Security-Token") valid_622683 = validateParameter(valid_622683, JString, required = false, default = nil) if valid_622683 != nil: - section.add "X-Amz-SignedHeaders", valid_622683 + section.add "X-Amz-Security-Token", valid_622683 + var valid_622684 = header.getOrDefault("X-Amz-Algorithm") + valid_622684 = validateParameter(valid_622684, JString, required = false, + default = nil) + if valid_622684 != nil: + section.add "X-Amz-Algorithm", valid_622684 + var valid_622685 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622685 = validateParameter(valid_622685, JString, required = false, + default = nil) + if valid_622685 != nil: + section.add "X-Amz-SignedHeaders", valid_622685 result.add "header", section ## parameters in `formData` object: ## TransitGatewayRouteTableId: JString (required) @@ -94823,43 +94850,43 @@ proc validate_PostExportTransitGatewayRoutes_622673(path: JsonNode; ## :

    One or more filters. The possible values are:

    section = newJObject() assert formData != nil, "formData argument is necessary due to required `TransitGatewayRouteTableId` field" - var valid_622684 = formData.getOrDefault("TransitGatewayRouteTableId") - valid_622684 = validateParameter(valid_622684, JString, required = true, + var valid_622686 = formData.getOrDefault("TransitGatewayRouteTableId") + valid_622686 = validateParameter(valid_622686, JString, required = true, default = nil) - if valid_622684 != nil: - section.add "TransitGatewayRouteTableId", valid_622684 - var valid_622685 = formData.getOrDefault("S3Bucket") - valid_622685 = validateParameter(valid_622685, JString, required = true, - default = nil) - if valid_622685 != nil: - section.add "S3Bucket", valid_622685 - var valid_622686 = formData.getOrDefault("DryRun") - valid_622686 = validateParameter(valid_622686, JBool, required = false, default = nil) if valid_622686 != nil: - section.add "DryRun", valid_622686 - var valid_622687 = formData.getOrDefault("Filter") - valid_622687 = validateParameter(valid_622687, JArray, required = false, + section.add "TransitGatewayRouteTableId", valid_622686 + var valid_622687 = formData.getOrDefault("S3Bucket") + valid_622687 = validateParameter(valid_622687, JString, required = true, default = nil) if valid_622687 != nil: - section.add "Filter", valid_622687 + section.add "S3Bucket", valid_622687 + var valid_622688 = formData.getOrDefault("DryRun") + valid_622688 = validateParameter(valid_622688, JBool, required = false, default = nil) + if valid_622688 != nil: + section.add "DryRun", valid_622688 + var valid_622689 = formData.getOrDefault("Filter") + valid_622689 = validateParameter(valid_622689, JArray, required = false, + default = nil) + if valid_622689 != nil: + section.add "Filter", valid_622689 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622688: Call_PostExportTransitGatewayRoutes_622672; path: JsonNode; +proc call*(call_622690: Call_PostExportTransitGatewayRoutes_622674; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Exports routes from the specified transit gateway route table to the specified S3 bucket. By default, all routes are exported. Alternatively, you can filter by CIDR range. ## - let valid = call_622688.validator(path, query, header, formData, body) - let scheme = call_622688.pickScheme + let valid = call_622690.validator(path, query, header, formData, body) + let scheme = call_622690.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622688.url(scheme.get, call_622688.host, call_622688.base, - call_622688.route, valid.getOrDefault("path"), + let url = call_622690.url(scheme.get, call_622690.host, call_622690.base, + call_622690.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622688, url, valid) + result = atozHook(call_622690, url, valid) -proc call*(call_622689: Call_PostExportTransitGatewayRoutes_622672; +proc call*(call_622691: Call_PostExportTransitGatewayRoutes_622674; TransitGatewayRouteTableId: string; S3Bucket: string; DryRun: bool = false; Action: string = "ExportTransitGatewayRoutes"; Version: string = "2016-11-15"; Filter: JsonNode = nil): Recallable = @@ -94875,27 +94902,27 @@ proc call*(call_622689: Call_PostExportTransitGatewayRoutes_622672; ## Version: string (required) ## Filter: JArray ## :

    One or more filters. The possible values are:

    - var query_622690 = newJObject() - var formData_622691 = newJObject() - add(formData_622691, "TransitGatewayRouteTableId", + var query_622692 = newJObject() + var formData_622693 = newJObject() + add(formData_622693, "TransitGatewayRouteTableId", newJString(TransitGatewayRouteTableId)) - add(formData_622691, "S3Bucket", newJString(S3Bucket)) - add(formData_622691, "DryRun", newJBool(DryRun)) - add(query_622690, "Action", newJString(Action)) - add(query_622690, "Version", newJString(Version)) + add(formData_622693, "S3Bucket", newJString(S3Bucket)) + add(formData_622693, "DryRun", newJBool(DryRun)) + add(query_622692, "Action", newJString(Action)) + add(query_622692, "Version", newJString(Version)) if Filter != nil: - formData_622691.add "Filter", Filter - result = call_622689.call(nil, query_622690, nil, formData_622691, nil) + formData_622693.add "Filter", Filter + result = call_622691.call(nil, query_622692, nil, formData_622693, nil) -var postExportTransitGatewayRoutes* = Call_PostExportTransitGatewayRoutes_622672( +var postExportTransitGatewayRoutes* = Call_PostExportTransitGatewayRoutes_622674( name: "postExportTransitGatewayRoutes", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ExportTransitGatewayRoutes", - validator: validate_PostExportTransitGatewayRoutes_622673, base: "/", - url: url_PostExportTransitGatewayRoutes_622674, + validator: validate_PostExportTransitGatewayRoutes_622675, base: "/", + url: url_PostExportTransitGatewayRoutes_622676, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetExportTransitGatewayRoutes_622653 = ref object of OpenApiRestCall_610658 -proc url_GetExportTransitGatewayRoutes_622655(protocol: Scheme; host: string; + Call_GetExportTransitGatewayRoutes_622655 = ref object of OpenApiRestCall_610658 +proc url_GetExportTransitGatewayRoutes_622657(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -94905,7 +94932,7 @@ proc url_GetExportTransitGatewayRoutes_622655(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetExportTransitGatewayRoutes_622654(path: JsonNode; query: JsonNode; +proc validate_GetExportTransitGatewayRoutes_622656(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Exports routes from the specified transit gateway route table to the specified S3 bucket. By default, all routes are exported. Alternatively, you can filter by CIDR range. ## @@ -94925,36 +94952,36 @@ proc validate_GetExportTransitGatewayRoutes_622654(path: JsonNode; query: JsonNo ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622656 = query.getOrDefault("DryRun") - valid_622656 = validateParameter(valid_622656, JBool, required = false, default = nil) - if valid_622656 != nil: - section.add "DryRun", valid_622656 + var valid_622658 = query.getOrDefault("DryRun") + valid_622658 = validateParameter(valid_622658, JBool, required = false, default = nil) + if valid_622658 != nil: + section.add "DryRun", valid_622658 assert query != nil, "query argument is necessary due to required `TransitGatewayRouteTableId` field" - var valid_622657 = query.getOrDefault("TransitGatewayRouteTableId") - valid_622657 = validateParameter(valid_622657, JString, required = true, + var valid_622659 = query.getOrDefault("TransitGatewayRouteTableId") + valid_622659 = validateParameter(valid_622659, JString, required = true, default = nil) - if valid_622657 != nil: - section.add "TransitGatewayRouteTableId", valid_622657 - var valid_622658 = query.getOrDefault("S3Bucket") - valid_622658 = validateParameter(valid_622658, JString, required = true, + if valid_622659 != nil: + section.add "TransitGatewayRouteTableId", valid_622659 + var valid_622660 = query.getOrDefault("S3Bucket") + valid_622660 = validateParameter(valid_622660, JString, required = true, default = nil) - if valid_622658 != nil: - section.add "S3Bucket", valid_622658 - var valid_622659 = query.getOrDefault("Filter") - valid_622659 = validateParameter(valid_622659, JArray, required = false, + if valid_622660 != nil: + section.add "S3Bucket", valid_622660 + var valid_622661 = query.getOrDefault("Filter") + valid_622661 = validateParameter(valid_622661, JArray, required = false, default = nil) - if valid_622659 != nil: - section.add "Filter", valid_622659 - var valid_622660 = query.getOrDefault("Action") - valid_622660 = validateParameter(valid_622660, JString, required = true, default = newJString( + if valid_622661 != nil: + section.add "Filter", valid_622661 + var valid_622662 = query.getOrDefault("Action") + valid_622662 = validateParameter(valid_622662, JString, required = true, default = newJString( "ExportTransitGatewayRoutes")) - if valid_622660 != nil: - section.add "Action", valid_622660 - var valid_622661 = query.getOrDefault("Version") - valid_622661 = validateParameter(valid_622661, JString, required = true, + if valid_622662 != nil: + section.add "Action", valid_622662 + var valid_622663 = query.getOrDefault("Version") + valid_622663 = validateParameter(valid_622663, JString, required = true, default = newJString("2016-11-15")) - if valid_622661 != nil: - section.add "Version", valid_622661 + if valid_622663 != nil: + section.add "Version", valid_622663 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -94965,61 +94992,61 @@ proc validate_GetExportTransitGatewayRoutes_622654(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622662 = header.getOrDefault("X-Amz-Signature") - valid_622662 = validateParameter(valid_622662, JString, required = false, - default = nil) - if valid_622662 != nil: - section.add "X-Amz-Signature", valid_622662 - var valid_622663 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622663 = validateParameter(valid_622663, JString, required = false, - default = nil) - if valid_622663 != nil: - section.add "X-Amz-Content-Sha256", valid_622663 - var valid_622664 = header.getOrDefault("X-Amz-Date") + var valid_622664 = header.getOrDefault("X-Amz-Signature") valid_622664 = validateParameter(valid_622664, JString, required = false, default = nil) if valid_622664 != nil: - section.add "X-Amz-Date", valid_622664 - var valid_622665 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622664 + var valid_622665 = header.getOrDefault("X-Amz-Content-Sha256") valid_622665 = validateParameter(valid_622665, JString, required = false, default = nil) if valid_622665 != nil: - section.add "X-Amz-Credential", valid_622665 - var valid_622666 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622665 + var valid_622666 = header.getOrDefault("X-Amz-Date") valid_622666 = validateParameter(valid_622666, JString, required = false, default = nil) if valid_622666 != nil: - section.add "X-Amz-Security-Token", valid_622666 - var valid_622667 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622666 + var valid_622667 = header.getOrDefault("X-Amz-Credential") valid_622667 = validateParameter(valid_622667, JString, required = false, default = nil) if valid_622667 != nil: - section.add "X-Amz-Algorithm", valid_622667 - var valid_622668 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622667 + var valid_622668 = header.getOrDefault("X-Amz-Security-Token") valid_622668 = validateParameter(valid_622668, JString, required = false, default = nil) if valid_622668 != nil: - section.add "X-Amz-SignedHeaders", valid_622668 + section.add "X-Amz-Security-Token", valid_622668 + var valid_622669 = header.getOrDefault("X-Amz-Algorithm") + valid_622669 = validateParameter(valid_622669, JString, required = false, + default = nil) + if valid_622669 != nil: + section.add "X-Amz-Algorithm", valid_622669 + var valid_622670 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622670 = validateParameter(valid_622670, JString, required = false, + default = nil) + if valid_622670 != nil: + section.add "X-Amz-SignedHeaders", valid_622670 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622669: Call_GetExportTransitGatewayRoutes_622653; path: JsonNode; +proc call*(call_622671: Call_GetExportTransitGatewayRoutes_622655; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Exports routes from the specified transit gateway route table to the specified S3 bucket. By default, all routes are exported. Alternatively, you can filter by CIDR range. ## - let valid = call_622669.validator(path, query, header, formData, body) - let scheme = call_622669.pickScheme + let valid = call_622671.validator(path, query, header, formData, body) + let scheme = call_622671.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622669.url(scheme.get, call_622669.host, call_622669.base, - call_622669.route, valid.getOrDefault("path"), + let url = call_622671.url(scheme.get, call_622671.host, call_622671.base, + call_622671.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622669, url, valid) + result = atozHook(call_622671, url, valid) -proc call*(call_622670: Call_GetExportTransitGatewayRoutes_622653; +proc call*(call_622672: Call_GetExportTransitGatewayRoutes_622655; TransitGatewayRouteTableId: string; S3Bucket: string; DryRun: bool = false; Filter: JsonNode = nil; Action: string = "ExportTransitGatewayRoutes"; @@ -95036,26 +95063,26 @@ proc call*(call_622670: Call_GetExportTransitGatewayRoutes_622653; ## :

    One or more filters. The possible values are:

    ## Action: string (required) ## Version: string (required) - var query_622671 = newJObject() - add(query_622671, "DryRun", newJBool(DryRun)) - add(query_622671, "TransitGatewayRouteTableId", + var query_622673 = newJObject() + add(query_622673, "DryRun", newJBool(DryRun)) + add(query_622673, "TransitGatewayRouteTableId", newJString(TransitGatewayRouteTableId)) - add(query_622671, "S3Bucket", newJString(S3Bucket)) + add(query_622673, "S3Bucket", newJString(S3Bucket)) if Filter != nil: - query_622671.add "Filter", Filter - add(query_622671, "Action", newJString(Action)) - add(query_622671, "Version", newJString(Version)) - result = call_622670.call(nil, query_622671, nil, nil, nil) + query_622673.add "Filter", Filter + add(query_622673, "Action", newJString(Action)) + add(query_622673, "Version", newJString(Version)) + result = call_622672.call(nil, query_622673, nil, nil, nil) -var getExportTransitGatewayRoutes* = Call_GetExportTransitGatewayRoutes_622653( +var getExportTransitGatewayRoutes* = Call_GetExportTransitGatewayRoutes_622655( name: "getExportTransitGatewayRoutes", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ExportTransitGatewayRoutes", - validator: validate_GetExportTransitGatewayRoutes_622654, base: "/", - url: url_GetExportTransitGatewayRoutes_622655, + validator: validate_GetExportTransitGatewayRoutes_622656, base: "/", + url: url_GetExportTransitGatewayRoutes_622657, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostGetAssociatedIpv6PoolCidrs_622711 = ref object of OpenApiRestCall_610658 -proc url_PostGetAssociatedIpv6PoolCidrs_622713(protocol: Scheme; host: string; + Call_PostGetAssociatedIpv6PoolCidrs_622713 = ref object of OpenApiRestCall_610658 +proc url_PostGetAssociatedIpv6PoolCidrs_622715(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -95065,7 +95092,7 @@ proc url_PostGetAssociatedIpv6PoolCidrs_622713(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostGetAssociatedIpv6PoolCidrs_622712(path: JsonNode; +proc validate_PostGetAssociatedIpv6PoolCidrs_622714(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Gets information about the IPv6 CIDR block associations for a specified IPv6 address pool. ## @@ -95077,16 +95104,16 @@ proc validate_PostGetAssociatedIpv6PoolCidrs_622712(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622714 = query.getOrDefault("Action") - valid_622714 = validateParameter(valid_622714, JString, required = true, default = newJString( + var valid_622716 = query.getOrDefault("Action") + valid_622716 = validateParameter(valid_622716, JString, required = true, default = newJString( "GetAssociatedIpv6PoolCidrs")) - if valid_622714 != nil: - section.add "Action", valid_622714 - var valid_622715 = query.getOrDefault("Version") - valid_622715 = validateParameter(valid_622715, JString, required = true, + if valid_622716 != nil: + section.add "Action", valid_622716 + var valid_622717 = query.getOrDefault("Version") + valid_622717 = validateParameter(valid_622717, JString, required = true, default = newJString("2016-11-15")) - if valid_622715 != nil: - section.add "Version", valid_622715 + if valid_622717 != nil: + section.add "Version", valid_622717 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -95097,41 +95124,41 @@ proc validate_PostGetAssociatedIpv6PoolCidrs_622712(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622716 = header.getOrDefault("X-Amz-Signature") - valid_622716 = validateParameter(valid_622716, JString, required = false, - default = nil) - if valid_622716 != nil: - section.add "X-Amz-Signature", valid_622716 - var valid_622717 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622717 = validateParameter(valid_622717, JString, required = false, - default = nil) - if valid_622717 != nil: - section.add "X-Amz-Content-Sha256", valid_622717 - var valid_622718 = header.getOrDefault("X-Amz-Date") + var valid_622718 = header.getOrDefault("X-Amz-Signature") valid_622718 = validateParameter(valid_622718, JString, required = false, default = nil) if valid_622718 != nil: - section.add "X-Amz-Date", valid_622718 - var valid_622719 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622718 + var valid_622719 = header.getOrDefault("X-Amz-Content-Sha256") valid_622719 = validateParameter(valid_622719, JString, required = false, default = nil) if valid_622719 != nil: - section.add "X-Amz-Credential", valid_622719 - var valid_622720 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622719 + var valid_622720 = header.getOrDefault("X-Amz-Date") valid_622720 = validateParameter(valid_622720, JString, required = false, default = nil) if valid_622720 != nil: - section.add "X-Amz-Security-Token", valid_622720 - var valid_622721 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622720 + var valid_622721 = header.getOrDefault("X-Amz-Credential") valid_622721 = validateParameter(valid_622721, JString, required = false, default = nil) if valid_622721 != nil: - section.add "X-Amz-Algorithm", valid_622721 - var valid_622722 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622721 + var valid_622722 = header.getOrDefault("X-Amz-Security-Token") valid_622722 = validateParameter(valid_622722, JString, required = false, default = nil) if valid_622722 != nil: - section.add "X-Amz-SignedHeaders", valid_622722 + section.add "X-Amz-Security-Token", valid_622722 + var valid_622723 = header.getOrDefault("X-Amz-Algorithm") + valid_622723 = validateParameter(valid_622723, JString, required = false, + default = nil) + if valid_622723 != nil: + section.add "X-Amz-Algorithm", valid_622723 + var valid_622724 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622724 = validateParameter(valid_622724, JString, required = false, + default = nil) + if valid_622724 != nil: + section.add "X-Amz-SignedHeaders", valid_622724 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -95143,44 +95170,44 @@ proc validate_PostGetAssociatedIpv6PoolCidrs_622712(path: JsonNode; ## PoolId: JString (required) ## : The ID of the IPv6 address pool. section = newJObject() - var valid_622723 = formData.getOrDefault("NextToken") - valid_622723 = validateParameter(valid_622723, JString, required = false, + var valid_622725 = formData.getOrDefault("NextToken") + valid_622725 = validateParameter(valid_622725, JString, required = false, default = nil) - if valid_622723 != nil: - section.add "NextToken", valid_622723 - var valid_622724 = formData.getOrDefault("DryRun") - valid_622724 = validateParameter(valid_622724, JBool, required = false, default = nil) - if valid_622724 != nil: - section.add "DryRun", valid_622724 - var valid_622725 = formData.getOrDefault("MaxResults") - valid_622725 = validateParameter(valid_622725, JInt, required = false, default = nil) if valid_622725 != nil: - section.add "MaxResults", valid_622725 + section.add "NextToken", valid_622725 + var valid_622726 = formData.getOrDefault("DryRun") + valid_622726 = validateParameter(valid_622726, JBool, required = false, default = nil) + if valid_622726 != nil: + section.add "DryRun", valid_622726 + var valid_622727 = formData.getOrDefault("MaxResults") + valid_622727 = validateParameter(valid_622727, JInt, required = false, default = nil) + if valid_622727 != nil: + section.add "MaxResults", valid_622727 assert formData != nil, "formData argument is necessary due to required `PoolId` field" - var valid_622726 = formData.getOrDefault("PoolId") - valid_622726 = validateParameter(valid_622726, JString, required = true, + var valid_622728 = formData.getOrDefault("PoolId") + valid_622728 = validateParameter(valid_622728, JString, required = true, default = nil) - if valid_622726 != nil: - section.add "PoolId", valid_622726 + if valid_622728 != nil: + section.add "PoolId", valid_622728 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622727: Call_PostGetAssociatedIpv6PoolCidrs_622711; path: JsonNode; +proc call*(call_622729: Call_PostGetAssociatedIpv6PoolCidrs_622713; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Gets information about the IPv6 CIDR block associations for a specified IPv6 address pool. ## - let valid = call_622727.validator(path, query, header, formData, body) - let scheme = call_622727.pickScheme + let valid = call_622729.validator(path, query, header, formData, body) + let scheme = call_622729.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622727.url(scheme.get, call_622727.host, call_622727.base, - call_622727.route, valid.getOrDefault("path"), + let url = call_622729.url(scheme.get, call_622729.host, call_622729.base, + call_622729.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622727, url, valid) + result = atozHook(call_622729, url, valid) -proc call*(call_622728: Call_PostGetAssociatedIpv6PoolCidrs_622711; PoolId: string; +proc call*(call_622730: Call_PostGetAssociatedIpv6PoolCidrs_622713; PoolId: string; NextToken: string = ""; DryRun: bool = false; Action: string = "GetAssociatedIpv6PoolCidrs"; Version: string = "2016-11-15"; MaxResults: int = 0): Recallable = @@ -95196,25 +95223,25 @@ proc call*(call_622728: Call_PostGetAssociatedIpv6PoolCidrs_622711; PoolId: stri ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## PoolId: string (required) ## : The ID of the IPv6 address pool. - var query_622729 = newJObject() - var formData_622730 = newJObject() - add(formData_622730, "NextToken", newJString(NextToken)) - add(formData_622730, "DryRun", newJBool(DryRun)) - add(query_622729, "Action", newJString(Action)) - add(query_622729, "Version", newJString(Version)) - add(formData_622730, "MaxResults", newJInt(MaxResults)) - add(formData_622730, "PoolId", newJString(PoolId)) - result = call_622728.call(nil, query_622729, nil, formData_622730, nil) - -var postGetAssociatedIpv6PoolCidrs* = Call_PostGetAssociatedIpv6PoolCidrs_622711( + var query_622731 = newJObject() + var formData_622732 = newJObject() + add(formData_622732, "NextToken", newJString(NextToken)) + add(formData_622732, "DryRun", newJBool(DryRun)) + add(query_622731, "Action", newJString(Action)) + add(query_622731, "Version", newJString(Version)) + add(formData_622732, "MaxResults", newJInt(MaxResults)) + add(formData_622732, "PoolId", newJString(PoolId)) + result = call_622730.call(nil, query_622731, nil, formData_622732, nil) + +var postGetAssociatedIpv6PoolCidrs* = Call_PostGetAssociatedIpv6PoolCidrs_622713( name: "postGetAssociatedIpv6PoolCidrs", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=GetAssociatedIpv6PoolCidrs", - validator: validate_PostGetAssociatedIpv6PoolCidrs_622712, base: "/", - url: url_PostGetAssociatedIpv6PoolCidrs_622713, + validator: validate_PostGetAssociatedIpv6PoolCidrs_622714, base: "/", + url: url_PostGetAssociatedIpv6PoolCidrs_622715, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetGetAssociatedIpv6PoolCidrs_622692 = ref object of OpenApiRestCall_610658 -proc url_GetGetAssociatedIpv6PoolCidrs_622694(protocol: Scheme; host: string; + Call_GetGetAssociatedIpv6PoolCidrs_622694 = ref object of OpenApiRestCall_610658 +proc url_GetGetAssociatedIpv6PoolCidrs_622696(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -95224,7 +95251,7 @@ proc url_GetGetAssociatedIpv6PoolCidrs_622694(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetGetAssociatedIpv6PoolCidrs_622693(path: JsonNode; query: JsonNode; +proc validate_GetGetAssociatedIpv6PoolCidrs_622695(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Gets information about the IPv6 CIDR block associations for a specified IPv6 address pool. ## @@ -95244,34 +95271,34 @@ proc validate_GetGetAssociatedIpv6PoolCidrs_622693(path: JsonNode; query: JsonNo ## : The ID of the IPv6 address pool. ## Version: JString (required) section = newJObject() - var valid_622695 = query.getOrDefault("MaxResults") - valid_622695 = validateParameter(valid_622695, JInt, required = false, default = nil) - if valid_622695 != nil: - section.add "MaxResults", valid_622695 - var valid_622696 = query.getOrDefault("DryRun") - valid_622696 = validateParameter(valid_622696, JBool, required = false, default = nil) - if valid_622696 != nil: - section.add "DryRun", valid_622696 - var valid_622697 = query.getOrDefault("NextToken") - valid_622697 = validateParameter(valid_622697, JString, required = false, - default = nil) + var valid_622697 = query.getOrDefault("MaxResults") + valid_622697 = validateParameter(valid_622697, JInt, required = false, default = nil) if valid_622697 != nil: - section.add "NextToken", valid_622697 - var valid_622698 = query.getOrDefault("Action") - valid_622698 = validateParameter(valid_622698, JString, required = true, default = newJString( - "GetAssociatedIpv6PoolCidrs")) + section.add "MaxResults", valid_622697 + var valid_622698 = query.getOrDefault("DryRun") + valid_622698 = validateParameter(valid_622698, JBool, required = false, default = nil) if valid_622698 != nil: - section.add "Action", valid_622698 - var valid_622699 = query.getOrDefault("PoolId") - valid_622699 = validateParameter(valid_622699, JString, required = true, + section.add "DryRun", valid_622698 + var valid_622699 = query.getOrDefault("NextToken") + valid_622699 = validateParameter(valid_622699, JString, required = false, default = nil) if valid_622699 != nil: - section.add "PoolId", valid_622699 - var valid_622700 = query.getOrDefault("Version") - valid_622700 = validateParameter(valid_622700, JString, required = true, - default = newJString("2016-11-15")) + section.add "NextToken", valid_622699 + var valid_622700 = query.getOrDefault("Action") + valid_622700 = validateParameter(valid_622700, JString, required = true, default = newJString( + "GetAssociatedIpv6PoolCidrs")) if valid_622700 != nil: - section.add "Version", valid_622700 + section.add "Action", valid_622700 + var valid_622701 = query.getOrDefault("PoolId") + valid_622701 = validateParameter(valid_622701, JString, required = true, + default = nil) + if valid_622701 != nil: + section.add "PoolId", valid_622701 + var valid_622702 = query.getOrDefault("Version") + valid_622702 = validateParameter(valid_622702, JString, required = true, + default = newJString("2016-11-15")) + if valid_622702 != nil: + section.add "Version", valid_622702 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -95282,61 +95309,61 @@ proc validate_GetGetAssociatedIpv6PoolCidrs_622693(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622701 = header.getOrDefault("X-Amz-Signature") - valid_622701 = validateParameter(valid_622701, JString, required = false, - default = nil) - if valid_622701 != nil: - section.add "X-Amz-Signature", valid_622701 - var valid_622702 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622702 = validateParameter(valid_622702, JString, required = false, - default = nil) - if valid_622702 != nil: - section.add "X-Amz-Content-Sha256", valid_622702 - var valid_622703 = header.getOrDefault("X-Amz-Date") + var valid_622703 = header.getOrDefault("X-Amz-Signature") valid_622703 = validateParameter(valid_622703, JString, required = false, default = nil) if valid_622703 != nil: - section.add "X-Amz-Date", valid_622703 - var valid_622704 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622703 + var valid_622704 = header.getOrDefault("X-Amz-Content-Sha256") valid_622704 = validateParameter(valid_622704, JString, required = false, default = nil) if valid_622704 != nil: - section.add "X-Amz-Credential", valid_622704 - var valid_622705 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622704 + var valid_622705 = header.getOrDefault("X-Amz-Date") valid_622705 = validateParameter(valid_622705, JString, required = false, default = nil) if valid_622705 != nil: - section.add "X-Amz-Security-Token", valid_622705 - var valid_622706 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622705 + var valid_622706 = header.getOrDefault("X-Amz-Credential") valid_622706 = validateParameter(valid_622706, JString, required = false, default = nil) if valid_622706 != nil: - section.add "X-Amz-Algorithm", valid_622706 - var valid_622707 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622706 + var valid_622707 = header.getOrDefault("X-Amz-Security-Token") valid_622707 = validateParameter(valid_622707, JString, required = false, default = nil) if valid_622707 != nil: - section.add "X-Amz-SignedHeaders", valid_622707 + section.add "X-Amz-Security-Token", valid_622707 + var valid_622708 = header.getOrDefault("X-Amz-Algorithm") + valid_622708 = validateParameter(valid_622708, JString, required = false, + default = nil) + if valid_622708 != nil: + section.add "X-Amz-Algorithm", valid_622708 + var valid_622709 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622709 = validateParameter(valid_622709, JString, required = false, + default = nil) + if valid_622709 != nil: + section.add "X-Amz-SignedHeaders", valid_622709 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622708: Call_GetGetAssociatedIpv6PoolCidrs_622692; path: JsonNode; +proc call*(call_622710: Call_GetGetAssociatedIpv6PoolCidrs_622694; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Gets information about the IPv6 CIDR block associations for a specified IPv6 address pool. ## - let valid = call_622708.validator(path, query, header, formData, body) - let scheme = call_622708.pickScheme + let valid = call_622710.validator(path, query, header, formData, body) + let scheme = call_622710.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622708.url(scheme.get, call_622708.host, call_622708.base, - call_622708.route, valid.getOrDefault("path"), + let url = call_622710.url(scheme.get, call_622710.host, call_622710.base, + call_622710.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622708, url, valid) + result = atozHook(call_622710, url, valid) -proc call*(call_622709: Call_GetGetAssociatedIpv6PoolCidrs_622692; PoolId: string; +proc call*(call_622711: Call_GetGetAssociatedIpv6PoolCidrs_622694; PoolId: string; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Action: string = "GetAssociatedIpv6PoolCidrs"; Version: string = "2016-11-15"): Recallable = @@ -95352,24 +95379,24 @@ proc call*(call_622709: Call_GetGetAssociatedIpv6PoolCidrs_622692; PoolId: strin ## PoolId: string (required) ## : The ID of the IPv6 address pool. ## Version: string (required) - var query_622710 = newJObject() - add(query_622710, "MaxResults", newJInt(MaxResults)) - add(query_622710, "DryRun", newJBool(DryRun)) - add(query_622710, "NextToken", newJString(NextToken)) - add(query_622710, "Action", newJString(Action)) - add(query_622710, "PoolId", newJString(PoolId)) - add(query_622710, "Version", newJString(Version)) - result = call_622709.call(nil, query_622710, nil, nil, nil) + var query_622712 = newJObject() + add(query_622712, "MaxResults", newJInt(MaxResults)) + add(query_622712, "DryRun", newJBool(DryRun)) + add(query_622712, "NextToken", newJString(NextToken)) + add(query_622712, "Action", newJString(Action)) + add(query_622712, "PoolId", newJString(PoolId)) + add(query_622712, "Version", newJString(Version)) + result = call_622711.call(nil, query_622712, nil, nil, nil) -var getGetAssociatedIpv6PoolCidrs* = Call_GetGetAssociatedIpv6PoolCidrs_622692( +var getGetAssociatedIpv6PoolCidrs* = Call_GetGetAssociatedIpv6PoolCidrs_622694( name: "getGetAssociatedIpv6PoolCidrs", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=GetAssociatedIpv6PoolCidrs", - validator: validate_GetGetAssociatedIpv6PoolCidrs_622693, base: "/", - url: url_GetGetAssociatedIpv6PoolCidrs_622694, + validator: validate_GetGetAssociatedIpv6PoolCidrs_622695, base: "/", + url: url_GetGetAssociatedIpv6PoolCidrs_622696, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostGetCapacityReservationUsage_622750 = ref object of OpenApiRestCall_610658 -proc url_PostGetCapacityReservationUsage_622752(protocol: Scheme; host: string; + Call_PostGetCapacityReservationUsage_622752 = ref object of OpenApiRestCall_610658 +proc url_PostGetCapacityReservationUsage_622754(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -95379,7 +95406,7 @@ proc url_PostGetCapacityReservationUsage_622752(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostGetCapacityReservationUsage_622751(path: JsonNode; +proc validate_PostGetCapacityReservationUsage_622753(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Gets usage information about a Capacity Reservation. If the Capacity Reservation is shared, it shows usage information for the Capacity Reservation owner and each AWS account that is currently using the shared capacity. If the Capacity Reservation is not shared, it shows only the Capacity Reservation owner's usage. ## @@ -95391,16 +95418,16 @@ proc validate_PostGetCapacityReservationUsage_622751(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622753 = query.getOrDefault("Action") - valid_622753 = validateParameter(valid_622753, JString, required = true, default = newJString( + var valid_622755 = query.getOrDefault("Action") + valid_622755 = validateParameter(valid_622755, JString, required = true, default = newJString( "GetCapacityReservationUsage")) - if valid_622753 != nil: - section.add "Action", valid_622753 - var valid_622754 = query.getOrDefault("Version") - valid_622754 = validateParameter(valid_622754, JString, required = true, + if valid_622755 != nil: + section.add "Action", valid_622755 + var valid_622756 = query.getOrDefault("Version") + valid_622756 = validateParameter(valid_622756, JString, required = true, default = newJString("2016-11-15")) - if valid_622754 != nil: - section.add "Version", valid_622754 + if valid_622756 != nil: + section.add "Version", valid_622756 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -95411,41 +95438,41 @@ proc validate_PostGetCapacityReservationUsage_622751(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622755 = header.getOrDefault("X-Amz-Signature") - valid_622755 = validateParameter(valid_622755, JString, required = false, - default = nil) - if valid_622755 != nil: - section.add "X-Amz-Signature", valid_622755 - var valid_622756 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622756 = validateParameter(valid_622756, JString, required = false, - default = nil) - if valid_622756 != nil: - section.add "X-Amz-Content-Sha256", valid_622756 - var valid_622757 = header.getOrDefault("X-Amz-Date") + var valid_622757 = header.getOrDefault("X-Amz-Signature") valid_622757 = validateParameter(valid_622757, JString, required = false, default = nil) if valid_622757 != nil: - section.add "X-Amz-Date", valid_622757 - var valid_622758 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622757 + var valid_622758 = header.getOrDefault("X-Amz-Content-Sha256") valid_622758 = validateParameter(valid_622758, JString, required = false, default = nil) if valid_622758 != nil: - section.add "X-Amz-Credential", valid_622758 - var valid_622759 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622758 + var valid_622759 = header.getOrDefault("X-Amz-Date") valid_622759 = validateParameter(valid_622759, JString, required = false, default = nil) if valid_622759 != nil: - section.add "X-Amz-Security-Token", valid_622759 - var valid_622760 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622759 + var valid_622760 = header.getOrDefault("X-Amz-Credential") valid_622760 = validateParameter(valid_622760, JString, required = false, default = nil) if valid_622760 != nil: - section.add "X-Amz-Algorithm", valid_622760 - var valid_622761 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622760 + var valid_622761 = header.getOrDefault("X-Amz-Security-Token") valid_622761 = validateParameter(valid_622761, JString, required = false, default = nil) if valid_622761 != nil: - section.add "X-Amz-SignedHeaders", valid_622761 + section.add "X-Amz-Security-Token", valid_622761 + var valid_622762 = header.getOrDefault("X-Amz-Algorithm") + valid_622762 = validateParameter(valid_622762, JString, required = false, + default = nil) + if valid_622762 != nil: + section.add "X-Amz-Algorithm", valid_622762 + var valid_622763 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622763 = validateParameter(valid_622763, JString, required = false, + default = nil) + if valid_622763 != nil: + section.add "X-Amz-SignedHeaders", valid_622763 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -95457,44 +95484,44 @@ proc validate_PostGetCapacityReservationUsage_622751(path: JsonNode; ## MaxResults: JInt ## :

    The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned nextToken value.

    Valid range: Minimum value of 1. Maximum value of 1000.

    section = newJObject() - var valid_622762 = formData.getOrDefault("NextToken") - valid_622762 = validateParameter(valid_622762, JString, required = false, - default = nil) - if valid_622762 != nil: - section.add "NextToken", valid_622762 - var valid_622763 = formData.getOrDefault("DryRun") - valid_622763 = validateParameter(valid_622763, JBool, required = false, default = nil) - if valid_622763 != nil: - section.add "DryRun", valid_622763 - assert formData != nil, "formData argument is necessary due to required `CapacityReservationId` field" - var valid_622764 = formData.getOrDefault("CapacityReservationId") - valid_622764 = validateParameter(valid_622764, JString, required = true, + var valid_622764 = formData.getOrDefault("NextToken") + valid_622764 = validateParameter(valid_622764, JString, required = false, default = nil) if valid_622764 != nil: - section.add "CapacityReservationId", valid_622764 - var valid_622765 = formData.getOrDefault("MaxResults") - valid_622765 = validateParameter(valid_622765, JInt, required = false, default = nil) + section.add "NextToken", valid_622764 + var valid_622765 = formData.getOrDefault("DryRun") + valid_622765 = validateParameter(valid_622765, JBool, required = false, default = nil) if valid_622765 != nil: - section.add "MaxResults", valid_622765 + section.add "DryRun", valid_622765 + assert formData != nil, "formData argument is necessary due to required `CapacityReservationId` field" + var valid_622766 = formData.getOrDefault("CapacityReservationId") + valid_622766 = validateParameter(valid_622766, JString, required = true, + default = nil) + if valid_622766 != nil: + section.add "CapacityReservationId", valid_622766 + var valid_622767 = formData.getOrDefault("MaxResults") + valid_622767 = validateParameter(valid_622767, JInt, required = false, default = nil) + if valid_622767 != nil: + section.add "MaxResults", valid_622767 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622766: Call_PostGetCapacityReservationUsage_622750; +proc call*(call_622768: Call_PostGetCapacityReservationUsage_622752; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Gets usage information about a Capacity Reservation. If the Capacity Reservation is shared, it shows usage information for the Capacity Reservation owner and each AWS account that is currently using the shared capacity. If the Capacity Reservation is not shared, it shows only the Capacity Reservation owner's usage. ## - let valid = call_622766.validator(path, query, header, formData, body) - let scheme = call_622766.pickScheme + let valid = call_622768.validator(path, query, header, formData, body) + let scheme = call_622768.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622766.url(scheme.get, call_622766.host, call_622766.base, - call_622766.route, valid.getOrDefault("path"), + let url = call_622768.url(scheme.get, call_622768.host, call_622768.base, + call_622768.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622766, url, valid) + result = atozHook(call_622768, url, valid) -proc call*(call_622767: Call_PostGetCapacityReservationUsage_622750; +proc call*(call_622769: Call_PostGetCapacityReservationUsage_622752; CapacityReservationId: string; NextToken: string = ""; DryRun: bool = false; Action: string = "GetCapacityReservationUsage"; Version: string = "2016-11-15"; MaxResults: int = 0): Recallable = @@ -95510,25 +95537,25 @@ proc call*(call_622767: Call_PostGetCapacityReservationUsage_622750; ## Version: string (required) ## MaxResults: int ## :

    The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned nextToken value.

    Valid range: Minimum value of 1. Maximum value of 1000.

    - var query_622768 = newJObject() - var formData_622769 = newJObject() - add(formData_622769, "NextToken", newJString(NextToken)) - add(formData_622769, "DryRun", newJBool(DryRun)) - add(query_622768, "Action", newJString(Action)) - add(formData_622769, "CapacityReservationId", newJString(CapacityReservationId)) - add(query_622768, "Version", newJString(Version)) - add(formData_622769, "MaxResults", newJInt(MaxResults)) - result = call_622767.call(nil, query_622768, nil, formData_622769, nil) - -var postGetCapacityReservationUsage* = Call_PostGetCapacityReservationUsage_622750( + var query_622770 = newJObject() + var formData_622771 = newJObject() + add(formData_622771, "NextToken", newJString(NextToken)) + add(formData_622771, "DryRun", newJBool(DryRun)) + add(query_622770, "Action", newJString(Action)) + add(formData_622771, "CapacityReservationId", newJString(CapacityReservationId)) + add(query_622770, "Version", newJString(Version)) + add(formData_622771, "MaxResults", newJInt(MaxResults)) + result = call_622769.call(nil, query_622770, nil, formData_622771, nil) + +var postGetCapacityReservationUsage* = Call_PostGetCapacityReservationUsage_622752( name: "postGetCapacityReservationUsage", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=GetCapacityReservationUsage", - validator: validate_PostGetCapacityReservationUsage_622751, base: "/", - url: url_PostGetCapacityReservationUsage_622752, + validator: validate_PostGetCapacityReservationUsage_622753, base: "/", + url: url_PostGetCapacityReservationUsage_622754, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetGetCapacityReservationUsage_622731 = ref object of OpenApiRestCall_610658 -proc url_GetGetCapacityReservationUsage_622733(protocol: Scheme; host: string; + Call_GetGetCapacityReservationUsage_622733 = ref object of OpenApiRestCall_610658 +proc url_GetGetCapacityReservationUsage_622735(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -95538,7 +95565,7 @@ proc url_GetGetCapacityReservationUsage_622733(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetGetCapacityReservationUsage_622732(path: JsonNode; +proc validate_GetGetCapacityReservationUsage_622734(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Gets usage information about a Capacity Reservation. If the Capacity Reservation is shared, it shows usage information for the Capacity Reservation owner and each AWS account that is currently using the shared capacity. If the Capacity Reservation is not shared, it shows only the Capacity Reservation owner's usage. ## @@ -95558,35 +95585,35 @@ proc validate_GetGetCapacityReservationUsage_622732(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622734 = query.getOrDefault("MaxResults") - valid_622734 = validateParameter(valid_622734, JInt, required = false, default = nil) - if valid_622734 != nil: - section.add "MaxResults", valid_622734 - var valid_622735 = query.getOrDefault("DryRun") - valid_622735 = validateParameter(valid_622735, JBool, required = false, default = nil) - if valid_622735 != nil: - section.add "DryRun", valid_622735 + var valid_622736 = query.getOrDefault("MaxResults") + valid_622736 = validateParameter(valid_622736, JInt, required = false, default = nil) + if valid_622736 != nil: + section.add "MaxResults", valid_622736 + var valid_622737 = query.getOrDefault("DryRun") + valid_622737 = validateParameter(valid_622737, JBool, required = false, default = nil) + if valid_622737 != nil: + section.add "DryRun", valid_622737 assert query != nil, "query argument is necessary due to required `CapacityReservationId` field" - var valid_622736 = query.getOrDefault("CapacityReservationId") - valid_622736 = validateParameter(valid_622736, JString, required = true, + var valid_622738 = query.getOrDefault("CapacityReservationId") + valid_622738 = validateParameter(valid_622738, JString, required = true, default = nil) - if valid_622736 != nil: - section.add "CapacityReservationId", valid_622736 - var valid_622737 = query.getOrDefault("NextToken") - valid_622737 = validateParameter(valid_622737, JString, required = false, + if valid_622738 != nil: + section.add "CapacityReservationId", valid_622738 + var valid_622739 = query.getOrDefault("NextToken") + valid_622739 = validateParameter(valid_622739, JString, required = false, default = nil) - if valid_622737 != nil: - section.add "NextToken", valid_622737 - var valid_622738 = query.getOrDefault("Action") - valid_622738 = validateParameter(valid_622738, JString, required = true, default = newJString( + if valid_622739 != nil: + section.add "NextToken", valid_622739 + var valid_622740 = query.getOrDefault("Action") + valid_622740 = validateParameter(valid_622740, JString, required = true, default = newJString( "GetCapacityReservationUsage")) - if valid_622738 != nil: - section.add "Action", valid_622738 - var valid_622739 = query.getOrDefault("Version") - valid_622739 = validateParameter(valid_622739, JString, required = true, + if valid_622740 != nil: + section.add "Action", valid_622740 + var valid_622741 = query.getOrDefault("Version") + valid_622741 = validateParameter(valid_622741, JString, required = true, default = newJString("2016-11-15")) - if valid_622739 != nil: - section.add "Version", valid_622739 + if valid_622741 != nil: + section.add "Version", valid_622741 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -95597,61 +95624,61 @@ proc validate_GetGetCapacityReservationUsage_622732(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622740 = header.getOrDefault("X-Amz-Signature") - valid_622740 = validateParameter(valid_622740, JString, required = false, - default = nil) - if valid_622740 != nil: - section.add "X-Amz-Signature", valid_622740 - var valid_622741 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622741 = validateParameter(valid_622741, JString, required = false, - default = nil) - if valid_622741 != nil: - section.add "X-Amz-Content-Sha256", valid_622741 - var valid_622742 = header.getOrDefault("X-Amz-Date") + var valid_622742 = header.getOrDefault("X-Amz-Signature") valid_622742 = validateParameter(valid_622742, JString, required = false, default = nil) if valid_622742 != nil: - section.add "X-Amz-Date", valid_622742 - var valid_622743 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622742 + var valid_622743 = header.getOrDefault("X-Amz-Content-Sha256") valid_622743 = validateParameter(valid_622743, JString, required = false, default = nil) if valid_622743 != nil: - section.add "X-Amz-Credential", valid_622743 - var valid_622744 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622743 + var valid_622744 = header.getOrDefault("X-Amz-Date") valid_622744 = validateParameter(valid_622744, JString, required = false, default = nil) if valid_622744 != nil: - section.add "X-Amz-Security-Token", valid_622744 - var valid_622745 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622744 + var valid_622745 = header.getOrDefault("X-Amz-Credential") valid_622745 = validateParameter(valid_622745, JString, required = false, default = nil) if valid_622745 != nil: - section.add "X-Amz-Algorithm", valid_622745 - var valid_622746 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622745 + var valid_622746 = header.getOrDefault("X-Amz-Security-Token") valid_622746 = validateParameter(valid_622746, JString, required = false, default = nil) if valid_622746 != nil: - section.add "X-Amz-SignedHeaders", valid_622746 + section.add "X-Amz-Security-Token", valid_622746 + var valid_622747 = header.getOrDefault("X-Amz-Algorithm") + valid_622747 = validateParameter(valid_622747, JString, required = false, + default = nil) + if valid_622747 != nil: + section.add "X-Amz-Algorithm", valid_622747 + var valid_622748 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622748 = validateParameter(valid_622748, JString, required = false, + default = nil) + if valid_622748 != nil: + section.add "X-Amz-SignedHeaders", valid_622748 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622747: Call_GetGetCapacityReservationUsage_622731; path: JsonNode; +proc call*(call_622749: Call_GetGetCapacityReservationUsage_622733; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Gets usage information about a Capacity Reservation. If the Capacity Reservation is shared, it shows usage information for the Capacity Reservation owner and each AWS account that is currently using the shared capacity. If the Capacity Reservation is not shared, it shows only the Capacity Reservation owner's usage. ## - let valid = call_622747.validator(path, query, header, formData, body) - let scheme = call_622747.pickScheme + let valid = call_622749.validator(path, query, header, formData, body) + let scheme = call_622749.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622747.url(scheme.get, call_622747.host, call_622747.base, - call_622747.route, valid.getOrDefault("path"), + let url = call_622749.url(scheme.get, call_622749.host, call_622749.base, + call_622749.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622747, url, valid) + result = atozHook(call_622749, url, valid) -proc call*(call_622748: Call_GetGetCapacityReservationUsage_622731; +proc call*(call_622750: Call_GetGetCapacityReservationUsage_622733; CapacityReservationId: string; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Action: string = "GetCapacityReservationUsage"; Version: string = "2016-11-15"): Recallable = @@ -95667,24 +95694,24 @@ proc call*(call_622748: Call_GetGetCapacityReservationUsage_622731; ## : The token to retrieve the next page of results. ## Action: string (required) ## Version: string (required) - var query_622749 = newJObject() - add(query_622749, "MaxResults", newJInt(MaxResults)) - add(query_622749, "DryRun", newJBool(DryRun)) - add(query_622749, "CapacityReservationId", newJString(CapacityReservationId)) - add(query_622749, "NextToken", newJString(NextToken)) - add(query_622749, "Action", newJString(Action)) - add(query_622749, "Version", newJString(Version)) - result = call_622748.call(nil, query_622749, nil, nil, nil) + var query_622751 = newJObject() + add(query_622751, "MaxResults", newJInt(MaxResults)) + add(query_622751, "DryRun", newJBool(DryRun)) + add(query_622751, "CapacityReservationId", newJString(CapacityReservationId)) + add(query_622751, "NextToken", newJString(NextToken)) + add(query_622751, "Action", newJString(Action)) + add(query_622751, "Version", newJString(Version)) + result = call_622750.call(nil, query_622751, nil, nil, nil) -var getGetCapacityReservationUsage* = Call_GetGetCapacityReservationUsage_622731( +var getGetCapacityReservationUsage* = Call_GetGetCapacityReservationUsage_622733( name: "getGetCapacityReservationUsage", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=GetCapacityReservationUsage", - validator: validate_GetGetCapacityReservationUsage_622732, base: "/", - url: url_GetGetCapacityReservationUsage_622733, + validator: validate_GetGetCapacityReservationUsage_622734, base: "/", + url: url_GetGetCapacityReservationUsage_622735, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostGetCoipPoolUsage_622790 = ref object of OpenApiRestCall_610658 -proc url_PostGetCoipPoolUsage_622792(protocol: Scheme; host: string; base: string; + Call_PostGetCoipPoolUsage_622792 = ref object of OpenApiRestCall_610658 +proc url_PostGetCoipPoolUsage_622794(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -95694,7 +95721,7 @@ proc url_PostGetCoipPoolUsage_622792(protocol: Scheme; host: string; base: strin else: result.path = base & route -proc validate_PostGetCoipPoolUsage_622791(path: JsonNode; query: JsonNode; +proc validate_PostGetCoipPoolUsage_622793(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the allocations from the specified customer-owned address pool. ## @@ -95706,16 +95733,16 @@ proc validate_PostGetCoipPoolUsage_622791(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622793 = query.getOrDefault("Action") - valid_622793 = validateParameter(valid_622793, JString, required = true, + var valid_622795 = query.getOrDefault("Action") + valid_622795 = validateParameter(valid_622795, JString, required = true, default = newJString("GetCoipPoolUsage")) - if valid_622793 != nil: - section.add "Action", valid_622793 - var valid_622794 = query.getOrDefault("Version") - valid_622794 = validateParameter(valid_622794, JString, required = true, + if valid_622795 != nil: + section.add "Action", valid_622795 + var valid_622796 = query.getOrDefault("Version") + valid_622796 = validateParameter(valid_622796, JString, required = true, default = newJString("2016-11-15")) - if valid_622794 != nil: - section.add "Version", valid_622794 + if valid_622796 != nil: + section.add "Version", valid_622796 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -95726,41 +95753,41 @@ proc validate_PostGetCoipPoolUsage_622791(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622795 = header.getOrDefault("X-Amz-Signature") - valid_622795 = validateParameter(valid_622795, JString, required = false, - default = nil) - if valid_622795 != nil: - section.add "X-Amz-Signature", valid_622795 - var valid_622796 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622796 = validateParameter(valid_622796, JString, required = false, - default = nil) - if valid_622796 != nil: - section.add "X-Amz-Content-Sha256", valid_622796 - var valid_622797 = header.getOrDefault("X-Amz-Date") + var valid_622797 = header.getOrDefault("X-Amz-Signature") valid_622797 = validateParameter(valid_622797, JString, required = false, default = nil) if valid_622797 != nil: - section.add "X-Amz-Date", valid_622797 - var valid_622798 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622797 + var valid_622798 = header.getOrDefault("X-Amz-Content-Sha256") valid_622798 = validateParameter(valid_622798, JString, required = false, default = nil) if valid_622798 != nil: - section.add "X-Amz-Credential", valid_622798 - var valid_622799 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622798 + var valid_622799 = header.getOrDefault("X-Amz-Date") valid_622799 = validateParameter(valid_622799, JString, required = false, default = nil) if valid_622799 != nil: - section.add "X-Amz-Security-Token", valid_622799 - var valid_622800 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622799 + var valid_622800 = header.getOrDefault("X-Amz-Credential") valid_622800 = validateParameter(valid_622800, JString, required = false, default = nil) if valid_622800 != nil: - section.add "X-Amz-Algorithm", valid_622800 - var valid_622801 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622800 + var valid_622801 = header.getOrDefault("X-Amz-Security-Token") valid_622801 = validateParameter(valid_622801, JString, required = false, default = nil) if valid_622801 != nil: - section.add "X-Amz-SignedHeaders", valid_622801 + section.add "X-Amz-Security-Token", valid_622801 + var valid_622802 = header.getOrDefault("X-Amz-Algorithm") + valid_622802 = validateParameter(valid_622802, JString, required = false, + default = nil) + if valid_622802 != nil: + section.add "X-Amz-Algorithm", valid_622802 + var valid_622803 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622803 = validateParameter(valid_622803, JString, required = false, + default = nil) + if valid_622803 != nil: + section.add "X-Amz-SignedHeaders", valid_622803 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -95774,49 +95801,49 @@ proc validate_PostGetCoipPoolUsage_622791(path: JsonNode; query: JsonNode; ## Filter: JArray ## :

    The filters. The following are the possible values:

    section = newJObject() - var valid_622802 = formData.getOrDefault("NextToken") - valid_622802 = validateParameter(valid_622802, JString, required = false, + var valid_622804 = formData.getOrDefault("NextToken") + valid_622804 = validateParameter(valid_622804, JString, required = false, default = nil) - if valid_622802 != nil: - section.add "NextToken", valid_622802 - var valid_622803 = formData.getOrDefault("DryRun") - valid_622803 = validateParameter(valid_622803, JBool, required = false, default = nil) - if valid_622803 != nil: - section.add "DryRun", valid_622803 - var valid_622804 = formData.getOrDefault("MaxResults") - valid_622804 = validateParameter(valid_622804, JInt, required = false, default = nil) if valid_622804 != nil: - section.add "MaxResults", valid_622804 + section.add "NextToken", valid_622804 + var valid_622805 = formData.getOrDefault("DryRun") + valid_622805 = validateParameter(valid_622805, JBool, required = false, default = nil) + if valid_622805 != nil: + section.add "DryRun", valid_622805 + var valid_622806 = formData.getOrDefault("MaxResults") + valid_622806 = validateParameter(valid_622806, JInt, required = false, default = nil) + if valid_622806 != nil: + section.add "MaxResults", valid_622806 assert formData != nil, "formData argument is necessary due to required `PoolId` field" - var valid_622805 = formData.getOrDefault("PoolId") - valid_622805 = validateParameter(valid_622805, JString, required = true, + var valid_622807 = formData.getOrDefault("PoolId") + valid_622807 = validateParameter(valid_622807, JString, required = true, default = nil) - if valid_622805 != nil: - section.add "PoolId", valid_622805 - var valid_622806 = formData.getOrDefault("Filter") - valid_622806 = validateParameter(valid_622806, JArray, required = false, + if valid_622807 != nil: + section.add "PoolId", valid_622807 + var valid_622808 = formData.getOrDefault("Filter") + valid_622808 = validateParameter(valid_622808, JArray, required = false, default = nil) - if valid_622806 != nil: - section.add "Filter", valid_622806 + if valid_622808 != nil: + section.add "Filter", valid_622808 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622807: Call_PostGetCoipPoolUsage_622790; path: JsonNode; +proc call*(call_622809: Call_PostGetCoipPoolUsage_622792; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the allocations from the specified customer-owned address pool. ## - let valid = call_622807.validator(path, query, header, formData, body) - let scheme = call_622807.pickScheme + let valid = call_622809.validator(path, query, header, formData, body) + let scheme = call_622809.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622807.url(scheme.get, call_622807.host, call_622807.base, - call_622807.route, valid.getOrDefault("path"), + let url = call_622809.url(scheme.get, call_622809.host, call_622809.base, + call_622809.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622807, url, valid) + result = atozHook(call_622809, url, valid) -proc call*(call_622808: Call_PostGetCoipPoolUsage_622790; PoolId: string; +proc call*(call_622810: Call_PostGetCoipPoolUsage_622792; PoolId: string; NextToken: string = ""; DryRun: bool = false; Action: string = "GetCoipPoolUsage"; Version: string = "2016-11-15"; MaxResults: int = 0; Filter: JsonNode = nil): Recallable = @@ -95834,26 +95861,26 @@ proc call*(call_622808: Call_PostGetCoipPoolUsage_622790; PoolId: string; ## : The ID of the address pool. ## Filter: JArray ## :

    The filters. The following are the possible values:

    - var query_622809 = newJObject() - var formData_622810 = newJObject() - add(formData_622810, "NextToken", newJString(NextToken)) - add(formData_622810, "DryRun", newJBool(DryRun)) - add(query_622809, "Action", newJString(Action)) - add(query_622809, "Version", newJString(Version)) - add(formData_622810, "MaxResults", newJInt(MaxResults)) - add(formData_622810, "PoolId", newJString(PoolId)) + var query_622811 = newJObject() + var formData_622812 = newJObject() + add(formData_622812, "NextToken", newJString(NextToken)) + add(formData_622812, "DryRun", newJBool(DryRun)) + add(query_622811, "Action", newJString(Action)) + add(query_622811, "Version", newJString(Version)) + add(formData_622812, "MaxResults", newJInt(MaxResults)) + add(formData_622812, "PoolId", newJString(PoolId)) if Filter != nil: - formData_622810.add "Filter", Filter - result = call_622808.call(nil, query_622809, nil, formData_622810, nil) + formData_622812.add "Filter", Filter + result = call_622810.call(nil, query_622811, nil, formData_622812, nil) -var postGetCoipPoolUsage* = Call_PostGetCoipPoolUsage_622790( +var postGetCoipPoolUsage* = Call_PostGetCoipPoolUsage_622792( name: "postGetCoipPoolUsage", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=GetCoipPoolUsage", - validator: validate_PostGetCoipPoolUsage_622791, base: "/", - url: url_PostGetCoipPoolUsage_622792, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostGetCoipPoolUsage_622793, base: "/", + url: url_PostGetCoipPoolUsage_622794, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetGetCoipPoolUsage_622770 = ref object of OpenApiRestCall_610658 -proc url_GetGetCoipPoolUsage_622772(protocol: Scheme; host: string; base: string; + Call_GetGetCoipPoolUsage_622772 = ref object of OpenApiRestCall_610658 +proc url_GetGetCoipPoolUsage_622774(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -95863,7 +95890,7 @@ proc url_GetGetCoipPoolUsage_622772(protocol: Scheme; host: string; base: string else: result.path = base & route -proc validate_GetGetCoipPoolUsage_622771(path: JsonNode; query: JsonNode; +proc validate_GetGetCoipPoolUsage_622773(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the allocations from the specified customer-owned address pool. @@ -95886,39 +95913,39 @@ proc validate_GetGetCoipPoolUsage_622771(path: JsonNode; query: JsonNode; ## : The ID of the address pool. ## Version: JString (required) section = newJObject() - var valid_622773 = query.getOrDefault("MaxResults") - valid_622773 = validateParameter(valid_622773, JInt, required = false, default = nil) - if valid_622773 != nil: - section.add "MaxResults", valid_622773 - var valid_622774 = query.getOrDefault("DryRun") - valid_622774 = validateParameter(valid_622774, JBool, required = false, default = nil) - if valid_622774 != nil: - section.add "DryRun", valid_622774 - var valid_622775 = query.getOrDefault("NextToken") - valid_622775 = validateParameter(valid_622775, JString, required = false, - default = nil) + var valid_622775 = query.getOrDefault("MaxResults") + valid_622775 = validateParameter(valid_622775, JInt, required = false, default = nil) if valid_622775 != nil: - section.add "NextToken", valid_622775 - var valid_622776 = query.getOrDefault("Filter") - valid_622776 = validateParameter(valid_622776, JArray, required = false, - default = nil) + section.add "MaxResults", valid_622775 + var valid_622776 = query.getOrDefault("DryRun") + valid_622776 = validateParameter(valid_622776, JBool, required = false, default = nil) if valid_622776 != nil: - section.add "Filter", valid_622776 - var valid_622777 = query.getOrDefault("Action") - valid_622777 = validateParameter(valid_622777, JString, required = true, - default = newJString("GetCoipPoolUsage")) + section.add "DryRun", valid_622776 + var valid_622777 = query.getOrDefault("NextToken") + valid_622777 = validateParameter(valid_622777, JString, required = false, + default = nil) if valid_622777 != nil: - section.add "Action", valid_622777 - var valid_622778 = query.getOrDefault("PoolId") - valid_622778 = validateParameter(valid_622778, JString, required = true, + section.add "NextToken", valid_622777 + var valid_622778 = query.getOrDefault("Filter") + valid_622778 = validateParameter(valid_622778, JArray, required = false, default = nil) if valid_622778 != nil: - section.add "PoolId", valid_622778 - var valid_622779 = query.getOrDefault("Version") + section.add "Filter", valid_622778 + var valid_622779 = query.getOrDefault("Action") valid_622779 = validateParameter(valid_622779, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("GetCoipPoolUsage")) if valid_622779 != nil: - section.add "Version", valid_622779 + section.add "Action", valid_622779 + var valid_622780 = query.getOrDefault("PoolId") + valid_622780 = validateParameter(valid_622780, JString, required = true, + default = nil) + if valid_622780 != nil: + section.add "PoolId", valid_622780 + var valid_622781 = query.getOrDefault("Version") + valid_622781 = validateParameter(valid_622781, JString, required = true, + default = newJString("2016-11-15")) + if valid_622781 != nil: + section.add "Version", valid_622781 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -95929,61 +95956,61 @@ proc validate_GetGetCoipPoolUsage_622771(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622780 = header.getOrDefault("X-Amz-Signature") - valid_622780 = validateParameter(valid_622780, JString, required = false, - default = nil) - if valid_622780 != nil: - section.add "X-Amz-Signature", valid_622780 - var valid_622781 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622781 = validateParameter(valid_622781, JString, required = false, - default = nil) - if valid_622781 != nil: - section.add "X-Amz-Content-Sha256", valid_622781 - var valid_622782 = header.getOrDefault("X-Amz-Date") + var valid_622782 = header.getOrDefault("X-Amz-Signature") valid_622782 = validateParameter(valid_622782, JString, required = false, default = nil) if valid_622782 != nil: - section.add "X-Amz-Date", valid_622782 - var valid_622783 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622782 + var valid_622783 = header.getOrDefault("X-Amz-Content-Sha256") valid_622783 = validateParameter(valid_622783, JString, required = false, default = nil) if valid_622783 != nil: - section.add "X-Amz-Credential", valid_622783 - var valid_622784 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622783 + var valid_622784 = header.getOrDefault("X-Amz-Date") valid_622784 = validateParameter(valid_622784, JString, required = false, default = nil) if valid_622784 != nil: - section.add "X-Amz-Security-Token", valid_622784 - var valid_622785 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622784 + var valid_622785 = header.getOrDefault("X-Amz-Credential") valid_622785 = validateParameter(valid_622785, JString, required = false, default = nil) if valid_622785 != nil: - section.add "X-Amz-Algorithm", valid_622785 - var valid_622786 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622785 + var valid_622786 = header.getOrDefault("X-Amz-Security-Token") valid_622786 = validateParameter(valid_622786, JString, required = false, default = nil) if valid_622786 != nil: - section.add "X-Amz-SignedHeaders", valid_622786 + section.add "X-Amz-Security-Token", valid_622786 + var valid_622787 = header.getOrDefault("X-Amz-Algorithm") + valid_622787 = validateParameter(valid_622787, JString, required = false, + default = nil) + if valid_622787 != nil: + section.add "X-Amz-Algorithm", valid_622787 + var valid_622788 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622788 = validateParameter(valid_622788, JString, required = false, + default = nil) + if valid_622788 != nil: + section.add "X-Amz-SignedHeaders", valid_622788 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622787: Call_GetGetCoipPoolUsage_622770; path: JsonNode; +proc call*(call_622789: Call_GetGetCoipPoolUsage_622772; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the allocations from the specified customer-owned address pool. ## - let valid = call_622787.validator(path, query, header, formData, body) - let scheme = call_622787.pickScheme + let valid = call_622789.validator(path, query, header, formData, body) + let scheme = call_622789.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622787.url(scheme.get, call_622787.host, call_622787.base, - call_622787.route, valid.getOrDefault("path"), + let url = call_622789.url(scheme.get, call_622789.host, call_622789.base, + call_622789.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622787, url, valid) + result = atozHook(call_622789, url, valid) -proc call*(call_622788: Call_GetGetCoipPoolUsage_622770; PoolId: string; +proc call*(call_622790: Call_GetGetCoipPoolUsage_622772; PoolId: string; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "GetCoipPoolUsage"; Version: string = "2016-11-15"): Recallable = @@ -96001,25 +96028,25 @@ proc call*(call_622788: Call_GetGetCoipPoolUsage_622770; PoolId: string; ## PoolId: string (required) ## : The ID of the address pool. ## Version: string (required) - var query_622789 = newJObject() - add(query_622789, "MaxResults", newJInt(MaxResults)) - add(query_622789, "DryRun", newJBool(DryRun)) - add(query_622789, "NextToken", newJString(NextToken)) + var query_622791 = newJObject() + add(query_622791, "MaxResults", newJInt(MaxResults)) + add(query_622791, "DryRun", newJBool(DryRun)) + add(query_622791, "NextToken", newJString(NextToken)) if Filter != nil: - query_622789.add "Filter", Filter - add(query_622789, "Action", newJString(Action)) - add(query_622789, "PoolId", newJString(PoolId)) - add(query_622789, "Version", newJString(Version)) - result = call_622788.call(nil, query_622789, nil, nil, nil) + query_622791.add "Filter", Filter + add(query_622791, "Action", newJString(Action)) + add(query_622791, "PoolId", newJString(PoolId)) + add(query_622791, "Version", newJString(Version)) + result = call_622790.call(nil, query_622791, nil, nil, nil) -var getGetCoipPoolUsage* = Call_GetGetCoipPoolUsage_622770( +var getGetCoipPoolUsage* = Call_GetGetCoipPoolUsage_622772( name: "getGetCoipPoolUsage", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=GetCoipPoolUsage", - validator: validate_GetGetCoipPoolUsage_622771, base: "/", - url: url_GetGetCoipPoolUsage_622772, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetGetCoipPoolUsage_622773, base: "/", + url: url_GetGetCoipPoolUsage_622774, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostGetConsoleOutput_622829 = ref object of OpenApiRestCall_610658 -proc url_PostGetConsoleOutput_622831(protocol: Scheme; host: string; base: string; + Call_PostGetConsoleOutput_622831 = ref object of OpenApiRestCall_610658 +proc url_PostGetConsoleOutput_622833(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -96029,7 +96056,7 @@ proc url_PostGetConsoleOutput_622831(protocol: Scheme; host: string; base: strin else: result.path = base & route -proc validate_PostGetConsoleOutput_622830(path: JsonNode; query: JsonNode; +proc validate_PostGetConsoleOutput_622832(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Gets the console output for the specified instance. For Linux instances, the instance console output displays the exact console output that would normally be displayed on a physical monitor attached to a computer. For Windows instances, the instance console output includes the last three system event log errors.

    By default, the console output returns buffered information that was posted shortly after an instance transition state (start, stop, reboot, or terminate). This information is available for at least one hour after the most recent post. Only the most recent 64 KB of console output is available.

    You can optionally retrieve the latest serial console output at any time during the instance lifecycle. This option is supported on instance types that use the Nitro hypervisor.

    For more information, see Instance Console Output in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -96041,16 +96068,16 @@ proc validate_PostGetConsoleOutput_622830(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622832 = query.getOrDefault("Action") - valid_622832 = validateParameter(valid_622832, JString, required = true, + var valid_622834 = query.getOrDefault("Action") + valid_622834 = validateParameter(valid_622834, JString, required = true, default = newJString("GetConsoleOutput")) - if valid_622832 != nil: - section.add "Action", valid_622832 - var valid_622833 = query.getOrDefault("Version") - valid_622833 = validateParameter(valid_622833, JString, required = true, + if valid_622834 != nil: + section.add "Action", valid_622834 + var valid_622835 = query.getOrDefault("Version") + valid_622835 = validateParameter(valid_622835, JString, required = true, default = newJString("2016-11-15")) - if valid_622833 != nil: - section.add "Version", valid_622833 + if valid_622835 != nil: + section.add "Version", valid_622835 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -96061,41 +96088,41 @@ proc validate_PostGetConsoleOutput_622830(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622834 = header.getOrDefault("X-Amz-Signature") - valid_622834 = validateParameter(valid_622834, JString, required = false, - default = nil) - if valid_622834 != nil: - section.add "X-Amz-Signature", valid_622834 - var valid_622835 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622835 = validateParameter(valid_622835, JString, required = false, - default = nil) - if valid_622835 != nil: - section.add "X-Amz-Content-Sha256", valid_622835 - var valid_622836 = header.getOrDefault("X-Amz-Date") + var valid_622836 = header.getOrDefault("X-Amz-Signature") valid_622836 = validateParameter(valid_622836, JString, required = false, default = nil) if valid_622836 != nil: - section.add "X-Amz-Date", valid_622836 - var valid_622837 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622836 + var valid_622837 = header.getOrDefault("X-Amz-Content-Sha256") valid_622837 = validateParameter(valid_622837, JString, required = false, default = nil) if valid_622837 != nil: - section.add "X-Amz-Credential", valid_622837 - var valid_622838 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622837 + var valid_622838 = header.getOrDefault("X-Amz-Date") valid_622838 = validateParameter(valid_622838, JString, required = false, default = nil) if valid_622838 != nil: - section.add "X-Amz-Security-Token", valid_622838 - var valid_622839 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622838 + var valid_622839 = header.getOrDefault("X-Amz-Credential") valid_622839 = validateParameter(valid_622839, JString, required = false, default = nil) if valid_622839 != nil: - section.add "X-Amz-Algorithm", valid_622839 - var valid_622840 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622839 + var valid_622840 = header.getOrDefault("X-Amz-Security-Token") valid_622840 = validateParameter(valid_622840, JString, required = false, default = nil) if valid_622840 != nil: - section.add "X-Amz-SignedHeaders", valid_622840 + section.add "X-Amz-Security-Token", valid_622840 + var valid_622841 = header.getOrDefault("X-Amz-Algorithm") + valid_622841 = validateParameter(valid_622841, JString, required = false, + default = nil) + if valid_622841 != nil: + section.add "X-Amz-Algorithm", valid_622841 + var valid_622842 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622842 = validateParameter(valid_622842, JString, required = false, + default = nil) + if valid_622842 != nil: + section.add "X-Amz-SignedHeaders", valid_622842 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -96105,39 +96132,39 @@ proc validate_PostGetConsoleOutput_622830(path: JsonNode; query: JsonNode; ## Latest: JBool ## :

    When enabled, retrieves the latest console output for the instance.

    Default: disabled (false)

    section = newJObject() - var valid_622841 = formData.getOrDefault("DryRun") - valid_622841 = validateParameter(valid_622841, JBool, required = false, default = nil) - if valid_622841 != nil: - section.add "DryRun", valid_622841 + var valid_622843 = formData.getOrDefault("DryRun") + valid_622843 = validateParameter(valid_622843, JBool, required = false, default = nil) + if valid_622843 != nil: + section.add "DryRun", valid_622843 assert formData != nil, "formData argument is necessary due to required `InstanceId` field" - var valid_622842 = formData.getOrDefault("InstanceId") - valid_622842 = validateParameter(valid_622842, JString, required = true, + var valid_622844 = formData.getOrDefault("InstanceId") + valid_622844 = validateParameter(valid_622844, JString, required = true, default = nil) - if valid_622842 != nil: - section.add "InstanceId", valid_622842 - var valid_622843 = formData.getOrDefault("Latest") - valid_622843 = validateParameter(valid_622843, JBool, required = false, default = nil) - if valid_622843 != nil: - section.add "Latest", valid_622843 + if valid_622844 != nil: + section.add "InstanceId", valid_622844 + var valid_622845 = formData.getOrDefault("Latest") + valid_622845 = validateParameter(valid_622845, JBool, required = false, default = nil) + if valid_622845 != nil: + section.add "Latest", valid_622845 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622844: Call_PostGetConsoleOutput_622829; path: JsonNode; +proc call*(call_622846: Call_PostGetConsoleOutput_622831; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Gets the console output for the specified instance. For Linux instances, the instance console output displays the exact console output that would normally be displayed on a physical monitor attached to a computer. For Windows instances, the instance console output includes the last three system event log errors.

    By default, the console output returns buffered information that was posted shortly after an instance transition state (start, stop, reboot, or terminate). This information is available for at least one hour after the most recent post. Only the most recent 64 KB of console output is available.

    You can optionally retrieve the latest serial console output at any time during the instance lifecycle. This option is supported on instance types that use the Nitro hypervisor.

    For more information, see Instance Console Output in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_622844.validator(path, query, header, formData, body) - let scheme = call_622844.pickScheme + let valid = call_622846.validator(path, query, header, formData, body) + let scheme = call_622846.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622844.url(scheme.get, call_622844.host, call_622844.base, - call_622844.route, valid.getOrDefault("path"), + let url = call_622846.url(scheme.get, call_622846.host, call_622846.base, + call_622846.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622844, url, valid) + result = atozHook(call_622846, url, valid) -proc call*(call_622845: Call_PostGetConsoleOutput_622829; InstanceId: string; +proc call*(call_622847: Call_PostGetConsoleOutput_622831; InstanceId: string; DryRun: bool = false; Action: string = "GetConsoleOutput"; Latest: bool = false; Version: string = "2016-11-15"): Recallable = ## postGetConsoleOutput @@ -96150,23 +96177,23 @@ proc call*(call_622845: Call_PostGetConsoleOutput_622829; InstanceId: string; ## Latest: bool ## :

    When enabled, retrieves the latest console output for the instance.

    Default: disabled (false)

    ## Version: string (required) - var query_622846 = newJObject() - var formData_622847 = newJObject() - add(formData_622847, "DryRun", newJBool(DryRun)) - add(formData_622847, "InstanceId", newJString(InstanceId)) - add(query_622846, "Action", newJString(Action)) - add(formData_622847, "Latest", newJBool(Latest)) - add(query_622846, "Version", newJString(Version)) - result = call_622845.call(nil, query_622846, nil, formData_622847, nil) + var query_622848 = newJObject() + var formData_622849 = newJObject() + add(formData_622849, "DryRun", newJBool(DryRun)) + add(formData_622849, "InstanceId", newJString(InstanceId)) + add(query_622848, "Action", newJString(Action)) + add(formData_622849, "Latest", newJBool(Latest)) + add(query_622848, "Version", newJString(Version)) + result = call_622847.call(nil, query_622848, nil, formData_622849, nil) -var postGetConsoleOutput* = Call_PostGetConsoleOutput_622829( +var postGetConsoleOutput* = Call_PostGetConsoleOutput_622831( name: "postGetConsoleOutput", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=GetConsoleOutput", - validator: validate_PostGetConsoleOutput_622830, base: "/", - url: url_PostGetConsoleOutput_622831, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostGetConsoleOutput_622832, base: "/", + url: url_PostGetConsoleOutput_622833, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetGetConsoleOutput_622811 = ref object of OpenApiRestCall_610658 -proc url_GetGetConsoleOutput_622813(protocol: Scheme; host: string; base: string; + Call_GetGetConsoleOutput_622813 = ref object of OpenApiRestCall_610658 +proc url_GetGetConsoleOutput_622815(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -96176,7 +96203,7 @@ proc url_GetGetConsoleOutput_622813(protocol: Scheme; host: string; base: string else: result.path = base & route -proc validate_GetGetConsoleOutput_622812(path: JsonNode; query: JsonNode; +proc validate_GetGetConsoleOutput_622814(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Gets the console output for the specified instance. For Linux instances, the instance console output displays the exact console output that would normally be displayed on a physical monitor attached to a computer. For Windows instances, the instance console output includes the last three system event log errors.

    By default, the console output returns buffered information that was posted shortly after an instance transition state (start, stop, reboot, or terminate). This information is available for at least one hour after the most recent post. Only the most recent 64 KB of console output is available.

    You can optionally retrieve the latest serial console output at any time during the instance lifecycle. This option is supported on instance types that use the Nitro hypervisor.

    For more information, see Instance Console Output in the Amazon Elastic Compute Cloud User Guide.

    @@ -96195,31 +96222,31 @@ proc validate_GetGetConsoleOutput_622812(path: JsonNode; query: JsonNode; ## :

    When enabled, retrieves the latest console output for the instance.

    Default: disabled (false)

    ## Version: JString (required) section = newJObject() - var valid_622814 = query.getOrDefault("DryRun") - valid_622814 = validateParameter(valid_622814, JBool, required = false, default = nil) - if valid_622814 != nil: - section.add "DryRun", valid_622814 + var valid_622816 = query.getOrDefault("DryRun") + valid_622816 = validateParameter(valid_622816, JBool, required = false, default = nil) + if valid_622816 != nil: + section.add "DryRun", valid_622816 assert query != nil, "query argument is necessary due to required `InstanceId` field" - var valid_622815 = query.getOrDefault("InstanceId") - valid_622815 = validateParameter(valid_622815, JString, required = true, + var valid_622817 = query.getOrDefault("InstanceId") + valid_622817 = validateParameter(valid_622817, JString, required = true, default = nil) - if valid_622815 != nil: - section.add "InstanceId", valid_622815 - var valid_622816 = query.getOrDefault("Action") - valid_622816 = validateParameter(valid_622816, JString, required = true, - default = newJString("GetConsoleOutput")) - if valid_622816 != nil: - section.add "Action", valid_622816 - var valid_622817 = query.getOrDefault("Latest") - valid_622817 = validateParameter(valid_622817, JBool, required = false, default = nil) if valid_622817 != nil: - section.add "Latest", valid_622817 - var valid_622818 = query.getOrDefault("Version") + section.add "InstanceId", valid_622817 + var valid_622818 = query.getOrDefault("Action") valid_622818 = validateParameter(valid_622818, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("GetConsoleOutput")) if valid_622818 != nil: - section.add "Version", valid_622818 + section.add "Action", valid_622818 + var valid_622819 = query.getOrDefault("Latest") + valid_622819 = validateParameter(valid_622819, JBool, required = false, default = nil) + if valid_622819 != nil: + section.add "Latest", valid_622819 + var valid_622820 = query.getOrDefault("Version") + valid_622820 = validateParameter(valid_622820, JString, required = true, + default = newJString("2016-11-15")) + if valid_622820 != nil: + section.add "Version", valid_622820 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -96230,61 +96257,61 @@ proc validate_GetGetConsoleOutput_622812(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622819 = header.getOrDefault("X-Amz-Signature") - valid_622819 = validateParameter(valid_622819, JString, required = false, - default = nil) - if valid_622819 != nil: - section.add "X-Amz-Signature", valid_622819 - var valid_622820 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622820 = validateParameter(valid_622820, JString, required = false, - default = nil) - if valid_622820 != nil: - section.add "X-Amz-Content-Sha256", valid_622820 - var valid_622821 = header.getOrDefault("X-Amz-Date") + var valid_622821 = header.getOrDefault("X-Amz-Signature") valid_622821 = validateParameter(valid_622821, JString, required = false, default = nil) if valid_622821 != nil: - section.add "X-Amz-Date", valid_622821 - var valid_622822 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622821 + var valid_622822 = header.getOrDefault("X-Amz-Content-Sha256") valid_622822 = validateParameter(valid_622822, JString, required = false, default = nil) if valid_622822 != nil: - section.add "X-Amz-Credential", valid_622822 - var valid_622823 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622822 + var valid_622823 = header.getOrDefault("X-Amz-Date") valid_622823 = validateParameter(valid_622823, JString, required = false, default = nil) if valid_622823 != nil: - section.add "X-Amz-Security-Token", valid_622823 - var valid_622824 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622823 + var valid_622824 = header.getOrDefault("X-Amz-Credential") valid_622824 = validateParameter(valid_622824, JString, required = false, default = nil) if valid_622824 != nil: - section.add "X-Amz-Algorithm", valid_622824 - var valid_622825 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622824 + var valid_622825 = header.getOrDefault("X-Amz-Security-Token") valid_622825 = validateParameter(valid_622825, JString, required = false, default = nil) if valid_622825 != nil: - section.add "X-Amz-SignedHeaders", valid_622825 + section.add "X-Amz-Security-Token", valid_622825 + var valid_622826 = header.getOrDefault("X-Amz-Algorithm") + valid_622826 = validateParameter(valid_622826, JString, required = false, + default = nil) + if valid_622826 != nil: + section.add "X-Amz-Algorithm", valid_622826 + var valid_622827 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622827 = validateParameter(valid_622827, JString, required = false, + default = nil) + if valid_622827 != nil: + section.add "X-Amz-SignedHeaders", valid_622827 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622826: Call_GetGetConsoleOutput_622811; path: JsonNode; +proc call*(call_622828: Call_GetGetConsoleOutput_622813; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Gets the console output for the specified instance. For Linux instances, the instance console output displays the exact console output that would normally be displayed on a physical monitor attached to a computer. For Windows instances, the instance console output includes the last three system event log errors.

    By default, the console output returns buffered information that was posted shortly after an instance transition state (start, stop, reboot, or terminate). This information is available for at least one hour after the most recent post. Only the most recent 64 KB of console output is available.

    You can optionally retrieve the latest serial console output at any time during the instance lifecycle. This option is supported on instance types that use the Nitro hypervisor.

    For more information, see Instance Console Output in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_622826.validator(path, query, header, formData, body) - let scheme = call_622826.pickScheme + let valid = call_622828.validator(path, query, header, formData, body) + let scheme = call_622828.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622826.url(scheme.get, call_622826.host, call_622826.base, - call_622826.route, valid.getOrDefault("path"), + let url = call_622828.url(scheme.get, call_622828.host, call_622828.base, + call_622828.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622826, url, valid) + result = atozHook(call_622828, url, valid) -proc call*(call_622827: Call_GetGetConsoleOutput_622811; InstanceId: string; +proc call*(call_622829: Call_GetGetConsoleOutput_622813; InstanceId: string; DryRun: bool = false; Action: string = "GetConsoleOutput"; Latest: bool = false; Version: string = "2016-11-15"): Recallable = ## getGetConsoleOutput @@ -96297,22 +96324,22 @@ proc call*(call_622827: Call_GetGetConsoleOutput_622811; InstanceId: string; ## Latest: bool ## :

    When enabled, retrieves the latest console output for the instance.

    Default: disabled (false)

    ## Version: string (required) - var query_622828 = newJObject() - add(query_622828, "DryRun", newJBool(DryRun)) - add(query_622828, "InstanceId", newJString(InstanceId)) - add(query_622828, "Action", newJString(Action)) - add(query_622828, "Latest", newJBool(Latest)) - add(query_622828, "Version", newJString(Version)) - result = call_622827.call(nil, query_622828, nil, nil, nil) + var query_622830 = newJObject() + add(query_622830, "DryRun", newJBool(DryRun)) + add(query_622830, "InstanceId", newJString(InstanceId)) + add(query_622830, "Action", newJString(Action)) + add(query_622830, "Latest", newJBool(Latest)) + add(query_622830, "Version", newJString(Version)) + result = call_622829.call(nil, query_622830, nil, nil, nil) -var getGetConsoleOutput* = Call_GetGetConsoleOutput_622811( +var getGetConsoleOutput* = Call_GetGetConsoleOutput_622813( name: "getGetConsoleOutput", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=GetConsoleOutput", - validator: validate_GetGetConsoleOutput_622812, base: "/", - url: url_GetGetConsoleOutput_622813, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetGetConsoleOutput_622814, base: "/", + url: url_GetGetConsoleOutput_622815, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostGetConsoleScreenshot_622866 = ref object of OpenApiRestCall_610658 -proc url_PostGetConsoleScreenshot_622868(protocol: Scheme; host: string; + Call_PostGetConsoleScreenshot_622868 = ref object of OpenApiRestCall_610658 +proc url_PostGetConsoleScreenshot_622870(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -96323,7 +96350,7 @@ proc url_PostGetConsoleScreenshot_622868(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostGetConsoleScreenshot_622867(path: JsonNode; query: JsonNode; +proc validate_PostGetConsoleScreenshot_622869(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Retrieve a JPG-format screenshot of a running instance to help with troubleshooting.

    The returned content is Base64-encoded.

    ## @@ -96335,16 +96362,16 @@ proc validate_PostGetConsoleScreenshot_622867(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622869 = query.getOrDefault("Action") - valid_622869 = validateParameter(valid_622869, JString, required = true, + var valid_622871 = query.getOrDefault("Action") + valid_622871 = validateParameter(valid_622871, JString, required = true, default = newJString("GetConsoleScreenshot")) - if valid_622869 != nil: - section.add "Action", valid_622869 - var valid_622870 = query.getOrDefault("Version") - valid_622870 = validateParameter(valid_622870, JString, required = true, + if valid_622871 != nil: + section.add "Action", valid_622871 + var valid_622872 = query.getOrDefault("Version") + valid_622872 = validateParameter(valid_622872, JString, required = true, default = newJString("2016-11-15")) - if valid_622870 != nil: - section.add "Version", valid_622870 + if valid_622872 != nil: + section.add "Version", valid_622872 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -96355,41 +96382,41 @@ proc validate_PostGetConsoleScreenshot_622867(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622871 = header.getOrDefault("X-Amz-Signature") - valid_622871 = validateParameter(valid_622871, JString, required = false, - default = nil) - if valid_622871 != nil: - section.add "X-Amz-Signature", valid_622871 - var valid_622872 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622872 = validateParameter(valid_622872, JString, required = false, - default = nil) - if valid_622872 != nil: - section.add "X-Amz-Content-Sha256", valid_622872 - var valid_622873 = header.getOrDefault("X-Amz-Date") + var valid_622873 = header.getOrDefault("X-Amz-Signature") valid_622873 = validateParameter(valid_622873, JString, required = false, default = nil) if valid_622873 != nil: - section.add "X-Amz-Date", valid_622873 - var valid_622874 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622873 + var valid_622874 = header.getOrDefault("X-Amz-Content-Sha256") valid_622874 = validateParameter(valid_622874, JString, required = false, default = nil) if valid_622874 != nil: - section.add "X-Amz-Credential", valid_622874 - var valid_622875 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622874 + var valid_622875 = header.getOrDefault("X-Amz-Date") valid_622875 = validateParameter(valid_622875, JString, required = false, default = nil) if valid_622875 != nil: - section.add "X-Amz-Security-Token", valid_622875 - var valid_622876 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622875 + var valid_622876 = header.getOrDefault("X-Amz-Credential") valid_622876 = validateParameter(valid_622876, JString, required = false, default = nil) if valid_622876 != nil: - section.add "X-Amz-Algorithm", valid_622876 - var valid_622877 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622876 + var valid_622877 = header.getOrDefault("X-Amz-Security-Token") valid_622877 = validateParameter(valid_622877, JString, required = false, default = nil) if valid_622877 != nil: - section.add "X-Amz-SignedHeaders", valid_622877 + section.add "X-Amz-Security-Token", valid_622877 + var valid_622878 = header.getOrDefault("X-Amz-Algorithm") + valid_622878 = validateParameter(valid_622878, JString, required = false, + default = nil) + if valid_622878 != nil: + section.add "X-Amz-Algorithm", valid_622878 + var valid_622879 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622879 = validateParameter(valid_622879, JString, required = false, + default = nil) + if valid_622879 != nil: + section.add "X-Amz-SignedHeaders", valid_622879 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -96399,39 +96426,39 @@ proc validate_PostGetConsoleScreenshot_622867(path: JsonNode; query: JsonNode; ## WakeUp: JBool ## : When set to true, acts as keystroke input and wakes up an instance that's in standby or "sleep" mode. section = newJObject() - var valid_622878 = formData.getOrDefault("DryRun") - valid_622878 = validateParameter(valid_622878, JBool, required = false, default = nil) - if valid_622878 != nil: - section.add "DryRun", valid_622878 + var valid_622880 = formData.getOrDefault("DryRun") + valid_622880 = validateParameter(valid_622880, JBool, required = false, default = nil) + if valid_622880 != nil: + section.add "DryRun", valid_622880 assert formData != nil, "formData argument is necessary due to required `InstanceId` field" - var valid_622879 = formData.getOrDefault("InstanceId") - valid_622879 = validateParameter(valid_622879, JString, required = true, + var valid_622881 = formData.getOrDefault("InstanceId") + valid_622881 = validateParameter(valid_622881, JString, required = true, default = nil) - if valid_622879 != nil: - section.add "InstanceId", valid_622879 - var valid_622880 = formData.getOrDefault("WakeUp") - valid_622880 = validateParameter(valid_622880, JBool, required = false, default = nil) - if valid_622880 != nil: - section.add "WakeUp", valid_622880 + if valid_622881 != nil: + section.add "InstanceId", valid_622881 + var valid_622882 = formData.getOrDefault("WakeUp") + valid_622882 = validateParameter(valid_622882, JBool, required = false, default = nil) + if valid_622882 != nil: + section.add "WakeUp", valid_622882 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622881: Call_PostGetConsoleScreenshot_622866; path: JsonNode; +proc call*(call_622883: Call_PostGetConsoleScreenshot_622868; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Retrieve a JPG-format screenshot of a running instance to help with troubleshooting.

    The returned content is Base64-encoded.

    ## - let valid = call_622881.validator(path, query, header, formData, body) - let scheme = call_622881.pickScheme + let valid = call_622883.validator(path, query, header, formData, body) + let scheme = call_622883.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622881.url(scheme.get, call_622881.host, call_622881.base, - call_622881.route, valid.getOrDefault("path"), + let url = call_622883.url(scheme.get, call_622883.host, call_622883.base, + call_622883.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622881, url, valid) + result = atozHook(call_622883, url, valid) -proc call*(call_622882: Call_PostGetConsoleScreenshot_622866; InstanceId: string; +proc call*(call_622884: Call_PostGetConsoleScreenshot_622868; InstanceId: string; DryRun: bool = false; Action: string = "GetConsoleScreenshot"; Version: string = "2016-11-15"; WakeUp: bool = false): Recallable = ## postGetConsoleScreenshot @@ -96444,23 +96471,23 @@ proc call*(call_622882: Call_PostGetConsoleScreenshot_622866; InstanceId: string ## Version: string (required) ## WakeUp: bool ## : When set to true, acts as keystroke input and wakes up an instance that's in standby or "sleep" mode. - var query_622883 = newJObject() - var formData_622884 = newJObject() - add(formData_622884, "DryRun", newJBool(DryRun)) - add(formData_622884, "InstanceId", newJString(InstanceId)) - add(query_622883, "Action", newJString(Action)) - add(query_622883, "Version", newJString(Version)) - add(formData_622884, "WakeUp", newJBool(WakeUp)) - result = call_622882.call(nil, query_622883, nil, formData_622884, nil) - -var postGetConsoleScreenshot* = Call_PostGetConsoleScreenshot_622866( + var query_622885 = newJObject() + var formData_622886 = newJObject() + add(formData_622886, "DryRun", newJBool(DryRun)) + add(formData_622886, "InstanceId", newJString(InstanceId)) + add(query_622885, "Action", newJString(Action)) + add(query_622885, "Version", newJString(Version)) + add(formData_622886, "WakeUp", newJBool(WakeUp)) + result = call_622884.call(nil, query_622885, nil, formData_622886, nil) + +var postGetConsoleScreenshot* = Call_PostGetConsoleScreenshot_622868( name: "postGetConsoleScreenshot", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=GetConsoleScreenshot", - validator: validate_PostGetConsoleScreenshot_622867, base: "/", - url: url_PostGetConsoleScreenshot_622868, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostGetConsoleScreenshot_622869, base: "/", + url: url_PostGetConsoleScreenshot_622870, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetGetConsoleScreenshot_622848 = ref object of OpenApiRestCall_610658 -proc url_GetGetConsoleScreenshot_622850(protocol: Scheme; host: string; base: string; + Call_GetGetConsoleScreenshot_622850 = ref object of OpenApiRestCall_610658 +proc url_GetGetConsoleScreenshot_622852(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -96471,7 +96498,7 @@ proc url_GetGetConsoleScreenshot_622850(protocol: Scheme; host: string; base: st else: result.path = base & route -proc validate_GetGetConsoleScreenshot_622849(path: JsonNode; query: JsonNode; +proc validate_GetGetConsoleScreenshot_622851(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Retrieve a JPG-format screenshot of a running instance to help with troubleshooting.

    The returned content is Base64-encoded.

    ## @@ -96489,31 +96516,31 @@ proc validate_GetGetConsoleScreenshot_622849(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622851 = query.getOrDefault("DryRun") - valid_622851 = validateParameter(valid_622851, JBool, required = false, default = nil) - if valid_622851 != nil: - section.add "DryRun", valid_622851 - assert query != nil, - "query argument is necessary due to required `InstanceId` field" - var valid_622852 = query.getOrDefault("InstanceId") - valid_622852 = validateParameter(valid_622852, JString, required = true, - default = nil) - if valid_622852 != nil: - section.add "InstanceId", valid_622852 - var valid_622853 = query.getOrDefault("WakeUp") + var valid_622853 = query.getOrDefault("DryRun") valid_622853 = validateParameter(valid_622853, JBool, required = false, default = nil) if valid_622853 != nil: - section.add "WakeUp", valid_622853 - var valid_622854 = query.getOrDefault("Action") + section.add "DryRun", valid_622853 + assert query != nil, + "query argument is necessary due to required `InstanceId` field" + var valid_622854 = query.getOrDefault("InstanceId") valid_622854 = validateParameter(valid_622854, JString, required = true, - default = newJString("GetConsoleScreenshot")) + default = nil) if valid_622854 != nil: - section.add "Action", valid_622854 - var valid_622855 = query.getOrDefault("Version") - valid_622855 = validateParameter(valid_622855, JString, required = true, - default = newJString("2016-11-15")) + section.add "InstanceId", valid_622854 + var valid_622855 = query.getOrDefault("WakeUp") + valid_622855 = validateParameter(valid_622855, JBool, required = false, default = nil) if valid_622855 != nil: - section.add "Version", valid_622855 + section.add "WakeUp", valid_622855 + var valid_622856 = query.getOrDefault("Action") + valid_622856 = validateParameter(valid_622856, JString, required = true, + default = newJString("GetConsoleScreenshot")) + if valid_622856 != nil: + section.add "Action", valid_622856 + var valid_622857 = query.getOrDefault("Version") + valid_622857 = validateParameter(valid_622857, JString, required = true, + default = newJString("2016-11-15")) + if valid_622857 != nil: + section.add "Version", valid_622857 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -96524,61 +96551,61 @@ proc validate_GetGetConsoleScreenshot_622849(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622856 = header.getOrDefault("X-Amz-Signature") - valid_622856 = validateParameter(valid_622856, JString, required = false, - default = nil) - if valid_622856 != nil: - section.add "X-Amz-Signature", valid_622856 - var valid_622857 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622857 = validateParameter(valid_622857, JString, required = false, - default = nil) - if valid_622857 != nil: - section.add "X-Amz-Content-Sha256", valid_622857 - var valid_622858 = header.getOrDefault("X-Amz-Date") + var valid_622858 = header.getOrDefault("X-Amz-Signature") valid_622858 = validateParameter(valid_622858, JString, required = false, default = nil) if valid_622858 != nil: - section.add "X-Amz-Date", valid_622858 - var valid_622859 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622858 + var valid_622859 = header.getOrDefault("X-Amz-Content-Sha256") valid_622859 = validateParameter(valid_622859, JString, required = false, default = nil) if valid_622859 != nil: - section.add "X-Amz-Credential", valid_622859 - var valid_622860 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622859 + var valid_622860 = header.getOrDefault("X-Amz-Date") valid_622860 = validateParameter(valid_622860, JString, required = false, default = nil) if valid_622860 != nil: - section.add "X-Amz-Security-Token", valid_622860 - var valid_622861 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622860 + var valid_622861 = header.getOrDefault("X-Amz-Credential") valid_622861 = validateParameter(valid_622861, JString, required = false, default = nil) if valid_622861 != nil: - section.add "X-Amz-Algorithm", valid_622861 - var valid_622862 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622861 + var valid_622862 = header.getOrDefault("X-Amz-Security-Token") valid_622862 = validateParameter(valid_622862, JString, required = false, default = nil) if valid_622862 != nil: - section.add "X-Amz-SignedHeaders", valid_622862 + section.add "X-Amz-Security-Token", valid_622862 + var valid_622863 = header.getOrDefault("X-Amz-Algorithm") + valid_622863 = validateParameter(valid_622863, JString, required = false, + default = nil) + if valid_622863 != nil: + section.add "X-Amz-Algorithm", valid_622863 + var valid_622864 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622864 = validateParameter(valid_622864, JString, required = false, + default = nil) + if valid_622864 != nil: + section.add "X-Amz-SignedHeaders", valid_622864 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622863: Call_GetGetConsoleScreenshot_622848; path: JsonNode; +proc call*(call_622865: Call_GetGetConsoleScreenshot_622850; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Retrieve a JPG-format screenshot of a running instance to help with troubleshooting.

    The returned content is Base64-encoded.

    ## - let valid = call_622863.validator(path, query, header, formData, body) - let scheme = call_622863.pickScheme + let valid = call_622865.validator(path, query, header, formData, body) + let scheme = call_622865.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622863.url(scheme.get, call_622863.host, call_622863.base, - call_622863.route, valid.getOrDefault("path"), + let url = call_622865.url(scheme.get, call_622865.host, call_622865.base, + call_622865.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622863, url, valid) + result = atozHook(call_622865, url, valid) -proc call*(call_622864: Call_GetGetConsoleScreenshot_622848; InstanceId: string; +proc call*(call_622866: Call_GetGetConsoleScreenshot_622850; InstanceId: string; DryRun: bool = false; WakeUp: bool = false; Action: string = "GetConsoleScreenshot"; Version: string = "2016-11-15"): Recallable = ## getGetConsoleScreenshot @@ -96591,22 +96618,22 @@ proc call*(call_622864: Call_GetGetConsoleScreenshot_622848; InstanceId: string; ## : When set to true, acts as keystroke input and wakes up an instance that's in standby or "sleep" mode. ## Action: string (required) ## Version: string (required) - var query_622865 = newJObject() - add(query_622865, "DryRun", newJBool(DryRun)) - add(query_622865, "InstanceId", newJString(InstanceId)) - add(query_622865, "WakeUp", newJBool(WakeUp)) - add(query_622865, "Action", newJString(Action)) - add(query_622865, "Version", newJString(Version)) - result = call_622864.call(nil, query_622865, nil, nil, nil) + var query_622867 = newJObject() + add(query_622867, "DryRun", newJBool(DryRun)) + add(query_622867, "InstanceId", newJString(InstanceId)) + add(query_622867, "WakeUp", newJBool(WakeUp)) + add(query_622867, "Action", newJString(Action)) + add(query_622867, "Version", newJString(Version)) + result = call_622866.call(nil, query_622867, nil, nil, nil) -var getGetConsoleScreenshot* = Call_GetGetConsoleScreenshot_622848( +var getGetConsoleScreenshot* = Call_GetGetConsoleScreenshot_622850( name: "getGetConsoleScreenshot", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=GetConsoleScreenshot", - validator: validate_GetGetConsoleScreenshot_622849, base: "/", - url: url_GetGetConsoleScreenshot_622850, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetGetConsoleScreenshot_622851, base: "/", + url: url_GetGetConsoleScreenshot_622852, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostGetDefaultCreditSpecification_622902 = ref object of OpenApiRestCall_610658 -proc url_PostGetDefaultCreditSpecification_622904(protocol: Scheme; host: string; + Call_PostGetDefaultCreditSpecification_622904 = ref object of OpenApiRestCall_610658 +proc url_PostGetDefaultCreditSpecification_622906(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -96616,7 +96643,7 @@ proc url_PostGetDefaultCreditSpecification_622904(protocol: Scheme; host: string else: result.path = base & route -proc validate_PostGetDefaultCreditSpecification_622903(path: JsonNode; +proc validate_PostGetDefaultCreditSpecification_622905(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Describes the default credit option for CPU usage of a burstable performance instance family.

    For more information, see Burstable Performance Instances in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -96628,16 +96655,16 @@ proc validate_PostGetDefaultCreditSpecification_622903(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622905 = query.getOrDefault("Action") - valid_622905 = validateParameter(valid_622905, JString, required = true, default = newJString( + var valid_622907 = query.getOrDefault("Action") + valid_622907 = validateParameter(valid_622907, JString, required = true, default = newJString( "GetDefaultCreditSpecification")) - if valid_622905 != nil: - section.add "Action", valid_622905 - var valid_622906 = query.getOrDefault("Version") - valid_622906 = validateParameter(valid_622906, JString, required = true, + if valid_622907 != nil: + section.add "Action", valid_622907 + var valid_622908 = query.getOrDefault("Version") + valid_622908 = validateParameter(valid_622908, JString, required = true, default = newJString("2016-11-15")) - if valid_622906 != nil: - section.add "Version", valid_622906 + if valid_622908 != nil: + section.add "Version", valid_622908 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -96648,41 +96675,41 @@ proc validate_PostGetDefaultCreditSpecification_622903(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622907 = header.getOrDefault("X-Amz-Signature") - valid_622907 = validateParameter(valid_622907, JString, required = false, - default = nil) - if valid_622907 != nil: - section.add "X-Amz-Signature", valid_622907 - var valid_622908 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622908 = validateParameter(valid_622908, JString, required = false, - default = nil) - if valid_622908 != nil: - section.add "X-Amz-Content-Sha256", valid_622908 - var valid_622909 = header.getOrDefault("X-Amz-Date") + var valid_622909 = header.getOrDefault("X-Amz-Signature") valid_622909 = validateParameter(valid_622909, JString, required = false, default = nil) if valid_622909 != nil: - section.add "X-Amz-Date", valid_622909 - var valid_622910 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622909 + var valid_622910 = header.getOrDefault("X-Amz-Content-Sha256") valid_622910 = validateParameter(valid_622910, JString, required = false, default = nil) if valid_622910 != nil: - section.add "X-Amz-Credential", valid_622910 - var valid_622911 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622910 + var valid_622911 = header.getOrDefault("X-Amz-Date") valid_622911 = validateParameter(valid_622911, JString, required = false, default = nil) if valid_622911 != nil: - section.add "X-Amz-Security-Token", valid_622911 - var valid_622912 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622911 + var valid_622912 = header.getOrDefault("X-Amz-Credential") valid_622912 = validateParameter(valid_622912, JString, required = false, default = nil) if valid_622912 != nil: - section.add "X-Amz-Algorithm", valid_622912 - var valid_622913 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622912 + var valid_622913 = header.getOrDefault("X-Amz-Security-Token") valid_622913 = validateParameter(valid_622913, JString, required = false, default = nil) if valid_622913 != nil: - section.add "X-Amz-SignedHeaders", valid_622913 + section.add "X-Amz-Security-Token", valid_622913 + var valid_622914 = header.getOrDefault("X-Amz-Algorithm") + valid_622914 = validateParameter(valid_622914, JString, required = false, + default = nil) + if valid_622914 != nil: + section.add "X-Amz-Algorithm", valid_622914 + var valid_622915 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622915 = validateParameter(valid_622915, JString, required = false, + default = nil) + if valid_622915 != nil: + section.add "X-Amz-SignedHeaders", valid_622915 result.add "header", section ## parameters in `formData` object: ## InstanceFamily: JString (required) @@ -96690,34 +96717,34 @@ proc validate_PostGetDefaultCreditSpecification_622903(path: JsonNode; ## DryRun: JBool ## : 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. section = newJObject() - var valid_622914 = formData.getOrDefault("InstanceFamily") - valid_622914 = validateParameter(valid_622914, JString, required = true, + var valid_622916 = formData.getOrDefault("InstanceFamily") + valid_622916 = validateParameter(valid_622916, JString, required = true, default = newJString("t2")) - if valid_622914 != nil: - section.add "InstanceFamily", valid_622914 - var valid_622915 = formData.getOrDefault("DryRun") - valid_622915 = validateParameter(valid_622915, JBool, required = false, default = nil) - if valid_622915 != nil: - section.add "DryRun", valid_622915 + if valid_622916 != nil: + section.add "InstanceFamily", valid_622916 + var valid_622917 = formData.getOrDefault("DryRun") + valid_622917 = validateParameter(valid_622917, JBool, required = false, default = nil) + if valid_622917 != nil: + section.add "DryRun", valid_622917 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622916: Call_PostGetDefaultCreditSpecification_622902; +proc call*(call_622918: Call_PostGetDefaultCreditSpecification_622904; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Describes the default credit option for CPU usage of a burstable performance instance family.

    For more information, see Burstable Performance Instances in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_622916.validator(path, query, header, formData, body) - let scheme = call_622916.pickScheme + let valid = call_622918.validator(path, query, header, formData, body) + let scheme = call_622918.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622916.url(scheme.get, call_622916.host, call_622916.base, - call_622916.route, valid.getOrDefault("path"), + let url = call_622918.url(scheme.get, call_622918.host, call_622918.base, + call_622918.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622916, url, valid) + result = atozHook(call_622918, url, valid) -proc call*(call_622917: Call_PostGetDefaultCreditSpecification_622902; +proc call*(call_622919: Call_PostGetDefaultCreditSpecification_622904; InstanceFamily: string = "t2"; DryRun: bool = false; Action: string = "GetDefaultCreditSpecification"; Version: string = "2016-11-15"): Recallable = @@ -96729,23 +96756,23 @@ proc call*(call_622917: Call_PostGetDefaultCreditSpecification_622902; ## : 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. ## Action: string (required) ## Version: string (required) - var query_622918 = newJObject() - var formData_622919 = newJObject() - add(formData_622919, "InstanceFamily", newJString(InstanceFamily)) - add(formData_622919, "DryRun", newJBool(DryRun)) - add(query_622918, "Action", newJString(Action)) - add(query_622918, "Version", newJString(Version)) - result = call_622917.call(nil, query_622918, nil, formData_622919, nil) + var query_622920 = newJObject() + var formData_622921 = newJObject() + add(formData_622921, "InstanceFamily", newJString(InstanceFamily)) + add(formData_622921, "DryRun", newJBool(DryRun)) + add(query_622920, "Action", newJString(Action)) + add(query_622920, "Version", newJString(Version)) + result = call_622919.call(nil, query_622920, nil, formData_622921, nil) -var postGetDefaultCreditSpecification* = Call_PostGetDefaultCreditSpecification_622902( +var postGetDefaultCreditSpecification* = Call_PostGetDefaultCreditSpecification_622904( name: "postGetDefaultCreditSpecification", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=GetDefaultCreditSpecification", - validator: validate_PostGetDefaultCreditSpecification_622903, base: "/", - url: url_PostGetDefaultCreditSpecification_622904, + validator: validate_PostGetDefaultCreditSpecification_622905, base: "/", + url: url_PostGetDefaultCreditSpecification_622906, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetGetDefaultCreditSpecification_622885 = ref object of OpenApiRestCall_610658 -proc url_GetGetDefaultCreditSpecification_622887(protocol: Scheme; host: string; + Call_GetGetDefaultCreditSpecification_622887 = ref object of OpenApiRestCall_610658 +proc url_GetGetDefaultCreditSpecification_622889(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -96755,7 +96782,7 @@ proc url_GetGetDefaultCreditSpecification_622887(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetGetDefaultCreditSpecification_622886(path: JsonNode; +proc validate_GetGetDefaultCreditSpecification_622888(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Describes the default credit option for CPU usage of a burstable performance instance family.

    For more information, see Burstable Performance Instances in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -96771,25 +96798,25 @@ proc validate_GetGetDefaultCreditSpecification_622886(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622888 = query.getOrDefault("DryRun") - valid_622888 = validateParameter(valid_622888, JBool, required = false, default = nil) - if valid_622888 != nil: - section.add "DryRun", valid_622888 - var valid_622889 = query.getOrDefault("InstanceFamily") - valid_622889 = validateParameter(valid_622889, JString, required = true, - default = newJString("t2")) - if valid_622889 != nil: - section.add "InstanceFamily", valid_622889 - var valid_622890 = query.getOrDefault("Action") - valid_622890 = validateParameter(valid_622890, JString, required = true, default = newJString( - "GetDefaultCreditSpecification")) + var valid_622890 = query.getOrDefault("DryRun") + valid_622890 = validateParameter(valid_622890, JBool, required = false, default = nil) if valid_622890 != nil: - section.add "Action", valid_622890 - var valid_622891 = query.getOrDefault("Version") + section.add "DryRun", valid_622890 + var valid_622891 = query.getOrDefault("InstanceFamily") valid_622891 = validateParameter(valid_622891, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("t2")) if valid_622891 != nil: - section.add "Version", valid_622891 + section.add "InstanceFamily", valid_622891 + var valid_622892 = query.getOrDefault("Action") + valid_622892 = validateParameter(valid_622892, JString, required = true, default = newJString( + "GetDefaultCreditSpecification")) + if valid_622892 != nil: + section.add "Action", valid_622892 + var valid_622893 = query.getOrDefault("Version") + valid_622893 = validateParameter(valid_622893, JString, required = true, + default = newJString("2016-11-15")) + if valid_622893 != nil: + section.add "Version", valid_622893 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -96800,62 +96827,62 @@ proc validate_GetGetDefaultCreditSpecification_622886(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622892 = header.getOrDefault("X-Amz-Signature") - valid_622892 = validateParameter(valid_622892, JString, required = false, - default = nil) - if valid_622892 != nil: - section.add "X-Amz-Signature", valid_622892 - var valid_622893 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622893 = validateParameter(valid_622893, JString, required = false, - default = nil) - if valid_622893 != nil: - section.add "X-Amz-Content-Sha256", valid_622893 - var valid_622894 = header.getOrDefault("X-Amz-Date") + var valid_622894 = header.getOrDefault("X-Amz-Signature") valid_622894 = validateParameter(valid_622894, JString, required = false, default = nil) if valid_622894 != nil: - section.add "X-Amz-Date", valid_622894 - var valid_622895 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622894 + var valid_622895 = header.getOrDefault("X-Amz-Content-Sha256") valid_622895 = validateParameter(valid_622895, JString, required = false, default = nil) if valid_622895 != nil: - section.add "X-Amz-Credential", valid_622895 - var valid_622896 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622895 + var valid_622896 = header.getOrDefault("X-Amz-Date") valid_622896 = validateParameter(valid_622896, JString, required = false, default = nil) if valid_622896 != nil: - section.add "X-Amz-Security-Token", valid_622896 - var valid_622897 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622896 + var valid_622897 = header.getOrDefault("X-Amz-Credential") valid_622897 = validateParameter(valid_622897, JString, required = false, default = nil) if valid_622897 != nil: - section.add "X-Amz-Algorithm", valid_622897 - var valid_622898 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622897 + var valid_622898 = header.getOrDefault("X-Amz-Security-Token") valid_622898 = validateParameter(valid_622898, JString, required = false, default = nil) if valid_622898 != nil: - section.add "X-Amz-SignedHeaders", valid_622898 + section.add "X-Amz-Security-Token", valid_622898 + var valid_622899 = header.getOrDefault("X-Amz-Algorithm") + valid_622899 = validateParameter(valid_622899, JString, required = false, + default = nil) + if valid_622899 != nil: + section.add "X-Amz-Algorithm", valid_622899 + var valid_622900 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622900 = validateParameter(valid_622900, JString, required = false, + default = nil) + if valid_622900 != nil: + section.add "X-Amz-SignedHeaders", valid_622900 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622899: Call_GetGetDefaultCreditSpecification_622885; +proc call*(call_622901: Call_GetGetDefaultCreditSpecification_622887; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Describes the default credit option for CPU usage of a burstable performance instance family.

    For more information, see Burstable Performance Instances in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_622899.validator(path, query, header, formData, body) - let scheme = call_622899.pickScheme + let valid = call_622901.validator(path, query, header, formData, body) + let scheme = call_622901.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622899.url(scheme.get, call_622899.host, call_622899.base, - call_622899.route, valid.getOrDefault("path"), + let url = call_622901.url(scheme.get, call_622901.host, call_622901.base, + call_622901.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622899, url, valid) + result = atozHook(call_622901, url, valid) -proc call*(call_622900: Call_GetGetDefaultCreditSpecification_622885; +proc call*(call_622902: Call_GetGetDefaultCreditSpecification_622887; DryRun: bool = false; InstanceFamily: string = "t2"; Action: string = "GetDefaultCreditSpecification"; Version: string = "2016-11-15"): Recallable = @@ -96867,22 +96894,22 @@ proc call*(call_622900: Call_GetGetDefaultCreditSpecification_622885; ## : The instance family. ## Action: string (required) ## Version: string (required) - var query_622901 = newJObject() - add(query_622901, "DryRun", newJBool(DryRun)) - add(query_622901, "InstanceFamily", newJString(InstanceFamily)) - add(query_622901, "Action", newJString(Action)) - add(query_622901, "Version", newJString(Version)) - result = call_622900.call(nil, query_622901, nil, nil, nil) + var query_622903 = newJObject() + add(query_622903, "DryRun", newJBool(DryRun)) + add(query_622903, "InstanceFamily", newJString(InstanceFamily)) + add(query_622903, "Action", newJString(Action)) + add(query_622903, "Version", newJString(Version)) + result = call_622902.call(nil, query_622903, nil, nil, nil) -var getGetDefaultCreditSpecification* = Call_GetGetDefaultCreditSpecification_622885( +var getGetDefaultCreditSpecification* = Call_GetGetDefaultCreditSpecification_622887( name: "getGetDefaultCreditSpecification", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=GetDefaultCreditSpecification", - validator: validate_GetGetDefaultCreditSpecification_622886, base: "/", - url: url_GetGetDefaultCreditSpecification_622887, + validator: validate_GetGetDefaultCreditSpecification_622888, base: "/", + url: url_GetGetDefaultCreditSpecification_622889, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostGetEbsDefaultKmsKeyId_622936 = ref object of OpenApiRestCall_610658 -proc url_PostGetEbsDefaultKmsKeyId_622938(protocol: Scheme; host: string; + Call_PostGetEbsDefaultKmsKeyId_622938 = ref object of OpenApiRestCall_610658 +proc url_PostGetEbsDefaultKmsKeyId_622940(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -96892,7 +96919,7 @@ proc url_PostGetEbsDefaultKmsKeyId_622938(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostGetEbsDefaultKmsKeyId_622937(path: JsonNode; query: JsonNode; +proc validate_PostGetEbsDefaultKmsKeyId_622939(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Describes the default customer master key (CMK) for EBS encryption by default for your account in this Region. You can change the default CMK for encryption by default using ModifyEbsDefaultKmsKeyId or ResetEbsDefaultKmsKeyId.

    For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -96904,16 +96931,16 @@ proc validate_PostGetEbsDefaultKmsKeyId_622937(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622939 = query.getOrDefault("Action") - valid_622939 = validateParameter(valid_622939, JString, required = true, + var valid_622941 = query.getOrDefault("Action") + valid_622941 = validateParameter(valid_622941, JString, required = true, default = newJString("GetEbsDefaultKmsKeyId")) - if valid_622939 != nil: - section.add "Action", valid_622939 - var valid_622940 = query.getOrDefault("Version") - valid_622940 = validateParameter(valid_622940, JString, required = true, + if valid_622941 != nil: + section.add "Action", valid_622941 + var valid_622942 = query.getOrDefault("Version") + valid_622942 = validateParameter(valid_622942, JString, required = true, default = newJString("2016-11-15")) - if valid_622940 != nil: - section.add "Version", valid_622940 + if valid_622942 != nil: + section.add "Version", valid_622942 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -96924,68 +96951,68 @@ proc validate_PostGetEbsDefaultKmsKeyId_622937(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622941 = header.getOrDefault("X-Amz-Signature") - valid_622941 = validateParameter(valid_622941, JString, required = false, - default = nil) - if valid_622941 != nil: - section.add "X-Amz-Signature", valid_622941 - var valid_622942 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622942 = validateParameter(valid_622942, JString, required = false, - default = nil) - if valid_622942 != nil: - section.add "X-Amz-Content-Sha256", valid_622942 - var valid_622943 = header.getOrDefault("X-Amz-Date") + var valid_622943 = header.getOrDefault("X-Amz-Signature") valid_622943 = validateParameter(valid_622943, JString, required = false, default = nil) if valid_622943 != nil: - section.add "X-Amz-Date", valid_622943 - var valid_622944 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622943 + var valid_622944 = header.getOrDefault("X-Amz-Content-Sha256") valid_622944 = validateParameter(valid_622944, JString, required = false, default = nil) if valid_622944 != nil: - section.add "X-Amz-Credential", valid_622944 - var valid_622945 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622944 + var valid_622945 = header.getOrDefault("X-Amz-Date") valid_622945 = validateParameter(valid_622945, JString, required = false, default = nil) if valid_622945 != nil: - section.add "X-Amz-Security-Token", valid_622945 - var valid_622946 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622945 + var valid_622946 = header.getOrDefault("X-Amz-Credential") valid_622946 = validateParameter(valid_622946, JString, required = false, default = nil) if valid_622946 != nil: - section.add "X-Amz-Algorithm", valid_622946 - var valid_622947 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622946 + var valid_622947 = header.getOrDefault("X-Amz-Security-Token") valid_622947 = validateParameter(valid_622947, JString, required = false, default = nil) if valid_622947 != nil: - section.add "X-Amz-SignedHeaders", valid_622947 + section.add "X-Amz-Security-Token", valid_622947 + var valid_622948 = header.getOrDefault("X-Amz-Algorithm") + valid_622948 = validateParameter(valid_622948, JString, required = false, + default = nil) + if valid_622948 != nil: + section.add "X-Amz-Algorithm", valid_622948 + var valid_622949 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622949 = validateParameter(valid_622949, JString, required = false, + default = nil) + if valid_622949 != nil: + section.add "X-Amz-SignedHeaders", valid_622949 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool ## : 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. section = newJObject() - var valid_622948 = formData.getOrDefault("DryRun") - valid_622948 = validateParameter(valid_622948, JBool, required = false, default = nil) - if valid_622948 != nil: - section.add "DryRun", valid_622948 + var valid_622950 = formData.getOrDefault("DryRun") + valid_622950 = validateParameter(valid_622950, JBool, required = false, default = nil) + if valid_622950 != nil: + section.add "DryRun", valid_622950 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622949: Call_PostGetEbsDefaultKmsKeyId_622936; path: JsonNode; +proc call*(call_622951: Call_PostGetEbsDefaultKmsKeyId_622938; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Describes the default customer master key (CMK) for EBS encryption by default for your account in this Region. You can change the default CMK for encryption by default using ModifyEbsDefaultKmsKeyId or ResetEbsDefaultKmsKeyId.

    For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_622949.validator(path, query, header, formData, body) - let scheme = call_622949.pickScheme + let valid = call_622951.validator(path, query, header, formData, body) + let scheme = call_622951.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622949.url(scheme.get, call_622949.host, call_622949.base, - call_622949.route, valid.getOrDefault("path"), + let url = call_622951.url(scheme.get, call_622951.host, call_622951.base, + call_622951.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622949, url, valid) + result = atozHook(call_622951, url, valid) -proc call*(call_622950: Call_PostGetEbsDefaultKmsKeyId_622936; +proc call*(call_622952: Call_PostGetEbsDefaultKmsKeyId_622938; DryRun: bool = false; Action: string = "GetEbsDefaultKmsKeyId"; Version: string = "2016-11-15"): Recallable = ## postGetEbsDefaultKmsKeyId @@ -96994,22 +97021,22 @@ proc call*(call_622950: Call_PostGetEbsDefaultKmsKeyId_622936; ## : 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. ## Action: string (required) ## Version: string (required) - var query_622951 = newJObject() - var formData_622952 = newJObject() - add(formData_622952, "DryRun", newJBool(DryRun)) - add(query_622951, "Action", newJString(Action)) - add(query_622951, "Version", newJString(Version)) - result = call_622950.call(nil, query_622951, nil, formData_622952, nil) + var query_622953 = newJObject() + var formData_622954 = newJObject() + add(formData_622954, "DryRun", newJBool(DryRun)) + add(query_622953, "Action", newJString(Action)) + add(query_622953, "Version", newJString(Version)) + result = call_622952.call(nil, query_622953, nil, formData_622954, nil) -var postGetEbsDefaultKmsKeyId* = Call_PostGetEbsDefaultKmsKeyId_622936( +var postGetEbsDefaultKmsKeyId* = Call_PostGetEbsDefaultKmsKeyId_622938( name: "postGetEbsDefaultKmsKeyId", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=GetEbsDefaultKmsKeyId", - validator: validate_PostGetEbsDefaultKmsKeyId_622937, base: "/", - url: url_PostGetEbsDefaultKmsKeyId_622938, + validator: validate_PostGetEbsDefaultKmsKeyId_622939, base: "/", + url: url_PostGetEbsDefaultKmsKeyId_622940, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetGetEbsDefaultKmsKeyId_622920 = ref object of OpenApiRestCall_610658 -proc url_GetGetEbsDefaultKmsKeyId_622922(protocol: Scheme; host: string; + Call_GetGetEbsDefaultKmsKeyId_622922 = ref object of OpenApiRestCall_610658 +proc url_GetGetEbsDefaultKmsKeyId_622924(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -97020,7 +97047,7 @@ proc url_GetGetEbsDefaultKmsKeyId_622922(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetGetEbsDefaultKmsKeyId_622921(path: JsonNode; query: JsonNode; +proc validate_GetGetEbsDefaultKmsKeyId_622923(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Describes the default customer master key (CMK) for EBS encryption by default for your account in this Region. You can change the default CMK for encryption by default using ModifyEbsDefaultKmsKeyId or ResetEbsDefaultKmsKeyId.

    For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -97034,20 +97061,20 @@ proc validate_GetGetEbsDefaultKmsKeyId_622921(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622923 = query.getOrDefault("DryRun") - valid_622923 = validateParameter(valid_622923, JBool, required = false, default = nil) - if valid_622923 != nil: - section.add "DryRun", valid_622923 - var valid_622924 = query.getOrDefault("Action") - valid_622924 = validateParameter(valid_622924, JString, required = true, + var valid_622925 = query.getOrDefault("DryRun") + valid_622925 = validateParameter(valid_622925, JBool, required = false, default = nil) + if valid_622925 != nil: + section.add "DryRun", valid_622925 + var valid_622926 = query.getOrDefault("Action") + valid_622926 = validateParameter(valid_622926, JString, required = true, default = newJString("GetEbsDefaultKmsKeyId")) - if valid_622924 != nil: - section.add "Action", valid_622924 - var valid_622925 = query.getOrDefault("Version") - valid_622925 = validateParameter(valid_622925, JString, required = true, + if valid_622926 != nil: + section.add "Action", valid_622926 + var valid_622927 = query.getOrDefault("Version") + valid_622927 = validateParameter(valid_622927, JString, required = true, default = newJString("2016-11-15")) - if valid_622925 != nil: - section.add "Version", valid_622925 + if valid_622927 != nil: + section.add "Version", valid_622927 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -97058,61 +97085,61 @@ proc validate_GetGetEbsDefaultKmsKeyId_622921(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622926 = header.getOrDefault("X-Amz-Signature") - valid_622926 = validateParameter(valid_622926, JString, required = false, - default = nil) - if valid_622926 != nil: - section.add "X-Amz-Signature", valid_622926 - var valid_622927 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622927 = validateParameter(valid_622927, JString, required = false, - default = nil) - if valid_622927 != nil: - section.add "X-Amz-Content-Sha256", valid_622927 - var valid_622928 = header.getOrDefault("X-Amz-Date") + var valid_622928 = header.getOrDefault("X-Amz-Signature") valid_622928 = validateParameter(valid_622928, JString, required = false, default = nil) if valid_622928 != nil: - section.add "X-Amz-Date", valid_622928 - var valid_622929 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622928 + var valid_622929 = header.getOrDefault("X-Amz-Content-Sha256") valid_622929 = validateParameter(valid_622929, JString, required = false, default = nil) if valid_622929 != nil: - section.add "X-Amz-Credential", valid_622929 - var valid_622930 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622929 + var valid_622930 = header.getOrDefault("X-Amz-Date") valid_622930 = validateParameter(valid_622930, JString, required = false, default = nil) if valid_622930 != nil: - section.add "X-Amz-Security-Token", valid_622930 - var valid_622931 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622930 + var valid_622931 = header.getOrDefault("X-Amz-Credential") valid_622931 = validateParameter(valid_622931, JString, required = false, default = nil) if valid_622931 != nil: - section.add "X-Amz-Algorithm", valid_622931 - var valid_622932 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622931 + var valid_622932 = header.getOrDefault("X-Amz-Security-Token") valid_622932 = validateParameter(valid_622932, JString, required = false, default = nil) if valid_622932 != nil: - section.add "X-Amz-SignedHeaders", valid_622932 + section.add "X-Amz-Security-Token", valid_622932 + var valid_622933 = header.getOrDefault("X-Amz-Algorithm") + valid_622933 = validateParameter(valid_622933, JString, required = false, + default = nil) + if valid_622933 != nil: + section.add "X-Amz-Algorithm", valid_622933 + var valid_622934 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622934 = validateParameter(valid_622934, JString, required = false, + default = nil) + if valid_622934 != nil: + section.add "X-Amz-SignedHeaders", valid_622934 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622933: Call_GetGetEbsDefaultKmsKeyId_622920; path: JsonNode; +proc call*(call_622935: Call_GetGetEbsDefaultKmsKeyId_622922; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Describes the default customer master key (CMK) for EBS encryption by default for your account in this Region. You can change the default CMK for encryption by default using ModifyEbsDefaultKmsKeyId or ResetEbsDefaultKmsKeyId.

    For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_622933.validator(path, query, header, formData, body) - let scheme = call_622933.pickScheme + let valid = call_622935.validator(path, query, header, formData, body) + let scheme = call_622935.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622933.url(scheme.get, call_622933.host, call_622933.base, - call_622933.route, valid.getOrDefault("path"), + let url = call_622935.url(scheme.get, call_622935.host, call_622935.base, + call_622935.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622933, url, valid) + result = atozHook(call_622935, url, valid) -proc call*(call_622934: Call_GetGetEbsDefaultKmsKeyId_622920; DryRun: bool = false; +proc call*(call_622936: Call_GetGetEbsDefaultKmsKeyId_622922; DryRun: bool = false; Action: string = "GetEbsDefaultKmsKeyId"; Version: string = "2016-11-15"): Recallable = ## getGetEbsDefaultKmsKeyId ##

    Describes the default customer master key (CMK) for EBS encryption by default for your account in this Region. You can change the default CMK for encryption by default using ModifyEbsDefaultKmsKeyId or ResetEbsDefaultKmsKeyId.

    For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

    @@ -97120,20 +97147,20 @@ proc call*(call_622934: Call_GetGetEbsDefaultKmsKeyId_622920; DryRun: bool = fal ## : 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. ## Action: string (required) ## Version: string (required) - var query_622935 = newJObject() - add(query_622935, "DryRun", newJBool(DryRun)) - add(query_622935, "Action", newJString(Action)) - add(query_622935, "Version", newJString(Version)) - result = call_622934.call(nil, query_622935, nil, nil, nil) + var query_622937 = newJObject() + add(query_622937, "DryRun", newJBool(DryRun)) + add(query_622937, "Action", newJString(Action)) + add(query_622937, "Version", newJString(Version)) + result = call_622936.call(nil, query_622937, nil, nil, nil) -var getGetEbsDefaultKmsKeyId* = Call_GetGetEbsDefaultKmsKeyId_622920( +var getGetEbsDefaultKmsKeyId* = Call_GetGetEbsDefaultKmsKeyId_622922( name: "getGetEbsDefaultKmsKeyId", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=GetEbsDefaultKmsKeyId", - validator: validate_GetGetEbsDefaultKmsKeyId_622921, base: "/", - url: url_GetGetEbsDefaultKmsKeyId_622922, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetGetEbsDefaultKmsKeyId_622923, base: "/", + url: url_GetGetEbsDefaultKmsKeyId_622924, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostGetEbsEncryptionByDefault_622969 = ref object of OpenApiRestCall_610658 -proc url_PostGetEbsEncryptionByDefault_622971(protocol: Scheme; host: string; + Call_PostGetEbsEncryptionByDefault_622971 = ref object of OpenApiRestCall_610658 +proc url_PostGetEbsEncryptionByDefault_622973(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -97143,7 +97170,7 @@ proc url_PostGetEbsEncryptionByDefault_622971(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostGetEbsEncryptionByDefault_622970(path: JsonNode; query: JsonNode; +proc validate_PostGetEbsEncryptionByDefault_622972(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Describes whether EBS encryption by default is enabled for your account in the current Region.

    For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -97155,16 +97182,16 @@ proc validate_PostGetEbsEncryptionByDefault_622970(path: JsonNode; query: JsonNo ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622972 = query.getOrDefault("Action") - valid_622972 = validateParameter(valid_622972, JString, required = true, default = newJString( + var valid_622974 = query.getOrDefault("Action") + valid_622974 = validateParameter(valid_622974, JString, required = true, default = newJString( "GetEbsEncryptionByDefault")) - if valid_622972 != nil: - section.add "Action", valid_622972 - var valid_622973 = query.getOrDefault("Version") - valid_622973 = validateParameter(valid_622973, JString, required = true, + if valid_622974 != nil: + section.add "Action", valid_622974 + var valid_622975 = query.getOrDefault("Version") + valid_622975 = validateParameter(valid_622975, JString, required = true, default = newJString("2016-11-15")) - if valid_622973 != nil: - section.add "Version", valid_622973 + if valid_622975 != nil: + section.add "Version", valid_622975 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -97175,68 +97202,68 @@ proc validate_PostGetEbsEncryptionByDefault_622970(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622974 = header.getOrDefault("X-Amz-Signature") - valid_622974 = validateParameter(valid_622974, JString, required = false, - default = nil) - if valid_622974 != nil: - section.add "X-Amz-Signature", valid_622974 - var valid_622975 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622975 = validateParameter(valid_622975, JString, required = false, - default = nil) - if valid_622975 != nil: - section.add "X-Amz-Content-Sha256", valid_622975 - var valid_622976 = header.getOrDefault("X-Amz-Date") + var valid_622976 = header.getOrDefault("X-Amz-Signature") valid_622976 = validateParameter(valid_622976, JString, required = false, default = nil) if valid_622976 != nil: - section.add "X-Amz-Date", valid_622976 - var valid_622977 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622976 + var valid_622977 = header.getOrDefault("X-Amz-Content-Sha256") valid_622977 = validateParameter(valid_622977, JString, required = false, default = nil) if valid_622977 != nil: - section.add "X-Amz-Credential", valid_622977 - var valid_622978 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622977 + var valid_622978 = header.getOrDefault("X-Amz-Date") valid_622978 = validateParameter(valid_622978, JString, required = false, default = nil) if valid_622978 != nil: - section.add "X-Amz-Security-Token", valid_622978 - var valid_622979 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622978 + var valid_622979 = header.getOrDefault("X-Amz-Credential") valid_622979 = validateParameter(valid_622979, JString, required = false, default = nil) if valid_622979 != nil: - section.add "X-Amz-Algorithm", valid_622979 - var valid_622980 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622979 + var valid_622980 = header.getOrDefault("X-Amz-Security-Token") valid_622980 = validateParameter(valid_622980, JString, required = false, default = nil) if valid_622980 != nil: - section.add "X-Amz-SignedHeaders", valid_622980 + section.add "X-Amz-Security-Token", valid_622980 + var valid_622981 = header.getOrDefault("X-Amz-Algorithm") + valid_622981 = validateParameter(valid_622981, JString, required = false, + default = nil) + if valid_622981 != nil: + section.add "X-Amz-Algorithm", valid_622981 + var valid_622982 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622982 = validateParameter(valid_622982, JString, required = false, + default = nil) + if valid_622982 != nil: + section.add "X-Amz-SignedHeaders", valid_622982 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool ## : 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. section = newJObject() - var valid_622981 = formData.getOrDefault("DryRun") - valid_622981 = validateParameter(valid_622981, JBool, required = false, default = nil) - if valid_622981 != nil: - section.add "DryRun", valid_622981 + var valid_622983 = formData.getOrDefault("DryRun") + valid_622983 = validateParameter(valid_622983, JBool, required = false, default = nil) + if valid_622983 != nil: + section.add "DryRun", valid_622983 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622982: Call_PostGetEbsEncryptionByDefault_622969; path: JsonNode; +proc call*(call_622984: Call_PostGetEbsEncryptionByDefault_622971; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Describes whether EBS encryption by default is enabled for your account in the current Region.

    For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_622982.validator(path, query, header, formData, body) - let scheme = call_622982.pickScheme + let valid = call_622984.validator(path, query, header, formData, body) + let scheme = call_622984.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622982.url(scheme.get, call_622982.host, call_622982.base, - call_622982.route, valid.getOrDefault("path"), + let url = call_622984.url(scheme.get, call_622984.host, call_622984.base, + call_622984.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622982, url, valid) + result = atozHook(call_622984, url, valid) -proc call*(call_622983: Call_PostGetEbsEncryptionByDefault_622969; +proc call*(call_622985: Call_PostGetEbsEncryptionByDefault_622971; DryRun: bool = false; Action: string = "GetEbsEncryptionByDefault"; Version: string = "2016-11-15"): Recallable = ## postGetEbsEncryptionByDefault @@ -97245,22 +97272,22 @@ proc call*(call_622983: Call_PostGetEbsEncryptionByDefault_622969; ## : 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. ## Action: string (required) ## Version: string (required) - var query_622984 = newJObject() - var formData_622985 = newJObject() - add(formData_622985, "DryRun", newJBool(DryRun)) - add(query_622984, "Action", newJString(Action)) - add(query_622984, "Version", newJString(Version)) - result = call_622983.call(nil, query_622984, nil, formData_622985, nil) + var query_622986 = newJObject() + var formData_622987 = newJObject() + add(formData_622987, "DryRun", newJBool(DryRun)) + add(query_622986, "Action", newJString(Action)) + add(query_622986, "Version", newJString(Version)) + result = call_622985.call(nil, query_622986, nil, formData_622987, nil) -var postGetEbsEncryptionByDefault* = Call_PostGetEbsEncryptionByDefault_622969( +var postGetEbsEncryptionByDefault* = Call_PostGetEbsEncryptionByDefault_622971( name: "postGetEbsEncryptionByDefault", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=GetEbsEncryptionByDefault", - validator: validate_PostGetEbsEncryptionByDefault_622970, base: "/", - url: url_PostGetEbsEncryptionByDefault_622971, + validator: validate_PostGetEbsEncryptionByDefault_622972, base: "/", + url: url_PostGetEbsEncryptionByDefault_622973, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetGetEbsEncryptionByDefault_622953 = ref object of OpenApiRestCall_610658 -proc url_GetGetEbsEncryptionByDefault_622955(protocol: Scheme; host: string; + Call_GetGetEbsEncryptionByDefault_622955 = ref object of OpenApiRestCall_610658 +proc url_GetGetEbsEncryptionByDefault_622957(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -97270,7 +97297,7 @@ proc url_GetGetEbsEncryptionByDefault_622955(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetGetEbsEncryptionByDefault_622954(path: JsonNode; query: JsonNode; +proc validate_GetGetEbsEncryptionByDefault_622956(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Describes whether EBS encryption by default is enabled for your account in the current Region.

    For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -97284,20 +97311,20 @@ proc validate_GetGetEbsEncryptionByDefault_622954(path: JsonNode; query: JsonNod ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_622956 = query.getOrDefault("DryRun") - valid_622956 = validateParameter(valid_622956, JBool, required = false, default = nil) - if valid_622956 != nil: - section.add "DryRun", valid_622956 - var valid_622957 = query.getOrDefault("Action") - valid_622957 = validateParameter(valid_622957, JString, required = true, default = newJString( + var valid_622958 = query.getOrDefault("DryRun") + valid_622958 = validateParameter(valid_622958, JBool, required = false, default = nil) + if valid_622958 != nil: + section.add "DryRun", valid_622958 + var valid_622959 = query.getOrDefault("Action") + valid_622959 = validateParameter(valid_622959, JString, required = true, default = newJString( "GetEbsEncryptionByDefault")) - if valid_622957 != nil: - section.add "Action", valid_622957 - var valid_622958 = query.getOrDefault("Version") - valid_622958 = validateParameter(valid_622958, JString, required = true, + if valid_622959 != nil: + section.add "Action", valid_622959 + var valid_622960 = query.getOrDefault("Version") + valid_622960 = validateParameter(valid_622960, JString, required = true, default = newJString("2016-11-15")) - if valid_622958 != nil: - section.add "Version", valid_622958 + if valid_622960 != nil: + section.add "Version", valid_622960 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -97308,61 +97335,61 @@ proc validate_GetGetEbsEncryptionByDefault_622954(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622959 = header.getOrDefault("X-Amz-Signature") - valid_622959 = validateParameter(valid_622959, JString, required = false, - default = nil) - if valid_622959 != nil: - section.add "X-Amz-Signature", valid_622959 - var valid_622960 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622960 = validateParameter(valid_622960, JString, required = false, - default = nil) - if valid_622960 != nil: - section.add "X-Amz-Content-Sha256", valid_622960 - var valid_622961 = header.getOrDefault("X-Amz-Date") + var valid_622961 = header.getOrDefault("X-Amz-Signature") valid_622961 = validateParameter(valid_622961, JString, required = false, default = nil) if valid_622961 != nil: - section.add "X-Amz-Date", valid_622961 - var valid_622962 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622961 + var valid_622962 = header.getOrDefault("X-Amz-Content-Sha256") valid_622962 = validateParameter(valid_622962, JString, required = false, default = nil) if valid_622962 != nil: - section.add "X-Amz-Credential", valid_622962 - var valid_622963 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622962 + var valid_622963 = header.getOrDefault("X-Amz-Date") valid_622963 = validateParameter(valid_622963, JString, required = false, default = nil) if valid_622963 != nil: - section.add "X-Amz-Security-Token", valid_622963 - var valid_622964 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622963 + var valid_622964 = header.getOrDefault("X-Amz-Credential") valid_622964 = validateParameter(valid_622964, JString, required = false, default = nil) if valid_622964 != nil: - section.add "X-Amz-Algorithm", valid_622964 - var valid_622965 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622964 + var valid_622965 = header.getOrDefault("X-Amz-Security-Token") valid_622965 = validateParameter(valid_622965, JString, required = false, default = nil) if valid_622965 != nil: - section.add "X-Amz-SignedHeaders", valid_622965 + section.add "X-Amz-Security-Token", valid_622965 + var valid_622966 = header.getOrDefault("X-Amz-Algorithm") + valid_622966 = validateParameter(valid_622966, JString, required = false, + default = nil) + if valid_622966 != nil: + section.add "X-Amz-Algorithm", valid_622966 + var valid_622967 = header.getOrDefault("X-Amz-SignedHeaders") + valid_622967 = validateParameter(valid_622967, JString, required = false, + default = nil) + if valid_622967 != nil: + section.add "X-Amz-SignedHeaders", valid_622967 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_622966: Call_GetGetEbsEncryptionByDefault_622953; path: JsonNode; +proc call*(call_622968: Call_GetGetEbsEncryptionByDefault_622955; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Describes whether EBS encryption by default is enabled for your account in the current Region.

    For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_622966.validator(path, query, header, formData, body) - let scheme = call_622966.pickScheme + let valid = call_622968.validator(path, query, header, formData, body) + let scheme = call_622968.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_622966.url(scheme.get, call_622966.host, call_622966.base, - call_622966.route, valid.getOrDefault("path"), + let url = call_622968.url(scheme.get, call_622968.host, call_622968.base, + call_622968.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_622966, url, valid) + result = atozHook(call_622968, url, valid) -proc call*(call_622967: Call_GetGetEbsEncryptionByDefault_622953; +proc call*(call_622969: Call_GetGetEbsEncryptionByDefault_622955; DryRun: bool = false; Action: string = "GetEbsEncryptionByDefault"; Version: string = "2016-11-15"): Recallable = ## getGetEbsEncryptionByDefault @@ -97371,21 +97398,21 @@ proc call*(call_622967: Call_GetGetEbsEncryptionByDefault_622953; ## : 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. ## Action: string (required) ## Version: string (required) - var query_622968 = newJObject() - add(query_622968, "DryRun", newJBool(DryRun)) - add(query_622968, "Action", newJString(Action)) - add(query_622968, "Version", newJString(Version)) - result = call_622967.call(nil, query_622968, nil, nil, nil) + var query_622970 = newJObject() + add(query_622970, "DryRun", newJBool(DryRun)) + add(query_622970, "Action", newJString(Action)) + add(query_622970, "Version", newJString(Version)) + result = call_622969.call(nil, query_622970, nil, nil, nil) -var getGetEbsEncryptionByDefault* = Call_GetGetEbsEncryptionByDefault_622953( +var getGetEbsEncryptionByDefault* = Call_GetGetEbsEncryptionByDefault_622955( name: "getGetEbsEncryptionByDefault", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=GetEbsEncryptionByDefault", - validator: validate_GetGetEbsEncryptionByDefault_622954, base: "/", - url: url_GetGetEbsEncryptionByDefault_622955, + validator: validate_GetGetEbsEncryptionByDefault_622956, base: "/", + url: url_GetGetEbsEncryptionByDefault_622957, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostGetHostReservationPurchasePreview_623003 = ref object of OpenApiRestCall_610658 -proc url_PostGetHostReservationPurchasePreview_623005(protocol: Scheme; + Call_PostGetHostReservationPurchasePreview_623005 = ref object of OpenApiRestCall_610658 +proc url_PostGetHostReservationPurchasePreview_623007(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -97395,7 +97422,7 @@ proc url_PostGetHostReservationPurchasePreview_623005(protocol: Scheme; else: result.path = base & route -proc validate_PostGetHostReservationPurchasePreview_623004(path: JsonNode; +proc validate_PostGetHostReservationPurchasePreview_623006(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Preview a reservation purchase with configurations that match those of your Dedicated Host. You must have active Dedicated Hosts in your account before you purchase a reservation.

    This is a preview of the PurchaseHostReservation action and does not result in the offering being purchased.

    ## @@ -97407,16 +97434,16 @@ proc validate_PostGetHostReservationPurchasePreview_623004(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_623006 = query.getOrDefault("Action") - valid_623006 = validateParameter(valid_623006, JString, required = true, default = newJString( + var valid_623008 = query.getOrDefault("Action") + valid_623008 = validateParameter(valid_623008, JString, required = true, default = newJString( "GetHostReservationPurchasePreview")) - if valid_623006 != nil: - section.add "Action", valid_623006 - var valid_623007 = query.getOrDefault("Version") - valid_623007 = validateParameter(valid_623007, JString, required = true, + if valid_623008 != nil: + section.add "Action", valid_623008 + var valid_623009 = query.getOrDefault("Version") + valid_623009 = validateParameter(valid_623009, JString, required = true, default = newJString("2016-11-15")) - if valid_623007 != nil: - section.add "Version", valid_623007 + if valid_623009 != nil: + section.add "Version", valid_623009 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -97427,41 +97454,41 @@ proc validate_PostGetHostReservationPurchasePreview_623004(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623008 = header.getOrDefault("X-Amz-Signature") - valid_623008 = validateParameter(valid_623008, JString, required = false, - default = nil) - if valid_623008 != nil: - section.add "X-Amz-Signature", valid_623008 - var valid_623009 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623009 = validateParameter(valid_623009, JString, required = false, - default = nil) - if valid_623009 != nil: - section.add "X-Amz-Content-Sha256", valid_623009 - var valid_623010 = header.getOrDefault("X-Amz-Date") + var valid_623010 = header.getOrDefault("X-Amz-Signature") valid_623010 = validateParameter(valid_623010, JString, required = false, default = nil) if valid_623010 != nil: - section.add "X-Amz-Date", valid_623010 - var valid_623011 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623010 + var valid_623011 = header.getOrDefault("X-Amz-Content-Sha256") valid_623011 = validateParameter(valid_623011, JString, required = false, default = nil) if valid_623011 != nil: - section.add "X-Amz-Credential", valid_623011 - var valid_623012 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623011 + var valid_623012 = header.getOrDefault("X-Amz-Date") valid_623012 = validateParameter(valid_623012, JString, required = false, default = nil) if valid_623012 != nil: - section.add "X-Amz-Security-Token", valid_623012 - var valid_623013 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623012 + var valid_623013 = header.getOrDefault("X-Amz-Credential") valid_623013 = validateParameter(valid_623013, JString, required = false, default = nil) if valid_623013 != nil: - section.add "X-Amz-Algorithm", valid_623013 - var valid_623014 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623013 + var valid_623014 = header.getOrDefault("X-Amz-Security-Token") valid_623014 = validateParameter(valid_623014, JString, required = false, default = nil) if valid_623014 != nil: - section.add "X-Amz-SignedHeaders", valid_623014 + section.add "X-Amz-Security-Token", valid_623014 + var valid_623015 = header.getOrDefault("X-Amz-Algorithm") + valid_623015 = validateParameter(valid_623015, JString, required = false, + default = nil) + if valid_623015 != nil: + section.add "X-Amz-Algorithm", valid_623015 + var valid_623016 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623016 = validateParameter(valid_623016, JString, required = false, + default = nil) + if valid_623016 != nil: + section.add "X-Amz-SignedHeaders", valid_623016 result.add "header", section ## parameters in `formData` object: ## OfferingId: JString (required) @@ -97471,34 +97498,34 @@ proc validate_PostGetHostReservationPurchasePreview_623004(path: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `OfferingId` field" - var valid_623015 = formData.getOrDefault("OfferingId") - valid_623015 = validateParameter(valid_623015, JString, required = true, + var valid_623017 = formData.getOrDefault("OfferingId") + valid_623017 = validateParameter(valid_623017, JString, required = true, default = nil) - if valid_623015 != nil: - section.add "OfferingId", valid_623015 - var valid_623016 = formData.getOrDefault("HostIdSet") - valid_623016 = validateParameter(valid_623016, JArray, required = true, default = nil) - if valid_623016 != nil: - section.add "HostIdSet", valid_623016 + if valid_623017 != nil: + section.add "OfferingId", valid_623017 + var valid_623018 = formData.getOrDefault("HostIdSet") + valid_623018 = validateParameter(valid_623018, JArray, required = true, default = nil) + if valid_623018 != nil: + section.add "HostIdSet", valid_623018 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623017: Call_PostGetHostReservationPurchasePreview_623003; +proc call*(call_623019: Call_PostGetHostReservationPurchasePreview_623005; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Preview a reservation purchase with configurations that match those of your Dedicated Host. You must have active Dedicated Hosts in your account before you purchase a reservation.

    This is a preview of the PurchaseHostReservation action and does not result in the offering being purchased.

    ## - let valid = call_623017.validator(path, query, header, formData, body) - let scheme = call_623017.pickScheme + let valid = call_623019.validator(path, query, header, formData, body) + let scheme = call_623019.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623017.url(scheme.get, call_623017.host, call_623017.base, - call_623017.route, valid.getOrDefault("path"), + let url = call_623019.url(scheme.get, call_623019.host, call_623019.base, + call_623019.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623017, url, valid) + result = atozHook(call_623019, url, valid) -proc call*(call_623018: Call_PostGetHostReservationPurchasePreview_623003; +proc call*(call_623020: Call_PostGetHostReservationPurchasePreview_623005; OfferingId: string; HostIdSet: JsonNode; Action: string = "GetHostReservationPurchasePreview"; Version: string = "2016-11-15"): Recallable = @@ -97510,25 +97537,25 @@ proc call*(call_623018: Call_PostGetHostReservationPurchasePreview_623003; ## HostIdSet: JArray (required) ## : The IDs of the Dedicated Hosts with which the reservation is associated. ## Version: string (required) - var query_623019 = newJObject() - var formData_623020 = newJObject() - add(formData_623020, "OfferingId", newJString(OfferingId)) - add(query_623019, "Action", newJString(Action)) + var query_623021 = newJObject() + var formData_623022 = newJObject() + add(formData_623022, "OfferingId", newJString(OfferingId)) + add(query_623021, "Action", newJString(Action)) if HostIdSet != nil: - formData_623020.add "HostIdSet", HostIdSet - add(query_623019, "Version", newJString(Version)) - result = call_623018.call(nil, query_623019, nil, formData_623020, nil) + formData_623022.add "HostIdSet", HostIdSet + add(query_623021, "Version", newJString(Version)) + result = call_623020.call(nil, query_623021, nil, formData_623022, nil) -var postGetHostReservationPurchasePreview* = Call_PostGetHostReservationPurchasePreview_623003( +var postGetHostReservationPurchasePreview* = Call_PostGetHostReservationPurchasePreview_623005( name: "postGetHostReservationPurchasePreview", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=GetHostReservationPurchasePreview", - validator: validate_PostGetHostReservationPurchasePreview_623004, base: "/", - url: url_PostGetHostReservationPurchasePreview_623005, + validator: validate_PostGetHostReservationPurchasePreview_623006, base: "/", + url: url_PostGetHostReservationPurchasePreview_623007, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetGetHostReservationPurchasePreview_622986 = ref object of OpenApiRestCall_610658 -proc url_GetGetHostReservationPurchasePreview_622988(protocol: Scheme; + Call_GetGetHostReservationPurchasePreview_622988 = ref object of OpenApiRestCall_610658 +proc url_GetGetHostReservationPurchasePreview_622990(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -97538,7 +97565,7 @@ proc url_GetGetHostReservationPurchasePreview_622988(protocol: Scheme; else: result.path = base & route -proc validate_GetGetHostReservationPurchasePreview_622987(path: JsonNode; +proc validate_GetGetHostReservationPurchasePreview_622989(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Preview a reservation purchase with configurations that match those of your Dedicated Host. You must have active Dedicated Hosts in your account before you purchase a reservation.

    This is a preview of the PurchaseHostReservation action and does not result in the offering being purchased.

    ## @@ -97556,25 +97583,25 @@ proc validate_GetGetHostReservationPurchasePreview_622987(path: JsonNode; section = newJObject() assert query != nil, "query argument is necessary due to required `HostIdSet` field" - var valid_622989 = query.getOrDefault("HostIdSet") - valid_622989 = validateParameter(valid_622989, JArray, required = true, default = nil) - if valid_622989 != nil: - section.add "HostIdSet", valid_622989 - var valid_622990 = query.getOrDefault("OfferingId") - valid_622990 = validateParameter(valid_622990, JString, required = true, - default = nil) - if valid_622990 != nil: - section.add "OfferingId", valid_622990 - var valid_622991 = query.getOrDefault("Action") - valid_622991 = validateParameter(valid_622991, JString, required = true, default = newJString( - "GetHostReservationPurchasePreview")) + var valid_622991 = query.getOrDefault("HostIdSet") + valid_622991 = validateParameter(valid_622991, JArray, required = true, default = nil) if valid_622991 != nil: - section.add "Action", valid_622991 - var valid_622992 = query.getOrDefault("Version") + section.add "HostIdSet", valid_622991 + var valid_622992 = query.getOrDefault("OfferingId") valid_622992 = validateParameter(valid_622992, JString, required = true, - default = newJString("2016-11-15")) + default = nil) if valid_622992 != nil: - section.add "Version", valid_622992 + section.add "OfferingId", valid_622992 + var valid_622993 = query.getOrDefault("Action") + valid_622993 = validateParameter(valid_622993, JString, required = true, default = newJString( + "GetHostReservationPurchasePreview")) + if valid_622993 != nil: + section.add "Action", valid_622993 + var valid_622994 = query.getOrDefault("Version") + valid_622994 = validateParameter(valid_622994, JString, required = true, + default = newJString("2016-11-15")) + if valid_622994 != nil: + section.add "Version", valid_622994 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -97585,62 +97612,62 @@ proc validate_GetGetHostReservationPurchasePreview_622987(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_622993 = header.getOrDefault("X-Amz-Signature") - valid_622993 = validateParameter(valid_622993, JString, required = false, - default = nil) - if valid_622993 != nil: - section.add "X-Amz-Signature", valid_622993 - var valid_622994 = header.getOrDefault("X-Amz-Content-Sha256") - valid_622994 = validateParameter(valid_622994, JString, required = false, - default = nil) - if valid_622994 != nil: - section.add "X-Amz-Content-Sha256", valid_622994 - var valid_622995 = header.getOrDefault("X-Amz-Date") + var valid_622995 = header.getOrDefault("X-Amz-Signature") valid_622995 = validateParameter(valid_622995, JString, required = false, default = nil) if valid_622995 != nil: - section.add "X-Amz-Date", valid_622995 - var valid_622996 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_622995 + var valid_622996 = header.getOrDefault("X-Amz-Content-Sha256") valid_622996 = validateParameter(valid_622996, JString, required = false, default = nil) if valid_622996 != nil: - section.add "X-Amz-Credential", valid_622996 - var valid_622997 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_622996 + var valid_622997 = header.getOrDefault("X-Amz-Date") valid_622997 = validateParameter(valid_622997, JString, required = false, default = nil) if valid_622997 != nil: - section.add "X-Amz-Security-Token", valid_622997 - var valid_622998 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_622997 + var valid_622998 = header.getOrDefault("X-Amz-Credential") valid_622998 = validateParameter(valid_622998, JString, required = false, default = nil) if valid_622998 != nil: - section.add "X-Amz-Algorithm", valid_622998 - var valid_622999 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_622998 + var valid_622999 = header.getOrDefault("X-Amz-Security-Token") valid_622999 = validateParameter(valid_622999, JString, required = false, default = nil) if valid_622999 != nil: - section.add "X-Amz-SignedHeaders", valid_622999 + section.add "X-Amz-Security-Token", valid_622999 + var valid_623000 = header.getOrDefault("X-Amz-Algorithm") + valid_623000 = validateParameter(valid_623000, JString, required = false, + default = nil) + if valid_623000 != nil: + section.add "X-Amz-Algorithm", valid_623000 + var valid_623001 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623001 = validateParameter(valid_623001, JString, required = false, + default = nil) + if valid_623001 != nil: + section.add "X-Amz-SignedHeaders", valid_623001 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623000: Call_GetGetHostReservationPurchasePreview_622986; +proc call*(call_623002: Call_GetGetHostReservationPurchasePreview_622988; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Preview a reservation purchase with configurations that match those of your Dedicated Host. You must have active Dedicated Hosts in your account before you purchase a reservation.

    This is a preview of the PurchaseHostReservation action and does not result in the offering being purchased.

    ## - let valid = call_623000.validator(path, query, header, formData, body) - let scheme = call_623000.pickScheme + let valid = call_623002.validator(path, query, header, formData, body) + let scheme = call_623002.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623000.url(scheme.get, call_623000.host, call_623000.base, - call_623000.route, valid.getOrDefault("path"), + let url = call_623002.url(scheme.get, call_623002.host, call_623002.base, + call_623002.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623000, url, valid) + result = atozHook(call_623002, url, valid) -proc call*(call_623001: Call_GetGetHostReservationPurchasePreview_622986; +proc call*(call_623003: Call_GetGetHostReservationPurchasePreview_622988; HostIdSet: JsonNode; OfferingId: string; Action: string = "GetHostReservationPurchasePreview"; Version: string = "2016-11-15"): Recallable = @@ -97652,24 +97679,24 @@ proc call*(call_623001: Call_GetGetHostReservationPurchasePreview_622986; ## : The offering ID of the reservation. ## Action: string (required) ## Version: string (required) - var query_623002 = newJObject() + var query_623004 = newJObject() if HostIdSet != nil: - query_623002.add "HostIdSet", HostIdSet - add(query_623002, "OfferingId", newJString(OfferingId)) - add(query_623002, "Action", newJString(Action)) - add(query_623002, "Version", newJString(Version)) - result = call_623001.call(nil, query_623002, nil, nil, nil) + query_623004.add "HostIdSet", HostIdSet + add(query_623004, "OfferingId", newJString(OfferingId)) + add(query_623004, "Action", newJString(Action)) + add(query_623004, "Version", newJString(Version)) + result = call_623003.call(nil, query_623004, nil, nil, nil) -var getGetHostReservationPurchasePreview* = Call_GetGetHostReservationPurchasePreview_622986( +var getGetHostReservationPurchasePreview* = Call_GetGetHostReservationPurchasePreview_622988( name: "getGetHostReservationPurchasePreview", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=GetHostReservationPurchasePreview", - validator: validate_GetGetHostReservationPurchasePreview_622987, base: "/", - url: url_GetGetHostReservationPurchasePreview_622988, + validator: validate_GetGetHostReservationPurchasePreview_622989, base: "/", + url: url_GetGetHostReservationPurchasePreview_622990, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostGetLaunchTemplateData_623038 = ref object of OpenApiRestCall_610658 -proc url_PostGetLaunchTemplateData_623040(protocol: Scheme; host: string; + Call_PostGetLaunchTemplateData_623040 = ref object of OpenApiRestCall_610658 +proc url_PostGetLaunchTemplateData_623042(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -97679,7 +97706,7 @@ proc url_PostGetLaunchTemplateData_623040(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostGetLaunchTemplateData_623039(path: JsonNode; query: JsonNode; +proc validate_PostGetLaunchTemplateData_623041(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Retrieves the configuration data of the specified instance. You can use this data to create a launch template. ## @@ -97691,16 +97718,16 @@ proc validate_PostGetLaunchTemplateData_623039(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_623041 = query.getOrDefault("Action") - valid_623041 = validateParameter(valid_623041, JString, required = true, + var valid_623043 = query.getOrDefault("Action") + valid_623043 = validateParameter(valid_623043, JString, required = true, default = newJString("GetLaunchTemplateData")) - if valid_623041 != nil: - section.add "Action", valid_623041 - var valid_623042 = query.getOrDefault("Version") - valid_623042 = validateParameter(valid_623042, JString, required = true, + if valid_623043 != nil: + section.add "Action", valid_623043 + var valid_623044 = query.getOrDefault("Version") + valid_623044 = validateParameter(valid_623044, JString, required = true, default = newJString("2016-11-15")) - if valid_623042 != nil: - section.add "Version", valid_623042 + if valid_623044 != nil: + section.add "Version", valid_623044 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -97711,41 +97738,41 @@ proc validate_PostGetLaunchTemplateData_623039(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623043 = header.getOrDefault("X-Amz-Signature") - valid_623043 = validateParameter(valid_623043, JString, required = false, - default = nil) - if valid_623043 != nil: - section.add "X-Amz-Signature", valid_623043 - var valid_623044 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623044 = validateParameter(valid_623044, JString, required = false, - default = nil) - if valid_623044 != nil: - section.add "X-Amz-Content-Sha256", valid_623044 - var valid_623045 = header.getOrDefault("X-Amz-Date") + var valid_623045 = header.getOrDefault("X-Amz-Signature") valid_623045 = validateParameter(valid_623045, JString, required = false, default = nil) if valid_623045 != nil: - section.add "X-Amz-Date", valid_623045 - var valid_623046 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623045 + var valid_623046 = header.getOrDefault("X-Amz-Content-Sha256") valid_623046 = validateParameter(valid_623046, JString, required = false, default = nil) if valid_623046 != nil: - section.add "X-Amz-Credential", valid_623046 - var valid_623047 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623046 + var valid_623047 = header.getOrDefault("X-Amz-Date") valid_623047 = validateParameter(valid_623047, JString, required = false, default = nil) if valid_623047 != nil: - section.add "X-Amz-Security-Token", valid_623047 - var valid_623048 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623047 + var valid_623048 = header.getOrDefault("X-Amz-Credential") valid_623048 = validateParameter(valid_623048, JString, required = false, default = nil) if valid_623048 != nil: - section.add "X-Amz-Algorithm", valid_623048 - var valid_623049 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623048 + var valid_623049 = header.getOrDefault("X-Amz-Security-Token") valid_623049 = validateParameter(valid_623049, JString, required = false, default = nil) if valid_623049 != nil: - section.add "X-Amz-SignedHeaders", valid_623049 + section.add "X-Amz-Security-Token", valid_623049 + var valid_623050 = header.getOrDefault("X-Amz-Algorithm") + valid_623050 = validateParameter(valid_623050, JString, required = false, + default = nil) + if valid_623050 != nil: + section.add "X-Amz-Algorithm", valid_623050 + var valid_623051 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623051 = validateParameter(valid_623051, JString, required = false, + default = nil) + if valid_623051 != nil: + section.add "X-Amz-SignedHeaders", valid_623051 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -97753,35 +97780,35 @@ proc validate_PostGetLaunchTemplateData_623039(path: JsonNode; query: JsonNode; ## InstanceId: JString (required) ## : The ID of the instance. section = newJObject() - var valid_623050 = formData.getOrDefault("DryRun") - valid_623050 = validateParameter(valid_623050, JBool, required = false, default = nil) - if valid_623050 != nil: - section.add "DryRun", valid_623050 + var valid_623052 = formData.getOrDefault("DryRun") + valid_623052 = validateParameter(valid_623052, JBool, required = false, default = nil) + if valid_623052 != nil: + section.add "DryRun", valid_623052 assert formData != nil, "formData argument is necessary due to required `InstanceId` field" - var valid_623051 = formData.getOrDefault("InstanceId") - valid_623051 = validateParameter(valid_623051, JString, required = true, + var valid_623053 = formData.getOrDefault("InstanceId") + valid_623053 = validateParameter(valid_623053, JString, required = true, default = nil) - if valid_623051 != nil: - section.add "InstanceId", valid_623051 + if valid_623053 != nil: + section.add "InstanceId", valid_623053 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623052: Call_PostGetLaunchTemplateData_623038; path: JsonNode; +proc call*(call_623054: Call_PostGetLaunchTemplateData_623040; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Retrieves the configuration data of the specified instance. You can use this data to create a launch template. ## - let valid = call_623052.validator(path, query, header, formData, body) - let scheme = call_623052.pickScheme + let valid = call_623054.validator(path, query, header, formData, body) + let scheme = call_623054.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623052.url(scheme.get, call_623052.host, call_623052.base, - call_623052.route, valid.getOrDefault("path"), + let url = call_623054.url(scheme.get, call_623054.host, call_623054.base, + call_623054.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623052, url, valid) + result = atozHook(call_623054, url, valid) -proc call*(call_623053: Call_PostGetLaunchTemplateData_623038; InstanceId: string; +proc call*(call_623055: Call_PostGetLaunchTemplateData_623040; InstanceId: string; DryRun: bool = false; Action: string = "GetLaunchTemplateData"; Version: string = "2016-11-15"): Recallable = ## postGetLaunchTemplateData @@ -97792,23 +97819,23 @@ proc call*(call_623053: Call_PostGetLaunchTemplateData_623038; InstanceId: strin ## : The ID of the instance. ## Action: string (required) ## Version: string (required) - var query_623054 = newJObject() - var formData_623055 = newJObject() - add(formData_623055, "DryRun", newJBool(DryRun)) - add(formData_623055, "InstanceId", newJString(InstanceId)) - add(query_623054, "Action", newJString(Action)) - add(query_623054, "Version", newJString(Version)) - result = call_623053.call(nil, query_623054, nil, formData_623055, nil) + var query_623056 = newJObject() + var formData_623057 = newJObject() + add(formData_623057, "DryRun", newJBool(DryRun)) + add(formData_623057, "InstanceId", newJString(InstanceId)) + add(query_623056, "Action", newJString(Action)) + add(query_623056, "Version", newJString(Version)) + result = call_623055.call(nil, query_623056, nil, formData_623057, nil) -var postGetLaunchTemplateData* = Call_PostGetLaunchTemplateData_623038( +var postGetLaunchTemplateData* = Call_PostGetLaunchTemplateData_623040( name: "postGetLaunchTemplateData", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=GetLaunchTemplateData", - validator: validate_PostGetLaunchTemplateData_623039, base: "/", - url: url_PostGetLaunchTemplateData_623040, + validator: validate_PostGetLaunchTemplateData_623041, base: "/", + url: url_PostGetLaunchTemplateData_623042, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetGetLaunchTemplateData_623021 = ref object of OpenApiRestCall_610658 -proc url_GetGetLaunchTemplateData_623023(protocol: Scheme; host: string; + Call_GetGetLaunchTemplateData_623023 = ref object of OpenApiRestCall_610658 +proc url_GetGetLaunchTemplateData_623025(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -97819,7 +97846,7 @@ proc url_GetGetLaunchTemplateData_623023(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetGetLaunchTemplateData_623022(path: JsonNode; query: JsonNode; +proc validate_GetGetLaunchTemplateData_623024(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Retrieves the configuration data of the specified instance. You can use this data to create a launch template. ## @@ -97835,27 +97862,27 @@ proc validate_GetGetLaunchTemplateData_623022(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_623024 = query.getOrDefault("DryRun") - valid_623024 = validateParameter(valid_623024, JBool, required = false, default = nil) - if valid_623024 != nil: - section.add "DryRun", valid_623024 + var valid_623026 = query.getOrDefault("DryRun") + valid_623026 = validateParameter(valid_623026, JBool, required = false, default = nil) + if valid_623026 != nil: + section.add "DryRun", valid_623026 assert query != nil, "query argument is necessary due to required `InstanceId` field" - var valid_623025 = query.getOrDefault("InstanceId") - valid_623025 = validateParameter(valid_623025, JString, required = true, + var valid_623027 = query.getOrDefault("InstanceId") + valid_623027 = validateParameter(valid_623027, JString, required = true, default = nil) - if valid_623025 != nil: - section.add "InstanceId", valid_623025 - var valid_623026 = query.getOrDefault("Action") - valid_623026 = validateParameter(valid_623026, JString, required = true, + if valid_623027 != nil: + section.add "InstanceId", valid_623027 + var valid_623028 = query.getOrDefault("Action") + valid_623028 = validateParameter(valid_623028, JString, required = true, default = newJString("GetLaunchTemplateData")) - if valid_623026 != nil: - section.add "Action", valid_623026 - var valid_623027 = query.getOrDefault("Version") - valid_623027 = validateParameter(valid_623027, JString, required = true, + if valid_623028 != nil: + section.add "Action", valid_623028 + var valid_623029 = query.getOrDefault("Version") + valid_623029 = validateParameter(valid_623029, JString, required = true, default = newJString("2016-11-15")) - if valid_623027 != nil: - section.add "Version", valid_623027 + if valid_623029 != nil: + section.add "Version", valid_623029 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -97866,61 +97893,61 @@ proc validate_GetGetLaunchTemplateData_623022(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623028 = header.getOrDefault("X-Amz-Signature") - valid_623028 = validateParameter(valid_623028, JString, required = false, - default = nil) - if valid_623028 != nil: - section.add "X-Amz-Signature", valid_623028 - var valid_623029 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623029 = validateParameter(valid_623029, JString, required = false, - default = nil) - if valid_623029 != nil: - section.add "X-Amz-Content-Sha256", valid_623029 - var valid_623030 = header.getOrDefault("X-Amz-Date") + var valid_623030 = header.getOrDefault("X-Amz-Signature") valid_623030 = validateParameter(valid_623030, JString, required = false, default = nil) if valid_623030 != nil: - section.add "X-Amz-Date", valid_623030 - var valid_623031 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623030 + var valid_623031 = header.getOrDefault("X-Amz-Content-Sha256") valid_623031 = validateParameter(valid_623031, JString, required = false, default = nil) if valid_623031 != nil: - section.add "X-Amz-Credential", valid_623031 - var valid_623032 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623031 + var valid_623032 = header.getOrDefault("X-Amz-Date") valid_623032 = validateParameter(valid_623032, JString, required = false, default = nil) if valid_623032 != nil: - section.add "X-Amz-Security-Token", valid_623032 - var valid_623033 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623032 + var valid_623033 = header.getOrDefault("X-Amz-Credential") valid_623033 = validateParameter(valid_623033, JString, required = false, default = nil) if valid_623033 != nil: - section.add "X-Amz-Algorithm", valid_623033 - var valid_623034 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623033 + var valid_623034 = header.getOrDefault("X-Amz-Security-Token") valid_623034 = validateParameter(valid_623034, JString, required = false, default = nil) if valid_623034 != nil: - section.add "X-Amz-SignedHeaders", valid_623034 + section.add "X-Amz-Security-Token", valid_623034 + var valid_623035 = header.getOrDefault("X-Amz-Algorithm") + valid_623035 = validateParameter(valid_623035, JString, required = false, + default = nil) + if valid_623035 != nil: + section.add "X-Amz-Algorithm", valid_623035 + var valid_623036 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623036 = validateParameter(valid_623036, JString, required = false, + default = nil) + if valid_623036 != nil: + section.add "X-Amz-SignedHeaders", valid_623036 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623035: Call_GetGetLaunchTemplateData_623021; path: JsonNode; +proc call*(call_623037: Call_GetGetLaunchTemplateData_623023; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Retrieves the configuration data of the specified instance. You can use this data to create a launch template. ## - let valid = call_623035.validator(path, query, header, formData, body) - let scheme = call_623035.pickScheme + let valid = call_623037.validator(path, query, header, formData, body) + let scheme = call_623037.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623035.url(scheme.get, call_623035.host, call_623035.base, - call_623035.route, valid.getOrDefault("path"), + let url = call_623037.url(scheme.get, call_623037.host, call_623037.base, + call_623037.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623035, url, valid) + result = atozHook(call_623037, url, valid) -proc call*(call_623036: Call_GetGetLaunchTemplateData_623021; InstanceId: string; +proc call*(call_623038: Call_GetGetLaunchTemplateData_623023; InstanceId: string; DryRun: bool = false; Action: string = "GetLaunchTemplateData"; Version: string = "2016-11-15"): Recallable = ## getGetLaunchTemplateData @@ -97931,21 +97958,21 @@ proc call*(call_623036: Call_GetGetLaunchTemplateData_623021; InstanceId: string ## : The ID of the instance. ## Action: string (required) ## Version: string (required) - var query_623037 = newJObject() - add(query_623037, "DryRun", newJBool(DryRun)) - add(query_623037, "InstanceId", newJString(InstanceId)) - add(query_623037, "Action", newJString(Action)) - add(query_623037, "Version", newJString(Version)) - result = call_623036.call(nil, query_623037, nil, nil, nil) + var query_623039 = newJObject() + add(query_623039, "DryRun", newJBool(DryRun)) + add(query_623039, "InstanceId", newJString(InstanceId)) + add(query_623039, "Action", newJString(Action)) + add(query_623039, "Version", newJString(Version)) + result = call_623038.call(nil, query_623039, nil, nil, nil) -var getGetLaunchTemplateData* = Call_GetGetLaunchTemplateData_623021( +var getGetLaunchTemplateData* = Call_GetGetLaunchTemplateData_623023( name: "getGetLaunchTemplateData", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=GetLaunchTemplateData", - validator: validate_GetGetLaunchTemplateData_623022, base: "/", - url: url_GetGetLaunchTemplateData_623023, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetGetLaunchTemplateData_623024, base: "/", + url: url_GetGetLaunchTemplateData_623025, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostGetPasswordData_623073 = ref object of OpenApiRestCall_610658 -proc url_PostGetPasswordData_623075(protocol: Scheme; host: string; base: string; + Call_PostGetPasswordData_623075 = ref object of OpenApiRestCall_610658 +proc url_PostGetPasswordData_623077(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -97955,7 +97982,7 @@ proc url_PostGetPasswordData_623075(protocol: Scheme; host: string; base: string else: result.path = base & route -proc validate_PostGetPasswordData_623074(path: JsonNode; query: JsonNode; +proc validate_PostGetPasswordData_623076(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Retrieves the encrypted administrator password for a running Windows instance.

    The Windows password is generated at boot by the EC2Config service or EC2Launch scripts (Windows Server 2016 and later). This usually only happens the first time an instance is launched. For more information, see EC2Config and EC2Launch in the Amazon Elastic Compute Cloud User Guide.

    For the EC2Config service, the password is not generated for rebundled AMIs unless Ec2SetPassword is enabled before bundling.

    The password is encrypted using the key pair that you specified when you launched the instance. You must provide the corresponding key pair file.

    When you launch an instance, password generation and encryption may take a few minutes. If you try to retrieve the password before it's available, the output returns an empty string. We recommend that you wait up to 15 minutes after launching an instance before trying to retrieve the generated password.

    @@ -97968,16 +97995,16 @@ proc validate_PostGetPasswordData_623074(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_623076 = query.getOrDefault("Action") - valid_623076 = validateParameter(valid_623076, JString, required = true, + var valid_623078 = query.getOrDefault("Action") + valid_623078 = validateParameter(valid_623078, JString, required = true, default = newJString("GetPasswordData")) - if valid_623076 != nil: - section.add "Action", valid_623076 - var valid_623077 = query.getOrDefault("Version") - valid_623077 = validateParameter(valid_623077, JString, required = true, + if valid_623078 != nil: + section.add "Action", valid_623078 + var valid_623079 = query.getOrDefault("Version") + valid_623079 = validateParameter(valid_623079, JString, required = true, default = newJString("2016-11-15")) - if valid_623077 != nil: - section.add "Version", valid_623077 + if valid_623079 != nil: + section.add "Version", valid_623079 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -97988,41 +98015,41 @@ proc validate_PostGetPasswordData_623074(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623078 = header.getOrDefault("X-Amz-Signature") - valid_623078 = validateParameter(valid_623078, JString, required = false, - default = nil) - if valid_623078 != nil: - section.add "X-Amz-Signature", valid_623078 - var valid_623079 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623079 = validateParameter(valid_623079, JString, required = false, - default = nil) - if valid_623079 != nil: - section.add "X-Amz-Content-Sha256", valid_623079 - var valid_623080 = header.getOrDefault("X-Amz-Date") + var valid_623080 = header.getOrDefault("X-Amz-Signature") valid_623080 = validateParameter(valid_623080, JString, required = false, default = nil) if valid_623080 != nil: - section.add "X-Amz-Date", valid_623080 - var valid_623081 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623080 + var valid_623081 = header.getOrDefault("X-Amz-Content-Sha256") valid_623081 = validateParameter(valid_623081, JString, required = false, default = nil) if valid_623081 != nil: - section.add "X-Amz-Credential", valid_623081 - var valid_623082 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623081 + var valid_623082 = header.getOrDefault("X-Amz-Date") valid_623082 = validateParameter(valid_623082, JString, required = false, default = nil) if valid_623082 != nil: - section.add "X-Amz-Security-Token", valid_623082 - var valid_623083 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623082 + var valid_623083 = header.getOrDefault("X-Amz-Credential") valid_623083 = validateParameter(valid_623083, JString, required = false, default = nil) if valid_623083 != nil: - section.add "X-Amz-Algorithm", valid_623083 - var valid_623084 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623083 + var valid_623084 = header.getOrDefault("X-Amz-Security-Token") valid_623084 = validateParameter(valid_623084, JString, required = false, default = nil) if valid_623084 != nil: - section.add "X-Amz-SignedHeaders", valid_623084 + section.add "X-Amz-Security-Token", valid_623084 + var valid_623085 = header.getOrDefault("X-Amz-Algorithm") + valid_623085 = validateParameter(valid_623085, JString, required = false, + default = nil) + if valid_623085 != nil: + section.add "X-Amz-Algorithm", valid_623085 + var valid_623086 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623086 = validateParameter(valid_623086, JString, required = false, + default = nil) + if valid_623086 != nil: + section.add "X-Amz-SignedHeaders", valid_623086 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -98030,35 +98057,35 @@ proc validate_PostGetPasswordData_623074(path: JsonNode; query: JsonNode; ## InstanceId: JString (required) ## : The ID of the Windows instance. section = newJObject() - var valid_623085 = formData.getOrDefault("DryRun") - valid_623085 = validateParameter(valid_623085, JBool, required = false, default = nil) - if valid_623085 != nil: - section.add "DryRun", valid_623085 + var valid_623087 = formData.getOrDefault("DryRun") + valid_623087 = validateParameter(valid_623087, JBool, required = false, default = nil) + if valid_623087 != nil: + section.add "DryRun", valid_623087 assert formData != nil, "formData argument is necessary due to required `InstanceId` field" - var valid_623086 = formData.getOrDefault("InstanceId") - valid_623086 = validateParameter(valid_623086, JString, required = true, + var valid_623088 = formData.getOrDefault("InstanceId") + valid_623088 = validateParameter(valid_623088, JString, required = true, default = nil) - if valid_623086 != nil: - section.add "InstanceId", valid_623086 + if valid_623088 != nil: + section.add "InstanceId", valid_623088 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623087: Call_PostGetPasswordData_623073; path: JsonNode; +proc call*(call_623089: Call_PostGetPasswordData_623075; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Retrieves the encrypted administrator password for a running Windows instance.

    The Windows password is generated at boot by the EC2Config service or EC2Launch scripts (Windows Server 2016 and later). This usually only happens the first time an instance is launched. For more information, see EC2Config and EC2Launch in the Amazon Elastic Compute Cloud User Guide.

    For the EC2Config service, the password is not generated for rebundled AMIs unless Ec2SetPassword is enabled before bundling.

    The password is encrypted using the key pair that you specified when you launched the instance. You must provide the corresponding key pair file.

    When you launch an instance, password generation and encryption may take a few minutes. If you try to retrieve the password before it's available, the output returns an empty string. We recommend that you wait up to 15 minutes after launching an instance before trying to retrieve the generated password.

    ## - let valid = call_623087.validator(path, query, header, formData, body) - let scheme = call_623087.pickScheme + let valid = call_623089.validator(path, query, header, formData, body) + let scheme = call_623089.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623087.url(scheme.get, call_623087.host, call_623087.base, - call_623087.route, valid.getOrDefault("path"), + let url = call_623089.url(scheme.get, call_623089.host, call_623089.base, + call_623089.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623087, url, valid) + result = atozHook(call_623089, url, valid) -proc call*(call_623088: Call_PostGetPasswordData_623073; InstanceId: string; +proc call*(call_623090: Call_PostGetPasswordData_623075; InstanceId: string; DryRun: bool = false; Action: string = "GetPasswordData"; Version: string = "2016-11-15"): Recallable = ## postGetPasswordData @@ -98069,22 +98096,22 @@ proc call*(call_623088: Call_PostGetPasswordData_623073; InstanceId: string; ## : The ID of the Windows instance. ## Action: string (required) ## Version: string (required) - var query_623089 = newJObject() - var formData_623090 = newJObject() - add(formData_623090, "DryRun", newJBool(DryRun)) - add(formData_623090, "InstanceId", newJString(InstanceId)) - add(query_623089, "Action", newJString(Action)) - add(query_623089, "Version", newJString(Version)) - result = call_623088.call(nil, query_623089, nil, formData_623090, nil) + var query_623091 = newJObject() + var formData_623092 = newJObject() + add(formData_623092, "DryRun", newJBool(DryRun)) + add(formData_623092, "InstanceId", newJString(InstanceId)) + add(query_623091, "Action", newJString(Action)) + add(query_623091, "Version", newJString(Version)) + result = call_623090.call(nil, query_623091, nil, formData_623092, nil) -var postGetPasswordData* = Call_PostGetPasswordData_623073( +var postGetPasswordData* = Call_PostGetPasswordData_623075( name: "postGetPasswordData", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=GetPasswordData", - validator: validate_PostGetPasswordData_623074, base: "/", - url: url_PostGetPasswordData_623075, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostGetPasswordData_623076, base: "/", + url: url_PostGetPasswordData_623077, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetGetPasswordData_623056 = ref object of OpenApiRestCall_610658 -proc url_GetGetPasswordData_623058(protocol: Scheme; host: string; base: string; + Call_GetGetPasswordData_623058 = ref object of OpenApiRestCall_610658 +proc url_GetGetPasswordData_623060(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -98094,7 +98121,7 @@ proc url_GetGetPasswordData_623058(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetGetPasswordData_623057(path: JsonNode; query: JsonNode; +proc validate_GetGetPasswordData_623059(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Retrieves the encrypted administrator password for a running Windows instance.

    The Windows password is generated at boot by the EC2Config service or EC2Launch scripts (Windows Server 2016 and later). This usually only happens the first time an instance is launched. For more information, see EC2Config and EC2Launch in the Amazon Elastic Compute Cloud User Guide.

    For the EC2Config service, the password is not generated for rebundled AMIs unless Ec2SetPassword is enabled before bundling.

    The password is encrypted using the key pair that you specified when you launched the instance. You must provide the corresponding key pair file.

    When you launch an instance, password generation and encryption may take a few minutes. If you try to retrieve the password before it's available, the output returns an empty string. We recommend that you wait up to 15 minutes after launching an instance before trying to retrieve the generated password.

    @@ -98111,27 +98138,27 @@ proc validate_GetGetPasswordData_623057(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_623059 = query.getOrDefault("DryRun") - valid_623059 = validateParameter(valid_623059, JBool, required = false, default = nil) - if valid_623059 != nil: - section.add "DryRun", valid_623059 + var valid_623061 = query.getOrDefault("DryRun") + valid_623061 = validateParameter(valid_623061, JBool, required = false, default = nil) + if valid_623061 != nil: + section.add "DryRun", valid_623061 assert query != nil, "query argument is necessary due to required `InstanceId` field" - var valid_623060 = query.getOrDefault("InstanceId") - valid_623060 = validateParameter(valid_623060, JString, required = true, + var valid_623062 = query.getOrDefault("InstanceId") + valid_623062 = validateParameter(valid_623062, JString, required = true, default = nil) - if valid_623060 != nil: - section.add "InstanceId", valid_623060 - var valid_623061 = query.getOrDefault("Action") - valid_623061 = validateParameter(valid_623061, JString, required = true, + if valid_623062 != nil: + section.add "InstanceId", valid_623062 + var valid_623063 = query.getOrDefault("Action") + valid_623063 = validateParameter(valid_623063, JString, required = true, default = newJString("GetPasswordData")) - if valid_623061 != nil: - section.add "Action", valid_623061 - var valid_623062 = query.getOrDefault("Version") - valid_623062 = validateParameter(valid_623062, JString, required = true, + if valid_623063 != nil: + section.add "Action", valid_623063 + var valid_623064 = query.getOrDefault("Version") + valid_623064 = validateParameter(valid_623064, JString, required = true, default = newJString("2016-11-15")) - if valid_623062 != nil: - section.add "Version", valid_623062 + if valid_623064 != nil: + section.add "Version", valid_623064 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -98142,61 +98169,61 @@ proc validate_GetGetPasswordData_623057(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623063 = header.getOrDefault("X-Amz-Signature") - valid_623063 = validateParameter(valid_623063, JString, required = false, - default = nil) - if valid_623063 != nil: - section.add "X-Amz-Signature", valid_623063 - var valid_623064 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623064 = validateParameter(valid_623064, JString, required = false, - default = nil) - if valid_623064 != nil: - section.add "X-Amz-Content-Sha256", valid_623064 - var valid_623065 = header.getOrDefault("X-Amz-Date") + var valid_623065 = header.getOrDefault("X-Amz-Signature") valid_623065 = validateParameter(valid_623065, JString, required = false, default = nil) if valid_623065 != nil: - section.add "X-Amz-Date", valid_623065 - var valid_623066 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623065 + var valid_623066 = header.getOrDefault("X-Amz-Content-Sha256") valid_623066 = validateParameter(valid_623066, JString, required = false, default = nil) if valid_623066 != nil: - section.add "X-Amz-Credential", valid_623066 - var valid_623067 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623066 + var valid_623067 = header.getOrDefault("X-Amz-Date") valid_623067 = validateParameter(valid_623067, JString, required = false, default = nil) if valid_623067 != nil: - section.add "X-Amz-Security-Token", valid_623067 - var valid_623068 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623067 + var valid_623068 = header.getOrDefault("X-Amz-Credential") valid_623068 = validateParameter(valid_623068, JString, required = false, default = nil) if valid_623068 != nil: - section.add "X-Amz-Algorithm", valid_623068 - var valid_623069 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623068 + var valid_623069 = header.getOrDefault("X-Amz-Security-Token") valid_623069 = validateParameter(valid_623069, JString, required = false, default = nil) if valid_623069 != nil: - section.add "X-Amz-SignedHeaders", valid_623069 + section.add "X-Amz-Security-Token", valid_623069 + var valid_623070 = header.getOrDefault("X-Amz-Algorithm") + valid_623070 = validateParameter(valid_623070, JString, required = false, + default = nil) + if valid_623070 != nil: + section.add "X-Amz-Algorithm", valid_623070 + var valid_623071 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623071 = validateParameter(valid_623071, JString, required = false, + default = nil) + if valid_623071 != nil: + section.add "X-Amz-SignedHeaders", valid_623071 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623070: Call_GetGetPasswordData_623056; path: JsonNode; +proc call*(call_623072: Call_GetGetPasswordData_623058; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Retrieves the encrypted administrator password for a running Windows instance.

    The Windows password is generated at boot by the EC2Config service or EC2Launch scripts (Windows Server 2016 and later). This usually only happens the first time an instance is launched. For more information, see EC2Config and EC2Launch in the Amazon Elastic Compute Cloud User Guide.

    For the EC2Config service, the password is not generated for rebundled AMIs unless Ec2SetPassword is enabled before bundling.

    The password is encrypted using the key pair that you specified when you launched the instance. You must provide the corresponding key pair file.

    When you launch an instance, password generation and encryption may take a few minutes. If you try to retrieve the password before it's available, the output returns an empty string. We recommend that you wait up to 15 minutes after launching an instance before trying to retrieve the generated password.

    ## - let valid = call_623070.validator(path, query, header, formData, body) - let scheme = call_623070.pickScheme + let valid = call_623072.validator(path, query, header, formData, body) + let scheme = call_623072.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623070.url(scheme.get, call_623070.host, call_623070.base, - call_623070.route, valid.getOrDefault("path"), + let url = call_623072.url(scheme.get, call_623072.host, call_623072.base, + call_623072.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623070, url, valid) + result = atozHook(call_623072, url, valid) -proc call*(call_623071: Call_GetGetPasswordData_623056; InstanceId: string; +proc call*(call_623073: Call_GetGetPasswordData_623058; InstanceId: string; DryRun: bool = false; Action: string = "GetPasswordData"; Version: string = "2016-11-15"): Recallable = ## getGetPasswordData @@ -98207,21 +98234,21 @@ proc call*(call_623071: Call_GetGetPasswordData_623056; InstanceId: string; ## : The ID of the Windows instance. ## Action: string (required) ## Version: string (required) - var query_623072 = newJObject() - add(query_623072, "DryRun", newJBool(DryRun)) - add(query_623072, "InstanceId", newJString(InstanceId)) - add(query_623072, "Action", newJString(Action)) - add(query_623072, "Version", newJString(Version)) - result = call_623071.call(nil, query_623072, nil, nil, nil) + var query_623074 = newJObject() + add(query_623074, "DryRun", newJBool(DryRun)) + add(query_623074, "InstanceId", newJString(InstanceId)) + add(query_623074, "Action", newJString(Action)) + add(query_623074, "Version", newJString(Version)) + result = call_623073.call(nil, query_623074, nil, nil, nil) -var getGetPasswordData* = Call_GetGetPasswordData_623056( +var getGetPasswordData* = Call_GetGetPasswordData_623058( name: "getGetPasswordData", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=GetPasswordData", validator: validate_GetGetPasswordData_623057, - base: "/", url: url_GetGetPasswordData_623058, + route: "/#Action=GetPasswordData", validator: validate_GetGetPasswordData_623059, + base: "/", url: url_GetGetPasswordData_623060, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostGetReservedInstancesExchangeQuote_623109 = ref object of OpenApiRestCall_610658 -proc url_PostGetReservedInstancesExchangeQuote_623111(protocol: Scheme; + Call_PostGetReservedInstancesExchangeQuote_623111 = ref object of OpenApiRestCall_610658 +proc url_PostGetReservedInstancesExchangeQuote_623113(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -98231,7 +98258,7 @@ proc url_PostGetReservedInstancesExchangeQuote_623111(protocol: Scheme; else: result.path = base & route -proc validate_PostGetReservedInstancesExchangeQuote_623110(path: JsonNode; +proc validate_PostGetReservedInstancesExchangeQuote_623112(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Returns a quote and exchange information for exchanging one or more specified Convertible Reserved Instances for a new Convertible Reserved Instance. If the exchange cannot be performed, the reason is returned in the response. Use AcceptReservedInstancesExchangeQuote to perform the exchange. ## @@ -98243,16 +98270,16 @@ proc validate_PostGetReservedInstancesExchangeQuote_623110(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_623112 = query.getOrDefault("Action") - valid_623112 = validateParameter(valid_623112, JString, required = true, default = newJString( + var valid_623114 = query.getOrDefault("Action") + valid_623114 = validateParameter(valid_623114, JString, required = true, default = newJString( "GetReservedInstancesExchangeQuote")) - if valid_623112 != nil: - section.add "Action", valid_623112 - var valid_623113 = query.getOrDefault("Version") - valid_623113 = validateParameter(valid_623113, JString, required = true, + if valid_623114 != nil: + section.add "Action", valid_623114 + var valid_623115 = query.getOrDefault("Version") + valid_623115 = validateParameter(valid_623115, JString, required = true, default = newJString("2016-11-15")) - if valid_623113 != nil: - section.add "Version", valid_623113 + if valid_623115 != nil: + section.add "Version", valid_623115 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -98263,41 +98290,41 @@ proc validate_PostGetReservedInstancesExchangeQuote_623110(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623114 = header.getOrDefault("X-Amz-Signature") - valid_623114 = validateParameter(valid_623114, JString, required = false, - default = nil) - if valid_623114 != nil: - section.add "X-Amz-Signature", valid_623114 - var valid_623115 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623115 = validateParameter(valid_623115, JString, required = false, - default = nil) - if valid_623115 != nil: - section.add "X-Amz-Content-Sha256", valid_623115 - var valid_623116 = header.getOrDefault("X-Amz-Date") + var valid_623116 = header.getOrDefault("X-Amz-Signature") valid_623116 = validateParameter(valid_623116, JString, required = false, default = nil) if valid_623116 != nil: - section.add "X-Amz-Date", valid_623116 - var valid_623117 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623116 + var valid_623117 = header.getOrDefault("X-Amz-Content-Sha256") valid_623117 = validateParameter(valid_623117, JString, required = false, default = nil) if valid_623117 != nil: - section.add "X-Amz-Credential", valid_623117 - var valid_623118 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623117 + var valid_623118 = header.getOrDefault("X-Amz-Date") valid_623118 = validateParameter(valid_623118, JString, required = false, default = nil) if valid_623118 != nil: - section.add "X-Amz-Security-Token", valid_623118 - var valid_623119 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623118 + var valid_623119 = header.getOrDefault("X-Amz-Credential") valid_623119 = validateParameter(valid_623119, JString, required = false, default = nil) if valid_623119 != nil: - section.add "X-Amz-Algorithm", valid_623119 - var valid_623120 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623119 + var valid_623120 = header.getOrDefault("X-Amz-Security-Token") valid_623120 = validateParameter(valid_623120, JString, required = false, default = nil) if valid_623120 != nil: - section.add "X-Amz-SignedHeaders", valid_623120 + section.add "X-Amz-Security-Token", valid_623120 + var valid_623121 = header.getOrDefault("X-Amz-Algorithm") + valid_623121 = validateParameter(valid_623121, JString, required = false, + default = nil) + if valid_623121 != nil: + section.add "X-Amz-Algorithm", valid_623121 + var valid_623122 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623122 = validateParameter(valid_623122, JString, required = false, + default = nil) + if valid_623122 != nil: + section.add "X-Amz-SignedHeaders", valid_623122 result.add "header", section ## parameters in `formData` object: ## ReservedInstanceId: JArray (required) @@ -98308,38 +98335,38 @@ proc validate_PostGetReservedInstancesExchangeQuote_623110(path: JsonNode; ## : The configuration of the target Convertible Reserved Instance to exchange for your current Convertible Reserved Instances. section = newJObject() assert formData != nil, "formData argument is necessary due to required `ReservedInstanceId` field" - var valid_623121 = formData.getOrDefault("ReservedInstanceId") - valid_623121 = validateParameter(valid_623121, JArray, required = true, default = nil) - if valid_623121 != nil: - section.add "ReservedInstanceId", valid_623121 - var valid_623122 = formData.getOrDefault("DryRun") - valid_623122 = validateParameter(valid_623122, JBool, required = false, default = nil) - if valid_623122 != nil: - section.add "DryRun", valid_623122 - var valid_623123 = formData.getOrDefault("TargetConfiguration") - valid_623123 = validateParameter(valid_623123, JArray, required = false, - default = nil) + var valid_623123 = formData.getOrDefault("ReservedInstanceId") + valid_623123 = validateParameter(valid_623123, JArray, required = true, default = nil) if valid_623123 != nil: - section.add "TargetConfiguration", valid_623123 + section.add "ReservedInstanceId", valid_623123 + var valid_623124 = formData.getOrDefault("DryRun") + valid_623124 = validateParameter(valid_623124, JBool, required = false, default = nil) + if valid_623124 != nil: + section.add "DryRun", valid_623124 + var valid_623125 = formData.getOrDefault("TargetConfiguration") + valid_623125 = validateParameter(valid_623125, JArray, required = false, + default = nil) + if valid_623125 != nil: + section.add "TargetConfiguration", valid_623125 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623124: Call_PostGetReservedInstancesExchangeQuote_623109; +proc call*(call_623126: Call_PostGetReservedInstancesExchangeQuote_623111; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Returns a quote and exchange information for exchanging one or more specified Convertible Reserved Instances for a new Convertible Reserved Instance. If the exchange cannot be performed, the reason is returned in the response. Use AcceptReservedInstancesExchangeQuote to perform the exchange. ## - let valid = call_623124.validator(path, query, header, formData, body) - let scheme = call_623124.pickScheme + let valid = call_623126.validator(path, query, header, formData, body) + let scheme = call_623126.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623124.url(scheme.get, call_623124.host, call_623124.base, - call_623124.route, valid.getOrDefault("path"), + let url = call_623126.url(scheme.get, call_623126.host, call_623126.base, + call_623126.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623124, url, valid) + result = atozHook(call_623126, url, valid) -proc call*(call_623125: Call_PostGetReservedInstancesExchangeQuote_623109; +proc call*(call_623127: Call_PostGetReservedInstancesExchangeQuote_623111; ReservedInstanceId: JsonNode; DryRun: bool = false; Action: string = "GetReservedInstancesExchangeQuote"; TargetConfiguration: JsonNode = nil; Version: string = "2016-11-15"): Recallable = @@ -98353,27 +98380,27 @@ proc call*(call_623125: Call_PostGetReservedInstancesExchangeQuote_623109; ## TargetConfiguration: JArray ## : The configuration of the target Convertible Reserved Instance to exchange for your current Convertible Reserved Instances. ## Version: string (required) - var query_623126 = newJObject() - var formData_623127 = newJObject() + var query_623128 = newJObject() + var formData_623129 = newJObject() if ReservedInstanceId != nil: - formData_623127.add "ReservedInstanceId", ReservedInstanceId - add(formData_623127, "DryRun", newJBool(DryRun)) - add(query_623126, "Action", newJString(Action)) + formData_623129.add "ReservedInstanceId", ReservedInstanceId + add(formData_623129, "DryRun", newJBool(DryRun)) + add(query_623128, "Action", newJString(Action)) if TargetConfiguration != nil: - formData_623127.add "TargetConfiguration", TargetConfiguration - add(query_623126, "Version", newJString(Version)) - result = call_623125.call(nil, query_623126, nil, formData_623127, nil) + formData_623129.add "TargetConfiguration", TargetConfiguration + add(query_623128, "Version", newJString(Version)) + result = call_623127.call(nil, query_623128, nil, formData_623129, nil) -var postGetReservedInstancesExchangeQuote* = Call_PostGetReservedInstancesExchangeQuote_623109( +var postGetReservedInstancesExchangeQuote* = Call_PostGetReservedInstancesExchangeQuote_623111( name: "postGetReservedInstancesExchangeQuote", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=GetReservedInstancesExchangeQuote", - validator: validate_PostGetReservedInstancesExchangeQuote_623110, base: "/", - url: url_PostGetReservedInstancesExchangeQuote_623111, + validator: validate_PostGetReservedInstancesExchangeQuote_623112, base: "/", + url: url_PostGetReservedInstancesExchangeQuote_623113, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetGetReservedInstancesExchangeQuote_623091 = ref object of OpenApiRestCall_610658 -proc url_GetGetReservedInstancesExchangeQuote_623093(protocol: Scheme; + Call_GetGetReservedInstancesExchangeQuote_623093 = ref object of OpenApiRestCall_610658 +proc url_GetGetReservedInstancesExchangeQuote_623095(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -98383,7 +98410,7 @@ proc url_GetGetReservedInstancesExchangeQuote_623093(protocol: Scheme; else: result.path = base & route -proc validate_GetGetReservedInstancesExchangeQuote_623092(path: JsonNode; +proc validate_GetGetReservedInstancesExchangeQuote_623094(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Returns a quote and exchange information for exchanging one or more specified Convertible Reserved Instances for a new Convertible Reserved Instance. If the exchange cannot be performed, the reason is returned in the response. Use AcceptReservedInstancesExchangeQuote to perform the exchange. ## @@ -98401,29 +98428,29 @@ proc validate_GetGetReservedInstancesExchangeQuote_623092(path: JsonNode; ## ReservedInstanceId: JArray (required) ## : The IDs of the Convertible Reserved Instances to exchange. section = newJObject() - var valid_623094 = query.getOrDefault("DryRun") - valid_623094 = validateParameter(valid_623094, JBool, required = false, default = nil) - if valid_623094 != nil: - section.add "DryRun", valid_623094 - var valid_623095 = query.getOrDefault("TargetConfiguration") - valid_623095 = validateParameter(valid_623095, JArray, required = false, - default = nil) - if valid_623095 != nil: - section.add "TargetConfiguration", valid_623095 - var valid_623096 = query.getOrDefault("Action") - valid_623096 = validateParameter(valid_623096, JString, required = true, default = newJString( - "GetReservedInstancesExchangeQuote")) + var valid_623096 = query.getOrDefault("DryRun") + valid_623096 = validateParameter(valid_623096, JBool, required = false, default = nil) if valid_623096 != nil: - section.add "Action", valid_623096 - var valid_623097 = query.getOrDefault("Version") - valid_623097 = validateParameter(valid_623097, JString, required = true, - default = newJString("2016-11-15")) + section.add "DryRun", valid_623096 + var valid_623097 = query.getOrDefault("TargetConfiguration") + valid_623097 = validateParameter(valid_623097, JArray, required = false, + default = nil) if valid_623097 != nil: - section.add "Version", valid_623097 - var valid_623098 = query.getOrDefault("ReservedInstanceId") - valid_623098 = validateParameter(valid_623098, JArray, required = true, default = nil) + section.add "TargetConfiguration", valid_623097 + var valid_623098 = query.getOrDefault("Action") + valid_623098 = validateParameter(valid_623098, JString, required = true, default = newJString( + "GetReservedInstancesExchangeQuote")) if valid_623098 != nil: - section.add "ReservedInstanceId", valid_623098 + section.add "Action", valid_623098 + var valid_623099 = query.getOrDefault("Version") + valid_623099 = validateParameter(valid_623099, JString, required = true, + default = newJString("2016-11-15")) + if valid_623099 != nil: + section.add "Version", valid_623099 + var valid_623100 = query.getOrDefault("ReservedInstanceId") + valid_623100 = validateParameter(valid_623100, JArray, required = true, default = nil) + if valid_623100 != nil: + section.add "ReservedInstanceId", valid_623100 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -98434,62 +98461,62 @@ proc validate_GetGetReservedInstancesExchangeQuote_623092(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623099 = header.getOrDefault("X-Amz-Signature") - valid_623099 = validateParameter(valid_623099, JString, required = false, - default = nil) - if valid_623099 != nil: - section.add "X-Amz-Signature", valid_623099 - var valid_623100 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623100 = validateParameter(valid_623100, JString, required = false, - default = nil) - if valid_623100 != nil: - section.add "X-Amz-Content-Sha256", valid_623100 - var valid_623101 = header.getOrDefault("X-Amz-Date") + var valid_623101 = header.getOrDefault("X-Amz-Signature") valid_623101 = validateParameter(valid_623101, JString, required = false, default = nil) if valid_623101 != nil: - section.add "X-Amz-Date", valid_623101 - var valid_623102 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623101 + var valid_623102 = header.getOrDefault("X-Amz-Content-Sha256") valid_623102 = validateParameter(valid_623102, JString, required = false, default = nil) if valid_623102 != nil: - section.add "X-Amz-Credential", valid_623102 - var valid_623103 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623102 + var valid_623103 = header.getOrDefault("X-Amz-Date") valid_623103 = validateParameter(valid_623103, JString, required = false, default = nil) if valid_623103 != nil: - section.add "X-Amz-Security-Token", valid_623103 - var valid_623104 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623103 + var valid_623104 = header.getOrDefault("X-Amz-Credential") valid_623104 = validateParameter(valid_623104, JString, required = false, default = nil) if valid_623104 != nil: - section.add "X-Amz-Algorithm", valid_623104 - var valid_623105 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623104 + var valid_623105 = header.getOrDefault("X-Amz-Security-Token") valid_623105 = validateParameter(valid_623105, JString, required = false, default = nil) if valid_623105 != nil: - section.add "X-Amz-SignedHeaders", valid_623105 + section.add "X-Amz-Security-Token", valid_623105 + var valid_623106 = header.getOrDefault("X-Amz-Algorithm") + valid_623106 = validateParameter(valid_623106, JString, required = false, + default = nil) + if valid_623106 != nil: + section.add "X-Amz-Algorithm", valid_623106 + var valid_623107 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623107 = validateParameter(valid_623107, JString, required = false, + default = nil) + if valid_623107 != nil: + section.add "X-Amz-SignedHeaders", valid_623107 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623106: Call_GetGetReservedInstancesExchangeQuote_623091; +proc call*(call_623108: Call_GetGetReservedInstancesExchangeQuote_623093; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Returns a quote and exchange information for exchanging one or more specified Convertible Reserved Instances for a new Convertible Reserved Instance. If the exchange cannot be performed, the reason is returned in the response. Use AcceptReservedInstancesExchangeQuote to perform the exchange. ## - let valid = call_623106.validator(path, query, header, formData, body) - let scheme = call_623106.pickScheme + let valid = call_623108.validator(path, query, header, formData, body) + let scheme = call_623108.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623106.url(scheme.get, call_623106.host, call_623106.base, - call_623106.route, valid.getOrDefault("path"), + let url = call_623108.url(scheme.get, call_623108.host, call_623108.base, + call_623108.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623106, url, valid) + result = atozHook(call_623108, url, valid) -proc call*(call_623107: Call_GetGetReservedInstancesExchangeQuote_623091; +proc call*(call_623109: Call_GetGetReservedInstancesExchangeQuote_623093; ReservedInstanceId: JsonNode; DryRun: bool = false; TargetConfiguration: JsonNode = nil; Action: string = "GetReservedInstancesExchangeQuote"; @@ -98504,26 +98531,26 @@ proc call*(call_623107: Call_GetGetReservedInstancesExchangeQuote_623091; ## Version: string (required) ## ReservedInstanceId: JArray (required) ## : The IDs of the Convertible Reserved Instances to exchange. - var query_623108 = newJObject() - add(query_623108, "DryRun", newJBool(DryRun)) + var query_623110 = newJObject() + add(query_623110, "DryRun", newJBool(DryRun)) if TargetConfiguration != nil: - query_623108.add "TargetConfiguration", TargetConfiguration - add(query_623108, "Action", newJString(Action)) - add(query_623108, "Version", newJString(Version)) + query_623110.add "TargetConfiguration", TargetConfiguration + add(query_623110, "Action", newJString(Action)) + add(query_623110, "Version", newJString(Version)) if ReservedInstanceId != nil: - query_623108.add "ReservedInstanceId", ReservedInstanceId - result = call_623107.call(nil, query_623108, nil, nil, nil) + query_623110.add "ReservedInstanceId", ReservedInstanceId + result = call_623109.call(nil, query_623110, nil, nil, nil) -var getGetReservedInstancesExchangeQuote* = Call_GetGetReservedInstancesExchangeQuote_623091( +var getGetReservedInstancesExchangeQuote* = Call_GetGetReservedInstancesExchangeQuote_623093( name: "getGetReservedInstancesExchangeQuote", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=GetReservedInstancesExchangeQuote", - validator: validate_GetGetReservedInstancesExchangeQuote_623092, base: "/", - url: url_GetGetReservedInstancesExchangeQuote_623093, + validator: validate_GetGetReservedInstancesExchangeQuote_623094, base: "/", + url: url_GetGetReservedInstancesExchangeQuote_623095, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostGetTransitGatewayAttachmentPropagations_623148 = ref object of OpenApiRestCall_610658 -proc url_PostGetTransitGatewayAttachmentPropagations_623150(protocol: Scheme; + Call_PostGetTransitGatewayAttachmentPropagations_623150 = ref object of OpenApiRestCall_610658 +proc url_PostGetTransitGatewayAttachmentPropagations_623152(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -98533,7 +98560,7 @@ proc url_PostGetTransitGatewayAttachmentPropagations_623150(protocol: Scheme; else: result.path = base & route -proc validate_PostGetTransitGatewayAttachmentPropagations_623149(path: JsonNode; +proc validate_PostGetTransitGatewayAttachmentPropagations_623151(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Lists the route tables to which the specified resource attachment propagates routes. ## @@ -98545,16 +98572,16 @@ proc validate_PostGetTransitGatewayAttachmentPropagations_623149(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_623151 = query.getOrDefault("Action") - valid_623151 = validateParameter(valid_623151, JString, required = true, default = newJString( + var valid_623153 = query.getOrDefault("Action") + valid_623153 = validateParameter(valid_623153, JString, required = true, default = newJString( "GetTransitGatewayAttachmentPropagations")) - if valid_623151 != nil: - section.add "Action", valid_623151 - var valid_623152 = query.getOrDefault("Version") - valid_623152 = validateParameter(valid_623152, JString, required = true, + if valid_623153 != nil: + section.add "Action", valid_623153 + var valid_623154 = query.getOrDefault("Version") + valid_623154 = validateParameter(valid_623154, JString, required = true, default = newJString("2016-11-15")) - if valid_623152 != nil: - section.add "Version", valid_623152 + if valid_623154 != nil: + section.add "Version", valid_623154 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -98565,41 +98592,41 @@ proc validate_PostGetTransitGatewayAttachmentPropagations_623149(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623153 = header.getOrDefault("X-Amz-Signature") - valid_623153 = validateParameter(valid_623153, JString, required = false, - default = nil) - if valid_623153 != nil: - section.add "X-Amz-Signature", valid_623153 - var valid_623154 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623154 = validateParameter(valid_623154, JString, required = false, - default = nil) - if valid_623154 != nil: - section.add "X-Amz-Content-Sha256", valid_623154 - var valid_623155 = header.getOrDefault("X-Amz-Date") + var valid_623155 = header.getOrDefault("X-Amz-Signature") valid_623155 = validateParameter(valid_623155, JString, required = false, default = nil) if valid_623155 != nil: - section.add "X-Amz-Date", valid_623155 - var valid_623156 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623155 + var valid_623156 = header.getOrDefault("X-Amz-Content-Sha256") valid_623156 = validateParameter(valid_623156, JString, required = false, default = nil) if valid_623156 != nil: - section.add "X-Amz-Credential", valid_623156 - var valid_623157 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623156 + var valid_623157 = header.getOrDefault("X-Amz-Date") valid_623157 = validateParameter(valid_623157, JString, required = false, default = nil) if valid_623157 != nil: - section.add "X-Amz-Security-Token", valid_623157 - var valid_623158 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623157 + var valid_623158 = header.getOrDefault("X-Amz-Credential") valid_623158 = validateParameter(valid_623158, JString, required = false, default = nil) if valid_623158 != nil: - section.add "X-Amz-Algorithm", valid_623158 - var valid_623159 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623158 + var valid_623159 = header.getOrDefault("X-Amz-Security-Token") valid_623159 = validateParameter(valid_623159, JString, required = false, default = nil) if valid_623159 != nil: - section.add "X-Amz-SignedHeaders", valid_623159 + section.add "X-Amz-Security-Token", valid_623159 + var valid_623160 = header.getOrDefault("X-Amz-Algorithm") + valid_623160 = validateParameter(valid_623160, JString, required = false, + default = nil) + if valid_623160 != nil: + section.add "X-Amz-Algorithm", valid_623160 + var valid_623161 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623161 = validateParameter(valid_623161, JString, required = false, + default = nil) + if valid_623161 != nil: + section.add "X-Amz-SignedHeaders", valid_623161 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -98613,49 +98640,49 @@ proc validate_PostGetTransitGatewayAttachmentPropagations_623149(path: JsonNode; ## Filter: JArray ## :

    One or more filters. The possible values are:

    section = newJObject() - var valid_623160 = formData.getOrDefault("NextToken") - valid_623160 = validateParameter(valid_623160, JString, required = false, + var valid_623162 = formData.getOrDefault("NextToken") + valid_623162 = validateParameter(valid_623162, JString, required = false, default = nil) - if valid_623160 != nil: - section.add "NextToken", valid_623160 - var valid_623161 = formData.getOrDefault("DryRun") - valid_623161 = validateParameter(valid_623161, JBool, required = false, default = nil) - if valid_623161 != nil: - section.add "DryRun", valid_623161 - var valid_623162 = formData.getOrDefault("MaxResults") - valid_623162 = validateParameter(valid_623162, JInt, required = false, default = nil) if valid_623162 != nil: - section.add "MaxResults", valid_623162 + section.add "NextToken", valid_623162 + var valid_623163 = formData.getOrDefault("DryRun") + valid_623163 = validateParameter(valid_623163, JBool, required = false, default = nil) + if valid_623163 != nil: + section.add "DryRun", valid_623163 + var valid_623164 = formData.getOrDefault("MaxResults") + valid_623164 = validateParameter(valid_623164, JInt, required = false, default = nil) + if valid_623164 != nil: + section.add "MaxResults", valid_623164 assert formData != nil, "formData argument is necessary due to required `TransitGatewayAttachmentId` field" - var valid_623163 = formData.getOrDefault("TransitGatewayAttachmentId") - valid_623163 = validateParameter(valid_623163, JString, required = true, + var valid_623165 = formData.getOrDefault("TransitGatewayAttachmentId") + valid_623165 = validateParameter(valid_623165, JString, required = true, default = nil) - if valid_623163 != nil: - section.add "TransitGatewayAttachmentId", valid_623163 - var valid_623164 = formData.getOrDefault("Filter") - valid_623164 = validateParameter(valid_623164, JArray, required = false, + if valid_623165 != nil: + section.add "TransitGatewayAttachmentId", valid_623165 + var valid_623166 = formData.getOrDefault("Filter") + valid_623166 = validateParameter(valid_623166, JArray, required = false, default = nil) - if valid_623164 != nil: - section.add "Filter", valid_623164 + if valid_623166 != nil: + section.add "Filter", valid_623166 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623165: Call_PostGetTransitGatewayAttachmentPropagations_623148; +proc call*(call_623167: Call_PostGetTransitGatewayAttachmentPropagations_623150; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Lists the route tables to which the specified resource attachment propagates routes. ## - let valid = call_623165.validator(path, query, header, formData, body) - let scheme = call_623165.pickScheme + let valid = call_623167.validator(path, query, header, formData, body) + let scheme = call_623167.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623165.url(scheme.get, call_623165.host, call_623165.base, - call_623165.route, valid.getOrDefault("path"), + let url = call_623167.url(scheme.get, call_623167.host, call_623167.base, + call_623167.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623165, url, valid) + result = atozHook(call_623167, url, valid) -proc call*(call_623166: Call_PostGetTransitGatewayAttachmentPropagations_623148; +proc call*(call_623168: Call_PostGetTransitGatewayAttachmentPropagations_623150; TransitGatewayAttachmentId: string; NextToken: string = ""; DryRun: bool = false; Action: string = "GetTransitGatewayAttachmentPropagations"; @@ -98674,29 +98701,29 @@ proc call*(call_623166: Call_PostGetTransitGatewayAttachmentPropagations_623148; ## : The ID of the attachment. ## Filter: JArray ## :

    One or more filters. The possible values are:

    - var query_623167 = newJObject() - var formData_623168 = newJObject() - add(formData_623168, "NextToken", newJString(NextToken)) - add(formData_623168, "DryRun", newJBool(DryRun)) - add(query_623167, "Action", newJString(Action)) - add(query_623167, "Version", newJString(Version)) - add(formData_623168, "MaxResults", newJInt(MaxResults)) - add(formData_623168, "TransitGatewayAttachmentId", + var query_623169 = newJObject() + var formData_623170 = newJObject() + add(formData_623170, "NextToken", newJString(NextToken)) + add(formData_623170, "DryRun", newJBool(DryRun)) + add(query_623169, "Action", newJString(Action)) + add(query_623169, "Version", newJString(Version)) + add(formData_623170, "MaxResults", newJInt(MaxResults)) + add(formData_623170, "TransitGatewayAttachmentId", newJString(TransitGatewayAttachmentId)) if Filter != nil: - formData_623168.add "Filter", Filter - result = call_623166.call(nil, query_623167, nil, formData_623168, nil) + formData_623170.add "Filter", Filter + result = call_623168.call(nil, query_623169, nil, formData_623170, nil) -var postGetTransitGatewayAttachmentPropagations* = Call_PostGetTransitGatewayAttachmentPropagations_623148( +var postGetTransitGatewayAttachmentPropagations* = Call_PostGetTransitGatewayAttachmentPropagations_623150( name: "postGetTransitGatewayAttachmentPropagations", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=GetTransitGatewayAttachmentPropagations", - validator: validate_PostGetTransitGatewayAttachmentPropagations_623149, - base: "/", url: url_PostGetTransitGatewayAttachmentPropagations_623150, + validator: validate_PostGetTransitGatewayAttachmentPropagations_623151, + base: "/", url: url_PostGetTransitGatewayAttachmentPropagations_623152, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetGetTransitGatewayAttachmentPropagations_623128 = ref object of OpenApiRestCall_610658 -proc url_GetGetTransitGatewayAttachmentPropagations_623130(protocol: Scheme; + Call_GetGetTransitGatewayAttachmentPropagations_623130 = ref object of OpenApiRestCall_610658 +proc url_GetGetTransitGatewayAttachmentPropagations_623132(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -98706,7 +98733,7 @@ proc url_GetGetTransitGatewayAttachmentPropagations_623130(protocol: Scheme; else: result.path = base & route -proc validate_GetGetTransitGatewayAttachmentPropagations_623129(path: JsonNode; +proc validate_GetGetTransitGatewayAttachmentPropagations_623131(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Lists the route tables to which the specified resource attachment propagates routes. ## @@ -98728,40 +98755,40 @@ proc validate_GetGetTransitGatewayAttachmentPropagations_623129(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_623131 = query.getOrDefault("MaxResults") - valid_623131 = validateParameter(valid_623131, JInt, required = false, default = nil) - if valid_623131 != nil: - section.add "MaxResults", valid_623131 - var valid_623132 = query.getOrDefault("DryRun") - valid_623132 = validateParameter(valid_623132, JBool, required = false, default = nil) - if valid_623132 != nil: - section.add "DryRun", valid_623132 - var valid_623133 = query.getOrDefault("NextToken") - valid_623133 = validateParameter(valid_623133, JString, required = false, - default = nil) + var valid_623133 = query.getOrDefault("MaxResults") + valid_623133 = validateParameter(valid_623133, JInt, required = false, default = nil) if valid_623133 != nil: - section.add "NextToken", valid_623133 - assert query != nil, "query argument is necessary due to required `TransitGatewayAttachmentId` field" - var valid_623134 = query.getOrDefault("TransitGatewayAttachmentId") - valid_623134 = validateParameter(valid_623134, JString, required = true, - default = nil) + section.add "MaxResults", valid_623133 + var valid_623134 = query.getOrDefault("DryRun") + valid_623134 = validateParameter(valid_623134, JBool, required = false, default = nil) if valid_623134 != nil: - section.add "TransitGatewayAttachmentId", valid_623134 - var valid_623135 = query.getOrDefault("Filter") - valid_623135 = validateParameter(valid_623135, JArray, required = false, + section.add "DryRun", valid_623134 + var valid_623135 = query.getOrDefault("NextToken") + valid_623135 = validateParameter(valid_623135, JString, required = false, default = nil) if valid_623135 != nil: - section.add "Filter", valid_623135 - var valid_623136 = query.getOrDefault("Action") - valid_623136 = validateParameter(valid_623136, JString, required = true, default = newJString( - "GetTransitGatewayAttachmentPropagations")) + section.add "NextToken", valid_623135 + assert query != nil, "query argument is necessary due to required `TransitGatewayAttachmentId` field" + var valid_623136 = query.getOrDefault("TransitGatewayAttachmentId") + valid_623136 = validateParameter(valid_623136, JString, required = true, + default = nil) if valid_623136 != nil: - section.add "Action", valid_623136 - var valid_623137 = query.getOrDefault("Version") - valid_623137 = validateParameter(valid_623137, JString, required = true, - default = newJString("2016-11-15")) + section.add "TransitGatewayAttachmentId", valid_623136 + var valid_623137 = query.getOrDefault("Filter") + valid_623137 = validateParameter(valid_623137, JArray, required = false, + default = nil) if valid_623137 != nil: - section.add "Version", valid_623137 + section.add "Filter", valid_623137 + var valid_623138 = query.getOrDefault("Action") + valid_623138 = validateParameter(valid_623138, JString, required = true, default = newJString( + "GetTransitGatewayAttachmentPropagations")) + if valid_623138 != nil: + section.add "Action", valid_623138 + var valid_623139 = query.getOrDefault("Version") + valid_623139 = validateParameter(valid_623139, JString, required = true, + default = newJString("2016-11-15")) + if valid_623139 != nil: + section.add "Version", valid_623139 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -98772,62 +98799,62 @@ proc validate_GetGetTransitGatewayAttachmentPropagations_623129(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623138 = header.getOrDefault("X-Amz-Signature") - valid_623138 = validateParameter(valid_623138, JString, required = false, - default = nil) - if valid_623138 != nil: - section.add "X-Amz-Signature", valid_623138 - var valid_623139 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623139 = validateParameter(valid_623139, JString, required = false, - default = nil) - if valid_623139 != nil: - section.add "X-Amz-Content-Sha256", valid_623139 - var valid_623140 = header.getOrDefault("X-Amz-Date") + var valid_623140 = header.getOrDefault("X-Amz-Signature") valid_623140 = validateParameter(valid_623140, JString, required = false, default = nil) if valid_623140 != nil: - section.add "X-Amz-Date", valid_623140 - var valid_623141 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623140 + var valid_623141 = header.getOrDefault("X-Amz-Content-Sha256") valid_623141 = validateParameter(valid_623141, JString, required = false, default = nil) if valid_623141 != nil: - section.add "X-Amz-Credential", valid_623141 - var valid_623142 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623141 + var valid_623142 = header.getOrDefault("X-Amz-Date") valid_623142 = validateParameter(valid_623142, JString, required = false, default = nil) if valid_623142 != nil: - section.add "X-Amz-Security-Token", valid_623142 - var valid_623143 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623142 + var valid_623143 = header.getOrDefault("X-Amz-Credential") valid_623143 = validateParameter(valid_623143, JString, required = false, default = nil) if valid_623143 != nil: - section.add "X-Amz-Algorithm", valid_623143 - var valid_623144 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623143 + var valid_623144 = header.getOrDefault("X-Amz-Security-Token") valid_623144 = validateParameter(valid_623144, JString, required = false, default = nil) if valid_623144 != nil: - section.add "X-Amz-SignedHeaders", valid_623144 + section.add "X-Amz-Security-Token", valid_623144 + var valid_623145 = header.getOrDefault("X-Amz-Algorithm") + valid_623145 = validateParameter(valid_623145, JString, required = false, + default = nil) + if valid_623145 != nil: + section.add "X-Amz-Algorithm", valid_623145 + var valid_623146 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623146 = validateParameter(valid_623146, JString, required = false, + default = nil) + if valid_623146 != nil: + section.add "X-Amz-SignedHeaders", valid_623146 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623145: Call_GetGetTransitGatewayAttachmentPropagations_623128; +proc call*(call_623147: Call_GetGetTransitGatewayAttachmentPropagations_623130; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Lists the route tables to which the specified resource attachment propagates routes. ## - let valid = call_623145.validator(path, query, header, formData, body) - let scheme = call_623145.pickScheme + let valid = call_623147.validator(path, query, header, formData, body) + let scheme = call_623147.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623145.url(scheme.get, call_623145.host, call_623145.base, - call_623145.route, valid.getOrDefault("path"), + let url = call_623147.url(scheme.get, call_623147.host, call_623147.base, + call_623147.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623145, url, valid) + result = atozHook(call_623147, url, valid) -proc call*(call_623146: Call_GetGetTransitGatewayAttachmentPropagations_623128; +proc call*(call_623148: Call_GetGetTransitGatewayAttachmentPropagations_623130; TransitGatewayAttachmentId: string; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "GetTransitGatewayAttachmentPropagations"; @@ -98846,28 +98873,28 @@ proc call*(call_623146: Call_GetGetTransitGatewayAttachmentPropagations_623128; ## :

    One or more filters. The possible values are:

    ## Action: string (required) ## Version: string (required) - var query_623147 = newJObject() - add(query_623147, "MaxResults", newJInt(MaxResults)) - add(query_623147, "DryRun", newJBool(DryRun)) - add(query_623147, "NextToken", newJString(NextToken)) - add(query_623147, "TransitGatewayAttachmentId", + var query_623149 = newJObject() + add(query_623149, "MaxResults", newJInt(MaxResults)) + add(query_623149, "DryRun", newJBool(DryRun)) + add(query_623149, "NextToken", newJString(NextToken)) + add(query_623149, "TransitGatewayAttachmentId", newJString(TransitGatewayAttachmentId)) if Filter != nil: - query_623147.add "Filter", Filter - add(query_623147, "Action", newJString(Action)) - add(query_623147, "Version", newJString(Version)) - result = call_623146.call(nil, query_623147, nil, nil, nil) + query_623149.add "Filter", Filter + add(query_623149, "Action", newJString(Action)) + add(query_623149, "Version", newJString(Version)) + result = call_623148.call(nil, query_623149, nil, nil, nil) -var getGetTransitGatewayAttachmentPropagations* = Call_GetGetTransitGatewayAttachmentPropagations_623128( +var getGetTransitGatewayAttachmentPropagations* = Call_GetGetTransitGatewayAttachmentPropagations_623130( name: "getGetTransitGatewayAttachmentPropagations", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=GetTransitGatewayAttachmentPropagations", - validator: validate_GetGetTransitGatewayAttachmentPropagations_623129, - base: "/", url: url_GetGetTransitGatewayAttachmentPropagations_623130, + validator: validate_GetGetTransitGatewayAttachmentPropagations_623131, + base: "/", url: url_GetGetTransitGatewayAttachmentPropagations_623132, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostGetTransitGatewayMulticastDomainAssociations_623189 = ref object of OpenApiRestCall_610658 -proc url_PostGetTransitGatewayMulticastDomainAssociations_623191( + Call_PostGetTransitGatewayMulticastDomainAssociations_623191 = ref object of OpenApiRestCall_610658 +proc url_PostGetTransitGatewayMulticastDomainAssociations_623193( protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -98878,7 +98905,7 @@ proc url_PostGetTransitGatewayMulticastDomainAssociations_623191( else: result.path = base & route -proc validate_PostGetTransitGatewayMulticastDomainAssociations_623190( +proc validate_PostGetTransitGatewayMulticastDomainAssociations_623192( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Gets information about the associations for the transit gateway multicast domain. @@ -98891,16 +98918,16 @@ proc validate_PostGetTransitGatewayMulticastDomainAssociations_623190( ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_623192 = query.getOrDefault("Action") - valid_623192 = validateParameter(valid_623192, JString, required = true, default = newJString( + var valid_623194 = query.getOrDefault("Action") + valid_623194 = validateParameter(valid_623194, JString, required = true, default = newJString( "GetTransitGatewayMulticastDomainAssociations")) - if valid_623192 != nil: - section.add "Action", valid_623192 - var valid_623193 = query.getOrDefault("Version") - valid_623193 = validateParameter(valid_623193, JString, required = true, + if valid_623194 != nil: + section.add "Action", valid_623194 + var valid_623195 = query.getOrDefault("Version") + valid_623195 = validateParameter(valid_623195, JString, required = true, default = newJString("2016-11-15")) - if valid_623193 != nil: - section.add "Version", valid_623193 + if valid_623195 != nil: + section.add "Version", valid_623195 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -98911,41 +98938,41 @@ proc validate_PostGetTransitGatewayMulticastDomainAssociations_623190( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623194 = header.getOrDefault("X-Amz-Signature") - valid_623194 = validateParameter(valid_623194, JString, required = false, - default = nil) - if valid_623194 != nil: - section.add "X-Amz-Signature", valid_623194 - var valid_623195 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623195 = validateParameter(valid_623195, JString, required = false, - default = nil) - if valid_623195 != nil: - section.add "X-Amz-Content-Sha256", valid_623195 - var valid_623196 = header.getOrDefault("X-Amz-Date") + var valid_623196 = header.getOrDefault("X-Amz-Signature") valid_623196 = validateParameter(valid_623196, JString, required = false, default = nil) if valid_623196 != nil: - section.add "X-Amz-Date", valid_623196 - var valid_623197 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623196 + var valid_623197 = header.getOrDefault("X-Amz-Content-Sha256") valid_623197 = validateParameter(valid_623197, JString, required = false, default = nil) if valid_623197 != nil: - section.add "X-Amz-Credential", valid_623197 - var valid_623198 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623197 + var valid_623198 = header.getOrDefault("X-Amz-Date") valid_623198 = validateParameter(valid_623198, JString, required = false, default = nil) if valid_623198 != nil: - section.add "X-Amz-Security-Token", valid_623198 - var valid_623199 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623198 + var valid_623199 = header.getOrDefault("X-Amz-Credential") valid_623199 = validateParameter(valid_623199, JString, required = false, default = nil) if valid_623199 != nil: - section.add "X-Amz-Algorithm", valid_623199 - var valid_623200 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623199 + var valid_623200 = header.getOrDefault("X-Amz-Security-Token") valid_623200 = validateParameter(valid_623200, JString, required = false, default = nil) if valid_623200 != nil: - section.add "X-Amz-SignedHeaders", valid_623200 + section.add "X-Amz-Security-Token", valid_623200 + var valid_623201 = header.getOrDefault("X-Amz-Algorithm") + valid_623201 = validateParameter(valid_623201, JString, required = false, + default = nil) + if valid_623201 != nil: + section.add "X-Amz-Algorithm", valid_623201 + var valid_623202 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623202 = validateParameter(valid_623202, JString, required = false, + default = nil) + if valid_623202 != nil: + section.add "X-Amz-SignedHeaders", valid_623202 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -98959,48 +98986,48 @@ proc validate_PostGetTransitGatewayMulticastDomainAssociations_623190( ## Filter: JArray ## :

    One or more filters. The possible values are:

    section = newJObject() - var valid_623201 = formData.getOrDefault("NextToken") - valid_623201 = validateParameter(valid_623201, JString, required = false, - default = nil) - if valid_623201 != nil: - section.add "NextToken", valid_623201 - var valid_623202 = formData.getOrDefault("DryRun") - valid_623202 = validateParameter(valid_623202, JBool, required = false, default = nil) - if valid_623202 != nil: - section.add "DryRun", valid_623202 - var valid_623203 = formData.getOrDefault("TransitGatewayMulticastDomainId") + var valid_623203 = formData.getOrDefault("NextToken") valid_623203 = validateParameter(valid_623203, JString, required = false, default = nil) if valid_623203 != nil: - section.add "TransitGatewayMulticastDomainId", valid_623203 - var valid_623204 = formData.getOrDefault("MaxResults") - valid_623204 = validateParameter(valid_623204, JInt, required = false, default = nil) + section.add "NextToken", valid_623203 + var valid_623204 = formData.getOrDefault("DryRun") + valid_623204 = validateParameter(valid_623204, JBool, required = false, default = nil) if valid_623204 != nil: - section.add "MaxResults", valid_623204 - var valid_623205 = formData.getOrDefault("Filter") - valid_623205 = validateParameter(valid_623205, JArray, required = false, + section.add "DryRun", valid_623204 + var valid_623205 = formData.getOrDefault("TransitGatewayMulticastDomainId") + valid_623205 = validateParameter(valid_623205, JString, required = false, default = nil) if valid_623205 != nil: - section.add "Filter", valid_623205 + section.add "TransitGatewayMulticastDomainId", valid_623205 + var valid_623206 = formData.getOrDefault("MaxResults") + valid_623206 = validateParameter(valid_623206, JInt, required = false, default = nil) + if valid_623206 != nil: + section.add "MaxResults", valid_623206 + var valid_623207 = formData.getOrDefault("Filter") + valid_623207 = validateParameter(valid_623207, JArray, required = false, + default = nil) + if valid_623207 != nil: + section.add "Filter", valid_623207 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623206: Call_PostGetTransitGatewayMulticastDomainAssociations_623189; +proc call*(call_623208: Call_PostGetTransitGatewayMulticastDomainAssociations_623191; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Gets information about the associations for the transit gateway multicast domain. ## - let valid = call_623206.validator(path, query, header, formData, body) - let scheme = call_623206.pickScheme + let valid = call_623208.validator(path, query, header, formData, body) + let scheme = call_623208.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623206.url(scheme.get, call_623206.host, call_623206.base, - call_623206.route, valid.getOrDefault("path"), + let url = call_623208.url(scheme.get, call_623208.host, call_623208.base, + call_623208.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623206, url, valid) + result = atozHook(call_623208, url, valid) -proc call*(call_623207: Call_PostGetTransitGatewayMulticastDomainAssociations_623189; +proc call*(call_623209: Call_PostGetTransitGatewayMulticastDomainAssociations_623191; NextToken: string = ""; DryRun: bool = false; Action: string = "GetTransitGatewayMulticastDomainAssociations"; TransitGatewayMulticastDomainId: string = ""; @@ -99019,29 +99046,29 @@ proc call*(call_623207: Call_PostGetTransitGatewayMulticastDomainAssociations_62 ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## Filter: JArray ## :

    One or more filters. The possible values are:

    - var query_623208 = newJObject() - var formData_623209 = newJObject() - add(formData_623209, "NextToken", newJString(NextToken)) - add(formData_623209, "DryRun", newJBool(DryRun)) - add(query_623208, "Action", newJString(Action)) - add(formData_623209, "TransitGatewayMulticastDomainId", + var query_623210 = newJObject() + var formData_623211 = newJObject() + add(formData_623211, "NextToken", newJString(NextToken)) + add(formData_623211, "DryRun", newJBool(DryRun)) + add(query_623210, "Action", newJString(Action)) + add(formData_623211, "TransitGatewayMulticastDomainId", newJString(TransitGatewayMulticastDomainId)) - add(query_623208, "Version", newJString(Version)) - add(formData_623209, "MaxResults", newJInt(MaxResults)) + add(query_623210, "Version", newJString(Version)) + add(formData_623211, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_623209.add "Filter", Filter - result = call_623207.call(nil, query_623208, nil, formData_623209, nil) + formData_623211.add "Filter", Filter + result = call_623209.call(nil, query_623210, nil, formData_623211, nil) -var postGetTransitGatewayMulticastDomainAssociations* = Call_PostGetTransitGatewayMulticastDomainAssociations_623189( +var postGetTransitGatewayMulticastDomainAssociations* = Call_PostGetTransitGatewayMulticastDomainAssociations_623191( name: "postGetTransitGatewayMulticastDomainAssociations", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=GetTransitGatewayMulticastDomainAssociations", - validator: validate_PostGetTransitGatewayMulticastDomainAssociations_623190, - base: "/", url: url_PostGetTransitGatewayMulticastDomainAssociations_623191, + validator: validate_PostGetTransitGatewayMulticastDomainAssociations_623192, + base: "/", url: url_PostGetTransitGatewayMulticastDomainAssociations_623193, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetGetTransitGatewayMulticastDomainAssociations_623169 = ref object of OpenApiRestCall_610658 -proc url_GetGetTransitGatewayMulticastDomainAssociations_623171(protocol: Scheme; + Call_GetGetTransitGatewayMulticastDomainAssociations_623171 = ref object of OpenApiRestCall_610658 +proc url_GetGetTransitGatewayMulticastDomainAssociations_623173(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -99051,7 +99078,7 @@ proc url_GetGetTransitGatewayMulticastDomainAssociations_623171(protocol: Scheme else: result.path = base & route -proc validate_GetGetTransitGatewayMulticastDomainAssociations_623170( +proc validate_GetGetTransitGatewayMulticastDomainAssociations_623172( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Gets information about the associations for the transit gateway multicast domain. @@ -99074,39 +99101,39 @@ proc validate_GetGetTransitGatewayMulticastDomainAssociations_623170( ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_623172 = query.getOrDefault("MaxResults") - valid_623172 = validateParameter(valid_623172, JInt, required = false, default = nil) - if valid_623172 != nil: - section.add "MaxResults", valid_623172 - var valid_623173 = query.getOrDefault("DryRun") - valid_623173 = validateParameter(valid_623173, JBool, required = false, default = nil) - if valid_623173 != nil: - section.add "DryRun", valid_623173 - var valid_623174 = query.getOrDefault("NextToken") - valid_623174 = validateParameter(valid_623174, JString, required = false, - default = nil) + var valid_623174 = query.getOrDefault("MaxResults") + valid_623174 = validateParameter(valid_623174, JInt, required = false, default = nil) if valid_623174 != nil: - section.add "NextToken", valid_623174 - var valid_623175 = query.getOrDefault("TransitGatewayMulticastDomainId") - valid_623175 = validateParameter(valid_623175, JString, required = false, - default = nil) + section.add "MaxResults", valid_623174 + var valid_623175 = query.getOrDefault("DryRun") + valid_623175 = validateParameter(valid_623175, JBool, required = false, default = nil) if valid_623175 != nil: - section.add "TransitGatewayMulticastDomainId", valid_623175 - var valid_623176 = query.getOrDefault("Filter") - valid_623176 = validateParameter(valid_623176, JArray, required = false, + section.add "DryRun", valid_623175 + var valid_623176 = query.getOrDefault("NextToken") + valid_623176 = validateParameter(valid_623176, JString, required = false, default = nil) if valid_623176 != nil: - section.add "Filter", valid_623176 - var valid_623177 = query.getOrDefault("Action") - valid_623177 = validateParameter(valid_623177, JString, required = true, default = newJString( - "GetTransitGatewayMulticastDomainAssociations")) + section.add "NextToken", valid_623176 + var valid_623177 = query.getOrDefault("TransitGatewayMulticastDomainId") + valid_623177 = validateParameter(valid_623177, JString, required = false, + default = nil) if valid_623177 != nil: - section.add "Action", valid_623177 - var valid_623178 = query.getOrDefault("Version") - valid_623178 = validateParameter(valid_623178, JString, required = true, - default = newJString("2016-11-15")) + section.add "TransitGatewayMulticastDomainId", valid_623177 + var valid_623178 = query.getOrDefault("Filter") + valid_623178 = validateParameter(valid_623178, JArray, required = false, + default = nil) if valid_623178 != nil: - section.add "Version", valid_623178 + section.add "Filter", valid_623178 + var valid_623179 = query.getOrDefault("Action") + valid_623179 = validateParameter(valid_623179, JString, required = true, default = newJString( + "GetTransitGatewayMulticastDomainAssociations")) + if valid_623179 != nil: + section.add "Action", valid_623179 + var valid_623180 = query.getOrDefault("Version") + valid_623180 = validateParameter(valid_623180, JString, required = true, + default = newJString("2016-11-15")) + if valid_623180 != nil: + section.add "Version", valid_623180 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -99117,62 +99144,62 @@ proc validate_GetGetTransitGatewayMulticastDomainAssociations_623170( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623179 = header.getOrDefault("X-Amz-Signature") - valid_623179 = validateParameter(valid_623179, JString, required = false, - default = nil) - if valid_623179 != nil: - section.add "X-Amz-Signature", valid_623179 - var valid_623180 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623180 = validateParameter(valid_623180, JString, required = false, - default = nil) - if valid_623180 != nil: - section.add "X-Amz-Content-Sha256", valid_623180 - var valid_623181 = header.getOrDefault("X-Amz-Date") + var valid_623181 = header.getOrDefault("X-Amz-Signature") valid_623181 = validateParameter(valid_623181, JString, required = false, default = nil) if valid_623181 != nil: - section.add "X-Amz-Date", valid_623181 - var valid_623182 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623181 + var valid_623182 = header.getOrDefault("X-Amz-Content-Sha256") valid_623182 = validateParameter(valid_623182, JString, required = false, default = nil) if valid_623182 != nil: - section.add "X-Amz-Credential", valid_623182 - var valid_623183 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623182 + var valid_623183 = header.getOrDefault("X-Amz-Date") valid_623183 = validateParameter(valid_623183, JString, required = false, default = nil) if valid_623183 != nil: - section.add "X-Amz-Security-Token", valid_623183 - var valid_623184 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623183 + var valid_623184 = header.getOrDefault("X-Amz-Credential") valid_623184 = validateParameter(valid_623184, JString, required = false, default = nil) if valid_623184 != nil: - section.add "X-Amz-Algorithm", valid_623184 - var valid_623185 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623184 + var valid_623185 = header.getOrDefault("X-Amz-Security-Token") valid_623185 = validateParameter(valid_623185, JString, required = false, default = nil) if valid_623185 != nil: - section.add "X-Amz-SignedHeaders", valid_623185 + section.add "X-Amz-Security-Token", valid_623185 + var valid_623186 = header.getOrDefault("X-Amz-Algorithm") + valid_623186 = validateParameter(valid_623186, JString, required = false, + default = nil) + if valid_623186 != nil: + section.add "X-Amz-Algorithm", valid_623186 + var valid_623187 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623187 = validateParameter(valid_623187, JString, required = false, + default = nil) + if valid_623187 != nil: + section.add "X-Amz-SignedHeaders", valid_623187 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623186: Call_GetGetTransitGatewayMulticastDomainAssociations_623169; +proc call*(call_623188: Call_GetGetTransitGatewayMulticastDomainAssociations_623171; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Gets information about the associations for the transit gateway multicast domain. ## - let valid = call_623186.validator(path, query, header, formData, body) - let scheme = call_623186.pickScheme + let valid = call_623188.validator(path, query, header, formData, body) + let scheme = call_623188.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623186.url(scheme.get, call_623186.host, call_623186.base, - call_623186.route, valid.getOrDefault("path"), + let url = call_623188.url(scheme.get, call_623188.host, call_623188.base, + call_623188.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623186, url, valid) + result = atozHook(call_623188, url, valid) -proc call*(call_623187: Call_GetGetTransitGatewayMulticastDomainAssociations_623169; +proc call*(call_623189: Call_GetGetTransitGatewayMulticastDomainAssociations_623171; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; TransitGatewayMulticastDomainId: string = ""; Filter: JsonNode = nil; Action: string = "GetTransitGatewayMulticastDomainAssociations"; @@ -99191,28 +99218,28 @@ proc call*(call_623187: Call_GetGetTransitGatewayMulticastDomainAssociations_623 ## :

    One or more filters. The possible values are:

    ## Action: string (required) ## Version: string (required) - var query_623188 = newJObject() - add(query_623188, "MaxResults", newJInt(MaxResults)) - add(query_623188, "DryRun", newJBool(DryRun)) - add(query_623188, "NextToken", newJString(NextToken)) - add(query_623188, "TransitGatewayMulticastDomainId", + var query_623190 = newJObject() + add(query_623190, "MaxResults", newJInt(MaxResults)) + add(query_623190, "DryRun", newJBool(DryRun)) + add(query_623190, "NextToken", newJString(NextToken)) + add(query_623190, "TransitGatewayMulticastDomainId", newJString(TransitGatewayMulticastDomainId)) if Filter != nil: - query_623188.add "Filter", Filter - add(query_623188, "Action", newJString(Action)) - add(query_623188, "Version", newJString(Version)) - result = call_623187.call(nil, query_623188, nil, nil, nil) + query_623190.add "Filter", Filter + add(query_623190, "Action", newJString(Action)) + add(query_623190, "Version", newJString(Version)) + result = call_623189.call(nil, query_623190, nil, nil, nil) -var getGetTransitGatewayMulticastDomainAssociations* = Call_GetGetTransitGatewayMulticastDomainAssociations_623169( +var getGetTransitGatewayMulticastDomainAssociations* = Call_GetGetTransitGatewayMulticastDomainAssociations_623171( name: "getGetTransitGatewayMulticastDomainAssociations", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=GetTransitGatewayMulticastDomainAssociations", - validator: validate_GetGetTransitGatewayMulticastDomainAssociations_623170, - base: "/", url: url_GetGetTransitGatewayMulticastDomainAssociations_623171, + validator: validate_GetGetTransitGatewayMulticastDomainAssociations_623172, + base: "/", url: url_GetGetTransitGatewayMulticastDomainAssociations_623173, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostGetTransitGatewayRouteTableAssociations_623230 = ref object of OpenApiRestCall_610658 -proc url_PostGetTransitGatewayRouteTableAssociations_623232(protocol: Scheme; + Call_PostGetTransitGatewayRouteTableAssociations_623232 = ref object of OpenApiRestCall_610658 +proc url_PostGetTransitGatewayRouteTableAssociations_623234(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -99222,7 +99249,7 @@ proc url_PostGetTransitGatewayRouteTableAssociations_623232(protocol: Scheme; else: result.path = base & route -proc validate_PostGetTransitGatewayRouteTableAssociations_623231(path: JsonNode; +proc validate_PostGetTransitGatewayRouteTableAssociations_623233(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Gets information about the associations for the specified transit gateway route table. ## @@ -99234,16 +99261,16 @@ proc validate_PostGetTransitGatewayRouteTableAssociations_623231(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_623233 = query.getOrDefault("Action") - valid_623233 = validateParameter(valid_623233, JString, required = true, default = newJString( + var valid_623235 = query.getOrDefault("Action") + valid_623235 = validateParameter(valid_623235, JString, required = true, default = newJString( "GetTransitGatewayRouteTableAssociations")) - if valid_623233 != nil: - section.add "Action", valid_623233 - var valid_623234 = query.getOrDefault("Version") - valid_623234 = validateParameter(valid_623234, JString, required = true, + if valid_623235 != nil: + section.add "Action", valid_623235 + var valid_623236 = query.getOrDefault("Version") + valid_623236 = validateParameter(valid_623236, JString, required = true, default = newJString("2016-11-15")) - if valid_623234 != nil: - section.add "Version", valid_623234 + if valid_623236 != nil: + section.add "Version", valid_623236 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -99254,41 +99281,41 @@ proc validate_PostGetTransitGatewayRouteTableAssociations_623231(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623235 = header.getOrDefault("X-Amz-Signature") - valid_623235 = validateParameter(valid_623235, JString, required = false, - default = nil) - if valid_623235 != nil: - section.add "X-Amz-Signature", valid_623235 - var valid_623236 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623236 = validateParameter(valid_623236, JString, required = false, - default = nil) - if valid_623236 != nil: - section.add "X-Amz-Content-Sha256", valid_623236 - var valid_623237 = header.getOrDefault("X-Amz-Date") + var valid_623237 = header.getOrDefault("X-Amz-Signature") valid_623237 = validateParameter(valid_623237, JString, required = false, default = nil) if valid_623237 != nil: - section.add "X-Amz-Date", valid_623237 - var valid_623238 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623237 + var valid_623238 = header.getOrDefault("X-Amz-Content-Sha256") valid_623238 = validateParameter(valid_623238, JString, required = false, default = nil) if valid_623238 != nil: - section.add "X-Amz-Credential", valid_623238 - var valid_623239 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623238 + var valid_623239 = header.getOrDefault("X-Amz-Date") valid_623239 = validateParameter(valid_623239, JString, required = false, default = nil) if valid_623239 != nil: - section.add "X-Amz-Security-Token", valid_623239 - var valid_623240 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623239 + var valid_623240 = header.getOrDefault("X-Amz-Credential") valid_623240 = validateParameter(valid_623240, JString, required = false, default = nil) if valid_623240 != nil: - section.add "X-Amz-Algorithm", valid_623240 - var valid_623241 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623240 + var valid_623241 = header.getOrDefault("X-Amz-Security-Token") valid_623241 = validateParameter(valid_623241, JString, required = false, default = nil) if valid_623241 != nil: - section.add "X-Amz-SignedHeaders", valid_623241 + section.add "X-Amz-Security-Token", valid_623241 + var valid_623242 = header.getOrDefault("X-Amz-Algorithm") + valid_623242 = validateParameter(valid_623242, JString, required = false, + default = nil) + if valid_623242 != nil: + section.add "X-Amz-Algorithm", valid_623242 + var valid_623243 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623243 = validateParameter(valid_623243, JString, required = false, + default = nil) + if valid_623243 != nil: + section.add "X-Amz-SignedHeaders", valid_623243 result.add "header", section ## parameters in `formData` object: ## TransitGatewayRouteTableId: JString (required) @@ -99303,48 +99330,48 @@ proc validate_PostGetTransitGatewayRouteTableAssociations_623231(path: JsonNode; ## :

    One or more filters. The possible values are:

    section = newJObject() assert formData != nil, "formData argument is necessary due to required `TransitGatewayRouteTableId` field" - var valid_623242 = formData.getOrDefault("TransitGatewayRouteTableId") - valid_623242 = validateParameter(valid_623242, JString, required = true, - default = nil) - if valid_623242 != nil: - section.add "TransitGatewayRouteTableId", valid_623242 - var valid_623243 = formData.getOrDefault("NextToken") - valid_623243 = validateParameter(valid_623243, JString, required = false, + var valid_623244 = formData.getOrDefault("TransitGatewayRouteTableId") + valid_623244 = validateParameter(valid_623244, JString, required = true, default = nil) - if valid_623243 != nil: - section.add "NextToken", valid_623243 - var valid_623244 = formData.getOrDefault("DryRun") - valid_623244 = validateParameter(valid_623244, JBool, required = false, default = nil) if valid_623244 != nil: - section.add "DryRun", valid_623244 - var valid_623245 = formData.getOrDefault("MaxResults") - valid_623245 = validateParameter(valid_623245, JInt, required = false, default = nil) - if valid_623245 != nil: - section.add "MaxResults", valid_623245 - var valid_623246 = formData.getOrDefault("Filter") - valid_623246 = validateParameter(valid_623246, JArray, required = false, + section.add "TransitGatewayRouteTableId", valid_623244 + var valid_623245 = formData.getOrDefault("NextToken") + valid_623245 = validateParameter(valid_623245, JString, required = false, default = nil) + if valid_623245 != nil: + section.add "NextToken", valid_623245 + var valid_623246 = formData.getOrDefault("DryRun") + valid_623246 = validateParameter(valid_623246, JBool, required = false, default = nil) if valid_623246 != nil: - section.add "Filter", valid_623246 + section.add "DryRun", valid_623246 + var valid_623247 = formData.getOrDefault("MaxResults") + valid_623247 = validateParameter(valid_623247, JInt, required = false, default = nil) + if valid_623247 != nil: + section.add "MaxResults", valid_623247 + var valid_623248 = formData.getOrDefault("Filter") + valid_623248 = validateParameter(valid_623248, JArray, required = false, + default = nil) + if valid_623248 != nil: + section.add "Filter", valid_623248 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623247: Call_PostGetTransitGatewayRouteTableAssociations_623230; +proc call*(call_623249: Call_PostGetTransitGatewayRouteTableAssociations_623232; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Gets information about the associations for the specified transit gateway route table. ## - let valid = call_623247.validator(path, query, header, formData, body) - let scheme = call_623247.pickScheme + let valid = call_623249.validator(path, query, header, formData, body) + let scheme = call_623249.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623247.url(scheme.get, call_623247.host, call_623247.base, - call_623247.route, valid.getOrDefault("path"), + let url = call_623249.url(scheme.get, call_623249.host, call_623249.base, + call_623249.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623247, url, valid) + result = atozHook(call_623249, url, valid) -proc call*(call_623248: Call_PostGetTransitGatewayRouteTableAssociations_623230; +proc call*(call_623250: Call_PostGetTransitGatewayRouteTableAssociations_623232; TransitGatewayRouteTableId: string; NextToken: string = ""; DryRun: bool = false; Action: string = "GetTransitGatewayRouteTableAssociations"; @@ -99363,29 +99390,29 @@ proc call*(call_623248: Call_PostGetTransitGatewayRouteTableAssociations_623230; ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## Filter: JArray ## :

    One or more filters. The possible values are:

    - var query_623249 = newJObject() - var formData_623250 = newJObject() - add(formData_623250, "TransitGatewayRouteTableId", + var query_623251 = newJObject() + var formData_623252 = newJObject() + add(formData_623252, "TransitGatewayRouteTableId", newJString(TransitGatewayRouteTableId)) - add(formData_623250, "NextToken", newJString(NextToken)) - add(formData_623250, "DryRun", newJBool(DryRun)) - add(query_623249, "Action", newJString(Action)) - add(query_623249, "Version", newJString(Version)) - add(formData_623250, "MaxResults", newJInt(MaxResults)) + add(formData_623252, "NextToken", newJString(NextToken)) + add(formData_623252, "DryRun", newJBool(DryRun)) + add(query_623251, "Action", newJString(Action)) + add(query_623251, "Version", newJString(Version)) + add(formData_623252, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_623250.add "Filter", Filter - result = call_623248.call(nil, query_623249, nil, formData_623250, nil) + formData_623252.add "Filter", Filter + result = call_623250.call(nil, query_623251, nil, formData_623252, nil) -var postGetTransitGatewayRouteTableAssociations* = Call_PostGetTransitGatewayRouteTableAssociations_623230( +var postGetTransitGatewayRouteTableAssociations* = Call_PostGetTransitGatewayRouteTableAssociations_623232( name: "postGetTransitGatewayRouteTableAssociations", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=GetTransitGatewayRouteTableAssociations", - validator: validate_PostGetTransitGatewayRouteTableAssociations_623231, - base: "/", url: url_PostGetTransitGatewayRouteTableAssociations_623232, + validator: validate_PostGetTransitGatewayRouteTableAssociations_623233, + base: "/", url: url_PostGetTransitGatewayRouteTableAssociations_623234, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetGetTransitGatewayRouteTableAssociations_623210 = ref object of OpenApiRestCall_610658 -proc url_GetGetTransitGatewayRouteTableAssociations_623212(protocol: Scheme; + Call_GetGetTransitGatewayRouteTableAssociations_623212 = ref object of OpenApiRestCall_610658 +proc url_GetGetTransitGatewayRouteTableAssociations_623214(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -99395,7 +99422,7 @@ proc url_GetGetTransitGatewayRouteTableAssociations_623212(protocol: Scheme; else: result.path = base & route -proc validate_GetGetTransitGatewayRouteTableAssociations_623211(path: JsonNode; +proc validate_GetGetTransitGatewayRouteTableAssociations_623213(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Gets information about the associations for the specified transit gateway route table. ## @@ -99417,40 +99444,40 @@ proc validate_GetGetTransitGatewayRouteTableAssociations_623211(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_623213 = query.getOrDefault("MaxResults") - valid_623213 = validateParameter(valid_623213, JInt, required = false, default = nil) - if valid_623213 != nil: - section.add "MaxResults", valid_623213 - var valid_623214 = query.getOrDefault("DryRun") - valid_623214 = validateParameter(valid_623214, JBool, required = false, default = nil) - if valid_623214 != nil: - section.add "DryRun", valid_623214 - assert query != nil, "query argument is necessary due to required `TransitGatewayRouteTableId` field" - var valid_623215 = query.getOrDefault("TransitGatewayRouteTableId") - valid_623215 = validateParameter(valid_623215, JString, required = true, - default = nil) + var valid_623215 = query.getOrDefault("MaxResults") + valid_623215 = validateParameter(valid_623215, JInt, required = false, default = nil) if valid_623215 != nil: - section.add "TransitGatewayRouteTableId", valid_623215 - var valid_623216 = query.getOrDefault("NextToken") - valid_623216 = validateParameter(valid_623216, JString, required = false, - default = nil) + section.add "MaxResults", valid_623215 + var valid_623216 = query.getOrDefault("DryRun") + valid_623216 = validateParameter(valid_623216, JBool, required = false, default = nil) if valid_623216 != nil: - section.add "NextToken", valid_623216 - var valid_623217 = query.getOrDefault("Filter") - valid_623217 = validateParameter(valid_623217, JArray, required = false, + section.add "DryRun", valid_623216 + assert query != nil, "query argument is necessary due to required `TransitGatewayRouteTableId` field" + var valid_623217 = query.getOrDefault("TransitGatewayRouteTableId") + valid_623217 = validateParameter(valid_623217, JString, required = true, default = nil) if valid_623217 != nil: - section.add "Filter", valid_623217 - var valid_623218 = query.getOrDefault("Action") - valid_623218 = validateParameter(valid_623218, JString, required = true, default = newJString( - "GetTransitGatewayRouteTableAssociations")) + section.add "TransitGatewayRouteTableId", valid_623217 + var valid_623218 = query.getOrDefault("NextToken") + valid_623218 = validateParameter(valid_623218, JString, required = false, + default = nil) if valid_623218 != nil: - section.add "Action", valid_623218 - var valid_623219 = query.getOrDefault("Version") - valid_623219 = validateParameter(valid_623219, JString, required = true, - default = newJString("2016-11-15")) + section.add "NextToken", valid_623218 + var valid_623219 = query.getOrDefault("Filter") + valid_623219 = validateParameter(valid_623219, JArray, required = false, + default = nil) if valid_623219 != nil: - section.add "Version", valid_623219 + section.add "Filter", valid_623219 + var valid_623220 = query.getOrDefault("Action") + valid_623220 = validateParameter(valid_623220, JString, required = true, default = newJString( + "GetTransitGatewayRouteTableAssociations")) + if valid_623220 != nil: + section.add "Action", valid_623220 + var valid_623221 = query.getOrDefault("Version") + valid_623221 = validateParameter(valid_623221, JString, required = true, + default = newJString("2016-11-15")) + if valid_623221 != nil: + section.add "Version", valid_623221 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -99461,62 +99488,62 @@ proc validate_GetGetTransitGatewayRouteTableAssociations_623211(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623220 = header.getOrDefault("X-Amz-Signature") - valid_623220 = validateParameter(valid_623220, JString, required = false, - default = nil) - if valid_623220 != nil: - section.add "X-Amz-Signature", valid_623220 - var valid_623221 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623221 = validateParameter(valid_623221, JString, required = false, - default = nil) - if valid_623221 != nil: - section.add "X-Amz-Content-Sha256", valid_623221 - var valid_623222 = header.getOrDefault("X-Amz-Date") + var valid_623222 = header.getOrDefault("X-Amz-Signature") valid_623222 = validateParameter(valid_623222, JString, required = false, default = nil) if valid_623222 != nil: - section.add "X-Amz-Date", valid_623222 - var valid_623223 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623222 + var valid_623223 = header.getOrDefault("X-Amz-Content-Sha256") valid_623223 = validateParameter(valid_623223, JString, required = false, default = nil) if valid_623223 != nil: - section.add "X-Amz-Credential", valid_623223 - var valid_623224 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623223 + var valid_623224 = header.getOrDefault("X-Amz-Date") valid_623224 = validateParameter(valid_623224, JString, required = false, default = nil) if valid_623224 != nil: - section.add "X-Amz-Security-Token", valid_623224 - var valid_623225 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623224 + var valid_623225 = header.getOrDefault("X-Amz-Credential") valid_623225 = validateParameter(valid_623225, JString, required = false, default = nil) if valid_623225 != nil: - section.add "X-Amz-Algorithm", valid_623225 - var valid_623226 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623225 + var valid_623226 = header.getOrDefault("X-Amz-Security-Token") valid_623226 = validateParameter(valid_623226, JString, required = false, default = nil) if valid_623226 != nil: - section.add "X-Amz-SignedHeaders", valid_623226 + section.add "X-Amz-Security-Token", valid_623226 + var valid_623227 = header.getOrDefault("X-Amz-Algorithm") + valid_623227 = validateParameter(valid_623227, JString, required = false, + default = nil) + if valid_623227 != nil: + section.add "X-Amz-Algorithm", valid_623227 + var valid_623228 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623228 = validateParameter(valid_623228, JString, required = false, + default = nil) + if valid_623228 != nil: + section.add "X-Amz-SignedHeaders", valid_623228 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623227: Call_GetGetTransitGatewayRouteTableAssociations_623210; +proc call*(call_623229: Call_GetGetTransitGatewayRouteTableAssociations_623212; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Gets information about the associations for the specified transit gateway route table. ## - let valid = call_623227.validator(path, query, header, formData, body) - let scheme = call_623227.pickScheme + let valid = call_623229.validator(path, query, header, formData, body) + let scheme = call_623229.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623227.url(scheme.get, call_623227.host, call_623227.base, - call_623227.route, valid.getOrDefault("path"), + let url = call_623229.url(scheme.get, call_623229.host, call_623229.base, + call_623229.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623227, url, valid) + result = atozHook(call_623229, url, valid) -proc call*(call_623228: Call_GetGetTransitGatewayRouteTableAssociations_623210; +proc call*(call_623230: Call_GetGetTransitGatewayRouteTableAssociations_623212; TransitGatewayRouteTableId: string; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "GetTransitGatewayRouteTableAssociations"; @@ -99535,28 +99562,28 @@ proc call*(call_623228: Call_GetGetTransitGatewayRouteTableAssociations_623210; ## :

    One or more filters. The possible values are:

    ## Action: string (required) ## Version: string (required) - var query_623229 = newJObject() - add(query_623229, "MaxResults", newJInt(MaxResults)) - add(query_623229, "DryRun", newJBool(DryRun)) - add(query_623229, "TransitGatewayRouteTableId", + var query_623231 = newJObject() + add(query_623231, "MaxResults", newJInt(MaxResults)) + add(query_623231, "DryRun", newJBool(DryRun)) + add(query_623231, "TransitGatewayRouteTableId", newJString(TransitGatewayRouteTableId)) - add(query_623229, "NextToken", newJString(NextToken)) + add(query_623231, "NextToken", newJString(NextToken)) if Filter != nil: - query_623229.add "Filter", Filter - add(query_623229, "Action", newJString(Action)) - add(query_623229, "Version", newJString(Version)) - result = call_623228.call(nil, query_623229, nil, nil, nil) + query_623231.add "Filter", Filter + add(query_623231, "Action", newJString(Action)) + add(query_623231, "Version", newJString(Version)) + result = call_623230.call(nil, query_623231, nil, nil, nil) -var getGetTransitGatewayRouteTableAssociations* = Call_GetGetTransitGatewayRouteTableAssociations_623210( +var getGetTransitGatewayRouteTableAssociations* = Call_GetGetTransitGatewayRouteTableAssociations_623212( name: "getGetTransitGatewayRouteTableAssociations", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=GetTransitGatewayRouteTableAssociations", - validator: validate_GetGetTransitGatewayRouteTableAssociations_623211, - base: "/", url: url_GetGetTransitGatewayRouteTableAssociations_623212, + validator: validate_GetGetTransitGatewayRouteTableAssociations_623213, + base: "/", url: url_GetGetTransitGatewayRouteTableAssociations_623214, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostGetTransitGatewayRouteTablePropagations_623271 = ref object of OpenApiRestCall_610658 -proc url_PostGetTransitGatewayRouteTablePropagations_623273(protocol: Scheme; + Call_PostGetTransitGatewayRouteTablePropagations_623273 = ref object of OpenApiRestCall_610658 +proc url_PostGetTransitGatewayRouteTablePropagations_623275(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -99566,7 +99593,7 @@ proc url_PostGetTransitGatewayRouteTablePropagations_623273(protocol: Scheme; else: result.path = base & route -proc validate_PostGetTransitGatewayRouteTablePropagations_623272(path: JsonNode; +proc validate_PostGetTransitGatewayRouteTablePropagations_623274(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Gets information about the route table propagations for the specified transit gateway route table. ## @@ -99578,16 +99605,16 @@ proc validate_PostGetTransitGatewayRouteTablePropagations_623272(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_623274 = query.getOrDefault("Action") - valid_623274 = validateParameter(valid_623274, JString, required = true, default = newJString( + var valid_623276 = query.getOrDefault("Action") + valid_623276 = validateParameter(valid_623276, JString, required = true, default = newJString( "GetTransitGatewayRouteTablePropagations")) - if valid_623274 != nil: - section.add "Action", valid_623274 - var valid_623275 = query.getOrDefault("Version") - valid_623275 = validateParameter(valid_623275, JString, required = true, + if valid_623276 != nil: + section.add "Action", valid_623276 + var valid_623277 = query.getOrDefault("Version") + valid_623277 = validateParameter(valid_623277, JString, required = true, default = newJString("2016-11-15")) - if valid_623275 != nil: - section.add "Version", valid_623275 + if valid_623277 != nil: + section.add "Version", valid_623277 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -99598,41 +99625,41 @@ proc validate_PostGetTransitGatewayRouteTablePropagations_623272(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623276 = header.getOrDefault("X-Amz-Signature") - valid_623276 = validateParameter(valid_623276, JString, required = false, - default = nil) - if valid_623276 != nil: - section.add "X-Amz-Signature", valid_623276 - var valid_623277 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623277 = validateParameter(valid_623277, JString, required = false, - default = nil) - if valid_623277 != nil: - section.add "X-Amz-Content-Sha256", valid_623277 - var valid_623278 = header.getOrDefault("X-Amz-Date") + var valid_623278 = header.getOrDefault("X-Amz-Signature") valid_623278 = validateParameter(valid_623278, JString, required = false, default = nil) if valid_623278 != nil: - section.add "X-Amz-Date", valid_623278 - var valid_623279 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623278 + var valid_623279 = header.getOrDefault("X-Amz-Content-Sha256") valid_623279 = validateParameter(valid_623279, JString, required = false, default = nil) if valid_623279 != nil: - section.add "X-Amz-Credential", valid_623279 - var valid_623280 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623279 + var valid_623280 = header.getOrDefault("X-Amz-Date") valid_623280 = validateParameter(valid_623280, JString, required = false, default = nil) if valid_623280 != nil: - section.add "X-Amz-Security-Token", valid_623280 - var valid_623281 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623280 + var valid_623281 = header.getOrDefault("X-Amz-Credential") valid_623281 = validateParameter(valid_623281, JString, required = false, default = nil) if valid_623281 != nil: - section.add "X-Amz-Algorithm", valid_623281 - var valid_623282 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623281 + var valid_623282 = header.getOrDefault("X-Amz-Security-Token") valid_623282 = validateParameter(valid_623282, JString, required = false, default = nil) if valid_623282 != nil: - section.add "X-Amz-SignedHeaders", valid_623282 + section.add "X-Amz-Security-Token", valid_623282 + var valid_623283 = header.getOrDefault("X-Amz-Algorithm") + valid_623283 = validateParameter(valid_623283, JString, required = false, + default = nil) + if valid_623283 != nil: + section.add "X-Amz-Algorithm", valid_623283 + var valid_623284 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623284 = validateParameter(valid_623284, JString, required = false, + default = nil) + if valid_623284 != nil: + section.add "X-Amz-SignedHeaders", valid_623284 result.add "header", section ## parameters in `formData` object: ## TransitGatewayRouteTableId: JString (required) @@ -99647,48 +99674,48 @@ proc validate_PostGetTransitGatewayRouteTablePropagations_623272(path: JsonNode; ## :

    One or more filters. The possible values are:

    section = newJObject() assert formData != nil, "formData argument is necessary due to required `TransitGatewayRouteTableId` field" - var valid_623283 = formData.getOrDefault("TransitGatewayRouteTableId") - valid_623283 = validateParameter(valid_623283, JString, required = true, + var valid_623285 = formData.getOrDefault("TransitGatewayRouteTableId") + valid_623285 = validateParameter(valid_623285, JString, required = true, default = nil) - if valid_623283 != nil: - section.add "TransitGatewayRouteTableId", valid_623283 - var valid_623284 = formData.getOrDefault("NextToken") - valid_623284 = validateParameter(valid_623284, JString, required = false, - default = nil) - if valid_623284 != nil: - section.add "NextToken", valid_623284 - var valid_623285 = formData.getOrDefault("DryRun") - valid_623285 = validateParameter(valid_623285, JBool, required = false, default = nil) if valid_623285 != nil: - section.add "DryRun", valid_623285 - var valid_623286 = formData.getOrDefault("MaxResults") - valid_623286 = validateParameter(valid_623286, JInt, required = false, default = nil) - if valid_623286 != nil: - section.add "MaxResults", valid_623286 - var valid_623287 = formData.getOrDefault("Filter") - valid_623287 = validateParameter(valid_623287, JArray, required = false, + section.add "TransitGatewayRouteTableId", valid_623285 + var valid_623286 = formData.getOrDefault("NextToken") + valid_623286 = validateParameter(valid_623286, JString, required = false, default = nil) + if valid_623286 != nil: + section.add "NextToken", valid_623286 + var valid_623287 = formData.getOrDefault("DryRun") + valid_623287 = validateParameter(valid_623287, JBool, required = false, default = nil) if valid_623287 != nil: - section.add "Filter", valid_623287 + section.add "DryRun", valid_623287 + var valid_623288 = formData.getOrDefault("MaxResults") + valid_623288 = validateParameter(valid_623288, JInt, required = false, default = nil) + if valid_623288 != nil: + section.add "MaxResults", valid_623288 + var valid_623289 = formData.getOrDefault("Filter") + valid_623289 = validateParameter(valid_623289, JArray, required = false, + default = nil) + if valid_623289 != nil: + section.add "Filter", valid_623289 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623288: Call_PostGetTransitGatewayRouteTablePropagations_623271; +proc call*(call_623290: Call_PostGetTransitGatewayRouteTablePropagations_623273; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Gets information about the route table propagations for the specified transit gateway route table. ## - let valid = call_623288.validator(path, query, header, formData, body) - let scheme = call_623288.pickScheme + let valid = call_623290.validator(path, query, header, formData, body) + let scheme = call_623290.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623288.url(scheme.get, call_623288.host, call_623288.base, - call_623288.route, valid.getOrDefault("path"), + let url = call_623290.url(scheme.get, call_623290.host, call_623290.base, + call_623290.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623288, url, valid) + result = atozHook(call_623290, url, valid) -proc call*(call_623289: Call_PostGetTransitGatewayRouteTablePropagations_623271; +proc call*(call_623291: Call_PostGetTransitGatewayRouteTablePropagations_623273; TransitGatewayRouteTableId: string; NextToken: string = ""; DryRun: bool = false; Action: string = "GetTransitGatewayRouteTablePropagations"; @@ -99707,29 +99734,29 @@ proc call*(call_623289: Call_PostGetTransitGatewayRouteTablePropagations_623271; ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## Filter: JArray ## :

    One or more filters. The possible values are:

    - var query_623290 = newJObject() - var formData_623291 = newJObject() - add(formData_623291, "TransitGatewayRouteTableId", + var query_623292 = newJObject() + var formData_623293 = newJObject() + add(formData_623293, "TransitGatewayRouteTableId", newJString(TransitGatewayRouteTableId)) - add(formData_623291, "NextToken", newJString(NextToken)) - add(formData_623291, "DryRun", newJBool(DryRun)) - add(query_623290, "Action", newJString(Action)) - add(query_623290, "Version", newJString(Version)) - add(formData_623291, "MaxResults", newJInt(MaxResults)) + add(formData_623293, "NextToken", newJString(NextToken)) + add(formData_623293, "DryRun", newJBool(DryRun)) + add(query_623292, "Action", newJString(Action)) + add(query_623292, "Version", newJString(Version)) + add(formData_623293, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_623291.add "Filter", Filter - result = call_623289.call(nil, query_623290, nil, formData_623291, nil) + formData_623293.add "Filter", Filter + result = call_623291.call(nil, query_623292, nil, formData_623293, nil) -var postGetTransitGatewayRouteTablePropagations* = Call_PostGetTransitGatewayRouteTablePropagations_623271( +var postGetTransitGatewayRouteTablePropagations* = Call_PostGetTransitGatewayRouteTablePropagations_623273( name: "postGetTransitGatewayRouteTablePropagations", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=GetTransitGatewayRouteTablePropagations", - validator: validate_PostGetTransitGatewayRouteTablePropagations_623272, - base: "/", url: url_PostGetTransitGatewayRouteTablePropagations_623273, + validator: validate_PostGetTransitGatewayRouteTablePropagations_623274, + base: "/", url: url_PostGetTransitGatewayRouteTablePropagations_623275, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetGetTransitGatewayRouteTablePropagations_623251 = ref object of OpenApiRestCall_610658 -proc url_GetGetTransitGatewayRouteTablePropagations_623253(protocol: Scheme; + Call_GetGetTransitGatewayRouteTablePropagations_623253 = ref object of OpenApiRestCall_610658 +proc url_GetGetTransitGatewayRouteTablePropagations_623255(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -99739,7 +99766,7 @@ proc url_GetGetTransitGatewayRouteTablePropagations_623253(protocol: Scheme; else: result.path = base & route -proc validate_GetGetTransitGatewayRouteTablePropagations_623252(path: JsonNode; +proc validate_GetGetTransitGatewayRouteTablePropagations_623254(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Gets information about the route table propagations for the specified transit gateway route table. ## @@ -99761,40 +99788,40 @@ proc validate_GetGetTransitGatewayRouteTablePropagations_623252(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_623254 = query.getOrDefault("MaxResults") - valid_623254 = validateParameter(valid_623254, JInt, required = false, default = nil) - if valid_623254 != nil: - section.add "MaxResults", valid_623254 - var valid_623255 = query.getOrDefault("DryRun") - valid_623255 = validateParameter(valid_623255, JBool, required = false, default = nil) - if valid_623255 != nil: - section.add "DryRun", valid_623255 - assert query != nil, "query argument is necessary due to required `TransitGatewayRouteTableId` field" - var valid_623256 = query.getOrDefault("TransitGatewayRouteTableId") - valid_623256 = validateParameter(valid_623256, JString, required = true, - default = nil) + var valid_623256 = query.getOrDefault("MaxResults") + valid_623256 = validateParameter(valid_623256, JInt, required = false, default = nil) if valid_623256 != nil: - section.add "TransitGatewayRouteTableId", valid_623256 - var valid_623257 = query.getOrDefault("NextToken") - valid_623257 = validateParameter(valid_623257, JString, required = false, - default = nil) + section.add "MaxResults", valid_623256 + var valid_623257 = query.getOrDefault("DryRun") + valid_623257 = validateParameter(valid_623257, JBool, required = false, default = nil) if valid_623257 != nil: - section.add "NextToken", valid_623257 - var valid_623258 = query.getOrDefault("Filter") - valid_623258 = validateParameter(valid_623258, JArray, required = false, + section.add "DryRun", valid_623257 + assert query != nil, "query argument is necessary due to required `TransitGatewayRouteTableId` field" + var valid_623258 = query.getOrDefault("TransitGatewayRouteTableId") + valid_623258 = validateParameter(valid_623258, JString, required = true, default = nil) if valid_623258 != nil: - section.add "Filter", valid_623258 - var valid_623259 = query.getOrDefault("Action") - valid_623259 = validateParameter(valid_623259, JString, required = true, default = newJString( - "GetTransitGatewayRouteTablePropagations")) + section.add "TransitGatewayRouteTableId", valid_623258 + var valid_623259 = query.getOrDefault("NextToken") + valid_623259 = validateParameter(valid_623259, JString, required = false, + default = nil) if valid_623259 != nil: - section.add "Action", valid_623259 - var valid_623260 = query.getOrDefault("Version") - valid_623260 = validateParameter(valid_623260, JString, required = true, - default = newJString("2016-11-15")) + section.add "NextToken", valid_623259 + var valid_623260 = query.getOrDefault("Filter") + valid_623260 = validateParameter(valid_623260, JArray, required = false, + default = nil) if valid_623260 != nil: - section.add "Version", valid_623260 + section.add "Filter", valid_623260 + var valid_623261 = query.getOrDefault("Action") + valid_623261 = validateParameter(valid_623261, JString, required = true, default = newJString( + "GetTransitGatewayRouteTablePropagations")) + if valid_623261 != nil: + section.add "Action", valid_623261 + var valid_623262 = query.getOrDefault("Version") + valid_623262 = validateParameter(valid_623262, JString, required = true, + default = newJString("2016-11-15")) + if valid_623262 != nil: + section.add "Version", valid_623262 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -99805,62 +99832,62 @@ proc validate_GetGetTransitGatewayRouteTablePropagations_623252(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623261 = header.getOrDefault("X-Amz-Signature") - valid_623261 = validateParameter(valid_623261, JString, required = false, - default = nil) - if valid_623261 != nil: - section.add "X-Amz-Signature", valid_623261 - var valid_623262 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623262 = validateParameter(valid_623262, JString, required = false, - default = nil) - if valid_623262 != nil: - section.add "X-Amz-Content-Sha256", valid_623262 - var valid_623263 = header.getOrDefault("X-Amz-Date") + var valid_623263 = header.getOrDefault("X-Amz-Signature") valid_623263 = validateParameter(valid_623263, JString, required = false, default = nil) if valid_623263 != nil: - section.add "X-Amz-Date", valid_623263 - var valid_623264 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623263 + var valid_623264 = header.getOrDefault("X-Amz-Content-Sha256") valid_623264 = validateParameter(valid_623264, JString, required = false, default = nil) if valid_623264 != nil: - section.add "X-Amz-Credential", valid_623264 - var valid_623265 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623264 + var valid_623265 = header.getOrDefault("X-Amz-Date") valid_623265 = validateParameter(valid_623265, JString, required = false, default = nil) if valid_623265 != nil: - section.add "X-Amz-Security-Token", valid_623265 - var valid_623266 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623265 + var valid_623266 = header.getOrDefault("X-Amz-Credential") valid_623266 = validateParameter(valid_623266, JString, required = false, default = nil) if valid_623266 != nil: - section.add "X-Amz-Algorithm", valid_623266 - var valid_623267 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623266 + var valid_623267 = header.getOrDefault("X-Amz-Security-Token") valid_623267 = validateParameter(valid_623267, JString, required = false, default = nil) if valid_623267 != nil: - section.add "X-Amz-SignedHeaders", valid_623267 + section.add "X-Amz-Security-Token", valid_623267 + var valid_623268 = header.getOrDefault("X-Amz-Algorithm") + valid_623268 = validateParameter(valid_623268, JString, required = false, + default = nil) + if valid_623268 != nil: + section.add "X-Amz-Algorithm", valid_623268 + var valid_623269 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623269 = validateParameter(valid_623269, JString, required = false, + default = nil) + if valid_623269 != nil: + section.add "X-Amz-SignedHeaders", valid_623269 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623268: Call_GetGetTransitGatewayRouteTablePropagations_623251; +proc call*(call_623270: Call_GetGetTransitGatewayRouteTablePropagations_623253; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Gets information about the route table propagations for the specified transit gateway route table. ## - let valid = call_623268.validator(path, query, header, formData, body) - let scheme = call_623268.pickScheme + let valid = call_623270.validator(path, query, header, formData, body) + let scheme = call_623270.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623268.url(scheme.get, call_623268.host, call_623268.base, - call_623268.route, valid.getOrDefault("path"), + let url = call_623270.url(scheme.get, call_623270.host, call_623270.base, + call_623270.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623268, url, valid) + result = atozHook(call_623270, url, valid) -proc call*(call_623269: Call_GetGetTransitGatewayRouteTablePropagations_623251; +proc call*(call_623271: Call_GetGetTransitGatewayRouteTablePropagations_623253; TransitGatewayRouteTableId: string; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Filter: JsonNode = nil; Action: string = "GetTransitGatewayRouteTablePropagations"; @@ -99879,28 +99906,28 @@ proc call*(call_623269: Call_GetGetTransitGatewayRouteTablePropagations_623251; ## :

    One or more filters. The possible values are:

    ## Action: string (required) ## Version: string (required) - var query_623270 = newJObject() - add(query_623270, "MaxResults", newJInt(MaxResults)) - add(query_623270, "DryRun", newJBool(DryRun)) - add(query_623270, "TransitGatewayRouteTableId", + var query_623272 = newJObject() + add(query_623272, "MaxResults", newJInt(MaxResults)) + add(query_623272, "DryRun", newJBool(DryRun)) + add(query_623272, "TransitGatewayRouteTableId", newJString(TransitGatewayRouteTableId)) - add(query_623270, "NextToken", newJString(NextToken)) + add(query_623272, "NextToken", newJString(NextToken)) if Filter != nil: - query_623270.add "Filter", Filter - add(query_623270, "Action", newJString(Action)) - add(query_623270, "Version", newJString(Version)) - result = call_623269.call(nil, query_623270, nil, nil, nil) + query_623272.add "Filter", Filter + add(query_623272, "Action", newJString(Action)) + add(query_623272, "Version", newJString(Version)) + result = call_623271.call(nil, query_623272, nil, nil, nil) -var getGetTransitGatewayRouteTablePropagations* = Call_GetGetTransitGatewayRouteTablePropagations_623251( +var getGetTransitGatewayRouteTablePropagations* = Call_GetGetTransitGatewayRouteTablePropagations_623253( name: "getGetTransitGatewayRouteTablePropagations", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=GetTransitGatewayRouteTablePropagations", - validator: validate_GetGetTransitGatewayRouteTablePropagations_623252, - base: "/", url: url_GetGetTransitGatewayRouteTablePropagations_623253, + validator: validate_GetGetTransitGatewayRouteTablePropagations_623254, + base: "/", url: url_GetGetTransitGatewayRouteTablePropagations_623255, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostImportClientVpnClientCertificateRevocationList_623310 = ref object of OpenApiRestCall_610658 -proc url_PostImportClientVpnClientCertificateRevocationList_623312( + Call_PostImportClientVpnClientCertificateRevocationList_623312 = ref object of OpenApiRestCall_610658 +proc url_PostImportClientVpnClientCertificateRevocationList_623314( protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -99911,7 +99938,7 @@ proc url_PostImportClientVpnClientCertificateRevocationList_623312( else: result.path = base & route -proc validate_PostImportClientVpnClientCertificateRevocationList_623311( +proc validate_PostImportClientVpnClientCertificateRevocationList_623313( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Uploads a client certificate revocation list to the specified Client VPN endpoint. Uploading a client certificate revocation list overwrites the existing client certificate revocation list.

    Uploading a client certificate revocation list resets existing client connections.

    @@ -99924,16 +99951,16 @@ proc validate_PostImportClientVpnClientCertificateRevocationList_623311( ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_623313 = query.getOrDefault("Action") - valid_623313 = validateParameter(valid_623313, JString, required = true, default = newJString( + var valid_623315 = query.getOrDefault("Action") + valid_623315 = validateParameter(valid_623315, JString, required = true, default = newJString( "ImportClientVpnClientCertificateRevocationList")) - if valid_623313 != nil: - section.add "Action", valid_623313 - var valid_623314 = query.getOrDefault("Version") - valid_623314 = validateParameter(valid_623314, JString, required = true, + if valid_623315 != nil: + section.add "Action", valid_623315 + var valid_623316 = query.getOrDefault("Version") + valid_623316 = validateParameter(valid_623316, JString, required = true, default = newJString("2016-11-15")) - if valid_623314 != nil: - section.add "Version", valid_623314 + if valid_623316 != nil: + section.add "Version", valid_623316 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -99944,41 +99971,41 @@ proc validate_PostImportClientVpnClientCertificateRevocationList_623311( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623315 = header.getOrDefault("X-Amz-Signature") - valid_623315 = validateParameter(valid_623315, JString, required = false, - default = nil) - if valid_623315 != nil: - section.add "X-Amz-Signature", valid_623315 - var valid_623316 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623316 = validateParameter(valid_623316, JString, required = false, - default = nil) - if valid_623316 != nil: - section.add "X-Amz-Content-Sha256", valid_623316 - var valid_623317 = header.getOrDefault("X-Amz-Date") + var valid_623317 = header.getOrDefault("X-Amz-Signature") valid_623317 = validateParameter(valid_623317, JString, required = false, default = nil) if valid_623317 != nil: - section.add "X-Amz-Date", valid_623317 - var valid_623318 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623317 + var valid_623318 = header.getOrDefault("X-Amz-Content-Sha256") valid_623318 = validateParameter(valid_623318, JString, required = false, default = nil) if valid_623318 != nil: - section.add "X-Amz-Credential", valid_623318 - var valid_623319 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623318 + var valid_623319 = header.getOrDefault("X-Amz-Date") valid_623319 = validateParameter(valid_623319, JString, required = false, default = nil) if valid_623319 != nil: - section.add "X-Amz-Security-Token", valid_623319 - var valid_623320 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623319 + var valid_623320 = header.getOrDefault("X-Amz-Credential") valid_623320 = validateParameter(valid_623320, JString, required = false, default = nil) if valid_623320 != nil: - section.add "X-Amz-Algorithm", valid_623320 - var valid_623321 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623320 + var valid_623321 = header.getOrDefault("X-Amz-Security-Token") valid_623321 = validateParameter(valid_623321, JString, required = false, default = nil) if valid_623321 != nil: - section.add "X-Amz-SignedHeaders", valid_623321 + section.add "X-Amz-Security-Token", valid_623321 + var valid_623322 = header.getOrDefault("X-Amz-Algorithm") + valid_623322 = validateParameter(valid_623322, JString, required = false, + default = nil) + if valid_623322 != nil: + section.add "X-Amz-Algorithm", valid_623322 + var valid_623323 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623323 = validateParameter(valid_623323, JString, required = false, + default = nil) + if valid_623323 != nil: + section.add "X-Amz-SignedHeaders", valid_623323 result.add "header", section ## parameters in `formData` object: ## CertificateRevocationList: JString (required) @@ -99990,39 +100017,39 @@ proc validate_PostImportClientVpnClientCertificateRevocationList_623311( ## : The ID of the Client VPN endpoint to which the client certificate revocation list applies. section = newJObject() assert formData != nil, "formData argument is necessary due to required `CertificateRevocationList` field" - var valid_623322 = formData.getOrDefault("CertificateRevocationList") - valid_623322 = validateParameter(valid_623322, JString, required = true, - default = nil) - if valid_623322 != nil: - section.add "CertificateRevocationList", valid_623322 - var valid_623323 = formData.getOrDefault("DryRun") - valid_623323 = validateParameter(valid_623323, JBool, required = false, default = nil) - if valid_623323 != nil: - section.add "DryRun", valid_623323 - var valid_623324 = formData.getOrDefault("ClientVpnEndpointId") + var valid_623324 = formData.getOrDefault("CertificateRevocationList") valid_623324 = validateParameter(valid_623324, JString, required = true, default = nil) if valid_623324 != nil: - section.add "ClientVpnEndpointId", valid_623324 + section.add "CertificateRevocationList", valid_623324 + var valid_623325 = formData.getOrDefault("DryRun") + valid_623325 = validateParameter(valid_623325, JBool, required = false, default = nil) + if valid_623325 != nil: + section.add "DryRun", valid_623325 + var valid_623326 = formData.getOrDefault("ClientVpnEndpointId") + valid_623326 = validateParameter(valid_623326, JString, required = true, + default = nil) + if valid_623326 != nil: + section.add "ClientVpnEndpointId", valid_623326 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623325: Call_PostImportClientVpnClientCertificateRevocationList_623310; +proc call*(call_623327: Call_PostImportClientVpnClientCertificateRevocationList_623312; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Uploads a client certificate revocation list to the specified Client VPN endpoint. Uploading a client certificate revocation list overwrites the existing client certificate revocation list.

    Uploading a client certificate revocation list resets existing client connections.

    ## - let valid = call_623325.validator(path, query, header, formData, body) - let scheme = call_623325.pickScheme + let valid = call_623327.validator(path, query, header, formData, body) + let scheme = call_623327.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623325.url(scheme.get, call_623325.host, call_623325.base, - call_623325.route, valid.getOrDefault("path"), + let url = call_623327.url(scheme.get, call_623327.host, call_623327.base, + call_623327.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623325, url, valid) + result = atozHook(call_623327, url, valid) -proc call*(call_623326: Call_PostImportClientVpnClientCertificateRevocationList_623310; +proc call*(call_623328: Call_PostImportClientVpnClientCertificateRevocationList_623312; CertificateRevocationList: string; ClientVpnEndpointId: string; DryRun: bool = false; Action: string = "ImportClientVpnClientCertificateRevocationList"; @@ -100038,26 +100065,26 @@ proc call*(call_623326: Call_PostImportClientVpnClientCertificateRevocationList_ ## Version: string (required) ## ClientVpnEndpointId: string (required) ## : The ID of the Client VPN endpoint to which the client certificate revocation list applies. - var query_623327 = newJObject() - var formData_623328 = newJObject() - add(formData_623328, "CertificateRevocationList", + var query_623329 = newJObject() + var formData_623330 = newJObject() + add(formData_623330, "CertificateRevocationList", newJString(CertificateRevocationList)) - add(formData_623328, "DryRun", newJBool(DryRun)) - add(query_623327, "Action", newJString(Action)) - add(query_623327, "Version", newJString(Version)) - add(formData_623328, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) - result = call_623326.call(nil, query_623327, nil, formData_623328, nil) + add(formData_623330, "DryRun", newJBool(DryRun)) + add(query_623329, "Action", newJString(Action)) + add(query_623329, "Version", newJString(Version)) + add(formData_623330, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) + result = call_623328.call(nil, query_623329, nil, formData_623330, nil) -var postImportClientVpnClientCertificateRevocationList* = Call_PostImportClientVpnClientCertificateRevocationList_623310( +var postImportClientVpnClientCertificateRevocationList* = Call_PostImportClientVpnClientCertificateRevocationList_623312( name: "postImportClientVpnClientCertificateRevocationList", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ImportClientVpnClientCertificateRevocationList", - validator: validate_PostImportClientVpnClientCertificateRevocationList_623311, - base: "/", url: url_PostImportClientVpnClientCertificateRevocationList_623312, + validator: validate_PostImportClientVpnClientCertificateRevocationList_623313, + base: "/", url: url_PostImportClientVpnClientCertificateRevocationList_623314, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetImportClientVpnClientCertificateRevocationList_623292 = ref object of OpenApiRestCall_610658 -proc url_GetImportClientVpnClientCertificateRevocationList_623294( + Call_GetImportClientVpnClientCertificateRevocationList_623294 = ref object of OpenApiRestCall_610658 +proc url_GetImportClientVpnClientCertificateRevocationList_623296( protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -100068,7 +100095,7 @@ proc url_GetImportClientVpnClientCertificateRevocationList_623294( else: result.path = base & route -proc validate_GetImportClientVpnClientCertificateRevocationList_623293( +proc validate_GetImportClientVpnClientCertificateRevocationList_623295( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Uploads a client certificate revocation list to the specified Client VPN endpoint. Uploading a client certificate revocation list overwrites the existing client certificate revocation list.

    Uploading a client certificate revocation list resets existing client connections.

    @@ -100089,30 +100116,30 @@ proc validate_GetImportClientVpnClientCertificateRevocationList_623293( ## Version: JString (required) section = newJObject() assert query != nil, "query argument is necessary due to required `CertificateRevocationList` field" - var valid_623295 = query.getOrDefault("CertificateRevocationList") - valid_623295 = validateParameter(valid_623295, JString, required = true, - default = nil) - if valid_623295 != nil: - section.add "CertificateRevocationList", valid_623295 - var valid_623296 = query.getOrDefault("DryRun") - valid_623296 = validateParameter(valid_623296, JBool, required = false, default = nil) - if valid_623296 != nil: - section.add "DryRun", valid_623296 - var valid_623297 = query.getOrDefault("ClientVpnEndpointId") + var valid_623297 = query.getOrDefault("CertificateRevocationList") valid_623297 = validateParameter(valid_623297, JString, required = true, default = nil) if valid_623297 != nil: - section.add "ClientVpnEndpointId", valid_623297 - var valid_623298 = query.getOrDefault("Action") - valid_623298 = validateParameter(valid_623298, JString, required = true, default = newJString( - "ImportClientVpnClientCertificateRevocationList")) + section.add "CertificateRevocationList", valid_623297 + var valid_623298 = query.getOrDefault("DryRun") + valid_623298 = validateParameter(valid_623298, JBool, required = false, default = nil) if valid_623298 != nil: - section.add "Action", valid_623298 - var valid_623299 = query.getOrDefault("Version") + section.add "DryRun", valid_623298 + var valid_623299 = query.getOrDefault("ClientVpnEndpointId") valid_623299 = validateParameter(valid_623299, JString, required = true, - default = newJString("2016-11-15")) + default = nil) if valid_623299 != nil: - section.add "Version", valid_623299 + section.add "ClientVpnEndpointId", valid_623299 + var valid_623300 = query.getOrDefault("Action") + valid_623300 = validateParameter(valid_623300, JString, required = true, default = newJString( + "ImportClientVpnClientCertificateRevocationList")) + if valid_623300 != nil: + section.add "Action", valid_623300 + var valid_623301 = query.getOrDefault("Version") + valid_623301 = validateParameter(valid_623301, JString, required = true, + default = newJString("2016-11-15")) + if valid_623301 != nil: + section.add "Version", valid_623301 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -100123,62 +100150,62 @@ proc validate_GetImportClientVpnClientCertificateRevocationList_623293( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623300 = header.getOrDefault("X-Amz-Signature") - valid_623300 = validateParameter(valid_623300, JString, required = false, - default = nil) - if valid_623300 != nil: - section.add "X-Amz-Signature", valid_623300 - var valid_623301 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623301 = validateParameter(valid_623301, JString, required = false, - default = nil) - if valid_623301 != nil: - section.add "X-Amz-Content-Sha256", valid_623301 - var valid_623302 = header.getOrDefault("X-Amz-Date") + var valid_623302 = header.getOrDefault("X-Amz-Signature") valid_623302 = validateParameter(valid_623302, JString, required = false, default = nil) if valid_623302 != nil: - section.add "X-Amz-Date", valid_623302 - var valid_623303 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623302 + var valid_623303 = header.getOrDefault("X-Amz-Content-Sha256") valid_623303 = validateParameter(valid_623303, JString, required = false, default = nil) if valid_623303 != nil: - section.add "X-Amz-Credential", valid_623303 - var valid_623304 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623303 + var valid_623304 = header.getOrDefault("X-Amz-Date") valid_623304 = validateParameter(valid_623304, JString, required = false, default = nil) if valid_623304 != nil: - section.add "X-Amz-Security-Token", valid_623304 - var valid_623305 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623304 + var valid_623305 = header.getOrDefault("X-Amz-Credential") valid_623305 = validateParameter(valid_623305, JString, required = false, default = nil) if valid_623305 != nil: - section.add "X-Amz-Algorithm", valid_623305 - var valid_623306 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623305 + var valid_623306 = header.getOrDefault("X-Amz-Security-Token") valid_623306 = validateParameter(valid_623306, JString, required = false, default = nil) if valid_623306 != nil: - section.add "X-Amz-SignedHeaders", valid_623306 + section.add "X-Amz-Security-Token", valid_623306 + var valid_623307 = header.getOrDefault("X-Amz-Algorithm") + valid_623307 = validateParameter(valid_623307, JString, required = false, + default = nil) + if valid_623307 != nil: + section.add "X-Amz-Algorithm", valid_623307 + var valid_623308 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623308 = validateParameter(valid_623308, JString, required = false, + default = nil) + if valid_623308 != nil: + section.add "X-Amz-SignedHeaders", valid_623308 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623307: Call_GetImportClientVpnClientCertificateRevocationList_623292; +proc call*(call_623309: Call_GetImportClientVpnClientCertificateRevocationList_623294; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Uploads a client certificate revocation list to the specified Client VPN endpoint. Uploading a client certificate revocation list overwrites the existing client certificate revocation list.

    Uploading a client certificate revocation list resets existing client connections.

    ## - let valid = call_623307.validator(path, query, header, formData, body) - let scheme = call_623307.pickScheme + let valid = call_623309.validator(path, query, header, formData, body) + let scheme = call_623309.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623307.url(scheme.get, call_623307.host, call_623307.base, - call_623307.route, valid.getOrDefault("path"), + let url = call_623309.url(scheme.get, call_623309.host, call_623309.base, + call_623309.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623307, url, valid) + result = atozHook(call_623309, url, valid) -proc call*(call_623308: Call_GetImportClientVpnClientCertificateRevocationList_623292; +proc call*(call_623310: Call_GetImportClientVpnClientCertificateRevocationList_623294; CertificateRevocationList: string; ClientVpnEndpointId: string; DryRun: bool = false; Action: string = "ImportClientVpnClientCertificateRevocationList"; @@ -100194,25 +100221,25 @@ proc call*(call_623308: Call_GetImportClientVpnClientCertificateRevocationList_6 ## : The ID of the Client VPN endpoint to which the client certificate revocation list applies. ## Action: string (required) ## Version: string (required) - var query_623309 = newJObject() - add(query_623309, "CertificateRevocationList", + var query_623311 = newJObject() + add(query_623311, "CertificateRevocationList", newJString(CertificateRevocationList)) - add(query_623309, "DryRun", newJBool(DryRun)) - add(query_623309, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) - add(query_623309, "Action", newJString(Action)) - add(query_623309, "Version", newJString(Version)) - result = call_623308.call(nil, query_623309, nil, nil, nil) + add(query_623311, "DryRun", newJBool(DryRun)) + add(query_623311, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) + add(query_623311, "Action", newJString(Action)) + add(query_623311, "Version", newJString(Version)) + result = call_623310.call(nil, query_623311, nil, nil, nil) -var getImportClientVpnClientCertificateRevocationList* = Call_GetImportClientVpnClientCertificateRevocationList_623292( +var getImportClientVpnClientCertificateRevocationList* = Call_GetImportClientVpnClientCertificateRevocationList_623294( name: "getImportClientVpnClientCertificateRevocationList", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ImportClientVpnClientCertificateRevocationList", - validator: validate_GetImportClientVpnClientCertificateRevocationList_623293, - base: "/", url: url_GetImportClientVpnClientCertificateRevocationList_623294, + validator: validate_GetImportClientVpnClientCertificateRevocationList_623295, + base: "/", url: url_GetImportClientVpnClientCertificateRevocationList_623296, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostImportImage_623360 = ref object of OpenApiRestCall_610658 -proc url_PostImportImage_623362(protocol: Scheme; host: string; base: string; + Call_PostImportImage_623362 = ref object of OpenApiRestCall_610658 +proc url_PostImportImage_623364(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -100222,7 +100249,7 @@ proc url_PostImportImage_623362(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostImportImage_623361(path: JsonNode; query: JsonNode; +proc validate_PostImportImage_623363(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Import single or multi-volume disk images or EBS snapshots into an Amazon Machine Image (AMI). For more information, see Importing a VM as an Image Using VM Import/Export in the VM Import/Export User Guide. @@ -100235,16 +100262,16 @@ proc validate_PostImportImage_623361(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_623363 = query.getOrDefault("Action") - valid_623363 = validateParameter(valid_623363, JString, required = true, + var valid_623365 = query.getOrDefault("Action") + valid_623365 = validateParameter(valid_623365, JString, required = true, default = newJString("ImportImage")) - if valid_623363 != nil: - section.add "Action", valid_623363 - var valid_623364 = query.getOrDefault("Version") - valid_623364 = validateParameter(valid_623364, JString, required = true, + if valid_623365 != nil: + section.add "Action", valid_623365 + var valid_623366 = query.getOrDefault("Version") + valid_623366 = validateParameter(valid_623366, JString, required = true, default = newJString("2016-11-15")) - if valid_623364 != nil: - section.add "Version", valid_623364 + if valid_623366 != nil: + section.add "Version", valid_623366 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -100255,41 +100282,41 @@ proc validate_PostImportImage_623361(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623365 = header.getOrDefault("X-Amz-Signature") - valid_623365 = validateParameter(valid_623365, JString, required = false, - default = nil) - if valid_623365 != nil: - section.add "X-Amz-Signature", valid_623365 - var valid_623366 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623366 = validateParameter(valid_623366, JString, required = false, - default = nil) - if valid_623366 != nil: - section.add "X-Amz-Content-Sha256", valid_623366 - var valid_623367 = header.getOrDefault("X-Amz-Date") + var valid_623367 = header.getOrDefault("X-Amz-Signature") valid_623367 = validateParameter(valid_623367, JString, required = false, default = nil) if valid_623367 != nil: - section.add "X-Amz-Date", valid_623367 - var valid_623368 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623367 + var valid_623368 = header.getOrDefault("X-Amz-Content-Sha256") valid_623368 = validateParameter(valid_623368, JString, required = false, default = nil) if valid_623368 != nil: - section.add "X-Amz-Credential", valid_623368 - var valid_623369 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623368 + var valid_623369 = header.getOrDefault("X-Amz-Date") valid_623369 = validateParameter(valid_623369, JString, required = false, default = nil) if valid_623369 != nil: - section.add "X-Amz-Security-Token", valid_623369 - var valid_623370 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623369 + var valid_623370 = header.getOrDefault("X-Amz-Credential") valid_623370 = validateParameter(valid_623370, JString, required = false, default = nil) if valid_623370 != nil: - section.add "X-Amz-Algorithm", valid_623370 - var valid_623371 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623370 + var valid_623371 = header.getOrDefault("X-Amz-Security-Token") valid_623371 = validateParameter(valid_623371, JString, required = false, default = nil) if valid_623371 != nil: - section.add "X-Amz-SignedHeaders", valid_623371 + section.add "X-Amz-Security-Token", valid_623371 + var valid_623372 = header.getOrDefault("X-Amz-Algorithm") + valid_623372 = validateParameter(valid_623372, JString, required = false, + default = nil) + if valid_623372 != nil: + section.add "X-Amz-Algorithm", valid_623372 + var valid_623373 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623373 = validateParameter(valid_623373, JString, required = false, + default = nil) + if valid_623373 != nil: + section.add "X-Amz-SignedHeaders", valid_623373 result.add "header", section ## parameters in `formData` object: ## ClientData.UploadSize: JString @@ -100333,102 +100360,102 @@ proc validate_PostImportImage_623361(path: JsonNode; query: JsonNode; ## Hypervisor: JString ## :

    The target hypervisor platform.

    Valid values: xen

    section = newJObject() - var valid_623372 = formData.getOrDefault("ClientData.UploadSize") - valid_623372 = validateParameter(valid_623372, JString, required = false, - default = nil) - if valid_623372 != nil: - section.add "ClientData.UploadSize", valid_623372 - var valid_623373 = formData.getOrDefault("ClientData.UploadStart") - valid_623373 = validateParameter(valid_623373, JString, required = false, - default = nil) - if valid_623373 != nil: - section.add "ClientData.UploadStart", valid_623373 - var valid_623374 = formData.getOrDefault("Description") + var valid_623374 = formData.getOrDefault("ClientData.UploadSize") valid_623374 = validateParameter(valid_623374, JString, required = false, default = nil) if valid_623374 != nil: - section.add "Description", valid_623374 - var valid_623375 = formData.getOrDefault("Platform") + section.add "ClientData.UploadSize", valid_623374 + var valid_623375 = formData.getOrDefault("ClientData.UploadStart") valid_623375 = validateParameter(valid_623375, JString, required = false, default = nil) if valid_623375 != nil: - section.add "Platform", valid_623375 - var valid_623376 = formData.getOrDefault("Architecture") + section.add "ClientData.UploadStart", valid_623375 + var valid_623376 = formData.getOrDefault("Description") valid_623376 = validateParameter(valid_623376, JString, required = false, default = nil) if valid_623376 != nil: - section.add "Architecture", valid_623376 - var valid_623377 = formData.getOrDefault("LicenseSpecifications") - valid_623377 = validateParameter(valid_623377, JArray, required = false, + section.add "Description", valid_623376 + var valid_623377 = formData.getOrDefault("Platform") + valid_623377 = validateParameter(valid_623377, JString, required = false, default = nil) if valid_623377 != nil: - section.add "LicenseSpecifications", valid_623377 - var valid_623378 = formData.getOrDefault("RoleName") + section.add "Platform", valid_623377 + var valid_623378 = formData.getOrDefault("Architecture") valid_623378 = validateParameter(valid_623378, JString, required = false, default = nil) if valid_623378 != nil: - section.add "RoleName", valid_623378 - var valid_623379 = formData.getOrDefault("KmsKeyId") - valid_623379 = validateParameter(valid_623379, JString, required = false, + section.add "Architecture", valid_623378 + var valid_623379 = formData.getOrDefault("LicenseSpecifications") + valid_623379 = validateParameter(valid_623379, JArray, required = false, default = nil) if valid_623379 != nil: - section.add "KmsKeyId", valid_623379 - var valid_623380 = formData.getOrDefault("DiskContainer") - valid_623380 = validateParameter(valid_623380, JArray, required = false, + section.add "LicenseSpecifications", valid_623379 + var valid_623380 = formData.getOrDefault("RoleName") + valid_623380 = validateParameter(valid_623380, JString, required = false, default = nil) if valid_623380 != nil: - section.add "DiskContainer", valid_623380 - var valid_623381 = formData.getOrDefault("DryRun") - valid_623381 = validateParameter(valid_623381, JBool, required = false, default = nil) + section.add "RoleName", valid_623380 + var valid_623381 = formData.getOrDefault("KmsKeyId") + valid_623381 = validateParameter(valid_623381, JString, required = false, + default = nil) if valid_623381 != nil: - section.add "DryRun", valid_623381 - var valid_623382 = formData.getOrDefault("Encrypted") - valid_623382 = validateParameter(valid_623382, JBool, required = false, default = nil) - if valid_623382 != nil: - section.add "Encrypted", valid_623382 - var valid_623383 = formData.getOrDefault("LicenseType") - valid_623383 = validateParameter(valid_623383, JString, required = false, + section.add "KmsKeyId", valid_623381 + var valid_623382 = formData.getOrDefault("DiskContainer") + valid_623382 = validateParameter(valid_623382, JArray, required = false, default = nil) + if valid_623382 != nil: + section.add "DiskContainer", valid_623382 + var valid_623383 = formData.getOrDefault("DryRun") + valid_623383 = validateParameter(valid_623383, JBool, required = false, default = nil) if valid_623383 != nil: - section.add "LicenseType", valid_623383 - var valid_623384 = formData.getOrDefault("ClientData.Comment") - valid_623384 = validateParameter(valid_623384, JString, required = false, - default = nil) + section.add "DryRun", valid_623383 + var valid_623384 = formData.getOrDefault("Encrypted") + valid_623384 = validateParameter(valid_623384, JBool, required = false, default = nil) if valid_623384 != nil: - section.add "ClientData.Comment", valid_623384 - var valid_623385 = formData.getOrDefault("ClientData.UploadEnd") + section.add "Encrypted", valid_623384 + var valid_623385 = formData.getOrDefault("LicenseType") valid_623385 = validateParameter(valid_623385, JString, required = false, default = nil) if valid_623385 != nil: - section.add "ClientData.UploadEnd", valid_623385 - var valid_623386 = formData.getOrDefault("ClientToken") + section.add "LicenseType", valid_623385 + var valid_623386 = formData.getOrDefault("ClientData.Comment") valid_623386 = validateParameter(valid_623386, JString, required = false, default = nil) if valid_623386 != nil: - section.add "ClientToken", valid_623386 - var valid_623387 = formData.getOrDefault("Hypervisor") + section.add "ClientData.Comment", valid_623386 + var valid_623387 = formData.getOrDefault("ClientData.UploadEnd") valid_623387 = validateParameter(valid_623387, JString, required = false, default = nil) if valid_623387 != nil: - section.add "Hypervisor", valid_623387 + section.add "ClientData.UploadEnd", valid_623387 + var valid_623388 = formData.getOrDefault("ClientToken") + valid_623388 = validateParameter(valid_623388, JString, required = false, + default = nil) + if valid_623388 != nil: + section.add "ClientToken", valid_623388 + var valid_623389 = formData.getOrDefault("Hypervisor") + valid_623389 = validateParameter(valid_623389, JString, required = false, + default = nil) + if valid_623389 != nil: + section.add "Hypervisor", valid_623389 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623388: Call_PostImportImage_623360; path: JsonNode; query: JsonNode; +proc call*(call_623390: Call_PostImportImage_623362; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Import single or multi-volume disk images or EBS snapshots into an Amazon Machine Image (AMI). For more information, see Importing a VM as an Image Using VM Import/Export in the VM Import/Export User Guide. ## - let valid = call_623388.validator(path, query, header, formData, body) - let scheme = call_623388.pickScheme + let valid = call_623390.validator(path, query, header, formData, body) + let scheme = call_623390.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623388.url(scheme.get, call_623388.host, call_623388.base, - call_623388.route, valid.getOrDefault("path"), + let url = call_623390.url(scheme.get, call_623390.host, call_623390.base, + call_623390.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623388, url, valid) + result = atozHook(call_623390, url, valid) -proc call*(call_623389: Call_PostImportImage_623360; +proc call*(call_623391: Call_PostImportImage_623362; ClientDataUploadSize: string = ""; ClientDataUploadStart: string = ""; Description: string = ""; Platform: string = ""; Architecture: string = ""; LicenseSpecifications: JsonNode = nil; RoleName: string = ""; @@ -100481,37 +100508,37 @@ proc call*(call_623389: Call_PostImportImage_623360; ## : The token to enable idempotency for VM import requests. ## Hypervisor: string ## :

    The target hypervisor platform.

    Valid values: xen

    - var query_623390 = newJObject() - var formData_623391 = newJObject() - add(formData_623391, "ClientData.UploadSize", newJString(ClientDataUploadSize)) - add(formData_623391, "ClientData.UploadStart", newJString(ClientDataUploadStart)) - add(formData_623391, "Description", newJString(Description)) - add(formData_623391, "Platform", newJString(Platform)) - add(formData_623391, "Architecture", newJString(Architecture)) + var query_623392 = newJObject() + var formData_623393 = newJObject() + add(formData_623393, "ClientData.UploadSize", newJString(ClientDataUploadSize)) + add(formData_623393, "ClientData.UploadStart", newJString(ClientDataUploadStart)) + add(formData_623393, "Description", newJString(Description)) + add(formData_623393, "Platform", newJString(Platform)) + add(formData_623393, "Architecture", newJString(Architecture)) if LicenseSpecifications != nil: - formData_623391.add "LicenseSpecifications", LicenseSpecifications - add(formData_623391, "RoleName", newJString(RoleName)) - add(formData_623391, "KmsKeyId", newJString(KmsKeyId)) + formData_623393.add "LicenseSpecifications", LicenseSpecifications + add(formData_623393, "RoleName", newJString(RoleName)) + add(formData_623393, "KmsKeyId", newJString(KmsKeyId)) if DiskContainer != nil: - formData_623391.add "DiskContainer", DiskContainer - add(formData_623391, "DryRun", newJBool(DryRun)) - add(query_623390, "Action", newJString(Action)) - add(formData_623391, "Encrypted", newJBool(Encrypted)) - add(formData_623391, "LicenseType", newJString(LicenseType)) - add(query_623390, "Version", newJString(Version)) - add(formData_623391, "ClientData.Comment", newJString(ClientDataComment)) - add(formData_623391, "ClientData.UploadEnd", newJString(ClientDataUploadEnd)) - add(formData_623391, "ClientToken", newJString(ClientToken)) - add(formData_623391, "Hypervisor", newJString(Hypervisor)) - result = call_623389.call(nil, query_623390, nil, formData_623391, nil) - -var postImportImage* = Call_PostImportImage_623360(name: "postImportImage", + formData_623393.add "DiskContainer", DiskContainer + add(formData_623393, "DryRun", newJBool(DryRun)) + add(query_623392, "Action", newJString(Action)) + add(formData_623393, "Encrypted", newJBool(Encrypted)) + add(formData_623393, "LicenseType", newJString(LicenseType)) + add(query_623392, "Version", newJString(Version)) + add(formData_623393, "ClientData.Comment", newJString(ClientDataComment)) + add(formData_623393, "ClientData.UploadEnd", newJString(ClientDataUploadEnd)) + add(formData_623393, "ClientToken", newJString(ClientToken)) + add(formData_623393, "Hypervisor", newJString(Hypervisor)) + result = call_623391.call(nil, query_623392, nil, formData_623393, nil) + +var postImportImage* = Call_PostImportImage_623362(name: "postImportImage", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", - route: "/#Action=ImportImage", validator: validate_PostImportImage_623361, - base: "/", url: url_PostImportImage_623362, schemes: {Scheme.Https, Scheme.Http}) + route: "/#Action=ImportImage", validator: validate_PostImportImage_623363, + base: "/", url: url_PostImportImage_623364, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetImportImage_623329 = ref object of OpenApiRestCall_610658 -proc url_GetImportImage_623331(protocol: Scheme; host: string; base: string; + Call_GetImportImage_623331 = ref object of OpenApiRestCall_610658 +proc url_GetImportImage_623333(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -100521,7 +100548,7 @@ proc url_GetImportImage_623331(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetImportImage_623330(path: JsonNode; query: JsonNode; +proc validate_GetImportImage_623332(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Import single or multi-volume disk images or EBS snapshots into an Amazon Machine Image (AMI). For more information, see Importing a VM as an Image Using VM Import/Export in the VM Import/Export User Guide. @@ -100574,94 +100601,94 @@ proc validate_GetImportImage_623330(path: JsonNode; query: JsonNode; ## ClientToken: JString ## : The token to enable idempotency for VM import requests. section = newJObject() - var valid_623332 = query.getOrDefault("Encrypted") - valid_623332 = validateParameter(valid_623332, JBool, required = false, default = nil) - if valid_623332 != nil: - section.add "Encrypted", valid_623332 - var valid_623333 = query.getOrDefault("DryRun") - valid_623333 = validateParameter(valid_623333, JBool, required = false, default = nil) - if valid_623333 != nil: - section.add "DryRun", valid_623333 - var valid_623334 = query.getOrDefault("KmsKeyId") - valid_623334 = validateParameter(valid_623334, JString, required = false, - default = nil) + var valid_623334 = query.getOrDefault("Encrypted") + valid_623334 = validateParameter(valid_623334, JBool, required = false, default = nil) if valid_623334 != nil: - section.add "KmsKeyId", valid_623334 - var valid_623335 = query.getOrDefault("Platform") - valid_623335 = validateParameter(valid_623335, JString, required = false, - default = nil) + section.add "Encrypted", valid_623334 + var valid_623335 = query.getOrDefault("DryRun") + valid_623335 = validateParameter(valid_623335, JBool, required = false, default = nil) if valid_623335 != nil: - section.add "Platform", valid_623335 - var valid_623336 = query.getOrDefault("ClientData.UploadSize") + section.add "DryRun", valid_623335 + var valid_623336 = query.getOrDefault("KmsKeyId") valid_623336 = validateParameter(valid_623336, JString, required = false, default = nil) if valid_623336 != nil: - section.add "ClientData.UploadSize", valid_623336 - var valid_623337 = query.getOrDefault("Architecture") + section.add "KmsKeyId", valid_623336 + var valid_623337 = query.getOrDefault("Platform") valid_623337 = validateParameter(valid_623337, JString, required = false, default = nil) if valid_623337 != nil: - section.add "Architecture", valid_623337 - var valid_623338 = query.getOrDefault("LicenseSpecifications") - valid_623338 = validateParameter(valid_623338, JArray, required = false, + section.add "Platform", valid_623337 + var valid_623338 = query.getOrDefault("ClientData.UploadSize") + valid_623338 = validateParameter(valid_623338, JString, required = false, default = nil) if valid_623338 != nil: - section.add "LicenseSpecifications", valid_623338 - var valid_623339 = query.getOrDefault("DiskContainer") - valid_623339 = validateParameter(valid_623339, JArray, required = false, + section.add "ClientData.UploadSize", valid_623338 + var valid_623339 = query.getOrDefault("Architecture") + valid_623339 = validateParameter(valid_623339, JString, required = false, default = nil) if valid_623339 != nil: - section.add "DiskContainer", valid_623339 - var valid_623340 = query.getOrDefault("Hypervisor") - valid_623340 = validateParameter(valid_623340, JString, required = false, + section.add "Architecture", valid_623339 + var valid_623340 = query.getOrDefault("LicenseSpecifications") + valid_623340 = validateParameter(valid_623340, JArray, required = false, default = nil) if valid_623340 != nil: - section.add "Hypervisor", valid_623340 - var valid_623341 = query.getOrDefault("ClientData.UploadEnd") - valid_623341 = validateParameter(valid_623341, JString, required = false, + section.add "LicenseSpecifications", valid_623340 + var valid_623341 = query.getOrDefault("DiskContainer") + valid_623341 = validateParameter(valid_623341, JArray, required = false, default = nil) if valid_623341 != nil: - section.add "ClientData.UploadEnd", valid_623341 - var valid_623342 = query.getOrDefault("ClientData.Comment") + section.add "DiskContainer", valid_623341 + var valid_623342 = query.getOrDefault("Hypervisor") valid_623342 = validateParameter(valid_623342, JString, required = false, default = nil) if valid_623342 != nil: - section.add "ClientData.Comment", valid_623342 - var valid_623343 = query.getOrDefault("RoleName") + section.add "Hypervisor", valid_623342 + var valid_623343 = query.getOrDefault("ClientData.UploadEnd") valid_623343 = validateParameter(valid_623343, JString, required = false, default = nil) if valid_623343 != nil: - section.add "RoleName", valid_623343 - var valid_623344 = query.getOrDefault("Action") - valid_623344 = validateParameter(valid_623344, JString, required = true, - default = newJString("ImportImage")) + section.add "ClientData.UploadEnd", valid_623343 + var valid_623344 = query.getOrDefault("ClientData.Comment") + valid_623344 = validateParameter(valid_623344, JString, required = false, + default = nil) if valid_623344 != nil: - section.add "Action", valid_623344 - var valid_623345 = query.getOrDefault("Description") + section.add "ClientData.Comment", valid_623344 + var valid_623345 = query.getOrDefault("RoleName") valid_623345 = validateParameter(valid_623345, JString, required = false, default = nil) if valid_623345 != nil: - section.add "Description", valid_623345 - var valid_623346 = query.getOrDefault("ClientData.UploadStart") - valid_623346 = validateParameter(valid_623346, JString, required = false, - default = nil) + section.add "RoleName", valid_623345 + var valid_623346 = query.getOrDefault("Action") + valid_623346 = validateParameter(valid_623346, JString, required = true, + default = newJString("ImportImage")) if valid_623346 != nil: - section.add "ClientData.UploadStart", valid_623346 - var valid_623347 = query.getOrDefault("Version") - valid_623347 = validateParameter(valid_623347, JString, required = true, - default = newJString("2016-11-15")) + section.add "Action", valid_623346 + var valid_623347 = query.getOrDefault("Description") + valid_623347 = validateParameter(valid_623347, JString, required = false, + default = nil) if valid_623347 != nil: - section.add "Version", valid_623347 - var valid_623348 = query.getOrDefault("LicenseType") + section.add "Description", valid_623347 + var valid_623348 = query.getOrDefault("ClientData.UploadStart") valid_623348 = validateParameter(valid_623348, JString, required = false, default = nil) if valid_623348 != nil: - section.add "LicenseType", valid_623348 - var valid_623349 = query.getOrDefault("ClientToken") - valid_623349 = validateParameter(valid_623349, JString, required = false, - default = nil) + section.add "ClientData.UploadStart", valid_623348 + var valid_623349 = query.getOrDefault("Version") + valid_623349 = validateParameter(valid_623349, JString, required = true, + default = newJString("2016-11-15")) if valid_623349 != nil: - section.add "ClientToken", valid_623349 + section.add "Version", valid_623349 + var valid_623350 = query.getOrDefault("LicenseType") + valid_623350 = validateParameter(valid_623350, JString, required = false, + default = nil) + if valid_623350 != nil: + section.add "LicenseType", valid_623350 + var valid_623351 = query.getOrDefault("ClientToken") + valid_623351 = validateParameter(valid_623351, JString, required = false, + default = nil) + if valid_623351 != nil: + section.add "ClientToken", valid_623351 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -100672,61 +100699,61 @@ proc validate_GetImportImage_623330(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623350 = header.getOrDefault("X-Amz-Signature") - valid_623350 = validateParameter(valid_623350, JString, required = false, - default = nil) - if valid_623350 != nil: - section.add "X-Amz-Signature", valid_623350 - var valid_623351 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623351 = validateParameter(valid_623351, JString, required = false, - default = nil) - if valid_623351 != nil: - section.add "X-Amz-Content-Sha256", valid_623351 - var valid_623352 = header.getOrDefault("X-Amz-Date") + var valid_623352 = header.getOrDefault("X-Amz-Signature") valid_623352 = validateParameter(valid_623352, JString, required = false, default = nil) if valid_623352 != nil: - section.add "X-Amz-Date", valid_623352 - var valid_623353 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623352 + var valid_623353 = header.getOrDefault("X-Amz-Content-Sha256") valid_623353 = validateParameter(valid_623353, JString, required = false, default = nil) if valid_623353 != nil: - section.add "X-Amz-Credential", valid_623353 - var valid_623354 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623353 + var valid_623354 = header.getOrDefault("X-Amz-Date") valid_623354 = validateParameter(valid_623354, JString, required = false, default = nil) if valid_623354 != nil: - section.add "X-Amz-Security-Token", valid_623354 - var valid_623355 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623354 + var valid_623355 = header.getOrDefault("X-Amz-Credential") valid_623355 = validateParameter(valid_623355, JString, required = false, default = nil) if valid_623355 != nil: - section.add "X-Amz-Algorithm", valid_623355 - var valid_623356 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623355 + var valid_623356 = header.getOrDefault("X-Amz-Security-Token") valid_623356 = validateParameter(valid_623356, JString, required = false, default = nil) if valid_623356 != nil: - section.add "X-Amz-SignedHeaders", valid_623356 + section.add "X-Amz-Security-Token", valid_623356 + var valid_623357 = header.getOrDefault("X-Amz-Algorithm") + valid_623357 = validateParameter(valid_623357, JString, required = false, + default = nil) + if valid_623357 != nil: + section.add "X-Amz-Algorithm", valid_623357 + var valid_623358 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623358 = validateParameter(valid_623358, JString, required = false, + default = nil) + if valid_623358 != nil: + section.add "X-Amz-SignedHeaders", valid_623358 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623357: Call_GetImportImage_623329; path: JsonNode; query: JsonNode; +proc call*(call_623359: Call_GetImportImage_623331; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Import single or multi-volume disk images or EBS snapshots into an Amazon Machine Image (AMI). For more information, see Importing a VM as an Image Using VM Import/Export in the VM Import/Export User Guide. ## - let valid = call_623357.validator(path, query, header, formData, body) - let scheme = call_623357.pickScheme + let valid = call_623359.validator(path, query, header, formData, body) + let scheme = call_623359.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623357.url(scheme.get, call_623357.host, call_623357.base, - call_623357.route, valid.getOrDefault("path"), + let url = call_623359.url(scheme.get, call_623359.host, call_623359.base, + call_623359.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623357, url, valid) + result = atozHook(call_623359, url, valid) -proc call*(call_623358: Call_GetImportImage_623329; Encrypted: bool = false; +proc call*(call_623360: Call_GetImportImage_623331; Encrypted: bool = false; DryRun: bool = false; KmsKeyId: string = ""; Platform: string = ""; ClientDataUploadSize: string = ""; Architecture: string = ""; LicenseSpecifications: JsonNode = nil; DiskContainer: JsonNode = nil; @@ -100779,36 +100806,36 @@ proc call*(call_623358: Call_GetImportImage_623329; Encrypted: bool = false; ## href="https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html#prerequisites-image">Prerequisites in the VM Import/Export User Guide.

    ## ClientToken: string ## : The token to enable idempotency for VM import requests. - var query_623359 = newJObject() - add(query_623359, "Encrypted", newJBool(Encrypted)) - add(query_623359, "DryRun", newJBool(DryRun)) - add(query_623359, "KmsKeyId", newJString(KmsKeyId)) - add(query_623359, "Platform", newJString(Platform)) - add(query_623359, "ClientData.UploadSize", newJString(ClientDataUploadSize)) - add(query_623359, "Architecture", newJString(Architecture)) + var query_623361 = newJObject() + add(query_623361, "Encrypted", newJBool(Encrypted)) + add(query_623361, "DryRun", newJBool(DryRun)) + add(query_623361, "KmsKeyId", newJString(KmsKeyId)) + add(query_623361, "Platform", newJString(Platform)) + add(query_623361, "ClientData.UploadSize", newJString(ClientDataUploadSize)) + add(query_623361, "Architecture", newJString(Architecture)) if LicenseSpecifications != nil: - query_623359.add "LicenseSpecifications", LicenseSpecifications + query_623361.add "LicenseSpecifications", LicenseSpecifications if DiskContainer != nil: - query_623359.add "DiskContainer", DiskContainer - add(query_623359, "Hypervisor", newJString(Hypervisor)) - add(query_623359, "ClientData.UploadEnd", newJString(ClientDataUploadEnd)) - add(query_623359, "ClientData.Comment", newJString(ClientDataComment)) - add(query_623359, "RoleName", newJString(RoleName)) - add(query_623359, "Action", newJString(Action)) - add(query_623359, "Description", newJString(Description)) - add(query_623359, "ClientData.UploadStart", newJString(ClientDataUploadStart)) - add(query_623359, "Version", newJString(Version)) - add(query_623359, "LicenseType", newJString(LicenseType)) - add(query_623359, "ClientToken", newJString(ClientToken)) - result = call_623358.call(nil, query_623359, nil, nil, nil) - -var getImportImage* = Call_GetImportImage_623329(name: "getImportImage", + query_623361.add "DiskContainer", DiskContainer + add(query_623361, "Hypervisor", newJString(Hypervisor)) + add(query_623361, "ClientData.UploadEnd", newJString(ClientDataUploadEnd)) + add(query_623361, "ClientData.Comment", newJString(ClientDataComment)) + add(query_623361, "RoleName", newJString(RoleName)) + add(query_623361, "Action", newJString(Action)) + add(query_623361, "Description", newJString(Description)) + add(query_623361, "ClientData.UploadStart", newJString(ClientDataUploadStart)) + add(query_623361, "Version", newJString(Version)) + add(query_623361, "LicenseType", newJString(LicenseType)) + add(query_623361, "ClientToken", newJString(ClientToken)) + result = call_623360.call(nil, query_623361, nil, nil, nil) + +var getImportImage* = Call_GetImportImage_623331(name: "getImportImage", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=ImportImage", validator: validate_GetImportImage_623330, - base: "/", url: url_GetImportImage_623331, schemes: {Scheme.Https, Scheme.Http}) + route: "/#Action=ImportImage", validator: validate_GetImportImage_623332, + base: "/", url: url_GetImportImage_623333, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostImportInstance_623422 = ref object of OpenApiRestCall_610658 -proc url_PostImportInstance_623424(protocol: Scheme; host: string; base: string; + Call_PostImportInstance_623424 = ref object of OpenApiRestCall_610658 +proc url_PostImportInstance_623426(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -100818,7 +100845,7 @@ proc url_PostImportInstance_623424(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostImportInstance_623423(path: JsonNode; query: JsonNode; +proc validate_PostImportInstance_623425(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Creates an import instance task using metadata from the specified disk image. ImportInstance only supports single-volume VMs. To import multi-volume VMs, use ImportImage. For more information, see Importing a Virtual Machine Using the Amazon EC2 CLI.

    For information about the import manifest referenced by this API action, see VM Import Manifest.

    @@ -100831,16 +100858,16 @@ proc validate_PostImportInstance_623423(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_623425 = query.getOrDefault("Action") - valid_623425 = validateParameter(valid_623425, JString, required = true, + var valid_623427 = query.getOrDefault("Action") + valid_623427 = validateParameter(valid_623427, JString, required = true, default = newJString("ImportInstance")) - if valid_623425 != nil: - section.add "Action", valid_623425 - var valid_623426 = query.getOrDefault("Version") - valid_623426 = validateParameter(valid_623426, JString, required = true, + if valid_623427 != nil: + section.add "Action", valid_623427 + var valid_623428 = query.getOrDefault("Version") + valid_623428 = validateParameter(valid_623428, JString, required = true, default = newJString("2016-11-15")) - if valid_623426 != nil: - section.add "Version", valid_623426 + if valid_623428 != nil: + section.add "Version", valid_623428 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -100851,41 +100878,41 @@ proc validate_PostImportInstance_623423(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623427 = header.getOrDefault("X-Amz-Signature") - valid_623427 = validateParameter(valid_623427, JString, required = false, - default = nil) - if valid_623427 != nil: - section.add "X-Amz-Signature", valid_623427 - var valid_623428 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623428 = validateParameter(valid_623428, JString, required = false, - default = nil) - if valid_623428 != nil: - section.add "X-Amz-Content-Sha256", valid_623428 - var valid_623429 = header.getOrDefault("X-Amz-Date") + var valid_623429 = header.getOrDefault("X-Amz-Signature") valid_623429 = validateParameter(valid_623429, JString, required = false, default = nil) if valid_623429 != nil: - section.add "X-Amz-Date", valid_623429 - var valid_623430 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623429 + var valid_623430 = header.getOrDefault("X-Amz-Content-Sha256") valid_623430 = validateParameter(valid_623430, JString, required = false, default = nil) if valid_623430 != nil: - section.add "X-Amz-Credential", valid_623430 - var valid_623431 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623430 + var valid_623431 = header.getOrDefault("X-Amz-Date") valid_623431 = validateParameter(valid_623431, JString, required = false, default = nil) if valid_623431 != nil: - section.add "X-Amz-Security-Token", valid_623431 - var valid_623432 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623431 + var valid_623432 = header.getOrDefault("X-Amz-Credential") valid_623432 = validateParameter(valid_623432, JString, required = false, default = nil) if valid_623432 != nil: - section.add "X-Amz-Algorithm", valid_623432 - var valid_623433 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623432 + var valid_623433 = header.getOrDefault("X-Amz-Security-Token") valid_623433 = validateParameter(valid_623433, JString, required = false, default = nil) if valid_623433 != nil: - section.add "X-Amz-SignedHeaders", valid_623433 + section.add "X-Amz-Security-Token", valid_623433 + var valid_623434 = header.getOrDefault("X-Amz-Algorithm") + valid_623434 = validateParameter(valid_623434, JString, required = false, + default = nil) + if valid_623434 != nil: + section.add "X-Amz-Algorithm", valid_623434 + var valid_623435 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623435 = validateParameter(valid_623435, JString, required = false, + default = nil) + if valid_623435 != nil: + section.add "X-Amz-SignedHeaders", valid_623435 result.add "header", section ## parameters in `formData` object: ## LaunchSpecification.InstanceInitiatedShutdownBehavior: JString @@ -100931,98 +100958,98 @@ proc validate_PostImportInstance_623423(path: JsonNode; query: JsonNode; ## : Describes the launch specification for VM import. ## The security group names. section = newJObject() - var valid_623434 = formData.getOrDefault("LaunchSpecification.InstanceInitiatedShutdownBehavior") - valid_623434 = validateParameter(valid_623434, JString, required = false, - default = nil) - if valid_623434 != nil: - section.add "LaunchSpecification.InstanceInitiatedShutdownBehavior", valid_623434 - var valid_623435 = formData.getOrDefault("LaunchSpecification.Monitoring") - valid_623435 = validateParameter(valid_623435, JString, required = false, - default = nil) - if valid_623435 != nil: - section.add "LaunchSpecification.Monitoring", valid_623435 - var valid_623436 = formData.getOrDefault("LaunchSpecification.PrivateIpAddress") + var valid_623436 = formData.getOrDefault("LaunchSpecification.InstanceInitiatedShutdownBehavior") valid_623436 = validateParameter(valid_623436, JString, required = false, default = nil) if valid_623436 != nil: - section.add "LaunchSpecification.PrivateIpAddress", valid_623436 - var valid_623437 = formData.getOrDefault("Description") + section.add "LaunchSpecification.InstanceInitiatedShutdownBehavior", valid_623436 + var valid_623437 = formData.getOrDefault("LaunchSpecification.Monitoring") valid_623437 = validateParameter(valid_623437, JString, required = false, default = nil) if valid_623437 != nil: - section.add "Description", valid_623437 - var valid_623438 = formData.getOrDefault("DiskImage") - valid_623438 = validateParameter(valid_623438, JArray, required = false, + section.add "LaunchSpecification.Monitoring", valid_623437 + var valid_623438 = formData.getOrDefault("LaunchSpecification.PrivateIpAddress") + valid_623438 = validateParameter(valid_623438, JString, required = false, default = nil) if valid_623438 != nil: - section.add "DiskImage", valid_623438 - var valid_623439 = formData.getOrDefault("LaunchSpecification.SubnetId") + section.add "LaunchSpecification.PrivateIpAddress", valid_623438 + var valid_623439 = formData.getOrDefault("Description") valid_623439 = validateParameter(valid_623439, JString, required = false, default = nil) if valid_623439 != nil: - section.add "LaunchSpecification.SubnetId", valid_623439 - var valid_623440 = formData.getOrDefault("Platform") - valid_623440 = validateParameter(valid_623440, JString, required = true, - default = newJString("Windows")) + section.add "Description", valid_623439 + var valid_623440 = formData.getOrDefault("DiskImage") + valid_623440 = validateParameter(valid_623440, JArray, required = false, + default = nil) if valid_623440 != nil: - section.add "Platform", valid_623440 - var valid_623441 = formData.getOrDefault("LaunchSpecification.UserData") + section.add "DiskImage", valid_623440 + var valid_623441 = formData.getOrDefault("LaunchSpecification.SubnetId") valid_623441 = validateParameter(valid_623441, JString, required = false, default = nil) if valid_623441 != nil: - section.add "LaunchSpecification.UserData", valid_623441 - var valid_623442 = formData.getOrDefault("LaunchSpecification.Architecture") - valid_623442 = validateParameter(valid_623442, JString, required = false, - default = nil) + section.add "LaunchSpecification.SubnetId", valid_623441 + var valid_623442 = formData.getOrDefault("Platform") + valid_623442 = validateParameter(valid_623442, JString, required = true, + default = newJString("Windows")) if valid_623442 != nil: - section.add "LaunchSpecification.Architecture", valid_623442 - var valid_623443 = formData.getOrDefault("LaunchSpecification.AdditionalInfo") + section.add "Platform", valid_623442 + var valid_623443 = formData.getOrDefault("LaunchSpecification.UserData") valid_623443 = validateParameter(valid_623443, JString, required = false, default = nil) if valid_623443 != nil: - section.add "LaunchSpecification.AdditionalInfo", valid_623443 - var valid_623444 = formData.getOrDefault("DryRun") - valid_623444 = validateParameter(valid_623444, JBool, required = false, default = nil) + section.add "LaunchSpecification.UserData", valid_623443 + var valid_623444 = formData.getOrDefault("LaunchSpecification.Architecture") + valid_623444 = validateParameter(valid_623444, JString, required = false, + default = nil) if valid_623444 != nil: - section.add "DryRun", valid_623444 - var valid_623445 = formData.getOrDefault("LaunchSpecification.Placement") + section.add "LaunchSpecification.Architecture", valid_623444 + var valid_623445 = formData.getOrDefault("LaunchSpecification.AdditionalInfo") valid_623445 = validateParameter(valid_623445, JString, required = false, default = nil) if valid_623445 != nil: - section.add "LaunchSpecification.Placement", valid_623445 - var valid_623446 = formData.getOrDefault("LaunchSpecification.InstanceType") - valid_623446 = validateParameter(valid_623446, JString, required = false, - default = nil) + section.add "LaunchSpecification.AdditionalInfo", valid_623445 + var valid_623446 = formData.getOrDefault("DryRun") + valid_623446 = validateParameter(valid_623446, JBool, required = false, default = nil) if valid_623446 != nil: - section.add "LaunchSpecification.InstanceType", valid_623446 - var valid_623447 = formData.getOrDefault("LaunchSpecification.GroupIds") - valid_623447 = validateParameter(valid_623447, JArray, required = false, + section.add "DryRun", valid_623446 + var valid_623447 = formData.getOrDefault("LaunchSpecification.Placement") + valid_623447 = validateParameter(valid_623447, JString, required = false, default = nil) if valid_623447 != nil: - section.add "LaunchSpecification.GroupIds", valid_623447 - var valid_623448 = formData.getOrDefault("LaunchSpecification.GroupNames") - valid_623448 = validateParameter(valid_623448, JArray, required = false, + section.add "LaunchSpecification.Placement", valid_623447 + var valid_623448 = formData.getOrDefault("LaunchSpecification.InstanceType") + valid_623448 = validateParameter(valid_623448, JString, required = false, default = nil) if valid_623448 != nil: - section.add "LaunchSpecification.GroupNames", valid_623448 + section.add "LaunchSpecification.InstanceType", valid_623448 + var valid_623449 = formData.getOrDefault("LaunchSpecification.GroupIds") + valid_623449 = validateParameter(valid_623449, JArray, required = false, + default = nil) + if valid_623449 != nil: + section.add "LaunchSpecification.GroupIds", valid_623449 + var valid_623450 = formData.getOrDefault("LaunchSpecification.GroupNames") + valid_623450 = validateParameter(valid_623450, JArray, required = false, + default = nil) + if valid_623450 != nil: + section.add "LaunchSpecification.GroupNames", valid_623450 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623449: Call_PostImportInstance_623422; path: JsonNode; +proc call*(call_623451: Call_PostImportInstance_623424; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Creates an import instance task using metadata from the specified disk image. ImportInstance only supports single-volume VMs. To import multi-volume VMs, use ImportImage. For more information, see Importing a Virtual Machine Using the Amazon EC2 CLI.

    For information about the import manifest referenced by this API action, see VM Import Manifest.

    ## - let valid = call_623449.validator(path, query, header, formData, body) - let scheme = call_623449.pickScheme + let valid = call_623451.validator(path, query, header, formData, body) + let scheme = call_623451.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623449.url(scheme.get, call_623449.host, call_623449.base, - call_623449.route, valid.getOrDefault("path"), + let url = call_623451.url(scheme.get, call_623451.host, call_623451.base, + call_623451.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623449, url, valid) + result = atozHook(call_623451, url, valid) -proc call*(call_623450: Call_PostImportInstance_623422; +proc call*(call_623452: Call_PostImportInstance_623424; LaunchSpecificationInstanceInitiatedShutdownBehavior: string = ""; LaunchSpecificationMonitoring: string = ""; LaunchSpecificationPrivateIpAddress: string = ""; @@ -101083,49 +101110,49 @@ proc call*(call_623450: Call_PostImportInstance_623422; ## : Describes the launch specification for VM import. ## The security group names. ## Version: string (required) - var query_623451 = newJObject() - var formData_623452 = newJObject() - add(formData_623452, "LaunchSpecification.InstanceInitiatedShutdownBehavior", + var query_623453 = newJObject() + var formData_623454 = newJObject() + add(formData_623454, "LaunchSpecification.InstanceInitiatedShutdownBehavior", newJString(LaunchSpecificationInstanceInitiatedShutdownBehavior)) - add(formData_623452, "LaunchSpecification.Monitoring", + add(formData_623454, "LaunchSpecification.Monitoring", newJString(LaunchSpecificationMonitoring)) - add(formData_623452, "LaunchSpecification.PrivateIpAddress", + add(formData_623454, "LaunchSpecification.PrivateIpAddress", newJString(LaunchSpecificationPrivateIpAddress)) - add(formData_623452, "Description", newJString(Description)) + add(formData_623454, "Description", newJString(Description)) if DiskImage != nil: - formData_623452.add "DiskImage", DiskImage - add(formData_623452, "LaunchSpecification.SubnetId", + formData_623454.add "DiskImage", DiskImage + add(formData_623454, "LaunchSpecification.SubnetId", newJString(LaunchSpecificationSubnetId)) - add(formData_623452, "Platform", newJString(Platform)) - add(formData_623452, "LaunchSpecification.UserData", + add(formData_623454, "Platform", newJString(Platform)) + add(formData_623454, "LaunchSpecification.UserData", newJString(LaunchSpecificationUserData)) - add(formData_623452, "LaunchSpecification.Architecture", + add(formData_623454, "LaunchSpecification.Architecture", newJString(LaunchSpecificationArchitecture)) - add(formData_623452, "LaunchSpecification.AdditionalInfo", + add(formData_623454, "LaunchSpecification.AdditionalInfo", newJString(LaunchSpecificationAdditionalInfo)) - add(formData_623452, "DryRun", newJBool(DryRun)) - add(formData_623452, "LaunchSpecification.Placement", + add(formData_623454, "DryRun", newJBool(DryRun)) + add(formData_623454, "LaunchSpecification.Placement", newJString(LaunchSpecificationPlacement)) - add(formData_623452, "LaunchSpecification.InstanceType", + add(formData_623454, "LaunchSpecification.InstanceType", newJString(LaunchSpecificationInstanceType)) - add(query_623451, "Action", newJString(Action)) + add(query_623453, "Action", newJString(Action)) if LaunchSpecificationGroupIds != nil: - formData_623452.add "LaunchSpecification.GroupIds", + formData_623454.add "LaunchSpecification.GroupIds", LaunchSpecificationGroupIds if LaunchSpecificationGroupNames != nil: - formData_623452.add "LaunchSpecification.GroupNames", + formData_623454.add "LaunchSpecification.GroupNames", LaunchSpecificationGroupNames - add(query_623451, "Version", newJString(Version)) - result = call_623450.call(nil, query_623451, nil, formData_623452, nil) + add(query_623453, "Version", newJString(Version)) + result = call_623452.call(nil, query_623453, nil, formData_623454, nil) -var postImportInstance* = Call_PostImportInstance_623422( +var postImportInstance* = Call_PostImportInstance_623424( name: "postImportInstance", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ImportInstance", - validator: validate_PostImportInstance_623423, base: "/", - url: url_PostImportInstance_623424, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostImportInstance_623425, base: "/", + url: url_PostImportInstance_623426, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetImportInstance_623392 = ref object of OpenApiRestCall_610658 -proc url_GetImportInstance_623394(protocol: Scheme; host: string; base: string; + Call_GetImportInstance_623394 = ref object of OpenApiRestCall_610658 +proc url_GetImportInstance_623396(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -101135,7 +101162,7 @@ proc url_GetImportInstance_623394(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetImportInstance_623393(path: JsonNode; query: JsonNode; +proc validate_GetImportInstance_623395(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Creates an import instance task using metadata from the specified disk image. ImportInstance only supports single-volume VMs. To import multi-volume VMs, use ImportImage. For more information, see Importing a Virtual Machine Using the Amazon EC2 CLI.

    For information about the import manifest referenced by this API action, see VM Import Manifest.

    @@ -101190,90 +101217,90 @@ proc validate_GetImportInstance_623393(path: JsonNode; query: JsonNode; ## : Describes the launch specification for VM import. ## The architecture of the instance. section = newJObject() - var valid_623395 = query.getOrDefault("LaunchSpecification.AdditionalInfo") - valid_623395 = validateParameter(valid_623395, JString, required = false, - default = nil) - if valid_623395 != nil: - section.add "LaunchSpecification.AdditionalInfo", valid_623395 - var valid_623396 = query.getOrDefault("LaunchSpecification.InstanceType") - valid_623396 = validateParameter(valid_623396, JString, required = false, - default = nil) - if valid_623396 != nil: - section.add "LaunchSpecification.InstanceType", valid_623396 - var valid_623397 = query.getOrDefault("LaunchSpecification.SubnetId") + var valid_623397 = query.getOrDefault("LaunchSpecification.AdditionalInfo") valid_623397 = validateParameter(valid_623397, JString, required = false, default = nil) if valid_623397 != nil: - section.add "LaunchSpecification.SubnetId", valid_623397 - var valid_623398 = query.getOrDefault("LaunchSpecification.GroupIds") - valid_623398 = validateParameter(valid_623398, JArray, required = false, + section.add "LaunchSpecification.AdditionalInfo", valid_623397 + var valid_623398 = query.getOrDefault("LaunchSpecification.InstanceType") + valid_623398 = validateParameter(valid_623398, JString, required = false, default = nil) if valid_623398 != nil: - section.add "LaunchSpecification.GroupIds", valid_623398 - var valid_623399 = query.getOrDefault("DryRun") - valid_623399 = validateParameter(valid_623399, JBool, required = false, default = nil) + section.add "LaunchSpecification.InstanceType", valid_623398 + var valid_623399 = query.getOrDefault("LaunchSpecification.SubnetId") + valid_623399 = validateParameter(valid_623399, JString, required = false, + default = nil) if valid_623399 != nil: - section.add "DryRun", valid_623399 - var valid_623400 = query.getOrDefault("LaunchSpecification.GroupNames") + section.add "LaunchSpecification.SubnetId", valid_623399 + var valid_623400 = query.getOrDefault("LaunchSpecification.GroupIds") valid_623400 = validateParameter(valid_623400, JArray, required = false, default = nil) if valid_623400 != nil: - section.add "LaunchSpecification.GroupNames", valid_623400 - var valid_623401 = query.getOrDefault("Platform") - valid_623401 = validateParameter(valid_623401, JString, required = true, - default = newJString("Windows")) + section.add "LaunchSpecification.GroupIds", valid_623400 + var valid_623401 = query.getOrDefault("DryRun") + valid_623401 = validateParameter(valid_623401, JBool, required = false, default = nil) if valid_623401 != nil: - section.add "Platform", valid_623401 - var valid_623402 = query.getOrDefault("LaunchSpecification.PrivateIpAddress") - valid_623402 = validateParameter(valid_623402, JString, required = false, + section.add "DryRun", valid_623401 + var valid_623402 = query.getOrDefault("LaunchSpecification.GroupNames") + valid_623402 = validateParameter(valid_623402, JArray, required = false, default = nil) if valid_623402 != nil: - section.add "LaunchSpecification.PrivateIpAddress", valid_623402 - var valid_623403 = query.getOrDefault("LaunchSpecification.UserData") - valid_623403 = validateParameter(valid_623403, JString, required = false, - default = nil) + section.add "LaunchSpecification.GroupNames", valid_623402 + var valid_623403 = query.getOrDefault("Platform") + valid_623403 = validateParameter(valid_623403, JString, required = true, + default = newJString("Windows")) if valid_623403 != nil: - section.add "LaunchSpecification.UserData", valid_623403 - var valid_623404 = query.getOrDefault("DiskImage") - valid_623404 = validateParameter(valid_623404, JArray, required = false, + section.add "Platform", valid_623403 + var valid_623404 = query.getOrDefault("LaunchSpecification.PrivateIpAddress") + valid_623404 = validateParameter(valid_623404, JString, required = false, default = nil) if valid_623404 != nil: - section.add "DiskImage", valid_623404 - var valid_623405 = query.getOrDefault("LaunchSpecification.InstanceInitiatedShutdownBehavior") + section.add "LaunchSpecification.PrivateIpAddress", valid_623404 + var valid_623405 = query.getOrDefault("LaunchSpecification.UserData") valid_623405 = validateParameter(valid_623405, JString, required = false, default = nil) if valid_623405 != nil: - section.add "LaunchSpecification.InstanceInitiatedShutdownBehavior", valid_623405 - var valid_623406 = query.getOrDefault("Action") - valid_623406 = validateParameter(valid_623406, JString, required = true, - default = newJString("ImportInstance")) + section.add "LaunchSpecification.UserData", valid_623405 + var valid_623406 = query.getOrDefault("DiskImage") + valid_623406 = validateParameter(valid_623406, JArray, required = false, + default = nil) if valid_623406 != nil: - section.add "Action", valid_623406 - var valid_623407 = query.getOrDefault("Description") + section.add "DiskImage", valid_623406 + var valid_623407 = query.getOrDefault("LaunchSpecification.InstanceInitiatedShutdownBehavior") valid_623407 = validateParameter(valid_623407, JString, required = false, default = nil) if valid_623407 != nil: - section.add "Description", valid_623407 - var valid_623408 = query.getOrDefault("LaunchSpecification.Monitoring") - valid_623408 = validateParameter(valid_623408, JString, required = false, - default = nil) + section.add "LaunchSpecification.InstanceInitiatedShutdownBehavior", valid_623407 + var valid_623408 = query.getOrDefault("Action") + valid_623408 = validateParameter(valid_623408, JString, required = true, + default = newJString("ImportInstance")) if valid_623408 != nil: - section.add "LaunchSpecification.Monitoring", valid_623408 - var valid_623409 = query.getOrDefault("LaunchSpecification.Placement") + section.add "Action", valid_623408 + var valid_623409 = query.getOrDefault("Description") valid_623409 = validateParameter(valid_623409, JString, required = false, default = nil) if valid_623409 != nil: - section.add "LaunchSpecification.Placement", valid_623409 - var valid_623410 = query.getOrDefault("Version") - valid_623410 = validateParameter(valid_623410, JString, required = true, - default = newJString("2016-11-15")) + section.add "Description", valid_623409 + var valid_623410 = query.getOrDefault("LaunchSpecification.Monitoring") + valid_623410 = validateParameter(valid_623410, JString, required = false, + default = nil) if valid_623410 != nil: - section.add "Version", valid_623410 - var valid_623411 = query.getOrDefault("LaunchSpecification.Architecture") + section.add "LaunchSpecification.Monitoring", valid_623410 + var valid_623411 = query.getOrDefault("LaunchSpecification.Placement") valid_623411 = validateParameter(valid_623411, JString, required = false, default = nil) if valid_623411 != nil: - section.add "LaunchSpecification.Architecture", valid_623411 + section.add "LaunchSpecification.Placement", valid_623411 + var valid_623412 = query.getOrDefault("Version") + valid_623412 = validateParameter(valid_623412, JString, required = true, + default = newJString("2016-11-15")) + if valid_623412 != nil: + section.add "Version", valid_623412 + var valid_623413 = query.getOrDefault("LaunchSpecification.Architecture") + valid_623413 = validateParameter(valid_623413, JString, required = false, + default = nil) + if valid_623413 != nil: + section.add "LaunchSpecification.Architecture", valid_623413 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -101284,61 +101311,61 @@ proc validate_GetImportInstance_623393(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623412 = header.getOrDefault("X-Amz-Signature") - valid_623412 = validateParameter(valid_623412, JString, required = false, - default = nil) - if valid_623412 != nil: - section.add "X-Amz-Signature", valid_623412 - var valid_623413 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623413 = validateParameter(valid_623413, JString, required = false, - default = nil) - if valid_623413 != nil: - section.add "X-Amz-Content-Sha256", valid_623413 - var valid_623414 = header.getOrDefault("X-Amz-Date") + var valid_623414 = header.getOrDefault("X-Amz-Signature") valid_623414 = validateParameter(valid_623414, JString, required = false, default = nil) if valid_623414 != nil: - section.add "X-Amz-Date", valid_623414 - var valid_623415 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623414 + var valid_623415 = header.getOrDefault("X-Amz-Content-Sha256") valid_623415 = validateParameter(valid_623415, JString, required = false, default = nil) if valid_623415 != nil: - section.add "X-Amz-Credential", valid_623415 - var valid_623416 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623415 + var valid_623416 = header.getOrDefault("X-Amz-Date") valid_623416 = validateParameter(valid_623416, JString, required = false, default = nil) if valid_623416 != nil: - section.add "X-Amz-Security-Token", valid_623416 - var valid_623417 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623416 + var valid_623417 = header.getOrDefault("X-Amz-Credential") valid_623417 = validateParameter(valid_623417, JString, required = false, default = nil) if valid_623417 != nil: - section.add "X-Amz-Algorithm", valid_623417 - var valid_623418 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623417 + var valid_623418 = header.getOrDefault("X-Amz-Security-Token") valid_623418 = validateParameter(valid_623418, JString, required = false, default = nil) if valid_623418 != nil: - section.add "X-Amz-SignedHeaders", valid_623418 + section.add "X-Amz-Security-Token", valid_623418 + var valid_623419 = header.getOrDefault("X-Amz-Algorithm") + valid_623419 = validateParameter(valid_623419, JString, required = false, + default = nil) + if valid_623419 != nil: + section.add "X-Amz-Algorithm", valid_623419 + var valid_623420 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623420 = validateParameter(valid_623420, JString, required = false, + default = nil) + if valid_623420 != nil: + section.add "X-Amz-SignedHeaders", valid_623420 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623419: Call_GetImportInstance_623392; path: JsonNode; +proc call*(call_623421: Call_GetImportInstance_623394; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Creates an import instance task using metadata from the specified disk image. ImportInstance only supports single-volume VMs. To import multi-volume VMs, use ImportImage. For more information, see Importing a Virtual Machine Using the Amazon EC2 CLI.

    For information about the import manifest referenced by this API action, see VM Import Manifest.

    ## - let valid = call_623419.validator(path, query, header, formData, body) - let scheme = call_623419.pickScheme + let valid = call_623421.validator(path, query, header, formData, body) + let scheme = call_623421.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623419.url(scheme.get, call_623419.host, call_623419.base, - call_623419.route, valid.getOrDefault("path"), + let url = call_623421.url(scheme.get, call_623421.host, call_623421.base, + call_623421.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623419, url, valid) + result = atozHook(call_623421, url, valid) -proc call*(call_623420: Call_GetImportInstance_623392; +proc call*(call_623422: Call_GetImportInstance_623394; LaunchSpecificationAdditionalInfo: string = ""; LaunchSpecificationInstanceType: string = ""; LaunchSpecificationSubnetId: string = ""; @@ -101398,47 +101425,47 @@ proc call*(call_623420: Call_GetImportInstance_623392; ## LaunchSpecificationArchitecture: string ## : Describes the launch specification for VM import. ## The architecture of the instance. - var query_623421 = newJObject() - add(query_623421, "LaunchSpecification.AdditionalInfo", + var query_623423 = newJObject() + add(query_623423, "LaunchSpecification.AdditionalInfo", newJString(LaunchSpecificationAdditionalInfo)) - add(query_623421, "LaunchSpecification.InstanceType", + add(query_623423, "LaunchSpecification.InstanceType", newJString(LaunchSpecificationInstanceType)) - add(query_623421, "LaunchSpecification.SubnetId", + add(query_623423, "LaunchSpecification.SubnetId", newJString(LaunchSpecificationSubnetId)) if LaunchSpecificationGroupIds != nil: - query_623421.add "LaunchSpecification.GroupIds", LaunchSpecificationGroupIds - add(query_623421, "DryRun", newJBool(DryRun)) + query_623423.add "LaunchSpecification.GroupIds", LaunchSpecificationGroupIds + add(query_623423, "DryRun", newJBool(DryRun)) if LaunchSpecificationGroupNames != nil: - query_623421.add "LaunchSpecification.GroupNames", + query_623423.add "LaunchSpecification.GroupNames", LaunchSpecificationGroupNames - add(query_623421, "Platform", newJString(Platform)) - add(query_623421, "LaunchSpecification.PrivateIpAddress", + add(query_623423, "Platform", newJString(Platform)) + add(query_623423, "LaunchSpecification.PrivateIpAddress", newJString(LaunchSpecificationPrivateIpAddress)) - add(query_623421, "LaunchSpecification.UserData", + add(query_623423, "LaunchSpecification.UserData", newJString(LaunchSpecificationUserData)) if DiskImage != nil: - query_623421.add "DiskImage", DiskImage - add(query_623421, "LaunchSpecification.InstanceInitiatedShutdownBehavior", + query_623423.add "DiskImage", DiskImage + add(query_623423, "LaunchSpecification.InstanceInitiatedShutdownBehavior", newJString(LaunchSpecificationInstanceInitiatedShutdownBehavior)) - add(query_623421, "Action", newJString(Action)) - add(query_623421, "Description", newJString(Description)) - add(query_623421, "LaunchSpecification.Monitoring", + add(query_623423, "Action", newJString(Action)) + add(query_623423, "Description", newJString(Description)) + add(query_623423, "LaunchSpecification.Monitoring", newJString(LaunchSpecificationMonitoring)) - add(query_623421, "LaunchSpecification.Placement", + add(query_623423, "LaunchSpecification.Placement", newJString(LaunchSpecificationPlacement)) - add(query_623421, "Version", newJString(Version)) - add(query_623421, "LaunchSpecification.Architecture", + add(query_623423, "Version", newJString(Version)) + add(query_623423, "LaunchSpecification.Architecture", newJString(LaunchSpecificationArchitecture)) - result = call_623420.call(nil, query_623421, nil, nil, nil) + result = call_623422.call(nil, query_623423, nil, nil, nil) -var getImportInstance* = Call_GetImportInstance_623392(name: "getImportInstance", +var getImportInstance* = Call_GetImportInstance_623394(name: "getImportInstance", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=ImportInstance", validator: validate_GetImportInstance_623393, - base: "/", url: url_GetImportInstance_623394, + route: "/#Action=ImportInstance", validator: validate_GetImportInstance_623395, + base: "/", url: url_GetImportInstance_623396, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostImportKeyPair_623471 = ref object of OpenApiRestCall_610658 -proc url_PostImportKeyPair_623473(protocol: Scheme; host: string; base: string; + Call_PostImportKeyPair_623473 = ref object of OpenApiRestCall_610658 +proc url_PostImportKeyPair_623475(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -101448,7 +101475,7 @@ proc url_PostImportKeyPair_623473(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostImportKeyPair_623472(path: JsonNode; query: JsonNode; +proc validate_PostImportKeyPair_623474(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Imports the public key from an RSA key pair that you created with a third-party tool. Compare this with CreateKeyPair, in which AWS creates the key pair and gives the keys to you (AWS keeps a copy of the public key). With ImportKeyPair, you create the key pair and give AWS just the public key. The private key is never transferred between you and AWS.

    For more information about key pairs, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.

    @@ -101461,16 +101488,16 @@ proc validate_PostImportKeyPair_623472(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_623474 = query.getOrDefault("Action") - valid_623474 = validateParameter(valid_623474, JString, required = true, + var valid_623476 = query.getOrDefault("Action") + valid_623476 = validateParameter(valid_623476, JString, required = true, default = newJString("ImportKeyPair")) - if valid_623474 != nil: - section.add "Action", valid_623474 - var valid_623475 = query.getOrDefault("Version") - valid_623475 = validateParameter(valid_623475, JString, required = true, + if valid_623476 != nil: + section.add "Action", valid_623476 + var valid_623477 = query.getOrDefault("Version") + valid_623477 = validateParameter(valid_623477, JString, required = true, default = newJString("2016-11-15")) - if valid_623475 != nil: - section.add "Version", valid_623475 + if valid_623477 != nil: + section.add "Version", valid_623477 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -101481,41 +101508,41 @@ proc validate_PostImportKeyPair_623472(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623476 = header.getOrDefault("X-Amz-Signature") - valid_623476 = validateParameter(valid_623476, JString, required = false, - default = nil) - if valid_623476 != nil: - section.add "X-Amz-Signature", valid_623476 - var valid_623477 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623477 = validateParameter(valid_623477, JString, required = false, - default = nil) - if valid_623477 != nil: - section.add "X-Amz-Content-Sha256", valid_623477 - var valid_623478 = header.getOrDefault("X-Amz-Date") + var valid_623478 = header.getOrDefault("X-Amz-Signature") valid_623478 = validateParameter(valid_623478, JString, required = false, default = nil) if valid_623478 != nil: - section.add "X-Amz-Date", valid_623478 - var valid_623479 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623478 + var valid_623479 = header.getOrDefault("X-Amz-Content-Sha256") valid_623479 = validateParameter(valid_623479, JString, required = false, default = nil) if valid_623479 != nil: - section.add "X-Amz-Credential", valid_623479 - var valid_623480 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623479 + var valid_623480 = header.getOrDefault("X-Amz-Date") valid_623480 = validateParameter(valid_623480, JString, required = false, default = nil) if valid_623480 != nil: - section.add "X-Amz-Security-Token", valid_623480 - var valid_623481 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623480 + var valid_623481 = header.getOrDefault("X-Amz-Credential") valid_623481 = validateParameter(valid_623481, JString, required = false, default = nil) if valid_623481 != nil: - section.add "X-Amz-Algorithm", valid_623481 - var valid_623482 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623481 + var valid_623482 = header.getOrDefault("X-Amz-Security-Token") valid_623482 = validateParameter(valid_623482, JString, required = false, default = nil) if valid_623482 != nil: - section.add "X-Amz-SignedHeaders", valid_623482 + section.add "X-Amz-Security-Token", valid_623482 + var valid_623483 = header.getOrDefault("X-Amz-Algorithm") + valid_623483 = validateParameter(valid_623483, JString, required = false, + default = nil) + if valid_623483 != nil: + section.add "X-Amz-Algorithm", valid_623483 + var valid_623484 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623484 = validateParameter(valid_623484, JString, required = false, + default = nil) + if valid_623484 != nil: + section.add "X-Amz-SignedHeaders", valid_623484 result.add "header", section ## parameters in `formData` object: ## KeyName: JString (required) @@ -101527,38 +101554,38 @@ proc validate_PostImportKeyPair_623472(path: JsonNode; query: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `KeyName` field" - var valid_623483 = formData.getOrDefault("KeyName") - valid_623483 = validateParameter(valid_623483, JString, required = true, - default = nil) - if valid_623483 != nil: - section.add "KeyName", valid_623483 - var valid_623484 = formData.getOrDefault("PublicKeyMaterial") - valid_623484 = validateParameter(valid_623484, JString, required = true, + var valid_623485 = formData.getOrDefault("KeyName") + valid_623485 = validateParameter(valid_623485, JString, required = true, default = nil) - if valid_623484 != nil: - section.add "PublicKeyMaterial", valid_623484 - var valid_623485 = formData.getOrDefault("DryRun") - valid_623485 = validateParameter(valid_623485, JBool, required = false, default = nil) if valid_623485 != nil: - section.add "DryRun", valid_623485 + section.add "KeyName", valid_623485 + var valid_623486 = formData.getOrDefault("PublicKeyMaterial") + valid_623486 = validateParameter(valid_623486, JString, required = true, + default = nil) + if valid_623486 != nil: + section.add "PublicKeyMaterial", valid_623486 + var valid_623487 = formData.getOrDefault("DryRun") + valid_623487 = validateParameter(valid_623487, JBool, required = false, default = nil) + if valid_623487 != nil: + section.add "DryRun", valid_623487 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623486: Call_PostImportKeyPair_623471; path: JsonNode; +proc call*(call_623488: Call_PostImportKeyPair_623473; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Imports the public key from an RSA key pair that you created with a third-party tool. Compare this with CreateKeyPair, in which AWS creates the key pair and gives the keys to you (AWS keeps a copy of the public key). With ImportKeyPair, you create the key pair and give AWS just the public key. The private key is never transferred between you and AWS.

    For more information about key pairs, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_623486.validator(path, query, header, formData, body) - let scheme = call_623486.pickScheme + let valid = call_623488.validator(path, query, header, formData, body) + let scheme = call_623488.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623486.url(scheme.get, call_623486.host, call_623486.base, - call_623486.route, valid.getOrDefault("path"), + let url = call_623488.url(scheme.get, call_623488.host, call_623488.base, + call_623488.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623486, url, valid) + result = atozHook(call_623488, url, valid) -proc call*(call_623487: Call_PostImportKeyPair_623471; KeyName: string; +proc call*(call_623489: Call_PostImportKeyPair_623473; KeyName: string; PublicKeyMaterial: string; DryRun: bool = false; Action: string = "ImportKeyPair"; Version: string = "2016-11-15"): Recallable = ## postImportKeyPair @@ -101571,23 +101598,23 @@ proc call*(call_623487: Call_PostImportKeyPair_623471; KeyName: string; ## : 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. ## Action: string (required) ## Version: string (required) - var query_623488 = newJObject() - var formData_623489 = newJObject() - add(formData_623489, "KeyName", newJString(KeyName)) - add(formData_623489, "PublicKeyMaterial", newJString(PublicKeyMaterial)) - add(formData_623489, "DryRun", newJBool(DryRun)) - add(query_623488, "Action", newJString(Action)) - add(query_623488, "Version", newJString(Version)) - result = call_623487.call(nil, query_623488, nil, formData_623489, nil) + var query_623490 = newJObject() + var formData_623491 = newJObject() + add(formData_623491, "KeyName", newJString(KeyName)) + add(formData_623491, "PublicKeyMaterial", newJString(PublicKeyMaterial)) + add(formData_623491, "DryRun", newJBool(DryRun)) + add(query_623490, "Action", newJString(Action)) + add(query_623490, "Version", newJString(Version)) + result = call_623489.call(nil, query_623490, nil, formData_623491, nil) -var postImportKeyPair* = Call_PostImportKeyPair_623471(name: "postImportKeyPair", +var postImportKeyPair* = Call_PostImportKeyPair_623473(name: "postImportKeyPair", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", - route: "/#Action=ImportKeyPair", validator: validate_PostImportKeyPair_623472, - base: "/", url: url_PostImportKeyPair_623473, + route: "/#Action=ImportKeyPair", validator: validate_PostImportKeyPair_623474, + base: "/", url: url_PostImportKeyPair_623475, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetImportKeyPair_623453 = ref object of OpenApiRestCall_610658 -proc url_GetImportKeyPair_623455(protocol: Scheme; host: string; base: string; + Call_GetImportKeyPair_623455 = ref object of OpenApiRestCall_610658 +proc url_GetImportKeyPair_623457(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -101597,7 +101624,7 @@ proc url_GetImportKeyPair_623455(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetImportKeyPair_623454(path: JsonNode; query: JsonNode; +proc validate_GetImportKeyPair_623456(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Imports the public key from an RSA key pair that you created with a third-party tool. Compare this with CreateKeyPair, in which AWS creates the key pair and gives the keys to you (AWS keeps a copy of the public key). With ImportKeyPair, you create the key pair and give AWS just the public key. The private key is never transferred between you and AWS.

    For more information about key pairs, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.

    @@ -101617,30 +101644,30 @@ proc validate_GetImportKeyPair_623454(path: JsonNode; query: JsonNode; ## Version: JString (required) section = newJObject() assert query != nil, "query argument is necessary due to required `KeyName` field" - var valid_623456 = query.getOrDefault("KeyName") - valid_623456 = validateParameter(valid_623456, JString, required = true, - default = nil) - if valid_623456 != nil: - section.add "KeyName", valid_623456 - var valid_623457 = query.getOrDefault("DryRun") - valid_623457 = validateParameter(valid_623457, JBool, required = false, default = nil) - if valid_623457 != nil: - section.add "DryRun", valid_623457 - var valid_623458 = query.getOrDefault("Action") + var valid_623458 = query.getOrDefault("KeyName") valid_623458 = validateParameter(valid_623458, JString, required = true, - default = newJString("ImportKeyPair")) - if valid_623458 != nil: - section.add "Action", valid_623458 - var valid_623459 = query.getOrDefault("PublicKeyMaterial") - valid_623459 = validateParameter(valid_623459, JString, required = true, default = nil) + if valid_623458 != nil: + section.add "KeyName", valid_623458 + var valid_623459 = query.getOrDefault("DryRun") + valid_623459 = validateParameter(valid_623459, JBool, required = false, default = nil) if valid_623459 != nil: - section.add "PublicKeyMaterial", valid_623459 - var valid_623460 = query.getOrDefault("Version") + section.add "DryRun", valid_623459 + var valid_623460 = query.getOrDefault("Action") valid_623460 = validateParameter(valid_623460, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("ImportKeyPair")) if valid_623460 != nil: - section.add "Version", valid_623460 + section.add "Action", valid_623460 + var valid_623461 = query.getOrDefault("PublicKeyMaterial") + valid_623461 = validateParameter(valid_623461, JString, required = true, + default = nil) + if valid_623461 != nil: + section.add "PublicKeyMaterial", valid_623461 + var valid_623462 = query.getOrDefault("Version") + valid_623462 = validateParameter(valid_623462, JString, required = true, + default = newJString("2016-11-15")) + if valid_623462 != nil: + section.add "Version", valid_623462 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -101651,61 +101678,61 @@ proc validate_GetImportKeyPair_623454(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623461 = header.getOrDefault("X-Amz-Signature") - valid_623461 = validateParameter(valid_623461, JString, required = false, - default = nil) - if valid_623461 != nil: - section.add "X-Amz-Signature", valid_623461 - var valid_623462 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623462 = validateParameter(valid_623462, JString, required = false, - default = nil) - if valid_623462 != nil: - section.add "X-Amz-Content-Sha256", valid_623462 - var valid_623463 = header.getOrDefault("X-Amz-Date") + var valid_623463 = header.getOrDefault("X-Amz-Signature") valid_623463 = validateParameter(valid_623463, JString, required = false, default = nil) if valid_623463 != nil: - section.add "X-Amz-Date", valid_623463 - var valid_623464 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623463 + var valid_623464 = header.getOrDefault("X-Amz-Content-Sha256") valid_623464 = validateParameter(valid_623464, JString, required = false, default = nil) if valid_623464 != nil: - section.add "X-Amz-Credential", valid_623464 - var valid_623465 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623464 + var valid_623465 = header.getOrDefault("X-Amz-Date") valid_623465 = validateParameter(valid_623465, JString, required = false, default = nil) if valid_623465 != nil: - section.add "X-Amz-Security-Token", valid_623465 - var valid_623466 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623465 + var valid_623466 = header.getOrDefault("X-Amz-Credential") valid_623466 = validateParameter(valid_623466, JString, required = false, default = nil) if valid_623466 != nil: - section.add "X-Amz-Algorithm", valid_623466 - var valid_623467 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623466 + var valid_623467 = header.getOrDefault("X-Amz-Security-Token") valid_623467 = validateParameter(valid_623467, JString, required = false, default = nil) if valid_623467 != nil: - section.add "X-Amz-SignedHeaders", valid_623467 + section.add "X-Amz-Security-Token", valid_623467 + var valid_623468 = header.getOrDefault("X-Amz-Algorithm") + valid_623468 = validateParameter(valid_623468, JString, required = false, + default = nil) + if valid_623468 != nil: + section.add "X-Amz-Algorithm", valid_623468 + var valid_623469 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623469 = validateParameter(valid_623469, JString, required = false, + default = nil) + if valid_623469 != nil: + section.add "X-Amz-SignedHeaders", valid_623469 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623468: Call_GetImportKeyPair_623453; path: JsonNode; +proc call*(call_623470: Call_GetImportKeyPair_623455; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Imports the public key from an RSA key pair that you created with a third-party tool. Compare this with CreateKeyPair, in which AWS creates the key pair and gives the keys to you (AWS keeps a copy of the public key). With ImportKeyPair, you create the key pair and give AWS just the public key. The private key is never transferred between you and AWS.

    For more information about key pairs, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_623468.validator(path, query, header, formData, body) - let scheme = call_623468.pickScheme + let valid = call_623470.validator(path, query, header, formData, body) + let scheme = call_623470.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623468.url(scheme.get, call_623468.host, call_623468.base, - call_623468.route, valid.getOrDefault("path"), + let url = call_623470.url(scheme.get, call_623470.host, call_623470.base, + call_623470.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623468, url, valid) + result = atozHook(call_623470, url, valid) -proc call*(call_623469: Call_GetImportKeyPair_623453; KeyName: string; +proc call*(call_623471: Call_GetImportKeyPair_623455; KeyName: string; PublicKeyMaterial: string; DryRun: bool = false; Action: string = "ImportKeyPair"; Version: string = "2016-11-15"): Recallable = ## getImportKeyPair @@ -101718,22 +101745,22 @@ proc call*(call_623469: Call_GetImportKeyPair_623453; KeyName: string; ## PublicKeyMaterial: string (required) ## : The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is performed for you. ## Version: string (required) - var query_623470 = newJObject() - add(query_623470, "KeyName", newJString(KeyName)) - add(query_623470, "DryRun", newJBool(DryRun)) - add(query_623470, "Action", newJString(Action)) - add(query_623470, "PublicKeyMaterial", newJString(PublicKeyMaterial)) - add(query_623470, "Version", newJString(Version)) - result = call_623469.call(nil, query_623470, nil, nil, nil) + var query_623472 = newJObject() + add(query_623472, "KeyName", newJString(KeyName)) + add(query_623472, "DryRun", newJBool(DryRun)) + add(query_623472, "Action", newJString(Action)) + add(query_623472, "PublicKeyMaterial", newJString(PublicKeyMaterial)) + add(query_623472, "Version", newJString(Version)) + result = call_623471.call(nil, query_623472, nil, nil, nil) -var getImportKeyPair* = Call_GetImportKeyPair_623453(name: "getImportKeyPair", +var getImportKeyPair* = Call_GetImportKeyPair_623455(name: "getImportKeyPair", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=ImportKeyPair", validator: validate_GetImportKeyPair_623454, - base: "/", url: url_GetImportKeyPair_623455, + route: "/#Action=ImportKeyPair", validator: validate_GetImportKeyPair_623456, + base: "/", url: url_GetImportKeyPair_623457, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostImportSnapshot_623519 = ref object of OpenApiRestCall_610658 -proc url_PostImportSnapshot_623521(protocol: Scheme; host: string; base: string; + Call_PostImportSnapshot_623521 = ref object of OpenApiRestCall_610658 +proc url_PostImportSnapshot_623523(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -101743,7 +101770,7 @@ proc url_PostImportSnapshot_623521(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostImportSnapshot_623520(path: JsonNode; query: JsonNode; +proc validate_PostImportSnapshot_623522(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Imports a disk into an EBS snapshot. @@ -101756,16 +101783,16 @@ proc validate_PostImportSnapshot_623520(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_623522 = query.getOrDefault("Action") - valid_623522 = validateParameter(valid_623522, JString, required = true, + var valid_623524 = query.getOrDefault("Action") + valid_623524 = validateParameter(valid_623524, JString, required = true, default = newJString("ImportSnapshot")) - if valid_623522 != nil: - section.add "Action", valid_623522 - var valid_623523 = query.getOrDefault("Version") - valid_623523 = validateParameter(valid_623523, JString, required = true, + if valid_623524 != nil: + section.add "Action", valid_623524 + var valid_623525 = query.getOrDefault("Version") + valid_623525 = validateParameter(valid_623525, JString, required = true, default = newJString("2016-11-15")) - if valid_623523 != nil: - section.add "Version", valid_623523 + if valid_623525 != nil: + section.add "Version", valid_623525 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -101776,41 +101803,41 @@ proc validate_PostImportSnapshot_623520(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623524 = header.getOrDefault("X-Amz-Signature") - valid_623524 = validateParameter(valid_623524, JString, required = false, - default = nil) - if valid_623524 != nil: - section.add "X-Amz-Signature", valid_623524 - var valid_623525 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623525 = validateParameter(valid_623525, JString, required = false, - default = nil) - if valid_623525 != nil: - section.add "X-Amz-Content-Sha256", valid_623525 - var valid_623526 = header.getOrDefault("X-Amz-Date") + var valid_623526 = header.getOrDefault("X-Amz-Signature") valid_623526 = validateParameter(valid_623526, JString, required = false, default = nil) if valid_623526 != nil: - section.add "X-Amz-Date", valid_623526 - var valid_623527 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623526 + var valid_623527 = header.getOrDefault("X-Amz-Content-Sha256") valid_623527 = validateParameter(valid_623527, JString, required = false, default = nil) if valid_623527 != nil: - section.add "X-Amz-Credential", valid_623527 - var valid_623528 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623527 + var valid_623528 = header.getOrDefault("X-Amz-Date") valid_623528 = validateParameter(valid_623528, JString, required = false, default = nil) if valid_623528 != nil: - section.add "X-Amz-Security-Token", valid_623528 - var valid_623529 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623528 + var valid_623529 = header.getOrDefault("X-Amz-Credential") valid_623529 = validateParameter(valid_623529, JString, required = false, default = nil) if valid_623529 != nil: - section.add "X-Amz-Algorithm", valid_623529 - var valid_623530 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623529 + var valid_623530 = header.getOrDefault("X-Amz-Security-Token") valid_623530 = validateParameter(valid_623530, JString, required = false, default = nil) if valid_623530 != nil: - section.add "X-Amz-SignedHeaders", valid_623530 + section.add "X-Amz-Security-Token", valid_623530 + var valid_623531 = header.getOrDefault("X-Amz-Algorithm") + valid_623531 = validateParameter(valid_623531, JString, required = false, + default = nil) + if valid_623531 != nil: + section.add "X-Amz-Algorithm", valid_623531 + var valid_623532 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623532 = validateParameter(valid_623532, JString, required = false, + default = nil) + if valid_623532 != nil: + section.add "X-Amz-SignedHeaders", valid_623532 result.add "header", section ## parameters in `formData` object: ## DiskContainer.UserBucket: JString @@ -101853,92 +101880,92 @@ proc validate_PostImportSnapshot_623520(path: JsonNode; query: JsonNode; ## : The disk container object for the import snapshot request. ##

    The format of the disk image being imported.

    Valid values: VHD | VMDK

    section = newJObject() - var valid_623531 = formData.getOrDefault("DiskContainer.UserBucket") - valid_623531 = validateParameter(valid_623531, JString, required = false, - default = nil) - if valid_623531 != nil: - section.add "DiskContainer.UserBucket", valid_623531 - var valid_623532 = formData.getOrDefault("ClientData.UploadSize") - valid_623532 = validateParameter(valid_623532, JString, required = false, - default = nil) - if valid_623532 != nil: - section.add "ClientData.UploadSize", valid_623532 - var valid_623533 = formData.getOrDefault("ClientData.UploadStart") + var valid_623533 = formData.getOrDefault("DiskContainer.UserBucket") valid_623533 = validateParameter(valid_623533, JString, required = false, default = nil) if valid_623533 != nil: - section.add "ClientData.UploadStart", valid_623533 - var valid_623534 = formData.getOrDefault("Description") + section.add "DiskContainer.UserBucket", valid_623533 + var valid_623534 = formData.getOrDefault("ClientData.UploadSize") valid_623534 = validateParameter(valid_623534, JString, required = false, default = nil) if valid_623534 != nil: - section.add "Description", valid_623534 - var valid_623535 = formData.getOrDefault("RoleName") + section.add "ClientData.UploadSize", valid_623534 + var valid_623535 = formData.getOrDefault("ClientData.UploadStart") valid_623535 = validateParameter(valid_623535, JString, required = false, default = nil) if valid_623535 != nil: - section.add "RoleName", valid_623535 - var valid_623536 = formData.getOrDefault("KmsKeyId") + section.add "ClientData.UploadStart", valid_623535 + var valid_623536 = formData.getOrDefault("Description") valid_623536 = validateParameter(valid_623536, JString, required = false, default = nil) if valid_623536 != nil: - section.add "KmsKeyId", valid_623536 - var valid_623537 = formData.getOrDefault("DiskContainer.Description") + section.add "Description", valid_623536 + var valid_623537 = formData.getOrDefault("RoleName") valid_623537 = validateParameter(valid_623537, JString, required = false, default = nil) if valid_623537 != nil: - section.add "DiskContainer.Description", valid_623537 - var valid_623538 = formData.getOrDefault("DryRun") - valid_623538 = validateParameter(valid_623538, JBool, required = false, default = nil) + section.add "RoleName", valid_623537 + var valid_623538 = formData.getOrDefault("KmsKeyId") + valid_623538 = validateParameter(valid_623538, JString, required = false, + default = nil) if valid_623538 != nil: - section.add "DryRun", valid_623538 - var valid_623539 = formData.getOrDefault("DiskContainer.Url") + section.add "KmsKeyId", valid_623538 + var valid_623539 = formData.getOrDefault("DiskContainer.Description") valid_623539 = validateParameter(valid_623539, JString, required = false, default = nil) if valid_623539 != nil: - section.add "DiskContainer.Url", valid_623539 - var valid_623540 = formData.getOrDefault("Encrypted") + section.add "DiskContainer.Description", valid_623539 + var valid_623540 = formData.getOrDefault("DryRun") valid_623540 = validateParameter(valid_623540, JBool, required = false, default = nil) if valid_623540 != nil: - section.add "Encrypted", valid_623540 - var valid_623541 = formData.getOrDefault("ClientData.Comment") + section.add "DryRun", valid_623540 + var valid_623541 = formData.getOrDefault("DiskContainer.Url") valid_623541 = validateParameter(valid_623541, JString, required = false, default = nil) if valid_623541 != nil: - section.add "ClientData.Comment", valid_623541 - var valid_623542 = formData.getOrDefault("ClientData.UploadEnd") - valid_623542 = validateParameter(valid_623542, JString, required = false, - default = nil) + section.add "DiskContainer.Url", valid_623541 + var valid_623542 = formData.getOrDefault("Encrypted") + valid_623542 = validateParameter(valid_623542, JBool, required = false, default = nil) if valid_623542 != nil: - section.add "ClientData.UploadEnd", valid_623542 - var valid_623543 = formData.getOrDefault("ClientToken") + section.add "Encrypted", valid_623542 + var valid_623543 = formData.getOrDefault("ClientData.Comment") valid_623543 = validateParameter(valid_623543, JString, required = false, default = nil) if valid_623543 != nil: - section.add "ClientToken", valid_623543 - var valid_623544 = formData.getOrDefault("DiskContainer.Format") + section.add "ClientData.Comment", valid_623543 + var valid_623544 = formData.getOrDefault("ClientData.UploadEnd") valid_623544 = validateParameter(valid_623544, JString, required = false, default = nil) if valid_623544 != nil: - section.add "DiskContainer.Format", valid_623544 + section.add "ClientData.UploadEnd", valid_623544 + var valid_623545 = formData.getOrDefault("ClientToken") + valid_623545 = validateParameter(valid_623545, JString, required = false, + default = nil) + if valid_623545 != nil: + section.add "ClientToken", valid_623545 + var valid_623546 = formData.getOrDefault("DiskContainer.Format") + valid_623546 = validateParameter(valid_623546, JString, required = false, + default = nil) + if valid_623546 != nil: + section.add "DiskContainer.Format", valid_623546 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623545: Call_PostImportSnapshot_623519; path: JsonNode; +proc call*(call_623547: Call_PostImportSnapshot_623521; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Imports a disk into an EBS snapshot. ## - let valid = call_623545.validator(path, query, header, formData, body) - let scheme = call_623545.pickScheme + let valid = call_623547.validator(path, query, header, formData, body) + let scheme = call_623547.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623545.url(scheme.get, call_623545.host, call_623545.base, - call_623545.route, valid.getOrDefault("path"), + let url = call_623547.url(scheme.get, call_623547.host, call_623547.base, + call_623547.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623545, url, valid) + result = atozHook(call_623547, url, valid) -proc call*(call_623546: Call_PostImportSnapshot_623519; +proc call*(call_623548: Call_PostImportSnapshot_623521; DiskContainerUserBucket: string = ""; ClientDataUploadSize: string = ""; ClientDataUploadStart: string = ""; Description: string = ""; RoleName: string = ""; KmsKeyId: string = ""; @@ -101990,36 +102017,36 @@ proc call*(call_623546: Call_PostImportSnapshot_623519; ## DiskContainerFormat: string ## : The disk container object for the import snapshot request. ##

    The format of the disk image being imported.

    Valid values: VHD | VMDK

    - var query_623547 = newJObject() - var formData_623548 = newJObject() - add(formData_623548, "DiskContainer.UserBucket", + var query_623549 = newJObject() + var formData_623550 = newJObject() + add(formData_623550, "DiskContainer.UserBucket", newJString(DiskContainerUserBucket)) - add(formData_623548, "ClientData.UploadSize", newJString(ClientDataUploadSize)) - add(formData_623548, "ClientData.UploadStart", newJString(ClientDataUploadStart)) - add(formData_623548, "Description", newJString(Description)) - add(formData_623548, "RoleName", newJString(RoleName)) - add(formData_623548, "KmsKeyId", newJString(KmsKeyId)) - add(formData_623548, "DiskContainer.Description", + add(formData_623550, "ClientData.UploadSize", newJString(ClientDataUploadSize)) + add(formData_623550, "ClientData.UploadStart", newJString(ClientDataUploadStart)) + add(formData_623550, "Description", newJString(Description)) + add(formData_623550, "RoleName", newJString(RoleName)) + add(formData_623550, "KmsKeyId", newJString(KmsKeyId)) + add(formData_623550, "DiskContainer.Description", newJString(DiskContainerDescription)) - add(formData_623548, "DryRun", newJBool(DryRun)) - add(query_623547, "Action", newJString(Action)) - add(formData_623548, "DiskContainer.Url", newJString(DiskContainerUrl)) - add(formData_623548, "Encrypted", newJBool(Encrypted)) - add(query_623547, "Version", newJString(Version)) - add(formData_623548, "ClientData.Comment", newJString(ClientDataComment)) - add(formData_623548, "ClientData.UploadEnd", newJString(ClientDataUploadEnd)) - add(formData_623548, "ClientToken", newJString(ClientToken)) - add(formData_623548, "DiskContainer.Format", newJString(DiskContainerFormat)) - result = call_623546.call(nil, query_623547, nil, formData_623548, nil) - -var postImportSnapshot* = Call_PostImportSnapshot_623519( + add(formData_623550, "DryRun", newJBool(DryRun)) + add(query_623549, "Action", newJString(Action)) + add(formData_623550, "DiskContainer.Url", newJString(DiskContainerUrl)) + add(formData_623550, "Encrypted", newJBool(Encrypted)) + add(query_623549, "Version", newJString(Version)) + add(formData_623550, "ClientData.Comment", newJString(ClientDataComment)) + add(formData_623550, "ClientData.UploadEnd", newJString(ClientDataUploadEnd)) + add(formData_623550, "ClientToken", newJString(ClientToken)) + add(formData_623550, "DiskContainer.Format", newJString(DiskContainerFormat)) + result = call_623548.call(nil, query_623549, nil, formData_623550, nil) + +var postImportSnapshot* = Call_PostImportSnapshot_623521( name: "postImportSnapshot", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ImportSnapshot", - validator: validate_PostImportSnapshot_623520, base: "/", - url: url_PostImportSnapshot_623521, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostImportSnapshot_623522, base: "/", + url: url_PostImportSnapshot_623523, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetImportSnapshot_623490 = ref object of OpenApiRestCall_610658 -proc url_GetImportSnapshot_623492(protocol: Scheme; host: string; base: string; + Call_GetImportSnapshot_623492 = ref object of OpenApiRestCall_610658 +proc url_GetImportSnapshot_623494(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -102029,7 +102056,7 @@ proc url_GetImportSnapshot_623492(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetImportSnapshot_623491(path: JsonNode; query: JsonNode; +proc validate_GetImportSnapshot_623493(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Imports a disk into an EBS snapshot. @@ -102081,84 +102108,84 @@ proc validate_GetImportSnapshot_623491(path: JsonNode; query: JsonNode; ## ClientToken: JString ## : Token to enable idempotency for VM import requests. section = newJObject() - var valid_623493 = query.getOrDefault("DiskContainer.Url") - valid_623493 = validateParameter(valid_623493, JString, required = false, - default = nil) - if valid_623493 != nil: - section.add "DiskContainer.Url", valid_623493 - var valid_623494 = query.getOrDefault("Encrypted") - valid_623494 = validateParameter(valid_623494, JBool, required = false, default = nil) - if valid_623494 != nil: - section.add "Encrypted", valid_623494 - var valid_623495 = query.getOrDefault("DryRun") - valid_623495 = validateParameter(valid_623495, JBool, required = false, default = nil) - if valid_623495 != nil: - section.add "DryRun", valid_623495 - var valid_623496 = query.getOrDefault("KmsKeyId") - valid_623496 = validateParameter(valid_623496, JString, required = false, + var valid_623495 = query.getOrDefault("DiskContainer.Url") + valid_623495 = validateParameter(valid_623495, JString, required = false, default = nil) + if valid_623495 != nil: + section.add "DiskContainer.Url", valid_623495 + var valid_623496 = query.getOrDefault("Encrypted") + valid_623496 = validateParameter(valid_623496, JBool, required = false, default = nil) if valid_623496 != nil: - section.add "KmsKeyId", valid_623496 - var valid_623497 = query.getOrDefault("ClientData.UploadSize") - valid_623497 = validateParameter(valid_623497, JString, required = false, - default = nil) + section.add "Encrypted", valid_623496 + var valid_623497 = query.getOrDefault("DryRun") + valid_623497 = validateParameter(valid_623497, JBool, required = false, default = nil) if valid_623497 != nil: - section.add "ClientData.UploadSize", valid_623497 - var valid_623498 = query.getOrDefault("DiskContainer.UserBucket") + section.add "DryRun", valid_623497 + var valid_623498 = query.getOrDefault("KmsKeyId") valid_623498 = validateParameter(valid_623498, JString, required = false, default = nil) if valid_623498 != nil: - section.add "DiskContainer.UserBucket", valid_623498 - var valid_623499 = query.getOrDefault("DiskContainer.Format") + section.add "KmsKeyId", valid_623498 + var valid_623499 = query.getOrDefault("ClientData.UploadSize") valid_623499 = validateParameter(valid_623499, JString, required = false, default = nil) if valid_623499 != nil: - section.add "DiskContainer.Format", valid_623499 - var valid_623500 = query.getOrDefault("ClientData.UploadEnd") + section.add "ClientData.UploadSize", valid_623499 + var valid_623500 = query.getOrDefault("DiskContainer.UserBucket") valid_623500 = validateParameter(valid_623500, JString, required = false, default = nil) if valid_623500 != nil: - section.add "ClientData.UploadEnd", valid_623500 - var valid_623501 = query.getOrDefault("ClientData.Comment") + section.add "DiskContainer.UserBucket", valid_623500 + var valid_623501 = query.getOrDefault("DiskContainer.Format") valid_623501 = validateParameter(valid_623501, JString, required = false, default = nil) if valid_623501 != nil: - section.add "ClientData.Comment", valid_623501 - var valid_623502 = query.getOrDefault("RoleName") + section.add "DiskContainer.Format", valid_623501 + var valid_623502 = query.getOrDefault("ClientData.UploadEnd") valid_623502 = validateParameter(valid_623502, JString, required = false, default = nil) if valid_623502 != nil: - section.add "RoleName", valid_623502 - var valid_623503 = query.getOrDefault("Action") - valid_623503 = validateParameter(valid_623503, JString, required = true, - default = newJString("ImportSnapshot")) + section.add "ClientData.UploadEnd", valid_623502 + var valid_623503 = query.getOrDefault("ClientData.Comment") + valid_623503 = validateParameter(valid_623503, JString, required = false, + default = nil) if valid_623503 != nil: - section.add "Action", valid_623503 - var valid_623504 = query.getOrDefault("Description") + section.add "ClientData.Comment", valid_623503 + var valid_623504 = query.getOrDefault("RoleName") valid_623504 = validateParameter(valid_623504, JString, required = false, default = nil) if valid_623504 != nil: - section.add "Description", valid_623504 - var valid_623505 = query.getOrDefault("ClientData.UploadStart") - valid_623505 = validateParameter(valid_623505, JString, required = false, - default = nil) + section.add "RoleName", valid_623504 + var valid_623505 = query.getOrDefault("Action") + valid_623505 = validateParameter(valid_623505, JString, required = true, + default = newJString("ImportSnapshot")) if valid_623505 != nil: - section.add "ClientData.UploadStart", valid_623505 - var valid_623506 = query.getOrDefault("Version") - valid_623506 = validateParameter(valid_623506, JString, required = true, - default = newJString("2016-11-15")) + section.add "Action", valid_623505 + var valid_623506 = query.getOrDefault("Description") + valid_623506 = validateParameter(valid_623506, JString, required = false, + default = nil) if valid_623506 != nil: - section.add "Version", valid_623506 - var valid_623507 = query.getOrDefault("DiskContainer.Description") + section.add "Description", valid_623506 + var valid_623507 = query.getOrDefault("ClientData.UploadStart") valid_623507 = validateParameter(valid_623507, JString, required = false, default = nil) if valid_623507 != nil: - section.add "DiskContainer.Description", valid_623507 - var valid_623508 = query.getOrDefault("ClientToken") - valid_623508 = validateParameter(valid_623508, JString, required = false, - default = nil) + section.add "ClientData.UploadStart", valid_623507 + var valid_623508 = query.getOrDefault("Version") + valid_623508 = validateParameter(valid_623508, JString, required = true, + default = newJString("2016-11-15")) if valid_623508 != nil: - section.add "ClientToken", valid_623508 + section.add "Version", valid_623508 + var valid_623509 = query.getOrDefault("DiskContainer.Description") + valid_623509 = validateParameter(valid_623509, JString, required = false, + default = nil) + if valid_623509 != nil: + section.add "DiskContainer.Description", valid_623509 + var valid_623510 = query.getOrDefault("ClientToken") + valid_623510 = validateParameter(valid_623510, JString, required = false, + default = nil) + if valid_623510 != nil: + section.add "ClientToken", valid_623510 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -102169,61 +102196,61 @@ proc validate_GetImportSnapshot_623491(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623509 = header.getOrDefault("X-Amz-Signature") - valid_623509 = validateParameter(valid_623509, JString, required = false, - default = nil) - if valid_623509 != nil: - section.add "X-Amz-Signature", valid_623509 - var valid_623510 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623510 = validateParameter(valid_623510, JString, required = false, - default = nil) - if valid_623510 != nil: - section.add "X-Amz-Content-Sha256", valid_623510 - var valid_623511 = header.getOrDefault("X-Amz-Date") + var valid_623511 = header.getOrDefault("X-Amz-Signature") valid_623511 = validateParameter(valid_623511, JString, required = false, default = nil) if valid_623511 != nil: - section.add "X-Amz-Date", valid_623511 - var valid_623512 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623511 + var valid_623512 = header.getOrDefault("X-Amz-Content-Sha256") valid_623512 = validateParameter(valid_623512, JString, required = false, default = nil) if valid_623512 != nil: - section.add "X-Amz-Credential", valid_623512 - var valid_623513 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623512 + var valid_623513 = header.getOrDefault("X-Amz-Date") valid_623513 = validateParameter(valid_623513, JString, required = false, default = nil) if valid_623513 != nil: - section.add "X-Amz-Security-Token", valid_623513 - var valid_623514 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623513 + var valid_623514 = header.getOrDefault("X-Amz-Credential") valid_623514 = validateParameter(valid_623514, JString, required = false, default = nil) if valid_623514 != nil: - section.add "X-Amz-Algorithm", valid_623514 - var valid_623515 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623514 + var valid_623515 = header.getOrDefault("X-Amz-Security-Token") valid_623515 = validateParameter(valid_623515, JString, required = false, default = nil) if valid_623515 != nil: - section.add "X-Amz-SignedHeaders", valid_623515 + section.add "X-Amz-Security-Token", valid_623515 + var valid_623516 = header.getOrDefault("X-Amz-Algorithm") + valid_623516 = validateParameter(valid_623516, JString, required = false, + default = nil) + if valid_623516 != nil: + section.add "X-Amz-Algorithm", valid_623516 + var valid_623517 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623517 = validateParameter(valid_623517, JString, required = false, + default = nil) + if valid_623517 != nil: + section.add "X-Amz-SignedHeaders", valid_623517 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623516: Call_GetImportSnapshot_623490; path: JsonNode; +proc call*(call_623518: Call_GetImportSnapshot_623492; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Imports a disk into an EBS snapshot. ## - let valid = call_623516.validator(path, query, header, formData, body) - let scheme = call_623516.pickScheme + let valid = call_623518.validator(path, query, header, formData, body) + let scheme = call_623518.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623516.url(scheme.get, call_623516.host, call_623516.base, - call_623516.route, valid.getOrDefault("path"), + let url = call_623518.url(scheme.get, call_623518.host, call_623518.base, + call_623518.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623516, url, valid) + result = atozHook(call_623518, url, valid) -proc call*(call_623517: Call_GetImportSnapshot_623490; +proc call*(call_623519: Call_GetImportSnapshot_623492; DiskContainerUrl: string = ""; Encrypted: bool = false; DryRun: bool = false; KmsKeyId: string = ""; ClientDataUploadSize: string = ""; DiskContainerUserBucket: string = ""; DiskContainerFormat: string = ""; @@ -102275,35 +102302,35 @@ proc call*(call_623517: Call_GetImportSnapshot_623490; ## The description of the disk image being imported. ## ClientToken: string ## : Token to enable idempotency for VM import requests. - var query_623518 = newJObject() - add(query_623518, "DiskContainer.Url", newJString(DiskContainerUrl)) - add(query_623518, "Encrypted", newJBool(Encrypted)) - add(query_623518, "DryRun", newJBool(DryRun)) - add(query_623518, "KmsKeyId", newJString(KmsKeyId)) - add(query_623518, "ClientData.UploadSize", newJString(ClientDataUploadSize)) - add(query_623518, "DiskContainer.UserBucket", + var query_623520 = newJObject() + add(query_623520, "DiskContainer.Url", newJString(DiskContainerUrl)) + add(query_623520, "Encrypted", newJBool(Encrypted)) + add(query_623520, "DryRun", newJBool(DryRun)) + add(query_623520, "KmsKeyId", newJString(KmsKeyId)) + add(query_623520, "ClientData.UploadSize", newJString(ClientDataUploadSize)) + add(query_623520, "DiskContainer.UserBucket", newJString(DiskContainerUserBucket)) - add(query_623518, "DiskContainer.Format", newJString(DiskContainerFormat)) - add(query_623518, "ClientData.UploadEnd", newJString(ClientDataUploadEnd)) - add(query_623518, "ClientData.Comment", newJString(ClientDataComment)) - add(query_623518, "RoleName", newJString(RoleName)) - add(query_623518, "Action", newJString(Action)) - add(query_623518, "Description", newJString(Description)) - add(query_623518, "ClientData.UploadStart", newJString(ClientDataUploadStart)) - add(query_623518, "Version", newJString(Version)) - add(query_623518, "DiskContainer.Description", + add(query_623520, "DiskContainer.Format", newJString(DiskContainerFormat)) + add(query_623520, "ClientData.UploadEnd", newJString(ClientDataUploadEnd)) + add(query_623520, "ClientData.Comment", newJString(ClientDataComment)) + add(query_623520, "RoleName", newJString(RoleName)) + add(query_623520, "Action", newJString(Action)) + add(query_623520, "Description", newJString(Description)) + add(query_623520, "ClientData.UploadStart", newJString(ClientDataUploadStart)) + add(query_623520, "Version", newJString(Version)) + add(query_623520, "DiskContainer.Description", newJString(DiskContainerDescription)) - add(query_623518, "ClientToken", newJString(ClientToken)) - result = call_623517.call(nil, query_623518, nil, nil, nil) + add(query_623520, "ClientToken", newJString(ClientToken)) + result = call_623519.call(nil, query_623520, nil, nil, nil) -var getImportSnapshot* = Call_GetImportSnapshot_623490(name: "getImportSnapshot", +var getImportSnapshot* = Call_GetImportSnapshot_623492(name: "getImportSnapshot", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=ImportSnapshot", validator: validate_GetImportSnapshot_623491, - base: "/", url: url_GetImportSnapshot_623492, + route: "/#Action=ImportSnapshot", validator: validate_GetImportSnapshot_623493, + base: "/", url: url_GetImportSnapshot_623494, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostImportVolume_623571 = ref object of OpenApiRestCall_610658 -proc url_PostImportVolume_623573(protocol: Scheme; host: string; base: string; + Call_PostImportVolume_623573 = ref object of OpenApiRestCall_610658 +proc url_PostImportVolume_623575(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -102313,7 +102340,7 @@ proc url_PostImportVolume_623573(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostImportVolume_623572(path: JsonNode; query: JsonNode; +proc validate_PostImportVolume_623574(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Creates an import volume task using metadata from the specified disk image.For more information, see Importing Disks to Amazon EBS.

    For information about the import manifest referenced by this API action, see VM Import Manifest.

    @@ -102326,16 +102353,16 @@ proc validate_PostImportVolume_623572(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_623574 = query.getOrDefault("Action") - valid_623574 = validateParameter(valid_623574, JString, required = true, + var valid_623576 = query.getOrDefault("Action") + valid_623576 = validateParameter(valid_623576, JString, required = true, default = newJString("ImportVolume")) - if valid_623574 != nil: - section.add "Action", valid_623574 - var valid_623575 = query.getOrDefault("Version") - valid_623575 = validateParameter(valid_623575, JString, required = true, + if valid_623576 != nil: + section.add "Action", valid_623576 + var valid_623577 = query.getOrDefault("Version") + valid_623577 = validateParameter(valid_623577, JString, required = true, default = newJString("2016-11-15")) - if valid_623575 != nil: - section.add "Version", valid_623575 + if valid_623577 != nil: + section.add "Version", valid_623577 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -102346,41 +102373,41 @@ proc validate_PostImportVolume_623572(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623576 = header.getOrDefault("X-Amz-Signature") - valid_623576 = validateParameter(valid_623576, JString, required = false, - default = nil) - if valid_623576 != nil: - section.add "X-Amz-Signature", valid_623576 - var valid_623577 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623577 = validateParameter(valid_623577, JString, required = false, - default = nil) - if valid_623577 != nil: - section.add "X-Amz-Content-Sha256", valid_623577 - var valid_623578 = header.getOrDefault("X-Amz-Date") + var valid_623578 = header.getOrDefault("X-Amz-Signature") valid_623578 = validateParameter(valid_623578, JString, required = false, default = nil) if valid_623578 != nil: - section.add "X-Amz-Date", valid_623578 - var valid_623579 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623578 + var valid_623579 = header.getOrDefault("X-Amz-Content-Sha256") valid_623579 = validateParameter(valid_623579, JString, required = false, default = nil) if valid_623579 != nil: - section.add "X-Amz-Credential", valid_623579 - var valid_623580 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623579 + var valid_623580 = header.getOrDefault("X-Amz-Date") valid_623580 = validateParameter(valid_623580, JString, required = false, default = nil) if valid_623580 != nil: - section.add "X-Amz-Security-Token", valid_623580 - var valid_623581 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623580 + var valid_623581 = header.getOrDefault("X-Amz-Credential") valid_623581 = validateParameter(valid_623581, JString, required = false, default = nil) if valid_623581 != nil: - section.add "X-Amz-Algorithm", valid_623581 - var valid_623582 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623581 + var valid_623582 = header.getOrDefault("X-Amz-Security-Token") valid_623582 = validateParameter(valid_623582, JString, required = false, default = nil) if valid_623582 != nil: - section.add "X-Amz-SignedHeaders", valid_623582 + section.add "X-Amz-Security-Token", valid_623582 + var valid_623583 = header.getOrDefault("X-Amz-Algorithm") + valid_623583 = validateParameter(valid_623583, JString, required = false, + default = nil) + if valid_623583 != nil: + section.add "X-Amz-Algorithm", valid_623583 + var valid_623584 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623584 = validateParameter(valid_623584, JString, required = false, + default = nil) + if valid_623584 != nil: + section.add "X-Amz-SignedHeaders", valid_623584 result.add "header", section ## parameters in `formData` object: ## Description: JString @@ -102403,59 +102430,59 @@ proc validate_PostImportVolume_623572(path: JsonNode; query: JsonNode; ## : Describes a disk image. ## The disk image format. section = newJObject() - var valid_623583 = formData.getOrDefault("Description") - valid_623583 = validateParameter(valid_623583, JString, required = false, - default = nil) - if valid_623583 != nil: - section.add "Description", valid_623583 - var valid_623584 = formData.getOrDefault("Volume.Size") - valid_623584 = validateParameter(valid_623584, JString, required = false, - default = nil) - if valid_623584 != nil: - section.add "Volume.Size", valid_623584 - assert formData != nil, "formData argument is necessary due to required `AvailabilityZone` field" - var valid_623585 = formData.getOrDefault("AvailabilityZone") - valid_623585 = validateParameter(valid_623585, JString, required = true, + var valid_623585 = formData.getOrDefault("Description") + valid_623585 = validateParameter(valid_623585, JString, required = false, default = nil) if valid_623585 != nil: - section.add "AvailabilityZone", valid_623585 - var valid_623586 = formData.getOrDefault("DryRun") - valid_623586 = validateParameter(valid_623586, JBool, required = false, default = nil) + section.add "Description", valid_623585 + var valid_623586 = formData.getOrDefault("Volume.Size") + valid_623586 = validateParameter(valid_623586, JString, required = false, + default = nil) if valid_623586 != nil: - section.add "DryRun", valid_623586 - var valid_623587 = formData.getOrDefault("Image.ImportManifestUrl") - valid_623587 = validateParameter(valid_623587, JString, required = false, + section.add "Volume.Size", valid_623586 + assert formData != nil, "formData argument is necessary due to required `AvailabilityZone` field" + var valid_623587 = formData.getOrDefault("AvailabilityZone") + valid_623587 = validateParameter(valid_623587, JString, required = true, default = nil) if valid_623587 != nil: - section.add "Image.ImportManifestUrl", valid_623587 - var valid_623588 = formData.getOrDefault("Image.Bytes") - valid_623588 = validateParameter(valid_623588, JString, required = false, - default = nil) + section.add "AvailabilityZone", valid_623587 + var valid_623588 = formData.getOrDefault("DryRun") + valid_623588 = validateParameter(valid_623588, JBool, required = false, default = nil) if valid_623588 != nil: - section.add "Image.Bytes", valid_623588 - var valid_623589 = formData.getOrDefault("Image.Format") + section.add "DryRun", valid_623588 + var valid_623589 = formData.getOrDefault("Image.ImportManifestUrl") valid_623589 = validateParameter(valid_623589, JString, required = false, default = nil) if valid_623589 != nil: - section.add "Image.Format", valid_623589 + section.add "Image.ImportManifestUrl", valid_623589 + var valid_623590 = formData.getOrDefault("Image.Bytes") + valid_623590 = validateParameter(valid_623590, JString, required = false, + default = nil) + if valid_623590 != nil: + section.add "Image.Bytes", valid_623590 + var valid_623591 = formData.getOrDefault("Image.Format") + valid_623591 = validateParameter(valid_623591, JString, required = false, + default = nil) + if valid_623591 != nil: + section.add "Image.Format", valid_623591 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623590: Call_PostImportVolume_623571; path: JsonNode; +proc call*(call_623592: Call_PostImportVolume_623573; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Creates an import volume task using metadata from the specified disk image.For more information, see Importing Disks to Amazon EBS.

    For information about the import manifest referenced by this API action, see VM Import Manifest.

    ## - let valid = call_623590.validator(path, query, header, formData, body) - let scheme = call_623590.pickScheme + let valid = call_623592.validator(path, query, header, formData, body) + let scheme = call_623592.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623590.url(scheme.get, call_623590.host, call_623590.base, - call_623590.route, valid.getOrDefault("path"), + let url = call_623592.url(scheme.get, call_623592.host, call_623592.base, + call_623592.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623590, url, valid) + result = atozHook(call_623592, url, valid) -proc call*(call_623591: Call_PostImportVolume_623571; AvailabilityZone: string; +proc call*(call_623593: Call_PostImportVolume_623573; AvailabilityZone: string; Description: string = ""; VolumeSize: string = ""; DryRun: bool = false; ImageImportManifestUrl: string = ""; Action: string = "ImportVolume"; ImageBytes: string = ""; Version: string = "2016-11-15"; @@ -102483,28 +102510,28 @@ proc call*(call_623591: Call_PostImportVolume_623571; AvailabilityZone: string; ## ImageFormat: string ## : Describes a disk image. ## The disk image format. - var query_623592 = newJObject() - var formData_623593 = newJObject() - add(formData_623593, "Description", newJString(Description)) - add(formData_623593, "Volume.Size", newJString(VolumeSize)) - add(formData_623593, "AvailabilityZone", newJString(AvailabilityZone)) - add(formData_623593, "DryRun", newJBool(DryRun)) - add(formData_623593, "Image.ImportManifestUrl", + var query_623594 = newJObject() + var formData_623595 = newJObject() + add(formData_623595, "Description", newJString(Description)) + add(formData_623595, "Volume.Size", newJString(VolumeSize)) + add(formData_623595, "AvailabilityZone", newJString(AvailabilityZone)) + add(formData_623595, "DryRun", newJBool(DryRun)) + add(formData_623595, "Image.ImportManifestUrl", newJString(ImageImportManifestUrl)) - add(query_623592, "Action", newJString(Action)) - add(formData_623593, "Image.Bytes", newJString(ImageBytes)) - add(query_623592, "Version", newJString(Version)) - add(formData_623593, "Image.Format", newJString(ImageFormat)) - result = call_623591.call(nil, query_623592, nil, formData_623593, nil) + add(query_623594, "Action", newJString(Action)) + add(formData_623595, "Image.Bytes", newJString(ImageBytes)) + add(query_623594, "Version", newJString(Version)) + add(formData_623595, "Image.Format", newJString(ImageFormat)) + result = call_623593.call(nil, query_623594, nil, formData_623595, nil) -var postImportVolume* = Call_PostImportVolume_623571(name: "postImportVolume", +var postImportVolume* = Call_PostImportVolume_623573(name: "postImportVolume", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", - route: "/#Action=ImportVolume", validator: validate_PostImportVolume_623572, - base: "/", url: url_PostImportVolume_623573, + route: "/#Action=ImportVolume", validator: validate_PostImportVolume_623574, + base: "/", url: url_PostImportVolume_623575, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetImportVolume_623549 = ref object of OpenApiRestCall_610658 -proc url_GetImportVolume_623551(protocol: Scheme; host: string; base: string; + Call_GetImportVolume_623551 = ref object of OpenApiRestCall_610658 +proc url_GetImportVolume_623553(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -102514,7 +102541,7 @@ proc url_GetImportVolume_623551(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetImportVolume_623550(path: JsonNode; query: JsonNode; +proc validate_GetImportVolume_623552(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Creates an import volume task using metadata from the specified disk image.For more information, see Importing Disks to Amazon EBS.

    For information about the import manifest referenced by this API action, see VM Import Manifest.

    @@ -102546,50 +102573,50 @@ proc validate_GetImportVolume_623550(path: JsonNode; query: JsonNode; ## : Describes an EBS volume. ## The size of the volume, in GiB. section = newJObject() - var valid_623552 = query.getOrDefault("DryRun") - valid_623552 = validateParameter(valid_623552, JBool, required = false, default = nil) - if valid_623552 != nil: - section.add "DryRun", valid_623552 - var valid_623553 = query.getOrDefault("Image.ImportManifestUrl") - valid_623553 = validateParameter(valid_623553, JString, required = false, - default = nil) - if valid_623553 != nil: - section.add "Image.ImportManifestUrl", valid_623553 - var valid_623554 = query.getOrDefault("Image.Format") - valid_623554 = validateParameter(valid_623554, JString, required = false, - default = nil) + var valid_623554 = query.getOrDefault("DryRun") + valid_623554 = validateParameter(valid_623554, JBool, required = false, default = nil) if valid_623554 != nil: - section.add "Image.Format", valid_623554 - var valid_623555 = query.getOrDefault("Action") - valid_623555 = validateParameter(valid_623555, JString, required = true, - default = newJString("ImportVolume")) + section.add "DryRun", valid_623554 + var valid_623555 = query.getOrDefault("Image.ImportManifestUrl") + valid_623555 = validateParameter(valid_623555, JString, required = false, + default = nil) if valid_623555 != nil: - section.add "Action", valid_623555 - var valid_623556 = query.getOrDefault("Description") + section.add "Image.ImportManifestUrl", valid_623555 + var valid_623556 = query.getOrDefault("Image.Format") valid_623556 = validateParameter(valid_623556, JString, required = false, default = nil) if valid_623556 != nil: - section.add "Description", valid_623556 - var valid_623557 = query.getOrDefault("AvailabilityZone") + section.add "Image.Format", valid_623556 + var valid_623557 = query.getOrDefault("Action") valid_623557 = validateParameter(valid_623557, JString, required = true, - default = nil) + default = newJString("ImportVolume")) if valid_623557 != nil: - section.add "AvailabilityZone", valid_623557 - var valid_623558 = query.getOrDefault("Version") - valid_623558 = validateParameter(valid_623558, JString, required = true, - default = newJString("2016-11-15")) + section.add "Action", valid_623557 + var valid_623558 = query.getOrDefault("Description") + valid_623558 = validateParameter(valid_623558, JString, required = false, + default = nil) if valid_623558 != nil: - section.add "Version", valid_623558 - var valid_623559 = query.getOrDefault("Image.Bytes") - valid_623559 = validateParameter(valid_623559, JString, required = false, + section.add "Description", valid_623558 + var valid_623559 = query.getOrDefault("AvailabilityZone") + valid_623559 = validateParameter(valid_623559, JString, required = true, default = nil) if valid_623559 != nil: - section.add "Image.Bytes", valid_623559 - var valid_623560 = query.getOrDefault("Volume.Size") - valid_623560 = validateParameter(valid_623560, JString, required = false, - default = nil) + section.add "AvailabilityZone", valid_623559 + var valid_623560 = query.getOrDefault("Version") + valid_623560 = validateParameter(valid_623560, JString, required = true, + default = newJString("2016-11-15")) if valid_623560 != nil: - section.add "Volume.Size", valid_623560 + section.add "Version", valid_623560 + var valid_623561 = query.getOrDefault("Image.Bytes") + valid_623561 = validateParameter(valid_623561, JString, required = false, + default = nil) + if valid_623561 != nil: + section.add "Image.Bytes", valid_623561 + var valid_623562 = query.getOrDefault("Volume.Size") + valid_623562 = validateParameter(valid_623562, JString, required = false, + default = nil) + if valid_623562 != nil: + section.add "Volume.Size", valid_623562 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -102600,61 +102627,61 @@ proc validate_GetImportVolume_623550(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623561 = header.getOrDefault("X-Amz-Signature") - valid_623561 = validateParameter(valid_623561, JString, required = false, - default = nil) - if valid_623561 != nil: - section.add "X-Amz-Signature", valid_623561 - var valid_623562 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623562 = validateParameter(valid_623562, JString, required = false, - default = nil) - if valid_623562 != nil: - section.add "X-Amz-Content-Sha256", valid_623562 - var valid_623563 = header.getOrDefault("X-Amz-Date") + var valid_623563 = header.getOrDefault("X-Amz-Signature") valid_623563 = validateParameter(valid_623563, JString, required = false, default = nil) if valid_623563 != nil: - section.add "X-Amz-Date", valid_623563 - var valid_623564 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623563 + var valid_623564 = header.getOrDefault("X-Amz-Content-Sha256") valid_623564 = validateParameter(valid_623564, JString, required = false, default = nil) if valid_623564 != nil: - section.add "X-Amz-Credential", valid_623564 - var valid_623565 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623564 + var valid_623565 = header.getOrDefault("X-Amz-Date") valid_623565 = validateParameter(valid_623565, JString, required = false, default = nil) if valid_623565 != nil: - section.add "X-Amz-Security-Token", valid_623565 - var valid_623566 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623565 + var valid_623566 = header.getOrDefault("X-Amz-Credential") valid_623566 = validateParameter(valid_623566, JString, required = false, default = nil) if valid_623566 != nil: - section.add "X-Amz-Algorithm", valid_623566 - var valid_623567 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623566 + var valid_623567 = header.getOrDefault("X-Amz-Security-Token") valid_623567 = validateParameter(valid_623567, JString, required = false, default = nil) if valid_623567 != nil: - section.add "X-Amz-SignedHeaders", valid_623567 + section.add "X-Amz-Security-Token", valid_623567 + var valid_623568 = header.getOrDefault("X-Amz-Algorithm") + valid_623568 = validateParameter(valid_623568, JString, required = false, + default = nil) + if valid_623568 != nil: + section.add "X-Amz-Algorithm", valid_623568 + var valid_623569 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623569 = validateParameter(valid_623569, JString, required = false, + default = nil) + if valid_623569 != nil: + section.add "X-Amz-SignedHeaders", valid_623569 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623568: Call_GetImportVolume_623549; path: JsonNode; query: JsonNode; +proc call*(call_623570: Call_GetImportVolume_623551; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Creates an import volume task using metadata from the specified disk image.For more information, see Importing Disks to Amazon EBS.

    For information about the import manifest referenced by this API action, see VM Import Manifest.

    ## - let valid = call_623568.validator(path, query, header, formData, body) - let scheme = call_623568.pickScheme + let valid = call_623570.validator(path, query, header, formData, body) + let scheme = call_623570.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623568.url(scheme.get, call_623568.host, call_623568.base, - call_623568.route, valid.getOrDefault("path"), + let url = call_623570.url(scheme.get, call_623570.host, call_623570.base, + call_623570.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623568, url, valid) + result = atozHook(call_623570, url, valid) -proc call*(call_623569: Call_GetImportVolume_623549; AvailabilityZone: string; +proc call*(call_623571: Call_GetImportVolume_623551; AvailabilityZone: string; DryRun: bool = false; ImageImportManifestUrl: string = ""; ImageFormat: string = ""; Action: string = "ImportVolume"; Description: string = ""; Version: string = "2016-11-15"; @@ -102682,25 +102709,25 @@ proc call*(call_623569: Call_GetImportVolume_623549; AvailabilityZone: string; ## VolumeSize: string ## : Describes an EBS volume. ## The size of the volume, in GiB. - var query_623570 = newJObject() - add(query_623570, "DryRun", newJBool(DryRun)) - add(query_623570, "Image.ImportManifestUrl", newJString(ImageImportManifestUrl)) - add(query_623570, "Image.Format", newJString(ImageFormat)) - add(query_623570, "Action", newJString(Action)) - add(query_623570, "Description", newJString(Description)) - add(query_623570, "AvailabilityZone", newJString(AvailabilityZone)) - add(query_623570, "Version", newJString(Version)) - add(query_623570, "Image.Bytes", newJString(ImageBytes)) - add(query_623570, "Volume.Size", newJString(VolumeSize)) - result = call_623569.call(nil, query_623570, nil, nil, nil) - -var getImportVolume* = Call_GetImportVolume_623549(name: "getImportVolume", + var query_623572 = newJObject() + add(query_623572, "DryRun", newJBool(DryRun)) + add(query_623572, "Image.ImportManifestUrl", newJString(ImageImportManifestUrl)) + add(query_623572, "Image.Format", newJString(ImageFormat)) + add(query_623572, "Action", newJString(Action)) + add(query_623572, "Description", newJString(Description)) + add(query_623572, "AvailabilityZone", newJString(AvailabilityZone)) + add(query_623572, "Version", newJString(Version)) + add(query_623572, "Image.Bytes", newJString(ImageBytes)) + add(query_623572, "Volume.Size", newJString(VolumeSize)) + result = call_623571.call(nil, query_623572, nil, nil, nil) + +var getImportVolume* = Call_GetImportVolume_623551(name: "getImportVolume", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=ImportVolume", validator: validate_GetImportVolume_623550, - base: "/", url: url_GetImportVolume_623551, schemes: {Scheme.Https, Scheme.Http}) + route: "/#Action=ImportVolume", validator: validate_GetImportVolume_623552, + base: "/", url: url_GetImportVolume_623553, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyCapacityReservation_623614 = ref object of OpenApiRestCall_610658 -proc url_PostModifyCapacityReservation_623616(protocol: Scheme; host: string; + Call_PostModifyCapacityReservation_623616 = ref object of OpenApiRestCall_610658 +proc url_PostModifyCapacityReservation_623618(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -102710,7 +102737,7 @@ proc url_PostModifyCapacityReservation_623616(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostModifyCapacityReservation_623615(path: JsonNode; query: JsonNode; +proc validate_PostModifyCapacityReservation_623617(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modifies a Capacity Reservation's capacity and the conditions under which it is to be released. You cannot change a Capacity Reservation's instance type, EBS optimization, instance store settings, platform, Availability Zone, or instance eligibility. If you need to modify any of these attributes, we recommend that you cancel the Capacity Reservation, and then create a new one with the required attributes. ## @@ -102722,16 +102749,16 @@ proc validate_PostModifyCapacityReservation_623615(path: JsonNode; query: JsonNo ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_623617 = query.getOrDefault("Action") - valid_623617 = validateParameter(valid_623617, JString, required = true, default = newJString( + var valid_623619 = query.getOrDefault("Action") + valid_623619 = validateParameter(valid_623619, JString, required = true, default = newJString( "ModifyCapacityReservation")) - if valid_623617 != nil: - section.add "Action", valid_623617 - var valid_623618 = query.getOrDefault("Version") - valid_623618 = validateParameter(valid_623618, JString, required = true, + if valid_623619 != nil: + section.add "Action", valid_623619 + var valid_623620 = query.getOrDefault("Version") + valid_623620 = validateParameter(valid_623620, JString, required = true, default = newJString("2016-11-15")) - if valid_623618 != nil: - section.add "Version", valid_623618 + if valid_623620 != nil: + section.add "Version", valid_623620 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -102742,41 +102769,41 @@ proc validate_PostModifyCapacityReservation_623615(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623619 = header.getOrDefault("X-Amz-Signature") - valid_623619 = validateParameter(valid_623619, JString, required = false, - default = nil) - if valid_623619 != nil: - section.add "X-Amz-Signature", valid_623619 - var valid_623620 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623620 = validateParameter(valid_623620, JString, required = false, - default = nil) - if valid_623620 != nil: - section.add "X-Amz-Content-Sha256", valid_623620 - var valid_623621 = header.getOrDefault("X-Amz-Date") + var valid_623621 = header.getOrDefault("X-Amz-Signature") valid_623621 = validateParameter(valid_623621, JString, required = false, default = nil) if valid_623621 != nil: - section.add "X-Amz-Date", valid_623621 - var valid_623622 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623621 + var valid_623622 = header.getOrDefault("X-Amz-Content-Sha256") valid_623622 = validateParameter(valid_623622, JString, required = false, default = nil) if valid_623622 != nil: - section.add "X-Amz-Credential", valid_623622 - var valid_623623 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623622 + var valid_623623 = header.getOrDefault("X-Amz-Date") valid_623623 = validateParameter(valid_623623, JString, required = false, default = nil) if valid_623623 != nil: - section.add "X-Amz-Security-Token", valid_623623 - var valid_623624 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623623 + var valid_623624 = header.getOrDefault("X-Amz-Credential") valid_623624 = validateParameter(valid_623624, JString, required = false, default = nil) if valid_623624 != nil: - section.add "X-Amz-Algorithm", valid_623624 - var valid_623625 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623624 + var valid_623625 = header.getOrDefault("X-Amz-Security-Token") valid_623625 = validateParameter(valid_623625, JString, required = false, default = nil) if valid_623625 != nil: - section.add "X-Amz-SignedHeaders", valid_623625 + section.add "X-Amz-Security-Token", valid_623625 + var valid_623626 = header.getOrDefault("X-Amz-Algorithm") + valid_623626 = validateParameter(valid_623626, JString, required = false, + default = nil) + if valid_623626 != nil: + section.add "X-Amz-Algorithm", valid_623626 + var valid_623627 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623627 = validateParameter(valid_623627, JString, required = false, + default = nil) + if valid_623627 != nil: + section.add "X-Amz-SignedHeaders", valid_623627 result.add "header", section ## parameters in `formData` object: ## EndDate: JString @@ -102790,48 +102817,48 @@ proc validate_PostModifyCapacityReservation_623615(path: JsonNode; query: JsonNo ## CapacityReservationId: JString (required) ## : The ID of the Capacity Reservation. section = newJObject() - var valid_623626 = formData.getOrDefault("EndDate") - valid_623626 = validateParameter(valid_623626, JString, required = false, - default = nil) - if valid_623626 != nil: - section.add "EndDate", valid_623626 - var valid_623627 = formData.getOrDefault("InstanceCount") - valid_623627 = validateParameter(valid_623627, JInt, required = false, default = nil) - if valid_623627 != nil: - section.add "InstanceCount", valid_623627 - var valid_623628 = formData.getOrDefault("EndDateType") + var valid_623628 = formData.getOrDefault("EndDate") valid_623628 = validateParameter(valid_623628, JString, required = false, - default = newJString("unlimited")) + default = nil) if valid_623628 != nil: - section.add "EndDateType", valid_623628 - var valid_623629 = formData.getOrDefault("DryRun") - valid_623629 = validateParameter(valid_623629, JBool, required = false, default = nil) + section.add "EndDate", valid_623628 + var valid_623629 = formData.getOrDefault("InstanceCount") + valid_623629 = validateParameter(valid_623629, JInt, required = false, default = nil) if valid_623629 != nil: - section.add "DryRun", valid_623629 + section.add "InstanceCount", valid_623629 + var valid_623630 = formData.getOrDefault("EndDateType") + valid_623630 = validateParameter(valid_623630, JString, required = false, + default = newJString("unlimited")) + if valid_623630 != nil: + section.add "EndDateType", valid_623630 + var valid_623631 = formData.getOrDefault("DryRun") + valid_623631 = validateParameter(valid_623631, JBool, required = false, default = nil) + if valid_623631 != nil: + section.add "DryRun", valid_623631 assert formData != nil, "formData argument is necessary due to required `CapacityReservationId` field" - var valid_623630 = formData.getOrDefault("CapacityReservationId") - valid_623630 = validateParameter(valid_623630, JString, required = true, + var valid_623632 = formData.getOrDefault("CapacityReservationId") + valid_623632 = validateParameter(valid_623632, JString, required = true, default = nil) - if valid_623630 != nil: - section.add "CapacityReservationId", valid_623630 + if valid_623632 != nil: + section.add "CapacityReservationId", valid_623632 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623631: Call_PostModifyCapacityReservation_623614; path: JsonNode; +proc call*(call_623633: Call_PostModifyCapacityReservation_623616; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modifies a Capacity Reservation's capacity and the conditions under which it is to be released. You cannot change a Capacity Reservation's instance type, EBS optimization, instance store settings, platform, Availability Zone, or instance eligibility. If you need to modify any of these attributes, we recommend that you cancel the Capacity Reservation, and then create a new one with the required attributes. ## - let valid = call_623631.validator(path, query, header, formData, body) - let scheme = call_623631.pickScheme + let valid = call_623633.validator(path, query, header, formData, body) + let scheme = call_623633.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623631.url(scheme.get, call_623631.host, call_623631.base, - call_623631.route, valid.getOrDefault("path"), + let url = call_623633.url(scheme.get, call_623633.host, call_623633.base, + call_623633.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623631, url, valid) + result = atozHook(call_623633, url, valid) -proc call*(call_623632: Call_PostModifyCapacityReservation_623614; +proc call*(call_623634: Call_PostModifyCapacityReservation_623616; CapacityReservationId: string; EndDate: string = ""; InstanceCount: int = 0; EndDateType: string = "unlimited"; DryRun: bool = false; Action: string = "ModifyCapacityReservation"; @@ -102850,26 +102877,26 @@ proc call*(call_623632: Call_PostModifyCapacityReservation_623614; ## CapacityReservationId: string (required) ## : The ID of the Capacity Reservation. ## Version: string (required) - var query_623633 = newJObject() - var formData_623634 = newJObject() - add(formData_623634, "EndDate", newJString(EndDate)) - add(formData_623634, "InstanceCount", newJInt(InstanceCount)) - add(formData_623634, "EndDateType", newJString(EndDateType)) - add(formData_623634, "DryRun", newJBool(DryRun)) - add(query_623633, "Action", newJString(Action)) - add(formData_623634, "CapacityReservationId", newJString(CapacityReservationId)) - add(query_623633, "Version", newJString(Version)) - result = call_623632.call(nil, query_623633, nil, formData_623634, nil) - -var postModifyCapacityReservation* = Call_PostModifyCapacityReservation_623614( + var query_623635 = newJObject() + var formData_623636 = newJObject() + add(formData_623636, "EndDate", newJString(EndDate)) + add(formData_623636, "InstanceCount", newJInt(InstanceCount)) + add(formData_623636, "EndDateType", newJString(EndDateType)) + add(formData_623636, "DryRun", newJBool(DryRun)) + add(query_623635, "Action", newJString(Action)) + add(formData_623636, "CapacityReservationId", newJString(CapacityReservationId)) + add(query_623635, "Version", newJString(Version)) + result = call_623634.call(nil, query_623635, nil, formData_623636, nil) + +var postModifyCapacityReservation* = Call_PostModifyCapacityReservation_623616( name: "postModifyCapacityReservation", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyCapacityReservation", - validator: validate_PostModifyCapacityReservation_623615, base: "/", - url: url_PostModifyCapacityReservation_623616, + validator: validate_PostModifyCapacityReservation_623617, base: "/", + url: url_PostModifyCapacityReservation_623618, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyCapacityReservation_623594 = ref object of OpenApiRestCall_610658 -proc url_GetModifyCapacityReservation_623596(protocol: Scheme; host: string; + Call_GetModifyCapacityReservation_623596 = ref object of OpenApiRestCall_610658 +proc url_GetModifyCapacityReservation_623598(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -102879,7 +102906,7 @@ proc url_GetModifyCapacityReservation_623596(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetModifyCapacityReservation_623595(path: JsonNode; query: JsonNode; +proc validate_GetModifyCapacityReservation_623597(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modifies a Capacity Reservation's capacity and the conditions under which it is to be released. You cannot change a Capacity Reservation's instance type, EBS optimization, instance store settings, platform, Availability Zone, or instance eligibility. If you need to modify any of these attributes, we recommend that you cancel the Capacity Reservation, and then create a new one with the required attributes. ## @@ -102901,40 +102928,40 @@ proc validate_GetModifyCapacityReservation_623595(path: JsonNode; query: JsonNod ## InstanceCount: JInt ## : The number of instances for which to reserve capacity. section = newJObject() - var valid_623597 = query.getOrDefault("EndDate") - valid_623597 = validateParameter(valid_623597, JString, required = false, - default = nil) - if valid_623597 != nil: - section.add "EndDate", valid_623597 - var valid_623598 = query.getOrDefault("DryRun") - valid_623598 = validateParameter(valid_623598, JBool, required = false, default = nil) - if valid_623598 != nil: - section.add "DryRun", valid_623598 - assert query != nil, "query argument is necessary due to required `CapacityReservationId` field" - var valid_623599 = query.getOrDefault("CapacityReservationId") - valid_623599 = validateParameter(valid_623599, JString, required = true, + var valid_623599 = query.getOrDefault("EndDate") + valid_623599 = validateParameter(valid_623599, JString, required = false, default = nil) if valid_623599 != nil: - section.add "CapacityReservationId", valid_623599 - var valid_623600 = query.getOrDefault("Action") - valid_623600 = validateParameter(valid_623600, JString, required = true, default = newJString( - "ModifyCapacityReservation")) + section.add "EndDate", valid_623599 + var valid_623600 = query.getOrDefault("DryRun") + valid_623600 = validateParameter(valid_623600, JBool, required = false, default = nil) if valid_623600 != nil: - section.add "Action", valid_623600 - var valid_623601 = query.getOrDefault("Version") + section.add "DryRun", valid_623600 + assert query != nil, "query argument is necessary due to required `CapacityReservationId` field" + var valid_623601 = query.getOrDefault("CapacityReservationId") valid_623601 = validateParameter(valid_623601, JString, required = true, - default = newJString("2016-11-15")) + default = nil) if valid_623601 != nil: - section.add "Version", valid_623601 - var valid_623602 = query.getOrDefault("EndDateType") - valid_623602 = validateParameter(valid_623602, JString, required = false, - default = newJString("unlimited")) + section.add "CapacityReservationId", valid_623601 + var valid_623602 = query.getOrDefault("Action") + valid_623602 = validateParameter(valid_623602, JString, required = true, default = newJString( + "ModifyCapacityReservation")) if valid_623602 != nil: - section.add "EndDateType", valid_623602 - var valid_623603 = query.getOrDefault("InstanceCount") - valid_623603 = validateParameter(valid_623603, JInt, required = false, default = nil) + section.add "Action", valid_623602 + var valid_623603 = query.getOrDefault("Version") + valid_623603 = validateParameter(valid_623603, JString, required = true, + default = newJString("2016-11-15")) if valid_623603 != nil: - section.add "InstanceCount", valid_623603 + section.add "Version", valid_623603 + var valid_623604 = query.getOrDefault("EndDateType") + valid_623604 = validateParameter(valid_623604, JString, required = false, + default = newJString("unlimited")) + if valid_623604 != nil: + section.add "EndDateType", valid_623604 + var valid_623605 = query.getOrDefault("InstanceCount") + valid_623605 = validateParameter(valid_623605, JInt, required = false, default = nil) + if valid_623605 != nil: + section.add "InstanceCount", valid_623605 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -102945,61 +102972,61 @@ proc validate_GetModifyCapacityReservation_623595(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623604 = header.getOrDefault("X-Amz-Signature") - valid_623604 = validateParameter(valid_623604, JString, required = false, - default = nil) - if valid_623604 != nil: - section.add "X-Amz-Signature", valid_623604 - var valid_623605 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623605 = validateParameter(valid_623605, JString, required = false, - default = nil) - if valid_623605 != nil: - section.add "X-Amz-Content-Sha256", valid_623605 - var valid_623606 = header.getOrDefault("X-Amz-Date") + var valid_623606 = header.getOrDefault("X-Amz-Signature") valid_623606 = validateParameter(valid_623606, JString, required = false, default = nil) if valid_623606 != nil: - section.add "X-Amz-Date", valid_623606 - var valid_623607 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623606 + var valid_623607 = header.getOrDefault("X-Amz-Content-Sha256") valid_623607 = validateParameter(valid_623607, JString, required = false, default = nil) if valid_623607 != nil: - section.add "X-Amz-Credential", valid_623607 - var valid_623608 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623607 + var valid_623608 = header.getOrDefault("X-Amz-Date") valid_623608 = validateParameter(valid_623608, JString, required = false, default = nil) if valid_623608 != nil: - section.add "X-Amz-Security-Token", valid_623608 - var valid_623609 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623608 + var valid_623609 = header.getOrDefault("X-Amz-Credential") valid_623609 = validateParameter(valid_623609, JString, required = false, default = nil) if valid_623609 != nil: - section.add "X-Amz-Algorithm", valid_623609 - var valid_623610 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623609 + var valid_623610 = header.getOrDefault("X-Amz-Security-Token") valid_623610 = validateParameter(valid_623610, JString, required = false, default = nil) if valid_623610 != nil: - section.add "X-Amz-SignedHeaders", valid_623610 + section.add "X-Amz-Security-Token", valid_623610 + var valid_623611 = header.getOrDefault("X-Amz-Algorithm") + valid_623611 = validateParameter(valid_623611, JString, required = false, + default = nil) + if valid_623611 != nil: + section.add "X-Amz-Algorithm", valid_623611 + var valid_623612 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623612 = validateParameter(valid_623612, JString, required = false, + default = nil) + if valid_623612 != nil: + section.add "X-Amz-SignedHeaders", valid_623612 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623611: Call_GetModifyCapacityReservation_623594; path: JsonNode; +proc call*(call_623613: Call_GetModifyCapacityReservation_623596; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modifies a Capacity Reservation's capacity and the conditions under which it is to be released. You cannot change a Capacity Reservation's instance type, EBS optimization, instance store settings, platform, Availability Zone, or instance eligibility. If you need to modify any of these attributes, we recommend that you cancel the Capacity Reservation, and then create a new one with the required attributes. ## - let valid = call_623611.validator(path, query, header, formData, body) - let scheme = call_623611.pickScheme + let valid = call_623613.validator(path, query, header, formData, body) + let scheme = call_623613.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623611.url(scheme.get, call_623611.host, call_623611.base, - call_623611.route, valid.getOrDefault("path"), + let url = call_623613.url(scheme.get, call_623613.host, call_623613.base, + call_623613.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623611, url, valid) + result = atozHook(call_623613, url, valid) -proc call*(call_623612: Call_GetModifyCapacityReservation_623594; +proc call*(call_623614: Call_GetModifyCapacityReservation_623596; CapacityReservationId: string; EndDate: string = ""; DryRun: bool = false; Action: string = "ModifyCapacityReservation"; Version: string = "2016-11-15"; EndDateType: string = "unlimited"; @@ -103018,25 +103045,25 @@ proc call*(call_623612: Call_GetModifyCapacityReservation_623594; ## :

    Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following end types:

    ## InstanceCount: int ## : The number of instances for which to reserve capacity. - var query_623613 = newJObject() - add(query_623613, "EndDate", newJString(EndDate)) - add(query_623613, "DryRun", newJBool(DryRun)) - add(query_623613, "CapacityReservationId", newJString(CapacityReservationId)) - add(query_623613, "Action", newJString(Action)) - add(query_623613, "Version", newJString(Version)) - add(query_623613, "EndDateType", newJString(EndDateType)) - add(query_623613, "InstanceCount", newJInt(InstanceCount)) - result = call_623612.call(nil, query_623613, nil, nil, nil) - -var getModifyCapacityReservation* = Call_GetModifyCapacityReservation_623594( + var query_623615 = newJObject() + add(query_623615, "EndDate", newJString(EndDate)) + add(query_623615, "DryRun", newJBool(DryRun)) + add(query_623615, "CapacityReservationId", newJString(CapacityReservationId)) + add(query_623615, "Action", newJString(Action)) + add(query_623615, "Version", newJString(Version)) + add(query_623615, "EndDateType", newJString(EndDateType)) + add(query_623615, "InstanceCount", newJInt(InstanceCount)) + result = call_623614.call(nil, query_623615, nil, nil, nil) + +var getModifyCapacityReservation* = Call_GetModifyCapacityReservation_623596( name: "getModifyCapacityReservation", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifyCapacityReservation", - validator: validate_GetModifyCapacityReservation_623595, base: "/", - url: url_GetModifyCapacityReservation_623596, + validator: validate_GetModifyCapacityReservation_623597, base: "/", + url: url_GetModifyCapacityReservation_623598, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyClientVpnEndpoint_623661 = ref object of OpenApiRestCall_610658 -proc url_PostModifyClientVpnEndpoint_623663(protocol: Scheme; host: string; + Call_PostModifyClientVpnEndpoint_623663 = ref object of OpenApiRestCall_610658 +proc url_PostModifyClientVpnEndpoint_623665(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -103046,7 +103073,7 @@ proc url_PostModifyClientVpnEndpoint_623663(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostModifyClientVpnEndpoint_623662(path: JsonNode; query: JsonNode; +proc validate_PostModifyClientVpnEndpoint_623664(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modifies the specified Client VPN endpoint. You can only modify an endpoint's server certificate information, client connection logging information, DNS server, and description. Modifying the DNS server resets existing client connections. ## @@ -103058,16 +103085,16 @@ proc validate_PostModifyClientVpnEndpoint_623662(path: JsonNode; query: JsonNode ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_623664 = query.getOrDefault("Action") - valid_623664 = validateParameter(valid_623664, JString, required = true, default = newJString( + var valid_623666 = query.getOrDefault("Action") + valid_623666 = validateParameter(valid_623666, JString, required = true, default = newJString( "ModifyClientVpnEndpoint")) - if valid_623664 != nil: - section.add "Action", valid_623664 - var valid_623665 = query.getOrDefault("Version") - valid_623665 = validateParameter(valid_623665, JString, required = true, + if valid_623666 != nil: + section.add "Action", valid_623666 + var valid_623667 = query.getOrDefault("Version") + valid_623667 = validateParameter(valid_623667, JString, required = true, default = newJString("2016-11-15")) - if valid_623665 != nil: - section.add "Version", valid_623665 + if valid_623667 != nil: + section.add "Version", valid_623667 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -103078,41 +103105,41 @@ proc validate_PostModifyClientVpnEndpoint_623662(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623666 = header.getOrDefault("X-Amz-Signature") - valid_623666 = validateParameter(valid_623666, JString, required = false, - default = nil) - if valid_623666 != nil: - section.add "X-Amz-Signature", valid_623666 - var valid_623667 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623667 = validateParameter(valid_623667, JString, required = false, - default = nil) - if valid_623667 != nil: - section.add "X-Amz-Content-Sha256", valid_623667 - var valid_623668 = header.getOrDefault("X-Amz-Date") + var valid_623668 = header.getOrDefault("X-Amz-Signature") valid_623668 = validateParameter(valid_623668, JString, required = false, default = nil) if valid_623668 != nil: - section.add "X-Amz-Date", valid_623668 - var valid_623669 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623668 + var valid_623669 = header.getOrDefault("X-Amz-Content-Sha256") valid_623669 = validateParameter(valid_623669, JString, required = false, default = nil) if valid_623669 != nil: - section.add "X-Amz-Credential", valid_623669 - var valid_623670 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623669 + var valid_623670 = header.getOrDefault("X-Amz-Date") valid_623670 = validateParameter(valid_623670, JString, required = false, default = nil) if valid_623670 != nil: - section.add "X-Amz-Security-Token", valid_623670 - var valid_623671 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623670 + var valid_623671 = header.getOrDefault("X-Amz-Credential") valid_623671 = validateParameter(valid_623671, JString, required = false, default = nil) if valid_623671 != nil: - section.add "X-Amz-Algorithm", valid_623671 - var valid_623672 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623671 + var valid_623672 = header.getOrDefault("X-Amz-Security-Token") valid_623672 = validateParameter(valid_623672, JString, required = false, default = nil) if valid_623672 != nil: - section.add "X-Amz-SignedHeaders", valid_623672 + section.add "X-Amz-Security-Token", valid_623672 + var valid_623673 = header.getOrDefault("X-Amz-Algorithm") + valid_623673 = validateParameter(valid_623673, JString, required = false, + default = nil) + if valid_623673 != nil: + section.add "X-Amz-Algorithm", valid_623673 + var valid_623674 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623674 = validateParameter(valid_623674, JString, required = false, + default = nil) + if valid_623674 != nil: + section.add "X-Amz-SignedHeaders", valid_623674 result.add "header", section ## parameters in `formData` object: ## ConnectionLogOptions.CloudwatchLogStream: JString @@ -103144,77 +103171,77 @@ proc validate_PostModifyClientVpnEndpoint_623662(path: JsonNode; query: JsonNode ## ClientVpnEndpointId: JString (required) ## : The ID of the Client VPN endpoint to modify. section = newJObject() - var valid_623673 = formData.getOrDefault("ConnectionLogOptions.CloudwatchLogStream") - valid_623673 = validateParameter(valid_623673, JString, required = false, - default = nil) - if valid_623673 != nil: - section.add "ConnectionLogOptions.CloudwatchLogStream", valid_623673 - var valid_623674 = formData.getOrDefault("Description") - valid_623674 = validateParameter(valid_623674, JString, required = false, - default = nil) - if valid_623674 != nil: - section.add "Description", valid_623674 - var valid_623675 = formData.getOrDefault("DnsServers.CustomDnsServers") - valid_623675 = validateParameter(valid_623675, JArray, required = false, + var valid_623675 = formData.getOrDefault("ConnectionLogOptions.CloudwatchLogStream") + valid_623675 = validateParameter(valid_623675, JString, required = false, default = nil) if valid_623675 != nil: - section.add "DnsServers.CustomDnsServers", valid_623675 - var valid_623676 = formData.getOrDefault("DryRun") - valid_623676 = validateParameter(valid_623676, JBool, required = false, default = nil) + section.add "ConnectionLogOptions.CloudwatchLogStream", valid_623675 + var valid_623676 = formData.getOrDefault("Description") + valid_623676 = validateParameter(valid_623676, JString, required = false, + default = nil) if valid_623676 != nil: - section.add "DryRun", valid_623676 - var valid_623677 = formData.getOrDefault("ConnectionLogOptions.CloudwatchLogGroup") - valid_623677 = validateParameter(valid_623677, JString, required = false, + section.add "Description", valid_623676 + var valid_623677 = formData.getOrDefault("DnsServers.CustomDnsServers") + valid_623677 = validateParameter(valid_623677, JArray, required = false, default = nil) if valid_623677 != nil: - section.add "ConnectionLogOptions.CloudwatchLogGroup", valid_623677 - var valid_623678 = formData.getOrDefault("ServerCertificateArn") - valid_623678 = validateParameter(valid_623678, JString, required = false, - default = nil) + section.add "DnsServers.CustomDnsServers", valid_623677 + var valid_623678 = formData.getOrDefault("DryRun") + valid_623678 = validateParameter(valid_623678, JBool, required = false, default = nil) if valid_623678 != nil: - section.add "ServerCertificateArn", valid_623678 - var valid_623679 = formData.getOrDefault("ConnectionLogOptions.Enabled") + section.add "DryRun", valid_623678 + var valid_623679 = formData.getOrDefault("ConnectionLogOptions.CloudwatchLogGroup") valid_623679 = validateParameter(valid_623679, JString, required = false, default = nil) if valid_623679 != nil: - section.add "ConnectionLogOptions.Enabled", valid_623679 - var valid_623680 = formData.getOrDefault("VpnPort") - valid_623680 = validateParameter(valid_623680, JInt, required = false, default = nil) + section.add "ConnectionLogOptions.CloudwatchLogGroup", valid_623679 + var valid_623680 = formData.getOrDefault("ServerCertificateArn") + valid_623680 = validateParameter(valid_623680, JString, required = false, + default = nil) if valid_623680 != nil: - section.add "VpnPort", valid_623680 - var valid_623681 = formData.getOrDefault("DnsServers.Enabled") + section.add "ServerCertificateArn", valid_623680 + var valid_623681 = formData.getOrDefault("ConnectionLogOptions.Enabled") valid_623681 = validateParameter(valid_623681, JString, required = false, default = nil) if valid_623681 != nil: - section.add "DnsServers.Enabled", valid_623681 - var valid_623682 = formData.getOrDefault("SplitTunnel") - valid_623682 = validateParameter(valid_623682, JBool, required = false, default = nil) + section.add "ConnectionLogOptions.Enabled", valid_623681 + var valid_623682 = formData.getOrDefault("VpnPort") + valid_623682 = validateParameter(valid_623682, JInt, required = false, default = nil) if valid_623682 != nil: - section.add "SplitTunnel", valid_623682 - assert formData != nil, "formData argument is necessary due to required `ClientVpnEndpointId` field" - var valid_623683 = formData.getOrDefault("ClientVpnEndpointId") - valid_623683 = validateParameter(valid_623683, JString, required = true, + section.add "VpnPort", valid_623682 + var valid_623683 = formData.getOrDefault("DnsServers.Enabled") + valid_623683 = validateParameter(valid_623683, JString, required = false, default = nil) if valid_623683 != nil: - section.add "ClientVpnEndpointId", valid_623683 + section.add "DnsServers.Enabled", valid_623683 + var valid_623684 = formData.getOrDefault("SplitTunnel") + valid_623684 = validateParameter(valid_623684, JBool, required = false, default = nil) + if valid_623684 != nil: + section.add "SplitTunnel", valid_623684 + assert formData != nil, "formData argument is necessary due to required `ClientVpnEndpointId` field" + var valid_623685 = formData.getOrDefault("ClientVpnEndpointId") + valid_623685 = validateParameter(valid_623685, JString, required = true, + default = nil) + if valid_623685 != nil: + section.add "ClientVpnEndpointId", valid_623685 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623684: Call_PostModifyClientVpnEndpoint_623661; path: JsonNode; +proc call*(call_623686: Call_PostModifyClientVpnEndpoint_623663; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modifies the specified Client VPN endpoint. You can only modify an endpoint's server certificate information, client connection logging information, DNS server, and description. Modifying the DNS server resets existing client connections. ## - let valid = call_623684.validator(path, query, header, formData, body) - let scheme = call_623684.pickScheme + let valid = call_623686.validator(path, query, header, formData, body) + let scheme = call_623686.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623684.url(scheme.get, call_623684.host, call_623684.base, - call_623684.route, valid.getOrDefault("path"), + let url = call_623686.url(scheme.get, call_623686.host, call_623686.base, + call_623686.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623684, url, valid) + result = atozHook(call_623686, url, valid) -proc call*(call_623685: Call_PostModifyClientVpnEndpoint_623661; +proc call*(call_623687: Call_PostModifyClientVpnEndpoint_623663; ClientVpnEndpointId: string; ConnectionLogOptionsCloudwatchLogStream: string = ""; Description: string = ""; DnsServersCustomDnsServers: JsonNode = nil; @@ -103256,36 +103283,36 @@ proc call*(call_623685: Call_PostModifyClientVpnEndpoint_623661; ## href="https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/split-tunnel-vpn.html">Split-Tunnel AWS Client VPN Endpoint in the AWS Client VPN Administrator Guide.

    ## ClientVpnEndpointId: string (required) ## : The ID of the Client VPN endpoint to modify. - var query_623686 = newJObject() - var formData_623687 = newJObject() - add(formData_623687, "ConnectionLogOptions.CloudwatchLogStream", + var query_623688 = newJObject() + var formData_623689 = newJObject() + add(formData_623689, "ConnectionLogOptions.CloudwatchLogStream", newJString(ConnectionLogOptionsCloudwatchLogStream)) - add(formData_623687, "Description", newJString(Description)) + add(formData_623689, "Description", newJString(Description)) if DnsServersCustomDnsServers != nil: - formData_623687.add "DnsServers.CustomDnsServers", DnsServersCustomDnsServers - add(formData_623687, "DryRun", newJBool(DryRun)) - add(query_623686, "Action", newJString(Action)) - add(formData_623687, "ConnectionLogOptions.CloudwatchLogGroup", + formData_623689.add "DnsServers.CustomDnsServers", DnsServersCustomDnsServers + add(formData_623689, "DryRun", newJBool(DryRun)) + add(query_623688, "Action", newJString(Action)) + add(formData_623689, "ConnectionLogOptions.CloudwatchLogGroup", newJString(ConnectionLogOptionsCloudwatchLogGroup)) - add(formData_623687, "ServerCertificateArn", newJString(ServerCertificateArn)) - add(formData_623687, "ConnectionLogOptions.Enabled", + add(formData_623689, "ServerCertificateArn", newJString(ServerCertificateArn)) + add(formData_623689, "ConnectionLogOptions.Enabled", newJString(ConnectionLogOptionsEnabled)) - add(formData_623687, "VpnPort", newJInt(VpnPort)) - add(formData_623687, "DnsServers.Enabled", newJString(DnsServersEnabled)) - add(query_623686, "Version", newJString(Version)) - add(formData_623687, "SplitTunnel", newJBool(SplitTunnel)) - add(formData_623687, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) - result = call_623685.call(nil, query_623686, nil, formData_623687, nil) - -var postModifyClientVpnEndpoint* = Call_PostModifyClientVpnEndpoint_623661( + add(formData_623689, "VpnPort", newJInt(VpnPort)) + add(formData_623689, "DnsServers.Enabled", newJString(DnsServersEnabled)) + add(query_623688, "Version", newJString(Version)) + add(formData_623689, "SplitTunnel", newJBool(SplitTunnel)) + add(formData_623689, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) + result = call_623687.call(nil, query_623688, nil, formData_623689, nil) + +var postModifyClientVpnEndpoint* = Call_PostModifyClientVpnEndpoint_623663( name: "postModifyClientVpnEndpoint", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyClientVpnEndpoint", - validator: validate_PostModifyClientVpnEndpoint_623662, base: "/", - url: url_PostModifyClientVpnEndpoint_623663, + validator: validate_PostModifyClientVpnEndpoint_623664, base: "/", + url: url_PostModifyClientVpnEndpoint_623665, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyClientVpnEndpoint_623635 = ref object of OpenApiRestCall_610658 -proc url_GetModifyClientVpnEndpoint_623637(protocol: Scheme; host: string; + Call_GetModifyClientVpnEndpoint_623637 = ref object of OpenApiRestCall_610658 +proc url_GetModifyClientVpnEndpoint_623639(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -103295,7 +103322,7 @@ proc url_GetModifyClientVpnEndpoint_623637(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetModifyClientVpnEndpoint_623636(path: JsonNode; query: JsonNode; +proc validate_GetModifyClientVpnEndpoint_623638(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modifies the specified Client VPN endpoint. You can only modify an endpoint's server certificate information, client connection logging information, DNS server, and description. Modifying the DNS server resets existing client connections. ## @@ -103335,69 +103362,69 @@ proc validate_GetModifyClientVpnEndpoint_623636(path: JsonNode; query: JsonNode; ## ServerCertificateArn: JString ## : The ARN of the server certificate to be used. The server certificate must be provisioned in AWS Certificate Manager (ACM). section = newJObject() - var valid_623638 = query.getOrDefault("SplitTunnel") - valid_623638 = validateParameter(valid_623638, JBool, required = false, default = nil) - if valid_623638 != nil: - section.add "SplitTunnel", valid_623638 - var valid_623639 = query.getOrDefault("VpnPort") - valid_623639 = validateParameter(valid_623639, JInt, required = false, default = nil) - if valid_623639 != nil: - section.add "VpnPort", valid_623639 - var valid_623640 = query.getOrDefault("DryRun") + var valid_623640 = query.getOrDefault("SplitTunnel") valid_623640 = validateParameter(valid_623640, JBool, required = false, default = nil) if valid_623640 != nil: - section.add "DryRun", valid_623640 - var valid_623641 = query.getOrDefault("DnsServers.Enabled") - valid_623641 = validateParameter(valid_623641, JString, required = false, - default = nil) + section.add "SplitTunnel", valid_623640 + var valid_623641 = query.getOrDefault("VpnPort") + valid_623641 = validateParameter(valid_623641, JInt, required = false, default = nil) if valid_623641 != nil: - section.add "DnsServers.Enabled", valid_623641 - var valid_623642 = query.getOrDefault("ConnectionLogOptions.CloudwatchLogGroup") - valid_623642 = validateParameter(valid_623642, JString, required = false, - default = nil) + section.add "VpnPort", valid_623641 + var valid_623642 = query.getOrDefault("DryRun") + valid_623642 = validateParameter(valid_623642, JBool, required = false, default = nil) if valid_623642 != nil: - section.add "ConnectionLogOptions.CloudwatchLogGroup", valid_623642 - assert query != nil, "query argument is necessary due to required `ClientVpnEndpointId` field" - var valid_623643 = query.getOrDefault("ClientVpnEndpointId") - valid_623643 = validateParameter(valid_623643, JString, required = true, + section.add "DryRun", valid_623642 + var valid_623643 = query.getOrDefault("DnsServers.Enabled") + valid_623643 = validateParameter(valid_623643, JString, required = false, default = nil) if valid_623643 != nil: - section.add "ClientVpnEndpointId", valid_623643 - var valid_623644 = query.getOrDefault("ConnectionLogOptions.Enabled") + section.add "DnsServers.Enabled", valid_623643 + var valid_623644 = query.getOrDefault("ConnectionLogOptions.CloudwatchLogGroup") valid_623644 = validateParameter(valid_623644, JString, required = false, default = nil) if valid_623644 != nil: - section.add "ConnectionLogOptions.Enabled", valid_623644 - var valid_623645 = query.getOrDefault("Action") - valid_623645 = validateParameter(valid_623645, JString, required = true, default = newJString( - "ModifyClientVpnEndpoint")) + section.add "ConnectionLogOptions.CloudwatchLogGroup", valid_623644 + assert query != nil, "query argument is necessary due to required `ClientVpnEndpointId` field" + var valid_623645 = query.getOrDefault("ClientVpnEndpointId") + valid_623645 = validateParameter(valid_623645, JString, required = true, + default = nil) if valid_623645 != nil: - section.add "Action", valid_623645 - var valid_623646 = query.getOrDefault("Description") + section.add "ClientVpnEndpointId", valid_623645 + var valid_623646 = query.getOrDefault("ConnectionLogOptions.Enabled") valid_623646 = validateParameter(valid_623646, JString, required = false, default = nil) if valid_623646 != nil: - section.add "Description", valid_623646 - var valid_623647 = query.getOrDefault("ConnectionLogOptions.CloudwatchLogStream") - valid_623647 = validateParameter(valid_623647, JString, required = false, - default = nil) + section.add "ConnectionLogOptions.Enabled", valid_623646 + var valid_623647 = query.getOrDefault("Action") + valid_623647 = validateParameter(valid_623647, JString, required = true, default = newJString( + "ModifyClientVpnEndpoint")) if valid_623647 != nil: - section.add "ConnectionLogOptions.CloudwatchLogStream", valid_623647 - var valid_623648 = query.getOrDefault("Version") - valid_623648 = validateParameter(valid_623648, JString, required = true, - default = newJString("2016-11-15")) + section.add "Action", valid_623647 + var valid_623648 = query.getOrDefault("Description") + valid_623648 = validateParameter(valid_623648, JString, required = false, + default = nil) if valid_623648 != nil: - section.add "Version", valid_623648 - var valid_623649 = query.getOrDefault("DnsServers.CustomDnsServers") - valid_623649 = validateParameter(valid_623649, JArray, required = false, + section.add "Description", valid_623648 + var valid_623649 = query.getOrDefault("ConnectionLogOptions.CloudwatchLogStream") + valid_623649 = validateParameter(valid_623649, JString, required = false, default = nil) if valid_623649 != nil: - section.add "DnsServers.CustomDnsServers", valid_623649 - var valid_623650 = query.getOrDefault("ServerCertificateArn") - valid_623650 = validateParameter(valid_623650, JString, required = false, - default = nil) + section.add "ConnectionLogOptions.CloudwatchLogStream", valid_623649 + var valid_623650 = query.getOrDefault("Version") + valid_623650 = validateParameter(valid_623650, JString, required = true, + default = newJString("2016-11-15")) if valid_623650 != nil: - section.add "ServerCertificateArn", valid_623650 + section.add "Version", valid_623650 + var valid_623651 = query.getOrDefault("DnsServers.CustomDnsServers") + valid_623651 = validateParameter(valid_623651, JArray, required = false, + default = nil) + if valid_623651 != nil: + section.add "DnsServers.CustomDnsServers", valid_623651 + var valid_623652 = query.getOrDefault("ServerCertificateArn") + valid_623652 = validateParameter(valid_623652, JString, required = false, + default = nil) + if valid_623652 != nil: + section.add "ServerCertificateArn", valid_623652 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -103408,61 +103435,61 @@ proc validate_GetModifyClientVpnEndpoint_623636(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623651 = header.getOrDefault("X-Amz-Signature") - valid_623651 = validateParameter(valid_623651, JString, required = false, - default = nil) - if valid_623651 != nil: - section.add "X-Amz-Signature", valid_623651 - var valid_623652 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623652 = validateParameter(valid_623652, JString, required = false, - default = nil) - if valid_623652 != nil: - section.add "X-Amz-Content-Sha256", valid_623652 - var valid_623653 = header.getOrDefault("X-Amz-Date") + var valid_623653 = header.getOrDefault("X-Amz-Signature") valid_623653 = validateParameter(valid_623653, JString, required = false, default = nil) if valid_623653 != nil: - section.add "X-Amz-Date", valid_623653 - var valid_623654 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623653 + var valid_623654 = header.getOrDefault("X-Amz-Content-Sha256") valid_623654 = validateParameter(valid_623654, JString, required = false, default = nil) if valid_623654 != nil: - section.add "X-Amz-Credential", valid_623654 - var valid_623655 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623654 + var valid_623655 = header.getOrDefault("X-Amz-Date") valid_623655 = validateParameter(valid_623655, JString, required = false, default = nil) if valid_623655 != nil: - section.add "X-Amz-Security-Token", valid_623655 - var valid_623656 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623655 + var valid_623656 = header.getOrDefault("X-Amz-Credential") valid_623656 = validateParameter(valid_623656, JString, required = false, default = nil) if valid_623656 != nil: - section.add "X-Amz-Algorithm", valid_623656 - var valid_623657 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623656 + var valid_623657 = header.getOrDefault("X-Amz-Security-Token") valid_623657 = validateParameter(valid_623657, JString, required = false, default = nil) if valid_623657 != nil: - section.add "X-Amz-SignedHeaders", valid_623657 + section.add "X-Amz-Security-Token", valid_623657 + var valid_623658 = header.getOrDefault("X-Amz-Algorithm") + valid_623658 = validateParameter(valid_623658, JString, required = false, + default = nil) + if valid_623658 != nil: + section.add "X-Amz-Algorithm", valid_623658 + var valid_623659 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623659 = validateParameter(valid_623659, JString, required = false, + default = nil) + if valid_623659 != nil: + section.add "X-Amz-SignedHeaders", valid_623659 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623658: Call_GetModifyClientVpnEndpoint_623635; path: JsonNode; +proc call*(call_623660: Call_GetModifyClientVpnEndpoint_623637; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modifies the specified Client VPN endpoint. You can only modify an endpoint's server certificate information, client connection logging information, DNS server, and description. Modifying the DNS server resets existing client connections. ## - let valid = call_623658.validator(path, query, header, formData, body) - let scheme = call_623658.pickScheme + let valid = call_623660.validator(path, query, header, formData, body) + let scheme = call_623660.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623658.url(scheme.get, call_623658.host, call_623658.base, - call_623658.route, valid.getOrDefault("path"), + let url = call_623660.url(scheme.get, call_623660.host, call_623660.base, + call_623660.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623658, url, valid) + result = atozHook(call_623660, url, valid) -proc call*(call_623659: Call_GetModifyClientVpnEndpoint_623635; +proc call*(call_623661: Call_GetModifyClientVpnEndpoint_623637; ClientVpnEndpointId: string; SplitTunnel: bool = false; VpnPort: int = 0; DryRun: bool = false; DnsServersEnabled: string = ""; ConnectionLogOptionsCloudwatchLogGroup: string = ""; @@ -103504,35 +103531,35 @@ proc call*(call_623659: Call_GetModifyClientVpnEndpoint_623635; ## The IPv4 address range, in CIDR notation, of the DNS servers to be used. You can specify up to two DNS servers. Ensure that the DNS servers can be reached by the clients. The specified values overwrite the existing values. ## ServerCertificateArn: string ## : The ARN of the server certificate to be used. The server certificate must be provisioned in AWS Certificate Manager (ACM). - var query_623660 = newJObject() - add(query_623660, "SplitTunnel", newJBool(SplitTunnel)) - add(query_623660, "VpnPort", newJInt(VpnPort)) - add(query_623660, "DryRun", newJBool(DryRun)) - add(query_623660, "DnsServers.Enabled", newJString(DnsServersEnabled)) - add(query_623660, "ConnectionLogOptions.CloudwatchLogGroup", + var query_623662 = newJObject() + add(query_623662, "SplitTunnel", newJBool(SplitTunnel)) + add(query_623662, "VpnPort", newJInt(VpnPort)) + add(query_623662, "DryRun", newJBool(DryRun)) + add(query_623662, "DnsServers.Enabled", newJString(DnsServersEnabled)) + add(query_623662, "ConnectionLogOptions.CloudwatchLogGroup", newJString(ConnectionLogOptionsCloudwatchLogGroup)) - add(query_623660, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) - add(query_623660, "ConnectionLogOptions.Enabled", + add(query_623662, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) + add(query_623662, "ConnectionLogOptions.Enabled", newJString(ConnectionLogOptionsEnabled)) - add(query_623660, "Action", newJString(Action)) - add(query_623660, "Description", newJString(Description)) - add(query_623660, "ConnectionLogOptions.CloudwatchLogStream", + add(query_623662, "Action", newJString(Action)) + add(query_623662, "Description", newJString(Description)) + add(query_623662, "ConnectionLogOptions.CloudwatchLogStream", newJString(ConnectionLogOptionsCloudwatchLogStream)) - add(query_623660, "Version", newJString(Version)) + add(query_623662, "Version", newJString(Version)) if DnsServersCustomDnsServers != nil: - query_623660.add "DnsServers.CustomDnsServers", DnsServersCustomDnsServers - add(query_623660, "ServerCertificateArn", newJString(ServerCertificateArn)) - result = call_623659.call(nil, query_623660, nil, nil, nil) + query_623662.add "DnsServers.CustomDnsServers", DnsServersCustomDnsServers + add(query_623662, "ServerCertificateArn", newJString(ServerCertificateArn)) + result = call_623661.call(nil, query_623662, nil, nil, nil) -var getModifyClientVpnEndpoint* = Call_GetModifyClientVpnEndpoint_623635( +var getModifyClientVpnEndpoint* = Call_GetModifyClientVpnEndpoint_623637( name: "getModifyClientVpnEndpoint", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifyClientVpnEndpoint", - validator: validate_GetModifyClientVpnEndpoint_623636, base: "/", - url: url_GetModifyClientVpnEndpoint_623637, + validator: validate_GetModifyClientVpnEndpoint_623638, base: "/", + url: url_GetModifyClientVpnEndpoint_623639, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyDefaultCreditSpecification_623706 = ref object of OpenApiRestCall_610658 -proc url_PostModifyDefaultCreditSpecification_623708(protocol: Scheme; + Call_PostModifyDefaultCreditSpecification_623708 = ref object of OpenApiRestCall_610658 +proc url_PostModifyDefaultCreditSpecification_623710(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -103542,7 +103569,7 @@ proc url_PostModifyDefaultCreditSpecification_623708(protocol: Scheme; else: result.path = base & route -proc validate_PostModifyDefaultCreditSpecification_623707(path: JsonNode; +proc validate_PostModifyDefaultCreditSpecification_623709(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the default credit option for CPU usage of burstable performance instances. The default credit option is set at the account level per AWS Region, and is specified per instance family. All new burstable performance instances in the account launch using the default credit option.

    ModifyDefaultCreditSpecification is an asynchronous operation, which works at an AWS Region level and modifies the credit option for each Availability Zone. All zones in a Region are updated within five minutes. But if instances are launched during this operation, they might not get the new credit option until the zone is updated. To verify whether the update has occurred, you can call GetDefaultCreditSpecification and check DefaultCreditSpecification for updates.

    For more information, see Burstable Performance Instances in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -103554,16 +103581,16 @@ proc validate_PostModifyDefaultCreditSpecification_623707(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_623709 = query.getOrDefault("Action") - valid_623709 = validateParameter(valid_623709, JString, required = true, default = newJString( + var valid_623711 = query.getOrDefault("Action") + valid_623711 = validateParameter(valid_623711, JString, required = true, default = newJString( "ModifyDefaultCreditSpecification")) - if valid_623709 != nil: - section.add "Action", valid_623709 - var valid_623710 = query.getOrDefault("Version") - valid_623710 = validateParameter(valid_623710, JString, required = true, + if valid_623711 != nil: + section.add "Action", valid_623711 + var valid_623712 = query.getOrDefault("Version") + valid_623712 = validateParameter(valid_623712, JString, required = true, default = newJString("2016-11-15")) - if valid_623710 != nil: - section.add "Version", valid_623710 + if valid_623712 != nil: + section.add "Version", valid_623712 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -103574,41 +103601,41 @@ proc validate_PostModifyDefaultCreditSpecification_623707(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623711 = header.getOrDefault("X-Amz-Signature") - valid_623711 = validateParameter(valid_623711, JString, required = false, - default = nil) - if valid_623711 != nil: - section.add "X-Amz-Signature", valid_623711 - var valid_623712 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623712 = validateParameter(valid_623712, JString, required = false, - default = nil) - if valid_623712 != nil: - section.add "X-Amz-Content-Sha256", valid_623712 - var valid_623713 = header.getOrDefault("X-Amz-Date") + var valid_623713 = header.getOrDefault("X-Amz-Signature") valid_623713 = validateParameter(valid_623713, JString, required = false, default = nil) if valid_623713 != nil: - section.add "X-Amz-Date", valid_623713 - var valid_623714 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623713 + var valid_623714 = header.getOrDefault("X-Amz-Content-Sha256") valid_623714 = validateParameter(valid_623714, JString, required = false, default = nil) if valid_623714 != nil: - section.add "X-Amz-Credential", valid_623714 - var valid_623715 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623714 + var valid_623715 = header.getOrDefault("X-Amz-Date") valid_623715 = validateParameter(valid_623715, JString, required = false, default = nil) if valid_623715 != nil: - section.add "X-Amz-Security-Token", valid_623715 - var valid_623716 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623715 + var valid_623716 = header.getOrDefault("X-Amz-Credential") valid_623716 = validateParameter(valid_623716, JString, required = false, default = nil) if valid_623716 != nil: - section.add "X-Amz-Algorithm", valid_623716 - var valid_623717 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623716 + var valid_623717 = header.getOrDefault("X-Amz-Security-Token") valid_623717 = validateParameter(valid_623717, JString, required = false, default = nil) if valid_623717 != nil: - section.add "X-Amz-SignedHeaders", valid_623717 + section.add "X-Amz-Security-Token", valid_623717 + var valid_623718 = header.getOrDefault("X-Amz-Algorithm") + valid_623718 = validateParameter(valid_623718, JString, required = false, + default = nil) + if valid_623718 != nil: + section.add "X-Amz-Algorithm", valid_623718 + var valid_623719 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623719 = validateParameter(valid_623719, JString, required = false, + default = nil) + if valid_623719 != nil: + section.add "X-Amz-SignedHeaders", valid_623719 result.add "header", section ## parameters in `formData` object: ## InstanceFamily: JString (required) @@ -103618,39 +103645,39 @@ proc validate_PostModifyDefaultCreditSpecification_623707(path: JsonNode; ## DryRun: JBool ## : 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. section = newJObject() - var valid_623718 = formData.getOrDefault("InstanceFamily") - valid_623718 = validateParameter(valid_623718, JString, required = true, + var valid_623720 = formData.getOrDefault("InstanceFamily") + valid_623720 = validateParameter(valid_623720, JString, required = true, default = newJString("t2")) - if valid_623718 != nil: - section.add "InstanceFamily", valid_623718 - var valid_623719 = formData.getOrDefault("CpuCredits") - valid_623719 = validateParameter(valid_623719, JString, required = true, - default = nil) - if valid_623719 != nil: - section.add "CpuCredits", valid_623719 - var valid_623720 = formData.getOrDefault("DryRun") - valid_623720 = validateParameter(valid_623720, JBool, required = false, default = nil) if valid_623720 != nil: - section.add "DryRun", valid_623720 + section.add "InstanceFamily", valid_623720 + var valid_623721 = formData.getOrDefault("CpuCredits") + valid_623721 = validateParameter(valid_623721, JString, required = true, + default = nil) + if valid_623721 != nil: + section.add "CpuCredits", valid_623721 + var valid_623722 = formData.getOrDefault("DryRun") + valid_623722 = validateParameter(valid_623722, JBool, required = false, default = nil) + if valid_623722 != nil: + section.add "DryRun", valid_623722 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623721: Call_PostModifyDefaultCreditSpecification_623706; +proc call*(call_623723: Call_PostModifyDefaultCreditSpecification_623708; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the default credit option for CPU usage of burstable performance instances. The default credit option is set at the account level per AWS Region, and is specified per instance family. All new burstable performance instances in the account launch using the default credit option.

    ModifyDefaultCreditSpecification is an asynchronous operation, which works at an AWS Region level and modifies the credit option for each Availability Zone. All zones in a Region are updated within five minutes. But if instances are launched during this operation, they might not get the new credit option until the zone is updated. To verify whether the update has occurred, you can call GetDefaultCreditSpecification and check DefaultCreditSpecification for updates.

    For more information, see Burstable Performance Instances in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_623721.validator(path, query, header, formData, body) - let scheme = call_623721.pickScheme + let valid = call_623723.validator(path, query, header, formData, body) + let scheme = call_623723.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623721.url(scheme.get, call_623721.host, call_623721.base, - call_623721.route, valid.getOrDefault("path"), + let url = call_623723.url(scheme.get, call_623723.host, call_623723.base, + call_623723.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623721, url, valid) + result = atozHook(call_623723, url, valid) -proc call*(call_623722: Call_PostModifyDefaultCreditSpecification_623706; +proc call*(call_623724: Call_PostModifyDefaultCreditSpecification_623708; CpuCredits: string; InstanceFamily: string = "t2"; DryRun: bool = false; Action: string = "ModifyDefaultCreditSpecification"; Version: string = "2016-11-15"): Recallable = @@ -103664,24 +103691,24 @@ proc call*(call_623722: Call_PostModifyDefaultCreditSpecification_623706; ## : 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. ## Action: string (required) ## Version: string (required) - var query_623723 = newJObject() - var formData_623724 = newJObject() - add(formData_623724, "InstanceFamily", newJString(InstanceFamily)) - add(formData_623724, "CpuCredits", newJString(CpuCredits)) - add(formData_623724, "DryRun", newJBool(DryRun)) - add(query_623723, "Action", newJString(Action)) - add(query_623723, "Version", newJString(Version)) - result = call_623722.call(nil, query_623723, nil, formData_623724, nil) + var query_623725 = newJObject() + var formData_623726 = newJObject() + add(formData_623726, "InstanceFamily", newJString(InstanceFamily)) + add(formData_623726, "CpuCredits", newJString(CpuCredits)) + add(formData_623726, "DryRun", newJBool(DryRun)) + add(query_623725, "Action", newJString(Action)) + add(query_623725, "Version", newJString(Version)) + result = call_623724.call(nil, query_623725, nil, formData_623726, nil) -var postModifyDefaultCreditSpecification* = Call_PostModifyDefaultCreditSpecification_623706( +var postModifyDefaultCreditSpecification* = Call_PostModifyDefaultCreditSpecification_623708( name: "postModifyDefaultCreditSpecification", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyDefaultCreditSpecification", - validator: validate_PostModifyDefaultCreditSpecification_623707, base: "/", - url: url_PostModifyDefaultCreditSpecification_623708, + validator: validate_PostModifyDefaultCreditSpecification_623709, base: "/", + url: url_PostModifyDefaultCreditSpecification_623710, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyDefaultCreditSpecification_623688 = ref object of OpenApiRestCall_610658 -proc url_GetModifyDefaultCreditSpecification_623690(protocol: Scheme; host: string; + Call_GetModifyDefaultCreditSpecification_623690 = ref object of OpenApiRestCall_610658 +proc url_GetModifyDefaultCreditSpecification_623692(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -103691,7 +103718,7 @@ proc url_GetModifyDefaultCreditSpecification_623690(protocol: Scheme; host: stri else: result.path = base & route -proc validate_GetModifyDefaultCreditSpecification_623689(path: JsonNode; +proc validate_GetModifyDefaultCreditSpecification_623691(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the default credit option for CPU usage of burstable performance instances. The default credit option is set at the account level per AWS Region, and is specified per instance family. All new burstable performance instances in the account launch using the default credit option.

    ModifyDefaultCreditSpecification is an asynchronous operation, which works at an AWS Region level and modifies the credit option for each Availability Zone. All zones in a Region are updated within five minutes. But if instances are launched during this operation, they might not get the new credit option until the zone is updated. To verify whether the update has occurred, you can call GetDefaultCreditSpecification and check DefaultCreditSpecification for updates.

    For more information, see Burstable Performance Instances in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -103709,30 +103736,30 @@ proc validate_GetModifyDefaultCreditSpecification_623689(path: JsonNode; ## CpuCredits: JString (required) ## :

    The credit option for CPU usage of the instance family.

    Valid Values: standard | unlimited

    section = newJObject() - var valid_623691 = query.getOrDefault("DryRun") - valid_623691 = validateParameter(valid_623691, JBool, required = false, default = nil) - if valid_623691 != nil: - section.add "DryRun", valid_623691 - var valid_623692 = query.getOrDefault("InstanceFamily") - valid_623692 = validateParameter(valid_623692, JString, required = true, - default = newJString("t2")) - if valid_623692 != nil: - section.add "InstanceFamily", valid_623692 - var valid_623693 = query.getOrDefault("Action") - valid_623693 = validateParameter(valid_623693, JString, required = true, default = newJString( - "ModifyDefaultCreditSpecification")) + var valid_623693 = query.getOrDefault("DryRun") + valid_623693 = validateParameter(valid_623693, JBool, required = false, default = nil) if valid_623693 != nil: - section.add "Action", valid_623693 - var valid_623694 = query.getOrDefault("Version") + section.add "DryRun", valid_623693 + var valid_623694 = query.getOrDefault("InstanceFamily") valid_623694 = validateParameter(valid_623694, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("t2")) if valid_623694 != nil: - section.add "Version", valid_623694 - var valid_623695 = query.getOrDefault("CpuCredits") - valid_623695 = validateParameter(valid_623695, JString, required = true, - default = nil) + section.add "InstanceFamily", valid_623694 + var valid_623695 = query.getOrDefault("Action") + valid_623695 = validateParameter(valid_623695, JString, required = true, default = newJString( + "ModifyDefaultCreditSpecification")) if valid_623695 != nil: - section.add "CpuCredits", valid_623695 + section.add "Action", valid_623695 + var valid_623696 = query.getOrDefault("Version") + valid_623696 = validateParameter(valid_623696, JString, required = true, + default = newJString("2016-11-15")) + if valid_623696 != nil: + section.add "Version", valid_623696 + var valid_623697 = query.getOrDefault("CpuCredits") + valid_623697 = validateParameter(valid_623697, JString, required = true, + default = nil) + if valid_623697 != nil: + section.add "CpuCredits", valid_623697 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -103743,62 +103770,62 @@ proc validate_GetModifyDefaultCreditSpecification_623689(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623696 = header.getOrDefault("X-Amz-Signature") - valid_623696 = validateParameter(valid_623696, JString, required = false, - default = nil) - if valid_623696 != nil: - section.add "X-Amz-Signature", valid_623696 - var valid_623697 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623697 = validateParameter(valid_623697, JString, required = false, - default = nil) - if valid_623697 != nil: - section.add "X-Amz-Content-Sha256", valid_623697 - var valid_623698 = header.getOrDefault("X-Amz-Date") + var valid_623698 = header.getOrDefault("X-Amz-Signature") valid_623698 = validateParameter(valid_623698, JString, required = false, default = nil) if valid_623698 != nil: - section.add "X-Amz-Date", valid_623698 - var valid_623699 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623698 + var valid_623699 = header.getOrDefault("X-Amz-Content-Sha256") valid_623699 = validateParameter(valid_623699, JString, required = false, default = nil) if valid_623699 != nil: - section.add "X-Amz-Credential", valid_623699 - var valid_623700 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623699 + var valid_623700 = header.getOrDefault("X-Amz-Date") valid_623700 = validateParameter(valid_623700, JString, required = false, default = nil) if valid_623700 != nil: - section.add "X-Amz-Security-Token", valid_623700 - var valid_623701 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623700 + var valid_623701 = header.getOrDefault("X-Amz-Credential") valid_623701 = validateParameter(valid_623701, JString, required = false, default = nil) if valid_623701 != nil: - section.add "X-Amz-Algorithm", valid_623701 - var valid_623702 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623701 + var valid_623702 = header.getOrDefault("X-Amz-Security-Token") valid_623702 = validateParameter(valid_623702, JString, required = false, default = nil) if valid_623702 != nil: - section.add "X-Amz-SignedHeaders", valid_623702 + section.add "X-Amz-Security-Token", valid_623702 + var valid_623703 = header.getOrDefault("X-Amz-Algorithm") + valid_623703 = validateParameter(valid_623703, JString, required = false, + default = nil) + if valid_623703 != nil: + section.add "X-Amz-Algorithm", valid_623703 + var valid_623704 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623704 = validateParameter(valid_623704, JString, required = false, + default = nil) + if valid_623704 != nil: + section.add "X-Amz-SignedHeaders", valid_623704 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623703: Call_GetModifyDefaultCreditSpecification_623688; +proc call*(call_623705: Call_GetModifyDefaultCreditSpecification_623690; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the default credit option for CPU usage of burstable performance instances. The default credit option is set at the account level per AWS Region, and is specified per instance family. All new burstable performance instances in the account launch using the default credit option.

    ModifyDefaultCreditSpecification is an asynchronous operation, which works at an AWS Region level and modifies the credit option for each Availability Zone. All zones in a Region are updated within five minutes. But if instances are launched during this operation, they might not get the new credit option until the zone is updated. To verify whether the update has occurred, you can call GetDefaultCreditSpecification and check DefaultCreditSpecification for updates.

    For more information, see Burstable Performance Instances in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_623703.validator(path, query, header, formData, body) - let scheme = call_623703.pickScheme + let valid = call_623705.validator(path, query, header, formData, body) + let scheme = call_623705.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623703.url(scheme.get, call_623703.host, call_623703.base, - call_623703.route, valid.getOrDefault("path"), + let url = call_623705.url(scheme.get, call_623705.host, call_623705.base, + call_623705.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623703, url, valid) + result = atozHook(call_623705, url, valid) -proc call*(call_623704: Call_GetModifyDefaultCreditSpecification_623688; +proc call*(call_623706: Call_GetModifyDefaultCreditSpecification_623690; CpuCredits: string; DryRun: bool = false; InstanceFamily: string = "t2"; Action: string = "ModifyDefaultCreditSpecification"; Version: string = "2016-11-15"): Recallable = @@ -103812,23 +103839,23 @@ proc call*(call_623704: Call_GetModifyDefaultCreditSpecification_623688; ## Version: string (required) ## CpuCredits: string (required) ## :

    The credit option for CPU usage of the instance family.

    Valid Values: standard | unlimited

    - var query_623705 = newJObject() - add(query_623705, "DryRun", newJBool(DryRun)) - add(query_623705, "InstanceFamily", newJString(InstanceFamily)) - add(query_623705, "Action", newJString(Action)) - add(query_623705, "Version", newJString(Version)) - add(query_623705, "CpuCredits", newJString(CpuCredits)) - result = call_623704.call(nil, query_623705, nil, nil, nil) - -var getModifyDefaultCreditSpecification* = Call_GetModifyDefaultCreditSpecification_623688( + var query_623707 = newJObject() + add(query_623707, "DryRun", newJBool(DryRun)) + add(query_623707, "InstanceFamily", newJString(InstanceFamily)) + add(query_623707, "Action", newJString(Action)) + add(query_623707, "Version", newJString(Version)) + add(query_623707, "CpuCredits", newJString(CpuCredits)) + result = call_623706.call(nil, query_623707, nil, nil, nil) + +var getModifyDefaultCreditSpecification* = Call_GetModifyDefaultCreditSpecification_623690( name: "getModifyDefaultCreditSpecification", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifyDefaultCreditSpecification", - validator: validate_GetModifyDefaultCreditSpecification_623689, base: "/", - url: url_GetModifyDefaultCreditSpecification_623690, + validator: validate_GetModifyDefaultCreditSpecification_623691, base: "/", + url: url_GetModifyDefaultCreditSpecification_623692, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyEbsDefaultKmsKeyId_623742 = ref object of OpenApiRestCall_610658 -proc url_PostModifyEbsDefaultKmsKeyId_623744(protocol: Scheme; host: string; + Call_PostModifyEbsDefaultKmsKeyId_623744 = ref object of OpenApiRestCall_610658 +proc url_PostModifyEbsDefaultKmsKeyId_623746(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -103838,7 +103865,7 @@ proc url_PostModifyEbsDefaultKmsKeyId_623744(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostModifyEbsDefaultKmsKeyId_623743(path: JsonNode; query: JsonNode; +proc validate_PostModifyEbsDefaultKmsKeyId_623745(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Changes the default customer master key (CMK) for EBS encryption by default for your account in this Region.

    AWS creates a unique AWS managed CMK in each Region for use with encryption by default. If you change the default CMK to a symmetric customer managed CMK, it is used instead of the AWS managed CMK. To reset the default CMK to the AWS managed CMK for EBS, use ResetEbsDefaultKmsKeyId. Amazon EBS does not support asymmetric CMKs.

    If you delete or disable the customer managed CMK that you specified for use with encryption by default, your instances will fail to launch.

    For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -103850,16 +103877,16 @@ proc validate_PostModifyEbsDefaultKmsKeyId_623743(path: JsonNode; query: JsonNod ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_623745 = query.getOrDefault("Action") - valid_623745 = validateParameter(valid_623745, JString, required = true, default = newJString( + var valid_623747 = query.getOrDefault("Action") + valid_623747 = validateParameter(valid_623747, JString, required = true, default = newJString( "ModifyEbsDefaultKmsKeyId")) - if valid_623745 != nil: - section.add "Action", valid_623745 - var valid_623746 = query.getOrDefault("Version") - valid_623746 = validateParameter(valid_623746, JString, required = true, + if valid_623747 != nil: + section.add "Action", valid_623747 + var valid_623748 = query.getOrDefault("Version") + valid_623748 = validateParameter(valid_623748, JString, required = true, default = newJString("2016-11-15")) - if valid_623746 != nil: - section.add "Version", valid_623746 + if valid_623748 != nil: + section.add "Version", valid_623748 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -103870,41 +103897,41 @@ proc validate_PostModifyEbsDefaultKmsKeyId_623743(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623747 = header.getOrDefault("X-Amz-Signature") - valid_623747 = validateParameter(valid_623747, JString, required = false, - default = nil) - if valid_623747 != nil: - section.add "X-Amz-Signature", valid_623747 - var valid_623748 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623748 = validateParameter(valid_623748, JString, required = false, - default = nil) - if valid_623748 != nil: - section.add "X-Amz-Content-Sha256", valid_623748 - var valid_623749 = header.getOrDefault("X-Amz-Date") + var valid_623749 = header.getOrDefault("X-Amz-Signature") valid_623749 = validateParameter(valid_623749, JString, required = false, default = nil) if valid_623749 != nil: - section.add "X-Amz-Date", valid_623749 - var valid_623750 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623749 + var valid_623750 = header.getOrDefault("X-Amz-Content-Sha256") valid_623750 = validateParameter(valid_623750, JString, required = false, default = nil) if valid_623750 != nil: - section.add "X-Amz-Credential", valid_623750 - var valid_623751 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623750 + var valid_623751 = header.getOrDefault("X-Amz-Date") valid_623751 = validateParameter(valid_623751, JString, required = false, default = nil) if valid_623751 != nil: - section.add "X-Amz-Security-Token", valid_623751 - var valid_623752 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623751 + var valid_623752 = header.getOrDefault("X-Amz-Credential") valid_623752 = validateParameter(valid_623752, JString, required = false, default = nil) if valid_623752 != nil: - section.add "X-Amz-Algorithm", valid_623752 - var valid_623753 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623752 + var valid_623753 = header.getOrDefault("X-Amz-Security-Token") valid_623753 = validateParameter(valid_623753, JString, required = false, default = nil) if valid_623753 != nil: - section.add "X-Amz-SignedHeaders", valid_623753 + section.add "X-Amz-Security-Token", valid_623753 + var valid_623754 = header.getOrDefault("X-Amz-Algorithm") + valid_623754 = validateParameter(valid_623754, JString, required = false, + default = nil) + if valid_623754 != nil: + section.add "X-Amz-Algorithm", valid_623754 + var valid_623755 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623755 = validateParameter(valid_623755, JString, required = false, + default = nil) + if valid_623755 != nil: + section.add "X-Amz-SignedHeaders", valid_623755 result.add "header", section ## parameters in `formData` object: ## KmsKeyId: JString (required) @@ -103916,33 +103943,33 @@ proc validate_PostModifyEbsDefaultKmsKeyId_623743(path: JsonNode; query: JsonNod section = newJObject() assert formData != nil, "formData argument is necessary due to required `KmsKeyId` field" - var valid_623754 = formData.getOrDefault("KmsKeyId") - valid_623754 = validateParameter(valid_623754, JString, required = true, + var valid_623756 = formData.getOrDefault("KmsKeyId") + valid_623756 = validateParameter(valid_623756, JString, required = true, default = nil) - if valid_623754 != nil: - section.add "KmsKeyId", valid_623754 - var valid_623755 = formData.getOrDefault("DryRun") - valid_623755 = validateParameter(valid_623755, JBool, required = false, default = nil) - if valid_623755 != nil: - section.add "DryRun", valid_623755 + if valid_623756 != nil: + section.add "KmsKeyId", valid_623756 + var valid_623757 = formData.getOrDefault("DryRun") + valid_623757 = validateParameter(valid_623757, JBool, required = false, default = nil) + if valid_623757 != nil: + section.add "DryRun", valid_623757 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623756: Call_PostModifyEbsDefaultKmsKeyId_623742; path: JsonNode; +proc call*(call_623758: Call_PostModifyEbsDefaultKmsKeyId_623744; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Changes the default customer master key (CMK) for EBS encryption by default for your account in this Region.

    AWS creates a unique AWS managed CMK in each Region for use with encryption by default. If you change the default CMK to a symmetric customer managed CMK, it is used instead of the AWS managed CMK. To reset the default CMK to the AWS managed CMK for EBS, use ResetEbsDefaultKmsKeyId. Amazon EBS does not support asymmetric CMKs.

    If you delete or disable the customer managed CMK that you specified for use with encryption by default, your instances will fail to launch.

    For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_623756.validator(path, query, header, formData, body) - let scheme = call_623756.pickScheme + let valid = call_623758.validator(path, query, header, formData, body) + let scheme = call_623758.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623756.url(scheme.get, call_623756.host, call_623756.base, - call_623756.route, valid.getOrDefault("path"), + let url = call_623758.url(scheme.get, call_623758.host, call_623758.base, + call_623758.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623756, url, valid) + result = atozHook(call_623758, url, valid) -proc call*(call_623757: Call_PostModifyEbsDefaultKmsKeyId_623742; KmsKeyId: string; +proc call*(call_623759: Call_PostModifyEbsDefaultKmsKeyId_623744; KmsKeyId: string; DryRun: bool = false; Action: string = "ModifyEbsDefaultKmsKeyId"; Version: string = "2016-11-15"): Recallable = ## postModifyEbsDefaultKmsKeyId @@ -103955,23 +103982,23 @@ proc call*(call_623757: Call_PostModifyEbsDefaultKmsKeyId_623742; KmsKeyId: stri ## : 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. ## Action: string (required) ## Version: string (required) - var query_623758 = newJObject() - var formData_623759 = newJObject() - add(formData_623759, "KmsKeyId", newJString(KmsKeyId)) - add(formData_623759, "DryRun", newJBool(DryRun)) - add(query_623758, "Action", newJString(Action)) - add(query_623758, "Version", newJString(Version)) - result = call_623757.call(nil, query_623758, nil, formData_623759, nil) + var query_623760 = newJObject() + var formData_623761 = newJObject() + add(formData_623761, "KmsKeyId", newJString(KmsKeyId)) + add(formData_623761, "DryRun", newJBool(DryRun)) + add(query_623760, "Action", newJString(Action)) + add(query_623760, "Version", newJString(Version)) + result = call_623759.call(nil, query_623760, nil, formData_623761, nil) -var postModifyEbsDefaultKmsKeyId* = Call_PostModifyEbsDefaultKmsKeyId_623742( +var postModifyEbsDefaultKmsKeyId* = Call_PostModifyEbsDefaultKmsKeyId_623744( name: "postModifyEbsDefaultKmsKeyId", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyEbsDefaultKmsKeyId", - validator: validate_PostModifyEbsDefaultKmsKeyId_623743, base: "/", - url: url_PostModifyEbsDefaultKmsKeyId_623744, + validator: validate_PostModifyEbsDefaultKmsKeyId_623745, base: "/", + url: url_PostModifyEbsDefaultKmsKeyId_623746, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyEbsDefaultKmsKeyId_623725 = ref object of OpenApiRestCall_610658 -proc url_GetModifyEbsDefaultKmsKeyId_623727(protocol: Scheme; host: string; + Call_GetModifyEbsDefaultKmsKeyId_623727 = ref object of OpenApiRestCall_610658 +proc url_GetModifyEbsDefaultKmsKeyId_623729(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -103981,7 +104008,7 @@ proc url_GetModifyEbsDefaultKmsKeyId_623727(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetModifyEbsDefaultKmsKeyId_623726(path: JsonNode; query: JsonNode; +proc validate_GetModifyEbsDefaultKmsKeyId_623728(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Changes the default customer master key (CMK) for EBS encryption by default for your account in this Region.

    AWS creates a unique AWS managed CMK in each Region for use with encryption by default. If you change the default CMK to a symmetric customer managed CMK, it is used instead of the AWS managed CMK. To reset the default CMK to the AWS managed CMK for EBS, use ResetEbsDefaultKmsKeyId. Amazon EBS does not support asymmetric CMKs.

    If you delete or disable the customer managed CMK that you specified for use with encryption by default, your instances will fail to launch.

    For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -103999,27 +104026,27 @@ proc validate_GetModifyEbsDefaultKmsKeyId_623726(path: JsonNode; query: JsonNode ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_623728 = query.getOrDefault("DryRun") - valid_623728 = validateParameter(valid_623728, JBool, required = false, default = nil) - if valid_623728 != nil: - section.add "DryRun", valid_623728 + var valid_623730 = query.getOrDefault("DryRun") + valid_623730 = validateParameter(valid_623730, JBool, required = false, default = nil) + if valid_623730 != nil: + section.add "DryRun", valid_623730 assert query != nil, "query argument is necessary due to required `KmsKeyId` field" - var valid_623729 = query.getOrDefault("KmsKeyId") - valid_623729 = validateParameter(valid_623729, JString, required = true, + var valid_623731 = query.getOrDefault("KmsKeyId") + valid_623731 = validateParameter(valid_623731, JString, required = true, default = nil) - if valid_623729 != nil: - section.add "KmsKeyId", valid_623729 - var valid_623730 = query.getOrDefault("Action") - valid_623730 = validateParameter(valid_623730, JString, required = true, default = newJString( + if valid_623731 != nil: + section.add "KmsKeyId", valid_623731 + var valid_623732 = query.getOrDefault("Action") + valid_623732 = validateParameter(valid_623732, JString, required = true, default = newJString( "ModifyEbsDefaultKmsKeyId")) - if valid_623730 != nil: - section.add "Action", valid_623730 - var valid_623731 = query.getOrDefault("Version") - valid_623731 = validateParameter(valid_623731, JString, required = true, + if valid_623732 != nil: + section.add "Action", valid_623732 + var valid_623733 = query.getOrDefault("Version") + valid_623733 = validateParameter(valid_623733, JString, required = true, default = newJString("2016-11-15")) - if valid_623731 != nil: - section.add "Version", valid_623731 + if valid_623733 != nil: + section.add "Version", valid_623733 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -104030,61 +104057,61 @@ proc validate_GetModifyEbsDefaultKmsKeyId_623726(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623732 = header.getOrDefault("X-Amz-Signature") - valid_623732 = validateParameter(valid_623732, JString, required = false, - default = nil) - if valid_623732 != nil: - section.add "X-Amz-Signature", valid_623732 - var valid_623733 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623733 = validateParameter(valid_623733, JString, required = false, - default = nil) - if valid_623733 != nil: - section.add "X-Amz-Content-Sha256", valid_623733 - var valid_623734 = header.getOrDefault("X-Amz-Date") + var valid_623734 = header.getOrDefault("X-Amz-Signature") valid_623734 = validateParameter(valid_623734, JString, required = false, default = nil) if valid_623734 != nil: - section.add "X-Amz-Date", valid_623734 - var valid_623735 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623734 + var valid_623735 = header.getOrDefault("X-Amz-Content-Sha256") valid_623735 = validateParameter(valid_623735, JString, required = false, default = nil) if valid_623735 != nil: - section.add "X-Amz-Credential", valid_623735 - var valid_623736 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623735 + var valid_623736 = header.getOrDefault("X-Amz-Date") valid_623736 = validateParameter(valid_623736, JString, required = false, default = nil) if valid_623736 != nil: - section.add "X-Amz-Security-Token", valid_623736 - var valid_623737 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623736 + var valid_623737 = header.getOrDefault("X-Amz-Credential") valid_623737 = validateParameter(valid_623737, JString, required = false, default = nil) if valid_623737 != nil: - section.add "X-Amz-Algorithm", valid_623737 - var valid_623738 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623737 + var valid_623738 = header.getOrDefault("X-Amz-Security-Token") valid_623738 = validateParameter(valid_623738, JString, required = false, default = nil) if valid_623738 != nil: - section.add "X-Amz-SignedHeaders", valid_623738 + section.add "X-Amz-Security-Token", valid_623738 + var valid_623739 = header.getOrDefault("X-Amz-Algorithm") + valid_623739 = validateParameter(valid_623739, JString, required = false, + default = nil) + if valid_623739 != nil: + section.add "X-Amz-Algorithm", valid_623739 + var valid_623740 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623740 = validateParameter(valid_623740, JString, required = false, + default = nil) + if valid_623740 != nil: + section.add "X-Amz-SignedHeaders", valid_623740 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623739: Call_GetModifyEbsDefaultKmsKeyId_623725; path: JsonNode; +proc call*(call_623741: Call_GetModifyEbsDefaultKmsKeyId_623727; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Changes the default customer master key (CMK) for EBS encryption by default for your account in this Region.

    AWS creates a unique AWS managed CMK in each Region for use with encryption by default. If you change the default CMK to a symmetric customer managed CMK, it is used instead of the AWS managed CMK. To reset the default CMK to the AWS managed CMK for EBS, use ResetEbsDefaultKmsKeyId. Amazon EBS does not support asymmetric CMKs.

    If you delete or disable the customer managed CMK that you specified for use with encryption by default, your instances will fail to launch.

    For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_623739.validator(path, query, header, formData, body) - let scheme = call_623739.pickScheme + let valid = call_623741.validator(path, query, header, formData, body) + let scheme = call_623741.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623739.url(scheme.get, call_623739.host, call_623739.base, - call_623739.route, valid.getOrDefault("path"), + let url = call_623741.url(scheme.get, call_623741.host, call_623741.base, + call_623741.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623739, url, valid) + result = atozHook(call_623741, url, valid) -proc call*(call_623740: Call_GetModifyEbsDefaultKmsKeyId_623725; KmsKeyId: string; +proc call*(call_623742: Call_GetModifyEbsDefaultKmsKeyId_623727; KmsKeyId: string; DryRun: bool = false; Action: string = "ModifyEbsDefaultKmsKeyId"; Version: string = "2016-11-15"): Recallable = ## getModifyEbsDefaultKmsKeyId @@ -104097,22 +104124,22 @@ proc call*(call_623740: Call_GetModifyEbsDefaultKmsKeyId_623725; KmsKeyId: strin ## arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.

    AWS authenticates the CMK asynchronously. Therefore, if you specify an ID, alias, or ARN that is not valid, the action can appear to complete, but eventually fails.

    Amazon EBS does not support asymmetric CMKs.

    ## Action: string (required) ## Version: string (required) - var query_623741 = newJObject() - add(query_623741, "DryRun", newJBool(DryRun)) - add(query_623741, "KmsKeyId", newJString(KmsKeyId)) - add(query_623741, "Action", newJString(Action)) - add(query_623741, "Version", newJString(Version)) - result = call_623740.call(nil, query_623741, nil, nil, nil) + var query_623743 = newJObject() + add(query_623743, "DryRun", newJBool(DryRun)) + add(query_623743, "KmsKeyId", newJString(KmsKeyId)) + add(query_623743, "Action", newJString(Action)) + add(query_623743, "Version", newJString(Version)) + result = call_623742.call(nil, query_623743, nil, nil, nil) -var getModifyEbsDefaultKmsKeyId* = Call_GetModifyEbsDefaultKmsKeyId_623725( +var getModifyEbsDefaultKmsKeyId* = Call_GetModifyEbsDefaultKmsKeyId_623727( name: "getModifyEbsDefaultKmsKeyId", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifyEbsDefaultKmsKeyId", - validator: validate_GetModifyEbsDefaultKmsKeyId_623726, base: "/", - url: url_GetModifyEbsDefaultKmsKeyId_623727, + validator: validate_GetModifyEbsDefaultKmsKeyId_623728, base: "/", + url: url_GetModifyEbsDefaultKmsKeyId_623729, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyFleet_623782 = ref object of OpenApiRestCall_610658 -proc url_PostModifyFleet_623784(protocol: Scheme; host: string; base: string; + Call_PostModifyFleet_623784 = ref object of OpenApiRestCall_610658 +proc url_PostModifyFleet_623786(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -104122,7 +104149,7 @@ proc url_PostModifyFleet_623784(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostModifyFleet_623783(path: JsonNode; query: JsonNode; +proc validate_PostModifyFleet_623785(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the specified EC2 Fleet.

    You can only modify an EC2 Fleet request of type maintain.

    While the EC2 Fleet is being modified, it is in the modifying state.

    To scale up your EC2 Fleet, increase its target capacity. The EC2 Fleet launches the additional Spot Instances according to the allocation strategy for the EC2 Fleet request. If the allocation strategy is lowest-price, the EC2 Fleet launches instances using the Spot Instance pool with the lowest price. If the allocation strategy is diversified, the EC2 Fleet distributes the instances across the Spot Instance pools. If the allocation strategy is capacity-optimized, EC2 Fleet launches instances from Spot Instance pools with optimal capacity for the number of instances that are launching.

    To scale down your EC2 Fleet, decrease its target capacity. First, the EC2 Fleet cancels any open requests that exceed the new target capacity. You can request that the EC2 Fleet terminate Spot Instances until the size of the fleet no longer exceeds the new target capacity. If the allocation strategy is lowest-price, the EC2 Fleet terminates the instances with the highest price per unit. If the allocation strategy is capacity-optimized, the EC2 Fleet terminates the instances in the Spot Instance pools that have the least available Spot Instance capacity. If the allocation strategy is diversified, the EC2 Fleet terminates instances across the Spot Instance pools. Alternatively, you can request that the EC2 Fleet keep the fleet at its current size, but not replace any Spot Instances that are interrupted or that you terminate manually.

    If you are finished with your EC2 Fleet for now, but will use it again later, you can set the target capacity to 0.

    @@ -104135,16 +104162,16 @@ proc validate_PostModifyFleet_623783(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_623785 = query.getOrDefault("Action") - valid_623785 = validateParameter(valid_623785, JString, required = true, + var valid_623787 = query.getOrDefault("Action") + valid_623787 = validateParameter(valid_623787, JString, required = true, default = newJString("ModifyFleet")) - if valid_623785 != nil: - section.add "Action", valid_623785 - var valid_623786 = query.getOrDefault("Version") - valid_623786 = validateParameter(valid_623786, JString, required = true, + if valid_623787 != nil: + section.add "Action", valid_623787 + var valid_623788 = query.getOrDefault("Version") + valid_623788 = validateParameter(valid_623788, JString, required = true, default = newJString("2016-11-15")) - if valid_623786 != nil: - section.add "Version", valid_623786 + if valid_623788 != nil: + section.add "Version", valid_623788 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -104155,41 +104182,41 @@ proc validate_PostModifyFleet_623783(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623787 = header.getOrDefault("X-Amz-Signature") - valid_623787 = validateParameter(valid_623787, JString, required = false, - default = nil) - if valid_623787 != nil: - section.add "X-Amz-Signature", valid_623787 - var valid_623788 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623788 = validateParameter(valid_623788, JString, required = false, - default = nil) - if valid_623788 != nil: - section.add "X-Amz-Content-Sha256", valid_623788 - var valid_623789 = header.getOrDefault("X-Amz-Date") + var valid_623789 = header.getOrDefault("X-Amz-Signature") valid_623789 = validateParameter(valid_623789, JString, required = false, default = nil) if valid_623789 != nil: - section.add "X-Amz-Date", valid_623789 - var valid_623790 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623789 + var valid_623790 = header.getOrDefault("X-Amz-Content-Sha256") valid_623790 = validateParameter(valid_623790, JString, required = false, default = nil) if valid_623790 != nil: - section.add "X-Amz-Credential", valid_623790 - var valid_623791 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623790 + var valid_623791 = header.getOrDefault("X-Amz-Date") valid_623791 = validateParameter(valid_623791, JString, required = false, default = nil) if valid_623791 != nil: - section.add "X-Amz-Security-Token", valid_623791 - var valid_623792 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623791 + var valid_623792 = header.getOrDefault("X-Amz-Credential") valid_623792 = validateParameter(valid_623792, JString, required = false, default = nil) if valid_623792 != nil: - section.add "X-Amz-Algorithm", valid_623792 - var valid_623793 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623792 + var valid_623793 = header.getOrDefault("X-Amz-Security-Token") valid_623793 = validateParameter(valid_623793, JString, required = false, default = nil) if valid_623793 != nil: - section.add "X-Amz-SignedHeaders", valid_623793 + section.add "X-Amz-Security-Token", valid_623793 + var valid_623794 = header.getOrDefault("X-Amz-Algorithm") + valid_623794 = validateParameter(valid_623794, JString, required = false, + default = nil) + if valid_623794 != nil: + section.add "X-Amz-Algorithm", valid_623794 + var valid_623795 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623795 = validateParameter(valid_623795, JString, required = false, + default = nil) + if valid_623795 != nil: + section.add "X-Amz-SignedHeaders", valid_623795 result.add "header", section ## parameters in `formData` object: ## TargetCapacitySpecification.TotalTargetCapacity: JString @@ -104211,60 +104238,60 @@ proc validate_PostModifyFleet_623783(path: JsonNode; query: JsonNode; ## FleetId: JString (required) ## : The ID of the EC2 Fleet. section = newJObject() - var valid_623794 = formData.getOrDefault("TargetCapacitySpecification.TotalTargetCapacity") - valid_623794 = validateParameter(valid_623794, JString, required = false, - default = nil) - if valid_623794 != nil: - section.add "TargetCapacitySpecification.TotalTargetCapacity", valid_623794 - var valid_623795 = formData.getOrDefault("ExcessCapacityTerminationPolicy") - valid_623795 = validateParameter(valid_623795, JString, required = false, - default = newJString("no-termination")) - if valid_623795 != nil: - section.add "ExcessCapacityTerminationPolicy", valid_623795 - var valid_623796 = formData.getOrDefault("TargetCapacitySpecification.DefaultTargetCapacityType") + var valid_623796 = formData.getOrDefault("TargetCapacitySpecification.TotalTargetCapacity") valid_623796 = validateParameter(valid_623796, JString, required = false, default = nil) if valid_623796 != nil: - section.add "TargetCapacitySpecification.DefaultTargetCapacityType", valid_623796 - var valid_623797 = formData.getOrDefault("TargetCapacitySpecification.SpotTargetCapacity") + section.add "TargetCapacitySpecification.TotalTargetCapacity", valid_623796 + var valid_623797 = formData.getOrDefault("ExcessCapacityTerminationPolicy") valid_623797 = validateParameter(valid_623797, JString, required = false, - default = nil) + default = newJString("no-termination")) if valid_623797 != nil: - section.add "TargetCapacitySpecification.SpotTargetCapacity", valid_623797 - var valid_623798 = formData.getOrDefault("TargetCapacitySpecification.OnDemandTargetCapacity") + section.add "ExcessCapacityTerminationPolicy", valid_623797 + var valid_623798 = formData.getOrDefault("TargetCapacitySpecification.DefaultTargetCapacityType") valid_623798 = validateParameter(valid_623798, JString, required = false, default = nil) if valid_623798 != nil: - section.add "TargetCapacitySpecification.OnDemandTargetCapacity", valid_623798 - var valid_623799 = formData.getOrDefault("DryRun") - valid_623799 = validateParameter(valid_623799, JBool, required = false, default = nil) + section.add "TargetCapacitySpecification.DefaultTargetCapacityType", valid_623798 + var valid_623799 = formData.getOrDefault("TargetCapacitySpecification.SpotTargetCapacity") + valid_623799 = validateParameter(valid_623799, JString, required = false, + default = nil) if valid_623799 != nil: - section.add "DryRun", valid_623799 + section.add "TargetCapacitySpecification.SpotTargetCapacity", valid_623799 + var valid_623800 = formData.getOrDefault("TargetCapacitySpecification.OnDemandTargetCapacity") + valid_623800 = validateParameter(valid_623800, JString, required = false, + default = nil) + if valid_623800 != nil: + section.add "TargetCapacitySpecification.OnDemandTargetCapacity", valid_623800 + var valid_623801 = formData.getOrDefault("DryRun") + valid_623801 = validateParameter(valid_623801, JBool, required = false, default = nil) + if valid_623801 != nil: + section.add "DryRun", valid_623801 assert formData != nil, "formData argument is necessary due to required `FleetId` field" - var valid_623800 = formData.getOrDefault("FleetId") - valid_623800 = validateParameter(valid_623800, JString, required = true, + var valid_623802 = formData.getOrDefault("FleetId") + valid_623802 = validateParameter(valid_623802, JString, required = true, default = nil) - if valid_623800 != nil: - section.add "FleetId", valid_623800 + if valid_623802 != nil: + section.add "FleetId", valid_623802 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623801: Call_PostModifyFleet_623782; path: JsonNode; query: JsonNode; +proc call*(call_623803: Call_PostModifyFleet_623784; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the specified EC2 Fleet.

    You can only modify an EC2 Fleet request of type maintain.

    While the EC2 Fleet is being modified, it is in the modifying state.

    To scale up your EC2 Fleet, increase its target capacity. The EC2 Fleet launches the additional Spot Instances according to the allocation strategy for the EC2 Fleet request. If the allocation strategy is lowest-price, the EC2 Fleet launches instances using the Spot Instance pool with the lowest price. If the allocation strategy is diversified, the EC2 Fleet distributes the instances across the Spot Instance pools. If the allocation strategy is capacity-optimized, EC2 Fleet launches instances from Spot Instance pools with optimal capacity for the number of instances that are launching.

    To scale down your EC2 Fleet, decrease its target capacity. First, the EC2 Fleet cancels any open requests that exceed the new target capacity. You can request that the EC2 Fleet terminate Spot Instances until the size of the fleet no longer exceeds the new target capacity. If the allocation strategy is lowest-price, the EC2 Fleet terminates the instances with the highest price per unit. If the allocation strategy is capacity-optimized, the EC2 Fleet terminates the instances in the Spot Instance pools that have the least available Spot Instance capacity. If the allocation strategy is diversified, the EC2 Fleet terminates instances across the Spot Instance pools. Alternatively, you can request that the EC2 Fleet keep the fleet at its current size, but not replace any Spot Instances that are interrupted or that you terminate manually.

    If you are finished with your EC2 Fleet for now, but will use it again later, you can set the target capacity to 0.

    ## - let valid = call_623801.validator(path, query, header, formData, body) - let scheme = call_623801.pickScheme + let valid = call_623803.validator(path, query, header, formData, body) + let scheme = call_623803.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623801.url(scheme.get, call_623801.host, call_623801.base, - call_623801.route, valid.getOrDefault("path"), + let url = call_623803.url(scheme.get, call_623803.host, call_623803.base, + call_623803.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623801, url, valid) + result = atozHook(call_623803, url, valid) -proc call*(call_623802: Call_PostModifyFleet_623782; FleetId: string; +proc call*(call_623804: Call_PostModifyFleet_623784; FleetId: string; TargetCapacitySpecificationTotalTargetCapacity: string = ""; ExcessCapacityTerminationPolicy: string = "no-termination"; TargetCapacitySpecificationDefaultTargetCapacityType: string = ""; @@ -104294,31 +104321,31 @@ proc call*(call_623802: Call_PostModifyFleet_623782; FleetId: string; ## : The ID of the EC2 Fleet. ## Action: string (required) ## Version: string (required) - var query_623803 = newJObject() - var formData_623804 = newJObject() - add(formData_623804, "TargetCapacitySpecification.TotalTargetCapacity", + var query_623805 = newJObject() + var formData_623806 = newJObject() + add(formData_623806, "TargetCapacitySpecification.TotalTargetCapacity", newJString(TargetCapacitySpecificationTotalTargetCapacity)) - add(formData_623804, "ExcessCapacityTerminationPolicy", + add(formData_623806, "ExcessCapacityTerminationPolicy", newJString(ExcessCapacityTerminationPolicy)) - add(formData_623804, "TargetCapacitySpecification.DefaultTargetCapacityType", + add(formData_623806, "TargetCapacitySpecification.DefaultTargetCapacityType", newJString(TargetCapacitySpecificationDefaultTargetCapacityType)) - add(formData_623804, "TargetCapacitySpecification.SpotTargetCapacity", + add(formData_623806, "TargetCapacitySpecification.SpotTargetCapacity", newJString(TargetCapacitySpecificationSpotTargetCapacity)) - add(formData_623804, "TargetCapacitySpecification.OnDemandTargetCapacity", + add(formData_623806, "TargetCapacitySpecification.OnDemandTargetCapacity", newJString(TargetCapacitySpecificationOnDemandTargetCapacity)) - add(formData_623804, "DryRun", newJBool(DryRun)) - add(formData_623804, "FleetId", newJString(FleetId)) - add(query_623803, "Action", newJString(Action)) - add(query_623803, "Version", newJString(Version)) - result = call_623802.call(nil, query_623803, nil, formData_623804, nil) + add(formData_623806, "DryRun", newJBool(DryRun)) + add(formData_623806, "FleetId", newJString(FleetId)) + add(query_623805, "Action", newJString(Action)) + add(query_623805, "Version", newJString(Version)) + result = call_623804.call(nil, query_623805, nil, formData_623806, nil) -var postModifyFleet* = Call_PostModifyFleet_623782(name: "postModifyFleet", +var postModifyFleet* = Call_PostModifyFleet_623784(name: "postModifyFleet", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", - route: "/#Action=ModifyFleet", validator: validate_PostModifyFleet_623783, - base: "/", url: url_PostModifyFleet_623784, schemes: {Scheme.Https, Scheme.Http}) + route: "/#Action=ModifyFleet", validator: validate_PostModifyFleet_623785, + base: "/", url: url_PostModifyFleet_623786, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyFleet_623760 = ref object of OpenApiRestCall_610658 -proc url_GetModifyFleet_623762(protocol: Scheme; host: string; base: string; + Call_GetModifyFleet_623762 = ref object of OpenApiRestCall_610658 +proc url_GetModifyFleet_623764(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -104328,7 +104355,7 @@ proc url_GetModifyFleet_623762(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetModifyFleet_623761(path: JsonNode; query: JsonNode; +proc validate_GetModifyFleet_623763(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the specified EC2 Fleet.

    You can only modify an EC2 Fleet request of type maintain.

    While the EC2 Fleet is being modified, it is in the modifying state.

    To scale up your EC2 Fleet, increase its target capacity. The EC2 Fleet launches the additional Spot Instances according to the allocation strategy for the EC2 Fleet request. If the allocation strategy is lowest-price, the EC2 Fleet launches instances using the Spot Instance pool with the lowest price. If the allocation strategy is diversified, the EC2 Fleet distributes the instances across the Spot Instance pools. If the allocation strategy is capacity-optimized, EC2 Fleet launches instances from Spot Instance pools with optimal capacity for the number of instances that are launching.

    To scale down your EC2 Fleet, decrease its target capacity. First, the EC2 Fleet cancels any open requests that exceed the new target capacity. You can request that the EC2 Fleet terminate Spot Instances until the size of the fleet no longer exceeds the new target capacity. If the allocation strategy is lowest-price, the EC2 Fleet terminates the instances with the highest price per unit. If the allocation strategy is capacity-optimized, the EC2 Fleet terminates the instances in the Spot Instance pools that have the least available Spot Instance capacity. If the allocation strategy is diversified, the EC2 Fleet terminates instances across the Spot Instance pools. Alternatively, you can request that the EC2 Fleet keep the fleet at its current size, but not replace any Spot Instances that are interrupted or that you terminate manually.

    If you are finished with your EC2 Fleet for now, but will use it again later, you can set the target capacity to 0.

    @@ -104359,50 +104386,50 @@ proc validate_GetModifyFleet_623761(path: JsonNode; query: JsonNode; ## FleetId: JString (required) ## : The ID of the EC2 Fleet. section = newJObject() - var valid_623763 = query.getOrDefault("TargetCapacitySpecification.TotalTargetCapacity") - valid_623763 = validateParameter(valid_623763, JString, required = false, - default = nil) - if valid_623763 != nil: - section.add "TargetCapacitySpecification.TotalTargetCapacity", valid_623763 - var valid_623764 = query.getOrDefault("DryRun") - valid_623764 = validateParameter(valid_623764, JBool, required = false, default = nil) - if valid_623764 != nil: - section.add "DryRun", valid_623764 - var valid_623765 = query.getOrDefault("TargetCapacitySpecification.OnDemandTargetCapacity") + var valid_623765 = query.getOrDefault("TargetCapacitySpecification.TotalTargetCapacity") valid_623765 = validateParameter(valid_623765, JString, required = false, default = nil) if valid_623765 != nil: - section.add "TargetCapacitySpecification.OnDemandTargetCapacity", valid_623765 - var valid_623766 = query.getOrDefault("TargetCapacitySpecification.DefaultTargetCapacityType") - valid_623766 = validateParameter(valid_623766, JString, required = false, - default = nil) + section.add "TargetCapacitySpecification.TotalTargetCapacity", valid_623765 + var valid_623766 = query.getOrDefault("DryRun") + valid_623766 = validateParameter(valid_623766, JBool, required = false, default = nil) if valid_623766 != nil: - section.add "TargetCapacitySpecification.DefaultTargetCapacityType", valid_623766 - var valid_623767 = query.getOrDefault("Action") - valid_623767 = validateParameter(valid_623767, JString, required = true, - default = newJString("ModifyFleet")) + section.add "DryRun", valid_623766 + var valid_623767 = query.getOrDefault("TargetCapacitySpecification.OnDemandTargetCapacity") + valid_623767 = validateParameter(valid_623767, JString, required = false, + default = nil) if valid_623767 != nil: - section.add "Action", valid_623767 - var valid_623768 = query.getOrDefault("TargetCapacitySpecification.SpotTargetCapacity") + section.add "TargetCapacitySpecification.OnDemandTargetCapacity", valid_623767 + var valid_623768 = query.getOrDefault("TargetCapacitySpecification.DefaultTargetCapacityType") valid_623768 = validateParameter(valid_623768, JString, required = false, default = nil) if valid_623768 != nil: - section.add "TargetCapacitySpecification.SpotTargetCapacity", valid_623768 - var valid_623769 = query.getOrDefault("Version") + section.add "TargetCapacitySpecification.DefaultTargetCapacityType", valid_623768 + var valid_623769 = query.getOrDefault("Action") valid_623769 = validateParameter(valid_623769, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("ModifyFleet")) if valid_623769 != nil: - section.add "Version", valid_623769 - var valid_623770 = query.getOrDefault("ExcessCapacityTerminationPolicy") + section.add "Action", valid_623769 + var valid_623770 = query.getOrDefault("TargetCapacitySpecification.SpotTargetCapacity") valid_623770 = validateParameter(valid_623770, JString, required = false, - default = newJString("no-termination")) + default = nil) if valid_623770 != nil: - section.add "ExcessCapacityTerminationPolicy", valid_623770 - var valid_623771 = query.getOrDefault("FleetId") + section.add "TargetCapacitySpecification.SpotTargetCapacity", valid_623770 + var valid_623771 = query.getOrDefault("Version") valid_623771 = validateParameter(valid_623771, JString, required = true, - default = nil) + default = newJString("2016-11-15")) if valid_623771 != nil: - section.add "FleetId", valid_623771 + section.add "Version", valid_623771 + var valid_623772 = query.getOrDefault("ExcessCapacityTerminationPolicy") + valid_623772 = validateParameter(valid_623772, JString, required = false, + default = newJString("no-termination")) + if valid_623772 != nil: + section.add "ExcessCapacityTerminationPolicy", valid_623772 + var valid_623773 = query.getOrDefault("FleetId") + valid_623773 = validateParameter(valid_623773, JString, required = true, + default = nil) + if valid_623773 != nil: + section.add "FleetId", valid_623773 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -104413,61 +104440,61 @@ proc validate_GetModifyFleet_623761(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623772 = header.getOrDefault("X-Amz-Signature") - valid_623772 = validateParameter(valid_623772, JString, required = false, - default = nil) - if valid_623772 != nil: - section.add "X-Amz-Signature", valid_623772 - var valid_623773 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623773 = validateParameter(valid_623773, JString, required = false, - default = nil) - if valid_623773 != nil: - section.add "X-Amz-Content-Sha256", valid_623773 - var valid_623774 = header.getOrDefault("X-Amz-Date") + var valid_623774 = header.getOrDefault("X-Amz-Signature") valid_623774 = validateParameter(valid_623774, JString, required = false, default = nil) if valid_623774 != nil: - section.add "X-Amz-Date", valid_623774 - var valid_623775 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623774 + var valid_623775 = header.getOrDefault("X-Amz-Content-Sha256") valid_623775 = validateParameter(valid_623775, JString, required = false, default = nil) if valid_623775 != nil: - section.add "X-Amz-Credential", valid_623775 - var valid_623776 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623775 + var valid_623776 = header.getOrDefault("X-Amz-Date") valid_623776 = validateParameter(valid_623776, JString, required = false, default = nil) if valid_623776 != nil: - section.add "X-Amz-Security-Token", valid_623776 - var valid_623777 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623776 + var valid_623777 = header.getOrDefault("X-Amz-Credential") valid_623777 = validateParameter(valid_623777, JString, required = false, default = nil) if valid_623777 != nil: - section.add "X-Amz-Algorithm", valid_623777 - var valid_623778 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623777 + var valid_623778 = header.getOrDefault("X-Amz-Security-Token") valid_623778 = validateParameter(valid_623778, JString, required = false, default = nil) if valid_623778 != nil: - section.add "X-Amz-SignedHeaders", valid_623778 + section.add "X-Amz-Security-Token", valid_623778 + var valid_623779 = header.getOrDefault("X-Amz-Algorithm") + valid_623779 = validateParameter(valid_623779, JString, required = false, + default = nil) + if valid_623779 != nil: + section.add "X-Amz-Algorithm", valid_623779 + var valid_623780 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623780 = validateParameter(valid_623780, JString, required = false, + default = nil) + if valid_623780 != nil: + section.add "X-Amz-SignedHeaders", valid_623780 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623779: Call_GetModifyFleet_623760; path: JsonNode; query: JsonNode; +proc call*(call_623781: Call_GetModifyFleet_623762; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the specified EC2 Fleet.

    You can only modify an EC2 Fleet request of type maintain.

    While the EC2 Fleet is being modified, it is in the modifying state.

    To scale up your EC2 Fleet, increase its target capacity. The EC2 Fleet launches the additional Spot Instances according to the allocation strategy for the EC2 Fleet request. If the allocation strategy is lowest-price, the EC2 Fleet launches instances using the Spot Instance pool with the lowest price. If the allocation strategy is diversified, the EC2 Fleet distributes the instances across the Spot Instance pools. If the allocation strategy is capacity-optimized, EC2 Fleet launches instances from Spot Instance pools with optimal capacity for the number of instances that are launching.

    To scale down your EC2 Fleet, decrease its target capacity. First, the EC2 Fleet cancels any open requests that exceed the new target capacity. You can request that the EC2 Fleet terminate Spot Instances until the size of the fleet no longer exceeds the new target capacity. If the allocation strategy is lowest-price, the EC2 Fleet terminates the instances with the highest price per unit. If the allocation strategy is capacity-optimized, the EC2 Fleet terminates the instances in the Spot Instance pools that have the least available Spot Instance capacity. If the allocation strategy is diversified, the EC2 Fleet terminates instances across the Spot Instance pools. Alternatively, you can request that the EC2 Fleet keep the fleet at its current size, but not replace any Spot Instances that are interrupted or that you terminate manually.

    If you are finished with your EC2 Fleet for now, but will use it again later, you can set the target capacity to 0.

    ## - let valid = call_623779.validator(path, query, header, formData, body) - let scheme = call_623779.pickScheme + let valid = call_623781.validator(path, query, header, formData, body) + let scheme = call_623781.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623779.url(scheme.get, call_623779.host, call_623779.base, - call_623779.route, valid.getOrDefault("path"), + let url = call_623781.url(scheme.get, call_623781.host, call_623781.base, + call_623781.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623779, url, valid) + result = atozHook(call_623781, url, valid) -proc call*(call_623780: Call_GetModifyFleet_623760; FleetId: string; +proc call*(call_623782: Call_GetModifyFleet_623762; FleetId: string; TargetCapacitySpecificationTotalTargetCapacity: string = ""; DryRun: bool = false; TargetCapacitySpecificationOnDemandTargetCapacity: string = ""; @@ -104498,30 +104525,30 @@ proc call*(call_623780: Call_GetModifyFleet_623760; FleetId: string; ## : Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet. ## FleetId: string (required) ## : The ID of the EC2 Fleet. - var query_623781 = newJObject() - add(query_623781, "TargetCapacitySpecification.TotalTargetCapacity", + var query_623783 = newJObject() + add(query_623783, "TargetCapacitySpecification.TotalTargetCapacity", newJString(TargetCapacitySpecificationTotalTargetCapacity)) - add(query_623781, "DryRun", newJBool(DryRun)) - add(query_623781, "TargetCapacitySpecification.OnDemandTargetCapacity", + add(query_623783, "DryRun", newJBool(DryRun)) + add(query_623783, "TargetCapacitySpecification.OnDemandTargetCapacity", newJString(TargetCapacitySpecificationOnDemandTargetCapacity)) - add(query_623781, "TargetCapacitySpecification.DefaultTargetCapacityType", + add(query_623783, "TargetCapacitySpecification.DefaultTargetCapacityType", newJString(TargetCapacitySpecificationDefaultTargetCapacityType)) - add(query_623781, "Action", newJString(Action)) - add(query_623781, "TargetCapacitySpecification.SpotTargetCapacity", + add(query_623783, "Action", newJString(Action)) + add(query_623783, "TargetCapacitySpecification.SpotTargetCapacity", newJString(TargetCapacitySpecificationSpotTargetCapacity)) - add(query_623781, "Version", newJString(Version)) - add(query_623781, "ExcessCapacityTerminationPolicy", + add(query_623783, "Version", newJString(Version)) + add(query_623783, "ExcessCapacityTerminationPolicy", newJString(ExcessCapacityTerminationPolicy)) - add(query_623781, "FleetId", newJString(FleetId)) - result = call_623780.call(nil, query_623781, nil, nil, nil) + add(query_623783, "FleetId", newJString(FleetId)) + result = call_623782.call(nil, query_623783, nil, nil, nil) -var getModifyFleet* = Call_GetModifyFleet_623760(name: "getModifyFleet", +var getModifyFleet* = Call_GetModifyFleet_623762(name: "getModifyFleet", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=ModifyFleet", validator: validate_GetModifyFleet_623761, - base: "/", url: url_GetModifyFleet_623762, schemes: {Scheme.Https, Scheme.Http}) + route: "/#Action=ModifyFleet", validator: validate_GetModifyFleet_623763, + base: "/", url: url_GetModifyFleet_623764, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyFpgaImageAttribute_623831 = ref object of OpenApiRestCall_610658 -proc url_PostModifyFpgaImageAttribute_623833(protocol: Scheme; host: string; + Call_PostModifyFpgaImageAttribute_623833 = ref object of OpenApiRestCall_610658 +proc url_PostModifyFpgaImageAttribute_623835(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -104531,7 +104558,7 @@ proc url_PostModifyFpgaImageAttribute_623833(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostModifyFpgaImageAttribute_623832(path: JsonNode; query: JsonNode; +proc validate_PostModifyFpgaImageAttribute_623834(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modifies the specified attribute of the specified Amazon FPGA Image (AFI). ## @@ -104543,16 +104570,16 @@ proc validate_PostModifyFpgaImageAttribute_623832(path: JsonNode; query: JsonNod ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_623834 = query.getOrDefault("Action") - valid_623834 = validateParameter(valid_623834, JString, required = true, default = newJString( + var valid_623836 = query.getOrDefault("Action") + valid_623836 = validateParameter(valid_623836, JString, required = true, default = newJString( "ModifyFpgaImageAttribute")) - if valid_623834 != nil: - section.add "Action", valid_623834 - var valid_623835 = query.getOrDefault("Version") - valid_623835 = validateParameter(valid_623835, JString, required = true, + if valid_623836 != nil: + section.add "Action", valid_623836 + var valid_623837 = query.getOrDefault("Version") + valid_623837 = validateParameter(valid_623837, JString, required = true, default = newJString("2016-11-15")) - if valid_623835 != nil: - section.add "Version", valid_623835 + if valid_623837 != nil: + section.add "Version", valid_623837 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -104563,41 +104590,41 @@ proc validate_PostModifyFpgaImageAttribute_623832(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623836 = header.getOrDefault("X-Amz-Signature") - valid_623836 = validateParameter(valid_623836, JString, required = false, - default = nil) - if valid_623836 != nil: - section.add "X-Amz-Signature", valid_623836 - var valid_623837 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623837 = validateParameter(valid_623837, JString, required = false, - default = nil) - if valid_623837 != nil: - section.add "X-Amz-Content-Sha256", valid_623837 - var valid_623838 = header.getOrDefault("X-Amz-Date") + var valid_623838 = header.getOrDefault("X-Amz-Signature") valid_623838 = validateParameter(valid_623838, JString, required = false, default = nil) if valid_623838 != nil: - section.add "X-Amz-Date", valid_623838 - var valid_623839 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623838 + var valid_623839 = header.getOrDefault("X-Amz-Content-Sha256") valid_623839 = validateParameter(valid_623839, JString, required = false, default = nil) if valid_623839 != nil: - section.add "X-Amz-Credential", valid_623839 - var valid_623840 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623839 + var valid_623840 = header.getOrDefault("X-Amz-Date") valid_623840 = validateParameter(valid_623840, JString, required = false, default = nil) if valid_623840 != nil: - section.add "X-Amz-Security-Token", valid_623840 - var valid_623841 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623840 + var valid_623841 = header.getOrDefault("X-Amz-Credential") valid_623841 = validateParameter(valid_623841, JString, required = false, default = nil) if valid_623841 != nil: - section.add "X-Amz-Algorithm", valid_623841 - var valid_623842 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623841 + var valid_623842 = header.getOrDefault("X-Amz-Security-Token") valid_623842 = validateParameter(valid_623842, JString, required = false, default = nil) if valid_623842 != nil: - section.add "X-Amz-SignedHeaders", valid_623842 + section.add "X-Amz-Security-Token", valid_623842 + var valid_623843 = header.getOrDefault("X-Amz-Algorithm") + valid_623843 = validateParameter(valid_623843, JString, required = false, + default = nil) + if valid_623843 != nil: + section.add "X-Amz-Algorithm", valid_623843 + var valid_623844 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623844 = validateParameter(valid_623844, JString, required = false, + default = nil) + if valid_623844 != nil: + section.add "X-Amz-SignedHeaders", valid_623844 result.add "header", section ## parameters in `formData` object: ## Attribute: JString @@ -104625,80 +104652,80 @@ proc validate_PostModifyFpgaImageAttribute_623832(path: JsonNode; query: JsonNod ## ProductCode: JArray ## : The product codes. After you add a product code to an AFI, it can't be removed. This parameter is valid only when modifying the productCodes attribute. section = newJObject() - var valid_623843 = formData.getOrDefault("Attribute") - valid_623843 = validateParameter(valid_623843, JString, required = false, - default = newJString("description")) - if valid_623843 != nil: - section.add "Attribute", valid_623843 - var valid_623844 = formData.getOrDefault("UserId") - valid_623844 = validateParameter(valid_623844, JArray, required = false, - default = nil) - if valid_623844 != nil: - section.add "UserId", valid_623844 - var valid_623845 = formData.getOrDefault("Description") + var valid_623845 = formData.getOrDefault("Attribute") valid_623845 = validateParameter(valid_623845, JString, required = false, - default = nil) + default = newJString("description")) if valid_623845 != nil: - section.add "Description", valid_623845 - var valid_623846 = formData.getOrDefault("OperationType") - valid_623846 = validateParameter(valid_623846, JString, required = false, - default = newJString("add")) + section.add "Attribute", valid_623845 + var valid_623846 = formData.getOrDefault("UserId") + valid_623846 = validateParameter(valid_623846, JArray, required = false, + default = nil) if valid_623846 != nil: - section.add "OperationType", valid_623846 - var valid_623847 = formData.getOrDefault("LoadPermission.Add") - valid_623847 = validateParameter(valid_623847, JArray, required = false, + section.add "UserId", valid_623846 + var valid_623847 = formData.getOrDefault("Description") + valid_623847 = validateParameter(valid_623847, JString, required = false, default = nil) if valid_623847 != nil: - section.add "LoadPermission.Add", valid_623847 - var valid_623848 = formData.getOrDefault("DryRun") - valid_623848 = validateParameter(valid_623848, JBool, required = false, default = nil) + section.add "Description", valid_623847 + var valid_623848 = formData.getOrDefault("OperationType") + valid_623848 = validateParameter(valid_623848, JString, required = false, + default = newJString("add")) if valid_623848 != nil: - section.add "DryRun", valid_623848 - assert formData != nil, - "formData argument is necessary due to required `FpgaImageId` field" - var valid_623849 = formData.getOrDefault("FpgaImageId") - valid_623849 = validateParameter(valid_623849, JString, required = true, + section.add "OperationType", valid_623848 + var valid_623849 = formData.getOrDefault("LoadPermission.Add") + valid_623849 = validateParameter(valid_623849, JArray, required = false, default = nil) if valid_623849 != nil: - section.add "FpgaImageId", valid_623849 - var valid_623850 = formData.getOrDefault("Name") - valid_623850 = validateParameter(valid_623850, JString, required = false, - default = nil) + section.add "LoadPermission.Add", valid_623849 + var valid_623850 = formData.getOrDefault("DryRun") + valid_623850 = validateParameter(valid_623850, JBool, required = false, default = nil) if valid_623850 != nil: - section.add "Name", valid_623850 - var valid_623851 = formData.getOrDefault("UserGroup") - valid_623851 = validateParameter(valid_623851, JArray, required = false, + section.add "DryRun", valid_623850 + assert formData != nil, + "formData argument is necessary due to required `FpgaImageId` field" + var valid_623851 = formData.getOrDefault("FpgaImageId") + valid_623851 = validateParameter(valid_623851, JString, required = true, default = nil) if valid_623851 != nil: - section.add "UserGroup", valid_623851 - var valid_623852 = formData.getOrDefault("LoadPermission.Remove") - valid_623852 = validateParameter(valid_623852, JArray, required = false, + section.add "FpgaImageId", valid_623851 + var valid_623852 = formData.getOrDefault("Name") + valid_623852 = validateParameter(valid_623852, JString, required = false, default = nil) if valid_623852 != nil: - section.add "LoadPermission.Remove", valid_623852 - var valid_623853 = formData.getOrDefault("ProductCode") + section.add "Name", valid_623852 + var valid_623853 = formData.getOrDefault("UserGroup") valid_623853 = validateParameter(valid_623853, JArray, required = false, default = nil) if valid_623853 != nil: - section.add "ProductCode", valid_623853 + section.add "UserGroup", valid_623853 + var valid_623854 = formData.getOrDefault("LoadPermission.Remove") + valid_623854 = validateParameter(valid_623854, JArray, required = false, + default = nil) + if valid_623854 != nil: + section.add "LoadPermission.Remove", valid_623854 + var valid_623855 = formData.getOrDefault("ProductCode") + valid_623855 = validateParameter(valid_623855, JArray, required = false, + default = nil) + if valid_623855 != nil: + section.add "ProductCode", valid_623855 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623854: Call_PostModifyFpgaImageAttribute_623831; path: JsonNode; +proc call*(call_623856: Call_PostModifyFpgaImageAttribute_623833; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modifies the specified attribute of the specified Amazon FPGA Image (AFI). ## - let valid = call_623854.validator(path, query, header, formData, body) - let scheme = call_623854.pickScheme + let valid = call_623856.validator(path, query, header, formData, body) + let scheme = call_623856.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623854.url(scheme.get, call_623854.host, call_623854.base, - call_623854.route, valid.getOrDefault("path"), + let url = call_623856.url(scheme.get, call_623856.host, call_623856.base, + call_623856.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623854, url, valid) + result = atozHook(call_623856, url, valid) -proc call*(call_623855: Call_PostModifyFpgaImageAttribute_623831; +proc call*(call_623857: Call_PostModifyFpgaImageAttribute_623833; FpgaImageId: string; Attribute: string = "description"; UserId: JsonNode = nil; Description: string = ""; OperationType: string = "add"; LoadPermissionAdd: JsonNode = nil; @@ -104734,37 +104761,37 @@ proc call*(call_623855: Call_PostModifyFpgaImageAttribute_623831; ## Version: string (required) ## ProductCode: JArray ## : The product codes. After you add a product code to an AFI, it can't be removed. This parameter is valid only when modifying the productCodes attribute. - var query_623856 = newJObject() - var formData_623857 = newJObject() - add(formData_623857, "Attribute", newJString(Attribute)) + var query_623858 = newJObject() + var formData_623859 = newJObject() + add(formData_623859, "Attribute", newJString(Attribute)) if UserId != nil: - formData_623857.add "UserId", UserId - add(formData_623857, "Description", newJString(Description)) - add(formData_623857, "OperationType", newJString(OperationType)) + formData_623859.add "UserId", UserId + add(formData_623859, "Description", newJString(Description)) + add(formData_623859, "OperationType", newJString(OperationType)) if LoadPermissionAdd != nil: - formData_623857.add "LoadPermission.Add", LoadPermissionAdd - add(formData_623857, "DryRun", newJBool(DryRun)) - add(formData_623857, "FpgaImageId", newJString(FpgaImageId)) - add(query_623856, "Action", newJString(Action)) - add(formData_623857, "Name", newJString(Name)) + formData_623859.add "LoadPermission.Add", LoadPermissionAdd + add(formData_623859, "DryRun", newJBool(DryRun)) + add(formData_623859, "FpgaImageId", newJString(FpgaImageId)) + add(query_623858, "Action", newJString(Action)) + add(formData_623859, "Name", newJString(Name)) if UserGroup != nil: - formData_623857.add "UserGroup", UserGroup + formData_623859.add "UserGroup", UserGroup if LoadPermissionRemove != nil: - formData_623857.add "LoadPermission.Remove", LoadPermissionRemove - add(query_623856, "Version", newJString(Version)) + formData_623859.add "LoadPermission.Remove", LoadPermissionRemove + add(query_623858, "Version", newJString(Version)) if ProductCode != nil: - formData_623857.add "ProductCode", ProductCode - result = call_623855.call(nil, query_623856, nil, formData_623857, nil) + formData_623859.add "ProductCode", ProductCode + result = call_623857.call(nil, query_623858, nil, formData_623859, nil) -var postModifyFpgaImageAttribute* = Call_PostModifyFpgaImageAttribute_623831( +var postModifyFpgaImageAttribute* = Call_PostModifyFpgaImageAttribute_623833( name: "postModifyFpgaImageAttribute", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyFpgaImageAttribute", - validator: validate_PostModifyFpgaImageAttribute_623832, base: "/", - url: url_PostModifyFpgaImageAttribute_623833, + validator: validate_PostModifyFpgaImageAttribute_623834, base: "/", + url: url_PostModifyFpgaImageAttribute_623835, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyFpgaImageAttribute_623805 = ref object of OpenApiRestCall_610658 -proc url_GetModifyFpgaImageAttribute_623807(protocol: Scheme; host: string; + Call_GetModifyFpgaImageAttribute_623807 = ref object of OpenApiRestCall_610658 +proc url_GetModifyFpgaImageAttribute_623809(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -104774,7 +104801,7 @@ proc url_GetModifyFpgaImageAttribute_623807(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetModifyFpgaImageAttribute_623806(path: JsonNode; query: JsonNode; +proc validate_GetModifyFpgaImageAttribute_623808(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modifies the specified attribute of the specified Amazon FPGA Image (AFI). ## @@ -104810,70 +104837,70 @@ proc validate_GetModifyFpgaImageAttribute_623806(path: JsonNode; query: JsonNode ## ProductCode: JArray ## : The product codes. After you add a product code to an AFI, it can't be removed. This parameter is valid only when modifying the productCodes attribute. section = newJObject() - var valid_623808 = query.getOrDefault("LoadPermission.Remove") - valid_623808 = validateParameter(valid_623808, JArray, required = false, - default = nil) - if valid_623808 != nil: - section.add "LoadPermission.Remove", valid_623808 - var valid_623809 = query.getOrDefault("DryRun") - valid_623809 = validateParameter(valid_623809, JBool, required = false, default = nil) - if valid_623809 != nil: - section.add "DryRun", valid_623809 - var valid_623810 = query.getOrDefault("OperationType") - valid_623810 = validateParameter(valid_623810, JString, required = false, - default = newJString("add")) - if valid_623810 != nil: - section.add "OperationType", valid_623810 - var valid_623811 = query.getOrDefault("Name") - valid_623811 = validateParameter(valid_623811, JString, required = false, + var valid_623810 = query.getOrDefault("LoadPermission.Remove") + valid_623810 = validateParameter(valid_623810, JArray, required = false, default = nil) + if valid_623810 != nil: + section.add "LoadPermission.Remove", valid_623810 + var valid_623811 = query.getOrDefault("DryRun") + valid_623811 = validateParameter(valid_623811, JBool, required = false, default = nil) if valid_623811 != nil: - section.add "Name", valid_623811 - var valid_623812 = query.getOrDefault("UserId") - valid_623812 = validateParameter(valid_623812, JArray, required = false, - default = nil) + section.add "DryRun", valid_623811 + var valid_623812 = query.getOrDefault("OperationType") + valid_623812 = validateParameter(valid_623812, JString, required = false, + default = newJString("add")) if valid_623812 != nil: - section.add "UserId", valid_623812 - var valid_623813 = query.getOrDefault("Action") - valid_623813 = validateParameter(valid_623813, JString, required = true, default = newJString( - "ModifyFpgaImageAttribute")) + section.add "OperationType", valid_623812 + var valid_623813 = query.getOrDefault("Name") + valid_623813 = validateParameter(valid_623813, JString, required = false, + default = nil) if valid_623813 != nil: - section.add "Action", valid_623813 - var valid_623814 = query.getOrDefault("FpgaImageId") - valid_623814 = validateParameter(valid_623814, JString, required = true, + section.add "Name", valid_623813 + var valid_623814 = query.getOrDefault("UserId") + valid_623814 = validateParameter(valid_623814, JArray, required = false, default = nil) if valid_623814 != nil: - section.add "FpgaImageId", valid_623814 - var valid_623815 = query.getOrDefault("Description") - valid_623815 = validateParameter(valid_623815, JString, required = false, - default = nil) + section.add "UserId", valid_623814 + var valid_623815 = query.getOrDefault("Action") + valid_623815 = validateParameter(valid_623815, JString, required = true, default = newJString( + "ModifyFpgaImageAttribute")) if valid_623815 != nil: - section.add "Description", valid_623815 - var valid_623816 = query.getOrDefault("Version") + section.add "Action", valid_623815 + var valid_623816 = query.getOrDefault("FpgaImageId") valid_623816 = validateParameter(valid_623816, JString, required = true, - default = newJString("2016-11-15")) + default = nil) if valid_623816 != nil: - section.add "Version", valid_623816 - var valid_623817 = query.getOrDefault("LoadPermission.Add") - valid_623817 = validateParameter(valid_623817, JArray, required = false, + section.add "FpgaImageId", valid_623816 + var valid_623817 = query.getOrDefault("Description") + valid_623817 = validateParameter(valid_623817, JString, required = false, default = nil) if valid_623817 != nil: - section.add "LoadPermission.Add", valid_623817 - var valid_623818 = query.getOrDefault("UserGroup") - valid_623818 = validateParameter(valid_623818, JArray, required = false, - default = nil) + section.add "Description", valid_623817 + var valid_623818 = query.getOrDefault("Version") + valid_623818 = validateParameter(valid_623818, JString, required = true, + default = newJString("2016-11-15")) if valid_623818 != nil: - section.add "UserGroup", valid_623818 - var valid_623819 = query.getOrDefault("Attribute") - valid_623819 = validateParameter(valid_623819, JString, required = false, - default = newJString("description")) + section.add "Version", valid_623818 + var valid_623819 = query.getOrDefault("LoadPermission.Add") + valid_623819 = validateParameter(valid_623819, JArray, required = false, + default = nil) if valid_623819 != nil: - section.add "Attribute", valid_623819 - var valid_623820 = query.getOrDefault("ProductCode") + section.add "LoadPermission.Add", valid_623819 + var valid_623820 = query.getOrDefault("UserGroup") valid_623820 = validateParameter(valid_623820, JArray, required = false, default = nil) if valid_623820 != nil: - section.add "ProductCode", valid_623820 + section.add "UserGroup", valid_623820 + var valid_623821 = query.getOrDefault("Attribute") + valid_623821 = validateParameter(valid_623821, JString, required = false, + default = newJString("description")) + if valid_623821 != nil: + section.add "Attribute", valid_623821 + var valid_623822 = query.getOrDefault("ProductCode") + valid_623822 = validateParameter(valid_623822, JArray, required = false, + default = nil) + if valid_623822 != nil: + section.add "ProductCode", valid_623822 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -104884,61 +104911,61 @@ proc validate_GetModifyFpgaImageAttribute_623806(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623821 = header.getOrDefault("X-Amz-Signature") - valid_623821 = validateParameter(valid_623821, JString, required = false, - default = nil) - if valid_623821 != nil: - section.add "X-Amz-Signature", valid_623821 - var valid_623822 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623822 = validateParameter(valid_623822, JString, required = false, - default = nil) - if valid_623822 != nil: - section.add "X-Amz-Content-Sha256", valid_623822 - var valid_623823 = header.getOrDefault("X-Amz-Date") + var valid_623823 = header.getOrDefault("X-Amz-Signature") valid_623823 = validateParameter(valid_623823, JString, required = false, default = nil) if valid_623823 != nil: - section.add "X-Amz-Date", valid_623823 - var valid_623824 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623823 + var valid_623824 = header.getOrDefault("X-Amz-Content-Sha256") valid_623824 = validateParameter(valid_623824, JString, required = false, default = nil) if valid_623824 != nil: - section.add "X-Amz-Credential", valid_623824 - var valid_623825 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623824 + var valid_623825 = header.getOrDefault("X-Amz-Date") valid_623825 = validateParameter(valid_623825, JString, required = false, default = nil) if valid_623825 != nil: - section.add "X-Amz-Security-Token", valid_623825 - var valid_623826 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623825 + var valid_623826 = header.getOrDefault("X-Amz-Credential") valid_623826 = validateParameter(valid_623826, JString, required = false, default = nil) if valid_623826 != nil: - section.add "X-Amz-Algorithm", valid_623826 - var valid_623827 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623826 + var valid_623827 = header.getOrDefault("X-Amz-Security-Token") valid_623827 = validateParameter(valid_623827, JString, required = false, default = nil) if valid_623827 != nil: - section.add "X-Amz-SignedHeaders", valid_623827 + section.add "X-Amz-Security-Token", valid_623827 + var valid_623828 = header.getOrDefault("X-Amz-Algorithm") + valid_623828 = validateParameter(valid_623828, JString, required = false, + default = nil) + if valid_623828 != nil: + section.add "X-Amz-Algorithm", valid_623828 + var valid_623829 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623829 = validateParameter(valid_623829, JString, required = false, + default = nil) + if valid_623829 != nil: + section.add "X-Amz-SignedHeaders", valid_623829 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623828: Call_GetModifyFpgaImageAttribute_623805; path: JsonNode; +proc call*(call_623830: Call_GetModifyFpgaImageAttribute_623807; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modifies the specified attribute of the specified Amazon FPGA Image (AFI). ## - let valid = call_623828.validator(path, query, header, formData, body) - let scheme = call_623828.pickScheme + let valid = call_623830.validator(path, query, header, formData, body) + let scheme = call_623830.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623828.url(scheme.get, call_623828.host, call_623828.base, - call_623828.route, valid.getOrDefault("path"), + let url = call_623830.url(scheme.get, call_623830.host, call_623830.base, + call_623830.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623828, url, valid) + result = atozHook(call_623830, url, valid) -proc call*(call_623829: Call_GetModifyFpgaImageAttribute_623805; +proc call*(call_623831: Call_GetModifyFpgaImageAttribute_623807; FpgaImageId: string; LoadPermissionRemove: JsonNode = nil; DryRun: bool = false; OperationType: string = "add"; Name: string = ""; UserId: JsonNode = nil; Action: string = "ModifyFpgaImageAttribute"; @@ -104973,36 +105000,36 @@ proc call*(call_623829: Call_GetModifyFpgaImageAttribute_623805; ## : The name of the attribute. ## ProductCode: JArray ## : The product codes. After you add a product code to an AFI, it can't be removed. This parameter is valid only when modifying the productCodes attribute. - var query_623830 = newJObject() + var query_623832 = newJObject() if LoadPermissionRemove != nil: - query_623830.add "LoadPermission.Remove", LoadPermissionRemove - add(query_623830, "DryRun", newJBool(DryRun)) - add(query_623830, "OperationType", newJString(OperationType)) - add(query_623830, "Name", newJString(Name)) + query_623832.add "LoadPermission.Remove", LoadPermissionRemove + add(query_623832, "DryRun", newJBool(DryRun)) + add(query_623832, "OperationType", newJString(OperationType)) + add(query_623832, "Name", newJString(Name)) if UserId != nil: - query_623830.add "UserId", UserId - add(query_623830, "Action", newJString(Action)) - add(query_623830, "FpgaImageId", newJString(FpgaImageId)) - add(query_623830, "Description", newJString(Description)) - add(query_623830, "Version", newJString(Version)) + query_623832.add "UserId", UserId + add(query_623832, "Action", newJString(Action)) + add(query_623832, "FpgaImageId", newJString(FpgaImageId)) + add(query_623832, "Description", newJString(Description)) + add(query_623832, "Version", newJString(Version)) if LoadPermissionAdd != nil: - query_623830.add "LoadPermission.Add", LoadPermissionAdd + query_623832.add "LoadPermission.Add", LoadPermissionAdd if UserGroup != nil: - query_623830.add "UserGroup", UserGroup - add(query_623830, "Attribute", newJString(Attribute)) + query_623832.add "UserGroup", UserGroup + add(query_623832, "Attribute", newJString(Attribute)) if ProductCode != nil: - query_623830.add "ProductCode", ProductCode - result = call_623829.call(nil, query_623830, nil, nil, nil) + query_623832.add "ProductCode", ProductCode + result = call_623831.call(nil, query_623832, nil, nil, nil) -var getModifyFpgaImageAttribute* = Call_GetModifyFpgaImageAttribute_623805( +var getModifyFpgaImageAttribute* = Call_GetModifyFpgaImageAttribute_623807( name: "getModifyFpgaImageAttribute", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifyFpgaImageAttribute", - validator: validate_GetModifyFpgaImageAttribute_623806, base: "/", - url: url_GetModifyFpgaImageAttribute_623807, + validator: validate_GetModifyFpgaImageAttribute_623808, base: "/", + url: url_GetModifyFpgaImageAttribute_623809, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyHosts_623878 = ref object of OpenApiRestCall_610658 -proc url_PostModifyHosts_623880(protocol: Scheme; host: string; base: string; + Call_PostModifyHosts_623880 = ref object of OpenApiRestCall_610658 +proc url_PostModifyHosts_623882(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -105012,7 +105039,7 @@ proc url_PostModifyHosts_623880(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostModifyHosts_623879(path: JsonNode; query: JsonNode; +proc validate_PostModifyHosts_623881(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modify the auto-placement setting of a Dedicated Host. When auto-placement is enabled, any instances that you launch with a tenancy of host but without a specific host ID are placed onto any available Dedicated Host in your account that has auto-placement enabled. When auto-placement is disabled, you need to provide a host ID to have the instance launch onto a specific host. If no host ID is provided, the instance is launched onto a suitable host with auto-placement enabled.

    You can also use this API action to modify a Dedicated Host to support either multiple instance types in an instance family, or to support a specific instance type only.

    @@ -105025,16 +105052,16 @@ proc validate_PostModifyHosts_623879(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_623881 = query.getOrDefault("Action") - valid_623881 = validateParameter(valid_623881, JString, required = true, + var valid_623883 = query.getOrDefault("Action") + valid_623883 = validateParameter(valid_623883, JString, required = true, default = newJString("ModifyHosts")) - if valid_623881 != nil: - section.add "Action", valid_623881 - var valid_623882 = query.getOrDefault("Version") - valid_623882 = validateParameter(valid_623882, JString, required = true, + if valid_623883 != nil: + section.add "Action", valid_623883 + var valid_623884 = query.getOrDefault("Version") + valid_623884 = validateParameter(valid_623884, JString, required = true, default = newJString("2016-11-15")) - if valid_623882 != nil: - section.add "Version", valid_623882 + if valid_623884 != nil: + section.add "Version", valid_623884 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -105045,41 +105072,41 @@ proc validate_PostModifyHosts_623879(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623883 = header.getOrDefault("X-Amz-Signature") - valid_623883 = validateParameter(valid_623883, JString, required = false, - default = nil) - if valid_623883 != nil: - section.add "X-Amz-Signature", valid_623883 - var valid_623884 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623884 = validateParameter(valid_623884, JString, required = false, - default = nil) - if valid_623884 != nil: - section.add "X-Amz-Content-Sha256", valid_623884 - var valid_623885 = header.getOrDefault("X-Amz-Date") + var valid_623885 = header.getOrDefault("X-Amz-Signature") valid_623885 = validateParameter(valid_623885, JString, required = false, default = nil) if valid_623885 != nil: - section.add "X-Amz-Date", valid_623885 - var valid_623886 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623885 + var valid_623886 = header.getOrDefault("X-Amz-Content-Sha256") valid_623886 = validateParameter(valid_623886, JString, required = false, default = nil) if valid_623886 != nil: - section.add "X-Amz-Credential", valid_623886 - var valid_623887 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623886 + var valid_623887 = header.getOrDefault("X-Amz-Date") valid_623887 = validateParameter(valid_623887, JString, required = false, default = nil) if valid_623887 != nil: - section.add "X-Amz-Security-Token", valid_623887 - var valid_623888 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623887 + var valid_623888 = header.getOrDefault("X-Amz-Credential") valid_623888 = validateParameter(valid_623888, JString, required = false, default = nil) if valid_623888 != nil: - section.add "X-Amz-Algorithm", valid_623888 - var valid_623889 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623888 + var valid_623889 = header.getOrDefault("X-Amz-Security-Token") valid_623889 = validateParameter(valid_623889, JString, required = false, default = nil) if valid_623889 != nil: - section.add "X-Amz-SignedHeaders", valid_623889 + section.add "X-Amz-Security-Token", valid_623889 + var valid_623890 = header.getOrDefault("X-Amz-Algorithm") + valid_623890 = validateParameter(valid_623890, JString, required = false, + default = nil) + if valid_623890 != nil: + section.add "X-Amz-Algorithm", valid_623890 + var valid_623891 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623891 = validateParameter(valid_623891, JString, required = false, + default = nil) + if valid_623891 != nil: + section.add "X-Amz-SignedHeaders", valid_623891 result.add "header", section ## parameters in `formData` object: ## InstanceType: JString @@ -105094,50 +105121,50 @@ proc validate_PostModifyHosts_623879(path: JsonNode; query: JsonNode; ## HostId: JArray (required) ## : The IDs of the Dedicated Hosts to modify. section = newJObject() - var valid_623890 = formData.getOrDefault("InstanceType") - valid_623890 = validateParameter(valid_623890, JString, required = false, - default = nil) - if valid_623890 != nil: - section.add "InstanceType", valid_623890 - var valid_623891 = formData.getOrDefault("AutoPlacement") - valid_623891 = validateParameter(valid_623891, JString, required = false, - default = newJString("on")) - if valid_623891 != nil: - section.add "AutoPlacement", valid_623891 - var valid_623892 = formData.getOrDefault("InstanceFamily") + var valid_623892 = formData.getOrDefault("InstanceType") valid_623892 = validateParameter(valid_623892, JString, required = false, default = nil) if valid_623892 != nil: - section.add "InstanceFamily", valid_623892 - var valid_623893 = formData.getOrDefault("HostRecovery") + section.add "InstanceType", valid_623892 + var valid_623893 = formData.getOrDefault("AutoPlacement") valid_623893 = validateParameter(valid_623893, JString, required = false, default = newJString("on")) if valid_623893 != nil: - section.add "HostRecovery", valid_623893 + section.add "AutoPlacement", valid_623893 + var valid_623894 = formData.getOrDefault("InstanceFamily") + valid_623894 = validateParameter(valid_623894, JString, required = false, + default = nil) + if valid_623894 != nil: + section.add "InstanceFamily", valid_623894 + var valid_623895 = formData.getOrDefault("HostRecovery") + valid_623895 = validateParameter(valid_623895, JString, required = false, + default = newJString("on")) + if valid_623895 != nil: + section.add "HostRecovery", valid_623895 assert formData != nil, "formData argument is necessary due to required `HostId` field" - var valid_623894 = formData.getOrDefault("HostId") - valid_623894 = validateParameter(valid_623894, JArray, required = true, default = nil) - if valid_623894 != nil: - section.add "HostId", valid_623894 + var valid_623896 = formData.getOrDefault("HostId") + valid_623896 = validateParameter(valid_623896, JArray, required = true, default = nil) + if valid_623896 != nil: + section.add "HostId", valid_623896 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623895: Call_PostModifyHosts_623878; path: JsonNode; query: JsonNode; +proc call*(call_623897: Call_PostModifyHosts_623880; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modify the auto-placement setting of a Dedicated Host. When auto-placement is enabled, any instances that you launch with a tenancy of host but without a specific host ID are placed onto any available Dedicated Host in your account that has auto-placement enabled. When auto-placement is disabled, you need to provide a host ID to have the instance launch onto a specific host. If no host ID is provided, the instance is launched onto a suitable host with auto-placement enabled.

    You can also use this API action to modify a Dedicated Host to support either multiple instance types in an instance family, or to support a specific instance type only.

    ## - let valid = call_623895.validator(path, query, header, formData, body) - let scheme = call_623895.pickScheme + let valid = call_623897.validator(path, query, header, formData, body) + let scheme = call_623897.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623895.url(scheme.get, call_623895.host, call_623895.base, - call_623895.route, valid.getOrDefault("path"), + let url = call_623897.url(scheme.get, call_623897.host, call_623897.base, + call_623897.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623895, url, valid) + result = atozHook(call_623897, url, valid) -proc call*(call_623896: Call_PostModifyHosts_623878; HostId: JsonNode; +proc call*(call_623898: Call_PostModifyHosts_623880; HostId: JsonNode; InstanceType: string = ""; AutoPlacement: string = "on"; InstanceFamily: string = ""; HostRecovery: string = "on"; Action: string = "ModifyHosts"; Version: string = "2016-11-15"): Recallable = @@ -105156,25 +105183,25 @@ proc call*(call_623896: Call_PostModifyHosts_623878; HostId: JsonNode; ## Version: string (required) ## HostId: JArray (required) ## : The IDs of the Dedicated Hosts to modify. - var query_623897 = newJObject() - var formData_623898 = newJObject() - add(formData_623898, "InstanceType", newJString(InstanceType)) - add(formData_623898, "AutoPlacement", newJString(AutoPlacement)) - add(formData_623898, "InstanceFamily", newJString(InstanceFamily)) - add(formData_623898, "HostRecovery", newJString(HostRecovery)) - add(query_623897, "Action", newJString(Action)) - add(query_623897, "Version", newJString(Version)) + var query_623899 = newJObject() + var formData_623900 = newJObject() + add(formData_623900, "InstanceType", newJString(InstanceType)) + add(formData_623900, "AutoPlacement", newJString(AutoPlacement)) + add(formData_623900, "InstanceFamily", newJString(InstanceFamily)) + add(formData_623900, "HostRecovery", newJString(HostRecovery)) + add(query_623899, "Action", newJString(Action)) + add(query_623899, "Version", newJString(Version)) if HostId != nil: - formData_623898.add "HostId", HostId - result = call_623896.call(nil, query_623897, nil, formData_623898, nil) + formData_623900.add "HostId", HostId + result = call_623898.call(nil, query_623899, nil, formData_623900, nil) -var postModifyHosts* = Call_PostModifyHosts_623878(name: "postModifyHosts", +var postModifyHosts* = Call_PostModifyHosts_623880(name: "postModifyHosts", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", - route: "/#Action=ModifyHosts", validator: validate_PostModifyHosts_623879, - base: "/", url: url_PostModifyHosts_623880, schemes: {Scheme.Https, Scheme.Http}) + route: "/#Action=ModifyHosts", validator: validate_PostModifyHosts_623881, + base: "/", url: url_PostModifyHosts_623882, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyHosts_623858 = ref object of OpenApiRestCall_610658 -proc url_GetModifyHosts_623860(protocol: Scheme; host: string; base: string; + Call_GetModifyHosts_623860 = ref object of OpenApiRestCall_610658 +proc url_GetModifyHosts_623862(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -105184,7 +105211,7 @@ proc url_GetModifyHosts_623860(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetModifyHosts_623859(path: JsonNode; query: JsonNode; +proc validate_GetModifyHosts_623861(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modify the auto-placement setting of a Dedicated Host. When auto-placement is enabled, any instances that you launch with a tenancy of host but without a specific host ID are placed onto any available Dedicated Host in your account that has auto-placement enabled. When auto-placement is disabled, you need to provide a host ID to have the instance launch onto a specific host. If no host ID is provided, the instance is launched onto a suitable host with auto-placement enabled.

    You can also use this API action to modify a Dedicated Host to support either multiple instance types in an instance family, or to support a specific instance type only.

    @@ -105209,40 +105236,40 @@ proc validate_GetModifyHosts_623859(path: JsonNode; query: JsonNode; ## href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-recovery.html"> Host Recovery in the Amazon Elastic Compute Cloud User Guide. section = newJObject() assert query != nil, "query argument is necessary due to required `HostId` field" - var valid_623861 = query.getOrDefault("HostId") - valid_623861 = validateParameter(valid_623861, JArray, required = true, default = nil) - if valid_623861 != nil: - section.add "HostId", valid_623861 - var valid_623862 = query.getOrDefault("InstanceFamily") - valid_623862 = validateParameter(valid_623862, JString, required = false, - default = nil) - if valid_623862 != nil: - section.add "InstanceFamily", valid_623862 - var valid_623863 = query.getOrDefault("AutoPlacement") - valid_623863 = validateParameter(valid_623863, JString, required = false, - default = newJString("on")) + var valid_623863 = query.getOrDefault("HostId") + valid_623863 = validateParameter(valid_623863, JArray, required = true, default = nil) if valid_623863 != nil: - section.add "AutoPlacement", valid_623863 - var valid_623864 = query.getOrDefault("InstanceType") + section.add "HostId", valid_623863 + var valid_623864 = query.getOrDefault("InstanceFamily") valid_623864 = validateParameter(valid_623864, JString, required = false, default = nil) if valid_623864 != nil: - section.add "InstanceType", valid_623864 - var valid_623865 = query.getOrDefault("Action") - valid_623865 = validateParameter(valid_623865, JString, required = true, - default = newJString("ModifyHosts")) + section.add "InstanceFamily", valid_623864 + var valid_623865 = query.getOrDefault("AutoPlacement") + valid_623865 = validateParameter(valid_623865, JString, required = false, + default = newJString("on")) if valid_623865 != nil: - section.add "Action", valid_623865 - var valid_623866 = query.getOrDefault("Version") - valid_623866 = validateParameter(valid_623866, JString, required = true, - default = newJString("2016-11-15")) + section.add "AutoPlacement", valid_623865 + var valid_623866 = query.getOrDefault("InstanceType") + valid_623866 = validateParameter(valid_623866, JString, required = false, + default = nil) if valid_623866 != nil: - section.add "Version", valid_623866 - var valid_623867 = query.getOrDefault("HostRecovery") - valid_623867 = validateParameter(valid_623867, JString, required = false, - default = newJString("on")) + section.add "InstanceType", valid_623866 + var valid_623867 = query.getOrDefault("Action") + valid_623867 = validateParameter(valid_623867, JString, required = true, + default = newJString("ModifyHosts")) if valid_623867 != nil: - section.add "HostRecovery", valid_623867 + section.add "Action", valid_623867 + var valid_623868 = query.getOrDefault("Version") + valid_623868 = validateParameter(valid_623868, JString, required = true, + default = newJString("2016-11-15")) + if valid_623868 != nil: + section.add "Version", valid_623868 + var valid_623869 = query.getOrDefault("HostRecovery") + valid_623869 = validateParameter(valid_623869, JString, required = false, + default = newJString("on")) + if valid_623869 != nil: + section.add "HostRecovery", valid_623869 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -105253,61 +105280,61 @@ proc validate_GetModifyHosts_623859(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623868 = header.getOrDefault("X-Amz-Signature") - valid_623868 = validateParameter(valid_623868, JString, required = false, - default = nil) - if valid_623868 != nil: - section.add "X-Amz-Signature", valid_623868 - var valid_623869 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623869 = validateParameter(valid_623869, JString, required = false, - default = nil) - if valid_623869 != nil: - section.add "X-Amz-Content-Sha256", valid_623869 - var valid_623870 = header.getOrDefault("X-Amz-Date") + var valid_623870 = header.getOrDefault("X-Amz-Signature") valid_623870 = validateParameter(valid_623870, JString, required = false, default = nil) if valid_623870 != nil: - section.add "X-Amz-Date", valid_623870 - var valid_623871 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623870 + var valid_623871 = header.getOrDefault("X-Amz-Content-Sha256") valid_623871 = validateParameter(valid_623871, JString, required = false, default = nil) if valid_623871 != nil: - section.add "X-Amz-Credential", valid_623871 - var valid_623872 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623871 + var valid_623872 = header.getOrDefault("X-Amz-Date") valid_623872 = validateParameter(valid_623872, JString, required = false, default = nil) if valid_623872 != nil: - section.add "X-Amz-Security-Token", valid_623872 - var valid_623873 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623872 + var valid_623873 = header.getOrDefault("X-Amz-Credential") valid_623873 = validateParameter(valid_623873, JString, required = false, default = nil) if valid_623873 != nil: - section.add "X-Amz-Algorithm", valid_623873 - var valid_623874 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623873 + var valid_623874 = header.getOrDefault("X-Amz-Security-Token") valid_623874 = validateParameter(valid_623874, JString, required = false, default = nil) if valid_623874 != nil: - section.add "X-Amz-SignedHeaders", valid_623874 + section.add "X-Amz-Security-Token", valid_623874 + var valid_623875 = header.getOrDefault("X-Amz-Algorithm") + valid_623875 = validateParameter(valid_623875, JString, required = false, + default = nil) + if valid_623875 != nil: + section.add "X-Amz-Algorithm", valid_623875 + var valid_623876 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623876 = validateParameter(valid_623876, JString, required = false, + default = nil) + if valid_623876 != nil: + section.add "X-Amz-SignedHeaders", valid_623876 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623875: Call_GetModifyHosts_623858; path: JsonNode; query: JsonNode; +proc call*(call_623877: Call_GetModifyHosts_623860; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modify the auto-placement setting of a Dedicated Host. When auto-placement is enabled, any instances that you launch with a tenancy of host but without a specific host ID are placed onto any available Dedicated Host in your account that has auto-placement enabled. When auto-placement is disabled, you need to provide a host ID to have the instance launch onto a specific host. If no host ID is provided, the instance is launched onto a suitable host with auto-placement enabled.

    You can also use this API action to modify a Dedicated Host to support either multiple instance types in an instance family, or to support a specific instance type only.

    ## - let valid = call_623875.validator(path, query, header, formData, body) - let scheme = call_623875.pickScheme + let valid = call_623877.validator(path, query, header, formData, body) + let scheme = call_623877.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623875.url(scheme.get, call_623875.host, call_623875.base, - call_623875.route, valid.getOrDefault("path"), + let url = call_623877.url(scheme.get, call_623877.host, call_623877.base, + call_623877.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623875, url, valid) + result = atozHook(call_623877, url, valid) -proc call*(call_623876: Call_GetModifyHosts_623858; HostId: JsonNode; +proc call*(call_623878: Call_GetModifyHosts_623860; HostId: JsonNode; InstanceFamily: string = ""; AutoPlacement: string = "on"; InstanceType: string = ""; Action: string = "ModifyHosts"; Version: string = "2016-11-15"; HostRecovery: string = "on"): Recallable = @@ -105326,24 +105353,24 @@ proc call*(call_623876: Call_GetModifyHosts_623858; HostId: JsonNode; ## HostRecovery: string ## : Indicates whether to enable or disable host recovery for the Dedicated Host. For more information, see Host Recovery in the Amazon Elastic Compute Cloud User Guide. - var query_623877 = newJObject() + var query_623879 = newJObject() if HostId != nil: - query_623877.add "HostId", HostId - add(query_623877, "InstanceFamily", newJString(InstanceFamily)) - add(query_623877, "AutoPlacement", newJString(AutoPlacement)) - add(query_623877, "InstanceType", newJString(InstanceType)) - add(query_623877, "Action", newJString(Action)) - add(query_623877, "Version", newJString(Version)) - add(query_623877, "HostRecovery", newJString(HostRecovery)) - result = call_623876.call(nil, query_623877, nil, nil, nil) - -var getModifyHosts* = Call_GetModifyHosts_623858(name: "getModifyHosts", + query_623879.add "HostId", HostId + add(query_623879, "InstanceFamily", newJString(InstanceFamily)) + add(query_623879, "AutoPlacement", newJString(AutoPlacement)) + add(query_623879, "InstanceType", newJString(InstanceType)) + add(query_623879, "Action", newJString(Action)) + add(query_623879, "Version", newJString(Version)) + add(query_623879, "HostRecovery", newJString(HostRecovery)) + result = call_623878.call(nil, query_623879, nil, nil, nil) + +var getModifyHosts* = Call_GetModifyHosts_623860(name: "getModifyHosts", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=ModifyHosts", validator: validate_GetModifyHosts_623859, - base: "/", url: url_GetModifyHosts_623860, schemes: {Scheme.Https, Scheme.Http}) + route: "/#Action=ModifyHosts", validator: validate_GetModifyHosts_623861, + base: "/", url: url_GetModifyHosts_623862, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyIdFormat_623916 = ref object of OpenApiRestCall_610658 -proc url_PostModifyIdFormat_623918(protocol: Scheme; host: string; base: string; + Call_PostModifyIdFormat_623918 = ref object of OpenApiRestCall_610658 +proc url_PostModifyIdFormat_623920(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -105353,7 +105380,7 @@ proc url_PostModifyIdFormat_623918(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostModifyIdFormat_623917(path: JsonNode; query: JsonNode; +proc validate_PostModifyIdFormat_623919(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the ID format for the specified resource on a per-Region basis. You can specify that resources should receive longer IDs (17-character IDs) when they are created.

    This request can only be used to modify longer ID settings for resource types that are within the opt-in period. Resources currently in their opt-in period include: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | route-table | route-table-association | security-group | subnet | subnet-cidr-block-association | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

    This setting applies to the IAM user who makes the request; it does not apply to the entire AWS account. By default, an IAM user defaults to the same settings as the root user. If you're using this action as the root user, then these settings apply to the entire account, unless an IAM user explicitly overrides these settings for themselves. For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.

    Resources created with longer IDs are visible to all IAM roles and users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

    @@ -105366,16 +105393,16 @@ proc validate_PostModifyIdFormat_623917(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_623919 = query.getOrDefault("Action") - valid_623919 = validateParameter(valid_623919, JString, required = true, + var valid_623921 = query.getOrDefault("Action") + valid_623921 = validateParameter(valid_623921, JString, required = true, default = newJString("ModifyIdFormat")) - if valid_623919 != nil: - section.add "Action", valid_623919 - var valid_623920 = query.getOrDefault("Version") - valid_623920 = validateParameter(valid_623920, JString, required = true, + if valid_623921 != nil: + section.add "Action", valid_623921 + var valid_623922 = query.getOrDefault("Version") + valid_623922 = validateParameter(valid_623922, JString, required = true, default = newJString("2016-11-15")) - if valid_623920 != nil: - section.add "Version", valid_623920 + if valid_623922 != nil: + section.add "Version", valid_623922 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -105386,41 +105413,41 @@ proc validate_PostModifyIdFormat_623917(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623921 = header.getOrDefault("X-Amz-Signature") - valid_623921 = validateParameter(valid_623921, JString, required = false, - default = nil) - if valid_623921 != nil: - section.add "X-Amz-Signature", valid_623921 - var valid_623922 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623922 = validateParameter(valid_623922, JString, required = false, - default = nil) - if valid_623922 != nil: - section.add "X-Amz-Content-Sha256", valid_623922 - var valid_623923 = header.getOrDefault("X-Amz-Date") + var valid_623923 = header.getOrDefault("X-Amz-Signature") valid_623923 = validateParameter(valid_623923, JString, required = false, default = nil) if valid_623923 != nil: - section.add "X-Amz-Date", valid_623923 - var valid_623924 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623923 + var valid_623924 = header.getOrDefault("X-Amz-Content-Sha256") valid_623924 = validateParameter(valid_623924, JString, required = false, default = nil) if valid_623924 != nil: - section.add "X-Amz-Credential", valid_623924 - var valid_623925 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623924 + var valid_623925 = header.getOrDefault("X-Amz-Date") valid_623925 = validateParameter(valid_623925, JString, required = false, default = nil) if valid_623925 != nil: - section.add "X-Amz-Security-Token", valid_623925 - var valid_623926 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623925 + var valid_623926 = header.getOrDefault("X-Amz-Credential") valid_623926 = validateParameter(valid_623926, JString, required = false, default = nil) if valid_623926 != nil: - section.add "X-Amz-Algorithm", valid_623926 - var valid_623927 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623926 + var valid_623927 = header.getOrDefault("X-Amz-Security-Token") valid_623927 = validateParameter(valid_623927, JString, required = false, default = nil) if valid_623927 != nil: - section.add "X-Amz-SignedHeaders", valid_623927 + section.add "X-Amz-Security-Token", valid_623927 + var valid_623928 = header.getOrDefault("X-Amz-Algorithm") + valid_623928 = validateParameter(valid_623928, JString, required = false, + default = nil) + if valid_623928 != nil: + section.add "X-Amz-Algorithm", valid_623928 + var valid_623929 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623929 = validateParameter(valid_623929, JString, required = false, + default = nil) + if valid_623929 != nil: + section.add "X-Amz-SignedHeaders", valid_623929 result.add "header", section ## parameters in `formData` object: ## UseLongIds: JBool (required) @@ -105430,33 +105457,33 @@ proc validate_PostModifyIdFormat_623917(path: JsonNode; query: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `UseLongIds` field" - var valid_623928 = formData.getOrDefault("UseLongIds") - valid_623928 = validateParameter(valid_623928, JBool, required = true, default = nil) - if valid_623928 != nil: - section.add "UseLongIds", valid_623928 - var valid_623929 = formData.getOrDefault("Resource") - valid_623929 = validateParameter(valid_623929, JString, required = true, + var valid_623930 = formData.getOrDefault("UseLongIds") + valid_623930 = validateParameter(valid_623930, JBool, required = true, default = nil) + if valid_623930 != nil: + section.add "UseLongIds", valid_623930 + var valid_623931 = formData.getOrDefault("Resource") + valid_623931 = validateParameter(valid_623931, JString, required = true, default = nil) - if valid_623929 != nil: - section.add "Resource", valid_623929 + if valid_623931 != nil: + section.add "Resource", valid_623931 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623930: Call_PostModifyIdFormat_623916; path: JsonNode; +proc call*(call_623932: Call_PostModifyIdFormat_623918; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the ID format for the specified resource on a per-Region basis. You can specify that resources should receive longer IDs (17-character IDs) when they are created.

    This request can only be used to modify longer ID settings for resource types that are within the opt-in period. Resources currently in their opt-in period include: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | route-table | route-table-association | security-group | subnet | subnet-cidr-block-association | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

    This setting applies to the IAM user who makes the request; it does not apply to the entire AWS account. By default, an IAM user defaults to the same settings as the root user. If you're using this action as the root user, then these settings apply to the entire account, unless an IAM user explicitly overrides these settings for themselves. For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.

    Resources created with longer IDs are visible to all IAM roles and users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

    ## - let valid = call_623930.validator(path, query, header, formData, body) - let scheme = call_623930.pickScheme + let valid = call_623932.validator(path, query, header, formData, body) + let scheme = call_623932.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623930.url(scheme.get, call_623930.host, call_623930.base, - call_623930.route, valid.getOrDefault("path"), + let url = call_623932.url(scheme.get, call_623932.host, call_623932.base, + call_623932.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623930, url, valid) + result = atozHook(call_623932, url, valid) -proc call*(call_623931: Call_PostModifyIdFormat_623916; UseLongIds: bool; +proc call*(call_623933: Call_PostModifyIdFormat_623918; UseLongIds: bool; Resource: string; Action: string = "ModifyIdFormat"; Version: string = "2016-11-15"): Recallable = ## postModifyIdFormat @@ -105467,22 +105494,22 @@ proc call*(call_623931: Call_PostModifyIdFormat_623916; UseLongIds: bool; ## :

    The type of resource: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | route-table | route-table-association | security-group | subnet | subnet-cidr-block-association | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

    Alternatively, use the all-current option to include all resource types that are currently within their opt-in period for longer IDs.

    ## Action: string (required) ## Version: string (required) - var query_623932 = newJObject() - var formData_623933 = newJObject() - add(formData_623933, "UseLongIds", newJBool(UseLongIds)) - add(formData_623933, "Resource", newJString(Resource)) - add(query_623932, "Action", newJString(Action)) - add(query_623932, "Version", newJString(Version)) - result = call_623931.call(nil, query_623932, nil, formData_623933, nil) + var query_623934 = newJObject() + var formData_623935 = newJObject() + add(formData_623935, "UseLongIds", newJBool(UseLongIds)) + add(formData_623935, "Resource", newJString(Resource)) + add(query_623934, "Action", newJString(Action)) + add(query_623934, "Version", newJString(Version)) + result = call_623933.call(nil, query_623934, nil, formData_623935, nil) -var postModifyIdFormat* = Call_PostModifyIdFormat_623916( +var postModifyIdFormat* = Call_PostModifyIdFormat_623918( name: "postModifyIdFormat", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyIdFormat", - validator: validate_PostModifyIdFormat_623917, base: "/", - url: url_PostModifyIdFormat_623918, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostModifyIdFormat_623919, base: "/", + url: url_PostModifyIdFormat_623920, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyIdFormat_623899 = ref object of OpenApiRestCall_610658 -proc url_GetModifyIdFormat_623901(protocol: Scheme; host: string; base: string; + Call_GetModifyIdFormat_623901 = ref object of OpenApiRestCall_610658 +proc url_GetModifyIdFormat_623903(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -105492,7 +105519,7 @@ proc url_GetModifyIdFormat_623901(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetModifyIdFormat_623900(path: JsonNode; query: JsonNode; +proc validate_GetModifyIdFormat_623902(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the ID format for the specified resource on a per-Region basis. You can specify that resources should receive longer IDs (17-character IDs) when they are created.

    This request can only be used to modify longer ID settings for resource types that are within the opt-in period. Resources currently in their opt-in period include: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | route-table | route-table-association | security-group | subnet | subnet-cidr-block-association | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

    This setting applies to the IAM user who makes the request; it does not apply to the entire AWS account. By default, an IAM user defaults to the same settings as the root user. If you're using this action as the root user, then these settings apply to the entire account, unless an IAM user explicitly overrides these settings for themselves. For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.

    Resources created with longer IDs are visible to all IAM roles and users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

    @@ -105511,25 +105538,25 @@ proc validate_GetModifyIdFormat_623900(path: JsonNode; query: JsonNode; section = newJObject() assert query != nil, "query argument is necessary due to required `Resource` field" - var valid_623902 = query.getOrDefault("Resource") - valid_623902 = validateParameter(valid_623902, JString, required = true, + var valid_623904 = query.getOrDefault("Resource") + valid_623904 = validateParameter(valid_623904, JString, required = true, default = nil) - if valid_623902 != nil: - section.add "Resource", valid_623902 - var valid_623903 = query.getOrDefault("Action") - valid_623903 = validateParameter(valid_623903, JString, required = true, - default = newJString("ModifyIdFormat")) - if valid_623903 != nil: - section.add "Action", valid_623903 - var valid_623904 = query.getOrDefault("UseLongIds") - valid_623904 = validateParameter(valid_623904, JBool, required = true, default = nil) if valid_623904 != nil: - section.add "UseLongIds", valid_623904 - var valid_623905 = query.getOrDefault("Version") + section.add "Resource", valid_623904 + var valid_623905 = query.getOrDefault("Action") valid_623905 = validateParameter(valid_623905, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("ModifyIdFormat")) if valid_623905 != nil: - section.add "Version", valid_623905 + section.add "Action", valid_623905 + var valid_623906 = query.getOrDefault("UseLongIds") + valid_623906 = validateParameter(valid_623906, JBool, required = true, default = nil) + if valid_623906 != nil: + section.add "UseLongIds", valid_623906 + var valid_623907 = query.getOrDefault("Version") + valid_623907 = validateParameter(valid_623907, JString, required = true, + default = newJString("2016-11-15")) + if valid_623907 != nil: + section.add "Version", valid_623907 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -105540,61 +105567,61 @@ proc validate_GetModifyIdFormat_623900(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623906 = header.getOrDefault("X-Amz-Signature") - valid_623906 = validateParameter(valid_623906, JString, required = false, - default = nil) - if valid_623906 != nil: - section.add "X-Amz-Signature", valid_623906 - var valid_623907 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623907 = validateParameter(valid_623907, JString, required = false, - default = nil) - if valid_623907 != nil: - section.add "X-Amz-Content-Sha256", valid_623907 - var valid_623908 = header.getOrDefault("X-Amz-Date") + var valid_623908 = header.getOrDefault("X-Amz-Signature") valid_623908 = validateParameter(valid_623908, JString, required = false, default = nil) if valid_623908 != nil: - section.add "X-Amz-Date", valid_623908 - var valid_623909 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623908 + var valid_623909 = header.getOrDefault("X-Amz-Content-Sha256") valid_623909 = validateParameter(valid_623909, JString, required = false, default = nil) if valid_623909 != nil: - section.add "X-Amz-Credential", valid_623909 - var valid_623910 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623909 + var valid_623910 = header.getOrDefault("X-Amz-Date") valid_623910 = validateParameter(valid_623910, JString, required = false, default = nil) if valid_623910 != nil: - section.add "X-Amz-Security-Token", valid_623910 - var valid_623911 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623910 + var valid_623911 = header.getOrDefault("X-Amz-Credential") valid_623911 = validateParameter(valid_623911, JString, required = false, default = nil) if valid_623911 != nil: - section.add "X-Amz-Algorithm", valid_623911 - var valid_623912 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623911 + var valid_623912 = header.getOrDefault("X-Amz-Security-Token") valid_623912 = validateParameter(valid_623912, JString, required = false, default = nil) if valid_623912 != nil: - section.add "X-Amz-SignedHeaders", valid_623912 + section.add "X-Amz-Security-Token", valid_623912 + var valid_623913 = header.getOrDefault("X-Amz-Algorithm") + valid_623913 = validateParameter(valid_623913, JString, required = false, + default = nil) + if valid_623913 != nil: + section.add "X-Amz-Algorithm", valid_623913 + var valid_623914 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623914 = validateParameter(valid_623914, JString, required = false, + default = nil) + if valid_623914 != nil: + section.add "X-Amz-SignedHeaders", valid_623914 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623913: Call_GetModifyIdFormat_623899; path: JsonNode; +proc call*(call_623915: Call_GetModifyIdFormat_623901; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the ID format for the specified resource on a per-Region basis. You can specify that resources should receive longer IDs (17-character IDs) when they are created.

    This request can only be used to modify longer ID settings for resource types that are within the opt-in period. Resources currently in their opt-in period include: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | route-table | route-table-association | security-group | subnet | subnet-cidr-block-association | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

    This setting applies to the IAM user who makes the request; it does not apply to the entire AWS account. By default, an IAM user defaults to the same settings as the root user. If you're using this action as the root user, then these settings apply to the entire account, unless an IAM user explicitly overrides these settings for themselves. For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.

    Resources created with longer IDs are visible to all IAM roles and users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

    ## - let valid = call_623913.validator(path, query, header, formData, body) - let scheme = call_623913.pickScheme + let valid = call_623915.validator(path, query, header, formData, body) + let scheme = call_623915.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623913.url(scheme.get, call_623913.host, call_623913.base, - call_623913.route, valid.getOrDefault("path"), + let url = call_623915.url(scheme.get, call_623915.host, call_623915.base, + call_623915.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623913, url, valid) + result = atozHook(call_623915, url, valid) -proc call*(call_623914: Call_GetModifyIdFormat_623899; Resource: string; +proc call*(call_623916: Call_GetModifyIdFormat_623901; Resource: string; UseLongIds: bool; Action: string = "ModifyIdFormat"; Version: string = "2016-11-15"): Recallable = ## getModifyIdFormat @@ -105605,21 +105632,21 @@ proc call*(call_623914: Call_GetModifyIdFormat_623899; Resource: string; ## UseLongIds: bool (required) ## : Indicate whether the resource should use longer IDs (17-character IDs). ## Version: string (required) - var query_623915 = newJObject() - add(query_623915, "Resource", newJString(Resource)) - add(query_623915, "Action", newJString(Action)) - add(query_623915, "UseLongIds", newJBool(UseLongIds)) - add(query_623915, "Version", newJString(Version)) - result = call_623914.call(nil, query_623915, nil, nil, nil) + var query_623917 = newJObject() + add(query_623917, "Resource", newJString(Resource)) + add(query_623917, "Action", newJString(Action)) + add(query_623917, "UseLongIds", newJBool(UseLongIds)) + add(query_623917, "Version", newJString(Version)) + result = call_623916.call(nil, query_623917, nil, nil, nil) -var getModifyIdFormat* = Call_GetModifyIdFormat_623899(name: "getModifyIdFormat", +var getModifyIdFormat* = Call_GetModifyIdFormat_623901(name: "getModifyIdFormat", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=ModifyIdFormat", validator: validate_GetModifyIdFormat_623900, - base: "/", url: url_GetModifyIdFormat_623901, + route: "/#Action=ModifyIdFormat", validator: validate_GetModifyIdFormat_623902, + base: "/", url: url_GetModifyIdFormat_623903, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyIdentityIdFormat_623952 = ref object of OpenApiRestCall_610658 -proc url_PostModifyIdentityIdFormat_623954(protocol: Scheme; host: string; + Call_PostModifyIdentityIdFormat_623954 = ref object of OpenApiRestCall_610658 +proc url_PostModifyIdentityIdFormat_623956(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -105629,7 +105656,7 @@ proc url_PostModifyIdentityIdFormat_623954(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostModifyIdentityIdFormat_623953(path: JsonNode; query: JsonNode; +proc validate_PostModifyIdentityIdFormat_623955(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the ID format of a resource for a specified IAM user, IAM role, or the root user for an account; or all IAM users, IAM roles, and the root user for an account. You can specify that resources should receive longer IDs (17-character IDs) when they are created.

    This request can only be used to modify longer ID settings for resource types that are within the opt-in period. Resources currently in their opt-in period include: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | route-table | route-table-association | security-group | subnet | subnet-cidr-block-association | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

    For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.

    This setting applies to the principal specified in the request; it does not apply to the principal that makes the request.

    Resources created with longer IDs are visible to all IAM roles and users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

    ## @@ -105641,16 +105668,16 @@ proc validate_PostModifyIdentityIdFormat_623953(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_623955 = query.getOrDefault("Action") - valid_623955 = validateParameter(valid_623955, JString, required = true, + var valid_623957 = query.getOrDefault("Action") + valid_623957 = validateParameter(valid_623957, JString, required = true, default = newJString("ModifyIdentityIdFormat")) - if valid_623955 != nil: - section.add "Action", valid_623955 - var valid_623956 = query.getOrDefault("Version") - valid_623956 = validateParameter(valid_623956, JString, required = true, + if valid_623957 != nil: + section.add "Action", valid_623957 + var valid_623958 = query.getOrDefault("Version") + valid_623958 = validateParameter(valid_623958, JString, required = true, default = newJString("2016-11-15")) - if valid_623956 != nil: - section.add "Version", valid_623956 + if valid_623958 != nil: + section.add "Version", valid_623958 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -105661,41 +105688,41 @@ proc validate_PostModifyIdentityIdFormat_623953(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623957 = header.getOrDefault("X-Amz-Signature") - valid_623957 = validateParameter(valid_623957, JString, required = false, - default = nil) - if valid_623957 != nil: - section.add "X-Amz-Signature", valid_623957 - var valid_623958 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623958 = validateParameter(valid_623958, JString, required = false, - default = nil) - if valid_623958 != nil: - section.add "X-Amz-Content-Sha256", valid_623958 - var valid_623959 = header.getOrDefault("X-Amz-Date") + var valid_623959 = header.getOrDefault("X-Amz-Signature") valid_623959 = validateParameter(valid_623959, JString, required = false, default = nil) if valid_623959 != nil: - section.add "X-Amz-Date", valid_623959 - var valid_623960 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623959 + var valid_623960 = header.getOrDefault("X-Amz-Content-Sha256") valid_623960 = validateParameter(valid_623960, JString, required = false, default = nil) if valid_623960 != nil: - section.add "X-Amz-Credential", valid_623960 - var valid_623961 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623960 + var valid_623961 = header.getOrDefault("X-Amz-Date") valid_623961 = validateParameter(valid_623961, JString, required = false, default = nil) if valid_623961 != nil: - section.add "X-Amz-Security-Token", valid_623961 - var valid_623962 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623961 + var valid_623962 = header.getOrDefault("X-Amz-Credential") valid_623962 = validateParameter(valid_623962, JString, required = false, default = nil) if valid_623962 != nil: - section.add "X-Amz-Algorithm", valid_623962 - var valid_623963 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623962 + var valid_623963 = header.getOrDefault("X-Amz-Security-Token") valid_623963 = validateParameter(valid_623963, JString, required = false, default = nil) if valid_623963 != nil: - section.add "X-Amz-SignedHeaders", valid_623963 + section.add "X-Amz-Security-Token", valid_623963 + var valid_623964 = header.getOrDefault("X-Amz-Algorithm") + valid_623964 = validateParameter(valid_623964, JString, required = false, + default = nil) + if valid_623964 != nil: + section.add "X-Amz-Algorithm", valid_623964 + var valid_623965 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623965 = validateParameter(valid_623965, JString, required = false, + default = nil) + if valid_623965 != nil: + section.add "X-Amz-SignedHeaders", valid_623965 result.add "header", section ## parameters in `formData` object: ## UseLongIds: JBool (required) @@ -105707,38 +105734,38 @@ proc validate_PostModifyIdentityIdFormat_623953(path: JsonNode; query: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `UseLongIds` field" - var valid_623964 = formData.getOrDefault("UseLongIds") - valid_623964 = validateParameter(valid_623964, JBool, required = true, default = nil) - if valid_623964 != nil: - section.add "UseLongIds", valid_623964 - var valid_623965 = formData.getOrDefault("Resource") - valid_623965 = validateParameter(valid_623965, JString, required = true, + var valid_623966 = formData.getOrDefault("UseLongIds") + valid_623966 = validateParameter(valid_623966, JBool, required = true, default = nil) + if valid_623966 != nil: + section.add "UseLongIds", valid_623966 + var valid_623967 = formData.getOrDefault("Resource") + valid_623967 = validateParameter(valid_623967, JString, required = true, default = nil) - if valid_623965 != nil: - section.add "Resource", valid_623965 - var valid_623966 = formData.getOrDefault("PrincipalArn") - valid_623966 = validateParameter(valid_623966, JString, required = true, + if valid_623967 != nil: + section.add "Resource", valid_623967 + var valid_623968 = formData.getOrDefault("PrincipalArn") + valid_623968 = validateParameter(valid_623968, JString, required = true, default = nil) - if valid_623966 != nil: - section.add "PrincipalArn", valid_623966 + if valid_623968 != nil: + section.add "PrincipalArn", valid_623968 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623967: Call_PostModifyIdentityIdFormat_623952; path: JsonNode; +proc call*(call_623969: Call_PostModifyIdentityIdFormat_623954; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the ID format of a resource for a specified IAM user, IAM role, or the root user for an account; or all IAM users, IAM roles, and the root user for an account. You can specify that resources should receive longer IDs (17-character IDs) when they are created.

    This request can only be used to modify longer ID settings for resource types that are within the opt-in period. Resources currently in their opt-in period include: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | route-table | route-table-association | security-group | subnet | subnet-cidr-block-association | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

    For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.

    This setting applies to the principal specified in the request; it does not apply to the principal that makes the request.

    Resources created with longer IDs are visible to all IAM roles and users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

    ## - let valid = call_623967.validator(path, query, header, formData, body) - let scheme = call_623967.pickScheme + let valid = call_623969.validator(path, query, header, formData, body) + let scheme = call_623969.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623967.url(scheme.get, call_623967.host, call_623967.base, - call_623967.route, valid.getOrDefault("path"), + let url = call_623969.url(scheme.get, call_623969.host, call_623969.base, + call_623969.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623967, url, valid) + result = atozHook(call_623969, url, valid) -proc call*(call_623968: Call_PostModifyIdentityIdFormat_623952; UseLongIds: bool; +proc call*(call_623970: Call_PostModifyIdentityIdFormat_623954; UseLongIds: bool; Resource: string; PrincipalArn: string; Action: string = "ModifyIdentityIdFormat"; Version: string = "2016-11-15"): Recallable = ## postModifyIdentityIdFormat @@ -105751,24 +105778,24 @@ proc call*(call_623968: Call_PostModifyIdentityIdFormat_623952; UseLongIds: bool ## Version: string (required) ## PrincipalArn: string (required) ## : The ARN of the principal, which can be an IAM user, IAM role, or the root user. Specify all to modify the ID format for all IAM users, IAM roles, and the root user of the account. - var query_623969 = newJObject() - var formData_623970 = newJObject() - add(formData_623970, "UseLongIds", newJBool(UseLongIds)) - add(formData_623970, "Resource", newJString(Resource)) - add(query_623969, "Action", newJString(Action)) - add(query_623969, "Version", newJString(Version)) - add(formData_623970, "PrincipalArn", newJString(PrincipalArn)) - result = call_623968.call(nil, query_623969, nil, formData_623970, nil) - -var postModifyIdentityIdFormat* = Call_PostModifyIdentityIdFormat_623952( + var query_623971 = newJObject() + var formData_623972 = newJObject() + add(formData_623972, "UseLongIds", newJBool(UseLongIds)) + add(formData_623972, "Resource", newJString(Resource)) + add(query_623971, "Action", newJString(Action)) + add(query_623971, "Version", newJString(Version)) + add(formData_623972, "PrincipalArn", newJString(PrincipalArn)) + result = call_623970.call(nil, query_623971, nil, formData_623972, nil) + +var postModifyIdentityIdFormat* = Call_PostModifyIdentityIdFormat_623954( name: "postModifyIdentityIdFormat", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyIdentityIdFormat", - validator: validate_PostModifyIdentityIdFormat_623953, base: "/", - url: url_PostModifyIdentityIdFormat_623954, + validator: validate_PostModifyIdentityIdFormat_623955, base: "/", + url: url_PostModifyIdentityIdFormat_623956, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyIdentityIdFormat_623934 = ref object of OpenApiRestCall_610658 -proc url_GetModifyIdentityIdFormat_623936(protocol: Scheme; host: string; + Call_GetModifyIdentityIdFormat_623936 = ref object of OpenApiRestCall_610658 +proc url_GetModifyIdentityIdFormat_623938(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -105778,7 +105805,7 @@ proc url_GetModifyIdentityIdFormat_623936(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetModifyIdentityIdFormat_623935(path: JsonNode; query: JsonNode; +proc validate_GetModifyIdentityIdFormat_623937(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the ID format of a resource for a specified IAM user, IAM role, or the root user for an account; or all IAM users, IAM roles, and the root user for an account. You can specify that resources should receive longer IDs (17-character IDs) when they are created.

    This request can only be used to modify longer ID settings for resource types that are within the opt-in period. Resources currently in their opt-in period include: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | route-table | route-table-association | security-group | subnet | subnet-cidr-block-association | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

    For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.

    This setting applies to the principal specified in the request; it does not apply to the principal that makes the request.

    Resources created with longer IDs are visible to all IAM roles and users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

    ## @@ -105798,30 +105825,30 @@ proc validate_GetModifyIdentityIdFormat_623935(path: JsonNode; query: JsonNode; section = newJObject() assert query != nil, "query argument is necessary due to required `Resource` field" - var valid_623937 = query.getOrDefault("Resource") - valid_623937 = validateParameter(valid_623937, JString, required = true, - default = nil) - if valid_623937 != nil: - section.add "Resource", valid_623937 - var valid_623938 = query.getOrDefault("PrincipalArn") - valid_623938 = validateParameter(valid_623938, JString, required = true, - default = nil) - if valid_623938 != nil: - section.add "PrincipalArn", valid_623938 - var valid_623939 = query.getOrDefault("Action") + var valid_623939 = query.getOrDefault("Resource") valid_623939 = validateParameter(valid_623939, JString, required = true, - default = newJString("ModifyIdentityIdFormat")) + default = nil) if valid_623939 != nil: - section.add "Action", valid_623939 - var valid_623940 = query.getOrDefault("UseLongIds") - valid_623940 = validateParameter(valid_623940, JBool, required = true, default = nil) + section.add "Resource", valid_623939 + var valid_623940 = query.getOrDefault("PrincipalArn") + valid_623940 = validateParameter(valid_623940, JString, required = true, + default = nil) if valid_623940 != nil: - section.add "UseLongIds", valid_623940 - var valid_623941 = query.getOrDefault("Version") + section.add "PrincipalArn", valid_623940 + var valid_623941 = query.getOrDefault("Action") valid_623941 = validateParameter(valid_623941, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("ModifyIdentityIdFormat")) if valid_623941 != nil: - section.add "Version", valid_623941 + section.add "Action", valid_623941 + var valid_623942 = query.getOrDefault("UseLongIds") + valid_623942 = validateParameter(valid_623942, JBool, required = true, default = nil) + if valid_623942 != nil: + section.add "UseLongIds", valid_623942 + var valid_623943 = query.getOrDefault("Version") + valid_623943 = validateParameter(valid_623943, JString, required = true, + default = newJString("2016-11-15")) + if valid_623943 != nil: + section.add "Version", valid_623943 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -105832,61 +105859,61 @@ proc validate_GetModifyIdentityIdFormat_623935(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623942 = header.getOrDefault("X-Amz-Signature") - valid_623942 = validateParameter(valid_623942, JString, required = false, - default = nil) - if valid_623942 != nil: - section.add "X-Amz-Signature", valid_623942 - var valid_623943 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623943 = validateParameter(valid_623943, JString, required = false, - default = nil) - if valid_623943 != nil: - section.add "X-Amz-Content-Sha256", valid_623943 - var valid_623944 = header.getOrDefault("X-Amz-Date") + var valid_623944 = header.getOrDefault("X-Amz-Signature") valid_623944 = validateParameter(valid_623944, JString, required = false, default = nil) if valid_623944 != nil: - section.add "X-Amz-Date", valid_623944 - var valid_623945 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623944 + var valid_623945 = header.getOrDefault("X-Amz-Content-Sha256") valid_623945 = validateParameter(valid_623945, JString, required = false, default = nil) if valid_623945 != nil: - section.add "X-Amz-Credential", valid_623945 - var valid_623946 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623945 + var valid_623946 = header.getOrDefault("X-Amz-Date") valid_623946 = validateParameter(valid_623946, JString, required = false, default = nil) if valid_623946 != nil: - section.add "X-Amz-Security-Token", valid_623946 - var valid_623947 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623946 + var valid_623947 = header.getOrDefault("X-Amz-Credential") valid_623947 = validateParameter(valid_623947, JString, required = false, default = nil) if valid_623947 != nil: - section.add "X-Amz-Algorithm", valid_623947 - var valid_623948 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623947 + var valid_623948 = header.getOrDefault("X-Amz-Security-Token") valid_623948 = validateParameter(valid_623948, JString, required = false, default = nil) if valid_623948 != nil: - section.add "X-Amz-SignedHeaders", valid_623948 + section.add "X-Amz-Security-Token", valid_623948 + var valid_623949 = header.getOrDefault("X-Amz-Algorithm") + valid_623949 = validateParameter(valid_623949, JString, required = false, + default = nil) + if valid_623949 != nil: + section.add "X-Amz-Algorithm", valid_623949 + var valid_623950 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623950 = validateParameter(valid_623950, JString, required = false, + default = nil) + if valid_623950 != nil: + section.add "X-Amz-SignedHeaders", valid_623950 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623949: Call_GetModifyIdentityIdFormat_623934; path: JsonNode; +proc call*(call_623951: Call_GetModifyIdentityIdFormat_623936; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the ID format of a resource for a specified IAM user, IAM role, or the root user for an account; or all IAM users, IAM roles, and the root user for an account. You can specify that resources should receive longer IDs (17-character IDs) when they are created.

    This request can only be used to modify longer ID settings for resource types that are within the opt-in period. Resources currently in their opt-in period include: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | route-table | route-table-association | security-group | subnet | subnet-cidr-block-association | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

    For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.

    This setting applies to the principal specified in the request; it does not apply to the principal that makes the request.

    Resources created with longer IDs are visible to all IAM roles and users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

    ## - let valid = call_623949.validator(path, query, header, formData, body) - let scheme = call_623949.pickScheme + let valid = call_623951.validator(path, query, header, formData, body) + let scheme = call_623951.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623949.url(scheme.get, call_623949.host, call_623949.base, - call_623949.route, valid.getOrDefault("path"), + let url = call_623951.url(scheme.get, call_623951.host, call_623951.base, + call_623951.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623949, url, valid) + result = atozHook(call_623951, url, valid) -proc call*(call_623950: Call_GetModifyIdentityIdFormat_623934; Resource: string; +proc call*(call_623952: Call_GetModifyIdentityIdFormat_623936; Resource: string; PrincipalArn: string; UseLongIds: bool; Action: string = "ModifyIdentityIdFormat"; Version: string = "2016-11-15"): Recallable = ## getModifyIdentityIdFormat @@ -105899,23 +105926,23 @@ proc call*(call_623950: Call_GetModifyIdentityIdFormat_623934; Resource: string; ## UseLongIds: bool (required) ## : Indicates whether the resource should use longer IDs (17-character IDs) ## Version: string (required) - var query_623951 = newJObject() - add(query_623951, "Resource", newJString(Resource)) - add(query_623951, "PrincipalArn", newJString(PrincipalArn)) - add(query_623951, "Action", newJString(Action)) - add(query_623951, "UseLongIds", newJBool(UseLongIds)) - add(query_623951, "Version", newJString(Version)) - result = call_623950.call(nil, query_623951, nil, nil, nil) + var query_623953 = newJObject() + add(query_623953, "Resource", newJString(Resource)) + add(query_623953, "PrincipalArn", newJString(PrincipalArn)) + add(query_623953, "Action", newJString(Action)) + add(query_623953, "UseLongIds", newJBool(UseLongIds)) + add(query_623953, "Version", newJString(Version)) + result = call_623952.call(nil, query_623953, nil, nil, nil) -var getModifyIdentityIdFormat* = Call_GetModifyIdentityIdFormat_623934( +var getModifyIdentityIdFormat* = Call_GetModifyIdentityIdFormat_623936( name: "getModifyIdentityIdFormat", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifyIdentityIdFormat", - validator: validate_GetModifyIdentityIdFormat_623935, base: "/", - url: url_GetModifyIdentityIdFormat_623936, + validator: validate_GetModifyIdentityIdFormat_623937, base: "/", + url: url_GetModifyIdentityIdFormat_623938, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyImageAttribute_623997 = ref object of OpenApiRestCall_610658 -proc url_PostModifyImageAttribute_623999(protocol: Scheme; host: string; + Call_PostModifyImageAttribute_623999 = ref object of OpenApiRestCall_610658 +proc url_PostModifyImageAttribute_624001(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -105926,7 +105953,7 @@ proc url_PostModifyImageAttribute_623999(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostModifyImageAttribute_623998(path: JsonNode; query: JsonNode; +proc validate_PostModifyImageAttribute_624000(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the specified attribute of the specified AMI. You can specify only one attribute at a time. You can use the Attribute parameter to specify the attribute or one of the following parameters: Description, LaunchPermission, or ProductCode.

    AWS Marketplace product codes cannot be modified. Images with an AWS Marketplace product code cannot be made public.

    To enable the SriovNetSupport enhanced networking attribute of an image, enable SriovNetSupport on an instance and create an AMI from the instance.

    ## @@ -105938,16 +105965,16 @@ proc validate_PostModifyImageAttribute_623998(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_624000 = query.getOrDefault("Action") - valid_624000 = validateParameter(valid_624000, JString, required = true, + var valid_624002 = query.getOrDefault("Action") + valid_624002 = validateParameter(valid_624002, JString, required = true, default = newJString("ModifyImageAttribute")) - if valid_624000 != nil: - section.add "Action", valid_624000 - var valid_624001 = query.getOrDefault("Version") - valid_624001 = validateParameter(valid_624001, JString, required = true, + if valid_624002 != nil: + section.add "Action", valid_624002 + var valid_624003 = query.getOrDefault("Version") + valid_624003 = validateParameter(valid_624003, JString, required = true, default = newJString("2016-11-15")) - if valid_624001 != nil: - section.add "Version", valid_624001 + if valid_624003 != nil: + section.add "Version", valid_624003 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -105958,41 +105985,41 @@ proc validate_PostModifyImageAttribute_623998(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624002 = header.getOrDefault("X-Amz-Signature") - valid_624002 = validateParameter(valid_624002, JString, required = false, - default = nil) - if valid_624002 != nil: - section.add "X-Amz-Signature", valid_624002 - var valid_624003 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624003 = validateParameter(valid_624003, JString, required = false, - default = nil) - if valid_624003 != nil: - section.add "X-Amz-Content-Sha256", valid_624003 - var valid_624004 = header.getOrDefault("X-Amz-Date") + var valid_624004 = header.getOrDefault("X-Amz-Signature") valid_624004 = validateParameter(valid_624004, JString, required = false, default = nil) if valid_624004 != nil: - section.add "X-Amz-Date", valid_624004 - var valid_624005 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624004 + var valid_624005 = header.getOrDefault("X-Amz-Content-Sha256") valid_624005 = validateParameter(valid_624005, JString, required = false, default = nil) if valid_624005 != nil: - section.add "X-Amz-Credential", valid_624005 - var valid_624006 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624005 + var valid_624006 = header.getOrDefault("X-Amz-Date") valid_624006 = validateParameter(valid_624006, JString, required = false, default = nil) if valid_624006 != nil: - section.add "X-Amz-Security-Token", valid_624006 - var valid_624007 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624006 + var valid_624007 = header.getOrDefault("X-Amz-Credential") valid_624007 = validateParameter(valid_624007, JString, required = false, default = nil) if valid_624007 != nil: - section.add "X-Amz-Algorithm", valid_624007 - var valid_624008 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624007 + var valid_624008 = header.getOrDefault("X-Amz-Security-Token") valid_624008 = validateParameter(valid_624008, JString, required = false, default = nil) if valid_624008 != nil: - section.add "X-Amz-SignedHeaders", valid_624008 + section.add "X-Amz-Security-Token", valid_624008 + var valid_624009 = header.getOrDefault("X-Amz-Algorithm") + valid_624009 = validateParameter(valid_624009, JString, required = false, + default = nil) + if valid_624009 != nil: + section.add "X-Amz-Algorithm", valid_624009 + var valid_624010 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624010 = validateParameter(valid_624010, JString, required = false, + default = nil) + if valid_624010 != nil: + section.add "X-Amz-SignedHeaders", valid_624010 result.add "header", section ## parameters in `formData` object: ## LaunchPermission.Remove: JArray @@ -106021,80 +106048,80 @@ proc validate_PostModifyImageAttribute_623998(path: JsonNode; query: JsonNode; ## ProductCode: JArray ## : The DevPay product codes. After you add a product code to an AMI, it can't be removed. section = newJObject() - var valid_624009 = formData.getOrDefault("LaunchPermission.Remove") - valid_624009 = validateParameter(valid_624009, JArray, required = false, - default = nil) - if valid_624009 != nil: - section.add "LaunchPermission.Remove", valid_624009 - var valid_624010 = formData.getOrDefault("Attribute") - valid_624010 = validateParameter(valid_624010, JString, required = false, - default = nil) - if valid_624010 != nil: - section.add "Attribute", valid_624010 - var valid_624011 = formData.getOrDefault("UserId") + var valid_624011 = formData.getOrDefault("LaunchPermission.Remove") valid_624011 = validateParameter(valid_624011, JArray, required = false, default = nil) if valid_624011 != nil: - section.add "UserId", valid_624011 - var valid_624012 = formData.getOrDefault("Value") + section.add "LaunchPermission.Remove", valid_624011 + var valid_624012 = formData.getOrDefault("Attribute") valid_624012 = validateParameter(valid_624012, JString, required = false, default = nil) if valid_624012 != nil: - section.add "Value", valid_624012 - var valid_624013 = formData.getOrDefault("OperationType") - valid_624013 = validateParameter(valid_624013, JString, required = false, - default = newJString("add")) + section.add "Attribute", valid_624012 + var valid_624013 = formData.getOrDefault("UserId") + valid_624013 = validateParameter(valid_624013, JArray, required = false, + default = nil) if valid_624013 != nil: - section.add "OperationType", valid_624013 - var valid_624014 = formData.getOrDefault("LaunchPermission.Add") - valid_624014 = validateParameter(valid_624014, JArray, required = false, + section.add "UserId", valid_624013 + var valid_624014 = formData.getOrDefault("Value") + valid_624014 = validateParameter(valid_624014, JString, required = false, default = nil) if valid_624014 != nil: - section.add "LaunchPermission.Add", valid_624014 - var valid_624015 = formData.getOrDefault("Description.Value") + section.add "Value", valid_624014 + var valid_624015 = formData.getOrDefault("OperationType") valid_624015 = validateParameter(valid_624015, JString, required = false, - default = nil) + default = newJString("add")) if valid_624015 != nil: - section.add "Description.Value", valid_624015 - var valid_624016 = formData.getOrDefault("DryRun") - valid_624016 = validateParameter(valid_624016, JBool, required = false, default = nil) + section.add "OperationType", valid_624015 + var valid_624016 = formData.getOrDefault("LaunchPermission.Add") + valid_624016 = validateParameter(valid_624016, JArray, required = false, + default = nil) if valid_624016 != nil: - section.add "DryRun", valid_624016 - assert formData != nil, - "formData argument is necessary due to required `ImageId` field" - var valid_624017 = formData.getOrDefault("ImageId") - valid_624017 = validateParameter(valid_624017, JString, required = true, + section.add "LaunchPermission.Add", valid_624016 + var valid_624017 = formData.getOrDefault("Description.Value") + valid_624017 = validateParameter(valid_624017, JString, required = false, default = nil) if valid_624017 != nil: - section.add "ImageId", valid_624017 - var valid_624018 = formData.getOrDefault("UserGroup") - valid_624018 = validateParameter(valid_624018, JArray, required = false, - default = nil) + section.add "Description.Value", valid_624017 + var valid_624018 = formData.getOrDefault("DryRun") + valid_624018 = validateParameter(valid_624018, JBool, required = false, default = nil) if valid_624018 != nil: - section.add "UserGroup", valid_624018 - var valid_624019 = formData.getOrDefault("ProductCode") - valid_624019 = validateParameter(valid_624019, JArray, required = false, + section.add "DryRun", valid_624018 + assert formData != nil, + "formData argument is necessary due to required `ImageId` field" + var valid_624019 = formData.getOrDefault("ImageId") + valid_624019 = validateParameter(valid_624019, JString, required = true, default = nil) if valid_624019 != nil: - section.add "ProductCode", valid_624019 + section.add "ImageId", valid_624019 + var valid_624020 = formData.getOrDefault("UserGroup") + valid_624020 = validateParameter(valid_624020, JArray, required = false, + default = nil) + if valid_624020 != nil: + section.add "UserGroup", valid_624020 + var valid_624021 = formData.getOrDefault("ProductCode") + valid_624021 = validateParameter(valid_624021, JArray, required = false, + default = nil) + if valid_624021 != nil: + section.add "ProductCode", valid_624021 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624020: Call_PostModifyImageAttribute_623997; path: JsonNode; +proc call*(call_624022: Call_PostModifyImageAttribute_623999; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the specified attribute of the specified AMI. You can specify only one attribute at a time. You can use the Attribute parameter to specify the attribute or one of the following parameters: Description, LaunchPermission, or ProductCode.

    AWS Marketplace product codes cannot be modified. Images with an AWS Marketplace product code cannot be made public.

    To enable the SriovNetSupport enhanced networking attribute of an image, enable SriovNetSupport on an instance and create an AMI from the instance.

    ## - let valid = call_624020.validator(path, query, header, formData, body) - let scheme = call_624020.pickScheme + let valid = call_624022.validator(path, query, header, formData, body) + let scheme = call_624022.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624020.url(scheme.get, call_624020.host, call_624020.base, - call_624020.route, valid.getOrDefault("path"), + let url = call_624022.url(scheme.get, call_624022.host, call_624022.base, + call_624022.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624020, url, valid) + result = atozHook(call_624022, url, valid) -proc call*(call_624021: Call_PostModifyImageAttribute_623997; ImageId: string; +proc call*(call_624023: Call_PostModifyImageAttribute_623999; ImageId: string; LaunchPermissionRemove: JsonNode = nil; Attribute: string = ""; UserId: JsonNode = nil; Value: string = ""; OperationType: string = "add"; LaunchPermissionAdd: JsonNode = nil; DescriptionValue: string = ""; @@ -106130,36 +106157,36 @@ proc call*(call_624021: Call_PostModifyImageAttribute_623997; ImageId: string; ## Version: string (required) ## ProductCode: JArray ## : The DevPay product codes. After you add a product code to an AMI, it can't be removed. - var query_624022 = newJObject() - var formData_624023 = newJObject() + var query_624024 = newJObject() + var formData_624025 = newJObject() if LaunchPermissionRemove != nil: - formData_624023.add "LaunchPermission.Remove", LaunchPermissionRemove - add(formData_624023, "Attribute", newJString(Attribute)) + formData_624025.add "LaunchPermission.Remove", LaunchPermissionRemove + add(formData_624025, "Attribute", newJString(Attribute)) if UserId != nil: - formData_624023.add "UserId", UserId - add(formData_624023, "Value", newJString(Value)) - add(formData_624023, "OperationType", newJString(OperationType)) + formData_624025.add "UserId", UserId + add(formData_624025, "Value", newJString(Value)) + add(formData_624025, "OperationType", newJString(OperationType)) if LaunchPermissionAdd != nil: - formData_624023.add "LaunchPermission.Add", LaunchPermissionAdd - add(formData_624023, "Description.Value", newJString(DescriptionValue)) - add(formData_624023, "DryRun", newJBool(DryRun)) - add(query_624022, "Action", newJString(Action)) - add(formData_624023, "ImageId", newJString(ImageId)) + formData_624025.add "LaunchPermission.Add", LaunchPermissionAdd + add(formData_624025, "Description.Value", newJString(DescriptionValue)) + add(formData_624025, "DryRun", newJBool(DryRun)) + add(query_624024, "Action", newJString(Action)) + add(formData_624025, "ImageId", newJString(ImageId)) if UserGroup != nil: - formData_624023.add "UserGroup", UserGroup - add(query_624022, "Version", newJString(Version)) + formData_624025.add "UserGroup", UserGroup + add(query_624024, "Version", newJString(Version)) if ProductCode != nil: - formData_624023.add "ProductCode", ProductCode - result = call_624021.call(nil, query_624022, nil, formData_624023, nil) + formData_624025.add "ProductCode", ProductCode + result = call_624023.call(nil, query_624024, nil, formData_624025, nil) -var postModifyImageAttribute* = Call_PostModifyImageAttribute_623997( +var postModifyImageAttribute* = Call_PostModifyImageAttribute_623999( name: "postModifyImageAttribute", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyImageAttribute", - validator: validate_PostModifyImageAttribute_623998, base: "/", - url: url_PostModifyImageAttribute_623999, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostModifyImageAttribute_624000, base: "/", + url: url_PostModifyImageAttribute_624001, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyImageAttribute_623971 = ref object of OpenApiRestCall_610658 -proc url_GetModifyImageAttribute_623973(protocol: Scheme; host: string; base: string; + Call_GetModifyImageAttribute_623973 = ref object of OpenApiRestCall_610658 +proc url_GetModifyImageAttribute_623975(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -106170,7 +106197,7 @@ proc url_GetModifyImageAttribute_623973(protocol: Scheme; host: string; base: st else: result.path = base & route -proc validate_GetModifyImageAttribute_623972(path: JsonNode; query: JsonNode; +proc validate_GetModifyImageAttribute_623974(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the specified attribute of the specified AMI. You can specify only one attribute at a time. You can use the Attribute parameter to specify the attribute or one of the following parameters: Description, LaunchPermission, or ProductCode.

    AWS Marketplace product codes cannot be modified. Images with an AWS Marketplace product code cannot be made public.

    To enable the SriovNetSupport enhanced networking attribute of an image, enable SriovNetSupport on an instance and create an AMI from the instance.

    ## @@ -106208,70 +106235,70 @@ proc validate_GetModifyImageAttribute_623972(path: JsonNode; query: JsonNode; ## : The DevPay product codes. After you add a product code to an AMI, it can't be removed. section = newJObject() assert query != nil, "query argument is necessary due to required `ImageId` field" - var valid_623974 = query.getOrDefault("ImageId") - valid_623974 = validateParameter(valid_623974, JString, required = true, - default = nil) - if valid_623974 != nil: - section.add "ImageId", valid_623974 - var valid_623975 = query.getOrDefault("LaunchPermission.Remove") - valid_623975 = validateParameter(valid_623975, JArray, required = false, - default = nil) - if valid_623975 != nil: - section.add "LaunchPermission.Remove", valid_623975 - var valid_623976 = query.getOrDefault("DryRun") - valid_623976 = validateParameter(valid_623976, JBool, required = false, default = nil) + var valid_623976 = query.getOrDefault("ImageId") + valid_623976 = validateParameter(valid_623976, JString, required = true, + default = nil) if valid_623976 != nil: - section.add "DryRun", valid_623976 - var valid_623977 = query.getOrDefault("Value") - valid_623977 = validateParameter(valid_623977, JString, required = false, + section.add "ImageId", valid_623976 + var valid_623977 = query.getOrDefault("LaunchPermission.Remove") + valid_623977 = validateParameter(valid_623977, JArray, required = false, default = nil) if valid_623977 != nil: - section.add "Value", valid_623977 - var valid_623978 = query.getOrDefault("OperationType") - valid_623978 = validateParameter(valid_623978, JString, required = false, - default = newJString("add")) + section.add "LaunchPermission.Remove", valid_623977 + var valid_623978 = query.getOrDefault("DryRun") + valid_623978 = validateParameter(valid_623978, JBool, required = false, default = nil) if valid_623978 != nil: - section.add "OperationType", valid_623978 - var valid_623979 = query.getOrDefault("Description.Value") + section.add "DryRun", valid_623978 + var valid_623979 = query.getOrDefault("Value") valid_623979 = validateParameter(valid_623979, JString, required = false, default = nil) if valid_623979 != nil: - section.add "Description.Value", valid_623979 - var valid_623980 = query.getOrDefault("UserId") - valid_623980 = validateParameter(valid_623980, JArray, required = false, - default = nil) + section.add "Value", valid_623979 + var valid_623980 = query.getOrDefault("OperationType") + valid_623980 = validateParameter(valid_623980, JString, required = false, + default = newJString("add")) if valid_623980 != nil: - section.add "UserId", valid_623980 - var valid_623981 = query.getOrDefault("Action") - valid_623981 = validateParameter(valid_623981, JString, required = true, - default = newJString("ModifyImageAttribute")) + section.add "OperationType", valid_623980 + var valid_623981 = query.getOrDefault("Description.Value") + valid_623981 = validateParameter(valid_623981, JString, required = false, + default = nil) if valid_623981 != nil: - section.add "Action", valid_623981 - var valid_623982 = query.getOrDefault("Version") - valid_623982 = validateParameter(valid_623982, JString, required = true, - default = newJString("2016-11-15")) - if valid_623982 != nil: - section.add "Version", valid_623982 - var valid_623983 = query.getOrDefault("UserGroup") - valid_623983 = validateParameter(valid_623983, JArray, required = false, + section.add "Description.Value", valid_623981 + var valid_623982 = query.getOrDefault("UserId") + valid_623982 = validateParameter(valid_623982, JArray, required = false, default = nil) + if valid_623982 != nil: + section.add "UserId", valid_623982 + var valid_623983 = query.getOrDefault("Action") + valid_623983 = validateParameter(valid_623983, JString, required = true, + default = newJString("ModifyImageAttribute")) if valid_623983 != nil: - section.add "UserGroup", valid_623983 - var valid_623984 = query.getOrDefault("LaunchPermission.Add") - valid_623984 = validateParameter(valid_623984, JArray, required = false, - default = nil) + section.add "Action", valid_623983 + var valid_623984 = query.getOrDefault("Version") + valid_623984 = validateParameter(valid_623984, JString, required = true, + default = newJString("2016-11-15")) if valid_623984 != nil: - section.add "LaunchPermission.Add", valid_623984 - var valid_623985 = query.getOrDefault("Attribute") - valid_623985 = validateParameter(valid_623985, JString, required = false, + section.add "Version", valid_623984 + var valid_623985 = query.getOrDefault("UserGroup") + valid_623985 = validateParameter(valid_623985, JArray, required = false, default = nil) if valid_623985 != nil: - section.add "Attribute", valid_623985 - var valid_623986 = query.getOrDefault("ProductCode") + section.add "UserGroup", valid_623985 + var valid_623986 = query.getOrDefault("LaunchPermission.Add") valid_623986 = validateParameter(valid_623986, JArray, required = false, default = nil) if valid_623986 != nil: - section.add "ProductCode", valid_623986 + section.add "LaunchPermission.Add", valid_623986 + var valid_623987 = query.getOrDefault("Attribute") + valid_623987 = validateParameter(valid_623987, JString, required = false, + default = nil) + if valid_623987 != nil: + section.add "Attribute", valid_623987 + var valid_623988 = query.getOrDefault("ProductCode") + valid_623988 = validateParameter(valid_623988, JArray, required = false, + default = nil) + if valid_623988 != nil: + section.add "ProductCode", valid_623988 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -106282,61 +106309,61 @@ proc validate_GetModifyImageAttribute_623972(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_623987 = header.getOrDefault("X-Amz-Signature") - valid_623987 = validateParameter(valid_623987, JString, required = false, - default = nil) - if valid_623987 != nil: - section.add "X-Amz-Signature", valid_623987 - var valid_623988 = header.getOrDefault("X-Amz-Content-Sha256") - valid_623988 = validateParameter(valid_623988, JString, required = false, - default = nil) - if valid_623988 != nil: - section.add "X-Amz-Content-Sha256", valid_623988 - var valid_623989 = header.getOrDefault("X-Amz-Date") + var valid_623989 = header.getOrDefault("X-Amz-Signature") valid_623989 = validateParameter(valid_623989, JString, required = false, default = nil) if valid_623989 != nil: - section.add "X-Amz-Date", valid_623989 - var valid_623990 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_623989 + var valid_623990 = header.getOrDefault("X-Amz-Content-Sha256") valid_623990 = validateParameter(valid_623990, JString, required = false, default = nil) if valid_623990 != nil: - section.add "X-Amz-Credential", valid_623990 - var valid_623991 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_623990 + var valid_623991 = header.getOrDefault("X-Amz-Date") valid_623991 = validateParameter(valid_623991, JString, required = false, default = nil) if valid_623991 != nil: - section.add "X-Amz-Security-Token", valid_623991 - var valid_623992 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_623991 + var valid_623992 = header.getOrDefault("X-Amz-Credential") valid_623992 = validateParameter(valid_623992, JString, required = false, default = nil) if valid_623992 != nil: - section.add "X-Amz-Algorithm", valid_623992 - var valid_623993 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_623992 + var valid_623993 = header.getOrDefault("X-Amz-Security-Token") valid_623993 = validateParameter(valid_623993, JString, required = false, default = nil) if valid_623993 != nil: - section.add "X-Amz-SignedHeaders", valid_623993 + section.add "X-Amz-Security-Token", valid_623993 + var valid_623994 = header.getOrDefault("X-Amz-Algorithm") + valid_623994 = validateParameter(valid_623994, JString, required = false, + default = nil) + if valid_623994 != nil: + section.add "X-Amz-Algorithm", valid_623994 + var valid_623995 = header.getOrDefault("X-Amz-SignedHeaders") + valid_623995 = validateParameter(valid_623995, JString, required = false, + default = nil) + if valid_623995 != nil: + section.add "X-Amz-SignedHeaders", valid_623995 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_623994: Call_GetModifyImageAttribute_623971; path: JsonNode; +proc call*(call_623996: Call_GetModifyImageAttribute_623973; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the specified attribute of the specified AMI. You can specify only one attribute at a time. You can use the Attribute parameter to specify the attribute or one of the following parameters: Description, LaunchPermission, or ProductCode.

    AWS Marketplace product codes cannot be modified. Images with an AWS Marketplace product code cannot be made public.

    To enable the SriovNetSupport enhanced networking attribute of an image, enable SriovNetSupport on an instance and create an AMI from the instance.

    ## - let valid = call_623994.validator(path, query, header, formData, body) - let scheme = call_623994.pickScheme + let valid = call_623996.validator(path, query, header, formData, body) + let scheme = call_623996.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_623994.url(scheme.get, call_623994.host, call_623994.base, - call_623994.route, valid.getOrDefault("path"), + let url = call_623996.url(scheme.get, call_623996.host, call_623996.base, + call_623996.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_623994, url, valid) + result = atozHook(call_623996, url, valid) -proc call*(call_623995: Call_GetModifyImageAttribute_623971; ImageId: string; +proc call*(call_623997: Call_GetModifyImageAttribute_623973; ImageId: string; LaunchPermissionRemove: JsonNode = nil; DryRun: bool = false; Value: string = ""; OperationType: string = "add"; DescriptionValue: string = ""; UserId: JsonNode = nil; @@ -106372,35 +106399,35 @@ proc call*(call_623995: Call_GetModifyImageAttribute_623971; ImageId: string; ## : The name of the attribute to modify. The valid values are description, launchPermission, and productCodes. ## ProductCode: JArray ## : The DevPay product codes. After you add a product code to an AMI, it can't be removed. - var query_623996 = newJObject() - add(query_623996, "ImageId", newJString(ImageId)) + var query_623998 = newJObject() + add(query_623998, "ImageId", newJString(ImageId)) if LaunchPermissionRemove != nil: - query_623996.add "LaunchPermission.Remove", LaunchPermissionRemove - add(query_623996, "DryRun", newJBool(DryRun)) - add(query_623996, "Value", newJString(Value)) - add(query_623996, "OperationType", newJString(OperationType)) - add(query_623996, "Description.Value", newJString(DescriptionValue)) + query_623998.add "LaunchPermission.Remove", LaunchPermissionRemove + add(query_623998, "DryRun", newJBool(DryRun)) + add(query_623998, "Value", newJString(Value)) + add(query_623998, "OperationType", newJString(OperationType)) + add(query_623998, "Description.Value", newJString(DescriptionValue)) if UserId != nil: - query_623996.add "UserId", UserId - add(query_623996, "Action", newJString(Action)) - add(query_623996, "Version", newJString(Version)) + query_623998.add "UserId", UserId + add(query_623998, "Action", newJString(Action)) + add(query_623998, "Version", newJString(Version)) if UserGroup != nil: - query_623996.add "UserGroup", UserGroup + query_623998.add "UserGroup", UserGroup if LaunchPermissionAdd != nil: - query_623996.add "LaunchPermission.Add", LaunchPermissionAdd - add(query_623996, "Attribute", newJString(Attribute)) + query_623998.add "LaunchPermission.Add", LaunchPermissionAdd + add(query_623998, "Attribute", newJString(Attribute)) if ProductCode != nil: - query_623996.add "ProductCode", ProductCode - result = call_623995.call(nil, query_623996, nil, nil, nil) + query_623998.add "ProductCode", ProductCode + result = call_623997.call(nil, query_623998, nil, nil, nil) -var getModifyImageAttribute* = Call_GetModifyImageAttribute_623971( +var getModifyImageAttribute* = Call_GetModifyImageAttribute_623973( name: "getModifyImageAttribute", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifyImageAttribute", - validator: validate_GetModifyImageAttribute_623972, base: "/", - url: url_GetModifyImageAttribute_623973, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetModifyImageAttribute_623974, base: "/", + url: url_GetModifyImageAttribute_623975, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyInstanceAttribute_624055 = ref object of OpenApiRestCall_610658 -proc url_PostModifyInstanceAttribute_624057(protocol: Scheme; host: string; + Call_PostModifyInstanceAttribute_624057 = ref object of OpenApiRestCall_610658 +proc url_PostModifyInstanceAttribute_624059(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -106410,7 +106437,7 @@ proc url_PostModifyInstanceAttribute_624057(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostModifyInstanceAttribute_624056(path: JsonNode; query: JsonNode; +proc validate_PostModifyInstanceAttribute_624058(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the specified attribute of the specified instance. You can specify only one attribute at a time.

    Note: Using this action to change the security groups associated with an elastic network interface (ENI) attached to an instance in a VPC can result in an error if the instance has more than one ENI. To change the security groups associated with an ENI attached to an instance that has multiple ENIs, we recommend that you use the ModifyNetworkInterfaceAttribute action.

    To modify some attributes, the instance must be stopped. For more information, see Modifying Attributes of a Stopped Instance in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -106422,16 +106449,16 @@ proc validate_PostModifyInstanceAttribute_624056(path: JsonNode; query: JsonNode ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_624058 = query.getOrDefault("Action") - valid_624058 = validateParameter(valid_624058, JString, required = true, default = newJString( + var valid_624060 = query.getOrDefault("Action") + valid_624060 = validateParameter(valid_624060, JString, required = true, default = newJString( "ModifyInstanceAttribute")) - if valid_624058 != nil: - section.add "Action", valid_624058 - var valid_624059 = query.getOrDefault("Version") - valid_624059 = validateParameter(valid_624059, JString, required = true, + if valid_624060 != nil: + section.add "Action", valid_624060 + var valid_624061 = query.getOrDefault("Version") + valid_624061 = validateParameter(valid_624061, JString, required = true, default = newJString("2016-11-15")) - if valid_624059 != nil: - section.add "Version", valid_624059 + if valid_624061 != nil: + section.add "Version", valid_624061 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -106442,41 +106469,41 @@ proc validate_PostModifyInstanceAttribute_624056(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624060 = header.getOrDefault("X-Amz-Signature") - valid_624060 = validateParameter(valid_624060, JString, required = false, - default = nil) - if valid_624060 != nil: - section.add "X-Amz-Signature", valid_624060 - var valid_624061 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624061 = validateParameter(valid_624061, JString, required = false, - default = nil) - if valid_624061 != nil: - section.add "X-Amz-Content-Sha256", valid_624061 - var valid_624062 = header.getOrDefault("X-Amz-Date") + var valid_624062 = header.getOrDefault("X-Amz-Signature") valid_624062 = validateParameter(valid_624062, JString, required = false, default = nil) if valid_624062 != nil: - section.add "X-Amz-Date", valid_624062 - var valid_624063 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624062 + var valid_624063 = header.getOrDefault("X-Amz-Content-Sha256") valid_624063 = validateParameter(valid_624063, JString, required = false, default = nil) if valid_624063 != nil: - section.add "X-Amz-Credential", valid_624063 - var valid_624064 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624063 + var valid_624064 = header.getOrDefault("X-Amz-Date") valid_624064 = validateParameter(valid_624064, JString, required = false, default = nil) if valid_624064 != nil: - section.add "X-Amz-Security-Token", valid_624064 - var valid_624065 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624064 + var valid_624065 = header.getOrDefault("X-Amz-Credential") valid_624065 = validateParameter(valid_624065, JString, required = false, default = nil) if valid_624065 != nil: - section.add "X-Amz-Algorithm", valid_624065 - var valid_624066 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624065 + var valid_624066 = header.getOrDefault("X-Amz-Security-Token") valid_624066 = validateParameter(valid_624066, JString, required = false, default = nil) if valid_624066 != nil: - section.add "X-Amz-SignedHeaders", valid_624066 + section.add "X-Amz-Security-Token", valid_624066 + var valid_624067 = header.getOrDefault("X-Amz-Algorithm") + valid_624067 = validateParameter(valid_624067, JString, required = false, + default = nil) + if valid_624067 != nil: + section.add "X-Amz-Algorithm", valid_624067 + var valid_624068 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624068 = validateParameter(valid_624068, JString, required = false, + default = nil) + if valid_624068 != nil: + section.add "X-Amz-SignedHeaders", valid_624068 result.add "header", section ## parameters in `formData` object: ## EbsOptimized.Value: JString @@ -106523,105 +106550,105 @@ proc validate_PostModifyInstanceAttribute_624056(path: JsonNode; query: JsonNode ## : Describes a value for a resource attribute that is a Boolean value. ## The attribute value. The valid values are true or false. section = newJObject() - var valid_624067 = formData.getOrDefault("EbsOptimized.Value") - valid_624067 = validateParameter(valid_624067, JString, required = false, - default = nil) - if valid_624067 != nil: - section.add "EbsOptimized.Value", valid_624067 - var valid_624068 = formData.getOrDefault("UserData.Value") - valid_624068 = validateParameter(valid_624068, JString, required = false, - default = nil) - if valid_624068 != nil: - section.add "UserData.Value", valid_624068 - var valid_624069 = formData.getOrDefault("Attribute") + var valid_624069 = formData.getOrDefault("EbsOptimized.Value") valid_624069 = validateParameter(valid_624069, JString, required = false, - default = newJString("instanceType")) + default = nil) if valid_624069 != nil: - section.add "Attribute", valid_624069 - var valid_624070 = formData.getOrDefault("GroupId") - valid_624070 = validateParameter(valid_624070, JArray, required = false, + section.add "EbsOptimized.Value", valid_624069 + var valid_624070 = formData.getOrDefault("UserData.Value") + valid_624070 = validateParameter(valid_624070, JString, required = false, default = nil) if valid_624070 != nil: - section.add "GroupId", valid_624070 - var valid_624071 = formData.getOrDefault("Value") + section.add "UserData.Value", valid_624070 + var valid_624071 = formData.getOrDefault("Attribute") valid_624071 = validateParameter(valid_624071, JString, required = false, - default = nil) + default = newJString("instanceType")) if valid_624071 != nil: - section.add "Value", valid_624071 - var valid_624072 = formData.getOrDefault("BlockDeviceMapping") + section.add "Attribute", valid_624071 + var valid_624072 = formData.getOrDefault("GroupId") valid_624072 = validateParameter(valid_624072, JArray, required = false, default = nil) if valid_624072 != nil: - section.add "BlockDeviceMapping", valid_624072 - var valid_624073 = formData.getOrDefault("DisableApiTermination.Value") + section.add "GroupId", valid_624072 + var valid_624073 = formData.getOrDefault("Value") valid_624073 = validateParameter(valid_624073, JString, required = false, default = nil) if valid_624073 != nil: - section.add "DisableApiTermination.Value", valid_624073 - var valid_624074 = formData.getOrDefault("SourceDestCheck.Value") - valid_624074 = validateParameter(valid_624074, JString, required = false, + section.add "Value", valid_624073 + var valid_624074 = formData.getOrDefault("BlockDeviceMapping") + valid_624074 = validateParameter(valid_624074, JArray, required = false, default = nil) if valid_624074 != nil: - section.add "SourceDestCheck.Value", valid_624074 - var valid_624075 = formData.getOrDefault("DryRun") - valid_624075 = validateParameter(valid_624075, JBool, required = false, default = nil) + section.add "BlockDeviceMapping", valid_624074 + var valid_624075 = formData.getOrDefault("DisableApiTermination.Value") + valid_624075 = validateParameter(valid_624075, JString, required = false, + default = nil) if valid_624075 != nil: - section.add "DryRun", valid_624075 - assert formData != nil, - "formData argument is necessary due to required `InstanceId` field" - var valid_624076 = formData.getOrDefault("InstanceId") - valid_624076 = validateParameter(valid_624076, JString, required = true, + section.add "DisableApiTermination.Value", valid_624075 + var valid_624076 = formData.getOrDefault("SourceDestCheck.Value") + valid_624076 = validateParameter(valid_624076, JString, required = false, default = nil) if valid_624076 != nil: - section.add "InstanceId", valid_624076 - var valid_624077 = formData.getOrDefault("Kernel.Value") - valid_624077 = validateParameter(valid_624077, JString, required = false, - default = nil) + section.add "SourceDestCheck.Value", valid_624076 + var valid_624077 = formData.getOrDefault("DryRun") + valid_624077 = validateParameter(valid_624077, JBool, required = false, default = nil) if valid_624077 != nil: - section.add "Kernel.Value", valid_624077 - var valid_624078 = formData.getOrDefault("Ramdisk.Value") - valid_624078 = validateParameter(valid_624078, JString, required = false, + section.add "DryRun", valid_624077 + assert formData != nil, + "formData argument is necessary due to required `InstanceId` field" + var valid_624078 = formData.getOrDefault("InstanceId") + valid_624078 = validateParameter(valid_624078, JString, required = true, default = nil) if valid_624078 != nil: - section.add "Ramdisk.Value", valid_624078 - var valid_624079 = formData.getOrDefault("InstanceType.Value") + section.add "InstanceId", valid_624078 + var valid_624079 = formData.getOrDefault("Kernel.Value") valid_624079 = validateParameter(valid_624079, JString, required = false, default = nil) if valid_624079 != nil: - section.add "InstanceType.Value", valid_624079 - var valid_624080 = formData.getOrDefault("SriovNetSupport.Value") + section.add "Kernel.Value", valid_624079 + var valid_624080 = formData.getOrDefault("Ramdisk.Value") valid_624080 = validateParameter(valid_624080, JString, required = false, default = nil) if valid_624080 != nil: - section.add "SriovNetSupport.Value", valid_624080 - var valid_624081 = formData.getOrDefault("InstanceInitiatedShutdownBehavior.Value") + section.add "Ramdisk.Value", valid_624080 + var valid_624081 = formData.getOrDefault("InstanceType.Value") valid_624081 = validateParameter(valid_624081, JString, required = false, default = nil) if valid_624081 != nil: - section.add "InstanceInitiatedShutdownBehavior.Value", valid_624081 - var valid_624082 = formData.getOrDefault("EnaSupport.Value") + section.add "InstanceType.Value", valid_624081 + var valid_624082 = formData.getOrDefault("SriovNetSupport.Value") valid_624082 = validateParameter(valid_624082, JString, required = false, default = nil) if valid_624082 != nil: - section.add "EnaSupport.Value", valid_624082 + section.add "SriovNetSupport.Value", valid_624082 + var valid_624083 = formData.getOrDefault("InstanceInitiatedShutdownBehavior.Value") + valid_624083 = validateParameter(valid_624083, JString, required = false, + default = nil) + if valid_624083 != nil: + section.add "InstanceInitiatedShutdownBehavior.Value", valid_624083 + var valid_624084 = formData.getOrDefault("EnaSupport.Value") + valid_624084 = validateParameter(valid_624084, JString, required = false, + default = nil) + if valid_624084 != nil: + section.add "EnaSupport.Value", valid_624084 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624083: Call_PostModifyInstanceAttribute_624055; path: JsonNode; +proc call*(call_624085: Call_PostModifyInstanceAttribute_624057; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the specified attribute of the specified instance. You can specify only one attribute at a time.

    Note: Using this action to change the security groups associated with an elastic network interface (ENI) attached to an instance in a VPC can result in an error if the instance has more than one ENI. To change the security groups associated with an ENI attached to an instance that has multiple ENIs, we recommend that you use the ModifyNetworkInterfaceAttribute action.

    To modify some attributes, the instance must be stopped. For more information, see Modifying Attributes of a Stopped Instance in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_624083.validator(path, query, header, formData, body) - let scheme = call_624083.pickScheme + let valid = call_624085.validator(path, query, header, formData, body) + let scheme = call_624085.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624083.url(scheme.get, call_624083.host, call_624083.base, - call_624083.route, valid.getOrDefault("path"), + let url = call_624085.url(scheme.get, call_624085.host, call_624085.base, + call_624085.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624083, url, valid) + result = atozHook(call_624085, url, valid) -proc call*(call_624084: Call_PostModifyInstanceAttribute_624055; +proc call*(call_624086: Call_PostModifyInstanceAttribute_624057; InstanceId: string; EbsOptimizedValue: string = ""; UserDataValue: string = ""; Attribute: string = "instanceType"; GroupId: JsonNode = nil; Value: string = ""; @@ -106680,41 +106707,41 @@ proc call*(call_624084: Call_PostModifyInstanceAttribute_624055; ## EnaSupportValue: string ## : Describes a value for a resource attribute that is a Boolean value. ## The attribute value. The valid values are true or false. - var query_624085 = newJObject() - var formData_624086 = newJObject() - add(formData_624086, "EbsOptimized.Value", newJString(EbsOptimizedValue)) - add(formData_624086, "UserData.Value", newJString(UserDataValue)) - add(formData_624086, "Attribute", newJString(Attribute)) + var query_624087 = newJObject() + var formData_624088 = newJObject() + add(formData_624088, "EbsOptimized.Value", newJString(EbsOptimizedValue)) + add(formData_624088, "UserData.Value", newJString(UserDataValue)) + add(formData_624088, "Attribute", newJString(Attribute)) if GroupId != nil: - formData_624086.add "GroupId", GroupId - add(formData_624086, "Value", newJString(Value)) + formData_624088.add "GroupId", GroupId + add(formData_624088, "Value", newJString(Value)) if BlockDeviceMapping != nil: - formData_624086.add "BlockDeviceMapping", BlockDeviceMapping - add(formData_624086, "DisableApiTermination.Value", + formData_624088.add "BlockDeviceMapping", BlockDeviceMapping + add(formData_624088, "DisableApiTermination.Value", newJString(DisableApiTerminationValue)) - add(formData_624086, "SourceDestCheck.Value", newJString(SourceDestCheckValue)) - add(formData_624086, "DryRun", newJBool(DryRun)) - add(formData_624086, "InstanceId", newJString(InstanceId)) - add(formData_624086, "Kernel.Value", newJString(KernelValue)) - add(query_624085, "Action", newJString(Action)) - add(formData_624086, "Ramdisk.Value", newJString(RamdiskValue)) - add(formData_624086, "InstanceType.Value", newJString(InstanceTypeValue)) - add(formData_624086, "SriovNetSupport.Value", newJString(SriovNetSupportValue)) - add(query_624085, "Version", newJString(Version)) - add(formData_624086, "InstanceInitiatedShutdownBehavior.Value", + add(formData_624088, "SourceDestCheck.Value", newJString(SourceDestCheckValue)) + add(formData_624088, "DryRun", newJBool(DryRun)) + add(formData_624088, "InstanceId", newJString(InstanceId)) + add(formData_624088, "Kernel.Value", newJString(KernelValue)) + add(query_624087, "Action", newJString(Action)) + add(formData_624088, "Ramdisk.Value", newJString(RamdiskValue)) + add(formData_624088, "InstanceType.Value", newJString(InstanceTypeValue)) + add(formData_624088, "SriovNetSupport.Value", newJString(SriovNetSupportValue)) + add(query_624087, "Version", newJString(Version)) + add(formData_624088, "InstanceInitiatedShutdownBehavior.Value", newJString(InstanceInitiatedShutdownBehaviorValue)) - add(formData_624086, "EnaSupport.Value", newJString(EnaSupportValue)) - result = call_624084.call(nil, query_624085, nil, formData_624086, nil) + add(formData_624088, "EnaSupport.Value", newJString(EnaSupportValue)) + result = call_624086.call(nil, query_624087, nil, formData_624088, nil) -var postModifyInstanceAttribute* = Call_PostModifyInstanceAttribute_624055( +var postModifyInstanceAttribute* = Call_PostModifyInstanceAttribute_624057( name: "postModifyInstanceAttribute", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyInstanceAttribute", - validator: validate_PostModifyInstanceAttribute_624056, base: "/", - url: url_PostModifyInstanceAttribute_624057, + validator: validate_PostModifyInstanceAttribute_624058, base: "/", + url: url_PostModifyInstanceAttribute_624059, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyInstanceAttribute_624024 = ref object of OpenApiRestCall_610658 -proc url_GetModifyInstanceAttribute_624026(protocol: Scheme; host: string; + Call_GetModifyInstanceAttribute_624026 = ref object of OpenApiRestCall_610658 +proc url_GetModifyInstanceAttribute_624028(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -106724,7 +106751,7 @@ proc url_GetModifyInstanceAttribute_624026(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetModifyInstanceAttribute_624025(path: JsonNode; query: JsonNode; +proc validate_GetModifyInstanceAttribute_624027(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the specified attribute of the specified instance. You can specify only one attribute at a time.

    Note: Using this action to change the security groups associated with an elastic network interface (ENI) attached to an instance in a VPC can result in an error if the instance has more than one ENI. To change the security groups associated with an ENI attached to an instance that has multiple ENIs, we recommend that you use the ModifyNetworkInterfaceAttribute action.

    To modify some attributes, the instance must be stopped. For more information, see Modifying Attributes of a Stopped Instance in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -106779,97 +106806,97 @@ proc validate_GetModifyInstanceAttribute_624025(path: JsonNode; query: JsonNode; ## Attribute: JString ## : The name of the attribute. section = newJObject() - var valid_624027 = query.getOrDefault("InstanceType.Value") - valid_624027 = validateParameter(valid_624027, JString, required = false, - default = nil) - if valid_624027 != nil: - section.add "InstanceType.Value", valid_624027 - var valid_624028 = query.getOrDefault("DryRun") - valid_624028 = validateParameter(valid_624028, JBool, required = false, default = nil) - if valid_624028 != nil: - section.add "DryRun", valid_624028 - var valid_624029 = query.getOrDefault("SourceDestCheck.Value") + var valid_624029 = query.getOrDefault("InstanceType.Value") valid_624029 = validateParameter(valid_624029, JString, required = false, default = nil) if valid_624029 != nil: - section.add "SourceDestCheck.Value", valid_624029 - var valid_624030 = query.getOrDefault("UserData.Value") - valid_624030 = validateParameter(valid_624030, JString, required = false, - default = nil) + section.add "InstanceType.Value", valid_624029 + var valid_624030 = query.getOrDefault("DryRun") + valid_624030 = validateParameter(valid_624030, JBool, required = false, default = nil) if valid_624030 != nil: - section.add "UserData.Value", valid_624030 - var valid_624031 = query.getOrDefault("EbsOptimized.Value") + section.add "DryRun", valid_624030 + var valid_624031 = query.getOrDefault("SourceDestCheck.Value") valid_624031 = validateParameter(valid_624031, JString, required = false, default = nil) if valid_624031 != nil: - section.add "EbsOptimized.Value", valid_624031 - var valid_624032 = query.getOrDefault("Value") + section.add "SourceDestCheck.Value", valid_624031 + var valid_624032 = query.getOrDefault("UserData.Value") valid_624032 = validateParameter(valid_624032, JString, required = false, default = nil) if valid_624032 != nil: - section.add "Value", valid_624032 - assert query != nil, - "query argument is necessary due to required `InstanceId` field" - var valid_624033 = query.getOrDefault("InstanceId") - valid_624033 = validateParameter(valid_624033, JString, required = true, + section.add "UserData.Value", valid_624032 + var valid_624033 = query.getOrDefault("EbsOptimized.Value") + valid_624033 = validateParameter(valid_624033, JString, required = false, default = nil) if valid_624033 != nil: - section.add "InstanceId", valid_624033 - var valid_624034 = query.getOrDefault("SriovNetSupport.Value") + section.add "EbsOptimized.Value", valid_624033 + var valid_624034 = query.getOrDefault("Value") valid_624034 = validateParameter(valid_624034, JString, required = false, default = nil) if valid_624034 != nil: - section.add "SriovNetSupport.Value", valid_624034 - var valid_624035 = query.getOrDefault("InstanceInitiatedShutdownBehavior.Value") - valid_624035 = validateParameter(valid_624035, JString, required = false, + section.add "Value", valid_624034 + assert query != nil, + "query argument is necessary due to required `InstanceId` field" + var valid_624035 = query.getOrDefault("InstanceId") + valid_624035 = validateParameter(valid_624035, JString, required = true, default = nil) if valid_624035 != nil: - section.add "InstanceInitiatedShutdownBehavior.Value", valid_624035 - var valid_624036 = query.getOrDefault("EnaSupport.Value") + section.add "InstanceId", valid_624035 + var valid_624036 = query.getOrDefault("SriovNetSupport.Value") valid_624036 = validateParameter(valid_624036, JString, required = false, default = nil) if valid_624036 != nil: - section.add "EnaSupport.Value", valid_624036 - var valid_624037 = query.getOrDefault("Ramdisk.Value") + section.add "SriovNetSupport.Value", valid_624036 + var valid_624037 = query.getOrDefault("InstanceInitiatedShutdownBehavior.Value") valid_624037 = validateParameter(valid_624037, JString, required = false, default = nil) if valid_624037 != nil: - section.add "Ramdisk.Value", valid_624037 - var valid_624038 = query.getOrDefault("Action") - valid_624038 = validateParameter(valid_624038, JString, required = true, default = newJString( - "ModifyInstanceAttribute")) + section.add "InstanceInitiatedShutdownBehavior.Value", valid_624037 + var valid_624038 = query.getOrDefault("EnaSupport.Value") + valid_624038 = validateParameter(valid_624038, JString, required = false, + default = nil) if valid_624038 != nil: - section.add "Action", valid_624038 - var valid_624039 = query.getOrDefault("GroupId") - valid_624039 = validateParameter(valid_624039, JArray, required = false, + section.add "EnaSupport.Value", valid_624038 + var valid_624039 = query.getOrDefault("Ramdisk.Value") + valid_624039 = validateParameter(valid_624039, JString, required = false, default = nil) if valid_624039 != nil: - section.add "GroupId", valid_624039 - var valid_624040 = query.getOrDefault("DisableApiTermination.Value") - valid_624040 = validateParameter(valid_624040, JString, required = false, - default = nil) + section.add "Ramdisk.Value", valid_624039 + var valid_624040 = query.getOrDefault("Action") + valid_624040 = validateParameter(valid_624040, JString, required = true, default = newJString( + "ModifyInstanceAttribute")) if valid_624040 != nil: - section.add "DisableApiTermination.Value", valid_624040 - var valid_624041 = query.getOrDefault("Kernel.Value") - valid_624041 = validateParameter(valid_624041, JString, required = false, + section.add "Action", valid_624040 + var valid_624041 = query.getOrDefault("GroupId") + valid_624041 = validateParameter(valid_624041, JArray, required = false, default = nil) if valid_624041 != nil: - section.add "Kernel.Value", valid_624041 - var valid_624042 = query.getOrDefault("BlockDeviceMapping") - valid_624042 = validateParameter(valid_624042, JArray, required = false, + section.add "GroupId", valid_624041 + var valid_624042 = query.getOrDefault("DisableApiTermination.Value") + valid_624042 = validateParameter(valid_624042, JString, required = false, default = nil) if valid_624042 != nil: - section.add "BlockDeviceMapping", valid_624042 - var valid_624043 = query.getOrDefault("Version") - valid_624043 = validateParameter(valid_624043, JString, required = true, - default = newJString("2016-11-15")) + section.add "DisableApiTermination.Value", valid_624042 + var valid_624043 = query.getOrDefault("Kernel.Value") + valid_624043 = validateParameter(valid_624043, JString, required = false, + default = nil) if valid_624043 != nil: - section.add "Version", valid_624043 - var valid_624044 = query.getOrDefault("Attribute") - valid_624044 = validateParameter(valid_624044, JString, required = false, - default = newJString("instanceType")) + section.add "Kernel.Value", valid_624043 + var valid_624044 = query.getOrDefault("BlockDeviceMapping") + valid_624044 = validateParameter(valid_624044, JArray, required = false, + default = nil) if valid_624044 != nil: - section.add "Attribute", valid_624044 + section.add "BlockDeviceMapping", valid_624044 + var valid_624045 = query.getOrDefault("Version") + valid_624045 = validateParameter(valid_624045, JString, required = true, + default = newJString("2016-11-15")) + if valid_624045 != nil: + section.add "Version", valid_624045 + var valid_624046 = query.getOrDefault("Attribute") + valid_624046 = validateParameter(valid_624046, JString, required = false, + default = newJString("instanceType")) + if valid_624046 != nil: + section.add "Attribute", valid_624046 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -106880,61 +106907,61 @@ proc validate_GetModifyInstanceAttribute_624025(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624045 = header.getOrDefault("X-Amz-Signature") - valid_624045 = validateParameter(valid_624045, JString, required = false, - default = nil) - if valid_624045 != nil: - section.add "X-Amz-Signature", valid_624045 - var valid_624046 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624046 = validateParameter(valid_624046, JString, required = false, - default = nil) - if valid_624046 != nil: - section.add "X-Amz-Content-Sha256", valid_624046 - var valid_624047 = header.getOrDefault("X-Amz-Date") + var valid_624047 = header.getOrDefault("X-Amz-Signature") valid_624047 = validateParameter(valid_624047, JString, required = false, default = nil) if valid_624047 != nil: - section.add "X-Amz-Date", valid_624047 - var valid_624048 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624047 + var valid_624048 = header.getOrDefault("X-Amz-Content-Sha256") valid_624048 = validateParameter(valid_624048, JString, required = false, default = nil) if valid_624048 != nil: - section.add "X-Amz-Credential", valid_624048 - var valid_624049 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624048 + var valid_624049 = header.getOrDefault("X-Amz-Date") valid_624049 = validateParameter(valid_624049, JString, required = false, default = nil) if valid_624049 != nil: - section.add "X-Amz-Security-Token", valid_624049 - var valid_624050 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624049 + var valid_624050 = header.getOrDefault("X-Amz-Credential") valid_624050 = validateParameter(valid_624050, JString, required = false, default = nil) if valid_624050 != nil: - section.add "X-Amz-Algorithm", valid_624050 - var valid_624051 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624050 + var valid_624051 = header.getOrDefault("X-Amz-Security-Token") valid_624051 = validateParameter(valid_624051, JString, required = false, default = nil) if valid_624051 != nil: - section.add "X-Amz-SignedHeaders", valid_624051 + section.add "X-Amz-Security-Token", valid_624051 + var valid_624052 = header.getOrDefault("X-Amz-Algorithm") + valid_624052 = validateParameter(valid_624052, JString, required = false, + default = nil) + if valid_624052 != nil: + section.add "X-Amz-Algorithm", valid_624052 + var valid_624053 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624053 = validateParameter(valid_624053, JString, required = false, + default = nil) + if valid_624053 != nil: + section.add "X-Amz-SignedHeaders", valid_624053 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624052: Call_GetModifyInstanceAttribute_624024; path: JsonNode; +proc call*(call_624054: Call_GetModifyInstanceAttribute_624026; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the specified attribute of the specified instance. You can specify only one attribute at a time.

    Note: Using this action to change the security groups associated with an elastic network interface (ENI) attached to an instance in a VPC can result in an error if the instance has more than one ENI. To change the security groups associated with an ENI attached to an instance that has multiple ENIs, we recommend that you use the ModifyNetworkInterfaceAttribute action.

    To modify some attributes, the instance must be stopped. For more information, see Modifying Attributes of a Stopped Instance in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_624052.validator(path, query, header, formData, body) - let scheme = call_624052.pickScheme + let valid = call_624054.validator(path, query, header, formData, body) + let scheme = call_624054.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624052.url(scheme.get, call_624052.host, call_624052.base, - call_624052.route, valid.getOrDefault("path"), + let url = call_624054.url(scheme.get, call_624054.host, call_624054.base, + call_624054.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624052, url, valid) + result = atozHook(call_624054, url, valid) -proc call*(call_624053: Call_GetModifyInstanceAttribute_624024; InstanceId: string; +proc call*(call_624055: Call_GetModifyInstanceAttribute_624026; InstanceId: string; InstanceTypeValue: string = ""; DryRun: bool = false; SourceDestCheckValue: string = ""; UserDataValue: string = ""; EbsOptimizedValue: string = ""; Value: string = ""; @@ -106992,40 +107019,40 @@ proc call*(call_624053: Call_GetModifyInstanceAttribute_624024; InstanceId: stri ## Version: string (required) ## Attribute: string ## : The name of the attribute. - var query_624054 = newJObject() - add(query_624054, "InstanceType.Value", newJString(InstanceTypeValue)) - add(query_624054, "DryRun", newJBool(DryRun)) - add(query_624054, "SourceDestCheck.Value", newJString(SourceDestCheckValue)) - add(query_624054, "UserData.Value", newJString(UserDataValue)) - add(query_624054, "EbsOptimized.Value", newJString(EbsOptimizedValue)) - add(query_624054, "Value", newJString(Value)) - add(query_624054, "InstanceId", newJString(InstanceId)) - add(query_624054, "SriovNetSupport.Value", newJString(SriovNetSupportValue)) - add(query_624054, "InstanceInitiatedShutdownBehavior.Value", + var query_624056 = newJObject() + add(query_624056, "InstanceType.Value", newJString(InstanceTypeValue)) + add(query_624056, "DryRun", newJBool(DryRun)) + add(query_624056, "SourceDestCheck.Value", newJString(SourceDestCheckValue)) + add(query_624056, "UserData.Value", newJString(UserDataValue)) + add(query_624056, "EbsOptimized.Value", newJString(EbsOptimizedValue)) + add(query_624056, "Value", newJString(Value)) + add(query_624056, "InstanceId", newJString(InstanceId)) + add(query_624056, "SriovNetSupport.Value", newJString(SriovNetSupportValue)) + add(query_624056, "InstanceInitiatedShutdownBehavior.Value", newJString(InstanceInitiatedShutdownBehaviorValue)) - add(query_624054, "EnaSupport.Value", newJString(EnaSupportValue)) - add(query_624054, "Ramdisk.Value", newJString(RamdiskValue)) - add(query_624054, "Action", newJString(Action)) + add(query_624056, "EnaSupport.Value", newJString(EnaSupportValue)) + add(query_624056, "Ramdisk.Value", newJString(RamdiskValue)) + add(query_624056, "Action", newJString(Action)) if GroupId != nil: - query_624054.add "GroupId", GroupId - add(query_624054, "DisableApiTermination.Value", + query_624056.add "GroupId", GroupId + add(query_624056, "DisableApiTermination.Value", newJString(DisableApiTerminationValue)) - add(query_624054, "Kernel.Value", newJString(KernelValue)) + add(query_624056, "Kernel.Value", newJString(KernelValue)) if BlockDeviceMapping != nil: - query_624054.add "BlockDeviceMapping", BlockDeviceMapping - add(query_624054, "Version", newJString(Version)) - add(query_624054, "Attribute", newJString(Attribute)) - result = call_624053.call(nil, query_624054, nil, nil, nil) + query_624056.add "BlockDeviceMapping", BlockDeviceMapping + add(query_624056, "Version", newJString(Version)) + add(query_624056, "Attribute", newJString(Attribute)) + result = call_624055.call(nil, query_624056, nil, nil, nil) -var getModifyInstanceAttribute* = Call_GetModifyInstanceAttribute_624024( +var getModifyInstanceAttribute* = Call_GetModifyInstanceAttribute_624026( name: "getModifyInstanceAttribute", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifyInstanceAttribute", - validator: validate_GetModifyInstanceAttribute_624025, base: "/", - url: url_GetModifyInstanceAttribute_624026, + validator: validate_GetModifyInstanceAttribute_624027, base: "/", + url: url_GetModifyInstanceAttribute_624028, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyInstanceCapacityReservationAttributes_624106 = ref object of OpenApiRestCall_610658 -proc url_PostModifyInstanceCapacityReservationAttributes_624108(protocol: Scheme; + Call_PostModifyInstanceCapacityReservationAttributes_624108 = ref object of OpenApiRestCall_610658 +proc url_PostModifyInstanceCapacityReservationAttributes_624110(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -107035,7 +107062,7 @@ proc url_PostModifyInstanceCapacityReservationAttributes_624108(protocol: Scheme else: result.path = base & route -proc validate_PostModifyInstanceCapacityReservationAttributes_624107( +proc validate_PostModifyInstanceCapacityReservationAttributes_624109( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modifies the Capacity Reservation settings for a stopped instance. Use this action to configure an instance to target a specific Capacity Reservation, run in any open Capacity Reservation with matching attributes, or run On-Demand Instance capacity. @@ -107048,16 +107075,16 @@ proc validate_PostModifyInstanceCapacityReservationAttributes_624107( ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_624109 = query.getOrDefault("Action") - valid_624109 = validateParameter(valid_624109, JString, required = true, default = newJString( + var valid_624111 = query.getOrDefault("Action") + valid_624111 = validateParameter(valid_624111, JString, required = true, default = newJString( "ModifyInstanceCapacityReservationAttributes")) - if valid_624109 != nil: - section.add "Action", valid_624109 - var valid_624110 = query.getOrDefault("Version") - valid_624110 = validateParameter(valid_624110, JString, required = true, + if valid_624111 != nil: + section.add "Action", valid_624111 + var valid_624112 = query.getOrDefault("Version") + valid_624112 = validateParameter(valid_624112, JString, required = true, default = newJString("2016-11-15")) - if valid_624110 != nil: - section.add "Version", valid_624110 + if valid_624112 != nil: + section.add "Version", valid_624112 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -107068,41 +107095,41 @@ proc validate_PostModifyInstanceCapacityReservationAttributes_624107( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624111 = header.getOrDefault("X-Amz-Signature") - valid_624111 = validateParameter(valid_624111, JString, required = false, - default = nil) - if valid_624111 != nil: - section.add "X-Amz-Signature", valid_624111 - var valid_624112 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624112 = validateParameter(valid_624112, JString, required = false, - default = nil) - if valid_624112 != nil: - section.add "X-Amz-Content-Sha256", valid_624112 - var valid_624113 = header.getOrDefault("X-Amz-Date") + var valid_624113 = header.getOrDefault("X-Amz-Signature") valid_624113 = validateParameter(valid_624113, JString, required = false, default = nil) if valid_624113 != nil: - section.add "X-Amz-Date", valid_624113 - var valid_624114 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624113 + var valid_624114 = header.getOrDefault("X-Amz-Content-Sha256") valid_624114 = validateParameter(valid_624114, JString, required = false, default = nil) if valid_624114 != nil: - section.add "X-Amz-Credential", valid_624114 - var valid_624115 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624114 + var valid_624115 = header.getOrDefault("X-Amz-Date") valid_624115 = validateParameter(valid_624115, JString, required = false, default = nil) if valid_624115 != nil: - section.add "X-Amz-Security-Token", valid_624115 - var valid_624116 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624115 + var valid_624116 = header.getOrDefault("X-Amz-Credential") valid_624116 = validateParameter(valid_624116, JString, required = false, default = nil) if valid_624116 != nil: - section.add "X-Amz-Algorithm", valid_624116 - var valid_624117 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624116 + var valid_624117 = header.getOrDefault("X-Amz-Security-Token") valid_624117 = validateParameter(valid_624117, JString, required = false, default = nil) if valid_624117 != nil: - section.add "X-Amz-SignedHeaders", valid_624117 + section.add "X-Amz-Security-Token", valid_624117 + var valid_624118 = header.getOrDefault("X-Amz-Algorithm") + valid_624118 = validateParameter(valid_624118, JString, required = false, + default = nil) + if valid_624118 != nil: + section.add "X-Amz-Algorithm", valid_624118 + var valid_624119 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624119 = validateParameter(valid_624119, JString, required = false, + default = nil) + if valid_624119 != nil: + section.add "X-Amz-SignedHeaders", valid_624119 result.add "header", section ## parameters in `formData` object: ## CapacityReservationSpecification.CapacityReservationPreference: JString @@ -107116,48 +107143,48 @@ proc validate_PostModifyInstanceCapacityReservationAttributes_624107( ## InstanceId: JString (required) ## : The ID of the instance to be modified. section = newJObject() - var valid_624118 = formData.getOrDefault("CapacityReservationSpecification.CapacityReservationPreference") - valid_624118 = validateParameter(valid_624118, JString, required = false, + var valid_624120 = formData.getOrDefault("CapacityReservationSpecification.CapacityReservationPreference") + valid_624120 = validateParameter(valid_624120, JString, required = false, default = nil) - if valid_624118 != nil: + if valid_624120 != nil: section.add "CapacityReservationSpecification.CapacityReservationPreference", - valid_624118 - var valid_624119 = formData.getOrDefault("CapacityReservationSpecification.CapacityReservationTarget") - valid_624119 = validateParameter(valid_624119, JString, required = false, + valid_624120 + var valid_624121 = formData.getOrDefault("CapacityReservationSpecification.CapacityReservationTarget") + valid_624121 = validateParameter(valid_624121, JString, required = false, default = nil) - if valid_624119 != nil: + if valid_624121 != nil: section.add "CapacityReservationSpecification.CapacityReservationTarget", - valid_624119 - var valid_624120 = formData.getOrDefault("DryRun") - valid_624120 = validateParameter(valid_624120, JBool, required = false, default = nil) - if valid_624120 != nil: - section.add "DryRun", valid_624120 + valid_624121 + var valid_624122 = formData.getOrDefault("DryRun") + valid_624122 = validateParameter(valid_624122, JBool, required = false, default = nil) + if valid_624122 != nil: + section.add "DryRun", valid_624122 assert formData != nil, "formData argument is necessary due to required `InstanceId` field" - var valid_624121 = formData.getOrDefault("InstanceId") - valid_624121 = validateParameter(valid_624121, JString, required = true, + var valid_624123 = formData.getOrDefault("InstanceId") + valid_624123 = validateParameter(valid_624123, JString, required = true, default = nil) - if valid_624121 != nil: - section.add "InstanceId", valid_624121 + if valid_624123 != nil: + section.add "InstanceId", valid_624123 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624122: Call_PostModifyInstanceCapacityReservationAttributes_624106; +proc call*(call_624124: Call_PostModifyInstanceCapacityReservationAttributes_624108; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modifies the Capacity Reservation settings for a stopped instance. Use this action to configure an instance to target a specific Capacity Reservation, run in any open Capacity Reservation with matching attributes, or run On-Demand Instance capacity. ## - let valid = call_624122.validator(path, query, header, formData, body) - let scheme = call_624122.pickScheme + let valid = call_624124.validator(path, query, header, formData, body) + let scheme = call_624124.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624122.url(scheme.get, call_624122.host, call_624122.base, - call_624122.route, valid.getOrDefault("path"), + let url = call_624124.url(scheme.get, call_624124.host, call_624124.base, + call_624124.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624122, url, valid) + result = atozHook(call_624124, url, valid) -proc call*(call_624123: Call_PostModifyInstanceCapacityReservationAttributes_624106; +proc call*(call_624125: Call_PostModifyInstanceCapacityReservationAttributes_624108; InstanceId: string; CapacityReservationSpecificationCapacityReservationPreference: string = ""; CapacityReservationSpecificationCapacityReservationTarget: string = ""; DryRun: bool = false; @@ -107177,30 +107204,30 @@ proc call*(call_624123: Call_PostModifyInstanceCapacityReservationAttributes_624 ## : The ID of the instance to be modified. ## Action: string (required) ## Version: string (required) - var query_624124 = newJObject() - var formData_624125 = newJObject() - add(formData_624125, + var query_624126 = newJObject() + var formData_624127 = newJObject() + add(formData_624127, "CapacityReservationSpecification.CapacityReservationPreference", newJString(CapacityReservationSpecificationCapacityReservationPreference)) - add(formData_624125, + add(formData_624127, "CapacityReservationSpecification.CapacityReservationTarget", newJString(CapacityReservationSpecificationCapacityReservationTarget)) - add(formData_624125, "DryRun", newJBool(DryRun)) - add(formData_624125, "InstanceId", newJString(InstanceId)) - add(query_624124, "Action", newJString(Action)) - add(query_624124, "Version", newJString(Version)) - result = call_624123.call(nil, query_624124, nil, formData_624125, nil) + add(formData_624127, "DryRun", newJBool(DryRun)) + add(formData_624127, "InstanceId", newJString(InstanceId)) + add(query_624126, "Action", newJString(Action)) + add(query_624126, "Version", newJString(Version)) + result = call_624125.call(nil, query_624126, nil, formData_624127, nil) -var postModifyInstanceCapacityReservationAttributes* = Call_PostModifyInstanceCapacityReservationAttributes_624106( +var postModifyInstanceCapacityReservationAttributes* = Call_PostModifyInstanceCapacityReservationAttributes_624108( name: "postModifyInstanceCapacityReservationAttributes", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyInstanceCapacityReservationAttributes", - validator: validate_PostModifyInstanceCapacityReservationAttributes_624107, - base: "/", url: url_PostModifyInstanceCapacityReservationAttributes_624108, + validator: validate_PostModifyInstanceCapacityReservationAttributes_624109, + base: "/", url: url_PostModifyInstanceCapacityReservationAttributes_624110, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyInstanceCapacityReservationAttributes_624087 = ref object of OpenApiRestCall_610658 -proc url_GetModifyInstanceCapacityReservationAttributes_624089(protocol: Scheme; + Call_GetModifyInstanceCapacityReservationAttributes_624089 = ref object of OpenApiRestCall_610658 +proc url_GetModifyInstanceCapacityReservationAttributes_624091(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -107210,7 +107237,7 @@ proc url_GetModifyInstanceCapacityReservationAttributes_624089(protocol: Scheme; else: result.path = base & route -proc validate_GetModifyInstanceCapacityReservationAttributes_624088( +proc validate_GetModifyInstanceCapacityReservationAttributes_624090( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modifies the Capacity Reservation settings for a stopped instance. Use this action to configure an instance to target a specific Capacity Reservation, run in any open Capacity Reservation with matching attributes, or run On-Demand Instance capacity. @@ -107233,39 +107260,39 @@ proc validate_GetModifyInstanceCapacityReservationAttributes_624088( ##

    Indicates the instance's Capacity Reservation preferences. Possible preferences include:

    ## Version: JString (required) section = newJObject() - var valid_624090 = query.getOrDefault("DryRun") - valid_624090 = validateParameter(valid_624090, JBool, required = false, default = nil) - if valid_624090 != nil: - section.add "DryRun", valid_624090 + var valid_624092 = query.getOrDefault("DryRun") + valid_624092 = validateParameter(valid_624092, JBool, required = false, default = nil) + if valid_624092 != nil: + section.add "DryRun", valid_624092 assert query != nil, "query argument is necessary due to required `InstanceId` field" - var valid_624091 = query.getOrDefault("InstanceId") - valid_624091 = validateParameter(valid_624091, JString, required = true, + var valid_624093 = query.getOrDefault("InstanceId") + valid_624093 = validateParameter(valid_624093, JString, required = true, default = nil) - if valid_624091 != nil: - section.add "InstanceId", valid_624091 - var valid_624092 = query.getOrDefault("Action") - valid_624092 = validateParameter(valid_624092, JString, required = true, default = newJString( + if valid_624093 != nil: + section.add "InstanceId", valid_624093 + var valid_624094 = query.getOrDefault("Action") + valid_624094 = validateParameter(valid_624094, JString, required = true, default = newJString( "ModifyInstanceCapacityReservationAttributes")) - if valid_624092 != nil: - section.add "Action", valid_624092 - var valid_624093 = query.getOrDefault("CapacityReservationSpecification.CapacityReservationTarget") - valid_624093 = validateParameter(valid_624093, JString, required = false, + if valid_624094 != nil: + section.add "Action", valid_624094 + var valid_624095 = query.getOrDefault("CapacityReservationSpecification.CapacityReservationTarget") + valid_624095 = validateParameter(valid_624095, JString, required = false, default = nil) - if valid_624093 != nil: + if valid_624095 != nil: section.add "CapacityReservationSpecification.CapacityReservationTarget", - valid_624093 - var valid_624094 = query.getOrDefault("CapacityReservationSpecification.CapacityReservationPreference") - valid_624094 = validateParameter(valid_624094, JString, required = false, + valid_624095 + var valid_624096 = query.getOrDefault("CapacityReservationSpecification.CapacityReservationPreference") + valid_624096 = validateParameter(valid_624096, JString, required = false, default = nil) - if valid_624094 != nil: + if valid_624096 != nil: section.add "CapacityReservationSpecification.CapacityReservationPreference", - valid_624094 - var valid_624095 = query.getOrDefault("Version") - valid_624095 = validateParameter(valid_624095, JString, required = true, + valid_624096 + var valid_624097 = query.getOrDefault("Version") + valid_624097 = validateParameter(valid_624097, JString, required = true, default = newJString("2016-11-15")) - if valid_624095 != nil: - section.add "Version", valid_624095 + if valid_624097 != nil: + section.add "Version", valid_624097 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -107276,62 +107303,62 @@ proc validate_GetModifyInstanceCapacityReservationAttributes_624088( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624096 = header.getOrDefault("X-Amz-Signature") - valid_624096 = validateParameter(valid_624096, JString, required = false, - default = nil) - if valid_624096 != nil: - section.add "X-Amz-Signature", valid_624096 - var valid_624097 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624097 = validateParameter(valid_624097, JString, required = false, - default = nil) - if valid_624097 != nil: - section.add "X-Amz-Content-Sha256", valid_624097 - var valid_624098 = header.getOrDefault("X-Amz-Date") + var valid_624098 = header.getOrDefault("X-Amz-Signature") valid_624098 = validateParameter(valid_624098, JString, required = false, default = nil) if valid_624098 != nil: - section.add "X-Amz-Date", valid_624098 - var valid_624099 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624098 + var valid_624099 = header.getOrDefault("X-Amz-Content-Sha256") valid_624099 = validateParameter(valid_624099, JString, required = false, default = nil) if valid_624099 != nil: - section.add "X-Amz-Credential", valid_624099 - var valid_624100 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624099 + var valid_624100 = header.getOrDefault("X-Amz-Date") valid_624100 = validateParameter(valid_624100, JString, required = false, default = nil) if valid_624100 != nil: - section.add "X-Amz-Security-Token", valid_624100 - var valid_624101 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624100 + var valid_624101 = header.getOrDefault("X-Amz-Credential") valid_624101 = validateParameter(valid_624101, JString, required = false, default = nil) if valid_624101 != nil: - section.add "X-Amz-Algorithm", valid_624101 - var valid_624102 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624101 + var valid_624102 = header.getOrDefault("X-Amz-Security-Token") valid_624102 = validateParameter(valid_624102, JString, required = false, default = nil) if valid_624102 != nil: - section.add "X-Amz-SignedHeaders", valid_624102 + section.add "X-Amz-Security-Token", valid_624102 + var valid_624103 = header.getOrDefault("X-Amz-Algorithm") + valid_624103 = validateParameter(valid_624103, JString, required = false, + default = nil) + if valid_624103 != nil: + section.add "X-Amz-Algorithm", valid_624103 + var valid_624104 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624104 = validateParameter(valid_624104, JString, required = false, + default = nil) + if valid_624104 != nil: + section.add "X-Amz-SignedHeaders", valid_624104 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624103: Call_GetModifyInstanceCapacityReservationAttributes_624087; +proc call*(call_624105: Call_GetModifyInstanceCapacityReservationAttributes_624089; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modifies the Capacity Reservation settings for a stopped instance. Use this action to configure an instance to target a specific Capacity Reservation, run in any open Capacity Reservation with matching attributes, or run On-Demand Instance capacity. ## - let valid = call_624103.validator(path, query, header, formData, body) - let scheme = call_624103.pickScheme + let valid = call_624105.validator(path, query, header, formData, body) + let scheme = call_624105.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624103.url(scheme.get, call_624103.host, call_624103.base, - call_624103.route, valid.getOrDefault("path"), + let url = call_624105.url(scheme.get, call_624105.host, call_624105.base, + call_624105.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624103, url, valid) + result = atozHook(call_624105, url, valid) -proc call*(call_624104: Call_GetModifyInstanceCapacityReservationAttributes_624087; +proc call*(call_624106: Call_GetModifyInstanceCapacityReservationAttributes_624089; InstanceId: string; DryRun: bool = false; Action: string = "ModifyInstanceCapacityReservationAttributes"; CapacityReservationSpecificationCapacityReservationTarget: string = ""; @@ -107351,28 +107378,28 @@ proc call*(call_624104: Call_GetModifyInstanceCapacityReservationAttributes_6240 ## :

    Describes an instance's Capacity Reservation targeting option. You can specify only one parameter at a time. If you specify CapacityReservationPreference and CapacityReservationTarget, the request fails.

    Use the CapacityReservationPreference parameter to configure the instance to run as an On-Demand Instance or to run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone). Use the CapacityReservationTarget parameter to explicitly target a specific Capacity Reservation.

    ##

    Indicates the instance's Capacity Reservation preferences. Possible preferences include:

    ## Version: string (required) - var query_624105 = newJObject() - add(query_624105, "DryRun", newJBool(DryRun)) - add(query_624105, "InstanceId", newJString(InstanceId)) - add(query_624105, "Action", newJString(Action)) - add(query_624105, "CapacityReservationSpecification.CapacityReservationTarget", + var query_624107 = newJObject() + add(query_624107, "DryRun", newJBool(DryRun)) + add(query_624107, "InstanceId", newJString(InstanceId)) + add(query_624107, "Action", newJString(Action)) + add(query_624107, "CapacityReservationSpecification.CapacityReservationTarget", newJString(CapacityReservationSpecificationCapacityReservationTarget)) - add(query_624105, + add(query_624107, "CapacityReservationSpecification.CapacityReservationPreference", newJString(CapacityReservationSpecificationCapacityReservationPreference)) - add(query_624105, "Version", newJString(Version)) - result = call_624104.call(nil, query_624105, nil, nil, nil) + add(query_624107, "Version", newJString(Version)) + result = call_624106.call(nil, query_624107, nil, nil, nil) -var getModifyInstanceCapacityReservationAttributes* = Call_GetModifyInstanceCapacityReservationAttributes_624087( +var getModifyInstanceCapacityReservationAttributes* = Call_GetModifyInstanceCapacityReservationAttributes_624089( name: "getModifyInstanceCapacityReservationAttributes", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifyInstanceCapacityReservationAttributes", - validator: validate_GetModifyInstanceCapacityReservationAttributes_624088, - base: "/", url: url_GetModifyInstanceCapacityReservationAttributes_624089, + validator: validate_GetModifyInstanceCapacityReservationAttributes_624090, + base: "/", url: url_GetModifyInstanceCapacityReservationAttributes_624091, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyInstanceCreditSpecification_624144 = ref object of OpenApiRestCall_610658 -proc url_PostModifyInstanceCreditSpecification_624146(protocol: Scheme; + Call_PostModifyInstanceCreditSpecification_624146 = ref object of OpenApiRestCall_610658 +proc url_PostModifyInstanceCreditSpecification_624148(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -107382,7 +107409,7 @@ proc url_PostModifyInstanceCreditSpecification_624146(protocol: Scheme; else: result.path = base & route -proc validate_PostModifyInstanceCreditSpecification_624145(path: JsonNode; +proc validate_PostModifyInstanceCreditSpecification_624147(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the credit option for CPU usage on a running or stopped burstable performance instance. The credit options are standard and unlimited.

    For more information, see Burstable Performance Instances in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -107394,16 +107421,16 @@ proc validate_PostModifyInstanceCreditSpecification_624145(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_624147 = query.getOrDefault("Action") - valid_624147 = validateParameter(valid_624147, JString, required = true, default = newJString( + var valid_624149 = query.getOrDefault("Action") + valid_624149 = validateParameter(valid_624149, JString, required = true, default = newJString( "ModifyInstanceCreditSpecification")) - if valid_624147 != nil: - section.add "Action", valid_624147 - var valid_624148 = query.getOrDefault("Version") - valid_624148 = validateParameter(valid_624148, JString, required = true, + if valid_624149 != nil: + section.add "Action", valid_624149 + var valid_624150 = query.getOrDefault("Version") + valid_624150 = validateParameter(valid_624150, JString, required = true, default = newJString("2016-11-15")) - if valid_624148 != nil: - section.add "Version", valid_624148 + if valid_624150 != nil: + section.add "Version", valid_624150 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -107414,41 +107441,41 @@ proc validate_PostModifyInstanceCreditSpecification_624145(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624149 = header.getOrDefault("X-Amz-Signature") - valid_624149 = validateParameter(valid_624149, JString, required = false, - default = nil) - if valid_624149 != nil: - section.add "X-Amz-Signature", valid_624149 - var valid_624150 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624150 = validateParameter(valid_624150, JString, required = false, - default = nil) - if valid_624150 != nil: - section.add "X-Amz-Content-Sha256", valid_624150 - var valid_624151 = header.getOrDefault("X-Amz-Date") + var valid_624151 = header.getOrDefault("X-Amz-Signature") valid_624151 = validateParameter(valid_624151, JString, required = false, default = nil) if valid_624151 != nil: - section.add "X-Amz-Date", valid_624151 - var valid_624152 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624151 + var valid_624152 = header.getOrDefault("X-Amz-Content-Sha256") valid_624152 = validateParameter(valid_624152, JString, required = false, default = nil) if valid_624152 != nil: - section.add "X-Amz-Credential", valid_624152 - var valid_624153 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624152 + var valid_624153 = header.getOrDefault("X-Amz-Date") valid_624153 = validateParameter(valid_624153, JString, required = false, default = nil) if valid_624153 != nil: - section.add "X-Amz-Security-Token", valid_624153 - var valid_624154 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624153 + var valid_624154 = header.getOrDefault("X-Amz-Credential") valid_624154 = validateParameter(valid_624154, JString, required = false, default = nil) if valid_624154 != nil: - section.add "X-Amz-Algorithm", valid_624154 - var valid_624155 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624154 + var valid_624155 = header.getOrDefault("X-Amz-Security-Token") valid_624155 = validateParameter(valid_624155, JString, required = false, default = nil) if valid_624155 != nil: - section.add "X-Amz-SignedHeaders", valid_624155 + section.add "X-Amz-Security-Token", valid_624155 + var valid_624156 = header.getOrDefault("X-Amz-Algorithm") + valid_624156 = validateParameter(valid_624156, JString, required = false, + default = nil) + if valid_624156 != nil: + section.add "X-Amz-Algorithm", valid_624156 + var valid_624157 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624157 = validateParameter(valid_624157, JString, required = false, + default = nil) + if valid_624157 != nil: + section.add "X-Amz-SignedHeaders", valid_624157 result.add "header", section ## parameters in `formData` object: ## InstanceCreditSpecification: JArray (required) @@ -107460,38 +107487,38 @@ proc validate_PostModifyInstanceCreditSpecification_624145(path: JsonNode; ## href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring Idempotency. section = newJObject() assert formData != nil, "formData argument is necessary due to required `InstanceCreditSpecification` field" - var valid_624156 = formData.getOrDefault("InstanceCreditSpecification") - valid_624156 = validateParameter(valid_624156, JArray, required = true, default = nil) - if valid_624156 != nil: - section.add "InstanceCreditSpecification", valid_624156 - var valid_624157 = formData.getOrDefault("DryRun") - valid_624157 = validateParameter(valid_624157, JBool, required = false, default = nil) - if valid_624157 != nil: - section.add "DryRun", valid_624157 - var valid_624158 = formData.getOrDefault("ClientToken") - valid_624158 = validateParameter(valid_624158, JString, required = false, - default = nil) + var valid_624158 = formData.getOrDefault("InstanceCreditSpecification") + valid_624158 = validateParameter(valid_624158, JArray, required = true, default = nil) if valid_624158 != nil: - section.add "ClientToken", valid_624158 + section.add "InstanceCreditSpecification", valid_624158 + var valid_624159 = formData.getOrDefault("DryRun") + valid_624159 = validateParameter(valid_624159, JBool, required = false, default = nil) + if valid_624159 != nil: + section.add "DryRun", valid_624159 + var valid_624160 = formData.getOrDefault("ClientToken") + valid_624160 = validateParameter(valid_624160, JString, required = false, + default = nil) + if valid_624160 != nil: + section.add "ClientToken", valid_624160 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624159: Call_PostModifyInstanceCreditSpecification_624144; +proc call*(call_624161: Call_PostModifyInstanceCreditSpecification_624146; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the credit option for CPU usage on a running or stopped burstable performance instance. The credit options are standard and unlimited.

    For more information, see Burstable Performance Instances in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_624159.validator(path, query, header, formData, body) - let scheme = call_624159.pickScheme + let valid = call_624161.validator(path, query, header, formData, body) + let scheme = call_624161.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624159.url(scheme.get, call_624159.host, call_624159.base, - call_624159.route, valid.getOrDefault("path"), + let url = call_624161.url(scheme.get, call_624161.host, call_624161.base, + call_624161.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624159, url, valid) + result = atozHook(call_624161, url, valid) -proc call*(call_624160: Call_PostModifyInstanceCreditSpecification_624144; +proc call*(call_624162: Call_PostModifyInstanceCreditSpecification_624146; InstanceCreditSpecification: JsonNode; DryRun: bool = false; Action: string = "ModifyInstanceCreditSpecification"; Version: string = "2016-11-15"; ClientToken: string = ""): Recallable = @@ -107506,26 +107533,26 @@ proc call*(call_624160: Call_PostModifyInstanceCreditSpecification_624144; ## ClientToken: string ## : A unique, case-sensitive token that you provide to ensure idempotency of your modification request. For more information, see Ensuring Idempotency. - var query_624161 = newJObject() - var formData_624162 = newJObject() + var query_624163 = newJObject() + var formData_624164 = newJObject() if InstanceCreditSpecification != nil: - formData_624162.add "InstanceCreditSpecification", InstanceCreditSpecification - add(formData_624162, "DryRun", newJBool(DryRun)) - add(query_624161, "Action", newJString(Action)) - add(query_624161, "Version", newJString(Version)) - add(formData_624162, "ClientToken", newJString(ClientToken)) - result = call_624160.call(nil, query_624161, nil, formData_624162, nil) - -var postModifyInstanceCreditSpecification* = Call_PostModifyInstanceCreditSpecification_624144( + formData_624164.add "InstanceCreditSpecification", InstanceCreditSpecification + add(formData_624164, "DryRun", newJBool(DryRun)) + add(query_624163, "Action", newJString(Action)) + add(query_624163, "Version", newJString(Version)) + add(formData_624164, "ClientToken", newJString(ClientToken)) + result = call_624162.call(nil, query_624163, nil, formData_624164, nil) + +var postModifyInstanceCreditSpecification* = Call_PostModifyInstanceCreditSpecification_624146( name: "postModifyInstanceCreditSpecification", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyInstanceCreditSpecification", - validator: validate_PostModifyInstanceCreditSpecification_624145, base: "/", - url: url_PostModifyInstanceCreditSpecification_624146, + validator: validate_PostModifyInstanceCreditSpecification_624147, base: "/", + url: url_PostModifyInstanceCreditSpecification_624148, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyInstanceCreditSpecification_624126 = ref object of OpenApiRestCall_610658 -proc url_GetModifyInstanceCreditSpecification_624128(protocol: Scheme; + Call_GetModifyInstanceCreditSpecification_624128 = ref object of OpenApiRestCall_610658 +proc url_GetModifyInstanceCreditSpecification_624130(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -107535,7 +107562,7 @@ proc url_GetModifyInstanceCreditSpecification_624128(protocol: Scheme; else: result.path = base & route -proc validate_GetModifyInstanceCreditSpecification_624127(path: JsonNode; +proc validate_GetModifyInstanceCreditSpecification_624129(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the credit option for CPU usage on a running or stopped burstable performance instance. The credit options are standard and unlimited.

    For more information, see Burstable Performance Instances in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -107554,29 +107581,29 @@ proc validate_GetModifyInstanceCreditSpecification_624127(path: JsonNode; ## : A unique, case-sensitive token that you provide to ensure idempotency of your modification request. For more information, see Ensuring Idempotency. section = newJObject() - var valid_624129 = query.getOrDefault("DryRun") - valid_624129 = validateParameter(valid_624129, JBool, required = false, default = nil) - if valid_624129 != nil: - section.add "DryRun", valid_624129 - var valid_624130 = query.getOrDefault("Action") - valid_624130 = validateParameter(valid_624130, JString, required = true, default = newJString( - "ModifyInstanceCreditSpecification")) - if valid_624130 != nil: - section.add "Action", valid_624130 - var valid_624131 = query.getOrDefault("InstanceCreditSpecification") - valid_624131 = validateParameter(valid_624131, JArray, required = true, default = nil) + var valid_624131 = query.getOrDefault("DryRun") + valid_624131 = validateParameter(valid_624131, JBool, required = false, default = nil) if valid_624131 != nil: - section.add "InstanceCreditSpecification", valid_624131 - var valid_624132 = query.getOrDefault("Version") - valid_624132 = validateParameter(valid_624132, JString, required = true, - default = newJString("2016-11-15")) + section.add "DryRun", valid_624131 + var valid_624132 = query.getOrDefault("Action") + valid_624132 = validateParameter(valid_624132, JString, required = true, default = newJString( + "ModifyInstanceCreditSpecification")) if valid_624132 != nil: - section.add "Version", valid_624132 - var valid_624133 = query.getOrDefault("ClientToken") - valid_624133 = validateParameter(valid_624133, JString, required = false, - default = nil) + section.add "Action", valid_624132 + var valid_624133 = query.getOrDefault("InstanceCreditSpecification") + valid_624133 = validateParameter(valid_624133, JArray, required = true, default = nil) if valid_624133 != nil: - section.add "ClientToken", valid_624133 + section.add "InstanceCreditSpecification", valid_624133 + var valid_624134 = query.getOrDefault("Version") + valid_624134 = validateParameter(valid_624134, JString, required = true, + default = newJString("2016-11-15")) + if valid_624134 != nil: + section.add "Version", valid_624134 + var valid_624135 = query.getOrDefault("ClientToken") + valid_624135 = validateParameter(valid_624135, JString, required = false, + default = nil) + if valid_624135 != nil: + section.add "ClientToken", valid_624135 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -107587,62 +107614,62 @@ proc validate_GetModifyInstanceCreditSpecification_624127(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624134 = header.getOrDefault("X-Amz-Signature") - valid_624134 = validateParameter(valid_624134, JString, required = false, - default = nil) - if valid_624134 != nil: - section.add "X-Amz-Signature", valid_624134 - var valid_624135 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624135 = validateParameter(valid_624135, JString, required = false, - default = nil) - if valid_624135 != nil: - section.add "X-Amz-Content-Sha256", valid_624135 - var valid_624136 = header.getOrDefault("X-Amz-Date") + var valid_624136 = header.getOrDefault("X-Amz-Signature") valid_624136 = validateParameter(valid_624136, JString, required = false, default = nil) if valid_624136 != nil: - section.add "X-Amz-Date", valid_624136 - var valid_624137 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624136 + var valid_624137 = header.getOrDefault("X-Amz-Content-Sha256") valid_624137 = validateParameter(valid_624137, JString, required = false, default = nil) if valid_624137 != nil: - section.add "X-Amz-Credential", valid_624137 - var valid_624138 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624137 + var valid_624138 = header.getOrDefault("X-Amz-Date") valid_624138 = validateParameter(valid_624138, JString, required = false, default = nil) if valid_624138 != nil: - section.add "X-Amz-Security-Token", valid_624138 - var valid_624139 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624138 + var valid_624139 = header.getOrDefault("X-Amz-Credential") valid_624139 = validateParameter(valid_624139, JString, required = false, default = nil) if valid_624139 != nil: - section.add "X-Amz-Algorithm", valid_624139 - var valid_624140 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624139 + var valid_624140 = header.getOrDefault("X-Amz-Security-Token") valid_624140 = validateParameter(valid_624140, JString, required = false, default = nil) if valid_624140 != nil: - section.add "X-Amz-SignedHeaders", valid_624140 + section.add "X-Amz-Security-Token", valid_624140 + var valid_624141 = header.getOrDefault("X-Amz-Algorithm") + valid_624141 = validateParameter(valid_624141, JString, required = false, + default = nil) + if valid_624141 != nil: + section.add "X-Amz-Algorithm", valid_624141 + var valid_624142 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624142 = validateParameter(valid_624142, JString, required = false, + default = nil) + if valid_624142 != nil: + section.add "X-Amz-SignedHeaders", valid_624142 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624141: Call_GetModifyInstanceCreditSpecification_624126; +proc call*(call_624143: Call_GetModifyInstanceCreditSpecification_624128; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the credit option for CPU usage on a running or stopped burstable performance instance. The credit options are standard and unlimited.

    For more information, see Burstable Performance Instances in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_624141.validator(path, query, header, formData, body) - let scheme = call_624141.pickScheme + let valid = call_624143.validator(path, query, header, formData, body) + let scheme = call_624143.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624141.url(scheme.get, call_624141.host, call_624141.base, - call_624141.route, valid.getOrDefault("path"), + let url = call_624143.url(scheme.get, call_624143.host, call_624143.base, + call_624143.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624141, url, valid) + result = atozHook(call_624143, url, valid) -proc call*(call_624142: Call_GetModifyInstanceCreditSpecification_624126; +proc call*(call_624144: Call_GetModifyInstanceCreditSpecification_624128; InstanceCreditSpecification: JsonNode; DryRun: bool = false; Action: string = "ModifyInstanceCreditSpecification"; Version: string = "2016-11-15"; ClientToken: string = ""): Recallable = @@ -107657,25 +107684,25 @@ proc call*(call_624142: Call_GetModifyInstanceCreditSpecification_624126; ## ClientToken: string ## : A unique, case-sensitive token that you provide to ensure idempotency of your modification request. For more information, see Ensuring Idempotency. - var query_624143 = newJObject() - add(query_624143, "DryRun", newJBool(DryRun)) - add(query_624143, "Action", newJString(Action)) + var query_624145 = newJObject() + add(query_624145, "DryRun", newJBool(DryRun)) + add(query_624145, "Action", newJString(Action)) if InstanceCreditSpecification != nil: - query_624143.add "InstanceCreditSpecification", InstanceCreditSpecification - add(query_624143, "Version", newJString(Version)) - add(query_624143, "ClientToken", newJString(ClientToken)) - result = call_624142.call(nil, query_624143, nil, nil, nil) + query_624145.add "InstanceCreditSpecification", InstanceCreditSpecification + add(query_624145, "Version", newJString(Version)) + add(query_624145, "ClientToken", newJString(ClientToken)) + result = call_624144.call(nil, query_624145, nil, nil, nil) -var getModifyInstanceCreditSpecification* = Call_GetModifyInstanceCreditSpecification_624126( +var getModifyInstanceCreditSpecification* = Call_GetModifyInstanceCreditSpecification_624128( name: "getModifyInstanceCreditSpecification", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifyInstanceCreditSpecification", - validator: validate_GetModifyInstanceCreditSpecification_624127, base: "/", - url: url_GetModifyInstanceCreditSpecification_624128, + validator: validate_GetModifyInstanceCreditSpecification_624129, base: "/", + url: url_GetModifyInstanceCreditSpecification_624130, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyInstanceEventStartTime_624182 = ref object of OpenApiRestCall_610658 -proc url_PostModifyInstanceEventStartTime_624184(protocol: Scheme; host: string; + Call_PostModifyInstanceEventStartTime_624184 = ref object of OpenApiRestCall_610658 +proc url_PostModifyInstanceEventStartTime_624186(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -107685,7 +107712,7 @@ proc url_PostModifyInstanceEventStartTime_624184(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostModifyInstanceEventStartTime_624183(path: JsonNode; +proc validate_PostModifyInstanceEventStartTime_624185(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modifies the start time for a scheduled Amazon EC2 instance event. ## @@ -107697,16 +107724,16 @@ proc validate_PostModifyInstanceEventStartTime_624183(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_624185 = query.getOrDefault("Action") - valid_624185 = validateParameter(valid_624185, JString, required = true, default = newJString( + var valid_624187 = query.getOrDefault("Action") + valid_624187 = validateParameter(valid_624187, JString, required = true, default = newJString( "ModifyInstanceEventStartTime")) - if valid_624185 != nil: - section.add "Action", valid_624185 - var valid_624186 = query.getOrDefault("Version") - valid_624186 = validateParameter(valid_624186, JString, required = true, + if valid_624187 != nil: + section.add "Action", valid_624187 + var valid_624188 = query.getOrDefault("Version") + valid_624188 = validateParameter(valid_624188, JString, required = true, default = newJString("2016-11-15")) - if valid_624186 != nil: - section.add "Version", valid_624186 + if valid_624188 != nil: + section.add "Version", valid_624188 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -107717,41 +107744,41 @@ proc validate_PostModifyInstanceEventStartTime_624183(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624187 = header.getOrDefault("X-Amz-Signature") - valid_624187 = validateParameter(valid_624187, JString, required = false, - default = nil) - if valid_624187 != nil: - section.add "X-Amz-Signature", valid_624187 - var valid_624188 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624188 = validateParameter(valid_624188, JString, required = false, - default = nil) - if valid_624188 != nil: - section.add "X-Amz-Content-Sha256", valid_624188 - var valid_624189 = header.getOrDefault("X-Amz-Date") + var valid_624189 = header.getOrDefault("X-Amz-Signature") valid_624189 = validateParameter(valid_624189, JString, required = false, default = nil) if valid_624189 != nil: - section.add "X-Amz-Date", valid_624189 - var valid_624190 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624189 + var valid_624190 = header.getOrDefault("X-Amz-Content-Sha256") valid_624190 = validateParameter(valid_624190, JString, required = false, default = nil) if valid_624190 != nil: - section.add "X-Amz-Credential", valid_624190 - var valid_624191 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624190 + var valid_624191 = header.getOrDefault("X-Amz-Date") valid_624191 = validateParameter(valid_624191, JString, required = false, default = nil) if valid_624191 != nil: - section.add "X-Amz-Security-Token", valid_624191 - var valid_624192 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624191 + var valid_624192 = header.getOrDefault("X-Amz-Credential") valid_624192 = validateParameter(valid_624192, JString, required = false, default = nil) if valid_624192 != nil: - section.add "X-Amz-Algorithm", valid_624192 - var valid_624193 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624192 + var valid_624193 = header.getOrDefault("X-Amz-Security-Token") valid_624193 = validateParameter(valid_624193, JString, required = false, default = nil) if valid_624193 != nil: - section.add "X-Amz-SignedHeaders", valid_624193 + section.add "X-Amz-Security-Token", valid_624193 + var valid_624194 = header.getOrDefault("X-Amz-Algorithm") + valid_624194 = validateParameter(valid_624194, JString, required = false, + default = nil) + if valid_624194 != nil: + section.add "X-Amz-Algorithm", valid_624194 + var valid_624195 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624195 = validateParameter(valid_624195, JString, required = false, + default = nil) + if valid_624195 != nil: + section.add "X-Amz-SignedHeaders", valid_624195 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -107763,46 +107790,46 @@ proc validate_PostModifyInstanceEventStartTime_624183(path: JsonNode; ## NotBefore: JString (required) ## : The new date and time when the event will take place. section = newJObject() - var valid_624194 = formData.getOrDefault("DryRun") - valid_624194 = validateParameter(valid_624194, JBool, required = false, default = nil) - if valid_624194 != nil: - section.add "DryRun", valid_624194 + var valid_624196 = formData.getOrDefault("DryRun") + valid_624196 = validateParameter(valid_624196, JBool, required = false, default = nil) + if valid_624196 != nil: + section.add "DryRun", valid_624196 assert formData != nil, "formData argument is necessary due to required `InstanceId` field" - var valid_624195 = formData.getOrDefault("InstanceId") - valid_624195 = validateParameter(valid_624195, JString, required = true, - default = nil) - if valid_624195 != nil: - section.add "InstanceId", valid_624195 - var valid_624196 = formData.getOrDefault("InstanceEventId") - valid_624196 = validateParameter(valid_624196, JString, required = true, - default = nil) - if valid_624196 != nil: - section.add "InstanceEventId", valid_624196 - var valid_624197 = formData.getOrDefault("NotBefore") + var valid_624197 = formData.getOrDefault("InstanceId") valid_624197 = validateParameter(valid_624197, JString, required = true, default = nil) if valid_624197 != nil: - section.add "NotBefore", valid_624197 + section.add "InstanceId", valid_624197 + var valid_624198 = formData.getOrDefault("InstanceEventId") + valid_624198 = validateParameter(valid_624198, JString, required = true, + default = nil) + if valid_624198 != nil: + section.add "InstanceEventId", valid_624198 + var valid_624199 = formData.getOrDefault("NotBefore") + valid_624199 = validateParameter(valid_624199, JString, required = true, + default = nil) + if valid_624199 != nil: + section.add "NotBefore", valid_624199 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624198: Call_PostModifyInstanceEventStartTime_624182; +proc call*(call_624200: Call_PostModifyInstanceEventStartTime_624184; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modifies the start time for a scheduled Amazon EC2 instance event. ## - let valid = call_624198.validator(path, query, header, formData, body) - let scheme = call_624198.pickScheme + let valid = call_624200.validator(path, query, header, formData, body) + let scheme = call_624200.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624198.url(scheme.get, call_624198.host, call_624198.base, - call_624198.route, valid.getOrDefault("path"), + let url = call_624200.url(scheme.get, call_624200.host, call_624200.base, + call_624200.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624198, url, valid) + result = atozHook(call_624200, url, valid) -proc call*(call_624199: Call_PostModifyInstanceEventStartTime_624182; +proc call*(call_624201: Call_PostModifyInstanceEventStartTime_624184; InstanceId: string; InstanceEventId: string; NotBefore: string; DryRun: bool = false; Action: string = "ModifyInstanceEventStartTime"; Version: string = "2016-11-15"): Recallable = @@ -107818,25 +107845,25 @@ proc call*(call_624199: Call_PostModifyInstanceEventStartTime_624182; ## Version: string (required) ## NotBefore: string (required) ## : The new date and time when the event will take place. - var query_624200 = newJObject() - var formData_624201 = newJObject() - add(formData_624201, "DryRun", newJBool(DryRun)) - add(formData_624201, "InstanceId", newJString(InstanceId)) - add(query_624200, "Action", newJString(Action)) - add(formData_624201, "InstanceEventId", newJString(InstanceEventId)) - add(query_624200, "Version", newJString(Version)) - add(formData_624201, "NotBefore", newJString(NotBefore)) - result = call_624199.call(nil, query_624200, nil, formData_624201, nil) - -var postModifyInstanceEventStartTime* = Call_PostModifyInstanceEventStartTime_624182( + var query_624202 = newJObject() + var formData_624203 = newJObject() + add(formData_624203, "DryRun", newJBool(DryRun)) + add(formData_624203, "InstanceId", newJString(InstanceId)) + add(query_624202, "Action", newJString(Action)) + add(formData_624203, "InstanceEventId", newJString(InstanceEventId)) + add(query_624202, "Version", newJString(Version)) + add(formData_624203, "NotBefore", newJString(NotBefore)) + result = call_624201.call(nil, query_624202, nil, formData_624203, nil) + +var postModifyInstanceEventStartTime* = Call_PostModifyInstanceEventStartTime_624184( name: "postModifyInstanceEventStartTime", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyInstanceEventStartTime", - validator: validate_PostModifyInstanceEventStartTime_624183, base: "/", - url: url_PostModifyInstanceEventStartTime_624184, + validator: validate_PostModifyInstanceEventStartTime_624185, base: "/", + url: url_PostModifyInstanceEventStartTime_624186, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyInstanceEventStartTime_624163 = ref object of OpenApiRestCall_610658 -proc url_GetModifyInstanceEventStartTime_624165(protocol: Scheme; host: string; + Call_GetModifyInstanceEventStartTime_624165 = ref object of OpenApiRestCall_610658 +proc url_GetModifyInstanceEventStartTime_624167(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -107846,7 +107873,7 @@ proc url_GetModifyInstanceEventStartTime_624165(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetModifyInstanceEventStartTime_624164(path: JsonNode; +proc validate_GetModifyInstanceEventStartTime_624166(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modifies the start time for a scheduled Amazon EC2 instance event. ## @@ -107868,35 +107895,35 @@ proc validate_GetModifyInstanceEventStartTime_624164(path: JsonNode; section = newJObject() assert query != nil, "query argument is necessary due to required `NotBefore` field" - var valid_624166 = query.getOrDefault("NotBefore") - valid_624166 = validateParameter(valid_624166, JString, required = true, - default = nil) - if valid_624166 != nil: - section.add "NotBefore", valid_624166 - var valid_624167 = query.getOrDefault("DryRun") - valid_624167 = validateParameter(valid_624167, JBool, required = false, default = nil) - if valid_624167 != nil: - section.add "DryRun", valid_624167 - var valid_624168 = query.getOrDefault("InstanceId") + var valid_624168 = query.getOrDefault("NotBefore") valid_624168 = validateParameter(valid_624168, JString, required = true, default = nil) if valid_624168 != nil: - section.add "InstanceId", valid_624168 - var valid_624169 = query.getOrDefault("Action") - valid_624169 = validateParameter(valid_624169, JString, required = true, default = newJString( - "ModifyInstanceEventStartTime")) + section.add "NotBefore", valid_624168 + var valid_624169 = query.getOrDefault("DryRun") + valid_624169 = validateParameter(valid_624169, JBool, required = false, default = nil) if valid_624169 != nil: - section.add "Action", valid_624169 - var valid_624170 = query.getOrDefault("InstanceEventId") + section.add "DryRun", valid_624169 + var valid_624170 = query.getOrDefault("InstanceId") valid_624170 = validateParameter(valid_624170, JString, required = true, default = nil) if valid_624170 != nil: - section.add "InstanceEventId", valid_624170 - var valid_624171 = query.getOrDefault("Version") - valid_624171 = validateParameter(valid_624171, JString, required = true, - default = newJString("2016-11-15")) + section.add "InstanceId", valid_624170 + var valid_624171 = query.getOrDefault("Action") + valid_624171 = validateParameter(valid_624171, JString, required = true, default = newJString( + "ModifyInstanceEventStartTime")) if valid_624171 != nil: - section.add "Version", valid_624171 + section.add "Action", valid_624171 + var valid_624172 = query.getOrDefault("InstanceEventId") + valid_624172 = validateParameter(valid_624172, JString, required = true, + default = nil) + if valid_624172 != nil: + section.add "InstanceEventId", valid_624172 + var valid_624173 = query.getOrDefault("Version") + valid_624173 = validateParameter(valid_624173, JString, required = true, + default = newJString("2016-11-15")) + if valid_624173 != nil: + section.add "Version", valid_624173 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -107907,62 +107934,62 @@ proc validate_GetModifyInstanceEventStartTime_624164(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624172 = header.getOrDefault("X-Amz-Signature") - valid_624172 = validateParameter(valid_624172, JString, required = false, - default = nil) - if valid_624172 != nil: - section.add "X-Amz-Signature", valid_624172 - var valid_624173 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624173 = validateParameter(valid_624173, JString, required = false, - default = nil) - if valid_624173 != nil: - section.add "X-Amz-Content-Sha256", valid_624173 - var valid_624174 = header.getOrDefault("X-Amz-Date") + var valid_624174 = header.getOrDefault("X-Amz-Signature") valid_624174 = validateParameter(valid_624174, JString, required = false, default = nil) if valid_624174 != nil: - section.add "X-Amz-Date", valid_624174 - var valid_624175 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624174 + var valid_624175 = header.getOrDefault("X-Amz-Content-Sha256") valid_624175 = validateParameter(valid_624175, JString, required = false, default = nil) if valid_624175 != nil: - section.add "X-Amz-Credential", valid_624175 - var valid_624176 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624175 + var valid_624176 = header.getOrDefault("X-Amz-Date") valid_624176 = validateParameter(valid_624176, JString, required = false, default = nil) if valid_624176 != nil: - section.add "X-Amz-Security-Token", valid_624176 - var valid_624177 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624176 + var valid_624177 = header.getOrDefault("X-Amz-Credential") valid_624177 = validateParameter(valid_624177, JString, required = false, default = nil) if valid_624177 != nil: - section.add "X-Amz-Algorithm", valid_624177 - var valid_624178 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624177 + var valid_624178 = header.getOrDefault("X-Amz-Security-Token") valid_624178 = validateParameter(valid_624178, JString, required = false, default = nil) if valid_624178 != nil: - section.add "X-Amz-SignedHeaders", valid_624178 + section.add "X-Amz-Security-Token", valid_624178 + var valid_624179 = header.getOrDefault("X-Amz-Algorithm") + valid_624179 = validateParameter(valid_624179, JString, required = false, + default = nil) + if valid_624179 != nil: + section.add "X-Amz-Algorithm", valid_624179 + var valid_624180 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624180 = validateParameter(valid_624180, JString, required = false, + default = nil) + if valid_624180 != nil: + section.add "X-Amz-SignedHeaders", valid_624180 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624179: Call_GetModifyInstanceEventStartTime_624163; +proc call*(call_624181: Call_GetModifyInstanceEventStartTime_624165; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modifies the start time for a scheduled Amazon EC2 instance event. ## - let valid = call_624179.validator(path, query, header, formData, body) - let scheme = call_624179.pickScheme + let valid = call_624181.validator(path, query, header, formData, body) + let scheme = call_624181.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624179.url(scheme.get, call_624179.host, call_624179.base, - call_624179.route, valid.getOrDefault("path"), + let url = call_624181.url(scheme.get, call_624181.host, call_624181.base, + call_624181.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624179, url, valid) + result = atozHook(call_624181, url, valid) -proc call*(call_624180: Call_GetModifyInstanceEventStartTime_624163; +proc call*(call_624182: Call_GetModifyInstanceEventStartTime_624165; NotBefore: string; InstanceId: string; InstanceEventId: string; DryRun: bool = false; Action: string = "ModifyInstanceEventStartTime"; Version: string = "2016-11-15"): Recallable = @@ -107978,24 +108005,24 @@ proc call*(call_624180: Call_GetModifyInstanceEventStartTime_624163; ## InstanceEventId: string (required) ## : The ID of the event whose date and time you are modifying. ## Version: string (required) - var query_624181 = newJObject() - add(query_624181, "NotBefore", newJString(NotBefore)) - add(query_624181, "DryRun", newJBool(DryRun)) - add(query_624181, "InstanceId", newJString(InstanceId)) - add(query_624181, "Action", newJString(Action)) - add(query_624181, "InstanceEventId", newJString(InstanceEventId)) - add(query_624181, "Version", newJString(Version)) - result = call_624180.call(nil, query_624181, nil, nil, nil) + var query_624183 = newJObject() + add(query_624183, "NotBefore", newJString(NotBefore)) + add(query_624183, "DryRun", newJBool(DryRun)) + add(query_624183, "InstanceId", newJString(InstanceId)) + add(query_624183, "Action", newJString(Action)) + add(query_624183, "InstanceEventId", newJString(InstanceEventId)) + add(query_624183, "Version", newJString(Version)) + result = call_624182.call(nil, query_624183, nil, nil, nil) -var getModifyInstanceEventStartTime* = Call_GetModifyInstanceEventStartTime_624163( +var getModifyInstanceEventStartTime* = Call_GetModifyInstanceEventStartTime_624165( name: "getModifyInstanceEventStartTime", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifyInstanceEventStartTime", - validator: validate_GetModifyInstanceEventStartTime_624164, base: "/", - url: url_GetModifyInstanceEventStartTime_624165, + validator: validate_GetModifyInstanceEventStartTime_624166, base: "/", + url: url_GetModifyInstanceEventStartTime_624167, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyInstanceMetadataOptions_624222 = ref object of OpenApiRestCall_610658 -proc url_PostModifyInstanceMetadataOptions_624224(protocol: Scheme; host: string; + Call_PostModifyInstanceMetadataOptions_624224 = ref object of OpenApiRestCall_610658 +proc url_PostModifyInstanceMetadataOptions_624226(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -108005,7 +108032,7 @@ proc url_PostModifyInstanceMetadataOptions_624224(protocol: Scheme; host: string else: result.path = base & route -proc validate_PostModifyInstanceMetadataOptions_624223(path: JsonNode; +proc validate_PostModifyInstanceMetadataOptions_624225(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modify the instance metadata parameters on a running or stopped instance. When you modify the parameters on a stopped instance, they are applied when the instance is started. When you modify the parameters on a running instance, the API responds with a state of “pending”. After the parameter modifications are successfully applied to the instance, the state of the modifications changes from “pending” to “applied” in subsequent describe-instances API calls. For more information, see Instance Metadata and User Data. ## @@ -108017,16 +108044,16 @@ proc validate_PostModifyInstanceMetadataOptions_624223(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_624225 = query.getOrDefault("Action") - valid_624225 = validateParameter(valid_624225, JString, required = true, default = newJString( + var valid_624227 = query.getOrDefault("Action") + valid_624227 = validateParameter(valid_624227, JString, required = true, default = newJString( "ModifyInstanceMetadataOptions")) - if valid_624225 != nil: - section.add "Action", valid_624225 - var valid_624226 = query.getOrDefault("Version") - valid_624226 = validateParameter(valid_624226, JString, required = true, + if valid_624227 != nil: + section.add "Action", valid_624227 + var valid_624228 = query.getOrDefault("Version") + valid_624228 = validateParameter(valid_624228, JString, required = true, default = newJString("2016-11-15")) - if valid_624226 != nil: - section.add "Version", valid_624226 + if valid_624228 != nil: + section.add "Version", valid_624228 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -108037,41 +108064,41 @@ proc validate_PostModifyInstanceMetadataOptions_624223(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624227 = header.getOrDefault("X-Amz-Signature") - valid_624227 = validateParameter(valid_624227, JString, required = false, - default = nil) - if valid_624227 != nil: - section.add "X-Amz-Signature", valid_624227 - var valid_624228 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624228 = validateParameter(valid_624228, JString, required = false, - default = nil) - if valid_624228 != nil: - section.add "X-Amz-Content-Sha256", valid_624228 - var valid_624229 = header.getOrDefault("X-Amz-Date") + var valid_624229 = header.getOrDefault("X-Amz-Signature") valid_624229 = validateParameter(valid_624229, JString, required = false, default = nil) if valid_624229 != nil: - section.add "X-Amz-Date", valid_624229 - var valid_624230 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624229 + var valid_624230 = header.getOrDefault("X-Amz-Content-Sha256") valid_624230 = validateParameter(valid_624230, JString, required = false, default = nil) if valid_624230 != nil: - section.add "X-Amz-Credential", valid_624230 - var valid_624231 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624230 + var valid_624231 = header.getOrDefault("X-Amz-Date") valid_624231 = validateParameter(valid_624231, JString, required = false, default = nil) if valid_624231 != nil: - section.add "X-Amz-Security-Token", valid_624231 - var valid_624232 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624231 + var valid_624232 = header.getOrDefault("X-Amz-Credential") valid_624232 = validateParameter(valid_624232, JString, required = false, default = nil) if valid_624232 != nil: - section.add "X-Amz-Algorithm", valid_624232 - var valid_624233 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624232 + var valid_624233 = header.getOrDefault("X-Amz-Security-Token") valid_624233 = validateParameter(valid_624233, JString, required = false, default = nil) if valid_624233 != nil: - section.add "X-Amz-SignedHeaders", valid_624233 + section.add "X-Amz-Security-Token", valid_624233 + var valid_624234 = header.getOrDefault("X-Amz-Algorithm") + valid_624234 = validateParameter(valid_624234, JString, required = false, + default = nil) + if valid_624234 != nil: + section.add "X-Amz-Algorithm", valid_624234 + var valid_624235 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624235 = validateParameter(valid_624235, JString, required = false, + default = nil) + if valid_624235 != nil: + section.add "X-Amz-SignedHeaders", valid_624235 result.add "header", section ## parameters in `formData` object: ## HttpTokens: JString @@ -108085,50 +108112,50 @@ proc validate_PostModifyInstanceMetadataOptions_624223(path: JsonNode; ## InstanceId: JString (required) ## : The ID of the instance. section = newJObject() - var valid_624234 = formData.getOrDefault("HttpTokens") - valid_624234 = validateParameter(valid_624234, JString, required = false, - default = newJString("optional")) - if valid_624234 != nil: - section.add "HttpTokens", valid_624234 - var valid_624235 = formData.getOrDefault("HttpPutResponseHopLimit") - valid_624235 = validateParameter(valid_624235, JInt, required = false, default = nil) - if valid_624235 != nil: - section.add "HttpPutResponseHopLimit", valid_624235 - var valid_624236 = formData.getOrDefault("HttpEndpoint") + var valid_624236 = formData.getOrDefault("HttpTokens") valid_624236 = validateParameter(valid_624236, JString, required = false, - default = newJString("disabled")) + default = newJString("optional")) if valid_624236 != nil: - section.add "HttpEndpoint", valid_624236 - var valid_624237 = formData.getOrDefault("DryRun") - valid_624237 = validateParameter(valid_624237, JBool, required = false, default = nil) + section.add "HttpTokens", valid_624236 + var valid_624237 = formData.getOrDefault("HttpPutResponseHopLimit") + valid_624237 = validateParameter(valid_624237, JInt, required = false, default = nil) if valid_624237 != nil: - section.add "DryRun", valid_624237 + section.add "HttpPutResponseHopLimit", valid_624237 + var valid_624238 = formData.getOrDefault("HttpEndpoint") + valid_624238 = validateParameter(valid_624238, JString, required = false, + default = newJString("disabled")) + if valid_624238 != nil: + section.add "HttpEndpoint", valid_624238 + var valid_624239 = formData.getOrDefault("DryRun") + valid_624239 = validateParameter(valid_624239, JBool, required = false, default = nil) + if valid_624239 != nil: + section.add "DryRun", valid_624239 assert formData != nil, "formData argument is necessary due to required `InstanceId` field" - var valid_624238 = formData.getOrDefault("InstanceId") - valid_624238 = validateParameter(valid_624238, JString, required = true, + var valid_624240 = formData.getOrDefault("InstanceId") + valid_624240 = validateParameter(valid_624240, JString, required = true, default = nil) - if valid_624238 != nil: - section.add "InstanceId", valid_624238 + if valid_624240 != nil: + section.add "InstanceId", valid_624240 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624239: Call_PostModifyInstanceMetadataOptions_624222; +proc call*(call_624241: Call_PostModifyInstanceMetadataOptions_624224; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modify the instance metadata parameters on a running or stopped instance. When you modify the parameters on a stopped instance, they are applied when the instance is started. When you modify the parameters on a running instance, the API responds with a state of “pending”. After the parameter modifications are successfully applied to the instance, the state of the modifications changes from “pending” to “applied” in subsequent describe-instances API calls. For more information, see Instance Metadata and User Data. ## - let valid = call_624239.validator(path, query, header, formData, body) - let scheme = call_624239.pickScheme + let valid = call_624241.validator(path, query, header, formData, body) + let scheme = call_624241.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624239.url(scheme.get, call_624239.host, call_624239.base, - call_624239.route, valid.getOrDefault("path"), + let url = call_624241.url(scheme.get, call_624241.host, call_624241.base, + call_624241.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624239, url, valid) + result = atozHook(call_624241, url, valid) -proc call*(call_624240: Call_PostModifyInstanceMetadataOptions_624222; +proc call*(call_624242: Call_PostModifyInstanceMetadataOptions_624224; InstanceId: string; HttpTokens: string = "optional"; HttpPutResponseHopLimit: int = 0; HttpEndpoint: string = "disabled"; DryRun: bool = false; Action: string = "ModifyInstanceMetadataOptions"; @@ -108147,26 +108174,26 @@ proc call*(call_624240: Call_PostModifyInstanceMetadataOptions_624222; ## : The ID of the instance. ## Action: string (required) ## Version: string (required) - var query_624241 = newJObject() - var formData_624242 = newJObject() - add(formData_624242, "HttpTokens", newJString(HttpTokens)) - add(formData_624242, "HttpPutResponseHopLimit", newJInt(HttpPutResponseHopLimit)) - add(formData_624242, "HttpEndpoint", newJString(HttpEndpoint)) - add(formData_624242, "DryRun", newJBool(DryRun)) - add(formData_624242, "InstanceId", newJString(InstanceId)) - add(query_624241, "Action", newJString(Action)) - add(query_624241, "Version", newJString(Version)) - result = call_624240.call(nil, query_624241, nil, formData_624242, nil) + var query_624243 = newJObject() + var formData_624244 = newJObject() + add(formData_624244, "HttpTokens", newJString(HttpTokens)) + add(formData_624244, "HttpPutResponseHopLimit", newJInt(HttpPutResponseHopLimit)) + add(formData_624244, "HttpEndpoint", newJString(HttpEndpoint)) + add(formData_624244, "DryRun", newJBool(DryRun)) + add(formData_624244, "InstanceId", newJString(InstanceId)) + add(query_624243, "Action", newJString(Action)) + add(query_624243, "Version", newJString(Version)) + result = call_624242.call(nil, query_624243, nil, formData_624244, nil) -var postModifyInstanceMetadataOptions* = Call_PostModifyInstanceMetadataOptions_624222( +var postModifyInstanceMetadataOptions* = Call_PostModifyInstanceMetadataOptions_624224( name: "postModifyInstanceMetadataOptions", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyInstanceMetadataOptions", - validator: validate_PostModifyInstanceMetadataOptions_624223, base: "/", - url: url_PostModifyInstanceMetadataOptions_624224, + validator: validate_PostModifyInstanceMetadataOptions_624225, base: "/", + url: url_PostModifyInstanceMetadataOptions_624226, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyInstanceMetadataOptions_624202 = ref object of OpenApiRestCall_610658 -proc url_GetModifyInstanceMetadataOptions_624204(protocol: Scheme; host: string; + Call_GetModifyInstanceMetadataOptions_624204 = ref object of OpenApiRestCall_610658 +proc url_GetModifyInstanceMetadataOptions_624206(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -108176,7 +108203,7 @@ proc url_GetModifyInstanceMetadataOptions_624204(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetModifyInstanceMetadataOptions_624203(path: JsonNode; +proc validate_GetModifyInstanceMetadataOptions_624205(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modify the instance metadata parameters on a running or stopped instance. When you modify the parameters on a stopped instance, they are applied when the instance is started. When you modify the parameters on a running instance, the API responds with a state of “pending”. After the parameter modifications are successfully applied to the instance, the state of the modifications changes from “pending” to “applied” in subsequent describe-instances API calls. For more information, see Instance Metadata and User Data. ## @@ -108198,41 +108225,41 @@ proc validate_GetModifyInstanceMetadataOptions_624203(path: JsonNode; ## HttpEndpoint: JString ## :

    This parameter enables or disables the HTTP metadata endpoint on your instances. If the parameter is not specified, the existing state is maintained.

    If you specify a value of disabled, you will not be able to access your instance metadata.

    section = newJObject() - var valid_624205 = query.getOrDefault("DryRun") - valid_624205 = validateParameter(valid_624205, JBool, required = false, default = nil) - if valid_624205 != nil: - section.add "DryRun", valid_624205 + var valid_624207 = query.getOrDefault("DryRun") + valid_624207 = validateParameter(valid_624207, JBool, required = false, default = nil) + if valid_624207 != nil: + section.add "DryRun", valid_624207 assert query != nil, "query argument is necessary due to required `InstanceId` field" - var valid_624206 = query.getOrDefault("InstanceId") - valid_624206 = validateParameter(valid_624206, JString, required = true, + var valid_624208 = query.getOrDefault("InstanceId") + valid_624208 = validateParameter(valid_624208, JString, required = true, default = nil) - if valid_624206 != nil: - section.add "InstanceId", valid_624206 - var valid_624207 = query.getOrDefault("HttpTokens") - valid_624207 = validateParameter(valid_624207, JString, required = false, - default = newJString("optional")) - if valid_624207 != nil: - section.add "HttpTokens", valid_624207 - var valid_624208 = query.getOrDefault("Action") - valid_624208 = validateParameter(valid_624208, JString, required = true, default = newJString( - "ModifyInstanceMetadataOptions")) if valid_624208 != nil: - section.add "Action", valid_624208 - var valid_624209 = query.getOrDefault("HttpPutResponseHopLimit") - valid_624209 = validateParameter(valid_624209, JInt, required = false, default = nil) + section.add "InstanceId", valid_624208 + var valid_624209 = query.getOrDefault("HttpTokens") + valid_624209 = validateParameter(valid_624209, JString, required = false, + default = newJString("optional")) if valid_624209 != nil: - section.add "HttpPutResponseHopLimit", valid_624209 - var valid_624210 = query.getOrDefault("Version") - valid_624210 = validateParameter(valid_624210, JString, required = true, - default = newJString("2016-11-15")) + section.add "HttpTokens", valid_624209 + var valid_624210 = query.getOrDefault("Action") + valid_624210 = validateParameter(valid_624210, JString, required = true, default = newJString( + "ModifyInstanceMetadataOptions")) if valid_624210 != nil: - section.add "Version", valid_624210 - var valid_624211 = query.getOrDefault("HttpEndpoint") - valid_624211 = validateParameter(valid_624211, JString, required = false, - default = newJString("disabled")) + section.add "Action", valid_624210 + var valid_624211 = query.getOrDefault("HttpPutResponseHopLimit") + valid_624211 = validateParameter(valid_624211, JInt, required = false, default = nil) if valid_624211 != nil: - section.add "HttpEndpoint", valid_624211 + section.add "HttpPutResponseHopLimit", valid_624211 + var valid_624212 = query.getOrDefault("Version") + valid_624212 = validateParameter(valid_624212, JString, required = true, + default = newJString("2016-11-15")) + if valid_624212 != nil: + section.add "Version", valid_624212 + var valid_624213 = query.getOrDefault("HttpEndpoint") + valid_624213 = validateParameter(valid_624213, JString, required = false, + default = newJString("disabled")) + if valid_624213 != nil: + section.add "HttpEndpoint", valid_624213 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -108243,62 +108270,62 @@ proc validate_GetModifyInstanceMetadataOptions_624203(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624212 = header.getOrDefault("X-Amz-Signature") - valid_624212 = validateParameter(valid_624212, JString, required = false, - default = nil) - if valid_624212 != nil: - section.add "X-Amz-Signature", valid_624212 - var valid_624213 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624213 = validateParameter(valid_624213, JString, required = false, - default = nil) - if valid_624213 != nil: - section.add "X-Amz-Content-Sha256", valid_624213 - var valid_624214 = header.getOrDefault("X-Amz-Date") + var valid_624214 = header.getOrDefault("X-Amz-Signature") valid_624214 = validateParameter(valid_624214, JString, required = false, default = nil) if valid_624214 != nil: - section.add "X-Amz-Date", valid_624214 - var valid_624215 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624214 + var valid_624215 = header.getOrDefault("X-Amz-Content-Sha256") valid_624215 = validateParameter(valid_624215, JString, required = false, default = nil) if valid_624215 != nil: - section.add "X-Amz-Credential", valid_624215 - var valid_624216 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624215 + var valid_624216 = header.getOrDefault("X-Amz-Date") valid_624216 = validateParameter(valid_624216, JString, required = false, default = nil) if valid_624216 != nil: - section.add "X-Amz-Security-Token", valid_624216 - var valid_624217 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624216 + var valid_624217 = header.getOrDefault("X-Amz-Credential") valid_624217 = validateParameter(valid_624217, JString, required = false, default = nil) if valid_624217 != nil: - section.add "X-Amz-Algorithm", valid_624217 - var valid_624218 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624217 + var valid_624218 = header.getOrDefault("X-Amz-Security-Token") valid_624218 = validateParameter(valid_624218, JString, required = false, default = nil) if valid_624218 != nil: - section.add "X-Amz-SignedHeaders", valid_624218 + section.add "X-Amz-Security-Token", valid_624218 + var valid_624219 = header.getOrDefault("X-Amz-Algorithm") + valid_624219 = validateParameter(valid_624219, JString, required = false, + default = nil) + if valid_624219 != nil: + section.add "X-Amz-Algorithm", valid_624219 + var valid_624220 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624220 = validateParameter(valid_624220, JString, required = false, + default = nil) + if valid_624220 != nil: + section.add "X-Amz-SignedHeaders", valid_624220 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624219: Call_GetModifyInstanceMetadataOptions_624202; +proc call*(call_624221: Call_GetModifyInstanceMetadataOptions_624204; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modify the instance metadata parameters on a running or stopped instance. When you modify the parameters on a stopped instance, they are applied when the instance is started. When you modify the parameters on a running instance, the API responds with a state of “pending”. After the parameter modifications are successfully applied to the instance, the state of the modifications changes from “pending” to “applied” in subsequent describe-instances API calls. For more information, see Instance Metadata and User Data. ## - let valid = call_624219.validator(path, query, header, formData, body) - let scheme = call_624219.pickScheme + let valid = call_624221.validator(path, query, header, formData, body) + let scheme = call_624221.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624219.url(scheme.get, call_624219.host, call_624219.base, - call_624219.route, valid.getOrDefault("path"), + let url = call_624221.url(scheme.get, call_624221.host, call_624221.base, + call_624221.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624219, url, valid) + result = atozHook(call_624221, url, valid) -proc call*(call_624220: Call_GetModifyInstanceMetadataOptions_624202; +proc call*(call_624222: Call_GetModifyInstanceMetadataOptions_624204; InstanceId: string; DryRun: bool = false; HttpTokens: string = "optional"; Action: string = "ModifyInstanceMetadataOptions"; HttpPutResponseHopLimit: int = 0; Version: string = "2016-11-15"; @@ -108317,25 +108344,25 @@ proc call*(call_624220: Call_GetModifyInstanceMetadataOptions_624202; ## Version: string (required) ## HttpEndpoint: string ## :

    This parameter enables or disables the HTTP metadata endpoint on your instances. If the parameter is not specified, the existing state is maintained.

    If you specify a value of disabled, you will not be able to access your instance metadata.

    - var query_624221 = newJObject() - add(query_624221, "DryRun", newJBool(DryRun)) - add(query_624221, "InstanceId", newJString(InstanceId)) - add(query_624221, "HttpTokens", newJString(HttpTokens)) - add(query_624221, "Action", newJString(Action)) - add(query_624221, "HttpPutResponseHopLimit", newJInt(HttpPutResponseHopLimit)) - add(query_624221, "Version", newJString(Version)) - add(query_624221, "HttpEndpoint", newJString(HttpEndpoint)) - result = call_624220.call(nil, query_624221, nil, nil, nil) - -var getModifyInstanceMetadataOptions* = Call_GetModifyInstanceMetadataOptions_624202( + var query_624223 = newJObject() + add(query_624223, "DryRun", newJBool(DryRun)) + add(query_624223, "InstanceId", newJString(InstanceId)) + add(query_624223, "HttpTokens", newJString(HttpTokens)) + add(query_624223, "Action", newJString(Action)) + add(query_624223, "HttpPutResponseHopLimit", newJInt(HttpPutResponseHopLimit)) + add(query_624223, "Version", newJString(Version)) + add(query_624223, "HttpEndpoint", newJString(HttpEndpoint)) + result = call_624222.call(nil, query_624223, nil, nil, nil) + +var getModifyInstanceMetadataOptions* = Call_GetModifyInstanceMetadataOptions_624204( name: "getModifyInstanceMetadataOptions", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifyInstanceMetadataOptions", - validator: validate_GetModifyInstanceMetadataOptions_624203, base: "/", - url: url_GetModifyInstanceMetadataOptions_624204, + validator: validate_GetModifyInstanceMetadataOptions_624205, base: "/", + url: url_GetModifyInstanceMetadataOptions_624206, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyInstancePlacement_624265 = ref object of OpenApiRestCall_610658 -proc url_PostModifyInstancePlacement_624267(protocol: Scheme; host: string; + Call_PostModifyInstancePlacement_624267 = ref object of OpenApiRestCall_610658 +proc url_PostModifyInstancePlacement_624269(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -108345,7 +108372,7 @@ proc url_PostModifyInstancePlacement_624267(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostModifyInstancePlacement_624266(path: JsonNode; query: JsonNode; +proc validate_PostModifyInstancePlacement_624268(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the placement attributes for a specified instance. You can do the following:

    At least one attribute for affinity, host ID, tenancy, or placement group name must be specified in the request. Affinity and tenancy can be modified in the same request.

    To modify the host ID, tenancy, placement group, or partition for an instance, the instance must be in the stopped state.

    ## @@ -108357,16 +108384,16 @@ proc validate_PostModifyInstancePlacement_624266(path: JsonNode; query: JsonNode ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_624268 = query.getOrDefault("Action") - valid_624268 = validateParameter(valid_624268, JString, required = true, default = newJString( + var valid_624270 = query.getOrDefault("Action") + valid_624270 = validateParameter(valid_624270, JString, required = true, default = newJString( "ModifyInstancePlacement")) - if valid_624268 != nil: - section.add "Action", valid_624268 - var valid_624269 = query.getOrDefault("Version") - valid_624269 = validateParameter(valid_624269, JString, required = true, + if valid_624270 != nil: + section.add "Action", valid_624270 + var valid_624271 = query.getOrDefault("Version") + valid_624271 = validateParameter(valid_624271, JString, required = true, default = newJString("2016-11-15")) - if valid_624269 != nil: - section.add "Version", valid_624269 + if valid_624271 != nil: + section.add "Version", valid_624271 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -108377,41 +108404,41 @@ proc validate_PostModifyInstancePlacement_624266(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624270 = header.getOrDefault("X-Amz-Signature") - valid_624270 = validateParameter(valid_624270, JString, required = false, - default = nil) - if valid_624270 != nil: - section.add "X-Amz-Signature", valid_624270 - var valid_624271 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624271 = validateParameter(valid_624271, JString, required = false, - default = nil) - if valid_624271 != nil: - section.add "X-Amz-Content-Sha256", valid_624271 - var valid_624272 = header.getOrDefault("X-Amz-Date") + var valid_624272 = header.getOrDefault("X-Amz-Signature") valid_624272 = validateParameter(valid_624272, JString, required = false, default = nil) if valid_624272 != nil: - section.add "X-Amz-Date", valid_624272 - var valid_624273 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624272 + var valid_624273 = header.getOrDefault("X-Amz-Content-Sha256") valid_624273 = validateParameter(valid_624273, JString, required = false, default = nil) if valid_624273 != nil: - section.add "X-Amz-Credential", valid_624273 - var valid_624274 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624273 + var valid_624274 = header.getOrDefault("X-Amz-Date") valid_624274 = validateParameter(valid_624274, JString, required = false, default = nil) if valid_624274 != nil: - section.add "X-Amz-Security-Token", valid_624274 - var valid_624275 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624274 + var valid_624275 = header.getOrDefault("X-Amz-Credential") valid_624275 = validateParameter(valid_624275, JString, required = false, default = nil) if valid_624275 != nil: - section.add "X-Amz-Algorithm", valid_624275 - var valid_624276 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624275 + var valid_624276 = header.getOrDefault("X-Amz-Security-Token") valid_624276 = validateParameter(valid_624276, JString, required = false, default = nil) if valid_624276 != nil: - section.add "X-Amz-SignedHeaders", valid_624276 + section.add "X-Amz-Security-Token", valid_624276 + var valid_624277 = header.getOrDefault("X-Amz-Algorithm") + valid_624277 = validateParameter(valid_624277, JString, required = false, + default = nil) + if valid_624277 != nil: + section.add "X-Amz-Algorithm", valid_624277 + var valid_624278 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624278 = validateParameter(valid_624278, JString, required = false, + default = nil) + if valid_624278 != nil: + section.add "X-Amz-SignedHeaders", valid_624278 result.add "header", section ## parameters in `formData` object: ## HostResourceGroupArn: JString @@ -108429,60 +108456,60 @@ proc validate_PostModifyInstancePlacement_624266(path: JsonNode; query: JsonNode ## HostId: JString ## : The ID of the Dedicated Host with which to associate the instance. section = newJObject() - var valid_624277 = formData.getOrDefault("HostResourceGroupArn") - valid_624277 = validateParameter(valid_624277, JString, required = false, - default = nil) - if valid_624277 != nil: - section.add "HostResourceGroupArn", valid_624277 - var valid_624278 = formData.getOrDefault("Affinity") - valid_624278 = validateParameter(valid_624278, JString, required = false, - default = newJString("default")) - if valid_624278 != nil: - section.add "Affinity", valid_624278 - var valid_624279 = formData.getOrDefault("Tenancy") + var valid_624279 = formData.getOrDefault("HostResourceGroupArn") valid_624279 = validateParameter(valid_624279, JString, required = false, - default = newJString("dedicated")) + default = nil) if valid_624279 != nil: - section.add "Tenancy", valid_624279 - var valid_624280 = formData.getOrDefault("PartitionNumber") - valid_624280 = validateParameter(valid_624280, JInt, required = false, default = nil) + section.add "HostResourceGroupArn", valid_624279 + var valid_624280 = formData.getOrDefault("Affinity") + valid_624280 = validateParameter(valid_624280, JString, required = false, + default = newJString("default")) if valid_624280 != nil: - section.add "PartitionNumber", valid_624280 - var valid_624281 = formData.getOrDefault("GroupName") + section.add "Affinity", valid_624280 + var valid_624281 = formData.getOrDefault("Tenancy") valid_624281 = validateParameter(valid_624281, JString, required = false, - default = nil) + default = newJString("dedicated")) if valid_624281 != nil: - section.add "GroupName", valid_624281 - assert formData != nil, - "formData argument is necessary due to required `InstanceId` field" - var valid_624282 = formData.getOrDefault("InstanceId") - valid_624282 = validateParameter(valid_624282, JString, required = true, - default = nil) + section.add "Tenancy", valid_624281 + var valid_624282 = formData.getOrDefault("PartitionNumber") + valid_624282 = validateParameter(valid_624282, JInt, required = false, default = nil) if valid_624282 != nil: - section.add "InstanceId", valid_624282 - var valid_624283 = formData.getOrDefault("HostId") + section.add "PartitionNumber", valid_624282 + var valid_624283 = formData.getOrDefault("GroupName") valid_624283 = validateParameter(valid_624283, JString, required = false, default = nil) if valid_624283 != nil: - section.add "HostId", valid_624283 + section.add "GroupName", valid_624283 + assert formData != nil, + "formData argument is necessary due to required `InstanceId` field" + var valid_624284 = formData.getOrDefault("InstanceId") + valid_624284 = validateParameter(valid_624284, JString, required = true, + default = nil) + if valid_624284 != nil: + section.add "InstanceId", valid_624284 + var valid_624285 = formData.getOrDefault("HostId") + valid_624285 = validateParameter(valid_624285, JString, required = false, + default = nil) + if valid_624285 != nil: + section.add "HostId", valid_624285 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624284: Call_PostModifyInstancePlacement_624265; path: JsonNode; +proc call*(call_624286: Call_PostModifyInstancePlacement_624267; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the placement attributes for a specified instance. You can do the following:

    At least one attribute for affinity, host ID, tenancy, or placement group name must be specified in the request. Affinity and tenancy can be modified in the same request.

    To modify the host ID, tenancy, placement group, or partition for an instance, the instance must be in the stopped state.

    ## - let valid = call_624284.validator(path, query, header, formData, body) - let scheme = call_624284.pickScheme + let valid = call_624286.validator(path, query, header, formData, body) + let scheme = call_624286.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624284.url(scheme.get, call_624284.host, call_624284.base, - call_624284.route, valid.getOrDefault("path"), + let url = call_624286.url(scheme.get, call_624286.host, call_624286.base, + call_624286.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624284, url, valid) + result = atozHook(call_624286, url, valid) -proc call*(call_624285: Call_PostModifyInstancePlacement_624265; +proc call*(call_624287: Call_PostModifyInstancePlacement_624267; InstanceId: string; HostResourceGroupArn: string = ""; Affinity: string = "default"; Tenancy: string = "dedicated"; PartitionNumber: int = 0; GroupName: string = ""; @@ -108506,28 +108533,28 @@ proc call*(call_624285: Call_PostModifyInstancePlacement_624265; ## Version: string (required) ## HostId: string ## : The ID of the Dedicated Host with which to associate the instance. - var query_624286 = newJObject() - var formData_624287 = newJObject() - add(formData_624287, "HostResourceGroupArn", newJString(HostResourceGroupArn)) - add(formData_624287, "Affinity", newJString(Affinity)) - add(formData_624287, "Tenancy", newJString(Tenancy)) - add(formData_624287, "PartitionNumber", newJInt(PartitionNumber)) - add(formData_624287, "GroupName", newJString(GroupName)) - add(formData_624287, "InstanceId", newJString(InstanceId)) - add(query_624286, "Action", newJString(Action)) - add(query_624286, "Version", newJString(Version)) - add(formData_624287, "HostId", newJString(HostId)) - result = call_624285.call(nil, query_624286, nil, formData_624287, nil) - -var postModifyInstancePlacement* = Call_PostModifyInstancePlacement_624265( + var query_624288 = newJObject() + var formData_624289 = newJObject() + add(formData_624289, "HostResourceGroupArn", newJString(HostResourceGroupArn)) + add(formData_624289, "Affinity", newJString(Affinity)) + add(formData_624289, "Tenancy", newJString(Tenancy)) + add(formData_624289, "PartitionNumber", newJInt(PartitionNumber)) + add(formData_624289, "GroupName", newJString(GroupName)) + add(formData_624289, "InstanceId", newJString(InstanceId)) + add(query_624288, "Action", newJString(Action)) + add(query_624288, "Version", newJString(Version)) + add(formData_624289, "HostId", newJString(HostId)) + result = call_624287.call(nil, query_624288, nil, formData_624289, nil) + +var postModifyInstancePlacement* = Call_PostModifyInstancePlacement_624267( name: "postModifyInstancePlacement", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyInstancePlacement", - validator: validate_PostModifyInstancePlacement_624266, base: "/", - url: url_PostModifyInstancePlacement_624267, + validator: validate_PostModifyInstancePlacement_624268, base: "/", + url: url_PostModifyInstancePlacement_624269, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyInstancePlacement_624243 = ref object of OpenApiRestCall_610658 -proc url_GetModifyInstancePlacement_624245(protocol: Scheme; host: string; + Call_GetModifyInstancePlacement_624245 = ref object of OpenApiRestCall_610658 +proc url_GetModifyInstancePlacement_624247(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -108537,7 +108564,7 @@ proc url_GetModifyInstancePlacement_624245(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetModifyInstancePlacement_624244(path: JsonNode; query: JsonNode; +proc validate_GetModifyInstancePlacement_624246(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the placement attributes for a specified instance. You can do the following:

    At least one attribute for affinity, host ID, tenancy, or placement group name must be specified in the request. Affinity and tenancy can be modified in the same request.

    To modify the host ID, tenancy, placement group, or partition for an instance, the instance must be in the stopped state.

    ## @@ -108563,52 +108590,52 @@ proc validate_GetModifyInstancePlacement_624244(path: JsonNode; query: JsonNode; ## Affinity: JString ## : The affinity setting for the instance. section = newJObject() - var valid_624246 = query.getOrDefault("HostId") - valid_624246 = validateParameter(valid_624246, JString, required = false, + var valid_624248 = query.getOrDefault("HostId") + valid_624248 = validateParameter(valid_624248, JString, required = false, default = nil) - if valid_624246 != nil: - section.add "HostId", valid_624246 - var valid_624247 = query.getOrDefault("GroupName") - valid_624247 = validateParameter(valid_624247, JString, required = false, + if valid_624248 != nil: + section.add "HostId", valid_624248 + var valid_624249 = query.getOrDefault("GroupName") + valid_624249 = validateParameter(valid_624249, JString, required = false, default = nil) - if valid_624247 != nil: - section.add "GroupName", valid_624247 + if valid_624249 != nil: + section.add "GroupName", valid_624249 assert query != nil, "query argument is necessary due to required `InstanceId` field" - var valid_624248 = query.getOrDefault("InstanceId") - valid_624248 = validateParameter(valid_624248, JString, required = true, + var valid_624250 = query.getOrDefault("InstanceId") + valid_624250 = validateParameter(valid_624250, JString, required = true, default = nil) - if valid_624248 != nil: - section.add "InstanceId", valid_624248 - var valid_624249 = query.getOrDefault("PartitionNumber") - valid_624249 = validateParameter(valid_624249, JInt, required = false, default = nil) - if valid_624249 != nil: - section.add "PartitionNumber", valid_624249 - var valid_624250 = query.getOrDefault("Action") - valid_624250 = validateParameter(valid_624250, JString, required = true, default = newJString( - "ModifyInstancePlacement")) if valid_624250 != nil: - section.add "Action", valid_624250 - var valid_624251 = query.getOrDefault("HostResourceGroupArn") - valid_624251 = validateParameter(valid_624251, JString, required = false, - default = nil) + section.add "InstanceId", valid_624250 + var valid_624251 = query.getOrDefault("PartitionNumber") + valid_624251 = validateParameter(valid_624251, JInt, required = false, default = nil) if valid_624251 != nil: - section.add "HostResourceGroupArn", valid_624251 - var valid_624252 = query.getOrDefault("Version") - valid_624252 = validateParameter(valid_624252, JString, required = true, - default = newJString("2016-11-15")) + section.add "PartitionNumber", valid_624251 + var valid_624252 = query.getOrDefault("Action") + valid_624252 = validateParameter(valid_624252, JString, required = true, default = newJString( + "ModifyInstancePlacement")) if valid_624252 != nil: - section.add "Version", valid_624252 - var valid_624253 = query.getOrDefault("Tenancy") + section.add "Action", valid_624252 + var valid_624253 = query.getOrDefault("HostResourceGroupArn") valid_624253 = validateParameter(valid_624253, JString, required = false, - default = newJString("dedicated")) + default = nil) if valid_624253 != nil: - section.add "Tenancy", valid_624253 - var valid_624254 = query.getOrDefault("Affinity") - valid_624254 = validateParameter(valid_624254, JString, required = false, - default = newJString("default")) + section.add "HostResourceGroupArn", valid_624253 + var valid_624254 = query.getOrDefault("Version") + valid_624254 = validateParameter(valid_624254, JString, required = true, + default = newJString("2016-11-15")) if valid_624254 != nil: - section.add "Affinity", valid_624254 + section.add "Version", valid_624254 + var valid_624255 = query.getOrDefault("Tenancy") + valid_624255 = validateParameter(valid_624255, JString, required = false, + default = newJString("dedicated")) + if valid_624255 != nil: + section.add "Tenancy", valid_624255 + var valid_624256 = query.getOrDefault("Affinity") + valid_624256 = validateParameter(valid_624256, JString, required = false, + default = newJString("default")) + if valid_624256 != nil: + section.add "Affinity", valid_624256 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -108619,61 +108646,61 @@ proc validate_GetModifyInstancePlacement_624244(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624255 = header.getOrDefault("X-Amz-Signature") - valid_624255 = validateParameter(valid_624255, JString, required = false, - default = nil) - if valid_624255 != nil: - section.add "X-Amz-Signature", valid_624255 - var valid_624256 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624256 = validateParameter(valid_624256, JString, required = false, - default = nil) - if valid_624256 != nil: - section.add "X-Amz-Content-Sha256", valid_624256 - var valid_624257 = header.getOrDefault("X-Amz-Date") + var valid_624257 = header.getOrDefault("X-Amz-Signature") valid_624257 = validateParameter(valid_624257, JString, required = false, default = nil) if valid_624257 != nil: - section.add "X-Amz-Date", valid_624257 - var valid_624258 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624257 + var valid_624258 = header.getOrDefault("X-Amz-Content-Sha256") valid_624258 = validateParameter(valid_624258, JString, required = false, default = nil) if valid_624258 != nil: - section.add "X-Amz-Credential", valid_624258 - var valid_624259 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624258 + var valid_624259 = header.getOrDefault("X-Amz-Date") valid_624259 = validateParameter(valid_624259, JString, required = false, default = nil) if valid_624259 != nil: - section.add "X-Amz-Security-Token", valid_624259 - var valid_624260 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624259 + var valid_624260 = header.getOrDefault("X-Amz-Credential") valid_624260 = validateParameter(valid_624260, JString, required = false, default = nil) if valid_624260 != nil: - section.add "X-Amz-Algorithm", valid_624260 - var valid_624261 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624260 + var valid_624261 = header.getOrDefault("X-Amz-Security-Token") valid_624261 = validateParameter(valid_624261, JString, required = false, default = nil) if valid_624261 != nil: - section.add "X-Amz-SignedHeaders", valid_624261 + section.add "X-Amz-Security-Token", valid_624261 + var valid_624262 = header.getOrDefault("X-Amz-Algorithm") + valid_624262 = validateParameter(valid_624262, JString, required = false, + default = nil) + if valid_624262 != nil: + section.add "X-Amz-Algorithm", valid_624262 + var valid_624263 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624263 = validateParameter(valid_624263, JString, required = false, + default = nil) + if valid_624263 != nil: + section.add "X-Amz-SignedHeaders", valid_624263 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624262: Call_GetModifyInstancePlacement_624243; path: JsonNode; +proc call*(call_624264: Call_GetModifyInstancePlacement_624245; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the placement attributes for a specified instance. You can do the following:

    At least one attribute for affinity, host ID, tenancy, or placement group name must be specified in the request. Affinity and tenancy can be modified in the same request.

    To modify the host ID, tenancy, placement group, or partition for an instance, the instance must be in the stopped state.

    ## - let valid = call_624262.validator(path, query, header, formData, body) - let scheme = call_624262.pickScheme + let valid = call_624264.validator(path, query, header, formData, body) + let scheme = call_624264.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624262.url(scheme.get, call_624262.host, call_624262.base, - call_624262.route, valid.getOrDefault("path"), + let url = call_624264.url(scheme.get, call_624264.host, call_624264.base, + call_624264.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624262, url, valid) + result = atozHook(call_624264, url, valid) -proc call*(call_624263: Call_GetModifyInstancePlacement_624243; InstanceId: string; +proc call*(call_624265: Call_GetModifyInstancePlacement_624245; InstanceId: string; HostId: string = ""; GroupName: string = ""; PartitionNumber: int = 0; Action: string = "ModifyInstancePlacement"; HostResourceGroupArn: string = ""; Version: string = "2016-11-15"; @@ -108696,27 +108723,27 @@ proc call*(call_624263: Call_GetModifyInstancePlacement_624243; InstanceId: stri ## : The tenancy for the instance. ## Affinity: string ## : The affinity setting for the instance. - var query_624264 = newJObject() - add(query_624264, "HostId", newJString(HostId)) - add(query_624264, "GroupName", newJString(GroupName)) - add(query_624264, "InstanceId", newJString(InstanceId)) - add(query_624264, "PartitionNumber", newJInt(PartitionNumber)) - add(query_624264, "Action", newJString(Action)) - add(query_624264, "HostResourceGroupArn", newJString(HostResourceGroupArn)) - add(query_624264, "Version", newJString(Version)) - add(query_624264, "Tenancy", newJString(Tenancy)) - add(query_624264, "Affinity", newJString(Affinity)) - result = call_624263.call(nil, query_624264, nil, nil, nil) - -var getModifyInstancePlacement* = Call_GetModifyInstancePlacement_624243( + var query_624266 = newJObject() + add(query_624266, "HostId", newJString(HostId)) + add(query_624266, "GroupName", newJString(GroupName)) + add(query_624266, "InstanceId", newJString(InstanceId)) + add(query_624266, "PartitionNumber", newJInt(PartitionNumber)) + add(query_624266, "Action", newJString(Action)) + add(query_624266, "HostResourceGroupArn", newJString(HostResourceGroupArn)) + add(query_624266, "Version", newJString(Version)) + add(query_624266, "Tenancy", newJString(Tenancy)) + add(query_624266, "Affinity", newJString(Affinity)) + result = call_624265.call(nil, query_624266, nil, nil, nil) + +var getModifyInstancePlacement* = Call_GetModifyInstancePlacement_624245( name: "getModifyInstancePlacement", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifyInstancePlacement", - validator: validate_GetModifyInstancePlacement_624244, base: "/", - url: url_GetModifyInstancePlacement_624245, + validator: validate_GetModifyInstancePlacement_624246, base: "/", + url: url_GetModifyInstancePlacement_624247, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyLaunchTemplate_624308 = ref object of OpenApiRestCall_610658 -proc url_PostModifyLaunchTemplate_624310(protocol: Scheme; host: string; + Call_PostModifyLaunchTemplate_624310 = ref object of OpenApiRestCall_610658 +proc url_PostModifyLaunchTemplate_624312(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -108727,7 +108754,7 @@ proc url_PostModifyLaunchTemplate_624310(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostModifyLaunchTemplate_624309(path: JsonNode; query: JsonNode; +proc validate_PostModifyLaunchTemplate_624311(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modifies a launch template. You can specify which version of the launch template to set as the default version. When launching an instance, the default version applies when a launch template version is not specified. ## @@ -108739,16 +108766,16 @@ proc validate_PostModifyLaunchTemplate_624309(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_624311 = query.getOrDefault("Action") - valid_624311 = validateParameter(valid_624311, JString, required = true, + var valid_624313 = query.getOrDefault("Action") + valid_624313 = validateParameter(valid_624313, JString, required = true, default = newJString("ModifyLaunchTemplate")) - if valid_624311 != nil: - section.add "Action", valid_624311 - var valid_624312 = query.getOrDefault("Version") - valid_624312 = validateParameter(valid_624312, JString, required = true, + if valid_624313 != nil: + section.add "Action", valid_624313 + var valid_624314 = query.getOrDefault("Version") + valid_624314 = validateParameter(valid_624314, JString, required = true, default = newJString("2016-11-15")) - if valid_624312 != nil: - section.add "Version", valid_624312 + if valid_624314 != nil: + section.add "Version", valid_624314 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -108759,41 +108786,41 @@ proc validate_PostModifyLaunchTemplate_624309(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624313 = header.getOrDefault("X-Amz-Signature") - valid_624313 = validateParameter(valid_624313, JString, required = false, - default = nil) - if valid_624313 != nil: - section.add "X-Amz-Signature", valid_624313 - var valid_624314 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624314 = validateParameter(valid_624314, JString, required = false, - default = nil) - if valid_624314 != nil: - section.add "X-Amz-Content-Sha256", valid_624314 - var valid_624315 = header.getOrDefault("X-Amz-Date") + var valid_624315 = header.getOrDefault("X-Amz-Signature") valid_624315 = validateParameter(valid_624315, JString, required = false, default = nil) if valid_624315 != nil: - section.add "X-Amz-Date", valid_624315 - var valid_624316 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624315 + var valid_624316 = header.getOrDefault("X-Amz-Content-Sha256") valid_624316 = validateParameter(valid_624316, JString, required = false, default = nil) if valid_624316 != nil: - section.add "X-Amz-Credential", valid_624316 - var valid_624317 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624316 + var valid_624317 = header.getOrDefault("X-Amz-Date") valid_624317 = validateParameter(valid_624317, JString, required = false, default = nil) if valid_624317 != nil: - section.add "X-Amz-Security-Token", valid_624317 - var valid_624318 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624317 + var valid_624318 = header.getOrDefault("X-Amz-Credential") valid_624318 = validateParameter(valid_624318, JString, required = false, default = nil) if valid_624318 != nil: - section.add "X-Amz-Algorithm", valid_624318 - var valid_624319 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624318 + var valid_624319 = header.getOrDefault("X-Amz-Security-Token") valid_624319 = validateParameter(valid_624319, JString, required = false, default = nil) if valid_624319 != nil: - section.add "X-Amz-SignedHeaders", valid_624319 + section.add "X-Amz-Security-Token", valid_624319 + var valid_624320 = header.getOrDefault("X-Amz-Algorithm") + valid_624320 = validateParameter(valid_624320, JString, required = false, + default = nil) + if valid_624320 != nil: + section.add "X-Amz-Algorithm", valid_624320 + var valid_624321 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624321 = validateParameter(valid_624321, JString, required = false, + default = nil) + if valid_624321 != nil: + section.add "X-Amz-SignedHeaders", valid_624321 result.add "header", section ## parameters in `formData` object: ## LaunchTemplateId: JString @@ -108808,48 +108835,48 @@ proc validate_PostModifyLaunchTemplate_624309(path: JsonNode; query: JsonNode; ## SetDefaultVersion: JString ## : The version number of the launch template to set as the default version. section = newJObject() - var valid_624320 = formData.getOrDefault("LaunchTemplateId") - valid_624320 = validateParameter(valid_624320, JString, required = false, - default = nil) - if valid_624320 != nil: - section.add "LaunchTemplateId", valid_624320 - var valid_624321 = formData.getOrDefault("DryRun") - valid_624321 = validateParameter(valid_624321, JBool, required = false, default = nil) - if valid_624321 != nil: - section.add "DryRun", valid_624321 - var valid_624322 = formData.getOrDefault("ClientToken") + var valid_624322 = formData.getOrDefault("LaunchTemplateId") valid_624322 = validateParameter(valid_624322, JString, required = false, default = nil) if valid_624322 != nil: - section.add "ClientToken", valid_624322 - var valid_624323 = formData.getOrDefault("LaunchTemplateName") - valid_624323 = validateParameter(valid_624323, JString, required = false, - default = nil) + section.add "LaunchTemplateId", valid_624322 + var valid_624323 = formData.getOrDefault("DryRun") + valid_624323 = validateParameter(valid_624323, JBool, required = false, default = nil) if valid_624323 != nil: - section.add "LaunchTemplateName", valid_624323 - var valid_624324 = formData.getOrDefault("SetDefaultVersion") + section.add "DryRun", valid_624323 + var valid_624324 = formData.getOrDefault("ClientToken") valid_624324 = validateParameter(valid_624324, JString, required = false, default = nil) if valid_624324 != nil: - section.add "SetDefaultVersion", valid_624324 + section.add "ClientToken", valid_624324 + var valid_624325 = formData.getOrDefault("LaunchTemplateName") + valid_624325 = validateParameter(valid_624325, JString, required = false, + default = nil) + if valid_624325 != nil: + section.add "LaunchTemplateName", valid_624325 + var valid_624326 = formData.getOrDefault("SetDefaultVersion") + valid_624326 = validateParameter(valid_624326, JString, required = false, + default = nil) + if valid_624326 != nil: + section.add "SetDefaultVersion", valid_624326 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624325: Call_PostModifyLaunchTemplate_624308; path: JsonNode; +proc call*(call_624327: Call_PostModifyLaunchTemplate_624310; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modifies a launch template. You can specify which version of the launch template to set as the default version. When launching an instance, the default version applies when a launch template version is not specified. ## - let valid = call_624325.validator(path, query, header, formData, body) - let scheme = call_624325.pickScheme + let valid = call_624327.validator(path, query, header, formData, body) + let scheme = call_624327.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624325.url(scheme.get, call_624325.host, call_624325.base, - call_624325.route, valid.getOrDefault("path"), + let url = call_624327.url(scheme.get, call_624327.host, call_624327.base, + call_624327.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624325, url, valid) + result = atozHook(call_624327, url, valid) -proc call*(call_624326: Call_PostModifyLaunchTemplate_624308; +proc call*(call_624328: Call_PostModifyLaunchTemplate_624310; LaunchTemplateId: string = ""; DryRun: bool = false; Action: string = "ModifyLaunchTemplate"; Version: string = "2016-11-15"; ClientToken: string = ""; LaunchTemplateName: string = ""; @@ -108869,25 +108896,25 @@ proc call*(call_624326: Call_PostModifyLaunchTemplate_624308; ## : The name of the launch template. You must specify either the launch template ID or launch template name in the request. ## SetDefaultVersion: string ## : The version number of the launch template to set as the default version. - var query_624327 = newJObject() - var formData_624328 = newJObject() - add(formData_624328, "LaunchTemplateId", newJString(LaunchTemplateId)) - add(formData_624328, "DryRun", newJBool(DryRun)) - add(query_624327, "Action", newJString(Action)) - add(query_624327, "Version", newJString(Version)) - add(formData_624328, "ClientToken", newJString(ClientToken)) - add(formData_624328, "LaunchTemplateName", newJString(LaunchTemplateName)) - add(formData_624328, "SetDefaultVersion", newJString(SetDefaultVersion)) - result = call_624326.call(nil, query_624327, nil, formData_624328, nil) - -var postModifyLaunchTemplate* = Call_PostModifyLaunchTemplate_624308( + var query_624329 = newJObject() + var formData_624330 = newJObject() + add(formData_624330, "LaunchTemplateId", newJString(LaunchTemplateId)) + add(formData_624330, "DryRun", newJBool(DryRun)) + add(query_624329, "Action", newJString(Action)) + add(query_624329, "Version", newJString(Version)) + add(formData_624330, "ClientToken", newJString(ClientToken)) + add(formData_624330, "LaunchTemplateName", newJString(LaunchTemplateName)) + add(formData_624330, "SetDefaultVersion", newJString(SetDefaultVersion)) + result = call_624328.call(nil, query_624329, nil, formData_624330, nil) + +var postModifyLaunchTemplate* = Call_PostModifyLaunchTemplate_624310( name: "postModifyLaunchTemplate", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyLaunchTemplate", - validator: validate_PostModifyLaunchTemplate_624309, base: "/", - url: url_PostModifyLaunchTemplate_624310, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostModifyLaunchTemplate_624311, base: "/", + url: url_PostModifyLaunchTemplate_624312, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyLaunchTemplate_624288 = ref object of OpenApiRestCall_610658 -proc url_GetModifyLaunchTemplate_624290(protocol: Scheme; host: string; base: string; + Call_GetModifyLaunchTemplate_624290 = ref object of OpenApiRestCall_610658 +proc url_GetModifyLaunchTemplate_624292(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -108898,7 +108925,7 @@ proc url_GetModifyLaunchTemplate_624290(protocol: Scheme; host: string; base: st else: result.path = base & route -proc validate_GetModifyLaunchTemplate_624289(path: JsonNode; query: JsonNode; +proc validate_GetModifyLaunchTemplate_624291(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modifies a launch template. You can specify which version of the launch template to set as the default version. When launching an instance, the default version applies when a launch template version is not specified. ## @@ -108921,40 +108948,40 @@ proc validate_GetModifyLaunchTemplate_624289(path: JsonNode; query: JsonNode; ## LaunchTemplateName: JString ## : The name of the launch template. You must specify either the launch template ID or launch template name in the request. section = newJObject() - var valid_624291 = query.getOrDefault("ClientToken") - valid_624291 = validateParameter(valid_624291, JString, required = false, + var valid_624293 = query.getOrDefault("ClientToken") + valid_624293 = validateParameter(valid_624293, JString, required = false, default = nil) - if valid_624291 != nil: - section.add "ClientToken", valid_624291 - var valid_624292 = query.getOrDefault("SetDefaultVersion") - valid_624292 = validateParameter(valid_624292, JString, required = false, - default = nil) - if valid_624292 != nil: - section.add "SetDefaultVersion", valid_624292 - var valid_624293 = query.getOrDefault("DryRun") - valid_624293 = validateParameter(valid_624293, JBool, required = false, default = nil) if valid_624293 != nil: - section.add "DryRun", valid_624293 - var valid_624294 = query.getOrDefault("LaunchTemplateId") + section.add "ClientToken", valid_624293 + var valid_624294 = query.getOrDefault("SetDefaultVersion") valid_624294 = validateParameter(valid_624294, JString, required = false, default = nil) if valid_624294 != nil: - section.add "LaunchTemplateId", valid_624294 - var valid_624295 = query.getOrDefault("Action") - valid_624295 = validateParameter(valid_624295, JString, required = true, - default = newJString("ModifyLaunchTemplate")) + section.add "SetDefaultVersion", valid_624294 + var valid_624295 = query.getOrDefault("DryRun") + valid_624295 = validateParameter(valid_624295, JBool, required = false, default = nil) if valid_624295 != nil: - section.add "Action", valid_624295 - var valid_624296 = query.getOrDefault("Version") - valid_624296 = validateParameter(valid_624296, JString, required = true, - default = newJString("2016-11-15")) - if valid_624296 != nil: - section.add "Version", valid_624296 - var valid_624297 = query.getOrDefault("LaunchTemplateName") - valid_624297 = validateParameter(valid_624297, JString, required = false, + section.add "DryRun", valid_624295 + var valid_624296 = query.getOrDefault("LaunchTemplateId") + valid_624296 = validateParameter(valid_624296, JString, required = false, default = nil) + if valid_624296 != nil: + section.add "LaunchTemplateId", valid_624296 + var valid_624297 = query.getOrDefault("Action") + valid_624297 = validateParameter(valid_624297, JString, required = true, + default = newJString("ModifyLaunchTemplate")) if valid_624297 != nil: - section.add "LaunchTemplateName", valid_624297 + section.add "Action", valid_624297 + var valid_624298 = query.getOrDefault("Version") + valid_624298 = validateParameter(valid_624298, JString, required = true, + default = newJString("2016-11-15")) + if valid_624298 != nil: + section.add "Version", valid_624298 + var valid_624299 = query.getOrDefault("LaunchTemplateName") + valid_624299 = validateParameter(valid_624299, JString, required = false, + default = nil) + if valid_624299 != nil: + section.add "LaunchTemplateName", valid_624299 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -108965,61 +108992,61 @@ proc validate_GetModifyLaunchTemplate_624289(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624298 = header.getOrDefault("X-Amz-Signature") - valid_624298 = validateParameter(valid_624298, JString, required = false, - default = nil) - if valid_624298 != nil: - section.add "X-Amz-Signature", valid_624298 - var valid_624299 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624299 = validateParameter(valid_624299, JString, required = false, - default = nil) - if valid_624299 != nil: - section.add "X-Amz-Content-Sha256", valid_624299 - var valid_624300 = header.getOrDefault("X-Amz-Date") + var valid_624300 = header.getOrDefault("X-Amz-Signature") valid_624300 = validateParameter(valid_624300, JString, required = false, default = nil) if valid_624300 != nil: - section.add "X-Amz-Date", valid_624300 - var valid_624301 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624300 + var valid_624301 = header.getOrDefault("X-Amz-Content-Sha256") valid_624301 = validateParameter(valid_624301, JString, required = false, default = nil) if valid_624301 != nil: - section.add "X-Amz-Credential", valid_624301 - var valid_624302 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624301 + var valid_624302 = header.getOrDefault("X-Amz-Date") valid_624302 = validateParameter(valid_624302, JString, required = false, default = nil) if valid_624302 != nil: - section.add "X-Amz-Security-Token", valid_624302 - var valid_624303 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624302 + var valid_624303 = header.getOrDefault("X-Amz-Credential") valid_624303 = validateParameter(valid_624303, JString, required = false, default = nil) if valid_624303 != nil: - section.add "X-Amz-Algorithm", valid_624303 - var valid_624304 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624303 + var valid_624304 = header.getOrDefault("X-Amz-Security-Token") valid_624304 = validateParameter(valid_624304, JString, required = false, default = nil) if valid_624304 != nil: - section.add "X-Amz-SignedHeaders", valid_624304 + section.add "X-Amz-Security-Token", valid_624304 + var valid_624305 = header.getOrDefault("X-Amz-Algorithm") + valid_624305 = validateParameter(valid_624305, JString, required = false, + default = nil) + if valid_624305 != nil: + section.add "X-Amz-Algorithm", valid_624305 + var valid_624306 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624306 = validateParameter(valid_624306, JString, required = false, + default = nil) + if valid_624306 != nil: + section.add "X-Amz-SignedHeaders", valid_624306 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624305: Call_GetModifyLaunchTemplate_624288; path: JsonNode; +proc call*(call_624307: Call_GetModifyLaunchTemplate_624290; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modifies a launch template. You can specify which version of the launch template to set as the default version. When launching an instance, the default version applies when a launch template version is not specified. ## - let valid = call_624305.validator(path, query, header, formData, body) - let scheme = call_624305.pickScheme + let valid = call_624307.validator(path, query, header, formData, body) + let scheme = call_624307.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624305.url(scheme.get, call_624305.host, call_624305.base, - call_624305.route, valid.getOrDefault("path"), + let url = call_624307.url(scheme.get, call_624307.host, call_624307.base, + call_624307.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624305, url, valid) + result = atozHook(call_624307, url, valid) -proc call*(call_624306: Call_GetModifyLaunchTemplate_624288; +proc call*(call_624308: Call_GetModifyLaunchTemplate_624290; ClientToken: string = ""; SetDefaultVersion: string = ""; DryRun: bool = false; LaunchTemplateId: string = ""; Action: string = "ModifyLaunchTemplate"; Version: string = "2016-11-15"; @@ -109039,24 +109066,24 @@ proc call*(call_624306: Call_GetModifyLaunchTemplate_624288; ## Version: string (required) ## LaunchTemplateName: string ## : The name of the launch template. You must specify either the launch template ID or launch template name in the request. - var query_624307 = newJObject() - add(query_624307, "ClientToken", newJString(ClientToken)) - add(query_624307, "SetDefaultVersion", newJString(SetDefaultVersion)) - add(query_624307, "DryRun", newJBool(DryRun)) - add(query_624307, "LaunchTemplateId", newJString(LaunchTemplateId)) - add(query_624307, "Action", newJString(Action)) - add(query_624307, "Version", newJString(Version)) - add(query_624307, "LaunchTemplateName", newJString(LaunchTemplateName)) - result = call_624306.call(nil, query_624307, nil, nil, nil) - -var getModifyLaunchTemplate* = Call_GetModifyLaunchTemplate_624288( + var query_624309 = newJObject() + add(query_624309, "ClientToken", newJString(ClientToken)) + add(query_624309, "SetDefaultVersion", newJString(SetDefaultVersion)) + add(query_624309, "DryRun", newJBool(DryRun)) + add(query_624309, "LaunchTemplateId", newJString(LaunchTemplateId)) + add(query_624309, "Action", newJString(Action)) + add(query_624309, "Version", newJString(Version)) + add(query_624309, "LaunchTemplateName", newJString(LaunchTemplateName)) + result = call_624308.call(nil, query_624309, nil, nil, nil) + +var getModifyLaunchTemplate* = Call_GetModifyLaunchTemplate_624290( name: "getModifyLaunchTemplate", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifyLaunchTemplate", - validator: validate_GetModifyLaunchTemplate_624289, base: "/", - url: url_GetModifyLaunchTemplate_624290, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetModifyLaunchTemplate_624291, base: "/", + url: url_GetModifyLaunchTemplate_624292, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyNetworkInterfaceAttribute_624351 = ref object of OpenApiRestCall_610658 -proc url_PostModifyNetworkInterfaceAttribute_624353(protocol: Scheme; host: string; + Call_PostModifyNetworkInterfaceAttribute_624353 = ref object of OpenApiRestCall_610658 +proc url_PostModifyNetworkInterfaceAttribute_624355(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -109066,7 +109093,7 @@ proc url_PostModifyNetworkInterfaceAttribute_624353(protocol: Scheme; host: stri else: result.path = base & route -proc validate_PostModifyNetworkInterfaceAttribute_624352(path: JsonNode; +proc validate_PostModifyNetworkInterfaceAttribute_624354(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modifies the specified network interface attribute. You can specify only one attribute at a time. You can use this action to attach and detach security groups from an existing EC2 instance. ## @@ -109078,16 +109105,16 @@ proc validate_PostModifyNetworkInterfaceAttribute_624352(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_624354 = query.getOrDefault("Action") - valid_624354 = validateParameter(valid_624354, JString, required = true, default = newJString( + var valid_624356 = query.getOrDefault("Action") + valid_624356 = validateParameter(valid_624356, JString, required = true, default = newJString( "ModifyNetworkInterfaceAttribute")) - if valid_624354 != nil: - section.add "Action", valid_624354 - var valid_624355 = query.getOrDefault("Version") - valid_624355 = validateParameter(valid_624355, JString, required = true, + if valid_624356 != nil: + section.add "Action", valid_624356 + var valid_624357 = query.getOrDefault("Version") + valid_624357 = validateParameter(valid_624357, JString, required = true, default = newJString("2016-11-15")) - if valid_624355 != nil: - section.add "Version", valid_624355 + if valid_624357 != nil: + section.add "Version", valid_624357 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -109098,41 +109125,41 @@ proc validate_PostModifyNetworkInterfaceAttribute_624352(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624356 = header.getOrDefault("X-Amz-Signature") - valid_624356 = validateParameter(valid_624356, JString, required = false, - default = nil) - if valid_624356 != nil: - section.add "X-Amz-Signature", valid_624356 - var valid_624357 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624357 = validateParameter(valid_624357, JString, required = false, - default = nil) - if valid_624357 != nil: - section.add "X-Amz-Content-Sha256", valid_624357 - var valid_624358 = header.getOrDefault("X-Amz-Date") + var valid_624358 = header.getOrDefault("X-Amz-Signature") valid_624358 = validateParameter(valid_624358, JString, required = false, default = nil) if valid_624358 != nil: - section.add "X-Amz-Date", valid_624358 - var valid_624359 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624358 + var valid_624359 = header.getOrDefault("X-Amz-Content-Sha256") valid_624359 = validateParameter(valid_624359, JString, required = false, default = nil) if valid_624359 != nil: - section.add "X-Amz-Credential", valid_624359 - var valid_624360 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624359 + var valid_624360 = header.getOrDefault("X-Amz-Date") valid_624360 = validateParameter(valid_624360, JString, required = false, default = nil) if valid_624360 != nil: - section.add "X-Amz-Security-Token", valid_624360 - var valid_624361 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624360 + var valid_624361 = header.getOrDefault("X-Amz-Credential") valid_624361 = validateParameter(valid_624361, JString, required = false, default = nil) if valid_624361 != nil: - section.add "X-Amz-Algorithm", valid_624361 - var valid_624362 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624361 + var valid_624362 = header.getOrDefault("X-Amz-Security-Token") valid_624362 = validateParameter(valid_624362, JString, required = false, default = nil) if valid_624362 != nil: - section.add "X-Amz-SignedHeaders", valid_624362 + section.add "X-Amz-Security-Token", valid_624362 + var valid_624363 = header.getOrDefault("X-Amz-Algorithm") + valid_624363 = validateParameter(valid_624363, JString, required = false, + default = nil) + if valid_624363 != nil: + section.add "X-Amz-Algorithm", valid_624363 + var valid_624364 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624364 = validateParameter(valid_624364, JString, required = false, + default = nil) + if valid_624364 != nil: + section.add "X-Amz-SignedHeaders", valid_624364 result.add "header", section ## parameters in `formData` object: ## NetworkInterfaceId: JString (required) @@ -109155,59 +109182,59 @@ proc validate_PostModifyNetworkInterfaceAttribute_624352(path: JsonNode; ## Indicates whether the network interface is deleted when the instance is terminated. section = newJObject() assert formData != nil, "formData argument is necessary due to required `NetworkInterfaceId` field" - var valid_624363 = formData.getOrDefault("NetworkInterfaceId") - valid_624363 = validateParameter(valid_624363, JString, required = true, - default = nil) - if valid_624363 != nil: - section.add "NetworkInterfaceId", valid_624363 - var valid_624364 = formData.getOrDefault("SecurityGroupId") - valid_624364 = validateParameter(valid_624364, JArray, required = false, - default = nil) - if valid_624364 != nil: - section.add "SecurityGroupId", valid_624364 - var valid_624365 = formData.getOrDefault("Attachment.AttachmentId") - valid_624365 = validateParameter(valid_624365, JString, required = false, + var valid_624365 = formData.getOrDefault("NetworkInterfaceId") + valid_624365 = validateParameter(valid_624365, JString, required = true, default = nil) if valid_624365 != nil: - section.add "Attachment.AttachmentId", valid_624365 - var valid_624366 = formData.getOrDefault("SourceDestCheck.Value") - valid_624366 = validateParameter(valid_624366, JString, required = false, + section.add "NetworkInterfaceId", valid_624365 + var valid_624366 = formData.getOrDefault("SecurityGroupId") + valid_624366 = validateParameter(valid_624366, JArray, required = false, default = nil) if valid_624366 != nil: - section.add "SourceDestCheck.Value", valid_624366 - var valid_624367 = formData.getOrDefault("Description.Value") + section.add "SecurityGroupId", valid_624366 + var valid_624367 = formData.getOrDefault("Attachment.AttachmentId") valid_624367 = validateParameter(valid_624367, JString, required = false, default = nil) if valid_624367 != nil: - section.add "Description.Value", valid_624367 - var valid_624368 = formData.getOrDefault("DryRun") - valid_624368 = validateParameter(valid_624368, JBool, required = false, default = nil) + section.add "Attachment.AttachmentId", valid_624367 + var valid_624368 = formData.getOrDefault("SourceDestCheck.Value") + valid_624368 = validateParameter(valid_624368, JString, required = false, + default = nil) if valid_624368 != nil: - section.add "DryRun", valid_624368 - var valid_624369 = formData.getOrDefault("Attachment.DeleteOnTermination") + section.add "SourceDestCheck.Value", valid_624368 + var valid_624369 = formData.getOrDefault("Description.Value") valid_624369 = validateParameter(valid_624369, JString, required = false, default = nil) if valid_624369 != nil: - section.add "Attachment.DeleteOnTermination", valid_624369 + section.add "Description.Value", valid_624369 + var valid_624370 = formData.getOrDefault("DryRun") + valid_624370 = validateParameter(valid_624370, JBool, required = false, default = nil) + if valid_624370 != nil: + section.add "DryRun", valid_624370 + var valid_624371 = formData.getOrDefault("Attachment.DeleteOnTermination") + valid_624371 = validateParameter(valid_624371, JString, required = false, + default = nil) + if valid_624371 != nil: + section.add "Attachment.DeleteOnTermination", valid_624371 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624370: Call_PostModifyNetworkInterfaceAttribute_624351; +proc call*(call_624372: Call_PostModifyNetworkInterfaceAttribute_624353; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modifies the specified network interface attribute. You can specify only one attribute at a time. You can use this action to attach and detach security groups from an existing EC2 instance. ## - let valid = call_624370.validator(path, query, header, formData, body) - let scheme = call_624370.pickScheme + let valid = call_624372.validator(path, query, header, formData, body) + let scheme = call_624372.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624370.url(scheme.get, call_624370.host, call_624370.base, - call_624370.route, valid.getOrDefault("path"), + let url = call_624372.url(scheme.get, call_624372.host, call_624372.base, + call_624372.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624370, url, valid) + result = atozHook(call_624372, url, valid) -proc call*(call_624371: Call_PostModifyNetworkInterfaceAttribute_624351; +proc call*(call_624373: Call_PostModifyNetworkInterfaceAttribute_624353; NetworkInterfaceId: string; SecurityGroupId: JsonNode = nil; AttachmentAttachmentId: string = ""; SourceDestCheckValue: string = ""; DescriptionValue: string = ""; DryRun: bool = false; @@ -109235,31 +109262,31 @@ proc call*(call_624371: Call_PostModifyNetworkInterfaceAttribute_624351; ## AttachmentDeleteOnTermination: string ## : Describes an attachment change. ## Indicates whether the network interface is deleted when the instance is terminated. - var query_624372 = newJObject() - var formData_624373 = newJObject() - add(formData_624373, "NetworkInterfaceId", newJString(NetworkInterfaceId)) + var query_624374 = newJObject() + var formData_624375 = newJObject() + add(formData_624375, "NetworkInterfaceId", newJString(NetworkInterfaceId)) if SecurityGroupId != nil: - formData_624373.add "SecurityGroupId", SecurityGroupId - add(formData_624373, "Attachment.AttachmentId", + formData_624375.add "SecurityGroupId", SecurityGroupId + add(formData_624375, "Attachment.AttachmentId", newJString(AttachmentAttachmentId)) - add(formData_624373, "SourceDestCheck.Value", newJString(SourceDestCheckValue)) - add(formData_624373, "Description.Value", newJString(DescriptionValue)) - add(formData_624373, "DryRun", newJBool(DryRun)) - add(query_624372, "Action", newJString(Action)) - add(query_624372, "Version", newJString(Version)) - add(formData_624373, "Attachment.DeleteOnTermination", + add(formData_624375, "SourceDestCheck.Value", newJString(SourceDestCheckValue)) + add(formData_624375, "Description.Value", newJString(DescriptionValue)) + add(formData_624375, "DryRun", newJBool(DryRun)) + add(query_624374, "Action", newJString(Action)) + add(query_624374, "Version", newJString(Version)) + add(formData_624375, "Attachment.DeleteOnTermination", newJString(AttachmentDeleteOnTermination)) - result = call_624371.call(nil, query_624372, nil, formData_624373, nil) + result = call_624373.call(nil, query_624374, nil, formData_624375, nil) -var postModifyNetworkInterfaceAttribute* = Call_PostModifyNetworkInterfaceAttribute_624351( +var postModifyNetworkInterfaceAttribute* = Call_PostModifyNetworkInterfaceAttribute_624353( name: "postModifyNetworkInterfaceAttribute", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyNetworkInterfaceAttribute", - validator: validate_PostModifyNetworkInterfaceAttribute_624352, base: "/", - url: url_PostModifyNetworkInterfaceAttribute_624353, + validator: validate_PostModifyNetworkInterfaceAttribute_624354, base: "/", + url: url_PostModifyNetworkInterfaceAttribute_624355, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyNetworkInterfaceAttribute_624329 = ref object of OpenApiRestCall_610658 -proc url_GetModifyNetworkInterfaceAttribute_624331(protocol: Scheme; host: string; + Call_GetModifyNetworkInterfaceAttribute_624331 = ref object of OpenApiRestCall_610658 +proc url_GetModifyNetworkInterfaceAttribute_624333(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -109269,7 +109296,7 @@ proc url_GetModifyNetworkInterfaceAttribute_624331(protocol: Scheme; host: strin else: result.path = base & route -proc validate_GetModifyNetworkInterfaceAttribute_624330(path: JsonNode; +proc validate_GetModifyNetworkInterfaceAttribute_624332(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modifies the specified network interface attribute. You can specify only one attribute at a time. You can use this action to attach and detach security groups from an existing EC2 instance. ## @@ -109299,51 +109326,51 @@ proc validate_GetModifyNetworkInterfaceAttribute_624330(path: JsonNode; ## : Describes an attachment change. ## The ID of the network interface attachment. section = newJObject() - var valid_624332 = query.getOrDefault("SecurityGroupId") - valid_624332 = validateParameter(valid_624332, JArray, required = false, - default = nil) - if valid_624332 != nil: - section.add "SecurityGroupId", valid_624332 - assert query != nil, "query argument is necessary due to required `NetworkInterfaceId` field" - var valid_624333 = query.getOrDefault("NetworkInterfaceId") - valid_624333 = validateParameter(valid_624333, JString, required = true, + var valid_624334 = query.getOrDefault("SecurityGroupId") + valid_624334 = validateParameter(valid_624334, JArray, required = false, default = nil) - if valid_624333 != nil: - section.add "NetworkInterfaceId", valid_624333 - var valid_624334 = query.getOrDefault("DryRun") - valid_624334 = validateParameter(valid_624334, JBool, required = false, default = nil) if valid_624334 != nil: - section.add "DryRun", valid_624334 - var valid_624335 = query.getOrDefault("Attachment.DeleteOnTermination") - valid_624335 = validateParameter(valid_624335, JString, required = false, + section.add "SecurityGroupId", valid_624334 + assert query != nil, "query argument is necessary due to required `NetworkInterfaceId` field" + var valid_624335 = query.getOrDefault("NetworkInterfaceId") + valid_624335 = validateParameter(valid_624335, JString, required = true, default = nil) if valid_624335 != nil: - section.add "Attachment.DeleteOnTermination", valid_624335 - var valid_624336 = query.getOrDefault("SourceDestCheck.Value") - valid_624336 = validateParameter(valid_624336, JString, required = false, - default = nil) + section.add "NetworkInterfaceId", valid_624335 + var valid_624336 = query.getOrDefault("DryRun") + valid_624336 = validateParameter(valid_624336, JBool, required = false, default = nil) if valid_624336 != nil: - section.add "SourceDestCheck.Value", valid_624336 - var valid_624337 = query.getOrDefault("Description.Value") + section.add "DryRun", valid_624336 + var valid_624337 = query.getOrDefault("Attachment.DeleteOnTermination") valid_624337 = validateParameter(valid_624337, JString, required = false, default = nil) if valid_624337 != nil: - section.add "Description.Value", valid_624337 - var valid_624338 = query.getOrDefault("Action") - valid_624338 = validateParameter(valid_624338, JString, required = true, default = newJString( - "ModifyNetworkInterfaceAttribute")) + section.add "Attachment.DeleteOnTermination", valid_624337 + var valid_624338 = query.getOrDefault("SourceDestCheck.Value") + valid_624338 = validateParameter(valid_624338, JString, required = false, + default = nil) if valid_624338 != nil: - section.add "Action", valid_624338 - var valid_624339 = query.getOrDefault("Version") - valid_624339 = validateParameter(valid_624339, JString, required = true, - default = newJString("2016-11-15")) - if valid_624339 != nil: - section.add "Version", valid_624339 - var valid_624340 = query.getOrDefault("Attachment.AttachmentId") - valid_624340 = validateParameter(valid_624340, JString, required = false, + section.add "SourceDestCheck.Value", valid_624338 + var valid_624339 = query.getOrDefault("Description.Value") + valid_624339 = validateParameter(valid_624339, JString, required = false, default = nil) + if valid_624339 != nil: + section.add "Description.Value", valid_624339 + var valid_624340 = query.getOrDefault("Action") + valid_624340 = validateParameter(valid_624340, JString, required = true, default = newJString( + "ModifyNetworkInterfaceAttribute")) if valid_624340 != nil: - section.add "Attachment.AttachmentId", valid_624340 + section.add "Action", valid_624340 + var valid_624341 = query.getOrDefault("Version") + valid_624341 = validateParameter(valid_624341, JString, required = true, + default = newJString("2016-11-15")) + if valid_624341 != nil: + section.add "Version", valid_624341 + var valid_624342 = query.getOrDefault("Attachment.AttachmentId") + valid_624342 = validateParameter(valid_624342, JString, required = false, + default = nil) + if valid_624342 != nil: + section.add "Attachment.AttachmentId", valid_624342 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -109354,62 +109381,62 @@ proc validate_GetModifyNetworkInterfaceAttribute_624330(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624341 = header.getOrDefault("X-Amz-Signature") - valid_624341 = validateParameter(valid_624341, JString, required = false, - default = nil) - if valid_624341 != nil: - section.add "X-Amz-Signature", valid_624341 - var valid_624342 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624342 = validateParameter(valid_624342, JString, required = false, - default = nil) - if valid_624342 != nil: - section.add "X-Amz-Content-Sha256", valid_624342 - var valid_624343 = header.getOrDefault("X-Amz-Date") + var valid_624343 = header.getOrDefault("X-Amz-Signature") valid_624343 = validateParameter(valid_624343, JString, required = false, default = nil) if valid_624343 != nil: - section.add "X-Amz-Date", valid_624343 - var valid_624344 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624343 + var valid_624344 = header.getOrDefault("X-Amz-Content-Sha256") valid_624344 = validateParameter(valid_624344, JString, required = false, default = nil) if valid_624344 != nil: - section.add "X-Amz-Credential", valid_624344 - var valid_624345 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624344 + var valid_624345 = header.getOrDefault("X-Amz-Date") valid_624345 = validateParameter(valid_624345, JString, required = false, default = nil) if valid_624345 != nil: - section.add "X-Amz-Security-Token", valid_624345 - var valid_624346 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624345 + var valid_624346 = header.getOrDefault("X-Amz-Credential") valid_624346 = validateParameter(valid_624346, JString, required = false, default = nil) if valid_624346 != nil: - section.add "X-Amz-Algorithm", valid_624346 - var valid_624347 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624346 + var valid_624347 = header.getOrDefault("X-Amz-Security-Token") valid_624347 = validateParameter(valid_624347, JString, required = false, default = nil) if valid_624347 != nil: - section.add "X-Amz-SignedHeaders", valid_624347 + section.add "X-Amz-Security-Token", valid_624347 + var valid_624348 = header.getOrDefault("X-Amz-Algorithm") + valid_624348 = validateParameter(valid_624348, JString, required = false, + default = nil) + if valid_624348 != nil: + section.add "X-Amz-Algorithm", valid_624348 + var valid_624349 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624349 = validateParameter(valid_624349, JString, required = false, + default = nil) + if valid_624349 != nil: + section.add "X-Amz-SignedHeaders", valid_624349 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624348: Call_GetModifyNetworkInterfaceAttribute_624329; +proc call*(call_624350: Call_GetModifyNetworkInterfaceAttribute_624331; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modifies the specified network interface attribute. You can specify only one attribute at a time. You can use this action to attach and detach security groups from an existing EC2 instance. ## - let valid = call_624348.validator(path, query, header, formData, body) - let scheme = call_624348.pickScheme + let valid = call_624350.validator(path, query, header, formData, body) + let scheme = call_624350.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624348.url(scheme.get, call_624348.host, call_624348.base, - call_624348.route, valid.getOrDefault("path"), + let url = call_624350.url(scheme.get, call_624350.host, call_624350.base, + call_624350.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624348, url, valid) + result = atozHook(call_624350, url, valid) -proc call*(call_624349: Call_GetModifyNetworkInterfaceAttribute_624329; +proc call*(call_624351: Call_GetModifyNetworkInterfaceAttribute_624331; NetworkInterfaceId: string; SecurityGroupId: JsonNode = nil; DryRun: bool = false; AttachmentDeleteOnTermination: string = ""; SourceDestCheckValue: string = ""; DescriptionValue: string = ""; @@ -109437,29 +109464,29 @@ proc call*(call_624349: Call_GetModifyNetworkInterfaceAttribute_624329; ## AttachmentAttachmentId: string ## : Describes an attachment change. ## The ID of the network interface attachment. - var query_624350 = newJObject() + var query_624352 = newJObject() if SecurityGroupId != nil: - query_624350.add "SecurityGroupId", SecurityGroupId - add(query_624350, "NetworkInterfaceId", newJString(NetworkInterfaceId)) - add(query_624350, "DryRun", newJBool(DryRun)) - add(query_624350, "Attachment.DeleteOnTermination", + query_624352.add "SecurityGroupId", SecurityGroupId + add(query_624352, "NetworkInterfaceId", newJString(NetworkInterfaceId)) + add(query_624352, "DryRun", newJBool(DryRun)) + add(query_624352, "Attachment.DeleteOnTermination", newJString(AttachmentDeleteOnTermination)) - add(query_624350, "SourceDestCheck.Value", newJString(SourceDestCheckValue)) - add(query_624350, "Description.Value", newJString(DescriptionValue)) - add(query_624350, "Action", newJString(Action)) - add(query_624350, "Version", newJString(Version)) - add(query_624350, "Attachment.AttachmentId", newJString(AttachmentAttachmentId)) - result = call_624349.call(nil, query_624350, nil, nil, nil) - -var getModifyNetworkInterfaceAttribute* = Call_GetModifyNetworkInterfaceAttribute_624329( + add(query_624352, "SourceDestCheck.Value", newJString(SourceDestCheckValue)) + add(query_624352, "Description.Value", newJString(DescriptionValue)) + add(query_624352, "Action", newJString(Action)) + add(query_624352, "Version", newJString(Version)) + add(query_624352, "Attachment.AttachmentId", newJString(AttachmentAttachmentId)) + result = call_624351.call(nil, query_624352, nil, nil, nil) + +var getModifyNetworkInterfaceAttribute* = Call_GetModifyNetworkInterfaceAttribute_624331( name: "getModifyNetworkInterfaceAttribute", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifyNetworkInterfaceAttribute", - validator: validate_GetModifyNetworkInterfaceAttribute_624330, base: "/", - url: url_GetModifyNetworkInterfaceAttribute_624331, + validator: validate_GetModifyNetworkInterfaceAttribute_624332, base: "/", + url: url_GetModifyNetworkInterfaceAttribute_624333, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyReservedInstances_624392 = ref object of OpenApiRestCall_610658 -proc url_PostModifyReservedInstances_624394(protocol: Scheme; host: string; + Call_PostModifyReservedInstances_624394 = ref object of OpenApiRestCall_610658 +proc url_PostModifyReservedInstances_624396(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -109469,7 +109496,7 @@ proc url_PostModifyReservedInstances_624394(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostModifyReservedInstances_624393(path: JsonNode; query: JsonNode; +proc validate_PostModifyReservedInstances_624395(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the Availability Zone, instance count, instance type, or network platform (EC2-Classic or EC2-VPC) of your Reserved Instances. The Reserved Instances to be modified must be identical, except for Availability Zone, network platform, and instance type.

    For more information, see Modifying Reserved Instances in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -109481,16 +109508,16 @@ proc validate_PostModifyReservedInstances_624393(path: JsonNode; query: JsonNode ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_624395 = query.getOrDefault("Action") - valid_624395 = validateParameter(valid_624395, JString, required = true, default = newJString( + var valid_624397 = query.getOrDefault("Action") + valid_624397 = validateParameter(valid_624397, JString, required = true, default = newJString( "ModifyReservedInstances")) - if valid_624395 != nil: - section.add "Action", valid_624395 - var valid_624396 = query.getOrDefault("Version") - valid_624396 = validateParameter(valid_624396, JString, required = true, + if valid_624397 != nil: + section.add "Action", valid_624397 + var valid_624398 = query.getOrDefault("Version") + valid_624398 = validateParameter(valid_624398, JString, required = true, default = newJString("2016-11-15")) - if valid_624396 != nil: - section.add "Version", valid_624396 + if valid_624398 != nil: + section.add "Version", valid_624398 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -109501,41 +109528,41 @@ proc validate_PostModifyReservedInstances_624393(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624397 = header.getOrDefault("X-Amz-Signature") - valid_624397 = validateParameter(valid_624397, JString, required = false, - default = nil) - if valid_624397 != nil: - section.add "X-Amz-Signature", valid_624397 - var valid_624398 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624398 = validateParameter(valid_624398, JString, required = false, - default = nil) - if valid_624398 != nil: - section.add "X-Amz-Content-Sha256", valid_624398 - var valid_624399 = header.getOrDefault("X-Amz-Date") + var valid_624399 = header.getOrDefault("X-Amz-Signature") valid_624399 = validateParameter(valid_624399, JString, required = false, default = nil) if valid_624399 != nil: - section.add "X-Amz-Date", valid_624399 - var valid_624400 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624399 + var valid_624400 = header.getOrDefault("X-Amz-Content-Sha256") valid_624400 = validateParameter(valid_624400, JString, required = false, default = nil) if valid_624400 != nil: - section.add "X-Amz-Credential", valid_624400 - var valid_624401 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624400 + var valid_624401 = header.getOrDefault("X-Amz-Date") valid_624401 = validateParameter(valid_624401, JString, required = false, default = nil) if valid_624401 != nil: - section.add "X-Amz-Security-Token", valid_624401 - var valid_624402 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624401 + var valid_624402 = header.getOrDefault("X-Amz-Credential") valid_624402 = validateParameter(valid_624402, JString, required = false, default = nil) if valid_624402 != nil: - section.add "X-Amz-Algorithm", valid_624402 - var valid_624403 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624402 + var valid_624403 = header.getOrDefault("X-Amz-Security-Token") valid_624403 = validateParameter(valid_624403, JString, required = false, default = nil) if valid_624403 != nil: - section.add "X-Amz-SignedHeaders", valid_624403 + section.add "X-Amz-Security-Token", valid_624403 + var valid_624404 = header.getOrDefault("X-Amz-Algorithm") + valid_624404 = validateParameter(valid_624404, JString, required = false, + default = nil) + if valid_624404 != nil: + section.add "X-Amz-Algorithm", valid_624404 + var valid_624405 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624405 = validateParameter(valid_624405, JString, required = false, + default = nil) + if valid_624405 != nil: + section.add "X-Amz-SignedHeaders", valid_624405 result.add "header", section ## parameters in `formData` object: ## ReservedInstancesConfigurationSetItemType: JArray (required) @@ -109547,37 +109574,37 @@ proc validate_PostModifyReservedInstances_624393(path: JsonNode; query: JsonNode ## href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring Idempotency. section = newJObject() assert formData != nil, "formData argument is necessary due to required `ReservedInstancesConfigurationSetItemType` field" - var valid_624404 = formData.getOrDefault("ReservedInstancesConfigurationSetItemType") - valid_624404 = validateParameter(valid_624404, JArray, required = true, default = nil) - if valid_624404 != nil: - section.add "ReservedInstancesConfigurationSetItemType", valid_624404 - var valid_624405 = formData.getOrDefault("ReservedInstancesId") - valid_624405 = validateParameter(valid_624405, JArray, required = true, default = nil) - if valid_624405 != nil: - section.add "ReservedInstancesId", valid_624405 - var valid_624406 = formData.getOrDefault("ClientToken") - valid_624406 = validateParameter(valid_624406, JString, required = false, - default = nil) + var valid_624406 = formData.getOrDefault("ReservedInstancesConfigurationSetItemType") + valid_624406 = validateParameter(valid_624406, JArray, required = true, default = nil) if valid_624406 != nil: - section.add "ClientToken", valid_624406 + section.add "ReservedInstancesConfigurationSetItemType", valid_624406 + var valid_624407 = formData.getOrDefault("ReservedInstancesId") + valid_624407 = validateParameter(valid_624407, JArray, required = true, default = nil) + if valid_624407 != nil: + section.add "ReservedInstancesId", valid_624407 + var valid_624408 = formData.getOrDefault("ClientToken") + valid_624408 = validateParameter(valid_624408, JString, required = false, + default = nil) + if valid_624408 != nil: + section.add "ClientToken", valid_624408 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624407: Call_PostModifyReservedInstances_624392; path: JsonNode; +proc call*(call_624409: Call_PostModifyReservedInstances_624394; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the Availability Zone, instance count, instance type, or network platform (EC2-Classic or EC2-VPC) of your Reserved Instances. The Reserved Instances to be modified must be identical, except for Availability Zone, network platform, and instance type.

    For more information, see Modifying Reserved Instances in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_624407.validator(path, query, header, formData, body) - let scheme = call_624407.pickScheme + let valid = call_624409.validator(path, query, header, formData, body) + let scheme = call_624409.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624407.url(scheme.get, call_624407.host, call_624407.base, - call_624407.route, valid.getOrDefault("path"), + let url = call_624409.url(scheme.get, call_624409.host, call_624409.base, + call_624409.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624407, url, valid) + result = atozHook(call_624409, url, valid) -proc call*(call_624408: Call_PostModifyReservedInstances_624392; +proc call*(call_624410: Call_PostModifyReservedInstances_624394; ReservedInstancesConfigurationSetItemType: JsonNode; ReservedInstancesId: JsonNode; Action: string = "ModifyReservedInstances"; @@ -109593,27 +109620,27 @@ proc call*(call_624408: Call_PostModifyReservedInstances_624392; ## ClientToken: string ## : A unique, case-sensitive token you provide to ensure idempotency of your modification request. For more information, see Ensuring Idempotency. - var query_624409 = newJObject() - var formData_624410 = newJObject() + var query_624411 = newJObject() + var formData_624412 = newJObject() if ReservedInstancesConfigurationSetItemType != nil: - formData_624410.add "ReservedInstancesConfigurationSetItemType", + formData_624412.add "ReservedInstancesConfigurationSetItemType", ReservedInstancesConfigurationSetItemType if ReservedInstancesId != nil: - formData_624410.add "ReservedInstancesId", ReservedInstancesId - add(query_624409, "Action", newJString(Action)) - add(query_624409, "Version", newJString(Version)) - add(formData_624410, "ClientToken", newJString(ClientToken)) - result = call_624408.call(nil, query_624409, nil, formData_624410, nil) + formData_624412.add "ReservedInstancesId", ReservedInstancesId + add(query_624411, "Action", newJString(Action)) + add(query_624411, "Version", newJString(Version)) + add(formData_624412, "ClientToken", newJString(ClientToken)) + result = call_624410.call(nil, query_624411, nil, formData_624412, nil) -var postModifyReservedInstances* = Call_PostModifyReservedInstances_624392( +var postModifyReservedInstances* = Call_PostModifyReservedInstances_624394( name: "postModifyReservedInstances", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyReservedInstances", - validator: validate_PostModifyReservedInstances_624393, base: "/", - url: url_PostModifyReservedInstances_624394, + validator: validate_PostModifyReservedInstances_624395, base: "/", + url: url_PostModifyReservedInstances_624396, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyReservedInstances_624374 = ref object of OpenApiRestCall_610658 -proc url_GetModifyReservedInstances_624376(protocol: Scheme; host: string; + Call_GetModifyReservedInstances_624376 = ref object of OpenApiRestCall_610658 +proc url_GetModifyReservedInstances_624378(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -109623,7 +109650,7 @@ proc url_GetModifyReservedInstances_624376(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetModifyReservedInstances_624375(path: JsonNode; query: JsonNode; +proc validate_GetModifyReservedInstances_624377(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the Availability Zone, instance count, instance type, or network platform (EC2-Classic or EC2-VPC) of your Reserved Instances. The Reserved Instances to be modified must be identical, except for Availability Zone, network platform, and instance type.

    For more information, see Modifying Reserved Instances in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -109643,29 +109670,29 @@ proc validate_GetModifyReservedInstances_624375(path: JsonNode; query: JsonNode; ## href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring Idempotency. section = newJObject() assert query != nil, "query argument is necessary due to required `ReservedInstancesId` field" - var valid_624377 = query.getOrDefault("ReservedInstancesId") - valid_624377 = validateParameter(valid_624377, JArray, required = true, default = nil) - if valid_624377 != nil: - section.add "ReservedInstancesId", valid_624377 - var valid_624378 = query.getOrDefault("Action") - valid_624378 = validateParameter(valid_624378, JString, required = true, default = newJString( - "ModifyReservedInstances")) - if valid_624378 != nil: - section.add "Action", valid_624378 - var valid_624379 = query.getOrDefault("ReservedInstancesConfigurationSetItemType") + var valid_624379 = query.getOrDefault("ReservedInstancesId") valid_624379 = validateParameter(valid_624379, JArray, required = true, default = nil) if valid_624379 != nil: - section.add "ReservedInstancesConfigurationSetItemType", valid_624379 - var valid_624380 = query.getOrDefault("Version") - valid_624380 = validateParameter(valid_624380, JString, required = true, - default = newJString("2016-11-15")) + section.add "ReservedInstancesId", valid_624379 + var valid_624380 = query.getOrDefault("Action") + valid_624380 = validateParameter(valid_624380, JString, required = true, default = newJString( + "ModifyReservedInstances")) if valid_624380 != nil: - section.add "Version", valid_624380 - var valid_624381 = query.getOrDefault("ClientToken") - valid_624381 = validateParameter(valid_624381, JString, required = false, - default = nil) + section.add "Action", valid_624380 + var valid_624381 = query.getOrDefault("ReservedInstancesConfigurationSetItemType") + valid_624381 = validateParameter(valid_624381, JArray, required = true, default = nil) if valid_624381 != nil: - section.add "ClientToken", valid_624381 + section.add "ReservedInstancesConfigurationSetItemType", valid_624381 + var valid_624382 = query.getOrDefault("Version") + valid_624382 = validateParameter(valid_624382, JString, required = true, + default = newJString("2016-11-15")) + if valid_624382 != nil: + section.add "Version", valid_624382 + var valid_624383 = query.getOrDefault("ClientToken") + valid_624383 = validateParameter(valid_624383, JString, required = false, + default = nil) + if valid_624383 != nil: + section.add "ClientToken", valid_624383 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -109676,61 +109703,61 @@ proc validate_GetModifyReservedInstances_624375(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624382 = header.getOrDefault("X-Amz-Signature") - valid_624382 = validateParameter(valid_624382, JString, required = false, - default = nil) - if valid_624382 != nil: - section.add "X-Amz-Signature", valid_624382 - var valid_624383 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624383 = validateParameter(valid_624383, JString, required = false, - default = nil) - if valid_624383 != nil: - section.add "X-Amz-Content-Sha256", valid_624383 - var valid_624384 = header.getOrDefault("X-Amz-Date") + var valid_624384 = header.getOrDefault("X-Amz-Signature") valid_624384 = validateParameter(valid_624384, JString, required = false, default = nil) if valid_624384 != nil: - section.add "X-Amz-Date", valid_624384 - var valid_624385 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624384 + var valid_624385 = header.getOrDefault("X-Amz-Content-Sha256") valid_624385 = validateParameter(valid_624385, JString, required = false, default = nil) if valid_624385 != nil: - section.add "X-Amz-Credential", valid_624385 - var valid_624386 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624385 + var valid_624386 = header.getOrDefault("X-Amz-Date") valid_624386 = validateParameter(valid_624386, JString, required = false, default = nil) if valid_624386 != nil: - section.add "X-Amz-Security-Token", valid_624386 - var valid_624387 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624386 + var valid_624387 = header.getOrDefault("X-Amz-Credential") valid_624387 = validateParameter(valid_624387, JString, required = false, default = nil) if valid_624387 != nil: - section.add "X-Amz-Algorithm", valid_624387 - var valid_624388 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624387 + var valid_624388 = header.getOrDefault("X-Amz-Security-Token") valid_624388 = validateParameter(valid_624388, JString, required = false, default = nil) if valid_624388 != nil: - section.add "X-Amz-SignedHeaders", valid_624388 + section.add "X-Amz-Security-Token", valid_624388 + var valid_624389 = header.getOrDefault("X-Amz-Algorithm") + valid_624389 = validateParameter(valid_624389, JString, required = false, + default = nil) + if valid_624389 != nil: + section.add "X-Amz-Algorithm", valid_624389 + var valid_624390 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624390 = validateParameter(valid_624390, JString, required = false, + default = nil) + if valid_624390 != nil: + section.add "X-Amz-SignedHeaders", valid_624390 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624389: Call_GetModifyReservedInstances_624374; path: JsonNode; +proc call*(call_624391: Call_GetModifyReservedInstances_624376; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the Availability Zone, instance count, instance type, or network platform (EC2-Classic or EC2-VPC) of your Reserved Instances. The Reserved Instances to be modified must be identical, except for Availability Zone, network platform, and instance type.

    For more information, see Modifying Reserved Instances in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_624389.validator(path, query, header, formData, body) - let scheme = call_624389.pickScheme + let valid = call_624391.validator(path, query, header, formData, body) + let scheme = call_624391.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624389.url(scheme.get, call_624389.host, call_624389.base, - call_624389.route, valid.getOrDefault("path"), + let url = call_624391.url(scheme.get, call_624391.host, call_624391.base, + call_624391.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624389, url, valid) + result = atozHook(call_624391, url, valid) -proc call*(call_624390: Call_GetModifyReservedInstances_624374; +proc call*(call_624392: Call_GetModifyReservedInstances_624376; ReservedInstancesId: JsonNode; ReservedInstancesConfigurationSetItemType: JsonNode; Action: string = "ModifyReservedInstances"; @@ -109746,26 +109773,26 @@ proc call*(call_624390: Call_GetModifyReservedInstances_624374; ## ClientToken: string ## : A unique, case-sensitive token you provide to ensure idempotency of your modification request. For more information, see Ensuring Idempotency. - var query_624391 = newJObject() + var query_624393 = newJObject() if ReservedInstancesId != nil: - query_624391.add "ReservedInstancesId", ReservedInstancesId - add(query_624391, "Action", newJString(Action)) + query_624393.add "ReservedInstancesId", ReservedInstancesId + add(query_624393, "Action", newJString(Action)) if ReservedInstancesConfigurationSetItemType != nil: - query_624391.add "ReservedInstancesConfigurationSetItemType", + query_624393.add "ReservedInstancesConfigurationSetItemType", ReservedInstancesConfigurationSetItemType - add(query_624391, "Version", newJString(Version)) - add(query_624391, "ClientToken", newJString(ClientToken)) - result = call_624390.call(nil, query_624391, nil, nil, nil) + add(query_624393, "Version", newJString(Version)) + add(query_624393, "ClientToken", newJString(ClientToken)) + result = call_624392.call(nil, query_624393, nil, nil, nil) -var getModifyReservedInstances* = Call_GetModifyReservedInstances_624374( +var getModifyReservedInstances* = Call_GetModifyReservedInstances_624376( name: "getModifyReservedInstances", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifyReservedInstances", - validator: validate_GetModifyReservedInstances_624375, base: "/", - url: url_GetModifyReservedInstances_624376, + validator: validate_GetModifyReservedInstances_624377, base: "/", + url: url_GetModifyReservedInstances_624378, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifySnapshotAttribute_624434 = ref object of OpenApiRestCall_610658 -proc url_PostModifySnapshotAttribute_624436(protocol: Scheme; host: string; + Call_PostModifySnapshotAttribute_624436 = ref object of OpenApiRestCall_610658 +proc url_PostModifySnapshotAttribute_624438(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -109775,7 +109802,7 @@ proc url_PostModifySnapshotAttribute_624436(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostModifySnapshotAttribute_624435(path: JsonNode; query: JsonNode; +proc validate_PostModifySnapshotAttribute_624437(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Adds or removes permission settings for the specified snapshot. You may add or remove specified AWS account IDs from a snapshot's list of create volume permissions, but you cannot do both in a single operation. If you need to both add and remove account IDs for a snapshot, you must use multiple operations. You can make up to 500 modifications to a snapshot in a single operation.

    Encrypted snapshots and snapshots with AWS Marketplace product codes cannot be made public. Snapshots encrypted with your default CMK cannot be shared with other accounts.

    For more information about modifying snapshot permissions, see Sharing Snapshots in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -109787,16 +109814,16 @@ proc validate_PostModifySnapshotAttribute_624435(path: JsonNode; query: JsonNode ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_624437 = query.getOrDefault("Action") - valid_624437 = validateParameter(valid_624437, JString, required = true, default = newJString( + var valid_624439 = query.getOrDefault("Action") + valid_624439 = validateParameter(valid_624439, JString, required = true, default = newJString( "ModifySnapshotAttribute")) - if valid_624437 != nil: - section.add "Action", valid_624437 - var valid_624438 = query.getOrDefault("Version") - valid_624438 = validateParameter(valid_624438, JString, required = true, + if valid_624439 != nil: + section.add "Action", valid_624439 + var valid_624440 = query.getOrDefault("Version") + valid_624440 = validateParameter(valid_624440, JString, required = true, default = newJString("2016-11-15")) - if valid_624438 != nil: - section.add "Version", valid_624438 + if valid_624440 != nil: + section.add "Version", valid_624440 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -109807,41 +109834,41 @@ proc validate_PostModifySnapshotAttribute_624435(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624439 = header.getOrDefault("X-Amz-Signature") - valid_624439 = validateParameter(valid_624439, JString, required = false, - default = nil) - if valid_624439 != nil: - section.add "X-Amz-Signature", valid_624439 - var valid_624440 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624440 = validateParameter(valid_624440, JString, required = false, - default = nil) - if valid_624440 != nil: - section.add "X-Amz-Content-Sha256", valid_624440 - var valid_624441 = header.getOrDefault("X-Amz-Date") + var valid_624441 = header.getOrDefault("X-Amz-Signature") valid_624441 = validateParameter(valid_624441, JString, required = false, default = nil) if valid_624441 != nil: - section.add "X-Amz-Date", valid_624441 - var valid_624442 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624441 + var valid_624442 = header.getOrDefault("X-Amz-Content-Sha256") valid_624442 = validateParameter(valid_624442, JString, required = false, default = nil) if valid_624442 != nil: - section.add "X-Amz-Credential", valid_624442 - var valid_624443 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624442 + var valid_624443 = header.getOrDefault("X-Amz-Date") valid_624443 = validateParameter(valid_624443, JString, required = false, default = nil) if valid_624443 != nil: - section.add "X-Amz-Security-Token", valid_624443 - var valid_624444 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624443 + var valid_624444 = header.getOrDefault("X-Amz-Credential") valid_624444 = validateParameter(valid_624444, JString, required = false, default = nil) if valid_624444 != nil: - section.add "X-Amz-Algorithm", valid_624444 - var valid_624445 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624444 + var valid_624445 = header.getOrDefault("X-Amz-Security-Token") valid_624445 = validateParameter(valid_624445, JString, required = false, default = nil) if valid_624445 != nil: - section.add "X-Amz-SignedHeaders", valid_624445 + section.add "X-Amz-Security-Token", valid_624445 + var valid_624446 = header.getOrDefault("X-Amz-Algorithm") + valid_624446 = validateParameter(valid_624446, JString, required = false, + default = nil) + if valid_624446 != nil: + section.add "X-Amz-Algorithm", valid_624446 + var valid_624447 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624447 = validateParameter(valid_624447, JString, required = false, + default = nil) + if valid_624447 != nil: + section.add "X-Amz-SignedHeaders", valid_624447 result.add "header", section ## parameters in `formData` object: ## Attribute: JString @@ -109863,65 +109890,65 @@ proc validate_PostModifySnapshotAttribute_624435(path: JsonNode; query: JsonNode ## : Describes modifications to the list of create volume permissions for a volume. ## Removes the specified AWS account ID or group from the list. section = newJObject() - var valid_624446 = formData.getOrDefault("Attribute") - valid_624446 = validateParameter(valid_624446, JString, required = false, + var valid_624448 = formData.getOrDefault("Attribute") + valid_624448 = validateParameter(valid_624448, JString, required = false, default = newJString("productCodes")) - if valid_624446 != nil: - section.add "Attribute", valid_624446 - var valid_624447 = formData.getOrDefault("UserId") - valid_624447 = validateParameter(valid_624447, JArray, required = false, - default = nil) - if valid_624447 != nil: - section.add "UserId", valid_624447 - var valid_624448 = formData.getOrDefault("CreateVolumePermission.Add") - valid_624448 = validateParameter(valid_624448, JArray, required = false, - default = nil) if valid_624448 != nil: - section.add "CreateVolumePermission.Add", valid_624448 - var valid_624449 = formData.getOrDefault("OperationType") - valid_624449 = validateParameter(valid_624449, JString, required = false, - default = newJString("add")) + section.add "Attribute", valid_624448 + var valid_624449 = formData.getOrDefault("UserId") + valid_624449 = validateParameter(valid_624449, JArray, required = false, + default = nil) if valid_624449 != nil: - section.add "OperationType", valid_624449 - assert formData != nil, - "formData argument is necessary due to required `SnapshotId` field" - var valid_624450 = formData.getOrDefault("SnapshotId") - valid_624450 = validateParameter(valid_624450, JString, required = true, + section.add "UserId", valid_624449 + var valid_624450 = formData.getOrDefault("CreateVolumePermission.Add") + valid_624450 = validateParameter(valid_624450, JArray, required = false, default = nil) if valid_624450 != nil: - section.add "SnapshotId", valid_624450 - var valid_624451 = formData.getOrDefault("DryRun") - valid_624451 = validateParameter(valid_624451, JBool, required = false, default = nil) + section.add "CreateVolumePermission.Add", valid_624450 + var valid_624451 = formData.getOrDefault("OperationType") + valid_624451 = validateParameter(valid_624451, JString, required = false, + default = newJString("add")) if valid_624451 != nil: - section.add "DryRun", valid_624451 - var valid_624452 = formData.getOrDefault("UserGroup") - valid_624452 = validateParameter(valid_624452, JArray, required = false, + section.add "OperationType", valid_624451 + assert formData != nil, + "formData argument is necessary due to required `SnapshotId` field" + var valid_624452 = formData.getOrDefault("SnapshotId") + valid_624452 = validateParameter(valid_624452, JString, required = true, default = nil) if valid_624452 != nil: - section.add "UserGroup", valid_624452 - var valid_624453 = formData.getOrDefault("CreateVolumePermission.Remove") - valid_624453 = validateParameter(valid_624453, JArray, required = false, - default = nil) + section.add "SnapshotId", valid_624452 + var valid_624453 = formData.getOrDefault("DryRun") + valid_624453 = validateParameter(valid_624453, JBool, required = false, default = nil) if valid_624453 != nil: - section.add "CreateVolumePermission.Remove", valid_624453 + section.add "DryRun", valid_624453 + var valid_624454 = formData.getOrDefault("UserGroup") + valid_624454 = validateParameter(valid_624454, JArray, required = false, + default = nil) + if valid_624454 != nil: + section.add "UserGroup", valid_624454 + var valid_624455 = formData.getOrDefault("CreateVolumePermission.Remove") + valid_624455 = validateParameter(valid_624455, JArray, required = false, + default = nil) + if valid_624455 != nil: + section.add "CreateVolumePermission.Remove", valid_624455 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624454: Call_PostModifySnapshotAttribute_624434; path: JsonNode; +proc call*(call_624456: Call_PostModifySnapshotAttribute_624436; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Adds or removes permission settings for the specified snapshot. You may add or remove specified AWS account IDs from a snapshot's list of create volume permissions, but you cannot do both in a single operation. If you need to both add and remove account IDs for a snapshot, you must use multiple operations. You can make up to 500 modifications to a snapshot in a single operation.

    Encrypted snapshots and snapshots with AWS Marketplace product codes cannot be made public. Snapshots encrypted with your default CMK cannot be shared with other accounts.

    For more information about modifying snapshot permissions, see Sharing Snapshots in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_624454.validator(path, query, header, formData, body) - let scheme = call_624454.pickScheme + let valid = call_624456.validator(path, query, header, formData, body) + let scheme = call_624456.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624454.url(scheme.get, call_624454.host, call_624454.base, - call_624454.route, valid.getOrDefault("path"), + let url = call_624456.url(scheme.get, call_624456.host, call_624456.base, + call_624456.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624454, url, valid) + result = atozHook(call_624456, url, valid) -proc call*(call_624455: Call_PostModifySnapshotAttribute_624434; +proc call*(call_624457: Call_PostModifySnapshotAttribute_624436; SnapshotId: string; Attribute: string = "productCodes"; UserId: JsonNode = nil; CreateVolumePermissionAdd: JsonNode = nil; OperationType: string = "add"; DryRun: bool = false; @@ -109950,34 +109977,34 @@ proc call*(call_624455: Call_PostModifySnapshotAttribute_624434; ## CreateVolumePermissionRemove: JArray ## : Describes modifications to the list of create volume permissions for a volume. ## Removes the specified AWS account ID or group from the list. - var query_624456 = newJObject() - var formData_624457 = newJObject() - add(formData_624457, "Attribute", newJString(Attribute)) + var query_624458 = newJObject() + var formData_624459 = newJObject() + add(formData_624459, "Attribute", newJString(Attribute)) if UserId != nil: - formData_624457.add "UserId", UserId + formData_624459.add "UserId", UserId if CreateVolumePermissionAdd != nil: - formData_624457.add "CreateVolumePermission.Add", CreateVolumePermissionAdd - add(formData_624457, "OperationType", newJString(OperationType)) - add(formData_624457, "SnapshotId", newJString(SnapshotId)) - add(formData_624457, "DryRun", newJBool(DryRun)) - add(query_624456, "Action", newJString(Action)) + formData_624459.add "CreateVolumePermission.Add", CreateVolumePermissionAdd + add(formData_624459, "OperationType", newJString(OperationType)) + add(formData_624459, "SnapshotId", newJString(SnapshotId)) + add(formData_624459, "DryRun", newJBool(DryRun)) + add(query_624458, "Action", newJString(Action)) if UserGroup != nil: - formData_624457.add "UserGroup", UserGroup - add(query_624456, "Version", newJString(Version)) + formData_624459.add "UserGroup", UserGroup + add(query_624458, "Version", newJString(Version)) if CreateVolumePermissionRemove != nil: - formData_624457.add "CreateVolumePermission.Remove", + formData_624459.add "CreateVolumePermission.Remove", CreateVolumePermissionRemove - result = call_624455.call(nil, query_624456, nil, formData_624457, nil) + result = call_624457.call(nil, query_624458, nil, formData_624459, nil) -var postModifySnapshotAttribute* = Call_PostModifySnapshotAttribute_624434( +var postModifySnapshotAttribute* = Call_PostModifySnapshotAttribute_624436( name: "postModifySnapshotAttribute", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifySnapshotAttribute", - validator: validate_PostModifySnapshotAttribute_624435, base: "/", - url: url_PostModifySnapshotAttribute_624436, + validator: validate_PostModifySnapshotAttribute_624437, base: "/", + url: url_PostModifySnapshotAttribute_624438, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifySnapshotAttribute_624411 = ref object of OpenApiRestCall_610658 -proc url_GetModifySnapshotAttribute_624413(protocol: Scheme; host: string; + Call_GetModifySnapshotAttribute_624413 = ref object of OpenApiRestCall_610658 +proc url_GetModifySnapshotAttribute_624415(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -109987,7 +110014,7 @@ proc url_GetModifySnapshotAttribute_624413(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetModifySnapshotAttribute_624412(path: JsonNode; query: JsonNode; +proc validate_GetModifySnapshotAttribute_624414(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Adds or removes permission settings for the specified snapshot. You may add or remove specified AWS account IDs from a snapshot's list of create volume permissions, but you cannot do both in a single operation. If you need to both add and remove account IDs for a snapshot, you must use multiple operations. You can make up to 500 modifications to a snapshot in a single operation.

    Encrypted snapshots and snapshots with AWS Marketplace product codes cannot be made public. Snapshots encrypted with your default CMK cannot be shared with other accounts.

    For more information about modifying snapshot permissions, see Sharing Snapshots in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -110017,55 +110044,55 @@ proc validate_GetModifySnapshotAttribute_624412(path: JsonNode; query: JsonNode; ## Attribute: JString ## : The snapshot attribute to modify. Only volume creation permissions can be modified. section = newJObject() - var valid_624414 = query.getOrDefault("DryRun") - valid_624414 = validateParameter(valid_624414, JBool, required = false, default = nil) - if valid_624414 != nil: - section.add "DryRun", valid_624414 - var valid_624415 = query.getOrDefault("CreateVolumePermission.Remove") - valid_624415 = validateParameter(valid_624415, JArray, required = false, - default = nil) - if valid_624415 != nil: - section.add "CreateVolumePermission.Remove", valid_624415 - var valid_624416 = query.getOrDefault("CreateVolumePermission.Add") - valid_624416 = validateParameter(valid_624416, JArray, required = false, - default = nil) + var valid_624416 = query.getOrDefault("DryRun") + valid_624416 = validateParameter(valid_624416, JBool, required = false, default = nil) if valid_624416 != nil: - section.add "CreateVolumePermission.Add", valid_624416 - var valid_624417 = query.getOrDefault("OperationType") - valid_624417 = validateParameter(valid_624417, JString, required = false, - default = newJString("add")) + section.add "DryRun", valid_624416 + var valid_624417 = query.getOrDefault("CreateVolumePermission.Remove") + valid_624417 = validateParameter(valid_624417, JArray, required = false, + default = nil) if valid_624417 != nil: - section.add "OperationType", valid_624417 - var valid_624418 = query.getOrDefault("UserId") + section.add "CreateVolumePermission.Remove", valid_624417 + var valid_624418 = query.getOrDefault("CreateVolumePermission.Add") valid_624418 = validateParameter(valid_624418, JArray, required = false, default = nil) if valid_624418 != nil: - section.add "UserId", valid_624418 - var valid_624419 = query.getOrDefault("Action") - valid_624419 = validateParameter(valid_624419, JString, required = true, default = newJString( - "ModifySnapshotAttribute")) + section.add "CreateVolumePermission.Add", valid_624418 + var valid_624419 = query.getOrDefault("OperationType") + valid_624419 = validateParameter(valid_624419, JString, required = false, + default = newJString("add")) if valid_624419 != nil: - section.add "Action", valid_624419 - var valid_624420 = query.getOrDefault("Version") - valid_624420 = validateParameter(valid_624420, JString, required = true, - default = newJString("2016-11-15")) - if valid_624420 != nil: - section.add "Version", valid_624420 - var valid_624421 = query.getOrDefault("UserGroup") - valid_624421 = validateParameter(valid_624421, JArray, required = false, + section.add "OperationType", valid_624419 + var valid_624420 = query.getOrDefault("UserId") + valid_624420 = validateParameter(valid_624420, JArray, required = false, default = nil) + if valid_624420 != nil: + section.add "UserId", valid_624420 + var valid_624421 = query.getOrDefault("Action") + valid_624421 = validateParameter(valid_624421, JString, required = true, default = newJString( + "ModifySnapshotAttribute")) if valid_624421 != nil: - section.add "UserGroup", valid_624421 - var valid_624422 = query.getOrDefault("SnapshotId") + section.add "Action", valid_624421 + var valid_624422 = query.getOrDefault("Version") valid_624422 = validateParameter(valid_624422, JString, required = true, - default = nil) + default = newJString("2016-11-15")) if valid_624422 != nil: - section.add "SnapshotId", valid_624422 - var valid_624423 = query.getOrDefault("Attribute") - valid_624423 = validateParameter(valid_624423, JString, required = false, - default = newJString("productCodes")) + section.add "Version", valid_624422 + var valid_624423 = query.getOrDefault("UserGroup") + valid_624423 = validateParameter(valid_624423, JArray, required = false, + default = nil) if valid_624423 != nil: - section.add "Attribute", valid_624423 + section.add "UserGroup", valid_624423 + var valid_624424 = query.getOrDefault("SnapshotId") + valid_624424 = validateParameter(valid_624424, JString, required = true, + default = nil) + if valid_624424 != nil: + section.add "SnapshotId", valid_624424 + var valid_624425 = query.getOrDefault("Attribute") + valid_624425 = validateParameter(valid_624425, JString, required = false, + default = newJString("productCodes")) + if valid_624425 != nil: + section.add "Attribute", valid_624425 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -110076,61 +110103,61 @@ proc validate_GetModifySnapshotAttribute_624412(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624424 = header.getOrDefault("X-Amz-Signature") - valid_624424 = validateParameter(valid_624424, JString, required = false, - default = nil) - if valid_624424 != nil: - section.add "X-Amz-Signature", valid_624424 - var valid_624425 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624425 = validateParameter(valid_624425, JString, required = false, - default = nil) - if valid_624425 != nil: - section.add "X-Amz-Content-Sha256", valid_624425 - var valid_624426 = header.getOrDefault("X-Amz-Date") + var valid_624426 = header.getOrDefault("X-Amz-Signature") valid_624426 = validateParameter(valid_624426, JString, required = false, default = nil) if valid_624426 != nil: - section.add "X-Amz-Date", valid_624426 - var valid_624427 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624426 + var valid_624427 = header.getOrDefault("X-Amz-Content-Sha256") valid_624427 = validateParameter(valid_624427, JString, required = false, default = nil) if valid_624427 != nil: - section.add "X-Amz-Credential", valid_624427 - var valid_624428 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624427 + var valid_624428 = header.getOrDefault("X-Amz-Date") valid_624428 = validateParameter(valid_624428, JString, required = false, default = nil) if valid_624428 != nil: - section.add "X-Amz-Security-Token", valid_624428 - var valid_624429 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624428 + var valid_624429 = header.getOrDefault("X-Amz-Credential") valid_624429 = validateParameter(valid_624429, JString, required = false, default = nil) if valid_624429 != nil: - section.add "X-Amz-Algorithm", valid_624429 - var valid_624430 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624429 + var valid_624430 = header.getOrDefault("X-Amz-Security-Token") valid_624430 = validateParameter(valid_624430, JString, required = false, default = nil) if valid_624430 != nil: - section.add "X-Amz-SignedHeaders", valid_624430 + section.add "X-Amz-Security-Token", valid_624430 + var valid_624431 = header.getOrDefault("X-Amz-Algorithm") + valid_624431 = validateParameter(valid_624431, JString, required = false, + default = nil) + if valid_624431 != nil: + section.add "X-Amz-Algorithm", valid_624431 + var valid_624432 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624432 = validateParameter(valid_624432, JString, required = false, + default = nil) + if valid_624432 != nil: + section.add "X-Amz-SignedHeaders", valid_624432 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624431: Call_GetModifySnapshotAttribute_624411; path: JsonNode; +proc call*(call_624433: Call_GetModifySnapshotAttribute_624413; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Adds or removes permission settings for the specified snapshot. You may add or remove specified AWS account IDs from a snapshot's list of create volume permissions, but you cannot do both in a single operation. If you need to both add and remove account IDs for a snapshot, you must use multiple operations. You can make up to 500 modifications to a snapshot in a single operation.

    Encrypted snapshots and snapshots with AWS Marketplace product codes cannot be made public. Snapshots encrypted with your default CMK cannot be shared with other accounts.

    For more information about modifying snapshot permissions, see Sharing Snapshots in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_624431.validator(path, query, header, formData, body) - let scheme = call_624431.pickScheme + let valid = call_624433.validator(path, query, header, formData, body) + let scheme = call_624433.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624431.url(scheme.get, call_624431.host, call_624431.base, - call_624431.route, valid.getOrDefault("path"), + let url = call_624433.url(scheme.get, call_624433.host, call_624433.base, + call_624433.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624431, url, valid) + result = atozHook(call_624433, url, valid) -proc call*(call_624432: Call_GetModifySnapshotAttribute_624411; SnapshotId: string; +proc call*(call_624434: Call_GetModifySnapshotAttribute_624413; SnapshotId: string; DryRun: bool = false; CreateVolumePermissionRemove: JsonNode = nil; CreateVolumePermissionAdd: JsonNode = nil; OperationType: string = "add"; UserId: JsonNode = nil; Action: string = "ModifySnapshotAttribute"; @@ -110158,32 +110185,32 @@ proc call*(call_624432: Call_GetModifySnapshotAttribute_624411; SnapshotId: stri ## : The ID of the snapshot. ## Attribute: string ## : The snapshot attribute to modify. Only volume creation permissions can be modified. - var query_624433 = newJObject() - add(query_624433, "DryRun", newJBool(DryRun)) + var query_624435 = newJObject() + add(query_624435, "DryRun", newJBool(DryRun)) if CreateVolumePermissionRemove != nil: - query_624433.add "CreateVolumePermission.Remove", CreateVolumePermissionRemove + query_624435.add "CreateVolumePermission.Remove", CreateVolumePermissionRemove if CreateVolumePermissionAdd != nil: - query_624433.add "CreateVolumePermission.Add", CreateVolumePermissionAdd - add(query_624433, "OperationType", newJString(OperationType)) + query_624435.add "CreateVolumePermission.Add", CreateVolumePermissionAdd + add(query_624435, "OperationType", newJString(OperationType)) if UserId != nil: - query_624433.add "UserId", UserId - add(query_624433, "Action", newJString(Action)) - add(query_624433, "Version", newJString(Version)) + query_624435.add "UserId", UserId + add(query_624435, "Action", newJString(Action)) + add(query_624435, "Version", newJString(Version)) if UserGroup != nil: - query_624433.add "UserGroup", UserGroup - add(query_624433, "SnapshotId", newJString(SnapshotId)) - add(query_624433, "Attribute", newJString(Attribute)) - result = call_624432.call(nil, query_624433, nil, nil, nil) + query_624435.add "UserGroup", UserGroup + add(query_624435, "SnapshotId", newJString(SnapshotId)) + add(query_624435, "Attribute", newJString(Attribute)) + result = call_624434.call(nil, query_624435, nil, nil, nil) -var getModifySnapshotAttribute* = Call_GetModifySnapshotAttribute_624411( +var getModifySnapshotAttribute* = Call_GetModifySnapshotAttribute_624413( name: "getModifySnapshotAttribute", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifySnapshotAttribute", - validator: validate_GetModifySnapshotAttribute_624412, base: "/", - url: url_GetModifySnapshotAttribute_624413, + validator: validate_GetModifySnapshotAttribute_624414, base: "/", + url: url_GetModifySnapshotAttribute_624415, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifySpotFleetRequest_624477 = ref object of OpenApiRestCall_610658 -proc url_PostModifySpotFleetRequest_624479(protocol: Scheme; host: string; + Call_PostModifySpotFleetRequest_624479 = ref object of OpenApiRestCall_610658 +proc url_PostModifySpotFleetRequest_624481(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -110193,7 +110220,7 @@ proc url_PostModifySpotFleetRequest_624479(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostModifySpotFleetRequest_624478(path: JsonNode; query: JsonNode; +proc validate_PostModifySpotFleetRequest_624480(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the specified Spot Fleet request.

    You can only modify a Spot Fleet request of type maintain.

    While the Spot Fleet request is being modified, it is in the modifying state.

    To scale up your Spot Fleet, increase its target capacity. The Spot Fleet launches the additional Spot Instances according to the allocation strategy for the Spot Fleet request. If the allocation strategy is lowestPrice, the Spot Fleet launches instances using the Spot Instance pool with the lowest price. If the allocation strategy is diversified, the Spot Fleet distributes the instances across the Spot Instance pools. If the allocation strategy is capacityOptimized, Spot Fleet launches instances from Spot Instance pools with optimal capacity for the number of instances that are launching.

    To scale down your Spot Fleet, decrease its target capacity. First, the Spot Fleet cancels any open requests that exceed the new target capacity. You can request that the Spot Fleet terminate Spot Instances until the size of the fleet no longer exceeds the new target capacity. If the allocation strategy is lowestPrice, the Spot Fleet terminates the instances with the highest price per unit. If the allocation strategy is capacityOptimized, the Spot Fleet terminates the instances in the Spot Instance pools that have the least available Spot Instance capacity. If the allocation strategy is diversified, the Spot Fleet terminates instances across the Spot Instance pools. Alternatively, you can request that the Spot Fleet keep the fleet at its current size, but not replace any Spot Instances that are interrupted or that you terminate manually.

    If you are finished with your Spot Fleet for now, but will use it again later, you can set the target capacity to 0.

    ## @@ -110205,16 +110232,16 @@ proc validate_PostModifySpotFleetRequest_624478(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_624480 = query.getOrDefault("Action") - valid_624480 = validateParameter(valid_624480, JString, required = true, + var valid_624482 = query.getOrDefault("Action") + valid_624482 = validateParameter(valid_624482, JString, required = true, default = newJString("ModifySpotFleetRequest")) - if valid_624480 != nil: - section.add "Action", valid_624480 - var valid_624481 = query.getOrDefault("Version") - valid_624481 = validateParameter(valid_624481, JString, required = true, + if valid_624482 != nil: + section.add "Action", valid_624482 + var valid_624483 = query.getOrDefault("Version") + valid_624483 = validateParameter(valid_624483, JString, required = true, default = newJString("2016-11-15")) - if valid_624481 != nil: - section.add "Version", valid_624481 + if valid_624483 != nil: + section.add "Version", valid_624483 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -110225,41 +110252,41 @@ proc validate_PostModifySpotFleetRequest_624478(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624482 = header.getOrDefault("X-Amz-Signature") - valid_624482 = validateParameter(valid_624482, JString, required = false, - default = nil) - if valid_624482 != nil: - section.add "X-Amz-Signature", valid_624482 - var valid_624483 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624483 = validateParameter(valid_624483, JString, required = false, - default = nil) - if valid_624483 != nil: - section.add "X-Amz-Content-Sha256", valid_624483 - var valid_624484 = header.getOrDefault("X-Amz-Date") + var valid_624484 = header.getOrDefault("X-Amz-Signature") valid_624484 = validateParameter(valid_624484, JString, required = false, default = nil) if valid_624484 != nil: - section.add "X-Amz-Date", valid_624484 - var valid_624485 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624484 + var valid_624485 = header.getOrDefault("X-Amz-Content-Sha256") valid_624485 = validateParameter(valid_624485, JString, required = false, default = nil) if valid_624485 != nil: - section.add "X-Amz-Credential", valid_624485 - var valid_624486 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624485 + var valid_624486 = header.getOrDefault("X-Amz-Date") valid_624486 = validateParameter(valid_624486, JString, required = false, default = nil) if valid_624486 != nil: - section.add "X-Amz-Security-Token", valid_624486 - var valid_624487 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624486 + var valid_624487 = header.getOrDefault("X-Amz-Credential") valid_624487 = validateParameter(valid_624487, JString, required = false, default = nil) if valid_624487 != nil: - section.add "X-Amz-Algorithm", valid_624487 - var valid_624488 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624487 + var valid_624488 = header.getOrDefault("X-Amz-Security-Token") valid_624488 = validateParameter(valid_624488, JString, required = false, default = nil) if valid_624488 != nil: - section.add "X-Amz-SignedHeaders", valid_624488 + section.add "X-Amz-Security-Token", valid_624488 + var valid_624489 = header.getOrDefault("X-Amz-Algorithm") + valid_624489 = validateParameter(valid_624489, JString, required = false, + default = nil) + if valid_624489 != nil: + section.add "X-Amz-Algorithm", valid_624489 + var valid_624490 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624490 = validateParameter(valid_624490, JString, required = false, + default = nil) + if valid_624490 != nil: + section.add "X-Amz-SignedHeaders", valid_624490 result.add "header", section ## parameters in `formData` object: ## SpotFleetRequestId: JString (required) @@ -110272,42 +110299,42 @@ proc validate_PostModifySpotFleetRequest_624478(path: JsonNode; query: JsonNode; ## : The size of the fleet. section = newJObject() assert formData != nil, "formData argument is necessary due to required `SpotFleetRequestId` field" - var valid_624489 = formData.getOrDefault("SpotFleetRequestId") - valid_624489 = validateParameter(valid_624489, JString, required = true, + var valid_624491 = formData.getOrDefault("SpotFleetRequestId") + valid_624491 = validateParameter(valid_624491, JString, required = true, default = nil) - if valid_624489 != nil: - section.add "SpotFleetRequestId", valid_624489 - var valid_624490 = formData.getOrDefault("ExcessCapacityTerminationPolicy") - valid_624490 = validateParameter(valid_624490, JString, required = false, - default = newJString("noTermination")) - if valid_624490 != nil: - section.add "ExcessCapacityTerminationPolicy", valid_624490 - var valid_624491 = formData.getOrDefault("OnDemandTargetCapacity") - valid_624491 = validateParameter(valid_624491, JInt, required = false, default = nil) if valid_624491 != nil: - section.add "OnDemandTargetCapacity", valid_624491 - var valid_624492 = formData.getOrDefault("TargetCapacity") - valid_624492 = validateParameter(valid_624492, JInt, required = false, default = nil) + section.add "SpotFleetRequestId", valid_624491 + var valid_624492 = formData.getOrDefault("ExcessCapacityTerminationPolicy") + valid_624492 = validateParameter(valid_624492, JString, required = false, + default = newJString("noTermination")) if valid_624492 != nil: - section.add "TargetCapacity", valid_624492 + section.add "ExcessCapacityTerminationPolicy", valid_624492 + var valid_624493 = formData.getOrDefault("OnDemandTargetCapacity") + valid_624493 = validateParameter(valid_624493, JInt, required = false, default = nil) + if valid_624493 != nil: + section.add "OnDemandTargetCapacity", valid_624493 + var valid_624494 = formData.getOrDefault("TargetCapacity") + valid_624494 = validateParameter(valid_624494, JInt, required = false, default = nil) + if valid_624494 != nil: + section.add "TargetCapacity", valid_624494 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624493: Call_PostModifySpotFleetRequest_624477; path: JsonNode; +proc call*(call_624495: Call_PostModifySpotFleetRequest_624479; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the specified Spot Fleet request.

    You can only modify a Spot Fleet request of type maintain.

    While the Spot Fleet request is being modified, it is in the modifying state.

    To scale up your Spot Fleet, increase its target capacity. The Spot Fleet launches the additional Spot Instances according to the allocation strategy for the Spot Fleet request. If the allocation strategy is lowestPrice, the Spot Fleet launches instances using the Spot Instance pool with the lowest price. If the allocation strategy is diversified, the Spot Fleet distributes the instances across the Spot Instance pools. If the allocation strategy is capacityOptimized, Spot Fleet launches instances from Spot Instance pools with optimal capacity for the number of instances that are launching.

    To scale down your Spot Fleet, decrease its target capacity. First, the Spot Fleet cancels any open requests that exceed the new target capacity. You can request that the Spot Fleet terminate Spot Instances until the size of the fleet no longer exceeds the new target capacity. If the allocation strategy is lowestPrice, the Spot Fleet terminates the instances with the highest price per unit. If the allocation strategy is capacityOptimized, the Spot Fleet terminates the instances in the Spot Instance pools that have the least available Spot Instance capacity. If the allocation strategy is diversified, the Spot Fleet terminates instances across the Spot Instance pools. Alternatively, you can request that the Spot Fleet keep the fleet at its current size, but not replace any Spot Instances that are interrupted or that you terminate manually.

    If you are finished with your Spot Fleet for now, but will use it again later, you can set the target capacity to 0.

    ## - let valid = call_624493.validator(path, query, header, formData, body) - let scheme = call_624493.pickScheme + let valid = call_624495.validator(path, query, header, formData, body) + let scheme = call_624495.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624493.url(scheme.get, call_624493.host, call_624493.base, - call_624493.route, valid.getOrDefault("path"), + let url = call_624495.url(scheme.get, call_624495.host, call_624495.base, + call_624495.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624493, url, valid) + result = atozHook(call_624495, url, valid) -proc call*(call_624494: Call_PostModifySpotFleetRequest_624477; +proc call*(call_624496: Call_PostModifySpotFleetRequest_624479; SpotFleetRequestId: string; ExcessCapacityTerminationPolicy: string = "noTermination"; OnDemandTargetCapacity: int = 0; @@ -110325,26 +110352,26 @@ proc call*(call_624494: Call_PostModifySpotFleetRequest_624477; ## TargetCapacity: int ## : The size of the fleet. ## Version: string (required) - var query_624495 = newJObject() - var formData_624496 = newJObject() - add(formData_624496, "SpotFleetRequestId", newJString(SpotFleetRequestId)) - add(formData_624496, "ExcessCapacityTerminationPolicy", + var query_624497 = newJObject() + var formData_624498 = newJObject() + add(formData_624498, "SpotFleetRequestId", newJString(SpotFleetRequestId)) + add(formData_624498, "ExcessCapacityTerminationPolicy", newJString(ExcessCapacityTerminationPolicy)) - add(formData_624496, "OnDemandTargetCapacity", newJInt(OnDemandTargetCapacity)) - add(query_624495, "Action", newJString(Action)) - add(formData_624496, "TargetCapacity", newJInt(TargetCapacity)) - add(query_624495, "Version", newJString(Version)) - result = call_624494.call(nil, query_624495, nil, formData_624496, nil) + add(formData_624498, "OnDemandTargetCapacity", newJInt(OnDemandTargetCapacity)) + add(query_624497, "Action", newJString(Action)) + add(formData_624498, "TargetCapacity", newJInt(TargetCapacity)) + add(query_624497, "Version", newJString(Version)) + result = call_624496.call(nil, query_624497, nil, formData_624498, nil) -var postModifySpotFleetRequest* = Call_PostModifySpotFleetRequest_624477( +var postModifySpotFleetRequest* = Call_PostModifySpotFleetRequest_624479( name: "postModifySpotFleetRequest", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifySpotFleetRequest", - validator: validate_PostModifySpotFleetRequest_624478, base: "/", - url: url_PostModifySpotFleetRequest_624479, + validator: validate_PostModifySpotFleetRequest_624480, base: "/", + url: url_PostModifySpotFleetRequest_624481, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifySpotFleetRequest_624458 = ref object of OpenApiRestCall_610658 -proc url_GetModifySpotFleetRequest_624460(protocol: Scheme; host: string; + Call_GetModifySpotFleetRequest_624460 = ref object of OpenApiRestCall_610658 +proc url_GetModifySpotFleetRequest_624462(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -110354,7 +110381,7 @@ proc url_GetModifySpotFleetRequest_624460(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetModifySpotFleetRequest_624459(path: JsonNode; query: JsonNode; +proc validate_GetModifySpotFleetRequest_624461(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the specified Spot Fleet request.

    You can only modify a Spot Fleet request of type maintain.

    While the Spot Fleet request is being modified, it is in the modifying state.

    To scale up your Spot Fleet, increase its target capacity. The Spot Fleet launches the additional Spot Instances according to the allocation strategy for the Spot Fleet request. If the allocation strategy is lowestPrice, the Spot Fleet launches instances using the Spot Instance pool with the lowest price. If the allocation strategy is diversified, the Spot Fleet distributes the instances across the Spot Instance pools. If the allocation strategy is capacityOptimized, Spot Fleet launches instances from Spot Instance pools with optimal capacity for the number of instances that are launching.

    To scale down your Spot Fleet, decrease its target capacity. First, the Spot Fleet cancels any open requests that exceed the new target capacity. You can request that the Spot Fleet terminate Spot Instances until the size of the fleet no longer exceeds the new target capacity. If the allocation strategy is lowestPrice, the Spot Fleet terminates the instances with the highest price per unit. If the allocation strategy is capacityOptimized, the Spot Fleet terminates the instances in the Spot Instance pools that have the least available Spot Instance capacity. If the allocation strategy is diversified, the Spot Fleet terminates instances across the Spot Instance pools. Alternatively, you can request that the Spot Fleet keep the fleet at its current size, but not replace any Spot Instances that are interrupted or that you terminate manually.

    If you are finished with your Spot Fleet for now, but will use it again later, you can set the target capacity to 0.

    ## @@ -110374,34 +110401,34 @@ proc validate_GetModifySpotFleetRequest_624459(path: JsonNode; query: JsonNode; ## ExcessCapacityTerminationPolicy: JString ## : Indicates whether running Spot Instances should be terminated if the target capacity of the Spot Fleet request is decreased below the current size of the Spot Fleet. section = newJObject() - var valid_624461 = query.getOrDefault("OnDemandTargetCapacity") - valid_624461 = validateParameter(valid_624461, JInt, required = false, default = nil) - if valid_624461 != nil: - section.add "OnDemandTargetCapacity", valid_624461 - var valid_624462 = query.getOrDefault("Action") - valid_624462 = validateParameter(valid_624462, JString, required = true, - default = newJString("ModifySpotFleetRequest")) - if valid_624462 != nil: - section.add "Action", valid_624462 - var valid_624463 = query.getOrDefault("TargetCapacity") + var valid_624463 = query.getOrDefault("OnDemandTargetCapacity") valid_624463 = validateParameter(valid_624463, JInt, required = false, default = nil) if valid_624463 != nil: - section.add "TargetCapacity", valid_624463 - var valid_624464 = query.getOrDefault("SpotFleetRequestId") + section.add "OnDemandTargetCapacity", valid_624463 + var valid_624464 = query.getOrDefault("Action") valid_624464 = validateParameter(valid_624464, JString, required = true, - default = nil) + default = newJString("ModifySpotFleetRequest")) if valid_624464 != nil: - section.add "SpotFleetRequestId", valid_624464 - var valid_624465 = query.getOrDefault("Version") - valid_624465 = validateParameter(valid_624465, JString, required = true, - default = newJString("2016-11-15")) + section.add "Action", valid_624464 + var valid_624465 = query.getOrDefault("TargetCapacity") + valid_624465 = validateParameter(valid_624465, JInt, required = false, default = nil) if valid_624465 != nil: - section.add "Version", valid_624465 - var valid_624466 = query.getOrDefault("ExcessCapacityTerminationPolicy") - valid_624466 = validateParameter(valid_624466, JString, required = false, - default = newJString("noTermination")) + section.add "TargetCapacity", valid_624465 + var valid_624466 = query.getOrDefault("SpotFleetRequestId") + valid_624466 = validateParameter(valid_624466, JString, required = true, + default = nil) if valid_624466 != nil: - section.add "ExcessCapacityTerminationPolicy", valid_624466 + section.add "SpotFleetRequestId", valid_624466 + var valid_624467 = query.getOrDefault("Version") + valid_624467 = validateParameter(valid_624467, JString, required = true, + default = newJString("2016-11-15")) + if valid_624467 != nil: + section.add "Version", valid_624467 + var valid_624468 = query.getOrDefault("ExcessCapacityTerminationPolicy") + valid_624468 = validateParameter(valid_624468, JString, required = false, + default = newJString("noTermination")) + if valid_624468 != nil: + section.add "ExcessCapacityTerminationPolicy", valid_624468 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -110412,61 +110439,61 @@ proc validate_GetModifySpotFleetRequest_624459(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624467 = header.getOrDefault("X-Amz-Signature") - valid_624467 = validateParameter(valid_624467, JString, required = false, - default = nil) - if valid_624467 != nil: - section.add "X-Amz-Signature", valid_624467 - var valid_624468 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624468 = validateParameter(valid_624468, JString, required = false, - default = nil) - if valid_624468 != nil: - section.add "X-Amz-Content-Sha256", valid_624468 - var valid_624469 = header.getOrDefault("X-Amz-Date") + var valid_624469 = header.getOrDefault("X-Amz-Signature") valid_624469 = validateParameter(valid_624469, JString, required = false, default = nil) if valid_624469 != nil: - section.add "X-Amz-Date", valid_624469 - var valid_624470 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624469 + var valid_624470 = header.getOrDefault("X-Amz-Content-Sha256") valid_624470 = validateParameter(valid_624470, JString, required = false, default = nil) if valid_624470 != nil: - section.add "X-Amz-Credential", valid_624470 - var valid_624471 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624470 + var valid_624471 = header.getOrDefault("X-Amz-Date") valid_624471 = validateParameter(valid_624471, JString, required = false, default = nil) if valid_624471 != nil: - section.add "X-Amz-Security-Token", valid_624471 - var valid_624472 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624471 + var valid_624472 = header.getOrDefault("X-Amz-Credential") valid_624472 = validateParameter(valid_624472, JString, required = false, default = nil) if valid_624472 != nil: - section.add "X-Amz-Algorithm", valid_624472 - var valid_624473 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624472 + var valid_624473 = header.getOrDefault("X-Amz-Security-Token") valid_624473 = validateParameter(valid_624473, JString, required = false, default = nil) if valid_624473 != nil: - section.add "X-Amz-SignedHeaders", valid_624473 + section.add "X-Amz-Security-Token", valid_624473 + var valid_624474 = header.getOrDefault("X-Amz-Algorithm") + valid_624474 = validateParameter(valid_624474, JString, required = false, + default = nil) + if valid_624474 != nil: + section.add "X-Amz-Algorithm", valid_624474 + var valid_624475 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624475 = validateParameter(valid_624475, JString, required = false, + default = nil) + if valid_624475 != nil: + section.add "X-Amz-SignedHeaders", valid_624475 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624474: Call_GetModifySpotFleetRequest_624458; path: JsonNode; +proc call*(call_624476: Call_GetModifySpotFleetRequest_624460; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the specified Spot Fleet request.

    You can only modify a Spot Fleet request of type maintain.

    While the Spot Fleet request is being modified, it is in the modifying state.

    To scale up your Spot Fleet, increase its target capacity. The Spot Fleet launches the additional Spot Instances according to the allocation strategy for the Spot Fleet request. If the allocation strategy is lowestPrice, the Spot Fleet launches instances using the Spot Instance pool with the lowest price. If the allocation strategy is diversified, the Spot Fleet distributes the instances across the Spot Instance pools. If the allocation strategy is capacityOptimized, Spot Fleet launches instances from Spot Instance pools with optimal capacity for the number of instances that are launching.

    To scale down your Spot Fleet, decrease its target capacity. First, the Spot Fleet cancels any open requests that exceed the new target capacity. You can request that the Spot Fleet terminate Spot Instances until the size of the fleet no longer exceeds the new target capacity. If the allocation strategy is lowestPrice, the Spot Fleet terminates the instances with the highest price per unit. If the allocation strategy is capacityOptimized, the Spot Fleet terminates the instances in the Spot Instance pools that have the least available Spot Instance capacity. If the allocation strategy is diversified, the Spot Fleet terminates instances across the Spot Instance pools. Alternatively, you can request that the Spot Fleet keep the fleet at its current size, but not replace any Spot Instances that are interrupted or that you terminate manually.

    If you are finished with your Spot Fleet for now, but will use it again later, you can set the target capacity to 0.

    ## - let valid = call_624474.validator(path, query, header, formData, body) - let scheme = call_624474.pickScheme + let valid = call_624476.validator(path, query, header, formData, body) + let scheme = call_624476.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624474.url(scheme.get, call_624474.host, call_624474.base, - call_624474.route, valid.getOrDefault("path"), + let url = call_624476.url(scheme.get, call_624476.host, call_624476.base, + call_624476.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624474, url, valid) + result = atozHook(call_624476, url, valid) -proc call*(call_624475: Call_GetModifySpotFleetRequest_624458; +proc call*(call_624477: Call_GetModifySpotFleetRequest_624460; SpotFleetRequestId: string; OnDemandTargetCapacity: int = 0; Action: string = "ModifySpotFleetRequest"; TargetCapacity: int = 0; Version: string = "2016-11-15"; @@ -110483,25 +110510,25 @@ proc call*(call_624475: Call_GetModifySpotFleetRequest_624458; ## Version: string (required) ## ExcessCapacityTerminationPolicy: string ## : Indicates whether running Spot Instances should be terminated if the target capacity of the Spot Fleet request is decreased below the current size of the Spot Fleet. - var query_624476 = newJObject() - add(query_624476, "OnDemandTargetCapacity", newJInt(OnDemandTargetCapacity)) - add(query_624476, "Action", newJString(Action)) - add(query_624476, "TargetCapacity", newJInt(TargetCapacity)) - add(query_624476, "SpotFleetRequestId", newJString(SpotFleetRequestId)) - add(query_624476, "Version", newJString(Version)) - add(query_624476, "ExcessCapacityTerminationPolicy", + var query_624478 = newJObject() + add(query_624478, "OnDemandTargetCapacity", newJInt(OnDemandTargetCapacity)) + add(query_624478, "Action", newJString(Action)) + add(query_624478, "TargetCapacity", newJInt(TargetCapacity)) + add(query_624478, "SpotFleetRequestId", newJString(SpotFleetRequestId)) + add(query_624478, "Version", newJString(Version)) + add(query_624478, "ExcessCapacityTerminationPolicy", newJString(ExcessCapacityTerminationPolicy)) - result = call_624475.call(nil, query_624476, nil, nil, nil) + result = call_624477.call(nil, query_624478, nil, nil, nil) -var getModifySpotFleetRequest* = Call_GetModifySpotFleetRequest_624458( +var getModifySpotFleetRequest* = Call_GetModifySpotFleetRequest_624460( name: "getModifySpotFleetRequest", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifySpotFleetRequest", - validator: validate_GetModifySpotFleetRequest_624459, base: "/", - url: url_GetModifySpotFleetRequest_624460, + validator: validate_GetModifySpotFleetRequest_624461, base: "/", + url: url_GetModifySpotFleetRequest_624462, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifySubnetAttribute_624515 = ref object of OpenApiRestCall_610658 -proc url_PostModifySubnetAttribute_624517(protocol: Scheme; host: string; + Call_PostModifySubnetAttribute_624517 = ref object of OpenApiRestCall_610658 +proc url_PostModifySubnetAttribute_624519(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -110511,7 +110538,7 @@ proc url_PostModifySubnetAttribute_624517(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostModifySubnetAttribute_624516(path: JsonNode; query: JsonNode; +proc validate_PostModifySubnetAttribute_624518(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modifies a subnet attribute. You can only modify one attribute at a time. ## @@ -110523,16 +110550,16 @@ proc validate_PostModifySubnetAttribute_624516(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_624518 = query.getOrDefault("Action") - valid_624518 = validateParameter(valid_624518, JString, required = true, + var valid_624520 = query.getOrDefault("Action") + valid_624520 = validateParameter(valid_624520, JString, required = true, default = newJString("ModifySubnetAttribute")) - if valid_624518 != nil: - section.add "Action", valid_624518 - var valid_624519 = query.getOrDefault("Version") - valid_624519 = validateParameter(valid_624519, JString, required = true, + if valid_624520 != nil: + section.add "Action", valid_624520 + var valid_624521 = query.getOrDefault("Version") + valid_624521 = validateParameter(valid_624521, JString, required = true, default = newJString("2016-11-15")) - if valid_624519 != nil: - section.add "Version", valid_624519 + if valid_624521 != nil: + section.add "Version", valid_624521 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -110543,41 +110570,41 @@ proc validate_PostModifySubnetAttribute_624516(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624520 = header.getOrDefault("X-Amz-Signature") - valid_624520 = validateParameter(valid_624520, JString, required = false, - default = nil) - if valid_624520 != nil: - section.add "X-Amz-Signature", valid_624520 - var valid_624521 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624521 = validateParameter(valid_624521, JString, required = false, - default = nil) - if valid_624521 != nil: - section.add "X-Amz-Content-Sha256", valid_624521 - var valid_624522 = header.getOrDefault("X-Amz-Date") + var valid_624522 = header.getOrDefault("X-Amz-Signature") valid_624522 = validateParameter(valid_624522, JString, required = false, default = nil) if valid_624522 != nil: - section.add "X-Amz-Date", valid_624522 - var valid_624523 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624522 + var valid_624523 = header.getOrDefault("X-Amz-Content-Sha256") valid_624523 = validateParameter(valid_624523, JString, required = false, default = nil) if valid_624523 != nil: - section.add "X-Amz-Credential", valid_624523 - var valid_624524 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624523 + var valid_624524 = header.getOrDefault("X-Amz-Date") valid_624524 = validateParameter(valid_624524, JString, required = false, default = nil) if valid_624524 != nil: - section.add "X-Amz-Security-Token", valid_624524 - var valid_624525 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624524 + var valid_624525 = header.getOrDefault("X-Amz-Credential") valid_624525 = validateParameter(valid_624525, JString, required = false, default = nil) if valid_624525 != nil: - section.add "X-Amz-Algorithm", valid_624525 - var valid_624526 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624525 + var valid_624526 = header.getOrDefault("X-Amz-Security-Token") valid_624526 = validateParameter(valid_624526, JString, required = false, default = nil) if valid_624526 != nil: - section.add "X-Amz-SignedHeaders", valid_624526 + section.add "X-Amz-Security-Token", valid_624526 + var valid_624527 = header.getOrDefault("X-Amz-Algorithm") + valid_624527 = validateParameter(valid_624527, JString, required = false, + default = nil) + if valid_624527 != nil: + section.add "X-Amz-Algorithm", valid_624527 + var valid_624528 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624528 = validateParameter(valid_624528, JString, required = false, + default = nil) + if valid_624528 != nil: + section.add "X-Amz-SignedHeaders", valid_624528 result.add "header", section ## parameters in `formData` object: ## MapPublicIpOnLaunch.Value: JString @@ -110589,41 +110616,41 @@ proc validate_PostModifySubnetAttribute_624516(path: JsonNode; query: JsonNode; ## : Describes a value for a resource attribute that is a Boolean value. ## The attribute value. The valid values are true or false. section = newJObject() - var valid_624527 = formData.getOrDefault("MapPublicIpOnLaunch.Value") - valid_624527 = validateParameter(valid_624527, JString, required = false, + var valid_624529 = formData.getOrDefault("MapPublicIpOnLaunch.Value") + valid_624529 = validateParameter(valid_624529, JString, required = false, default = nil) - if valid_624527 != nil: - section.add "MapPublicIpOnLaunch.Value", valid_624527 + if valid_624529 != nil: + section.add "MapPublicIpOnLaunch.Value", valid_624529 assert formData != nil, "formData argument is necessary due to required `SubnetId` field" - var valid_624528 = formData.getOrDefault("SubnetId") - valid_624528 = validateParameter(valid_624528, JString, required = true, + var valid_624530 = formData.getOrDefault("SubnetId") + valid_624530 = validateParameter(valid_624530, JString, required = true, default = nil) - if valid_624528 != nil: - section.add "SubnetId", valid_624528 - var valid_624529 = formData.getOrDefault("AssignIpv6AddressOnCreation.Value") - valid_624529 = validateParameter(valid_624529, JString, required = false, + if valid_624530 != nil: + section.add "SubnetId", valid_624530 + var valid_624531 = formData.getOrDefault("AssignIpv6AddressOnCreation.Value") + valid_624531 = validateParameter(valid_624531, JString, required = false, default = nil) - if valid_624529 != nil: - section.add "AssignIpv6AddressOnCreation.Value", valid_624529 + if valid_624531 != nil: + section.add "AssignIpv6AddressOnCreation.Value", valid_624531 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624530: Call_PostModifySubnetAttribute_624515; path: JsonNode; +proc call*(call_624532: Call_PostModifySubnetAttribute_624517; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modifies a subnet attribute. You can only modify one attribute at a time. ## - let valid = call_624530.validator(path, query, header, formData, body) - let scheme = call_624530.pickScheme + let valid = call_624532.validator(path, query, header, formData, body) + let scheme = call_624532.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624530.url(scheme.get, call_624530.host, call_624530.base, - call_624530.route, valid.getOrDefault("path"), + let url = call_624532.url(scheme.get, call_624532.host, call_624532.base, + call_624532.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624530, url, valid) + result = atozHook(call_624532, url, valid) -proc call*(call_624531: Call_PostModifySubnetAttribute_624515; SubnetId: string; +proc call*(call_624533: Call_PostModifySubnetAttribute_624517; SubnetId: string; MapPublicIpOnLaunchValue: string = ""; Action: string = "ModifySubnetAttribute"; AssignIpv6AddressOnCreationValue: string = ""; @@ -110640,26 +110667,26 @@ proc call*(call_624531: Call_PostModifySubnetAttribute_624515; SubnetId: string; ## : Describes a value for a resource attribute that is a Boolean value. ## The attribute value. The valid values are true or false. ## Version: string (required) - var query_624532 = newJObject() - var formData_624533 = newJObject() - add(formData_624533, "MapPublicIpOnLaunch.Value", + var query_624534 = newJObject() + var formData_624535 = newJObject() + add(formData_624535, "MapPublicIpOnLaunch.Value", newJString(MapPublicIpOnLaunchValue)) - add(formData_624533, "SubnetId", newJString(SubnetId)) - add(query_624532, "Action", newJString(Action)) - add(formData_624533, "AssignIpv6AddressOnCreation.Value", + add(formData_624535, "SubnetId", newJString(SubnetId)) + add(query_624534, "Action", newJString(Action)) + add(formData_624535, "AssignIpv6AddressOnCreation.Value", newJString(AssignIpv6AddressOnCreationValue)) - add(query_624532, "Version", newJString(Version)) - result = call_624531.call(nil, query_624532, nil, formData_624533, nil) + add(query_624534, "Version", newJString(Version)) + result = call_624533.call(nil, query_624534, nil, formData_624535, nil) -var postModifySubnetAttribute* = Call_PostModifySubnetAttribute_624515( +var postModifySubnetAttribute* = Call_PostModifySubnetAttribute_624517( name: "postModifySubnetAttribute", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifySubnetAttribute", - validator: validate_PostModifySubnetAttribute_624516, base: "/", - url: url_PostModifySubnetAttribute_624517, + validator: validate_PostModifySubnetAttribute_624518, base: "/", + url: url_PostModifySubnetAttribute_624519, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifySubnetAttribute_624497 = ref object of OpenApiRestCall_610658 -proc url_GetModifySubnetAttribute_624499(protocol: Scheme; host: string; + Call_GetModifySubnetAttribute_624499 = ref object of OpenApiRestCall_610658 +proc url_GetModifySubnetAttribute_624501(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -110670,7 +110697,7 @@ proc url_GetModifySubnetAttribute_624499(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetModifySubnetAttribute_624498(path: JsonNode; query: JsonNode; +proc validate_GetModifySubnetAttribute_624500(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modifies a subnet attribute. You can only modify one attribute at a time. ## @@ -110690,31 +110717,31 @@ proc validate_GetModifySubnetAttribute_624498(path: JsonNode; query: JsonNode; ## : The ID of the subnet. ## Version: JString (required) section = newJObject() - var valid_624500 = query.getOrDefault("AssignIpv6AddressOnCreation.Value") - valid_624500 = validateParameter(valid_624500, JString, required = false, + var valid_624502 = query.getOrDefault("AssignIpv6AddressOnCreation.Value") + valid_624502 = validateParameter(valid_624502, JString, required = false, default = nil) - if valid_624500 != nil: - section.add "AssignIpv6AddressOnCreation.Value", valid_624500 - var valid_624501 = query.getOrDefault("MapPublicIpOnLaunch.Value") - valid_624501 = validateParameter(valid_624501, JString, required = false, - default = nil) - if valid_624501 != nil: - section.add "MapPublicIpOnLaunch.Value", valid_624501 - var valid_624502 = query.getOrDefault("Action") - valid_624502 = validateParameter(valid_624502, JString, required = true, - default = newJString("ModifySubnetAttribute")) if valid_624502 != nil: - section.add "Action", valid_624502 - var valid_624503 = query.getOrDefault("SubnetId") - valid_624503 = validateParameter(valid_624503, JString, required = true, + section.add "AssignIpv6AddressOnCreation.Value", valid_624502 + var valid_624503 = query.getOrDefault("MapPublicIpOnLaunch.Value") + valid_624503 = validateParameter(valid_624503, JString, required = false, default = nil) if valid_624503 != nil: - section.add "SubnetId", valid_624503 - var valid_624504 = query.getOrDefault("Version") + section.add "MapPublicIpOnLaunch.Value", valid_624503 + var valid_624504 = query.getOrDefault("Action") valid_624504 = validateParameter(valid_624504, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("ModifySubnetAttribute")) if valid_624504 != nil: - section.add "Version", valid_624504 + section.add "Action", valid_624504 + var valid_624505 = query.getOrDefault("SubnetId") + valid_624505 = validateParameter(valid_624505, JString, required = true, + default = nil) + if valid_624505 != nil: + section.add "SubnetId", valid_624505 + var valid_624506 = query.getOrDefault("Version") + valid_624506 = validateParameter(valid_624506, JString, required = true, + default = newJString("2016-11-15")) + if valid_624506 != nil: + section.add "Version", valid_624506 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -110725,61 +110752,61 @@ proc validate_GetModifySubnetAttribute_624498(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624505 = header.getOrDefault("X-Amz-Signature") - valid_624505 = validateParameter(valid_624505, JString, required = false, - default = nil) - if valid_624505 != nil: - section.add "X-Amz-Signature", valid_624505 - var valid_624506 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624506 = validateParameter(valid_624506, JString, required = false, - default = nil) - if valid_624506 != nil: - section.add "X-Amz-Content-Sha256", valid_624506 - var valid_624507 = header.getOrDefault("X-Amz-Date") + var valid_624507 = header.getOrDefault("X-Amz-Signature") valid_624507 = validateParameter(valid_624507, JString, required = false, default = nil) if valid_624507 != nil: - section.add "X-Amz-Date", valid_624507 - var valid_624508 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624507 + var valid_624508 = header.getOrDefault("X-Amz-Content-Sha256") valid_624508 = validateParameter(valid_624508, JString, required = false, default = nil) if valid_624508 != nil: - section.add "X-Amz-Credential", valid_624508 - var valid_624509 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624508 + var valid_624509 = header.getOrDefault("X-Amz-Date") valid_624509 = validateParameter(valid_624509, JString, required = false, default = nil) if valid_624509 != nil: - section.add "X-Amz-Security-Token", valid_624509 - var valid_624510 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624509 + var valid_624510 = header.getOrDefault("X-Amz-Credential") valid_624510 = validateParameter(valid_624510, JString, required = false, default = nil) if valid_624510 != nil: - section.add "X-Amz-Algorithm", valid_624510 - var valid_624511 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624510 + var valid_624511 = header.getOrDefault("X-Amz-Security-Token") valid_624511 = validateParameter(valid_624511, JString, required = false, default = nil) if valid_624511 != nil: - section.add "X-Amz-SignedHeaders", valid_624511 + section.add "X-Amz-Security-Token", valid_624511 + var valid_624512 = header.getOrDefault("X-Amz-Algorithm") + valid_624512 = validateParameter(valid_624512, JString, required = false, + default = nil) + if valid_624512 != nil: + section.add "X-Amz-Algorithm", valid_624512 + var valid_624513 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624513 = validateParameter(valid_624513, JString, required = false, + default = nil) + if valid_624513 != nil: + section.add "X-Amz-SignedHeaders", valid_624513 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624512: Call_GetModifySubnetAttribute_624497; path: JsonNode; +proc call*(call_624514: Call_GetModifySubnetAttribute_624499; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modifies a subnet attribute. You can only modify one attribute at a time. ## - let valid = call_624512.validator(path, query, header, formData, body) - let scheme = call_624512.pickScheme + let valid = call_624514.validator(path, query, header, formData, body) + let scheme = call_624514.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624512.url(scheme.get, call_624512.host, call_624512.base, - call_624512.route, valid.getOrDefault("path"), + let url = call_624514.url(scheme.get, call_624514.host, call_624514.base, + call_624514.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624512, url, valid) + result = atozHook(call_624514, url, valid) -proc call*(call_624513: Call_GetModifySubnetAttribute_624497; SubnetId: string; +proc call*(call_624515: Call_GetModifySubnetAttribute_624499; SubnetId: string; AssignIpv6AddressOnCreationValue: string = ""; MapPublicIpOnLaunchValue: string = ""; Action: string = "ModifySubnetAttribute"; Version: string = "2016-11-15"): Recallable = @@ -110795,24 +110822,24 @@ proc call*(call_624513: Call_GetModifySubnetAttribute_624497; SubnetId: string; ## SubnetId: string (required) ## : The ID of the subnet. ## Version: string (required) - var query_624514 = newJObject() - add(query_624514, "AssignIpv6AddressOnCreation.Value", + var query_624516 = newJObject() + add(query_624516, "AssignIpv6AddressOnCreation.Value", newJString(AssignIpv6AddressOnCreationValue)) - add(query_624514, "MapPublicIpOnLaunch.Value", + add(query_624516, "MapPublicIpOnLaunch.Value", newJString(MapPublicIpOnLaunchValue)) - add(query_624514, "Action", newJString(Action)) - add(query_624514, "SubnetId", newJString(SubnetId)) - add(query_624514, "Version", newJString(Version)) - result = call_624513.call(nil, query_624514, nil, nil, nil) + add(query_624516, "Action", newJString(Action)) + add(query_624516, "SubnetId", newJString(SubnetId)) + add(query_624516, "Version", newJString(Version)) + result = call_624515.call(nil, query_624516, nil, nil, nil) -var getModifySubnetAttribute* = Call_GetModifySubnetAttribute_624497( +var getModifySubnetAttribute* = Call_GetModifySubnetAttribute_624499( name: "getModifySubnetAttribute", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifySubnetAttribute", - validator: validate_GetModifySubnetAttribute_624498, base: "/", - url: url_GetModifySubnetAttribute_624499, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetModifySubnetAttribute_624500, base: "/", + url: url_GetModifySubnetAttribute_624501, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyTrafficMirrorFilterNetworkServices_624553 = ref object of OpenApiRestCall_610658 -proc url_PostModifyTrafficMirrorFilterNetworkServices_624555(protocol: Scheme; + Call_PostModifyTrafficMirrorFilterNetworkServices_624555 = ref object of OpenApiRestCall_610658 +proc url_PostModifyTrafficMirrorFilterNetworkServices_624557(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -110822,7 +110849,7 @@ proc url_PostModifyTrafficMirrorFilterNetworkServices_624555(protocol: Scheme; else: result.path = base & route -proc validate_PostModifyTrafficMirrorFilterNetworkServices_624554(path: JsonNode; +proc validate_PostModifyTrafficMirrorFilterNetworkServices_624556(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Allows or restricts mirroring network services.

    By default, Amazon DNS network services are not eligible for Traffic Mirror. Use AddNetworkServices to add network services to a Traffic Mirror filter. When a network service is added to the Traffic Mirror filter, all traffic related to that network service will be mirrored. When you no longer want to mirror network services, use RemoveNetworkServices to remove the network services from the Traffic Mirror filter.

    For information about filter rule properties, see Network Services in the Traffic Mirroring User Guide .

    ## @@ -110834,16 +110861,16 @@ proc validate_PostModifyTrafficMirrorFilterNetworkServices_624554(path: JsonNode ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_624556 = query.getOrDefault("Action") - valid_624556 = validateParameter(valid_624556, JString, required = true, default = newJString( + var valid_624558 = query.getOrDefault("Action") + valid_624558 = validateParameter(valid_624558, JString, required = true, default = newJString( "ModifyTrafficMirrorFilterNetworkServices")) - if valid_624556 != nil: - section.add "Action", valid_624556 - var valid_624557 = query.getOrDefault("Version") - valid_624557 = validateParameter(valid_624557, JString, required = true, + if valid_624558 != nil: + section.add "Action", valid_624558 + var valid_624559 = query.getOrDefault("Version") + valid_624559 = validateParameter(valid_624559, JString, required = true, default = newJString("2016-11-15")) - if valid_624557 != nil: - section.add "Version", valid_624557 + if valid_624559 != nil: + section.add "Version", valid_624559 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -110854,41 +110881,41 @@ proc validate_PostModifyTrafficMirrorFilterNetworkServices_624554(path: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624558 = header.getOrDefault("X-Amz-Signature") - valid_624558 = validateParameter(valid_624558, JString, required = false, - default = nil) - if valid_624558 != nil: - section.add "X-Amz-Signature", valid_624558 - var valid_624559 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624559 = validateParameter(valid_624559, JString, required = false, - default = nil) - if valid_624559 != nil: - section.add "X-Amz-Content-Sha256", valid_624559 - var valid_624560 = header.getOrDefault("X-Amz-Date") + var valid_624560 = header.getOrDefault("X-Amz-Signature") valid_624560 = validateParameter(valid_624560, JString, required = false, default = nil) if valid_624560 != nil: - section.add "X-Amz-Date", valid_624560 - var valid_624561 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624560 + var valid_624561 = header.getOrDefault("X-Amz-Content-Sha256") valid_624561 = validateParameter(valid_624561, JString, required = false, default = nil) if valid_624561 != nil: - section.add "X-Amz-Credential", valid_624561 - var valid_624562 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624561 + var valid_624562 = header.getOrDefault("X-Amz-Date") valid_624562 = validateParameter(valid_624562, JString, required = false, default = nil) if valid_624562 != nil: - section.add "X-Amz-Security-Token", valid_624562 - var valid_624563 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624562 + var valid_624563 = header.getOrDefault("X-Amz-Credential") valid_624563 = validateParameter(valid_624563, JString, required = false, default = nil) if valid_624563 != nil: - section.add "X-Amz-Algorithm", valid_624563 - var valid_624564 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624563 + var valid_624564 = header.getOrDefault("X-Amz-Security-Token") valid_624564 = validateParameter(valid_624564, JString, required = false, default = nil) if valid_624564 != nil: - section.add "X-Amz-SignedHeaders", valid_624564 + section.add "X-Amz-Security-Token", valid_624564 + var valid_624565 = header.getOrDefault("X-Amz-Algorithm") + valid_624565 = validateParameter(valid_624565, JString, required = false, + default = nil) + if valid_624565 != nil: + section.add "X-Amz-Algorithm", valid_624565 + var valid_624566 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624566 = validateParameter(valid_624566, JString, required = false, + default = nil) + if valid_624566 != nil: + section.add "X-Amz-SignedHeaders", valid_624566 result.add "header", section ## parameters in `formData` object: ## AddNetworkService: JArray @@ -110900,45 +110927,45 @@ proc validate_PostModifyTrafficMirrorFilterNetworkServices_624554(path: JsonNode ## TrafficMirrorFilterId: JString (required) ## : The ID of the Traffic Mirror filter. section = newJObject() - var valid_624565 = formData.getOrDefault("AddNetworkService") - valid_624565 = validateParameter(valid_624565, JArray, required = false, - default = nil) - if valid_624565 != nil: - section.add "AddNetworkService", valid_624565 - var valid_624566 = formData.getOrDefault("DryRun") - valid_624566 = validateParameter(valid_624566, JBool, required = false, default = nil) - if valid_624566 != nil: - section.add "DryRun", valid_624566 - var valid_624567 = formData.getOrDefault("RemoveNetworkService") + var valid_624567 = formData.getOrDefault("AddNetworkService") valid_624567 = validateParameter(valid_624567, JArray, required = false, default = nil) if valid_624567 != nil: - section.add "RemoveNetworkService", valid_624567 + section.add "AddNetworkService", valid_624567 + var valid_624568 = formData.getOrDefault("DryRun") + valid_624568 = validateParameter(valid_624568, JBool, required = false, default = nil) + if valid_624568 != nil: + section.add "DryRun", valid_624568 + var valid_624569 = formData.getOrDefault("RemoveNetworkService") + valid_624569 = validateParameter(valid_624569, JArray, required = false, + default = nil) + if valid_624569 != nil: + section.add "RemoveNetworkService", valid_624569 assert formData != nil, "formData argument is necessary due to required `TrafficMirrorFilterId` field" - var valid_624568 = formData.getOrDefault("TrafficMirrorFilterId") - valid_624568 = validateParameter(valid_624568, JString, required = true, + var valid_624570 = formData.getOrDefault("TrafficMirrorFilterId") + valid_624570 = validateParameter(valid_624570, JString, required = true, default = nil) - if valid_624568 != nil: - section.add "TrafficMirrorFilterId", valid_624568 + if valid_624570 != nil: + section.add "TrafficMirrorFilterId", valid_624570 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624569: Call_PostModifyTrafficMirrorFilterNetworkServices_624553; +proc call*(call_624571: Call_PostModifyTrafficMirrorFilterNetworkServices_624555; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Allows or restricts mirroring network services.

    By default, Amazon DNS network services are not eligible for Traffic Mirror. Use AddNetworkServices to add network services to a Traffic Mirror filter. When a network service is added to the Traffic Mirror filter, all traffic related to that network service will be mirrored. When you no longer want to mirror network services, use RemoveNetworkServices to remove the network services from the Traffic Mirror filter.

    For information about filter rule properties, see Network Services in the Traffic Mirroring User Guide .

    ## - let valid = call_624569.validator(path, query, header, formData, body) - let scheme = call_624569.pickScheme + let valid = call_624571.validator(path, query, header, formData, body) + let scheme = call_624571.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624569.url(scheme.get, call_624569.host, call_624569.base, - call_624569.route, valid.getOrDefault("path"), + let url = call_624571.url(scheme.get, call_624571.host, call_624571.base, + call_624571.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624569, url, valid) + result = atozHook(call_624571, url, valid) -proc call*(call_624570: Call_PostModifyTrafficMirrorFilterNetworkServices_624553; +proc call*(call_624572: Call_PostModifyTrafficMirrorFilterNetworkServices_624555; TrafficMirrorFilterId: string; AddNetworkService: JsonNode = nil; DryRun: bool = false; Action: string = "ModifyTrafficMirrorFilterNetworkServices"; @@ -110955,28 +110982,28 @@ proc call*(call_624570: Call_PostModifyTrafficMirrorFilterNetworkServices_624553 ## Version: string (required) ## TrafficMirrorFilterId: string (required) ## : The ID of the Traffic Mirror filter. - var query_624571 = newJObject() - var formData_624572 = newJObject() + var query_624573 = newJObject() + var formData_624574 = newJObject() if AddNetworkService != nil: - formData_624572.add "AddNetworkService", AddNetworkService - add(formData_624572, "DryRun", newJBool(DryRun)) - add(query_624571, "Action", newJString(Action)) + formData_624574.add "AddNetworkService", AddNetworkService + add(formData_624574, "DryRun", newJBool(DryRun)) + add(query_624573, "Action", newJString(Action)) if RemoveNetworkService != nil: - formData_624572.add "RemoveNetworkService", RemoveNetworkService - add(query_624571, "Version", newJString(Version)) - add(formData_624572, "TrafficMirrorFilterId", newJString(TrafficMirrorFilterId)) - result = call_624570.call(nil, query_624571, nil, formData_624572, nil) + formData_624574.add "RemoveNetworkService", RemoveNetworkService + add(query_624573, "Version", newJString(Version)) + add(formData_624574, "TrafficMirrorFilterId", newJString(TrafficMirrorFilterId)) + result = call_624572.call(nil, query_624573, nil, formData_624574, nil) -var postModifyTrafficMirrorFilterNetworkServices* = Call_PostModifyTrafficMirrorFilterNetworkServices_624553( +var postModifyTrafficMirrorFilterNetworkServices* = Call_PostModifyTrafficMirrorFilterNetworkServices_624555( name: "postModifyTrafficMirrorFilterNetworkServices", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyTrafficMirrorFilterNetworkServices", - validator: validate_PostModifyTrafficMirrorFilterNetworkServices_624554, - base: "/", url: url_PostModifyTrafficMirrorFilterNetworkServices_624555, + validator: validate_PostModifyTrafficMirrorFilterNetworkServices_624556, + base: "/", url: url_PostModifyTrafficMirrorFilterNetworkServices_624557, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyTrafficMirrorFilterNetworkServices_624534 = ref object of OpenApiRestCall_610658 -proc url_GetModifyTrafficMirrorFilterNetworkServices_624536(protocol: Scheme; + Call_GetModifyTrafficMirrorFilterNetworkServices_624536 = ref object of OpenApiRestCall_610658 +proc url_GetModifyTrafficMirrorFilterNetworkServices_624538(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -110986,7 +111013,7 @@ proc url_GetModifyTrafficMirrorFilterNetworkServices_624536(protocol: Scheme; else: result.path = base & route -proc validate_GetModifyTrafficMirrorFilterNetworkServices_624535(path: JsonNode; +proc validate_GetModifyTrafficMirrorFilterNetworkServices_624537(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Allows or restricts mirroring network services.

    By default, Amazon DNS network services are not eligible for Traffic Mirror. Use AddNetworkServices to add network services to a Traffic Mirror filter. When a network service is added to the Traffic Mirror filter, all traffic related to that network service will be mirrored. When you no longer want to mirror network services, use RemoveNetworkServices to remove the network services from the Traffic Mirror filter.

    For information about filter rule properties, see Network Services in the Traffic Mirroring User Guide .

    ## @@ -111006,36 +111033,36 @@ proc validate_GetModifyTrafficMirrorFilterNetworkServices_624535(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_624537 = query.getOrDefault("DryRun") - valid_624537 = validateParameter(valid_624537, JBool, required = false, default = nil) - if valid_624537 != nil: - section.add "DryRun", valid_624537 - var valid_624538 = query.getOrDefault("AddNetworkService") - valid_624538 = validateParameter(valid_624538, JArray, required = false, - default = nil) - if valid_624538 != nil: - section.add "AddNetworkService", valid_624538 - var valid_624539 = query.getOrDefault("RemoveNetworkService") - valid_624539 = validateParameter(valid_624539, JArray, required = false, - default = nil) + var valid_624539 = query.getOrDefault("DryRun") + valid_624539 = validateParameter(valid_624539, JBool, required = false, default = nil) if valid_624539 != nil: - section.add "RemoveNetworkService", valid_624539 - assert query != nil, "query argument is necessary due to required `TrafficMirrorFilterId` field" - var valid_624540 = query.getOrDefault("TrafficMirrorFilterId") - valid_624540 = validateParameter(valid_624540, JString, required = true, + section.add "DryRun", valid_624539 + var valid_624540 = query.getOrDefault("AddNetworkService") + valid_624540 = validateParameter(valid_624540, JArray, required = false, default = nil) if valid_624540 != nil: - section.add "TrafficMirrorFilterId", valid_624540 - var valid_624541 = query.getOrDefault("Action") - valid_624541 = validateParameter(valid_624541, JString, required = true, default = newJString( - "ModifyTrafficMirrorFilterNetworkServices")) + section.add "AddNetworkService", valid_624540 + var valid_624541 = query.getOrDefault("RemoveNetworkService") + valid_624541 = validateParameter(valid_624541, JArray, required = false, + default = nil) if valid_624541 != nil: - section.add "Action", valid_624541 - var valid_624542 = query.getOrDefault("Version") + section.add "RemoveNetworkService", valid_624541 + assert query != nil, "query argument is necessary due to required `TrafficMirrorFilterId` field" + var valid_624542 = query.getOrDefault("TrafficMirrorFilterId") valid_624542 = validateParameter(valid_624542, JString, required = true, - default = newJString("2016-11-15")) + default = nil) if valid_624542 != nil: - section.add "Version", valid_624542 + section.add "TrafficMirrorFilterId", valid_624542 + var valid_624543 = query.getOrDefault("Action") + valid_624543 = validateParameter(valid_624543, JString, required = true, default = newJString( + "ModifyTrafficMirrorFilterNetworkServices")) + if valid_624543 != nil: + section.add "Action", valid_624543 + var valid_624544 = query.getOrDefault("Version") + valid_624544 = validateParameter(valid_624544, JString, required = true, + default = newJString("2016-11-15")) + if valid_624544 != nil: + section.add "Version", valid_624544 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -111046,62 +111073,62 @@ proc validate_GetModifyTrafficMirrorFilterNetworkServices_624535(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624543 = header.getOrDefault("X-Amz-Signature") - valid_624543 = validateParameter(valid_624543, JString, required = false, - default = nil) - if valid_624543 != nil: - section.add "X-Amz-Signature", valid_624543 - var valid_624544 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624544 = validateParameter(valid_624544, JString, required = false, - default = nil) - if valid_624544 != nil: - section.add "X-Amz-Content-Sha256", valid_624544 - var valid_624545 = header.getOrDefault("X-Amz-Date") + var valid_624545 = header.getOrDefault("X-Amz-Signature") valid_624545 = validateParameter(valid_624545, JString, required = false, default = nil) if valid_624545 != nil: - section.add "X-Amz-Date", valid_624545 - var valid_624546 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624545 + var valid_624546 = header.getOrDefault("X-Amz-Content-Sha256") valid_624546 = validateParameter(valid_624546, JString, required = false, default = nil) if valid_624546 != nil: - section.add "X-Amz-Credential", valid_624546 - var valid_624547 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624546 + var valid_624547 = header.getOrDefault("X-Amz-Date") valid_624547 = validateParameter(valid_624547, JString, required = false, default = nil) if valid_624547 != nil: - section.add "X-Amz-Security-Token", valid_624547 - var valid_624548 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624547 + var valid_624548 = header.getOrDefault("X-Amz-Credential") valid_624548 = validateParameter(valid_624548, JString, required = false, default = nil) if valid_624548 != nil: - section.add "X-Amz-Algorithm", valid_624548 - var valid_624549 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624548 + var valid_624549 = header.getOrDefault("X-Amz-Security-Token") valid_624549 = validateParameter(valid_624549, JString, required = false, default = nil) if valid_624549 != nil: - section.add "X-Amz-SignedHeaders", valid_624549 + section.add "X-Amz-Security-Token", valid_624549 + var valid_624550 = header.getOrDefault("X-Amz-Algorithm") + valid_624550 = validateParameter(valid_624550, JString, required = false, + default = nil) + if valid_624550 != nil: + section.add "X-Amz-Algorithm", valid_624550 + var valid_624551 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624551 = validateParameter(valid_624551, JString, required = false, + default = nil) + if valid_624551 != nil: + section.add "X-Amz-SignedHeaders", valid_624551 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624550: Call_GetModifyTrafficMirrorFilterNetworkServices_624534; +proc call*(call_624552: Call_GetModifyTrafficMirrorFilterNetworkServices_624536; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Allows or restricts mirroring network services.

    By default, Amazon DNS network services are not eligible for Traffic Mirror. Use AddNetworkServices to add network services to a Traffic Mirror filter. When a network service is added to the Traffic Mirror filter, all traffic related to that network service will be mirrored. When you no longer want to mirror network services, use RemoveNetworkServices to remove the network services from the Traffic Mirror filter.

    For information about filter rule properties, see Network Services in the Traffic Mirroring User Guide .

    ## - let valid = call_624550.validator(path, query, header, formData, body) - let scheme = call_624550.pickScheme + let valid = call_624552.validator(path, query, header, formData, body) + let scheme = call_624552.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624550.url(scheme.get, call_624550.host, call_624550.base, - call_624550.route, valid.getOrDefault("path"), + let url = call_624552.url(scheme.get, call_624552.host, call_624552.base, + call_624552.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624550, url, valid) + result = atozHook(call_624552, url, valid) -proc call*(call_624551: Call_GetModifyTrafficMirrorFilterNetworkServices_624534; +proc call*(call_624553: Call_GetModifyTrafficMirrorFilterNetworkServices_624536; TrafficMirrorFilterId: string; DryRun: bool = false; AddNetworkService: JsonNode = nil; RemoveNetworkService: JsonNode = nil; Action: string = "ModifyTrafficMirrorFilterNetworkServices"; @@ -111118,27 +111145,27 @@ proc call*(call_624551: Call_GetModifyTrafficMirrorFilterNetworkServices_624534; ## : The ID of the Traffic Mirror filter. ## Action: string (required) ## Version: string (required) - var query_624552 = newJObject() - add(query_624552, "DryRun", newJBool(DryRun)) + var query_624554 = newJObject() + add(query_624554, "DryRun", newJBool(DryRun)) if AddNetworkService != nil: - query_624552.add "AddNetworkService", AddNetworkService + query_624554.add "AddNetworkService", AddNetworkService if RemoveNetworkService != nil: - query_624552.add "RemoveNetworkService", RemoveNetworkService - add(query_624552, "TrafficMirrorFilterId", newJString(TrafficMirrorFilterId)) - add(query_624552, "Action", newJString(Action)) - add(query_624552, "Version", newJString(Version)) - result = call_624551.call(nil, query_624552, nil, nil, nil) + query_624554.add "RemoveNetworkService", RemoveNetworkService + add(query_624554, "TrafficMirrorFilterId", newJString(TrafficMirrorFilterId)) + add(query_624554, "Action", newJString(Action)) + add(query_624554, "Version", newJString(Version)) + result = call_624553.call(nil, query_624554, nil, nil, nil) -var getModifyTrafficMirrorFilterNetworkServices* = Call_GetModifyTrafficMirrorFilterNetworkServices_624534( +var getModifyTrafficMirrorFilterNetworkServices* = Call_GetModifyTrafficMirrorFilterNetworkServices_624536( name: "getModifyTrafficMirrorFilterNetworkServices", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifyTrafficMirrorFilterNetworkServices", - validator: validate_GetModifyTrafficMirrorFilterNetworkServices_624535, - base: "/", url: url_GetModifyTrafficMirrorFilterNetworkServices_624536, + validator: validate_GetModifyTrafficMirrorFilterNetworkServices_624537, + base: "/", url: url_GetModifyTrafficMirrorFilterNetworkServices_624538, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyTrafficMirrorFilterRule_624602 = ref object of OpenApiRestCall_610658 -proc url_PostModifyTrafficMirrorFilterRule_624604(protocol: Scheme; host: string; + Call_PostModifyTrafficMirrorFilterRule_624604 = ref object of OpenApiRestCall_610658 +proc url_PostModifyTrafficMirrorFilterRule_624606(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -111148,7 +111175,7 @@ proc url_PostModifyTrafficMirrorFilterRule_624604(protocol: Scheme; host: string else: result.path = base & route -proc validate_PostModifyTrafficMirrorFilterRule_624603(path: JsonNode; +proc validate_PostModifyTrafficMirrorFilterRule_624605(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the specified Traffic Mirror rule.

    DestinationCidrBlock and SourceCidrBlock must both be an IPv4 range or an IPv6 range.

    ## @@ -111160,16 +111187,16 @@ proc validate_PostModifyTrafficMirrorFilterRule_624603(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_624605 = query.getOrDefault("Action") - valid_624605 = validateParameter(valid_624605, JString, required = true, default = newJString( + var valid_624607 = query.getOrDefault("Action") + valid_624607 = validateParameter(valid_624607, JString, required = true, default = newJString( "ModifyTrafficMirrorFilterRule")) - if valid_624605 != nil: - section.add "Action", valid_624605 - var valid_624606 = query.getOrDefault("Version") - valid_624606 = validateParameter(valid_624606, JString, required = true, + if valid_624607 != nil: + section.add "Action", valid_624607 + var valid_624608 = query.getOrDefault("Version") + valid_624608 = validateParameter(valid_624608, JString, required = true, default = newJString("2016-11-15")) - if valid_624606 != nil: - section.add "Version", valid_624606 + if valid_624608 != nil: + section.add "Version", valid_624608 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -111180,41 +111207,41 @@ proc validate_PostModifyTrafficMirrorFilterRule_624603(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624607 = header.getOrDefault("X-Amz-Signature") - valid_624607 = validateParameter(valid_624607, JString, required = false, - default = nil) - if valid_624607 != nil: - section.add "X-Amz-Signature", valid_624607 - var valid_624608 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624608 = validateParameter(valid_624608, JString, required = false, - default = nil) - if valid_624608 != nil: - section.add "X-Amz-Content-Sha256", valid_624608 - var valid_624609 = header.getOrDefault("X-Amz-Date") + var valid_624609 = header.getOrDefault("X-Amz-Signature") valid_624609 = validateParameter(valid_624609, JString, required = false, default = nil) if valid_624609 != nil: - section.add "X-Amz-Date", valid_624609 - var valid_624610 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624609 + var valid_624610 = header.getOrDefault("X-Amz-Content-Sha256") valid_624610 = validateParameter(valid_624610, JString, required = false, default = nil) if valid_624610 != nil: - section.add "X-Amz-Credential", valid_624610 - var valid_624611 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624610 + var valid_624611 = header.getOrDefault("X-Amz-Date") valid_624611 = validateParameter(valid_624611, JString, required = false, default = nil) if valid_624611 != nil: - section.add "X-Amz-Security-Token", valid_624611 - var valid_624612 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624611 + var valid_624612 = header.getOrDefault("X-Amz-Credential") valid_624612 = validateParameter(valid_624612, JString, required = false, default = nil) if valid_624612 != nil: - section.add "X-Amz-Algorithm", valid_624612 - var valid_624613 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624612 + var valid_624613 = header.getOrDefault("X-Amz-Security-Token") valid_624613 = validateParameter(valid_624613, JString, required = false, default = nil) if valid_624613 != nil: - section.add "X-Amz-SignedHeaders", valid_624613 + section.add "X-Amz-Security-Token", valid_624613 + var valid_624614 = header.getOrDefault("X-Amz-Algorithm") + valid_624614 = validateParameter(valid_624614, JString, required = false, + default = nil) + if valid_624614 != nil: + section.add "X-Amz-Algorithm", valid_624614 + var valid_624615 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624615 = validateParameter(valid_624615, JString, required = false, + default = nil) + if valid_624615 != nil: + section.add "X-Amz-SignedHeaders", valid_624615 result.add "header", section ## parameters in `formData` object: ## SourcePortRange.FromPort: JString @@ -111250,93 +111277,93 @@ proc validate_PostModifyTrafficMirrorFilterRule_624603(path: JsonNode; ## RuleNumber: JInt ## : The number of the Traffic Mirror rule. This number must be unique for each Traffic Mirror rule in a given direction. The rules are processed in ascending order by rule number. section = newJObject() - var valid_624614 = formData.getOrDefault("SourcePortRange.FromPort") - valid_624614 = validateParameter(valid_624614, JString, required = false, - default = nil) - if valid_624614 != nil: - section.add "SourcePortRange.FromPort", valid_624614 - var valid_624615 = formData.getOrDefault("RuleAction") - valid_624615 = validateParameter(valid_624615, JString, required = false, - default = newJString("accept")) - if valid_624615 != nil: - section.add "RuleAction", valid_624615 - var valid_624616 = formData.getOrDefault("DestinationPortRange.FromPort") + var valid_624616 = formData.getOrDefault("SourcePortRange.FromPort") valid_624616 = validateParameter(valid_624616, JString, required = false, default = nil) if valid_624616 != nil: - section.add "DestinationPortRange.FromPort", valid_624616 - var valid_624617 = formData.getOrDefault("Description") + section.add "SourcePortRange.FromPort", valid_624616 + var valid_624617 = formData.getOrDefault("RuleAction") valid_624617 = validateParameter(valid_624617, JString, required = false, - default = nil) + default = newJString("accept")) if valid_624617 != nil: - section.add "Description", valid_624617 - var valid_624618 = formData.getOrDefault("DestinationCidrBlock") + section.add "RuleAction", valid_624617 + var valid_624618 = formData.getOrDefault("DestinationPortRange.FromPort") valid_624618 = validateParameter(valid_624618, JString, required = false, default = nil) if valid_624618 != nil: - section.add "DestinationCidrBlock", valid_624618 - var valid_624619 = formData.getOrDefault("DestinationPortRange.ToPort") + section.add "DestinationPortRange.FromPort", valid_624618 + var valid_624619 = formData.getOrDefault("Description") valid_624619 = validateParameter(valid_624619, JString, required = false, default = nil) if valid_624619 != nil: - section.add "DestinationPortRange.ToPort", valid_624619 - var valid_624620 = formData.getOrDefault("SourceCidrBlock") + section.add "Description", valid_624619 + var valid_624620 = formData.getOrDefault("DestinationCidrBlock") valid_624620 = validateParameter(valid_624620, JString, required = false, default = nil) if valid_624620 != nil: - section.add "SourceCidrBlock", valid_624620 - var valid_624621 = formData.getOrDefault("Protocol") - valid_624621 = validateParameter(valid_624621, JInt, required = false, default = nil) + section.add "DestinationCidrBlock", valid_624620 + var valid_624621 = formData.getOrDefault("DestinationPortRange.ToPort") + valid_624621 = validateParameter(valid_624621, JString, required = false, + default = nil) if valid_624621 != nil: - section.add "Protocol", valid_624621 - var valid_624622 = formData.getOrDefault("RemoveField") - valid_624622 = validateParameter(valid_624622, JArray, required = false, + section.add "DestinationPortRange.ToPort", valid_624621 + var valid_624622 = formData.getOrDefault("SourceCidrBlock") + valid_624622 = validateParameter(valid_624622, JString, required = false, default = nil) if valid_624622 != nil: - section.add "RemoveField", valid_624622 - var valid_624623 = formData.getOrDefault("DryRun") - valid_624623 = validateParameter(valid_624623, JBool, required = false, default = nil) + section.add "SourceCidrBlock", valid_624622 + var valid_624623 = formData.getOrDefault("Protocol") + valid_624623 = validateParameter(valid_624623, JInt, required = false, default = nil) if valid_624623 != nil: - section.add "DryRun", valid_624623 - assert formData != nil, "formData argument is necessary due to required `TrafficMirrorFilterRuleId` field" - var valid_624624 = formData.getOrDefault("TrafficMirrorFilterRuleId") - valid_624624 = validateParameter(valid_624624, JString, required = true, + section.add "Protocol", valid_624623 + var valid_624624 = formData.getOrDefault("RemoveField") + valid_624624 = validateParameter(valid_624624, JArray, required = false, default = nil) if valid_624624 != nil: - section.add "TrafficMirrorFilterRuleId", valid_624624 - var valid_624625 = formData.getOrDefault("SourcePortRange.ToPort") - valid_624625 = validateParameter(valid_624625, JString, required = false, - default = nil) + section.add "RemoveField", valid_624624 + var valid_624625 = formData.getOrDefault("DryRun") + valid_624625 = validateParameter(valid_624625, JBool, required = false, default = nil) if valid_624625 != nil: - section.add "SourcePortRange.ToPort", valid_624625 - var valid_624626 = formData.getOrDefault("TrafficDirection") - valid_624626 = validateParameter(valid_624626, JString, required = false, - default = newJString("ingress")) + section.add "DryRun", valid_624625 + assert formData != nil, "formData argument is necessary due to required `TrafficMirrorFilterRuleId` field" + var valid_624626 = formData.getOrDefault("TrafficMirrorFilterRuleId") + valid_624626 = validateParameter(valid_624626, JString, required = true, + default = nil) if valid_624626 != nil: - section.add "TrafficDirection", valid_624626 - var valid_624627 = formData.getOrDefault("RuleNumber") - valid_624627 = validateParameter(valid_624627, JInt, required = false, default = nil) + section.add "TrafficMirrorFilterRuleId", valid_624626 + var valid_624627 = formData.getOrDefault("SourcePortRange.ToPort") + valid_624627 = validateParameter(valid_624627, JString, required = false, + default = nil) if valid_624627 != nil: - section.add "RuleNumber", valid_624627 + section.add "SourcePortRange.ToPort", valid_624627 + var valid_624628 = formData.getOrDefault("TrafficDirection") + valid_624628 = validateParameter(valid_624628, JString, required = false, + default = newJString("ingress")) + if valid_624628 != nil: + section.add "TrafficDirection", valid_624628 + var valid_624629 = formData.getOrDefault("RuleNumber") + valid_624629 = validateParameter(valid_624629, JInt, required = false, default = nil) + if valid_624629 != nil: + section.add "RuleNumber", valid_624629 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624628: Call_PostModifyTrafficMirrorFilterRule_624602; +proc call*(call_624630: Call_PostModifyTrafficMirrorFilterRule_624604; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the specified Traffic Mirror rule.

    DestinationCidrBlock and SourceCidrBlock must both be an IPv4 range or an IPv6 range.

    ## - let valid = call_624628.validator(path, query, header, formData, body) - let scheme = call_624628.pickScheme + let valid = call_624630.validator(path, query, header, formData, body) + let scheme = call_624630.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624628.url(scheme.get, call_624628.host, call_624628.base, - call_624628.route, valid.getOrDefault("path"), + let url = call_624630.url(scheme.get, call_624630.host, call_624630.base, + call_624630.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624628, url, valid) + result = atozHook(call_624630, url, valid) -proc call*(call_624629: Call_PostModifyTrafficMirrorFilterRule_624602; +proc call*(call_624631: Call_PostModifyTrafficMirrorFilterRule_624604; TrafficMirrorFilterRuleId: string; SourcePortRangeFromPort: string = ""; RuleAction: string = "accept"; DestinationPortRangeFromPort: string = ""; Description: string = ""; DestinationCidrBlock: string = ""; @@ -111381,40 +111408,40 @@ proc call*(call_624629: Call_PostModifyTrafficMirrorFilterRule_624602; ## : The type of traffic (ingress | egress) to assign to the rule. ## RuleNumber: int ## : The number of the Traffic Mirror rule. This number must be unique for each Traffic Mirror rule in a given direction. The rules are processed in ascending order by rule number. - var query_624630 = newJObject() - var formData_624631 = newJObject() - add(formData_624631, "SourcePortRange.FromPort", + var query_624632 = newJObject() + var formData_624633 = newJObject() + add(formData_624633, "SourcePortRange.FromPort", newJString(SourcePortRangeFromPort)) - add(formData_624631, "RuleAction", newJString(RuleAction)) - add(formData_624631, "DestinationPortRange.FromPort", + add(formData_624633, "RuleAction", newJString(RuleAction)) + add(formData_624633, "DestinationPortRange.FromPort", newJString(DestinationPortRangeFromPort)) - add(formData_624631, "Description", newJString(Description)) - add(formData_624631, "DestinationCidrBlock", newJString(DestinationCidrBlock)) - add(formData_624631, "DestinationPortRange.ToPort", + add(formData_624633, "Description", newJString(Description)) + add(formData_624633, "DestinationCidrBlock", newJString(DestinationCidrBlock)) + add(formData_624633, "DestinationPortRange.ToPort", newJString(DestinationPortRangeToPort)) - add(formData_624631, "SourceCidrBlock", newJString(SourceCidrBlock)) - add(formData_624631, "Protocol", newJInt(Protocol)) + add(formData_624633, "SourceCidrBlock", newJString(SourceCidrBlock)) + add(formData_624633, "Protocol", newJInt(Protocol)) if RemoveField != nil: - formData_624631.add "RemoveField", RemoveField - add(formData_624631, "DryRun", newJBool(DryRun)) - add(query_624630, "Action", newJString(Action)) - add(formData_624631, "TrafficMirrorFilterRuleId", + formData_624633.add "RemoveField", RemoveField + add(formData_624633, "DryRun", newJBool(DryRun)) + add(query_624632, "Action", newJString(Action)) + add(formData_624633, "TrafficMirrorFilterRuleId", newJString(TrafficMirrorFilterRuleId)) - add(query_624630, "Version", newJString(Version)) - add(formData_624631, "SourcePortRange.ToPort", newJString(SourcePortRangeToPort)) - add(formData_624631, "TrafficDirection", newJString(TrafficDirection)) - add(formData_624631, "RuleNumber", newJInt(RuleNumber)) - result = call_624629.call(nil, query_624630, nil, formData_624631, nil) + add(query_624632, "Version", newJString(Version)) + add(formData_624633, "SourcePortRange.ToPort", newJString(SourcePortRangeToPort)) + add(formData_624633, "TrafficDirection", newJString(TrafficDirection)) + add(formData_624633, "RuleNumber", newJInt(RuleNumber)) + result = call_624631.call(nil, query_624632, nil, formData_624633, nil) -var postModifyTrafficMirrorFilterRule* = Call_PostModifyTrafficMirrorFilterRule_624602( +var postModifyTrafficMirrorFilterRule* = Call_PostModifyTrafficMirrorFilterRule_624604( name: "postModifyTrafficMirrorFilterRule", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyTrafficMirrorFilterRule", - validator: validate_PostModifyTrafficMirrorFilterRule_624603, base: "/", - url: url_PostModifyTrafficMirrorFilterRule_624604, + validator: validate_PostModifyTrafficMirrorFilterRule_624605, base: "/", + url: url_PostModifyTrafficMirrorFilterRule_624606, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyTrafficMirrorFilterRule_624573 = ref object of OpenApiRestCall_610658 -proc url_GetModifyTrafficMirrorFilterRule_624575(protocol: Scheme; host: string; + Call_GetModifyTrafficMirrorFilterRule_624575 = ref object of OpenApiRestCall_610658 +proc url_GetModifyTrafficMirrorFilterRule_624577(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -111424,7 +111451,7 @@ proc url_GetModifyTrafficMirrorFilterRule_624575(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetModifyTrafficMirrorFilterRule_624574(path: JsonNode; +proc validate_GetModifyTrafficMirrorFilterRule_624576(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the specified Traffic Mirror rule.

    DestinationCidrBlock and SourceCidrBlock must both be an IPv4 range or an IPv6 range.

    ## @@ -111469,83 +111496,83 @@ proc validate_GetModifyTrafficMirrorFilterRule_624574(path: JsonNode; ## : The destination CIDR block to assign to the Traffic Mirror rule. section = newJObject() assert query != nil, "query argument is necessary due to required `TrafficMirrorFilterRuleId` field" - var valid_624576 = query.getOrDefault("TrafficMirrorFilterRuleId") - valid_624576 = validateParameter(valid_624576, JString, required = true, + var valid_624578 = query.getOrDefault("TrafficMirrorFilterRuleId") + valid_624578 = validateParameter(valid_624578, JString, required = true, default = nil) - if valid_624576 != nil: - section.add "TrafficMirrorFilterRuleId", valid_624576 - var valid_624577 = query.getOrDefault("TrafficDirection") - valid_624577 = validateParameter(valid_624577, JString, required = false, - default = newJString("ingress")) - if valid_624577 != nil: - section.add "TrafficDirection", valid_624577 - var valid_624578 = query.getOrDefault("DryRun") - valid_624578 = validateParameter(valid_624578, JBool, required = false, default = nil) if valid_624578 != nil: - section.add "DryRun", valid_624578 - var valid_624579 = query.getOrDefault("SourcePortRange.FromPort") + section.add "TrafficMirrorFilterRuleId", valid_624578 + var valid_624579 = query.getOrDefault("TrafficDirection") valid_624579 = validateParameter(valid_624579, JString, required = false, - default = nil) + default = newJString("ingress")) if valid_624579 != nil: - section.add "SourcePortRange.FromPort", valid_624579 - var valid_624580 = query.getOrDefault("SourcePortRange.ToPort") - valid_624580 = validateParameter(valid_624580, JString, required = false, - default = nil) + section.add "TrafficDirection", valid_624579 + var valid_624580 = query.getOrDefault("DryRun") + valid_624580 = validateParameter(valid_624580, JBool, required = false, default = nil) if valid_624580 != nil: - section.add "SourcePortRange.ToPort", valid_624580 - var valid_624581 = query.getOrDefault("DestinationPortRange.FromPort") + section.add "DryRun", valid_624580 + var valid_624581 = query.getOrDefault("SourcePortRange.FromPort") valid_624581 = validateParameter(valid_624581, JString, required = false, default = nil) if valid_624581 != nil: - section.add "DestinationPortRange.FromPort", valid_624581 - var valid_624582 = query.getOrDefault("RuleNumber") - valid_624582 = validateParameter(valid_624582, JInt, required = false, default = nil) + section.add "SourcePortRange.FromPort", valid_624581 + var valid_624582 = query.getOrDefault("SourcePortRange.ToPort") + valid_624582 = validateParameter(valid_624582, JString, required = false, + default = nil) if valid_624582 != nil: - section.add "RuleNumber", valid_624582 - var valid_624583 = query.getOrDefault("RuleAction") + section.add "SourcePortRange.ToPort", valid_624582 + var valid_624583 = query.getOrDefault("DestinationPortRange.FromPort") valid_624583 = validateParameter(valid_624583, JString, required = false, - default = newJString("accept")) + default = nil) if valid_624583 != nil: - section.add "RuleAction", valid_624583 - var valid_624584 = query.getOrDefault("Action") - valid_624584 = validateParameter(valid_624584, JString, required = true, default = newJString( - "ModifyTrafficMirrorFilterRule")) + section.add "DestinationPortRange.FromPort", valid_624583 + var valid_624584 = query.getOrDefault("RuleNumber") + valid_624584 = validateParameter(valid_624584, JInt, required = false, default = nil) if valid_624584 != nil: - section.add "Action", valid_624584 - var valid_624585 = query.getOrDefault("Description") + section.add "RuleNumber", valid_624584 + var valid_624585 = query.getOrDefault("RuleAction") valid_624585 = validateParameter(valid_624585, JString, required = false, - default = nil) + default = newJString("accept")) if valid_624585 != nil: - section.add "Description", valid_624585 - var valid_624586 = query.getOrDefault("Protocol") - valid_624586 = validateParameter(valid_624586, JInt, required = false, default = nil) + section.add "RuleAction", valid_624585 + var valid_624586 = query.getOrDefault("Action") + valid_624586 = validateParameter(valid_624586, JString, required = true, default = newJString( + "ModifyTrafficMirrorFilterRule")) if valid_624586 != nil: - section.add "Protocol", valid_624586 - var valid_624587 = query.getOrDefault("SourceCidrBlock") + section.add "Action", valid_624586 + var valid_624587 = query.getOrDefault("Description") valid_624587 = validateParameter(valid_624587, JString, required = false, default = nil) if valid_624587 != nil: - section.add "SourceCidrBlock", valid_624587 - var valid_624588 = query.getOrDefault("DestinationPortRange.ToPort") - valid_624588 = validateParameter(valid_624588, JString, required = false, - default = nil) + section.add "Description", valid_624587 + var valid_624588 = query.getOrDefault("Protocol") + valid_624588 = validateParameter(valid_624588, JInt, required = false, default = nil) if valid_624588 != nil: - section.add "DestinationPortRange.ToPort", valid_624588 - var valid_624589 = query.getOrDefault("Version") - valid_624589 = validateParameter(valid_624589, JString, required = true, - default = newJString("2016-11-15")) + section.add "Protocol", valid_624588 + var valid_624589 = query.getOrDefault("SourceCidrBlock") + valid_624589 = validateParameter(valid_624589, JString, required = false, + default = nil) if valid_624589 != nil: - section.add "Version", valid_624589 - var valid_624590 = query.getOrDefault("RemoveField") - valid_624590 = validateParameter(valid_624590, JArray, required = false, + section.add "SourceCidrBlock", valid_624589 + var valid_624590 = query.getOrDefault("DestinationPortRange.ToPort") + valid_624590 = validateParameter(valid_624590, JString, required = false, default = nil) if valid_624590 != nil: - section.add "RemoveField", valid_624590 - var valid_624591 = query.getOrDefault("DestinationCidrBlock") - valid_624591 = validateParameter(valid_624591, JString, required = false, - default = nil) + section.add "DestinationPortRange.ToPort", valid_624590 + var valid_624591 = query.getOrDefault("Version") + valid_624591 = validateParameter(valid_624591, JString, required = true, + default = newJString("2016-11-15")) if valid_624591 != nil: - section.add "DestinationCidrBlock", valid_624591 + section.add "Version", valid_624591 + var valid_624592 = query.getOrDefault("RemoveField") + valid_624592 = validateParameter(valid_624592, JArray, required = false, + default = nil) + if valid_624592 != nil: + section.add "RemoveField", valid_624592 + var valid_624593 = query.getOrDefault("DestinationCidrBlock") + valid_624593 = validateParameter(valid_624593, JString, required = false, + default = nil) + if valid_624593 != nil: + section.add "DestinationCidrBlock", valid_624593 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -111556,62 +111583,62 @@ proc validate_GetModifyTrafficMirrorFilterRule_624574(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624592 = header.getOrDefault("X-Amz-Signature") - valid_624592 = validateParameter(valid_624592, JString, required = false, - default = nil) - if valid_624592 != nil: - section.add "X-Amz-Signature", valid_624592 - var valid_624593 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624593 = validateParameter(valid_624593, JString, required = false, - default = nil) - if valid_624593 != nil: - section.add "X-Amz-Content-Sha256", valid_624593 - var valid_624594 = header.getOrDefault("X-Amz-Date") + var valid_624594 = header.getOrDefault("X-Amz-Signature") valid_624594 = validateParameter(valid_624594, JString, required = false, default = nil) if valid_624594 != nil: - section.add "X-Amz-Date", valid_624594 - var valid_624595 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624594 + var valid_624595 = header.getOrDefault("X-Amz-Content-Sha256") valid_624595 = validateParameter(valid_624595, JString, required = false, default = nil) if valid_624595 != nil: - section.add "X-Amz-Credential", valid_624595 - var valid_624596 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624595 + var valid_624596 = header.getOrDefault("X-Amz-Date") valid_624596 = validateParameter(valid_624596, JString, required = false, default = nil) if valid_624596 != nil: - section.add "X-Amz-Security-Token", valid_624596 - var valid_624597 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624596 + var valid_624597 = header.getOrDefault("X-Amz-Credential") valid_624597 = validateParameter(valid_624597, JString, required = false, default = nil) if valid_624597 != nil: - section.add "X-Amz-Algorithm", valid_624597 - var valid_624598 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624597 + var valid_624598 = header.getOrDefault("X-Amz-Security-Token") valid_624598 = validateParameter(valid_624598, JString, required = false, default = nil) if valid_624598 != nil: - section.add "X-Amz-SignedHeaders", valid_624598 + section.add "X-Amz-Security-Token", valid_624598 + var valid_624599 = header.getOrDefault("X-Amz-Algorithm") + valid_624599 = validateParameter(valid_624599, JString, required = false, + default = nil) + if valid_624599 != nil: + section.add "X-Amz-Algorithm", valid_624599 + var valid_624600 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624600 = validateParameter(valid_624600, JString, required = false, + default = nil) + if valid_624600 != nil: + section.add "X-Amz-SignedHeaders", valid_624600 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624599: Call_GetModifyTrafficMirrorFilterRule_624573; +proc call*(call_624601: Call_GetModifyTrafficMirrorFilterRule_624575; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the specified Traffic Mirror rule.

    DestinationCidrBlock and SourceCidrBlock must both be an IPv4 range or an IPv6 range.

    ## - let valid = call_624599.validator(path, query, header, formData, body) - let scheme = call_624599.pickScheme + let valid = call_624601.validator(path, query, header, formData, body) + let scheme = call_624601.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624599.url(scheme.get, call_624599.host, call_624599.base, - call_624599.route, valid.getOrDefault("path"), + let url = call_624601.url(scheme.get, call_624601.host, call_624601.base, + call_624601.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624599, url, valid) + result = atozHook(call_624601, url, valid) -proc call*(call_624600: Call_GetModifyTrafficMirrorFilterRule_624573; +proc call*(call_624602: Call_GetModifyTrafficMirrorFilterRule_624575; TrafficMirrorFilterRuleId: string; TrafficDirection: string = "ingress"; DryRun: bool = false; SourcePortRangeFromPort: string = ""; SourcePortRangeToPort: string = ""; @@ -111657,39 +111684,39 @@ proc call*(call_624600: Call_GetModifyTrafficMirrorFilterRule_624573; ## :

    The properties that you want to remove from the Traffic Mirror filter rule.

    When you remove a property from a Traffic Mirror filter rule, the property is set to the default.

    ## DestinationCidrBlock: string ## : The destination CIDR block to assign to the Traffic Mirror rule. - var query_624601 = newJObject() - add(query_624601, "TrafficMirrorFilterRuleId", + var query_624603 = newJObject() + add(query_624603, "TrafficMirrorFilterRuleId", newJString(TrafficMirrorFilterRuleId)) - add(query_624601, "TrafficDirection", newJString(TrafficDirection)) - add(query_624601, "DryRun", newJBool(DryRun)) - add(query_624601, "SourcePortRange.FromPort", + add(query_624603, "TrafficDirection", newJString(TrafficDirection)) + add(query_624603, "DryRun", newJBool(DryRun)) + add(query_624603, "SourcePortRange.FromPort", newJString(SourcePortRangeFromPort)) - add(query_624601, "SourcePortRange.ToPort", newJString(SourcePortRangeToPort)) - add(query_624601, "DestinationPortRange.FromPort", + add(query_624603, "SourcePortRange.ToPort", newJString(SourcePortRangeToPort)) + add(query_624603, "DestinationPortRange.FromPort", newJString(DestinationPortRangeFromPort)) - add(query_624601, "RuleNumber", newJInt(RuleNumber)) - add(query_624601, "RuleAction", newJString(RuleAction)) - add(query_624601, "Action", newJString(Action)) - add(query_624601, "Description", newJString(Description)) - add(query_624601, "Protocol", newJInt(Protocol)) - add(query_624601, "SourceCidrBlock", newJString(SourceCidrBlock)) - add(query_624601, "DestinationPortRange.ToPort", + add(query_624603, "RuleNumber", newJInt(RuleNumber)) + add(query_624603, "RuleAction", newJString(RuleAction)) + add(query_624603, "Action", newJString(Action)) + add(query_624603, "Description", newJString(Description)) + add(query_624603, "Protocol", newJInt(Protocol)) + add(query_624603, "SourceCidrBlock", newJString(SourceCidrBlock)) + add(query_624603, "DestinationPortRange.ToPort", newJString(DestinationPortRangeToPort)) - add(query_624601, "Version", newJString(Version)) + add(query_624603, "Version", newJString(Version)) if RemoveField != nil: - query_624601.add "RemoveField", RemoveField - add(query_624601, "DestinationCidrBlock", newJString(DestinationCidrBlock)) - result = call_624600.call(nil, query_624601, nil, nil, nil) + query_624603.add "RemoveField", RemoveField + add(query_624603, "DestinationCidrBlock", newJString(DestinationCidrBlock)) + result = call_624602.call(nil, query_624603, nil, nil, nil) -var getModifyTrafficMirrorFilterRule* = Call_GetModifyTrafficMirrorFilterRule_624573( +var getModifyTrafficMirrorFilterRule* = Call_GetModifyTrafficMirrorFilterRule_624575( name: "getModifyTrafficMirrorFilterRule", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifyTrafficMirrorFilterRule", - validator: validate_GetModifyTrafficMirrorFilterRule_624574, base: "/", - url: url_GetModifyTrafficMirrorFilterRule_624575, + validator: validate_GetModifyTrafficMirrorFilterRule_624576, base: "/", + url: url_GetModifyTrafficMirrorFilterRule_624577, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyTrafficMirrorSession_624656 = ref object of OpenApiRestCall_610658 -proc url_PostModifyTrafficMirrorSession_624658(protocol: Scheme; host: string; + Call_PostModifyTrafficMirrorSession_624658 = ref object of OpenApiRestCall_610658 +proc url_PostModifyTrafficMirrorSession_624660(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -111699,7 +111726,7 @@ proc url_PostModifyTrafficMirrorSession_624658(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostModifyTrafficMirrorSession_624657(path: JsonNode; +proc validate_PostModifyTrafficMirrorSession_624659(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modifies a Traffic Mirror session. ## @@ -111711,16 +111738,16 @@ proc validate_PostModifyTrafficMirrorSession_624657(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_624659 = query.getOrDefault("Action") - valid_624659 = validateParameter(valid_624659, JString, required = true, default = newJString( + var valid_624661 = query.getOrDefault("Action") + valid_624661 = validateParameter(valid_624661, JString, required = true, default = newJString( "ModifyTrafficMirrorSession")) - if valid_624659 != nil: - section.add "Action", valid_624659 - var valid_624660 = query.getOrDefault("Version") - valid_624660 = validateParameter(valid_624660, JString, required = true, + if valid_624661 != nil: + section.add "Action", valid_624661 + var valid_624662 = query.getOrDefault("Version") + valid_624662 = validateParameter(valid_624662, JString, required = true, default = newJString("2016-11-15")) - if valid_624660 != nil: - section.add "Version", valid_624660 + if valid_624662 != nil: + section.add "Version", valid_624662 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -111731,41 +111758,41 @@ proc validate_PostModifyTrafficMirrorSession_624657(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624661 = header.getOrDefault("X-Amz-Signature") - valid_624661 = validateParameter(valid_624661, JString, required = false, - default = nil) - if valid_624661 != nil: - section.add "X-Amz-Signature", valid_624661 - var valid_624662 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624662 = validateParameter(valid_624662, JString, required = false, - default = nil) - if valid_624662 != nil: - section.add "X-Amz-Content-Sha256", valid_624662 - var valid_624663 = header.getOrDefault("X-Amz-Date") + var valid_624663 = header.getOrDefault("X-Amz-Signature") valid_624663 = validateParameter(valid_624663, JString, required = false, default = nil) if valid_624663 != nil: - section.add "X-Amz-Date", valid_624663 - var valid_624664 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624663 + var valid_624664 = header.getOrDefault("X-Amz-Content-Sha256") valid_624664 = validateParameter(valid_624664, JString, required = false, default = nil) if valid_624664 != nil: - section.add "X-Amz-Credential", valid_624664 - var valid_624665 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624664 + var valid_624665 = header.getOrDefault("X-Amz-Date") valid_624665 = validateParameter(valid_624665, JString, required = false, default = nil) if valid_624665 != nil: - section.add "X-Amz-Security-Token", valid_624665 - var valid_624666 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624665 + var valid_624666 = header.getOrDefault("X-Amz-Credential") valid_624666 = validateParameter(valid_624666, JString, required = false, default = nil) if valid_624666 != nil: - section.add "X-Amz-Algorithm", valid_624666 - var valid_624667 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624666 + var valid_624667 = header.getOrDefault("X-Amz-Security-Token") valid_624667 = validateParameter(valid_624667, JString, required = false, default = nil) if valid_624667 != nil: - section.add "X-Amz-SignedHeaders", valid_624667 + section.add "X-Amz-Security-Token", valid_624667 + var valid_624668 = header.getOrDefault("X-Amz-Algorithm") + valid_624668 = validateParameter(valid_624668, JString, required = false, + default = nil) + if valid_624668 != nil: + section.add "X-Amz-Algorithm", valid_624668 + var valid_624669 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624669 = validateParameter(valid_624669, JString, required = false, + default = nil) + if valid_624669 != nil: + section.add "X-Amz-SignedHeaders", valid_624669 result.add "header", section ## parameters in `formData` object: ## TrafficMirrorTargetId: JString @@ -111787,66 +111814,66 @@ proc validate_PostModifyTrafficMirrorSession_624657(path: JsonNode; ## TrafficMirrorFilterId: JString ## : The ID of the Traffic Mirror filter. section = newJObject() - var valid_624668 = formData.getOrDefault("TrafficMirrorTargetId") - valid_624668 = validateParameter(valid_624668, JString, required = false, + var valid_624670 = formData.getOrDefault("TrafficMirrorTargetId") + valid_624670 = validateParameter(valid_624670, JString, required = false, default = nil) - if valid_624668 != nil: - section.add "TrafficMirrorTargetId", valid_624668 - var valid_624669 = formData.getOrDefault("Description") - valid_624669 = validateParameter(valid_624669, JString, required = false, - default = nil) - if valid_624669 != nil: - section.add "Description", valid_624669 - var valid_624670 = formData.getOrDefault("VirtualNetworkId") - valid_624670 = validateParameter(valid_624670, JInt, required = false, default = nil) if valid_624670 != nil: - section.add "VirtualNetworkId", valid_624670 - var valid_624671 = formData.getOrDefault("PacketLength") - valid_624671 = validateParameter(valid_624671, JInt, required = false, default = nil) + section.add "TrafficMirrorTargetId", valid_624670 + var valid_624671 = formData.getOrDefault("Description") + valid_624671 = validateParameter(valid_624671, JString, required = false, + default = nil) if valid_624671 != nil: - section.add "PacketLength", valid_624671 - var valid_624672 = formData.getOrDefault("SessionNumber") + section.add "Description", valid_624671 + var valid_624672 = formData.getOrDefault("VirtualNetworkId") valid_624672 = validateParameter(valid_624672, JInt, required = false, default = nil) if valid_624672 != nil: - section.add "SessionNumber", valid_624672 - var valid_624673 = formData.getOrDefault("RemoveField") - valid_624673 = validateParameter(valid_624673, JArray, required = false, - default = nil) + section.add "VirtualNetworkId", valid_624672 + var valid_624673 = formData.getOrDefault("PacketLength") + valid_624673 = validateParameter(valid_624673, JInt, required = false, default = nil) if valid_624673 != nil: - section.add "RemoveField", valid_624673 - assert formData != nil, "formData argument is necessary due to required `TrafficMirrorSessionId` field" - var valid_624674 = formData.getOrDefault("TrafficMirrorSessionId") - valid_624674 = validateParameter(valid_624674, JString, required = true, - default = nil) + section.add "PacketLength", valid_624673 + var valid_624674 = formData.getOrDefault("SessionNumber") + valid_624674 = validateParameter(valid_624674, JInt, required = false, default = nil) if valid_624674 != nil: - section.add "TrafficMirrorSessionId", valid_624674 - var valid_624675 = formData.getOrDefault("DryRun") - valid_624675 = validateParameter(valid_624675, JBool, required = false, default = nil) + section.add "SessionNumber", valid_624674 + var valid_624675 = formData.getOrDefault("RemoveField") + valid_624675 = validateParameter(valid_624675, JArray, required = false, + default = nil) if valid_624675 != nil: - section.add "DryRun", valid_624675 - var valid_624676 = formData.getOrDefault("TrafficMirrorFilterId") - valid_624676 = validateParameter(valid_624676, JString, required = false, + section.add "RemoveField", valid_624675 + assert formData != nil, "formData argument is necessary due to required `TrafficMirrorSessionId` field" + var valid_624676 = formData.getOrDefault("TrafficMirrorSessionId") + valid_624676 = validateParameter(valid_624676, JString, required = true, default = nil) if valid_624676 != nil: - section.add "TrafficMirrorFilterId", valid_624676 + section.add "TrafficMirrorSessionId", valid_624676 + var valid_624677 = formData.getOrDefault("DryRun") + valid_624677 = validateParameter(valid_624677, JBool, required = false, default = nil) + if valid_624677 != nil: + section.add "DryRun", valid_624677 + var valid_624678 = formData.getOrDefault("TrafficMirrorFilterId") + valid_624678 = validateParameter(valid_624678, JString, required = false, + default = nil) + if valid_624678 != nil: + section.add "TrafficMirrorFilterId", valid_624678 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624677: Call_PostModifyTrafficMirrorSession_624656; path: JsonNode; +proc call*(call_624679: Call_PostModifyTrafficMirrorSession_624658; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modifies a Traffic Mirror session. ## - let valid = call_624677.validator(path, query, header, formData, body) - let scheme = call_624677.pickScheme + let valid = call_624679.validator(path, query, header, formData, body) + let scheme = call_624679.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624677.url(scheme.get, call_624677.host, call_624677.base, - call_624677.route, valid.getOrDefault("path"), + let url = call_624679.url(scheme.get, call_624679.host, call_624679.base, + call_624679.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624677, url, valid) + result = atozHook(call_624679, url, valid) -proc call*(call_624678: Call_PostModifyTrafficMirrorSession_624656; +proc call*(call_624680: Call_PostModifyTrafficMirrorSession_624658; TrafficMirrorSessionId: string; TrafficMirrorTargetId: string = ""; Description: string = ""; VirtualNetworkId: int = 0; PacketLength: int = 0; SessionNumber: int = 0; RemoveField: JsonNode = nil; DryRun: bool = false; @@ -111874,32 +111901,32 @@ proc call*(call_624678: Call_PostModifyTrafficMirrorSession_624656; ## Version: string (required) ## TrafficMirrorFilterId: string ## : The ID of the Traffic Mirror filter. - var query_624679 = newJObject() - var formData_624680 = newJObject() - add(formData_624680, "TrafficMirrorTargetId", newJString(TrafficMirrorTargetId)) - add(formData_624680, "Description", newJString(Description)) - add(formData_624680, "VirtualNetworkId", newJInt(VirtualNetworkId)) - add(formData_624680, "PacketLength", newJInt(PacketLength)) - add(formData_624680, "SessionNumber", newJInt(SessionNumber)) + var query_624681 = newJObject() + var formData_624682 = newJObject() + add(formData_624682, "TrafficMirrorTargetId", newJString(TrafficMirrorTargetId)) + add(formData_624682, "Description", newJString(Description)) + add(formData_624682, "VirtualNetworkId", newJInt(VirtualNetworkId)) + add(formData_624682, "PacketLength", newJInt(PacketLength)) + add(formData_624682, "SessionNumber", newJInt(SessionNumber)) if RemoveField != nil: - formData_624680.add "RemoveField", RemoveField - add(formData_624680, "TrafficMirrorSessionId", + formData_624682.add "RemoveField", RemoveField + add(formData_624682, "TrafficMirrorSessionId", newJString(TrafficMirrorSessionId)) - add(formData_624680, "DryRun", newJBool(DryRun)) - add(query_624679, "Action", newJString(Action)) - add(query_624679, "Version", newJString(Version)) - add(formData_624680, "TrafficMirrorFilterId", newJString(TrafficMirrorFilterId)) - result = call_624678.call(nil, query_624679, nil, formData_624680, nil) + add(formData_624682, "DryRun", newJBool(DryRun)) + add(query_624681, "Action", newJString(Action)) + add(query_624681, "Version", newJString(Version)) + add(formData_624682, "TrafficMirrorFilterId", newJString(TrafficMirrorFilterId)) + result = call_624680.call(nil, query_624681, nil, formData_624682, nil) -var postModifyTrafficMirrorSession* = Call_PostModifyTrafficMirrorSession_624656( +var postModifyTrafficMirrorSession* = Call_PostModifyTrafficMirrorSession_624658( name: "postModifyTrafficMirrorSession", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyTrafficMirrorSession", - validator: validate_PostModifyTrafficMirrorSession_624657, base: "/", - url: url_PostModifyTrafficMirrorSession_624658, + validator: validate_PostModifyTrafficMirrorSession_624659, base: "/", + url: url_PostModifyTrafficMirrorSession_624660, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyTrafficMirrorSession_624632 = ref object of OpenApiRestCall_610658 -proc url_GetModifyTrafficMirrorSession_624634(protocol: Scheme; host: string; + Call_GetModifyTrafficMirrorSession_624634 = ref object of OpenApiRestCall_610658 +proc url_GetModifyTrafficMirrorSession_624636(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -111909,7 +111936,7 @@ proc url_GetModifyTrafficMirrorSession_624634(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetModifyTrafficMirrorSession_624633(path: JsonNode; query: JsonNode; +proc validate_GetModifyTrafficMirrorSession_624635(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modifies a Traffic Mirror session. ## @@ -111939,57 +111966,57 @@ proc validate_GetModifyTrafficMirrorSession_624633(path: JsonNode; query: JsonNo ## TrafficMirrorSessionId: JString (required) ## : The ID of the Traffic Mirror session. section = newJObject() - var valid_624635 = query.getOrDefault("TrafficMirrorTargetId") - valid_624635 = validateParameter(valid_624635, JString, required = false, - default = nil) - if valid_624635 != nil: - section.add "TrafficMirrorTargetId", valid_624635 - var valid_624636 = query.getOrDefault("DryRun") - valid_624636 = validateParameter(valid_624636, JBool, required = false, default = nil) - if valid_624636 != nil: - section.add "DryRun", valid_624636 - var valid_624637 = query.getOrDefault("SessionNumber") - valid_624637 = validateParameter(valid_624637, JInt, required = false, default = nil) + var valid_624637 = query.getOrDefault("TrafficMirrorTargetId") + valid_624637 = validateParameter(valid_624637, JString, required = false, + default = nil) if valid_624637 != nil: - section.add "SessionNumber", valid_624637 - var valid_624638 = query.getOrDefault("PacketLength") - valid_624638 = validateParameter(valid_624638, JInt, required = false, default = nil) + section.add "TrafficMirrorTargetId", valid_624637 + var valid_624638 = query.getOrDefault("DryRun") + valid_624638 = validateParameter(valid_624638, JBool, required = false, default = nil) if valid_624638 != nil: - section.add "PacketLength", valid_624638 - var valid_624639 = query.getOrDefault("VirtualNetworkId") + section.add "DryRun", valid_624638 + var valid_624639 = query.getOrDefault("SessionNumber") valid_624639 = validateParameter(valid_624639, JInt, required = false, default = nil) if valid_624639 != nil: - section.add "VirtualNetworkId", valid_624639 - var valid_624640 = query.getOrDefault("TrafficMirrorFilterId") - valid_624640 = validateParameter(valid_624640, JString, required = false, - default = nil) + section.add "SessionNumber", valid_624639 + var valid_624640 = query.getOrDefault("PacketLength") + valid_624640 = validateParameter(valid_624640, JInt, required = false, default = nil) if valid_624640 != nil: - section.add "TrafficMirrorFilterId", valid_624640 - var valid_624641 = query.getOrDefault("Action") - valid_624641 = validateParameter(valid_624641, JString, required = true, default = newJString( - "ModifyTrafficMirrorSession")) + section.add "PacketLength", valid_624640 + var valid_624641 = query.getOrDefault("VirtualNetworkId") + valid_624641 = validateParameter(valid_624641, JInt, required = false, default = nil) if valid_624641 != nil: - section.add "Action", valid_624641 - var valid_624642 = query.getOrDefault("Description") + section.add "VirtualNetworkId", valid_624641 + var valid_624642 = query.getOrDefault("TrafficMirrorFilterId") valid_624642 = validateParameter(valid_624642, JString, required = false, default = nil) if valid_624642 != nil: - section.add "Description", valid_624642 - var valid_624643 = query.getOrDefault("Version") - valid_624643 = validateParameter(valid_624643, JString, required = true, - default = newJString("2016-11-15")) + section.add "TrafficMirrorFilterId", valid_624642 + var valid_624643 = query.getOrDefault("Action") + valid_624643 = validateParameter(valid_624643, JString, required = true, default = newJString( + "ModifyTrafficMirrorSession")) if valid_624643 != nil: - section.add "Version", valid_624643 - var valid_624644 = query.getOrDefault("RemoveField") - valid_624644 = validateParameter(valid_624644, JArray, required = false, + section.add "Action", valid_624643 + var valid_624644 = query.getOrDefault("Description") + valid_624644 = validateParameter(valid_624644, JString, required = false, default = nil) if valid_624644 != nil: - section.add "RemoveField", valid_624644 - var valid_624645 = query.getOrDefault("TrafficMirrorSessionId") + section.add "Description", valid_624644 + var valid_624645 = query.getOrDefault("Version") valid_624645 = validateParameter(valid_624645, JString, required = true, - default = nil) + default = newJString("2016-11-15")) if valid_624645 != nil: - section.add "TrafficMirrorSessionId", valid_624645 + section.add "Version", valid_624645 + var valid_624646 = query.getOrDefault("RemoveField") + valid_624646 = validateParameter(valid_624646, JArray, required = false, + default = nil) + if valid_624646 != nil: + section.add "RemoveField", valid_624646 + var valid_624647 = query.getOrDefault("TrafficMirrorSessionId") + valid_624647 = validateParameter(valid_624647, JString, required = true, + default = nil) + if valid_624647 != nil: + section.add "TrafficMirrorSessionId", valid_624647 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -112000,61 +112027,61 @@ proc validate_GetModifyTrafficMirrorSession_624633(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624646 = header.getOrDefault("X-Amz-Signature") - valid_624646 = validateParameter(valid_624646, JString, required = false, - default = nil) - if valid_624646 != nil: - section.add "X-Amz-Signature", valid_624646 - var valid_624647 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624647 = validateParameter(valid_624647, JString, required = false, - default = nil) - if valid_624647 != nil: - section.add "X-Amz-Content-Sha256", valid_624647 - var valid_624648 = header.getOrDefault("X-Amz-Date") + var valid_624648 = header.getOrDefault("X-Amz-Signature") valid_624648 = validateParameter(valid_624648, JString, required = false, default = nil) if valid_624648 != nil: - section.add "X-Amz-Date", valid_624648 - var valid_624649 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624648 + var valid_624649 = header.getOrDefault("X-Amz-Content-Sha256") valid_624649 = validateParameter(valid_624649, JString, required = false, default = nil) if valid_624649 != nil: - section.add "X-Amz-Credential", valid_624649 - var valid_624650 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624649 + var valid_624650 = header.getOrDefault("X-Amz-Date") valid_624650 = validateParameter(valid_624650, JString, required = false, default = nil) if valid_624650 != nil: - section.add "X-Amz-Security-Token", valid_624650 - var valid_624651 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624650 + var valid_624651 = header.getOrDefault("X-Amz-Credential") valid_624651 = validateParameter(valid_624651, JString, required = false, default = nil) if valid_624651 != nil: - section.add "X-Amz-Algorithm", valid_624651 - var valid_624652 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624651 + var valid_624652 = header.getOrDefault("X-Amz-Security-Token") valid_624652 = validateParameter(valid_624652, JString, required = false, default = nil) if valid_624652 != nil: - section.add "X-Amz-SignedHeaders", valid_624652 + section.add "X-Amz-Security-Token", valid_624652 + var valid_624653 = header.getOrDefault("X-Amz-Algorithm") + valid_624653 = validateParameter(valid_624653, JString, required = false, + default = nil) + if valid_624653 != nil: + section.add "X-Amz-Algorithm", valid_624653 + var valid_624654 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624654 = validateParameter(valid_624654, JString, required = false, + default = nil) + if valid_624654 != nil: + section.add "X-Amz-SignedHeaders", valid_624654 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624653: Call_GetModifyTrafficMirrorSession_624632; path: JsonNode; +proc call*(call_624655: Call_GetModifyTrafficMirrorSession_624634; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modifies a Traffic Mirror session. ## - let valid = call_624653.validator(path, query, header, formData, body) - let scheme = call_624653.pickScheme + let valid = call_624655.validator(path, query, header, formData, body) + let scheme = call_624655.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624653.url(scheme.get, call_624653.host, call_624653.base, - call_624653.route, valid.getOrDefault("path"), + let url = call_624655.url(scheme.get, call_624655.host, call_624655.base, + call_624655.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624653, url, valid) + result = atozHook(call_624655, url, valid) -proc call*(call_624654: Call_GetModifyTrafficMirrorSession_624632; +proc call*(call_624656: Call_GetModifyTrafficMirrorSession_624634; TrafficMirrorSessionId: string; TrafficMirrorTargetId: string = ""; DryRun: bool = false; SessionNumber: int = 0; PacketLength: int = 0; VirtualNetworkId: int = 0; TrafficMirrorFilterId: string = ""; @@ -112082,30 +112109,30 @@ proc call*(call_624654: Call_GetModifyTrafficMirrorSession_624632; ## :

    The properties that you want to remove from the Traffic Mirror session.

    When you remove a property from a Traffic Mirror session, the property is set to the default.

    ## TrafficMirrorSessionId: string (required) ## : The ID of the Traffic Mirror session. - var query_624655 = newJObject() - add(query_624655, "TrafficMirrorTargetId", newJString(TrafficMirrorTargetId)) - add(query_624655, "DryRun", newJBool(DryRun)) - add(query_624655, "SessionNumber", newJInt(SessionNumber)) - add(query_624655, "PacketLength", newJInt(PacketLength)) - add(query_624655, "VirtualNetworkId", newJInt(VirtualNetworkId)) - add(query_624655, "TrafficMirrorFilterId", newJString(TrafficMirrorFilterId)) - add(query_624655, "Action", newJString(Action)) - add(query_624655, "Description", newJString(Description)) - add(query_624655, "Version", newJString(Version)) + var query_624657 = newJObject() + add(query_624657, "TrafficMirrorTargetId", newJString(TrafficMirrorTargetId)) + add(query_624657, "DryRun", newJBool(DryRun)) + add(query_624657, "SessionNumber", newJInt(SessionNumber)) + add(query_624657, "PacketLength", newJInt(PacketLength)) + add(query_624657, "VirtualNetworkId", newJInt(VirtualNetworkId)) + add(query_624657, "TrafficMirrorFilterId", newJString(TrafficMirrorFilterId)) + add(query_624657, "Action", newJString(Action)) + add(query_624657, "Description", newJString(Description)) + add(query_624657, "Version", newJString(Version)) if RemoveField != nil: - query_624655.add "RemoveField", RemoveField - add(query_624655, "TrafficMirrorSessionId", newJString(TrafficMirrorSessionId)) - result = call_624654.call(nil, query_624655, nil, nil, nil) + query_624657.add "RemoveField", RemoveField + add(query_624657, "TrafficMirrorSessionId", newJString(TrafficMirrorSessionId)) + result = call_624656.call(nil, query_624657, nil, nil, nil) -var getModifyTrafficMirrorSession* = Call_GetModifyTrafficMirrorSession_624632( +var getModifyTrafficMirrorSession* = Call_GetModifyTrafficMirrorSession_624634( name: "getModifyTrafficMirrorSession", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifyTrafficMirrorSession", - validator: validate_GetModifyTrafficMirrorSession_624633, base: "/", - url: url_GetModifyTrafficMirrorSession_624634, + validator: validate_GetModifyTrafficMirrorSession_624635, base: "/", + url: url_GetModifyTrafficMirrorSession_624636, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyTransitGatewayVpcAttachment_624702 = ref object of OpenApiRestCall_610658 -proc url_PostModifyTransitGatewayVpcAttachment_624704(protocol: Scheme; + Call_PostModifyTransitGatewayVpcAttachment_624704 = ref object of OpenApiRestCall_610658 +proc url_PostModifyTransitGatewayVpcAttachment_624706(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -112115,7 +112142,7 @@ proc url_PostModifyTransitGatewayVpcAttachment_624704(protocol: Scheme; else: result.path = base & route -proc validate_PostModifyTransitGatewayVpcAttachment_624703(path: JsonNode; +proc validate_PostModifyTransitGatewayVpcAttachment_624705(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modifies the specified VPC attachment. ## @@ -112127,16 +112154,16 @@ proc validate_PostModifyTransitGatewayVpcAttachment_624703(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_624705 = query.getOrDefault("Action") - valid_624705 = validateParameter(valid_624705, JString, required = true, default = newJString( + var valid_624707 = query.getOrDefault("Action") + valid_624707 = validateParameter(valid_624707, JString, required = true, default = newJString( "ModifyTransitGatewayVpcAttachment")) - if valid_624705 != nil: - section.add "Action", valid_624705 - var valid_624706 = query.getOrDefault("Version") - valid_624706 = validateParameter(valid_624706, JString, required = true, + if valid_624707 != nil: + section.add "Action", valid_624707 + var valid_624708 = query.getOrDefault("Version") + valid_624708 = validateParameter(valid_624708, JString, required = true, default = newJString("2016-11-15")) - if valid_624706 != nil: - section.add "Version", valid_624706 + if valid_624708 != nil: + section.add "Version", valid_624708 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -112147,41 +112174,41 @@ proc validate_PostModifyTransitGatewayVpcAttachment_624703(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624707 = header.getOrDefault("X-Amz-Signature") - valid_624707 = validateParameter(valid_624707, JString, required = false, - default = nil) - if valid_624707 != nil: - section.add "X-Amz-Signature", valid_624707 - var valid_624708 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624708 = validateParameter(valid_624708, JString, required = false, - default = nil) - if valid_624708 != nil: - section.add "X-Amz-Content-Sha256", valid_624708 - var valid_624709 = header.getOrDefault("X-Amz-Date") + var valid_624709 = header.getOrDefault("X-Amz-Signature") valid_624709 = validateParameter(valid_624709, JString, required = false, default = nil) if valid_624709 != nil: - section.add "X-Amz-Date", valid_624709 - var valid_624710 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624709 + var valid_624710 = header.getOrDefault("X-Amz-Content-Sha256") valid_624710 = validateParameter(valid_624710, JString, required = false, default = nil) if valid_624710 != nil: - section.add "X-Amz-Credential", valid_624710 - var valid_624711 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624710 + var valid_624711 = header.getOrDefault("X-Amz-Date") valid_624711 = validateParameter(valid_624711, JString, required = false, default = nil) if valid_624711 != nil: - section.add "X-Amz-Security-Token", valid_624711 - var valid_624712 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624711 + var valid_624712 = header.getOrDefault("X-Amz-Credential") valid_624712 = validateParameter(valid_624712, JString, required = false, default = nil) if valid_624712 != nil: - section.add "X-Amz-Algorithm", valid_624712 - var valid_624713 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624712 + var valid_624713 = header.getOrDefault("X-Amz-Security-Token") valid_624713 = validateParameter(valid_624713, JString, required = false, default = nil) if valid_624713 != nil: - section.add "X-Amz-SignedHeaders", valid_624713 + section.add "X-Amz-Security-Token", valid_624713 + var valid_624714 = header.getOrDefault("X-Amz-Algorithm") + valid_624714 = validateParameter(valid_624714, JString, required = false, + default = nil) + if valid_624714 != nil: + section.add "X-Amz-Algorithm", valid_624714 + var valid_624715 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624715 = validateParameter(valid_624715, JString, required = false, + default = nil) + if valid_624715 != nil: + section.add "X-Amz-SignedHeaders", valid_624715 result.add "header", section ## parameters in `formData` object: ## RemoveSubnetIds: JArray @@ -112199,55 +112226,55 @@ proc validate_PostModifyTransitGatewayVpcAttachment_624703(path: JsonNode; ## TransitGatewayAttachmentId: JString (required) ## : The ID of the attachment. section = newJObject() - var valid_624714 = formData.getOrDefault("RemoveSubnetIds") - valid_624714 = validateParameter(valid_624714, JArray, required = false, - default = nil) - if valid_624714 != nil: - section.add "RemoveSubnetIds", valid_624714 - var valid_624715 = formData.getOrDefault("DryRun") - valid_624715 = validateParameter(valid_624715, JBool, required = false, default = nil) - if valid_624715 != nil: - section.add "DryRun", valid_624715 - var valid_624716 = formData.getOrDefault("Options.DnsSupport") - valid_624716 = validateParameter(valid_624716, JString, required = false, + var valid_624716 = formData.getOrDefault("RemoveSubnetIds") + valid_624716 = validateParameter(valid_624716, JArray, required = false, default = nil) if valid_624716 != nil: - section.add "Options.DnsSupport", valid_624716 - var valid_624717 = formData.getOrDefault("AddSubnetIds") - valid_624717 = validateParameter(valid_624717, JArray, required = false, - default = nil) + section.add "RemoveSubnetIds", valid_624716 + var valid_624717 = formData.getOrDefault("DryRun") + valid_624717 = validateParameter(valid_624717, JBool, required = false, default = nil) if valid_624717 != nil: - section.add "AddSubnetIds", valid_624717 - var valid_624718 = formData.getOrDefault("Options.Ipv6Support") + section.add "DryRun", valid_624717 + var valid_624718 = formData.getOrDefault("Options.DnsSupport") valid_624718 = validateParameter(valid_624718, JString, required = false, default = nil) if valid_624718 != nil: - section.add "Options.Ipv6Support", valid_624718 - assert formData != nil, "formData argument is necessary due to required `TransitGatewayAttachmentId` field" - var valid_624719 = formData.getOrDefault("TransitGatewayAttachmentId") - valid_624719 = validateParameter(valid_624719, JString, required = true, + section.add "Options.DnsSupport", valid_624718 + var valid_624719 = formData.getOrDefault("AddSubnetIds") + valid_624719 = validateParameter(valid_624719, JArray, required = false, default = nil) if valid_624719 != nil: - section.add "TransitGatewayAttachmentId", valid_624719 + section.add "AddSubnetIds", valid_624719 + var valid_624720 = formData.getOrDefault("Options.Ipv6Support") + valid_624720 = validateParameter(valid_624720, JString, required = false, + default = nil) + if valid_624720 != nil: + section.add "Options.Ipv6Support", valid_624720 + assert formData != nil, "formData argument is necessary due to required `TransitGatewayAttachmentId` field" + var valid_624721 = formData.getOrDefault("TransitGatewayAttachmentId") + valid_624721 = validateParameter(valid_624721, JString, required = true, + default = nil) + if valid_624721 != nil: + section.add "TransitGatewayAttachmentId", valid_624721 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624720: Call_PostModifyTransitGatewayVpcAttachment_624702; +proc call*(call_624722: Call_PostModifyTransitGatewayVpcAttachment_624704; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modifies the specified VPC attachment. ## - let valid = call_624720.validator(path, query, header, formData, body) - let scheme = call_624720.pickScheme + let valid = call_624722.validator(path, query, header, formData, body) + let scheme = call_624722.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624720.url(scheme.get, call_624720.host, call_624720.base, - call_624720.route, valid.getOrDefault("path"), + let url = call_624722.url(scheme.get, call_624722.host, call_624722.base, + call_624722.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624720, url, valid) + result = atozHook(call_624722, url, valid) -proc call*(call_624721: Call_PostModifyTransitGatewayVpcAttachment_624702; +proc call*(call_624723: Call_PostModifyTransitGatewayVpcAttachment_624704; TransitGatewayAttachmentId: string; RemoveSubnetIds: JsonNode = nil; DryRun: bool = false; Action: string = "ModifyTransitGatewayVpcAttachment"; @@ -112271,31 +112298,31 @@ proc call*(call_624721: Call_PostModifyTransitGatewayVpcAttachment_624702; ## Version: string (required) ## TransitGatewayAttachmentId: string (required) ## : The ID of the attachment. - var query_624722 = newJObject() - var formData_624723 = newJObject() + var query_624724 = newJObject() + var formData_624725 = newJObject() if RemoveSubnetIds != nil: - formData_624723.add "RemoveSubnetIds", RemoveSubnetIds - add(formData_624723, "DryRun", newJBool(DryRun)) - add(query_624722, "Action", newJString(Action)) - add(formData_624723, "Options.DnsSupport", newJString(OptionsDnsSupport)) + formData_624725.add "RemoveSubnetIds", RemoveSubnetIds + add(formData_624725, "DryRun", newJBool(DryRun)) + add(query_624724, "Action", newJString(Action)) + add(formData_624725, "Options.DnsSupport", newJString(OptionsDnsSupport)) if AddSubnetIds != nil: - formData_624723.add "AddSubnetIds", AddSubnetIds - add(formData_624723, "Options.Ipv6Support", newJString(OptionsIpv6Support)) - add(query_624722, "Version", newJString(Version)) - add(formData_624723, "TransitGatewayAttachmentId", + formData_624725.add "AddSubnetIds", AddSubnetIds + add(formData_624725, "Options.Ipv6Support", newJString(OptionsIpv6Support)) + add(query_624724, "Version", newJString(Version)) + add(formData_624725, "TransitGatewayAttachmentId", newJString(TransitGatewayAttachmentId)) - result = call_624721.call(nil, query_624722, nil, formData_624723, nil) + result = call_624723.call(nil, query_624724, nil, formData_624725, nil) -var postModifyTransitGatewayVpcAttachment* = Call_PostModifyTransitGatewayVpcAttachment_624702( +var postModifyTransitGatewayVpcAttachment* = Call_PostModifyTransitGatewayVpcAttachment_624704( name: "postModifyTransitGatewayVpcAttachment", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyTransitGatewayVpcAttachment", - validator: validate_PostModifyTransitGatewayVpcAttachment_624703, base: "/", - url: url_PostModifyTransitGatewayVpcAttachment_624704, + validator: validate_PostModifyTransitGatewayVpcAttachment_624705, base: "/", + url: url_PostModifyTransitGatewayVpcAttachment_624706, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyTransitGatewayVpcAttachment_624681 = ref object of OpenApiRestCall_610658 -proc url_GetModifyTransitGatewayVpcAttachment_624683(protocol: Scheme; + Call_GetModifyTransitGatewayVpcAttachment_624683 = ref object of OpenApiRestCall_610658 +proc url_GetModifyTransitGatewayVpcAttachment_624685(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -112305,7 +112332,7 @@ proc url_GetModifyTransitGatewayVpcAttachment_624683(protocol: Scheme; else: result.path = base & route -proc validate_GetModifyTransitGatewayVpcAttachment_624682(path: JsonNode; +proc validate_GetModifyTransitGatewayVpcAttachment_624684(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modifies the specified VPC attachment. ## @@ -112331,46 +112358,46 @@ proc validate_GetModifyTransitGatewayVpcAttachment_624682(path: JsonNode; ## : Describes the options for a VPC attachment. ## Enable or disable DNS support. The default is enable. section = newJObject() - var valid_624684 = query.getOrDefault("AddSubnetIds") - valid_624684 = validateParameter(valid_624684, JArray, required = false, - default = nil) - if valid_624684 != nil: - section.add "AddSubnetIds", valid_624684 - var valid_624685 = query.getOrDefault("DryRun") - valid_624685 = validateParameter(valid_624685, JBool, required = false, default = nil) - if valid_624685 != nil: - section.add "DryRun", valid_624685 - var valid_624686 = query.getOrDefault("Options.Ipv6Support") - valid_624686 = validateParameter(valid_624686, JString, required = false, + var valid_624686 = query.getOrDefault("AddSubnetIds") + valid_624686 = validateParameter(valid_624686, JArray, required = false, default = nil) if valid_624686 != nil: - section.add "Options.Ipv6Support", valid_624686 - assert query != nil, "query argument is necessary due to required `TransitGatewayAttachmentId` field" - var valid_624687 = query.getOrDefault("TransitGatewayAttachmentId") - valid_624687 = validateParameter(valid_624687, JString, required = true, - default = nil) + section.add "AddSubnetIds", valid_624686 + var valid_624687 = query.getOrDefault("DryRun") + valid_624687 = validateParameter(valid_624687, JBool, required = false, default = nil) if valid_624687 != nil: - section.add "TransitGatewayAttachmentId", valid_624687 - var valid_624688 = query.getOrDefault("Action") - valid_624688 = validateParameter(valid_624688, JString, required = true, default = newJString( - "ModifyTransitGatewayVpcAttachment")) + section.add "DryRun", valid_624687 + var valid_624688 = query.getOrDefault("Options.Ipv6Support") + valid_624688 = validateParameter(valid_624688, JString, required = false, + default = nil) if valid_624688 != nil: - section.add "Action", valid_624688 - var valid_624689 = query.getOrDefault("RemoveSubnetIds") - valid_624689 = validateParameter(valid_624689, JArray, required = false, + section.add "Options.Ipv6Support", valid_624688 + assert query != nil, "query argument is necessary due to required `TransitGatewayAttachmentId` field" + var valid_624689 = query.getOrDefault("TransitGatewayAttachmentId") + valid_624689 = validateParameter(valid_624689, JString, required = true, default = nil) if valid_624689 != nil: - section.add "RemoveSubnetIds", valid_624689 - var valid_624690 = query.getOrDefault("Version") - valid_624690 = validateParameter(valid_624690, JString, required = true, - default = newJString("2016-11-15")) + section.add "TransitGatewayAttachmentId", valid_624689 + var valid_624690 = query.getOrDefault("Action") + valid_624690 = validateParameter(valid_624690, JString, required = true, default = newJString( + "ModifyTransitGatewayVpcAttachment")) if valid_624690 != nil: - section.add "Version", valid_624690 - var valid_624691 = query.getOrDefault("Options.DnsSupport") - valid_624691 = validateParameter(valid_624691, JString, required = false, + section.add "Action", valid_624690 + var valid_624691 = query.getOrDefault("RemoveSubnetIds") + valid_624691 = validateParameter(valid_624691, JArray, required = false, default = nil) if valid_624691 != nil: - section.add "Options.DnsSupport", valid_624691 + section.add "RemoveSubnetIds", valid_624691 + var valid_624692 = query.getOrDefault("Version") + valid_624692 = validateParameter(valid_624692, JString, required = true, + default = newJString("2016-11-15")) + if valid_624692 != nil: + section.add "Version", valid_624692 + var valid_624693 = query.getOrDefault("Options.DnsSupport") + valid_624693 = validateParameter(valid_624693, JString, required = false, + default = nil) + if valid_624693 != nil: + section.add "Options.DnsSupport", valid_624693 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -112381,62 +112408,62 @@ proc validate_GetModifyTransitGatewayVpcAttachment_624682(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624692 = header.getOrDefault("X-Amz-Signature") - valid_624692 = validateParameter(valid_624692, JString, required = false, - default = nil) - if valid_624692 != nil: - section.add "X-Amz-Signature", valid_624692 - var valid_624693 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624693 = validateParameter(valid_624693, JString, required = false, - default = nil) - if valid_624693 != nil: - section.add "X-Amz-Content-Sha256", valid_624693 - var valid_624694 = header.getOrDefault("X-Amz-Date") + var valid_624694 = header.getOrDefault("X-Amz-Signature") valid_624694 = validateParameter(valid_624694, JString, required = false, default = nil) if valid_624694 != nil: - section.add "X-Amz-Date", valid_624694 - var valid_624695 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624694 + var valid_624695 = header.getOrDefault("X-Amz-Content-Sha256") valid_624695 = validateParameter(valid_624695, JString, required = false, default = nil) if valid_624695 != nil: - section.add "X-Amz-Credential", valid_624695 - var valid_624696 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624695 + var valid_624696 = header.getOrDefault("X-Amz-Date") valid_624696 = validateParameter(valid_624696, JString, required = false, default = nil) if valid_624696 != nil: - section.add "X-Amz-Security-Token", valid_624696 - var valid_624697 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624696 + var valid_624697 = header.getOrDefault("X-Amz-Credential") valid_624697 = validateParameter(valid_624697, JString, required = false, default = nil) if valid_624697 != nil: - section.add "X-Amz-Algorithm", valid_624697 - var valid_624698 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624697 + var valid_624698 = header.getOrDefault("X-Amz-Security-Token") valid_624698 = validateParameter(valid_624698, JString, required = false, default = nil) if valid_624698 != nil: - section.add "X-Amz-SignedHeaders", valid_624698 + section.add "X-Amz-Security-Token", valid_624698 + var valid_624699 = header.getOrDefault("X-Amz-Algorithm") + valid_624699 = validateParameter(valid_624699, JString, required = false, + default = nil) + if valid_624699 != nil: + section.add "X-Amz-Algorithm", valid_624699 + var valid_624700 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624700 = validateParameter(valid_624700, JString, required = false, + default = nil) + if valid_624700 != nil: + section.add "X-Amz-SignedHeaders", valid_624700 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624699: Call_GetModifyTransitGatewayVpcAttachment_624681; +proc call*(call_624701: Call_GetModifyTransitGatewayVpcAttachment_624683; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modifies the specified VPC attachment. ## - let valid = call_624699.validator(path, query, header, formData, body) - let scheme = call_624699.pickScheme + let valid = call_624701.validator(path, query, header, formData, body) + let scheme = call_624701.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624699.url(scheme.get, call_624699.host, call_624699.base, - call_624699.route, valid.getOrDefault("path"), + let url = call_624701.url(scheme.get, call_624701.host, call_624701.base, + call_624701.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624699, url, valid) + result = atozHook(call_624701, url, valid) -proc call*(call_624700: Call_GetModifyTransitGatewayVpcAttachment_624681; +proc call*(call_624702: Call_GetModifyTransitGatewayVpcAttachment_624683; TransitGatewayAttachmentId: string; AddSubnetIds: JsonNode = nil; DryRun: bool = false; OptionsIpv6Support: string = ""; Action: string = "ModifyTransitGatewayVpcAttachment"; @@ -112460,30 +112487,30 @@ proc call*(call_624700: Call_GetModifyTransitGatewayVpcAttachment_624681; ## OptionsDnsSupport: string ## : Describes the options for a VPC attachment. ## Enable or disable DNS support. The default is enable. - var query_624701 = newJObject() + var query_624703 = newJObject() if AddSubnetIds != nil: - query_624701.add "AddSubnetIds", AddSubnetIds - add(query_624701, "DryRun", newJBool(DryRun)) - add(query_624701, "Options.Ipv6Support", newJString(OptionsIpv6Support)) - add(query_624701, "TransitGatewayAttachmentId", + query_624703.add "AddSubnetIds", AddSubnetIds + add(query_624703, "DryRun", newJBool(DryRun)) + add(query_624703, "Options.Ipv6Support", newJString(OptionsIpv6Support)) + add(query_624703, "TransitGatewayAttachmentId", newJString(TransitGatewayAttachmentId)) - add(query_624701, "Action", newJString(Action)) + add(query_624703, "Action", newJString(Action)) if RemoveSubnetIds != nil: - query_624701.add "RemoveSubnetIds", RemoveSubnetIds - add(query_624701, "Version", newJString(Version)) - add(query_624701, "Options.DnsSupport", newJString(OptionsDnsSupport)) - result = call_624700.call(nil, query_624701, nil, nil, nil) + query_624703.add "RemoveSubnetIds", RemoveSubnetIds + add(query_624703, "Version", newJString(Version)) + add(query_624703, "Options.DnsSupport", newJString(OptionsDnsSupport)) + result = call_624702.call(nil, query_624703, nil, nil, nil) -var getModifyTransitGatewayVpcAttachment* = Call_GetModifyTransitGatewayVpcAttachment_624681( +var getModifyTransitGatewayVpcAttachment* = Call_GetModifyTransitGatewayVpcAttachment_624683( name: "getModifyTransitGatewayVpcAttachment", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifyTransitGatewayVpcAttachment", - validator: validate_GetModifyTransitGatewayVpcAttachment_624682, base: "/", - url: url_GetModifyTransitGatewayVpcAttachment_624683, + validator: validate_GetModifyTransitGatewayVpcAttachment_624684, base: "/", + url: url_GetModifyTransitGatewayVpcAttachment_624685, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyVolume_624744 = ref object of OpenApiRestCall_610658 -proc url_PostModifyVolume_624746(protocol: Scheme; host: string; base: string; + Call_PostModifyVolume_624746 = ref object of OpenApiRestCall_610658 +proc url_PostModifyVolume_624748(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -112493,7 +112520,7 @@ proc url_PostModifyVolume_624746(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostModifyVolume_624745(path: JsonNode; query: JsonNode; +proc validate_PostModifyVolume_624747(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    You can modify several parameters of an existing EBS volume, including volume size, volume type, and IOPS capacity. If your EBS volume is attached to a current-generation EC2 instance type, you may be able to apply these changes without stopping the instance or detaching the volume from it. For more information about modifying an EBS volume running Linux, see Modifying the Size, IOPS, or Type of an EBS Volume on Linux. For more information about modifying an EBS volume running Windows, see Modifying the Size, IOPS, or Type of an EBS Volume on Windows.

    When you complete a resize operation on your volume, you need to extend the volume's file-system size to take advantage of the new storage capacity. For information about extending a Linux file system, see Extending a Linux File System. For information about extending a Windows file system, see Extending a Windows File System.

    You can use CloudWatch Events to check the status of a modification to an EBS volume. For information about CloudWatch Events, see the Amazon CloudWatch Events User Guide. You can also track the status of a modification using DescribeVolumesModifications. For information about tracking status changes using either method, see Monitoring Volume Modifications.

    With previous-generation instance types, resizing an EBS volume may require detaching and reattaching the volume or stopping and restarting the instance. For more information, see Modifying the Size, IOPS, or Type of an EBS Volume on Linux and Modifying the Size, IOPS, or Type of an EBS Volume on Windows.

    If you reach the maximum volume modification rate per volume limit, you will need to wait at least six hours before applying further modifications to the affected EBS volume.

    @@ -112506,16 +112533,16 @@ proc validate_PostModifyVolume_624745(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_624747 = query.getOrDefault("Action") - valid_624747 = validateParameter(valid_624747, JString, required = true, + var valid_624749 = query.getOrDefault("Action") + valid_624749 = validateParameter(valid_624749, JString, required = true, default = newJString("ModifyVolume")) - if valid_624747 != nil: - section.add "Action", valid_624747 - var valid_624748 = query.getOrDefault("Version") - valid_624748 = validateParameter(valid_624748, JString, required = true, + if valid_624749 != nil: + section.add "Action", valid_624749 + var valid_624750 = query.getOrDefault("Version") + valid_624750 = validateParameter(valid_624750, JString, required = true, default = newJString("2016-11-15")) - if valid_624748 != nil: - section.add "Version", valid_624748 + if valid_624750 != nil: + section.add "Version", valid_624750 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -112526,41 +112553,41 @@ proc validate_PostModifyVolume_624745(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624749 = header.getOrDefault("X-Amz-Signature") - valid_624749 = validateParameter(valid_624749, JString, required = false, - default = nil) - if valid_624749 != nil: - section.add "X-Amz-Signature", valid_624749 - var valid_624750 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624750 = validateParameter(valid_624750, JString, required = false, - default = nil) - if valid_624750 != nil: - section.add "X-Amz-Content-Sha256", valid_624750 - var valid_624751 = header.getOrDefault("X-Amz-Date") + var valid_624751 = header.getOrDefault("X-Amz-Signature") valid_624751 = validateParameter(valid_624751, JString, required = false, default = nil) if valid_624751 != nil: - section.add "X-Amz-Date", valid_624751 - var valid_624752 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624751 + var valid_624752 = header.getOrDefault("X-Amz-Content-Sha256") valid_624752 = validateParameter(valid_624752, JString, required = false, default = nil) if valid_624752 != nil: - section.add "X-Amz-Credential", valid_624752 - var valid_624753 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624752 + var valid_624753 = header.getOrDefault("X-Amz-Date") valid_624753 = validateParameter(valid_624753, JString, required = false, default = nil) if valid_624753 != nil: - section.add "X-Amz-Security-Token", valid_624753 - var valid_624754 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624753 + var valid_624754 = header.getOrDefault("X-Amz-Credential") valid_624754 = validateParameter(valid_624754, JString, required = false, default = nil) if valid_624754 != nil: - section.add "X-Amz-Algorithm", valid_624754 - var valid_624755 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624754 + var valid_624755 = header.getOrDefault("X-Amz-Security-Token") valid_624755 = validateParameter(valid_624755, JString, required = false, default = nil) if valid_624755 != nil: - section.add "X-Amz-SignedHeaders", valid_624755 + section.add "X-Amz-Security-Token", valid_624755 + var valid_624756 = header.getOrDefault("X-Amz-Algorithm") + valid_624756 = validateParameter(valid_624756, JString, required = false, + default = nil) + if valid_624756 != nil: + section.add "X-Amz-Algorithm", valid_624756 + var valid_624757 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624757 = validateParameter(valid_624757, JString, required = false, + default = nil) + if valid_624757 != nil: + section.add "X-Amz-SignedHeaders", valid_624757 result.add "header", section ## parameters in `formData` object: ## VolumeType: JString @@ -112576,48 +112603,48 @@ proc validate_PostModifyVolume_624745(path: JsonNode; query: JsonNode; ## :

    The target IOPS rate of the volume.

    This is only valid for Provisioned IOPS SSD (io1) volumes. For more information, see Provisioned IOPS SSD (io1) Volumes.

    Default: If no IOPS value is specified, the existing value is retained.

    section = newJObject() - var valid_624756 = formData.getOrDefault("VolumeType") - valid_624756 = validateParameter(valid_624756, JString, required = false, + var valid_624758 = formData.getOrDefault("VolumeType") + valid_624758 = validateParameter(valid_624758, JString, required = false, default = newJString("standard")) - if valid_624756 != nil: - section.add "VolumeType", valid_624756 - var valid_624757 = formData.getOrDefault("Size") - valid_624757 = validateParameter(valid_624757, JInt, required = false, default = nil) - if valid_624757 != nil: - section.add "Size", valid_624757 + if valid_624758 != nil: + section.add "VolumeType", valid_624758 + var valid_624759 = formData.getOrDefault("Size") + valid_624759 = validateParameter(valid_624759, JInt, required = false, default = nil) + if valid_624759 != nil: + section.add "Size", valid_624759 assert formData != nil, "formData argument is necessary due to required `VolumeId` field" - var valid_624758 = formData.getOrDefault("VolumeId") - valid_624758 = validateParameter(valid_624758, JString, required = true, + var valid_624760 = formData.getOrDefault("VolumeId") + valid_624760 = validateParameter(valid_624760, JString, required = true, default = nil) - if valid_624758 != nil: - section.add "VolumeId", valid_624758 - var valid_624759 = formData.getOrDefault("DryRun") - valid_624759 = validateParameter(valid_624759, JBool, required = false, default = nil) - if valid_624759 != nil: - section.add "DryRun", valid_624759 - var valid_624760 = formData.getOrDefault("Iops") - valid_624760 = validateParameter(valid_624760, JInt, required = false, default = nil) if valid_624760 != nil: - section.add "Iops", valid_624760 + section.add "VolumeId", valid_624760 + var valid_624761 = formData.getOrDefault("DryRun") + valid_624761 = validateParameter(valid_624761, JBool, required = false, default = nil) + if valid_624761 != nil: + section.add "DryRun", valid_624761 + var valid_624762 = formData.getOrDefault("Iops") + valid_624762 = validateParameter(valid_624762, JInt, required = false, default = nil) + if valid_624762 != nil: + section.add "Iops", valid_624762 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624761: Call_PostModifyVolume_624744; path: JsonNode; +proc call*(call_624763: Call_PostModifyVolume_624746; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    You can modify several parameters of an existing EBS volume, including volume size, volume type, and IOPS capacity. If your EBS volume is attached to a current-generation EC2 instance type, you may be able to apply these changes without stopping the instance or detaching the volume from it. For more information about modifying an EBS volume running Linux, see Modifying the Size, IOPS, or Type of an EBS Volume on Linux. For more information about modifying an EBS volume running Windows, see Modifying the Size, IOPS, or Type of an EBS Volume on Windows.

    When you complete a resize operation on your volume, you need to extend the volume's file-system size to take advantage of the new storage capacity. For information about extending a Linux file system, see Extending a Linux File System. For information about extending a Windows file system, see Extending a Windows File System.

    You can use CloudWatch Events to check the status of a modification to an EBS volume. For information about CloudWatch Events, see the Amazon CloudWatch Events User Guide. You can also track the status of a modification using DescribeVolumesModifications. For information about tracking status changes using either method, see Monitoring Volume Modifications.

    With previous-generation instance types, resizing an EBS volume may require detaching and reattaching the volume or stopping and restarting the instance. For more information, see Modifying the Size, IOPS, or Type of an EBS Volume on Linux and Modifying the Size, IOPS, or Type of an EBS Volume on Windows.

    If you reach the maximum volume modification rate per volume limit, you will need to wait at least six hours before applying further modifications to the affected EBS volume.

    ## - let valid = call_624761.validator(path, query, header, formData, body) - let scheme = call_624761.pickScheme + let valid = call_624763.validator(path, query, header, formData, body) + let scheme = call_624763.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624761.url(scheme.get, call_624761.host, call_624761.base, - call_624761.route, valid.getOrDefault("path"), + let url = call_624763.url(scheme.get, call_624763.host, call_624763.base, + call_624763.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624761, url, valid) + result = atozHook(call_624763, url, valid) -proc call*(call_624762: Call_PostModifyVolume_624744; VolumeId: string; +proc call*(call_624764: Call_PostModifyVolume_624746; VolumeId: string; VolumeType: string = "standard"; Size: int = 0; DryRun: bool = false; Iops: int = 0; Action: string = "ModifyVolume"; Version: string = "2016-11-15"): Recallable = ## postModifyVolume @@ -112636,25 +112663,25 @@ proc call*(call_624762: Call_PostModifyVolume_624744; VolumeId: string; ## href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html#EBSVolumeTypes_piops">Provisioned IOPS SSD (io1) Volumes.

    Default: If no IOPS value is specified, the existing value is retained.

    ## Action: string (required) ## Version: string (required) - var query_624763 = newJObject() - var formData_624764 = newJObject() - add(formData_624764, "VolumeType", newJString(VolumeType)) - add(formData_624764, "Size", newJInt(Size)) - add(formData_624764, "VolumeId", newJString(VolumeId)) - add(formData_624764, "DryRun", newJBool(DryRun)) - add(formData_624764, "Iops", newJInt(Iops)) - add(query_624763, "Action", newJString(Action)) - add(query_624763, "Version", newJString(Version)) - result = call_624762.call(nil, query_624763, nil, formData_624764, nil) + var query_624765 = newJObject() + var formData_624766 = newJObject() + add(formData_624766, "VolumeType", newJString(VolumeType)) + add(formData_624766, "Size", newJInt(Size)) + add(formData_624766, "VolumeId", newJString(VolumeId)) + add(formData_624766, "DryRun", newJBool(DryRun)) + add(formData_624766, "Iops", newJInt(Iops)) + add(query_624765, "Action", newJString(Action)) + add(query_624765, "Version", newJString(Version)) + result = call_624764.call(nil, query_624765, nil, formData_624766, nil) -var postModifyVolume* = Call_PostModifyVolume_624744(name: "postModifyVolume", +var postModifyVolume* = Call_PostModifyVolume_624746(name: "postModifyVolume", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", - route: "/#Action=ModifyVolume", validator: validate_PostModifyVolume_624745, - base: "/", url: url_PostModifyVolume_624746, + route: "/#Action=ModifyVolume", validator: validate_PostModifyVolume_624747, + base: "/", url: url_PostModifyVolume_624748, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyVolume_624724 = ref object of OpenApiRestCall_610658 -proc url_GetModifyVolume_624726(protocol: Scheme; host: string; base: string; + Call_GetModifyVolume_624726 = ref object of OpenApiRestCall_610658 +proc url_GetModifyVolume_624728(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -112664,7 +112691,7 @@ proc url_GetModifyVolume_624726(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetModifyVolume_624725(path: JsonNode; query: JsonNode; +proc validate_GetModifyVolume_624727(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    You can modify several parameters of an existing EBS volume, including volume size, volume type, and IOPS capacity. If your EBS volume is attached to a current-generation EC2 instance type, you may be able to apply these changes without stopping the instance or detaching the volume from it. For more information about modifying an EBS volume running Linux, see Modifying the Size, IOPS, or Type of an EBS Volume on Linux. For more information about modifying an EBS volume running Windows, see Modifying the Size, IOPS, or Type of an EBS Volume on Windows.

    When you complete a resize operation on your volume, you need to extend the volume's file-system size to take advantage of the new storage capacity. For information about extending a Linux file system, see Extending a Linux File System. For information about extending a Windows file system, see Extending a Windows File System.

    You can use CloudWatch Events to check the status of a modification to an EBS volume. For information about CloudWatch Events, see the Amazon CloudWatch Events User Guide. You can also track the status of a modification using DescribeVolumesModifications. For information about tracking status changes using either method, see Monitoring Volume Modifications.

    With previous-generation instance types, resizing an EBS volume may require detaching and reattaching the volume or stopping and restarting the instance. For more information, see Modifying the Size, IOPS, or Type of an EBS Volume on Linux and Modifying the Size, IOPS, or Type of an EBS Volume on Windows.

    If you reach the maximum volume modification rate per volume limit, you will need to wait at least six hours before applying further modifications to the affected EBS volume.

    @@ -112689,40 +112716,40 @@ proc validate_GetModifyVolume_624725(path: JsonNode; query: JsonNode; ## :

    The target IOPS rate of the volume.

    This is only valid for Provisioned IOPS SSD (io1) volumes. For more information, see Provisioned IOPS SSD (io1) Volumes.

    Default: If no IOPS value is specified, the existing value is retained.

    section = newJObject() - var valid_624727 = query.getOrDefault("DryRun") - valid_624727 = validateParameter(valid_624727, JBool, required = false, default = nil) - if valid_624727 != nil: - section.add "DryRun", valid_624727 - var valid_624728 = query.getOrDefault("VolumeType") - valid_624728 = validateParameter(valid_624728, JString, required = false, + var valid_624729 = query.getOrDefault("DryRun") + valid_624729 = validateParameter(valid_624729, JBool, required = false, default = nil) + if valid_624729 != nil: + section.add "DryRun", valid_624729 + var valid_624730 = query.getOrDefault("VolumeType") + valid_624730 = validateParameter(valid_624730, JString, required = false, default = newJString("standard")) - if valid_624728 != nil: - section.add "VolumeType", valid_624728 + if valid_624730 != nil: + section.add "VolumeType", valid_624730 assert query != nil, "query argument is necessary due to required `VolumeId` field" - var valid_624729 = query.getOrDefault("VolumeId") - valid_624729 = validateParameter(valid_624729, JString, required = true, - default = nil) - if valid_624729 != nil: - section.add "VolumeId", valid_624729 - var valid_624730 = query.getOrDefault("Size") - valid_624730 = validateParameter(valid_624730, JInt, required = false, default = nil) - if valid_624730 != nil: - section.add "Size", valid_624730 - var valid_624731 = query.getOrDefault("Action") + var valid_624731 = query.getOrDefault("VolumeId") valid_624731 = validateParameter(valid_624731, JString, required = true, - default = newJString("ModifyVolume")) + default = nil) if valid_624731 != nil: - section.add "Action", valid_624731 - var valid_624732 = query.getOrDefault("Version") - valid_624732 = validateParameter(valid_624732, JString, required = true, - default = newJString("2016-11-15")) + section.add "VolumeId", valid_624731 + var valid_624732 = query.getOrDefault("Size") + valid_624732 = validateParameter(valid_624732, JInt, required = false, default = nil) if valid_624732 != nil: - section.add "Version", valid_624732 - var valid_624733 = query.getOrDefault("Iops") - valid_624733 = validateParameter(valid_624733, JInt, required = false, default = nil) + section.add "Size", valid_624732 + var valid_624733 = query.getOrDefault("Action") + valid_624733 = validateParameter(valid_624733, JString, required = true, + default = newJString("ModifyVolume")) if valid_624733 != nil: - section.add "Iops", valid_624733 + section.add "Action", valid_624733 + var valid_624734 = query.getOrDefault("Version") + valid_624734 = validateParameter(valid_624734, JString, required = true, + default = newJString("2016-11-15")) + if valid_624734 != nil: + section.add "Version", valid_624734 + var valid_624735 = query.getOrDefault("Iops") + valid_624735 = validateParameter(valid_624735, JInt, required = false, default = nil) + if valid_624735 != nil: + section.add "Iops", valid_624735 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -112733,61 +112760,61 @@ proc validate_GetModifyVolume_624725(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624734 = header.getOrDefault("X-Amz-Signature") - valid_624734 = validateParameter(valid_624734, JString, required = false, - default = nil) - if valid_624734 != nil: - section.add "X-Amz-Signature", valid_624734 - var valid_624735 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624735 = validateParameter(valid_624735, JString, required = false, - default = nil) - if valid_624735 != nil: - section.add "X-Amz-Content-Sha256", valid_624735 - var valid_624736 = header.getOrDefault("X-Amz-Date") + var valid_624736 = header.getOrDefault("X-Amz-Signature") valid_624736 = validateParameter(valid_624736, JString, required = false, default = nil) if valid_624736 != nil: - section.add "X-Amz-Date", valid_624736 - var valid_624737 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624736 + var valid_624737 = header.getOrDefault("X-Amz-Content-Sha256") valid_624737 = validateParameter(valid_624737, JString, required = false, default = nil) if valid_624737 != nil: - section.add "X-Amz-Credential", valid_624737 - var valid_624738 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624737 + var valid_624738 = header.getOrDefault("X-Amz-Date") valid_624738 = validateParameter(valid_624738, JString, required = false, default = nil) if valid_624738 != nil: - section.add "X-Amz-Security-Token", valid_624738 - var valid_624739 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624738 + var valid_624739 = header.getOrDefault("X-Amz-Credential") valid_624739 = validateParameter(valid_624739, JString, required = false, default = nil) if valid_624739 != nil: - section.add "X-Amz-Algorithm", valid_624739 - var valid_624740 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624739 + var valid_624740 = header.getOrDefault("X-Amz-Security-Token") valid_624740 = validateParameter(valid_624740, JString, required = false, default = nil) if valid_624740 != nil: - section.add "X-Amz-SignedHeaders", valid_624740 + section.add "X-Amz-Security-Token", valid_624740 + var valid_624741 = header.getOrDefault("X-Amz-Algorithm") + valid_624741 = validateParameter(valid_624741, JString, required = false, + default = nil) + if valid_624741 != nil: + section.add "X-Amz-Algorithm", valid_624741 + var valid_624742 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624742 = validateParameter(valid_624742, JString, required = false, + default = nil) + if valid_624742 != nil: + section.add "X-Amz-SignedHeaders", valid_624742 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624741: Call_GetModifyVolume_624724; path: JsonNode; query: JsonNode; +proc call*(call_624743: Call_GetModifyVolume_624726; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    You can modify several parameters of an existing EBS volume, including volume size, volume type, and IOPS capacity. If your EBS volume is attached to a current-generation EC2 instance type, you may be able to apply these changes without stopping the instance or detaching the volume from it. For more information about modifying an EBS volume running Linux, see Modifying the Size, IOPS, or Type of an EBS Volume on Linux. For more information about modifying an EBS volume running Windows, see Modifying the Size, IOPS, or Type of an EBS Volume on Windows.

    When you complete a resize operation on your volume, you need to extend the volume's file-system size to take advantage of the new storage capacity. For information about extending a Linux file system, see Extending a Linux File System. For information about extending a Windows file system, see Extending a Windows File System.

    You can use CloudWatch Events to check the status of a modification to an EBS volume. For information about CloudWatch Events, see the Amazon CloudWatch Events User Guide. You can also track the status of a modification using DescribeVolumesModifications. For information about tracking status changes using either method, see Monitoring Volume Modifications.

    With previous-generation instance types, resizing an EBS volume may require detaching and reattaching the volume or stopping and restarting the instance. For more information, see Modifying the Size, IOPS, or Type of an EBS Volume on Linux and Modifying the Size, IOPS, or Type of an EBS Volume on Windows.

    If you reach the maximum volume modification rate per volume limit, you will need to wait at least six hours before applying further modifications to the affected EBS volume.

    ## - let valid = call_624741.validator(path, query, header, formData, body) - let scheme = call_624741.pickScheme + let valid = call_624743.validator(path, query, header, formData, body) + let scheme = call_624743.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624741.url(scheme.get, call_624741.host, call_624741.base, - call_624741.route, valid.getOrDefault("path"), + let url = call_624743.url(scheme.get, call_624743.host, call_624743.base, + call_624743.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624741, url, valid) + result = atozHook(call_624743, url, valid) -proc call*(call_624742: Call_GetModifyVolume_624724; VolumeId: string; +proc call*(call_624744: Call_GetModifyVolume_624726; VolumeId: string; DryRun: bool = false; VolumeType: string = "standard"; Size: int = 0; Action: string = "ModifyVolume"; Version: string = "2016-11-15"; Iops: int = 0): Recallable = ## getModifyVolume @@ -112806,23 +112833,23 @@ proc call*(call_624742: Call_GetModifyVolume_624724; VolumeId: string; ## Iops: int ## :

    The target IOPS rate of the volume.

    This is only valid for Provisioned IOPS SSD (io1) volumes. For more information, see Provisioned IOPS SSD (io1) Volumes.

    Default: If no IOPS value is specified, the existing value is retained.

    - var query_624743 = newJObject() - add(query_624743, "DryRun", newJBool(DryRun)) - add(query_624743, "VolumeType", newJString(VolumeType)) - add(query_624743, "VolumeId", newJString(VolumeId)) - add(query_624743, "Size", newJInt(Size)) - add(query_624743, "Action", newJString(Action)) - add(query_624743, "Version", newJString(Version)) - add(query_624743, "Iops", newJInt(Iops)) - result = call_624742.call(nil, query_624743, nil, nil, nil) - -var getModifyVolume* = Call_GetModifyVolume_624724(name: "getModifyVolume", + var query_624745 = newJObject() + add(query_624745, "DryRun", newJBool(DryRun)) + add(query_624745, "VolumeType", newJString(VolumeType)) + add(query_624745, "VolumeId", newJString(VolumeId)) + add(query_624745, "Size", newJInt(Size)) + add(query_624745, "Action", newJString(Action)) + add(query_624745, "Version", newJString(Version)) + add(query_624745, "Iops", newJInt(Iops)) + result = call_624744.call(nil, query_624745, nil, nil, nil) + +var getModifyVolume* = Call_GetModifyVolume_624726(name: "getModifyVolume", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=ModifyVolume", validator: validate_GetModifyVolume_624725, - base: "/", url: url_GetModifyVolume_624726, schemes: {Scheme.Https, Scheme.Http}) + route: "/#Action=ModifyVolume", validator: validate_GetModifyVolume_624727, + base: "/", url: url_GetModifyVolume_624728, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyVolumeAttribute_624783 = ref object of OpenApiRestCall_610658 -proc url_PostModifyVolumeAttribute_624785(protocol: Scheme; host: string; + Call_PostModifyVolumeAttribute_624785 = ref object of OpenApiRestCall_610658 +proc url_PostModifyVolumeAttribute_624787(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -112832,7 +112859,7 @@ proc url_PostModifyVolumeAttribute_624785(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostModifyVolumeAttribute_624784(path: JsonNode; query: JsonNode; +proc validate_PostModifyVolumeAttribute_624786(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies a volume attribute.

    By default, all I/O operations for the volume are suspended when the data on the volume is determined to be potentially inconsistent, to prevent undetectable, latent data corruption. The I/O access to the volume can be resumed by first enabling I/O access and then checking the data consistency on your volume.

    You can change the default behavior to resume I/O operations. We recommend that you change this only for boot volumes or for volumes that are stateless or disposable.

    ## @@ -112844,16 +112871,16 @@ proc validate_PostModifyVolumeAttribute_624784(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_624786 = query.getOrDefault("Action") - valid_624786 = validateParameter(valid_624786, JString, required = true, + var valid_624788 = query.getOrDefault("Action") + valid_624788 = validateParameter(valid_624788, JString, required = true, default = newJString("ModifyVolumeAttribute")) - if valid_624786 != nil: - section.add "Action", valid_624786 - var valid_624787 = query.getOrDefault("Version") - valid_624787 = validateParameter(valid_624787, JString, required = true, + if valid_624788 != nil: + section.add "Action", valid_624788 + var valid_624789 = query.getOrDefault("Version") + valid_624789 = validateParameter(valid_624789, JString, required = true, default = newJString("2016-11-15")) - if valid_624787 != nil: - section.add "Version", valid_624787 + if valid_624789 != nil: + section.add "Version", valid_624789 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -112864,41 +112891,41 @@ proc validate_PostModifyVolumeAttribute_624784(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624788 = header.getOrDefault("X-Amz-Signature") - valid_624788 = validateParameter(valid_624788, JString, required = false, - default = nil) - if valid_624788 != nil: - section.add "X-Amz-Signature", valid_624788 - var valid_624789 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624789 = validateParameter(valid_624789, JString, required = false, - default = nil) - if valid_624789 != nil: - section.add "X-Amz-Content-Sha256", valid_624789 - var valid_624790 = header.getOrDefault("X-Amz-Date") + var valid_624790 = header.getOrDefault("X-Amz-Signature") valid_624790 = validateParameter(valid_624790, JString, required = false, default = nil) if valid_624790 != nil: - section.add "X-Amz-Date", valid_624790 - var valid_624791 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624790 + var valid_624791 = header.getOrDefault("X-Amz-Content-Sha256") valid_624791 = validateParameter(valid_624791, JString, required = false, default = nil) if valid_624791 != nil: - section.add "X-Amz-Credential", valid_624791 - var valid_624792 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624791 + var valid_624792 = header.getOrDefault("X-Amz-Date") valid_624792 = validateParameter(valid_624792, JString, required = false, default = nil) if valid_624792 != nil: - section.add "X-Amz-Security-Token", valid_624792 - var valid_624793 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624792 + var valid_624793 = header.getOrDefault("X-Amz-Credential") valid_624793 = validateParameter(valid_624793, JString, required = false, default = nil) if valid_624793 != nil: - section.add "X-Amz-Algorithm", valid_624793 - var valid_624794 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624793 + var valid_624794 = header.getOrDefault("X-Amz-Security-Token") valid_624794 = validateParameter(valid_624794, JString, required = false, default = nil) if valid_624794 != nil: - section.add "X-Amz-SignedHeaders", valid_624794 + section.add "X-Amz-Security-Token", valid_624794 + var valid_624795 = header.getOrDefault("X-Amz-Algorithm") + valid_624795 = validateParameter(valid_624795, JString, required = false, + default = nil) + if valid_624795 != nil: + section.add "X-Amz-Algorithm", valid_624795 + var valid_624796 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624796 = validateParameter(valid_624796, JString, required = false, + default = nil) + if valid_624796 != nil: + section.add "X-Amz-SignedHeaders", valid_624796 result.add "header", section ## parameters in `formData` object: ## AutoEnableIO.Value: JString @@ -112909,40 +112936,40 @@ proc validate_PostModifyVolumeAttribute_624784(path: JsonNode; query: JsonNode; ## DryRun: JBool ## : 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. section = newJObject() - var valid_624795 = formData.getOrDefault("AutoEnableIO.Value") - valid_624795 = validateParameter(valid_624795, JString, required = false, + var valid_624797 = formData.getOrDefault("AutoEnableIO.Value") + valid_624797 = validateParameter(valid_624797, JString, required = false, default = nil) - if valid_624795 != nil: - section.add "AutoEnableIO.Value", valid_624795 + if valid_624797 != nil: + section.add "AutoEnableIO.Value", valid_624797 assert formData != nil, "formData argument is necessary due to required `VolumeId` field" - var valid_624796 = formData.getOrDefault("VolumeId") - valid_624796 = validateParameter(valid_624796, JString, required = true, + var valid_624798 = formData.getOrDefault("VolumeId") + valid_624798 = validateParameter(valid_624798, JString, required = true, default = nil) - if valid_624796 != nil: - section.add "VolumeId", valid_624796 - var valid_624797 = formData.getOrDefault("DryRun") - valid_624797 = validateParameter(valid_624797, JBool, required = false, default = nil) - if valid_624797 != nil: - section.add "DryRun", valid_624797 + if valid_624798 != nil: + section.add "VolumeId", valid_624798 + var valid_624799 = formData.getOrDefault("DryRun") + valid_624799 = validateParameter(valid_624799, JBool, required = false, default = nil) + if valid_624799 != nil: + section.add "DryRun", valid_624799 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624798: Call_PostModifyVolumeAttribute_624783; path: JsonNode; +proc call*(call_624800: Call_PostModifyVolumeAttribute_624785; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies a volume attribute.

    By default, all I/O operations for the volume are suspended when the data on the volume is determined to be potentially inconsistent, to prevent undetectable, latent data corruption. The I/O access to the volume can be resumed by first enabling I/O access and then checking the data consistency on your volume.

    You can change the default behavior to resume I/O operations. We recommend that you change this only for boot volumes or for volumes that are stateless or disposable.

    ## - let valid = call_624798.validator(path, query, header, formData, body) - let scheme = call_624798.pickScheme + let valid = call_624800.validator(path, query, header, formData, body) + let scheme = call_624800.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624798.url(scheme.get, call_624798.host, call_624798.base, - call_624798.route, valid.getOrDefault("path"), + let url = call_624800.url(scheme.get, call_624800.host, call_624800.base, + call_624800.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624798, url, valid) + result = atozHook(call_624800, url, valid) -proc call*(call_624799: Call_PostModifyVolumeAttribute_624783; VolumeId: string; +proc call*(call_624801: Call_PostModifyVolumeAttribute_624785; VolumeId: string; AutoEnableIOValue: string = ""; DryRun: bool = false; Action: string = "ModifyVolumeAttribute"; Version: string = "2016-11-15"): Recallable = ## postModifyVolumeAttribute @@ -112956,24 +112983,24 @@ proc call*(call_624799: Call_PostModifyVolumeAttribute_624783; VolumeId: string; ## : 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. ## Action: string (required) ## Version: string (required) - var query_624800 = newJObject() - var formData_624801 = newJObject() - add(formData_624801, "AutoEnableIO.Value", newJString(AutoEnableIOValue)) - add(formData_624801, "VolumeId", newJString(VolumeId)) - add(formData_624801, "DryRun", newJBool(DryRun)) - add(query_624800, "Action", newJString(Action)) - add(query_624800, "Version", newJString(Version)) - result = call_624799.call(nil, query_624800, nil, formData_624801, nil) + var query_624802 = newJObject() + var formData_624803 = newJObject() + add(formData_624803, "AutoEnableIO.Value", newJString(AutoEnableIOValue)) + add(formData_624803, "VolumeId", newJString(VolumeId)) + add(formData_624803, "DryRun", newJBool(DryRun)) + add(query_624802, "Action", newJString(Action)) + add(query_624802, "Version", newJString(Version)) + result = call_624801.call(nil, query_624802, nil, formData_624803, nil) -var postModifyVolumeAttribute* = Call_PostModifyVolumeAttribute_624783( +var postModifyVolumeAttribute* = Call_PostModifyVolumeAttribute_624785( name: "postModifyVolumeAttribute", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyVolumeAttribute", - validator: validate_PostModifyVolumeAttribute_624784, base: "/", - url: url_PostModifyVolumeAttribute_624785, + validator: validate_PostModifyVolumeAttribute_624786, base: "/", + url: url_PostModifyVolumeAttribute_624787, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyVolumeAttribute_624765 = ref object of OpenApiRestCall_610658 -proc url_GetModifyVolumeAttribute_624767(protocol: Scheme; host: string; + Call_GetModifyVolumeAttribute_624767 = ref object of OpenApiRestCall_610658 +proc url_GetModifyVolumeAttribute_624769(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -112984,7 +113011,7 @@ proc url_GetModifyVolumeAttribute_624767(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetModifyVolumeAttribute_624766(path: JsonNode; query: JsonNode; +proc validate_GetModifyVolumeAttribute_624768(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies a volume attribute.

    By default, all I/O operations for the volume are suspended when the data on the volume is determined to be potentially inconsistent, to prevent undetectable, latent data corruption. The I/O access to the volume can be resumed by first enabling I/O access and then checking the data consistency on your volume.

    You can change the default behavior to resume I/O operations. We recommend that you change this only for boot volumes or for volumes that are stateless or disposable.

    ## @@ -113003,32 +113030,32 @@ proc validate_GetModifyVolumeAttribute_624766(path: JsonNode; query: JsonNode; ## The attribute value. The valid values are true or false. ## Version: JString (required) section = newJObject() - var valid_624768 = query.getOrDefault("DryRun") - valid_624768 = validateParameter(valid_624768, JBool, required = false, default = nil) - if valid_624768 != nil: - section.add "DryRun", valid_624768 + var valid_624770 = query.getOrDefault("DryRun") + valid_624770 = validateParameter(valid_624770, JBool, required = false, default = nil) + if valid_624770 != nil: + section.add "DryRun", valid_624770 assert query != nil, "query argument is necessary due to required `VolumeId` field" - var valid_624769 = query.getOrDefault("VolumeId") - valid_624769 = validateParameter(valid_624769, JString, required = true, - default = nil) - if valid_624769 != nil: - section.add "VolumeId", valid_624769 - var valid_624770 = query.getOrDefault("Action") - valid_624770 = validateParameter(valid_624770, JString, required = true, - default = newJString("ModifyVolumeAttribute")) - if valid_624770 != nil: - section.add "Action", valid_624770 - var valid_624771 = query.getOrDefault("AutoEnableIO.Value") - valid_624771 = validateParameter(valid_624771, JString, required = false, + var valid_624771 = query.getOrDefault("VolumeId") + valid_624771 = validateParameter(valid_624771, JString, required = true, default = nil) if valid_624771 != nil: - section.add "AutoEnableIO.Value", valid_624771 - var valid_624772 = query.getOrDefault("Version") + section.add "VolumeId", valid_624771 + var valid_624772 = query.getOrDefault("Action") valid_624772 = validateParameter(valid_624772, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("ModifyVolumeAttribute")) if valid_624772 != nil: - section.add "Version", valid_624772 + section.add "Action", valid_624772 + var valid_624773 = query.getOrDefault("AutoEnableIO.Value") + valid_624773 = validateParameter(valid_624773, JString, required = false, + default = nil) + if valid_624773 != nil: + section.add "AutoEnableIO.Value", valid_624773 + var valid_624774 = query.getOrDefault("Version") + valid_624774 = validateParameter(valid_624774, JString, required = true, + default = newJString("2016-11-15")) + if valid_624774 != nil: + section.add "Version", valid_624774 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -113039,61 +113066,61 @@ proc validate_GetModifyVolumeAttribute_624766(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624773 = header.getOrDefault("X-Amz-Signature") - valid_624773 = validateParameter(valid_624773, JString, required = false, - default = nil) - if valid_624773 != nil: - section.add "X-Amz-Signature", valid_624773 - var valid_624774 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624774 = validateParameter(valid_624774, JString, required = false, - default = nil) - if valid_624774 != nil: - section.add "X-Amz-Content-Sha256", valid_624774 - var valid_624775 = header.getOrDefault("X-Amz-Date") + var valid_624775 = header.getOrDefault("X-Amz-Signature") valid_624775 = validateParameter(valid_624775, JString, required = false, default = nil) if valid_624775 != nil: - section.add "X-Amz-Date", valid_624775 - var valid_624776 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624775 + var valid_624776 = header.getOrDefault("X-Amz-Content-Sha256") valid_624776 = validateParameter(valid_624776, JString, required = false, default = nil) if valid_624776 != nil: - section.add "X-Amz-Credential", valid_624776 - var valid_624777 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624776 + var valid_624777 = header.getOrDefault("X-Amz-Date") valid_624777 = validateParameter(valid_624777, JString, required = false, default = nil) if valid_624777 != nil: - section.add "X-Amz-Security-Token", valid_624777 - var valid_624778 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624777 + var valid_624778 = header.getOrDefault("X-Amz-Credential") valid_624778 = validateParameter(valid_624778, JString, required = false, default = nil) if valid_624778 != nil: - section.add "X-Amz-Algorithm", valid_624778 - var valid_624779 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624778 + var valid_624779 = header.getOrDefault("X-Amz-Security-Token") valid_624779 = validateParameter(valid_624779, JString, required = false, default = nil) if valid_624779 != nil: - section.add "X-Amz-SignedHeaders", valid_624779 + section.add "X-Amz-Security-Token", valid_624779 + var valid_624780 = header.getOrDefault("X-Amz-Algorithm") + valid_624780 = validateParameter(valid_624780, JString, required = false, + default = nil) + if valid_624780 != nil: + section.add "X-Amz-Algorithm", valid_624780 + var valid_624781 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624781 = validateParameter(valid_624781, JString, required = false, + default = nil) + if valid_624781 != nil: + section.add "X-Amz-SignedHeaders", valid_624781 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624780: Call_GetModifyVolumeAttribute_624765; path: JsonNode; +proc call*(call_624782: Call_GetModifyVolumeAttribute_624767; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies a volume attribute.

    By default, all I/O operations for the volume are suspended when the data on the volume is determined to be potentially inconsistent, to prevent undetectable, latent data corruption. The I/O access to the volume can be resumed by first enabling I/O access and then checking the data consistency on your volume.

    You can change the default behavior to resume I/O operations. We recommend that you change this only for boot volumes or for volumes that are stateless or disposable.

    ## - let valid = call_624780.validator(path, query, header, formData, body) - let scheme = call_624780.pickScheme + let valid = call_624782.validator(path, query, header, formData, body) + let scheme = call_624782.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624780.url(scheme.get, call_624780.host, call_624780.base, - call_624780.route, valid.getOrDefault("path"), + let url = call_624782.url(scheme.get, call_624782.host, call_624782.base, + call_624782.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624780, url, valid) + result = atozHook(call_624782, url, valid) -proc call*(call_624781: Call_GetModifyVolumeAttribute_624765; VolumeId: string; +proc call*(call_624783: Call_GetModifyVolumeAttribute_624767; VolumeId: string; DryRun: bool = false; Action: string = "ModifyVolumeAttribute"; AutoEnableIOValue: string = ""; Version: string = "2016-11-15"): Recallable = ## getModifyVolumeAttribute @@ -113107,22 +113134,22 @@ proc call*(call_624781: Call_GetModifyVolumeAttribute_624765; VolumeId: string; ## : Describes a value for a resource attribute that is a Boolean value. ## The attribute value. The valid values are true or false. ## Version: string (required) - var query_624782 = newJObject() - add(query_624782, "DryRun", newJBool(DryRun)) - add(query_624782, "VolumeId", newJString(VolumeId)) - add(query_624782, "Action", newJString(Action)) - add(query_624782, "AutoEnableIO.Value", newJString(AutoEnableIOValue)) - add(query_624782, "Version", newJString(Version)) - result = call_624781.call(nil, query_624782, nil, nil, nil) + var query_624784 = newJObject() + add(query_624784, "DryRun", newJBool(DryRun)) + add(query_624784, "VolumeId", newJString(VolumeId)) + add(query_624784, "Action", newJString(Action)) + add(query_624784, "AutoEnableIO.Value", newJString(AutoEnableIOValue)) + add(query_624784, "Version", newJString(Version)) + result = call_624783.call(nil, query_624784, nil, nil, nil) -var getModifyVolumeAttribute* = Call_GetModifyVolumeAttribute_624765( +var getModifyVolumeAttribute* = Call_GetModifyVolumeAttribute_624767( name: "getModifyVolumeAttribute", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifyVolumeAttribute", - validator: validate_GetModifyVolumeAttribute_624766, base: "/", - url: url_GetModifyVolumeAttribute_624767, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetModifyVolumeAttribute_624768, base: "/", + url: url_GetModifyVolumeAttribute_624769, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyVpcAttribute_624820 = ref object of OpenApiRestCall_610658 -proc url_PostModifyVpcAttribute_624822(protocol: Scheme; host: string; base: string; + Call_PostModifyVpcAttribute_624822 = ref object of OpenApiRestCall_610658 +proc url_PostModifyVpcAttribute_624824(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -113132,7 +113159,7 @@ proc url_PostModifyVpcAttribute_624822(protocol: Scheme; host: string; base: str else: result.path = base & route -proc validate_PostModifyVpcAttribute_624821(path: JsonNode; query: JsonNode; +proc validate_PostModifyVpcAttribute_624823(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modifies the specified attribute of the specified VPC. ## @@ -113144,16 +113171,16 @@ proc validate_PostModifyVpcAttribute_624821(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_624823 = query.getOrDefault("Action") - valid_624823 = validateParameter(valid_624823, JString, required = true, + var valid_624825 = query.getOrDefault("Action") + valid_624825 = validateParameter(valid_624825, JString, required = true, default = newJString("ModifyVpcAttribute")) - if valid_624823 != nil: - section.add "Action", valid_624823 - var valid_624824 = query.getOrDefault("Version") - valid_624824 = validateParameter(valid_624824, JString, required = true, + if valid_624825 != nil: + section.add "Action", valid_624825 + var valid_624826 = query.getOrDefault("Version") + valid_624826 = validateParameter(valid_624826, JString, required = true, default = newJString("2016-11-15")) - if valid_624824 != nil: - section.add "Version", valid_624824 + if valid_624826 != nil: + section.add "Version", valid_624826 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -113164,41 +113191,41 @@ proc validate_PostModifyVpcAttribute_624821(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624825 = header.getOrDefault("X-Amz-Signature") - valid_624825 = validateParameter(valid_624825, JString, required = false, - default = nil) - if valid_624825 != nil: - section.add "X-Amz-Signature", valid_624825 - var valid_624826 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624826 = validateParameter(valid_624826, JString, required = false, - default = nil) - if valid_624826 != nil: - section.add "X-Amz-Content-Sha256", valid_624826 - var valid_624827 = header.getOrDefault("X-Amz-Date") + var valid_624827 = header.getOrDefault("X-Amz-Signature") valid_624827 = validateParameter(valid_624827, JString, required = false, default = nil) if valid_624827 != nil: - section.add "X-Amz-Date", valid_624827 - var valid_624828 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624827 + var valid_624828 = header.getOrDefault("X-Amz-Content-Sha256") valid_624828 = validateParameter(valid_624828, JString, required = false, default = nil) if valid_624828 != nil: - section.add "X-Amz-Credential", valid_624828 - var valid_624829 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624828 + var valid_624829 = header.getOrDefault("X-Amz-Date") valid_624829 = validateParameter(valid_624829, JString, required = false, default = nil) if valid_624829 != nil: - section.add "X-Amz-Security-Token", valid_624829 - var valid_624830 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624829 + var valid_624830 = header.getOrDefault("X-Amz-Credential") valid_624830 = validateParameter(valid_624830, JString, required = false, default = nil) if valid_624830 != nil: - section.add "X-Amz-Algorithm", valid_624830 - var valid_624831 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624830 + var valid_624831 = header.getOrDefault("X-Amz-Security-Token") valid_624831 = validateParameter(valid_624831, JString, required = false, default = nil) if valid_624831 != nil: - section.add "X-Amz-SignedHeaders", valid_624831 + section.add "X-Amz-Security-Token", valid_624831 + var valid_624832 = header.getOrDefault("X-Amz-Algorithm") + valid_624832 = validateParameter(valid_624832, JString, required = false, + default = nil) + if valid_624832 != nil: + section.add "X-Amz-Algorithm", valid_624832 + var valid_624833 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624833 = validateParameter(valid_624833, JString, required = false, + default = nil) + if valid_624833 != nil: + section.add "X-Amz-SignedHeaders", valid_624833 result.add "header", section ## parameters in `formData` object: ## VpcId: JString (required) @@ -113212,39 +113239,39 @@ proc validate_PostModifyVpcAttribute_624821(path: JsonNode; query: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `VpcId` field" - var valid_624832 = formData.getOrDefault("VpcId") - valid_624832 = validateParameter(valid_624832, JString, required = true, + var valid_624834 = formData.getOrDefault("VpcId") + valid_624834 = validateParameter(valid_624834, JString, required = true, default = nil) - if valid_624832 != nil: - section.add "VpcId", valid_624832 - var valid_624833 = formData.getOrDefault("EnableDnsHostnames.Value") - valid_624833 = validateParameter(valid_624833, JString, required = false, + if valid_624834 != nil: + section.add "VpcId", valid_624834 + var valid_624835 = formData.getOrDefault("EnableDnsHostnames.Value") + valid_624835 = validateParameter(valid_624835, JString, required = false, default = nil) - if valid_624833 != nil: - section.add "EnableDnsHostnames.Value", valid_624833 - var valid_624834 = formData.getOrDefault("EnableDnsSupport.Value") - valid_624834 = validateParameter(valid_624834, JString, required = false, + if valid_624835 != nil: + section.add "EnableDnsHostnames.Value", valid_624835 + var valid_624836 = formData.getOrDefault("EnableDnsSupport.Value") + valid_624836 = validateParameter(valid_624836, JString, required = false, default = nil) - if valid_624834 != nil: - section.add "EnableDnsSupport.Value", valid_624834 + if valid_624836 != nil: + section.add "EnableDnsSupport.Value", valid_624836 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624835: Call_PostModifyVpcAttribute_624820; path: JsonNode; +proc call*(call_624837: Call_PostModifyVpcAttribute_624822; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modifies the specified attribute of the specified VPC. ## - let valid = call_624835.validator(path, query, header, formData, body) - let scheme = call_624835.pickScheme + let valid = call_624837.validator(path, query, header, formData, body) + let scheme = call_624837.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624835.url(scheme.get, call_624835.host, call_624835.base, - call_624835.route, valid.getOrDefault("path"), + let url = call_624837.url(scheme.get, call_624837.host, call_624837.base, + call_624837.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624835, url, valid) + result = atozHook(call_624837, url, valid) -proc call*(call_624836: Call_PostModifyVpcAttribute_624820; VpcId: string; +proc call*(call_624838: Call_PostModifyVpcAttribute_624822; VpcId: string; EnableDnsHostnamesValue: string = ""; Action: string = "ModifyVpcAttribute"; EnableDnsSupportValue: string = ""; Version: string = "2016-11-15"): Recallable = @@ -113260,24 +113287,24 @@ proc call*(call_624836: Call_PostModifyVpcAttribute_624820; VpcId: string; ## : Describes a value for a resource attribute that is a Boolean value. ## The attribute value. The valid values are true or false. ## Version: string (required) - var query_624837 = newJObject() - var formData_624838 = newJObject() - add(formData_624838, "VpcId", newJString(VpcId)) - add(formData_624838, "EnableDnsHostnames.Value", + var query_624839 = newJObject() + var formData_624840 = newJObject() + add(formData_624840, "VpcId", newJString(VpcId)) + add(formData_624840, "EnableDnsHostnames.Value", newJString(EnableDnsHostnamesValue)) - add(query_624837, "Action", newJString(Action)) - add(formData_624838, "EnableDnsSupport.Value", newJString(EnableDnsSupportValue)) - add(query_624837, "Version", newJString(Version)) - result = call_624836.call(nil, query_624837, nil, formData_624838, nil) + add(query_624839, "Action", newJString(Action)) + add(formData_624840, "EnableDnsSupport.Value", newJString(EnableDnsSupportValue)) + add(query_624839, "Version", newJString(Version)) + result = call_624838.call(nil, query_624839, nil, formData_624840, nil) -var postModifyVpcAttribute* = Call_PostModifyVpcAttribute_624820( +var postModifyVpcAttribute* = Call_PostModifyVpcAttribute_624822( name: "postModifyVpcAttribute", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyVpcAttribute", - validator: validate_PostModifyVpcAttribute_624821, base: "/", - url: url_PostModifyVpcAttribute_624822, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostModifyVpcAttribute_624823, base: "/", + url: url_PostModifyVpcAttribute_624824, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyVpcAttribute_624802 = ref object of OpenApiRestCall_610658 -proc url_GetModifyVpcAttribute_624804(protocol: Scheme; host: string; base: string; + Call_GetModifyVpcAttribute_624804 = ref object of OpenApiRestCall_610658 +proc url_GetModifyVpcAttribute_624806(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -113287,7 +113314,7 @@ proc url_GetModifyVpcAttribute_624804(protocol: Scheme; host: string; base: stri else: result.path = base & route -proc validate_GetModifyVpcAttribute_624803(path: JsonNode; query: JsonNode; +proc validate_GetModifyVpcAttribute_624805(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modifies the specified attribute of the specified VPC. ## @@ -113307,32 +113334,32 @@ proc validate_GetModifyVpcAttribute_624803(path: JsonNode; query: JsonNode; ## The attribute value. The valid values are true or false. ## Version: JString (required) section = newJObject() - var valid_624805 = query.getOrDefault("EnableDnsHostnames.Value") - valid_624805 = validateParameter(valid_624805, JString, required = false, + var valid_624807 = query.getOrDefault("EnableDnsHostnames.Value") + valid_624807 = validateParameter(valid_624807, JString, required = false, default = nil) - if valid_624805 != nil: - section.add "EnableDnsHostnames.Value", valid_624805 - assert query != nil, "query argument is necessary due to required `VpcId` field" - var valid_624806 = query.getOrDefault("VpcId") - valid_624806 = validateParameter(valid_624806, JString, required = true, - default = nil) - if valid_624806 != nil: - section.add "VpcId", valid_624806 - var valid_624807 = query.getOrDefault("Action") - valid_624807 = validateParameter(valid_624807, JString, required = true, - default = newJString("ModifyVpcAttribute")) if valid_624807 != nil: - section.add "Action", valid_624807 - var valid_624808 = query.getOrDefault("EnableDnsSupport.Value") - valid_624808 = validateParameter(valid_624808, JString, required = false, + section.add "EnableDnsHostnames.Value", valid_624807 + assert query != nil, "query argument is necessary due to required `VpcId` field" + var valid_624808 = query.getOrDefault("VpcId") + valid_624808 = validateParameter(valid_624808, JString, required = true, default = nil) if valid_624808 != nil: - section.add "EnableDnsSupport.Value", valid_624808 - var valid_624809 = query.getOrDefault("Version") + section.add "VpcId", valid_624808 + var valid_624809 = query.getOrDefault("Action") valid_624809 = validateParameter(valid_624809, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("ModifyVpcAttribute")) if valid_624809 != nil: - section.add "Version", valid_624809 + section.add "Action", valid_624809 + var valid_624810 = query.getOrDefault("EnableDnsSupport.Value") + valid_624810 = validateParameter(valid_624810, JString, required = false, + default = nil) + if valid_624810 != nil: + section.add "EnableDnsSupport.Value", valid_624810 + var valid_624811 = query.getOrDefault("Version") + valid_624811 = validateParameter(valid_624811, JString, required = true, + default = newJString("2016-11-15")) + if valid_624811 != nil: + section.add "Version", valid_624811 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -113343,61 +113370,61 @@ proc validate_GetModifyVpcAttribute_624803(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624810 = header.getOrDefault("X-Amz-Signature") - valid_624810 = validateParameter(valid_624810, JString, required = false, - default = nil) - if valid_624810 != nil: - section.add "X-Amz-Signature", valid_624810 - var valid_624811 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624811 = validateParameter(valid_624811, JString, required = false, - default = nil) - if valid_624811 != nil: - section.add "X-Amz-Content-Sha256", valid_624811 - var valid_624812 = header.getOrDefault("X-Amz-Date") + var valid_624812 = header.getOrDefault("X-Amz-Signature") valid_624812 = validateParameter(valid_624812, JString, required = false, default = nil) if valid_624812 != nil: - section.add "X-Amz-Date", valid_624812 - var valid_624813 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624812 + var valid_624813 = header.getOrDefault("X-Amz-Content-Sha256") valid_624813 = validateParameter(valid_624813, JString, required = false, default = nil) if valid_624813 != nil: - section.add "X-Amz-Credential", valid_624813 - var valid_624814 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624813 + var valid_624814 = header.getOrDefault("X-Amz-Date") valid_624814 = validateParameter(valid_624814, JString, required = false, default = nil) if valid_624814 != nil: - section.add "X-Amz-Security-Token", valid_624814 - var valid_624815 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624814 + var valid_624815 = header.getOrDefault("X-Amz-Credential") valid_624815 = validateParameter(valid_624815, JString, required = false, default = nil) if valid_624815 != nil: - section.add "X-Amz-Algorithm", valid_624815 - var valid_624816 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624815 + var valid_624816 = header.getOrDefault("X-Amz-Security-Token") valid_624816 = validateParameter(valid_624816, JString, required = false, default = nil) if valid_624816 != nil: - section.add "X-Amz-SignedHeaders", valid_624816 + section.add "X-Amz-Security-Token", valid_624816 + var valid_624817 = header.getOrDefault("X-Amz-Algorithm") + valid_624817 = validateParameter(valid_624817, JString, required = false, + default = nil) + if valid_624817 != nil: + section.add "X-Amz-Algorithm", valid_624817 + var valid_624818 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624818 = validateParameter(valid_624818, JString, required = false, + default = nil) + if valid_624818 != nil: + section.add "X-Amz-SignedHeaders", valid_624818 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624817: Call_GetModifyVpcAttribute_624802; path: JsonNode; +proc call*(call_624819: Call_GetModifyVpcAttribute_624804; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modifies the specified attribute of the specified VPC. ## - let valid = call_624817.validator(path, query, header, formData, body) - let scheme = call_624817.pickScheme + let valid = call_624819.validator(path, query, header, formData, body) + let scheme = call_624819.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624817.url(scheme.get, call_624817.host, call_624817.base, - call_624817.route, valid.getOrDefault("path"), + let url = call_624819.url(scheme.get, call_624819.host, call_624819.base, + call_624819.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624817, url, valid) + result = atozHook(call_624819, url, valid) -proc call*(call_624818: Call_GetModifyVpcAttribute_624802; VpcId: string; +proc call*(call_624820: Call_GetModifyVpcAttribute_624804; VpcId: string; EnableDnsHostnamesValue: string = ""; Action: string = "ModifyVpcAttribute"; EnableDnsSupportValue: string = ""; Version: string = "2016-11-15"): Recallable = @@ -113413,23 +113440,23 @@ proc call*(call_624818: Call_GetModifyVpcAttribute_624802; VpcId: string; ## : Describes a value for a resource attribute that is a Boolean value. ## The attribute value. The valid values are true or false. ## Version: string (required) - var query_624819 = newJObject() - add(query_624819, "EnableDnsHostnames.Value", + var query_624821 = newJObject() + add(query_624821, "EnableDnsHostnames.Value", newJString(EnableDnsHostnamesValue)) - add(query_624819, "VpcId", newJString(VpcId)) - add(query_624819, "Action", newJString(Action)) - add(query_624819, "EnableDnsSupport.Value", newJString(EnableDnsSupportValue)) - add(query_624819, "Version", newJString(Version)) - result = call_624818.call(nil, query_624819, nil, nil, nil) + add(query_624821, "VpcId", newJString(VpcId)) + add(query_624821, "Action", newJString(Action)) + add(query_624821, "EnableDnsSupport.Value", newJString(EnableDnsSupportValue)) + add(query_624821, "Version", newJString(Version)) + result = call_624820.call(nil, query_624821, nil, nil, nil) -var getModifyVpcAttribute* = Call_GetModifyVpcAttribute_624802( +var getModifyVpcAttribute* = Call_GetModifyVpcAttribute_624804( name: "getModifyVpcAttribute", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifyVpcAttribute", - validator: validate_GetModifyVpcAttribute_624803, base: "/", - url: url_GetModifyVpcAttribute_624804, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetModifyVpcAttribute_624805, base: "/", + url: url_GetModifyVpcAttribute_624806, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyVpcEndpoint_624865 = ref object of OpenApiRestCall_610658 -proc url_PostModifyVpcEndpoint_624867(protocol: Scheme; host: string; base: string; + Call_PostModifyVpcEndpoint_624867 = ref object of OpenApiRestCall_610658 +proc url_PostModifyVpcEndpoint_624869(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -113439,7 +113466,7 @@ proc url_PostModifyVpcEndpoint_624867(protocol: Scheme; host: string; base: stri else: result.path = base & route -proc validate_PostModifyVpcEndpoint_624866(path: JsonNode; query: JsonNode; +proc validate_PostModifyVpcEndpoint_624868(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modifies attributes of a specified VPC endpoint. The attributes that you can modify depend on the type of VPC endpoint (interface or gateway). For more information, see VPC Endpoints in the Amazon Virtual Private Cloud User Guide. ## @@ -113451,16 +113478,16 @@ proc validate_PostModifyVpcEndpoint_624866(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_624868 = query.getOrDefault("Action") - valid_624868 = validateParameter(valid_624868, JString, required = true, + var valid_624870 = query.getOrDefault("Action") + valid_624870 = validateParameter(valid_624870, JString, required = true, default = newJString("ModifyVpcEndpoint")) - if valid_624868 != nil: - section.add "Action", valid_624868 - var valid_624869 = query.getOrDefault("Version") - valid_624869 = validateParameter(valid_624869, JString, required = true, + if valid_624870 != nil: + section.add "Action", valid_624870 + var valid_624871 = query.getOrDefault("Version") + valid_624871 = validateParameter(valid_624871, JString, required = true, default = newJString("2016-11-15")) - if valid_624869 != nil: - section.add "Version", valid_624869 + if valid_624871 != nil: + section.add "Version", valid_624871 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -113471,41 +113498,41 @@ proc validate_PostModifyVpcEndpoint_624866(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624870 = header.getOrDefault("X-Amz-Signature") - valid_624870 = validateParameter(valid_624870, JString, required = false, - default = nil) - if valid_624870 != nil: - section.add "X-Amz-Signature", valid_624870 - var valid_624871 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624871 = validateParameter(valid_624871, JString, required = false, - default = nil) - if valid_624871 != nil: - section.add "X-Amz-Content-Sha256", valid_624871 - var valid_624872 = header.getOrDefault("X-Amz-Date") + var valid_624872 = header.getOrDefault("X-Amz-Signature") valid_624872 = validateParameter(valid_624872, JString, required = false, default = nil) if valid_624872 != nil: - section.add "X-Amz-Date", valid_624872 - var valid_624873 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624872 + var valid_624873 = header.getOrDefault("X-Amz-Content-Sha256") valid_624873 = validateParameter(valid_624873, JString, required = false, default = nil) if valid_624873 != nil: - section.add "X-Amz-Credential", valid_624873 - var valid_624874 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624873 + var valid_624874 = header.getOrDefault("X-Amz-Date") valid_624874 = validateParameter(valid_624874, JString, required = false, default = nil) if valid_624874 != nil: - section.add "X-Amz-Security-Token", valid_624874 - var valid_624875 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624874 + var valid_624875 = header.getOrDefault("X-Amz-Credential") valid_624875 = validateParameter(valid_624875, JString, required = false, default = nil) if valid_624875 != nil: - section.add "X-Amz-Algorithm", valid_624875 - var valid_624876 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624875 + var valid_624876 = header.getOrDefault("X-Amz-Security-Token") valid_624876 = validateParameter(valid_624876, JString, required = false, default = nil) if valid_624876 != nil: - section.add "X-Amz-SignedHeaders", valid_624876 + section.add "X-Amz-Security-Token", valid_624876 + var valid_624877 = header.getOrDefault("X-Amz-Algorithm") + valid_624877 = validateParameter(valid_624877, JString, required = false, + default = nil) + if valid_624877 != nil: + section.add "X-Amz-Algorithm", valid_624877 + var valid_624878 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624878 = validateParameter(valid_624878, JString, required = false, + default = nil) + if valid_624878 != nil: + section.add "X-Amz-SignedHeaders", valid_624878 result.add "header", section ## parameters in `formData` object: ## PolicyDocument: JString @@ -113531,78 +113558,78 @@ proc validate_PostModifyVpcEndpoint_624866(path: JsonNode; query: JsonNode; ## VpcEndpointId: JString (required) ## : The ID of the endpoint. section = newJObject() - var valid_624877 = formData.getOrDefault("PolicyDocument") - valid_624877 = validateParameter(valid_624877, JString, required = false, - default = nil) - if valid_624877 != nil: - section.add "PolicyDocument", valid_624877 - var valid_624878 = formData.getOrDefault("RemoveSecurityGroupId") - valid_624878 = validateParameter(valid_624878, JArray, required = false, - default = nil) - if valid_624878 != nil: - section.add "RemoveSecurityGroupId", valid_624878 - var valid_624879 = formData.getOrDefault("AddRouteTableId") - valid_624879 = validateParameter(valid_624879, JArray, required = false, + var valid_624879 = formData.getOrDefault("PolicyDocument") + valid_624879 = validateParameter(valid_624879, JString, required = false, default = nil) if valid_624879 != nil: - section.add "AddRouteTableId", valid_624879 - var valid_624880 = formData.getOrDefault("AddSubnetId") + section.add "PolicyDocument", valid_624879 + var valid_624880 = formData.getOrDefault("RemoveSecurityGroupId") valid_624880 = validateParameter(valid_624880, JArray, required = false, default = nil) if valid_624880 != nil: - section.add "AddSubnetId", valid_624880 - var valid_624881 = formData.getOrDefault("AddSecurityGroupId") + section.add "RemoveSecurityGroupId", valid_624880 + var valid_624881 = formData.getOrDefault("AddRouteTableId") valid_624881 = validateParameter(valid_624881, JArray, required = false, default = nil) if valid_624881 != nil: - section.add "AddSecurityGroupId", valid_624881 - var valid_624882 = formData.getOrDefault("ResetPolicy") - valid_624882 = validateParameter(valid_624882, JBool, required = false, default = nil) + section.add "AddRouteTableId", valid_624881 + var valid_624882 = formData.getOrDefault("AddSubnetId") + valid_624882 = validateParameter(valid_624882, JArray, required = false, + default = nil) if valid_624882 != nil: - section.add "ResetPolicy", valid_624882 - var valid_624883 = formData.getOrDefault("DryRun") - valid_624883 = validateParameter(valid_624883, JBool, required = false, default = nil) - if valid_624883 != nil: - section.add "DryRun", valid_624883 - var valid_624884 = formData.getOrDefault("RemoveRouteTableId") - valid_624884 = validateParameter(valid_624884, JArray, required = false, + section.add "AddSubnetId", valid_624882 + var valid_624883 = formData.getOrDefault("AddSecurityGroupId") + valid_624883 = validateParameter(valid_624883, JArray, required = false, default = nil) + if valid_624883 != nil: + section.add "AddSecurityGroupId", valid_624883 + var valid_624884 = formData.getOrDefault("ResetPolicy") + valid_624884 = validateParameter(valid_624884, JBool, required = false, default = nil) if valid_624884 != nil: - section.add "RemoveRouteTableId", valid_624884 - var valid_624885 = formData.getOrDefault("PrivateDnsEnabled") + section.add "ResetPolicy", valid_624884 + var valid_624885 = formData.getOrDefault("DryRun") valid_624885 = validateParameter(valid_624885, JBool, required = false, default = nil) if valid_624885 != nil: - section.add "PrivateDnsEnabled", valid_624885 - var valid_624886 = formData.getOrDefault("RemoveSubnetId") + section.add "DryRun", valid_624885 + var valid_624886 = formData.getOrDefault("RemoveRouteTableId") valid_624886 = validateParameter(valid_624886, JArray, required = false, default = nil) if valid_624886 != nil: - section.add "RemoveSubnetId", valid_624886 + section.add "RemoveRouteTableId", valid_624886 + var valid_624887 = formData.getOrDefault("PrivateDnsEnabled") + valid_624887 = validateParameter(valid_624887, JBool, required = false, default = nil) + if valid_624887 != nil: + section.add "PrivateDnsEnabled", valid_624887 + var valid_624888 = formData.getOrDefault("RemoveSubnetId") + valid_624888 = validateParameter(valid_624888, JArray, required = false, + default = nil) + if valid_624888 != nil: + section.add "RemoveSubnetId", valid_624888 assert formData != nil, "formData argument is necessary due to required `VpcEndpointId` field" - var valid_624887 = formData.getOrDefault("VpcEndpointId") - valid_624887 = validateParameter(valid_624887, JString, required = true, + var valid_624889 = formData.getOrDefault("VpcEndpointId") + valid_624889 = validateParameter(valid_624889, JString, required = true, default = nil) - if valid_624887 != nil: - section.add "VpcEndpointId", valid_624887 + if valid_624889 != nil: + section.add "VpcEndpointId", valid_624889 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624888: Call_PostModifyVpcEndpoint_624865; path: JsonNode; +proc call*(call_624890: Call_PostModifyVpcEndpoint_624867; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modifies attributes of a specified VPC endpoint. The attributes that you can modify depend on the type of VPC endpoint (interface or gateway). For more information, see VPC Endpoints in the Amazon Virtual Private Cloud User Guide. ## - let valid = call_624888.validator(path, query, header, formData, body) - let scheme = call_624888.pickScheme + let valid = call_624890.validator(path, query, header, formData, body) + let scheme = call_624890.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624888.url(scheme.get, call_624888.host, call_624888.base, - call_624888.route, valid.getOrDefault("path"), + let url = call_624890.url(scheme.get, call_624890.host, call_624890.base, + call_624890.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624888, url, valid) + result = atozHook(call_624890, url, valid) -proc call*(call_624889: Call_PostModifyVpcEndpoint_624865; VpcEndpointId: string; +proc call*(call_624891: Call_PostModifyVpcEndpoint_624867; VpcEndpointId: string; PolicyDocument: string = ""; RemoveSecurityGroupId: JsonNode = nil; AddRouteTableId: JsonNode = nil; AddSubnetId: JsonNode = nil; AddSecurityGroupId: JsonNode = nil; ResetPolicy: bool = false; @@ -113635,37 +113662,37 @@ proc call*(call_624889: Call_PostModifyVpcEndpoint_624865; VpcEndpointId: string ## Version: string (required) ## VpcEndpointId: string (required) ## : The ID of the endpoint. - var query_624890 = newJObject() - var formData_624891 = newJObject() - add(formData_624891, "PolicyDocument", newJString(PolicyDocument)) + var query_624892 = newJObject() + var formData_624893 = newJObject() + add(formData_624893, "PolicyDocument", newJString(PolicyDocument)) if RemoveSecurityGroupId != nil: - formData_624891.add "RemoveSecurityGroupId", RemoveSecurityGroupId + formData_624893.add "RemoveSecurityGroupId", RemoveSecurityGroupId if AddRouteTableId != nil: - formData_624891.add "AddRouteTableId", AddRouteTableId + formData_624893.add "AddRouteTableId", AddRouteTableId if AddSubnetId != nil: - formData_624891.add "AddSubnetId", AddSubnetId + formData_624893.add "AddSubnetId", AddSubnetId if AddSecurityGroupId != nil: - formData_624891.add "AddSecurityGroupId", AddSecurityGroupId - add(formData_624891, "ResetPolicy", newJBool(ResetPolicy)) - add(formData_624891, "DryRun", newJBool(DryRun)) - add(query_624890, "Action", newJString(Action)) + formData_624893.add "AddSecurityGroupId", AddSecurityGroupId + add(formData_624893, "ResetPolicy", newJBool(ResetPolicy)) + add(formData_624893, "DryRun", newJBool(DryRun)) + add(query_624892, "Action", newJString(Action)) if RemoveRouteTableId != nil: - formData_624891.add "RemoveRouteTableId", RemoveRouteTableId - add(formData_624891, "PrivateDnsEnabled", newJBool(PrivateDnsEnabled)) + formData_624893.add "RemoveRouteTableId", RemoveRouteTableId + add(formData_624893, "PrivateDnsEnabled", newJBool(PrivateDnsEnabled)) if RemoveSubnetId != nil: - formData_624891.add "RemoveSubnetId", RemoveSubnetId - add(query_624890, "Version", newJString(Version)) - add(formData_624891, "VpcEndpointId", newJString(VpcEndpointId)) - result = call_624889.call(nil, query_624890, nil, formData_624891, nil) + formData_624893.add "RemoveSubnetId", RemoveSubnetId + add(query_624892, "Version", newJString(Version)) + add(formData_624893, "VpcEndpointId", newJString(VpcEndpointId)) + result = call_624891.call(nil, query_624892, nil, formData_624893, nil) -var postModifyVpcEndpoint* = Call_PostModifyVpcEndpoint_624865( +var postModifyVpcEndpoint* = Call_PostModifyVpcEndpoint_624867( name: "postModifyVpcEndpoint", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyVpcEndpoint", - validator: validate_PostModifyVpcEndpoint_624866, base: "/", - url: url_PostModifyVpcEndpoint_624867, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostModifyVpcEndpoint_624868, base: "/", + url: url_PostModifyVpcEndpoint_624869, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyVpcEndpoint_624839 = ref object of OpenApiRestCall_610658 -proc url_GetModifyVpcEndpoint_624841(protocol: Scheme; host: string; base: string; + Call_GetModifyVpcEndpoint_624841 = ref object of OpenApiRestCall_610658 +proc url_GetModifyVpcEndpoint_624843(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -113675,7 +113702,7 @@ proc url_GetModifyVpcEndpoint_624841(protocol: Scheme; host: string; base: strin else: result.path = base & route -proc validate_GetModifyVpcEndpoint_624840(path: JsonNode; query: JsonNode; +proc validate_GetModifyVpcEndpoint_624842(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modifies attributes of a specified VPC endpoint. The attributes that you can modify depend on the type of VPC endpoint (interface or gateway). For more information, see VPC Endpoints in the Amazon Virtual Private Cloud User Guide. ## @@ -113709,68 +113736,68 @@ proc validate_GetModifyVpcEndpoint_624840(path: JsonNode; query: JsonNode; ## : The ID of the endpoint. ## Version: JString (required) section = newJObject() - var valid_624842 = query.getOrDefault("RemoveRouteTableId") - valid_624842 = validateParameter(valid_624842, JArray, required = false, + var valid_624844 = query.getOrDefault("RemoveRouteTableId") + valid_624844 = validateParameter(valid_624844, JArray, required = false, default = nil) - if valid_624842 != nil: - section.add "RemoveRouteTableId", valid_624842 - var valid_624843 = query.getOrDefault("AddSubnetId") - valid_624843 = validateParameter(valid_624843, JArray, required = false, - default = nil) - if valid_624843 != nil: - section.add "AddSubnetId", valid_624843 - var valid_624844 = query.getOrDefault("PrivateDnsEnabled") - valid_624844 = validateParameter(valid_624844, JBool, required = false, default = nil) if valid_624844 != nil: - section.add "PrivateDnsEnabled", valid_624844 - var valid_624845 = query.getOrDefault("AddRouteTableId") + section.add "RemoveRouteTableId", valid_624844 + var valid_624845 = query.getOrDefault("AddSubnetId") valid_624845 = validateParameter(valid_624845, JArray, required = false, default = nil) if valid_624845 != nil: - section.add "AddRouteTableId", valid_624845 - var valid_624846 = query.getOrDefault("ResetPolicy") + section.add "AddSubnetId", valid_624845 + var valid_624846 = query.getOrDefault("PrivateDnsEnabled") valid_624846 = validateParameter(valid_624846, JBool, required = false, default = nil) if valid_624846 != nil: - section.add "ResetPolicy", valid_624846 - var valid_624847 = query.getOrDefault("DryRun") - valid_624847 = validateParameter(valid_624847, JBool, required = false, default = nil) - if valid_624847 != nil: - section.add "DryRun", valid_624847 - var valid_624848 = query.getOrDefault("RemoveSubnetId") - valid_624848 = validateParameter(valid_624848, JArray, required = false, + section.add "PrivateDnsEnabled", valid_624846 + var valid_624847 = query.getOrDefault("AddRouteTableId") + valid_624847 = validateParameter(valid_624847, JArray, required = false, default = nil) + if valid_624847 != nil: + section.add "AddRouteTableId", valid_624847 + var valid_624848 = query.getOrDefault("ResetPolicy") + valid_624848 = validateParameter(valid_624848, JBool, required = false, default = nil) if valid_624848 != nil: - section.add "RemoveSubnetId", valid_624848 - var valid_624849 = query.getOrDefault("AddSecurityGroupId") - valid_624849 = validateParameter(valid_624849, JArray, required = false, - default = nil) + section.add "ResetPolicy", valid_624848 + var valid_624849 = query.getOrDefault("DryRun") + valid_624849 = validateParameter(valid_624849, JBool, required = false, default = nil) if valid_624849 != nil: - section.add "AddSecurityGroupId", valid_624849 - var valid_624850 = query.getOrDefault("PolicyDocument") - valid_624850 = validateParameter(valid_624850, JString, required = false, + section.add "DryRun", valid_624849 + var valid_624850 = query.getOrDefault("RemoveSubnetId") + valid_624850 = validateParameter(valid_624850, JArray, required = false, default = nil) if valid_624850 != nil: - section.add "PolicyDocument", valid_624850 - var valid_624851 = query.getOrDefault("Action") - valid_624851 = validateParameter(valid_624851, JString, required = true, - default = newJString("ModifyVpcEndpoint")) + section.add "RemoveSubnetId", valid_624850 + var valid_624851 = query.getOrDefault("AddSecurityGroupId") + valid_624851 = validateParameter(valid_624851, JArray, required = false, + default = nil) if valid_624851 != nil: - section.add "Action", valid_624851 - var valid_624852 = query.getOrDefault("RemoveSecurityGroupId") - valid_624852 = validateParameter(valid_624852, JArray, required = false, + section.add "AddSecurityGroupId", valid_624851 + var valid_624852 = query.getOrDefault("PolicyDocument") + valid_624852 = validateParameter(valid_624852, JString, required = false, default = nil) if valid_624852 != nil: - section.add "RemoveSecurityGroupId", valid_624852 - var valid_624853 = query.getOrDefault("VpcEndpointId") + section.add "PolicyDocument", valid_624852 + var valid_624853 = query.getOrDefault("Action") valid_624853 = validateParameter(valid_624853, JString, required = true, - default = nil) + default = newJString("ModifyVpcEndpoint")) if valid_624853 != nil: - section.add "VpcEndpointId", valid_624853 - var valid_624854 = query.getOrDefault("Version") - valid_624854 = validateParameter(valid_624854, JString, required = true, - default = newJString("2016-11-15")) + section.add "Action", valid_624853 + var valid_624854 = query.getOrDefault("RemoveSecurityGroupId") + valid_624854 = validateParameter(valid_624854, JArray, required = false, + default = nil) if valid_624854 != nil: - section.add "Version", valid_624854 + section.add "RemoveSecurityGroupId", valid_624854 + var valid_624855 = query.getOrDefault("VpcEndpointId") + valid_624855 = validateParameter(valid_624855, JString, required = true, + default = nil) + if valid_624855 != nil: + section.add "VpcEndpointId", valid_624855 + var valid_624856 = query.getOrDefault("Version") + valid_624856 = validateParameter(valid_624856, JString, required = true, + default = newJString("2016-11-15")) + if valid_624856 != nil: + section.add "Version", valid_624856 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -113781,61 +113808,61 @@ proc validate_GetModifyVpcEndpoint_624840(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624855 = header.getOrDefault("X-Amz-Signature") - valid_624855 = validateParameter(valid_624855, JString, required = false, - default = nil) - if valid_624855 != nil: - section.add "X-Amz-Signature", valid_624855 - var valid_624856 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624856 = validateParameter(valid_624856, JString, required = false, - default = nil) - if valid_624856 != nil: - section.add "X-Amz-Content-Sha256", valid_624856 - var valid_624857 = header.getOrDefault("X-Amz-Date") + var valid_624857 = header.getOrDefault("X-Amz-Signature") valid_624857 = validateParameter(valid_624857, JString, required = false, default = nil) if valid_624857 != nil: - section.add "X-Amz-Date", valid_624857 - var valid_624858 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624857 + var valid_624858 = header.getOrDefault("X-Amz-Content-Sha256") valid_624858 = validateParameter(valid_624858, JString, required = false, default = nil) if valid_624858 != nil: - section.add "X-Amz-Credential", valid_624858 - var valid_624859 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624858 + var valid_624859 = header.getOrDefault("X-Amz-Date") valid_624859 = validateParameter(valid_624859, JString, required = false, default = nil) if valid_624859 != nil: - section.add "X-Amz-Security-Token", valid_624859 - var valid_624860 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624859 + var valid_624860 = header.getOrDefault("X-Amz-Credential") valid_624860 = validateParameter(valid_624860, JString, required = false, default = nil) if valid_624860 != nil: - section.add "X-Amz-Algorithm", valid_624860 - var valid_624861 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624860 + var valid_624861 = header.getOrDefault("X-Amz-Security-Token") valid_624861 = validateParameter(valid_624861, JString, required = false, default = nil) if valid_624861 != nil: - section.add "X-Amz-SignedHeaders", valid_624861 + section.add "X-Amz-Security-Token", valid_624861 + var valid_624862 = header.getOrDefault("X-Amz-Algorithm") + valid_624862 = validateParameter(valid_624862, JString, required = false, + default = nil) + if valid_624862 != nil: + section.add "X-Amz-Algorithm", valid_624862 + var valid_624863 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624863 = validateParameter(valid_624863, JString, required = false, + default = nil) + if valid_624863 != nil: + section.add "X-Amz-SignedHeaders", valid_624863 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624862: Call_GetModifyVpcEndpoint_624839; path: JsonNode; +proc call*(call_624864: Call_GetModifyVpcEndpoint_624841; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modifies attributes of a specified VPC endpoint. The attributes that you can modify depend on the type of VPC endpoint (interface or gateway). For more information, see VPC Endpoints in the Amazon Virtual Private Cloud User Guide. ## - let valid = call_624862.validator(path, query, header, formData, body) - let scheme = call_624862.pickScheme + let valid = call_624864.validator(path, query, header, formData, body) + let scheme = call_624864.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624862.url(scheme.get, call_624862.host, call_624862.base, - call_624862.route, valid.getOrDefault("path"), + let url = call_624864.url(scheme.get, call_624864.host, call_624864.base, + call_624864.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624862, url, valid) + result = atozHook(call_624864, url, valid) -proc call*(call_624863: Call_GetModifyVpcEndpoint_624839; VpcEndpointId: string; +proc call*(call_624865: Call_GetModifyVpcEndpoint_624841; VpcEndpointId: string; RemoveRouteTableId: JsonNode = nil; AddSubnetId: JsonNode = nil; PrivateDnsEnabled: bool = false; AddRouteTableId: JsonNode = nil; ResetPolicy: bool = false; DryRun: bool = false; @@ -113868,36 +113895,36 @@ proc call*(call_624863: Call_GetModifyVpcEndpoint_624839; VpcEndpointId: string; ## VpcEndpointId: string (required) ## : The ID of the endpoint. ## Version: string (required) - var query_624864 = newJObject() + var query_624866 = newJObject() if RemoveRouteTableId != nil: - query_624864.add "RemoveRouteTableId", RemoveRouteTableId + query_624866.add "RemoveRouteTableId", RemoveRouteTableId if AddSubnetId != nil: - query_624864.add "AddSubnetId", AddSubnetId - add(query_624864, "PrivateDnsEnabled", newJBool(PrivateDnsEnabled)) + query_624866.add "AddSubnetId", AddSubnetId + add(query_624866, "PrivateDnsEnabled", newJBool(PrivateDnsEnabled)) if AddRouteTableId != nil: - query_624864.add "AddRouteTableId", AddRouteTableId - add(query_624864, "ResetPolicy", newJBool(ResetPolicy)) - add(query_624864, "DryRun", newJBool(DryRun)) + query_624866.add "AddRouteTableId", AddRouteTableId + add(query_624866, "ResetPolicy", newJBool(ResetPolicy)) + add(query_624866, "DryRun", newJBool(DryRun)) if RemoveSubnetId != nil: - query_624864.add "RemoveSubnetId", RemoveSubnetId + query_624866.add "RemoveSubnetId", RemoveSubnetId if AddSecurityGroupId != nil: - query_624864.add "AddSecurityGroupId", AddSecurityGroupId - add(query_624864, "PolicyDocument", newJString(PolicyDocument)) - add(query_624864, "Action", newJString(Action)) + query_624866.add "AddSecurityGroupId", AddSecurityGroupId + add(query_624866, "PolicyDocument", newJString(PolicyDocument)) + add(query_624866, "Action", newJString(Action)) if RemoveSecurityGroupId != nil: - query_624864.add "RemoveSecurityGroupId", RemoveSecurityGroupId - add(query_624864, "VpcEndpointId", newJString(VpcEndpointId)) - add(query_624864, "Version", newJString(Version)) - result = call_624863.call(nil, query_624864, nil, nil, nil) + query_624866.add "RemoveSecurityGroupId", RemoveSecurityGroupId + add(query_624866, "VpcEndpointId", newJString(VpcEndpointId)) + add(query_624866, "Version", newJString(Version)) + result = call_624865.call(nil, query_624866, nil, nil, nil) -var getModifyVpcEndpoint* = Call_GetModifyVpcEndpoint_624839( +var getModifyVpcEndpoint* = Call_GetModifyVpcEndpoint_624841( name: "getModifyVpcEndpoint", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifyVpcEndpoint", - validator: validate_GetModifyVpcEndpoint_624840, base: "/", - url: url_GetModifyVpcEndpoint_624841, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetModifyVpcEndpoint_624842, base: "/", + url: url_GetModifyVpcEndpoint_624843, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyVpcEndpointConnectionNotification_624911 = ref object of OpenApiRestCall_610658 -proc url_PostModifyVpcEndpointConnectionNotification_624913(protocol: Scheme; + Call_PostModifyVpcEndpointConnectionNotification_624913 = ref object of OpenApiRestCall_610658 +proc url_PostModifyVpcEndpointConnectionNotification_624915(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -113907,7 +113934,7 @@ proc url_PostModifyVpcEndpointConnectionNotification_624913(protocol: Scheme; else: result.path = base & route -proc validate_PostModifyVpcEndpointConnectionNotification_624912(path: JsonNode; +proc validate_PostModifyVpcEndpointConnectionNotification_624914(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modifies a connection notification for VPC endpoint or VPC endpoint service. You can change the SNS topic for the notification, or the events for which to be notified. ## @@ -113919,16 +113946,16 @@ proc validate_PostModifyVpcEndpointConnectionNotification_624912(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_624914 = query.getOrDefault("Action") - valid_624914 = validateParameter(valid_624914, JString, required = true, default = newJString( + var valid_624916 = query.getOrDefault("Action") + valid_624916 = validateParameter(valid_624916, JString, required = true, default = newJString( "ModifyVpcEndpointConnectionNotification")) - if valid_624914 != nil: - section.add "Action", valid_624914 - var valid_624915 = query.getOrDefault("Version") - valid_624915 = validateParameter(valid_624915, JString, required = true, + if valid_624916 != nil: + section.add "Action", valid_624916 + var valid_624917 = query.getOrDefault("Version") + valid_624917 = validateParameter(valid_624917, JString, required = true, default = newJString("2016-11-15")) - if valid_624915 != nil: - section.add "Version", valid_624915 + if valid_624917 != nil: + section.add "Version", valid_624917 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -113939,41 +113966,41 @@ proc validate_PostModifyVpcEndpointConnectionNotification_624912(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624916 = header.getOrDefault("X-Amz-Signature") - valid_624916 = validateParameter(valid_624916, JString, required = false, - default = nil) - if valid_624916 != nil: - section.add "X-Amz-Signature", valid_624916 - var valid_624917 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624917 = validateParameter(valid_624917, JString, required = false, - default = nil) - if valid_624917 != nil: - section.add "X-Amz-Content-Sha256", valid_624917 - var valid_624918 = header.getOrDefault("X-Amz-Date") + var valid_624918 = header.getOrDefault("X-Amz-Signature") valid_624918 = validateParameter(valid_624918, JString, required = false, default = nil) if valid_624918 != nil: - section.add "X-Amz-Date", valid_624918 - var valid_624919 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624918 + var valid_624919 = header.getOrDefault("X-Amz-Content-Sha256") valid_624919 = validateParameter(valid_624919, JString, required = false, default = nil) if valid_624919 != nil: - section.add "X-Amz-Credential", valid_624919 - var valid_624920 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624919 + var valid_624920 = header.getOrDefault("X-Amz-Date") valid_624920 = validateParameter(valid_624920, JString, required = false, default = nil) if valid_624920 != nil: - section.add "X-Amz-Security-Token", valid_624920 - var valid_624921 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624920 + var valid_624921 = header.getOrDefault("X-Amz-Credential") valid_624921 = validateParameter(valid_624921, JString, required = false, default = nil) if valid_624921 != nil: - section.add "X-Amz-Algorithm", valid_624921 - var valid_624922 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624921 + var valid_624922 = header.getOrDefault("X-Amz-Security-Token") valid_624922 = validateParameter(valid_624922, JString, required = false, default = nil) if valid_624922 != nil: - section.add "X-Amz-SignedHeaders", valid_624922 + section.add "X-Amz-Security-Token", valid_624922 + var valid_624923 = header.getOrDefault("X-Amz-Algorithm") + valid_624923 = validateParameter(valid_624923, JString, required = false, + default = nil) + if valid_624923 != nil: + section.add "X-Amz-Algorithm", valid_624923 + var valid_624924 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624924 = validateParameter(valid_624924, JString, required = false, + default = nil) + if valid_624924 != nil: + section.add "X-Amz-SignedHeaders", valid_624924 result.add "header", section ## parameters in `formData` object: ## ConnectionEvents: JArray @@ -113985,45 +114012,45 @@ proc validate_PostModifyVpcEndpointConnectionNotification_624912(path: JsonNode; ## ConnectionNotificationId: JString (required) ## : The ID of the notification. section = newJObject() - var valid_624923 = formData.getOrDefault("ConnectionEvents") - valid_624923 = validateParameter(valid_624923, JArray, required = false, - default = nil) - if valid_624923 != nil: - section.add "ConnectionEvents", valid_624923 - var valid_624924 = formData.getOrDefault("ConnectionNotificationArn") - valid_624924 = validateParameter(valid_624924, JString, required = false, + var valid_624925 = formData.getOrDefault("ConnectionEvents") + valid_624925 = validateParameter(valid_624925, JArray, required = false, default = nil) - if valid_624924 != nil: - section.add "ConnectionNotificationArn", valid_624924 - var valid_624925 = formData.getOrDefault("DryRun") - valid_624925 = validateParameter(valid_624925, JBool, required = false, default = nil) if valid_624925 != nil: - section.add "DryRun", valid_624925 - assert formData != nil, "formData argument is necessary due to required `ConnectionNotificationId` field" - var valid_624926 = formData.getOrDefault("ConnectionNotificationId") - valid_624926 = validateParameter(valid_624926, JString, required = true, + section.add "ConnectionEvents", valid_624925 + var valid_624926 = formData.getOrDefault("ConnectionNotificationArn") + valid_624926 = validateParameter(valid_624926, JString, required = false, default = nil) if valid_624926 != nil: - section.add "ConnectionNotificationId", valid_624926 + section.add "ConnectionNotificationArn", valid_624926 + var valid_624927 = formData.getOrDefault("DryRun") + valid_624927 = validateParameter(valid_624927, JBool, required = false, default = nil) + if valid_624927 != nil: + section.add "DryRun", valid_624927 + assert formData != nil, "formData argument is necessary due to required `ConnectionNotificationId` field" + var valid_624928 = formData.getOrDefault("ConnectionNotificationId") + valid_624928 = validateParameter(valid_624928, JString, required = true, + default = nil) + if valid_624928 != nil: + section.add "ConnectionNotificationId", valid_624928 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624927: Call_PostModifyVpcEndpointConnectionNotification_624911; +proc call*(call_624929: Call_PostModifyVpcEndpointConnectionNotification_624913; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modifies a connection notification for VPC endpoint or VPC endpoint service. You can change the SNS topic for the notification, or the events for which to be notified. ## - let valid = call_624927.validator(path, query, header, formData, body) - let scheme = call_624927.pickScheme + let valid = call_624929.validator(path, query, header, formData, body) + let scheme = call_624929.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624927.url(scheme.get, call_624927.host, call_624927.base, - call_624927.route, valid.getOrDefault("path"), + let url = call_624929.url(scheme.get, call_624929.host, call_624929.base, + call_624929.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624927, url, valid) + result = atozHook(call_624929, url, valid) -proc call*(call_624928: Call_PostModifyVpcEndpointConnectionNotification_624911; +proc call*(call_624930: Call_PostModifyVpcEndpointConnectionNotification_624913; ConnectionNotificationId: string; ConnectionEvents: JsonNode = nil; ConnectionNotificationArn: string = ""; DryRun: bool = false; Action: string = "ModifyVpcEndpointConnectionNotification"; @@ -114040,29 +114067,29 @@ proc call*(call_624928: Call_PostModifyVpcEndpointConnectionNotification_624911; ## ConnectionNotificationId: string (required) ## : The ID of the notification. ## Version: string (required) - var query_624929 = newJObject() - var formData_624930 = newJObject() + var query_624931 = newJObject() + var formData_624932 = newJObject() if ConnectionEvents != nil: - formData_624930.add "ConnectionEvents", ConnectionEvents - add(formData_624930, "ConnectionNotificationArn", + formData_624932.add "ConnectionEvents", ConnectionEvents + add(formData_624932, "ConnectionNotificationArn", newJString(ConnectionNotificationArn)) - add(formData_624930, "DryRun", newJBool(DryRun)) - add(query_624929, "Action", newJString(Action)) - add(formData_624930, "ConnectionNotificationId", + add(formData_624932, "DryRun", newJBool(DryRun)) + add(query_624931, "Action", newJString(Action)) + add(formData_624932, "ConnectionNotificationId", newJString(ConnectionNotificationId)) - add(query_624929, "Version", newJString(Version)) - result = call_624928.call(nil, query_624929, nil, formData_624930, nil) + add(query_624931, "Version", newJString(Version)) + result = call_624930.call(nil, query_624931, nil, formData_624932, nil) -var postModifyVpcEndpointConnectionNotification* = Call_PostModifyVpcEndpointConnectionNotification_624911( +var postModifyVpcEndpointConnectionNotification* = Call_PostModifyVpcEndpointConnectionNotification_624913( name: "postModifyVpcEndpointConnectionNotification", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyVpcEndpointConnectionNotification", - validator: validate_PostModifyVpcEndpointConnectionNotification_624912, - base: "/", url: url_PostModifyVpcEndpointConnectionNotification_624913, + validator: validate_PostModifyVpcEndpointConnectionNotification_624914, + base: "/", url: url_PostModifyVpcEndpointConnectionNotification_624915, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyVpcEndpointConnectionNotification_624892 = ref object of OpenApiRestCall_610658 -proc url_GetModifyVpcEndpointConnectionNotification_624894(protocol: Scheme; + Call_GetModifyVpcEndpointConnectionNotification_624894 = ref object of OpenApiRestCall_610658 +proc url_GetModifyVpcEndpointConnectionNotification_624896(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -114072,7 +114099,7 @@ proc url_GetModifyVpcEndpointConnectionNotification_624894(protocol: Scheme; else: result.path = base & route -proc validate_GetModifyVpcEndpointConnectionNotification_624893(path: JsonNode; +proc validate_GetModifyVpcEndpointConnectionNotification_624895(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modifies a connection notification for VPC endpoint or VPC endpoint service. You can change the SNS topic for the notification, or the events for which to be notified. ## @@ -114092,35 +114119,35 @@ proc validate_GetModifyVpcEndpointConnectionNotification_624893(path: JsonNode; ## : The ID of the notification. ## Version: JString (required) section = newJObject() - var valid_624895 = query.getOrDefault("ConnectionNotificationArn") - valid_624895 = validateParameter(valid_624895, JString, required = false, - default = nil) - if valid_624895 != nil: - section.add "ConnectionNotificationArn", valid_624895 - var valid_624896 = query.getOrDefault("DryRun") - valid_624896 = validateParameter(valid_624896, JBool, required = false, default = nil) - if valid_624896 != nil: - section.add "DryRun", valid_624896 - var valid_624897 = query.getOrDefault("ConnectionEvents") - valid_624897 = validateParameter(valid_624897, JArray, required = false, + var valid_624897 = query.getOrDefault("ConnectionNotificationArn") + valid_624897 = validateParameter(valid_624897, JString, required = false, default = nil) if valid_624897 != nil: - section.add "ConnectionEvents", valid_624897 - var valid_624898 = query.getOrDefault("Action") - valid_624898 = validateParameter(valid_624898, JString, required = true, default = newJString( - "ModifyVpcEndpointConnectionNotification")) + section.add "ConnectionNotificationArn", valid_624897 + var valid_624898 = query.getOrDefault("DryRun") + valid_624898 = validateParameter(valid_624898, JBool, required = false, default = nil) if valid_624898 != nil: - section.add "Action", valid_624898 - var valid_624899 = query.getOrDefault("ConnectionNotificationId") - valid_624899 = validateParameter(valid_624899, JString, required = true, + section.add "DryRun", valid_624898 + var valid_624899 = query.getOrDefault("ConnectionEvents") + valid_624899 = validateParameter(valid_624899, JArray, required = false, default = nil) if valid_624899 != nil: - section.add "ConnectionNotificationId", valid_624899 - var valid_624900 = query.getOrDefault("Version") - valid_624900 = validateParameter(valid_624900, JString, required = true, - default = newJString("2016-11-15")) + section.add "ConnectionEvents", valid_624899 + var valid_624900 = query.getOrDefault("Action") + valid_624900 = validateParameter(valid_624900, JString, required = true, default = newJString( + "ModifyVpcEndpointConnectionNotification")) if valid_624900 != nil: - section.add "Version", valid_624900 + section.add "Action", valid_624900 + var valid_624901 = query.getOrDefault("ConnectionNotificationId") + valid_624901 = validateParameter(valid_624901, JString, required = true, + default = nil) + if valid_624901 != nil: + section.add "ConnectionNotificationId", valid_624901 + var valid_624902 = query.getOrDefault("Version") + valid_624902 = validateParameter(valid_624902, JString, required = true, + default = newJString("2016-11-15")) + if valid_624902 != nil: + section.add "Version", valid_624902 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -114131,62 +114158,62 @@ proc validate_GetModifyVpcEndpointConnectionNotification_624893(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624901 = header.getOrDefault("X-Amz-Signature") - valid_624901 = validateParameter(valid_624901, JString, required = false, - default = nil) - if valid_624901 != nil: - section.add "X-Amz-Signature", valid_624901 - var valid_624902 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624902 = validateParameter(valid_624902, JString, required = false, - default = nil) - if valid_624902 != nil: - section.add "X-Amz-Content-Sha256", valid_624902 - var valid_624903 = header.getOrDefault("X-Amz-Date") + var valid_624903 = header.getOrDefault("X-Amz-Signature") valid_624903 = validateParameter(valid_624903, JString, required = false, default = nil) if valid_624903 != nil: - section.add "X-Amz-Date", valid_624903 - var valid_624904 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624903 + var valid_624904 = header.getOrDefault("X-Amz-Content-Sha256") valid_624904 = validateParameter(valid_624904, JString, required = false, default = nil) if valid_624904 != nil: - section.add "X-Amz-Credential", valid_624904 - var valid_624905 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624904 + var valid_624905 = header.getOrDefault("X-Amz-Date") valid_624905 = validateParameter(valid_624905, JString, required = false, default = nil) if valid_624905 != nil: - section.add "X-Amz-Security-Token", valid_624905 - var valid_624906 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624905 + var valid_624906 = header.getOrDefault("X-Amz-Credential") valid_624906 = validateParameter(valid_624906, JString, required = false, default = nil) if valid_624906 != nil: - section.add "X-Amz-Algorithm", valid_624906 - var valid_624907 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624906 + var valid_624907 = header.getOrDefault("X-Amz-Security-Token") valid_624907 = validateParameter(valid_624907, JString, required = false, default = nil) if valid_624907 != nil: - section.add "X-Amz-SignedHeaders", valid_624907 + section.add "X-Amz-Security-Token", valid_624907 + var valid_624908 = header.getOrDefault("X-Amz-Algorithm") + valid_624908 = validateParameter(valid_624908, JString, required = false, + default = nil) + if valid_624908 != nil: + section.add "X-Amz-Algorithm", valid_624908 + var valid_624909 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624909 = validateParameter(valid_624909, JString, required = false, + default = nil) + if valid_624909 != nil: + section.add "X-Amz-SignedHeaders", valid_624909 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624908: Call_GetModifyVpcEndpointConnectionNotification_624892; +proc call*(call_624910: Call_GetModifyVpcEndpointConnectionNotification_624894; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modifies a connection notification for VPC endpoint or VPC endpoint service. You can change the SNS topic for the notification, or the events for which to be notified. ## - let valid = call_624908.validator(path, query, header, formData, body) - let scheme = call_624908.pickScheme + let valid = call_624910.validator(path, query, header, formData, body) + let scheme = call_624910.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624908.url(scheme.get, call_624908.host, call_624908.base, - call_624908.route, valid.getOrDefault("path"), + let url = call_624910.url(scheme.get, call_624910.host, call_624910.base, + call_624910.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624908, url, valid) + result = atozHook(call_624910, url, valid) -proc call*(call_624909: Call_GetModifyVpcEndpointConnectionNotification_624892; +proc call*(call_624911: Call_GetModifyVpcEndpointConnectionNotification_624894; ConnectionNotificationId: string; ConnectionNotificationArn: string = ""; DryRun: bool = false; ConnectionEvents: JsonNode = nil; @@ -114204,28 +114231,28 @@ proc call*(call_624909: Call_GetModifyVpcEndpointConnectionNotification_624892; ## ConnectionNotificationId: string (required) ## : The ID of the notification. ## Version: string (required) - var query_624910 = newJObject() - add(query_624910, "ConnectionNotificationArn", + var query_624912 = newJObject() + add(query_624912, "ConnectionNotificationArn", newJString(ConnectionNotificationArn)) - add(query_624910, "DryRun", newJBool(DryRun)) + add(query_624912, "DryRun", newJBool(DryRun)) if ConnectionEvents != nil: - query_624910.add "ConnectionEvents", ConnectionEvents - add(query_624910, "Action", newJString(Action)) - add(query_624910, "ConnectionNotificationId", + query_624912.add "ConnectionEvents", ConnectionEvents + add(query_624912, "Action", newJString(Action)) + add(query_624912, "ConnectionNotificationId", newJString(ConnectionNotificationId)) - add(query_624910, "Version", newJString(Version)) - result = call_624909.call(nil, query_624910, nil, nil, nil) + add(query_624912, "Version", newJString(Version)) + result = call_624911.call(nil, query_624912, nil, nil, nil) -var getModifyVpcEndpointConnectionNotification* = Call_GetModifyVpcEndpointConnectionNotification_624892( +var getModifyVpcEndpointConnectionNotification* = Call_GetModifyVpcEndpointConnectionNotification_624894( name: "getModifyVpcEndpointConnectionNotification", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifyVpcEndpointConnectionNotification", - validator: validate_GetModifyVpcEndpointConnectionNotification_624893, - base: "/", url: url_GetModifyVpcEndpointConnectionNotification_624894, + validator: validate_GetModifyVpcEndpointConnectionNotification_624895, + base: "/", url: url_GetModifyVpcEndpointConnectionNotification_624896, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyVpcEndpointServiceConfiguration_624953 = ref object of OpenApiRestCall_610658 -proc url_PostModifyVpcEndpointServiceConfiguration_624955(protocol: Scheme; + Call_PostModifyVpcEndpointServiceConfiguration_624955 = ref object of OpenApiRestCall_610658 +proc url_PostModifyVpcEndpointServiceConfiguration_624957(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -114235,7 +114262,7 @@ proc url_PostModifyVpcEndpointServiceConfiguration_624955(protocol: Scheme; else: result.path = base & route -proc validate_PostModifyVpcEndpointServiceConfiguration_624954(path: JsonNode; +proc validate_PostModifyVpcEndpointServiceConfiguration_624956(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the attributes of your VPC endpoint service configuration. You can change the Network Load Balancers for your service, and you can specify whether acceptance is required for requests to connect to your endpoint service through an interface VPC endpoint.

    If you set or modify the private DNS name, you must prove that you own the private DNS domain name. For more information, see VPC Endpoint Service Private DNS Name Verification in the Amazon Virtual Private Cloud User Guide.

    ## @@ -114247,16 +114274,16 @@ proc validate_PostModifyVpcEndpointServiceConfiguration_624954(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_624956 = query.getOrDefault("Action") - valid_624956 = validateParameter(valid_624956, JString, required = true, default = newJString( + var valid_624958 = query.getOrDefault("Action") + valid_624958 = validateParameter(valid_624958, JString, required = true, default = newJString( "ModifyVpcEndpointServiceConfiguration")) - if valid_624956 != nil: - section.add "Action", valid_624956 - var valid_624957 = query.getOrDefault("Version") - valid_624957 = validateParameter(valid_624957, JString, required = true, + if valid_624958 != nil: + section.add "Action", valid_624958 + var valid_624959 = query.getOrDefault("Version") + valid_624959 = validateParameter(valid_624959, JString, required = true, default = newJString("2016-11-15")) - if valid_624957 != nil: - section.add "Version", valid_624957 + if valid_624959 != nil: + section.add "Version", valid_624959 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -114267,41 +114294,41 @@ proc validate_PostModifyVpcEndpointServiceConfiguration_624954(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624958 = header.getOrDefault("X-Amz-Signature") - valid_624958 = validateParameter(valid_624958, JString, required = false, - default = nil) - if valid_624958 != nil: - section.add "X-Amz-Signature", valid_624958 - var valid_624959 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624959 = validateParameter(valid_624959, JString, required = false, - default = nil) - if valid_624959 != nil: - section.add "X-Amz-Content-Sha256", valid_624959 - var valid_624960 = header.getOrDefault("X-Amz-Date") + var valid_624960 = header.getOrDefault("X-Amz-Signature") valid_624960 = validateParameter(valid_624960, JString, required = false, default = nil) if valid_624960 != nil: - section.add "X-Amz-Date", valid_624960 - var valid_624961 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624960 + var valid_624961 = header.getOrDefault("X-Amz-Content-Sha256") valid_624961 = validateParameter(valid_624961, JString, required = false, default = nil) if valid_624961 != nil: - section.add "X-Amz-Credential", valid_624961 - var valid_624962 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624961 + var valid_624962 = header.getOrDefault("X-Amz-Date") valid_624962 = validateParameter(valid_624962, JString, required = false, default = nil) if valid_624962 != nil: - section.add "X-Amz-Security-Token", valid_624962 - var valid_624963 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624962 + var valid_624963 = header.getOrDefault("X-Amz-Credential") valid_624963 = validateParameter(valid_624963, JString, required = false, default = nil) if valid_624963 != nil: - section.add "X-Amz-Algorithm", valid_624963 - var valid_624964 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624963 + var valid_624964 = header.getOrDefault("X-Amz-Security-Token") valid_624964 = validateParameter(valid_624964, JString, required = false, default = nil) if valid_624964 != nil: - section.add "X-Amz-SignedHeaders", valid_624964 + section.add "X-Amz-Security-Token", valid_624964 + var valid_624965 = header.getOrDefault("X-Amz-Algorithm") + valid_624965 = validateParameter(valid_624965, JString, required = false, + default = nil) + if valid_624965 != nil: + section.add "X-Amz-Algorithm", valid_624965 + var valid_624966 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624966 = validateParameter(valid_624966, JString, required = false, + default = nil) + if valid_624966 != nil: + section.add "X-Amz-SignedHeaders", valid_624966 result.add "header", section ## parameters in `formData` object: ## PrivateDnsName: JString @@ -114319,59 +114346,59 @@ proc validate_PostModifyVpcEndpointServiceConfiguration_624954(path: JsonNode; ## AcceptanceRequired: JBool ## : Indicates whether requests to create an endpoint to your service must be accepted. section = newJObject() - var valid_624965 = formData.getOrDefault("PrivateDnsName") - valid_624965 = validateParameter(valid_624965, JString, required = false, - default = nil) - if valid_624965 != nil: - section.add "PrivateDnsName", valid_624965 - var valid_624966 = formData.getOrDefault("AddNetworkLoadBalancerArn") - valid_624966 = validateParameter(valid_624966, JArray, required = false, + var valid_624967 = formData.getOrDefault("PrivateDnsName") + valid_624967 = validateParameter(valid_624967, JString, required = false, default = nil) - if valid_624966 != nil: - section.add "AddNetworkLoadBalancerArn", valid_624966 - var valid_624967 = formData.getOrDefault("RemovePrivateDnsName") - valid_624967 = validateParameter(valid_624967, JBool, required = false, default = nil) if valid_624967 != nil: - section.add "RemovePrivateDnsName", valid_624967 - assert formData != nil, - "formData argument is necessary due to required `ServiceId` field" - var valid_624968 = formData.getOrDefault("ServiceId") - valid_624968 = validateParameter(valid_624968, JString, required = true, + section.add "PrivateDnsName", valid_624967 + var valid_624968 = formData.getOrDefault("AddNetworkLoadBalancerArn") + valid_624968 = validateParameter(valid_624968, JArray, required = false, default = nil) if valid_624968 != nil: - section.add "ServiceId", valid_624968 - var valid_624969 = formData.getOrDefault("DryRun") + section.add "AddNetworkLoadBalancerArn", valid_624968 + var valid_624969 = formData.getOrDefault("RemovePrivateDnsName") valid_624969 = validateParameter(valid_624969, JBool, required = false, default = nil) if valid_624969 != nil: - section.add "DryRun", valid_624969 - var valid_624970 = formData.getOrDefault("RemoveNetworkLoadBalancerArn") - valid_624970 = validateParameter(valid_624970, JArray, required = false, + section.add "RemovePrivateDnsName", valid_624969 + assert formData != nil, + "formData argument is necessary due to required `ServiceId` field" + var valid_624970 = formData.getOrDefault("ServiceId") + valid_624970 = validateParameter(valid_624970, JString, required = true, default = nil) if valid_624970 != nil: - section.add "RemoveNetworkLoadBalancerArn", valid_624970 - var valid_624971 = formData.getOrDefault("AcceptanceRequired") + section.add "ServiceId", valid_624970 + var valid_624971 = formData.getOrDefault("DryRun") valid_624971 = validateParameter(valid_624971, JBool, required = false, default = nil) if valid_624971 != nil: - section.add "AcceptanceRequired", valid_624971 + section.add "DryRun", valid_624971 + var valid_624972 = formData.getOrDefault("RemoveNetworkLoadBalancerArn") + valid_624972 = validateParameter(valid_624972, JArray, required = false, + default = nil) + if valid_624972 != nil: + section.add "RemoveNetworkLoadBalancerArn", valid_624972 + var valid_624973 = formData.getOrDefault("AcceptanceRequired") + valid_624973 = validateParameter(valid_624973, JBool, required = false, default = nil) + if valid_624973 != nil: + section.add "AcceptanceRequired", valid_624973 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624972: Call_PostModifyVpcEndpointServiceConfiguration_624953; +proc call*(call_624974: Call_PostModifyVpcEndpointServiceConfiguration_624955; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the attributes of your VPC endpoint service configuration. You can change the Network Load Balancers for your service, and you can specify whether acceptance is required for requests to connect to your endpoint service through an interface VPC endpoint.

    If you set or modify the private DNS name, you must prove that you own the private DNS domain name. For more information, see VPC Endpoint Service Private DNS Name Verification in the Amazon Virtual Private Cloud User Guide.

    ## - let valid = call_624972.validator(path, query, header, formData, body) - let scheme = call_624972.pickScheme + let valid = call_624974.validator(path, query, header, formData, body) + let scheme = call_624974.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624972.url(scheme.get, call_624972.host, call_624972.base, - call_624972.route, valid.getOrDefault("path"), + let url = call_624974.url(scheme.get, call_624974.host, call_624974.base, + call_624974.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624972, url, valid) + result = atozHook(call_624974, url, valid) -proc call*(call_624973: Call_PostModifyVpcEndpointServiceConfiguration_624953; +proc call*(call_624975: Call_PostModifyVpcEndpointServiceConfiguration_624955; ServiceId: string; PrivateDnsName: string = ""; AddNetworkLoadBalancerArn: JsonNode = nil; RemovePrivateDnsName: bool = false; DryRun: bool = false; @@ -114396,32 +114423,32 @@ proc call*(call_624973: Call_PostModifyVpcEndpointServiceConfiguration_624953; ## AcceptanceRequired: bool ## : Indicates whether requests to create an endpoint to your service must be accepted. ## Version: string (required) - var query_624974 = newJObject() - var formData_624975 = newJObject() - add(formData_624975, "PrivateDnsName", newJString(PrivateDnsName)) + var query_624976 = newJObject() + var formData_624977 = newJObject() + add(formData_624977, "PrivateDnsName", newJString(PrivateDnsName)) if AddNetworkLoadBalancerArn != nil: - formData_624975.add "AddNetworkLoadBalancerArn", AddNetworkLoadBalancerArn - add(formData_624975, "RemovePrivateDnsName", newJBool(RemovePrivateDnsName)) - add(formData_624975, "ServiceId", newJString(ServiceId)) - add(formData_624975, "DryRun", newJBool(DryRun)) - add(query_624974, "Action", newJString(Action)) + formData_624977.add "AddNetworkLoadBalancerArn", AddNetworkLoadBalancerArn + add(formData_624977, "RemovePrivateDnsName", newJBool(RemovePrivateDnsName)) + add(formData_624977, "ServiceId", newJString(ServiceId)) + add(formData_624977, "DryRun", newJBool(DryRun)) + add(query_624976, "Action", newJString(Action)) if RemoveNetworkLoadBalancerArn != nil: - formData_624975.add "RemoveNetworkLoadBalancerArn", + formData_624977.add "RemoveNetworkLoadBalancerArn", RemoveNetworkLoadBalancerArn - add(formData_624975, "AcceptanceRequired", newJBool(AcceptanceRequired)) - add(query_624974, "Version", newJString(Version)) - result = call_624973.call(nil, query_624974, nil, formData_624975, nil) + add(formData_624977, "AcceptanceRequired", newJBool(AcceptanceRequired)) + add(query_624976, "Version", newJString(Version)) + result = call_624975.call(nil, query_624976, nil, formData_624977, nil) -var postModifyVpcEndpointServiceConfiguration* = Call_PostModifyVpcEndpointServiceConfiguration_624953( +var postModifyVpcEndpointServiceConfiguration* = Call_PostModifyVpcEndpointServiceConfiguration_624955( name: "postModifyVpcEndpointServiceConfiguration", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyVpcEndpointServiceConfiguration", - validator: validate_PostModifyVpcEndpointServiceConfiguration_624954, - base: "/", url: url_PostModifyVpcEndpointServiceConfiguration_624955, + validator: validate_PostModifyVpcEndpointServiceConfiguration_624956, + base: "/", url: url_PostModifyVpcEndpointServiceConfiguration_624957, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyVpcEndpointServiceConfiguration_624931 = ref object of OpenApiRestCall_610658 -proc url_GetModifyVpcEndpointServiceConfiguration_624933(protocol: Scheme; + Call_GetModifyVpcEndpointServiceConfiguration_624933 = ref object of OpenApiRestCall_610658 +proc url_GetModifyVpcEndpointServiceConfiguration_624935(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -114431,7 +114458,7 @@ proc url_GetModifyVpcEndpointServiceConfiguration_624933(protocol: Scheme; else: result.path = base & route -proc validate_GetModifyVpcEndpointServiceConfiguration_624932(path: JsonNode; +proc validate_GetModifyVpcEndpointServiceConfiguration_624934(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the attributes of your VPC endpoint service configuration. You can change the Network Load Balancers for your service, and you can specify whether acceptance is required for requests to connect to your endpoint service through an interface VPC endpoint.

    If you set or modify the private DNS name, you must prove that you own the private DNS domain name. For more information, see VPC Endpoint Service Private DNS Name Verification in the Amazon Virtual Private Cloud User Guide.

    ## @@ -114457,50 +114484,50 @@ proc validate_GetModifyVpcEndpointServiceConfiguration_624932(path: JsonNode; ## RemoveNetworkLoadBalancerArn: JArray ## : The Amazon Resource Names (ARNs) of Network Load Balancers to remove from your service configuration. section = newJObject() - var valid_624934 = query.getOrDefault("RemovePrivateDnsName") - valid_624934 = validateParameter(valid_624934, JBool, required = false, default = nil) - if valid_624934 != nil: - section.add "RemovePrivateDnsName", valid_624934 - var valid_624935 = query.getOrDefault("DryRun") - valid_624935 = validateParameter(valid_624935, JBool, required = false, default = nil) - if valid_624935 != nil: - section.add "DryRun", valid_624935 - var valid_624936 = query.getOrDefault("AcceptanceRequired") + var valid_624936 = query.getOrDefault("RemovePrivateDnsName") valid_624936 = validateParameter(valid_624936, JBool, required = false, default = nil) if valid_624936 != nil: - section.add "AcceptanceRequired", valid_624936 - var valid_624937 = query.getOrDefault("AddNetworkLoadBalancerArn") - valid_624937 = validateParameter(valid_624937, JArray, required = false, - default = nil) + section.add "RemovePrivateDnsName", valid_624936 + var valid_624937 = query.getOrDefault("DryRun") + valid_624937 = validateParameter(valid_624937, JBool, required = false, default = nil) if valid_624937 != nil: - section.add "AddNetworkLoadBalancerArn", valid_624937 + section.add "DryRun", valid_624937 + var valid_624938 = query.getOrDefault("AcceptanceRequired") + valid_624938 = validateParameter(valid_624938, JBool, required = false, default = nil) + if valid_624938 != nil: + section.add "AcceptanceRequired", valid_624938 + var valid_624939 = query.getOrDefault("AddNetworkLoadBalancerArn") + valid_624939 = validateParameter(valid_624939, JArray, required = false, + default = nil) + if valid_624939 != nil: + section.add "AddNetworkLoadBalancerArn", valid_624939 assert query != nil, "query argument is necessary due to required `ServiceId` field" - var valid_624938 = query.getOrDefault("ServiceId") - valid_624938 = validateParameter(valid_624938, JString, required = true, + var valid_624940 = query.getOrDefault("ServiceId") + valid_624940 = validateParameter(valid_624940, JString, required = true, default = nil) - if valid_624938 != nil: - section.add "ServiceId", valid_624938 - var valid_624939 = query.getOrDefault("Action") - valid_624939 = validateParameter(valid_624939, JString, required = true, default = newJString( + if valid_624940 != nil: + section.add "ServiceId", valid_624940 + var valid_624941 = query.getOrDefault("Action") + valid_624941 = validateParameter(valid_624941, JString, required = true, default = newJString( "ModifyVpcEndpointServiceConfiguration")) - if valid_624939 != nil: - section.add "Action", valid_624939 - var valid_624940 = query.getOrDefault("Version") - valid_624940 = validateParameter(valid_624940, JString, required = true, + if valid_624941 != nil: + section.add "Action", valid_624941 + var valid_624942 = query.getOrDefault("Version") + valid_624942 = validateParameter(valid_624942, JString, required = true, default = newJString("2016-11-15")) - if valid_624940 != nil: - section.add "Version", valid_624940 - var valid_624941 = query.getOrDefault("PrivateDnsName") - valid_624941 = validateParameter(valid_624941, JString, required = false, + if valid_624942 != nil: + section.add "Version", valid_624942 + var valid_624943 = query.getOrDefault("PrivateDnsName") + valid_624943 = validateParameter(valid_624943, JString, required = false, default = nil) - if valid_624941 != nil: - section.add "PrivateDnsName", valid_624941 - var valid_624942 = query.getOrDefault("RemoveNetworkLoadBalancerArn") - valid_624942 = validateParameter(valid_624942, JArray, required = false, + if valid_624943 != nil: + section.add "PrivateDnsName", valid_624943 + var valid_624944 = query.getOrDefault("RemoveNetworkLoadBalancerArn") + valid_624944 = validateParameter(valid_624944, JArray, required = false, default = nil) - if valid_624942 != nil: - section.add "RemoveNetworkLoadBalancerArn", valid_624942 + if valid_624944 != nil: + section.add "RemoveNetworkLoadBalancerArn", valid_624944 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -114511,62 +114538,62 @@ proc validate_GetModifyVpcEndpointServiceConfiguration_624932(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624943 = header.getOrDefault("X-Amz-Signature") - valid_624943 = validateParameter(valid_624943, JString, required = false, - default = nil) - if valid_624943 != nil: - section.add "X-Amz-Signature", valid_624943 - var valid_624944 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624944 = validateParameter(valid_624944, JString, required = false, - default = nil) - if valid_624944 != nil: - section.add "X-Amz-Content-Sha256", valid_624944 - var valid_624945 = header.getOrDefault("X-Amz-Date") + var valid_624945 = header.getOrDefault("X-Amz-Signature") valid_624945 = validateParameter(valid_624945, JString, required = false, default = nil) if valid_624945 != nil: - section.add "X-Amz-Date", valid_624945 - var valid_624946 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624945 + var valid_624946 = header.getOrDefault("X-Amz-Content-Sha256") valid_624946 = validateParameter(valid_624946, JString, required = false, default = nil) if valid_624946 != nil: - section.add "X-Amz-Credential", valid_624946 - var valid_624947 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624946 + var valid_624947 = header.getOrDefault("X-Amz-Date") valid_624947 = validateParameter(valid_624947, JString, required = false, default = nil) if valid_624947 != nil: - section.add "X-Amz-Security-Token", valid_624947 - var valid_624948 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624947 + var valid_624948 = header.getOrDefault("X-Amz-Credential") valid_624948 = validateParameter(valid_624948, JString, required = false, default = nil) if valid_624948 != nil: - section.add "X-Amz-Algorithm", valid_624948 - var valid_624949 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624948 + var valid_624949 = header.getOrDefault("X-Amz-Security-Token") valid_624949 = validateParameter(valid_624949, JString, required = false, default = nil) if valid_624949 != nil: - section.add "X-Amz-SignedHeaders", valid_624949 + section.add "X-Amz-Security-Token", valid_624949 + var valid_624950 = header.getOrDefault("X-Amz-Algorithm") + valid_624950 = validateParameter(valid_624950, JString, required = false, + default = nil) + if valid_624950 != nil: + section.add "X-Amz-Algorithm", valid_624950 + var valid_624951 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624951 = validateParameter(valid_624951, JString, required = false, + default = nil) + if valid_624951 != nil: + section.add "X-Amz-SignedHeaders", valid_624951 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624950: Call_GetModifyVpcEndpointServiceConfiguration_624931; +proc call*(call_624952: Call_GetModifyVpcEndpointServiceConfiguration_624933; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the attributes of your VPC endpoint service configuration. You can change the Network Load Balancers for your service, and you can specify whether acceptance is required for requests to connect to your endpoint service through an interface VPC endpoint.

    If you set or modify the private DNS name, you must prove that you own the private DNS domain name. For more information, see VPC Endpoint Service Private DNS Name Verification in the Amazon Virtual Private Cloud User Guide.

    ## - let valid = call_624950.validator(path, query, header, formData, body) - let scheme = call_624950.pickScheme + let valid = call_624952.validator(path, query, header, formData, body) + let scheme = call_624952.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624950.url(scheme.get, call_624950.host, call_624950.base, - call_624950.route, valid.getOrDefault("path"), + let url = call_624952.url(scheme.get, call_624952.host, call_624952.base, + call_624952.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624950, url, valid) + result = atozHook(call_624952, url, valid) -proc call*(call_624951: Call_GetModifyVpcEndpointServiceConfiguration_624931; +proc call*(call_624953: Call_GetModifyVpcEndpointServiceConfiguration_624933; ServiceId: string; RemovePrivateDnsName: bool = false; DryRun: bool = false; AcceptanceRequired: bool = false; AddNetworkLoadBalancerArn: JsonNode = nil; @@ -114591,30 +114618,30 @@ proc call*(call_624951: Call_GetModifyVpcEndpointServiceConfiguration_624931; ## : The private DNS name to assign to the endpoint service. ## RemoveNetworkLoadBalancerArn: JArray ## : The Amazon Resource Names (ARNs) of Network Load Balancers to remove from your service configuration. - var query_624952 = newJObject() - add(query_624952, "RemovePrivateDnsName", newJBool(RemovePrivateDnsName)) - add(query_624952, "DryRun", newJBool(DryRun)) - add(query_624952, "AcceptanceRequired", newJBool(AcceptanceRequired)) + var query_624954 = newJObject() + add(query_624954, "RemovePrivateDnsName", newJBool(RemovePrivateDnsName)) + add(query_624954, "DryRun", newJBool(DryRun)) + add(query_624954, "AcceptanceRequired", newJBool(AcceptanceRequired)) if AddNetworkLoadBalancerArn != nil: - query_624952.add "AddNetworkLoadBalancerArn", AddNetworkLoadBalancerArn - add(query_624952, "ServiceId", newJString(ServiceId)) - add(query_624952, "Action", newJString(Action)) - add(query_624952, "Version", newJString(Version)) - add(query_624952, "PrivateDnsName", newJString(PrivateDnsName)) + query_624954.add "AddNetworkLoadBalancerArn", AddNetworkLoadBalancerArn + add(query_624954, "ServiceId", newJString(ServiceId)) + add(query_624954, "Action", newJString(Action)) + add(query_624954, "Version", newJString(Version)) + add(query_624954, "PrivateDnsName", newJString(PrivateDnsName)) if RemoveNetworkLoadBalancerArn != nil: - query_624952.add "RemoveNetworkLoadBalancerArn", RemoveNetworkLoadBalancerArn - result = call_624951.call(nil, query_624952, nil, nil, nil) + query_624954.add "RemoveNetworkLoadBalancerArn", RemoveNetworkLoadBalancerArn + result = call_624953.call(nil, query_624954, nil, nil, nil) -var getModifyVpcEndpointServiceConfiguration* = Call_GetModifyVpcEndpointServiceConfiguration_624931( +var getModifyVpcEndpointServiceConfiguration* = Call_GetModifyVpcEndpointServiceConfiguration_624933( name: "getModifyVpcEndpointServiceConfiguration", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifyVpcEndpointServiceConfiguration", - validator: validate_GetModifyVpcEndpointServiceConfiguration_624932, - base: "/", url: url_GetModifyVpcEndpointServiceConfiguration_624933, + validator: validate_GetModifyVpcEndpointServiceConfiguration_624934, + base: "/", url: url_GetModifyVpcEndpointServiceConfiguration_624935, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyVpcEndpointServicePermissions_624995 = ref object of OpenApiRestCall_610658 -proc url_PostModifyVpcEndpointServicePermissions_624997(protocol: Scheme; + Call_PostModifyVpcEndpointServicePermissions_624997 = ref object of OpenApiRestCall_610658 +proc url_PostModifyVpcEndpointServicePermissions_624999(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -114624,7 +114651,7 @@ proc url_PostModifyVpcEndpointServicePermissions_624997(protocol: Scheme; else: result.path = base & route -proc validate_PostModifyVpcEndpointServicePermissions_624996(path: JsonNode; +proc validate_PostModifyVpcEndpointServicePermissions_624998(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the permissions for your VPC endpoint service. You can add or remove permissions for service consumers (IAM users, IAM roles, and AWS accounts) to connect to your endpoint service.

    If you grant permissions to all principals, the service is public. Any users who know the name of a public service can send a request to attach an endpoint. If the service does not require manual approval, attachments are automatically approved.

    ## @@ -114636,16 +114663,16 @@ proc validate_PostModifyVpcEndpointServicePermissions_624996(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_624998 = query.getOrDefault("Action") - valid_624998 = validateParameter(valid_624998, JString, required = true, default = newJString( + var valid_625000 = query.getOrDefault("Action") + valid_625000 = validateParameter(valid_625000, JString, required = true, default = newJString( "ModifyVpcEndpointServicePermissions")) - if valid_624998 != nil: - section.add "Action", valid_624998 - var valid_624999 = query.getOrDefault("Version") - valid_624999 = validateParameter(valid_624999, JString, required = true, + if valid_625000 != nil: + section.add "Action", valid_625000 + var valid_625001 = query.getOrDefault("Version") + valid_625001 = validateParameter(valid_625001, JString, required = true, default = newJString("2016-11-15")) - if valid_624999 != nil: - section.add "Version", valid_624999 + if valid_625001 != nil: + section.add "Version", valid_625001 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -114656,41 +114683,41 @@ proc validate_PostModifyVpcEndpointServicePermissions_624996(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625000 = header.getOrDefault("X-Amz-Signature") - valid_625000 = validateParameter(valid_625000, JString, required = false, - default = nil) - if valid_625000 != nil: - section.add "X-Amz-Signature", valid_625000 - var valid_625001 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625001 = validateParameter(valid_625001, JString, required = false, - default = nil) - if valid_625001 != nil: - section.add "X-Amz-Content-Sha256", valid_625001 - var valid_625002 = header.getOrDefault("X-Amz-Date") + var valid_625002 = header.getOrDefault("X-Amz-Signature") valid_625002 = validateParameter(valid_625002, JString, required = false, default = nil) if valid_625002 != nil: - section.add "X-Amz-Date", valid_625002 - var valid_625003 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625002 + var valid_625003 = header.getOrDefault("X-Amz-Content-Sha256") valid_625003 = validateParameter(valid_625003, JString, required = false, default = nil) if valid_625003 != nil: - section.add "X-Amz-Credential", valid_625003 - var valid_625004 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625003 + var valid_625004 = header.getOrDefault("X-Amz-Date") valid_625004 = validateParameter(valid_625004, JString, required = false, default = nil) if valid_625004 != nil: - section.add "X-Amz-Security-Token", valid_625004 - var valid_625005 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625004 + var valid_625005 = header.getOrDefault("X-Amz-Credential") valid_625005 = validateParameter(valid_625005, JString, required = false, default = nil) if valid_625005 != nil: - section.add "X-Amz-Algorithm", valid_625005 - var valid_625006 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625005 + var valid_625006 = header.getOrDefault("X-Amz-Security-Token") valid_625006 = validateParameter(valid_625006, JString, required = false, default = nil) if valid_625006 != nil: - section.add "X-Amz-SignedHeaders", valid_625006 + section.add "X-Amz-Security-Token", valid_625006 + var valid_625007 = header.getOrDefault("X-Amz-Algorithm") + valid_625007 = validateParameter(valid_625007, JString, required = false, + default = nil) + if valid_625007 != nil: + section.add "X-Amz-Algorithm", valid_625007 + var valid_625008 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625008 = validateParameter(valid_625008, JString, required = false, + default = nil) + if valid_625008 != nil: + section.add "X-Amz-SignedHeaders", valid_625008 result.add "header", section ## parameters in `formData` object: ## ServiceId: JString (required) @@ -114704,44 +114731,44 @@ proc validate_PostModifyVpcEndpointServicePermissions_624996(path: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `ServiceId` field" - var valid_625007 = formData.getOrDefault("ServiceId") - valid_625007 = validateParameter(valid_625007, JString, required = true, - default = nil) - if valid_625007 != nil: - section.add "ServiceId", valid_625007 - var valid_625008 = formData.getOrDefault("DryRun") - valid_625008 = validateParameter(valid_625008, JBool, required = false, default = nil) - if valid_625008 != nil: - section.add "DryRun", valid_625008 - var valid_625009 = formData.getOrDefault("RemoveAllowedPrincipals") - valid_625009 = validateParameter(valid_625009, JArray, required = false, + var valid_625009 = formData.getOrDefault("ServiceId") + valid_625009 = validateParameter(valid_625009, JString, required = true, default = nil) if valid_625009 != nil: - section.add "RemoveAllowedPrincipals", valid_625009 - var valid_625010 = formData.getOrDefault("AddAllowedPrincipals") - valid_625010 = validateParameter(valid_625010, JArray, required = false, - default = nil) + section.add "ServiceId", valid_625009 + var valid_625010 = formData.getOrDefault("DryRun") + valid_625010 = validateParameter(valid_625010, JBool, required = false, default = nil) if valid_625010 != nil: - section.add "AddAllowedPrincipals", valid_625010 + section.add "DryRun", valid_625010 + var valid_625011 = formData.getOrDefault("RemoveAllowedPrincipals") + valid_625011 = validateParameter(valid_625011, JArray, required = false, + default = nil) + if valid_625011 != nil: + section.add "RemoveAllowedPrincipals", valid_625011 + var valid_625012 = formData.getOrDefault("AddAllowedPrincipals") + valid_625012 = validateParameter(valid_625012, JArray, required = false, + default = nil) + if valid_625012 != nil: + section.add "AddAllowedPrincipals", valid_625012 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625011: Call_PostModifyVpcEndpointServicePermissions_624995; +proc call*(call_625013: Call_PostModifyVpcEndpointServicePermissions_624997; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the permissions for your VPC endpoint service. You can add or remove permissions for service consumers (IAM users, IAM roles, and AWS accounts) to connect to your endpoint service.

    If you grant permissions to all principals, the service is public. Any users who know the name of a public service can send a request to attach an endpoint. If the service does not require manual approval, attachments are automatically approved.

    ## - let valid = call_625011.validator(path, query, header, formData, body) - let scheme = call_625011.pickScheme + let valid = call_625013.validator(path, query, header, formData, body) + let scheme = call_625013.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625011.url(scheme.get, call_625011.host, call_625011.base, - call_625011.route, valid.getOrDefault("path"), + let url = call_625013.url(scheme.get, call_625013.host, call_625013.base, + call_625013.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625011, url, valid) + result = atozHook(call_625013, url, valid) -proc call*(call_625012: Call_PostModifyVpcEndpointServicePermissions_624995; +proc call*(call_625014: Call_PostModifyVpcEndpointServicePermissions_624997; ServiceId: string; DryRun: bool = false; RemoveAllowedPrincipals: JsonNode = nil; Action: string = "ModifyVpcEndpointServicePermissions"; @@ -114758,28 +114785,28 @@ proc call*(call_625012: Call_PostModifyVpcEndpointServicePermissions_624995; ## Version: string (required) ## AddAllowedPrincipals: JArray ## : The Amazon Resource Names (ARN) of one or more principals. Permissions are granted to the principals in this list. To grant permissions to all principals, specify an asterisk (*). - var query_625013 = newJObject() - var formData_625014 = newJObject() - add(formData_625014, "ServiceId", newJString(ServiceId)) - add(formData_625014, "DryRun", newJBool(DryRun)) + var query_625015 = newJObject() + var formData_625016 = newJObject() + add(formData_625016, "ServiceId", newJString(ServiceId)) + add(formData_625016, "DryRun", newJBool(DryRun)) if RemoveAllowedPrincipals != nil: - formData_625014.add "RemoveAllowedPrincipals", RemoveAllowedPrincipals - add(query_625013, "Action", newJString(Action)) - add(query_625013, "Version", newJString(Version)) + formData_625016.add "RemoveAllowedPrincipals", RemoveAllowedPrincipals + add(query_625015, "Action", newJString(Action)) + add(query_625015, "Version", newJString(Version)) if AddAllowedPrincipals != nil: - formData_625014.add "AddAllowedPrincipals", AddAllowedPrincipals - result = call_625012.call(nil, query_625013, nil, formData_625014, nil) + formData_625016.add "AddAllowedPrincipals", AddAllowedPrincipals + result = call_625014.call(nil, query_625015, nil, formData_625016, nil) -var postModifyVpcEndpointServicePermissions* = Call_PostModifyVpcEndpointServicePermissions_624995( +var postModifyVpcEndpointServicePermissions* = Call_PostModifyVpcEndpointServicePermissions_624997( name: "postModifyVpcEndpointServicePermissions", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyVpcEndpointServicePermissions", - validator: validate_PostModifyVpcEndpointServicePermissions_624996, base: "/", - url: url_PostModifyVpcEndpointServicePermissions_624997, + validator: validate_PostModifyVpcEndpointServicePermissions_624998, base: "/", + url: url_PostModifyVpcEndpointServicePermissions_624999, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyVpcEndpointServicePermissions_624976 = ref object of OpenApiRestCall_610658 -proc url_GetModifyVpcEndpointServicePermissions_624978(protocol: Scheme; + Call_GetModifyVpcEndpointServicePermissions_624978 = ref object of OpenApiRestCall_610658 +proc url_GetModifyVpcEndpointServicePermissions_624980(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -114789,7 +114816,7 @@ proc url_GetModifyVpcEndpointServicePermissions_624978(protocol: Scheme; else: result.path = base & route -proc validate_GetModifyVpcEndpointServicePermissions_624977(path: JsonNode; +proc validate_GetModifyVpcEndpointServicePermissions_624979(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the permissions for your VPC endpoint service. You can add or remove permissions for service consumers (IAM users, IAM roles, and AWS accounts) to connect to your endpoint service.

    If you grant permissions to all principals, the service is public. Any users who know the name of a public service can send a request to attach an endpoint. If the service does not require manual approval, attachments are automatically approved.

    ## @@ -114809,37 +114836,37 @@ proc validate_GetModifyVpcEndpointServicePermissions_624977(path: JsonNode; ## RemoveAllowedPrincipals: JArray ## : The Amazon Resource Names (ARN) of one or more principals. Permissions are revoked for principals in this list. section = newJObject() - var valid_624979 = query.getOrDefault("DryRun") - valid_624979 = validateParameter(valid_624979, JBool, required = false, default = nil) - if valid_624979 != nil: - section.add "DryRun", valid_624979 - var valid_624980 = query.getOrDefault("AddAllowedPrincipals") - valid_624980 = validateParameter(valid_624980, JArray, required = false, + var valid_624981 = query.getOrDefault("DryRun") + valid_624981 = validateParameter(valid_624981, JBool, required = false, default = nil) + if valid_624981 != nil: + section.add "DryRun", valid_624981 + var valid_624982 = query.getOrDefault("AddAllowedPrincipals") + valid_624982 = validateParameter(valid_624982, JArray, required = false, default = nil) - if valid_624980 != nil: - section.add "AddAllowedPrincipals", valid_624980 + if valid_624982 != nil: + section.add "AddAllowedPrincipals", valid_624982 assert query != nil, "query argument is necessary due to required `ServiceId` field" - var valid_624981 = query.getOrDefault("ServiceId") - valid_624981 = validateParameter(valid_624981, JString, required = true, + var valid_624983 = query.getOrDefault("ServiceId") + valid_624983 = validateParameter(valid_624983, JString, required = true, default = nil) - if valid_624981 != nil: - section.add "ServiceId", valid_624981 - var valid_624982 = query.getOrDefault("Action") - valid_624982 = validateParameter(valid_624982, JString, required = true, default = newJString( + if valid_624983 != nil: + section.add "ServiceId", valid_624983 + var valid_624984 = query.getOrDefault("Action") + valid_624984 = validateParameter(valid_624984, JString, required = true, default = newJString( "ModifyVpcEndpointServicePermissions")) - if valid_624982 != nil: - section.add "Action", valid_624982 - var valid_624983 = query.getOrDefault("Version") - valid_624983 = validateParameter(valid_624983, JString, required = true, + if valid_624984 != nil: + section.add "Action", valid_624984 + var valid_624985 = query.getOrDefault("Version") + valid_624985 = validateParameter(valid_624985, JString, required = true, default = newJString("2016-11-15")) - if valid_624983 != nil: - section.add "Version", valid_624983 - var valid_624984 = query.getOrDefault("RemoveAllowedPrincipals") - valid_624984 = validateParameter(valid_624984, JArray, required = false, + if valid_624985 != nil: + section.add "Version", valid_624985 + var valid_624986 = query.getOrDefault("RemoveAllowedPrincipals") + valid_624986 = validateParameter(valid_624986, JArray, required = false, default = nil) - if valid_624984 != nil: - section.add "RemoveAllowedPrincipals", valid_624984 + if valid_624986 != nil: + section.add "RemoveAllowedPrincipals", valid_624986 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -114850,62 +114877,62 @@ proc validate_GetModifyVpcEndpointServicePermissions_624977(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_624985 = header.getOrDefault("X-Amz-Signature") - valid_624985 = validateParameter(valid_624985, JString, required = false, - default = nil) - if valid_624985 != nil: - section.add "X-Amz-Signature", valid_624985 - var valid_624986 = header.getOrDefault("X-Amz-Content-Sha256") - valid_624986 = validateParameter(valid_624986, JString, required = false, - default = nil) - if valid_624986 != nil: - section.add "X-Amz-Content-Sha256", valid_624986 - var valid_624987 = header.getOrDefault("X-Amz-Date") + var valid_624987 = header.getOrDefault("X-Amz-Signature") valid_624987 = validateParameter(valid_624987, JString, required = false, default = nil) if valid_624987 != nil: - section.add "X-Amz-Date", valid_624987 - var valid_624988 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_624987 + var valid_624988 = header.getOrDefault("X-Amz-Content-Sha256") valid_624988 = validateParameter(valid_624988, JString, required = false, default = nil) if valid_624988 != nil: - section.add "X-Amz-Credential", valid_624988 - var valid_624989 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_624988 + var valid_624989 = header.getOrDefault("X-Amz-Date") valid_624989 = validateParameter(valid_624989, JString, required = false, default = nil) if valid_624989 != nil: - section.add "X-Amz-Security-Token", valid_624989 - var valid_624990 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_624989 + var valid_624990 = header.getOrDefault("X-Amz-Credential") valid_624990 = validateParameter(valid_624990, JString, required = false, default = nil) if valid_624990 != nil: - section.add "X-Amz-Algorithm", valid_624990 - var valid_624991 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_624990 + var valid_624991 = header.getOrDefault("X-Amz-Security-Token") valid_624991 = validateParameter(valid_624991, JString, required = false, default = nil) if valid_624991 != nil: - section.add "X-Amz-SignedHeaders", valid_624991 + section.add "X-Amz-Security-Token", valid_624991 + var valid_624992 = header.getOrDefault("X-Amz-Algorithm") + valid_624992 = validateParameter(valid_624992, JString, required = false, + default = nil) + if valid_624992 != nil: + section.add "X-Amz-Algorithm", valid_624992 + var valid_624993 = header.getOrDefault("X-Amz-SignedHeaders") + valid_624993 = validateParameter(valid_624993, JString, required = false, + default = nil) + if valid_624993 != nil: + section.add "X-Amz-SignedHeaders", valid_624993 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_624992: Call_GetModifyVpcEndpointServicePermissions_624976; +proc call*(call_624994: Call_GetModifyVpcEndpointServicePermissions_624978; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the permissions for your VPC endpoint service. You can add or remove permissions for service consumers (IAM users, IAM roles, and AWS accounts) to connect to your endpoint service.

    If you grant permissions to all principals, the service is public. Any users who know the name of a public service can send a request to attach an endpoint. If the service does not require manual approval, attachments are automatically approved.

    ## - let valid = call_624992.validator(path, query, header, formData, body) - let scheme = call_624992.pickScheme + let valid = call_624994.validator(path, query, header, formData, body) + let scheme = call_624994.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_624992.url(scheme.get, call_624992.host, call_624992.base, - call_624992.route, valid.getOrDefault("path"), + let url = call_624994.url(scheme.get, call_624994.host, call_624994.base, + call_624994.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_624992, url, valid) + result = atozHook(call_624994, url, valid) -proc call*(call_624993: Call_GetModifyVpcEndpointServicePermissions_624976; +proc call*(call_624995: Call_GetModifyVpcEndpointServicePermissions_624978; ServiceId: string; DryRun: bool = false; AddAllowedPrincipals: JsonNode = nil; Action: string = "ModifyVpcEndpointServicePermissions"; @@ -114922,27 +114949,27 @@ proc call*(call_624993: Call_GetModifyVpcEndpointServicePermissions_624976; ## Version: string (required) ## RemoveAllowedPrincipals: JArray ## : The Amazon Resource Names (ARN) of one or more principals. Permissions are revoked for principals in this list. - var query_624994 = newJObject() - add(query_624994, "DryRun", newJBool(DryRun)) + var query_624996 = newJObject() + add(query_624996, "DryRun", newJBool(DryRun)) if AddAllowedPrincipals != nil: - query_624994.add "AddAllowedPrincipals", AddAllowedPrincipals - add(query_624994, "ServiceId", newJString(ServiceId)) - add(query_624994, "Action", newJString(Action)) - add(query_624994, "Version", newJString(Version)) + query_624996.add "AddAllowedPrincipals", AddAllowedPrincipals + add(query_624996, "ServiceId", newJString(ServiceId)) + add(query_624996, "Action", newJString(Action)) + add(query_624996, "Version", newJString(Version)) if RemoveAllowedPrincipals != nil: - query_624994.add "RemoveAllowedPrincipals", RemoveAllowedPrincipals - result = call_624993.call(nil, query_624994, nil, nil, nil) + query_624996.add "RemoveAllowedPrincipals", RemoveAllowedPrincipals + result = call_624995.call(nil, query_624996, nil, nil, nil) -var getModifyVpcEndpointServicePermissions* = Call_GetModifyVpcEndpointServicePermissions_624976( +var getModifyVpcEndpointServicePermissions* = Call_GetModifyVpcEndpointServicePermissions_624978( name: "getModifyVpcEndpointServicePermissions", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifyVpcEndpointServicePermissions", - validator: validate_GetModifyVpcEndpointServicePermissions_624977, base: "/", - url: url_GetModifyVpcEndpointServicePermissions_624978, + validator: validate_GetModifyVpcEndpointServicePermissions_624979, base: "/", + url: url_GetModifyVpcEndpointServicePermissions_624980, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyVpcPeeringConnectionOptions_625038 = ref object of OpenApiRestCall_610658 -proc url_PostModifyVpcPeeringConnectionOptions_625040(protocol: Scheme; + Call_PostModifyVpcPeeringConnectionOptions_625040 = ref object of OpenApiRestCall_610658 +proc url_PostModifyVpcPeeringConnectionOptions_625042(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -114952,7 +114979,7 @@ proc url_PostModifyVpcPeeringConnectionOptions_625040(protocol: Scheme; else: result.path = base & route -proc validate_PostModifyVpcPeeringConnectionOptions_625039(path: JsonNode; +proc validate_PostModifyVpcPeeringConnectionOptions_625041(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the VPC peering connection options on one side of a VPC peering connection. You can do the following:

    If the peered VPCs are in the same AWS account, you can enable DNS resolution for queries from the local VPC. This ensures that queries from the local VPC resolve to private IP addresses in the peer VPC. This option is not available if the peered VPCs are in different AWS accounts or different Regions. For peered VPCs in different AWS accounts, each AWS account owner must initiate a separate request to modify the peering connection options. For inter-region peering connections, you must use the Region for the requester VPC to modify the requester VPC peering options and the Region for the accepter VPC to modify the accepter VPC peering options. To verify which VPCs are the accepter and the requester for a VPC peering connection, use the DescribeVpcPeeringConnections command.

    ## @@ -114964,16 +114991,16 @@ proc validate_PostModifyVpcPeeringConnectionOptions_625039(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625041 = query.getOrDefault("Action") - valid_625041 = validateParameter(valid_625041, JString, required = true, default = newJString( + var valid_625043 = query.getOrDefault("Action") + valid_625043 = validateParameter(valid_625043, JString, required = true, default = newJString( "ModifyVpcPeeringConnectionOptions")) - if valid_625041 != nil: - section.add "Action", valid_625041 - var valid_625042 = query.getOrDefault("Version") - valid_625042 = validateParameter(valid_625042, JString, required = true, + if valid_625043 != nil: + section.add "Action", valid_625043 + var valid_625044 = query.getOrDefault("Version") + valid_625044 = validateParameter(valid_625044, JString, required = true, default = newJString("2016-11-15")) - if valid_625042 != nil: - section.add "Version", valid_625042 + if valid_625044 != nil: + section.add "Version", valid_625044 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -114984,41 +115011,41 @@ proc validate_PostModifyVpcPeeringConnectionOptions_625039(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625043 = header.getOrDefault("X-Amz-Signature") - valid_625043 = validateParameter(valid_625043, JString, required = false, - default = nil) - if valid_625043 != nil: - section.add "X-Amz-Signature", valid_625043 - var valid_625044 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625044 = validateParameter(valid_625044, JString, required = false, - default = nil) - if valid_625044 != nil: - section.add "X-Amz-Content-Sha256", valid_625044 - var valid_625045 = header.getOrDefault("X-Amz-Date") + var valid_625045 = header.getOrDefault("X-Amz-Signature") valid_625045 = validateParameter(valid_625045, JString, required = false, default = nil) if valid_625045 != nil: - section.add "X-Amz-Date", valid_625045 - var valid_625046 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625045 + var valid_625046 = header.getOrDefault("X-Amz-Content-Sha256") valid_625046 = validateParameter(valid_625046, JString, required = false, default = nil) if valid_625046 != nil: - section.add "X-Amz-Credential", valid_625046 - var valid_625047 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625046 + var valid_625047 = header.getOrDefault("X-Amz-Date") valid_625047 = validateParameter(valid_625047, JString, required = false, default = nil) if valid_625047 != nil: - section.add "X-Amz-Security-Token", valid_625047 - var valid_625048 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625047 + var valid_625048 = header.getOrDefault("X-Amz-Credential") valid_625048 = validateParameter(valid_625048, JString, required = false, default = nil) if valid_625048 != nil: - section.add "X-Amz-Algorithm", valid_625048 - var valid_625049 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625048 + var valid_625049 = header.getOrDefault("X-Amz-Security-Token") valid_625049 = validateParameter(valid_625049, JString, required = false, default = nil) if valid_625049 != nil: - section.add "X-Amz-SignedHeaders", valid_625049 + section.add "X-Amz-Security-Token", valid_625049 + var valid_625050 = header.getOrDefault("X-Amz-Algorithm") + valid_625050 = validateParameter(valid_625050, JString, required = false, + default = nil) + if valid_625050 != nil: + section.add "X-Amz-Algorithm", valid_625050 + var valid_625051 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625051 = validateParameter(valid_625051, JString, required = false, + default = nil) + if valid_625051 != nil: + section.add "X-Amz-SignedHeaders", valid_625051 result.add "header", section ## parameters in `formData` object: ## AccepterPeeringConnectionOptions.AllowEgressFromLocalClassicLinkToRemoteVpc: JString @@ -115044,71 +115071,71 @@ proc validate_PostModifyVpcPeeringConnectionOptions_625039(path: JsonNode; ## : The VPC peering connection options. ## If true, enables outbound communication from instances in a local VPC to an EC2-Classic instance that's linked to a peer VPC using ClassicLink. section = newJObject() - var valid_625050 = formData.getOrDefault("AccepterPeeringConnectionOptions.AllowEgressFromLocalClassicLinkToRemoteVpc") - valid_625050 = validateParameter(valid_625050, JString, required = false, - default = nil) - if valid_625050 != nil: - section.add "AccepterPeeringConnectionOptions.AllowEgressFromLocalClassicLinkToRemoteVpc", - valid_625050 - assert formData != nil, "formData argument is necessary due to required `VpcPeeringConnectionId` field" - var valid_625051 = formData.getOrDefault("VpcPeeringConnectionId") - valid_625051 = validateParameter(valid_625051, JString, required = true, - default = nil) - if valid_625051 != nil: - section.add "VpcPeeringConnectionId", valid_625051 - var valid_625052 = formData.getOrDefault("RequesterPeeringConnectionOptions.AllowEgressFromLocalVpcToRemoteClassicLink") + var valid_625052 = formData.getOrDefault("AccepterPeeringConnectionOptions.AllowEgressFromLocalClassicLinkToRemoteVpc") valid_625052 = validateParameter(valid_625052, JString, required = false, default = nil) if valid_625052 != nil: - section.add "RequesterPeeringConnectionOptions.AllowEgressFromLocalVpcToRemoteClassicLink", + section.add "AccepterPeeringConnectionOptions.AllowEgressFromLocalClassicLinkToRemoteVpc", valid_625052 - var valid_625053 = formData.getOrDefault("RequesterPeeringConnectionOptions.AllowDnsResolutionFromRemoteVpc") - valid_625053 = validateParameter(valid_625053, JString, required = false, + assert formData != nil, "formData argument is necessary due to required `VpcPeeringConnectionId` field" + var valid_625053 = formData.getOrDefault("VpcPeeringConnectionId") + valid_625053 = validateParameter(valid_625053, JString, required = true, default = nil) if valid_625053 != nil: - section.add "RequesterPeeringConnectionOptions.AllowDnsResolutionFromRemoteVpc", - valid_625053 - var valid_625054 = formData.getOrDefault("RequesterPeeringConnectionOptions.AllowEgressFromLocalClassicLinkToRemoteVpc") + section.add "VpcPeeringConnectionId", valid_625053 + var valid_625054 = formData.getOrDefault("RequesterPeeringConnectionOptions.AllowEgressFromLocalVpcToRemoteClassicLink") valid_625054 = validateParameter(valid_625054, JString, required = false, default = nil) if valid_625054 != nil: - section.add "RequesterPeeringConnectionOptions.AllowEgressFromLocalClassicLinkToRemoteVpc", + section.add "RequesterPeeringConnectionOptions.AllowEgressFromLocalVpcToRemoteClassicLink", valid_625054 - var valid_625055 = formData.getOrDefault("AccepterPeeringConnectionOptions.AllowDnsResolutionFromRemoteVpc") + var valid_625055 = formData.getOrDefault("RequesterPeeringConnectionOptions.AllowDnsResolutionFromRemoteVpc") valid_625055 = validateParameter(valid_625055, JString, required = false, default = nil) if valid_625055 != nil: - section.add "AccepterPeeringConnectionOptions.AllowDnsResolutionFromRemoteVpc", + section.add "RequesterPeeringConnectionOptions.AllowDnsResolutionFromRemoteVpc", valid_625055 - var valid_625056 = formData.getOrDefault("DryRun") - valid_625056 = validateParameter(valid_625056, JBool, required = false, default = nil) + var valid_625056 = formData.getOrDefault("RequesterPeeringConnectionOptions.AllowEgressFromLocalClassicLinkToRemoteVpc") + valid_625056 = validateParameter(valid_625056, JString, required = false, + default = nil) if valid_625056 != nil: - section.add "DryRun", valid_625056 - var valid_625057 = formData.getOrDefault("AccepterPeeringConnectionOptions.AllowEgressFromLocalVpcToRemoteClassicLink") + section.add "RequesterPeeringConnectionOptions.AllowEgressFromLocalClassicLinkToRemoteVpc", + valid_625056 + var valid_625057 = formData.getOrDefault("AccepterPeeringConnectionOptions.AllowDnsResolutionFromRemoteVpc") valid_625057 = validateParameter(valid_625057, JString, required = false, default = nil) if valid_625057 != nil: - section.add "AccepterPeeringConnectionOptions.AllowEgressFromLocalVpcToRemoteClassicLink", + section.add "AccepterPeeringConnectionOptions.AllowDnsResolutionFromRemoteVpc", valid_625057 + var valid_625058 = formData.getOrDefault("DryRun") + valid_625058 = validateParameter(valid_625058, JBool, required = false, default = nil) + if valid_625058 != nil: + section.add "DryRun", valid_625058 + var valid_625059 = formData.getOrDefault("AccepterPeeringConnectionOptions.AllowEgressFromLocalVpcToRemoteClassicLink") + valid_625059 = validateParameter(valid_625059, JString, required = false, + default = nil) + if valid_625059 != nil: + section.add "AccepterPeeringConnectionOptions.AllowEgressFromLocalVpcToRemoteClassicLink", + valid_625059 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625058: Call_PostModifyVpcPeeringConnectionOptions_625038; +proc call*(call_625060: Call_PostModifyVpcPeeringConnectionOptions_625040; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the VPC peering connection options on one side of a VPC peering connection. You can do the following:

    If the peered VPCs are in the same AWS account, you can enable DNS resolution for queries from the local VPC. This ensures that queries from the local VPC resolve to private IP addresses in the peer VPC. This option is not available if the peered VPCs are in different AWS accounts or different Regions. For peered VPCs in different AWS accounts, each AWS account owner must initiate a separate request to modify the peering connection options. For inter-region peering connections, you must use the Region for the requester VPC to modify the requester VPC peering options and the Region for the accepter VPC to modify the accepter VPC peering options. To verify which VPCs are the accepter and the requester for a VPC peering connection, use the DescribeVpcPeeringConnections command.

    ## - let valid = call_625058.validator(path, query, header, formData, body) - let scheme = call_625058.pickScheme + let valid = call_625060.validator(path, query, header, formData, body) + let scheme = call_625060.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625058.url(scheme.get, call_625058.host, call_625058.base, - call_625058.route, valid.getOrDefault("path"), + let url = call_625060.url(scheme.get, call_625060.host, call_625060.base, + call_625060.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625058, url, valid) + result = atozHook(call_625060, url, valid) -proc call*(call_625059: Call_PostModifyVpcPeeringConnectionOptions_625038; +proc call*(call_625061: Call_PostModifyVpcPeeringConnectionOptions_625040; VpcPeeringConnectionId: string; AccepterPeeringConnectionOptionsAllowEgressFromLocalClassicLinkToRemoteVpc: string = ""; RequesterPeeringConnectionOptionsAllowEgressFromLocalVpcToRemoteClassicLink: string = ""; RequesterPeeringConnectionOptionsAllowDnsResolutionFromRemoteVpc: string = ""; @@ -115144,35 +115171,35 @@ proc call*(call_625059: Call_PostModifyVpcPeeringConnectionOptions_625038; ## : The VPC peering connection options. ## If true, enables outbound communication from instances in a local VPC to an EC2-Classic instance that's linked to a peer VPC using ClassicLink. ## Version: string (required) - var query_625060 = newJObject() - var formData_625061 = newJObject() - add(formData_625061, "AccepterPeeringConnectionOptions.AllowEgressFromLocalClassicLinkToRemoteVpc", newJString(AccepterPeeringConnectionOptionsAllowEgressFromLocalClassicLinkToRemoteVpc)) - add(formData_625061, "VpcPeeringConnectionId", + var query_625062 = newJObject() + var formData_625063 = newJObject() + add(formData_625063, "AccepterPeeringConnectionOptions.AllowEgressFromLocalClassicLinkToRemoteVpc", newJString(AccepterPeeringConnectionOptionsAllowEgressFromLocalClassicLinkToRemoteVpc)) + add(formData_625063, "VpcPeeringConnectionId", newJString(VpcPeeringConnectionId)) - add(formData_625061, "RequesterPeeringConnectionOptions.AllowEgressFromLocalVpcToRemoteClassicLink", newJString(RequesterPeeringConnectionOptionsAllowEgressFromLocalVpcToRemoteClassicLink)) - add(formData_625061, + add(formData_625063, "RequesterPeeringConnectionOptions.AllowEgressFromLocalVpcToRemoteClassicLink", newJString(RequesterPeeringConnectionOptionsAllowEgressFromLocalVpcToRemoteClassicLink)) + add(formData_625063, "RequesterPeeringConnectionOptions.AllowDnsResolutionFromRemoteVpc", newJString( RequesterPeeringConnectionOptionsAllowDnsResolutionFromRemoteVpc)) - add(formData_625061, "RequesterPeeringConnectionOptions.AllowEgressFromLocalClassicLinkToRemoteVpc", newJString(RequesterPeeringConnectionOptionsAllowEgressFromLocalClassicLinkToRemoteVpc)) - add(formData_625061, + add(formData_625063, "RequesterPeeringConnectionOptions.AllowEgressFromLocalClassicLinkToRemoteVpc", newJString(RequesterPeeringConnectionOptionsAllowEgressFromLocalClassicLinkToRemoteVpc)) + add(formData_625063, "AccepterPeeringConnectionOptions.AllowDnsResolutionFromRemoteVpc", newJString( AccepterPeeringConnectionOptionsAllowDnsResolutionFromRemoteVpc)) - add(formData_625061, "DryRun", newJBool(DryRun)) - add(query_625060, "Action", newJString(Action)) - add(formData_625061, "AccepterPeeringConnectionOptions.AllowEgressFromLocalVpcToRemoteClassicLink", newJString(AccepterPeeringConnectionOptionsAllowEgressFromLocalVpcToRemoteClassicLink)) - add(query_625060, "Version", newJString(Version)) - result = call_625059.call(nil, query_625060, nil, formData_625061, nil) + add(formData_625063, "DryRun", newJBool(DryRun)) + add(query_625062, "Action", newJString(Action)) + add(formData_625063, "AccepterPeeringConnectionOptions.AllowEgressFromLocalVpcToRemoteClassicLink", newJString(AccepterPeeringConnectionOptionsAllowEgressFromLocalVpcToRemoteClassicLink)) + add(query_625062, "Version", newJString(Version)) + result = call_625061.call(nil, query_625062, nil, formData_625063, nil) -var postModifyVpcPeeringConnectionOptions* = Call_PostModifyVpcPeeringConnectionOptions_625038( +var postModifyVpcPeeringConnectionOptions* = Call_PostModifyVpcPeeringConnectionOptions_625040( name: "postModifyVpcPeeringConnectionOptions", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyVpcPeeringConnectionOptions", - validator: validate_PostModifyVpcPeeringConnectionOptions_625039, base: "/", - url: url_PostModifyVpcPeeringConnectionOptions_625040, + validator: validate_PostModifyVpcPeeringConnectionOptions_625041, base: "/", + url: url_PostModifyVpcPeeringConnectionOptions_625042, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyVpcPeeringConnectionOptions_625015 = ref object of OpenApiRestCall_610658 -proc url_GetModifyVpcPeeringConnectionOptions_625017(protocol: Scheme; + Call_GetModifyVpcPeeringConnectionOptions_625017 = ref object of OpenApiRestCall_610658 +proc url_GetModifyVpcPeeringConnectionOptions_625019(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -115182,7 +115209,7 @@ proc url_GetModifyVpcPeeringConnectionOptions_625017(protocol: Scheme; else: result.path = base & route -proc validate_GetModifyVpcPeeringConnectionOptions_625016(path: JsonNode; +proc validate_GetModifyVpcPeeringConnectionOptions_625018(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the VPC peering connection options on one side of a VPC peering connection. You can do the following:

    If the peered VPCs are in the same AWS account, you can enable DNS resolution for queries from the local VPC. This ensures that queries from the local VPC resolve to private IP addresses in the peer VPC. This option is not available if the peered VPCs are in different AWS accounts or different Regions. For peered VPCs in different AWS accounts, each AWS account owner must initiate a separate request to modify the peering connection options. For inter-region peering connections, you must use the Region for the requester VPC to modify the requester VPC peering options and the Region for the accepter VPC to modify the accepter VPC peering options. To verify which VPCs are the accepter and the requester for a VPC peering connection, use the DescribeVpcPeeringConnections command.

    ## @@ -115216,61 +115243,61 @@ proc validate_GetModifyVpcPeeringConnectionOptions_625016(path: JsonNode; ## If true, enables outbound communication from an EC2-Classic instance that's linked to a local VPC using ClassicLink to instances in a peer VPC. ## Version: JString (required) section = newJObject() - var valid_625018 = query.getOrDefault("AccepterPeeringConnectionOptions.AllowEgressFromLocalVpcToRemoteClassicLink") - valid_625018 = validateParameter(valid_625018, JString, required = false, - default = nil) - if valid_625018 != nil: - section.add "AccepterPeeringConnectionOptions.AllowEgressFromLocalVpcToRemoteClassicLink", - valid_625018 - var valid_625019 = query.getOrDefault("AccepterPeeringConnectionOptions.AllowDnsResolutionFromRemoteVpc") - valid_625019 = validateParameter(valid_625019, JString, required = false, - default = nil) - if valid_625019 != nil: - section.add "AccepterPeeringConnectionOptions.AllowDnsResolutionFromRemoteVpc", - valid_625019 - var valid_625020 = query.getOrDefault("RequesterPeeringConnectionOptions.AllowDnsResolutionFromRemoteVpc") + var valid_625020 = query.getOrDefault("AccepterPeeringConnectionOptions.AllowEgressFromLocalVpcToRemoteClassicLink") valid_625020 = validateParameter(valid_625020, JString, required = false, default = nil) if valid_625020 != nil: - section.add "RequesterPeeringConnectionOptions.AllowDnsResolutionFromRemoteVpc", + section.add "AccepterPeeringConnectionOptions.AllowEgressFromLocalVpcToRemoteClassicLink", valid_625020 - var valid_625021 = query.getOrDefault("DryRun") - valid_625021 = validateParameter(valid_625021, JBool, required = false, default = nil) + var valid_625021 = query.getOrDefault("AccepterPeeringConnectionOptions.AllowDnsResolutionFromRemoteVpc") + valid_625021 = validateParameter(valid_625021, JString, required = false, + default = nil) if valid_625021 != nil: - section.add "DryRun", valid_625021 - var valid_625022 = query.getOrDefault("RequesterPeeringConnectionOptions.AllowEgressFromLocalClassicLinkToRemoteVpc") + section.add "AccepterPeeringConnectionOptions.AllowDnsResolutionFromRemoteVpc", + valid_625021 + var valid_625022 = query.getOrDefault("RequesterPeeringConnectionOptions.AllowDnsResolutionFromRemoteVpc") valid_625022 = validateParameter(valid_625022, JString, required = false, default = nil) if valid_625022 != nil: - section.add "RequesterPeeringConnectionOptions.AllowEgressFromLocalClassicLinkToRemoteVpc", + section.add "RequesterPeeringConnectionOptions.AllowDnsResolutionFromRemoteVpc", valid_625022 - var valid_625023 = query.getOrDefault("RequesterPeeringConnectionOptions.AllowEgressFromLocalVpcToRemoteClassicLink") - valid_625023 = validateParameter(valid_625023, JString, required = false, - default = nil) + var valid_625023 = query.getOrDefault("DryRun") + valid_625023 = validateParameter(valid_625023, JBool, required = false, default = nil) if valid_625023 != nil: - section.add "RequesterPeeringConnectionOptions.AllowEgressFromLocalVpcToRemoteClassicLink", - valid_625023 - var valid_625024 = query.getOrDefault("Action") - valid_625024 = validateParameter(valid_625024, JString, required = true, default = newJString( - "ModifyVpcPeeringConnectionOptions")) + section.add "DryRun", valid_625023 + var valid_625024 = query.getOrDefault("RequesterPeeringConnectionOptions.AllowEgressFromLocalClassicLinkToRemoteVpc") + valid_625024 = validateParameter(valid_625024, JString, required = false, + default = nil) if valid_625024 != nil: - section.add "Action", valid_625024 - var valid_625025 = query.getOrDefault("VpcPeeringConnectionId") - valid_625025 = validateParameter(valid_625025, JString, required = true, + section.add "RequesterPeeringConnectionOptions.AllowEgressFromLocalClassicLinkToRemoteVpc", + valid_625024 + var valid_625025 = query.getOrDefault("RequesterPeeringConnectionOptions.AllowEgressFromLocalVpcToRemoteClassicLink") + valid_625025 = validateParameter(valid_625025, JString, required = false, default = nil) if valid_625025 != nil: - section.add "VpcPeeringConnectionId", valid_625025 - var valid_625026 = query.getOrDefault("AccepterPeeringConnectionOptions.AllowEgressFromLocalClassicLinkToRemoteVpc") - valid_625026 = validateParameter(valid_625026, JString, required = false, - default = nil) + section.add "RequesterPeeringConnectionOptions.AllowEgressFromLocalVpcToRemoteClassicLink", + valid_625025 + var valid_625026 = query.getOrDefault("Action") + valid_625026 = validateParameter(valid_625026, JString, required = true, default = newJString( + "ModifyVpcPeeringConnectionOptions")) if valid_625026 != nil: - section.add "AccepterPeeringConnectionOptions.AllowEgressFromLocalClassicLinkToRemoteVpc", - valid_625026 - var valid_625027 = query.getOrDefault("Version") + section.add "Action", valid_625026 + var valid_625027 = query.getOrDefault("VpcPeeringConnectionId") valid_625027 = validateParameter(valid_625027, JString, required = true, - default = newJString("2016-11-15")) + default = nil) if valid_625027 != nil: - section.add "Version", valid_625027 + section.add "VpcPeeringConnectionId", valid_625027 + var valid_625028 = query.getOrDefault("AccepterPeeringConnectionOptions.AllowEgressFromLocalClassicLinkToRemoteVpc") + valid_625028 = validateParameter(valid_625028, JString, required = false, + default = nil) + if valid_625028 != nil: + section.add "AccepterPeeringConnectionOptions.AllowEgressFromLocalClassicLinkToRemoteVpc", + valid_625028 + var valid_625029 = query.getOrDefault("Version") + valid_625029 = validateParameter(valid_625029, JString, required = true, + default = newJString("2016-11-15")) + if valid_625029 != nil: + section.add "Version", valid_625029 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -115281,62 +115308,62 @@ proc validate_GetModifyVpcPeeringConnectionOptions_625016(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625028 = header.getOrDefault("X-Amz-Signature") - valid_625028 = validateParameter(valid_625028, JString, required = false, - default = nil) - if valid_625028 != nil: - section.add "X-Amz-Signature", valid_625028 - var valid_625029 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625029 = validateParameter(valid_625029, JString, required = false, - default = nil) - if valid_625029 != nil: - section.add "X-Amz-Content-Sha256", valid_625029 - var valid_625030 = header.getOrDefault("X-Amz-Date") + var valid_625030 = header.getOrDefault("X-Amz-Signature") valid_625030 = validateParameter(valid_625030, JString, required = false, default = nil) if valid_625030 != nil: - section.add "X-Amz-Date", valid_625030 - var valid_625031 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625030 + var valid_625031 = header.getOrDefault("X-Amz-Content-Sha256") valid_625031 = validateParameter(valid_625031, JString, required = false, default = nil) if valid_625031 != nil: - section.add "X-Amz-Credential", valid_625031 - var valid_625032 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625031 + var valid_625032 = header.getOrDefault("X-Amz-Date") valid_625032 = validateParameter(valid_625032, JString, required = false, default = nil) if valid_625032 != nil: - section.add "X-Amz-Security-Token", valid_625032 - var valid_625033 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625032 + var valid_625033 = header.getOrDefault("X-Amz-Credential") valid_625033 = validateParameter(valid_625033, JString, required = false, default = nil) if valid_625033 != nil: - section.add "X-Amz-Algorithm", valid_625033 - var valid_625034 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625033 + var valid_625034 = header.getOrDefault("X-Amz-Security-Token") valid_625034 = validateParameter(valid_625034, JString, required = false, default = nil) if valid_625034 != nil: - section.add "X-Amz-SignedHeaders", valid_625034 + section.add "X-Amz-Security-Token", valid_625034 + var valid_625035 = header.getOrDefault("X-Amz-Algorithm") + valid_625035 = validateParameter(valid_625035, JString, required = false, + default = nil) + if valid_625035 != nil: + section.add "X-Amz-Algorithm", valid_625035 + var valid_625036 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625036 = validateParameter(valid_625036, JString, required = false, + default = nil) + if valid_625036 != nil: + section.add "X-Amz-SignedHeaders", valid_625036 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625035: Call_GetModifyVpcPeeringConnectionOptions_625015; +proc call*(call_625037: Call_GetModifyVpcPeeringConnectionOptions_625017; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the VPC peering connection options on one side of a VPC peering connection. You can do the following:

    If the peered VPCs are in the same AWS account, you can enable DNS resolution for queries from the local VPC. This ensures that queries from the local VPC resolve to private IP addresses in the peer VPC. This option is not available if the peered VPCs are in different AWS accounts or different Regions. For peered VPCs in different AWS accounts, each AWS account owner must initiate a separate request to modify the peering connection options. For inter-region peering connections, you must use the Region for the requester VPC to modify the requester VPC peering options and the Region for the accepter VPC to modify the accepter VPC peering options. To verify which VPCs are the accepter and the requester for a VPC peering connection, use the DescribeVpcPeeringConnections command.

    ## - let valid = call_625035.validator(path, query, header, formData, body) - let scheme = call_625035.pickScheme + let valid = call_625037.validator(path, query, header, formData, body) + let scheme = call_625037.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625035.url(scheme.get, call_625035.host, call_625035.base, - call_625035.route, valid.getOrDefault("path"), + let url = call_625037.url(scheme.get, call_625037.host, call_625037.base, + call_625037.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625035, url, valid) + result = atozHook(call_625037, url, valid) -proc call*(call_625036: Call_GetModifyVpcPeeringConnectionOptions_625015; +proc call*(call_625038: Call_GetModifyVpcPeeringConnectionOptions_625017; VpcPeeringConnectionId: string; AccepterPeeringConnectionOptionsAllowEgressFromLocalVpcToRemoteClassicLink: string = ""; AccepterPeeringConnectionOptionsAllowDnsResolutionFromRemoteVpc: string = ""; RequesterPeeringConnectionOptionsAllowDnsResolutionFromRemoteVpc: string = ""; @@ -115371,33 +115398,33 @@ proc call*(call_625036: Call_GetModifyVpcPeeringConnectionOptions_625015; ## : The VPC peering connection options. ## If true, enables outbound communication from an EC2-Classic instance that's linked to a local VPC using ClassicLink to instances in a peer VPC. ## Version: string (required) - var query_625037 = newJObject() - add(query_625037, "AccepterPeeringConnectionOptions.AllowEgressFromLocalVpcToRemoteClassicLink", newJString(AccepterPeeringConnectionOptionsAllowEgressFromLocalVpcToRemoteClassicLink)) - add(query_625037, + var query_625039 = newJObject() + add(query_625039, "AccepterPeeringConnectionOptions.AllowEgressFromLocalVpcToRemoteClassicLink", newJString(AccepterPeeringConnectionOptionsAllowEgressFromLocalVpcToRemoteClassicLink)) + add(query_625039, "AccepterPeeringConnectionOptions.AllowDnsResolutionFromRemoteVpc", newJString( AccepterPeeringConnectionOptionsAllowDnsResolutionFromRemoteVpc)) - add(query_625037, + add(query_625039, "RequesterPeeringConnectionOptions.AllowDnsResolutionFromRemoteVpc", newJString( RequesterPeeringConnectionOptionsAllowDnsResolutionFromRemoteVpc)) - add(query_625037, "DryRun", newJBool(DryRun)) - add(query_625037, "RequesterPeeringConnectionOptions.AllowEgressFromLocalClassicLinkToRemoteVpc", newJString(RequesterPeeringConnectionOptionsAllowEgressFromLocalClassicLinkToRemoteVpc)) - add(query_625037, "RequesterPeeringConnectionOptions.AllowEgressFromLocalVpcToRemoteClassicLink", newJString(RequesterPeeringConnectionOptionsAllowEgressFromLocalVpcToRemoteClassicLink)) - add(query_625037, "Action", newJString(Action)) - add(query_625037, "VpcPeeringConnectionId", newJString(VpcPeeringConnectionId)) - add(query_625037, "AccepterPeeringConnectionOptions.AllowEgressFromLocalClassicLinkToRemoteVpc", newJString(AccepterPeeringConnectionOptionsAllowEgressFromLocalClassicLinkToRemoteVpc)) - add(query_625037, "Version", newJString(Version)) - result = call_625036.call(nil, query_625037, nil, nil, nil) - -var getModifyVpcPeeringConnectionOptions* = Call_GetModifyVpcPeeringConnectionOptions_625015( + add(query_625039, "DryRun", newJBool(DryRun)) + add(query_625039, "RequesterPeeringConnectionOptions.AllowEgressFromLocalClassicLinkToRemoteVpc", newJString(RequesterPeeringConnectionOptionsAllowEgressFromLocalClassicLinkToRemoteVpc)) + add(query_625039, "RequesterPeeringConnectionOptions.AllowEgressFromLocalVpcToRemoteClassicLink", newJString(RequesterPeeringConnectionOptionsAllowEgressFromLocalVpcToRemoteClassicLink)) + add(query_625039, "Action", newJString(Action)) + add(query_625039, "VpcPeeringConnectionId", newJString(VpcPeeringConnectionId)) + add(query_625039, "AccepterPeeringConnectionOptions.AllowEgressFromLocalClassicLinkToRemoteVpc", newJString(AccepterPeeringConnectionOptionsAllowEgressFromLocalClassicLinkToRemoteVpc)) + add(query_625039, "Version", newJString(Version)) + result = call_625038.call(nil, query_625039, nil, nil, nil) + +var getModifyVpcPeeringConnectionOptions* = Call_GetModifyVpcPeeringConnectionOptions_625017( name: "getModifyVpcPeeringConnectionOptions", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifyVpcPeeringConnectionOptions", - validator: validate_GetModifyVpcPeeringConnectionOptions_625016, base: "/", - url: url_GetModifyVpcPeeringConnectionOptions_625017, + validator: validate_GetModifyVpcPeeringConnectionOptions_625018, base: "/", + url: url_GetModifyVpcPeeringConnectionOptions_625019, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyVpcTenancy_625080 = ref object of OpenApiRestCall_610658 -proc url_PostModifyVpcTenancy_625082(protocol: Scheme; host: string; base: string; + Call_PostModifyVpcTenancy_625082 = ref object of OpenApiRestCall_610658 +proc url_PostModifyVpcTenancy_625084(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -115407,7 +115434,7 @@ proc url_PostModifyVpcTenancy_625082(protocol: Scheme; host: string; base: strin else: result.path = base & route -proc validate_PostModifyVpcTenancy_625081(path: JsonNode; query: JsonNode; +proc validate_PostModifyVpcTenancy_625083(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the instance tenancy attribute of the specified VPC. You can change the instance tenancy attribute of a VPC to default only. You cannot change the instance tenancy attribute to dedicated.

    After you modify the tenancy of the VPC, any new instances that you launch into the VPC have a tenancy of default, unless you specify otherwise during launch. The tenancy of any existing instances in the VPC is not affected.

    For more information, see Dedicated Instances in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -115419,16 +115446,16 @@ proc validate_PostModifyVpcTenancy_625081(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625083 = query.getOrDefault("Action") - valid_625083 = validateParameter(valid_625083, JString, required = true, + var valid_625085 = query.getOrDefault("Action") + valid_625085 = validateParameter(valid_625085, JString, required = true, default = newJString("ModifyVpcTenancy")) - if valid_625083 != nil: - section.add "Action", valid_625083 - var valid_625084 = query.getOrDefault("Version") - valid_625084 = validateParameter(valid_625084, JString, required = true, + if valid_625085 != nil: + section.add "Action", valid_625085 + var valid_625086 = query.getOrDefault("Version") + valid_625086 = validateParameter(valid_625086, JString, required = true, default = newJString("2016-11-15")) - if valid_625084 != nil: - section.add "Version", valid_625084 + if valid_625086 != nil: + section.add "Version", valid_625086 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -115439,41 +115466,41 @@ proc validate_PostModifyVpcTenancy_625081(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625085 = header.getOrDefault("X-Amz-Signature") - valid_625085 = validateParameter(valid_625085, JString, required = false, - default = nil) - if valid_625085 != nil: - section.add "X-Amz-Signature", valid_625085 - var valid_625086 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625086 = validateParameter(valid_625086, JString, required = false, - default = nil) - if valid_625086 != nil: - section.add "X-Amz-Content-Sha256", valid_625086 - var valid_625087 = header.getOrDefault("X-Amz-Date") + var valid_625087 = header.getOrDefault("X-Amz-Signature") valid_625087 = validateParameter(valid_625087, JString, required = false, default = nil) if valid_625087 != nil: - section.add "X-Amz-Date", valid_625087 - var valid_625088 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625087 + var valid_625088 = header.getOrDefault("X-Amz-Content-Sha256") valid_625088 = validateParameter(valid_625088, JString, required = false, default = nil) if valid_625088 != nil: - section.add "X-Amz-Credential", valid_625088 - var valid_625089 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625088 + var valid_625089 = header.getOrDefault("X-Amz-Date") valid_625089 = validateParameter(valid_625089, JString, required = false, default = nil) if valid_625089 != nil: - section.add "X-Amz-Security-Token", valid_625089 - var valid_625090 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625089 + var valid_625090 = header.getOrDefault("X-Amz-Credential") valid_625090 = validateParameter(valid_625090, JString, required = false, default = nil) if valid_625090 != nil: - section.add "X-Amz-Algorithm", valid_625090 - var valid_625091 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625090 + var valid_625091 = header.getOrDefault("X-Amz-Security-Token") valid_625091 = validateParameter(valid_625091, JString, required = false, default = nil) if valid_625091 != nil: - section.add "X-Amz-SignedHeaders", valid_625091 + section.add "X-Amz-Security-Token", valid_625091 + var valid_625092 = header.getOrDefault("X-Amz-Algorithm") + valid_625092 = validateParameter(valid_625092, JString, required = false, + default = nil) + if valid_625092 != nil: + section.add "X-Amz-Algorithm", valid_625092 + var valid_625093 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625093 = validateParameter(valid_625093, JString, required = false, + default = nil) + if valid_625093 != nil: + section.add "X-Amz-SignedHeaders", valid_625093 result.add "header", section ## parameters in `formData` object: ## VpcId: JString (required) @@ -115485,38 +115512,38 @@ proc validate_PostModifyVpcTenancy_625081(path: JsonNode; query: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `VpcId` field" - var valid_625092 = formData.getOrDefault("VpcId") - valid_625092 = validateParameter(valid_625092, JString, required = true, - default = nil) - if valid_625092 != nil: - section.add "VpcId", valid_625092 - var valid_625093 = formData.getOrDefault("DryRun") - valid_625093 = validateParameter(valid_625093, JBool, required = false, default = nil) - if valid_625093 != nil: - section.add "DryRun", valid_625093 - var valid_625094 = formData.getOrDefault("InstanceTenancy") + var valid_625094 = formData.getOrDefault("VpcId") valid_625094 = validateParameter(valid_625094, JString, required = true, - default = newJString("default")) + default = nil) if valid_625094 != nil: - section.add "InstanceTenancy", valid_625094 + section.add "VpcId", valid_625094 + var valid_625095 = formData.getOrDefault("DryRun") + valid_625095 = validateParameter(valid_625095, JBool, required = false, default = nil) + if valid_625095 != nil: + section.add "DryRun", valid_625095 + var valid_625096 = formData.getOrDefault("InstanceTenancy") + valid_625096 = validateParameter(valid_625096, JString, required = true, + default = newJString("default")) + if valid_625096 != nil: + section.add "InstanceTenancy", valid_625096 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625095: Call_PostModifyVpcTenancy_625080; path: JsonNode; +proc call*(call_625097: Call_PostModifyVpcTenancy_625082; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the instance tenancy attribute of the specified VPC. You can change the instance tenancy attribute of a VPC to default only. You cannot change the instance tenancy attribute to dedicated.

    After you modify the tenancy of the VPC, any new instances that you launch into the VPC have a tenancy of default, unless you specify otherwise during launch. The tenancy of any existing instances in the VPC is not affected.

    For more information, see Dedicated Instances in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_625095.validator(path, query, header, formData, body) - let scheme = call_625095.pickScheme + let valid = call_625097.validator(path, query, header, formData, body) + let scheme = call_625097.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625095.url(scheme.get, call_625095.host, call_625095.base, - call_625095.route, valid.getOrDefault("path"), + let url = call_625097.url(scheme.get, call_625097.host, call_625097.base, + call_625097.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625095, url, valid) + result = atozHook(call_625097, url, valid) -proc call*(call_625096: Call_PostModifyVpcTenancy_625080; VpcId: string; +proc call*(call_625098: Call_PostModifyVpcTenancy_625082; VpcId: string; DryRun: bool = false; Action: string = "ModifyVpcTenancy"; InstanceTenancy: string = "default"; Version: string = "2016-11-15"): Recallable = ## postModifyVpcTenancy @@ -115529,23 +115556,23 @@ proc call*(call_625096: Call_PostModifyVpcTenancy_625080; VpcId: string; ## InstanceTenancy: string (required) ## : The instance tenancy attribute for the VPC. ## Version: string (required) - var query_625097 = newJObject() - var formData_625098 = newJObject() - add(formData_625098, "VpcId", newJString(VpcId)) - add(formData_625098, "DryRun", newJBool(DryRun)) - add(query_625097, "Action", newJString(Action)) - add(formData_625098, "InstanceTenancy", newJString(InstanceTenancy)) - add(query_625097, "Version", newJString(Version)) - result = call_625096.call(nil, query_625097, nil, formData_625098, nil) + var query_625099 = newJObject() + var formData_625100 = newJObject() + add(formData_625100, "VpcId", newJString(VpcId)) + add(formData_625100, "DryRun", newJBool(DryRun)) + add(query_625099, "Action", newJString(Action)) + add(formData_625100, "InstanceTenancy", newJString(InstanceTenancy)) + add(query_625099, "Version", newJString(Version)) + result = call_625098.call(nil, query_625099, nil, formData_625100, nil) -var postModifyVpcTenancy* = Call_PostModifyVpcTenancy_625080( +var postModifyVpcTenancy* = Call_PostModifyVpcTenancy_625082( name: "postModifyVpcTenancy", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyVpcTenancy", - validator: validate_PostModifyVpcTenancy_625081, base: "/", - url: url_PostModifyVpcTenancy_625082, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostModifyVpcTenancy_625083, base: "/", + url: url_PostModifyVpcTenancy_625084, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyVpcTenancy_625062 = ref object of OpenApiRestCall_610658 -proc url_GetModifyVpcTenancy_625064(protocol: Scheme; host: string; base: string; + Call_GetModifyVpcTenancy_625064 = ref object of OpenApiRestCall_610658 +proc url_GetModifyVpcTenancy_625066(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -115555,7 +115582,7 @@ proc url_GetModifyVpcTenancy_625064(protocol: Scheme; host: string; base: string else: result.path = base & route -proc validate_GetModifyVpcTenancy_625063(path: JsonNode; query: JsonNode; +proc validate_GetModifyVpcTenancy_625065(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the instance tenancy attribute of the specified VPC. You can change the instance tenancy attribute of a VPC to default only. You cannot change the instance tenancy attribute to dedicated.

    After you modify the tenancy of the VPC, any new instances that you launch into the VPC have a tenancy of default, unless you specify otherwise during launch. The tenancy of any existing instances in the VPC is not affected.

    For more information, see Dedicated Instances in the Amazon Elastic Compute Cloud User Guide.

    @@ -115574,31 +115601,31 @@ proc validate_GetModifyVpcTenancy_625063(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625065 = query.getOrDefault("DryRun") - valid_625065 = validateParameter(valid_625065, JBool, required = false, default = nil) - if valid_625065 != nil: - section.add "DryRun", valid_625065 - assert query != nil, "query argument is necessary due to required `VpcId` field" - var valid_625066 = query.getOrDefault("VpcId") - valid_625066 = validateParameter(valid_625066, JString, required = true, - default = nil) - if valid_625066 != nil: - section.add "VpcId", valid_625066 - var valid_625067 = query.getOrDefault("InstanceTenancy") - valid_625067 = validateParameter(valid_625067, JString, required = true, - default = newJString("default")) + var valid_625067 = query.getOrDefault("DryRun") + valid_625067 = validateParameter(valid_625067, JBool, required = false, default = nil) if valid_625067 != nil: - section.add "InstanceTenancy", valid_625067 - var valid_625068 = query.getOrDefault("Action") + section.add "DryRun", valid_625067 + assert query != nil, "query argument is necessary due to required `VpcId` field" + var valid_625068 = query.getOrDefault("VpcId") valid_625068 = validateParameter(valid_625068, JString, required = true, - default = newJString("ModifyVpcTenancy")) + default = nil) if valid_625068 != nil: - section.add "Action", valid_625068 - var valid_625069 = query.getOrDefault("Version") + section.add "VpcId", valid_625068 + var valid_625069 = query.getOrDefault("InstanceTenancy") valid_625069 = validateParameter(valid_625069, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("default")) if valid_625069 != nil: - section.add "Version", valid_625069 + section.add "InstanceTenancy", valid_625069 + var valid_625070 = query.getOrDefault("Action") + valid_625070 = validateParameter(valid_625070, JString, required = true, + default = newJString("ModifyVpcTenancy")) + if valid_625070 != nil: + section.add "Action", valid_625070 + var valid_625071 = query.getOrDefault("Version") + valid_625071 = validateParameter(valid_625071, JString, required = true, + default = newJString("2016-11-15")) + if valid_625071 != nil: + section.add "Version", valid_625071 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -115609,61 +115636,61 @@ proc validate_GetModifyVpcTenancy_625063(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625070 = header.getOrDefault("X-Amz-Signature") - valid_625070 = validateParameter(valid_625070, JString, required = false, - default = nil) - if valid_625070 != nil: - section.add "X-Amz-Signature", valid_625070 - var valid_625071 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625071 = validateParameter(valid_625071, JString, required = false, - default = nil) - if valid_625071 != nil: - section.add "X-Amz-Content-Sha256", valid_625071 - var valid_625072 = header.getOrDefault("X-Amz-Date") + var valid_625072 = header.getOrDefault("X-Amz-Signature") valid_625072 = validateParameter(valid_625072, JString, required = false, default = nil) if valid_625072 != nil: - section.add "X-Amz-Date", valid_625072 - var valid_625073 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625072 + var valid_625073 = header.getOrDefault("X-Amz-Content-Sha256") valid_625073 = validateParameter(valid_625073, JString, required = false, default = nil) if valid_625073 != nil: - section.add "X-Amz-Credential", valid_625073 - var valid_625074 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625073 + var valid_625074 = header.getOrDefault("X-Amz-Date") valid_625074 = validateParameter(valid_625074, JString, required = false, default = nil) if valid_625074 != nil: - section.add "X-Amz-Security-Token", valid_625074 - var valid_625075 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625074 + var valid_625075 = header.getOrDefault("X-Amz-Credential") valid_625075 = validateParameter(valid_625075, JString, required = false, default = nil) if valid_625075 != nil: - section.add "X-Amz-Algorithm", valid_625075 - var valid_625076 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625075 + var valid_625076 = header.getOrDefault("X-Amz-Security-Token") valid_625076 = validateParameter(valid_625076, JString, required = false, default = nil) if valid_625076 != nil: - section.add "X-Amz-SignedHeaders", valid_625076 + section.add "X-Amz-Security-Token", valid_625076 + var valid_625077 = header.getOrDefault("X-Amz-Algorithm") + valid_625077 = validateParameter(valid_625077, JString, required = false, + default = nil) + if valid_625077 != nil: + section.add "X-Amz-Algorithm", valid_625077 + var valid_625078 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625078 = validateParameter(valid_625078, JString, required = false, + default = nil) + if valid_625078 != nil: + section.add "X-Amz-SignedHeaders", valid_625078 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625077: Call_GetModifyVpcTenancy_625062; path: JsonNode; +proc call*(call_625079: Call_GetModifyVpcTenancy_625064; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the instance tenancy attribute of the specified VPC. You can change the instance tenancy attribute of a VPC to default only. You cannot change the instance tenancy attribute to dedicated.

    After you modify the tenancy of the VPC, any new instances that you launch into the VPC have a tenancy of default, unless you specify otherwise during launch. The tenancy of any existing instances in the VPC is not affected.

    For more information, see Dedicated Instances in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_625077.validator(path, query, header, formData, body) - let scheme = call_625077.pickScheme + let valid = call_625079.validator(path, query, header, formData, body) + let scheme = call_625079.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625077.url(scheme.get, call_625077.host, call_625077.base, - call_625077.route, valid.getOrDefault("path"), + let url = call_625079.url(scheme.get, call_625079.host, call_625079.base, + call_625079.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625077, url, valid) + result = atozHook(call_625079, url, valid) -proc call*(call_625078: Call_GetModifyVpcTenancy_625062; VpcId: string; +proc call*(call_625080: Call_GetModifyVpcTenancy_625064; VpcId: string; DryRun: bool = false; InstanceTenancy: string = "default"; Action: string = "ModifyVpcTenancy"; Version: string = "2016-11-15"): Recallable = ## getModifyVpcTenancy @@ -115676,22 +115703,22 @@ proc call*(call_625078: Call_GetModifyVpcTenancy_625062; VpcId: string; ## : The instance tenancy attribute for the VPC. ## Action: string (required) ## Version: string (required) - var query_625079 = newJObject() - add(query_625079, "DryRun", newJBool(DryRun)) - add(query_625079, "VpcId", newJString(VpcId)) - add(query_625079, "InstanceTenancy", newJString(InstanceTenancy)) - add(query_625079, "Action", newJString(Action)) - add(query_625079, "Version", newJString(Version)) - result = call_625078.call(nil, query_625079, nil, nil, nil) + var query_625081 = newJObject() + add(query_625081, "DryRun", newJBool(DryRun)) + add(query_625081, "VpcId", newJString(VpcId)) + add(query_625081, "InstanceTenancy", newJString(InstanceTenancy)) + add(query_625081, "Action", newJString(Action)) + add(query_625081, "Version", newJString(Version)) + result = call_625080.call(nil, query_625081, nil, nil, nil) -var getModifyVpcTenancy* = Call_GetModifyVpcTenancy_625062( +var getModifyVpcTenancy* = Call_GetModifyVpcTenancy_625064( name: "getModifyVpcTenancy", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifyVpcTenancy", - validator: validate_GetModifyVpcTenancy_625063, base: "/", - url: url_GetModifyVpcTenancy_625064, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetModifyVpcTenancy_625065, base: "/", + url: url_GetModifyVpcTenancy_625066, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyVpnConnection_625119 = ref object of OpenApiRestCall_610658 -proc url_PostModifyVpnConnection_625121(protocol: Scheme; host: string; base: string; + Call_PostModifyVpnConnection_625121 = ref object of OpenApiRestCall_610658 +proc url_PostModifyVpnConnection_625123(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -115702,7 +115729,7 @@ proc url_PostModifyVpnConnection_625121(protocol: Scheme; host: string; base: st else: result.path = base & route -proc validate_PostModifyVpnConnection_625120(path: JsonNode; query: JsonNode; +proc validate_PostModifyVpnConnection_625122(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the target gateway of an AWS Site-to-Site VPN connection. The following migration options are available:

    Before you perform the migration to the new gateway, you must configure the new gateway. Use CreateVpnGateway to create a virtual private gateway, or CreateTransitGateway to create a transit gateway.

    This step is required when you migrate from a virtual private gateway with static routes to a transit gateway.

    You must delete the static routes before you migrate to the new gateway.

    Keep a copy of the static route before you delete it. You will need to add back these routes to the transit gateway after the VPN connection migration is complete.

    After you migrate to the new gateway, you might need to modify your VPC route table. Use CreateRoute and DeleteRoute to make the changes described in VPN Gateway Target Modification Required VPC Route Table Updates in the AWS Site-to-Site VPN User Guide.

    When the new gateway is a transit gateway, modify the transit gateway route table to allow traffic between the VPC and the AWS Site-to-Site VPN connection. Use CreateTransitGatewayRoute to add the routes.

    If you deleted VPN static routes, you must add the static routes to the transit gateway route table.

    After you perform this operation, the AWS VPN endpoint's IP addresses on the AWS side and the tunnel options remain intact. Your s2slong; connection will be temporarily unavailable for approximately 10 minutes while we provision the new endpoints

    ## @@ -115714,16 +115741,16 @@ proc validate_PostModifyVpnConnection_625120(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625122 = query.getOrDefault("Action") - valid_625122 = validateParameter(valid_625122, JString, required = true, + var valid_625124 = query.getOrDefault("Action") + valid_625124 = validateParameter(valid_625124, JString, required = true, default = newJString("ModifyVpnConnection")) - if valid_625122 != nil: - section.add "Action", valid_625122 - var valid_625123 = query.getOrDefault("Version") - valid_625123 = validateParameter(valid_625123, JString, required = true, + if valid_625124 != nil: + section.add "Action", valid_625124 + var valid_625125 = query.getOrDefault("Version") + valid_625125 = validateParameter(valid_625125, JString, required = true, default = newJString("2016-11-15")) - if valid_625123 != nil: - section.add "Version", valid_625123 + if valid_625125 != nil: + section.add "Version", valid_625125 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -115734,41 +115761,41 @@ proc validate_PostModifyVpnConnection_625120(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625124 = header.getOrDefault("X-Amz-Signature") - valid_625124 = validateParameter(valid_625124, JString, required = false, - default = nil) - if valid_625124 != nil: - section.add "X-Amz-Signature", valid_625124 - var valid_625125 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625125 = validateParameter(valid_625125, JString, required = false, - default = nil) - if valid_625125 != nil: - section.add "X-Amz-Content-Sha256", valid_625125 - var valid_625126 = header.getOrDefault("X-Amz-Date") + var valid_625126 = header.getOrDefault("X-Amz-Signature") valid_625126 = validateParameter(valid_625126, JString, required = false, default = nil) if valid_625126 != nil: - section.add "X-Amz-Date", valid_625126 - var valid_625127 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625126 + var valid_625127 = header.getOrDefault("X-Amz-Content-Sha256") valid_625127 = validateParameter(valid_625127, JString, required = false, default = nil) if valid_625127 != nil: - section.add "X-Amz-Credential", valid_625127 - var valid_625128 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625127 + var valid_625128 = header.getOrDefault("X-Amz-Date") valid_625128 = validateParameter(valid_625128, JString, required = false, default = nil) if valid_625128 != nil: - section.add "X-Amz-Security-Token", valid_625128 - var valid_625129 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625128 + var valid_625129 = header.getOrDefault("X-Amz-Credential") valid_625129 = validateParameter(valid_625129, JString, required = false, default = nil) if valid_625129 != nil: - section.add "X-Amz-Algorithm", valid_625129 - var valid_625130 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625129 + var valid_625130 = header.getOrDefault("X-Amz-Security-Token") valid_625130 = validateParameter(valid_625130, JString, required = false, default = nil) if valid_625130 != nil: - section.add "X-Amz-SignedHeaders", valid_625130 + section.add "X-Amz-Security-Token", valid_625130 + var valid_625131 = header.getOrDefault("X-Amz-Algorithm") + valid_625131 = validateParameter(valid_625131, JString, required = false, + default = nil) + if valid_625131 != nil: + section.add "X-Amz-Algorithm", valid_625131 + var valid_625132 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625132 = validateParameter(valid_625132, JString, required = false, + default = nil) + if valid_625132 != nil: + section.add "X-Amz-SignedHeaders", valid_625132 result.add "header", section ## parameters in `formData` object: ## VpnGatewayId: JString @@ -115782,49 +115809,49 @@ proc validate_PostModifyVpnConnection_625120(path: JsonNode; query: JsonNode; ## TransitGatewayId: JString ## : The ID of the transit gateway. section = newJObject() - var valid_625131 = formData.getOrDefault("VpnGatewayId") - valid_625131 = validateParameter(valid_625131, JString, required = false, - default = nil) - if valid_625131 != nil: - section.add "VpnGatewayId", valid_625131 - assert formData != nil, "formData argument is necessary due to required `VpnConnectionId` field" - var valid_625132 = formData.getOrDefault("VpnConnectionId") - valid_625132 = validateParameter(valid_625132, JString, required = true, - default = nil) - if valid_625132 != nil: - section.add "VpnConnectionId", valid_625132 - var valid_625133 = formData.getOrDefault("CustomerGatewayId") + var valid_625133 = formData.getOrDefault("VpnGatewayId") valid_625133 = validateParameter(valid_625133, JString, required = false, default = nil) if valid_625133 != nil: - section.add "CustomerGatewayId", valid_625133 - var valid_625134 = formData.getOrDefault("DryRun") - valid_625134 = validateParameter(valid_625134, JBool, required = false, default = nil) + section.add "VpnGatewayId", valid_625133 + assert formData != nil, "formData argument is necessary due to required `VpnConnectionId` field" + var valid_625134 = formData.getOrDefault("VpnConnectionId") + valid_625134 = validateParameter(valid_625134, JString, required = true, + default = nil) if valid_625134 != nil: - section.add "DryRun", valid_625134 - var valid_625135 = formData.getOrDefault("TransitGatewayId") + section.add "VpnConnectionId", valid_625134 + var valid_625135 = formData.getOrDefault("CustomerGatewayId") valid_625135 = validateParameter(valid_625135, JString, required = false, default = nil) if valid_625135 != nil: - section.add "TransitGatewayId", valid_625135 + section.add "CustomerGatewayId", valid_625135 + var valid_625136 = formData.getOrDefault("DryRun") + valid_625136 = validateParameter(valid_625136, JBool, required = false, default = nil) + if valid_625136 != nil: + section.add "DryRun", valid_625136 + var valid_625137 = formData.getOrDefault("TransitGatewayId") + valid_625137 = validateParameter(valid_625137, JString, required = false, + default = nil) + if valid_625137 != nil: + section.add "TransitGatewayId", valid_625137 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625136: Call_PostModifyVpnConnection_625119; path: JsonNode; +proc call*(call_625138: Call_PostModifyVpnConnection_625121; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the target gateway of an AWS Site-to-Site VPN connection. The following migration options are available:

    Before you perform the migration to the new gateway, you must configure the new gateway. Use CreateVpnGateway to create a virtual private gateway, or CreateTransitGateway to create a transit gateway.

    This step is required when you migrate from a virtual private gateway with static routes to a transit gateway.

    You must delete the static routes before you migrate to the new gateway.

    Keep a copy of the static route before you delete it. You will need to add back these routes to the transit gateway after the VPN connection migration is complete.

    After you migrate to the new gateway, you might need to modify your VPC route table. Use CreateRoute and DeleteRoute to make the changes described in VPN Gateway Target Modification Required VPC Route Table Updates in the AWS Site-to-Site VPN User Guide.

    When the new gateway is a transit gateway, modify the transit gateway route table to allow traffic between the VPC and the AWS Site-to-Site VPN connection. Use CreateTransitGatewayRoute to add the routes.

    If you deleted VPN static routes, you must add the static routes to the transit gateway route table.

    After you perform this operation, the AWS VPN endpoint's IP addresses on the AWS side and the tunnel options remain intact. Your s2slong; connection will be temporarily unavailable for approximately 10 minutes while we provision the new endpoints

    ## - let valid = call_625136.validator(path, query, header, formData, body) - let scheme = call_625136.pickScheme + let valid = call_625138.validator(path, query, header, formData, body) + let scheme = call_625138.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625136.url(scheme.get, call_625136.host, call_625136.base, - call_625136.route, valid.getOrDefault("path"), + let url = call_625138.url(scheme.get, call_625138.host, call_625138.base, + call_625138.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625136, url, valid) + result = atozHook(call_625138, url, valid) -proc call*(call_625137: Call_PostModifyVpnConnection_625119; +proc call*(call_625139: Call_PostModifyVpnConnection_625121; VpnConnectionId: string; VpnGatewayId: string = ""; CustomerGatewayId: string = ""; DryRun: bool = false; TransitGatewayId: string = ""; Action: string = "ModifyVpnConnection"; @@ -115843,25 +115870,25 @@ proc call*(call_625137: Call_PostModifyVpnConnection_625119; ## : The ID of the transit gateway. ## Action: string (required) ## Version: string (required) - var query_625138 = newJObject() - var formData_625139 = newJObject() - add(formData_625139, "VpnGatewayId", newJString(VpnGatewayId)) - add(formData_625139, "VpnConnectionId", newJString(VpnConnectionId)) - add(formData_625139, "CustomerGatewayId", newJString(CustomerGatewayId)) - add(formData_625139, "DryRun", newJBool(DryRun)) - add(formData_625139, "TransitGatewayId", newJString(TransitGatewayId)) - add(query_625138, "Action", newJString(Action)) - add(query_625138, "Version", newJString(Version)) - result = call_625137.call(nil, query_625138, nil, formData_625139, nil) + var query_625140 = newJObject() + var formData_625141 = newJObject() + add(formData_625141, "VpnGatewayId", newJString(VpnGatewayId)) + add(formData_625141, "VpnConnectionId", newJString(VpnConnectionId)) + add(formData_625141, "CustomerGatewayId", newJString(CustomerGatewayId)) + add(formData_625141, "DryRun", newJBool(DryRun)) + add(formData_625141, "TransitGatewayId", newJString(TransitGatewayId)) + add(query_625140, "Action", newJString(Action)) + add(query_625140, "Version", newJString(Version)) + result = call_625139.call(nil, query_625140, nil, formData_625141, nil) -var postModifyVpnConnection* = Call_PostModifyVpnConnection_625119( +var postModifyVpnConnection* = Call_PostModifyVpnConnection_625121( name: "postModifyVpnConnection", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyVpnConnection", - validator: validate_PostModifyVpnConnection_625120, base: "/", - url: url_PostModifyVpnConnection_625121, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostModifyVpnConnection_625122, base: "/", + url: url_PostModifyVpnConnection_625123, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyVpnConnection_625099 = ref object of OpenApiRestCall_610658 -proc url_GetModifyVpnConnection_625101(protocol: Scheme; host: string; base: string; + Call_GetModifyVpnConnection_625101 = ref object of OpenApiRestCall_610658 +proc url_GetModifyVpnConnection_625103(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -115871,7 +115898,7 @@ proc url_GetModifyVpnConnection_625101(protocol: Scheme; host: string; base: str else: result.path = base & route -proc validate_GetModifyVpnConnection_625100(path: JsonNode; query: JsonNode; +proc validate_GetModifyVpnConnection_625102(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Modifies the target gateway of an AWS Site-to-Site VPN connection. The following migration options are available:

    Before you perform the migration to the new gateway, you must configure the new gateway. Use CreateVpnGateway to create a virtual private gateway, or CreateTransitGateway to create a transit gateway.

    This step is required when you migrate from a virtual private gateway with static routes to a transit gateway.

    You must delete the static routes before you migrate to the new gateway.

    Keep a copy of the static route before you delete it. You will need to add back these routes to the transit gateway after the VPN connection migration is complete.

    After you migrate to the new gateway, you might need to modify your VPC route table. Use CreateRoute and DeleteRoute to make the changes described in VPN Gateway Target Modification Required VPC Route Table Updates in the AWS Site-to-Site VPN User Guide.

    When the new gateway is a transit gateway, modify the transit gateway route table to allow traffic between the VPC and the AWS Site-to-Site VPN connection. Use CreateTransitGatewayRoute to add the routes.

    If you deleted VPN static routes, you must add the static routes to the transit gateway route table.

    After you perform this operation, the AWS VPN endpoint's IP addresses on the AWS side and the tunnel options remain intact. Your s2slong; connection will be temporarily unavailable for approximately 10 minutes while we provision the new endpoints

    ## @@ -115893,42 +115920,42 @@ proc validate_GetModifyVpnConnection_625100(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625102 = query.getOrDefault("DryRun") - valid_625102 = validateParameter(valid_625102, JBool, required = false, default = nil) - if valid_625102 != nil: - section.add "DryRun", valid_625102 - var valid_625103 = query.getOrDefault("TransitGatewayId") - valid_625103 = validateParameter(valid_625103, JString, required = false, - default = nil) - if valid_625103 != nil: - section.add "TransitGatewayId", valid_625103 - var valid_625104 = query.getOrDefault("CustomerGatewayId") - valid_625104 = validateParameter(valid_625104, JString, required = false, - default = nil) + var valid_625104 = query.getOrDefault("DryRun") + valid_625104 = validateParameter(valid_625104, JBool, required = false, default = nil) if valid_625104 != nil: - section.add "CustomerGatewayId", valid_625104 - var valid_625105 = query.getOrDefault("VpnGatewayId") + section.add "DryRun", valid_625104 + var valid_625105 = query.getOrDefault("TransitGatewayId") valid_625105 = validateParameter(valid_625105, JString, required = false, default = nil) if valid_625105 != nil: - section.add "VpnGatewayId", valid_625105 - assert query != nil, - "query argument is necessary due to required `VpnConnectionId` field" - var valid_625106 = query.getOrDefault("VpnConnectionId") - valid_625106 = validateParameter(valid_625106, JString, required = true, + section.add "TransitGatewayId", valid_625105 + var valid_625106 = query.getOrDefault("CustomerGatewayId") + valid_625106 = validateParameter(valid_625106, JString, required = false, default = nil) if valid_625106 != nil: - section.add "VpnConnectionId", valid_625106 - var valid_625107 = query.getOrDefault("Action") - valid_625107 = validateParameter(valid_625107, JString, required = true, - default = newJString("ModifyVpnConnection")) + section.add "CustomerGatewayId", valid_625106 + var valid_625107 = query.getOrDefault("VpnGatewayId") + valid_625107 = validateParameter(valid_625107, JString, required = false, + default = nil) if valid_625107 != nil: - section.add "Action", valid_625107 - var valid_625108 = query.getOrDefault("Version") + section.add "VpnGatewayId", valid_625107 + assert query != nil, + "query argument is necessary due to required `VpnConnectionId` field" + var valid_625108 = query.getOrDefault("VpnConnectionId") valid_625108 = validateParameter(valid_625108, JString, required = true, - default = newJString("2016-11-15")) + default = nil) if valid_625108 != nil: - section.add "Version", valid_625108 + section.add "VpnConnectionId", valid_625108 + var valid_625109 = query.getOrDefault("Action") + valid_625109 = validateParameter(valid_625109, JString, required = true, + default = newJString("ModifyVpnConnection")) + if valid_625109 != nil: + section.add "Action", valid_625109 + var valid_625110 = query.getOrDefault("Version") + valid_625110 = validateParameter(valid_625110, JString, required = true, + default = newJString("2016-11-15")) + if valid_625110 != nil: + section.add "Version", valid_625110 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -115939,61 +115966,61 @@ proc validate_GetModifyVpnConnection_625100(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625109 = header.getOrDefault("X-Amz-Signature") - valid_625109 = validateParameter(valid_625109, JString, required = false, - default = nil) - if valid_625109 != nil: - section.add "X-Amz-Signature", valid_625109 - var valid_625110 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625110 = validateParameter(valid_625110, JString, required = false, - default = nil) - if valid_625110 != nil: - section.add "X-Amz-Content-Sha256", valid_625110 - var valid_625111 = header.getOrDefault("X-Amz-Date") + var valid_625111 = header.getOrDefault("X-Amz-Signature") valid_625111 = validateParameter(valid_625111, JString, required = false, default = nil) if valid_625111 != nil: - section.add "X-Amz-Date", valid_625111 - var valid_625112 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625111 + var valid_625112 = header.getOrDefault("X-Amz-Content-Sha256") valid_625112 = validateParameter(valid_625112, JString, required = false, default = nil) if valid_625112 != nil: - section.add "X-Amz-Credential", valid_625112 - var valid_625113 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625112 + var valid_625113 = header.getOrDefault("X-Amz-Date") valid_625113 = validateParameter(valid_625113, JString, required = false, default = nil) if valid_625113 != nil: - section.add "X-Amz-Security-Token", valid_625113 - var valid_625114 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625113 + var valid_625114 = header.getOrDefault("X-Amz-Credential") valid_625114 = validateParameter(valid_625114, JString, required = false, default = nil) if valid_625114 != nil: - section.add "X-Amz-Algorithm", valid_625114 - var valid_625115 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625114 + var valid_625115 = header.getOrDefault("X-Amz-Security-Token") valid_625115 = validateParameter(valid_625115, JString, required = false, default = nil) if valid_625115 != nil: - section.add "X-Amz-SignedHeaders", valid_625115 + section.add "X-Amz-Security-Token", valid_625115 + var valid_625116 = header.getOrDefault("X-Amz-Algorithm") + valid_625116 = validateParameter(valid_625116, JString, required = false, + default = nil) + if valid_625116 != nil: + section.add "X-Amz-Algorithm", valid_625116 + var valid_625117 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625117 = validateParameter(valid_625117, JString, required = false, + default = nil) + if valid_625117 != nil: + section.add "X-Amz-SignedHeaders", valid_625117 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625116: Call_GetModifyVpnConnection_625099; path: JsonNode; +proc call*(call_625118: Call_GetModifyVpnConnection_625101; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Modifies the target gateway of an AWS Site-to-Site VPN connection. The following migration options are available:

    Before you perform the migration to the new gateway, you must configure the new gateway. Use CreateVpnGateway to create a virtual private gateway, or CreateTransitGateway to create a transit gateway.

    This step is required when you migrate from a virtual private gateway with static routes to a transit gateway.

    You must delete the static routes before you migrate to the new gateway.

    Keep a copy of the static route before you delete it. You will need to add back these routes to the transit gateway after the VPN connection migration is complete.

    After you migrate to the new gateway, you might need to modify your VPC route table. Use CreateRoute and DeleteRoute to make the changes described in VPN Gateway Target Modification Required VPC Route Table Updates in the AWS Site-to-Site VPN User Guide.

    When the new gateway is a transit gateway, modify the transit gateway route table to allow traffic between the VPC and the AWS Site-to-Site VPN connection. Use CreateTransitGatewayRoute to add the routes.

    If you deleted VPN static routes, you must add the static routes to the transit gateway route table.

    After you perform this operation, the AWS VPN endpoint's IP addresses on the AWS side and the tunnel options remain intact. Your s2slong; connection will be temporarily unavailable for approximately 10 minutes while we provision the new endpoints

    ## - let valid = call_625116.validator(path, query, header, formData, body) - let scheme = call_625116.pickScheme + let valid = call_625118.validator(path, query, header, formData, body) + let scheme = call_625118.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625116.url(scheme.get, call_625116.host, call_625116.base, - call_625116.route, valid.getOrDefault("path"), + let url = call_625118.url(scheme.get, call_625118.host, call_625118.base, + call_625118.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625116, url, valid) + result = atozHook(call_625118, url, valid) -proc call*(call_625117: Call_GetModifyVpnConnection_625099; +proc call*(call_625119: Call_GetModifyVpnConnection_625101; VpnConnectionId: string; DryRun: bool = false; TransitGatewayId: string = ""; CustomerGatewayId: string = ""; VpnGatewayId: string = ""; Action: string = "ModifyVpnConnection"; @@ -116012,24 +116039,24 @@ proc call*(call_625117: Call_GetModifyVpnConnection_625099; ## : The ID of the VPN connection. ## Action: string (required) ## Version: string (required) - var query_625118 = newJObject() - add(query_625118, "DryRun", newJBool(DryRun)) - add(query_625118, "TransitGatewayId", newJString(TransitGatewayId)) - add(query_625118, "CustomerGatewayId", newJString(CustomerGatewayId)) - add(query_625118, "VpnGatewayId", newJString(VpnGatewayId)) - add(query_625118, "VpnConnectionId", newJString(VpnConnectionId)) - add(query_625118, "Action", newJString(Action)) - add(query_625118, "Version", newJString(Version)) - result = call_625117.call(nil, query_625118, nil, nil, nil) + var query_625120 = newJObject() + add(query_625120, "DryRun", newJBool(DryRun)) + add(query_625120, "TransitGatewayId", newJString(TransitGatewayId)) + add(query_625120, "CustomerGatewayId", newJString(CustomerGatewayId)) + add(query_625120, "VpnGatewayId", newJString(VpnGatewayId)) + add(query_625120, "VpnConnectionId", newJString(VpnConnectionId)) + add(query_625120, "Action", newJString(Action)) + add(query_625120, "Version", newJString(Version)) + result = call_625119.call(nil, query_625120, nil, nil, nil) -var getModifyVpnConnection* = Call_GetModifyVpnConnection_625099( +var getModifyVpnConnection* = Call_GetModifyVpnConnection_625101( name: "getModifyVpnConnection", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifyVpnConnection", - validator: validate_GetModifyVpnConnection_625100, base: "/", - url: url_GetModifyVpnConnection_625101, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetModifyVpnConnection_625102, base: "/", + url: url_GetModifyVpnConnection_625103, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyVpnTunnelCertificate_625158 = ref object of OpenApiRestCall_610658 -proc url_PostModifyVpnTunnelCertificate_625160(protocol: Scheme; host: string; + Call_PostModifyVpnTunnelCertificate_625160 = ref object of OpenApiRestCall_610658 +proc url_PostModifyVpnTunnelCertificate_625162(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -116039,7 +116066,7 @@ proc url_PostModifyVpnTunnelCertificate_625160(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostModifyVpnTunnelCertificate_625159(path: JsonNode; +proc validate_PostModifyVpnTunnelCertificate_625161(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modifies the VPN tunnel endpoint certificate. ## @@ -116051,16 +116078,16 @@ proc validate_PostModifyVpnTunnelCertificate_625159(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625161 = query.getOrDefault("Action") - valid_625161 = validateParameter(valid_625161, JString, required = true, default = newJString( + var valid_625163 = query.getOrDefault("Action") + valid_625163 = validateParameter(valid_625163, JString, required = true, default = newJString( "ModifyVpnTunnelCertificate")) - if valid_625161 != nil: - section.add "Action", valid_625161 - var valid_625162 = query.getOrDefault("Version") - valid_625162 = validateParameter(valid_625162, JString, required = true, + if valid_625163 != nil: + section.add "Action", valid_625163 + var valid_625164 = query.getOrDefault("Version") + valid_625164 = validateParameter(valid_625164, JString, required = true, default = newJString("2016-11-15")) - if valid_625162 != nil: - section.add "Version", valid_625162 + if valid_625164 != nil: + section.add "Version", valid_625164 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -116071,41 +116098,41 @@ proc validate_PostModifyVpnTunnelCertificate_625159(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625163 = header.getOrDefault("X-Amz-Signature") - valid_625163 = validateParameter(valid_625163, JString, required = false, - default = nil) - if valid_625163 != nil: - section.add "X-Amz-Signature", valid_625163 - var valid_625164 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625164 = validateParameter(valid_625164, JString, required = false, - default = nil) - if valid_625164 != nil: - section.add "X-Amz-Content-Sha256", valid_625164 - var valid_625165 = header.getOrDefault("X-Amz-Date") + var valid_625165 = header.getOrDefault("X-Amz-Signature") valid_625165 = validateParameter(valid_625165, JString, required = false, default = nil) if valid_625165 != nil: - section.add "X-Amz-Date", valid_625165 - var valid_625166 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625165 + var valid_625166 = header.getOrDefault("X-Amz-Content-Sha256") valid_625166 = validateParameter(valid_625166, JString, required = false, default = nil) if valid_625166 != nil: - section.add "X-Amz-Credential", valid_625166 - var valid_625167 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625166 + var valid_625167 = header.getOrDefault("X-Amz-Date") valid_625167 = validateParameter(valid_625167, JString, required = false, default = nil) if valid_625167 != nil: - section.add "X-Amz-Security-Token", valid_625167 - var valid_625168 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625167 + var valid_625168 = header.getOrDefault("X-Amz-Credential") valid_625168 = validateParameter(valid_625168, JString, required = false, default = nil) if valid_625168 != nil: - section.add "X-Amz-Algorithm", valid_625168 - var valid_625169 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625168 + var valid_625169 = header.getOrDefault("X-Amz-Security-Token") valid_625169 = validateParameter(valid_625169, JString, required = false, default = nil) if valid_625169 != nil: - section.add "X-Amz-SignedHeaders", valid_625169 + section.add "X-Amz-Security-Token", valid_625169 + var valid_625170 = header.getOrDefault("X-Amz-Algorithm") + valid_625170 = validateParameter(valid_625170, JString, required = false, + default = nil) + if valid_625170 != nil: + section.add "X-Amz-Algorithm", valid_625170 + var valid_625171 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625171 = validateParameter(valid_625171, JString, required = false, + default = nil) + if valid_625171 != nil: + section.add "X-Amz-SignedHeaders", valid_625171 result.add "header", section ## parameters in `formData` object: ## VpnTunnelOutsideIpAddress: JString (required) @@ -116116,38 +116143,38 @@ proc validate_PostModifyVpnTunnelCertificate_625159(path: JsonNode; ## : 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. section = newJObject() assert formData != nil, "formData argument is necessary due to required `VpnTunnelOutsideIpAddress` field" - var valid_625170 = formData.getOrDefault("VpnTunnelOutsideIpAddress") - valid_625170 = validateParameter(valid_625170, JString, required = true, - default = nil) - if valid_625170 != nil: - section.add "VpnTunnelOutsideIpAddress", valid_625170 - var valid_625171 = formData.getOrDefault("VpnConnectionId") - valid_625171 = validateParameter(valid_625171, JString, required = true, + var valid_625172 = formData.getOrDefault("VpnTunnelOutsideIpAddress") + valid_625172 = validateParameter(valid_625172, JString, required = true, default = nil) - if valid_625171 != nil: - section.add "VpnConnectionId", valid_625171 - var valid_625172 = formData.getOrDefault("DryRun") - valid_625172 = validateParameter(valid_625172, JBool, required = false, default = nil) if valid_625172 != nil: - section.add "DryRun", valid_625172 + section.add "VpnTunnelOutsideIpAddress", valid_625172 + var valid_625173 = formData.getOrDefault("VpnConnectionId") + valid_625173 = validateParameter(valid_625173, JString, required = true, + default = nil) + if valid_625173 != nil: + section.add "VpnConnectionId", valid_625173 + var valid_625174 = formData.getOrDefault("DryRun") + valid_625174 = validateParameter(valid_625174, JBool, required = false, default = nil) + if valid_625174 != nil: + section.add "DryRun", valid_625174 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625173: Call_PostModifyVpnTunnelCertificate_625158; path: JsonNode; +proc call*(call_625175: Call_PostModifyVpnTunnelCertificate_625160; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modifies the VPN tunnel endpoint certificate. ## - let valid = call_625173.validator(path, query, header, formData, body) - let scheme = call_625173.pickScheme + let valid = call_625175.validator(path, query, header, formData, body) + let scheme = call_625175.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625173.url(scheme.get, call_625173.host, call_625173.base, - call_625173.route, valid.getOrDefault("path"), + let url = call_625175.url(scheme.get, call_625175.host, call_625175.base, + call_625175.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625173, url, valid) + result = atozHook(call_625175, url, valid) -proc call*(call_625174: Call_PostModifyVpnTunnelCertificate_625158; +proc call*(call_625176: Call_PostModifyVpnTunnelCertificate_625160; VpnTunnelOutsideIpAddress: string; VpnConnectionId: string; DryRun: bool = false; Action: string = "ModifyVpnTunnelCertificate"; Version: string = "2016-11-15"): Recallable = @@ -116161,25 +116188,25 @@ proc call*(call_625174: Call_PostModifyVpnTunnelCertificate_625158; ## : 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. ## Action: string (required) ## Version: string (required) - var query_625175 = newJObject() - var formData_625176 = newJObject() - add(formData_625176, "VpnTunnelOutsideIpAddress", + var query_625177 = newJObject() + var formData_625178 = newJObject() + add(formData_625178, "VpnTunnelOutsideIpAddress", newJString(VpnTunnelOutsideIpAddress)) - add(formData_625176, "VpnConnectionId", newJString(VpnConnectionId)) - add(formData_625176, "DryRun", newJBool(DryRun)) - add(query_625175, "Action", newJString(Action)) - add(query_625175, "Version", newJString(Version)) - result = call_625174.call(nil, query_625175, nil, formData_625176, nil) + add(formData_625178, "VpnConnectionId", newJString(VpnConnectionId)) + add(formData_625178, "DryRun", newJBool(DryRun)) + add(query_625177, "Action", newJString(Action)) + add(query_625177, "Version", newJString(Version)) + result = call_625176.call(nil, query_625177, nil, formData_625178, nil) -var postModifyVpnTunnelCertificate* = Call_PostModifyVpnTunnelCertificate_625158( +var postModifyVpnTunnelCertificate* = Call_PostModifyVpnTunnelCertificate_625160( name: "postModifyVpnTunnelCertificate", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyVpnTunnelCertificate", - validator: validate_PostModifyVpnTunnelCertificate_625159, base: "/", - url: url_PostModifyVpnTunnelCertificate_625160, + validator: validate_PostModifyVpnTunnelCertificate_625161, base: "/", + url: url_PostModifyVpnTunnelCertificate_625162, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyVpnTunnelCertificate_625140 = ref object of OpenApiRestCall_610658 -proc url_GetModifyVpnTunnelCertificate_625142(protocol: Scheme; host: string; + Call_GetModifyVpnTunnelCertificate_625142 = ref object of OpenApiRestCall_610658 +proc url_GetModifyVpnTunnelCertificate_625144(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -116189,7 +116216,7 @@ proc url_GetModifyVpnTunnelCertificate_625142(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetModifyVpnTunnelCertificate_625141(path: JsonNode; query: JsonNode; +proc validate_GetModifyVpnTunnelCertificate_625143(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modifies the VPN tunnel endpoint certificate. ## @@ -116207,31 +116234,31 @@ proc validate_GetModifyVpnTunnelCertificate_625141(path: JsonNode; query: JsonNo ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625143 = query.getOrDefault("DryRun") - valid_625143 = validateParameter(valid_625143, JBool, required = false, default = nil) - if valid_625143 != nil: - section.add "DryRun", valid_625143 + var valid_625145 = query.getOrDefault("DryRun") + valid_625145 = validateParameter(valid_625145, JBool, required = false, default = nil) + if valid_625145 != nil: + section.add "DryRun", valid_625145 assert query != nil, "query argument is necessary due to required `VpnTunnelOutsideIpAddress` field" - var valid_625144 = query.getOrDefault("VpnTunnelOutsideIpAddress") - valid_625144 = validateParameter(valid_625144, JString, required = true, + var valid_625146 = query.getOrDefault("VpnTunnelOutsideIpAddress") + valid_625146 = validateParameter(valid_625146, JString, required = true, default = nil) - if valid_625144 != nil: - section.add "VpnTunnelOutsideIpAddress", valid_625144 - var valid_625145 = query.getOrDefault("VpnConnectionId") - valid_625145 = validateParameter(valid_625145, JString, required = true, - default = nil) - if valid_625145 != nil: - section.add "VpnConnectionId", valid_625145 - var valid_625146 = query.getOrDefault("Action") - valid_625146 = validateParameter(valid_625146, JString, required = true, default = newJString( - "ModifyVpnTunnelCertificate")) if valid_625146 != nil: - section.add "Action", valid_625146 - var valid_625147 = query.getOrDefault("Version") + section.add "VpnTunnelOutsideIpAddress", valid_625146 + var valid_625147 = query.getOrDefault("VpnConnectionId") valid_625147 = validateParameter(valid_625147, JString, required = true, - default = newJString("2016-11-15")) + default = nil) if valid_625147 != nil: - section.add "Version", valid_625147 + section.add "VpnConnectionId", valid_625147 + var valid_625148 = query.getOrDefault("Action") + valid_625148 = validateParameter(valid_625148, JString, required = true, default = newJString( + "ModifyVpnTunnelCertificate")) + if valid_625148 != nil: + section.add "Action", valid_625148 + var valid_625149 = query.getOrDefault("Version") + valid_625149 = validateParameter(valid_625149, JString, required = true, + default = newJString("2016-11-15")) + if valid_625149 != nil: + section.add "Version", valid_625149 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -116242,61 +116269,61 @@ proc validate_GetModifyVpnTunnelCertificate_625141(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625148 = header.getOrDefault("X-Amz-Signature") - valid_625148 = validateParameter(valid_625148, JString, required = false, - default = nil) - if valid_625148 != nil: - section.add "X-Amz-Signature", valid_625148 - var valid_625149 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625149 = validateParameter(valid_625149, JString, required = false, - default = nil) - if valid_625149 != nil: - section.add "X-Amz-Content-Sha256", valid_625149 - var valid_625150 = header.getOrDefault("X-Amz-Date") + var valid_625150 = header.getOrDefault("X-Amz-Signature") valid_625150 = validateParameter(valid_625150, JString, required = false, default = nil) if valid_625150 != nil: - section.add "X-Amz-Date", valid_625150 - var valid_625151 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625150 + var valid_625151 = header.getOrDefault("X-Amz-Content-Sha256") valid_625151 = validateParameter(valid_625151, JString, required = false, default = nil) if valid_625151 != nil: - section.add "X-Amz-Credential", valid_625151 - var valid_625152 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625151 + var valid_625152 = header.getOrDefault("X-Amz-Date") valid_625152 = validateParameter(valid_625152, JString, required = false, default = nil) if valid_625152 != nil: - section.add "X-Amz-Security-Token", valid_625152 - var valid_625153 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625152 + var valid_625153 = header.getOrDefault("X-Amz-Credential") valid_625153 = validateParameter(valid_625153, JString, required = false, default = nil) if valid_625153 != nil: - section.add "X-Amz-Algorithm", valid_625153 - var valid_625154 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625153 + var valid_625154 = header.getOrDefault("X-Amz-Security-Token") valid_625154 = validateParameter(valid_625154, JString, required = false, default = nil) if valid_625154 != nil: - section.add "X-Amz-SignedHeaders", valid_625154 + section.add "X-Amz-Security-Token", valid_625154 + var valid_625155 = header.getOrDefault("X-Amz-Algorithm") + valid_625155 = validateParameter(valid_625155, JString, required = false, + default = nil) + if valid_625155 != nil: + section.add "X-Amz-Algorithm", valid_625155 + var valid_625156 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625156 = validateParameter(valid_625156, JString, required = false, + default = nil) + if valid_625156 != nil: + section.add "X-Amz-SignedHeaders", valid_625156 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625155: Call_GetModifyVpnTunnelCertificate_625140; path: JsonNode; +proc call*(call_625157: Call_GetModifyVpnTunnelCertificate_625142; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modifies the VPN tunnel endpoint certificate. ## - let valid = call_625155.validator(path, query, header, formData, body) - let scheme = call_625155.pickScheme + let valid = call_625157.validator(path, query, header, formData, body) + let scheme = call_625157.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625155.url(scheme.get, call_625155.host, call_625155.base, - call_625155.route, valid.getOrDefault("path"), + let url = call_625157.url(scheme.get, call_625157.host, call_625157.base, + call_625157.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625155, url, valid) + result = atozHook(call_625157, url, valid) -proc call*(call_625156: Call_GetModifyVpnTunnelCertificate_625140; +proc call*(call_625158: Call_GetModifyVpnTunnelCertificate_625142; VpnTunnelOutsideIpAddress: string; VpnConnectionId: string; DryRun: bool = false; Action: string = "ModifyVpnTunnelCertificate"; Version: string = "2016-11-15"): Recallable = @@ -116310,24 +116337,24 @@ proc call*(call_625156: Call_GetModifyVpnTunnelCertificate_625140; ## : The ID of the AWS Site-to-Site VPN connection. ## Action: string (required) ## Version: string (required) - var query_625157 = newJObject() - add(query_625157, "DryRun", newJBool(DryRun)) - add(query_625157, "VpnTunnelOutsideIpAddress", + var query_625159 = newJObject() + add(query_625159, "DryRun", newJBool(DryRun)) + add(query_625159, "VpnTunnelOutsideIpAddress", newJString(VpnTunnelOutsideIpAddress)) - add(query_625157, "VpnConnectionId", newJString(VpnConnectionId)) - add(query_625157, "Action", newJString(Action)) - add(query_625157, "Version", newJString(Version)) - result = call_625156.call(nil, query_625157, nil, nil, nil) + add(query_625159, "VpnConnectionId", newJString(VpnConnectionId)) + add(query_625159, "Action", newJString(Action)) + add(query_625159, "Version", newJString(Version)) + result = call_625158.call(nil, query_625159, nil, nil, nil) -var getModifyVpnTunnelCertificate* = Call_GetModifyVpnTunnelCertificate_625140( +var getModifyVpnTunnelCertificate* = Call_GetModifyVpnTunnelCertificate_625142( name: "getModifyVpnTunnelCertificate", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifyVpnTunnelCertificate", - validator: validate_GetModifyVpnTunnelCertificate_625141, base: "/", - url: url_GetModifyVpnTunnelCertificate_625142, + validator: validate_GetModifyVpnTunnelCertificate_625143, base: "/", + url: url_GetModifyVpnTunnelCertificate_625144, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostModifyVpnTunnelOptions_625210 = ref object of OpenApiRestCall_610658 -proc url_PostModifyVpnTunnelOptions_625212(protocol: Scheme; host: string; + Call_PostModifyVpnTunnelOptions_625212 = ref object of OpenApiRestCall_610658 +proc url_PostModifyVpnTunnelOptions_625214(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -116337,7 +116364,7 @@ proc url_PostModifyVpnTunnelOptions_625212(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostModifyVpnTunnelOptions_625211(path: JsonNode; query: JsonNode; +proc validate_PostModifyVpnTunnelOptions_625213(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modifies the options for a VPN tunnel in an AWS Site-to-Site VPN connection. You can modify multiple options for a tunnel in a single request, but you can only modify one tunnel at a time. For more information, see Site-to-Site VPN Tunnel Options for Your Site-to-Site VPN Connection in the AWS Site-to-Site VPN User Guide. ## @@ -116349,16 +116376,16 @@ proc validate_PostModifyVpnTunnelOptions_625211(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625213 = query.getOrDefault("Action") - valid_625213 = validateParameter(valid_625213, JString, required = true, + var valid_625215 = query.getOrDefault("Action") + valid_625215 = validateParameter(valid_625215, JString, required = true, default = newJString("ModifyVpnTunnelOptions")) - if valid_625213 != nil: - section.add "Action", valid_625213 - var valid_625214 = query.getOrDefault("Version") - valid_625214 = validateParameter(valid_625214, JString, required = true, + if valid_625215 != nil: + section.add "Action", valid_625215 + var valid_625216 = query.getOrDefault("Version") + valid_625216 = validateParameter(valid_625216, JString, required = true, default = newJString("2016-11-15")) - if valid_625214 != nil: - section.add "Version", valid_625214 + if valid_625216 != nil: + section.add "Version", valid_625216 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -116369,41 +116396,41 @@ proc validate_PostModifyVpnTunnelOptions_625211(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625215 = header.getOrDefault("X-Amz-Signature") - valid_625215 = validateParameter(valid_625215, JString, required = false, - default = nil) - if valid_625215 != nil: - section.add "X-Amz-Signature", valid_625215 - var valid_625216 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625216 = validateParameter(valid_625216, JString, required = false, - default = nil) - if valid_625216 != nil: - section.add "X-Amz-Content-Sha256", valid_625216 - var valid_625217 = header.getOrDefault("X-Amz-Date") + var valid_625217 = header.getOrDefault("X-Amz-Signature") valid_625217 = validateParameter(valid_625217, JString, required = false, default = nil) if valid_625217 != nil: - section.add "X-Amz-Date", valid_625217 - var valid_625218 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625217 + var valid_625218 = header.getOrDefault("X-Amz-Content-Sha256") valid_625218 = validateParameter(valid_625218, JString, required = false, default = nil) if valid_625218 != nil: - section.add "X-Amz-Credential", valid_625218 - var valid_625219 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625218 + var valid_625219 = header.getOrDefault("X-Amz-Date") valid_625219 = validateParameter(valid_625219, JString, required = false, default = nil) if valid_625219 != nil: - section.add "X-Amz-Security-Token", valid_625219 - var valid_625220 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625219 + var valid_625220 = header.getOrDefault("X-Amz-Credential") valid_625220 = validateParameter(valid_625220, JString, required = false, default = nil) if valid_625220 != nil: - section.add "X-Amz-Algorithm", valid_625220 - var valid_625221 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625220 + var valid_625221 = header.getOrDefault("X-Amz-Security-Token") valid_625221 = validateParameter(valid_625221, JString, required = false, default = nil) if valid_625221 != nil: - section.add "X-Amz-SignedHeaders", valid_625221 + section.add "X-Amz-Security-Token", valid_625221 + var valid_625222 = header.getOrDefault("X-Amz-Algorithm") + valid_625222 = validateParameter(valid_625222, JString, required = false, + default = nil) + if valid_625222 != nil: + section.add "X-Amz-Algorithm", valid_625222 + var valid_625223 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625223 = validateParameter(valid_625223, JString, required = false, + default = nil) + if valid_625223 != nil: + section.add "X-Amz-SignedHeaders", valid_625223 result.add "header", section ## parameters in `formData` object: ## TunnelOptions.Phase1EncryptionAlgorithms: JArray @@ -116458,114 +116485,114 @@ proc validate_PostModifyVpnTunnelOptions_625211(path: JsonNode; query: JsonNode; ## : The AWS Site-to-Site VPN tunnel options to modify. ##

    The percentage of the rekey window (determined by RekeyMarginTimeSeconds) during which the rekey time is randomly selected.

    Constraints: A value between 0 and 100.

    Default: 100

    section = newJObject() - var valid_625222 = formData.getOrDefault("TunnelOptions.Phase1EncryptionAlgorithms") - valid_625222 = validateParameter(valid_625222, JArray, required = false, - default = nil) - if valid_625222 != nil: - section.add "TunnelOptions.Phase1EncryptionAlgorithms", valid_625222 - var valid_625223 = formData.getOrDefault("TunnelOptions.Phase2IntegrityAlgorithms") - valid_625223 = validateParameter(valid_625223, JArray, required = false, - default = nil) - if valid_625223 != nil: - section.add "TunnelOptions.Phase2IntegrityAlgorithms", valid_625223 - assert formData != nil, "formData argument is necessary due to required `VpnTunnelOutsideIpAddress` field" - var valid_625224 = formData.getOrDefault("VpnTunnelOutsideIpAddress") - valid_625224 = validateParameter(valid_625224, JString, required = true, + var valid_625224 = formData.getOrDefault("TunnelOptions.Phase1EncryptionAlgorithms") + valid_625224 = validateParameter(valid_625224, JArray, required = false, default = nil) if valid_625224 != nil: - section.add "VpnTunnelOutsideIpAddress", valid_625224 - var valid_625225 = formData.getOrDefault("TunnelOptions.Phase2EncryptionAlgorithms") + section.add "TunnelOptions.Phase1EncryptionAlgorithms", valid_625224 + var valid_625225 = formData.getOrDefault("TunnelOptions.Phase2IntegrityAlgorithms") valid_625225 = validateParameter(valid_625225, JArray, required = false, default = nil) if valid_625225 != nil: - section.add "TunnelOptions.Phase2EncryptionAlgorithms", valid_625225 - var valid_625226 = formData.getOrDefault("VpnConnectionId") + section.add "TunnelOptions.Phase2IntegrityAlgorithms", valid_625225 + assert formData != nil, "formData argument is necessary due to required `VpnTunnelOutsideIpAddress` field" + var valid_625226 = formData.getOrDefault("VpnTunnelOutsideIpAddress") valid_625226 = validateParameter(valid_625226, JString, required = true, default = nil) if valid_625226 != nil: - section.add "VpnConnectionId", valid_625226 - var valid_625227 = formData.getOrDefault("TunnelOptions.Phase1LifetimeSeconds") - valid_625227 = validateParameter(valid_625227, JString, required = false, + section.add "VpnTunnelOutsideIpAddress", valid_625226 + var valid_625227 = formData.getOrDefault("TunnelOptions.Phase2EncryptionAlgorithms") + valid_625227 = validateParameter(valid_625227, JArray, required = false, default = nil) if valid_625227 != nil: - section.add "TunnelOptions.Phase1LifetimeSeconds", valid_625227 - var valid_625228 = formData.getOrDefault("TunnelOptions.Phase1DHGroupNumbers") - valid_625228 = validateParameter(valid_625228, JArray, required = false, + section.add "TunnelOptions.Phase2EncryptionAlgorithms", valid_625227 + var valid_625228 = formData.getOrDefault("VpnConnectionId") + valid_625228 = validateParameter(valid_625228, JString, required = true, default = nil) if valid_625228 != nil: - section.add "TunnelOptions.Phase1DHGroupNumbers", valid_625228 - var valid_625229 = formData.getOrDefault("TunnelOptions.TunnelInsideCidr") + section.add "VpnConnectionId", valid_625228 + var valid_625229 = formData.getOrDefault("TunnelOptions.Phase1LifetimeSeconds") valid_625229 = validateParameter(valid_625229, JString, required = false, default = nil) if valid_625229 != nil: - section.add "TunnelOptions.TunnelInsideCidr", valid_625229 - var valid_625230 = formData.getOrDefault("TunnelOptions.RekeyMarginTimeSeconds") - valid_625230 = validateParameter(valid_625230, JString, required = false, + section.add "TunnelOptions.Phase1LifetimeSeconds", valid_625229 + var valid_625230 = formData.getOrDefault("TunnelOptions.Phase1DHGroupNumbers") + valid_625230 = validateParameter(valid_625230, JArray, required = false, default = nil) if valid_625230 != nil: - section.add "TunnelOptions.RekeyMarginTimeSeconds", valid_625230 - var valid_625231 = formData.getOrDefault("TunnelOptions.Phase2LifetimeSeconds") + section.add "TunnelOptions.Phase1DHGroupNumbers", valid_625230 + var valid_625231 = formData.getOrDefault("TunnelOptions.TunnelInsideCidr") valid_625231 = validateParameter(valid_625231, JString, required = false, default = nil) if valid_625231 != nil: - section.add "TunnelOptions.Phase2LifetimeSeconds", valid_625231 - var valid_625232 = formData.getOrDefault("TunnelOptions.DPDTimeoutSeconds") + section.add "TunnelOptions.TunnelInsideCidr", valid_625231 + var valid_625232 = formData.getOrDefault("TunnelOptions.RekeyMarginTimeSeconds") valid_625232 = validateParameter(valid_625232, JString, required = false, default = nil) if valid_625232 != nil: - section.add "TunnelOptions.DPDTimeoutSeconds", valid_625232 - var valid_625233 = formData.getOrDefault("TunnelOptions.Phase1IntegrityAlgorithms") - valid_625233 = validateParameter(valid_625233, JArray, required = false, + section.add "TunnelOptions.RekeyMarginTimeSeconds", valid_625232 + var valid_625233 = formData.getOrDefault("TunnelOptions.Phase2LifetimeSeconds") + valid_625233 = validateParameter(valid_625233, JString, required = false, default = nil) if valid_625233 != nil: - section.add "TunnelOptions.Phase1IntegrityAlgorithms", valid_625233 - var valid_625234 = formData.getOrDefault("TunnelOptions.IKEVersions") - valid_625234 = validateParameter(valid_625234, JArray, required = false, + section.add "TunnelOptions.Phase2LifetimeSeconds", valid_625233 + var valid_625234 = formData.getOrDefault("TunnelOptions.DPDTimeoutSeconds") + valid_625234 = validateParameter(valid_625234, JString, required = false, default = nil) if valid_625234 != nil: - section.add "TunnelOptions.IKEVersions", valid_625234 - var valid_625235 = formData.getOrDefault("DryRun") - valid_625235 = validateParameter(valid_625235, JBool, required = false, default = nil) + section.add "TunnelOptions.DPDTimeoutSeconds", valid_625234 + var valid_625235 = formData.getOrDefault("TunnelOptions.Phase1IntegrityAlgorithms") + valid_625235 = validateParameter(valid_625235, JArray, required = false, + default = nil) if valid_625235 != nil: - section.add "DryRun", valid_625235 - var valid_625236 = formData.getOrDefault("TunnelOptions.PreSharedKey") - valid_625236 = validateParameter(valid_625236, JString, required = false, + section.add "TunnelOptions.Phase1IntegrityAlgorithms", valid_625235 + var valid_625236 = formData.getOrDefault("TunnelOptions.IKEVersions") + valid_625236 = validateParameter(valid_625236, JArray, required = false, default = nil) if valid_625236 != nil: - section.add "TunnelOptions.PreSharedKey", valid_625236 - var valid_625237 = formData.getOrDefault("TunnelOptions.Phase2DHGroupNumbers") - valid_625237 = validateParameter(valid_625237, JArray, required = false, - default = nil) + section.add "TunnelOptions.IKEVersions", valid_625236 + var valid_625237 = formData.getOrDefault("DryRun") + valid_625237 = validateParameter(valid_625237, JBool, required = false, default = nil) if valid_625237 != nil: - section.add "TunnelOptions.Phase2DHGroupNumbers", valid_625237 - var valid_625238 = formData.getOrDefault("TunnelOptions.ReplayWindowSize") + section.add "DryRun", valid_625237 + var valid_625238 = formData.getOrDefault("TunnelOptions.PreSharedKey") valid_625238 = validateParameter(valid_625238, JString, required = false, default = nil) if valid_625238 != nil: - section.add "TunnelOptions.ReplayWindowSize", valid_625238 - var valid_625239 = formData.getOrDefault("TunnelOptions.RekeyFuzzPercentage") - valid_625239 = validateParameter(valid_625239, JString, required = false, + section.add "TunnelOptions.PreSharedKey", valid_625238 + var valid_625239 = formData.getOrDefault("TunnelOptions.Phase2DHGroupNumbers") + valid_625239 = validateParameter(valid_625239, JArray, required = false, default = nil) if valid_625239 != nil: - section.add "TunnelOptions.RekeyFuzzPercentage", valid_625239 + section.add "TunnelOptions.Phase2DHGroupNumbers", valid_625239 + var valid_625240 = formData.getOrDefault("TunnelOptions.ReplayWindowSize") + valid_625240 = validateParameter(valid_625240, JString, required = false, + default = nil) + if valid_625240 != nil: + section.add "TunnelOptions.ReplayWindowSize", valid_625240 + var valid_625241 = formData.getOrDefault("TunnelOptions.RekeyFuzzPercentage") + valid_625241 = validateParameter(valid_625241, JString, required = false, + default = nil) + if valid_625241 != nil: + section.add "TunnelOptions.RekeyFuzzPercentage", valid_625241 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625240: Call_PostModifyVpnTunnelOptions_625210; path: JsonNode; +proc call*(call_625242: Call_PostModifyVpnTunnelOptions_625212; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modifies the options for a VPN tunnel in an AWS Site-to-Site VPN connection. You can modify multiple options for a tunnel in a single request, but you can only modify one tunnel at a time. For more information, see Site-to-Site VPN Tunnel Options for Your Site-to-Site VPN Connection in the AWS Site-to-Site VPN User Guide. ## - let valid = call_625240.validator(path, query, header, formData, body) - let scheme = call_625240.pickScheme + let valid = call_625242.validator(path, query, header, formData, body) + let scheme = call_625242.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625240.url(scheme.get, call_625240.host, call_625240.base, - call_625240.route, valid.getOrDefault("path"), + let url = call_625242.url(scheme.get, call_625242.host, call_625242.base, + call_625242.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625240, url, valid) + result = atozHook(call_625242, url, valid) -proc call*(call_625241: Call_PostModifyVpnTunnelOptions_625210; +proc call*(call_625243: Call_PostModifyVpnTunnelOptions_625212; VpnTunnelOutsideIpAddress: string; VpnConnectionId: string; TunnelOptionsPhase1EncryptionAlgorithms: JsonNode = nil; TunnelOptionsPhase2IntegrityAlgorithms: JsonNode = nil; @@ -116639,61 +116666,61 @@ proc call*(call_625241: Call_PostModifyVpnTunnelOptions_625210; ## TunnelOptionsRekeyFuzzPercentage: string ## : The AWS Site-to-Site VPN tunnel options to modify. ##

    The percentage of the rekey window (determined by RekeyMarginTimeSeconds) during which the rekey time is randomly selected.

    Constraints: A value between 0 and 100.

    Default: 100

    - var query_625242 = newJObject() - var formData_625243 = newJObject() + var query_625244 = newJObject() + var formData_625245 = newJObject() if TunnelOptionsPhase1EncryptionAlgorithms != nil: - formData_625243.add "TunnelOptions.Phase1EncryptionAlgorithms", + formData_625245.add "TunnelOptions.Phase1EncryptionAlgorithms", TunnelOptionsPhase1EncryptionAlgorithms if TunnelOptionsPhase2IntegrityAlgorithms != nil: - formData_625243.add "TunnelOptions.Phase2IntegrityAlgorithms", + formData_625245.add "TunnelOptions.Phase2IntegrityAlgorithms", TunnelOptionsPhase2IntegrityAlgorithms - add(formData_625243, "VpnTunnelOutsideIpAddress", + add(formData_625245, "VpnTunnelOutsideIpAddress", newJString(VpnTunnelOutsideIpAddress)) if TunnelOptionsPhase2EncryptionAlgorithms != nil: - formData_625243.add "TunnelOptions.Phase2EncryptionAlgorithms", + formData_625245.add "TunnelOptions.Phase2EncryptionAlgorithms", TunnelOptionsPhase2EncryptionAlgorithms - add(formData_625243, "VpnConnectionId", newJString(VpnConnectionId)) - add(formData_625243, "TunnelOptions.Phase1LifetimeSeconds", + add(formData_625245, "VpnConnectionId", newJString(VpnConnectionId)) + add(formData_625245, "TunnelOptions.Phase1LifetimeSeconds", newJString(TunnelOptionsPhase1LifetimeSeconds)) if TunnelOptionsPhase1DHGroupNumbers != nil: - formData_625243.add "TunnelOptions.Phase1DHGroupNumbers", + formData_625245.add "TunnelOptions.Phase1DHGroupNumbers", TunnelOptionsPhase1DHGroupNumbers - add(formData_625243, "TunnelOptions.TunnelInsideCidr", + add(formData_625245, "TunnelOptions.TunnelInsideCidr", newJString(TunnelOptionsTunnelInsideCidr)) - add(formData_625243, "TunnelOptions.RekeyMarginTimeSeconds", + add(formData_625245, "TunnelOptions.RekeyMarginTimeSeconds", newJString(TunnelOptionsRekeyMarginTimeSeconds)) - add(formData_625243, "TunnelOptions.Phase2LifetimeSeconds", + add(formData_625245, "TunnelOptions.Phase2LifetimeSeconds", newJString(TunnelOptionsPhase2LifetimeSeconds)) - add(formData_625243, "TunnelOptions.DPDTimeoutSeconds", + add(formData_625245, "TunnelOptions.DPDTimeoutSeconds", newJString(TunnelOptionsDPDTimeoutSeconds)) if TunnelOptionsPhase1IntegrityAlgorithms != nil: - formData_625243.add "TunnelOptions.Phase1IntegrityAlgorithms", + formData_625245.add "TunnelOptions.Phase1IntegrityAlgorithms", TunnelOptionsPhase1IntegrityAlgorithms if TunnelOptionsIKEVersions != nil: - formData_625243.add "TunnelOptions.IKEVersions", TunnelOptionsIKEVersions - add(formData_625243, "DryRun", newJBool(DryRun)) - add(query_625242, "Action", newJString(Action)) - add(formData_625243, "TunnelOptions.PreSharedKey", + formData_625245.add "TunnelOptions.IKEVersions", TunnelOptionsIKEVersions + add(formData_625245, "DryRun", newJBool(DryRun)) + add(query_625244, "Action", newJString(Action)) + add(formData_625245, "TunnelOptions.PreSharedKey", newJString(TunnelOptionsPreSharedKey)) if TunnelOptionsPhase2DHGroupNumbers != nil: - formData_625243.add "TunnelOptions.Phase2DHGroupNumbers", + formData_625245.add "TunnelOptions.Phase2DHGroupNumbers", TunnelOptionsPhase2DHGroupNumbers - add(formData_625243, "TunnelOptions.ReplayWindowSize", + add(formData_625245, "TunnelOptions.ReplayWindowSize", newJString(TunnelOptionsReplayWindowSize)) - add(query_625242, "Version", newJString(Version)) - add(formData_625243, "TunnelOptions.RekeyFuzzPercentage", + add(query_625244, "Version", newJString(Version)) + add(formData_625245, "TunnelOptions.RekeyFuzzPercentage", newJString(TunnelOptionsRekeyFuzzPercentage)) - result = call_625241.call(nil, query_625242, nil, formData_625243, nil) + result = call_625243.call(nil, query_625244, nil, formData_625245, nil) -var postModifyVpnTunnelOptions* = Call_PostModifyVpnTunnelOptions_625210( +var postModifyVpnTunnelOptions* = Call_PostModifyVpnTunnelOptions_625212( name: "postModifyVpnTunnelOptions", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ModifyVpnTunnelOptions", - validator: validate_PostModifyVpnTunnelOptions_625211, base: "/", - url: url_PostModifyVpnTunnelOptions_625212, + validator: validate_PostModifyVpnTunnelOptions_625213, base: "/", + url: url_PostModifyVpnTunnelOptions_625214, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetModifyVpnTunnelOptions_625177 = ref object of OpenApiRestCall_610658 -proc url_GetModifyVpnTunnelOptions_625179(protocol: Scheme; host: string; + Call_GetModifyVpnTunnelOptions_625179 = ref object of OpenApiRestCall_610658 +proc url_GetModifyVpnTunnelOptions_625181(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -116703,7 +116730,7 @@ proc url_GetModifyVpnTunnelOptions_625179(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetModifyVpnTunnelOptions_625178(path: JsonNode; query: JsonNode; +proc validate_GetModifyVpnTunnelOptions_625180(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Modifies the options for a VPN tunnel in an AWS Site-to-Site VPN connection. You can modify multiple options for a tunnel in a single request, but you can only modify one tunnel at a time. For more information, see Site-to-Site VPN Tunnel Options for Your Site-to-Site VPN Connection in the AWS Site-to-Site VPN User Guide. ## @@ -116766,106 +116793,106 @@ proc validate_GetModifyVpnTunnelOptions_625178(path: JsonNode; query: JsonNode; ## : The AWS Site-to-Site VPN tunnel options to modify. ##

    The number of packets in an IKE replay window.

    Constraints: A value between 64 and 2048.

    Default: 1024

    section = newJObject() - var valid_625180 = query.getOrDefault("TunnelOptions.RekeyFuzzPercentage") - valid_625180 = validateParameter(valid_625180, JString, required = false, - default = nil) - if valid_625180 != nil: - section.add "TunnelOptions.RekeyFuzzPercentage", valid_625180 - var valid_625181 = query.getOrDefault("TunnelOptions.DPDTimeoutSeconds") - valid_625181 = validateParameter(valid_625181, JString, required = false, - default = nil) - if valid_625181 != nil: - section.add "TunnelOptions.DPDTimeoutSeconds", valid_625181 - var valid_625182 = query.getOrDefault("TunnelOptions.PreSharedKey") + var valid_625182 = query.getOrDefault("TunnelOptions.RekeyFuzzPercentage") valid_625182 = validateParameter(valid_625182, JString, required = false, default = nil) if valid_625182 != nil: - section.add "TunnelOptions.PreSharedKey", valid_625182 - var valid_625183 = query.getOrDefault("TunnelOptions.Phase1EncryptionAlgorithms") - valid_625183 = validateParameter(valid_625183, JArray, required = false, + section.add "TunnelOptions.RekeyFuzzPercentage", valid_625182 + var valid_625183 = query.getOrDefault("TunnelOptions.DPDTimeoutSeconds") + valid_625183 = validateParameter(valid_625183, JString, required = false, default = nil) if valid_625183 != nil: - section.add "TunnelOptions.Phase1EncryptionAlgorithms", valid_625183 - var valid_625184 = query.getOrDefault("TunnelOptions.Phase2EncryptionAlgorithms") - valid_625184 = validateParameter(valid_625184, JArray, required = false, + section.add "TunnelOptions.DPDTimeoutSeconds", valid_625183 + var valid_625184 = query.getOrDefault("TunnelOptions.PreSharedKey") + valid_625184 = validateParameter(valid_625184, JString, required = false, default = nil) if valid_625184 != nil: - section.add "TunnelOptions.Phase2EncryptionAlgorithms", valid_625184 - var valid_625185 = query.getOrDefault("TunnelOptions.Phase2DHGroupNumbers") + section.add "TunnelOptions.PreSharedKey", valid_625184 + var valid_625185 = query.getOrDefault("TunnelOptions.Phase1EncryptionAlgorithms") valid_625185 = validateParameter(valid_625185, JArray, required = false, default = nil) if valid_625185 != nil: - section.add "TunnelOptions.Phase2DHGroupNumbers", valid_625185 - var valid_625186 = query.getOrDefault("TunnelOptions.IKEVersions") + section.add "TunnelOptions.Phase1EncryptionAlgorithms", valid_625185 + var valid_625186 = query.getOrDefault("TunnelOptions.Phase2EncryptionAlgorithms") valid_625186 = validateParameter(valid_625186, JArray, required = false, default = nil) if valid_625186 != nil: - section.add "TunnelOptions.IKEVersions", valid_625186 - var valid_625187 = query.getOrDefault("DryRun") - valid_625187 = validateParameter(valid_625187, JBool, required = false, default = nil) + section.add "TunnelOptions.Phase2EncryptionAlgorithms", valid_625186 + var valid_625187 = query.getOrDefault("TunnelOptions.Phase2DHGroupNumbers") + valid_625187 = validateParameter(valid_625187, JArray, required = false, + default = nil) if valid_625187 != nil: - section.add "DryRun", valid_625187 - assert query != nil, "query argument is necessary due to required `VpnTunnelOutsideIpAddress` field" - var valid_625188 = query.getOrDefault("VpnTunnelOutsideIpAddress") - valid_625188 = validateParameter(valid_625188, JString, required = true, + section.add "TunnelOptions.Phase2DHGroupNumbers", valid_625187 + var valid_625188 = query.getOrDefault("TunnelOptions.IKEVersions") + valid_625188 = validateParameter(valid_625188, JArray, required = false, default = nil) if valid_625188 != nil: - section.add "VpnTunnelOutsideIpAddress", valid_625188 - var valid_625189 = query.getOrDefault("TunnelOptions.Phase1DHGroupNumbers") - valid_625189 = validateParameter(valid_625189, JArray, required = false, - default = nil) + section.add "TunnelOptions.IKEVersions", valid_625188 + var valid_625189 = query.getOrDefault("DryRun") + valid_625189 = validateParameter(valid_625189, JBool, required = false, default = nil) if valid_625189 != nil: - section.add "TunnelOptions.Phase1DHGroupNumbers", valid_625189 - var valid_625190 = query.getOrDefault("TunnelOptions.Phase1LifetimeSeconds") - valid_625190 = validateParameter(valid_625190, JString, required = false, + section.add "DryRun", valid_625189 + assert query != nil, "query argument is necessary due to required `VpnTunnelOutsideIpAddress` field" + var valid_625190 = query.getOrDefault("VpnTunnelOutsideIpAddress") + valid_625190 = validateParameter(valid_625190, JString, required = true, default = nil) if valid_625190 != nil: - section.add "TunnelOptions.Phase1LifetimeSeconds", valid_625190 - var valid_625191 = query.getOrDefault("TunnelOptions.Phase1IntegrityAlgorithms") + section.add "VpnTunnelOutsideIpAddress", valid_625190 + var valid_625191 = query.getOrDefault("TunnelOptions.Phase1DHGroupNumbers") valid_625191 = validateParameter(valid_625191, JArray, required = false, default = nil) if valid_625191 != nil: - section.add "TunnelOptions.Phase1IntegrityAlgorithms", valid_625191 - var valid_625192 = query.getOrDefault("TunnelOptions.TunnelInsideCidr") + section.add "TunnelOptions.Phase1DHGroupNumbers", valid_625191 + var valid_625192 = query.getOrDefault("TunnelOptions.Phase1LifetimeSeconds") valid_625192 = validateParameter(valid_625192, JString, required = false, default = nil) if valid_625192 != nil: - section.add "TunnelOptions.TunnelInsideCidr", valid_625192 - var valid_625193 = query.getOrDefault("VpnConnectionId") - valid_625193 = validateParameter(valid_625193, JString, required = true, + section.add "TunnelOptions.Phase1LifetimeSeconds", valid_625192 + var valid_625193 = query.getOrDefault("TunnelOptions.Phase1IntegrityAlgorithms") + valid_625193 = validateParameter(valid_625193, JArray, required = false, default = nil) if valid_625193 != nil: - section.add "VpnConnectionId", valid_625193 - var valid_625194 = query.getOrDefault("TunnelOptions.Phase2IntegrityAlgorithms") - valid_625194 = validateParameter(valid_625194, JArray, required = false, + section.add "TunnelOptions.Phase1IntegrityAlgorithms", valid_625193 + var valid_625194 = query.getOrDefault("TunnelOptions.TunnelInsideCidr") + valid_625194 = validateParameter(valid_625194, JString, required = false, default = nil) if valid_625194 != nil: - section.add "TunnelOptions.Phase2IntegrityAlgorithms", valid_625194 - var valid_625195 = query.getOrDefault("Action") + section.add "TunnelOptions.TunnelInsideCidr", valid_625194 + var valid_625195 = query.getOrDefault("VpnConnectionId") valid_625195 = validateParameter(valid_625195, JString, required = true, - default = newJString("ModifyVpnTunnelOptions")) + default = nil) if valid_625195 != nil: - section.add "Action", valid_625195 - var valid_625196 = query.getOrDefault("TunnelOptions.RekeyMarginTimeSeconds") - valid_625196 = validateParameter(valid_625196, JString, required = false, + section.add "VpnConnectionId", valid_625195 + var valid_625196 = query.getOrDefault("TunnelOptions.Phase2IntegrityAlgorithms") + valid_625196 = validateParameter(valid_625196, JArray, required = false, default = nil) if valid_625196 != nil: - section.add "TunnelOptions.RekeyMarginTimeSeconds", valid_625196 - var valid_625197 = query.getOrDefault("TunnelOptions.Phase2LifetimeSeconds") - valid_625197 = validateParameter(valid_625197, JString, required = false, - default = nil) + section.add "TunnelOptions.Phase2IntegrityAlgorithms", valid_625196 + var valid_625197 = query.getOrDefault("Action") + valid_625197 = validateParameter(valid_625197, JString, required = true, + default = newJString("ModifyVpnTunnelOptions")) if valid_625197 != nil: - section.add "TunnelOptions.Phase2LifetimeSeconds", valid_625197 - var valid_625198 = query.getOrDefault("Version") - valid_625198 = validateParameter(valid_625198, JString, required = true, - default = newJString("2016-11-15")) + section.add "Action", valid_625197 + var valid_625198 = query.getOrDefault("TunnelOptions.RekeyMarginTimeSeconds") + valid_625198 = validateParameter(valid_625198, JString, required = false, + default = nil) if valid_625198 != nil: - section.add "Version", valid_625198 - var valid_625199 = query.getOrDefault("TunnelOptions.ReplayWindowSize") + section.add "TunnelOptions.RekeyMarginTimeSeconds", valid_625198 + var valid_625199 = query.getOrDefault("TunnelOptions.Phase2LifetimeSeconds") valid_625199 = validateParameter(valid_625199, JString, required = false, default = nil) if valid_625199 != nil: - section.add "TunnelOptions.ReplayWindowSize", valid_625199 + section.add "TunnelOptions.Phase2LifetimeSeconds", valid_625199 + var valid_625200 = query.getOrDefault("Version") + valid_625200 = validateParameter(valid_625200, JString, required = true, + default = newJString("2016-11-15")) + if valid_625200 != nil: + section.add "Version", valid_625200 + var valid_625201 = query.getOrDefault("TunnelOptions.ReplayWindowSize") + valid_625201 = validateParameter(valid_625201, JString, required = false, + default = nil) + if valid_625201 != nil: + section.add "TunnelOptions.ReplayWindowSize", valid_625201 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -116876,61 +116903,61 @@ proc validate_GetModifyVpnTunnelOptions_625178(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625200 = header.getOrDefault("X-Amz-Signature") - valid_625200 = validateParameter(valid_625200, JString, required = false, - default = nil) - if valid_625200 != nil: - section.add "X-Amz-Signature", valid_625200 - var valid_625201 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625201 = validateParameter(valid_625201, JString, required = false, - default = nil) - if valid_625201 != nil: - section.add "X-Amz-Content-Sha256", valid_625201 - var valid_625202 = header.getOrDefault("X-Amz-Date") + var valid_625202 = header.getOrDefault("X-Amz-Signature") valid_625202 = validateParameter(valid_625202, JString, required = false, default = nil) if valid_625202 != nil: - section.add "X-Amz-Date", valid_625202 - var valid_625203 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625202 + var valid_625203 = header.getOrDefault("X-Amz-Content-Sha256") valid_625203 = validateParameter(valid_625203, JString, required = false, default = nil) if valid_625203 != nil: - section.add "X-Amz-Credential", valid_625203 - var valid_625204 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625203 + var valid_625204 = header.getOrDefault("X-Amz-Date") valid_625204 = validateParameter(valid_625204, JString, required = false, default = nil) if valid_625204 != nil: - section.add "X-Amz-Security-Token", valid_625204 - var valid_625205 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625204 + var valid_625205 = header.getOrDefault("X-Amz-Credential") valid_625205 = validateParameter(valid_625205, JString, required = false, default = nil) if valid_625205 != nil: - section.add "X-Amz-Algorithm", valid_625205 - var valid_625206 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625205 + var valid_625206 = header.getOrDefault("X-Amz-Security-Token") valid_625206 = validateParameter(valid_625206, JString, required = false, default = nil) if valid_625206 != nil: - section.add "X-Amz-SignedHeaders", valid_625206 + section.add "X-Amz-Security-Token", valid_625206 + var valid_625207 = header.getOrDefault("X-Amz-Algorithm") + valid_625207 = validateParameter(valid_625207, JString, required = false, + default = nil) + if valid_625207 != nil: + section.add "X-Amz-Algorithm", valid_625207 + var valid_625208 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625208 = validateParameter(valid_625208, JString, required = false, + default = nil) + if valid_625208 != nil: + section.add "X-Amz-SignedHeaders", valid_625208 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625207: Call_GetModifyVpnTunnelOptions_625177; path: JsonNode; +proc call*(call_625209: Call_GetModifyVpnTunnelOptions_625179; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Modifies the options for a VPN tunnel in an AWS Site-to-Site VPN connection. You can modify multiple options for a tunnel in a single request, but you can only modify one tunnel at a time. For more information, see Site-to-Site VPN Tunnel Options for Your Site-to-Site VPN Connection in the AWS Site-to-Site VPN User Guide. ## - let valid = call_625207.validator(path, query, header, formData, body) - let scheme = call_625207.pickScheme + let valid = call_625209.validator(path, query, header, formData, body) + let scheme = call_625209.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625207.url(scheme.get, call_625207.host, call_625207.base, - call_625207.route, valid.getOrDefault("path"), + let url = call_625209.url(scheme.get, call_625209.host, call_625209.base, + call_625209.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625207, url, valid) + result = atozHook(call_625209, url, valid) -proc call*(call_625208: Call_GetModifyVpnTunnelOptions_625177; +proc call*(call_625210: Call_GetModifyVpnTunnelOptions_625179; VpnTunnelOutsideIpAddress: string; VpnConnectionId: string; TunnelOptionsRekeyFuzzPercentage: string = ""; TunnelOptionsDPDTimeoutSeconds: string = ""; @@ -117003,60 +117030,60 @@ proc call*(call_625208: Call_GetModifyVpnTunnelOptions_625177; ## TunnelOptionsReplayWindowSize: string ## : The AWS Site-to-Site VPN tunnel options to modify. ##

    The number of packets in an IKE replay window.

    Constraints: A value between 64 and 2048.

    Default: 1024

    - var query_625209 = newJObject() - add(query_625209, "TunnelOptions.RekeyFuzzPercentage", + var query_625211 = newJObject() + add(query_625211, "TunnelOptions.RekeyFuzzPercentage", newJString(TunnelOptionsRekeyFuzzPercentage)) - add(query_625209, "TunnelOptions.DPDTimeoutSeconds", + add(query_625211, "TunnelOptions.DPDTimeoutSeconds", newJString(TunnelOptionsDPDTimeoutSeconds)) - add(query_625209, "TunnelOptions.PreSharedKey", + add(query_625211, "TunnelOptions.PreSharedKey", newJString(TunnelOptionsPreSharedKey)) if TunnelOptionsPhase1EncryptionAlgorithms != nil: - query_625209.add "TunnelOptions.Phase1EncryptionAlgorithms", + query_625211.add "TunnelOptions.Phase1EncryptionAlgorithms", TunnelOptionsPhase1EncryptionAlgorithms if TunnelOptionsPhase2EncryptionAlgorithms != nil: - query_625209.add "TunnelOptions.Phase2EncryptionAlgorithms", + query_625211.add "TunnelOptions.Phase2EncryptionAlgorithms", TunnelOptionsPhase2EncryptionAlgorithms if TunnelOptionsPhase2DHGroupNumbers != nil: - query_625209.add "TunnelOptions.Phase2DHGroupNumbers", + query_625211.add "TunnelOptions.Phase2DHGroupNumbers", TunnelOptionsPhase2DHGroupNumbers if TunnelOptionsIKEVersions != nil: - query_625209.add "TunnelOptions.IKEVersions", TunnelOptionsIKEVersions - add(query_625209, "DryRun", newJBool(DryRun)) - add(query_625209, "VpnTunnelOutsideIpAddress", + query_625211.add "TunnelOptions.IKEVersions", TunnelOptionsIKEVersions + add(query_625211, "DryRun", newJBool(DryRun)) + add(query_625211, "VpnTunnelOutsideIpAddress", newJString(VpnTunnelOutsideIpAddress)) if TunnelOptionsPhase1DHGroupNumbers != nil: - query_625209.add "TunnelOptions.Phase1DHGroupNumbers", + query_625211.add "TunnelOptions.Phase1DHGroupNumbers", TunnelOptionsPhase1DHGroupNumbers - add(query_625209, "TunnelOptions.Phase1LifetimeSeconds", + add(query_625211, "TunnelOptions.Phase1LifetimeSeconds", newJString(TunnelOptionsPhase1LifetimeSeconds)) if TunnelOptionsPhase1IntegrityAlgorithms != nil: - query_625209.add "TunnelOptions.Phase1IntegrityAlgorithms", + query_625211.add "TunnelOptions.Phase1IntegrityAlgorithms", TunnelOptionsPhase1IntegrityAlgorithms - add(query_625209, "TunnelOptions.TunnelInsideCidr", + add(query_625211, "TunnelOptions.TunnelInsideCidr", newJString(TunnelOptionsTunnelInsideCidr)) - add(query_625209, "VpnConnectionId", newJString(VpnConnectionId)) + add(query_625211, "VpnConnectionId", newJString(VpnConnectionId)) if TunnelOptionsPhase2IntegrityAlgorithms != nil: - query_625209.add "TunnelOptions.Phase2IntegrityAlgorithms", + query_625211.add "TunnelOptions.Phase2IntegrityAlgorithms", TunnelOptionsPhase2IntegrityAlgorithms - add(query_625209, "Action", newJString(Action)) - add(query_625209, "TunnelOptions.RekeyMarginTimeSeconds", + add(query_625211, "Action", newJString(Action)) + add(query_625211, "TunnelOptions.RekeyMarginTimeSeconds", newJString(TunnelOptionsRekeyMarginTimeSeconds)) - add(query_625209, "TunnelOptions.Phase2LifetimeSeconds", + add(query_625211, "TunnelOptions.Phase2LifetimeSeconds", newJString(TunnelOptionsPhase2LifetimeSeconds)) - add(query_625209, "Version", newJString(Version)) - add(query_625209, "TunnelOptions.ReplayWindowSize", + add(query_625211, "Version", newJString(Version)) + add(query_625211, "TunnelOptions.ReplayWindowSize", newJString(TunnelOptionsReplayWindowSize)) - result = call_625208.call(nil, query_625209, nil, nil, nil) + result = call_625210.call(nil, query_625211, nil, nil, nil) -var getModifyVpnTunnelOptions* = Call_GetModifyVpnTunnelOptions_625177( +var getModifyVpnTunnelOptions* = Call_GetModifyVpnTunnelOptions_625179( name: "getModifyVpnTunnelOptions", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ModifyVpnTunnelOptions", - validator: validate_GetModifyVpnTunnelOptions_625178, base: "/", - url: url_GetModifyVpnTunnelOptions_625179, + validator: validate_GetModifyVpnTunnelOptions_625180, base: "/", + url: url_GetModifyVpnTunnelOptions_625181, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostMonitorInstances_625261 = ref object of OpenApiRestCall_610658 -proc url_PostMonitorInstances_625263(protocol: Scheme; host: string; base: string; + Call_PostMonitorInstances_625263 = ref object of OpenApiRestCall_610658 +proc url_PostMonitorInstances_625265(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -117066,7 +117093,7 @@ proc url_PostMonitorInstances_625263(protocol: Scheme; host: string; base: strin else: result.path = base & route -proc validate_PostMonitorInstances_625262(path: JsonNode; query: JsonNode; +proc validate_PostMonitorInstances_625264(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Enables detailed monitoring for a running instance. Otherwise, basic monitoring is enabled. For more information, see Monitoring Your Instances and Volumes in the Amazon Elastic Compute Cloud User Guide.

    To disable detailed monitoring, see .

    ## @@ -117078,16 +117105,16 @@ proc validate_PostMonitorInstances_625262(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625264 = query.getOrDefault("Action") - valid_625264 = validateParameter(valid_625264, JString, required = true, + var valid_625266 = query.getOrDefault("Action") + valid_625266 = validateParameter(valid_625266, JString, required = true, default = newJString("MonitorInstances")) - if valid_625264 != nil: - section.add "Action", valid_625264 - var valid_625265 = query.getOrDefault("Version") - valid_625265 = validateParameter(valid_625265, JString, required = true, + if valid_625266 != nil: + section.add "Action", valid_625266 + var valid_625267 = query.getOrDefault("Version") + valid_625267 = validateParameter(valid_625267, JString, required = true, default = newJString("2016-11-15")) - if valid_625265 != nil: - section.add "Version", valid_625265 + if valid_625267 != nil: + section.add "Version", valid_625267 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -117098,41 +117125,41 @@ proc validate_PostMonitorInstances_625262(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625266 = header.getOrDefault("X-Amz-Signature") - valid_625266 = validateParameter(valid_625266, JString, required = false, - default = nil) - if valid_625266 != nil: - section.add "X-Amz-Signature", valid_625266 - var valid_625267 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625267 = validateParameter(valid_625267, JString, required = false, - default = nil) - if valid_625267 != nil: - section.add "X-Amz-Content-Sha256", valid_625267 - var valid_625268 = header.getOrDefault("X-Amz-Date") + var valid_625268 = header.getOrDefault("X-Amz-Signature") valid_625268 = validateParameter(valid_625268, JString, required = false, default = nil) if valid_625268 != nil: - section.add "X-Amz-Date", valid_625268 - var valid_625269 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625268 + var valid_625269 = header.getOrDefault("X-Amz-Content-Sha256") valid_625269 = validateParameter(valid_625269, JString, required = false, default = nil) if valid_625269 != nil: - section.add "X-Amz-Credential", valid_625269 - var valid_625270 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625269 + var valid_625270 = header.getOrDefault("X-Amz-Date") valid_625270 = validateParameter(valid_625270, JString, required = false, default = nil) if valid_625270 != nil: - section.add "X-Amz-Security-Token", valid_625270 - var valid_625271 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625270 + var valid_625271 = header.getOrDefault("X-Amz-Credential") valid_625271 = validateParameter(valid_625271, JString, required = false, default = nil) if valid_625271 != nil: - section.add "X-Amz-Algorithm", valid_625271 - var valid_625272 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625271 + var valid_625272 = header.getOrDefault("X-Amz-Security-Token") valid_625272 = validateParameter(valid_625272, JString, required = false, default = nil) if valid_625272 != nil: - section.add "X-Amz-SignedHeaders", valid_625272 + section.add "X-Amz-Security-Token", valid_625272 + var valid_625273 = header.getOrDefault("X-Amz-Algorithm") + valid_625273 = validateParameter(valid_625273, JString, required = false, + default = nil) + if valid_625273 != nil: + section.add "X-Amz-Algorithm", valid_625273 + var valid_625274 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625274 = validateParameter(valid_625274, JString, required = false, + default = nil) + if valid_625274 != nil: + section.add "X-Amz-SignedHeaders", valid_625274 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -117140,34 +117167,34 @@ proc validate_PostMonitorInstances_625262(path: JsonNode; query: JsonNode; ## InstanceId: JArray (required) ## : The IDs of the instances. section = newJObject() - var valid_625273 = formData.getOrDefault("DryRun") - valid_625273 = validateParameter(valid_625273, JBool, required = false, default = nil) - if valid_625273 != nil: - section.add "DryRun", valid_625273 + var valid_625275 = formData.getOrDefault("DryRun") + valid_625275 = validateParameter(valid_625275, JBool, required = false, default = nil) + if valid_625275 != nil: + section.add "DryRun", valid_625275 assert formData != nil, "formData argument is necessary due to required `InstanceId` field" - var valid_625274 = formData.getOrDefault("InstanceId") - valid_625274 = validateParameter(valid_625274, JArray, required = true, default = nil) - if valid_625274 != nil: - section.add "InstanceId", valid_625274 + var valid_625276 = formData.getOrDefault("InstanceId") + valid_625276 = validateParameter(valid_625276, JArray, required = true, default = nil) + if valid_625276 != nil: + section.add "InstanceId", valid_625276 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625275: Call_PostMonitorInstances_625261; path: JsonNode; +proc call*(call_625277: Call_PostMonitorInstances_625263; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Enables detailed monitoring for a running instance. Otherwise, basic monitoring is enabled. For more information, see Monitoring Your Instances and Volumes in the Amazon Elastic Compute Cloud User Guide.

    To disable detailed monitoring, see .

    ## - let valid = call_625275.validator(path, query, header, formData, body) - let scheme = call_625275.pickScheme + let valid = call_625277.validator(path, query, header, formData, body) + let scheme = call_625277.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625275.url(scheme.get, call_625275.host, call_625275.base, - call_625275.route, valid.getOrDefault("path"), + let url = call_625277.url(scheme.get, call_625277.host, call_625277.base, + call_625277.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625275, url, valid) + result = atozHook(call_625277, url, valid) -proc call*(call_625276: Call_PostMonitorInstances_625261; InstanceId: JsonNode; +proc call*(call_625278: Call_PostMonitorInstances_625263; InstanceId: JsonNode; DryRun: bool = false; Action: string = "MonitorInstances"; Version: string = "2016-11-15"): Recallable = ## postMonitorInstances @@ -117178,23 +117205,23 @@ proc call*(call_625276: Call_PostMonitorInstances_625261; InstanceId: JsonNode; ## : The IDs of the instances. ## Action: string (required) ## Version: string (required) - var query_625277 = newJObject() - var formData_625278 = newJObject() - add(formData_625278, "DryRun", newJBool(DryRun)) + var query_625279 = newJObject() + var formData_625280 = newJObject() + add(formData_625280, "DryRun", newJBool(DryRun)) if InstanceId != nil: - formData_625278.add "InstanceId", InstanceId - add(query_625277, "Action", newJString(Action)) - add(query_625277, "Version", newJString(Version)) - result = call_625276.call(nil, query_625277, nil, formData_625278, nil) + formData_625280.add "InstanceId", InstanceId + add(query_625279, "Action", newJString(Action)) + add(query_625279, "Version", newJString(Version)) + result = call_625278.call(nil, query_625279, nil, formData_625280, nil) -var postMonitorInstances* = Call_PostMonitorInstances_625261( +var postMonitorInstances* = Call_PostMonitorInstances_625263( name: "postMonitorInstances", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=MonitorInstances", - validator: validate_PostMonitorInstances_625262, base: "/", - url: url_PostMonitorInstances_625263, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostMonitorInstances_625264, base: "/", + url: url_PostMonitorInstances_625265, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetMonitorInstances_625244 = ref object of OpenApiRestCall_610658 -proc url_GetMonitorInstances_625246(protocol: Scheme; host: string; base: string; + Call_GetMonitorInstances_625246 = ref object of OpenApiRestCall_610658 +proc url_GetMonitorInstances_625248(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -117204,7 +117231,7 @@ proc url_GetMonitorInstances_625246(protocol: Scheme; host: string; base: string else: result.path = base & route -proc validate_GetMonitorInstances_625245(path: JsonNode; query: JsonNode; +proc validate_GetMonitorInstances_625247(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Enables detailed monitoring for a running instance. Otherwise, basic monitoring is enabled. For more information, see Monitoring Your Instances and Volumes in the Amazon Elastic Compute Cloud User Guide.

    To disable detailed monitoring, see .

    @@ -117221,26 +117248,26 @@ proc validate_GetMonitorInstances_625245(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625247 = query.getOrDefault("DryRun") - valid_625247 = validateParameter(valid_625247, JBool, required = false, default = nil) - if valid_625247 != nil: - section.add "DryRun", valid_625247 + var valid_625249 = query.getOrDefault("DryRun") + valid_625249 = validateParameter(valid_625249, JBool, required = false, default = nil) + if valid_625249 != nil: + section.add "DryRun", valid_625249 assert query != nil, "query argument is necessary due to required `InstanceId` field" - var valid_625248 = query.getOrDefault("InstanceId") - valid_625248 = validateParameter(valid_625248, JArray, required = true, default = nil) - if valid_625248 != nil: - section.add "InstanceId", valid_625248 - var valid_625249 = query.getOrDefault("Action") - valid_625249 = validateParameter(valid_625249, JString, required = true, + var valid_625250 = query.getOrDefault("InstanceId") + valid_625250 = validateParameter(valid_625250, JArray, required = true, default = nil) + if valid_625250 != nil: + section.add "InstanceId", valid_625250 + var valid_625251 = query.getOrDefault("Action") + valid_625251 = validateParameter(valid_625251, JString, required = true, default = newJString("MonitorInstances")) - if valid_625249 != nil: - section.add "Action", valid_625249 - var valid_625250 = query.getOrDefault("Version") - valid_625250 = validateParameter(valid_625250, JString, required = true, + if valid_625251 != nil: + section.add "Action", valid_625251 + var valid_625252 = query.getOrDefault("Version") + valid_625252 = validateParameter(valid_625252, JString, required = true, default = newJString("2016-11-15")) - if valid_625250 != nil: - section.add "Version", valid_625250 + if valid_625252 != nil: + section.add "Version", valid_625252 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -117251,61 +117278,61 @@ proc validate_GetMonitorInstances_625245(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625251 = header.getOrDefault("X-Amz-Signature") - valid_625251 = validateParameter(valid_625251, JString, required = false, - default = nil) - if valid_625251 != nil: - section.add "X-Amz-Signature", valid_625251 - var valid_625252 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625252 = validateParameter(valid_625252, JString, required = false, - default = nil) - if valid_625252 != nil: - section.add "X-Amz-Content-Sha256", valid_625252 - var valid_625253 = header.getOrDefault("X-Amz-Date") + var valid_625253 = header.getOrDefault("X-Amz-Signature") valid_625253 = validateParameter(valid_625253, JString, required = false, default = nil) if valid_625253 != nil: - section.add "X-Amz-Date", valid_625253 - var valid_625254 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625253 + var valid_625254 = header.getOrDefault("X-Amz-Content-Sha256") valid_625254 = validateParameter(valid_625254, JString, required = false, default = nil) if valid_625254 != nil: - section.add "X-Amz-Credential", valid_625254 - var valid_625255 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625254 + var valid_625255 = header.getOrDefault("X-Amz-Date") valid_625255 = validateParameter(valid_625255, JString, required = false, default = nil) if valid_625255 != nil: - section.add "X-Amz-Security-Token", valid_625255 - var valid_625256 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625255 + var valid_625256 = header.getOrDefault("X-Amz-Credential") valid_625256 = validateParameter(valid_625256, JString, required = false, default = nil) if valid_625256 != nil: - section.add "X-Amz-Algorithm", valid_625256 - var valid_625257 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625256 + var valid_625257 = header.getOrDefault("X-Amz-Security-Token") valid_625257 = validateParameter(valid_625257, JString, required = false, default = nil) if valid_625257 != nil: - section.add "X-Amz-SignedHeaders", valid_625257 + section.add "X-Amz-Security-Token", valid_625257 + var valid_625258 = header.getOrDefault("X-Amz-Algorithm") + valid_625258 = validateParameter(valid_625258, JString, required = false, + default = nil) + if valid_625258 != nil: + section.add "X-Amz-Algorithm", valid_625258 + var valid_625259 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625259 = validateParameter(valid_625259, JString, required = false, + default = nil) + if valid_625259 != nil: + section.add "X-Amz-SignedHeaders", valid_625259 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625258: Call_GetMonitorInstances_625244; path: JsonNode; +proc call*(call_625260: Call_GetMonitorInstances_625246; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Enables detailed monitoring for a running instance. Otherwise, basic monitoring is enabled. For more information, see Monitoring Your Instances and Volumes in the Amazon Elastic Compute Cloud User Guide.

    To disable detailed monitoring, see .

    ## - let valid = call_625258.validator(path, query, header, formData, body) - let scheme = call_625258.pickScheme + let valid = call_625260.validator(path, query, header, formData, body) + let scheme = call_625260.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625258.url(scheme.get, call_625258.host, call_625258.base, - call_625258.route, valid.getOrDefault("path"), + let url = call_625260.url(scheme.get, call_625260.host, call_625260.base, + call_625260.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625258, url, valid) + result = atozHook(call_625260, url, valid) -proc call*(call_625259: Call_GetMonitorInstances_625244; InstanceId: JsonNode; +proc call*(call_625261: Call_GetMonitorInstances_625246; InstanceId: JsonNode; DryRun: bool = false; Action: string = "MonitorInstances"; Version: string = "2016-11-15"): Recallable = ## getMonitorInstances @@ -117316,22 +117343,22 @@ proc call*(call_625259: Call_GetMonitorInstances_625244; InstanceId: JsonNode; ## : The IDs of the instances. ## Action: string (required) ## Version: string (required) - var query_625260 = newJObject() - add(query_625260, "DryRun", newJBool(DryRun)) + var query_625262 = newJObject() + add(query_625262, "DryRun", newJBool(DryRun)) if InstanceId != nil: - query_625260.add "InstanceId", InstanceId - add(query_625260, "Action", newJString(Action)) - add(query_625260, "Version", newJString(Version)) - result = call_625259.call(nil, query_625260, nil, nil, nil) + query_625262.add "InstanceId", InstanceId + add(query_625262, "Action", newJString(Action)) + add(query_625262, "Version", newJString(Version)) + result = call_625261.call(nil, query_625262, nil, nil, nil) -var getMonitorInstances* = Call_GetMonitorInstances_625244( +var getMonitorInstances* = Call_GetMonitorInstances_625246( name: "getMonitorInstances", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=MonitorInstances", - validator: validate_GetMonitorInstances_625245, base: "/", - url: url_GetMonitorInstances_625246, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetMonitorInstances_625247, base: "/", + url: url_GetMonitorInstances_625248, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostMoveAddressToVpc_625296 = ref object of OpenApiRestCall_610658 -proc url_PostMoveAddressToVpc_625298(protocol: Scheme; host: string; base: string; + Call_PostMoveAddressToVpc_625298 = ref object of OpenApiRestCall_610658 +proc url_PostMoveAddressToVpc_625300(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -117341,7 +117368,7 @@ proc url_PostMoveAddressToVpc_625298(protocol: Scheme; host: string; base: strin else: result.path = base & route -proc validate_PostMoveAddressToVpc_625297(path: JsonNode; query: JsonNode; +proc validate_PostMoveAddressToVpc_625299(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Moves an Elastic IP address from the EC2-Classic platform to the EC2-VPC platform. The Elastic IP address must be allocated to your account for more than 24 hours, and it must not be associated with an instance. After the Elastic IP address is moved, it is no longer available for use in the EC2-Classic platform, unless you move it back using the RestoreAddressToClassic request. You cannot move an Elastic IP address that was originally allocated for use in the EC2-VPC platform to the EC2-Classic platform. ## @@ -117353,16 +117380,16 @@ proc validate_PostMoveAddressToVpc_625297(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625299 = query.getOrDefault("Action") - valid_625299 = validateParameter(valid_625299, JString, required = true, + var valid_625301 = query.getOrDefault("Action") + valid_625301 = validateParameter(valid_625301, JString, required = true, default = newJString("MoveAddressToVpc")) - if valid_625299 != nil: - section.add "Action", valid_625299 - var valid_625300 = query.getOrDefault("Version") - valid_625300 = validateParameter(valid_625300, JString, required = true, + if valid_625301 != nil: + section.add "Action", valid_625301 + var valid_625302 = query.getOrDefault("Version") + valid_625302 = validateParameter(valid_625302, JString, required = true, default = newJString("2016-11-15")) - if valid_625300 != nil: - section.add "Version", valid_625300 + if valid_625302 != nil: + section.add "Version", valid_625302 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -117373,41 +117400,41 @@ proc validate_PostMoveAddressToVpc_625297(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625301 = header.getOrDefault("X-Amz-Signature") - valid_625301 = validateParameter(valid_625301, JString, required = false, - default = nil) - if valid_625301 != nil: - section.add "X-Amz-Signature", valid_625301 - var valid_625302 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625302 = validateParameter(valid_625302, JString, required = false, - default = nil) - if valid_625302 != nil: - section.add "X-Amz-Content-Sha256", valid_625302 - var valid_625303 = header.getOrDefault("X-Amz-Date") + var valid_625303 = header.getOrDefault("X-Amz-Signature") valid_625303 = validateParameter(valid_625303, JString, required = false, default = nil) if valid_625303 != nil: - section.add "X-Amz-Date", valid_625303 - var valid_625304 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625303 + var valid_625304 = header.getOrDefault("X-Amz-Content-Sha256") valid_625304 = validateParameter(valid_625304, JString, required = false, default = nil) if valid_625304 != nil: - section.add "X-Amz-Credential", valid_625304 - var valid_625305 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625304 + var valid_625305 = header.getOrDefault("X-Amz-Date") valid_625305 = validateParameter(valid_625305, JString, required = false, default = nil) if valid_625305 != nil: - section.add "X-Amz-Security-Token", valid_625305 - var valid_625306 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625305 + var valid_625306 = header.getOrDefault("X-Amz-Credential") valid_625306 = validateParameter(valid_625306, JString, required = false, default = nil) if valid_625306 != nil: - section.add "X-Amz-Algorithm", valid_625306 - var valid_625307 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625306 + var valid_625307 = header.getOrDefault("X-Amz-Security-Token") valid_625307 = validateParameter(valid_625307, JString, required = false, default = nil) if valid_625307 != nil: - section.add "X-Amz-SignedHeaders", valid_625307 + section.add "X-Amz-Security-Token", valid_625307 + var valid_625308 = header.getOrDefault("X-Amz-Algorithm") + valid_625308 = validateParameter(valid_625308, JString, required = false, + default = nil) + if valid_625308 != nil: + section.add "X-Amz-Algorithm", valid_625308 + var valid_625309 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625309 = validateParameter(valid_625309, JString, required = false, + default = nil) + if valid_625309 != nil: + section.add "X-Amz-SignedHeaders", valid_625309 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -117415,35 +117442,35 @@ proc validate_PostMoveAddressToVpc_625297(path: JsonNode; query: JsonNode; ## PublicIp: JString (required) ## : The Elastic IP address. section = newJObject() - var valid_625308 = formData.getOrDefault("DryRun") - valid_625308 = validateParameter(valid_625308, JBool, required = false, default = nil) - if valid_625308 != nil: - section.add "DryRun", valid_625308 + var valid_625310 = formData.getOrDefault("DryRun") + valid_625310 = validateParameter(valid_625310, JBool, required = false, default = nil) + if valid_625310 != nil: + section.add "DryRun", valid_625310 assert formData != nil, "formData argument is necessary due to required `PublicIp` field" - var valid_625309 = formData.getOrDefault("PublicIp") - valid_625309 = validateParameter(valid_625309, JString, required = true, + var valid_625311 = formData.getOrDefault("PublicIp") + valid_625311 = validateParameter(valid_625311, JString, required = true, default = nil) - if valid_625309 != nil: - section.add "PublicIp", valid_625309 + if valid_625311 != nil: + section.add "PublicIp", valid_625311 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625310: Call_PostMoveAddressToVpc_625296; path: JsonNode; +proc call*(call_625312: Call_PostMoveAddressToVpc_625298; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Moves an Elastic IP address from the EC2-Classic platform to the EC2-VPC platform. The Elastic IP address must be allocated to your account for more than 24 hours, and it must not be associated with an instance. After the Elastic IP address is moved, it is no longer available for use in the EC2-Classic platform, unless you move it back using the RestoreAddressToClassic request. You cannot move an Elastic IP address that was originally allocated for use in the EC2-VPC platform to the EC2-Classic platform. ## - let valid = call_625310.validator(path, query, header, formData, body) - let scheme = call_625310.pickScheme + let valid = call_625312.validator(path, query, header, formData, body) + let scheme = call_625312.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625310.url(scheme.get, call_625310.host, call_625310.base, - call_625310.route, valid.getOrDefault("path"), + let url = call_625312.url(scheme.get, call_625312.host, call_625312.base, + call_625312.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625310, url, valid) + result = atozHook(call_625312, url, valid) -proc call*(call_625311: Call_PostMoveAddressToVpc_625296; PublicIp: string; +proc call*(call_625313: Call_PostMoveAddressToVpc_625298; PublicIp: string; DryRun: bool = false; Action: string = "MoveAddressToVpc"; Version: string = "2016-11-15"): Recallable = ## postMoveAddressToVpc @@ -117454,22 +117481,22 @@ proc call*(call_625311: Call_PostMoveAddressToVpc_625296; PublicIp: string; ## PublicIp: string (required) ## : The Elastic IP address. ## Version: string (required) - var query_625312 = newJObject() - var formData_625313 = newJObject() - add(formData_625313, "DryRun", newJBool(DryRun)) - add(query_625312, "Action", newJString(Action)) - add(formData_625313, "PublicIp", newJString(PublicIp)) - add(query_625312, "Version", newJString(Version)) - result = call_625311.call(nil, query_625312, nil, formData_625313, nil) + var query_625314 = newJObject() + var formData_625315 = newJObject() + add(formData_625315, "DryRun", newJBool(DryRun)) + add(query_625314, "Action", newJString(Action)) + add(formData_625315, "PublicIp", newJString(PublicIp)) + add(query_625314, "Version", newJString(Version)) + result = call_625313.call(nil, query_625314, nil, formData_625315, nil) -var postMoveAddressToVpc* = Call_PostMoveAddressToVpc_625296( +var postMoveAddressToVpc* = Call_PostMoveAddressToVpc_625298( name: "postMoveAddressToVpc", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=MoveAddressToVpc", - validator: validate_PostMoveAddressToVpc_625297, base: "/", - url: url_PostMoveAddressToVpc_625298, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostMoveAddressToVpc_625299, base: "/", + url: url_PostMoveAddressToVpc_625300, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetMoveAddressToVpc_625279 = ref object of OpenApiRestCall_610658 -proc url_GetMoveAddressToVpc_625281(protocol: Scheme; host: string; base: string; + Call_GetMoveAddressToVpc_625281 = ref object of OpenApiRestCall_610658 +proc url_GetMoveAddressToVpc_625283(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -117479,7 +117506,7 @@ proc url_GetMoveAddressToVpc_625281(protocol: Scheme; host: string; base: string else: result.path = base & route -proc validate_GetMoveAddressToVpc_625280(path: JsonNode; query: JsonNode; +proc validate_GetMoveAddressToVpc_625282(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Moves an Elastic IP address from the EC2-Classic platform to the EC2-VPC platform. The Elastic IP address must be allocated to your account for more than 24 hours, and it must not be associated with an instance. After the Elastic IP address is moved, it is no longer available for use in the EC2-Classic platform, unless you move it back using the RestoreAddressToClassic request. You cannot move an Elastic IP address that was originally allocated for use in the EC2-VPC platform to the EC2-Classic platform. @@ -117496,27 +117523,27 @@ proc validate_GetMoveAddressToVpc_625280(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625282 = query.getOrDefault("DryRun") - valid_625282 = validateParameter(valid_625282, JBool, required = false, default = nil) - if valid_625282 != nil: - section.add "DryRun", valid_625282 + var valid_625284 = query.getOrDefault("DryRun") + valid_625284 = validateParameter(valid_625284, JBool, required = false, default = nil) + if valid_625284 != nil: + section.add "DryRun", valid_625284 assert query != nil, "query argument is necessary due to required `PublicIp` field" - var valid_625283 = query.getOrDefault("PublicIp") - valid_625283 = validateParameter(valid_625283, JString, required = true, + var valid_625285 = query.getOrDefault("PublicIp") + valid_625285 = validateParameter(valid_625285, JString, required = true, default = nil) - if valid_625283 != nil: - section.add "PublicIp", valid_625283 - var valid_625284 = query.getOrDefault("Action") - valid_625284 = validateParameter(valid_625284, JString, required = true, + if valid_625285 != nil: + section.add "PublicIp", valid_625285 + var valid_625286 = query.getOrDefault("Action") + valid_625286 = validateParameter(valid_625286, JString, required = true, default = newJString("MoveAddressToVpc")) - if valid_625284 != nil: - section.add "Action", valid_625284 - var valid_625285 = query.getOrDefault("Version") - valid_625285 = validateParameter(valid_625285, JString, required = true, + if valid_625286 != nil: + section.add "Action", valid_625286 + var valid_625287 = query.getOrDefault("Version") + valid_625287 = validateParameter(valid_625287, JString, required = true, default = newJString("2016-11-15")) - if valid_625285 != nil: - section.add "Version", valid_625285 + if valid_625287 != nil: + section.add "Version", valid_625287 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -117527,61 +117554,61 @@ proc validate_GetMoveAddressToVpc_625280(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625286 = header.getOrDefault("X-Amz-Signature") - valid_625286 = validateParameter(valid_625286, JString, required = false, - default = nil) - if valid_625286 != nil: - section.add "X-Amz-Signature", valid_625286 - var valid_625287 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625287 = validateParameter(valid_625287, JString, required = false, - default = nil) - if valid_625287 != nil: - section.add "X-Amz-Content-Sha256", valid_625287 - var valid_625288 = header.getOrDefault("X-Amz-Date") + var valid_625288 = header.getOrDefault("X-Amz-Signature") valid_625288 = validateParameter(valid_625288, JString, required = false, default = nil) if valid_625288 != nil: - section.add "X-Amz-Date", valid_625288 - var valid_625289 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625288 + var valid_625289 = header.getOrDefault("X-Amz-Content-Sha256") valid_625289 = validateParameter(valid_625289, JString, required = false, default = nil) if valid_625289 != nil: - section.add "X-Amz-Credential", valid_625289 - var valid_625290 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625289 + var valid_625290 = header.getOrDefault("X-Amz-Date") valid_625290 = validateParameter(valid_625290, JString, required = false, default = nil) if valid_625290 != nil: - section.add "X-Amz-Security-Token", valid_625290 - var valid_625291 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625290 + var valid_625291 = header.getOrDefault("X-Amz-Credential") valid_625291 = validateParameter(valid_625291, JString, required = false, default = nil) if valid_625291 != nil: - section.add "X-Amz-Algorithm", valid_625291 - var valid_625292 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625291 + var valid_625292 = header.getOrDefault("X-Amz-Security-Token") valid_625292 = validateParameter(valid_625292, JString, required = false, default = nil) if valid_625292 != nil: - section.add "X-Amz-SignedHeaders", valid_625292 + section.add "X-Amz-Security-Token", valid_625292 + var valid_625293 = header.getOrDefault("X-Amz-Algorithm") + valid_625293 = validateParameter(valid_625293, JString, required = false, + default = nil) + if valid_625293 != nil: + section.add "X-Amz-Algorithm", valid_625293 + var valid_625294 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625294 = validateParameter(valid_625294, JString, required = false, + default = nil) + if valid_625294 != nil: + section.add "X-Amz-SignedHeaders", valid_625294 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625293: Call_GetMoveAddressToVpc_625279; path: JsonNode; +proc call*(call_625295: Call_GetMoveAddressToVpc_625281; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Moves an Elastic IP address from the EC2-Classic platform to the EC2-VPC platform. The Elastic IP address must be allocated to your account for more than 24 hours, and it must not be associated with an instance. After the Elastic IP address is moved, it is no longer available for use in the EC2-Classic platform, unless you move it back using the RestoreAddressToClassic request. You cannot move an Elastic IP address that was originally allocated for use in the EC2-VPC platform to the EC2-Classic platform. ## - let valid = call_625293.validator(path, query, header, formData, body) - let scheme = call_625293.pickScheme + let valid = call_625295.validator(path, query, header, formData, body) + let scheme = call_625295.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625293.url(scheme.get, call_625293.host, call_625293.base, - call_625293.route, valid.getOrDefault("path"), + let url = call_625295.url(scheme.get, call_625295.host, call_625295.base, + call_625295.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625293, url, valid) + result = atozHook(call_625295, url, valid) -proc call*(call_625294: Call_GetMoveAddressToVpc_625279; PublicIp: string; +proc call*(call_625296: Call_GetMoveAddressToVpc_625281; PublicIp: string; DryRun: bool = false; Action: string = "MoveAddressToVpc"; Version: string = "2016-11-15"): Recallable = ## getMoveAddressToVpc @@ -117592,21 +117619,21 @@ proc call*(call_625294: Call_GetMoveAddressToVpc_625279; PublicIp: string; ## : The Elastic IP address. ## Action: string (required) ## Version: string (required) - var query_625295 = newJObject() - add(query_625295, "DryRun", newJBool(DryRun)) - add(query_625295, "PublicIp", newJString(PublicIp)) - add(query_625295, "Action", newJString(Action)) - add(query_625295, "Version", newJString(Version)) - result = call_625294.call(nil, query_625295, nil, nil, nil) + var query_625297 = newJObject() + add(query_625297, "DryRun", newJBool(DryRun)) + add(query_625297, "PublicIp", newJString(PublicIp)) + add(query_625297, "Action", newJString(Action)) + add(query_625297, "Version", newJString(Version)) + result = call_625296.call(nil, query_625297, nil, nil, nil) -var getMoveAddressToVpc* = Call_GetMoveAddressToVpc_625279( +var getMoveAddressToVpc* = Call_GetMoveAddressToVpc_625281( name: "getMoveAddressToVpc", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=MoveAddressToVpc", - validator: validate_GetMoveAddressToVpc_625280, base: "/", - url: url_GetMoveAddressToVpc_625281, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetMoveAddressToVpc_625282, base: "/", + url: url_GetMoveAddressToVpc_625283, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostProvisionByoipCidr_625335 = ref object of OpenApiRestCall_610658 -proc url_PostProvisionByoipCidr_625337(protocol: Scheme; host: string; base: string; + Call_PostProvisionByoipCidr_625337 = ref object of OpenApiRestCall_610658 +proc url_PostProvisionByoipCidr_625339(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -117616,7 +117643,7 @@ proc url_PostProvisionByoipCidr_625337(protocol: Scheme; host: string; base: str else: result.path = base & route -proc validate_PostProvisionByoipCidr_625336(path: JsonNode; query: JsonNode; +proc validate_PostProvisionByoipCidr_625338(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Provisions an IPv4 or IPv6 address range for use with your AWS resources through bring your own IP addresses (BYOIP) and creates a corresponding address pool. After the address range is provisioned, it is ready to be advertised using AdvertiseByoipCidr.

    AWS verifies that you own the address range and are authorized to advertise it. You must ensure that the address range is registered to you and that you created an RPKI ROA to authorize Amazon ASNs 16509 and 14618 to advertise the address range. For more information, see Bring Your Own IP Addresses (BYOIP) in the Amazon Elastic Compute Cloud User Guide.

    Provisioning an address range is an asynchronous operation, so the call returns immediately, but the address range is not ready to use until its status changes from pending-provision to provisioned. To monitor the status of an address range, use DescribeByoipCidrs. To allocate an Elastic IP address from your IPv4 address pool, use AllocateAddress with either the specific address from the address pool or the ID of the address pool.

    ## @@ -117628,16 +117655,16 @@ proc validate_PostProvisionByoipCidr_625336(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625338 = query.getOrDefault("Action") - valid_625338 = validateParameter(valid_625338, JString, required = true, + var valid_625340 = query.getOrDefault("Action") + valid_625340 = validateParameter(valid_625340, JString, required = true, default = newJString("ProvisionByoipCidr")) - if valid_625338 != nil: - section.add "Action", valid_625338 - var valid_625339 = query.getOrDefault("Version") - valid_625339 = validateParameter(valid_625339, JString, required = true, + if valid_625340 != nil: + section.add "Action", valid_625340 + var valid_625341 = query.getOrDefault("Version") + valid_625341 = validateParameter(valid_625341, JString, required = true, default = newJString("2016-11-15")) - if valid_625339 != nil: - section.add "Version", valid_625339 + if valid_625341 != nil: + section.add "Version", valid_625341 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -117648,41 +117675,41 @@ proc validate_PostProvisionByoipCidr_625336(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625340 = header.getOrDefault("X-Amz-Signature") - valid_625340 = validateParameter(valid_625340, JString, required = false, - default = nil) - if valid_625340 != nil: - section.add "X-Amz-Signature", valid_625340 - var valid_625341 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625341 = validateParameter(valid_625341, JString, required = false, - default = nil) - if valid_625341 != nil: - section.add "X-Amz-Content-Sha256", valid_625341 - var valid_625342 = header.getOrDefault("X-Amz-Date") + var valid_625342 = header.getOrDefault("X-Amz-Signature") valid_625342 = validateParameter(valid_625342, JString, required = false, default = nil) if valid_625342 != nil: - section.add "X-Amz-Date", valid_625342 - var valid_625343 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625342 + var valid_625343 = header.getOrDefault("X-Amz-Content-Sha256") valid_625343 = validateParameter(valid_625343, JString, required = false, default = nil) if valid_625343 != nil: - section.add "X-Amz-Credential", valid_625343 - var valid_625344 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625343 + var valid_625344 = header.getOrDefault("X-Amz-Date") valid_625344 = validateParameter(valid_625344, JString, required = false, default = nil) if valid_625344 != nil: - section.add "X-Amz-Security-Token", valid_625344 - var valid_625345 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625344 + var valid_625345 = header.getOrDefault("X-Amz-Credential") valid_625345 = validateParameter(valid_625345, JString, required = false, default = nil) if valid_625345 != nil: - section.add "X-Amz-Algorithm", valid_625345 - var valid_625346 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625345 + var valid_625346 = header.getOrDefault("X-Amz-Security-Token") valid_625346 = validateParameter(valid_625346, JString, required = false, default = nil) if valid_625346 != nil: - section.add "X-Amz-SignedHeaders", valid_625346 + section.add "X-Amz-Security-Token", valid_625346 + var valid_625347 = header.getOrDefault("X-Amz-Algorithm") + valid_625347 = validateParameter(valid_625347, JString, required = false, + default = nil) + if valid_625347 != nil: + section.add "X-Amz-Algorithm", valid_625347 + var valid_625348 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625348 = validateParameter(valid_625348, JString, required = false, + default = nil) + if valid_625348 != nil: + section.add "X-Amz-SignedHeaders", valid_625348 result.add "header", section ## parameters in `formData` object: ## Description: JString @@ -117702,54 +117729,54 @@ proc validate_PostProvisionByoipCidr_625336(path: JsonNode; query: JsonNode; ## PubliclyAdvertisable: JBool ## :

    (IPv6 only) Indicate whether the address range will be publicly advertised to the internet.

    Default: true

    section = newJObject() - var valid_625347 = formData.getOrDefault("Description") - valid_625347 = validateParameter(valid_625347, JString, required = false, - default = nil) - if valid_625347 != nil: - section.add "Description", valid_625347 - var valid_625348 = formData.getOrDefault("DryRun") - valid_625348 = validateParameter(valid_625348, JBool, required = false, default = nil) - if valid_625348 != nil: - section.add "DryRun", valid_625348 - assert formData != nil, - "formData argument is necessary due to required `Cidr` field" - var valid_625349 = formData.getOrDefault("Cidr") - valid_625349 = validateParameter(valid_625349, JString, required = true, + var valid_625349 = formData.getOrDefault("Description") + valid_625349 = validateParameter(valid_625349, JString, required = false, default = nil) if valid_625349 != nil: - section.add "Cidr", valid_625349 - var valid_625350 = formData.getOrDefault("CidrAuthorizationContext.Signature") - valid_625350 = validateParameter(valid_625350, JString, required = false, - default = nil) + section.add "Description", valid_625349 + var valid_625350 = formData.getOrDefault("DryRun") + valid_625350 = validateParameter(valid_625350, JBool, required = false, default = nil) if valid_625350 != nil: - section.add "CidrAuthorizationContext.Signature", valid_625350 - var valid_625351 = formData.getOrDefault("CidrAuthorizationContext.Message") - valid_625351 = validateParameter(valid_625351, JString, required = false, + section.add "DryRun", valid_625350 + assert formData != nil, + "formData argument is necessary due to required `Cidr` field" + var valid_625351 = formData.getOrDefault("Cidr") + valid_625351 = validateParameter(valid_625351, JString, required = true, default = nil) if valid_625351 != nil: - section.add "CidrAuthorizationContext.Message", valid_625351 - var valid_625352 = formData.getOrDefault("PubliclyAdvertisable") - valid_625352 = validateParameter(valid_625352, JBool, required = false, default = nil) + section.add "Cidr", valid_625351 + var valid_625352 = formData.getOrDefault("CidrAuthorizationContext.Signature") + valid_625352 = validateParameter(valid_625352, JString, required = false, + default = nil) if valid_625352 != nil: - section.add "PubliclyAdvertisable", valid_625352 + section.add "CidrAuthorizationContext.Signature", valid_625352 + var valid_625353 = formData.getOrDefault("CidrAuthorizationContext.Message") + valid_625353 = validateParameter(valid_625353, JString, required = false, + default = nil) + if valid_625353 != nil: + section.add "CidrAuthorizationContext.Message", valid_625353 + var valid_625354 = formData.getOrDefault("PubliclyAdvertisable") + valid_625354 = validateParameter(valid_625354, JBool, required = false, default = nil) + if valid_625354 != nil: + section.add "PubliclyAdvertisable", valid_625354 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625353: Call_PostProvisionByoipCidr_625335; path: JsonNode; +proc call*(call_625355: Call_PostProvisionByoipCidr_625337; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Provisions an IPv4 or IPv6 address range for use with your AWS resources through bring your own IP addresses (BYOIP) and creates a corresponding address pool. After the address range is provisioned, it is ready to be advertised using AdvertiseByoipCidr.

    AWS verifies that you own the address range and are authorized to advertise it. You must ensure that the address range is registered to you and that you created an RPKI ROA to authorize Amazon ASNs 16509 and 14618 to advertise the address range. For more information, see Bring Your Own IP Addresses (BYOIP) in the Amazon Elastic Compute Cloud User Guide.

    Provisioning an address range is an asynchronous operation, so the call returns immediately, but the address range is not ready to use until its status changes from pending-provision to provisioned. To monitor the status of an address range, use DescribeByoipCidrs. To allocate an Elastic IP address from your IPv4 address pool, use AllocateAddress with either the specific address from the address pool or the ID of the address pool.

    ## - let valid = call_625353.validator(path, query, header, formData, body) - let scheme = call_625353.pickScheme + let valid = call_625355.validator(path, query, header, formData, body) + let scheme = call_625355.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625353.url(scheme.get, call_625353.host, call_625353.base, - call_625353.route, valid.getOrDefault("path"), + let url = call_625355.url(scheme.get, call_625355.host, call_625355.base, + call_625355.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625353, url, valid) + result = atozHook(call_625355, url, valid) -proc call*(call_625354: Call_PostProvisionByoipCidr_625335; Cidr: string; +proc call*(call_625356: Call_PostProvisionByoipCidr_625337; Cidr: string; Description: string = ""; DryRun: bool = false; Action: string = "ProvisionByoipCidr"; CidrAuthorizationContextSignature: string = ""; @@ -117775,28 +117802,28 @@ proc call*(call_625354: Call_PostProvisionByoipCidr_625335; Cidr: string; ## PubliclyAdvertisable: bool ## :

    (IPv6 only) Indicate whether the address range will be publicly advertised to the internet.

    Default: true

    ## Version: string (required) - var query_625355 = newJObject() - var formData_625356 = newJObject() - add(formData_625356, "Description", newJString(Description)) - add(formData_625356, "DryRun", newJBool(DryRun)) - add(formData_625356, "Cidr", newJString(Cidr)) - add(query_625355, "Action", newJString(Action)) - add(formData_625356, "CidrAuthorizationContext.Signature", + var query_625357 = newJObject() + var formData_625358 = newJObject() + add(formData_625358, "Description", newJString(Description)) + add(formData_625358, "DryRun", newJBool(DryRun)) + add(formData_625358, "Cidr", newJString(Cidr)) + add(query_625357, "Action", newJString(Action)) + add(formData_625358, "CidrAuthorizationContext.Signature", newJString(CidrAuthorizationContextSignature)) - add(formData_625356, "CidrAuthorizationContext.Message", + add(formData_625358, "CidrAuthorizationContext.Message", newJString(CidrAuthorizationContextMessage)) - add(formData_625356, "PubliclyAdvertisable", newJBool(PubliclyAdvertisable)) - add(query_625355, "Version", newJString(Version)) - result = call_625354.call(nil, query_625355, nil, formData_625356, nil) + add(formData_625358, "PubliclyAdvertisable", newJBool(PubliclyAdvertisable)) + add(query_625357, "Version", newJString(Version)) + result = call_625356.call(nil, query_625357, nil, formData_625358, nil) -var postProvisionByoipCidr* = Call_PostProvisionByoipCidr_625335( +var postProvisionByoipCidr* = Call_PostProvisionByoipCidr_625337( name: "postProvisionByoipCidr", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ProvisionByoipCidr", - validator: validate_PostProvisionByoipCidr_625336, base: "/", - url: url_PostProvisionByoipCidr_625337, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostProvisionByoipCidr_625338, base: "/", + url: url_PostProvisionByoipCidr_625339, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetProvisionByoipCidr_625314 = ref object of OpenApiRestCall_610658 -proc url_GetProvisionByoipCidr_625316(protocol: Scheme; host: string; base: string; + Call_GetProvisionByoipCidr_625316 = ref object of OpenApiRestCall_610658 +proc url_GetProvisionByoipCidr_625318(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -117806,7 +117833,7 @@ proc url_GetProvisionByoipCidr_625316(protocol: Scheme; host: string; base: stri else: result.path = base & route -proc validate_GetProvisionByoipCidr_625315(path: JsonNode; query: JsonNode; +proc validate_GetProvisionByoipCidr_625317(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Provisions an IPv4 or IPv6 address range for use with your AWS resources through bring your own IP addresses (BYOIP) and creates a corresponding address pool. After the address range is provisioned, it is ready to be advertised using AdvertiseByoipCidr.

    AWS verifies that you own the address range and are authorized to advertise it. You must ensure that the address range is registered to you and that you created an RPKI ROA to authorize Amazon ASNs 16509 and 14618 to advertise the address range. For more information, see Bring Your Own IP Addresses (BYOIP) in the Amazon Elastic Compute Cloud User Guide.

    Provisioning an address range is an asynchronous operation, so the call returns immediately, but the address range is not ready to use until its status changes from pending-provision to provisioned. To monitor the status of an address range, use DescribeByoipCidrs. To allocate an Elastic IP address from your IPv4 address pool, use AllocateAddress with either the specific address from the address pool or the ID of the address pool.

    ## @@ -117834,44 +117861,44 @@ proc validate_GetProvisionByoipCidr_625315(path: JsonNode; query: JsonNode; ## Cidr: JString (required) ## : The public IPv4 or IPv6 address range, in CIDR notation. The most specific IPv4 prefix that you can specify is /24. The most specific IPv6 prefix you can specify is /56. The address range cannot overlap with another address range that you've brought to this or another Region. section = newJObject() - var valid_625317 = query.getOrDefault("PubliclyAdvertisable") - valid_625317 = validateParameter(valid_625317, JBool, required = false, default = nil) - if valid_625317 != nil: - section.add "PubliclyAdvertisable", valid_625317 - var valid_625318 = query.getOrDefault("DryRun") - valid_625318 = validateParameter(valid_625318, JBool, required = false, default = nil) - if valid_625318 != nil: - section.add "DryRun", valid_625318 - var valid_625319 = query.getOrDefault("CidrAuthorizationContext.Signature") - valid_625319 = validateParameter(valid_625319, JString, required = false, - default = nil) + var valid_625319 = query.getOrDefault("PubliclyAdvertisable") + valid_625319 = validateParameter(valid_625319, JBool, required = false, default = nil) if valid_625319 != nil: - section.add "CidrAuthorizationContext.Signature", valid_625319 - var valid_625320 = query.getOrDefault("Action") - valid_625320 = validateParameter(valid_625320, JString, required = true, - default = newJString("ProvisionByoipCidr")) + section.add "PubliclyAdvertisable", valid_625319 + var valid_625320 = query.getOrDefault("DryRun") + valid_625320 = validateParameter(valid_625320, JBool, required = false, default = nil) if valid_625320 != nil: - section.add "Action", valid_625320 - var valid_625321 = query.getOrDefault("Description") + section.add "DryRun", valid_625320 + var valid_625321 = query.getOrDefault("CidrAuthorizationContext.Signature") valid_625321 = validateParameter(valid_625321, JString, required = false, default = nil) if valid_625321 != nil: - section.add "Description", valid_625321 - var valid_625322 = query.getOrDefault("Version") + section.add "CidrAuthorizationContext.Signature", valid_625321 + var valid_625322 = query.getOrDefault("Action") valid_625322 = validateParameter(valid_625322, JString, required = true, - default = newJString("2016-11-15")) + default = newJString("ProvisionByoipCidr")) if valid_625322 != nil: - section.add "Version", valid_625322 - var valid_625323 = query.getOrDefault("CidrAuthorizationContext.Message") + section.add "Action", valid_625322 + var valid_625323 = query.getOrDefault("Description") valid_625323 = validateParameter(valid_625323, JString, required = false, default = nil) if valid_625323 != nil: - section.add "CidrAuthorizationContext.Message", valid_625323 - var valid_625324 = query.getOrDefault("Cidr") + section.add "Description", valid_625323 + var valid_625324 = query.getOrDefault("Version") valid_625324 = validateParameter(valid_625324, JString, required = true, - default = nil) + default = newJString("2016-11-15")) if valid_625324 != nil: - section.add "Cidr", valid_625324 + section.add "Version", valid_625324 + var valid_625325 = query.getOrDefault("CidrAuthorizationContext.Message") + valid_625325 = validateParameter(valid_625325, JString, required = false, + default = nil) + if valid_625325 != nil: + section.add "CidrAuthorizationContext.Message", valid_625325 + var valid_625326 = query.getOrDefault("Cidr") + valid_625326 = validateParameter(valid_625326, JString, required = true, + default = nil) + if valid_625326 != nil: + section.add "Cidr", valid_625326 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -117882,61 +117909,61 @@ proc validate_GetProvisionByoipCidr_625315(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625325 = header.getOrDefault("X-Amz-Signature") - valid_625325 = validateParameter(valid_625325, JString, required = false, - default = nil) - if valid_625325 != nil: - section.add "X-Amz-Signature", valid_625325 - var valid_625326 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625326 = validateParameter(valid_625326, JString, required = false, - default = nil) - if valid_625326 != nil: - section.add "X-Amz-Content-Sha256", valid_625326 - var valid_625327 = header.getOrDefault("X-Amz-Date") + var valid_625327 = header.getOrDefault("X-Amz-Signature") valid_625327 = validateParameter(valid_625327, JString, required = false, default = nil) if valid_625327 != nil: - section.add "X-Amz-Date", valid_625327 - var valid_625328 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625327 + var valid_625328 = header.getOrDefault("X-Amz-Content-Sha256") valid_625328 = validateParameter(valid_625328, JString, required = false, default = nil) if valid_625328 != nil: - section.add "X-Amz-Credential", valid_625328 - var valid_625329 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625328 + var valid_625329 = header.getOrDefault("X-Amz-Date") valid_625329 = validateParameter(valid_625329, JString, required = false, default = nil) if valid_625329 != nil: - section.add "X-Amz-Security-Token", valid_625329 - var valid_625330 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625329 + var valid_625330 = header.getOrDefault("X-Amz-Credential") valid_625330 = validateParameter(valid_625330, JString, required = false, default = nil) if valid_625330 != nil: - section.add "X-Amz-Algorithm", valid_625330 - var valid_625331 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625330 + var valid_625331 = header.getOrDefault("X-Amz-Security-Token") valid_625331 = validateParameter(valid_625331, JString, required = false, default = nil) if valid_625331 != nil: - section.add "X-Amz-SignedHeaders", valid_625331 + section.add "X-Amz-Security-Token", valid_625331 + var valid_625332 = header.getOrDefault("X-Amz-Algorithm") + valid_625332 = validateParameter(valid_625332, JString, required = false, + default = nil) + if valid_625332 != nil: + section.add "X-Amz-Algorithm", valid_625332 + var valid_625333 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625333 = validateParameter(valid_625333, JString, required = false, + default = nil) + if valid_625333 != nil: + section.add "X-Amz-SignedHeaders", valid_625333 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625332: Call_GetProvisionByoipCidr_625314; path: JsonNode; +proc call*(call_625334: Call_GetProvisionByoipCidr_625316; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Provisions an IPv4 or IPv6 address range for use with your AWS resources through bring your own IP addresses (BYOIP) and creates a corresponding address pool. After the address range is provisioned, it is ready to be advertised using AdvertiseByoipCidr.

    AWS verifies that you own the address range and are authorized to advertise it. You must ensure that the address range is registered to you and that you created an RPKI ROA to authorize Amazon ASNs 16509 and 14618 to advertise the address range. For more information, see Bring Your Own IP Addresses (BYOIP) in the Amazon Elastic Compute Cloud User Guide.

    Provisioning an address range is an asynchronous operation, so the call returns immediately, but the address range is not ready to use until its status changes from pending-provision to provisioned. To monitor the status of an address range, use DescribeByoipCidrs. To allocate an Elastic IP address from your IPv4 address pool, use AllocateAddress with either the specific address from the address pool or the ID of the address pool.

    ## - let valid = call_625332.validator(path, query, header, formData, body) - let scheme = call_625332.pickScheme + let valid = call_625334.validator(path, query, header, formData, body) + let scheme = call_625334.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625332.url(scheme.get, call_625332.host, call_625332.base, - call_625332.route, valid.getOrDefault("path"), + let url = call_625334.url(scheme.get, call_625334.host, call_625334.base, + call_625334.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625332, url, valid) + result = atozHook(call_625334, url, valid) -proc call*(call_625333: Call_GetProvisionByoipCidr_625314; Cidr: string; +proc call*(call_625335: Call_GetProvisionByoipCidr_625316; Cidr: string; PubliclyAdvertisable: bool = false; DryRun: bool = false; CidrAuthorizationContextSignature: string = ""; Action: string = "ProvisionByoipCidr"; Description: string = ""; @@ -117962,27 +117989,27 @@ proc call*(call_625333: Call_GetProvisionByoipCidr_625314; Cidr: string; ## The plain-text authorization message for the prefix and account. ## Cidr: string (required) ## : The public IPv4 or IPv6 address range, in CIDR notation. The most specific IPv4 prefix that you can specify is /24. The most specific IPv6 prefix you can specify is /56. The address range cannot overlap with another address range that you've brought to this or another Region. - var query_625334 = newJObject() - add(query_625334, "PubliclyAdvertisable", newJBool(PubliclyAdvertisable)) - add(query_625334, "DryRun", newJBool(DryRun)) - add(query_625334, "CidrAuthorizationContext.Signature", + var query_625336 = newJObject() + add(query_625336, "PubliclyAdvertisable", newJBool(PubliclyAdvertisable)) + add(query_625336, "DryRun", newJBool(DryRun)) + add(query_625336, "CidrAuthorizationContext.Signature", newJString(CidrAuthorizationContextSignature)) - add(query_625334, "Action", newJString(Action)) - add(query_625334, "Description", newJString(Description)) - add(query_625334, "Version", newJString(Version)) - add(query_625334, "CidrAuthorizationContext.Message", + add(query_625336, "Action", newJString(Action)) + add(query_625336, "Description", newJString(Description)) + add(query_625336, "Version", newJString(Version)) + add(query_625336, "CidrAuthorizationContext.Message", newJString(CidrAuthorizationContextMessage)) - add(query_625334, "Cidr", newJString(Cidr)) - result = call_625333.call(nil, query_625334, nil, nil, nil) + add(query_625336, "Cidr", newJString(Cidr)) + result = call_625335.call(nil, query_625336, nil, nil, nil) -var getProvisionByoipCidr* = Call_GetProvisionByoipCidr_625314( +var getProvisionByoipCidr* = Call_GetProvisionByoipCidr_625316( name: "getProvisionByoipCidr", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ProvisionByoipCidr", - validator: validate_GetProvisionByoipCidr_625315, base: "/", - url: url_GetProvisionByoipCidr_625316, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetProvisionByoipCidr_625317, base: "/", + url: url_GetProvisionByoipCidr_625318, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostPurchaseHostReservation_625377 = ref object of OpenApiRestCall_610658 -proc url_PostPurchaseHostReservation_625379(protocol: Scheme; host: string; + Call_PostPurchaseHostReservation_625379 = ref object of OpenApiRestCall_610658 +proc url_PostPurchaseHostReservation_625381(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -117992,7 +118019,7 @@ proc url_PostPurchaseHostReservation_625379(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostPurchaseHostReservation_625378(path: JsonNode; query: JsonNode; +proc validate_PostPurchaseHostReservation_625380(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Purchase a reservation with configurations that match those of your Dedicated Host. You must have active Dedicated Hosts in your account before you purchase a reservation. This action results in the specified reservation being purchased and charged to your account. ## @@ -118004,16 +118031,16 @@ proc validate_PostPurchaseHostReservation_625378(path: JsonNode; query: JsonNode ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625380 = query.getOrDefault("Action") - valid_625380 = validateParameter(valid_625380, JString, required = true, default = newJString( + var valid_625382 = query.getOrDefault("Action") + valid_625382 = validateParameter(valid_625382, JString, required = true, default = newJString( "PurchaseHostReservation")) - if valid_625380 != nil: - section.add "Action", valid_625380 - var valid_625381 = query.getOrDefault("Version") - valid_625381 = validateParameter(valid_625381, JString, required = true, + if valid_625382 != nil: + section.add "Action", valid_625382 + var valid_625383 = query.getOrDefault("Version") + valid_625383 = validateParameter(valid_625383, JString, required = true, default = newJString("2016-11-15")) - if valid_625381 != nil: - section.add "Version", valid_625381 + if valid_625383 != nil: + section.add "Version", valid_625383 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -118024,41 +118051,41 @@ proc validate_PostPurchaseHostReservation_625378(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625382 = header.getOrDefault("X-Amz-Signature") - valid_625382 = validateParameter(valid_625382, JString, required = false, - default = nil) - if valid_625382 != nil: - section.add "X-Amz-Signature", valid_625382 - var valid_625383 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625383 = validateParameter(valid_625383, JString, required = false, - default = nil) - if valid_625383 != nil: - section.add "X-Amz-Content-Sha256", valid_625383 - var valid_625384 = header.getOrDefault("X-Amz-Date") + var valid_625384 = header.getOrDefault("X-Amz-Signature") valid_625384 = validateParameter(valid_625384, JString, required = false, default = nil) if valid_625384 != nil: - section.add "X-Amz-Date", valid_625384 - var valid_625385 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625384 + var valid_625385 = header.getOrDefault("X-Amz-Content-Sha256") valid_625385 = validateParameter(valid_625385, JString, required = false, default = nil) if valid_625385 != nil: - section.add "X-Amz-Credential", valid_625385 - var valid_625386 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625385 + var valid_625386 = header.getOrDefault("X-Amz-Date") valid_625386 = validateParameter(valid_625386, JString, required = false, default = nil) if valid_625386 != nil: - section.add "X-Amz-Security-Token", valid_625386 - var valid_625387 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625386 + var valid_625387 = header.getOrDefault("X-Amz-Credential") valid_625387 = validateParameter(valid_625387, JString, required = false, default = nil) if valid_625387 != nil: - section.add "X-Amz-Algorithm", valid_625387 - var valid_625388 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625387 + var valid_625388 = header.getOrDefault("X-Amz-Security-Token") valid_625388 = validateParameter(valid_625388, JString, required = false, default = nil) if valid_625388 != nil: - section.add "X-Amz-SignedHeaders", valid_625388 + section.add "X-Amz-Security-Token", valid_625388 + var valid_625389 = header.getOrDefault("X-Amz-Algorithm") + valid_625389 = validateParameter(valid_625389, JString, required = false, + default = nil) + if valid_625389 != nil: + section.add "X-Amz-Algorithm", valid_625389 + var valid_625390 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625390 = validateParameter(valid_625390, JString, required = false, + default = nil) + if valid_625390 != nil: + section.add "X-Amz-SignedHeaders", valid_625390 result.add "header", section ## parameters in `formData` object: ## OfferingId: JString (required) @@ -118075,48 +118102,48 @@ proc validate_PostPurchaseHostReservation_625378(path: JsonNode; query: JsonNode section = newJObject() assert formData != nil, "formData argument is necessary due to required `OfferingId` field" - var valid_625389 = formData.getOrDefault("OfferingId") - valid_625389 = validateParameter(valid_625389, JString, required = true, - default = nil) - if valid_625389 != nil: - section.add "OfferingId", valid_625389 - var valid_625390 = formData.getOrDefault("HostIdSet") - valid_625390 = validateParameter(valid_625390, JArray, required = true, default = nil) - if valid_625390 != nil: - section.add "HostIdSet", valid_625390 - var valid_625391 = formData.getOrDefault("LimitPrice") - valid_625391 = validateParameter(valid_625391, JString, required = false, + var valid_625391 = formData.getOrDefault("OfferingId") + valid_625391 = validateParameter(valid_625391, JString, required = true, default = nil) if valid_625391 != nil: - section.add "LimitPrice", valid_625391 - var valid_625392 = formData.getOrDefault("ClientToken") - valid_625392 = validateParameter(valid_625392, JString, required = false, - default = nil) + section.add "OfferingId", valid_625391 + var valid_625392 = formData.getOrDefault("HostIdSet") + valid_625392 = validateParameter(valid_625392, JArray, required = true, default = nil) if valid_625392 != nil: - section.add "ClientToken", valid_625392 - var valid_625393 = formData.getOrDefault("CurrencyCode") + section.add "HostIdSet", valid_625392 + var valid_625393 = formData.getOrDefault("LimitPrice") valid_625393 = validateParameter(valid_625393, JString, required = false, - default = newJString("USD")) + default = nil) if valid_625393 != nil: - section.add "CurrencyCode", valid_625393 + section.add "LimitPrice", valid_625393 + var valid_625394 = formData.getOrDefault("ClientToken") + valid_625394 = validateParameter(valid_625394, JString, required = false, + default = nil) + if valid_625394 != nil: + section.add "ClientToken", valid_625394 + var valid_625395 = formData.getOrDefault("CurrencyCode") + valid_625395 = validateParameter(valid_625395, JString, required = false, + default = newJString("USD")) + if valid_625395 != nil: + section.add "CurrencyCode", valid_625395 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625394: Call_PostPurchaseHostReservation_625377; path: JsonNode; +proc call*(call_625396: Call_PostPurchaseHostReservation_625379; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Purchase a reservation with configurations that match those of your Dedicated Host. You must have active Dedicated Hosts in your account before you purchase a reservation. This action results in the specified reservation being purchased and charged to your account. ## - let valid = call_625394.validator(path, query, header, formData, body) - let scheme = call_625394.pickScheme + let valid = call_625396.validator(path, query, header, formData, body) + let scheme = call_625396.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625394.url(scheme.get, call_625394.host, call_625394.base, - call_625394.route, valid.getOrDefault("path"), + let url = call_625396.url(scheme.get, call_625396.host, call_625396.base, + call_625396.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625394, url, valid) + result = atozHook(call_625396, url, valid) -proc call*(call_625395: Call_PostPurchaseHostReservation_625377; +proc call*(call_625397: Call_PostPurchaseHostReservation_625379; OfferingId: string; HostIdSet: JsonNode; Action: string = "PurchaseHostReservation"; LimitPrice: string = ""; Version: string = "2016-11-15"; ClientToken: string = ""; @@ -118136,27 +118163,27 @@ proc call*(call_625395: Call_PostPurchaseHostReservation_625377; ## href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">How to Ensure Idempotency. ## CurrencyCode: string ## : The currency in which the totalUpfrontPrice, LimitPrice, and totalHourlyPrice amounts are specified. At this time, the only supported currency is USD. - var query_625396 = newJObject() - var formData_625397 = newJObject() - add(formData_625397, "OfferingId", newJString(OfferingId)) - add(query_625396, "Action", newJString(Action)) + var query_625398 = newJObject() + var formData_625399 = newJObject() + add(formData_625399, "OfferingId", newJString(OfferingId)) + add(query_625398, "Action", newJString(Action)) if HostIdSet != nil: - formData_625397.add "HostIdSet", HostIdSet - add(formData_625397, "LimitPrice", newJString(LimitPrice)) - add(query_625396, "Version", newJString(Version)) - add(formData_625397, "ClientToken", newJString(ClientToken)) - add(formData_625397, "CurrencyCode", newJString(CurrencyCode)) - result = call_625395.call(nil, query_625396, nil, formData_625397, nil) - -var postPurchaseHostReservation* = Call_PostPurchaseHostReservation_625377( + formData_625399.add "HostIdSet", HostIdSet + add(formData_625399, "LimitPrice", newJString(LimitPrice)) + add(query_625398, "Version", newJString(Version)) + add(formData_625399, "ClientToken", newJString(ClientToken)) + add(formData_625399, "CurrencyCode", newJString(CurrencyCode)) + result = call_625397.call(nil, query_625398, nil, formData_625399, nil) + +var postPurchaseHostReservation* = Call_PostPurchaseHostReservation_625379( name: "postPurchaseHostReservation", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=PurchaseHostReservation", - validator: validate_PostPurchaseHostReservation_625378, base: "/", - url: url_PostPurchaseHostReservation_625379, + validator: validate_PostPurchaseHostReservation_625380, base: "/", + url: url_PostPurchaseHostReservation_625381, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetPurchaseHostReservation_625357 = ref object of OpenApiRestCall_610658 -proc url_GetPurchaseHostReservation_625359(protocol: Scheme; host: string; + Call_GetPurchaseHostReservation_625359 = ref object of OpenApiRestCall_610658 +proc url_GetPurchaseHostReservation_625361(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -118166,7 +118193,7 @@ proc url_GetPurchaseHostReservation_625359(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetPurchaseHostReservation_625358(path: JsonNode; query: JsonNode; +proc validate_GetPurchaseHostReservation_625360(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Purchase a reservation with configurations that match those of your Dedicated Host. You must have active Dedicated Hosts in your account before you purchase a reservation. This action results in the specified reservation being purchased and charged to your account. ## @@ -118191,40 +118218,40 @@ proc validate_GetPurchaseHostReservation_625358(path: JsonNode; query: JsonNode; section = newJObject() assert query != nil, "query argument is necessary due to required `HostIdSet` field" - var valid_625360 = query.getOrDefault("HostIdSet") - valid_625360 = validateParameter(valid_625360, JArray, required = true, default = nil) - if valid_625360 != nil: - section.add "HostIdSet", valid_625360 - var valid_625361 = query.getOrDefault("OfferingId") - valid_625361 = validateParameter(valid_625361, JString, required = true, - default = nil) - if valid_625361 != nil: - section.add "OfferingId", valid_625361 - var valid_625362 = query.getOrDefault("Action") - valid_625362 = validateParameter(valid_625362, JString, required = true, default = newJString( - "PurchaseHostReservation")) + var valid_625362 = query.getOrDefault("HostIdSet") + valid_625362 = validateParameter(valid_625362, JArray, required = true, default = nil) if valid_625362 != nil: - section.add "Action", valid_625362 - var valid_625363 = query.getOrDefault("LimitPrice") - valid_625363 = validateParameter(valid_625363, JString, required = false, + section.add "HostIdSet", valid_625362 + var valid_625363 = query.getOrDefault("OfferingId") + valid_625363 = validateParameter(valid_625363, JString, required = true, default = nil) if valid_625363 != nil: - section.add "LimitPrice", valid_625363 - var valid_625364 = query.getOrDefault("CurrencyCode") - valid_625364 = validateParameter(valid_625364, JString, required = false, - default = newJString("USD")) + section.add "OfferingId", valid_625363 + var valid_625364 = query.getOrDefault("Action") + valid_625364 = validateParameter(valid_625364, JString, required = true, default = newJString( + "PurchaseHostReservation")) if valid_625364 != nil: - section.add "CurrencyCode", valid_625364 - var valid_625365 = query.getOrDefault("Version") - valid_625365 = validateParameter(valid_625365, JString, required = true, - default = newJString("2016-11-15")) + section.add "Action", valid_625364 + var valid_625365 = query.getOrDefault("LimitPrice") + valid_625365 = validateParameter(valid_625365, JString, required = false, + default = nil) if valid_625365 != nil: - section.add "Version", valid_625365 - var valid_625366 = query.getOrDefault("ClientToken") + section.add "LimitPrice", valid_625365 + var valid_625366 = query.getOrDefault("CurrencyCode") valid_625366 = validateParameter(valid_625366, JString, required = false, - default = nil) + default = newJString("USD")) if valid_625366 != nil: - section.add "ClientToken", valid_625366 + section.add "CurrencyCode", valid_625366 + var valid_625367 = query.getOrDefault("Version") + valid_625367 = validateParameter(valid_625367, JString, required = true, + default = newJString("2016-11-15")) + if valid_625367 != nil: + section.add "Version", valid_625367 + var valid_625368 = query.getOrDefault("ClientToken") + valid_625368 = validateParameter(valid_625368, JString, required = false, + default = nil) + if valid_625368 != nil: + section.add "ClientToken", valid_625368 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -118235,61 +118262,61 @@ proc validate_GetPurchaseHostReservation_625358(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625367 = header.getOrDefault("X-Amz-Signature") - valid_625367 = validateParameter(valid_625367, JString, required = false, - default = nil) - if valid_625367 != nil: - section.add "X-Amz-Signature", valid_625367 - var valid_625368 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625368 = validateParameter(valid_625368, JString, required = false, - default = nil) - if valid_625368 != nil: - section.add "X-Amz-Content-Sha256", valid_625368 - var valid_625369 = header.getOrDefault("X-Amz-Date") + var valid_625369 = header.getOrDefault("X-Amz-Signature") valid_625369 = validateParameter(valid_625369, JString, required = false, default = nil) if valid_625369 != nil: - section.add "X-Amz-Date", valid_625369 - var valid_625370 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625369 + var valid_625370 = header.getOrDefault("X-Amz-Content-Sha256") valid_625370 = validateParameter(valid_625370, JString, required = false, default = nil) if valid_625370 != nil: - section.add "X-Amz-Credential", valid_625370 - var valid_625371 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625370 + var valid_625371 = header.getOrDefault("X-Amz-Date") valid_625371 = validateParameter(valid_625371, JString, required = false, default = nil) if valid_625371 != nil: - section.add "X-Amz-Security-Token", valid_625371 - var valid_625372 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625371 + var valid_625372 = header.getOrDefault("X-Amz-Credential") valid_625372 = validateParameter(valid_625372, JString, required = false, default = nil) if valid_625372 != nil: - section.add "X-Amz-Algorithm", valid_625372 - var valid_625373 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625372 + var valid_625373 = header.getOrDefault("X-Amz-Security-Token") valid_625373 = validateParameter(valid_625373, JString, required = false, default = nil) if valid_625373 != nil: - section.add "X-Amz-SignedHeaders", valid_625373 + section.add "X-Amz-Security-Token", valid_625373 + var valid_625374 = header.getOrDefault("X-Amz-Algorithm") + valid_625374 = validateParameter(valid_625374, JString, required = false, + default = nil) + if valid_625374 != nil: + section.add "X-Amz-Algorithm", valid_625374 + var valid_625375 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625375 = validateParameter(valid_625375, JString, required = false, + default = nil) + if valid_625375 != nil: + section.add "X-Amz-SignedHeaders", valid_625375 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625374: Call_GetPurchaseHostReservation_625357; path: JsonNode; +proc call*(call_625376: Call_GetPurchaseHostReservation_625359; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Purchase a reservation with configurations that match those of your Dedicated Host. You must have active Dedicated Hosts in your account before you purchase a reservation. This action results in the specified reservation being purchased and charged to your account. ## - let valid = call_625374.validator(path, query, header, formData, body) - let scheme = call_625374.pickScheme + let valid = call_625376.validator(path, query, header, formData, body) + let scheme = call_625376.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625374.url(scheme.get, call_625374.host, call_625374.base, - call_625374.route, valid.getOrDefault("path"), + let url = call_625376.url(scheme.get, call_625376.host, call_625376.base, + call_625376.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625374, url, valid) + result = atozHook(call_625376, url, valid) -proc call*(call_625375: Call_GetPurchaseHostReservation_625357; +proc call*(call_625377: Call_GetPurchaseHostReservation_625359; HostIdSet: JsonNode; OfferingId: string; Action: string = "PurchaseHostReservation"; LimitPrice: string = ""; CurrencyCode: string = "USD"; Version: string = "2016-11-15"; @@ -118309,26 +118336,26 @@ proc call*(call_625375: Call_GetPurchaseHostReservation_625357; ## ClientToken: string ## : Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency. - var query_625376 = newJObject() + var query_625378 = newJObject() if HostIdSet != nil: - query_625376.add "HostIdSet", HostIdSet - add(query_625376, "OfferingId", newJString(OfferingId)) - add(query_625376, "Action", newJString(Action)) - add(query_625376, "LimitPrice", newJString(LimitPrice)) - add(query_625376, "CurrencyCode", newJString(CurrencyCode)) - add(query_625376, "Version", newJString(Version)) - add(query_625376, "ClientToken", newJString(ClientToken)) - result = call_625375.call(nil, query_625376, nil, nil, nil) - -var getPurchaseHostReservation* = Call_GetPurchaseHostReservation_625357( + query_625378.add "HostIdSet", HostIdSet + add(query_625378, "OfferingId", newJString(OfferingId)) + add(query_625378, "Action", newJString(Action)) + add(query_625378, "LimitPrice", newJString(LimitPrice)) + add(query_625378, "CurrencyCode", newJString(CurrencyCode)) + add(query_625378, "Version", newJString(Version)) + add(query_625378, "ClientToken", newJString(ClientToken)) + result = call_625377.call(nil, query_625378, nil, nil, nil) + +var getPurchaseHostReservation* = Call_GetPurchaseHostReservation_625359( name: "getPurchaseHostReservation", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=PurchaseHostReservation", - validator: validate_GetPurchaseHostReservation_625358, base: "/", - url: url_GetPurchaseHostReservation_625359, + validator: validate_GetPurchaseHostReservation_625360, base: "/", + url: url_GetPurchaseHostReservation_625361, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostPurchaseReservedInstancesOffering_625419 = ref object of OpenApiRestCall_610658 -proc url_PostPurchaseReservedInstancesOffering_625421(protocol: Scheme; + Call_PostPurchaseReservedInstancesOffering_625421 = ref object of OpenApiRestCall_610658 +proc url_PostPurchaseReservedInstancesOffering_625423(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -118338,7 +118365,7 @@ proc url_PostPurchaseReservedInstancesOffering_625421(protocol: Scheme; else: result.path = base & route -proc validate_PostPurchaseReservedInstancesOffering_625420(path: JsonNode; +proc validate_PostPurchaseReservedInstancesOffering_625422(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Purchases a Reserved Instance for use with your account. With Reserved Instances, you pay a lower hourly rate compared to On-Demand instance pricing.

    Use DescribeReservedInstancesOfferings to get a list of Reserved Instance offerings that match your specifications. After you've purchased a Reserved Instance, you can check for your new Reserved Instance with DescribeReservedInstances.

    To queue a purchase for a future date and time, specify a purchase time. If you do not specify a purchase time, the default is the current time.

    For more information, see Reserved Instances and Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -118350,16 +118377,16 @@ proc validate_PostPurchaseReservedInstancesOffering_625420(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625422 = query.getOrDefault("Action") - valid_625422 = validateParameter(valid_625422, JString, required = true, default = newJString( + var valid_625424 = query.getOrDefault("Action") + valid_625424 = validateParameter(valid_625424, JString, required = true, default = newJString( "PurchaseReservedInstancesOffering")) - if valid_625422 != nil: - section.add "Action", valid_625422 - var valid_625423 = query.getOrDefault("Version") - valid_625423 = validateParameter(valid_625423, JString, required = true, + if valid_625424 != nil: + section.add "Action", valid_625424 + var valid_625425 = query.getOrDefault("Version") + valid_625425 = validateParameter(valid_625425, JString, required = true, default = newJString("2016-11-15")) - if valid_625423 != nil: - section.add "Version", valid_625423 + if valid_625425 != nil: + section.add "Version", valid_625425 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -118370,41 +118397,41 @@ proc validate_PostPurchaseReservedInstancesOffering_625420(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625424 = header.getOrDefault("X-Amz-Signature") - valid_625424 = validateParameter(valid_625424, JString, required = false, - default = nil) - if valid_625424 != nil: - section.add "X-Amz-Signature", valid_625424 - var valid_625425 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625425 = validateParameter(valid_625425, JString, required = false, - default = nil) - if valid_625425 != nil: - section.add "X-Amz-Content-Sha256", valid_625425 - var valid_625426 = header.getOrDefault("X-Amz-Date") + var valid_625426 = header.getOrDefault("X-Amz-Signature") valid_625426 = validateParameter(valid_625426, JString, required = false, default = nil) if valid_625426 != nil: - section.add "X-Amz-Date", valid_625426 - var valid_625427 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625426 + var valid_625427 = header.getOrDefault("X-Amz-Content-Sha256") valid_625427 = validateParameter(valid_625427, JString, required = false, default = nil) if valid_625427 != nil: - section.add "X-Amz-Credential", valid_625427 - var valid_625428 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625427 + var valid_625428 = header.getOrDefault("X-Amz-Date") valid_625428 = validateParameter(valid_625428, JString, required = false, default = nil) if valid_625428 != nil: - section.add "X-Amz-Security-Token", valid_625428 - var valid_625429 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625428 + var valid_625429 = header.getOrDefault("X-Amz-Credential") valid_625429 = validateParameter(valid_625429, JString, required = false, default = nil) if valid_625429 != nil: - section.add "X-Amz-Algorithm", valid_625429 - var valid_625430 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625429 + var valid_625430 = header.getOrDefault("X-Amz-Security-Token") valid_625430 = validateParameter(valid_625430, JString, required = false, default = nil) if valid_625430 != nil: - section.add "X-Amz-SignedHeaders", valid_625430 + section.add "X-Amz-Security-Token", valid_625430 + var valid_625431 = header.getOrDefault("X-Amz-Algorithm") + valid_625431 = validateParameter(valid_625431, JString, required = false, + default = nil) + if valid_625431 != nil: + section.add "X-Amz-Algorithm", valid_625431 + var valid_625432 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625432 = validateParameter(valid_625432, JString, required = false, + default = nil) + if valid_625432 != nil: + section.add "X-Amz-SignedHeaders", valid_625432 result.add "header", section ## parameters in `formData` object: ## LimitPrice.Amount: JString @@ -118422,54 +118449,54 @@ proc validate_PostPurchaseReservedInstancesOffering_625420(path: JsonNode; ## : Describes the limit price of a Reserved Instance offering. ## The currency in which the limitPrice amount is specified. At this time, the only supported currency is USD. section = newJObject() - var valid_625431 = formData.getOrDefault("LimitPrice.Amount") - valid_625431 = validateParameter(valid_625431, JString, required = false, + var valid_625433 = formData.getOrDefault("LimitPrice.Amount") + valid_625433 = validateParameter(valid_625433, JString, required = false, default = nil) - if valid_625431 != nil: - section.add "LimitPrice.Amount", valid_625431 + if valid_625433 != nil: + section.add "LimitPrice.Amount", valid_625433 assert formData != nil, "formData argument is necessary due to required `ReservedInstancesOfferingId` field" - var valid_625432 = formData.getOrDefault("ReservedInstancesOfferingId") - valid_625432 = validateParameter(valid_625432, JString, required = true, + var valid_625434 = formData.getOrDefault("ReservedInstancesOfferingId") + valid_625434 = validateParameter(valid_625434, JString, required = true, default = nil) - if valid_625432 != nil: - section.add "ReservedInstancesOfferingId", valid_625432 - var valid_625433 = formData.getOrDefault("InstanceCount") - valid_625433 = validateParameter(valid_625433, JInt, required = true, default = nil) - if valid_625433 != nil: - section.add "InstanceCount", valid_625433 - var valid_625434 = formData.getOrDefault("DryRun") - valid_625434 = validateParameter(valid_625434, JBool, required = false, default = nil) if valid_625434 != nil: - section.add "DryRun", valid_625434 - var valid_625435 = formData.getOrDefault("PurchaseTime") - valid_625435 = validateParameter(valid_625435, JString, required = false, - default = nil) + section.add "ReservedInstancesOfferingId", valid_625434 + var valid_625435 = formData.getOrDefault("InstanceCount") + valid_625435 = validateParameter(valid_625435, JInt, required = true, default = nil) if valid_625435 != nil: - section.add "PurchaseTime", valid_625435 - var valid_625436 = formData.getOrDefault("LimitPrice.CurrencyCode") - valid_625436 = validateParameter(valid_625436, JString, required = false, - default = nil) + section.add "InstanceCount", valid_625435 + var valid_625436 = formData.getOrDefault("DryRun") + valid_625436 = validateParameter(valid_625436, JBool, required = false, default = nil) if valid_625436 != nil: - section.add "LimitPrice.CurrencyCode", valid_625436 + section.add "DryRun", valid_625436 + var valid_625437 = formData.getOrDefault("PurchaseTime") + valid_625437 = validateParameter(valid_625437, JString, required = false, + default = nil) + if valid_625437 != nil: + section.add "PurchaseTime", valid_625437 + var valid_625438 = formData.getOrDefault("LimitPrice.CurrencyCode") + valid_625438 = validateParameter(valid_625438, JString, required = false, + default = nil) + if valid_625438 != nil: + section.add "LimitPrice.CurrencyCode", valid_625438 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625437: Call_PostPurchaseReservedInstancesOffering_625419; +proc call*(call_625439: Call_PostPurchaseReservedInstancesOffering_625421; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Purchases a Reserved Instance for use with your account. With Reserved Instances, you pay a lower hourly rate compared to On-Demand instance pricing.

    Use DescribeReservedInstancesOfferings to get a list of Reserved Instance offerings that match your specifications. After you've purchased a Reserved Instance, you can check for your new Reserved Instance with DescribeReservedInstances.

    To queue a purchase for a future date and time, specify a purchase time. If you do not specify a purchase time, the default is the current time.

    For more information, see Reserved Instances and Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_625437.validator(path, query, header, formData, body) - let scheme = call_625437.pickScheme + let valid = call_625439.validator(path, query, header, formData, body) + let scheme = call_625439.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625437.url(scheme.get, call_625437.host, call_625437.base, - call_625437.route, valid.getOrDefault("path"), + let url = call_625439.url(scheme.get, call_625439.host, call_625439.base, + call_625439.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625437, url, valid) + result = atozHook(call_625439, url, valid) -proc call*(call_625438: Call_PostPurchaseReservedInstancesOffering_625419; +proc call*(call_625440: Call_PostPurchaseReservedInstancesOffering_625421; ReservedInstancesOfferingId: string; InstanceCount: int; LimitPriceAmount: string = ""; DryRun: bool = false; PurchaseTime: string = ""; @@ -118493,30 +118520,30 @@ proc call*(call_625438: Call_PostPurchaseReservedInstancesOffering_625419; ## : Describes the limit price of a Reserved Instance offering. ## The currency in which the limitPrice amount is specified. At this time, the only supported currency is USD. ## Version: string (required) - var query_625439 = newJObject() - var formData_625440 = newJObject() - add(formData_625440, "LimitPrice.Amount", newJString(LimitPriceAmount)) - add(formData_625440, "ReservedInstancesOfferingId", + var query_625441 = newJObject() + var formData_625442 = newJObject() + add(formData_625442, "LimitPrice.Amount", newJString(LimitPriceAmount)) + add(formData_625442, "ReservedInstancesOfferingId", newJString(ReservedInstancesOfferingId)) - add(formData_625440, "InstanceCount", newJInt(InstanceCount)) - add(formData_625440, "DryRun", newJBool(DryRun)) - add(formData_625440, "PurchaseTime", newJString(PurchaseTime)) - add(query_625439, "Action", newJString(Action)) - add(formData_625440, "LimitPrice.CurrencyCode", + add(formData_625442, "InstanceCount", newJInt(InstanceCount)) + add(formData_625442, "DryRun", newJBool(DryRun)) + add(formData_625442, "PurchaseTime", newJString(PurchaseTime)) + add(query_625441, "Action", newJString(Action)) + add(formData_625442, "LimitPrice.CurrencyCode", newJString(LimitPriceCurrencyCode)) - add(query_625439, "Version", newJString(Version)) - result = call_625438.call(nil, query_625439, nil, formData_625440, nil) + add(query_625441, "Version", newJString(Version)) + result = call_625440.call(nil, query_625441, nil, formData_625442, nil) -var postPurchaseReservedInstancesOffering* = Call_PostPurchaseReservedInstancesOffering_625419( +var postPurchaseReservedInstancesOffering* = Call_PostPurchaseReservedInstancesOffering_625421( name: "postPurchaseReservedInstancesOffering", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=PurchaseReservedInstancesOffering", - validator: validate_PostPurchaseReservedInstancesOffering_625420, base: "/", - url: url_PostPurchaseReservedInstancesOffering_625421, + validator: validate_PostPurchaseReservedInstancesOffering_625422, base: "/", + url: url_PostPurchaseReservedInstancesOffering_625423, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetPurchaseReservedInstancesOffering_625398 = ref object of OpenApiRestCall_610658 -proc url_GetPurchaseReservedInstancesOffering_625400(protocol: Scheme; + Call_GetPurchaseReservedInstancesOffering_625400 = ref object of OpenApiRestCall_610658 +proc url_GetPurchaseReservedInstancesOffering_625402(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -118526,7 +118553,7 @@ proc url_GetPurchaseReservedInstancesOffering_625400(protocol: Scheme; else: result.path = base & route -proc validate_GetPurchaseReservedInstancesOffering_625399(path: JsonNode; +proc validate_GetPurchaseReservedInstancesOffering_625401(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Purchases a Reserved Instance for use with your account. With Reserved Instances, you pay a lower hourly rate compared to On-Demand instance pricing.

    Use DescribeReservedInstancesOfferings to get a list of Reserved Instance offerings that match your specifications. After you've purchased a Reserved Instance, you can check for your new Reserved Instance with DescribeReservedInstances.

    To queue a purchase for a future date and time, specify a purchase time. If you do not specify a purchase time, the default is the current time.

    For more information, see Reserved Instances and Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -118554,44 +118581,44 @@ proc validate_GetPurchaseReservedInstancesOffering_625399(path: JsonNode; section = newJObject() assert query != nil, "query argument is necessary due to required `InstanceCount` field" - var valid_625401 = query.getOrDefault("InstanceCount") - valid_625401 = validateParameter(valid_625401, JInt, required = true, default = nil) - if valid_625401 != nil: - section.add "InstanceCount", valid_625401 - var valid_625402 = query.getOrDefault("LimitPrice.Amount") - valid_625402 = validateParameter(valid_625402, JString, required = false, - default = nil) - if valid_625402 != nil: - section.add "LimitPrice.Amount", valid_625402 - var valid_625403 = query.getOrDefault("DryRun") - valid_625403 = validateParameter(valid_625403, JBool, required = false, default = nil) + var valid_625403 = query.getOrDefault("InstanceCount") + valid_625403 = validateParameter(valid_625403, JInt, required = true, default = nil) if valid_625403 != nil: - section.add "DryRun", valid_625403 - var valid_625404 = query.getOrDefault("ReservedInstancesOfferingId") - valid_625404 = validateParameter(valid_625404, JString, required = true, + section.add "InstanceCount", valid_625403 + var valid_625404 = query.getOrDefault("LimitPrice.Amount") + valid_625404 = validateParameter(valid_625404, JString, required = false, default = nil) if valid_625404 != nil: - section.add "ReservedInstancesOfferingId", valid_625404 - var valid_625405 = query.getOrDefault("PurchaseTime") - valid_625405 = validateParameter(valid_625405, JString, required = false, - default = nil) + section.add "LimitPrice.Amount", valid_625404 + var valid_625405 = query.getOrDefault("DryRun") + valid_625405 = validateParameter(valid_625405, JBool, required = false, default = nil) if valid_625405 != nil: - section.add "PurchaseTime", valid_625405 - var valid_625406 = query.getOrDefault("Action") - valid_625406 = validateParameter(valid_625406, JString, required = true, default = newJString( - "PurchaseReservedInstancesOffering")) + section.add "DryRun", valid_625405 + var valid_625406 = query.getOrDefault("ReservedInstancesOfferingId") + valid_625406 = validateParameter(valid_625406, JString, required = true, + default = nil) if valid_625406 != nil: - section.add "Action", valid_625406 - var valid_625407 = query.getOrDefault("Version") - valid_625407 = validateParameter(valid_625407, JString, required = true, - default = newJString("2016-11-15")) - if valid_625407 != nil: - section.add "Version", valid_625407 - var valid_625408 = query.getOrDefault("LimitPrice.CurrencyCode") - valid_625408 = validateParameter(valid_625408, JString, required = false, + section.add "ReservedInstancesOfferingId", valid_625406 + var valid_625407 = query.getOrDefault("PurchaseTime") + valid_625407 = validateParameter(valid_625407, JString, required = false, default = nil) + if valid_625407 != nil: + section.add "PurchaseTime", valid_625407 + var valid_625408 = query.getOrDefault("Action") + valid_625408 = validateParameter(valid_625408, JString, required = true, default = newJString( + "PurchaseReservedInstancesOffering")) if valid_625408 != nil: - section.add "LimitPrice.CurrencyCode", valid_625408 + section.add "Action", valid_625408 + var valid_625409 = query.getOrDefault("Version") + valid_625409 = validateParameter(valid_625409, JString, required = true, + default = newJString("2016-11-15")) + if valid_625409 != nil: + section.add "Version", valid_625409 + var valid_625410 = query.getOrDefault("LimitPrice.CurrencyCode") + valid_625410 = validateParameter(valid_625410, JString, required = false, + default = nil) + if valid_625410 != nil: + section.add "LimitPrice.CurrencyCode", valid_625410 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -118602,62 +118629,62 @@ proc validate_GetPurchaseReservedInstancesOffering_625399(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625409 = header.getOrDefault("X-Amz-Signature") - valid_625409 = validateParameter(valid_625409, JString, required = false, - default = nil) - if valid_625409 != nil: - section.add "X-Amz-Signature", valid_625409 - var valid_625410 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625410 = validateParameter(valid_625410, JString, required = false, - default = nil) - if valid_625410 != nil: - section.add "X-Amz-Content-Sha256", valid_625410 - var valid_625411 = header.getOrDefault("X-Amz-Date") + var valid_625411 = header.getOrDefault("X-Amz-Signature") valid_625411 = validateParameter(valid_625411, JString, required = false, default = nil) if valid_625411 != nil: - section.add "X-Amz-Date", valid_625411 - var valid_625412 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625411 + var valid_625412 = header.getOrDefault("X-Amz-Content-Sha256") valid_625412 = validateParameter(valid_625412, JString, required = false, default = nil) if valid_625412 != nil: - section.add "X-Amz-Credential", valid_625412 - var valid_625413 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625412 + var valid_625413 = header.getOrDefault("X-Amz-Date") valid_625413 = validateParameter(valid_625413, JString, required = false, default = nil) if valid_625413 != nil: - section.add "X-Amz-Security-Token", valid_625413 - var valid_625414 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625413 + var valid_625414 = header.getOrDefault("X-Amz-Credential") valid_625414 = validateParameter(valid_625414, JString, required = false, default = nil) if valid_625414 != nil: - section.add "X-Amz-Algorithm", valid_625414 - var valid_625415 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625414 + var valid_625415 = header.getOrDefault("X-Amz-Security-Token") valid_625415 = validateParameter(valid_625415, JString, required = false, default = nil) if valid_625415 != nil: - section.add "X-Amz-SignedHeaders", valid_625415 + section.add "X-Amz-Security-Token", valid_625415 + var valid_625416 = header.getOrDefault("X-Amz-Algorithm") + valid_625416 = validateParameter(valid_625416, JString, required = false, + default = nil) + if valid_625416 != nil: + section.add "X-Amz-Algorithm", valid_625416 + var valid_625417 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625417 = validateParameter(valid_625417, JString, required = false, + default = nil) + if valid_625417 != nil: + section.add "X-Amz-SignedHeaders", valid_625417 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625416: Call_GetPurchaseReservedInstancesOffering_625398; +proc call*(call_625418: Call_GetPurchaseReservedInstancesOffering_625400; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Purchases a Reserved Instance for use with your account. With Reserved Instances, you pay a lower hourly rate compared to On-Demand instance pricing.

    Use DescribeReservedInstancesOfferings to get a list of Reserved Instance offerings that match your specifications. After you've purchased a Reserved Instance, you can check for your new Reserved Instance with DescribeReservedInstances.

    To queue a purchase for a future date and time, specify a purchase time. If you do not specify a purchase time, the default is the current time.

    For more information, see Reserved Instances and Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_625416.validator(path, query, header, formData, body) - let scheme = call_625416.pickScheme + let valid = call_625418.validator(path, query, header, formData, body) + let scheme = call_625418.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625416.url(scheme.get, call_625416.host, call_625416.base, - call_625416.route, valid.getOrDefault("path"), + let url = call_625418.url(scheme.get, call_625418.host, call_625418.base, + call_625418.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625416, url, valid) + result = atozHook(call_625418, url, valid) -proc call*(call_625417: Call_GetPurchaseReservedInstancesOffering_625398; +proc call*(call_625419: Call_GetPurchaseReservedInstancesOffering_625400; InstanceCount: int; ReservedInstancesOfferingId: string; LimitPriceAmount: string = ""; DryRun: bool = false; PurchaseTime: string = ""; @@ -118681,28 +118708,28 @@ proc call*(call_625417: Call_GetPurchaseReservedInstancesOffering_625398; ## LimitPriceCurrencyCode: string ## : Describes the limit price of a Reserved Instance offering. ## The currency in which the limitPrice amount is specified. At this time, the only supported currency is USD. - var query_625418 = newJObject() - add(query_625418, "InstanceCount", newJInt(InstanceCount)) - add(query_625418, "LimitPrice.Amount", newJString(LimitPriceAmount)) - add(query_625418, "DryRun", newJBool(DryRun)) - add(query_625418, "ReservedInstancesOfferingId", + var query_625420 = newJObject() + add(query_625420, "InstanceCount", newJInt(InstanceCount)) + add(query_625420, "LimitPrice.Amount", newJString(LimitPriceAmount)) + add(query_625420, "DryRun", newJBool(DryRun)) + add(query_625420, "ReservedInstancesOfferingId", newJString(ReservedInstancesOfferingId)) - add(query_625418, "PurchaseTime", newJString(PurchaseTime)) - add(query_625418, "Action", newJString(Action)) - add(query_625418, "Version", newJString(Version)) - add(query_625418, "LimitPrice.CurrencyCode", newJString(LimitPriceCurrencyCode)) - result = call_625417.call(nil, query_625418, nil, nil, nil) + add(query_625420, "PurchaseTime", newJString(PurchaseTime)) + add(query_625420, "Action", newJString(Action)) + add(query_625420, "Version", newJString(Version)) + add(query_625420, "LimitPrice.CurrencyCode", newJString(LimitPriceCurrencyCode)) + result = call_625419.call(nil, query_625420, nil, nil, nil) -var getPurchaseReservedInstancesOffering* = Call_GetPurchaseReservedInstancesOffering_625398( +var getPurchaseReservedInstancesOffering* = Call_GetPurchaseReservedInstancesOffering_625400( name: "getPurchaseReservedInstancesOffering", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=PurchaseReservedInstancesOffering", - validator: validate_GetPurchaseReservedInstancesOffering_625399, base: "/", - url: url_GetPurchaseReservedInstancesOffering_625400, + validator: validate_GetPurchaseReservedInstancesOffering_625401, base: "/", + url: url_GetPurchaseReservedInstancesOffering_625402, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostPurchaseScheduledInstances_625459 = ref object of OpenApiRestCall_610658 -proc url_PostPurchaseScheduledInstances_625461(protocol: Scheme; host: string; + Call_PostPurchaseScheduledInstances_625461 = ref object of OpenApiRestCall_610658 +proc url_PostPurchaseScheduledInstances_625463(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -118712,7 +118739,7 @@ proc url_PostPurchaseScheduledInstances_625461(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostPurchaseScheduledInstances_625460(path: JsonNode; +proc validate_PostPurchaseScheduledInstances_625462(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Purchases the Scheduled Instances with the specified schedule.

    Scheduled Instances enable you to purchase Amazon EC2 compute capacity by the hour for a one-year term. Before you can purchase a Scheduled Instance, you must call DescribeScheduledInstanceAvailability to check for available schedules and obtain a purchase token. After you purchase a Scheduled Instance, you must call RunScheduledInstances during each scheduled time period.

    After you purchase a Scheduled Instance, you can't cancel, modify, or resell your purchase.

    ## @@ -118724,16 +118751,16 @@ proc validate_PostPurchaseScheduledInstances_625460(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625462 = query.getOrDefault("Action") - valid_625462 = validateParameter(valid_625462, JString, required = true, default = newJString( + var valid_625464 = query.getOrDefault("Action") + valid_625464 = validateParameter(valid_625464, JString, required = true, default = newJString( "PurchaseScheduledInstances")) - if valid_625462 != nil: - section.add "Action", valid_625462 - var valid_625463 = query.getOrDefault("Version") - valid_625463 = validateParameter(valid_625463, JString, required = true, + if valid_625464 != nil: + section.add "Action", valid_625464 + var valid_625465 = query.getOrDefault("Version") + valid_625465 = validateParameter(valid_625465, JString, required = true, default = newJString("2016-11-15")) - if valid_625463 != nil: - section.add "Version", valid_625463 + if valid_625465 != nil: + section.add "Version", valid_625465 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -118744,41 +118771,41 @@ proc validate_PostPurchaseScheduledInstances_625460(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625464 = header.getOrDefault("X-Amz-Signature") - valid_625464 = validateParameter(valid_625464, JString, required = false, - default = nil) - if valid_625464 != nil: - section.add "X-Amz-Signature", valid_625464 - var valid_625465 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625465 = validateParameter(valid_625465, JString, required = false, - default = nil) - if valid_625465 != nil: - section.add "X-Amz-Content-Sha256", valid_625465 - var valid_625466 = header.getOrDefault("X-Amz-Date") + var valid_625466 = header.getOrDefault("X-Amz-Signature") valid_625466 = validateParameter(valid_625466, JString, required = false, default = nil) if valid_625466 != nil: - section.add "X-Amz-Date", valid_625466 - var valid_625467 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625466 + var valid_625467 = header.getOrDefault("X-Amz-Content-Sha256") valid_625467 = validateParameter(valid_625467, JString, required = false, default = nil) if valid_625467 != nil: - section.add "X-Amz-Credential", valid_625467 - var valid_625468 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625467 + var valid_625468 = header.getOrDefault("X-Amz-Date") valid_625468 = validateParameter(valid_625468, JString, required = false, default = nil) if valid_625468 != nil: - section.add "X-Amz-Security-Token", valid_625468 - var valid_625469 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625468 + var valid_625469 = header.getOrDefault("X-Amz-Credential") valid_625469 = validateParameter(valid_625469, JString, required = false, default = nil) if valid_625469 != nil: - section.add "X-Amz-Algorithm", valid_625469 - var valid_625470 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625469 + var valid_625470 = header.getOrDefault("X-Amz-Security-Token") valid_625470 = validateParameter(valid_625470, JString, required = false, default = nil) if valid_625470 != nil: - section.add "X-Amz-SignedHeaders", valid_625470 + section.add "X-Amz-Security-Token", valid_625470 + var valid_625471 = header.getOrDefault("X-Amz-Algorithm") + valid_625471 = validateParameter(valid_625471, JString, required = false, + default = nil) + if valid_625471 != nil: + section.add "X-Amz-Algorithm", valid_625471 + var valid_625472 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625472 = validateParameter(valid_625472, JString, required = false, + default = nil) + if valid_625472 != nil: + section.add "X-Amz-SignedHeaders", valid_625472 result.add "header", section ## parameters in `formData` object: ## PurchaseRequest: JArray (required) @@ -118790,37 +118817,37 @@ proc validate_PostPurchaseScheduledInstances_625460(path: JsonNode; ## href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring Idempotency. section = newJObject() assert formData != nil, "formData argument is necessary due to required `PurchaseRequest` field" - var valid_625471 = formData.getOrDefault("PurchaseRequest") - valid_625471 = validateParameter(valid_625471, JArray, required = true, default = nil) - if valid_625471 != nil: - section.add "PurchaseRequest", valid_625471 - var valid_625472 = formData.getOrDefault("DryRun") - valid_625472 = validateParameter(valid_625472, JBool, required = false, default = nil) - if valid_625472 != nil: - section.add "DryRun", valid_625472 - var valid_625473 = formData.getOrDefault("ClientToken") - valid_625473 = validateParameter(valid_625473, JString, required = false, - default = nil) + var valid_625473 = formData.getOrDefault("PurchaseRequest") + valid_625473 = validateParameter(valid_625473, JArray, required = true, default = nil) if valid_625473 != nil: - section.add "ClientToken", valid_625473 + section.add "PurchaseRequest", valid_625473 + var valid_625474 = formData.getOrDefault("DryRun") + valid_625474 = validateParameter(valid_625474, JBool, required = false, default = nil) + if valid_625474 != nil: + section.add "DryRun", valid_625474 + var valid_625475 = formData.getOrDefault("ClientToken") + valid_625475 = validateParameter(valid_625475, JString, required = false, + default = nil) + if valid_625475 != nil: + section.add "ClientToken", valid_625475 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625474: Call_PostPurchaseScheduledInstances_625459; path: JsonNode; +proc call*(call_625476: Call_PostPurchaseScheduledInstances_625461; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Purchases the Scheduled Instances with the specified schedule.

    Scheduled Instances enable you to purchase Amazon EC2 compute capacity by the hour for a one-year term. Before you can purchase a Scheduled Instance, you must call DescribeScheduledInstanceAvailability to check for available schedules and obtain a purchase token. After you purchase a Scheduled Instance, you must call RunScheduledInstances during each scheduled time period.

    After you purchase a Scheduled Instance, you can't cancel, modify, or resell your purchase.

    ## - let valid = call_625474.validator(path, query, header, formData, body) - let scheme = call_625474.pickScheme + let valid = call_625476.validator(path, query, header, formData, body) + let scheme = call_625476.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625474.url(scheme.get, call_625474.host, call_625474.base, - call_625474.route, valid.getOrDefault("path"), + let url = call_625476.url(scheme.get, call_625476.host, call_625476.base, + call_625476.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625474, url, valid) + result = atozHook(call_625476, url, valid) -proc call*(call_625475: Call_PostPurchaseScheduledInstances_625459; +proc call*(call_625477: Call_PostPurchaseScheduledInstances_625461; PurchaseRequest: JsonNode; DryRun: bool = false; Action: string = "PurchaseScheduledInstances"; Version: string = "2016-11-15"; ClientToken: string = ""): Recallable = @@ -118835,25 +118862,25 @@ proc call*(call_625475: Call_PostPurchaseScheduledInstances_625459; ## ClientToken: string ## : Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring Idempotency. - var query_625476 = newJObject() - var formData_625477 = newJObject() + var query_625478 = newJObject() + var formData_625479 = newJObject() if PurchaseRequest != nil: - formData_625477.add "PurchaseRequest", PurchaseRequest - add(formData_625477, "DryRun", newJBool(DryRun)) - add(query_625476, "Action", newJString(Action)) - add(query_625476, "Version", newJString(Version)) - add(formData_625477, "ClientToken", newJString(ClientToken)) - result = call_625475.call(nil, query_625476, nil, formData_625477, nil) - -var postPurchaseScheduledInstances* = Call_PostPurchaseScheduledInstances_625459( + formData_625479.add "PurchaseRequest", PurchaseRequest + add(formData_625479, "DryRun", newJBool(DryRun)) + add(query_625478, "Action", newJString(Action)) + add(query_625478, "Version", newJString(Version)) + add(formData_625479, "ClientToken", newJString(ClientToken)) + result = call_625477.call(nil, query_625478, nil, formData_625479, nil) + +var postPurchaseScheduledInstances* = Call_PostPurchaseScheduledInstances_625461( name: "postPurchaseScheduledInstances", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=PurchaseScheduledInstances", - validator: validate_PostPurchaseScheduledInstances_625460, base: "/", - url: url_PostPurchaseScheduledInstances_625461, + validator: validate_PostPurchaseScheduledInstances_625462, base: "/", + url: url_PostPurchaseScheduledInstances_625463, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetPurchaseScheduledInstances_625441 = ref object of OpenApiRestCall_610658 -proc url_GetPurchaseScheduledInstances_625443(protocol: Scheme; host: string; + Call_GetPurchaseScheduledInstances_625443 = ref object of OpenApiRestCall_610658 +proc url_GetPurchaseScheduledInstances_625445(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -118863,7 +118890,7 @@ proc url_GetPurchaseScheduledInstances_625443(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetPurchaseScheduledInstances_625442(path: JsonNode; query: JsonNode; +proc validate_GetPurchaseScheduledInstances_625444(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Purchases the Scheduled Instances with the specified schedule.

    Scheduled Instances enable you to purchase Amazon EC2 compute capacity by the hour for a one-year term. Before you can purchase a Scheduled Instance, you must call DescribeScheduledInstanceAvailability to check for available schedules and obtain a purchase token. After you purchase a Scheduled Instance, you must call RunScheduledInstances during each scheduled time period.

    After you purchase a Scheduled Instance, you can't cancel, modify, or resell your purchase.

    ## @@ -118882,31 +118909,31 @@ proc validate_GetPurchaseScheduledInstances_625442(path: JsonNode; query: JsonNo ## : Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring Idempotency. section = newJObject() - var valid_625444 = query.getOrDefault("DryRun") - valid_625444 = validateParameter(valid_625444, JBool, required = false, default = nil) - if valid_625444 != nil: - section.add "DryRun", valid_625444 + var valid_625446 = query.getOrDefault("DryRun") + valid_625446 = validateParameter(valid_625446, JBool, required = false, default = nil) + if valid_625446 != nil: + section.add "DryRun", valid_625446 assert query != nil, "query argument is necessary due to required `PurchaseRequest` field" - var valid_625445 = query.getOrDefault("PurchaseRequest") - valid_625445 = validateParameter(valid_625445, JArray, required = true, default = nil) - if valid_625445 != nil: - section.add "PurchaseRequest", valid_625445 - var valid_625446 = query.getOrDefault("Action") - valid_625446 = validateParameter(valid_625446, JString, required = true, default = newJString( + var valid_625447 = query.getOrDefault("PurchaseRequest") + valid_625447 = validateParameter(valid_625447, JArray, required = true, default = nil) + if valid_625447 != nil: + section.add "PurchaseRequest", valid_625447 + var valid_625448 = query.getOrDefault("Action") + valid_625448 = validateParameter(valid_625448, JString, required = true, default = newJString( "PurchaseScheduledInstances")) - if valid_625446 != nil: - section.add "Action", valid_625446 - var valid_625447 = query.getOrDefault("Version") - valid_625447 = validateParameter(valid_625447, JString, required = true, + if valid_625448 != nil: + section.add "Action", valid_625448 + var valid_625449 = query.getOrDefault("Version") + valid_625449 = validateParameter(valid_625449, JString, required = true, default = newJString("2016-11-15")) - if valid_625447 != nil: - section.add "Version", valid_625447 - var valid_625448 = query.getOrDefault("ClientToken") - valid_625448 = validateParameter(valid_625448, JString, required = false, + if valid_625449 != nil: + section.add "Version", valid_625449 + var valid_625450 = query.getOrDefault("ClientToken") + valid_625450 = validateParameter(valid_625450, JString, required = false, default = nil) - if valid_625448 != nil: - section.add "ClientToken", valid_625448 + if valid_625450 != nil: + section.add "ClientToken", valid_625450 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -118917,61 +118944,61 @@ proc validate_GetPurchaseScheduledInstances_625442(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625449 = header.getOrDefault("X-Amz-Signature") - valid_625449 = validateParameter(valid_625449, JString, required = false, - default = nil) - if valid_625449 != nil: - section.add "X-Amz-Signature", valid_625449 - var valid_625450 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625450 = validateParameter(valid_625450, JString, required = false, - default = nil) - if valid_625450 != nil: - section.add "X-Amz-Content-Sha256", valid_625450 - var valid_625451 = header.getOrDefault("X-Amz-Date") + var valid_625451 = header.getOrDefault("X-Amz-Signature") valid_625451 = validateParameter(valid_625451, JString, required = false, default = nil) if valid_625451 != nil: - section.add "X-Amz-Date", valid_625451 - var valid_625452 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625451 + var valid_625452 = header.getOrDefault("X-Amz-Content-Sha256") valid_625452 = validateParameter(valid_625452, JString, required = false, default = nil) if valid_625452 != nil: - section.add "X-Amz-Credential", valid_625452 - var valid_625453 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625452 + var valid_625453 = header.getOrDefault("X-Amz-Date") valid_625453 = validateParameter(valid_625453, JString, required = false, default = nil) if valid_625453 != nil: - section.add "X-Amz-Security-Token", valid_625453 - var valid_625454 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625453 + var valid_625454 = header.getOrDefault("X-Amz-Credential") valid_625454 = validateParameter(valid_625454, JString, required = false, default = nil) if valid_625454 != nil: - section.add "X-Amz-Algorithm", valid_625454 - var valid_625455 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625454 + var valid_625455 = header.getOrDefault("X-Amz-Security-Token") valid_625455 = validateParameter(valid_625455, JString, required = false, default = nil) if valid_625455 != nil: - section.add "X-Amz-SignedHeaders", valid_625455 + section.add "X-Amz-Security-Token", valid_625455 + var valid_625456 = header.getOrDefault("X-Amz-Algorithm") + valid_625456 = validateParameter(valid_625456, JString, required = false, + default = nil) + if valid_625456 != nil: + section.add "X-Amz-Algorithm", valid_625456 + var valid_625457 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625457 = validateParameter(valid_625457, JString, required = false, + default = nil) + if valid_625457 != nil: + section.add "X-Amz-SignedHeaders", valid_625457 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625456: Call_GetPurchaseScheduledInstances_625441; path: JsonNode; +proc call*(call_625458: Call_GetPurchaseScheduledInstances_625443; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Purchases the Scheduled Instances with the specified schedule.

    Scheduled Instances enable you to purchase Amazon EC2 compute capacity by the hour for a one-year term. Before you can purchase a Scheduled Instance, you must call DescribeScheduledInstanceAvailability to check for available schedules and obtain a purchase token. After you purchase a Scheduled Instance, you must call RunScheduledInstances during each scheduled time period.

    After you purchase a Scheduled Instance, you can't cancel, modify, or resell your purchase.

    ## - let valid = call_625456.validator(path, query, header, formData, body) - let scheme = call_625456.pickScheme + let valid = call_625458.validator(path, query, header, formData, body) + let scheme = call_625458.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625456.url(scheme.get, call_625456.host, call_625456.base, - call_625456.route, valid.getOrDefault("path"), + let url = call_625458.url(scheme.get, call_625458.host, call_625458.base, + call_625458.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625456, url, valid) + result = atozHook(call_625458, url, valid) -proc call*(call_625457: Call_GetPurchaseScheduledInstances_625441; +proc call*(call_625459: Call_GetPurchaseScheduledInstances_625443; PurchaseRequest: JsonNode; DryRun: bool = false; Action: string = "PurchaseScheduledInstances"; Version: string = "2016-11-15"; ClientToken: string = ""): Recallable = @@ -118986,24 +119013,24 @@ proc call*(call_625457: Call_GetPurchaseScheduledInstances_625441; ## ClientToken: string ## : Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring Idempotency. - var query_625458 = newJObject() - add(query_625458, "DryRun", newJBool(DryRun)) + var query_625460 = newJObject() + add(query_625460, "DryRun", newJBool(DryRun)) if PurchaseRequest != nil: - query_625458.add "PurchaseRequest", PurchaseRequest - add(query_625458, "Action", newJString(Action)) - add(query_625458, "Version", newJString(Version)) - add(query_625458, "ClientToken", newJString(ClientToken)) - result = call_625457.call(nil, query_625458, nil, nil, nil) + query_625460.add "PurchaseRequest", PurchaseRequest + add(query_625460, "Action", newJString(Action)) + add(query_625460, "Version", newJString(Version)) + add(query_625460, "ClientToken", newJString(ClientToken)) + result = call_625459.call(nil, query_625460, nil, nil, nil) -var getPurchaseScheduledInstances* = Call_GetPurchaseScheduledInstances_625441( +var getPurchaseScheduledInstances* = Call_GetPurchaseScheduledInstances_625443( name: "getPurchaseScheduledInstances", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=PurchaseScheduledInstances", - validator: validate_GetPurchaseScheduledInstances_625442, base: "/", - url: url_GetPurchaseScheduledInstances_625443, + validator: validate_GetPurchaseScheduledInstances_625444, base: "/", + url: url_GetPurchaseScheduledInstances_625445, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostRebootInstances_625495 = ref object of OpenApiRestCall_610658 -proc url_PostRebootInstances_625497(protocol: Scheme; host: string; base: string; + Call_PostRebootInstances_625497 = ref object of OpenApiRestCall_610658 +proc url_PostRebootInstances_625499(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -119013,7 +119040,7 @@ proc url_PostRebootInstances_625497(protocol: Scheme; host: string; base: string else: result.path = base & route -proc validate_PostRebootInstances_625496(path: JsonNode; query: JsonNode; +proc validate_PostRebootInstances_625498(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Requests a reboot of the specified instances. This operation is asynchronous; it only queues a request to reboot the specified instances. The operation succeeds if the instances are valid and belong to you. Requests to reboot terminated instances are ignored.

    If an instance does not cleanly shut down within four minutes, Amazon EC2 performs a hard reboot.

    For more information about troubleshooting, see Getting Console Output and Rebooting Instances in the Amazon Elastic Compute Cloud User Guide.

    @@ -119026,16 +119053,16 @@ proc validate_PostRebootInstances_625496(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625498 = query.getOrDefault("Action") - valid_625498 = validateParameter(valid_625498, JString, required = true, + var valid_625500 = query.getOrDefault("Action") + valid_625500 = validateParameter(valid_625500, JString, required = true, default = newJString("RebootInstances")) - if valid_625498 != nil: - section.add "Action", valid_625498 - var valid_625499 = query.getOrDefault("Version") - valid_625499 = validateParameter(valid_625499, JString, required = true, + if valid_625500 != nil: + section.add "Action", valid_625500 + var valid_625501 = query.getOrDefault("Version") + valid_625501 = validateParameter(valid_625501, JString, required = true, default = newJString("2016-11-15")) - if valid_625499 != nil: - section.add "Version", valid_625499 + if valid_625501 != nil: + section.add "Version", valid_625501 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -119046,41 +119073,41 @@ proc validate_PostRebootInstances_625496(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625500 = header.getOrDefault("X-Amz-Signature") - valid_625500 = validateParameter(valid_625500, JString, required = false, - default = nil) - if valid_625500 != nil: - section.add "X-Amz-Signature", valid_625500 - var valid_625501 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625501 = validateParameter(valid_625501, JString, required = false, - default = nil) - if valid_625501 != nil: - section.add "X-Amz-Content-Sha256", valid_625501 - var valid_625502 = header.getOrDefault("X-Amz-Date") + var valid_625502 = header.getOrDefault("X-Amz-Signature") valid_625502 = validateParameter(valid_625502, JString, required = false, default = nil) if valid_625502 != nil: - section.add "X-Amz-Date", valid_625502 - var valid_625503 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625502 + var valid_625503 = header.getOrDefault("X-Amz-Content-Sha256") valid_625503 = validateParameter(valid_625503, JString, required = false, default = nil) if valid_625503 != nil: - section.add "X-Amz-Credential", valid_625503 - var valid_625504 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625503 + var valid_625504 = header.getOrDefault("X-Amz-Date") valid_625504 = validateParameter(valid_625504, JString, required = false, default = nil) if valid_625504 != nil: - section.add "X-Amz-Security-Token", valid_625504 - var valid_625505 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625504 + var valid_625505 = header.getOrDefault("X-Amz-Credential") valid_625505 = validateParameter(valid_625505, JString, required = false, default = nil) if valid_625505 != nil: - section.add "X-Amz-Algorithm", valid_625505 - var valid_625506 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625505 + var valid_625506 = header.getOrDefault("X-Amz-Security-Token") valid_625506 = validateParameter(valid_625506, JString, required = false, default = nil) if valid_625506 != nil: - section.add "X-Amz-SignedHeaders", valid_625506 + section.add "X-Amz-Security-Token", valid_625506 + var valid_625507 = header.getOrDefault("X-Amz-Algorithm") + valid_625507 = validateParameter(valid_625507, JString, required = false, + default = nil) + if valid_625507 != nil: + section.add "X-Amz-Algorithm", valid_625507 + var valid_625508 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625508 = validateParameter(valid_625508, JString, required = false, + default = nil) + if valid_625508 != nil: + section.add "X-Amz-SignedHeaders", valid_625508 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -119088,34 +119115,34 @@ proc validate_PostRebootInstances_625496(path: JsonNode; query: JsonNode; ## InstanceId: JArray (required) ## : The instance IDs. section = newJObject() - var valid_625507 = formData.getOrDefault("DryRun") - valid_625507 = validateParameter(valid_625507, JBool, required = false, default = nil) - if valid_625507 != nil: - section.add "DryRun", valid_625507 + var valid_625509 = formData.getOrDefault("DryRun") + valid_625509 = validateParameter(valid_625509, JBool, required = false, default = nil) + if valid_625509 != nil: + section.add "DryRun", valid_625509 assert formData != nil, "formData argument is necessary due to required `InstanceId` field" - var valid_625508 = formData.getOrDefault("InstanceId") - valid_625508 = validateParameter(valid_625508, JArray, required = true, default = nil) - if valid_625508 != nil: - section.add "InstanceId", valid_625508 + var valid_625510 = formData.getOrDefault("InstanceId") + valid_625510 = validateParameter(valid_625510, JArray, required = true, default = nil) + if valid_625510 != nil: + section.add "InstanceId", valid_625510 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625509: Call_PostRebootInstances_625495; path: JsonNode; +proc call*(call_625511: Call_PostRebootInstances_625497; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Requests a reboot of the specified instances. This operation is asynchronous; it only queues a request to reboot the specified instances. The operation succeeds if the instances are valid and belong to you. Requests to reboot terminated instances are ignored.

    If an instance does not cleanly shut down within four minutes, Amazon EC2 performs a hard reboot.

    For more information about troubleshooting, see Getting Console Output and Rebooting Instances in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_625509.validator(path, query, header, formData, body) - let scheme = call_625509.pickScheme + let valid = call_625511.validator(path, query, header, formData, body) + let scheme = call_625511.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625509.url(scheme.get, call_625509.host, call_625509.base, - call_625509.route, valid.getOrDefault("path"), + let url = call_625511.url(scheme.get, call_625511.host, call_625511.base, + call_625511.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625509, url, valid) + result = atozHook(call_625511, url, valid) -proc call*(call_625510: Call_PostRebootInstances_625495; InstanceId: JsonNode; +proc call*(call_625512: Call_PostRebootInstances_625497; InstanceId: JsonNode; DryRun: bool = false; Action: string = "RebootInstances"; Version: string = "2016-11-15"): Recallable = ## postRebootInstances @@ -119126,23 +119153,23 @@ proc call*(call_625510: Call_PostRebootInstances_625495; InstanceId: JsonNode; ## : The instance IDs. ## Action: string (required) ## Version: string (required) - var query_625511 = newJObject() - var formData_625512 = newJObject() - add(formData_625512, "DryRun", newJBool(DryRun)) + var query_625513 = newJObject() + var formData_625514 = newJObject() + add(formData_625514, "DryRun", newJBool(DryRun)) if InstanceId != nil: - formData_625512.add "InstanceId", InstanceId - add(query_625511, "Action", newJString(Action)) - add(query_625511, "Version", newJString(Version)) - result = call_625510.call(nil, query_625511, nil, formData_625512, nil) + formData_625514.add "InstanceId", InstanceId + add(query_625513, "Action", newJString(Action)) + add(query_625513, "Version", newJString(Version)) + result = call_625512.call(nil, query_625513, nil, formData_625514, nil) -var postRebootInstances* = Call_PostRebootInstances_625495( +var postRebootInstances* = Call_PostRebootInstances_625497( name: "postRebootInstances", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=RebootInstances", - validator: validate_PostRebootInstances_625496, base: "/", - url: url_PostRebootInstances_625497, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostRebootInstances_625498, base: "/", + url: url_PostRebootInstances_625499, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetRebootInstances_625478 = ref object of OpenApiRestCall_610658 -proc url_GetRebootInstances_625480(protocol: Scheme; host: string; base: string; + Call_GetRebootInstances_625480 = ref object of OpenApiRestCall_610658 +proc url_GetRebootInstances_625482(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -119152,7 +119179,7 @@ proc url_GetRebootInstances_625480(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetRebootInstances_625479(path: JsonNode; query: JsonNode; +proc validate_GetRebootInstances_625481(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Requests a reboot of the specified instances. This operation is asynchronous; it only queues a request to reboot the specified instances. The operation succeeds if the instances are valid and belong to you. Requests to reboot terminated instances are ignored.

    If an instance does not cleanly shut down within four minutes, Amazon EC2 performs a hard reboot.

    For more information about troubleshooting, see Getting Console Output and Rebooting Instances in the Amazon Elastic Compute Cloud User Guide.

    @@ -119169,26 +119196,26 @@ proc validate_GetRebootInstances_625479(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625481 = query.getOrDefault("DryRun") - valid_625481 = validateParameter(valid_625481, JBool, required = false, default = nil) - if valid_625481 != nil: - section.add "DryRun", valid_625481 + var valid_625483 = query.getOrDefault("DryRun") + valid_625483 = validateParameter(valid_625483, JBool, required = false, default = nil) + if valid_625483 != nil: + section.add "DryRun", valid_625483 assert query != nil, "query argument is necessary due to required `InstanceId` field" - var valid_625482 = query.getOrDefault("InstanceId") - valid_625482 = validateParameter(valid_625482, JArray, required = true, default = nil) - if valid_625482 != nil: - section.add "InstanceId", valid_625482 - var valid_625483 = query.getOrDefault("Action") - valid_625483 = validateParameter(valid_625483, JString, required = true, + var valid_625484 = query.getOrDefault("InstanceId") + valid_625484 = validateParameter(valid_625484, JArray, required = true, default = nil) + if valid_625484 != nil: + section.add "InstanceId", valid_625484 + var valid_625485 = query.getOrDefault("Action") + valid_625485 = validateParameter(valid_625485, JString, required = true, default = newJString("RebootInstances")) - if valid_625483 != nil: - section.add "Action", valid_625483 - var valid_625484 = query.getOrDefault("Version") - valid_625484 = validateParameter(valid_625484, JString, required = true, + if valid_625485 != nil: + section.add "Action", valid_625485 + var valid_625486 = query.getOrDefault("Version") + valid_625486 = validateParameter(valid_625486, JString, required = true, default = newJString("2016-11-15")) - if valid_625484 != nil: - section.add "Version", valid_625484 + if valid_625486 != nil: + section.add "Version", valid_625486 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -119199,61 +119226,61 @@ proc validate_GetRebootInstances_625479(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625485 = header.getOrDefault("X-Amz-Signature") - valid_625485 = validateParameter(valid_625485, JString, required = false, - default = nil) - if valid_625485 != nil: - section.add "X-Amz-Signature", valid_625485 - var valid_625486 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625486 = validateParameter(valid_625486, JString, required = false, - default = nil) - if valid_625486 != nil: - section.add "X-Amz-Content-Sha256", valid_625486 - var valid_625487 = header.getOrDefault("X-Amz-Date") + var valid_625487 = header.getOrDefault("X-Amz-Signature") valid_625487 = validateParameter(valid_625487, JString, required = false, default = nil) if valid_625487 != nil: - section.add "X-Amz-Date", valid_625487 - var valid_625488 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625487 + var valid_625488 = header.getOrDefault("X-Amz-Content-Sha256") valid_625488 = validateParameter(valid_625488, JString, required = false, default = nil) if valid_625488 != nil: - section.add "X-Amz-Credential", valid_625488 - var valid_625489 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625488 + var valid_625489 = header.getOrDefault("X-Amz-Date") valid_625489 = validateParameter(valid_625489, JString, required = false, default = nil) if valid_625489 != nil: - section.add "X-Amz-Security-Token", valid_625489 - var valid_625490 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625489 + var valid_625490 = header.getOrDefault("X-Amz-Credential") valid_625490 = validateParameter(valid_625490, JString, required = false, default = nil) if valid_625490 != nil: - section.add "X-Amz-Algorithm", valid_625490 - var valid_625491 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625490 + var valid_625491 = header.getOrDefault("X-Amz-Security-Token") valid_625491 = validateParameter(valid_625491, JString, required = false, default = nil) if valid_625491 != nil: - section.add "X-Amz-SignedHeaders", valid_625491 + section.add "X-Amz-Security-Token", valid_625491 + var valid_625492 = header.getOrDefault("X-Amz-Algorithm") + valid_625492 = validateParameter(valid_625492, JString, required = false, + default = nil) + if valid_625492 != nil: + section.add "X-Amz-Algorithm", valid_625492 + var valid_625493 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625493 = validateParameter(valid_625493, JString, required = false, + default = nil) + if valid_625493 != nil: + section.add "X-Amz-SignedHeaders", valid_625493 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625492: Call_GetRebootInstances_625478; path: JsonNode; +proc call*(call_625494: Call_GetRebootInstances_625480; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Requests a reboot of the specified instances. This operation is asynchronous; it only queues a request to reboot the specified instances. The operation succeeds if the instances are valid and belong to you. Requests to reboot terminated instances are ignored.

    If an instance does not cleanly shut down within four minutes, Amazon EC2 performs a hard reboot.

    For more information about troubleshooting, see Getting Console Output and Rebooting Instances in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_625492.validator(path, query, header, formData, body) - let scheme = call_625492.pickScheme + let valid = call_625494.validator(path, query, header, formData, body) + let scheme = call_625494.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625492.url(scheme.get, call_625492.host, call_625492.base, - call_625492.route, valid.getOrDefault("path"), + let url = call_625494.url(scheme.get, call_625494.host, call_625494.base, + call_625494.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625492, url, valid) + result = atozHook(call_625494, url, valid) -proc call*(call_625493: Call_GetRebootInstances_625478; InstanceId: JsonNode; +proc call*(call_625495: Call_GetRebootInstances_625480; InstanceId: JsonNode; DryRun: bool = false; Action: string = "RebootInstances"; Version: string = "2016-11-15"): Recallable = ## getRebootInstances @@ -119264,22 +119291,22 @@ proc call*(call_625493: Call_GetRebootInstances_625478; InstanceId: JsonNode; ## : The instance IDs. ## Action: string (required) ## Version: string (required) - var query_625494 = newJObject() - add(query_625494, "DryRun", newJBool(DryRun)) + var query_625496 = newJObject() + add(query_625496, "DryRun", newJBool(DryRun)) if InstanceId != nil: - query_625494.add "InstanceId", InstanceId - add(query_625494, "Action", newJString(Action)) - add(query_625494, "Version", newJString(Version)) - result = call_625493.call(nil, query_625494, nil, nil, nil) + query_625496.add "InstanceId", InstanceId + add(query_625496, "Action", newJString(Action)) + add(query_625496, "Version", newJString(Version)) + result = call_625495.call(nil, query_625496, nil, nil, nil) -var getRebootInstances* = Call_GetRebootInstances_625478( +var getRebootInstances* = Call_GetRebootInstances_625480( name: "getRebootInstances", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=RebootInstances", validator: validate_GetRebootInstances_625479, - base: "/", url: url_GetRebootInstances_625480, + route: "/#Action=RebootInstances", validator: validate_GetRebootInstances_625481, + base: "/", url: url_GetRebootInstances_625482, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostRegisterImage_625541 = ref object of OpenApiRestCall_610658 -proc url_PostRegisterImage_625543(protocol: Scheme; host: string; base: string; + Call_PostRegisterImage_625543 = ref object of OpenApiRestCall_610658 +proc url_PostRegisterImage_625545(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -119289,7 +119316,7 @@ proc url_PostRegisterImage_625543(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostRegisterImage_625542(path: JsonNode; query: JsonNode; +proc validate_PostRegisterImage_625544(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Registers an AMI. When you're creating an AMI, this is the final step you must complete before you can launch an instance from the AMI. For more information about creating AMIs, see Creating Your Own AMIs in the Amazon Elastic Compute Cloud User Guide.

    For Amazon EBS-backed instances, CreateImage creates and registers the AMI in a single request, so you don't have to register the AMI yourself.

    You can also use RegisterImage to create an Amazon EBS-backed Linux AMI from a snapshot of a root device volume. You specify the snapshot using the block device mapping. For more information, see Launching a Linux Instance from a Backup in the Amazon Elastic Compute Cloud User Guide.

    You can't register an image where a secondary (non-root) snapshot has AWS Marketplace product codes.

    Windows and some Linux distributions, such as Red Hat Enterprise Linux (RHEL) and SUSE Linux Enterprise Server (SLES), use the EC2 billing product code associated with an AMI to verify the subscription status for package updates. To create a new AMI for operating systems that require a billing product code, instead of registering the AMI, do the following to preserve the billing product code association:

    1. Launch an instance from an existing AMI with that billing product code.

    2. Customize the instance.

    3. Create an AMI from the instance using CreateImage.

    If you purchase a Reserved Instance to apply to an On-Demand Instance that was launched from an AMI with a billing product code, make sure that the Reserved Instance has the matching billing product code. If you purchase a Reserved Instance without the matching billing product code, the Reserved Instance will not be applied to the On-Demand Instance. For information about how to obtain the platform details and billing information of an AMI, see Obtaining Billing Information in the Amazon Elastic Compute Cloud User Guide.

    If needed, you can deregister an AMI at any time. Any modifications you make to an AMI backed by an instance store volume invalidates its registration. If you make changes to an image, deregister the previous image and register the new image.

    @@ -119302,16 +119329,16 @@ proc validate_PostRegisterImage_625542(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625544 = query.getOrDefault("Action") - valid_625544 = validateParameter(valid_625544, JString, required = true, + var valid_625546 = query.getOrDefault("Action") + valid_625546 = validateParameter(valid_625546, JString, required = true, default = newJString("RegisterImage")) - if valid_625544 != nil: - section.add "Action", valid_625544 - var valid_625545 = query.getOrDefault("Version") - valid_625545 = validateParameter(valid_625545, JString, required = true, + if valid_625546 != nil: + section.add "Action", valid_625546 + var valid_625547 = query.getOrDefault("Version") + valid_625547 = validateParameter(valid_625547, JString, required = true, default = newJString("2016-11-15")) - if valid_625545 != nil: - section.add "Version", valid_625545 + if valid_625547 != nil: + section.add "Version", valid_625547 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -119322,41 +119349,41 @@ proc validate_PostRegisterImage_625542(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625546 = header.getOrDefault("X-Amz-Signature") - valid_625546 = validateParameter(valid_625546, JString, required = false, - default = nil) - if valid_625546 != nil: - section.add "X-Amz-Signature", valid_625546 - var valid_625547 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625547 = validateParameter(valid_625547, JString, required = false, - default = nil) - if valid_625547 != nil: - section.add "X-Amz-Content-Sha256", valid_625547 - var valid_625548 = header.getOrDefault("X-Amz-Date") + var valid_625548 = header.getOrDefault("X-Amz-Signature") valid_625548 = validateParameter(valid_625548, JString, required = false, default = nil) if valid_625548 != nil: - section.add "X-Amz-Date", valid_625548 - var valid_625549 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625548 + var valid_625549 = header.getOrDefault("X-Amz-Content-Sha256") valid_625549 = validateParameter(valid_625549, JString, required = false, default = nil) if valid_625549 != nil: - section.add "X-Amz-Credential", valid_625549 - var valid_625550 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625549 + var valid_625550 = header.getOrDefault("X-Amz-Date") valid_625550 = validateParameter(valid_625550, JString, required = false, default = nil) if valid_625550 != nil: - section.add "X-Amz-Security-Token", valid_625550 - var valid_625551 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625550 + var valid_625551 = header.getOrDefault("X-Amz-Credential") valid_625551 = validateParameter(valid_625551, JString, required = false, default = nil) if valid_625551 != nil: - section.add "X-Amz-Algorithm", valid_625551 - var valid_625552 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625551 + var valid_625552 = header.getOrDefault("X-Amz-Security-Token") valid_625552 = validateParameter(valid_625552, JString, required = false, default = nil) if valid_625552 != nil: - section.add "X-Amz-SignedHeaders", valid_625552 + section.add "X-Amz-Security-Token", valid_625552 + var valid_625553 = header.getOrDefault("X-Amz-Algorithm") + valid_625553 = validateParameter(valid_625553, JString, required = false, + default = nil) + if valid_625553 != nil: + section.add "X-Amz-Algorithm", valid_625553 + var valid_625554 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625554 = validateParameter(valid_625554, JString, required = false, + default = nil) + if valid_625554 != nil: + section.add "X-Amz-SignedHeaders", valid_625554 result.add "header", section ## parameters in `formData` object: ## SriovNetSupport: JString @@ -119387,89 +119414,89 @@ proc validate_PostRegisterImage_625542(path: JsonNode; query: JsonNode; ## BillingProduct: JArray ## : The billing product codes. Your account must be authorized to specify billing product codes. Otherwise, you can use the AWS Marketplace to bill for the use of an AMI. section = newJObject() - var valid_625553 = formData.getOrDefault("SriovNetSupport") - valid_625553 = validateParameter(valid_625553, JString, required = false, - default = nil) - if valid_625553 != nil: - section.add "SriovNetSupport", valid_625553 - var valid_625554 = formData.getOrDefault("Description") - valid_625554 = validateParameter(valid_625554, JString, required = false, - default = nil) - if valid_625554 != nil: - section.add "Description", valid_625554 - var valid_625555 = formData.getOrDefault("BlockDeviceMapping") - valid_625555 = validateParameter(valid_625555, JArray, required = false, + var valid_625555 = formData.getOrDefault("SriovNetSupport") + valid_625555 = validateParameter(valid_625555, JString, required = false, default = nil) if valid_625555 != nil: - section.add "BlockDeviceMapping", valid_625555 - var valid_625556 = formData.getOrDefault("Architecture") + section.add "SriovNetSupport", valid_625555 + var valid_625556 = formData.getOrDefault("Description") valid_625556 = validateParameter(valid_625556, JString, required = false, - default = newJString("i386")) + default = nil) if valid_625556 != nil: - section.add "Architecture", valid_625556 - var valid_625557 = formData.getOrDefault("ImageLocation") - valid_625557 = validateParameter(valid_625557, JString, required = false, + section.add "Description", valid_625556 + var valid_625557 = formData.getOrDefault("BlockDeviceMapping") + valid_625557 = validateParameter(valid_625557, JArray, required = false, default = nil) if valid_625557 != nil: - section.add "ImageLocation", valid_625557 - var valid_625558 = formData.getOrDefault("KernelId") + section.add "BlockDeviceMapping", valid_625557 + var valid_625558 = formData.getOrDefault("Architecture") valid_625558 = validateParameter(valid_625558, JString, required = false, - default = nil) + default = newJString("i386")) if valid_625558 != nil: - section.add "KernelId", valid_625558 - var valid_625559 = formData.getOrDefault("EnaSupport") - valid_625559 = validateParameter(valid_625559, JBool, required = false, default = nil) + section.add "Architecture", valid_625558 + var valid_625559 = formData.getOrDefault("ImageLocation") + valid_625559 = validateParameter(valid_625559, JString, required = false, + default = nil) if valid_625559 != nil: - section.add "EnaSupport", valid_625559 - var valid_625560 = formData.getOrDefault("DryRun") - valid_625560 = validateParameter(valid_625560, JBool, required = false, default = nil) - if valid_625560 != nil: - section.add "DryRun", valid_625560 - var valid_625561 = formData.getOrDefault("RootDeviceName") - valid_625561 = validateParameter(valid_625561, JString, required = false, + section.add "ImageLocation", valid_625559 + var valid_625560 = formData.getOrDefault("KernelId") + valid_625560 = validateParameter(valid_625560, JString, required = false, default = nil) + if valid_625560 != nil: + section.add "KernelId", valid_625560 + var valid_625561 = formData.getOrDefault("EnaSupport") + valid_625561 = validateParameter(valid_625561, JBool, required = false, default = nil) if valid_625561 != nil: - section.add "RootDeviceName", valid_625561 - var valid_625562 = formData.getOrDefault("VirtualizationType") - valid_625562 = validateParameter(valid_625562, JString, required = false, - default = nil) + section.add "EnaSupport", valid_625561 + var valid_625562 = formData.getOrDefault("DryRun") + valid_625562 = validateParameter(valid_625562, JBool, required = false, default = nil) if valid_625562 != nil: - section.add "VirtualizationType", valid_625562 - assert formData != nil, - "formData argument is necessary due to required `Name` field" - var valid_625563 = formData.getOrDefault("Name") - valid_625563 = validateParameter(valid_625563, JString, required = true, + section.add "DryRun", valid_625562 + var valid_625563 = formData.getOrDefault("RootDeviceName") + valid_625563 = validateParameter(valid_625563, JString, required = false, default = nil) if valid_625563 != nil: - section.add "Name", valid_625563 - var valid_625564 = formData.getOrDefault("RamdiskId") + section.add "RootDeviceName", valid_625563 + var valid_625564 = formData.getOrDefault("VirtualizationType") valid_625564 = validateParameter(valid_625564, JString, required = false, default = nil) if valid_625564 != nil: - section.add "RamdiskId", valid_625564 - var valid_625565 = formData.getOrDefault("BillingProduct") - valid_625565 = validateParameter(valid_625565, JArray, required = false, + section.add "VirtualizationType", valid_625564 + assert formData != nil, + "formData argument is necessary due to required `Name` field" + var valid_625565 = formData.getOrDefault("Name") + valid_625565 = validateParameter(valid_625565, JString, required = true, default = nil) if valid_625565 != nil: - section.add "BillingProduct", valid_625565 + section.add "Name", valid_625565 + var valid_625566 = formData.getOrDefault("RamdiskId") + valid_625566 = validateParameter(valid_625566, JString, required = false, + default = nil) + if valid_625566 != nil: + section.add "RamdiskId", valid_625566 + var valid_625567 = formData.getOrDefault("BillingProduct") + valid_625567 = validateParameter(valid_625567, JArray, required = false, + default = nil) + if valid_625567 != nil: + section.add "BillingProduct", valid_625567 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625566: Call_PostRegisterImage_625541; path: JsonNode; +proc call*(call_625568: Call_PostRegisterImage_625543; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Registers an AMI. When you're creating an AMI, this is the final step you must complete before you can launch an instance from the AMI. For more information about creating AMIs, see Creating Your Own AMIs in the Amazon Elastic Compute Cloud User Guide.

    For Amazon EBS-backed instances, CreateImage creates and registers the AMI in a single request, so you don't have to register the AMI yourself.

    You can also use RegisterImage to create an Amazon EBS-backed Linux AMI from a snapshot of a root device volume. You specify the snapshot using the block device mapping. For more information, see Launching a Linux Instance from a Backup in the Amazon Elastic Compute Cloud User Guide.

    You can't register an image where a secondary (non-root) snapshot has AWS Marketplace product codes.

    Windows and some Linux distributions, such as Red Hat Enterprise Linux (RHEL) and SUSE Linux Enterprise Server (SLES), use the EC2 billing product code associated with an AMI to verify the subscription status for package updates. To create a new AMI for operating systems that require a billing product code, instead of registering the AMI, do the following to preserve the billing product code association:

    1. Launch an instance from an existing AMI with that billing product code.

    2. Customize the instance.

    3. Create an AMI from the instance using CreateImage.

    If you purchase a Reserved Instance to apply to an On-Demand Instance that was launched from an AMI with a billing product code, make sure that the Reserved Instance has the matching billing product code. If you purchase a Reserved Instance without the matching billing product code, the Reserved Instance will not be applied to the On-Demand Instance. For information about how to obtain the platform details and billing information of an AMI, see Obtaining Billing Information in the Amazon Elastic Compute Cloud User Guide.

    If needed, you can deregister an AMI at any time. Any modifications you make to an AMI backed by an instance store volume invalidates its registration. If you make changes to an image, deregister the previous image and register the new image.

    ## - let valid = call_625566.validator(path, query, header, formData, body) - let scheme = call_625566.pickScheme + let valid = call_625568.validator(path, query, header, formData, body) + let scheme = call_625568.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625566.url(scheme.get, call_625566.host, call_625566.base, - call_625566.route, valid.getOrDefault("path"), + let url = call_625568.url(scheme.get, call_625568.host, call_625568.base, + call_625568.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625566, url, valid) + result = atozHook(call_625568, url, valid) -proc call*(call_625567: Call_PostRegisterImage_625541; Name: string; +proc call*(call_625569: Call_PostRegisterImage_625543; Name: string; SriovNetSupport: string = ""; Description: string = ""; BlockDeviceMapping: JsonNode = nil; Architecture: string = "i386"; ImageLocation: string = ""; KernelId: string = ""; EnaSupport: bool = false; @@ -119508,35 +119535,35 @@ proc call*(call_625567: Call_PostRegisterImage_625541; Name: string; ## Version: string (required) ## BillingProduct: JArray ## : The billing product codes. Your account must be authorized to specify billing product codes. Otherwise, you can use the AWS Marketplace to bill for the use of an AMI. - var query_625568 = newJObject() - var formData_625569 = newJObject() - add(formData_625569, "SriovNetSupport", newJString(SriovNetSupport)) - add(formData_625569, "Description", newJString(Description)) + var query_625570 = newJObject() + var formData_625571 = newJObject() + add(formData_625571, "SriovNetSupport", newJString(SriovNetSupport)) + add(formData_625571, "Description", newJString(Description)) if BlockDeviceMapping != nil: - formData_625569.add "BlockDeviceMapping", BlockDeviceMapping - add(formData_625569, "Architecture", newJString(Architecture)) - add(formData_625569, "ImageLocation", newJString(ImageLocation)) - add(formData_625569, "KernelId", newJString(KernelId)) - add(formData_625569, "EnaSupport", newJBool(EnaSupport)) - add(formData_625569, "DryRun", newJBool(DryRun)) - add(formData_625569, "RootDeviceName", newJString(RootDeviceName)) - add(formData_625569, "VirtualizationType", newJString(VirtualizationType)) - add(query_625568, "Action", newJString(Action)) - add(formData_625569, "Name", newJString(Name)) - add(formData_625569, "RamdiskId", newJString(RamdiskId)) - add(query_625568, "Version", newJString(Version)) + formData_625571.add "BlockDeviceMapping", BlockDeviceMapping + add(formData_625571, "Architecture", newJString(Architecture)) + add(formData_625571, "ImageLocation", newJString(ImageLocation)) + add(formData_625571, "KernelId", newJString(KernelId)) + add(formData_625571, "EnaSupport", newJBool(EnaSupport)) + add(formData_625571, "DryRun", newJBool(DryRun)) + add(formData_625571, "RootDeviceName", newJString(RootDeviceName)) + add(formData_625571, "VirtualizationType", newJString(VirtualizationType)) + add(query_625570, "Action", newJString(Action)) + add(formData_625571, "Name", newJString(Name)) + add(formData_625571, "RamdiskId", newJString(RamdiskId)) + add(query_625570, "Version", newJString(Version)) if BillingProduct != nil: - formData_625569.add "BillingProduct", BillingProduct - result = call_625567.call(nil, query_625568, nil, formData_625569, nil) + formData_625571.add "BillingProduct", BillingProduct + result = call_625569.call(nil, query_625570, nil, formData_625571, nil) -var postRegisterImage* = Call_PostRegisterImage_625541(name: "postRegisterImage", +var postRegisterImage* = Call_PostRegisterImage_625543(name: "postRegisterImage", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", - route: "/#Action=RegisterImage", validator: validate_PostRegisterImage_625542, - base: "/", url: url_PostRegisterImage_625543, + route: "/#Action=RegisterImage", validator: validate_PostRegisterImage_625544, + base: "/", url: url_PostRegisterImage_625545, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetRegisterImage_625513 = ref object of OpenApiRestCall_610658 -proc url_GetRegisterImage_625515(protocol: Scheme; host: string; base: string; + Call_GetRegisterImage_625515 = ref object of OpenApiRestCall_610658 +proc url_GetRegisterImage_625517(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -119546,7 +119573,7 @@ proc url_GetRegisterImage_625515(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetRegisterImage_625514(path: JsonNode; query: JsonNode; +proc validate_GetRegisterImage_625516(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Registers an AMI. When you're creating an AMI, this is the final step you must complete before you can launch an instance from the AMI. For more information about creating AMIs, see Creating Your Own AMIs in the Amazon Elastic Compute Cloud User Guide.

    For Amazon EBS-backed instances, CreateImage creates and registers the AMI in a single request, so you don't have to register the AMI yourself.

    You can also use RegisterImage to create an Amazon EBS-backed Linux AMI from a snapshot of a root device volume. You specify the snapshot using the block device mapping. For more information, see Launching a Linux Instance from a Backup in the Amazon Elastic Compute Cloud User Guide.

    You can't register an image where a secondary (non-root) snapshot has AWS Marketplace product codes.

    Windows and some Linux distributions, such as Red Hat Enterprise Linux (RHEL) and SUSE Linux Enterprise Server (SLES), use the EC2 billing product code associated with an AMI to verify the subscription status for package updates. To create a new AMI for operating systems that require a billing product code, instead of registering the AMI, do the following to preserve the billing product code association:

    1. Launch an instance from an existing AMI with that billing product code.

    2. Customize the instance.

    3. Create an AMI from the instance using CreateImage.

    If you purchase a Reserved Instance to apply to an On-Demand Instance that was launched from an AMI with a billing product code, make sure that the Reserved Instance has the matching billing product code. If you purchase a Reserved Instance without the matching billing product code, the Reserved Instance will not be applied to the On-Demand Instance. For information about how to obtain the platform details and billing information of an AMI, see Obtaining Billing Information in the Amazon Elastic Compute Cloud User Guide.

    If needed, you can deregister an AMI at any time. Any modifications you make to an AMI backed by an instance store volume invalidates its registration. If you make changes to an image, deregister the previous image and register the new image.

    @@ -119586,80 +119613,80 @@ proc validate_GetRegisterImage_625514(path: JsonNode; query: JsonNode; ## : The block device mapping entries. ## Version: JString (required) section = newJObject() - var valid_625516 = query.getOrDefault("ImageLocation") - valid_625516 = validateParameter(valid_625516, JString, required = false, - default = nil) - if valid_625516 != nil: - section.add "ImageLocation", valid_625516 - var valid_625517 = query.getOrDefault("RootDeviceName") - valid_625517 = validateParameter(valid_625517, JString, required = false, + var valid_625518 = query.getOrDefault("ImageLocation") + valid_625518 = validateParameter(valid_625518, JString, required = false, default = nil) - if valid_625517 != nil: - section.add "RootDeviceName", valid_625517 - var valid_625518 = query.getOrDefault("DryRun") - valid_625518 = validateParameter(valid_625518, JBool, required = false, default = nil) if valid_625518 != nil: - section.add "DryRun", valid_625518 - var valid_625519 = query.getOrDefault("Architecture") + section.add "ImageLocation", valid_625518 + var valid_625519 = query.getOrDefault("RootDeviceName") valid_625519 = validateParameter(valid_625519, JString, required = false, - default = newJString("i386")) - if valid_625519 != nil: - section.add "Architecture", valid_625519 - var valid_625520 = query.getOrDefault("SriovNetSupport") - valid_625520 = validateParameter(valid_625520, JString, required = false, default = nil) + if valid_625519 != nil: + section.add "RootDeviceName", valid_625519 + var valid_625520 = query.getOrDefault("DryRun") + valid_625520 = validateParameter(valid_625520, JBool, required = false, default = nil) if valid_625520 != nil: - section.add "SriovNetSupport", valid_625520 - assert query != nil, "query argument is necessary due to required `Name` field" - var valid_625521 = query.getOrDefault("Name") - valid_625521 = validateParameter(valid_625521, JString, required = true, - default = nil) + section.add "DryRun", valid_625520 + var valid_625521 = query.getOrDefault("Architecture") + valid_625521 = validateParameter(valid_625521, JString, required = false, + default = newJString("i386")) if valid_625521 != nil: - section.add "Name", valid_625521 - var valid_625522 = query.getOrDefault("RamdiskId") + section.add "Architecture", valid_625521 + var valid_625522 = query.getOrDefault("SriovNetSupport") valid_625522 = validateParameter(valid_625522, JString, required = false, default = nil) if valid_625522 != nil: - section.add "RamdiskId", valid_625522 - var valid_625523 = query.getOrDefault("KernelId") - valid_625523 = validateParameter(valid_625523, JString, required = false, + section.add "SriovNetSupport", valid_625522 + assert query != nil, "query argument is necessary due to required `Name` field" + var valid_625523 = query.getOrDefault("Name") + valid_625523 = validateParameter(valid_625523, JString, required = true, default = nil) if valid_625523 != nil: - section.add "KernelId", valid_625523 - var valid_625524 = query.getOrDefault("BillingProduct") - valid_625524 = validateParameter(valid_625524, JArray, required = false, + section.add "Name", valid_625523 + var valid_625524 = query.getOrDefault("RamdiskId") + valid_625524 = validateParameter(valid_625524, JString, required = false, default = nil) if valid_625524 != nil: - section.add "BillingProduct", valid_625524 - var valid_625525 = query.getOrDefault("Action") - valid_625525 = validateParameter(valid_625525, JString, required = true, - default = newJString("RegisterImage")) + section.add "RamdiskId", valid_625524 + var valid_625525 = query.getOrDefault("KernelId") + valid_625525 = validateParameter(valid_625525, JString, required = false, + default = nil) if valid_625525 != nil: - section.add "Action", valid_625525 - var valid_625526 = query.getOrDefault("Description") - valid_625526 = validateParameter(valid_625526, JString, required = false, + section.add "KernelId", valid_625525 + var valid_625526 = query.getOrDefault("BillingProduct") + valid_625526 = validateParameter(valid_625526, JArray, required = false, default = nil) if valid_625526 != nil: - section.add "Description", valid_625526 - var valid_625527 = query.getOrDefault("VirtualizationType") - valid_625527 = validateParameter(valid_625527, JString, required = false, - default = nil) + section.add "BillingProduct", valid_625526 + var valid_625527 = query.getOrDefault("Action") + valid_625527 = validateParameter(valid_625527, JString, required = true, + default = newJString("RegisterImage")) if valid_625527 != nil: - section.add "VirtualizationType", valid_625527 - var valid_625528 = query.getOrDefault("EnaSupport") - valid_625528 = validateParameter(valid_625528, JBool, required = false, default = nil) + section.add "Action", valid_625527 + var valid_625528 = query.getOrDefault("Description") + valid_625528 = validateParameter(valid_625528, JString, required = false, + default = nil) if valid_625528 != nil: - section.add "EnaSupport", valid_625528 - var valid_625529 = query.getOrDefault("BlockDeviceMapping") - valid_625529 = validateParameter(valid_625529, JArray, required = false, + section.add "Description", valid_625528 + var valid_625529 = query.getOrDefault("VirtualizationType") + valid_625529 = validateParameter(valid_625529, JString, required = false, default = nil) if valid_625529 != nil: - section.add "BlockDeviceMapping", valid_625529 - var valid_625530 = query.getOrDefault("Version") - valid_625530 = validateParameter(valid_625530, JString, required = true, - default = newJString("2016-11-15")) + section.add "VirtualizationType", valid_625529 + var valid_625530 = query.getOrDefault("EnaSupport") + valid_625530 = validateParameter(valid_625530, JBool, required = false, default = nil) if valid_625530 != nil: - section.add "Version", valid_625530 + section.add "EnaSupport", valid_625530 + var valid_625531 = query.getOrDefault("BlockDeviceMapping") + valid_625531 = validateParameter(valid_625531, JArray, required = false, + default = nil) + if valid_625531 != nil: + section.add "BlockDeviceMapping", valid_625531 + var valid_625532 = query.getOrDefault("Version") + valid_625532 = validateParameter(valid_625532, JString, required = true, + default = newJString("2016-11-15")) + if valid_625532 != nil: + section.add "Version", valid_625532 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -119670,61 +119697,61 @@ proc validate_GetRegisterImage_625514(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625531 = header.getOrDefault("X-Amz-Signature") - valid_625531 = validateParameter(valid_625531, JString, required = false, - default = nil) - if valid_625531 != nil: - section.add "X-Amz-Signature", valid_625531 - var valid_625532 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625532 = validateParameter(valid_625532, JString, required = false, - default = nil) - if valid_625532 != nil: - section.add "X-Amz-Content-Sha256", valid_625532 - var valid_625533 = header.getOrDefault("X-Amz-Date") + var valid_625533 = header.getOrDefault("X-Amz-Signature") valid_625533 = validateParameter(valid_625533, JString, required = false, default = nil) if valid_625533 != nil: - section.add "X-Amz-Date", valid_625533 - var valid_625534 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625533 + var valid_625534 = header.getOrDefault("X-Amz-Content-Sha256") valid_625534 = validateParameter(valid_625534, JString, required = false, default = nil) if valid_625534 != nil: - section.add "X-Amz-Credential", valid_625534 - var valid_625535 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625534 + var valid_625535 = header.getOrDefault("X-Amz-Date") valid_625535 = validateParameter(valid_625535, JString, required = false, default = nil) if valid_625535 != nil: - section.add "X-Amz-Security-Token", valid_625535 - var valid_625536 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625535 + var valid_625536 = header.getOrDefault("X-Amz-Credential") valid_625536 = validateParameter(valid_625536, JString, required = false, default = nil) if valid_625536 != nil: - section.add "X-Amz-Algorithm", valid_625536 - var valid_625537 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625536 + var valid_625537 = header.getOrDefault("X-Amz-Security-Token") valid_625537 = validateParameter(valid_625537, JString, required = false, default = nil) if valid_625537 != nil: - section.add "X-Amz-SignedHeaders", valid_625537 + section.add "X-Amz-Security-Token", valid_625537 + var valid_625538 = header.getOrDefault("X-Amz-Algorithm") + valid_625538 = validateParameter(valid_625538, JString, required = false, + default = nil) + if valid_625538 != nil: + section.add "X-Amz-Algorithm", valid_625538 + var valid_625539 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625539 = validateParameter(valid_625539, JString, required = false, + default = nil) + if valid_625539 != nil: + section.add "X-Amz-SignedHeaders", valid_625539 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625538: Call_GetRegisterImage_625513; path: JsonNode; +proc call*(call_625540: Call_GetRegisterImage_625515; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Registers an AMI. When you're creating an AMI, this is the final step you must complete before you can launch an instance from the AMI. For more information about creating AMIs, see Creating Your Own AMIs in the Amazon Elastic Compute Cloud User Guide.

    For Amazon EBS-backed instances, CreateImage creates and registers the AMI in a single request, so you don't have to register the AMI yourself.

    You can also use RegisterImage to create an Amazon EBS-backed Linux AMI from a snapshot of a root device volume. You specify the snapshot using the block device mapping. For more information, see Launching a Linux Instance from a Backup in the Amazon Elastic Compute Cloud User Guide.

    You can't register an image where a secondary (non-root) snapshot has AWS Marketplace product codes.

    Windows and some Linux distributions, such as Red Hat Enterprise Linux (RHEL) and SUSE Linux Enterprise Server (SLES), use the EC2 billing product code associated with an AMI to verify the subscription status for package updates. To create a new AMI for operating systems that require a billing product code, instead of registering the AMI, do the following to preserve the billing product code association:

    1. Launch an instance from an existing AMI with that billing product code.

    2. Customize the instance.

    3. Create an AMI from the instance using CreateImage.

    If you purchase a Reserved Instance to apply to an On-Demand Instance that was launched from an AMI with a billing product code, make sure that the Reserved Instance has the matching billing product code. If you purchase a Reserved Instance without the matching billing product code, the Reserved Instance will not be applied to the On-Demand Instance. For information about how to obtain the platform details and billing information of an AMI, see Obtaining Billing Information in the Amazon Elastic Compute Cloud User Guide.

    If needed, you can deregister an AMI at any time. Any modifications you make to an AMI backed by an instance store volume invalidates its registration. If you make changes to an image, deregister the previous image and register the new image.

    ## - let valid = call_625538.validator(path, query, header, formData, body) - let scheme = call_625538.pickScheme + let valid = call_625540.validator(path, query, header, formData, body) + let scheme = call_625540.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625538.url(scheme.get, call_625538.host, call_625538.base, - call_625538.route, valid.getOrDefault("path"), + let url = call_625540.url(scheme.get, call_625540.host, call_625540.base, + call_625540.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625538, url, valid) + result = atozHook(call_625540, url, valid) -proc call*(call_625539: Call_GetRegisterImage_625513; Name: string; +proc call*(call_625541: Call_GetRegisterImage_625515; Name: string; ImageLocation: string = ""; RootDeviceName: string = ""; DryRun: bool = false; Architecture: string = "i386"; SriovNetSupport: string = ""; RamdiskId: string = ""; KernelId: string = ""; BillingProduct: JsonNode = nil; @@ -119762,34 +119789,34 @@ proc call*(call_625539: Call_GetRegisterImage_625513; Name: string; ## BlockDeviceMapping: JArray ## : The block device mapping entries. ## Version: string (required) - var query_625540 = newJObject() - add(query_625540, "ImageLocation", newJString(ImageLocation)) - add(query_625540, "RootDeviceName", newJString(RootDeviceName)) - add(query_625540, "DryRun", newJBool(DryRun)) - add(query_625540, "Architecture", newJString(Architecture)) - add(query_625540, "SriovNetSupport", newJString(SriovNetSupport)) - add(query_625540, "Name", newJString(Name)) - add(query_625540, "RamdiskId", newJString(RamdiskId)) - add(query_625540, "KernelId", newJString(KernelId)) + var query_625542 = newJObject() + add(query_625542, "ImageLocation", newJString(ImageLocation)) + add(query_625542, "RootDeviceName", newJString(RootDeviceName)) + add(query_625542, "DryRun", newJBool(DryRun)) + add(query_625542, "Architecture", newJString(Architecture)) + add(query_625542, "SriovNetSupport", newJString(SriovNetSupport)) + add(query_625542, "Name", newJString(Name)) + add(query_625542, "RamdiskId", newJString(RamdiskId)) + add(query_625542, "KernelId", newJString(KernelId)) if BillingProduct != nil: - query_625540.add "BillingProduct", BillingProduct - add(query_625540, "Action", newJString(Action)) - add(query_625540, "Description", newJString(Description)) - add(query_625540, "VirtualizationType", newJString(VirtualizationType)) - add(query_625540, "EnaSupport", newJBool(EnaSupport)) + query_625542.add "BillingProduct", BillingProduct + add(query_625542, "Action", newJString(Action)) + add(query_625542, "Description", newJString(Description)) + add(query_625542, "VirtualizationType", newJString(VirtualizationType)) + add(query_625542, "EnaSupport", newJBool(EnaSupport)) if BlockDeviceMapping != nil: - query_625540.add "BlockDeviceMapping", BlockDeviceMapping - add(query_625540, "Version", newJString(Version)) - result = call_625539.call(nil, query_625540, nil, nil, nil) + query_625542.add "BlockDeviceMapping", BlockDeviceMapping + add(query_625542, "Version", newJString(Version)) + result = call_625541.call(nil, query_625542, nil, nil, nil) -var getRegisterImage* = Call_GetRegisterImage_625513(name: "getRegisterImage", +var getRegisterImage* = Call_GetRegisterImage_625515(name: "getRegisterImage", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=RegisterImage", validator: validate_GetRegisterImage_625514, - base: "/", url: url_GetRegisterImage_625515, + route: "/#Action=RegisterImage", validator: validate_GetRegisterImage_625516, + base: "/", url: url_GetRegisterImage_625517, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostRegisterTransitGatewayMulticastGroupMembers_625589 = ref object of OpenApiRestCall_610658 -proc url_PostRegisterTransitGatewayMulticastGroupMembers_625591(protocol: Scheme; + Call_PostRegisterTransitGatewayMulticastGroupMembers_625591 = ref object of OpenApiRestCall_610658 +proc url_PostRegisterTransitGatewayMulticastGroupMembers_625593(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -119799,7 +119826,7 @@ proc url_PostRegisterTransitGatewayMulticastGroupMembers_625591(protocol: Scheme else: result.path = base & route -proc validate_PostRegisterTransitGatewayMulticastGroupMembers_625590( +proc validate_PostRegisterTransitGatewayMulticastGroupMembers_625592( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Registers members (network interfaces) with the transit gateway multicast group. A member is a network interface associated with a supported EC2 instance that receives multicast traffic. For information about supported instances, see Multicast Consideration in Amazon VPC Transit Gateways.

    After you add the members, use SearchTransitGatewayMulticastGroups to verify that the members were added to the transit gateway multicast group.

    @@ -119812,16 +119839,16 @@ proc validate_PostRegisterTransitGatewayMulticastGroupMembers_625590( ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625592 = query.getOrDefault("Action") - valid_625592 = validateParameter(valid_625592, JString, required = true, default = newJString( + var valid_625594 = query.getOrDefault("Action") + valid_625594 = validateParameter(valid_625594, JString, required = true, default = newJString( "RegisterTransitGatewayMulticastGroupMembers")) - if valid_625592 != nil: - section.add "Action", valid_625592 - var valid_625593 = query.getOrDefault("Version") - valid_625593 = validateParameter(valid_625593, JString, required = true, + if valid_625594 != nil: + section.add "Action", valid_625594 + var valid_625595 = query.getOrDefault("Version") + valid_625595 = validateParameter(valid_625595, JString, required = true, default = newJString("2016-11-15")) - if valid_625593 != nil: - section.add "Version", valid_625593 + if valid_625595 != nil: + section.add "Version", valid_625595 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -119832,41 +119859,41 @@ proc validate_PostRegisterTransitGatewayMulticastGroupMembers_625590( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625594 = header.getOrDefault("X-Amz-Signature") - valid_625594 = validateParameter(valid_625594, JString, required = false, - default = nil) - if valid_625594 != nil: - section.add "X-Amz-Signature", valid_625594 - var valid_625595 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625595 = validateParameter(valid_625595, JString, required = false, - default = nil) - if valid_625595 != nil: - section.add "X-Amz-Content-Sha256", valid_625595 - var valid_625596 = header.getOrDefault("X-Amz-Date") + var valid_625596 = header.getOrDefault("X-Amz-Signature") valid_625596 = validateParameter(valid_625596, JString, required = false, default = nil) if valid_625596 != nil: - section.add "X-Amz-Date", valid_625596 - var valid_625597 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625596 + var valid_625597 = header.getOrDefault("X-Amz-Content-Sha256") valid_625597 = validateParameter(valid_625597, JString, required = false, default = nil) if valid_625597 != nil: - section.add "X-Amz-Credential", valid_625597 - var valid_625598 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625597 + var valid_625598 = header.getOrDefault("X-Amz-Date") valid_625598 = validateParameter(valid_625598, JString, required = false, default = nil) if valid_625598 != nil: - section.add "X-Amz-Security-Token", valid_625598 - var valid_625599 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625598 + var valid_625599 = header.getOrDefault("X-Amz-Credential") valid_625599 = validateParameter(valid_625599, JString, required = false, default = nil) if valid_625599 != nil: - section.add "X-Amz-Algorithm", valid_625599 - var valid_625600 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625599 + var valid_625600 = header.getOrDefault("X-Amz-Security-Token") valid_625600 = validateParameter(valid_625600, JString, required = false, default = nil) if valid_625600 != nil: - section.add "X-Amz-SignedHeaders", valid_625600 + section.add "X-Amz-Security-Token", valid_625600 + var valid_625601 = header.getOrDefault("X-Amz-Algorithm") + valid_625601 = validateParameter(valid_625601, JString, required = false, + default = nil) + if valid_625601 != nil: + section.add "X-Amz-Algorithm", valid_625601 + var valid_625602 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625602 = validateParameter(valid_625602, JString, required = false, + default = nil) + if valid_625602 != nil: + section.add "X-Amz-SignedHeaders", valid_625602 result.add "header", section ## parameters in `formData` object: ## NetworkInterfaceIds: JArray @@ -119878,44 +119905,44 @@ proc validate_PostRegisterTransitGatewayMulticastGroupMembers_625590( ## TransitGatewayMulticastDomainId: JString ## : The ID of the transit gateway multicast domain. section = newJObject() - var valid_625601 = formData.getOrDefault("NetworkInterfaceIds") - valid_625601 = validateParameter(valid_625601, JArray, required = false, - default = nil) - if valid_625601 != nil: - section.add "NetworkInterfaceIds", valid_625601 - var valid_625602 = formData.getOrDefault("GroupIpAddress") - valid_625602 = validateParameter(valid_625602, JString, required = false, + var valid_625603 = formData.getOrDefault("NetworkInterfaceIds") + valid_625603 = validateParameter(valid_625603, JArray, required = false, default = nil) - if valid_625602 != nil: - section.add "GroupIpAddress", valid_625602 - var valid_625603 = formData.getOrDefault("DryRun") - valid_625603 = validateParameter(valid_625603, JBool, required = false, default = nil) if valid_625603 != nil: - section.add "DryRun", valid_625603 - var valid_625604 = formData.getOrDefault("TransitGatewayMulticastDomainId") + section.add "NetworkInterfaceIds", valid_625603 + var valid_625604 = formData.getOrDefault("GroupIpAddress") valid_625604 = validateParameter(valid_625604, JString, required = false, default = nil) if valid_625604 != nil: - section.add "TransitGatewayMulticastDomainId", valid_625604 + section.add "GroupIpAddress", valid_625604 + var valid_625605 = formData.getOrDefault("DryRun") + valid_625605 = validateParameter(valid_625605, JBool, required = false, default = nil) + if valid_625605 != nil: + section.add "DryRun", valid_625605 + var valid_625606 = formData.getOrDefault("TransitGatewayMulticastDomainId") + valid_625606 = validateParameter(valid_625606, JString, required = false, + default = nil) + if valid_625606 != nil: + section.add "TransitGatewayMulticastDomainId", valid_625606 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625605: Call_PostRegisterTransitGatewayMulticastGroupMembers_625589; +proc call*(call_625607: Call_PostRegisterTransitGatewayMulticastGroupMembers_625591; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Registers members (network interfaces) with the transit gateway multicast group. A member is a network interface associated with a supported EC2 instance that receives multicast traffic. For information about supported instances, see Multicast Consideration in Amazon VPC Transit Gateways.

    After you add the members, use SearchTransitGatewayMulticastGroups to verify that the members were added to the transit gateway multicast group.

    ## - let valid = call_625605.validator(path, query, header, formData, body) - let scheme = call_625605.pickScheme + let valid = call_625607.validator(path, query, header, formData, body) + let scheme = call_625607.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625605.url(scheme.get, call_625605.host, call_625605.base, - call_625605.route, valid.getOrDefault("path"), + let url = call_625607.url(scheme.get, call_625607.host, call_625607.base, + call_625607.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625605, url, valid) + result = atozHook(call_625607, url, valid) -proc call*(call_625606: Call_PostRegisterTransitGatewayMulticastGroupMembers_625589; +proc call*(call_625608: Call_PostRegisterTransitGatewayMulticastGroupMembers_625591; NetworkInterfaceIds: JsonNode = nil; GroupIpAddress: string = ""; DryRun: bool = false; Action: string = "RegisterTransitGatewayMulticastGroupMembers"; @@ -119933,28 +119960,28 @@ proc call*(call_625606: Call_PostRegisterTransitGatewayMulticastGroupMembers_625 ## TransitGatewayMulticastDomainId: string ## : The ID of the transit gateway multicast domain. ## Version: string (required) - var query_625607 = newJObject() - var formData_625608 = newJObject() + var query_625609 = newJObject() + var formData_625610 = newJObject() if NetworkInterfaceIds != nil: - formData_625608.add "NetworkInterfaceIds", NetworkInterfaceIds - add(formData_625608, "GroupIpAddress", newJString(GroupIpAddress)) - add(formData_625608, "DryRun", newJBool(DryRun)) - add(query_625607, "Action", newJString(Action)) - add(formData_625608, "TransitGatewayMulticastDomainId", + formData_625610.add "NetworkInterfaceIds", NetworkInterfaceIds + add(formData_625610, "GroupIpAddress", newJString(GroupIpAddress)) + add(formData_625610, "DryRun", newJBool(DryRun)) + add(query_625609, "Action", newJString(Action)) + add(formData_625610, "TransitGatewayMulticastDomainId", newJString(TransitGatewayMulticastDomainId)) - add(query_625607, "Version", newJString(Version)) - result = call_625606.call(nil, query_625607, nil, formData_625608, nil) + add(query_625609, "Version", newJString(Version)) + result = call_625608.call(nil, query_625609, nil, formData_625610, nil) -var postRegisterTransitGatewayMulticastGroupMembers* = Call_PostRegisterTransitGatewayMulticastGroupMembers_625589( +var postRegisterTransitGatewayMulticastGroupMembers* = Call_PostRegisterTransitGatewayMulticastGroupMembers_625591( name: "postRegisterTransitGatewayMulticastGroupMembers", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=RegisterTransitGatewayMulticastGroupMembers", - validator: validate_PostRegisterTransitGatewayMulticastGroupMembers_625590, - base: "/", url: url_PostRegisterTransitGatewayMulticastGroupMembers_625591, + validator: validate_PostRegisterTransitGatewayMulticastGroupMembers_625592, + base: "/", url: url_PostRegisterTransitGatewayMulticastGroupMembers_625593, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetRegisterTransitGatewayMulticastGroupMembers_625570 = ref object of OpenApiRestCall_610658 -proc url_GetRegisterTransitGatewayMulticastGroupMembers_625572(protocol: Scheme; + Call_GetRegisterTransitGatewayMulticastGroupMembers_625572 = ref object of OpenApiRestCall_610658 +proc url_GetRegisterTransitGatewayMulticastGroupMembers_625574(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -119964,7 +119991,7 @@ proc url_GetRegisterTransitGatewayMulticastGroupMembers_625572(protocol: Scheme; else: result.path = base & route -proc validate_GetRegisterTransitGatewayMulticastGroupMembers_625571( +proc validate_GetRegisterTransitGatewayMulticastGroupMembers_625573( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Registers members (network interfaces) with the transit gateway multicast group. A member is a network interface associated with a supported EC2 instance that receives multicast traffic. For information about supported instances, see Multicast Consideration in Amazon VPC Transit Gateways.

    After you add the members, use SearchTransitGatewayMulticastGroups to verify that the members were added to the transit gateway multicast group.

    @@ -119985,35 +120012,35 @@ proc validate_GetRegisterTransitGatewayMulticastGroupMembers_625571( ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625573 = query.getOrDefault("DryRun") - valid_625573 = validateParameter(valid_625573, JBool, required = false, default = nil) - if valid_625573 != nil: - section.add "DryRun", valid_625573 - var valid_625574 = query.getOrDefault("TransitGatewayMulticastDomainId") - valid_625574 = validateParameter(valid_625574, JString, required = false, - default = nil) - if valid_625574 != nil: - section.add "TransitGatewayMulticastDomainId", valid_625574 - var valid_625575 = query.getOrDefault("GroupIpAddress") - valid_625575 = validateParameter(valid_625575, JString, required = false, - default = nil) + var valid_625575 = query.getOrDefault("DryRun") + valid_625575 = validateParameter(valid_625575, JBool, required = false, default = nil) if valid_625575 != nil: - section.add "GroupIpAddress", valid_625575 - var valid_625576 = query.getOrDefault("NetworkInterfaceIds") - valid_625576 = validateParameter(valid_625576, JArray, required = false, + section.add "DryRun", valid_625575 + var valid_625576 = query.getOrDefault("TransitGatewayMulticastDomainId") + valid_625576 = validateParameter(valid_625576, JString, required = false, default = nil) if valid_625576 != nil: - section.add "NetworkInterfaceIds", valid_625576 - var valid_625577 = query.getOrDefault("Action") - valid_625577 = validateParameter(valid_625577, JString, required = true, default = newJString( - "RegisterTransitGatewayMulticastGroupMembers")) + section.add "TransitGatewayMulticastDomainId", valid_625576 + var valid_625577 = query.getOrDefault("GroupIpAddress") + valid_625577 = validateParameter(valid_625577, JString, required = false, + default = nil) if valid_625577 != nil: - section.add "Action", valid_625577 - var valid_625578 = query.getOrDefault("Version") - valid_625578 = validateParameter(valid_625578, JString, required = true, - default = newJString("2016-11-15")) + section.add "GroupIpAddress", valid_625577 + var valid_625578 = query.getOrDefault("NetworkInterfaceIds") + valid_625578 = validateParameter(valid_625578, JArray, required = false, + default = nil) if valid_625578 != nil: - section.add "Version", valid_625578 + section.add "NetworkInterfaceIds", valid_625578 + var valid_625579 = query.getOrDefault("Action") + valid_625579 = validateParameter(valid_625579, JString, required = true, default = newJString( + "RegisterTransitGatewayMulticastGroupMembers")) + if valid_625579 != nil: + section.add "Action", valid_625579 + var valid_625580 = query.getOrDefault("Version") + valid_625580 = validateParameter(valid_625580, JString, required = true, + default = newJString("2016-11-15")) + if valid_625580 != nil: + section.add "Version", valid_625580 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -120024,62 +120051,62 @@ proc validate_GetRegisterTransitGatewayMulticastGroupMembers_625571( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625579 = header.getOrDefault("X-Amz-Signature") - valid_625579 = validateParameter(valid_625579, JString, required = false, - default = nil) - if valid_625579 != nil: - section.add "X-Amz-Signature", valid_625579 - var valid_625580 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625580 = validateParameter(valid_625580, JString, required = false, - default = nil) - if valid_625580 != nil: - section.add "X-Amz-Content-Sha256", valid_625580 - var valid_625581 = header.getOrDefault("X-Amz-Date") + var valid_625581 = header.getOrDefault("X-Amz-Signature") valid_625581 = validateParameter(valid_625581, JString, required = false, default = nil) if valid_625581 != nil: - section.add "X-Amz-Date", valid_625581 - var valid_625582 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625581 + var valid_625582 = header.getOrDefault("X-Amz-Content-Sha256") valid_625582 = validateParameter(valid_625582, JString, required = false, default = nil) if valid_625582 != nil: - section.add "X-Amz-Credential", valid_625582 - var valid_625583 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625582 + var valid_625583 = header.getOrDefault("X-Amz-Date") valid_625583 = validateParameter(valid_625583, JString, required = false, default = nil) if valid_625583 != nil: - section.add "X-Amz-Security-Token", valid_625583 - var valid_625584 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625583 + var valid_625584 = header.getOrDefault("X-Amz-Credential") valid_625584 = validateParameter(valid_625584, JString, required = false, default = nil) if valid_625584 != nil: - section.add "X-Amz-Algorithm", valid_625584 - var valid_625585 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625584 + var valid_625585 = header.getOrDefault("X-Amz-Security-Token") valid_625585 = validateParameter(valid_625585, JString, required = false, default = nil) if valid_625585 != nil: - section.add "X-Amz-SignedHeaders", valid_625585 + section.add "X-Amz-Security-Token", valid_625585 + var valid_625586 = header.getOrDefault("X-Amz-Algorithm") + valid_625586 = validateParameter(valid_625586, JString, required = false, + default = nil) + if valid_625586 != nil: + section.add "X-Amz-Algorithm", valid_625586 + var valid_625587 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625587 = validateParameter(valid_625587, JString, required = false, + default = nil) + if valid_625587 != nil: + section.add "X-Amz-SignedHeaders", valid_625587 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625586: Call_GetRegisterTransitGatewayMulticastGroupMembers_625570; +proc call*(call_625588: Call_GetRegisterTransitGatewayMulticastGroupMembers_625572; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Registers members (network interfaces) with the transit gateway multicast group. A member is a network interface associated with a supported EC2 instance that receives multicast traffic. For information about supported instances, see Multicast Consideration in Amazon VPC Transit Gateways.

    After you add the members, use SearchTransitGatewayMulticastGroups to verify that the members were added to the transit gateway multicast group.

    ## - let valid = call_625586.validator(path, query, header, formData, body) - let scheme = call_625586.pickScheme + let valid = call_625588.validator(path, query, header, formData, body) + let scheme = call_625588.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625586.url(scheme.get, call_625586.host, call_625586.base, - call_625586.route, valid.getOrDefault("path"), + let url = call_625588.url(scheme.get, call_625588.host, call_625588.base, + call_625588.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625586, url, valid) + result = atozHook(call_625588, url, valid) -proc call*(call_625587: Call_GetRegisterTransitGatewayMulticastGroupMembers_625570; +proc call*(call_625589: Call_GetRegisterTransitGatewayMulticastGroupMembers_625572; DryRun: bool = false; TransitGatewayMulticastDomainId: string = ""; GroupIpAddress: string = ""; NetworkInterfaceIds: JsonNode = nil; Action: string = "RegisterTransitGatewayMulticastGroupMembers"; @@ -120096,27 +120123,27 @@ proc call*(call_625587: Call_GetRegisterTransitGatewayMulticastGroupMembers_6255 ## : The group members' network interface IDs to register with the transit gateway multicast group. ## Action: string (required) ## Version: string (required) - var query_625588 = newJObject() - add(query_625588, "DryRun", newJBool(DryRun)) - add(query_625588, "TransitGatewayMulticastDomainId", + var query_625590 = newJObject() + add(query_625590, "DryRun", newJBool(DryRun)) + add(query_625590, "TransitGatewayMulticastDomainId", newJString(TransitGatewayMulticastDomainId)) - add(query_625588, "GroupIpAddress", newJString(GroupIpAddress)) + add(query_625590, "GroupIpAddress", newJString(GroupIpAddress)) if NetworkInterfaceIds != nil: - query_625588.add "NetworkInterfaceIds", NetworkInterfaceIds - add(query_625588, "Action", newJString(Action)) - add(query_625588, "Version", newJString(Version)) - result = call_625587.call(nil, query_625588, nil, nil, nil) + query_625590.add "NetworkInterfaceIds", NetworkInterfaceIds + add(query_625590, "Action", newJString(Action)) + add(query_625590, "Version", newJString(Version)) + result = call_625589.call(nil, query_625590, nil, nil, nil) -var getRegisterTransitGatewayMulticastGroupMembers* = Call_GetRegisterTransitGatewayMulticastGroupMembers_625570( +var getRegisterTransitGatewayMulticastGroupMembers* = Call_GetRegisterTransitGatewayMulticastGroupMembers_625572( name: "getRegisterTransitGatewayMulticastGroupMembers", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=RegisterTransitGatewayMulticastGroupMembers", - validator: validate_GetRegisterTransitGatewayMulticastGroupMembers_625571, - base: "/", url: url_GetRegisterTransitGatewayMulticastGroupMembers_625572, + validator: validate_GetRegisterTransitGatewayMulticastGroupMembers_625573, + base: "/", url: url_GetRegisterTransitGatewayMulticastGroupMembers_625574, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostRegisterTransitGatewayMulticastGroupSources_625628 = ref object of OpenApiRestCall_610658 -proc url_PostRegisterTransitGatewayMulticastGroupSources_625630(protocol: Scheme; + Call_PostRegisterTransitGatewayMulticastGroupSources_625630 = ref object of OpenApiRestCall_610658 +proc url_PostRegisterTransitGatewayMulticastGroupSources_625632(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -120126,7 +120153,7 @@ proc url_PostRegisterTransitGatewayMulticastGroupSources_625630(protocol: Scheme else: result.path = base & route -proc validate_PostRegisterTransitGatewayMulticastGroupSources_625629( +proc validate_PostRegisterTransitGatewayMulticastGroupSources_625631( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Registers sources (network interfaces) with the specified transit gateway multicast group.

    A multicast source is a network interface attached to a supported instance that sends multicast traffic. For information about supported instances, see Multicast Considerations in Amazon VPC Transit Gateways.

    After you add the source, use SearchTransitGatewayMulticastGroups to verify that the source was added to the multicast group.

    @@ -120139,16 +120166,16 @@ proc validate_PostRegisterTransitGatewayMulticastGroupSources_625629( ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625631 = query.getOrDefault("Action") - valid_625631 = validateParameter(valid_625631, JString, required = true, default = newJString( + var valid_625633 = query.getOrDefault("Action") + valid_625633 = validateParameter(valid_625633, JString, required = true, default = newJString( "RegisterTransitGatewayMulticastGroupSources")) - if valid_625631 != nil: - section.add "Action", valid_625631 - var valid_625632 = query.getOrDefault("Version") - valid_625632 = validateParameter(valid_625632, JString, required = true, + if valid_625633 != nil: + section.add "Action", valid_625633 + var valid_625634 = query.getOrDefault("Version") + valid_625634 = validateParameter(valid_625634, JString, required = true, default = newJString("2016-11-15")) - if valid_625632 != nil: - section.add "Version", valid_625632 + if valid_625634 != nil: + section.add "Version", valid_625634 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -120159,41 +120186,41 @@ proc validate_PostRegisterTransitGatewayMulticastGroupSources_625629( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625633 = header.getOrDefault("X-Amz-Signature") - valid_625633 = validateParameter(valid_625633, JString, required = false, - default = nil) - if valid_625633 != nil: - section.add "X-Amz-Signature", valid_625633 - var valid_625634 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625634 = validateParameter(valid_625634, JString, required = false, - default = nil) - if valid_625634 != nil: - section.add "X-Amz-Content-Sha256", valid_625634 - var valid_625635 = header.getOrDefault("X-Amz-Date") + var valid_625635 = header.getOrDefault("X-Amz-Signature") valid_625635 = validateParameter(valid_625635, JString, required = false, default = nil) if valid_625635 != nil: - section.add "X-Amz-Date", valid_625635 - var valid_625636 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625635 + var valid_625636 = header.getOrDefault("X-Amz-Content-Sha256") valid_625636 = validateParameter(valid_625636, JString, required = false, default = nil) if valid_625636 != nil: - section.add "X-Amz-Credential", valid_625636 - var valid_625637 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625636 + var valid_625637 = header.getOrDefault("X-Amz-Date") valid_625637 = validateParameter(valid_625637, JString, required = false, default = nil) if valid_625637 != nil: - section.add "X-Amz-Security-Token", valid_625637 - var valid_625638 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625637 + var valid_625638 = header.getOrDefault("X-Amz-Credential") valid_625638 = validateParameter(valid_625638, JString, required = false, default = nil) if valid_625638 != nil: - section.add "X-Amz-Algorithm", valid_625638 - var valid_625639 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625638 + var valid_625639 = header.getOrDefault("X-Amz-Security-Token") valid_625639 = validateParameter(valid_625639, JString, required = false, default = nil) if valid_625639 != nil: - section.add "X-Amz-SignedHeaders", valid_625639 + section.add "X-Amz-Security-Token", valid_625639 + var valid_625640 = header.getOrDefault("X-Amz-Algorithm") + valid_625640 = validateParameter(valid_625640, JString, required = false, + default = nil) + if valid_625640 != nil: + section.add "X-Amz-Algorithm", valid_625640 + var valid_625641 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625641 = validateParameter(valid_625641, JString, required = false, + default = nil) + if valid_625641 != nil: + section.add "X-Amz-SignedHeaders", valid_625641 result.add "header", section ## parameters in `formData` object: ## NetworkInterfaceIds: JArray @@ -120205,44 +120232,44 @@ proc validate_PostRegisterTransitGatewayMulticastGroupSources_625629( ## TransitGatewayMulticastDomainId: JString ## : The ID of the transit gateway multicast domain. section = newJObject() - var valid_625640 = formData.getOrDefault("NetworkInterfaceIds") - valid_625640 = validateParameter(valid_625640, JArray, required = false, + var valid_625642 = formData.getOrDefault("NetworkInterfaceIds") + valid_625642 = validateParameter(valid_625642, JArray, required = false, default = nil) - if valid_625640 != nil: - section.add "NetworkInterfaceIds", valid_625640 - var valid_625641 = formData.getOrDefault("GroupIpAddress") - valid_625641 = validateParameter(valid_625641, JString, required = false, - default = nil) - if valid_625641 != nil: - section.add "GroupIpAddress", valid_625641 - var valid_625642 = formData.getOrDefault("DryRun") - valid_625642 = validateParameter(valid_625642, JBool, required = false, default = nil) if valid_625642 != nil: - section.add "DryRun", valid_625642 - var valid_625643 = formData.getOrDefault("TransitGatewayMulticastDomainId") + section.add "NetworkInterfaceIds", valid_625642 + var valid_625643 = formData.getOrDefault("GroupIpAddress") valid_625643 = validateParameter(valid_625643, JString, required = false, default = nil) if valid_625643 != nil: - section.add "TransitGatewayMulticastDomainId", valid_625643 + section.add "GroupIpAddress", valid_625643 + var valid_625644 = formData.getOrDefault("DryRun") + valid_625644 = validateParameter(valid_625644, JBool, required = false, default = nil) + if valid_625644 != nil: + section.add "DryRun", valid_625644 + var valid_625645 = formData.getOrDefault("TransitGatewayMulticastDomainId") + valid_625645 = validateParameter(valid_625645, JString, required = false, + default = nil) + if valid_625645 != nil: + section.add "TransitGatewayMulticastDomainId", valid_625645 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625644: Call_PostRegisterTransitGatewayMulticastGroupSources_625628; +proc call*(call_625646: Call_PostRegisterTransitGatewayMulticastGroupSources_625630; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Registers sources (network interfaces) with the specified transit gateway multicast group.

    A multicast source is a network interface attached to a supported instance that sends multicast traffic. For information about supported instances, see Multicast Considerations in Amazon VPC Transit Gateways.

    After you add the source, use SearchTransitGatewayMulticastGroups to verify that the source was added to the multicast group.

    ## - let valid = call_625644.validator(path, query, header, formData, body) - let scheme = call_625644.pickScheme + let valid = call_625646.validator(path, query, header, formData, body) + let scheme = call_625646.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625644.url(scheme.get, call_625644.host, call_625644.base, - call_625644.route, valid.getOrDefault("path"), + let url = call_625646.url(scheme.get, call_625646.host, call_625646.base, + call_625646.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625644, url, valid) + result = atozHook(call_625646, url, valid) -proc call*(call_625645: Call_PostRegisterTransitGatewayMulticastGroupSources_625628; +proc call*(call_625647: Call_PostRegisterTransitGatewayMulticastGroupSources_625630; NetworkInterfaceIds: JsonNode = nil; GroupIpAddress: string = ""; DryRun: bool = false; Action: string = "RegisterTransitGatewayMulticastGroupSources"; @@ -120260,28 +120287,28 @@ proc call*(call_625645: Call_PostRegisterTransitGatewayMulticastGroupSources_625 ## TransitGatewayMulticastDomainId: string ## : The ID of the transit gateway multicast domain. ## Version: string (required) - var query_625646 = newJObject() - var formData_625647 = newJObject() + var query_625648 = newJObject() + var formData_625649 = newJObject() if NetworkInterfaceIds != nil: - formData_625647.add "NetworkInterfaceIds", NetworkInterfaceIds - add(formData_625647, "GroupIpAddress", newJString(GroupIpAddress)) - add(formData_625647, "DryRun", newJBool(DryRun)) - add(query_625646, "Action", newJString(Action)) - add(formData_625647, "TransitGatewayMulticastDomainId", + formData_625649.add "NetworkInterfaceIds", NetworkInterfaceIds + add(formData_625649, "GroupIpAddress", newJString(GroupIpAddress)) + add(formData_625649, "DryRun", newJBool(DryRun)) + add(query_625648, "Action", newJString(Action)) + add(formData_625649, "TransitGatewayMulticastDomainId", newJString(TransitGatewayMulticastDomainId)) - add(query_625646, "Version", newJString(Version)) - result = call_625645.call(nil, query_625646, nil, formData_625647, nil) + add(query_625648, "Version", newJString(Version)) + result = call_625647.call(nil, query_625648, nil, formData_625649, nil) -var postRegisterTransitGatewayMulticastGroupSources* = Call_PostRegisterTransitGatewayMulticastGroupSources_625628( +var postRegisterTransitGatewayMulticastGroupSources* = Call_PostRegisterTransitGatewayMulticastGroupSources_625630( name: "postRegisterTransitGatewayMulticastGroupSources", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=RegisterTransitGatewayMulticastGroupSources", - validator: validate_PostRegisterTransitGatewayMulticastGroupSources_625629, - base: "/", url: url_PostRegisterTransitGatewayMulticastGroupSources_625630, + validator: validate_PostRegisterTransitGatewayMulticastGroupSources_625631, + base: "/", url: url_PostRegisterTransitGatewayMulticastGroupSources_625632, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetRegisterTransitGatewayMulticastGroupSources_625609 = ref object of OpenApiRestCall_610658 -proc url_GetRegisterTransitGatewayMulticastGroupSources_625611(protocol: Scheme; + Call_GetRegisterTransitGatewayMulticastGroupSources_625611 = ref object of OpenApiRestCall_610658 +proc url_GetRegisterTransitGatewayMulticastGroupSources_625613(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -120291,7 +120318,7 @@ proc url_GetRegisterTransitGatewayMulticastGroupSources_625611(protocol: Scheme; else: result.path = base & route -proc validate_GetRegisterTransitGatewayMulticastGroupSources_625610( +proc validate_GetRegisterTransitGatewayMulticastGroupSources_625612( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Registers sources (network interfaces) with the specified transit gateway multicast group.

    A multicast source is a network interface attached to a supported instance that sends multicast traffic. For information about supported instances, see Multicast Considerations in Amazon VPC Transit Gateways.

    After you add the source, use SearchTransitGatewayMulticastGroups to verify that the source was added to the multicast group.

    @@ -120312,35 +120339,35 @@ proc validate_GetRegisterTransitGatewayMulticastGroupSources_625610( ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625612 = query.getOrDefault("DryRun") - valid_625612 = validateParameter(valid_625612, JBool, required = false, default = nil) - if valid_625612 != nil: - section.add "DryRun", valid_625612 - var valid_625613 = query.getOrDefault("TransitGatewayMulticastDomainId") - valid_625613 = validateParameter(valid_625613, JString, required = false, - default = nil) - if valid_625613 != nil: - section.add "TransitGatewayMulticastDomainId", valid_625613 - var valid_625614 = query.getOrDefault("GroupIpAddress") - valid_625614 = validateParameter(valid_625614, JString, required = false, - default = nil) + var valid_625614 = query.getOrDefault("DryRun") + valid_625614 = validateParameter(valid_625614, JBool, required = false, default = nil) if valid_625614 != nil: - section.add "GroupIpAddress", valid_625614 - var valid_625615 = query.getOrDefault("NetworkInterfaceIds") - valid_625615 = validateParameter(valid_625615, JArray, required = false, + section.add "DryRun", valid_625614 + var valid_625615 = query.getOrDefault("TransitGatewayMulticastDomainId") + valid_625615 = validateParameter(valid_625615, JString, required = false, default = nil) if valid_625615 != nil: - section.add "NetworkInterfaceIds", valid_625615 - var valid_625616 = query.getOrDefault("Action") - valid_625616 = validateParameter(valid_625616, JString, required = true, default = newJString( - "RegisterTransitGatewayMulticastGroupSources")) + section.add "TransitGatewayMulticastDomainId", valid_625615 + var valid_625616 = query.getOrDefault("GroupIpAddress") + valid_625616 = validateParameter(valid_625616, JString, required = false, + default = nil) if valid_625616 != nil: - section.add "Action", valid_625616 - var valid_625617 = query.getOrDefault("Version") - valid_625617 = validateParameter(valid_625617, JString, required = true, - default = newJString("2016-11-15")) + section.add "GroupIpAddress", valid_625616 + var valid_625617 = query.getOrDefault("NetworkInterfaceIds") + valid_625617 = validateParameter(valid_625617, JArray, required = false, + default = nil) if valid_625617 != nil: - section.add "Version", valid_625617 + section.add "NetworkInterfaceIds", valid_625617 + var valid_625618 = query.getOrDefault("Action") + valid_625618 = validateParameter(valid_625618, JString, required = true, default = newJString( + "RegisterTransitGatewayMulticastGroupSources")) + if valid_625618 != nil: + section.add "Action", valid_625618 + var valid_625619 = query.getOrDefault("Version") + valid_625619 = validateParameter(valid_625619, JString, required = true, + default = newJString("2016-11-15")) + if valid_625619 != nil: + section.add "Version", valid_625619 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -120351,62 +120378,62 @@ proc validate_GetRegisterTransitGatewayMulticastGroupSources_625610( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625618 = header.getOrDefault("X-Amz-Signature") - valid_625618 = validateParameter(valid_625618, JString, required = false, - default = nil) - if valid_625618 != nil: - section.add "X-Amz-Signature", valid_625618 - var valid_625619 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625619 = validateParameter(valid_625619, JString, required = false, - default = nil) - if valid_625619 != nil: - section.add "X-Amz-Content-Sha256", valid_625619 - var valid_625620 = header.getOrDefault("X-Amz-Date") + var valid_625620 = header.getOrDefault("X-Amz-Signature") valid_625620 = validateParameter(valid_625620, JString, required = false, default = nil) if valid_625620 != nil: - section.add "X-Amz-Date", valid_625620 - var valid_625621 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625620 + var valid_625621 = header.getOrDefault("X-Amz-Content-Sha256") valid_625621 = validateParameter(valid_625621, JString, required = false, default = nil) if valid_625621 != nil: - section.add "X-Amz-Credential", valid_625621 - var valid_625622 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625621 + var valid_625622 = header.getOrDefault("X-Amz-Date") valid_625622 = validateParameter(valid_625622, JString, required = false, default = nil) if valid_625622 != nil: - section.add "X-Amz-Security-Token", valid_625622 - var valid_625623 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625622 + var valid_625623 = header.getOrDefault("X-Amz-Credential") valid_625623 = validateParameter(valid_625623, JString, required = false, default = nil) if valid_625623 != nil: - section.add "X-Amz-Algorithm", valid_625623 - var valid_625624 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625623 + var valid_625624 = header.getOrDefault("X-Amz-Security-Token") valid_625624 = validateParameter(valid_625624, JString, required = false, default = nil) if valid_625624 != nil: - section.add "X-Amz-SignedHeaders", valid_625624 + section.add "X-Amz-Security-Token", valid_625624 + var valid_625625 = header.getOrDefault("X-Amz-Algorithm") + valid_625625 = validateParameter(valid_625625, JString, required = false, + default = nil) + if valid_625625 != nil: + section.add "X-Amz-Algorithm", valid_625625 + var valid_625626 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625626 = validateParameter(valid_625626, JString, required = false, + default = nil) + if valid_625626 != nil: + section.add "X-Amz-SignedHeaders", valid_625626 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625625: Call_GetRegisterTransitGatewayMulticastGroupSources_625609; +proc call*(call_625627: Call_GetRegisterTransitGatewayMulticastGroupSources_625611; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Registers sources (network interfaces) with the specified transit gateway multicast group.

    A multicast source is a network interface attached to a supported instance that sends multicast traffic. For information about supported instances, see Multicast Considerations in Amazon VPC Transit Gateways.

    After you add the source, use SearchTransitGatewayMulticastGroups to verify that the source was added to the multicast group.

    ## - let valid = call_625625.validator(path, query, header, formData, body) - let scheme = call_625625.pickScheme + let valid = call_625627.validator(path, query, header, formData, body) + let scheme = call_625627.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625625.url(scheme.get, call_625625.host, call_625625.base, - call_625625.route, valid.getOrDefault("path"), + let url = call_625627.url(scheme.get, call_625627.host, call_625627.base, + call_625627.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625625, url, valid) + result = atozHook(call_625627, url, valid) -proc call*(call_625626: Call_GetRegisterTransitGatewayMulticastGroupSources_625609; +proc call*(call_625628: Call_GetRegisterTransitGatewayMulticastGroupSources_625611; DryRun: bool = false; TransitGatewayMulticastDomainId: string = ""; GroupIpAddress: string = ""; NetworkInterfaceIds: JsonNode = nil; Action: string = "RegisterTransitGatewayMulticastGroupSources"; @@ -120423,27 +120450,27 @@ proc call*(call_625626: Call_GetRegisterTransitGatewayMulticastGroupSources_6256 ## : The group sources' network interface IDs to register with the transit gateway multicast group. ## Action: string (required) ## Version: string (required) - var query_625627 = newJObject() - add(query_625627, "DryRun", newJBool(DryRun)) - add(query_625627, "TransitGatewayMulticastDomainId", + var query_625629 = newJObject() + add(query_625629, "DryRun", newJBool(DryRun)) + add(query_625629, "TransitGatewayMulticastDomainId", newJString(TransitGatewayMulticastDomainId)) - add(query_625627, "GroupIpAddress", newJString(GroupIpAddress)) + add(query_625629, "GroupIpAddress", newJString(GroupIpAddress)) if NetworkInterfaceIds != nil: - query_625627.add "NetworkInterfaceIds", NetworkInterfaceIds - add(query_625627, "Action", newJString(Action)) - add(query_625627, "Version", newJString(Version)) - result = call_625626.call(nil, query_625627, nil, nil, nil) + query_625629.add "NetworkInterfaceIds", NetworkInterfaceIds + add(query_625629, "Action", newJString(Action)) + add(query_625629, "Version", newJString(Version)) + result = call_625628.call(nil, query_625629, nil, nil, nil) -var getRegisterTransitGatewayMulticastGroupSources* = Call_GetRegisterTransitGatewayMulticastGroupSources_625609( +var getRegisterTransitGatewayMulticastGroupSources* = Call_GetRegisterTransitGatewayMulticastGroupSources_625611( name: "getRegisterTransitGatewayMulticastGroupSources", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=RegisterTransitGatewayMulticastGroupSources", - validator: validate_GetRegisterTransitGatewayMulticastGroupSources_625610, - base: "/", url: url_GetRegisterTransitGatewayMulticastGroupSources_625611, + validator: validate_GetRegisterTransitGatewayMulticastGroupSources_625612, + base: "/", url: url_GetRegisterTransitGatewayMulticastGroupSources_625613, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostRejectTransitGatewayPeeringAttachment_625665 = ref object of OpenApiRestCall_610658 -proc url_PostRejectTransitGatewayPeeringAttachment_625667(protocol: Scheme; + Call_PostRejectTransitGatewayPeeringAttachment_625667 = ref object of OpenApiRestCall_610658 +proc url_PostRejectTransitGatewayPeeringAttachment_625669(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -120453,7 +120480,7 @@ proc url_PostRejectTransitGatewayPeeringAttachment_625667(protocol: Scheme; else: result.path = base & route -proc validate_PostRejectTransitGatewayPeeringAttachment_625666(path: JsonNode; +proc validate_PostRejectTransitGatewayPeeringAttachment_625668(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Rejects a transit gateway peering attachment request. ## @@ -120465,16 +120492,16 @@ proc validate_PostRejectTransitGatewayPeeringAttachment_625666(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625668 = query.getOrDefault("Action") - valid_625668 = validateParameter(valid_625668, JString, required = true, default = newJString( + var valid_625670 = query.getOrDefault("Action") + valid_625670 = validateParameter(valid_625670, JString, required = true, default = newJString( "RejectTransitGatewayPeeringAttachment")) - if valid_625668 != nil: - section.add "Action", valid_625668 - var valid_625669 = query.getOrDefault("Version") - valid_625669 = validateParameter(valid_625669, JString, required = true, + if valid_625670 != nil: + section.add "Action", valid_625670 + var valid_625671 = query.getOrDefault("Version") + valid_625671 = validateParameter(valid_625671, JString, required = true, default = newJString("2016-11-15")) - if valid_625669 != nil: - section.add "Version", valid_625669 + if valid_625671 != nil: + section.add "Version", valid_625671 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -120485,41 +120512,41 @@ proc validate_PostRejectTransitGatewayPeeringAttachment_625666(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625670 = header.getOrDefault("X-Amz-Signature") - valid_625670 = validateParameter(valid_625670, JString, required = false, - default = nil) - if valid_625670 != nil: - section.add "X-Amz-Signature", valid_625670 - var valid_625671 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625671 = validateParameter(valid_625671, JString, required = false, - default = nil) - if valid_625671 != nil: - section.add "X-Amz-Content-Sha256", valid_625671 - var valid_625672 = header.getOrDefault("X-Amz-Date") + var valid_625672 = header.getOrDefault("X-Amz-Signature") valid_625672 = validateParameter(valid_625672, JString, required = false, default = nil) if valid_625672 != nil: - section.add "X-Amz-Date", valid_625672 - var valid_625673 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625672 + var valid_625673 = header.getOrDefault("X-Amz-Content-Sha256") valid_625673 = validateParameter(valid_625673, JString, required = false, default = nil) if valid_625673 != nil: - section.add "X-Amz-Credential", valid_625673 - var valid_625674 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625673 + var valid_625674 = header.getOrDefault("X-Amz-Date") valid_625674 = validateParameter(valid_625674, JString, required = false, default = nil) if valid_625674 != nil: - section.add "X-Amz-Security-Token", valid_625674 - var valid_625675 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625674 + var valid_625675 = header.getOrDefault("X-Amz-Credential") valid_625675 = validateParameter(valid_625675, JString, required = false, default = nil) if valid_625675 != nil: - section.add "X-Amz-Algorithm", valid_625675 - var valid_625676 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625675 + var valid_625676 = header.getOrDefault("X-Amz-Security-Token") valid_625676 = validateParameter(valid_625676, JString, required = false, default = nil) if valid_625676 != nil: - section.add "X-Amz-SignedHeaders", valid_625676 + section.add "X-Amz-Security-Token", valid_625676 + var valid_625677 = header.getOrDefault("X-Amz-Algorithm") + valid_625677 = validateParameter(valid_625677, JString, required = false, + default = nil) + if valid_625677 != nil: + section.add "X-Amz-Algorithm", valid_625677 + var valid_625678 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625678 = validateParameter(valid_625678, JString, required = false, + default = nil) + if valid_625678 != nil: + section.add "X-Amz-SignedHeaders", valid_625678 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -120527,35 +120554,35 @@ proc validate_PostRejectTransitGatewayPeeringAttachment_625666(path: JsonNode; ## TransitGatewayAttachmentId: JString (required) ## : The ID of the transit gateway peering attachment. section = newJObject() - var valid_625677 = formData.getOrDefault("DryRun") - valid_625677 = validateParameter(valid_625677, JBool, required = false, default = nil) - if valid_625677 != nil: - section.add "DryRun", valid_625677 + var valid_625679 = formData.getOrDefault("DryRun") + valid_625679 = validateParameter(valid_625679, JBool, required = false, default = nil) + if valid_625679 != nil: + section.add "DryRun", valid_625679 assert formData != nil, "formData argument is necessary due to required `TransitGatewayAttachmentId` field" - var valid_625678 = formData.getOrDefault("TransitGatewayAttachmentId") - valid_625678 = validateParameter(valid_625678, JString, required = true, + var valid_625680 = formData.getOrDefault("TransitGatewayAttachmentId") + valid_625680 = validateParameter(valid_625680, JString, required = true, default = nil) - if valid_625678 != nil: - section.add "TransitGatewayAttachmentId", valid_625678 + if valid_625680 != nil: + section.add "TransitGatewayAttachmentId", valid_625680 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625679: Call_PostRejectTransitGatewayPeeringAttachment_625665; +proc call*(call_625681: Call_PostRejectTransitGatewayPeeringAttachment_625667; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Rejects a transit gateway peering attachment request. ## - let valid = call_625679.validator(path, query, header, formData, body) - let scheme = call_625679.pickScheme + let valid = call_625681.validator(path, query, header, formData, body) + let scheme = call_625681.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625679.url(scheme.get, call_625679.host, call_625679.base, - call_625679.route, valid.getOrDefault("path"), + let url = call_625681.url(scheme.get, call_625681.host, call_625681.base, + call_625681.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625679, url, valid) + result = atozHook(call_625681, url, valid) -proc call*(call_625680: Call_PostRejectTransitGatewayPeeringAttachment_625665; +proc call*(call_625682: Call_PostRejectTransitGatewayPeeringAttachment_625667; TransitGatewayAttachmentId: string; DryRun: bool = false; Action: string = "RejectTransitGatewayPeeringAttachment"; Version: string = "2016-11-15"): Recallable = @@ -120567,25 +120594,25 @@ proc call*(call_625680: Call_PostRejectTransitGatewayPeeringAttachment_625665; ## Version: string (required) ## TransitGatewayAttachmentId: string (required) ## : The ID of the transit gateway peering attachment. - var query_625681 = newJObject() - var formData_625682 = newJObject() - add(formData_625682, "DryRun", newJBool(DryRun)) - add(query_625681, "Action", newJString(Action)) - add(query_625681, "Version", newJString(Version)) - add(formData_625682, "TransitGatewayAttachmentId", + var query_625683 = newJObject() + var formData_625684 = newJObject() + add(formData_625684, "DryRun", newJBool(DryRun)) + add(query_625683, "Action", newJString(Action)) + add(query_625683, "Version", newJString(Version)) + add(formData_625684, "TransitGatewayAttachmentId", newJString(TransitGatewayAttachmentId)) - result = call_625680.call(nil, query_625681, nil, formData_625682, nil) + result = call_625682.call(nil, query_625683, nil, formData_625684, nil) -var postRejectTransitGatewayPeeringAttachment* = Call_PostRejectTransitGatewayPeeringAttachment_625665( +var postRejectTransitGatewayPeeringAttachment* = Call_PostRejectTransitGatewayPeeringAttachment_625667( name: "postRejectTransitGatewayPeeringAttachment", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=RejectTransitGatewayPeeringAttachment", - validator: validate_PostRejectTransitGatewayPeeringAttachment_625666, - base: "/", url: url_PostRejectTransitGatewayPeeringAttachment_625667, + validator: validate_PostRejectTransitGatewayPeeringAttachment_625668, + base: "/", url: url_PostRejectTransitGatewayPeeringAttachment_625669, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetRejectTransitGatewayPeeringAttachment_625648 = ref object of OpenApiRestCall_610658 -proc url_GetRejectTransitGatewayPeeringAttachment_625650(protocol: Scheme; + Call_GetRejectTransitGatewayPeeringAttachment_625650 = ref object of OpenApiRestCall_610658 +proc url_GetRejectTransitGatewayPeeringAttachment_625652(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -120595,7 +120622,7 @@ proc url_GetRejectTransitGatewayPeeringAttachment_625650(protocol: Scheme; else: result.path = base & route -proc validate_GetRejectTransitGatewayPeeringAttachment_625649(path: JsonNode; +proc validate_GetRejectTransitGatewayPeeringAttachment_625651(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Rejects a transit gateway peering attachment request. ## @@ -120611,26 +120638,26 @@ proc validate_GetRejectTransitGatewayPeeringAttachment_625649(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625651 = query.getOrDefault("DryRun") - valid_625651 = validateParameter(valid_625651, JBool, required = false, default = nil) - if valid_625651 != nil: - section.add "DryRun", valid_625651 + var valid_625653 = query.getOrDefault("DryRun") + valid_625653 = validateParameter(valid_625653, JBool, required = false, default = nil) + if valid_625653 != nil: + section.add "DryRun", valid_625653 assert query != nil, "query argument is necessary due to required `TransitGatewayAttachmentId` field" - var valid_625652 = query.getOrDefault("TransitGatewayAttachmentId") - valid_625652 = validateParameter(valid_625652, JString, required = true, + var valid_625654 = query.getOrDefault("TransitGatewayAttachmentId") + valid_625654 = validateParameter(valid_625654, JString, required = true, default = nil) - if valid_625652 != nil: - section.add "TransitGatewayAttachmentId", valid_625652 - var valid_625653 = query.getOrDefault("Action") - valid_625653 = validateParameter(valid_625653, JString, required = true, default = newJString( + if valid_625654 != nil: + section.add "TransitGatewayAttachmentId", valid_625654 + var valid_625655 = query.getOrDefault("Action") + valid_625655 = validateParameter(valid_625655, JString, required = true, default = newJString( "RejectTransitGatewayPeeringAttachment")) - if valid_625653 != nil: - section.add "Action", valid_625653 - var valid_625654 = query.getOrDefault("Version") - valid_625654 = validateParameter(valid_625654, JString, required = true, + if valid_625655 != nil: + section.add "Action", valid_625655 + var valid_625656 = query.getOrDefault("Version") + valid_625656 = validateParameter(valid_625656, JString, required = true, default = newJString("2016-11-15")) - if valid_625654 != nil: - section.add "Version", valid_625654 + if valid_625656 != nil: + section.add "Version", valid_625656 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -120641,62 +120668,62 @@ proc validate_GetRejectTransitGatewayPeeringAttachment_625649(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625655 = header.getOrDefault("X-Amz-Signature") - valid_625655 = validateParameter(valid_625655, JString, required = false, - default = nil) - if valid_625655 != nil: - section.add "X-Amz-Signature", valid_625655 - var valid_625656 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625656 = validateParameter(valid_625656, JString, required = false, - default = nil) - if valid_625656 != nil: - section.add "X-Amz-Content-Sha256", valid_625656 - var valid_625657 = header.getOrDefault("X-Amz-Date") + var valid_625657 = header.getOrDefault("X-Amz-Signature") valid_625657 = validateParameter(valid_625657, JString, required = false, default = nil) if valid_625657 != nil: - section.add "X-Amz-Date", valid_625657 - var valid_625658 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625657 + var valid_625658 = header.getOrDefault("X-Amz-Content-Sha256") valid_625658 = validateParameter(valid_625658, JString, required = false, default = nil) if valid_625658 != nil: - section.add "X-Amz-Credential", valid_625658 - var valid_625659 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625658 + var valid_625659 = header.getOrDefault("X-Amz-Date") valid_625659 = validateParameter(valid_625659, JString, required = false, default = nil) if valid_625659 != nil: - section.add "X-Amz-Security-Token", valid_625659 - var valid_625660 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625659 + var valid_625660 = header.getOrDefault("X-Amz-Credential") valid_625660 = validateParameter(valid_625660, JString, required = false, default = nil) if valid_625660 != nil: - section.add "X-Amz-Algorithm", valid_625660 - var valid_625661 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625660 + var valid_625661 = header.getOrDefault("X-Amz-Security-Token") valid_625661 = validateParameter(valid_625661, JString, required = false, default = nil) if valid_625661 != nil: - section.add "X-Amz-SignedHeaders", valid_625661 + section.add "X-Amz-Security-Token", valid_625661 + var valid_625662 = header.getOrDefault("X-Amz-Algorithm") + valid_625662 = validateParameter(valid_625662, JString, required = false, + default = nil) + if valid_625662 != nil: + section.add "X-Amz-Algorithm", valid_625662 + var valid_625663 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625663 = validateParameter(valid_625663, JString, required = false, + default = nil) + if valid_625663 != nil: + section.add "X-Amz-SignedHeaders", valid_625663 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625662: Call_GetRejectTransitGatewayPeeringAttachment_625648; +proc call*(call_625664: Call_GetRejectTransitGatewayPeeringAttachment_625650; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Rejects a transit gateway peering attachment request. ## - let valid = call_625662.validator(path, query, header, formData, body) - let scheme = call_625662.pickScheme + let valid = call_625664.validator(path, query, header, formData, body) + let scheme = call_625664.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625662.url(scheme.get, call_625662.host, call_625662.base, - call_625662.route, valid.getOrDefault("path"), + let url = call_625664.url(scheme.get, call_625664.host, call_625664.base, + call_625664.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625662, url, valid) + result = atozHook(call_625664, url, valid) -proc call*(call_625663: Call_GetRejectTransitGatewayPeeringAttachment_625648; +proc call*(call_625665: Call_GetRejectTransitGatewayPeeringAttachment_625650; TransitGatewayAttachmentId: string; DryRun: bool = false; Action: string = "RejectTransitGatewayPeeringAttachment"; Version: string = "2016-11-15"): Recallable = @@ -120708,24 +120735,24 @@ proc call*(call_625663: Call_GetRejectTransitGatewayPeeringAttachment_625648; ## : The ID of the transit gateway peering attachment. ## Action: string (required) ## Version: string (required) - var query_625664 = newJObject() - add(query_625664, "DryRun", newJBool(DryRun)) - add(query_625664, "TransitGatewayAttachmentId", + var query_625666 = newJObject() + add(query_625666, "DryRun", newJBool(DryRun)) + add(query_625666, "TransitGatewayAttachmentId", newJString(TransitGatewayAttachmentId)) - add(query_625664, "Action", newJString(Action)) - add(query_625664, "Version", newJString(Version)) - result = call_625663.call(nil, query_625664, nil, nil, nil) + add(query_625666, "Action", newJString(Action)) + add(query_625666, "Version", newJString(Version)) + result = call_625665.call(nil, query_625666, nil, nil, nil) -var getRejectTransitGatewayPeeringAttachment* = Call_GetRejectTransitGatewayPeeringAttachment_625648( +var getRejectTransitGatewayPeeringAttachment* = Call_GetRejectTransitGatewayPeeringAttachment_625650( name: "getRejectTransitGatewayPeeringAttachment", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=RejectTransitGatewayPeeringAttachment", - validator: validate_GetRejectTransitGatewayPeeringAttachment_625649, - base: "/", url: url_GetRejectTransitGatewayPeeringAttachment_625650, + validator: validate_GetRejectTransitGatewayPeeringAttachment_625651, + base: "/", url: url_GetRejectTransitGatewayPeeringAttachment_625652, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostRejectTransitGatewayVpcAttachment_625700 = ref object of OpenApiRestCall_610658 -proc url_PostRejectTransitGatewayVpcAttachment_625702(protocol: Scheme; + Call_PostRejectTransitGatewayVpcAttachment_625702 = ref object of OpenApiRestCall_610658 +proc url_PostRejectTransitGatewayVpcAttachment_625704(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -120735,7 +120762,7 @@ proc url_PostRejectTransitGatewayVpcAttachment_625702(protocol: Scheme; else: result.path = base & route -proc validate_PostRejectTransitGatewayVpcAttachment_625701(path: JsonNode; +proc validate_PostRejectTransitGatewayVpcAttachment_625703(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Rejects a request to attach a VPC to a transit gateway.

    The VPC attachment must be in the pendingAcceptance state. Use DescribeTransitGatewayVpcAttachments to view your pending VPC attachment requests. Use AcceptTransitGatewayVpcAttachment to accept a VPC attachment request.

    ## @@ -120747,16 +120774,16 @@ proc validate_PostRejectTransitGatewayVpcAttachment_625701(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625703 = query.getOrDefault("Action") - valid_625703 = validateParameter(valid_625703, JString, required = true, default = newJString( + var valid_625705 = query.getOrDefault("Action") + valid_625705 = validateParameter(valid_625705, JString, required = true, default = newJString( "RejectTransitGatewayVpcAttachment")) - if valid_625703 != nil: - section.add "Action", valid_625703 - var valid_625704 = query.getOrDefault("Version") - valid_625704 = validateParameter(valid_625704, JString, required = true, + if valid_625705 != nil: + section.add "Action", valid_625705 + var valid_625706 = query.getOrDefault("Version") + valid_625706 = validateParameter(valid_625706, JString, required = true, default = newJString("2016-11-15")) - if valid_625704 != nil: - section.add "Version", valid_625704 + if valid_625706 != nil: + section.add "Version", valid_625706 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -120767,41 +120794,41 @@ proc validate_PostRejectTransitGatewayVpcAttachment_625701(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625705 = header.getOrDefault("X-Amz-Signature") - valid_625705 = validateParameter(valid_625705, JString, required = false, - default = nil) - if valid_625705 != nil: - section.add "X-Amz-Signature", valid_625705 - var valid_625706 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625706 = validateParameter(valid_625706, JString, required = false, - default = nil) - if valid_625706 != nil: - section.add "X-Amz-Content-Sha256", valid_625706 - var valid_625707 = header.getOrDefault("X-Amz-Date") + var valid_625707 = header.getOrDefault("X-Amz-Signature") valid_625707 = validateParameter(valid_625707, JString, required = false, default = nil) if valid_625707 != nil: - section.add "X-Amz-Date", valid_625707 - var valid_625708 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625707 + var valid_625708 = header.getOrDefault("X-Amz-Content-Sha256") valid_625708 = validateParameter(valid_625708, JString, required = false, default = nil) if valid_625708 != nil: - section.add "X-Amz-Credential", valid_625708 - var valid_625709 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625708 + var valid_625709 = header.getOrDefault("X-Amz-Date") valid_625709 = validateParameter(valid_625709, JString, required = false, default = nil) if valid_625709 != nil: - section.add "X-Amz-Security-Token", valid_625709 - var valid_625710 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625709 + var valid_625710 = header.getOrDefault("X-Amz-Credential") valid_625710 = validateParameter(valid_625710, JString, required = false, default = nil) if valid_625710 != nil: - section.add "X-Amz-Algorithm", valid_625710 - var valid_625711 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625710 + var valid_625711 = header.getOrDefault("X-Amz-Security-Token") valid_625711 = validateParameter(valid_625711, JString, required = false, default = nil) if valid_625711 != nil: - section.add "X-Amz-SignedHeaders", valid_625711 + section.add "X-Amz-Security-Token", valid_625711 + var valid_625712 = header.getOrDefault("X-Amz-Algorithm") + valid_625712 = validateParameter(valid_625712, JString, required = false, + default = nil) + if valid_625712 != nil: + section.add "X-Amz-Algorithm", valid_625712 + var valid_625713 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625713 = validateParameter(valid_625713, JString, required = false, + default = nil) + if valid_625713 != nil: + section.add "X-Amz-SignedHeaders", valid_625713 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -120809,35 +120836,35 @@ proc validate_PostRejectTransitGatewayVpcAttachment_625701(path: JsonNode; ## TransitGatewayAttachmentId: JString (required) ## : The ID of the attachment. section = newJObject() - var valid_625712 = formData.getOrDefault("DryRun") - valid_625712 = validateParameter(valid_625712, JBool, required = false, default = nil) - if valid_625712 != nil: - section.add "DryRun", valid_625712 + var valid_625714 = formData.getOrDefault("DryRun") + valid_625714 = validateParameter(valid_625714, JBool, required = false, default = nil) + if valid_625714 != nil: + section.add "DryRun", valid_625714 assert formData != nil, "formData argument is necessary due to required `TransitGatewayAttachmentId` field" - var valid_625713 = formData.getOrDefault("TransitGatewayAttachmentId") - valid_625713 = validateParameter(valid_625713, JString, required = true, + var valid_625715 = formData.getOrDefault("TransitGatewayAttachmentId") + valid_625715 = validateParameter(valid_625715, JString, required = true, default = nil) - if valid_625713 != nil: - section.add "TransitGatewayAttachmentId", valid_625713 + if valid_625715 != nil: + section.add "TransitGatewayAttachmentId", valid_625715 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625714: Call_PostRejectTransitGatewayVpcAttachment_625700; +proc call*(call_625716: Call_PostRejectTransitGatewayVpcAttachment_625702; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Rejects a request to attach a VPC to a transit gateway.

    The VPC attachment must be in the pendingAcceptance state. Use DescribeTransitGatewayVpcAttachments to view your pending VPC attachment requests. Use AcceptTransitGatewayVpcAttachment to accept a VPC attachment request.

    ## - let valid = call_625714.validator(path, query, header, formData, body) - let scheme = call_625714.pickScheme + let valid = call_625716.validator(path, query, header, formData, body) + let scheme = call_625716.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625714.url(scheme.get, call_625714.host, call_625714.base, - call_625714.route, valid.getOrDefault("path"), + let url = call_625716.url(scheme.get, call_625716.host, call_625716.base, + call_625716.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625714, url, valid) + result = atozHook(call_625716, url, valid) -proc call*(call_625715: Call_PostRejectTransitGatewayVpcAttachment_625700; +proc call*(call_625717: Call_PostRejectTransitGatewayVpcAttachment_625702; TransitGatewayAttachmentId: string; DryRun: bool = false; Action: string = "RejectTransitGatewayVpcAttachment"; Version: string = "2016-11-15"): Recallable = @@ -120849,25 +120876,25 @@ proc call*(call_625715: Call_PostRejectTransitGatewayVpcAttachment_625700; ## Version: string (required) ## TransitGatewayAttachmentId: string (required) ## : The ID of the attachment. - var query_625716 = newJObject() - var formData_625717 = newJObject() - add(formData_625717, "DryRun", newJBool(DryRun)) - add(query_625716, "Action", newJString(Action)) - add(query_625716, "Version", newJString(Version)) - add(formData_625717, "TransitGatewayAttachmentId", + var query_625718 = newJObject() + var formData_625719 = newJObject() + add(formData_625719, "DryRun", newJBool(DryRun)) + add(query_625718, "Action", newJString(Action)) + add(query_625718, "Version", newJString(Version)) + add(formData_625719, "TransitGatewayAttachmentId", newJString(TransitGatewayAttachmentId)) - result = call_625715.call(nil, query_625716, nil, formData_625717, nil) + result = call_625717.call(nil, query_625718, nil, formData_625719, nil) -var postRejectTransitGatewayVpcAttachment* = Call_PostRejectTransitGatewayVpcAttachment_625700( +var postRejectTransitGatewayVpcAttachment* = Call_PostRejectTransitGatewayVpcAttachment_625702( name: "postRejectTransitGatewayVpcAttachment", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=RejectTransitGatewayVpcAttachment", - validator: validate_PostRejectTransitGatewayVpcAttachment_625701, base: "/", - url: url_PostRejectTransitGatewayVpcAttachment_625702, + validator: validate_PostRejectTransitGatewayVpcAttachment_625703, base: "/", + url: url_PostRejectTransitGatewayVpcAttachment_625704, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetRejectTransitGatewayVpcAttachment_625683 = ref object of OpenApiRestCall_610658 -proc url_GetRejectTransitGatewayVpcAttachment_625685(protocol: Scheme; + Call_GetRejectTransitGatewayVpcAttachment_625685 = ref object of OpenApiRestCall_610658 +proc url_GetRejectTransitGatewayVpcAttachment_625687(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -120877,7 +120904,7 @@ proc url_GetRejectTransitGatewayVpcAttachment_625685(protocol: Scheme; else: result.path = base & route -proc validate_GetRejectTransitGatewayVpcAttachment_625684(path: JsonNode; +proc validate_GetRejectTransitGatewayVpcAttachment_625686(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Rejects a request to attach a VPC to a transit gateway.

    The VPC attachment must be in the pendingAcceptance state. Use DescribeTransitGatewayVpcAttachments to view your pending VPC attachment requests. Use AcceptTransitGatewayVpcAttachment to accept a VPC attachment request.

    ## @@ -120893,26 +120920,26 @@ proc validate_GetRejectTransitGatewayVpcAttachment_625684(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625686 = query.getOrDefault("DryRun") - valid_625686 = validateParameter(valid_625686, JBool, required = false, default = nil) - if valid_625686 != nil: - section.add "DryRun", valid_625686 + var valid_625688 = query.getOrDefault("DryRun") + valid_625688 = validateParameter(valid_625688, JBool, required = false, default = nil) + if valid_625688 != nil: + section.add "DryRun", valid_625688 assert query != nil, "query argument is necessary due to required `TransitGatewayAttachmentId` field" - var valid_625687 = query.getOrDefault("TransitGatewayAttachmentId") - valid_625687 = validateParameter(valid_625687, JString, required = true, + var valid_625689 = query.getOrDefault("TransitGatewayAttachmentId") + valid_625689 = validateParameter(valid_625689, JString, required = true, default = nil) - if valid_625687 != nil: - section.add "TransitGatewayAttachmentId", valid_625687 - var valid_625688 = query.getOrDefault("Action") - valid_625688 = validateParameter(valid_625688, JString, required = true, default = newJString( + if valid_625689 != nil: + section.add "TransitGatewayAttachmentId", valid_625689 + var valid_625690 = query.getOrDefault("Action") + valid_625690 = validateParameter(valid_625690, JString, required = true, default = newJString( "RejectTransitGatewayVpcAttachment")) - if valid_625688 != nil: - section.add "Action", valid_625688 - var valid_625689 = query.getOrDefault("Version") - valid_625689 = validateParameter(valid_625689, JString, required = true, + if valid_625690 != nil: + section.add "Action", valid_625690 + var valid_625691 = query.getOrDefault("Version") + valid_625691 = validateParameter(valid_625691, JString, required = true, default = newJString("2016-11-15")) - if valid_625689 != nil: - section.add "Version", valid_625689 + if valid_625691 != nil: + section.add "Version", valid_625691 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -120923,62 +120950,62 @@ proc validate_GetRejectTransitGatewayVpcAttachment_625684(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625690 = header.getOrDefault("X-Amz-Signature") - valid_625690 = validateParameter(valid_625690, JString, required = false, - default = nil) - if valid_625690 != nil: - section.add "X-Amz-Signature", valid_625690 - var valid_625691 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625691 = validateParameter(valid_625691, JString, required = false, - default = nil) - if valid_625691 != nil: - section.add "X-Amz-Content-Sha256", valid_625691 - var valid_625692 = header.getOrDefault("X-Amz-Date") + var valid_625692 = header.getOrDefault("X-Amz-Signature") valid_625692 = validateParameter(valid_625692, JString, required = false, default = nil) if valid_625692 != nil: - section.add "X-Amz-Date", valid_625692 - var valid_625693 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625692 + var valid_625693 = header.getOrDefault("X-Amz-Content-Sha256") valid_625693 = validateParameter(valid_625693, JString, required = false, default = nil) if valid_625693 != nil: - section.add "X-Amz-Credential", valid_625693 - var valid_625694 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625693 + var valid_625694 = header.getOrDefault("X-Amz-Date") valid_625694 = validateParameter(valid_625694, JString, required = false, default = nil) if valid_625694 != nil: - section.add "X-Amz-Security-Token", valid_625694 - var valid_625695 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625694 + var valid_625695 = header.getOrDefault("X-Amz-Credential") valid_625695 = validateParameter(valid_625695, JString, required = false, default = nil) if valid_625695 != nil: - section.add "X-Amz-Algorithm", valid_625695 - var valid_625696 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625695 + var valid_625696 = header.getOrDefault("X-Amz-Security-Token") valid_625696 = validateParameter(valid_625696, JString, required = false, default = nil) if valid_625696 != nil: - section.add "X-Amz-SignedHeaders", valid_625696 + section.add "X-Amz-Security-Token", valid_625696 + var valid_625697 = header.getOrDefault("X-Amz-Algorithm") + valid_625697 = validateParameter(valid_625697, JString, required = false, + default = nil) + if valid_625697 != nil: + section.add "X-Amz-Algorithm", valid_625697 + var valid_625698 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625698 = validateParameter(valid_625698, JString, required = false, + default = nil) + if valid_625698 != nil: + section.add "X-Amz-SignedHeaders", valid_625698 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625697: Call_GetRejectTransitGatewayVpcAttachment_625683; +proc call*(call_625699: Call_GetRejectTransitGatewayVpcAttachment_625685; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Rejects a request to attach a VPC to a transit gateway.

    The VPC attachment must be in the pendingAcceptance state. Use DescribeTransitGatewayVpcAttachments to view your pending VPC attachment requests. Use AcceptTransitGatewayVpcAttachment to accept a VPC attachment request.

    ## - let valid = call_625697.validator(path, query, header, formData, body) - let scheme = call_625697.pickScheme + let valid = call_625699.validator(path, query, header, formData, body) + let scheme = call_625699.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625697.url(scheme.get, call_625697.host, call_625697.base, - call_625697.route, valid.getOrDefault("path"), + let url = call_625699.url(scheme.get, call_625699.host, call_625699.base, + call_625699.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625697, url, valid) + result = atozHook(call_625699, url, valid) -proc call*(call_625698: Call_GetRejectTransitGatewayVpcAttachment_625683; +proc call*(call_625700: Call_GetRejectTransitGatewayVpcAttachment_625685; TransitGatewayAttachmentId: string; DryRun: bool = false; Action: string = "RejectTransitGatewayVpcAttachment"; Version: string = "2016-11-15"): Recallable = @@ -120990,24 +121017,24 @@ proc call*(call_625698: Call_GetRejectTransitGatewayVpcAttachment_625683; ## : The ID of the attachment. ## Action: string (required) ## Version: string (required) - var query_625699 = newJObject() - add(query_625699, "DryRun", newJBool(DryRun)) - add(query_625699, "TransitGatewayAttachmentId", + var query_625701 = newJObject() + add(query_625701, "DryRun", newJBool(DryRun)) + add(query_625701, "TransitGatewayAttachmentId", newJString(TransitGatewayAttachmentId)) - add(query_625699, "Action", newJString(Action)) - add(query_625699, "Version", newJString(Version)) - result = call_625698.call(nil, query_625699, nil, nil, nil) + add(query_625701, "Action", newJString(Action)) + add(query_625701, "Version", newJString(Version)) + result = call_625700.call(nil, query_625701, nil, nil, nil) -var getRejectTransitGatewayVpcAttachment* = Call_GetRejectTransitGatewayVpcAttachment_625683( +var getRejectTransitGatewayVpcAttachment* = Call_GetRejectTransitGatewayVpcAttachment_625685( name: "getRejectTransitGatewayVpcAttachment", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=RejectTransitGatewayVpcAttachment", - validator: validate_GetRejectTransitGatewayVpcAttachment_625684, base: "/", - url: url_GetRejectTransitGatewayVpcAttachment_625685, + validator: validate_GetRejectTransitGatewayVpcAttachment_625686, base: "/", + url: url_GetRejectTransitGatewayVpcAttachment_625687, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostRejectVpcEndpointConnections_625736 = ref object of OpenApiRestCall_610658 -proc url_PostRejectVpcEndpointConnections_625738(protocol: Scheme; host: string; + Call_PostRejectVpcEndpointConnections_625738 = ref object of OpenApiRestCall_610658 +proc url_PostRejectVpcEndpointConnections_625740(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -121017,7 +121044,7 @@ proc url_PostRejectVpcEndpointConnections_625738(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostRejectVpcEndpointConnections_625737(path: JsonNode; +proc validate_PostRejectVpcEndpointConnections_625739(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Rejects one or more VPC endpoint connection requests to your VPC endpoint service. ## @@ -121029,16 +121056,16 @@ proc validate_PostRejectVpcEndpointConnections_625737(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625739 = query.getOrDefault("Action") - valid_625739 = validateParameter(valid_625739, JString, required = true, default = newJString( + var valid_625741 = query.getOrDefault("Action") + valid_625741 = validateParameter(valid_625741, JString, required = true, default = newJString( "RejectVpcEndpointConnections")) - if valid_625739 != nil: - section.add "Action", valid_625739 - var valid_625740 = query.getOrDefault("Version") - valid_625740 = validateParameter(valid_625740, JString, required = true, + if valid_625741 != nil: + section.add "Action", valid_625741 + var valid_625742 = query.getOrDefault("Version") + valid_625742 = validateParameter(valid_625742, JString, required = true, default = newJString("2016-11-15")) - if valid_625740 != nil: - section.add "Version", valid_625740 + if valid_625742 != nil: + section.add "Version", valid_625742 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -121049,41 +121076,41 @@ proc validate_PostRejectVpcEndpointConnections_625737(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625741 = header.getOrDefault("X-Amz-Signature") - valid_625741 = validateParameter(valid_625741, JString, required = false, - default = nil) - if valid_625741 != nil: - section.add "X-Amz-Signature", valid_625741 - var valid_625742 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625742 = validateParameter(valid_625742, JString, required = false, - default = nil) - if valid_625742 != nil: - section.add "X-Amz-Content-Sha256", valid_625742 - var valid_625743 = header.getOrDefault("X-Amz-Date") + var valid_625743 = header.getOrDefault("X-Amz-Signature") valid_625743 = validateParameter(valid_625743, JString, required = false, default = nil) if valid_625743 != nil: - section.add "X-Amz-Date", valid_625743 - var valid_625744 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625743 + var valid_625744 = header.getOrDefault("X-Amz-Content-Sha256") valid_625744 = validateParameter(valid_625744, JString, required = false, default = nil) if valid_625744 != nil: - section.add "X-Amz-Credential", valid_625744 - var valid_625745 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625744 + var valid_625745 = header.getOrDefault("X-Amz-Date") valid_625745 = validateParameter(valid_625745, JString, required = false, default = nil) if valid_625745 != nil: - section.add "X-Amz-Security-Token", valid_625745 - var valid_625746 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625745 + var valid_625746 = header.getOrDefault("X-Amz-Credential") valid_625746 = validateParameter(valid_625746, JString, required = false, default = nil) if valid_625746 != nil: - section.add "X-Amz-Algorithm", valid_625746 - var valid_625747 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625746 + var valid_625747 = header.getOrDefault("X-Amz-Security-Token") valid_625747 = validateParameter(valid_625747, JString, required = false, default = nil) if valid_625747 != nil: - section.add "X-Amz-SignedHeaders", valid_625747 + section.add "X-Amz-Security-Token", valid_625747 + var valid_625748 = header.getOrDefault("X-Amz-Algorithm") + valid_625748 = validateParameter(valid_625748, JString, required = false, + default = nil) + if valid_625748 != nil: + section.add "X-Amz-Algorithm", valid_625748 + var valid_625749 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625749 = validateParameter(valid_625749, JString, required = false, + default = nil) + if valid_625749 != nil: + section.add "X-Amz-SignedHeaders", valid_625749 result.add "header", section ## parameters in `formData` object: ## ServiceId: JString (required) @@ -121095,38 +121122,38 @@ proc validate_PostRejectVpcEndpointConnections_625737(path: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `ServiceId` field" - var valid_625748 = formData.getOrDefault("ServiceId") - valid_625748 = validateParameter(valid_625748, JString, required = true, + var valid_625750 = formData.getOrDefault("ServiceId") + valid_625750 = validateParameter(valid_625750, JString, required = true, default = nil) - if valid_625748 != nil: - section.add "ServiceId", valid_625748 - var valid_625749 = formData.getOrDefault("DryRun") - valid_625749 = validateParameter(valid_625749, JBool, required = false, default = nil) - if valid_625749 != nil: - section.add "DryRun", valid_625749 - var valid_625750 = formData.getOrDefault("VpcEndpointId") - valid_625750 = validateParameter(valid_625750, JArray, required = true, default = nil) if valid_625750 != nil: - section.add "VpcEndpointId", valid_625750 + section.add "ServiceId", valid_625750 + var valid_625751 = formData.getOrDefault("DryRun") + valid_625751 = validateParameter(valid_625751, JBool, required = false, default = nil) + if valid_625751 != nil: + section.add "DryRun", valid_625751 + var valid_625752 = formData.getOrDefault("VpcEndpointId") + valid_625752 = validateParameter(valid_625752, JArray, required = true, default = nil) + if valid_625752 != nil: + section.add "VpcEndpointId", valid_625752 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625751: Call_PostRejectVpcEndpointConnections_625736; +proc call*(call_625753: Call_PostRejectVpcEndpointConnections_625738; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Rejects one or more VPC endpoint connection requests to your VPC endpoint service. ## - let valid = call_625751.validator(path, query, header, formData, body) - let scheme = call_625751.pickScheme + let valid = call_625753.validator(path, query, header, formData, body) + let scheme = call_625753.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625751.url(scheme.get, call_625751.host, call_625751.base, - call_625751.route, valid.getOrDefault("path"), + let url = call_625753.url(scheme.get, call_625753.host, call_625753.base, + call_625753.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625751, url, valid) + result = atozHook(call_625753, url, valid) -proc call*(call_625752: Call_PostRejectVpcEndpointConnections_625736; +proc call*(call_625754: Call_PostRejectVpcEndpointConnections_625738; ServiceId: string; VpcEndpointId: JsonNode; DryRun: bool = false; Action: string = "RejectVpcEndpointConnections"; Version: string = "2016-11-15"): Recallable = @@ -121140,25 +121167,25 @@ proc call*(call_625752: Call_PostRejectVpcEndpointConnections_625736; ## Version: string (required) ## VpcEndpointId: JArray (required) ## : The IDs of one or more VPC endpoints. - var query_625753 = newJObject() - var formData_625754 = newJObject() - add(formData_625754, "ServiceId", newJString(ServiceId)) - add(formData_625754, "DryRun", newJBool(DryRun)) - add(query_625753, "Action", newJString(Action)) - add(query_625753, "Version", newJString(Version)) + var query_625755 = newJObject() + var formData_625756 = newJObject() + add(formData_625756, "ServiceId", newJString(ServiceId)) + add(formData_625756, "DryRun", newJBool(DryRun)) + add(query_625755, "Action", newJString(Action)) + add(query_625755, "Version", newJString(Version)) if VpcEndpointId != nil: - formData_625754.add "VpcEndpointId", VpcEndpointId - result = call_625752.call(nil, query_625753, nil, formData_625754, nil) + formData_625756.add "VpcEndpointId", VpcEndpointId + result = call_625754.call(nil, query_625755, nil, formData_625756, nil) -var postRejectVpcEndpointConnections* = Call_PostRejectVpcEndpointConnections_625736( +var postRejectVpcEndpointConnections* = Call_PostRejectVpcEndpointConnections_625738( name: "postRejectVpcEndpointConnections", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=RejectVpcEndpointConnections", - validator: validate_PostRejectVpcEndpointConnections_625737, base: "/", - url: url_PostRejectVpcEndpointConnections_625738, + validator: validate_PostRejectVpcEndpointConnections_625739, base: "/", + url: url_PostRejectVpcEndpointConnections_625740, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetRejectVpcEndpointConnections_625718 = ref object of OpenApiRestCall_610658 -proc url_GetRejectVpcEndpointConnections_625720(protocol: Scheme; host: string; + Call_GetRejectVpcEndpointConnections_625720 = ref object of OpenApiRestCall_610658 +proc url_GetRejectVpcEndpointConnections_625722(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -121168,7 +121195,7 @@ proc url_GetRejectVpcEndpointConnections_625720(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetRejectVpcEndpointConnections_625719(path: JsonNode; +proc validate_GetRejectVpcEndpointConnections_625721(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Rejects one or more VPC endpoint connection requests to your VPC endpoint service. ## @@ -121186,31 +121213,31 @@ proc validate_GetRejectVpcEndpointConnections_625719(path: JsonNode; ## : The IDs of one or more VPC endpoints. ## Version: JString (required) section = newJObject() - var valid_625721 = query.getOrDefault("DryRun") - valid_625721 = validateParameter(valid_625721, JBool, required = false, default = nil) - if valid_625721 != nil: - section.add "DryRun", valid_625721 + var valid_625723 = query.getOrDefault("DryRun") + valid_625723 = validateParameter(valid_625723, JBool, required = false, default = nil) + if valid_625723 != nil: + section.add "DryRun", valid_625723 assert query != nil, "query argument is necessary due to required `ServiceId` field" - var valid_625722 = query.getOrDefault("ServiceId") - valid_625722 = validateParameter(valid_625722, JString, required = true, + var valid_625724 = query.getOrDefault("ServiceId") + valid_625724 = validateParameter(valid_625724, JString, required = true, default = nil) - if valid_625722 != nil: - section.add "ServiceId", valid_625722 - var valid_625723 = query.getOrDefault("Action") - valid_625723 = validateParameter(valid_625723, JString, required = true, default = newJString( - "RejectVpcEndpointConnections")) - if valid_625723 != nil: - section.add "Action", valid_625723 - var valid_625724 = query.getOrDefault("VpcEndpointId") - valid_625724 = validateParameter(valid_625724, JArray, required = true, default = nil) if valid_625724 != nil: - section.add "VpcEndpointId", valid_625724 - var valid_625725 = query.getOrDefault("Version") - valid_625725 = validateParameter(valid_625725, JString, required = true, - default = newJString("2016-11-15")) + section.add "ServiceId", valid_625724 + var valid_625725 = query.getOrDefault("Action") + valid_625725 = validateParameter(valid_625725, JString, required = true, default = newJString( + "RejectVpcEndpointConnections")) if valid_625725 != nil: - section.add "Version", valid_625725 + section.add "Action", valid_625725 + var valid_625726 = query.getOrDefault("VpcEndpointId") + valid_625726 = validateParameter(valid_625726, JArray, required = true, default = nil) + if valid_625726 != nil: + section.add "VpcEndpointId", valid_625726 + var valid_625727 = query.getOrDefault("Version") + valid_625727 = validateParameter(valid_625727, JString, required = true, + default = newJString("2016-11-15")) + if valid_625727 != nil: + section.add "Version", valid_625727 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -121221,62 +121248,62 @@ proc validate_GetRejectVpcEndpointConnections_625719(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625726 = header.getOrDefault("X-Amz-Signature") - valid_625726 = validateParameter(valid_625726, JString, required = false, - default = nil) - if valid_625726 != nil: - section.add "X-Amz-Signature", valid_625726 - var valid_625727 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625727 = validateParameter(valid_625727, JString, required = false, - default = nil) - if valid_625727 != nil: - section.add "X-Amz-Content-Sha256", valid_625727 - var valid_625728 = header.getOrDefault("X-Amz-Date") + var valid_625728 = header.getOrDefault("X-Amz-Signature") valid_625728 = validateParameter(valid_625728, JString, required = false, default = nil) if valid_625728 != nil: - section.add "X-Amz-Date", valid_625728 - var valid_625729 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625728 + var valid_625729 = header.getOrDefault("X-Amz-Content-Sha256") valid_625729 = validateParameter(valid_625729, JString, required = false, default = nil) if valid_625729 != nil: - section.add "X-Amz-Credential", valid_625729 - var valid_625730 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625729 + var valid_625730 = header.getOrDefault("X-Amz-Date") valid_625730 = validateParameter(valid_625730, JString, required = false, default = nil) if valid_625730 != nil: - section.add "X-Amz-Security-Token", valid_625730 - var valid_625731 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625730 + var valid_625731 = header.getOrDefault("X-Amz-Credential") valid_625731 = validateParameter(valid_625731, JString, required = false, default = nil) if valid_625731 != nil: - section.add "X-Amz-Algorithm", valid_625731 - var valid_625732 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625731 + var valid_625732 = header.getOrDefault("X-Amz-Security-Token") valid_625732 = validateParameter(valid_625732, JString, required = false, default = nil) if valid_625732 != nil: - section.add "X-Amz-SignedHeaders", valid_625732 + section.add "X-Amz-Security-Token", valid_625732 + var valid_625733 = header.getOrDefault("X-Amz-Algorithm") + valid_625733 = validateParameter(valid_625733, JString, required = false, + default = nil) + if valid_625733 != nil: + section.add "X-Amz-Algorithm", valid_625733 + var valid_625734 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625734 = validateParameter(valid_625734, JString, required = false, + default = nil) + if valid_625734 != nil: + section.add "X-Amz-SignedHeaders", valid_625734 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625733: Call_GetRejectVpcEndpointConnections_625718; +proc call*(call_625735: Call_GetRejectVpcEndpointConnections_625720; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Rejects one or more VPC endpoint connection requests to your VPC endpoint service. ## - let valid = call_625733.validator(path, query, header, formData, body) - let scheme = call_625733.pickScheme + let valid = call_625735.validator(path, query, header, formData, body) + let scheme = call_625735.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625733.url(scheme.get, call_625733.host, call_625733.base, - call_625733.route, valid.getOrDefault("path"), + let url = call_625735.url(scheme.get, call_625735.host, call_625735.base, + call_625735.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625733, url, valid) + result = atozHook(call_625735, url, valid) -proc call*(call_625734: Call_GetRejectVpcEndpointConnections_625718; +proc call*(call_625736: Call_GetRejectVpcEndpointConnections_625720; ServiceId: string; VpcEndpointId: JsonNode; DryRun: bool = false; Action: string = "RejectVpcEndpointConnections"; Version: string = "2016-11-15"): Recallable = @@ -121290,24 +121317,24 @@ proc call*(call_625734: Call_GetRejectVpcEndpointConnections_625718; ## VpcEndpointId: JArray (required) ## : The IDs of one or more VPC endpoints. ## Version: string (required) - var query_625735 = newJObject() - add(query_625735, "DryRun", newJBool(DryRun)) - add(query_625735, "ServiceId", newJString(ServiceId)) - add(query_625735, "Action", newJString(Action)) + var query_625737 = newJObject() + add(query_625737, "DryRun", newJBool(DryRun)) + add(query_625737, "ServiceId", newJString(ServiceId)) + add(query_625737, "Action", newJString(Action)) if VpcEndpointId != nil: - query_625735.add "VpcEndpointId", VpcEndpointId - add(query_625735, "Version", newJString(Version)) - result = call_625734.call(nil, query_625735, nil, nil, nil) + query_625737.add "VpcEndpointId", VpcEndpointId + add(query_625737, "Version", newJString(Version)) + result = call_625736.call(nil, query_625737, nil, nil, nil) -var getRejectVpcEndpointConnections* = Call_GetRejectVpcEndpointConnections_625718( +var getRejectVpcEndpointConnections* = Call_GetRejectVpcEndpointConnections_625720( name: "getRejectVpcEndpointConnections", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=RejectVpcEndpointConnections", - validator: validate_GetRejectVpcEndpointConnections_625719, base: "/", - url: url_GetRejectVpcEndpointConnections_625720, + validator: validate_GetRejectVpcEndpointConnections_625721, base: "/", + url: url_GetRejectVpcEndpointConnections_625722, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostRejectVpcPeeringConnection_625772 = ref object of OpenApiRestCall_610658 -proc url_PostRejectVpcPeeringConnection_625774(protocol: Scheme; host: string; + Call_PostRejectVpcPeeringConnection_625774 = ref object of OpenApiRestCall_610658 +proc url_PostRejectVpcPeeringConnection_625776(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -121317,7 +121344,7 @@ proc url_PostRejectVpcPeeringConnection_625774(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostRejectVpcPeeringConnection_625773(path: JsonNode; +proc validate_PostRejectVpcPeeringConnection_625775(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Rejects a VPC peering connection request. The VPC peering connection must be in the pending-acceptance state. Use the DescribeVpcPeeringConnections request to view your outstanding VPC peering connection requests. To delete an active VPC peering connection, or to delete a VPC peering connection request that you initiated, use DeleteVpcPeeringConnection. ## @@ -121329,16 +121356,16 @@ proc validate_PostRejectVpcPeeringConnection_625773(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625775 = query.getOrDefault("Action") - valid_625775 = validateParameter(valid_625775, JString, required = true, default = newJString( + var valid_625777 = query.getOrDefault("Action") + valid_625777 = validateParameter(valid_625777, JString, required = true, default = newJString( "RejectVpcPeeringConnection")) - if valid_625775 != nil: - section.add "Action", valid_625775 - var valid_625776 = query.getOrDefault("Version") - valid_625776 = validateParameter(valid_625776, JString, required = true, + if valid_625777 != nil: + section.add "Action", valid_625777 + var valid_625778 = query.getOrDefault("Version") + valid_625778 = validateParameter(valid_625778, JString, required = true, default = newJString("2016-11-15")) - if valid_625776 != nil: - section.add "Version", valid_625776 + if valid_625778 != nil: + section.add "Version", valid_625778 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -121349,41 +121376,41 @@ proc validate_PostRejectVpcPeeringConnection_625773(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625777 = header.getOrDefault("X-Amz-Signature") - valid_625777 = validateParameter(valid_625777, JString, required = false, - default = nil) - if valid_625777 != nil: - section.add "X-Amz-Signature", valid_625777 - var valid_625778 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625778 = validateParameter(valid_625778, JString, required = false, - default = nil) - if valid_625778 != nil: - section.add "X-Amz-Content-Sha256", valid_625778 - var valid_625779 = header.getOrDefault("X-Amz-Date") + var valid_625779 = header.getOrDefault("X-Amz-Signature") valid_625779 = validateParameter(valid_625779, JString, required = false, default = nil) if valid_625779 != nil: - section.add "X-Amz-Date", valid_625779 - var valid_625780 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625779 + var valid_625780 = header.getOrDefault("X-Amz-Content-Sha256") valid_625780 = validateParameter(valid_625780, JString, required = false, default = nil) if valid_625780 != nil: - section.add "X-Amz-Credential", valid_625780 - var valid_625781 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625780 + var valid_625781 = header.getOrDefault("X-Amz-Date") valid_625781 = validateParameter(valid_625781, JString, required = false, default = nil) if valid_625781 != nil: - section.add "X-Amz-Security-Token", valid_625781 - var valid_625782 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625781 + var valid_625782 = header.getOrDefault("X-Amz-Credential") valid_625782 = validateParameter(valid_625782, JString, required = false, default = nil) if valid_625782 != nil: - section.add "X-Amz-Algorithm", valid_625782 - var valid_625783 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625782 + var valid_625783 = header.getOrDefault("X-Amz-Security-Token") valid_625783 = validateParameter(valid_625783, JString, required = false, default = nil) if valid_625783 != nil: - section.add "X-Amz-SignedHeaders", valid_625783 + section.add "X-Amz-Security-Token", valid_625783 + var valid_625784 = header.getOrDefault("X-Amz-Algorithm") + valid_625784 = validateParameter(valid_625784, JString, required = false, + default = nil) + if valid_625784 != nil: + section.add "X-Amz-Algorithm", valid_625784 + var valid_625785 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625785 = validateParameter(valid_625785, JString, required = false, + default = nil) + if valid_625785 != nil: + section.add "X-Amz-SignedHeaders", valid_625785 result.add "header", section ## parameters in `formData` object: ## VpcPeeringConnectionId: JString (required) @@ -121392,33 +121419,33 @@ proc validate_PostRejectVpcPeeringConnection_625773(path: JsonNode; ## : 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. section = newJObject() assert formData != nil, "formData argument is necessary due to required `VpcPeeringConnectionId` field" - var valid_625784 = formData.getOrDefault("VpcPeeringConnectionId") - valid_625784 = validateParameter(valid_625784, JString, required = true, + var valid_625786 = formData.getOrDefault("VpcPeeringConnectionId") + valid_625786 = validateParameter(valid_625786, JString, required = true, default = nil) - if valid_625784 != nil: - section.add "VpcPeeringConnectionId", valid_625784 - var valid_625785 = formData.getOrDefault("DryRun") - valid_625785 = validateParameter(valid_625785, JBool, required = false, default = nil) - if valid_625785 != nil: - section.add "DryRun", valid_625785 + if valid_625786 != nil: + section.add "VpcPeeringConnectionId", valid_625786 + var valid_625787 = formData.getOrDefault("DryRun") + valid_625787 = validateParameter(valid_625787, JBool, required = false, default = nil) + if valid_625787 != nil: + section.add "DryRun", valid_625787 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625786: Call_PostRejectVpcPeeringConnection_625772; path: JsonNode; +proc call*(call_625788: Call_PostRejectVpcPeeringConnection_625774; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Rejects a VPC peering connection request. The VPC peering connection must be in the pending-acceptance state. Use the DescribeVpcPeeringConnections request to view your outstanding VPC peering connection requests. To delete an active VPC peering connection, or to delete a VPC peering connection request that you initiated, use DeleteVpcPeeringConnection. ## - let valid = call_625786.validator(path, query, header, formData, body) - let scheme = call_625786.pickScheme + let valid = call_625788.validator(path, query, header, formData, body) + let scheme = call_625788.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625786.url(scheme.get, call_625786.host, call_625786.base, - call_625786.route, valid.getOrDefault("path"), + let url = call_625788.url(scheme.get, call_625788.host, call_625788.base, + call_625788.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625786, url, valid) + result = atozHook(call_625788, url, valid) -proc call*(call_625787: Call_PostRejectVpcPeeringConnection_625772; +proc call*(call_625789: Call_PostRejectVpcPeeringConnection_625774; VpcPeeringConnectionId: string; DryRun: bool = false; Action: string = "RejectVpcPeeringConnection"; Version: string = "2016-11-15"): Recallable = @@ -121430,24 +121457,24 @@ proc call*(call_625787: Call_PostRejectVpcPeeringConnection_625772; ## : 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. ## Action: string (required) ## Version: string (required) - var query_625788 = newJObject() - var formData_625789 = newJObject() - add(formData_625789, "VpcPeeringConnectionId", + var query_625790 = newJObject() + var formData_625791 = newJObject() + add(formData_625791, "VpcPeeringConnectionId", newJString(VpcPeeringConnectionId)) - add(formData_625789, "DryRun", newJBool(DryRun)) - add(query_625788, "Action", newJString(Action)) - add(query_625788, "Version", newJString(Version)) - result = call_625787.call(nil, query_625788, nil, formData_625789, nil) + add(formData_625791, "DryRun", newJBool(DryRun)) + add(query_625790, "Action", newJString(Action)) + add(query_625790, "Version", newJString(Version)) + result = call_625789.call(nil, query_625790, nil, formData_625791, nil) -var postRejectVpcPeeringConnection* = Call_PostRejectVpcPeeringConnection_625772( +var postRejectVpcPeeringConnection* = Call_PostRejectVpcPeeringConnection_625774( name: "postRejectVpcPeeringConnection", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=RejectVpcPeeringConnection", - validator: validate_PostRejectVpcPeeringConnection_625773, base: "/", - url: url_PostRejectVpcPeeringConnection_625774, + validator: validate_PostRejectVpcPeeringConnection_625775, base: "/", + url: url_PostRejectVpcPeeringConnection_625776, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetRejectVpcPeeringConnection_625755 = ref object of OpenApiRestCall_610658 -proc url_GetRejectVpcPeeringConnection_625757(protocol: Scheme; host: string; + Call_GetRejectVpcPeeringConnection_625757 = ref object of OpenApiRestCall_610658 +proc url_GetRejectVpcPeeringConnection_625759(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -121457,7 +121484,7 @@ proc url_GetRejectVpcPeeringConnection_625757(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetRejectVpcPeeringConnection_625756(path: JsonNode; query: JsonNode; +proc validate_GetRejectVpcPeeringConnection_625758(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Rejects a VPC peering connection request. The VPC peering connection must be in the pending-acceptance state. Use the DescribeVpcPeeringConnections request to view your outstanding VPC peering connection requests. To delete an active VPC peering connection, or to delete a VPC peering connection request that you initiated, use DeleteVpcPeeringConnection. ## @@ -121473,25 +121500,25 @@ proc validate_GetRejectVpcPeeringConnection_625756(path: JsonNode; query: JsonNo ## : The ID of the VPC peering connection. ## Version: JString (required) section = newJObject() - var valid_625758 = query.getOrDefault("DryRun") - valid_625758 = validateParameter(valid_625758, JBool, required = false, default = nil) - if valid_625758 != nil: - section.add "DryRun", valid_625758 - var valid_625759 = query.getOrDefault("Action") - valid_625759 = validateParameter(valid_625759, JString, required = true, default = newJString( + var valid_625760 = query.getOrDefault("DryRun") + valid_625760 = validateParameter(valid_625760, JBool, required = false, default = nil) + if valid_625760 != nil: + section.add "DryRun", valid_625760 + var valid_625761 = query.getOrDefault("Action") + valid_625761 = validateParameter(valid_625761, JString, required = true, default = newJString( "RejectVpcPeeringConnection")) - if valid_625759 != nil: - section.add "Action", valid_625759 - var valid_625760 = query.getOrDefault("VpcPeeringConnectionId") - valid_625760 = validateParameter(valid_625760, JString, required = true, + if valid_625761 != nil: + section.add "Action", valid_625761 + var valid_625762 = query.getOrDefault("VpcPeeringConnectionId") + valid_625762 = validateParameter(valid_625762, JString, required = true, default = nil) - if valid_625760 != nil: - section.add "VpcPeeringConnectionId", valid_625760 - var valid_625761 = query.getOrDefault("Version") - valid_625761 = validateParameter(valid_625761, JString, required = true, + if valid_625762 != nil: + section.add "VpcPeeringConnectionId", valid_625762 + var valid_625763 = query.getOrDefault("Version") + valid_625763 = validateParameter(valid_625763, JString, required = true, default = newJString("2016-11-15")) - if valid_625761 != nil: - section.add "Version", valid_625761 + if valid_625763 != nil: + section.add "Version", valid_625763 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -121502,61 +121529,61 @@ proc validate_GetRejectVpcPeeringConnection_625756(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625762 = header.getOrDefault("X-Amz-Signature") - valid_625762 = validateParameter(valid_625762, JString, required = false, - default = nil) - if valid_625762 != nil: - section.add "X-Amz-Signature", valid_625762 - var valid_625763 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625763 = validateParameter(valid_625763, JString, required = false, - default = nil) - if valid_625763 != nil: - section.add "X-Amz-Content-Sha256", valid_625763 - var valid_625764 = header.getOrDefault("X-Amz-Date") + var valid_625764 = header.getOrDefault("X-Amz-Signature") valid_625764 = validateParameter(valid_625764, JString, required = false, default = nil) if valid_625764 != nil: - section.add "X-Amz-Date", valid_625764 - var valid_625765 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625764 + var valid_625765 = header.getOrDefault("X-Amz-Content-Sha256") valid_625765 = validateParameter(valid_625765, JString, required = false, default = nil) if valid_625765 != nil: - section.add "X-Amz-Credential", valid_625765 - var valid_625766 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625765 + var valid_625766 = header.getOrDefault("X-Amz-Date") valid_625766 = validateParameter(valid_625766, JString, required = false, default = nil) if valid_625766 != nil: - section.add "X-Amz-Security-Token", valid_625766 - var valid_625767 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625766 + var valid_625767 = header.getOrDefault("X-Amz-Credential") valid_625767 = validateParameter(valid_625767, JString, required = false, default = nil) if valid_625767 != nil: - section.add "X-Amz-Algorithm", valid_625767 - var valid_625768 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625767 + var valid_625768 = header.getOrDefault("X-Amz-Security-Token") valid_625768 = validateParameter(valid_625768, JString, required = false, default = nil) if valid_625768 != nil: - section.add "X-Amz-SignedHeaders", valid_625768 + section.add "X-Amz-Security-Token", valid_625768 + var valid_625769 = header.getOrDefault("X-Amz-Algorithm") + valid_625769 = validateParameter(valid_625769, JString, required = false, + default = nil) + if valid_625769 != nil: + section.add "X-Amz-Algorithm", valid_625769 + var valid_625770 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625770 = validateParameter(valid_625770, JString, required = false, + default = nil) + if valid_625770 != nil: + section.add "X-Amz-SignedHeaders", valid_625770 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625769: Call_GetRejectVpcPeeringConnection_625755; path: JsonNode; +proc call*(call_625771: Call_GetRejectVpcPeeringConnection_625757; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Rejects a VPC peering connection request. The VPC peering connection must be in the pending-acceptance state. Use the DescribeVpcPeeringConnections request to view your outstanding VPC peering connection requests. To delete an active VPC peering connection, or to delete a VPC peering connection request that you initiated, use DeleteVpcPeeringConnection. ## - let valid = call_625769.validator(path, query, header, formData, body) - let scheme = call_625769.pickScheme + let valid = call_625771.validator(path, query, header, formData, body) + let scheme = call_625771.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625769.url(scheme.get, call_625769.host, call_625769.base, - call_625769.route, valid.getOrDefault("path"), + let url = call_625771.url(scheme.get, call_625771.host, call_625771.base, + call_625771.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625769, url, valid) + result = atozHook(call_625771, url, valid) -proc call*(call_625770: Call_GetRejectVpcPeeringConnection_625755; +proc call*(call_625772: Call_GetRejectVpcPeeringConnection_625757; VpcPeeringConnectionId: string; DryRun: bool = false; Action: string = "RejectVpcPeeringConnection"; Version: string = "2016-11-15"): Recallable = @@ -121568,22 +121595,22 @@ proc call*(call_625770: Call_GetRejectVpcPeeringConnection_625755; ## VpcPeeringConnectionId: string (required) ## : The ID of the VPC peering connection. ## Version: string (required) - var query_625771 = newJObject() - add(query_625771, "DryRun", newJBool(DryRun)) - add(query_625771, "Action", newJString(Action)) - add(query_625771, "VpcPeeringConnectionId", newJString(VpcPeeringConnectionId)) - add(query_625771, "Version", newJString(Version)) - result = call_625770.call(nil, query_625771, nil, nil, nil) + var query_625773 = newJObject() + add(query_625773, "DryRun", newJBool(DryRun)) + add(query_625773, "Action", newJString(Action)) + add(query_625773, "VpcPeeringConnectionId", newJString(VpcPeeringConnectionId)) + add(query_625773, "Version", newJString(Version)) + result = call_625772.call(nil, query_625773, nil, nil, nil) -var getRejectVpcPeeringConnection* = Call_GetRejectVpcPeeringConnection_625755( +var getRejectVpcPeeringConnection* = Call_GetRejectVpcPeeringConnection_625757( name: "getRejectVpcPeeringConnection", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=RejectVpcPeeringConnection", - validator: validate_GetRejectVpcPeeringConnection_625756, base: "/", - url: url_GetRejectVpcPeeringConnection_625757, + validator: validate_GetRejectVpcPeeringConnection_625758, base: "/", + url: url_GetRejectVpcPeeringConnection_625759, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostReleaseAddress_625809 = ref object of OpenApiRestCall_610658 -proc url_PostReleaseAddress_625811(protocol: Scheme; host: string; base: string; + Call_PostReleaseAddress_625811 = ref object of OpenApiRestCall_610658 +proc url_PostReleaseAddress_625813(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -121593,7 +121620,7 @@ proc url_PostReleaseAddress_625811(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostReleaseAddress_625810(path: JsonNode; query: JsonNode; +proc validate_PostReleaseAddress_625812(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Releases the specified Elastic IP address.

    [EC2-Classic, default VPC] Releasing an Elastic IP address automatically disassociates it from any instance that it's associated with. To disassociate an Elastic IP address without releasing it, use DisassociateAddress.

    [Nondefault VPC] You must use DisassociateAddress to disassociate the Elastic IP address before you can release it. Otherwise, Amazon EC2 returns an error (InvalidIPAddress.InUse).

    After releasing an Elastic IP address, it is released to the IP address pool. Be sure to update your DNS records and any servers or devices that communicate with the address. If you attempt to release an Elastic IP address that you already released, you'll get an AuthFailure error if the address is already allocated to another AWS account.

    [EC2-VPC] After you release an Elastic IP address for use in a VPC, you might be able to recover it. For more information, see AllocateAddress.

    @@ -121606,16 +121633,16 @@ proc validate_PostReleaseAddress_625810(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625812 = query.getOrDefault("Action") - valid_625812 = validateParameter(valid_625812, JString, required = true, + var valid_625814 = query.getOrDefault("Action") + valid_625814 = validateParameter(valid_625814, JString, required = true, default = newJString("ReleaseAddress")) - if valid_625812 != nil: - section.add "Action", valid_625812 - var valid_625813 = query.getOrDefault("Version") - valid_625813 = validateParameter(valid_625813, JString, required = true, + if valid_625814 != nil: + section.add "Action", valid_625814 + var valid_625815 = query.getOrDefault("Version") + valid_625815 = validateParameter(valid_625815, JString, required = true, default = newJString("2016-11-15")) - if valid_625813 != nil: - section.add "Version", valid_625813 + if valid_625815 != nil: + section.add "Version", valid_625815 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -121626,41 +121653,41 @@ proc validate_PostReleaseAddress_625810(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625814 = header.getOrDefault("X-Amz-Signature") - valid_625814 = validateParameter(valid_625814, JString, required = false, - default = nil) - if valid_625814 != nil: - section.add "X-Amz-Signature", valid_625814 - var valid_625815 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625815 = validateParameter(valid_625815, JString, required = false, - default = nil) - if valid_625815 != nil: - section.add "X-Amz-Content-Sha256", valid_625815 - var valid_625816 = header.getOrDefault("X-Amz-Date") + var valid_625816 = header.getOrDefault("X-Amz-Signature") valid_625816 = validateParameter(valid_625816, JString, required = false, default = nil) if valid_625816 != nil: - section.add "X-Amz-Date", valid_625816 - var valid_625817 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625816 + var valid_625817 = header.getOrDefault("X-Amz-Content-Sha256") valid_625817 = validateParameter(valid_625817, JString, required = false, default = nil) if valid_625817 != nil: - section.add "X-Amz-Credential", valid_625817 - var valid_625818 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625817 + var valid_625818 = header.getOrDefault("X-Amz-Date") valid_625818 = validateParameter(valid_625818, JString, required = false, default = nil) if valid_625818 != nil: - section.add "X-Amz-Security-Token", valid_625818 - var valid_625819 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625818 + var valid_625819 = header.getOrDefault("X-Amz-Credential") valid_625819 = validateParameter(valid_625819, JString, required = false, default = nil) if valid_625819 != nil: - section.add "X-Amz-Algorithm", valid_625819 - var valid_625820 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625819 + var valid_625820 = header.getOrDefault("X-Amz-Security-Token") valid_625820 = validateParameter(valid_625820, JString, required = false, default = nil) if valid_625820 != nil: - section.add "X-Amz-SignedHeaders", valid_625820 + section.add "X-Amz-Security-Token", valid_625820 + var valid_625821 = header.getOrDefault("X-Amz-Algorithm") + valid_625821 = validateParameter(valid_625821, JString, required = false, + default = nil) + if valid_625821 != nil: + section.add "X-Amz-Algorithm", valid_625821 + var valid_625822 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625822 = validateParameter(valid_625822, JString, required = false, + default = nil) + if valid_625822 != nil: + section.add "X-Amz-SignedHeaders", valid_625822 result.add "header", section ## parameters in `formData` object: ## NetworkBorderGroup: JString @@ -121674,43 +121701,43 @@ proc validate_PostReleaseAddress_625810(path: JsonNode; query: JsonNode; ## PublicIp: JString ## : [EC2-Classic] The Elastic IP address. Required for EC2-Classic. section = newJObject() - var valid_625821 = formData.getOrDefault("NetworkBorderGroup") - valid_625821 = validateParameter(valid_625821, JString, required = false, + var valid_625823 = formData.getOrDefault("NetworkBorderGroup") + valid_625823 = validateParameter(valid_625823, JString, required = false, default = nil) - if valid_625821 != nil: - section.add "NetworkBorderGroup", valid_625821 - var valid_625822 = formData.getOrDefault("AllocationId") - valid_625822 = validateParameter(valid_625822, JString, required = false, - default = nil) - if valid_625822 != nil: - section.add "AllocationId", valid_625822 - var valid_625823 = formData.getOrDefault("DryRun") - valid_625823 = validateParameter(valid_625823, JBool, required = false, default = nil) if valid_625823 != nil: - section.add "DryRun", valid_625823 - var valid_625824 = formData.getOrDefault("PublicIp") + section.add "NetworkBorderGroup", valid_625823 + var valid_625824 = formData.getOrDefault("AllocationId") valid_625824 = validateParameter(valid_625824, JString, required = false, default = nil) if valid_625824 != nil: - section.add "PublicIp", valid_625824 + section.add "AllocationId", valid_625824 + var valid_625825 = formData.getOrDefault("DryRun") + valid_625825 = validateParameter(valid_625825, JBool, required = false, default = nil) + if valid_625825 != nil: + section.add "DryRun", valid_625825 + var valid_625826 = formData.getOrDefault("PublicIp") + valid_625826 = validateParameter(valid_625826, JString, required = false, + default = nil) + if valid_625826 != nil: + section.add "PublicIp", valid_625826 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625825: Call_PostReleaseAddress_625809; path: JsonNode; +proc call*(call_625827: Call_PostReleaseAddress_625811; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Releases the specified Elastic IP address.

    [EC2-Classic, default VPC] Releasing an Elastic IP address automatically disassociates it from any instance that it's associated with. To disassociate an Elastic IP address without releasing it, use DisassociateAddress.

    [Nondefault VPC] You must use DisassociateAddress to disassociate the Elastic IP address before you can release it. Otherwise, Amazon EC2 returns an error (InvalidIPAddress.InUse).

    After releasing an Elastic IP address, it is released to the IP address pool. Be sure to update your DNS records and any servers or devices that communicate with the address. If you attempt to release an Elastic IP address that you already released, you'll get an AuthFailure error if the address is already allocated to another AWS account.

    [EC2-VPC] After you release an Elastic IP address for use in a VPC, you might be able to recover it. For more information, see AllocateAddress.

    ## - let valid = call_625825.validator(path, query, header, formData, body) - let scheme = call_625825.pickScheme + let valid = call_625827.validator(path, query, header, formData, body) + let scheme = call_625827.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625825.url(scheme.get, call_625825.host, call_625825.base, - call_625825.route, valid.getOrDefault("path"), + let url = call_625827.url(scheme.get, call_625827.host, call_625827.base, + call_625827.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625825, url, valid) + result = atozHook(call_625827, url, valid) -proc call*(call_625826: Call_PostReleaseAddress_625809; +proc call*(call_625828: Call_PostReleaseAddress_625811; NetworkBorderGroup: string = ""; AllocationId: string = ""; DryRun: bool = false; Action: string = "ReleaseAddress"; PublicIp: string = ""; Version: string = "2016-11-15"): Recallable = @@ -121728,24 +121755,24 @@ proc call*(call_625826: Call_PostReleaseAddress_625809; ## PublicIp: string ## : [EC2-Classic] The Elastic IP address. Required for EC2-Classic. ## Version: string (required) - var query_625827 = newJObject() - var formData_625828 = newJObject() - add(formData_625828, "NetworkBorderGroup", newJString(NetworkBorderGroup)) - add(formData_625828, "AllocationId", newJString(AllocationId)) - add(formData_625828, "DryRun", newJBool(DryRun)) - add(query_625827, "Action", newJString(Action)) - add(formData_625828, "PublicIp", newJString(PublicIp)) - add(query_625827, "Version", newJString(Version)) - result = call_625826.call(nil, query_625827, nil, formData_625828, nil) - -var postReleaseAddress* = Call_PostReleaseAddress_625809( + var query_625829 = newJObject() + var formData_625830 = newJObject() + add(formData_625830, "NetworkBorderGroup", newJString(NetworkBorderGroup)) + add(formData_625830, "AllocationId", newJString(AllocationId)) + add(formData_625830, "DryRun", newJBool(DryRun)) + add(query_625829, "Action", newJString(Action)) + add(formData_625830, "PublicIp", newJString(PublicIp)) + add(query_625829, "Version", newJString(Version)) + result = call_625828.call(nil, query_625829, nil, formData_625830, nil) + +var postReleaseAddress* = Call_PostReleaseAddress_625811( name: "postReleaseAddress", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ReleaseAddress", - validator: validate_PostReleaseAddress_625810, base: "/", - url: url_PostReleaseAddress_625811, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostReleaseAddress_625812, base: "/", + url: url_PostReleaseAddress_625813, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetReleaseAddress_625790 = ref object of OpenApiRestCall_610658 -proc url_GetReleaseAddress_625792(protocol: Scheme; host: string; base: string; + Call_GetReleaseAddress_625792 = ref object of OpenApiRestCall_610658 +proc url_GetReleaseAddress_625794(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -121755,7 +121782,7 @@ proc url_GetReleaseAddress_625792(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetReleaseAddress_625791(path: JsonNode; query: JsonNode; +proc validate_GetReleaseAddress_625793(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Releases the specified Elastic IP address.

    [EC2-Classic, default VPC] Releasing an Elastic IP address automatically disassociates it from any instance that it's associated with. To disassociate an Elastic IP address without releasing it, use DisassociateAddress.

    [Nondefault VPC] You must use DisassociateAddress to disassociate the Elastic IP address before you can release it. Otherwise, Amazon EC2 returns an error (InvalidIPAddress.InUse).

    After releasing an Elastic IP address, it is released to the IP address pool. Be sure to update your DNS records and any servers or devices that communicate with the address. If you attempt to release an Elastic IP address that you already released, you'll get an AuthFailure error if the address is already allocated to another AWS account.

    [EC2-VPC] After you release an Elastic IP address for use in a VPC, you might be able to recover it. For more information, see AllocateAddress.

    @@ -121778,35 +121805,35 @@ proc validate_GetReleaseAddress_625791(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625793 = query.getOrDefault("AllocationId") - valid_625793 = validateParameter(valid_625793, JString, required = false, - default = nil) - if valid_625793 != nil: - section.add "AllocationId", valid_625793 - var valid_625794 = query.getOrDefault("DryRun") - valid_625794 = validateParameter(valid_625794, JBool, required = false, default = nil) - if valid_625794 != nil: - section.add "DryRun", valid_625794 - var valid_625795 = query.getOrDefault("NetworkBorderGroup") + var valid_625795 = query.getOrDefault("AllocationId") valid_625795 = validateParameter(valid_625795, JString, required = false, default = nil) if valid_625795 != nil: - section.add "NetworkBorderGroup", valid_625795 - var valid_625796 = query.getOrDefault("PublicIp") - valid_625796 = validateParameter(valid_625796, JString, required = false, - default = nil) + section.add "AllocationId", valid_625795 + var valid_625796 = query.getOrDefault("DryRun") + valid_625796 = validateParameter(valid_625796, JBool, required = false, default = nil) if valid_625796 != nil: - section.add "PublicIp", valid_625796 - var valid_625797 = query.getOrDefault("Action") - valid_625797 = validateParameter(valid_625797, JString, required = true, - default = newJString("ReleaseAddress")) + section.add "DryRun", valid_625796 + var valid_625797 = query.getOrDefault("NetworkBorderGroup") + valid_625797 = validateParameter(valid_625797, JString, required = false, + default = nil) if valid_625797 != nil: - section.add "Action", valid_625797 - var valid_625798 = query.getOrDefault("Version") - valid_625798 = validateParameter(valid_625798, JString, required = true, - default = newJString("2016-11-15")) + section.add "NetworkBorderGroup", valid_625797 + var valid_625798 = query.getOrDefault("PublicIp") + valid_625798 = validateParameter(valid_625798, JString, required = false, + default = nil) if valid_625798 != nil: - section.add "Version", valid_625798 + section.add "PublicIp", valid_625798 + var valid_625799 = query.getOrDefault("Action") + valid_625799 = validateParameter(valid_625799, JString, required = true, + default = newJString("ReleaseAddress")) + if valid_625799 != nil: + section.add "Action", valid_625799 + var valid_625800 = query.getOrDefault("Version") + valid_625800 = validateParameter(valid_625800, JString, required = true, + default = newJString("2016-11-15")) + if valid_625800 != nil: + section.add "Version", valid_625800 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -121817,61 +121844,61 @@ proc validate_GetReleaseAddress_625791(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625799 = header.getOrDefault("X-Amz-Signature") - valid_625799 = validateParameter(valid_625799, JString, required = false, - default = nil) - if valid_625799 != nil: - section.add "X-Amz-Signature", valid_625799 - var valid_625800 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625800 = validateParameter(valid_625800, JString, required = false, - default = nil) - if valid_625800 != nil: - section.add "X-Amz-Content-Sha256", valid_625800 - var valid_625801 = header.getOrDefault("X-Amz-Date") + var valid_625801 = header.getOrDefault("X-Amz-Signature") valid_625801 = validateParameter(valid_625801, JString, required = false, default = nil) if valid_625801 != nil: - section.add "X-Amz-Date", valid_625801 - var valid_625802 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625801 + var valid_625802 = header.getOrDefault("X-Amz-Content-Sha256") valid_625802 = validateParameter(valid_625802, JString, required = false, default = nil) if valid_625802 != nil: - section.add "X-Amz-Credential", valid_625802 - var valid_625803 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625802 + var valid_625803 = header.getOrDefault("X-Amz-Date") valid_625803 = validateParameter(valid_625803, JString, required = false, default = nil) if valid_625803 != nil: - section.add "X-Amz-Security-Token", valid_625803 - var valid_625804 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625803 + var valid_625804 = header.getOrDefault("X-Amz-Credential") valid_625804 = validateParameter(valid_625804, JString, required = false, default = nil) if valid_625804 != nil: - section.add "X-Amz-Algorithm", valid_625804 - var valid_625805 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625804 + var valid_625805 = header.getOrDefault("X-Amz-Security-Token") valid_625805 = validateParameter(valid_625805, JString, required = false, default = nil) if valid_625805 != nil: - section.add "X-Amz-SignedHeaders", valid_625805 + section.add "X-Amz-Security-Token", valid_625805 + var valid_625806 = header.getOrDefault("X-Amz-Algorithm") + valid_625806 = validateParameter(valid_625806, JString, required = false, + default = nil) + if valid_625806 != nil: + section.add "X-Amz-Algorithm", valid_625806 + var valid_625807 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625807 = validateParameter(valid_625807, JString, required = false, + default = nil) + if valid_625807 != nil: + section.add "X-Amz-SignedHeaders", valid_625807 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625806: Call_GetReleaseAddress_625790; path: JsonNode; +proc call*(call_625808: Call_GetReleaseAddress_625792; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Releases the specified Elastic IP address.

    [EC2-Classic, default VPC] Releasing an Elastic IP address automatically disassociates it from any instance that it's associated with. To disassociate an Elastic IP address without releasing it, use DisassociateAddress.

    [Nondefault VPC] You must use DisassociateAddress to disassociate the Elastic IP address before you can release it. Otherwise, Amazon EC2 returns an error (InvalidIPAddress.InUse).

    After releasing an Elastic IP address, it is released to the IP address pool. Be sure to update your DNS records and any servers or devices that communicate with the address. If you attempt to release an Elastic IP address that you already released, you'll get an AuthFailure error if the address is already allocated to another AWS account.

    [EC2-VPC] After you release an Elastic IP address for use in a VPC, you might be able to recover it. For more information, see AllocateAddress.

    ## - let valid = call_625806.validator(path, query, header, formData, body) - let scheme = call_625806.pickScheme + let valid = call_625808.validator(path, query, header, formData, body) + let scheme = call_625808.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625806.url(scheme.get, call_625806.host, call_625806.base, - call_625806.route, valid.getOrDefault("path"), + let url = call_625808.url(scheme.get, call_625808.host, call_625808.base, + call_625808.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625806, url, valid) + result = atozHook(call_625808, url, valid) -proc call*(call_625807: Call_GetReleaseAddress_625790; AllocationId: string = ""; +proc call*(call_625809: Call_GetReleaseAddress_625792; AllocationId: string = ""; DryRun: bool = false; NetworkBorderGroup: string = ""; PublicIp: string = ""; Action: string = "ReleaseAddress"; Version: string = "2016-11-15"): Recallable = ## getReleaseAddress @@ -121888,23 +121915,23 @@ proc call*(call_625807: Call_GetReleaseAddress_625790; AllocationId: string = "" ## : [EC2-Classic] The Elastic IP address. Required for EC2-Classic. ## Action: string (required) ## Version: string (required) - var query_625808 = newJObject() - add(query_625808, "AllocationId", newJString(AllocationId)) - add(query_625808, "DryRun", newJBool(DryRun)) - add(query_625808, "NetworkBorderGroup", newJString(NetworkBorderGroup)) - add(query_625808, "PublicIp", newJString(PublicIp)) - add(query_625808, "Action", newJString(Action)) - add(query_625808, "Version", newJString(Version)) - result = call_625807.call(nil, query_625808, nil, nil, nil) + var query_625810 = newJObject() + add(query_625810, "AllocationId", newJString(AllocationId)) + add(query_625810, "DryRun", newJBool(DryRun)) + add(query_625810, "NetworkBorderGroup", newJString(NetworkBorderGroup)) + add(query_625810, "PublicIp", newJString(PublicIp)) + add(query_625810, "Action", newJString(Action)) + add(query_625810, "Version", newJString(Version)) + result = call_625809.call(nil, query_625810, nil, nil, nil) -var getReleaseAddress* = Call_GetReleaseAddress_625790(name: "getReleaseAddress", +var getReleaseAddress* = Call_GetReleaseAddress_625792(name: "getReleaseAddress", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=ReleaseAddress", validator: validate_GetReleaseAddress_625791, - base: "/", url: url_GetReleaseAddress_625792, + route: "/#Action=ReleaseAddress", validator: validate_GetReleaseAddress_625793, + base: "/", url: url_GetReleaseAddress_625794, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostReleaseHosts_625845 = ref object of OpenApiRestCall_610658 -proc url_PostReleaseHosts_625847(protocol: Scheme; host: string; base: string; + Call_PostReleaseHosts_625847 = ref object of OpenApiRestCall_610658 +proc url_PostReleaseHosts_625849(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -121914,7 +121941,7 @@ proc url_PostReleaseHosts_625847(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostReleaseHosts_625846(path: JsonNode; query: JsonNode; +proc validate_PostReleaseHosts_625848(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    When you no longer want to use an On-Demand Dedicated Host it can be released. On-Demand billing is stopped and the host goes into released state. The host ID of Dedicated Hosts that have been released can no longer be specified in another request, for example, to modify the host. You must stop or terminate all instances on a host before it can be released.

    When Dedicated Hosts are released, it may take some time for them to stop counting toward your limit and you may receive capacity errors when trying to allocate new Dedicated Hosts. Wait a few minutes and then try again.

    Released hosts still appear in a DescribeHosts response.

    @@ -121927,16 +121954,16 @@ proc validate_PostReleaseHosts_625846(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625848 = query.getOrDefault("Action") - valid_625848 = validateParameter(valid_625848, JString, required = true, + var valid_625850 = query.getOrDefault("Action") + valid_625850 = validateParameter(valid_625850, JString, required = true, default = newJString("ReleaseHosts")) - if valid_625848 != nil: - section.add "Action", valid_625848 - var valid_625849 = query.getOrDefault("Version") - valid_625849 = validateParameter(valid_625849, JString, required = true, + if valid_625850 != nil: + section.add "Action", valid_625850 + var valid_625851 = query.getOrDefault("Version") + valid_625851 = validateParameter(valid_625851, JString, required = true, default = newJString("2016-11-15")) - if valid_625849 != nil: - section.add "Version", valid_625849 + if valid_625851 != nil: + section.add "Version", valid_625851 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -121947,41 +121974,41 @@ proc validate_PostReleaseHosts_625846(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625850 = header.getOrDefault("X-Amz-Signature") - valid_625850 = validateParameter(valid_625850, JString, required = false, - default = nil) - if valid_625850 != nil: - section.add "X-Amz-Signature", valid_625850 - var valid_625851 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625851 = validateParameter(valid_625851, JString, required = false, - default = nil) - if valid_625851 != nil: - section.add "X-Amz-Content-Sha256", valid_625851 - var valid_625852 = header.getOrDefault("X-Amz-Date") + var valid_625852 = header.getOrDefault("X-Amz-Signature") valid_625852 = validateParameter(valid_625852, JString, required = false, default = nil) if valid_625852 != nil: - section.add "X-Amz-Date", valid_625852 - var valid_625853 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625852 + var valid_625853 = header.getOrDefault("X-Amz-Content-Sha256") valid_625853 = validateParameter(valid_625853, JString, required = false, default = nil) if valid_625853 != nil: - section.add "X-Amz-Credential", valid_625853 - var valid_625854 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625853 + var valid_625854 = header.getOrDefault("X-Amz-Date") valid_625854 = validateParameter(valid_625854, JString, required = false, default = nil) if valid_625854 != nil: - section.add "X-Amz-Security-Token", valid_625854 - var valid_625855 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625854 + var valid_625855 = header.getOrDefault("X-Amz-Credential") valid_625855 = validateParameter(valid_625855, JString, required = false, default = nil) if valid_625855 != nil: - section.add "X-Amz-Algorithm", valid_625855 - var valid_625856 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625855 + var valid_625856 = header.getOrDefault("X-Amz-Security-Token") valid_625856 = validateParameter(valid_625856, JString, required = false, default = nil) if valid_625856 != nil: - section.add "X-Amz-SignedHeaders", valid_625856 + section.add "X-Amz-Security-Token", valid_625856 + var valid_625857 = header.getOrDefault("X-Amz-Algorithm") + valid_625857 = validateParameter(valid_625857, JString, required = false, + default = nil) + if valid_625857 != nil: + section.add "X-Amz-Algorithm", valid_625857 + var valid_625858 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625858 = validateParameter(valid_625858, JString, required = false, + default = nil) + if valid_625858 != nil: + section.add "X-Amz-SignedHeaders", valid_625858 result.add "header", section ## parameters in `formData` object: ## HostId: JArray (required) @@ -121989,28 +122016,28 @@ proc validate_PostReleaseHosts_625846(path: JsonNode; query: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `HostId` field" - var valid_625857 = formData.getOrDefault("HostId") - valid_625857 = validateParameter(valid_625857, JArray, required = true, default = nil) - if valid_625857 != nil: - section.add "HostId", valid_625857 + var valid_625859 = formData.getOrDefault("HostId") + valid_625859 = validateParameter(valid_625859, JArray, required = true, default = nil) + if valid_625859 != nil: + section.add "HostId", valid_625859 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625858: Call_PostReleaseHosts_625845; path: JsonNode; +proc call*(call_625860: Call_PostReleaseHosts_625847; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    When you no longer want to use an On-Demand Dedicated Host it can be released. On-Demand billing is stopped and the host goes into released state. The host ID of Dedicated Hosts that have been released can no longer be specified in another request, for example, to modify the host. You must stop or terminate all instances on a host before it can be released.

    When Dedicated Hosts are released, it may take some time for them to stop counting toward your limit and you may receive capacity errors when trying to allocate new Dedicated Hosts. Wait a few minutes and then try again.

    Released hosts still appear in a DescribeHosts response.

    ## - let valid = call_625858.validator(path, query, header, formData, body) - let scheme = call_625858.pickScheme + let valid = call_625860.validator(path, query, header, formData, body) + let scheme = call_625860.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625858.url(scheme.get, call_625858.host, call_625858.base, - call_625858.route, valid.getOrDefault("path"), + let url = call_625860.url(scheme.get, call_625860.host, call_625860.base, + call_625860.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625858, url, valid) + result = atozHook(call_625860, url, valid) -proc call*(call_625859: Call_PostReleaseHosts_625845; HostId: JsonNode; +proc call*(call_625861: Call_PostReleaseHosts_625847; HostId: JsonNode; Action: string = "ReleaseHosts"; Version: string = "2016-11-15"): Recallable = ## postReleaseHosts ##

    When you no longer want to use an On-Demand Dedicated Host it can be released. On-Demand billing is stopped and the host goes into released state. The host ID of Dedicated Hosts that have been released can no longer be specified in another request, for example, to modify the host. You must stop or terminate all instances on a host before it can be released.

    When Dedicated Hosts are released, it may take some time for them to stop counting toward your limit and you may receive capacity errors when trying to allocate new Dedicated Hosts. Wait a few minutes and then try again.

    Released hosts still appear in a DescribeHosts response.

    @@ -122018,22 +122045,22 @@ proc call*(call_625859: Call_PostReleaseHosts_625845; HostId: JsonNode; ## Version: string (required) ## HostId: JArray (required) ## : The IDs of the Dedicated Hosts to release. - var query_625860 = newJObject() - var formData_625861 = newJObject() - add(query_625860, "Action", newJString(Action)) - add(query_625860, "Version", newJString(Version)) + var query_625862 = newJObject() + var formData_625863 = newJObject() + add(query_625862, "Action", newJString(Action)) + add(query_625862, "Version", newJString(Version)) if HostId != nil: - formData_625861.add "HostId", HostId - result = call_625859.call(nil, query_625860, nil, formData_625861, nil) + formData_625863.add "HostId", HostId + result = call_625861.call(nil, query_625862, nil, formData_625863, nil) -var postReleaseHosts* = Call_PostReleaseHosts_625845(name: "postReleaseHosts", +var postReleaseHosts* = Call_PostReleaseHosts_625847(name: "postReleaseHosts", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", - route: "/#Action=ReleaseHosts", validator: validate_PostReleaseHosts_625846, - base: "/", url: url_PostReleaseHosts_625847, + route: "/#Action=ReleaseHosts", validator: validate_PostReleaseHosts_625848, + base: "/", url: url_PostReleaseHosts_625849, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetReleaseHosts_625829 = ref object of OpenApiRestCall_610658 -proc url_GetReleaseHosts_625831(protocol: Scheme; host: string; base: string; + Call_GetReleaseHosts_625831 = ref object of OpenApiRestCall_610658 +proc url_GetReleaseHosts_625833(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -122043,7 +122070,7 @@ proc url_GetReleaseHosts_625831(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetReleaseHosts_625830(path: JsonNode; query: JsonNode; +proc validate_GetReleaseHosts_625832(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    When you no longer want to use an On-Demand Dedicated Host it can be released. On-Demand billing is stopped and the host goes into released state. The host ID of Dedicated Hosts that have been released can no longer be specified in another request, for example, to modify the host. You must stop or terminate all instances on a host before it can be released.

    When Dedicated Hosts are released, it may take some time for them to stop counting toward your limit and you may receive capacity errors when trying to allocate new Dedicated Hosts. Wait a few minutes and then try again.

    Released hosts still appear in a DescribeHosts response.

    @@ -122059,20 +122086,20 @@ proc validate_GetReleaseHosts_625830(path: JsonNode; query: JsonNode; ## Version: JString (required) section = newJObject() assert query != nil, "query argument is necessary due to required `HostId` field" - var valid_625832 = query.getOrDefault("HostId") - valid_625832 = validateParameter(valid_625832, JArray, required = true, default = nil) - if valid_625832 != nil: - section.add "HostId", valid_625832 - var valid_625833 = query.getOrDefault("Action") - valid_625833 = validateParameter(valid_625833, JString, required = true, + var valid_625834 = query.getOrDefault("HostId") + valid_625834 = validateParameter(valid_625834, JArray, required = true, default = nil) + if valid_625834 != nil: + section.add "HostId", valid_625834 + var valid_625835 = query.getOrDefault("Action") + valid_625835 = validateParameter(valid_625835, JString, required = true, default = newJString("ReleaseHosts")) - if valid_625833 != nil: - section.add "Action", valid_625833 - var valid_625834 = query.getOrDefault("Version") - valid_625834 = validateParameter(valid_625834, JString, required = true, + if valid_625835 != nil: + section.add "Action", valid_625835 + var valid_625836 = query.getOrDefault("Version") + valid_625836 = validateParameter(valid_625836, JString, required = true, default = newJString("2016-11-15")) - if valid_625834 != nil: - section.add "Version", valid_625834 + if valid_625836 != nil: + section.add "Version", valid_625836 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -122083,61 +122110,61 @@ proc validate_GetReleaseHosts_625830(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625835 = header.getOrDefault("X-Amz-Signature") - valid_625835 = validateParameter(valid_625835, JString, required = false, - default = nil) - if valid_625835 != nil: - section.add "X-Amz-Signature", valid_625835 - var valid_625836 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625836 = validateParameter(valid_625836, JString, required = false, - default = nil) - if valid_625836 != nil: - section.add "X-Amz-Content-Sha256", valid_625836 - var valid_625837 = header.getOrDefault("X-Amz-Date") + var valid_625837 = header.getOrDefault("X-Amz-Signature") valid_625837 = validateParameter(valid_625837, JString, required = false, default = nil) if valid_625837 != nil: - section.add "X-Amz-Date", valid_625837 - var valid_625838 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625837 + var valid_625838 = header.getOrDefault("X-Amz-Content-Sha256") valid_625838 = validateParameter(valid_625838, JString, required = false, default = nil) if valid_625838 != nil: - section.add "X-Amz-Credential", valid_625838 - var valid_625839 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625838 + var valid_625839 = header.getOrDefault("X-Amz-Date") valid_625839 = validateParameter(valid_625839, JString, required = false, default = nil) if valid_625839 != nil: - section.add "X-Amz-Security-Token", valid_625839 - var valid_625840 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625839 + var valid_625840 = header.getOrDefault("X-Amz-Credential") valid_625840 = validateParameter(valid_625840, JString, required = false, default = nil) if valid_625840 != nil: - section.add "X-Amz-Algorithm", valid_625840 - var valid_625841 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625840 + var valid_625841 = header.getOrDefault("X-Amz-Security-Token") valid_625841 = validateParameter(valid_625841, JString, required = false, default = nil) if valid_625841 != nil: - section.add "X-Amz-SignedHeaders", valid_625841 + section.add "X-Amz-Security-Token", valid_625841 + var valid_625842 = header.getOrDefault("X-Amz-Algorithm") + valid_625842 = validateParameter(valid_625842, JString, required = false, + default = nil) + if valid_625842 != nil: + section.add "X-Amz-Algorithm", valid_625842 + var valid_625843 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625843 = validateParameter(valid_625843, JString, required = false, + default = nil) + if valid_625843 != nil: + section.add "X-Amz-SignedHeaders", valid_625843 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625842: Call_GetReleaseHosts_625829; path: JsonNode; query: JsonNode; +proc call*(call_625844: Call_GetReleaseHosts_625831; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    When you no longer want to use an On-Demand Dedicated Host it can be released. On-Demand billing is stopped and the host goes into released state. The host ID of Dedicated Hosts that have been released can no longer be specified in another request, for example, to modify the host. You must stop or terminate all instances on a host before it can be released.

    When Dedicated Hosts are released, it may take some time for them to stop counting toward your limit and you may receive capacity errors when trying to allocate new Dedicated Hosts. Wait a few minutes and then try again.

    Released hosts still appear in a DescribeHosts response.

    ## - let valid = call_625842.validator(path, query, header, formData, body) - let scheme = call_625842.pickScheme + let valid = call_625844.validator(path, query, header, formData, body) + let scheme = call_625844.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625842.url(scheme.get, call_625842.host, call_625842.base, - call_625842.route, valid.getOrDefault("path"), + let url = call_625844.url(scheme.get, call_625844.host, call_625844.base, + call_625844.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625842, url, valid) + result = atozHook(call_625844, url, valid) -proc call*(call_625843: Call_GetReleaseHosts_625829; HostId: JsonNode; +proc call*(call_625845: Call_GetReleaseHosts_625831; HostId: JsonNode; Action: string = "ReleaseHosts"; Version: string = "2016-11-15"): Recallable = ## getReleaseHosts ##

    When you no longer want to use an On-Demand Dedicated Host it can be released. On-Demand billing is stopped and the host goes into released state. The host ID of Dedicated Hosts that have been released can no longer be specified in another request, for example, to modify the host. You must stop or terminate all instances on a host before it can be released.

    When Dedicated Hosts are released, it may take some time for them to stop counting toward your limit and you may receive capacity errors when trying to allocate new Dedicated Hosts. Wait a few minutes and then try again.

    Released hosts still appear in a DescribeHosts response.

    @@ -122145,20 +122172,20 @@ proc call*(call_625843: Call_GetReleaseHosts_625829; HostId: JsonNode; ## : The IDs of the Dedicated Hosts to release. ## Action: string (required) ## Version: string (required) - var query_625844 = newJObject() + var query_625846 = newJObject() if HostId != nil: - query_625844.add "HostId", HostId - add(query_625844, "Action", newJString(Action)) - add(query_625844, "Version", newJString(Version)) - result = call_625843.call(nil, query_625844, nil, nil, nil) + query_625846.add "HostId", HostId + add(query_625846, "Action", newJString(Action)) + add(query_625846, "Version", newJString(Version)) + result = call_625845.call(nil, query_625846, nil, nil, nil) -var getReleaseHosts* = Call_GetReleaseHosts_625829(name: "getReleaseHosts", +var getReleaseHosts* = Call_GetReleaseHosts_625831(name: "getReleaseHosts", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=ReleaseHosts", validator: validate_GetReleaseHosts_625830, - base: "/", url: url_GetReleaseHosts_625831, schemes: {Scheme.Https, Scheme.Http}) + route: "/#Action=ReleaseHosts", validator: validate_GetReleaseHosts_625832, + base: "/", url: url_GetReleaseHosts_625833, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostReplaceIamInstanceProfileAssociation_625880 = ref object of OpenApiRestCall_610658 -proc url_PostReplaceIamInstanceProfileAssociation_625882(protocol: Scheme; + Call_PostReplaceIamInstanceProfileAssociation_625882 = ref object of OpenApiRestCall_610658 +proc url_PostReplaceIamInstanceProfileAssociation_625884(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -122168,7 +122195,7 @@ proc url_PostReplaceIamInstanceProfileAssociation_625882(protocol: Scheme; else: result.path = base & route -proc validate_PostReplaceIamInstanceProfileAssociation_625881(path: JsonNode; +proc validate_PostReplaceIamInstanceProfileAssociation_625883(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Replaces an IAM instance profile for the specified running instance. You can use this action to change the IAM instance profile that's associated with an instance without having to disassociate the existing IAM instance profile first.

    Use DescribeIamInstanceProfileAssociations to get the association ID.

    ## @@ -122180,16 +122207,16 @@ proc validate_PostReplaceIamInstanceProfileAssociation_625881(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625883 = query.getOrDefault("Action") - valid_625883 = validateParameter(valid_625883, JString, required = true, default = newJString( + var valid_625885 = query.getOrDefault("Action") + valid_625885 = validateParameter(valid_625885, JString, required = true, default = newJString( "ReplaceIamInstanceProfileAssociation")) - if valid_625883 != nil: - section.add "Action", valid_625883 - var valid_625884 = query.getOrDefault("Version") - valid_625884 = validateParameter(valid_625884, JString, required = true, + if valid_625885 != nil: + section.add "Action", valid_625885 + var valid_625886 = query.getOrDefault("Version") + valid_625886 = validateParameter(valid_625886, JString, required = true, default = newJString("2016-11-15")) - if valid_625884 != nil: - section.add "Version", valid_625884 + if valid_625886 != nil: + section.add "Version", valid_625886 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -122200,41 +122227,41 @@ proc validate_PostReplaceIamInstanceProfileAssociation_625881(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625885 = header.getOrDefault("X-Amz-Signature") - valid_625885 = validateParameter(valid_625885, JString, required = false, - default = nil) - if valid_625885 != nil: - section.add "X-Amz-Signature", valid_625885 - var valid_625886 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625886 = validateParameter(valid_625886, JString, required = false, - default = nil) - if valid_625886 != nil: - section.add "X-Amz-Content-Sha256", valid_625886 - var valid_625887 = header.getOrDefault("X-Amz-Date") + var valid_625887 = header.getOrDefault("X-Amz-Signature") valid_625887 = validateParameter(valid_625887, JString, required = false, default = nil) if valid_625887 != nil: - section.add "X-Amz-Date", valid_625887 - var valid_625888 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625887 + var valid_625888 = header.getOrDefault("X-Amz-Content-Sha256") valid_625888 = validateParameter(valid_625888, JString, required = false, default = nil) if valid_625888 != nil: - section.add "X-Amz-Credential", valid_625888 - var valid_625889 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625888 + var valid_625889 = header.getOrDefault("X-Amz-Date") valid_625889 = validateParameter(valid_625889, JString, required = false, default = nil) if valid_625889 != nil: - section.add "X-Amz-Security-Token", valid_625889 - var valid_625890 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625889 + var valid_625890 = header.getOrDefault("X-Amz-Credential") valid_625890 = validateParameter(valid_625890, JString, required = false, default = nil) if valid_625890 != nil: - section.add "X-Amz-Algorithm", valid_625890 - var valid_625891 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625890 + var valid_625891 = header.getOrDefault("X-Amz-Security-Token") valid_625891 = validateParameter(valid_625891, JString, required = false, default = nil) if valid_625891 != nil: - section.add "X-Amz-SignedHeaders", valid_625891 + section.add "X-Amz-Security-Token", valid_625891 + var valid_625892 = header.getOrDefault("X-Amz-Algorithm") + valid_625892 = validateParameter(valid_625892, JString, required = false, + default = nil) + if valid_625892 != nil: + section.add "X-Amz-Algorithm", valid_625892 + var valid_625893 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625893 = validateParameter(valid_625893, JString, required = false, + default = nil) + if valid_625893 != nil: + section.add "X-Amz-SignedHeaders", valid_625893 result.add "header", section ## parameters in `formData` object: ## IamInstanceProfile.Arn: JString @@ -122246,42 +122273,42 @@ proc validate_PostReplaceIamInstanceProfileAssociation_625881(path: JsonNode; ## AssociationId: JString (required) ## : The ID of the existing IAM instance profile association. section = newJObject() - var valid_625892 = formData.getOrDefault("IamInstanceProfile.Arn") - valid_625892 = validateParameter(valid_625892, JString, required = false, + var valid_625894 = formData.getOrDefault("IamInstanceProfile.Arn") + valid_625894 = validateParameter(valid_625894, JString, required = false, default = nil) - if valid_625892 != nil: - section.add "IamInstanceProfile.Arn", valid_625892 - var valid_625893 = formData.getOrDefault("IamInstanceProfile.Name") - valid_625893 = validateParameter(valid_625893, JString, required = false, + if valid_625894 != nil: + section.add "IamInstanceProfile.Arn", valid_625894 + var valid_625895 = formData.getOrDefault("IamInstanceProfile.Name") + valid_625895 = validateParameter(valid_625895, JString, required = false, default = nil) - if valid_625893 != nil: - section.add "IamInstanceProfile.Name", valid_625893 + if valid_625895 != nil: + section.add "IamInstanceProfile.Name", valid_625895 assert formData != nil, "formData argument is necessary due to required `AssociationId` field" - var valid_625894 = formData.getOrDefault("AssociationId") - valid_625894 = validateParameter(valid_625894, JString, required = true, + var valid_625896 = formData.getOrDefault("AssociationId") + valid_625896 = validateParameter(valid_625896, JString, required = true, default = nil) - if valid_625894 != nil: - section.add "AssociationId", valid_625894 + if valid_625896 != nil: + section.add "AssociationId", valid_625896 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625895: Call_PostReplaceIamInstanceProfileAssociation_625880; +proc call*(call_625897: Call_PostReplaceIamInstanceProfileAssociation_625882; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Replaces an IAM instance profile for the specified running instance. You can use this action to change the IAM instance profile that's associated with an instance without having to disassociate the existing IAM instance profile first.

    Use DescribeIamInstanceProfileAssociations to get the association ID.

    ## - let valid = call_625895.validator(path, query, header, formData, body) - let scheme = call_625895.pickScheme + let valid = call_625897.validator(path, query, header, formData, body) + let scheme = call_625897.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625895.url(scheme.get, call_625895.host, call_625895.base, - call_625895.route, valid.getOrDefault("path"), + let url = call_625897.url(scheme.get, call_625897.host, call_625897.base, + call_625897.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625895, url, valid) + result = atozHook(call_625897, url, valid) -proc call*(call_625896: Call_PostReplaceIamInstanceProfileAssociation_625880; +proc call*(call_625898: Call_PostReplaceIamInstanceProfileAssociation_625882; AssociationId: string; IamInstanceProfileArn: string = ""; IamInstanceProfileName: string = ""; Action: string = "ReplaceIamInstanceProfileAssociation"; @@ -122298,26 +122325,26 @@ proc call*(call_625896: Call_PostReplaceIamInstanceProfileAssociation_625880; ## Version: string (required) ## AssociationId: string (required) ## : The ID of the existing IAM instance profile association. - var query_625897 = newJObject() - var formData_625898 = newJObject() - add(formData_625898, "IamInstanceProfile.Arn", newJString(IamInstanceProfileArn)) - add(formData_625898, "IamInstanceProfile.Name", + var query_625899 = newJObject() + var formData_625900 = newJObject() + add(formData_625900, "IamInstanceProfile.Arn", newJString(IamInstanceProfileArn)) + add(formData_625900, "IamInstanceProfile.Name", newJString(IamInstanceProfileName)) - add(query_625897, "Action", newJString(Action)) - add(query_625897, "Version", newJString(Version)) - add(formData_625898, "AssociationId", newJString(AssociationId)) - result = call_625896.call(nil, query_625897, nil, formData_625898, nil) + add(query_625899, "Action", newJString(Action)) + add(query_625899, "Version", newJString(Version)) + add(formData_625900, "AssociationId", newJString(AssociationId)) + result = call_625898.call(nil, query_625899, nil, formData_625900, nil) -var postReplaceIamInstanceProfileAssociation* = Call_PostReplaceIamInstanceProfileAssociation_625880( +var postReplaceIamInstanceProfileAssociation* = Call_PostReplaceIamInstanceProfileAssociation_625882( name: "postReplaceIamInstanceProfileAssociation", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ReplaceIamInstanceProfileAssociation", - validator: validate_PostReplaceIamInstanceProfileAssociation_625881, - base: "/", url: url_PostReplaceIamInstanceProfileAssociation_625882, + validator: validate_PostReplaceIamInstanceProfileAssociation_625883, + base: "/", url: url_PostReplaceIamInstanceProfileAssociation_625884, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetReplaceIamInstanceProfileAssociation_625862 = ref object of OpenApiRestCall_610658 -proc url_GetReplaceIamInstanceProfileAssociation_625864(protocol: Scheme; + Call_GetReplaceIamInstanceProfileAssociation_625864 = ref object of OpenApiRestCall_610658 +proc url_GetReplaceIamInstanceProfileAssociation_625866(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -122327,7 +122354,7 @@ proc url_GetReplaceIamInstanceProfileAssociation_625864(protocol: Scheme; else: result.path = base & route -proc validate_GetReplaceIamInstanceProfileAssociation_625863(path: JsonNode; +proc validate_GetReplaceIamInstanceProfileAssociation_625865(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Replaces an IAM instance profile for the specified running instance. You can use this action to change the IAM instance profile that's associated with an instance without having to disassociate the existing IAM instance profile first.

    Use DescribeIamInstanceProfileAssociations to get the association ID.

    ## @@ -122349,31 +122376,31 @@ proc validate_GetReplaceIamInstanceProfileAssociation_625863(path: JsonNode; section = newJObject() assert query != nil, "query argument is necessary due to required `AssociationId` field" - var valid_625865 = query.getOrDefault("AssociationId") - valid_625865 = validateParameter(valid_625865, JString, required = true, - default = nil) - if valid_625865 != nil: - section.add "AssociationId", valid_625865 - var valid_625866 = query.getOrDefault("Action") - valid_625866 = validateParameter(valid_625866, JString, required = true, default = newJString( - "ReplaceIamInstanceProfileAssociation")) - if valid_625866 != nil: - section.add "Action", valid_625866 - var valid_625867 = query.getOrDefault("IamInstanceProfile.Arn") - valid_625867 = validateParameter(valid_625867, JString, required = false, + var valid_625867 = query.getOrDefault("AssociationId") + valid_625867 = validateParameter(valid_625867, JString, required = true, default = nil) if valid_625867 != nil: - section.add "IamInstanceProfile.Arn", valid_625867 - var valid_625868 = query.getOrDefault("Version") - valid_625868 = validateParameter(valid_625868, JString, required = true, - default = newJString("2016-11-15")) + section.add "AssociationId", valid_625867 + var valid_625868 = query.getOrDefault("Action") + valid_625868 = validateParameter(valid_625868, JString, required = true, default = newJString( + "ReplaceIamInstanceProfileAssociation")) if valid_625868 != nil: - section.add "Version", valid_625868 - var valid_625869 = query.getOrDefault("IamInstanceProfile.Name") + section.add "Action", valid_625868 + var valid_625869 = query.getOrDefault("IamInstanceProfile.Arn") valid_625869 = validateParameter(valid_625869, JString, required = false, default = nil) if valid_625869 != nil: - section.add "IamInstanceProfile.Name", valid_625869 + section.add "IamInstanceProfile.Arn", valid_625869 + var valid_625870 = query.getOrDefault("Version") + valid_625870 = validateParameter(valid_625870, JString, required = true, + default = newJString("2016-11-15")) + if valid_625870 != nil: + section.add "Version", valid_625870 + var valid_625871 = query.getOrDefault("IamInstanceProfile.Name") + valid_625871 = validateParameter(valid_625871, JString, required = false, + default = nil) + if valid_625871 != nil: + section.add "IamInstanceProfile.Name", valid_625871 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -122384,62 +122411,62 @@ proc validate_GetReplaceIamInstanceProfileAssociation_625863(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625870 = header.getOrDefault("X-Amz-Signature") - valid_625870 = validateParameter(valid_625870, JString, required = false, - default = nil) - if valid_625870 != nil: - section.add "X-Amz-Signature", valid_625870 - var valid_625871 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625871 = validateParameter(valid_625871, JString, required = false, - default = nil) - if valid_625871 != nil: - section.add "X-Amz-Content-Sha256", valid_625871 - var valid_625872 = header.getOrDefault("X-Amz-Date") + var valid_625872 = header.getOrDefault("X-Amz-Signature") valid_625872 = validateParameter(valid_625872, JString, required = false, default = nil) if valid_625872 != nil: - section.add "X-Amz-Date", valid_625872 - var valid_625873 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625872 + var valid_625873 = header.getOrDefault("X-Amz-Content-Sha256") valid_625873 = validateParameter(valid_625873, JString, required = false, default = nil) if valid_625873 != nil: - section.add "X-Amz-Credential", valid_625873 - var valid_625874 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625873 + var valid_625874 = header.getOrDefault("X-Amz-Date") valid_625874 = validateParameter(valid_625874, JString, required = false, default = nil) if valid_625874 != nil: - section.add "X-Amz-Security-Token", valid_625874 - var valid_625875 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625874 + var valid_625875 = header.getOrDefault("X-Amz-Credential") valid_625875 = validateParameter(valid_625875, JString, required = false, default = nil) if valid_625875 != nil: - section.add "X-Amz-Algorithm", valid_625875 - var valid_625876 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625875 + var valid_625876 = header.getOrDefault("X-Amz-Security-Token") valid_625876 = validateParameter(valid_625876, JString, required = false, default = nil) if valid_625876 != nil: - section.add "X-Amz-SignedHeaders", valid_625876 + section.add "X-Amz-Security-Token", valid_625876 + var valid_625877 = header.getOrDefault("X-Amz-Algorithm") + valid_625877 = validateParameter(valid_625877, JString, required = false, + default = nil) + if valid_625877 != nil: + section.add "X-Amz-Algorithm", valid_625877 + var valid_625878 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625878 = validateParameter(valid_625878, JString, required = false, + default = nil) + if valid_625878 != nil: + section.add "X-Amz-SignedHeaders", valid_625878 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625877: Call_GetReplaceIamInstanceProfileAssociation_625862; +proc call*(call_625879: Call_GetReplaceIamInstanceProfileAssociation_625864; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Replaces an IAM instance profile for the specified running instance. You can use this action to change the IAM instance profile that's associated with an instance without having to disassociate the existing IAM instance profile first.

    Use DescribeIamInstanceProfileAssociations to get the association ID.

    ## - let valid = call_625877.validator(path, query, header, formData, body) - let scheme = call_625877.pickScheme + let valid = call_625879.validator(path, query, header, formData, body) + let scheme = call_625879.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625877.url(scheme.get, call_625877.host, call_625877.base, - call_625877.route, valid.getOrDefault("path"), + let url = call_625879.url(scheme.get, call_625879.host, call_625879.base, + call_625879.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625877, url, valid) + result = atozHook(call_625879, url, valid) -proc call*(call_625878: Call_GetReplaceIamInstanceProfileAssociation_625862; +proc call*(call_625880: Call_GetReplaceIamInstanceProfileAssociation_625864; AssociationId: string; Action: string = "ReplaceIamInstanceProfileAssociation"; IamInstanceProfileArn: string = ""; Version: string = "2016-11-15"; @@ -122456,24 +122483,24 @@ proc call*(call_625878: Call_GetReplaceIamInstanceProfileAssociation_625862; ## IamInstanceProfileName: string ## : Describes an IAM instance profile. ## The name of the instance profile. - var query_625879 = newJObject() - add(query_625879, "AssociationId", newJString(AssociationId)) - add(query_625879, "Action", newJString(Action)) - add(query_625879, "IamInstanceProfile.Arn", newJString(IamInstanceProfileArn)) - add(query_625879, "Version", newJString(Version)) - add(query_625879, "IamInstanceProfile.Name", newJString(IamInstanceProfileName)) - result = call_625878.call(nil, query_625879, nil, nil, nil) - -var getReplaceIamInstanceProfileAssociation* = Call_GetReplaceIamInstanceProfileAssociation_625862( + var query_625881 = newJObject() + add(query_625881, "AssociationId", newJString(AssociationId)) + add(query_625881, "Action", newJString(Action)) + add(query_625881, "IamInstanceProfile.Arn", newJString(IamInstanceProfileArn)) + add(query_625881, "Version", newJString(Version)) + add(query_625881, "IamInstanceProfile.Name", newJString(IamInstanceProfileName)) + result = call_625880.call(nil, query_625881, nil, nil, nil) + +var getReplaceIamInstanceProfileAssociation* = Call_GetReplaceIamInstanceProfileAssociation_625864( name: "getReplaceIamInstanceProfileAssociation", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ReplaceIamInstanceProfileAssociation", - validator: validate_GetReplaceIamInstanceProfileAssociation_625863, base: "/", - url: url_GetReplaceIamInstanceProfileAssociation_625864, + validator: validate_GetReplaceIamInstanceProfileAssociation_625865, base: "/", + url: url_GetReplaceIamInstanceProfileAssociation_625866, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostReplaceNetworkAclAssociation_625917 = ref object of OpenApiRestCall_610658 -proc url_PostReplaceNetworkAclAssociation_625919(protocol: Scheme; host: string; + Call_PostReplaceNetworkAclAssociation_625919 = ref object of OpenApiRestCall_610658 +proc url_PostReplaceNetworkAclAssociation_625921(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -122483,7 +122510,7 @@ proc url_PostReplaceNetworkAclAssociation_625919(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostReplaceNetworkAclAssociation_625918(path: JsonNode; +proc validate_PostReplaceNetworkAclAssociation_625920(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Changes which network ACL a subnet is associated with. By default when you create a subnet, it's automatically associated with the default network ACL. For more information, see Network ACLs in the Amazon Virtual Private Cloud User Guide.

    This is an idempotent operation.

    ## @@ -122495,16 +122522,16 @@ proc validate_PostReplaceNetworkAclAssociation_625918(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625920 = query.getOrDefault("Action") - valid_625920 = validateParameter(valid_625920, JString, required = true, default = newJString( + var valid_625922 = query.getOrDefault("Action") + valid_625922 = validateParameter(valid_625922, JString, required = true, default = newJString( "ReplaceNetworkAclAssociation")) - if valid_625920 != nil: - section.add "Action", valid_625920 - var valid_625921 = query.getOrDefault("Version") - valid_625921 = validateParameter(valid_625921, JString, required = true, + if valid_625922 != nil: + section.add "Action", valid_625922 + var valid_625923 = query.getOrDefault("Version") + valid_625923 = validateParameter(valid_625923, JString, required = true, default = newJString("2016-11-15")) - if valid_625921 != nil: - section.add "Version", valid_625921 + if valid_625923 != nil: + section.add "Version", valid_625923 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -122515,41 +122542,41 @@ proc validate_PostReplaceNetworkAclAssociation_625918(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625922 = header.getOrDefault("X-Amz-Signature") - valid_625922 = validateParameter(valid_625922, JString, required = false, - default = nil) - if valid_625922 != nil: - section.add "X-Amz-Signature", valid_625922 - var valid_625923 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625923 = validateParameter(valid_625923, JString, required = false, - default = nil) - if valid_625923 != nil: - section.add "X-Amz-Content-Sha256", valid_625923 - var valid_625924 = header.getOrDefault("X-Amz-Date") + var valid_625924 = header.getOrDefault("X-Amz-Signature") valid_625924 = validateParameter(valid_625924, JString, required = false, default = nil) if valid_625924 != nil: - section.add "X-Amz-Date", valid_625924 - var valid_625925 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625924 + var valid_625925 = header.getOrDefault("X-Amz-Content-Sha256") valid_625925 = validateParameter(valid_625925, JString, required = false, default = nil) if valid_625925 != nil: - section.add "X-Amz-Credential", valid_625925 - var valid_625926 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625925 + var valid_625926 = header.getOrDefault("X-Amz-Date") valid_625926 = validateParameter(valid_625926, JString, required = false, default = nil) if valid_625926 != nil: - section.add "X-Amz-Security-Token", valid_625926 - var valid_625927 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625926 + var valid_625927 = header.getOrDefault("X-Amz-Credential") valid_625927 = validateParameter(valid_625927, JString, required = false, default = nil) if valid_625927 != nil: - section.add "X-Amz-Algorithm", valid_625927 - var valid_625928 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625927 + var valid_625928 = header.getOrDefault("X-Amz-Security-Token") valid_625928 = validateParameter(valid_625928, JString, required = false, default = nil) if valid_625928 != nil: - section.add "X-Amz-SignedHeaders", valid_625928 + section.add "X-Amz-Security-Token", valid_625928 + var valid_625929 = header.getOrDefault("X-Amz-Algorithm") + valid_625929 = validateParameter(valid_625929, JString, required = false, + default = nil) + if valid_625929 != nil: + section.add "X-Amz-Algorithm", valid_625929 + var valid_625930 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625930 = validateParameter(valid_625930, JString, required = false, + default = nil) + if valid_625930 != nil: + section.add "X-Amz-SignedHeaders", valid_625930 result.add "header", section ## parameters in `formData` object: ## NetworkAclId: JString (required) @@ -122561,39 +122588,39 @@ proc validate_PostReplaceNetworkAclAssociation_625918(path: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `NetworkAclId` field" - var valid_625929 = formData.getOrDefault("NetworkAclId") - valid_625929 = validateParameter(valid_625929, JString, required = true, - default = nil) - if valid_625929 != nil: - section.add "NetworkAclId", valid_625929 - var valid_625930 = formData.getOrDefault("DryRun") - valid_625930 = validateParameter(valid_625930, JBool, required = false, default = nil) - if valid_625930 != nil: - section.add "DryRun", valid_625930 - var valid_625931 = formData.getOrDefault("AssociationId") + var valid_625931 = formData.getOrDefault("NetworkAclId") valid_625931 = validateParameter(valid_625931, JString, required = true, default = nil) if valid_625931 != nil: - section.add "AssociationId", valid_625931 + section.add "NetworkAclId", valid_625931 + var valid_625932 = formData.getOrDefault("DryRun") + valid_625932 = validateParameter(valid_625932, JBool, required = false, default = nil) + if valid_625932 != nil: + section.add "DryRun", valid_625932 + var valid_625933 = formData.getOrDefault("AssociationId") + valid_625933 = validateParameter(valid_625933, JString, required = true, + default = nil) + if valid_625933 != nil: + section.add "AssociationId", valid_625933 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625932: Call_PostReplaceNetworkAclAssociation_625917; +proc call*(call_625934: Call_PostReplaceNetworkAclAssociation_625919; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Changes which network ACL a subnet is associated with. By default when you create a subnet, it's automatically associated with the default network ACL. For more information, see Network ACLs in the Amazon Virtual Private Cloud User Guide.

    This is an idempotent operation.

    ## - let valid = call_625932.validator(path, query, header, formData, body) - let scheme = call_625932.pickScheme + let valid = call_625934.validator(path, query, header, formData, body) + let scheme = call_625934.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625932.url(scheme.get, call_625932.host, call_625932.base, - call_625932.route, valid.getOrDefault("path"), + let url = call_625934.url(scheme.get, call_625934.host, call_625934.base, + call_625934.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625932, url, valid) + result = atozHook(call_625934, url, valid) -proc call*(call_625933: Call_PostReplaceNetworkAclAssociation_625917; +proc call*(call_625935: Call_PostReplaceNetworkAclAssociation_625919; NetworkAclId: string; AssociationId: string; DryRun: bool = false; Action: string = "ReplaceNetworkAclAssociation"; Version: string = "2016-11-15"): Recallable = @@ -122607,24 +122634,24 @@ proc call*(call_625933: Call_PostReplaceNetworkAclAssociation_625917; ## Version: string (required) ## AssociationId: string (required) ## : The ID of the current association between the original network ACL and the subnet. - var query_625934 = newJObject() - var formData_625935 = newJObject() - add(formData_625935, "NetworkAclId", newJString(NetworkAclId)) - add(formData_625935, "DryRun", newJBool(DryRun)) - add(query_625934, "Action", newJString(Action)) - add(query_625934, "Version", newJString(Version)) - add(formData_625935, "AssociationId", newJString(AssociationId)) - result = call_625933.call(nil, query_625934, nil, formData_625935, nil) - -var postReplaceNetworkAclAssociation* = Call_PostReplaceNetworkAclAssociation_625917( + var query_625936 = newJObject() + var formData_625937 = newJObject() + add(formData_625937, "NetworkAclId", newJString(NetworkAclId)) + add(formData_625937, "DryRun", newJBool(DryRun)) + add(query_625936, "Action", newJString(Action)) + add(query_625936, "Version", newJString(Version)) + add(formData_625937, "AssociationId", newJString(AssociationId)) + result = call_625935.call(nil, query_625936, nil, formData_625937, nil) + +var postReplaceNetworkAclAssociation* = Call_PostReplaceNetworkAclAssociation_625919( name: "postReplaceNetworkAclAssociation", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ReplaceNetworkAclAssociation", - validator: validate_PostReplaceNetworkAclAssociation_625918, base: "/", - url: url_PostReplaceNetworkAclAssociation_625919, + validator: validate_PostReplaceNetworkAclAssociation_625920, base: "/", + url: url_PostReplaceNetworkAclAssociation_625921, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetReplaceNetworkAclAssociation_625899 = ref object of OpenApiRestCall_610658 -proc url_GetReplaceNetworkAclAssociation_625901(protocol: Scheme; host: string; + Call_GetReplaceNetworkAclAssociation_625901 = ref object of OpenApiRestCall_610658 +proc url_GetReplaceNetworkAclAssociation_625903(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -122634,7 +122661,7 @@ proc url_GetReplaceNetworkAclAssociation_625901(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetReplaceNetworkAclAssociation_625900(path: JsonNode; +proc validate_GetReplaceNetworkAclAssociation_625902(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Changes which network ACL a subnet is associated with. By default when you create a subnet, it's automatically associated with the default network ACL. For more information, see Network ACLs in the Amazon Virtual Private Cloud User Guide.

    This is an idempotent operation.

    ## @@ -122652,32 +122679,32 @@ proc validate_GetReplaceNetworkAclAssociation_625900(path: JsonNode; ## : The ID of the new network ACL to associate with the subnet. ## Version: JString (required) section = newJObject() - var valid_625902 = query.getOrDefault("DryRun") - valid_625902 = validateParameter(valid_625902, JBool, required = false, default = nil) - if valid_625902 != nil: - section.add "DryRun", valid_625902 + var valid_625904 = query.getOrDefault("DryRun") + valid_625904 = validateParameter(valid_625904, JBool, required = false, default = nil) + if valid_625904 != nil: + section.add "DryRun", valid_625904 assert query != nil, "query argument is necessary due to required `AssociationId` field" - var valid_625903 = query.getOrDefault("AssociationId") - valid_625903 = validateParameter(valid_625903, JString, required = true, - default = nil) - if valid_625903 != nil: - section.add "AssociationId", valid_625903 - var valid_625904 = query.getOrDefault("Action") - valid_625904 = validateParameter(valid_625904, JString, required = true, default = newJString( - "ReplaceNetworkAclAssociation")) - if valid_625904 != nil: - section.add "Action", valid_625904 - var valid_625905 = query.getOrDefault("NetworkAclId") + var valid_625905 = query.getOrDefault("AssociationId") valid_625905 = validateParameter(valid_625905, JString, required = true, default = nil) if valid_625905 != nil: - section.add "NetworkAclId", valid_625905 - var valid_625906 = query.getOrDefault("Version") - valid_625906 = validateParameter(valid_625906, JString, required = true, - default = newJString("2016-11-15")) + section.add "AssociationId", valid_625905 + var valid_625906 = query.getOrDefault("Action") + valid_625906 = validateParameter(valid_625906, JString, required = true, default = newJString( + "ReplaceNetworkAclAssociation")) if valid_625906 != nil: - section.add "Version", valid_625906 + section.add "Action", valid_625906 + var valid_625907 = query.getOrDefault("NetworkAclId") + valid_625907 = validateParameter(valid_625907, JString, required = true, + default = nil) + if valid_625907 != nil: + section.add "NetworkAclId", valid_625907 + var valid_625908 = query.getOrDefault("Version") + valid_625908 = validateParameter(valid_625908, JString, required = true, + default = newJString("2016-11-15")) + if valid_625908 != nil: + section.add "Version", valid_625908 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -122688,62 +122715,62 @@ proc validate_GetReplaceNetworkAclAssociation_625900(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625907 = header.getOrDefault("X-Amz-Signature") - valid_625907 = validateParameter(valid_625907, JString, required = false, - default = nil) - if valid_625907 != nil: - section.add "X-Amz-Signature", valid_625907 - var valid_625908 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625908 = validateParameter(valid_625908, JString, required = false, - default = nil) - if valid_625908 != nil: - section.add "X-Amz-Content-Sha256", valid_625908 - var valid_625909 = header.getOrDefault("X-Amz-Date") + var valid_625909 = header.getOrDefault("X-Amz-Signature") valid_625909 = validateParameter(valid_625909, JString, required = false, default = nil) if valid_625909 != nil: - section.add "X-Amz-Date", valid_625909 - var valid_625910 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625909 + var valid_625910 = header.getOrDefault("X-Amz-Content-Sha256") valid_625910 = validateParameter(valid_625910, JString, required = false, default = nil) if valid_625910 != nil: - section.add "X-Amz-Credential", valid_625910 - var valid_625911 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625910 + var valid_625911 = header.getOrDefault("X-Amz-Date") valid_625911 = validateParameter(valid_625911, JString, required = false, default = nil) if valid_625911 != nil: - section.add "X-Amz-Security-Token", valid_625911 - var valid_625912 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625911 + var valid_625912 = header.getOrDefault("X-Amz-Credential") valid_625912 = validateParameter(valid_625912, JString, required = false, default = nil) if valid_625912 != nil: - section.add "X-Amz-Algorithm", valid_625912 - var valid_625913 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625912 + var valid_625913 = header.getOrDefault("X-Amz-Security-Token") valid_625913 = validateParameter(valid_625913, JString, required = false, default = nil) if valid_625913 != nil: - section.add "X-Amz-SignedHeaders", valid_625913 + section.add "X-Amz-Security-Token", valid_625913 + var valid_625914 = header.getOrDefault("X-Amz-Algorithm") + valid_625914 = validateParameter(valid_625914, JString, required = false, + default = nil) + if valid_625914 != nil: + section.add "X-Amz-Algorithm", valid_625914 + var valid_625915 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625915 = validateParameter(valid_625915, JString, required = false, + default = nil) + if valid_625915 != nil: + section.add "X-Amz-SignedHeaders", valid_625915 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625914: Call_GetReplaceNetworkAclAssociation_625899; +proc call*(call_625916: Call_GetReplaceNetworkAclAssociation_625901; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Changes which network ACL a subnet is associated with. By default when you create a subnet, it's automatically associated with the default network ACL. For more information, see Network ACLs in the Amazon Virtual Private Cloud User Guide.

    This is an idempotent operation.

    ## - let valid = call_625914.validator(path, query, header, formData, body) - let scheme = call_625914.pickScheme + let valid = call_625916.validator(path, query, header, formData, body) + let scheme = call_625916.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625914.url(scheme.get, call_625914.host, call_625914.base, - call_625914.route, valid.getOrDefault("path"), + let url = call_625916.url(scheme.get, call_625916.host, call_625916.base, + call_625916.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625914, url, valid) + result = atozHook(call_625916, url, valid) -proc call*(call_625915: Call_GetReplaceNetworkAclAssociation_625899; +proc call*(call_625917: Call_GetReplaceNetworkAclAssociation_625901; AssociationId: string; NetworkAclId: string; DryRun: bool = false; Action: string = "ReplaceNetworkAclAssociation"; Version: string = "2016-11-15"): Recallable = @@ -122757,23 +122784,23 @@ proc call*(call_625915: Call_GetReplaceNetworkAclAssociation_625899; ## NetworkAclId: string (required) ## : The ID of the new network ACL to associate with the subnet. ## Version: string (required) - var query_625916 = newJObject() - add(query_625916, "DryRun", newJBool(DryRun)) - add(query_625916, "AssociationId", newJString(AssociationId)) - add(query_625916, "Action", newJString(Action)) - add(query_625916, "NetworkAclId", newJString(NetworkAclId)) - add(query_625916, "Version", newJString(Version)) - result = call_625915.call(nil, query_625916, nil, nil, nil) + var query_625918 = newJObject() + add(query_625918, "DryRun", newJBool(DryRun)) + add(query_625918, "AssociationId", newJString(AssociationId)) + add(query_625918, "Action", newJString(Action)) + add(query_625918, "NetworkAclId", newJString(NetworkAclId)) + add(query_625918, "Version", newJString(Version)) + result = call_625917.call(nil, query_625918, nil, nil, nil) -var getReplaceNetworkAclAssociation* = Call_GetReplaceNetworkAclAssociation_625899( +var getReplaceNetworkAclAssociation* = Call_GetReplaceNetworkAclAssociation_625901( name: "getReplaceNetworkAclAssociation", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ReplaceNetworkAclAssociation", - validator: validate_GetReplaceNetworkAclAssociation_625900, base: "/", - url: url_GetReplaceNetworkAclAssociation_625901, + validator: validate_GetReplaceNetworkAclAssociation_625902, base: "/", + url: url_GetReplaceNetworkAclAssociation_625903, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostReplaceNetworkAclEntry_625963 = ref object of OpenApiRestCall_610658 -proc url_PostReplaceNetworkAclEntry_625965(protocol: Scheme; host: string; + Call_PostReplaceNetworkAclEntry_625965 = ref object of OpenApiRestCall_610658 +proc url_PostReplaceNetworkAclEntry_625967(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -122783,7 +122810,7 @@ proc url_PostReplaceNetworkAclEntry_625965(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostReplaceNetworkAclEntry_625964(path: JsonNode; query: JsonNode; +proc validate_PostReplaceNetworkAclEntry_625966(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Replaces an entry (rule) in a network ACL. For more information, see Network ACLs in the Amazon Virtual Private Cloud User Guide. ## @@ -122795,16 +122822,16 @@ proc validate_PostReplaceNetworkAclEntry_625964(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_625966 = query.getOrDefault("Action") - valid_625966 = validateParameter(valid_625966, JString, required = true, + var valid_625968 = query.getOrDefault("Action") + valid_625968 = validateParameter(valid_625968, JString, required = true, default = newJString("ReplaceNetworkAclEntry")) - if valid_625966 != nil: - section.add "Action", valid_625966 - var valid_625967 = query.getOrDefault("Version") - valid_625967 = validateParameter(valid_625967, JString, required = true, + if valid_625968 != nil: + section.add "Action", valid_625968 + var valid_625969 = query.getOrDefault("Version") + valid_625969 = validateParameter(valid_625969, JString, required = true, default = newJString("2016-11-15")) - if valid_625967 != nil: - section.add "Version", valid_625967 + if valid_625969 != nil: + section.add "Version", valid_625969 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -122815,41 +122842,41 @@ proc validate_PostReplaceNetworkAclEntry_625964(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625968 = header.getOrDefault("X-Amz-Signature") - valid_625968 = validateParameter(valid_625968, JString, required = false, - default = nil) - if valid_625968 != nil: - section.add "X-Amz-Signature", valid_625968 - var valid_625969 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625969 = validateParameter(valid_625969, JString, required = false, - default = nil) - if valid_625969 != nil: - section.add "X-Amz-Content-Sha256", valid_625969 - var valid_625970 = header.getOrDefault("X-Amz-Date") + var valid_625970 = header.getOrDefault("X-Amz-Signature") valid_625970 = validateParameter(valid_625970, JString, required = false, default = nil) if valid_625970 != nil: - section.add "X-Amz-Date", valid_625970 - var valid_625971 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625970 + var valid_625971 = header.getOrDefault("X-Amz-Content-Sha256") valid_625971 = validateParameter(valid_625971, JString, required = false, default = nil) if valid_625971 != nil: - section.add "X-Amz-Credential", valid_625971 - var valid_625972 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625971 + var valid_625972 = header.getOrDefault("X-Amz-Date") valid_625972 = validateParameter(valid_625972, JString, required = false, default = nil) if valid_625972 != nil: - section.add "X-Amz-Security-Token", valid_625972 - var valid_625973 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625972 + var valid_625973 = header.getOrDefault("X-Amz-Credential") valid_625973 = validateParameter(valid_625973, JString, required = false, default = nil) if valid_625973 != nil: - section.add "X-Amz-Algorithm", valid_625973 - var valid_625974 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625973 + var valid_625974 = header.getOrDefault("X-Amz-Security-Token") valid_625974 = validateParameter(valid_625974, JString, required = false, default = nil) if valid_625974 != nil: - section.add "X-Amz-SignedHeaders", valid_625974 + section.add "X-Amz-Security-Token", valid_625974 + var valid_625975 = header.getOrDefault("X-Amz-Algorithm") + valid_625975 = validateParameter(valid_625975, JString, required = false, + default = nil) + if valid_625975 != nil: + section.add "X-Amz-Algorithm", valid_625975 + var valid_625976 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625976 = validateParameter(valid_625976, JString, required = false, + default = nil) + if valid_625976 != nil: + section.add "X-Amz-SignedHeaders", valid_625976 result.add "header", section ## parameters in `formData` object: ## RuleNumber: JInt (required) @@ -122883,81 +122910,81 @@ proc validate_PostReplaceNetworkAclEntry_625964(path: JsonNode; query: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `RuleNumber` field" - var valid_625975 = formData.getOrDefault("RuleNumber") - valid_625975 = validateParameter(valid_625975, JInt, required = true, default = nil) - if valid_625975 != nil: - section.add "RuleNumber", valid_625975 - var valid_625976 = formData.getOrDefault("PortRange.From") - valid_625976 = validateParameter(valid_625976, JString, required = false, - default = nil) - if valid_625976 != nil: - section.add "PortRange.From", valid_625976 - var valid_625977 = formData.getOrDefault("RuleAction") - valid_625977 = validateParameter(valid_625977, JString, required = true, - default = newJString("allow")) + var valid_625977 = formData.getOrDefault("RuleNumber") + valid_625977 = validateParameter(valid_625977, JInt, required = true, default = nil) if valid_625977 != nil: - section.add "RuleAction", valid_625977 - var valid_625978 = formData.getOrDefault("Icmp.Type") + section.add "RuleNumber", valid_625977 + var valid_625978 = formData.getOrDefault("PortRange.From") valid_625978 = validateParameter(valid_625978, JString, required = false, default = nil) if valid_625978 != nil: - section.add "Icmp.Type", valid_625978 - var valid_625979 = formData.getOrDefault("CidrBlock") - valid_625979 = validateParameter(valid_625979, JString, required = false, - default = nil) + section.add "PortRange.From", valid_625978 + var valid_625979 = formData.getOrDefault("RuleAction") + valid_625979 = validateParameter(valid_625979, JString, required = true, + default = newJString("allow")) if valid_625979 != nil: - section.add "CidrBlock", valid_625979 - var valid_625980 = formData.getOrDefault("Protocol") - valid_625980 = validateParameter(valid_625980, JString, required = true, + section.add "RuleAction", valid_625979 + var valid_625980 = formData.getOrDefault("Icmp.Type") + valid_625980 = validateParameter(valid_625980, JString, required = false, default = nil) if valid_625980 != nil: - section.add "Protocol", valid_625980 - var valid_625981 = formData.getOrDefault("NetworkAclId") - valid_625981 = validateParameter(valid_625981, JString, required = true, + section.add "Icmp.Type", valid_625980 + var valid_625981 = formData.getOrDefault("CidrBlock") + valid_625981 = validateParameter(valid_625981, JString, required = false, default = nil) if valid_625981 != nil: - section.add "NetworkAclId", valid_625981 - var valid_625982 = formData.getOrDefault("DryRun") - valid_625982 = validateParameter(valid_625982, JBool, required = false, default = nil) + section.add "CidrBlock", valid_625981 + var valid_625982 = formData.getOrDefault("Protocol") + valid_625982 = validateParameter(valid_625982, JString, required = true, + default = nil) if valid_625982 != nil: - section.add "DryRun", valid_625982 - var valid_625983 = formData.getOrDefault("Egress") - valid_625983 = validateParameter(valid_625983, JBool, required = true, default = nil) - if valid_625983 != nil: - section.add "Egress", valid_625983 - var valid_625984 = formData.getOrDefault("Icmp.Code") - valid_625984 = validateParameter(valid_625984, JString, required = false, + section.add "Protocol", valid_625982 + var valid_625983 = formData.getOrDefault("NetworkAclId") + valid_625983 = validateParameter(valid_625983, JString, required = true, default = nil) + if valid_625983 != nil: + section.add "NetworkAclId", valid_625983 + var valid_625984 = formData.getOrDefault("DryRun") + valid_625984 = validateParameter(valid_625984, JBool, required = false, default = nil) if valid_625984 != nil: - section.add "Icmp.Code", valid_625984 - var valid_625985 = formData.getOrDefault("PortRange.To") - valid_625985 = validateParameter(valid_625985, JString, required = false, - default = nil) + section.add "DryRun", valid_625984 + var valid_625985 = formData.getOrDefault("Egress") + valid_625985 = validateParameter(valid_625985, JBool, required = true, default = nil) if valid_625985 != nil: - section.add "PortRange.To", valid_625985 - var valid_625986 = formData.getOrDefault("Ipv6CidrBlock") + section.add "Egress", valid_625985 + var valid_625986 = formData.getOrDefault("Icmp.Code") valid_625986 = validateParameter(valid_625986, JString, required = false, default = nil) if valid_625986 != nil: - section.add "Ipv6CidrBlock", valid_625986 + section.add "Icmp.Code", valid_625986 + var valid_625987 = formData.getOrDefault("PortRange.To") + valid_625987 = validateParameter(valid_625987, JString, required = false, + default = nil) + if valid_625987 != nil: + section.add "PortRange.To", valid_625987 + var valid_625988 = formData.getOrDefault("Ipv6CidrBlock") + valid_625988 = validateParameter(valid_625988, JString, required = false, + default = nil) + if valid_625988 != nil: + section.add "Ipv6CidrBlock", valid_625988 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625987: Call_PostReplaceNetworkAclEntry_625963; path: JsonNode; +proc call*(call_625989: Call_PostReplaceNetworkAclEntry_625965; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Replaces an entry (rule) in a network ACL. For more information, see Network ACLs in the Amazon Virtual Private Cloud User Guide. ## - let valid = call_625987.validator(path, query, header, formData, body) - let scheme = call_625987.pickScheme + let valid = call_625989.validator(path, query, header, formData, body) + let scheme = call_625989.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625987.url(scheme.get, call_625987.host, call_625987.base, - call_625987.route, valid.getOrDefault("path"), + let url = call_625989.url(scheme.get, call_625989.host, call_625989.base, + call_625989.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625987, url, valid) + result = atozHook(call_625989, url, valid) -proc call*(call_625988: Call_PostReplaceNetworkAclEntry_625963; RuleNumber: int; +proc call*(call_625990: Call_PostReplaceNetworkAclEntry_625965; RuleNumber: int; Protocol: string; NetworkAclId: string; Egress: bool; PortRangeFrom: string = ""; RuleAction: string = "allow"; IcmpType: string = ""; CidrBlock: string = ""; DryRun: bool = false; @@ -122995,33 +123022,33 @@ proc call*(call_625988: Call_PostReplaceNetworkAclEntry_625963; RuleNumber: int; ## The last port in the range. ## Ipv6CidrBlock: string ## : The IPv6 network range to allow or deny, in CIDR notation (for example 2001:bd8:1234:1a00::/64). - var query_625989 = newJObject() - var formData_625990 = newJObject() - add(formData_625990, "RuleNumber", newJInt(RuleNumber)) - add(formData_625990, "PortRange.From", newJString(PortRangeFrom)) - add(formData_625990, "RuleAction", newJString(RuleAction)) - add(formData_625990, "Icmp.Type", newJString(IcmpType)) - add(formData_625990, "CidrBlock", newJString(CidrBlock)) - add(formData_625990, "Protocol", newJString(Protocol)) - add(formData_625990, "NetworkAclId", newJString(NetworkAclId)) - add(formData_625990, "DryRun", newJBool(DryRun)) - add(query_625989, "Action", newJString(Action)) - add(formData_625990, "Egress", newJBool(Egress)) - add(query_625989, "Version", newJString(Version)) - add(formData_625990, "Icmp.Code", newJString(IcmpCode)) - add(formData_625990, "PortRange.To", newJString(PortRangeTo)) - add(formData_625990, "Ipv6CidrBlock", newJString(Ipv6CidrBlock)) - result = call_625988.call(nil, query_625989, nil, formData_625990, nil) - -var postReplaceNetworkAclEntry* = Call_PostReplaceNetworkAclEntry_625963( + var query_625991 = newJObject() + var formData_625992 = newJObject() + add(formData_625992, "RuleNumber", newJInt(RuleNumber)) + add(formData_625992, "PortRange.From", newJString(PortRangeFrom)) + add(formData_625992, "RuleAction", newJString(RuleAction)) + add(formData_625992, "Icmp.Type", newJString(IcmpType)) + add(formData_625992, "CidrBlock", newJString(CidrBlock)) + add(formData_625992, "Protocol", newJString(Protocol)) + add(formData_625992, "NetworkAclId", newJString(NetworkAclId)) + add(formData_625992, "DryRun", newJBool(DryRun)) + add(query_625991, "Action", newJString(Action)) + add(formData_625992, "Egress", newJBool(Egress)) + add(query_625991, "Version", newJString(Version)) + add(formData_625992, "Icmp.Code", newJString(IcmpCode)) + add(formData_625992, "PortRange.To", newJString(PortRangeTo)) + add(formData_625992, "Ipv6CidrBlock", newJString(Ipv6CidrBlock)) + result = call_625990.call(nil, query_625991, nil, formData_625992, nil) + +var postReplaceNetworkAclEntry* = Call_PostReplaceNetworkAclEntry_625965( name: "postReplaceNetworkAclEntry", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ReplaceNetworkAclEntry", - validator: validate_PostReplaceNetworkAclEntry_625964, base: "/", - url: url_PostReplaceNetworkAclEntry_625965, + validator: validate_PostReplaceNetworkAclEntry_625966, base: "/", + url: url_PostReplaceNetworkAclEntry_625967, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetReplaceNetworkAclEntry_625936 = ref object of OpenApiRestCall_610658 -proc url_GetReplaceNetworkAclEntry_625938(protocol: Scheme; host: string; + Call_GetReplaceNetworkAclEntry_625938 = ref object of OpenApiRestCall_610658 +proc url_GetReplaceNetworkAclEntry_625940(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -123031,7 +123058,7 @@ proc url_GetReplaceNetworkAclEntry_625938(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetReplaceNetworkAclEntry_625937(path: JsonNode; query: JsonNode; +proc validate_GetReplaceNetworkAclEntry_625939(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Replaces an entry (rule) in a network ACL. For more information, see Network ACLs in the Amazon Virtual Private Cloud User Guide. ## @@ -123071,75 +123098,75 @@ proc validate_GetReplaceNetworkAclEntry_625937(path: JsonNode; query: JsonNode; ## Egress: JBool (required) ## :

    Indicates whether to replace the egress rule.

    Default: If no value is specified, we replace the ingress rule.

    section = newJObject() - var valid_625939 = query.getOrDefault("PortRange.To") - valid_625939 = validateParameter(valid_625939, JString, required = false, - default = nil) - if valid_625939 != nil: - section.add "PortRange.To", valid_625939 - var valid_625940 = query.getOrDefault("DryRun") - valid_625940 = validateParameter(valid_625940, JBool, required = false, default = nil) - if valid_625940 != nil: - section.add "DryRun", valid_625940 - var valid_625941 = query.getOrDefault("Icmp.Type") + var valid_625941 = query.getOrDefault("PortRange.To") valid_625941 = validateParameter(valid_625941, JString, required = false, default = nil) if valid_625941 != nil: - section.add "Icmp.Type", valid_625941 - assert query != nil, - "query argument is necessary due to required `RuleNumber` field" - var valid_625942 = query.getOrDefault("RuleNumber") - valid_625942 = validateParameter(valid_625942, JInt, required = true, default = nil) + section.add "PortRange.To", valid_625941 + var valid_625942 = query.getOrDefault("DryRun") + valid_625942 = validateParameter(valid_625942, JBool, required = false, default = nil) if valid_625942 != nil: - section.add "RuleNumber", valid_625942 - var valid_625943 = query.getOrDefault("PortRange.From") + section.add "DryRun", valid_625942 + var valid_625943 = query.getOrDefault("Icmp.Type") valid_625943 = validateParameter(valid_625943, JString, required = false, default = nil) if valid_625943 != nil: - section.add "PortRange.From", valid_625943 - var valid_625944 = query.getOrDefault("RuleAction") - valid_625944 = validateParameter(valid_625944, JString, required = true, - default = newJString("allow")) + section.add "Icmp.Type", valid_625943 + assert query != nil, + "query argument is necessary due to required `RuleNumber` field" + var valid_625944 = query.getOrDefault("RuleNumber") + valid_625944 = validateParameter(valid_625944, JInt, required = true, default = nil) if valid_625944 != nil: - section.add "RuleAction", valid_625944 - var valid_625945 = query.getOrDefault("Action") - valid_625945 = validateParameter(valid_625945, JString, required = true, - default = newJString("ReplaceNetworkAclEntry")) - if valid_625945 != nil: - section.add "Action", valid_625945 - var valid_625946 = query.getOrDefault("Icmp.Code") - valid_625946 = validateParameter(valid_625946, JString, required = false, + section.add "RuleNumber", valid_625944 + var valid_625945 = query.getOrDefault("PortRange.From") + valid_625945 = validateParameter(valid_625945, JString, required = false, default = nil) + if valid_625945 != nil: + section.add "PortRange.From", valid_625945 + var valid_625946 = query.getOrDefault("RuleAction") + valid_625946 = validateParameter(valid_625946, JString, required = true, + default = newJString("allow")) if valid_625946 != nil: - section.add "Icmp.Code", valid_625946 - var valid_625947 = query.getOrDefault("NetworkAclId") + section.add "RuleAction", valid_625946 + var valid_625947 = query.getOrDefault("Action") valid_625947 = validateParameter(valid_625947, JString, required = true, - default = nil) + default = newJString("ReplaceNetworkAclEntry")) if valid_625947 != nil: - section.add "NetworkAclId", valid_625947 - var valid_625948 = query.getOrDefault("Ipv6CidrBlock") + section.add "Action", valid_625947 + var valid_625948 = query.getOrDefault("Icmp.Code") valid_625948 = validateParameter(valid_625948, JString, required = false, default = nil) if valid_625948 != nil: - section.add "Ipv6CidrBlock", valid_625948 - var valid_625949 = query.getOrDefault("Protocol") + section.add "Icmp.Code", valid_625948 + var valid_625949 = query.getOrDefault("NetworkAclId") valid_625949 = validateParameter(valid_625949, JString, required = true, default = nil) if valid_625949 != nil: - section.add "Protocol", valid_625949 - var valid_625950 = query.getOrDefault("CidrBlock") + section.add "NetworkAclId", valid_625949 + var valid_625950 = query.getOrDefault("Ipv6CidrBlock") valid_625950 = validateParameter(valid_625950, JString, required = false, default = nil) if valid_625950 != nil: - section.add "CidrBlock", valid_625950 - var valid_625951 = query.getOrDefault("Version") + section.add "Ipv6CidrBlock", valid_625950 + var valid_625951 = query.getOrDefault("Protocol") valid_625951 = validateParameter(valid_625951, JString, required = true, - default = newJString("2016-11-15")) + default = nil) if valid_625951 != nil: - section.add "Version", valid_625951 - var valid_625952 = query.getOrDefault("Egress") - valid_625952 = validateParameter(valid_625952, JBool, required = true, default = nil) + section.add "Protocol", valid_625951 + var valid_625952 = query.getOrDefault("CidrBlock") + valid_625952 = validateParameter(valid_625952, JString, required = false, + default = nil) if valid_625952 != nil: - section.add "Egress", valid_625952 + section.add "CidrBlock", valid_625952 + var valid_625953 = query.getOrDefault("Version") + valid_625953 = validateParameter(valid_625953, JString, required = true, + default = newJString("2016-11-15")) + if valid_625953 != nil: + section.add "Version", valid_625953 + var valid_625954 = query.getOrDefault("Egress") + valid_625954 = validateParameter(valid_625954, JBool, required = true, default = nil) + if valid_625954 != nil: + section.add "Egress", valid_625954 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -123150,61 +123177,61 @@ proc validate_GetReplaceNetworkAclEntry_625937(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_625953 = header.getOrDefault("X-Amz-Signature") - valid_625953 = validateParameter(valid_625953, JString, required = false, - default = nil) - if valid_625953 != nil: - section.add "X-Amz-Signature", valid_625953 - var valid_625954 = header.getOrDefault("X-Amz-Content-Sha256") - valid_625954 = validateParameter(valid_625954, JString, required = false, - default = nil) - if valid_625954 != nil: - section.add "X-Amz-Content-Sha256", valid_625954 - var valid_625955 = header.getOrDefault("X-Amz-Date") + var valid_625955 = header.getOrDefault("X-Amz-Signature") valid_625955 = validateParameter(valid_625955, JString, required = false, default = nil) if valid_625955 != nil: - section.add "X-Amz-Date", valid_625955 - var valid_625956 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_625955 + var valid_625956 = header.getOrDefault("X-Amz-Content-Sha256") valid_625956 = validateParameter(valid_625956, JString, required = false, default = nil) if valid_625956 != nil: - section.add "X-Amz-Credential", valid_625956 - var valid_625957 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_625956 + var valid_625957 = header.getOrDefault("X-Amz-Date") valid_625957 = validateParameter(valid_625957, JString, required = false, default = nil) if valid_625957 != nil: - section.add "X-Amz-Security-Token", valid_625957 - var valid_625958 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_625957 + var valid_625958 = header.getOrDefault("X-Amz-Credential") valid_625958 = validateParameter(valid_625958, JString, required = false, default = nil) if valid_625958 != nil: - section.add "X-Amz-Algorithm", valid_625958 - var valid_625959 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_625958 + var valid_625959 = header.getOrDefault("X-Amz-Security-Token") valid_625959 = validateParameter(valid_625959, JString, required = false, default = nil) if valid_625959 != nil: - section.add "X-Amz-SignedHeaders", valid_625959 + section.add "X-Amz-Security-Token", valid_625959 + var valid_625960 = header.getOrDefault("X-Amz-Algorithm") + valid_625960 = validateParameter(valid_625960, JString, required = false, + default = nil) + if valid_625960 != nil: + section.add "X-Amz-Algorithm", valid_625960 + var valid_625961 = header.getOrDefault("X-Amz-SignedHeaders") + valid_625961 = validateParameter(valid_625961, JString, required = false, + default = nil) + if valid_625961 != nil: + section.add "X-Amz-SignedHeaders", valid_625961 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_625960: Call_GetReplaceNetworkAclEntry_625936; path: JsonNode; +proc call*(call_625962: Call_GetReplaceNetworkAclEntry_625938; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Replaces an entry (rule) in a network ACL. For more information, see Network ACLs in the Amazon Virtual Private Cloud User Guide. ## - let valid = call_625960.validator(path, query, header, formData, body) - let scheme = call_625960.pickScheme + let valid = call_625962.validator(path, query, header, formData, body) + let scheme = call_625962.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_625960.url(scheme.get, call_625960.host, call_625960.base, - call_625960.route, valid.getOrDefault("path"), + let url = call_625962.url(scheme.get, call_625962.host, call_625962.base, + call_625962.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_625960, url, valid) + result = atozHook(call_625962, url, valid) -proc call*(call_625961: Call_GetReplaceNetworkAclEntry_625936; RuleNumber: int; +proc call*(call_625963: Call_GetReplaceNetworkAclEntry_625938; RuleNumber: int; NetworkAclId: string; Protocol: string; Egress: bool; PortRangeTo: string = ""; DryRun: bool = false; IcmpType: string = ""; PortRangeFrom: string = ""; RuleAction: string = "allow"; @@ -123243,32 +123270,32 @@ proc call*(call_625961: Call_GetReplaceNetworkAclEntry_625936; RuleNumber: int; ## Version: string (required) ## Egress: bool (required) ## :

    Indicates whether to replace the egress rule.

    Default: If no value is specified, we replace the ingress rule.

    - var query_625962 = newJObject() - add(query_625962, "PortRange.To", newJString(PortRangeTo)) - add(query_625962, "DryRun", newJBool(DryRun)) - add(query_625962, "Icmp.Type", newJString(IcmpType)) - add(query_625962, "RuleNumber", newJInt(RuleNumber)) - add(query_625962, "PortRange.From", newJString(PortRangeFrom)) - add(query_625962, "RuleAction", newJString(RuleAction)) - add(query_625962, "Action", newJString(Action)) - add(query_625962, "Icmp.Code", newJString(IcmpCode)) - add(query_625962, "NetworkAclId", newJString(NetworkAclId)) - add(query_625962, "Ipv6CidrBlock", newJString(Ipv6CidrBlock)) - add(query_625962, "Protocol", newJString(Protocol)) - add(query_625962, "CidrBlock", newJString(CidrBlock)) - add(query_625962, "Version", newJString(Version)) - add(query_625962, "Egress", newJBool(Egress)) - result = call_625961.call(nil, query_625962, nil, nil, nil) - -var getReplaceNetworkAclEntry* = Call_GetReplaceNetworkAclEntry_625936( + var query_625964 = newJObject() + add(query_625964, "PortRange.To", newJString(PortRangeTo)) + add(query_625964, "DryRun", newJBool(DryRun)) + add(query_625964, "Icmp.Type", newJString(IcmpType)) + add(query_625964, "RuleNumber", newJInt(RuleNumber)) + add(query_625964, "PortRange.From", newJString(PortRangeFrom)) + add(query_625964, "RuleAction", newJString(RuleAction)) + add(query_625964, "Action", newJString(Action)) + add(query_625964, "Icmp.Code", newJString(IcmpCode)) + add(query_625964, "NetworkAclId", newJString(NetworkAclId)) + add(query_625964, "Ipv6CidrBlock", newJString(Ipv6CidrBlock)) + add(query_625964, "Protocol", newJString(Protocol)) + add(query_625964, "CidrBlock", newJString(CidrBlock)) + add(query_625964, "Version", newJString(Version)) + add(query_625964, "Egress", newJBool(Egress)) + result = call_625963.call(nil, query_625964, nil, nil, nil) + +var getReplaceNetworkAclEntry* = Call_GetReplaceNetworkAclEntry_625938( name: "getReplaceNetworkAclEntry", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ReplaceNetworkAclEntry", - validator: validate_GetReplaceNetworkAclEntry_625937, base: "/", - url: url_GetReplaceNetworkAclEntry_625938, + validator: validate_GetReplaceNetworkAclEntry_625939, base: "/", + url: url_GetReplaceNetworkAclEntry_625940, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostReplaceRoute_626019 = ref object of OpenApiRestCall_610658 -proc url_PostReplaceRoute_626021(protocol: Scheme; host: string; base: string; + Call_PostReplaceRoute_626021 = ref object of OpenApiRestCall_610658 +proc url_PostReplaceRoute_626023(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -123278,7 +123305,7 @@ proc url_PostReplaceRoute_626021(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostReplaceRoute_626020(path: JsonNode; query: JsonNode; +proc validate_PostReplaceRoute_626022(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Replaces an existing route within a route table in a VPC. You must provide only one of the following: internet gateway, virtual private gateway, NAT instance, NAT gateway, VPC peering connection, network interface, egress-only internet gateway, or transit gateway.

    For more information, see Route Tables in the Amazon Virtual Private Cloud User Guide.

    @@ -123291,16 +123318,16 @@ proc validate_PostReplaceRoute_626020(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_626022 = query.getOrDefault("Action") - valid_626022 = validateParameter(valid_626022, JString, required = true, + var valid_626024 = query.getOrDefault("Action") + valid_626024 = validateParameter(valid_626024, JString, required = true, default = newJString("ReplaceRoute")) - if valid_626022 != nil: - section.add "Action", valid_626022 - var valid_626023 = query.getOrDefault("Version") - valid_626023 = validateParameter(valid_626023, JString, required = true, + if valid_626024 != nil: + section.add "Action", valid_626024 + var valid_626025 = query.getOrDefault("Version") + valid_626025 = validateParameter(valid_626025, JString, required = true, default = newJString("2016-11-15")) - if valid_626023 != nil: - section.add "Version", valid_626023 + if valid_626025 != nil: + section.add "Version", valid_626025 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -123311,41 +123338,41 @@ proc validate_PostReplaceRoute_626020(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626024 = header.getOrDefault("X-Amz-Signature") - valid_626024 = validateParameter(valid_626024, JString, required = false, - default = nil) - if valid_626024 != nil: - section.add "X-Amz-Signature", valid_626024 - var valid_626025 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626025 = validateParameter(valid_626025, JString, required = false, - default = nil) - if valid_626025 != nil: - section.add "X-Amz-Content-Sha256", valid_626025 - var valid_626026 = header.getOrDefault("X-Amz-Date") + var valid_626026 = header.getOrDefault("X-Amz-Signature") valid_626026 = validateParameter(valid_626026, JString, required = false, default = nil) if valid_626026 != nil: - section.add "X-Amz-Date", valid_626026 - var valid_626027 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626026 + var valid_626027 = header.getOrDefault("X-Amz-Content-Sha256") valid_626027 = validateParameter(valid_626027, JString, required = false, default = nil) if valid_626027 != nil: - section.add "X-Amz-Credential", valid_626027 - var valid_626028 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626027 + var valid_626028 = header.getOrDefault("X-Amz-Date") valid_626028 = validateParameter(valid_626028, JString, required = false, default = nil) if valid_626028 != nil: - section.add "X-Amz-Security-Token", valid_626028 - var valid_626029 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626028 + var valid_626029 = header.getOrDefault("X-Amz-Credential") valid_626029 = validateParameter(valid_626029, JString, required = false, default = nil) if valid_626029 != nil: - section.add "X-Amz-Algorithm", valid_626029 - var valid_626030 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626029 + var valid_626030 = header.getOrDefault("X-Amz-Security-Token") valid_626030 = validateParameter(valid_626030, JString, required = false, default = nil) if valid_626030 != nil: - section.add "X-Amz-SignedHeaders", valid_626030 + section.add "X-Amz-Security-Token", valid_626030 + var valid_626031 = header.getOrDefault("X-Amz-Algorithm") + valid_626031 = validateParameter(valid_626031, JString, required = false, + default = nil) + if valid_626031 != nil: + section.add "X-Amz-Algorithm", valid_626031 + var valid_626032 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626032 = validateParameter(valid_626032, JString, required = false, + default = nil) + if valid_626032 != nil: + section.add "X-Amz-SignedHeaders", valid_626032 result.add "header", section ## parameters in `formData` object: ## DestinationIpv6CidrBlock: JString @@ -123375,89 +123402,89 @@ proc validate_PostReplaceRoute_626020(path: JsonNode; query: JsonNode; ## NatGatewayId: JString ## : [IPv4 traffic only] The ID of a NAT gateway. section = newJObject() - var valid_626031 = formData.getOrDefault("DestinationIpv6CidrBlock") - valid_626031 = validateParameter(valid_626031, JString, required = false, - default = nil) - if valid_626031 != nil: - section.add "DestinationIpv6CidrBlock", valid_626031 - var valid_626032 = formData.getOrDefault("VpcPeeringConnectionId") - valid_626032 = validateParameter(valid_626032, JString, required = false, - default = nil) - if valid_626032 != nil: - section.add "VpcPeeringConnectionId", valid_626032 - var valid_626033 = formData.getOrDefault("LocalGatewayId") + var valid_626033 = formData.getOrDefault("DestinationIpv6CidrBlock") valid_626033 = validateParameter(valid_626033, JString, required = false, default = nil) if valid_626033 != nil: - section.add "LocalGatewayId", valid_626033 - var valid_626034 = formData.getOrDefault("DestinationCidrBlock") + section.add "DestinationIpv6CidrBlock", valid_626033 + var valid_626034 = formData.getOrDefault("VpcPeeringConnectionId") valid_626034 = validateParameter(valid_626034, JString, required = false, default = nil) if valid_626034 != nil: - section.add "DestinationCidrBlock", valid_626034 - var valid_626035 = formData.getOrDefault("NetworkInterfaceId") + section.add "VpcPeeringConnectionId", valid_626034 + var valid_626035 = formData.getOrDefault("LocalGatewayId") valid_626035 = validateParameter(valid_626035, JString, required = false, default = nil) if valid_626035 != nil: - section.add "NetworkInterfaceId", valid_626035 - var valid_626036 = formData.getOrDefault("LocalTarget") - valid_626036 = validateParameter(valid_626036, JBool, required = false, default = nil) + section.add "LocalGatewayId", valid_626035 + var valid_626036 = formData.getOrDefault("DestinationCidrBlock") + valid_626036 = validateParameter(valid_626036, JString, required = false, + default = nil) if valid_626036 != nil: - section.add "LocalTarget", valid_626036 - var valid_626037 = formData.getOrDefault("GatewayId") + section.add "DestinationCidrBlock", valid_626036 + var valid_626037 = formData.getOrDefault("NetworkInterfaceId") valid_626037 = validateParameter(valid_626037, JString, required = false, default = nil) if valid_626037 != nil: - section.add "GatewayId", valid_626037 - var valid_626038 = formData.getOrDefault("DryRun") + section.add "NetworkInterfaceId", valid_626037 + var valid_626038 = formData.getOrDefault("LocalTarget") valid_626038 = validateParameter(valid_626038, JBool, required = false, default = nil) if valid_626038 != nil: - section.add "DryRun", valid_626038 - var valid_626039 = formData.getOrDefault("EgressOnlyInternetGatewayId") + section.add "LocalTarget", valid_626038 + var valid_626039 = formData.getOrDefault("GatewayId") valid_626039 = validateParameter(valid_626039, JString, required = false, default = nil) if valid_626039 != nil: - section.add "EgressOnlyInternetGatewayId", valid_626039 - var valid_626040 = formData.getOrDefault("InstanceId") - valid_626040 = validateParameter(valid_626040, JString, required = false, - default = nil) + section.add "GatewayId", valid_626039 + var valid_626040 = formData.getOrDefault("DryRun") + valid_626040 = validateParameter(valid_626040, JBool, required = false, default = nil) if valid_626040 != nil: - section.add "InstanceId", valid_626040 - var valid_626041 = formData.getOrDefault("TransitGatewayId") + section.add "DryRun", valid_626040 + var valid_626041 = formData.getOrDefault("EgressOnlyInternetGatewayId") valid_626041 = validateParameter(valid_626041, JString, required = false, default = nil) if valid_626041 != nil: - section.add "TransitGatewayId", valid_626041 - assert formData != nil, - "formData argument is necessary due to required `RouteTableId` field" - var valid_626042 = formData.getOrDefault("RouteTableId") - valid_626042 = validateParameter(valid_626042, JString, required = true, + section.add "EgressOnlyInternetGatewayId", valid_626041 + var valid_626042 = formData.getOrDefault("InstanceId") + valid_626042 = validateParameter(valid_626042, JString, required = false, default = nil) if valid_626042 != nil: - section.add "RouteTableId", valid_626042 - var valid_626043 = formData.getOrDefault("NatGatewayId") + section.add "InstanceId", valid_626042 + var valid_626043 = formData.getOrDefault("TransitGatewayId") valid_626043 = validateParameter(valid_626043, JString, required = false, default = nil) if valid_626043 != nil: - section.add "NatGatewayId", valid_626043 + section.add "TransitGatewayId", valid_626043 + assert formData != nil, + "formData argument is necessary due to required `RouteTableId` field" + var valid_626044 = formData.getOrDefault("RouteTableId") + valid_626044 = validateParameter(valid_626044, JString, required = true, + default = nil) + if valid_626044 != nil: + section.add "RouteTableId", valid_626044 + var valid_626045 = formData.getOrDefault("NatGatewayId") + valid_626045 = validateParameter(valid_626045, JString, required = false, + default = nil) + if valid_626045 != nil: + section.add "NatGatewayId", valid_626045 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626044: Call_PostReplaceRoute_626019; path: JsonNode; +proc call*(call_626046: Call_PostReplaceRoute_626021; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Replaces an existing route within a route table in a VPC. You must provide only one of the following: internet gateway, virtual private gateway, NAT instance, NAT gateway, VPC peering connection, network interface, egress-only internet gateway, or transit gateway.

    For more information, see Route Tables in the Amazon Virtual Private Cloud User Guide.

    ## - let valid = call_626044.validator(path, query, header, formData, body) - let scheme = call_626044.pickScheme + let valid = call_626046.validator(path, query, header, formData, body) + let scheme = call_626046.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626044.url(scheme.get, call_626044.host, call_626044.base, - call_626044.route, valid.getOrDefault("path"), + let url = call_626046.url(scheme.get, call_626046.host, call_626046.base, + call_626046.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626044, url, valid) + result = atozHook(call_626046, url, valid) -proc call*(call_626045: Call_PostReplaceRoute_626019; RouteTableId: string; +proc call*(call_626047: Call_PostReplaceRoute_626021; RouteTableId: string; DestinationIpv6CidrBlock: string = ""; VpcPeeringConnectionId: string = ""; LocalGatewayId: string = ""; DestinationCidrBlock: string = ""; NetworkInterfaceId: string = ""; @@ -123495,36 +123522,36 @@ proc call*(call_626045: Call_PostReplaceRoute_626019; RouteTableId: string; ## NatGatewayId: string ## : [IPv4 traffic only] The ID of a NAT gateway. ## Version: string (required) - var query_626046 = newJObject() - var formData_626047 = newJObject() - add(formData_626047, "DestinationIpv6CidrBlock", + var query_626048 = newJObject() + var formData_626049 = newJObject() + add(formData_626049, "DestinationIpv6CidrBlock", newJString(DestinationIpv6CidrBlock)) - add(formData_626047, "VpcPeeringConnectionId", + add(formData_626049, "VpcPeeringConnectionId", newJString(VpcPeeringConnectionId)) - add(formData_626047, "LocalGatewayId", newJString(LocalGatewayId)) - add(formData_626047, "DestinationCidrBlock", newJString(DestinationCidrBlock)) - add(formData_626047, "NetworkInterfaceId", newJString(NetworkInterfaceId)) - add(formData_626047, "LocalTarget", newJBool(LocalTarget)) - add(formData_626047, "GatewayId", newJString(GatewayId)) - add(formData_626047, "DryRun", newJBool(DryRun)) - add(formData_626047, "EgressOnlyInternetGatewayId", + add(formData_626049, "LocalGatewayId", newJString(LocalGatewayId)) + add(formData_626049, "DestinationCidrBlock", newJString(DestinationCidrBlock)) + add(formData_626049, "NetworkInterfaceId", newJString(NetworkInterfaceId)) + add(formData_626049, "LocalTarget", newJBool(LocalTarget)) + add(formData_626049, "GatewayId", newJString(GatewayId)) + add(formData_626049, "DryRun", newJBool(DryRun)) + add(formData_626049, "EgressOnlyInternetGatewayId", newJString(EgressOnlyInternetGatewayId)) - add(formData_626047, "InstanceId", newJString(InstanceId)) - add(formData_626047, "TransitGatewayId", newJString(TransitGatewayId)) - add(formData_626047, "RouteTableId", newJString(RouteTableId)) - add(query_626046, "Action", newJString(Action)) - add(formData_626047, "NatGatewayId", newJString(NatGatewayId)) - add(query_626046, "Version", newJString(Version)) - result = call_626045.call(nil, query_626046, nil, formData_626047, nil) - -var postReplaceRoute* = Call_PostReplaceRoute_626019(name: "postReplaceRoute", + add(formData_626049, "InstanceId", newJString(InstanceId)) + add(formData_626049, "TransitGatewayId", newJString(TransitGatewayId)) + add(formData_626049, "RouteTableId", newJString(RouteTableId)) + add(query_626048, "Action", newJString(Action)) + add(formData_626049, "NatGatewayId", newJString(NatGatewayId)) + add(query_626048, "Version", newJString(Version)) + result = call_626047.call(nil, query_626048, nil, formData_626049, nil) + +var postReplaceRoute* = Call_PostReplaceRoute_626021(name: "postReplaceRoute", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", - route: "/#Action=ReplaceRoute", validator: validate_PostReplaceRoute_626020, - base: "/", url: url_PostReplaceRoute_626021, + route: "/#Action=ReplaceRoute", validator: validate_PostReplaceRoute_626022, + base: "/", url: url_PostReplaceRoute_626023, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetReplaceRoute_625991 = ref object of OpenApiRestCall_610658 -proc url_GetReplaceRoute_625993(protocol: Scheme; host: string; base: string; + Call_GetReplaceRoute_625993 = ref object of OpenApiRestCall_610658 +proc url_GetReplaceRoute_625995(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -123534,7 +123561,7 @@ proc url_GetReplaceRoute_625993(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetReplaceRoute_625992(path: JsonNode; query: JsonNode; +proc validate_GetReplaceRoute_625994(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Replaces an existing route within a route table in a VPC. You must provide only one of the following: internet gateway, virtual private gateway, NAT instance, NAT gateway, VPC peering connection, network interface, egress-only internet gateway, or transit gateway.

    For more information, see Route Tables in the Amazon Virtual Private Cloud User Guide.

    @@ -123573,79 +123600,79 @@ proc validate_GetReplaceRoute_625992(path: JsonNode; query: JsonNode; ## DestinationCidrBlock: JString ## : The IPv4 CIDR address block used for the destination match. The value that you provide must match the CIDR of an existing route in the table. section = newJObject() - var valid_625994 = query.getOrDefault("DestinationIpv6CidrBlock") - valid_625994 = validateParameter(valid_625994, JString, required = false, + var valid_625996 = query.getOrDefault("DestinationIpv6CidrBlock") + valid_625996 = validateParameter(valid_625996, JString, required = false, default = nil) - if valid_625994 != nil: - section.add "DestinationIpv6CidrBlock", valid_625994 - var valid_625995 = query.getOrDefault("NetworkInterfaceId") - valid_625995 = validateParameter(valid_625995, JString, required = false, - default = nil) - if valid_625995 != nil: - section.add "NetworkInterfaceId", valid_625995 - var valid_625996 = query.getOrDefault("DryRun") - valid_625996 = validateParameter(valid_625996, JBool, required = false, default = nil) if valid_625996 != nil: - section.add "DryRun", valid_625996 - var valid_625997 = query.getOrDefault("TransitGatewayId") + section.add "DestinationIpv6CidrBlock", valid_625996 + var valid_625997 = query.getOrDefault("NetworkInterfaceId") valid_625997 = validateParameter(valid_625997, JString, required = false, default = nil) if valid_625997 != nil: - section.add "TransitGatewayId", valid_625997 - var valid_625998 = query.getOrDefault("GatewayId") - valid_625998 = validateParameter(valid_625998, JString, required = false, - default = nil) + section.add "NetworkInterfaceId", valid_625997 + var valid_625998 = query.getOrDefault("DryRun") + valid_625998 = validateParameter(valid_625998, JBool, required = false, default = nil) if valid_625998 != nil: - section.add "GatewayId", valid_625998 - var valid_625999 = query.getOrDefault("InstanceId") + section.add "DryRun", valid_625998 + var valid_625999 = query.getOrDefault("TransitGatewayId") valid_625999 = validateParameter(valid_625999, JString, required = false, default = nil) if valid_625999 != nil: - section.add "InstanceId", valid_625999 - var valid_626000 = query.getOrDefault("NatGatewayId") + section.add "TransitGatewayId", valid_625999 + var valid_626000 = query.getOrDefault("GatewayId") valid_626000 = validateParameter(valid_626000, JString, required = false, default = nil) if valid_626000 != nil: - section.add "NatGatewayId", valid_626000 - var valid_626001 = query.getOrDefault("LocalTarget") - valid_626001 = validateParameter(valid_626001, JBool, required = false, default = nil) + section.add "GatewayId", valid_626000 + var valid_626001 = query.getOrDefault("InstanceId") + valid_626001 = validateParameter(valid_626001, JString, required = false, + default = nil) if valid_626001 != nil: - section.add "LocalTarget", valid_626001 - var valid_626002 = query.getOrDefault("Action") - valid_626002 = validateParameter(valid_626002, JString, required = true, - default = newJString("ReplaceRoute")) - if valid_626002 != nil: - section.add "Action", valid_626002 - var valid_626003 = query.getOrDefault("LocalGatewayId") - valid_626003 = validateParameter(valid_626003, JString, required = false, + section.add "InstanceId", valid_626001 + var valid_626002 = query.getOrDefault("NatGatewayId") + valid_626002 = validateParameter(valid_626002, JString, required = false, default = nil) + if valid_626002 != nil: + section.add "NatGatewayId", valid_626002 + var valid_626003 = query.getOrDefault("LocalTarget") + valid_626003 = validateParameter(valid_626003, JBool, required = false, default = nil) if valid_626003 != nil: - section.add "LocalGatewayId", valid_626003 - var valid_626004 = query.getOrDefault("VpcPeeringConnectionId") - valid_626004 = validateParameter(valid_626004, JString, required = false, - default = nil) + section.add "LocalTarget", valid_626003 + var valid_626004 = query.getOrDefault("Action") + valid_626004 = validateParameter(valid_626004, JString, required = true, + default = newJString("ReplaceRoute")) if valid_626004 != nil: - section.add "VpcPeeringConnectionId", valid_626004 - var valid_626005 = query.getOrDefault("Version") - valid_626005 = validateParameter(valid_626005, JString, required = true, - default = newJString("2016-11-15")) + section.add "Action", valid_626004 + var valid_626005 = query.getOrDefault("LocalGatewayId") + valid_626005 = validateParameter(valid_626005, JString, required = false, + default = nil) if valid_626005 != nil: - section.add "Version", valid_626005 - var valid_626006 = query.getOrDefault("RouteTableId") - valid_626006 = validateParameter(valid_626006, JString, required = true, + section.add "LocalGatewayId", valid_626005 + var valid_626006 = query.getOrDefault("VpcPeeringConnectionId") + valid_626006 = validateParameter(valid_626006, JString, required = false, default = nil) if valid_626006 != nil: - section.add "RouteTableId", valid_626006 - var valid_626007 = query.getOrDefault("EgressOnlyInternetGatewayId") - valid_626007 = validateParameter(valid_626007, JString, required = false, - default = nil) + section.add "VpcPeeringConnectionId", valid_626006 + var valid_626007 = query.getOrDefault("Version") + valid_626007 = validateParameter(valid_626007, JString, required = true, + default = newJString("2016-11-15")) if valid_626007 != nil: - section.add "EgressOnlyInternetGatewayId", valid_626007 - var valid_626008 = query.getOrDefault("DestinationCidrBlock") - valid_626008 = validateParameter(valid_626008, JString, required = false, + section.add "Version", valid_626007 + var valid_626008 = query.getOrDefault("RouteTableId") + valid_626008 = validateParameter(valid_626008, JString, required = true, default = nil) if valid_626008 != nil: - section.add "DestinationCidrBlock", valid_626008 + section.add "RouteTableId", valid_626008 + var valid_626009 = query.getOrDefault("EgressOnlyInternetGatewayId") + valid_626009 = validateParameter(valid_626009, JString, required = false, + default = nil) + if valid_626009 != nil: + section.add "EgressOnlyInternetGatewayId", valid_626009 + var valid_626010 = query.getOrDefault("DestinationCidrBlock") + valid_626010 = validateParameter(valid_626010, JString, required = false, + default = nil) + if valid_626010 != nil: + section.add "DestinationCidrBlock", valid_626010 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -123656,61 +123683,61 @@ proc validate_GetReplaceRoute_625992(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626009 = header.getOrDefault("X-Amz-Signature") - valid_626009 = validateParameter(valid_626009, JString, required = false, - default = nil) - if valid_626009 != nil: - section.add "X-Amz-Signature", valid_626009 - var valid_626010 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626010 = validateParameter(valid_626010, JString, required = false, - default = nil) - if valid_626010 != nil: - section.add "X-Amz-Content-Sha256", valid_626010 - var valid_626011 = header.getOrDefault("X-Amz-Date") + var valid_626011 = header.getOrDefault("X-Amz-Signature") valid_626011 = validateParameter(valid_626011, JString, required = false, default = nil) if valid_626011 != nil: - section.add "X-Amz-Date", valid_626011 - var valid_626012 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626011 + var valid_626012 = header.getOrDefault("X-Amz-Content-Sha256") valid_626012 = validateParameter(valid_626012, JString, required = false, default = nil) if valid_626012 != nil: - section.add "X-Amz-Credential", valid_626012 - var valid_626013 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626012 + var valid_626013 = header.getOrDefault("X-Amz-Date") valid_626013 = validateParameter(valid_626013, JString, required = false, default = nil) if valid_626013 != nil: - section.add "X-Amz-Security-Token", valid_626013 - var valid_626014 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626013 + var valid_626014 = header.getOrDefault("X-Amz-Credential") valid_626014 = validateParameter(valid_626014, JString, required = false, default = nil) if valid_626014 != nil: - section.add "X-Amz-Algorithm", valid_626014 - var valid_626015 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626014 + var valid_626015 = header.getOrDefault("X-Amz-Security-Token") valid_626015 = validateParameter(valid_626015, JString, required = false, default = nil) if valid_626015 != nil: - section.add "X-Amz-SignedHeaders", valid_626015 + section.add "X-Amz-Security-Token", valid_626015 + var valid_626016 = header.getOrDefault("X-Amz-Algorithm") + valid_626016 = validateParameter(valid_626016, JString, required = false, + default = nil) + if valid_626016 != nil: + section.add "X-Amz-Algorithm", valid_626016 + var valid_626017 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626017 = validateParameter(valid_626017, JString, required = false, + default = nil) + if valid_626017 != nil: + section.add "X-Amz-SignedHeaders", valid_626017 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626016: Call_GetReplaceRoute_625991; path: JsonNode; query: JsonNode; +proc call*(call_626018: Call_GetReplaceRoute_625993; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Replaces an existing route within a route table in a VPC. You must provide only one of the following: internet gateway, virtual private gateway, NAT instance, NAT gateway, VPC peering connection, network interface, egress-only internet gateway, or transit gateway.

    For more information, see Route Tables in the Amazon Virtual Private Cloud User Guide.

    ## - let valid = call_626016.validator(path, query, header, formData, body) - let scheme = call_626016.pickScheme + let valid = call_626018.validator(path, query, header, formData, body) + let scheme = call_626018.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626016.url(scheme.get, call_626016.host, call_626016.base, - call_626016.route, valid.getOrDefault("path"), + let url = call_626018.url(scheme.get, call_626018.host, call_626018.base, + call_626018.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626016, url, valid) + result = atozHook(call_626018, url, valid) -proc call*(call_626017: Call_GetReplaceRoute_625991; RouteTableId: string; +proc call*(call_626019: Call_GetReplaceRoute_625993; RouteTableId: string; DestinationIpv6CidrBlock: string = ""; NetworkInterfaceId: string = ""; DryRun: bool = false; TransitGatewayId: string = ""; GatewayId: string = ""; InstanceId: string = ""; NatGatewayId: string = ""; LocalTarget: bool = false; @@ -123748,33 +123775,33 @@ proc call*(call_626017: Call_GetReplaceRoute_625991; RouteTableId: string; ## : [IPv6 traffic only] The ID of an egress-only internet gateway. ## DestinationCidrBlock: string ## : The IPv4 CIDR address block used for the destination match. The value that you provide must match the CIDR of an existing route in the table. - var query_626018 = newJObject() - add(query_626018, "DestinationIpv6CidrBlock", + var query_626020 = newJObject() + add(query_626020, "DestinationIpv6CidrBlock", newJString(DestinationIpv6CidrBlock)) - add(query_626018, "NetworkInterfaceId", newJString(NetworkInterfaceId)) - add(query_626018, "DryRun", newJBool(DryRun)) - add(query_626018, "TransitGatewayId", newJString(TransitGatewayId)) - add(query_626018, "GatewayId", newJString(GatewayId)) - add(query_626018, "InstanceId", newJString(InstanceId)) - add(query_626018, "NatGatewayId", newJString(NatGatewayId)) - add(query_626018, "LocalTarget", newJBool(LocalTarget)) - add(query_626018, "Action", newJString(Action)) - add(query_626018, "LocalGatewayId", newJString(LocalGatewayId)) - add(query_626018, "VpcPeeringConnectionId", newJString(VpcPeeringConnectionId)) - add(query_626018, "Version", newJString(Version)) - add(query_626018, "RouteTableId", newJString(RouteTableId)) - add(query_626018, "EgressOnlyInternetGatewayId", + add(query_626020, "NetworkInterfaceId", newJString(NetworkInterfaceId)) + add(query_626020, "DryRun", newJBool(DryRun)) + add(query_626020, "TransitGatewayId", newJString(TransitGatewayId)) + add(query_626020, "GatewayId", newJString(GatewayId)) + add(query_626020, "InstanceId", newJString(InstanceId)) + add(query_626020, "NatGatewayId", newJString(NatGatewayId)) + add(query_626020, "LocalTarget", newJBool(LocalTarget)) + add(query_626020, "Action", newJString(Action)) + add(query_626020, "LocalGatewayId", newJString(LocalGatewayId)) + add(query_626020, "VpcPeeringConnectionId", newJString(VpcPeeringConnectionId)) + add(query_626020, "Version", newJString(Version)) + add(query_626020, "RouteTableId", newJString(RouteTableId)) + add(query_626020, "EgressOnlyInternetGatewayId", newJString(EgressOnlyInternetGatewayId)) - add(query_626018, "DestinationCidrBlock", newJString(DestinationCidrBlock)) - result = call_626017.call(nil, query_626018, nil, nil, nil) + add(query_626020, "DestinationCidrBlock", newJString(DestinationCidrBlock)) + result = call_626019.call(nil, query_626020, nil, nil, nil) -var getReplaceRoute* = Call_GetReplaceRoute_625991(name: "getReplaceRoute", +var getReplaceRoute* = Call_GetReplaceRoute_625993(name: "getReplaceRoute", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=ReplaceRoute", validator: validate_GetReplaceRoute_625992, - base: "/", url: url_GetReplaceRoute_625993, schemes: {Scheme.Https, Scheme.Http}) + route: "/#Action=ReplaceRoute", validator: validate_GetReplaceRoute_625994, + base: "/", url: url_GetReplaceRoute_625995, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostReplaceRouteTableAssociation_626066 = ref object of OpenApiRestCall_610658 -proc url_PostReplaceRouteTableAssociation_626068(protocol: Scheme; host: string; + Call_PostReplaceRouteTableAssociation_626068 = ref object of OpenApiRestCall_610658 +proc url_PostReplaceRouteTableAssociation_626070(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -123784,7 +123811,7 @@ proc url_PostReplaceRouteTableAssociation_626068(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostReplaceRouteTableAssociation_626067(path: JsonNode; +proc validate_PostReplaceRouteTableAssociation_626069(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Changes the route table associated with a given subnet, internet gateway, or virtual private gateway in a VPC. After the operation completes, the subnet or gateway uses the routes in the new route table. For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.

    You can also use this operation to change which table is the main route table in the VPC. Specify the main route table's association ID and the route table ID of the new main route table.

    ## @@ -123796,16 +123823,16 @@ proc validate_PostReplaceRouteTableAssociation_626067(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_626069 = query.getOrDefault("Action") - valid_626069 = validateParameter(valid_626069, JString, required = true, default = newJString( + var valid_626071 = query.getOrDefault("Action") + valid_626071 = validateParameter(valid_626071, JString, required = true, default = newJString( "ReplaceRouteTableAssociation")) - if valid_626069 != nil: - section.add "Action", valid_626069 - var valid_626070 = query.getOrDefault("Version") - valid_626070 = validateParameter(valid_626070, JString, required = true, + if valid_626071 != nil: + section.add "Action", valid_626071 + var valid_626072 = query.getOrDefault("Version") + valid_626072 = validateParameter(valid_626072, JString, required = true, default = newJString("2016-11-15")) - if valid_626070 != nil: - section.add "Version", valid_626070 + if valid_626072 != nil: + section.add "Version", valid_626072 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -123816,41 +123843,41 @@ proc validate_PostReplaceRouteTableAssociation_626067(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626071 = header.getOrDefault("X-Amz-Signature") - valid_626071 = validateParameter(valid_626071, JString, required = false, - default = nil) - if valid_626071 != nil: - section.add "X-Amz-Signature", valid_626071 - var valid_626072 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626072 = validateParameter(valid_626072, JString, required = false, - default = nil) - if valid_626072 != nil: - section.add "X-Amz-Content-Sha256", valid_626072 - var valid_626073 = header.getOrDefault("X-Amz-Date") + var valid_626073 = header.getOrDefault("X-Amz-Signature") valid_626073 = validateParameter(valid_626073, JString, required = false, default = nil) if valid_626073 != nil: - section.add "X-Amz-Date", valid_626073 - var valid_626074 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626073 + var valid_626074 = header.getOrDefault("X-Amz-Content-Sha256") valid_626074 = validateParameter(valid_626074, JString, required = false, default = nil) if valid_626074 != nil: - section.add "X-Amz-Credential", valid_626074 - var valid_626075 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626074 + var valid_626075 = header.getOrDefault("X-Amz-Date") valid_626075 = validateParameter(valid_626075, JString, required = false, default = nil) if valid_626075 != nil: - section.add "X-Amz-Security-Token", valid_626075 - var valid_626076 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626075 + var valid_626076 = header.getOrDefault("X-Amz-Credential") valid_626076 = validateParameter(valid_626076, JString, required = false, default = nil) if valid_626076 != nil: - section.add "X-Amz-Algorithm", valid_626076 - var valid_626077 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626076 + var valid_626077 = header.getOrDefault("X-Amz-Security-Token") valid_626077 = validateParameter(valid_626077, JString, required = false, default = nil) if valid_626077 != nil: - section.add "X-Amz-SignedHeaders", valid_626077 + section.add "X-Amz-Security-Token", valid_626077 + var valid_626078 = header.getOrDefault("X-Amz-Algorithm") + valid_626078 = validateParameter(valid_626078, JString, required = false, + default = nil) + if valid_626078 != nil: + section.add "X-Amz-Algorithm", valid_626078 + var valid_626079 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626079 = validateParameter(valid_626079, JString, required = false, + default = nil) + if valid_626079 != nil: + section.add "X-Amz-SignedHeaders", valid_626079 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -123860,41 +123887,41 @@ proc validate_PostReplaceRouteTableAssociation_626067(path: JsonNode; ## AssociationId: JString (required) ## : The association ID. section = newJObject() - var valid_626078 = formData.getOrDefault("DryRun") - valid_626078 = validateParameter(valid_626078, JBool, required = false, default = nil) - if valid_626078 != nil: - section.add "DryRun", valid_626078 + var valid_626080 = formData.getOrDefault("DryRun") + valid_626080 = validateParameter(valid_626080, JBool, required = false, default = nil) + if valid_626080 != nil: + section.add "DryRun", valid_626080 assert formData != nil, "formData argument is necessary due to required `RouteTableId` field" - var valid_626079 = formData.getOrDefault("RouteTableId") - valid_626079 = validateParameter(valid_626079, JString, required = true, + var valid_626081 = formData.getOrDefault("RouteTableId") + valid_626081 = validateParameter(valid_626081, JString, required = true, default = nil) - if valid_626079 != nil: - section.add "RouteTableId", valid_626079 - var valid_626080 = formData.getOrDefault("AssociationId") - valid_626080 = validateParameter(valid_626080, JString, required = true, + if valid_626081 != nil: + section.add "RouteTableId", valid_626081 + var valid_626082 = formData.getOrDefault("AssociationId") + valid_626082 = validateParameter(valid_626082, JString, required = true, default = nil) - if valid_626080 != nil: - section.add "AssociationId", valid_626080 + if valid_626082 != nil: + section.add "AssociationId", valid_626082 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626081: Call_PostReplaceRouteTableAssociation_626066; +proc call*(call_626083: Call_PostReplaceRouteTableAssociation_626068; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Changes the route table associated with a given subnet, internet gateway, or virtual private gateway in a VPC. After the operation completes, the subnet or gateway uses the routes in the new route table. For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.

    You can also use this operation to change which table is the main route table in the VPC. Specify the main route table's association ID and the route table ID of the new main route table.

    ## - let valid = call_626081.validator(path, query, header, formData, body) - let scheme = call_626081.pickScheme + let valid = call_626083.validator(path, query, header, formData, body) + let scheme = call_626083.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626081.url(scheme.get, call_626081.host, call_626081.base, - call_626081.route, valid.getOrDefault("path"), + let url = call_626083.url(scheme.get, call_626083.host, call_626083.base, + call_626083.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626081, url, valid) + result = atozHook(call_626083, url, valid) -proc call*(call_626082: Call_PostReplaceRouteTableAssociation_626066; +proc call*(call_626084: Call_PostReplaceRouteTableAssociation_626068; RouteTableId: string; AssociationId: string; DryRun: bool = false; Action: string = "ReplaceRouteTableAssociation"; Version: string = "2016-11-15"): Recallable = @@ -123908,24 +123935,24 @@ proc call*(call_626082: Call_PostReplaceRouteTableAssociation_626066; ## Version: string (required) ## AssociationId: string (required) ## : The association ID. - var query_626083 = newJObject() - var formData_626084 = newJObject() - add(formData_626084, "DryRun", newJBool(DryRun)) - add(formData_626084, "RouteTableId", newJString(RouteTableId)) - add(query_626083, "Action", newJString(Action)) - add(query_626083, "Version", newJString(Version)) - add(formData_626084, "AssociationId", newJString(AssociationId)) - result = call_626082.call(nil, query_626083, nil, formData_626084, nil) - -var postReplaceRouteTableAssociation* = Call_PostReplaceRouteTableAssociation_626066( + var query_626085 = newJObject() + var formData_626086 = newJObject() + add(formData_626086, "DryRun", newJBool(DryRun)) + add(formData_626086, "RouteTableId", newJString(RouteTableId)) + add(query_626085, "Action", newJString(Action)) + add(query_626085, "Version", newJString(Version)) + add(formData_626086, "AssociationId", newJString(AssociationId)) + result = call_626084.call(nil, query_626085, nil, formData_626086, nil) + +var postReplaceRouteTableAssociation* = Call_PostReplaceRouteTableAssociation_626068( name: "postReplaceRouteTableAssociation", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ReplaceRouteTableAssociation", - validator: validate_PostReplaceRouteTableAssociation_626067, base: "/", - url: url_PostReplaceRouteTableAssociation_626068, + validator: validate_PostReplaceRouteTableAssociation_626069, base: "/", + url: url_PostReplaceRouteTableAssociation_626070, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetReplaceRouteTableAssociation_626048 = ref object of OpenApiRestCall_610658 -proc url_GetReplaceRouteTableAssociation_626050(protocol: Scheme; host: string; + Call_GetReplaceRouteTableAssociation_626050 = ref object of OpenApiRestCall_610658 +proc url_GetReplaceRouteTableAssociation_626052(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -123935,7 +123962,7 @@ proc url_GetReplaceRouteTableAssociation_626050(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetReplaceRouteTableAssociation_626049(path: JsonNode; +proc validate_GetReplaceRouteTableAssociation_626051(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Changes the route table associated with a given subnet, internet gateway, or virtual private gateway in a VPC. After the operation completes, the subnet or gateway uses the routes in the new route table. For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.

    You can also use this operation to change which table is the main route table in the VPC. Specify the main route table's association ID and the route table ID of the new main route table.

    ## @@ -123953,32 +123980,32 @@ proc validate_GetReplaceRouteTableAssociation_626049(path: JsonNode; ## RouteTableId: JString (required) ## : The ID of the new route table to associate with the subnet. section = newJObject() - var valid_626051 = query.getOrDefault("DryRun") - valid_626051 = validateParameter(valid_626051, JBool, required = false, default = nil) - if valid_626051 != nil: - section.add "DryRun", valid_626051 + var valid_626053 = query.getOrDefault("DryRun") + valid_626053 = validateParameter(valid_626053, JBool, required = false, default = nil) + if valid_626053 != nil: + section.add "DryRun", valid_626053 assert query != nil, "query argument is necessary due to required `AssociationId` field" - var valid_626052 = query.getOrDefault("AssociationId") - valid_626052 = validateParameter(valid_626052, JString, required = true, + var valid_626054 = query.getOrDefault("AssociationId") + valid_626054 = validateParameter(valid_626054, JString, required = true, default = nil) - if valid_626052 != nil: - section.add "AssociationId", valid_626052 - var valid_626053 = query.getOrDefault("Action") - valid_626053 = validateParameter(valid_626053, JString, required = true, default = newJString( + if valid_626054 != nil: + section.add "AssociationId", valid_626054 + var valid_626055 = query.getOrDefault("Action") + valid_626055 = validateParameter(valid_626055, JString, required = true, default = newJString( "ReplaceRouteTableAssociation")) - if valid_626053 != nil: - section.add "Action", valid_626053 - var valid_626054 = query.getOrDefault("Version") - valid_626054 = validateParameter(valid_626054, JString, required = true, + if valid_626055 != nil: + section.add "Action", valid_626055 + var valid_626056 = query.getOrDefault("Version") + valid_626056 = validateParameter(valid_626056, JString, required = true, default = newJString("2016-11-15")) - if valid_626054 != nil: - section.add "Version", valid_626054 - var valid_626055 = query.getOrDefault("RouteTableId") - valid_626055 = validateParameter(valid_626055, JString, required = true, + if valid_626056 != nil: + section.add "Version", valid_626056 + var valid_626057 = query.getOrDefault("RouteTableId") + valid_626057 = validateParameter(valid_626057, JString, required = true, default = nil) - if valid_626055 != nil: - section.add "RouteTableId", valid_626055 + if valid_626057 != nil: + section.add "RouteTableId", valid_626057 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -123989,62 +124016,62 @@ proc validate_GetReplaceRouteTableAssociation_626049(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626056 = header.getOrDefault("X-Amz-Signature") - valid_626056 = validateParameter(valid_626056, JString, required = false, - default = nil) - if valid_626056 != nil: - section.add "X-Amz-Signature", valid_626056 - var valid_626057 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626057 = validateParameter(valid_626057, JString, required = false, - default = nil) - if valid_626057 != nil: - section.add "X-Amz-Content-Sha256", valid_626057 - var valid_626058 = header.getOrDefault("X-Amz-Date") + var valid_626058 = header.getOrDefault("X-Amz-Signature") valid_626058 = validateParameter(valid_626058, JString, required = false, default = nil) if valid_626058 != nil: - section.add "X-Amz-Date", valid_626058 - var valid_626059 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626058 + var valid_626059 = header.getOrDefault("X-Amz-Content-Sha256") valid_626059 = validateParameter(valid_626059, JString, required = false, default = nil) if valid_626059 != nil: - section.add "X-Amz-Credential", valid_626059 - var valid_626060 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626059 + var valid_626060 = header.getOrDefault("X-Amz-Date") valid_626060 = validateParameter(valid_626060, JString, required = false, default = nil) if valid_626060 != nil: - section.add "X-Amz-Security-Token", valid_626060 - var valid_626061 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626060 + var valid_626061 = header.getOrDefault("X-Amz-Credential") valid_626061 = validateParameter(valid_626061, JString, required = false, default = nil) if valid_626061 != nil: - section.add "X-Amz-Algorithm", valid_626061 - var valid_626062 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626061 + var valid_626062 = header.getOrDefault("X-Amz-Security-Token") valid_626062 = validateParameter(valid_626062, JString, required = false, default = nil) if valid_626062 != nil: - section.add "X-Amz-SignedHeaders", valid_626062 + section.add "X-Amz-Security-Token", valid_626062 + var valid_626063 = header.getOrDefault("X-Amz-Algorithm") + valid_626063 = validateParameter(valid_626063, JString, required = false, + default = nil) + if valid_626063 != nil: + section.add "X-Amz-Algorithm", valid_626063 + var valid_626064 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626064 = validateParameter(valid_626064, JString, required = false, + default = nil) + if valid_626064 != nil: + section.add "X-Amz-SignedHeaders", valid_626064 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626063: Call_GetReplaceRouteTableAssociation_626048; +proc call*(call_626065: Call_GetReplaceRouteTableAssociation_626050; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Changes the route table associated with a given subnet, internet gateway, or virtual private gateway in a VPC. After the operation completes, the subnet or gateway uses the routes in the new route table. For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.

    You can also use this operation to change which table is the main route table in the VPC. Specify the main route table's association ID and the route table ID of the new main route table.

    ## - let valid = call_626063.validator(path, query, header, formData, body) - let scheme = call_626063.pickScheme + let valid = call_626065.validator(path, query, header, formData, body) + let scheme = call_626065.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626063.url(scheme.get, call_626063.host, call_626063.base, - call_626063.route, valid.getOrDefault("path"), + let url = call_626065.url(scheme.get, call_626065.host, call_626065.base, + call_626065.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626063, url, valid) + result = atozHook(call_626065, url, valid) -proc call*(call_626064: Call_GetReplaceRouteTableAssociation_626048; +proc call*(call_626066: Call_GetReplaceRouteTableAssociation_626050; AssociationId: string; RouteTableId: string; DryRun: bool = false; Action: string = "ReplaceRouteTableAssociation"; Version: string = "2016-11-15"): Recallable = @@ -124058,23 +124085,23 @@ proc call*(call_626064: Call_GetReplaceRouteTableAssociation_626048; ## Version: string (required) ## RouteTableId: string (required) ## : The ID of the new route table to associate with the subnet. - var query_626065 = newJObject() - add(query_626065, "DryRun", newJBool(DryRun)) - add(query_626065, "AssociationId", newJString(AssociationId)) - add(query_626065, "Action", newJString(Action)) - add(query_626065, "Version", newJString(Version)) - add(query_626065, "RouteTableId", newJString(RouteTableId)) - result = call_626064.call(nil, query_626065, nil, nil, nil) - -var getReplaceRouteTableAssociation* = Call_GetReplaceRouteTableAssociation_626048( + var query_626067 = newJObject() + add(query_626067, "DryRun", newJBool(DryRun)) + add(query_626067, "AssociationId", newJString(AssociationId)) + add(query_626067, "Action", newJString(Action)) + add(query_626067, "Version", newJString(Version)) + add(query_626067, "RouteTableId", newJString(RouteTableId)) + result = call_626066.call(nil, query_626067, nil, nil, nil) + +var getReplaceRouteTableAssociation* = Call_GetReplaceRouteTableAssociation_626050( name: "getReplaceRouteTableAssociation", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ReplaceRouteTableAssociation", - validator: validate_GetReplaceRouteTableAssociation_626049, base: "/", - url: url_GetReplaceRouteTableAssociation_626050, + validator: validate_GetReplaceRouteTableAssociation_626051, base: "/", + url: url_GetReplaceRouteTableAssociation_626052, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostReplaceTransitGatewayRoute_626105 = ref object of OpenApiRestCall_610658 -proc url_PostReplaceTransitGatewayRoute_626107(protocol: Scheme; host: string; + Call_PostReplaceTransitGatewayRoute_626107 = ref object of OpenApiRestCall_610658 +proc url_PostReplaceTransitGatewayRoute_626109(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -124084,7 +124111,7 @@ proc url_PostReplaceTransitGatewayRoute_626107(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostReplaceTransitGatewayRoute_626106(path: JsonNode; +proc validate_PostReplaceTransitGatewayRoute_626108(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Replaces the specified route in the specified transit gateway route table. ## @@ -124096,16 +124123,16 @@ proc validate_PostReplaceTransitGatewayRoute_626106(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_626108 = query.getOrDefault("Action") - valid_626108 = validateParameter(valid_626108, JString, required = true, default = newJString( + var valid_626110 = query.getOrDefault("Action") + valid_626110 = validateParameter(valid_626110, JString, required = true, default = newJString( "ReplaceTransitGatewayRoute")) - if valid_626108 != nil: - section.add "Action", valid_626108 - var valid_626109 = query.getOrDefault("Version") - valid_626109 = validateParameter(valid_626109, JString, required = true, + if valid_626110 != nil: + section.add "Action", valid_626110 + var valid_626111 = query.getOrDefault("Version") + valid_626111 = validateParameter(valid_626111, JString, required = true, default = newJString("2016-11-15")) - if valid_626109 != nil: - section.add "Version", valid_626109 + if valid_626111 != nil: + section.add "Version", valid_626111 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -124116,41 +124143,41 @@ proc validate_PostReplaceTransitGatewayRoute_626106(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626110 = header.getOrDefault("X-Amz-Signature") - valid_626110 = validateParameter(valid_626110, JString, required = false, - default = nil) - if valid_626110 != nil: - section.add "X-Amz-Signature", valid_626110 - var valid_626111 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626111 = validateParameter(valid_626111, JString, required = false, - default = nil) - if valid_626111 != nil: - section.add "X-Amz-Content-Sha256", valid_626111 - var valid_626112 = header.getOrDefault("X-Amz-Date") + var valid_626112 = header.getOrDefault("X-Amz-Signature") valid_626112 = validateParameter(valid_626112, JString, required = false, default = nil) if valid_626112 != nil: - section.add "X-Amz-Date", valid_626112 - var valid_626113 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626112 + var valid_626113 = header.getOrDefault("X-Amz-Content-Sha256") valid_626113 = validateParameter(valid_626113, JString, required = false, default = nil) if valid_626113 != nil: - section.add "X-Amz-Credential", valid_626113 - var valid_626114 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626113 + var valid_626114 = header.getOrDefault("X-Amz-Date") valid_626114 = validateParameter(valid_626114, JString, required = false, default = nil) if valid_626114 != nil: - section.add "X-Amz-Security-Token", valid_626114 - var valid_626115 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626114 + var valid_626115 = header.getOrDefault("X-Amz-Credential") valid_626115 = validateParameter(valid_626115, JString, required = false, default = nil) if valid_626115 != nil: - section.add "X-Amz-Algorithm", valid_626115 - var valid_626116 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626115 + var valid_626116 = header.getOrDefault("X-Amz-Security-Token") valid_626116 = validateParameter(valid_626116, JString, required = false, default = nil) if valid_626116 != nil: - section.add "X-Amz-SignedHeaders", valid_626116 + section.add "X-Amz-Security-Token", valid_626116 + var valid_626117 = header.getOrDefault("X-Amz-Algorithm") + valid_626117 = validateParameter(valid_626117, JString, required = false, + default = nil) + if valid_626117 != nil: + section.add "X-Amz-Algorithm", valid_626117 + var valid_626118 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626118 = validateParameter(valid_626118, JString, required = false, + default = nil) + if valid_626118 != nil: + section.add "X-Amz-SignedHeaders", valid_626118 result.add "header", section ## parameters in `formData` object: ## TransitGatewayRouteTableId: JString (required) @@ -124165,47 +124192,47 @@ proc validate_PostReplaceTransitGatewayRoute_626106(path: JsonNode; ## : The ID of the attachment. section = newJObject() assert formData != nil, "formData argument is necessary due to required `TransitGatewayRouteTableId` field" - var valid_626117 = formData.getOrDefault("TransitGatewayRouteTableId") - valid_626117 = validateParameter(valid_626117, JString, required = true, - default = nil) - if valid_626117 != nil: - section.add "TransitGatewayRouteTableId", valid_626117 - var valid_626118 = formData.getOrDefault("Blackhole") - valid_626118 = validateParameter(valid_626118, JBool, required = false, default = nil) - if valid_626118 != nil: - section.add "Blackhole", valid_626118 - var valid_626119 = formData.getOrDefault("DestinationCidrBlock") + var valid_626119 = formData.getOrDefault("TransitGatewayRouteTableId") valid_626119 = validateParameter(valid_626119, JString, required = true, default = nil) if valid_626119 != nil: - section.add "DestinationCidrBlock", valid_626119 - var valid_626120 = formData.getOrDefault("DryRun") + section.add "TransitGatewayRouteTableId", valid_626119 + var valid_626120 = formData.getOrDefault("Blackhole") valid_626120 = validateParameter(valid_626120, JBool, required = false, default = nil) if valid_626120 != nil: - section.add "DryRun", valid_626120 - var valid_626121 = formData.getOrDefault("TransitGatewayAttachmentId") - valid_626121 = validateParameter(valid_626121, JString, required = false, + section.add "Blackhole", valid_626120 + var valid_626121 = formData.getOrDefault("DestinationCidrBlock") + valid_626121 = validateParameter(valid_626121, JString, required = true, default = nil) if valid_626121 != nil: - section.add "TransitGatewayAttachmentId", valid_626121 + section.add "DestinationCidrBlock", valid_626121 + var valid_626122 = formData.getOrDefault("DryRun") + valid_626122 = validateParameter(valid_626122, JBool, required = false, default = nil) + if valid_626122 != nil: + section.add "DryRun", valid_626122 + var valid_626123 = formData.getOrDefault("TransitGatewayAttachmentId") + valid_626123 = validateParameter(valid_626123, JString, required = false, + default = nil) + if valid_626123 != nil: + section.add "TransitGatewayAttachmentId", valid_626123 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626122: Call_PostReplaceTransitGatewayRoute_626105; path: JsonNode; +proc call*(call_626124: Call_PostReplaceTransitGatewayRoute_626107; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Replaces the specified route in the specified transit gateway route table. ## - let valid = call_626122.validator(path, query, header, formData, body) - let scheme = call_626122.pickScheme + let valid = call_626124.validator(path, query, header, formData, body) + let scheme = call_626124.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626122.url(scheme.get, call_626122.host, call_626122.base, - call_626122.route, valid.getOrDefault("path"), + let url = call_626124.url(scheme.get, call_626124.host, call_626124.base, + call_626124.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626122, url, valid) + result = atozHook(call_626124, url, valid) -proc call*(call_626123: Call_PostReplaceTransitGatewayRoute_626105; +proc call*(call_626125: Call_PostReplaceTransitGatewayRoute_626107; TransitGatewayRouteTableId: string; DestinationCidrBlock: string; Blackhole: bool = false; DryRun: bool = false; Action: string = "ReplaceTransitGatewayRoute"; @@ -124224,28 +124251,28 @@ proc call*(call_626123: Call_PostReplaceTransitGatewayRoute_626105; ## Version: string (required) ## TransitGatewayAttachmentId: string ## : The ID of the attachment. - var query_626124 = newJObject() - var formData_626125 = newJObject() - add(formData_626125, "TransitGatewayRouteTableId", + var query_626126 = newJObject() + var formData_626127 = newJObject() + add(formData_626127, "TransitGatewayRouteTableId", newJString(TransitGatewayRouteTableId)) - add(formData_626125, "Blackhole", newJBool(Blackhole)) - add(formData_626125, "DestinationCidrBlock", newJString(DestinationCidrBlock)) - add(formData_626125, "DryRun", newJBool(DryRun)) - add(query_626124, "Action", newJString(Action)) - add(query_626124, "Version", newJString(Version)) - add(formData_626125, "TransitGatewayAttachmentId", + add(formData_626127, "Blackhole", newJBool(Blackhole)) + add(formData_626127, "DestinationCidrBlock", newJString(DestinationCidrBlock)) + add(formData_626127, "DryRun", newJBool(DryRun)) + add(query_626126, "Action", newJString(Action)) + add(query_626126, "Version", newJString(Version)) + add(formData_626127, "TransitGatewayAttachmentId", newJString(TransitGatewayAttachmentId)) - result = call_626123.call(nil, query_626124, nil, formData_626125, nil) + result = call_626125.call(nil, query_626126, nil, formData_626127, nil) -var postReplaceTransitGatewayRoute* = Call_PostReplaceTransitGatewayRoute_626105( +var postReplaceTransitGatewayRoute* = Call_PostReplaceTransitGatewayRoute_626107( name: "postReplaceTransitGatewayRoute", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ReplaceTransitGatewayRoute", - validator: validate_PostReplaceTransitGatewayRoute_626106, base: "/", - url: url_PostReplaceTransitGatewayRoute_626107, + validator: validate_PostReplaceTransitGatewayRoute_626108, base: "/", + url: url_PostReplaceTransitGatewayRoute_626109, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetReplaceTransitGatewayRoute_626085 = ref object of OpenApiRestCall_610658 -proc url_GetReplaceTransitGatewayRoute_626087(protocol: Scheme; host: string; + Call_GetReplaceTransitGatewayRoute_626087 = ref object of OpenApiRestCall_610658 +proc url_GetReplaceTransitGatewayRoute_626089(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -124255,7 +124282,7 @@ proc url_GetReplaceTransitGatewayRoute_626087(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetReplaceTransitGatewayRoute_626086(path: JsonNode; query: JsonNode; +proc validate_GetReplaceTransitGatewayRoute_626088(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Replaces the specified route in the specified transit gateway route table. ## @@ -124277,40 +124304,40 @@ proc validate_GetReplaceTransitGatewayRoute_626086(path: JsonNode; query: JsonNo ## DestinationCidrBlock: JString (required) ## : The CIDR range used for the destination match. Routing decisions are based on the most specific match. section = newJObject() - var valid_626088 = query.getOrDefault("Blackhole") - valid_626088 = validateParameter(valid_626088, JBool, required = false, default = nil) - if valid_626088 != nil: - section.add "Blackhole", valid_626088 - var valid_626089 = query.getOrDefault("DryRun") - valid_626089 = validateParameter(valid_626089, JBool, required = false, default = nil) - if valid_626089 != nil: - section.add "DryRun", valid_626089 + var valid_626090 = query.getOrDefault("Blackhole") + valid_626090 = validateParameter(valid_626090, JBool, required = false, default = nil) + if valid_626090 != nil: + section.add "Blackhole", valid_626090 + var valid_626091 = query.getOrDefault("DryRun") + valid_626091 = validateParameter(valid_626091, JBool, required = false, default = nil) + if valid_626091 != nil: + section.add "DryRun", valid_626091 assert query != nil, "query argument is necessary due to required `TransitGatewayRouteTableId` field" - var valid_626090 = query.getOrDefault("TransitGatewayRouteTableId") - valid_626090 = validateParameter(valid_626090, JString, required = true, + var valid_626092 = query.getOrDefault("TransitGatewayRouteTableId") + valid_626092 = validateParameter(valid_626092, JString, required = true, default = nil) - if valid_626090 != nil: - section.add "TransitGatewayRouteTableId", valid_626090 - var valid_626091 = query.getOrDefault("TransitGatewayAttachmentId") - valid_626091 = validateParameter(valid_626091, JString, required = false, + if valid_626092 != nil: + section.add "TransitGatewayRouteTableId", valid_626092 + var valid_626093 = query.getOrDefault("TransitGatewayAttachmentId") + valid_626093 = validateParameter(valid_626093, JString, required = false, default = nil) - if valid_626091 != nil: - section.add "TransitGatewayAttachmentId", valid_626091 - var valid_626092 = query.getOrDefault("Action") - valid_626092 = validateParameter(valid_626092, JString, required = true, default = newJString( + if valid_626093 != nil: + section.add "TransitGatewayAttachmentId", valid_626093 + var valid_626094 = query.getOrDefault("Action") + valid_626094 = validateParameter(valid_626094, JString, required = true, default = newJString( "ReplaceTransitGatewayRoute")) - if valid_626092 != nil: - section.add "Action", valid_626092 - var valid_626093 = query.getOrDefault("Version") - valid_626093 = validateParameter(valid_626093, JString, required = true, + if valid_626094 != nil: + section.add "Action", valid_626094 + var valid_626095 = query.getOrDefault("Version") + valid_626095 = validateParameter(valid_626095, JString, required = true, default = newJString("2016-11-15")) - if valid_626093 != nil: - section.add "Version", valid_626093 - var valid_626094 = query.getOrDefault("DestinationCidrBlock") - valid_626094 = validateParameter(valid_626094, JString, required = true, + if valid_626095 != nil: + section.add "Version", valid_626095 + var valid_626096 = query.getOrDefault("DestinationCidrBlock") + valid_626096 = validateParameter(valid_626096, JString, required = true, default = nil) - if valid_626094 != nil: - section.add "DestinationCidrBlock", valid_626094 + if valid_626096 != nil: + section.add "DestinationCidrBlock", valid_626096 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -124321,61 +124348,61 @@ proc validate_GetReplaceTransitGatewayRoute_626086(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626095 = header.getOrDefault("X-Amz-Signature") - valid_626095 = validateParameter(valid_626095, JString, required = false, - default = nil) - if valid_626095 != nil: - section.add "X-Amz-Signature", valid_626095 - var valid_626096 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626096 = validateParameter(valid_626096, JString, required = false, - default = nil) - if valid_626096 != nil: - section.add "X-Amz-Content-Sha256", valid_626096 - var valid_626097 = header.getOrDefault("X-Amz-Date") + var valid_626097 = header.getOrDefault("X-Amz-Signature") valid_626097 = validateParameter(valid_626097, JString, required = false, default = nil) if valid_626097 != nil: - section.add "X-Amz-Date", valid_626097 - var valid_626098 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626097 + var valid_626098 = header.getOrDefault("X-Amz-Content-Sha256") valid_626098 = validateParameter(valid_626098, JString, required = false, default = nil) if valid_626098 != nil: - section.add "X-Amz-Credential", valid_626098 - var valid_626099 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626098 + var valid_626099 = header.getOrDefault("X-Amz-Date") valid_626099 = validateParameter(valid_626099, JString, required = false, default = nil) if valid_626099 != nil: - section.add "X-Amz-Security-Token", valid_626099 - var valid_626100 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626099 + var valid_626100 = header.getOrDefault("X-Amz-Credential") valid_626100 = validateParameter(valid_626100, JString, required = false, default = nil) if valid_626100 != nil: - section.add "X-Amz-Algorithm", valid_626100 - var valid_626101 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626100 + var valid_626101 = header.getOrDefault("X-Amz-Security-Token") valid_626101 = validateParameter(valid_626101, JString, required = false, default = nil) if valid_626101 != nil: - section.add "X-Amz-SignedHeaders", valid_626101 + section.add "X-Amz-Security-Token", valid_626101 + var valid_626102 = header.getOrDefault("X-Amz-Algorithm") + valid_626102 = validateParameter(valid_626102, JString, required = false, + default = nil) + if valid_626102 != nil: + section.add "X-Amz-Algorithm", valid_626102 + var valid_626103 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626103 = validateParameter(valid_626103, JString, required = false, + default = nil) + if valid_626103 != nil: + section.add "X-Amz-SignedHeaders", valid_626103 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626102: Call_GetReplaceTransitGatewayRoute_626085; path: JsonNode; +proc call*(call_626104: Call_GetReplaceTransitGatewayRoute_626087; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Replaces the specified route in the specified transit gateway route table. ## - let valid = call_626102.validator(path, query, header, formData, body) - let scheme = call_626102.pickScheme + let valid = call_626104.validator(path, query, header, formData, body) + let scheme = call_626104.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626102.url(scheme.get, call_626102.host, call_626102.base, - call_626102.route, valid.getOrDefault("path"), + let url = call_626104.url(scheme.get, call_626104.host, call_626104.base, + call_626104.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626102, url, valid) + result = atozHook(call_626104, url, valid) -proc call*(call_626103: Call_GetReplaceTransitGatewayRoute_626085; +proc call*(call_626105: Call_GetReplaceTransitGatewayRoute_626087; TransitGatewayRouteTableId: string; DestinationCidrBlock: string; Blackhole: bool = false; DryRun: bool = false; TransitGatewayAttachmentId: string = ""; @@ -124395,27 +124422,27 @@ proc call*(call_626103: Call_GetReplaceTransitGatewayRoute_626085; ## Version: string (required) ## DestinationCidrBlock: string (required) ## : The CIDR range used for the destination match. Routing decisions are based on the most specific match. - var query_626104 = newJObject() - add(query_626104, "Blackhole", newJBool(Blackhole)) - add(query_626104, "DryRun", newJBool(DryRun)) - add(query_626104, "TransitGatewayRouteTableId", + var query_626106 = newJObject() + add(query_626106, "Blackhole", newJBool(Blackhole)) + add(query_626106, "DryRun", newJBool(DryRun)) + add(query_626106, "TransitGatewayRouteTableId", newJString(TransitGatewayRouteTableId)) - add(query_626104, "TransitGatewayAttachmentId", + add(query_626106, "TransitGatewayAttachmentId", newJString(TransitGatewayAttachmentId)) - add(query_626104, "Action", newJString(Action)) - add(query_626104, "Version", newJString(Version)) - add(query_626104, "DestinationCidrBlock", newJString(DestinationCidrBlock)) - result = call_626103.call(nil, query_626104, nil, nil, nil) + add(query_626106, "Action", newJString(Action)) + add(query_626106, "Version", newJString(Version)) + add(query_626106, "DestinationCidrBlock", newJString(DestinationCidrBlock)) + result = call_626105.call(nil, query_626106, nil, nil, nil) -var getReplaceTransitGatewayRoute* = Call_GetReplaceTransitGatewayRoute_626085( +var getReplaceTransitGatewayRoute* = Call_GetReplaceTransitGatewayRoute_626087( name: "getReplaceTransitGatewayRoute", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ReplaceTransitGatewayRoute", - validator: validate_GetReplaceTransitGatewayRoute_626086, base: "/", - url: url_GetReplaceTransitGatewayRoute_626087, + validator: validate_GetReplaceTransitGatewayRoute_626088, base: "/", + url: url_GetReplaceTransitGatewayRoute_626089, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostReportInstanceStatus_626148 = ref object of OpenApiRestCall_610658 -proc url_PostReportInstanceStatus_626150(protocol: Scheme; host: string; + Call_PostReportInstanceStatus_626150 = ref object of OpenApiRestCall_610658 +proc url_PostReportInstanceStatus_626152(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -124426,7 +124453,7 @@ proc url_PostReportInstanceStatus_626150(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostReportInstanceStatus_626149(path: JsonNode; query: JsonNode; +proc validate_PostReportInstanceStatus_626151(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Submits feedback about the status of an instance. The instance must be in the running state. If your experience with the instance differs from the instance status returned by DescribeInstanceStatus, use ReportInstanceStatus to report your experience with the instance. Amazon EC2 collects this information to improve the accuracy of status checks.

    Use of this action does not change the value returned by DescribeInstanceStatus.

    ## @@ -124438,16 +124465,16 @@ proc validate_PostReportInstanceStatus_626149(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_626151 = query.getOrDefault("Action") - valid_626151 = validateParameter(valid_626151, JString, required = true, + var valid_626153 = query.getOrDefault("Action") + valid_626153 = validateParameter(valid_626153, JString, required = true, default = newJString("ReportInstanceStatus")) - if valid_626151 != nil: - section.add "Action", valid_626151 - var valid_626152 = query.getOrDefault("Version") - valid_626152 = validateParameter(valid_626152, JString, required = true, + if valid_626153 != nil: + section.add "Action", valid_626153 + var valid_626154 = query.getOrDefault("Version") + valid_626154 = validateParameter(valid_626154, JString, required = true, default = newJString("2016-11-15")) - if valid_626152 != nil: - section.add "Version", valid_626152 + if valid_626154 != nil: + section.add "Version", valid_626154 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -124458,41 +124485,41 @@ proc validate_PostReportInstanceStatus_626149(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626153 = header.getOrDefault("X-Amz-Signature") - valid_626153 = validateParameter(valid_626153, JString, required = false, - default = nil) - if valid_626153 != nil: - section.add "X-Amz-Signature", valid_626153 - var valid_626154 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626154 = validateParameter(valid_626154, JString, required = false, - default = nil) - if valid_626154 != nil: - section.add "X-Amz-Content-Sha256", valid_626154 - var valid_626155 = header.getOrDefault("X-Amz-Date") + var valid_626155 = header.getOrDefault("X-Amz-Signature") valid_626155 = validateParameter(valid_626155, JString, required = false, default = nil) if valid_626155 != nil: - section.add "X-Amz-Date", valid_626155 - var valid_626156 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626155 + var valid_626156 = header.getOrDefault("X-Amz-Content-Sha256") valid_626156 = validateParameter(valid_626156, JString, required = false, default = nil) if valid_626156 != nil: - section.add "X-Amz-Credential", valid_626156 - var valid_626157 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626156 + var valid_626157 = header.getOrDefault("X-Amz-Date") valid_626157 = validateParameter(valid_626157, JString, required = false, default = nil) if valid_626157 != nil: - section.add "X-Amz-Security-Token", valid_626157 - var valid_626158 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626157 + var valid_626158 = header.getOrDefault("X-Amz-Credential") valid_626158 = validateParameter(valid_626158, JString, required = false, default = nil) if valid_626158 != nil: - section.add "X-Amz-Algorithm", valid_626158 - var valid_626159 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626158 + var valid_626159 = header.getOrDefault("X-Amz-Security-Token") valid_626159 = validateParameter(valid_626159, JString, required = false, default = nil) if valid_626159 != nil: - section.add "X-Amz-SignedHeaders", valid_626159 + section.add "X-Amz-Security-Token", valid_626159 + var valid_626160 = header.getOrDefault("X-Amz-Algorithm") + valid_626160 = validateParameter(valid_626160, JString, required = false, + default = nil) + if valid_626160 != nil: + section.add "X-Amz-Algorithm", valid_626160 + var valid_626161 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626161 = validateParameter(valid_626161, JString, required = false, + default = nil) + if valid_626161 != nil: + section.add "X-Amz-SignedHeaders", valid_626161 result.add "header", section ## parameters in `formData` object: ## Description: JString @@ -124510,58 +124537,58 @@ proc validate_PostReportInstanceStatus_626149(path: JsonNode; query: JsonNode; ## ReasonCode: JArray (required) ## :

    The reason codes that describe the health state of your instance.

    section = newJObject() - var valid_626160 = formData.getOrDefault("Description") - valid_626160 = validateParameter(valid_626160, JString, required = false, - default = nil) - if valid_626160 != nil: - section.add "Description", valid_626160 - var valid_626161 = formData.getOrDefault("EndTime") - valid_626161 = validateParameter(valid_626161, JString, required = false, - default = nil) - if valid_626161 != nil: - section.add "EndTime", valid_626161 - var valid_626162 = formData.getOrDefault("StartTime") + var valid_626162 = formData.getOrDefault("Description") valid_626162 = validateParameter(valid_626162, JString, required = false, default = nil) if valid_626162 != nil: - section.add "StartTime", valid_626162 - var valid_626163 = formData.getOrDefault("DryRun") - valid_626163 = validateParameter(valid_626163, JBool, required = false, default = nil) + section.add "Description", valid_626162 + var valid_626163 = formData.getOrDefault("EndTime") + valid_626163 = validateParameter(valid_626163, JString, required = false, + default = nil) if valid_626163 != nil: - section.add "DryRun", valid_626163 - assert formData != nil, - "formData argument is necessary due to required `InstanceId` field" - var valid_626164 = formData.getOrDefault("InstanceId") - valid_626164 = validateParameter(valid_626164, JArray, required = true, default = nil) + section.add "EndTime", valid_626163 + var valid_626164 = formData.getOrDefault("StartTime") + valid_626164 = validateParameter(valid_626164, JString, required = false, + default = nil) if valid_626164 != nil: - section.add "InstanceId", valid_626164 - var valid_626165 = formData.getOrDefault("Status") - valid_626165 = validateParameter(valid_626165, JString, required = true, - default = newJString("ok")) + section.add "StartTime", valid_626164 + var valid_626165 = formData.getOrDefault("DryRun") + valid_626165 = validateParameter(valid_626165, JBool, required = false, default = nil) if valid_626165 != nil: - section.add "Status", valid_626165 - var valid_626166 = formData.getOrDefault("ReasonCode") + section.add "DryRun", valid_626165 + assert formData != nil, + "formData argument is necessary due to required `InstanceId` field" + var valid_626166 = formData.getOrDefault("InstanceId") valid_626166 = validateParameter(valid_626166, JArray, required = true, default = nil) if valid_626166 != nil: - section.add "ReasonCode", valid_626166 + section.add "InstanceId", valid_626166 + var valid_626167 = formData.getOrDefault("Status") + valid_626167 = validateParameter(valid_626167, JString, required = true, + default = newJString("ok")) + if valid_626167 != nil: + section.add "Status", valid_626167 + var valid_626168 = formData.getOrDefault("ReasonCode") + valid_626168 = validateParameter(valid_626168, JArray, required = true, default = nil) + if valid_626168 != nil: + section.add "ReasonCode", valid_626168 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626167: Call_PostReportInstanceStatus_626148; path: JsonNode; +proc call*(call_626169: Call_PostReportInstanceStatus_626150; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Submits feedback about the status of an instance. The instance must be in the running state. If your experience with the instance differs from the instance status returned by DescribeInstanceStatus, use ReportInstanceStatus to report your experience with the instance. Amazon EC2 collects this information to improve the accuracy of status checks.

    Use of this action does not change the value returned by DescribeInstanceStatus.

    ## - let valid = call_626167.validator(path, query, header, formData, body) - let scheme = call_626167.pickScheme + let valid = call_626169.validator(path, query, header, formData, body) + let scheme = call_626169.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626167.url(scheme.get, call_626167.host, call_626167.base, - call_626167.route, valid.getOrDefault("path"), + let url = call_626169.url(scheme.get, call_626169.host, call_626169.base, + call_626169.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626167, url, valid) + result = atozHook(call_626169, url, valid) -proc call*(call_626168: Call_PostReportInstanceStatus_626148; InstanceId: JsonNode; +proc call*(call_626170: Call_PostReportInstanceStatus_626150; InstanceId: JsonNode; ReasonCode: JsonNode; Description: string = ""; EndTime: string = ""; StartTime: string = ""; DryRun: bool = false; Action: string = "ReportInstanceStatus"; Status: string = "ok"; @@ -124584,29 +124611,29 @@ proc call*(call_626168: Call_PostReportInstanceStatus_626148; InstanceId: JsonNo ## Version: string (required) ## ReasonCode: JArray (required) ## :

    The reason codes that describe the health state of your instance.

    - var query_626169 = newJObject() - var formData_626170 = newJObject() - add(formData_626170, "Description", newJString(Description)) - add(formData_626170, "EndTime", newJString(EndTime)) - add(formData_626170, "StartTime", newJString(StartTime)) - add(formData_626170, "DryRun", newJBool(DryRun)) + var query_626171 = newJObject() + var formData_626172 = newJObject() + add(formData_626172, "Description", newJString(Description)) + add(formData_626172, "EndTime", newJString(EndTime)) + add(formData_626172, "StartTime", newJString(StartTime)) + add(formData_626172, "DryRun", newJBool(DryRun)) if InstanceId != nil: - formData_626170.add "InstanceId", InstanceId - add(query_626169, "Action", newJString(Action)) - add(formData_626170, "Status", newJString(Status)) - add(query_626169, "Version", newJString(Version)) + formData_626172.add "InstanceId", InstanceId + add(query_626171, "Action", newJString(Action)) + add(formData_626172, "Status", newJString(Status)) + add(query_626171, "Version", newJString(Version)) if ReasonCode != nil: - formData_626170.add "ReasonCode", ReasonCode - result = call_626168.call(nil, query_626169, nil, formData_626170, nil) + formData_626172.add "ReasonCode", ReasonCode + result = call_626170.call(nil, query_626171, nil, formData_626172, nil) -var postReportInstanceStatus* = Call_PostReportInstanceStatus_626148( +var postReportInstanceStatus* = Call_PostReportInstanceStatus_626150( name: "postReportInstanceStatus", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ReportInstanceStatus", - validator: validate_PostReportInstanceStatus_626149, base: "/", - url: url_PostReportInstanceStatus_626150, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostReportInstanceStatus_626151, base: "/", + url: url_PostReportInstanceStatus_626152, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetReportInstanceStatus_626126 = ref object of OpenApiRestCall_610658 -proc url_GetReportInstanceStatus_626128(protocol: Scheme; host: string; base: string; + Call_GetReportInstanceStatus_626128 = ref object of OpenApiRestCall_610658 +proc url_GetReportInstanceStatus_626130(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -124617,7 +124644,7 @@ proc url_GetReportInstanceStatus_626128(protocol: Scheme; host: string; base: st else: result.path = base & route -proc validate_GetReportInstanceStatus_626127(path: JsonNode; query: JsonNode; +proc validate_GetReportInstanceStatus_626129(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Submits feedback about the status of an instance. The instance must be in the running state. If your experience with the instance differs from the instance status returned by DescribeInstanceStatus, use ReportInstanceStatus to report your experience with the instance. Amazon EC2 collects this information to improve the accuracy of status checks.

    Use of this action does not change the value returned by DescribeInstanceStatus.

    ## @@ -124643,48 +124670,48 @@ proc validate_GetReportInstanceStatus_626127(path: JsonNode; query: JsonNode; ## : The time at which the reported instance health state ended. ## Version: JString (required) section = newJObject() - var valid_626129 = query.getOrDefault("Status") - valid_626129 = validateParameter(valid_626129, JString, required = true, + var valid_626131 = query.getOrDefault("Status") + valid_626131 = validateParameter(valid_626131, JString, required = true, default = newJString("ok")) - if valid_626129 != nil: - section.add "Status", valid_626129 - var valid_626130 = query.getOrDefault("DryRun") - valid_626130 = validateParameter(valid_626130, JBool, required = false, default = nil) - if valid_626130 != nil: - section.add "DryRun", valid_626130 - var valid_626131 = query.getOrDefault("InstanceId") - valid_626131 = validateParameter(valid_626131, JArray, required = true, default = nil) if valid_626131 != nil: - section.add "InstanceId", valid_626131 - var valid_626132 = query.getOrDefault("ReasonCode") - valid_626132 = validateParameter(valid_626132, JArray, required = true, default = nil) + section.add "Status", valid_626131 + var valid_626132 = query.getOrDefault("DryRun") + valid_626132 = validateParameter(valid_626132, JBool, required = false, default = nil) if valid_626132 != nil: - section.add "ReasonCode", valid_626132 - var valid_626133 = query.getOrDefault("Action") - valid_626133 = validateParameter(valid_626133, JString, required = true, - default = newJString("ReportInstanceStatus")) + section.add "DryRun", valid_626132 + var valid_626133 = query.getOrDefault("InstanceId") + valid_626133 = validateParameter(valid_626133, JArray, required = true, default = nil) if valid_626133 != nil: - section.add "Action", valid_626133 - var valid_626134 = query.getOrDefault("Description") - valid_626134 = validateParameter(valid_626134, JString, required = false, - default = nil) + section.add "InstanceId", valid_626133 + var valid_626134 = query.getOrDefault("ReasonCode") + valid_626134 = validateParameter(valid_626134, JArray, required = true, default = nil) if valid_626134 != nil: - section.add "Description", valid_626134 - var valid_626135 = query.getOrDefault("StartTime") - valid_626135 = validateParameter(valid_626135, JString, required = false, - default = nil) + section.add "ReasonCode", valid_626134 + var valid_626135 = query.getOrDefault("Action") + valid_626135 = validateParameter(valid_626135, JString, required = true, + default = newJString("ReportInstanceStatus")) if valid_626135 != nil: - section.add "StartTime", valid_626135 - var valid_626136 = query.getOrDefault("EndTime") + section.add "Action", valid_626135 + var valid_626136 = query.getOrDefault("Description") valid_626136 = validateParameter(valid_626136, JString, required = false, default = nil) if valid_626136 != nil: - section.add "EndTime", valid_626136 - var valid_626137 = query.getOrDefault("Version") - valid_626137 = validateParameter(valid_626137, JString, required = true, - default = newJString("2016-11-15")) + section.add "Description", valid_626136 + var valid_626137 = query.getOrDefault("StartTime") + valid_626137 = validateParameter(valid_626137, JString, required = false, + default = nil) if valid_626137 != nil: - section.add "Version", valid_626137 + section.add "StartTime", valid_626137 + var valid_626138 = query.getOrDefault("EndTime") + valid_626138 = validateParameter(valid_626138, JString, required = false, + default = nil) + if valid_626138 != nil: + section.add "EndTime", valid_626138 + var valid_626139 = query.getOrDefault("Version") + valid_626139 = validateParameter(valid_626139, JString, required = true, + default = newJString("2016-11-15")) + if valid_626139 != nil: + section.add "Version", valid_626139 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -124695,61 +124722,61 @@ proc validate_GetReportInstanceStatus_626127(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626138 = header.getOrDefault("X-Amz-Signature") - valid_626138 = validateParameter(valid_626138, JString, required = false, - default = nil) - if valid_626138 != nil: - section.add "X-Amz-Signature", valid_626138 - var valid_626139 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626139 = validateParameter(valid_626139, JString, required = false, - default = nil) - if valid_626139 != nil: - section.add "X-Amz-Content-Sha256", valid_626139 - var valid_626140 = header.getOrDefault("X-Amz-Date") + var valid_626140 = header.getOrDefault("X-Amz-Signature") valid_626140 = validateParameter(valid_626140, JString, required = false, default = nil) if valid_626140 != nil: - section.add "X-Amz-Date", valid_626140 - var valid_626141 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626140 + var valid_626141 = header.getOrDefault("X-Amz-Content-Sha256") valid_626141 = validateParameter(valid_626141, JString, required = false, default = nil) if valid_626141 != nil: - section.add "X-Amz-Credential", valid_626141 - var valid_626142 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626141 + var valid_626142 = header.getOrDefault("X-Amz-Date") valid_626142 = validateParameter(valid_626142, JString, required = false, default = nil) if valid_626142 != nil: - section.add "X-Amz-Security-Token", valid_626142 - var valid_626143 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626142 + var valid_626143 = header.getOrDefault("X-Amz-Credential") valid_626143 = validateParameter(valid_626143, JString, required = false, default = nil) if valid_626143 != nil: - section.add "X-Amz-Algorithm", valid_626143 - var valid_626144 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626143 + var valid_626144 = header.getOrDefault("X-Amz-Security-Token") valid_626144 = validateParameter(valid_626144, JString, required = false, default = nil) if valid_626144 != nil: - section.add "X-Amz-SignedHeaders", valid_626144 + section.add "X-Amz-Security-Token", valid_626144 + var valid_626145 = header.getOrDefault("X-Amz-Algorithm") + valid_626145 = validateParameter(valid_626145, JString, required = false, + default = nil) + if valid_626145 != nil: + section.add "X-Amz-Algorithm", valid_626145 + var valid_626146 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626146 = validateParameter(valid_626146, JString, required = false, + default = nil) + if valid_626146 != nil: + section.add "X-Amz-SignedHeaders", valid_626146 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626145: Call_GetReportInstanceStatus_626126; path: JsonNode; +proc call*(call_626147: Call_GetReportInstanceStatus_626128; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Submits feedback about the status of an instance. The instance must be in the running state. If your experience with the instance differs from the instance status returned by DescribeInstanceStatus, use ReportInstanceStatus to report your experience with the instance. Amazon EC2 collects this information to improve the accuracy of status checks.

    Use of this action does not change the value returned by DescribeInstanceStatus.

    ## - let valid = call_626145.validator(path, query, header, formData, body) - let scheme = call_626145.pickScheme + let valid = call_626147.validator(path, query, header, formData, body) + let scheme = call_626147.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626145.url(scheme.get, call_626145.host, call_626145.base, - call_626145.route, valid.getOrDefault("path"), + let url = call_626147.url(scheme.get, call_626147.host, call_626147.base, + call_626147.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626145, url, valid) + result = atozHook(call_626147, url, valid) -proc call*(call_626146: Call_GetReportInstanceStatus_626126; InstanceId: JsonNode; +proc call*(call_626148: Call_GetReportInstanceStatus_626128; InstanceId: JsonNode; ReasonCode: JsonNode; Status: string = "ok"; DryRun: bool = false; Action: string = "ReportInstanceStatus"; Description: string = ""; StartTime: string = ""; EndTime: string = ""; Version: string = "2016-11-15"): Recallable = @@ -124771,28 +124798,28 @@ proc call*(call_626146: Call_GetReportInstanceStatus_626126; InstanceId: JsonNod ## EndTime: string ## : The time at which the reported instance health state ended. ## Version: string (required) - var query_626147 = newJObject() - add(query_626147, "Status", newJString(Status)) - add(query_626147, "DryRun", newJBool(DryRun)) + var query_626149 = newJObject() + add(query_626149, "Status", newJString(Status)) + add(query_626149, "DryRun", newJBool(DryRun)) if InstanceId != nil: - query_626147.add "InstanceId", InstanceId + query_626149.add "InstanceId", InstanceId if ReasonCode != nil: - query_626147.add "ReasonCode", ReasonCode - add(query_626147, "Action", newJString(Action)) - add(query_626147, "Description", newJString(Description)) - add(query_626147, "StartTime", newJString(StartTime)) - add(query_626147, "EndTime", newJString(EndTime)) - add(query_626147, "Version", newJString(Version)) - result = call_626146.call(nil, query_626147, nil, nil, nil) - -var getReportInstanceStatus* = Call_GetReportInstanceStatus_626126( + query_626149.add "ReasonCode", ReasonCode + add(query_626149, "Action", newJString(Action)) + add(query_626149, "Description", newJString(Description)) + add(query_626149, "StartTime", newJString(StartTime)) + add(query_626149, "EndTime", newJString(EndTime)) + add(query_626149, "Version", newJString(Version)) + result = call_626148.call(nil, query_626149, nil, nil, nil) + +var getReportInstanceStatus* = Call_GetReportInstanceStatus_626128( name: "getReportInstanceStatus", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ReportInstanceStatus", - validator: validate_GetReportInstanceStatus_626127, base: "/", - url: url_GetReportInstanceStatus_626128, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetReportInstanceStatus_626129, base: "/", + url: url_GetReportInstanceStatus_626130, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostRequestSpotFleet_626210 = ref object of OpenApiRestCall_610658 -proc url_PostRequestSpotFleet_626212(protocol: Scheme; host: string; base: string; + Call_PostRequestSpotFleet_626212 = ref object of OpenApiRestCall_610658 +proc url_PostRequestSpotFleet_626214(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -124802,7 +124829,7 @@ proc url_PostRequestSpotFleet_626212(protocol: Scheme; host: string; base: strin else: result.path = base & route -proc validate_PostRequestSpotFleet_626211(path: JsonNode; query: JsonNode; +proc validate_PostRequestSpotFleet_626213(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Creates a Spot Fleet request.

    The Spot Fleet request specifies the total target capacity and the On-Demand target capacity. Amazon EC2 calculates the difference between the total capacity and On-Demand capacity, and launches the difference as Spot capacity.

    You can submit a single request that includes multiple launch specifications that vary by instance type, AMI, Availability Zone, or subnet.

    By default, the Spot Fleet requests Spot Instances in the Spot Instance pool where the price per unit is the lowest. Each launch specification can include its own instance weighting that reflects the value of the instance type to your application workload.

    Alternatively, you can specify that the Spot Fleet distribute the target capacity across the Spot pools included in its launch specifications. By ensuring that the Spot Instances in your Spot Fleet are in different Spot pools, you can improve the availability of your fleet.

    You can specify tags for the Spot Fleet and Spot Instances. You cannot tag other resource types in a Spot Fleet request because only the spot-fleet-request and instance resource types are supported.

    For more information, see Spot Fleet Requests in the Amazon EC2 User Guide for Linux Instances.

    ## @@ -124814,16 +124841,16 @@ proc validate_PostRequestSpotFleet_626211(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_626213 = query.getOrDefault("Action") - valid_626213 = validateParameter(valid_626213, JString, required = true, + var valid_626215 = query.getOrDefault("Action") + valid_626215 = validateParameter(valid_626215, JString, required = true, default = newJString("RequestSpotFleet")) - if valid_626213 != nil: - section.add "Action", valid_626213 - var valid_626214 = query.getOrDefault("Version") - valid_626214 = validateParameter(valid_626214, JString, required = true, + if valid_626215 != nil: + section.add "Action", valid_626215 + var valid_626216 = query.getOrDefault("Version") + valid_626216 = validateParameter(valid_626216, JString, required = true, default = newJString("2016-11-15")) - if valid_626214 != nil: - section.add "Version", valid_626214 + if valid_626216 != nil: + section.add "Version", valid_626216 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -124834,41 +124861,41 @@ proc validate_PostRequestSpotFleet_626211(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626215 = header.getOrDefault("X-Amz-Signature") - valid_626215 = validateParameter(valid_626215, JString, required = false, - default = nil) - if valid_626215 != nil: - section.add "X-Amz-Signature", valid_626215 - var valid_626216 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626216 = validateParameter(valid_626216, JString, required = false, - default = nil) - if valid_626216 != nil: - section.add "X-Amz-Content-Sha256", valid_626216 - var valid_626217 = header.getOrDefault("X-Amz-Date") + var valid_626217 = header.getOrDefault("X-Amz-Signature") valid_626217 = validateParameter(valid_626217, JString, required = false, default = nil) if valid_626217 != nil: - section.add "X-Amz-Date", valid_626217 - var valid_626218 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626217 + var valid_626218 = header.getOrDefault("X-Amz-Content-Sha256") valid_626218 = validateParameter(valid_626218, JString, required = false, default = nil) if valid_626218 != nil: - section.add "X-Amz-Credential", valid_626218 - var valid_626219 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626218 + var valid_626219 = header.getOrDefault("X-Amz-Date") valid_626219 = validateParameter(valid_626219, JString, required = false, default = nil) if valid_626219 != nil: - section.add "X-Amz-Security-Token", valid_626219 - var valid_626220 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626219 + var valid_626220 = header.getOrDefault("X-Amz-Credential") valid_626220 = validateParameter(valid_626220, JString, required = false, default = nil) if valid_626220 != nil: - section.add "X-Amz-Algorithm", valid_626220 - var valid_626221 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626220 + var valid_626221 = header.getOrDefault("X-Amz-Security-Token") valid_626221 = validateParameter(valid_626221, JString, required = false, default = nil) if valid_626221 != nil: - section.add "X-Amz-SignedHeaders", valid_626221 + section.add "X-Amz-Security-Token", valid_626221 + var valid_626222 = header.getOrDefault("X-Amz-Algorithm") + valid_626222 = validateParameter(valid_626222, JString, required = false, + default = nil) + if valid_626222 != nil: + section.add "X-Amz-Algorithm", valid_626222 + var valid_626223 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626223 = validateParameter(valid_626223, JString, required = false, + default = nil) + if valid_626223 != nil: + section.add "X-Amz-SignedHeaders", valid_626223 result.add "header", section ## parameters in `formData` object: ## SpotFleetRequestConfig.ReplaceUnhealthyInstances: JString @@ -124947,143 +124974,143 @@ proc validate_PostRequestSpotFleet_626211(path: JsonNode; query: JsonNode; ## : Describes the configuration of a Spot Fleet request. ## The maximum amount per hour for Spot Instances that you're willing to pay. You can use the spotdMaxTotalPrice parameter, the onDemandMaxTotalPrice parameter, or both parameters to ensure that your fleet cost does not exceed your budget. If you set a maximum price per hour for the On-Demand Instances and Spot Instances in your request, Spot Fleet will launch instances until it reaches the maximum amount you're willing to pay. When the maximum amount you're willing to pay is reached, the fleet stops launching instances even if it hasn’t met the target capacity. section = newJObject() - var valid_626222 = formData.getOrDefault("SpotFleetRequestConfig.ReplaceUnhealthyInstances") - valid_626222 = validateParameter(valid_626222, JString, required = false, - default = nil) - if valid_626222 != nil: - section.add "SpotFleetRequestConfig.ReplaceUnhealthyInstances", valid_626222 - var valid_626223 = formData.getOrDefault("SpotFleetRequestConfig.AllocationStrategy") - valid_626223 = validateParameter(valid_626223, JString, required = false, - default = nil) - if valid_626223 != nil: - section.add "SpotFleetRequestConfig.AllocationStrategy", valid_626223 - var valid_626224 = formData.getOrDefault("SpotFleetRequestConfig.OnDemandMaxTotalPrice") + var valid_626224 = formData.getOrDefault("SpotFleetRequestConfig.ReplaceUnhealthyInstances") valid_626224 = validateParameter(valid_626224, JString, required = false, default = nil) if valid_626224 != nil: - section.add "SpotFleetRequestConfig.OnDemandMaxTotalPrice", valid_626224 - var valid_626225 = formData.getOrDefault("SpotFleetRequestConfig.ValidUntil") + section.add "SpotFleetRequestConfig.ReplaceUnhealthyInstances", valid_626224 + var valid_626225 = formData.getOrDefault("SpotFleetRequestConfig.AllocationStrategy") valid_626225 = validateParameter(valid_626225, JString, required = false, default = nil) if valid_626225 != nil: - section.add "SpotFleetRequestConfig.ValidUntil", valid_626225 - var valid_626226 = formData.getOrDefault("SpotFleetRequestConfig.SpotPrice") + section.add "SpotFleetRequestConfig.AllocationStrategy", valid_626225 + var valid_626226 = formData.getOrDefault("SpotFleetRequestConfig.OnDemandMaxTotalPrice") valid_626226 = validateParameter(valid_626226, JString, required = false, default = nil) if valid_626226 != nil: - section.add "SpotFleetRequestConfig.SpotPrice", valid_626226 - var valid_626227 = formData.getOrDefault("SpotFleetRequestConfig.LoadBalancersConfig") + section.add "SpotFleetRequestConfig.OnDemandMaxTotalPrice", valid_626226 + var valid_626227 = formData.getOrDefault("SpotFleetRequestConfig.ValidUntil") valid_626227 = validateParameter(valid_626227, JString, required = false, default = nil) if valid_626227 != nil: - section.add "SpotFleetRequestConfig.LoadBalancersConfig", valid_626227 - var valid_626228 = formData.getOrDefault("SpotFleetRequestConfig.OnDemandAllocationStrategy") + section.add "SpotFleetRequestConfig.ValidUntil", valid_626227 + var valid_626228 = formData.getOrDefault("SpotFleetRequestConfig.SpotPrice") valid_626228 = validateParameter(valid_626228, JString, required = false, default = nil) if valid_626228 != nil: - section.add "SpotFleetRequestConfig.OnDemandAllocationStrategy", valid_626228 - var valid_626229 = formData.getOrDefault("SpotFleetRequestConfig.InstanceInterruptionBehavior") + section.add "SpotFleetRequestConfig.SpotPrice", valid_626228 + var valid_626229 = formData.getOrDefault("SpotFleetRequestConfig.LoadBalancersConfig") valid_626229 = validateParameter(valid_626229, JString, required = false, default = nil) if valid_626229 != nil: - section.add "SpotFleetRequestConfig.InstanceInterruptionBehavior", valid_626229 - var valid_626230 = formData.getOrDefault("SpotFleetRequestConfig.Type") + section.add "SpotFleetRequestConfig.LoadBalancersConfig", valid_626229 + var valid_626230 = formData.getOrDefault("SpotFleetRequestConfig.OnDemandAllocationStrategy") valid_626230 = validateParameter(valid_626230, JString, required = false, default = nil) if valid_626230 != nil: - section.add "SpotFleetRequestConfig.Type", valid_626230 - var valid_626231 = formData.getOrDefault("SpotFleetRequestConfig.FulfilledCapacity") + section.add "SpotFleetRequestConfig.OnDemandAllocationStrategy", valid_626230 + var valid_626231 = formData.getOrDefault("SpotFleetRequestConfig.InstanceInterruptionBehavior") valid_626231 = validateParameter(valid_626231, JString, required = false, default = nil) if valid_626231 != nil: - section.add "SpotFleetRequestConfig.FulfilledCapacity", valid_626231 - var valid_626232 = formData.getOrDefault("SpotFleetRequestConfig.IamFleetRole") + section.add "SpotFleetRequestConfig.InstanceInterruptionBehavior", valid_626231 + var valid_626232 = formData.getOrDefault("SpotFleetRequestConfig.Type") valid_626232 = validateParameter(valid_626232, JString, required = false, default = nil) if valid_626232 != nil: - section.add "SpotFleetRequestConfig.IamFleetRole", valid_626232 - var valid_626233 = formData.getOrDefault("SpotFleetRequestConfig.TerminateInstancesWithExpiration") + section.add "SpotFleetRequestConfig.Type", valid_626232 + var valid_626233 = formData.getOrDefault("SpotFleetRequestConfig.FulfilledCapacity") valid_626233 = validateParameter(valid_626233, JString, required = false, default = nil) if valid_626233 != nil: - section.add "SpotFleetRequestConfig.TerminateInstancesWithExpiration", valid_626233 - var valid_626234 = formData.getOrDefault("SpotFleetRequestConfig.TagSpecifications") - valid_626234 = validateParameter(valid_626234, JArray, required = false, + section.add "SpotFleetRequestConfig.FulfilledCapacity", valid_626233 + var valid_626234 = formData.getOrDefault("SpotFleetRequestConfig.IamFleetRole") + valid_626234 = validateParameter(valid_626234, JString, required = false, default = nil) if valid_626234 != nil: - section.add "SpotFleetRequestConfig.TagSpecifications", valid_626234 - var valid_626235 = formData.getOrDefault("DryRun") - valid_626235 = validateParameter(valid_626235, JBool, required = false, default = nil) + section.add "SpotFleetRequestConfig.IamFleetRole", valid_626234 + var valid_626235 = formData.getOrDefault("SpotFleetRequestConfig.TerminateInstancesWithExpiration") + valid_626235 = validateParameter(valid_626235, JString, required = false, + default = nil) if valid_626235 != nil: - section.add "DryRun", valid_626235 - var valid_626236 = formData.getOrDefault("SpotFleetRequestConfig.OnDemandFulfilledCapacity") - valid_626236 = validateParameter(valid_626236, JString, required = false, + section.add "SpotFleetRequestConfig.TerminateInstancesWithExpiration", valid_626235 + var valid_626236 = formData.getOrDefault("SpotFleetRequestConfig.TagSpecifications") + valid_626236 = validateParameter(valid_626236, JArray, required = false, default = nil) if valid_626236 != nil: - section.add "SpotFleetRequestConfig.OnDemandFulfilledCapacity", valid_626236 - var valid_626237 = formData.getOrDefault("SpotFleetRequestConfig.ClientToken") - valid_626237 = validateParameter(valid_626237, JString, required = false, - default = nil) + section.add "SpotFleetRequestConfig.TagSpecifications", valid_626236 + var valid_626237 = formData.getOrDefault("DryRun") + valid_626237 = validateParameter(valid_626237, JBool, required = false, default = nil) if valid_626237 != nil: - section.add "SpotFleetRequestConfig.ClientToken", valid_626237 - var valid_626238 = formData.getOrDefault("SpotFleetRequestConfig.LaunchTemplateConfigs") - valid_626238 = validateParameter(valid_626238, JArray, required = false, + section.add "DryRun", valid_626237 + var valid_626238 = formData.getOrDefault("SpotFleetRequestConfig.OnDemandFulfilledCapacity") + valid_626238 = validateParameter(valid_626238, JString, required = false, default = nil) if valid_626238 != nil: - section.add "SpotFleetRequestConfig.LaunchTemplateConfigs", valid_626238 - var valid_626239 = formData.getOrDefault("SpotFleetRequestConfig.LaunchSpecifications") - valid_626239 = validateParameter(valid_626239, JArray, required = false, + section.add "SpotFleetRequestConfig.OnDemandFulfilledCapacity", valid_626238 + var valid_626239 = formData.getOrDefault("SpotFleetRequestConfig.ClientToken") + valid_626239 = validateParameter(valid_626239, JString, required = false, default = nil) if valid_626239 != nil: - section.add "SpotFleetRequestConfig.LaunchSpecifications", valid_626239 - var valid_626240 = formData.getOrDefault("SpotFleetRequestConfig.ExcessCapacityTerminationPolicy") - valid_626240 = validateParameter(valid_626240, JString, required = false, + section.add "SpotFleetRequestConfig.ClientToken", valid_626239 + var valid_626240 = formData.getOrDefault("SpotFleetRequestConfig.LaunchTemplateConfigs") + valid_626240 = validateParameter(valid_626240, JArray, required = false, default = nil) if valid_626240 != nil: - section.add "SpotFleetRequestConfig.ExcessCapacityTerminationPolicy", valid_626240 - var valid_626241 = formData.getOrDefault("SpotFleetRequestConfig.InstancePoolsToUseCount") - valid_626241 = validateParameter(valid_626241, JString, required = false, + section.add "SpotFleetRequestConfig.LaunchTemplateConfigs", valid_626240 + var valid_626241 = formData.getOrDefault("SpotFleetRequestConfig.LaunchSpecifications") + valid_626241 = validateParameter(valid_626241, JArray, required = false, default = nil) if valid_626241 != nil: - section.add "SpotFleetRequestConfig.InstancePoolsToUseCount", valid_626241 - var valid_626242 = formData.getOrDefault("SpotFleetRequestConfig.TargetCapacity") + section.add "SpotFleetRequestConfig.LaunchSpecifications", valid_626241 + var valid_626242 = formData.getOrDefault("SpotFleetRequestConfig.ExcessCapacityTerminationPolicy") valid_626242 = validateParameter(valid_626242, JString, required = false, default = nil) if valid_626242 != nil: - section.add "SpotFleetRequestConfig.TargetCapacity", valid_626242 - var valid_626243 = formData.getOrDefault("SpotFleetRequestConfig.ValidFrom") + section.add "SpotFleetRequestConfig.ExcessCapacityTerminationPolicy", valid_626242 + var valid_626243 = formData.getOrDefault("SpotFleetRequestConfig.InstancePoolsToUseCount") valid_626243 = validateParameter(valid_626243, JString, required = false, default = nil) if valid_626243 != nil: - section.add "SpotFleetRequestConfig.ValidFrom", valid_626243 - var valid_626244 = formData.getOrDefault("SpotFleetRequestConfig.OnDemandTargetCapacity") + section.add "SpotFleetRequestConfig.InstancePoolsToUseCount", valid_626243 + var valid_626244 = formData.getOrDefault("SpotFleetRequestConfig.TargetCapacity") valid_626244 = validateParameter(valid_626244, JString, required = false, default = nil) if valid_626244 != nil: - section.add "SpotFleetRequestConfig.OnDemandTargetCapacity", valid_626244 - var valid_626245 = formData.getOrDefault("SpotFleetRequestConfig.SpotMaxTotalPrice") + section.add "SpotFleetRequestConfig.TargetCapacity", valid_626244 + var valid_626245 = formData.getOrDefault("SpotFleetRequestConfig.ValidFrom") valid_626245 = validateParameter(valid_626245, JString, required = false, default = nil) if valid_626245 != nil: - section.add "SpotFleetRequestConfig.SpotMaxTotalPrice", valid_626245 + section.add "SpotFleetRequestConfig.ValidFrom", valid_626245 + var valid_626246 = formData.getOrDefault("SpotFleetRequestConfig.OnDemandTargetCapacity") + valid_626246 = validateParameter(valid_626246, JString, required = false, + default = nil) + if valid_626246 != nil: + section.add "SpotFleetRequestConfig.OnDemandTargetCapacity", valid_626246 + var valid_626247 = formData.getOrDefault("SpotFleetRequestConfig.SpotMaxTotalPrice") + valid_626247 = validateParameter(valid_626247, JString, required = false, + default = nil) + if valid_626247 != nil: + section.add "SpotFleetRequestConfig.SpotMaxTotalPrice", valid_626247 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626246: Call_PostRequestSpotFleet_626210; path: JsonNode; +proc call*(call_626248: Call_PostRequestSpotFleet_626212; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Creates a Spot Fleet request.

    The Spot Fleet request specifies the total target capacity and the On-Demand target capacity. Amazon EC2 calculates the difference between the total capacity and On-Demand capacity, and launches the difference as Spot capacity.

    You can submit a single request that includes multiple launch specifications that vary by instance type, AMI, Availability Zone, or subnet.

    By default, the Spot Fleet requests Spot Instances in the Spot Instance pool where the price per unit is the lowest. Each launch specification can include its own instance weighting that reflects the value of the instance type to your application workload.

    Alternatively, you can specify that the Spot Fleet distribute the target capacity across the Spot pools included in its launch specifications. By ensuring that the Spot Instances in your Spot Fleet are in different Spot pools, you can improve the availability of your fleet.

    You can specify tags for the Spot Fleet and Spot Instances. You cannot tag other resource types in a Spot Fleet request because only the spot-fleet-request and instance resource types are supported.

    For more information, see Spot Fleet Requests in the Amazon EC2 User Guide for Linux Instances.

    ## - let valid = call_626246.validator(path, query, header, formData, body) - let scheme = call_626246.pickScheme + let valid = call_626248.validator(path, query, header, formData, body) + let scheme = call_626248.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626246.url(scheme.get, call_626246.host, call_626246.base, - call_626246.route, valid.getOrDefault("path"), + let url = call_626248.url(scheme.get, call_626248.host, call_626248.base, + call_626248.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626246, url, valid) + result = atozHook(call_626248, url, valid) -proc call*(call_626247: Call_PostRequestSpotFleet_626210; +proc call*(call_626249: Call_PostRequestSpotFleet_626212; SpotFleetRequestConfigReplaceUnhealthyInstances: string = ""; SpotFleetRequestConfigAllocationStrategy: string = ""; SpotFleetRequestConfigOnDemandMaxTotalPrice: string = ""; @@ -125189,70 +125216,70 @@ proc call*(call_626247: Call_PostRequestSpotFleet_626210; ## SpotFleetRequestConfigSpotMaxTotalPrice: string ## : Describes the configuration of a Spot Fleet request. ## The maximum amount per hour for Spot Instances that you're willing to pay. You can use the spotdMaxTotalPrice parameter, the onDemandMaxTotalPrice parameter, or both parameters to ensure that your fleet cost does not exceed your budget. If you set a maximum price per hour for the On-Demand Instances and Spot Instances in your request, Spot Fleet will launch instances until it reaches the maximum amount you're willing to pay. When the maximum amount you're willing to pay is reached, the fleet stops launching instances even if it hasn’t met the target capacity. - var query_626248 = newJObject() - var formData_626249 = newJObject() - add(formData_626249, "SpotFleetRequestConfig.ReplaceUnhealthyInstances", + var query_626250 = newJObject() + var formData_626251 = newJObject() + add(formData_626251, "SpotFleetRequestConfig.ReplaceUnhealthyInstances", newJString(SpotFleetRequestConfigReplaceUnhealthyInstances)) - add(formData_626249, "SpotFleetRequestConfig.AllocationStrategy", + add(formData_626251, "SpotFleetRequestConfig.AllocationStrategy", newJString(SpotFleetRequestConfigAllocationStrategy)) - add(formData_626249, "SpotFleetRequestConfig.OnDemandMaxTotalPrice", + add(formData_626251, "SpotFleetRequestConfig.OnDemandMaxTotalPrice", newJString(SpotFleetRequestConfigOnDemandMaxTotalPrice)) - add(formData_626249, "SpotFleetRequestConfig.ValidUntil", + add(formData_626251, "SpotFleetRequestConfig.ValidUntil", newJString(SpotFleetRequestConfigValidUntil)) - add(formData_626249, "SpotFleetRequestConfig.SpotPrice", + add(formData_626251, "SpotFleetRequestConfig.SpotPrice", newJString(SpotFleetRequestConfigSpotPrice)) - add(formData_626249, "SpotFleetRequestConfig.LoadBalancersConfig", + add(formData_626251, "SpotFleetRequestConfig.LoadBalancersConfig", newJString(SpotFleetRequestConfigLoadBalancersConfig)) - add(formData_626249, "SpotFleetRequestConfig.OnDemandAllocationStrategy", + add(formData_626251, "SpotFleetRequestConfig.OnDemandAllocationStrategy", newJString(SpotFleetRequestConfigOnDemandAllocationStrategy)) - add(formData_626249, "SpotFleetRequestConfig.InstanceInterruptionBehavior", + add(formData_626251, "SpotFleetRequestConfig.InstanceInterruptionBehavior", newJString(SpotFleetRequestConfigInstanceInterruptionBehavior)) - add(formData_626249, "SpotFleetRequestConfig.Type", + add(formData_626251, "SpotFleetRequestConfig.Type", newJString(SpotFleetRequestConfigType)) - add(formData_626249, "SpotFleetRequestConfig.FulfilledCapacity", + add(formData_626251, "SpotFleetRequestConfig.FulfilledCapacity", newJString(SpotFleetRequestConfigFulfilledCapacity)) - add(formData_626249, "SpotFleetRequestConfig.IamFleetRole", + add(formData_626251, "SpotFleetRequestConfig.IamFleetRole", newJString(SpotFleetRequestConfigIamFleetRole)) - add(formData_626249, "SpotFleetRequestConfig.TerminateInstancesWithExpiration", + add(formData_626251, "SpotFleetRequestConfig.TerminateInstancesWithExpiration", newJString(SpotFleetRequestConfigTerminateInstancesWithExpiration)) if SpotFleetRequestConfigTagSpecifications != nil: - formData_626249.add "SpotFleetRequestConfig.TagSpecifications", + formData_626251.add "SpotFleetRequestConfig.TagSpecifications", SpotFleetRequestConfigTagSpecifications - add(formData_626249, "DryRun", newJBool(DryRun)) - add(formData_626249, "SpotFleetRequestConfig.OnDemandFulfilledCapacity", + add(formData_626251, "DryRun", newJBool(DryRun)) + add(formData_626251, "SpotFleetRequestConfig.OnDemandFulfilledCapacity", newJString(SpotFleetRequestConfigOnDemandFulfilledCapacity)) - add(formData_626249, "SpotFleetRequestConfig.ClientToken", + add(formData_626251, "SpotFleetRequestConfig.ClientToken", newJString(SpotFleetRequestConfigClientToken)) if SpotFleetRequestConfigLaunchTemplateConfigs != nil: - formData_626249.add "SpotFleetRequestConfig.LaunchTemplateConfigs", + formData_626251.add "SpotFleetRequestConfig.LaunchTemplateConfigs", SpotFleetRequestConfigLaunchTemplateConfigs - add(query_626248, "Action", newJString(Action)) + add(query_626250, "Action", newJString(Action)) if SpotFleetRequestConfigLaunchSpecifications != nil: - formData_626249.add "SpotFleetRequestConfig.LaunchSpecifications", + formData_626251.add "SpotFleetRequestConfig.LaunchSpecifications", SpotFleetRequestConfigLaunchSpecifications - add(formData_626249, "SpotFleetRequestConfig.ExcessCapacityTerminationPolicy", + add(formData_626251, "SpotFleetRequestConfig.ExcessCapacityTerminationPolicy", newJString(SpotFleetRequestConfigExcessCapacityTerminationPolicy)) - add(formData_626249, "SpotFleetRequestConfig.InstancePoolsToUseCount", + add(formData_626251, "SpotFleetRequestConfig.InstancePoolsToUseCount", newJString(SpotFleetRequestConfigInstancePoolsToUseCount)) - add(formData_626249, "SpotFleetRequestConfig.TargetCapacity", + add(formData_626251, "SpotFleetRequestConfig.TargetCapacity", newJString(SpotFleetRequestConfigTargetCapacity)) - add(query_626248, "Version", newJString(Version)) - add(formData_626249, "SpotFleetRequestConfig.ValidFrom", + add(query_626250, "Version", newJString(Version)) + add(formData_626251, "SpotFleetRequestConfig.ValidFrom", newJString(SpotFleetRequestConfigValidFrom)) - add(formData_626249, "SpotFleetRequestConfig.OnDemandTargetCapacity", + add(formData_626251, "SpotFleetRequestConfig.OnDemandTargetCapacity", newJString(SpotFleetRequestConfigOnDemandTargetCapacity)) - add(formData_626249, "SpotFleetRequestConfig.SpotMaxTotalPrice", + add(formData_626251, "SpotFleetRequestConfig.SpotMaxTotalPrice", newJString(SpotFleetRequestConfigSpotMaxTotalPrice)) - result = call_626247.call(nil, query_626248, nil, formData_626249, nil) + result = call_626249.call(nil, query_626250, nil, formData_626251, nil) -var postRequestSpotFleet* = Call_PostRequestSpotFleet_626210( +var postRequestSpotFleet* = Call_PostRequestSpotFleet_626212( name: "postRequestSpotFleet", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=RequestSpotFleet", - validator: validate_PostRequestSpotFleet_626211, base: "/", - url: url_PostRequestSpotFleet_626212, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostRequestSpotFleet_626213, base: "/", + url: url_PostRequestSpotFleet_626214, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetRequestSpotFleet_626171 = ref object of OpenApiRestCall_610658 -proc url_GetRequestSpotFleet_626173(protocol: Scheme; host: string; base: string; + Call_GetRequestSpotFleet_626173 = ref object of OpenApiRestCall_610658 +proc url_GetRequestSpotFleet_626175(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -125262,7 +125289,7 @@ proc url_GetRequestSpotFleet_626173(protocol: Scheme; host: string; base: string else: result.path = base & route -proc validate_GetRequestSpotFleet_626172(path: JsonNode; query: JsonNode; +proc validate_GetRequestSpotFleet_626174(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Creates a Spot Fleet request.

    The Spot Fleet request specifies the total target capacity and the On-Demand target capacity. Amazon EC2 calculates the difference between the total capacity and On-Demand capacity, and launches the difference as Spot capacity.

    You can submit a single request that includes multiple launch specifications that vary by instance type, AMI, Availability Zone, or subnet.

    By default, the Spot Fleet requests Spot Instances in the Spot Instance pool where the price per unit is the lowest. Each launch specification can include its own instance weighting that reflects the value of the instance type to your application workload.

    Alternatively, you can specify that the Spot Fleet distribute the target capacity across the Spot pools included in its launch specifications. By ensuring that the Spot Instances in your Spot Fleet are in different Spot pools, you can improve the availability of your fleet.

    You can specify tags for the Spot Fleet and Spot Instances. You cannot tag other resource types in a Spot Fleet request because only the spot-fleet-request and instance resource types are supported.

    For more information, see Spot Fleet Requests in the Amazon EC2 User Guide for Linux Instances.

    @@ -125350,135 +125377,135 @@ proc validate_GetRequestSpotFleet_626172(path: JsonNode; query: JsonNode; ## : Describes the configuration of a Spot Fleet request. ## The number of On-Demand units fulfilled by this request compared to the set target On-Demand capacity. section = newJObject() - var valid_626174 = query.getOrDefault("SpotFleetRequestConfig.LaunchTemplateConfigs") - valid_626174 = validateParameter(valid_626174, JArray, required = false, - default = nil) - if valid_626174 != nil: - section.add "SpotFleetRequestConfig.LaunchTemplateConfigs", valid_626174 - var valid_626175 = query.getOrDefault("SpotFleetRequestConfig.TagSpecifications") - valid_626175 = validateParameter(valid_626175, JArray, required = false, + var valid_626176 = query.getOrDefault("SpotFleetRequestConfig.LaunchTemplateConfigs") + valid_626176 = validateParameter(valid_626176, JArray, required = false, default = nil) - if valid_626175 != nil: - section.add "SpotFleetRequestConfig.TagSpecifications", valid_626175 - var valid_626176 = query.getOrDefault("DryRun") - valid_626176 = validateParameter(valid_626176, JBool, required = false, default = nil) if valid_626176 != nil: - section.add "DryRun", valid_626176 - var valid_626177 = query.getOrDefault("SpotFleetRequestConfig.SpotMaxTotalPrice") - valid_626177 = validateParameter(valid_626177, JString, required = false, + section.add "SpotFleetRequestConfig.LaunchTemplateConfigs", valid_626176 + var valid_626177 = query.getOrDefault("SpotFleetRequestConfig.TagSpecifications") + valid_626177 = validateParameter(valid_626177, JArray, required = false, default = nil) if valid_626177 != nil: - section.add "SpotFleetRequestConfig.SpotMaxTotalPrice", valid_626177 - var valid_626178 = query.getOrDefault("SpotFleetRequestConfig.LaunchSpecifications") - valid_626178 = validateParameter(valid_626178, JArray, required = false, - default = nil) + section.add "SpotFleetRequestConfig.TagSpecifications", valid_626177 + var valid_626178 = query.getOrDefault("DryRun") + valid_626178 = validateParameter(valid_626178, JBool, required = false, default = nil) if valid_626178 != nil: - section.add "SpotFleetRequestConfig.LaunchSpecifications", valid_626178 - var valid_626179 = query.getOrDefault("SpotFleetRequestConfig.ExcessCapacityTerminationPolicy") + section.add "DryRun", valid_626178 + var valid_626179 = query.getOrDefault("SpotFleetRequestConfig.SpotMaxTotalPrice") valid_626179 = validateParameter(valid_626179, JString, required = false, default = nil) if valid_626179 != nil: - section.add "SpotFleetRequestConfig.ExcessCapacityTerminationPolicy", valid_626179 - var valid_626180 = query.getOrDefault("SpotFleetRequestConfig.SpotPrice") - valid_626180 = validateParameter(valid_626180, JString, required = false, + section.add "SpotFleetRequestConfig.SpotMaxTotalPrice", valid_626179 + var valid_626180 = query.getOrDefault("SpotFleetRequestConfig.LaunchSpecifications") + valid_626180 = validateParameter(valid_626180, JArray, required = false, default = nil) if valid_626180 != nil: - section.add "SpotFleetRequestConfig.SpotPrice", valid_626180 - var valid_626181 = query.getOrDefault("SpotFleetRequestConfig.OnDemandTargetCapacity") + section.add "SpotFleetRequestConfig.LaunchSpecifications", valid_626180 + var valid_626181 = query.getOrDefault("SpotFleetRequestConfig.ExcessCapacityTerminationPolicy") valid_626181 = validateParameter(valid_626181, JString, required = false, default = nil) if valid_626181 != nil: - section.add "SpotFleetRequestConfig.OnDemandTargetCapacity", valid_626181 - var valid_626182 = query.getOrDefault("SpotFleetRequestConfig.InstanceInterruptionBehavior") + section.add "SpotFleetRequestConfig.ExcessCapacityTerminationPolicy", valid_626181 + var valid_626182 = query.getOrDefault("SpotFleetRequestConfig.SpotPrice") valid_626182 = validateParameter(valid_626182, JString, required = false, default = nil) if valid_626182 != nil: - section.add "SpotFleetRequestConfig.InstanceInterruptionBehavior", valid_626182 - var valid_626183 = query.getOrDefault("SpotFleetRequestConfig.OnDemandAllocationStrategy") + section.add "SpotFleetRequestConfig.SpotPrice", valid_626182 + var valid_626183 = query.getOrDefault("SpotFleetRequestConfig.OnDemandTargetCapacity") valid_626183 = validateParameter(valid_626183, JString, required = false, default = nil) if valid_626183 != nil: - section.add "SpotFleetRequestConfig.OnDemandAllocationStrategy", valid_626183 - var valid_626184 = query.getOrDefault("SpotFleetRequestConfig.IamFleetRole") + section.add "SpotFleetRequestConfig.OnDemandTargetCapacity", valid_626183 + var valid_626184 = query.getOrDefault("SpotFleetRequestConfig.InstanceInterruptionBehavior") valid_626184 = validateParameter(valid_626184, JString, required = false, default = nil) if valid_626184 != nil: - section.add "SpotFleetRequestConfig.IamFleetRole", valid_626184 - var valid_626185 = query.getOrDefault("SpotFleetRequestConfig.TargetCapacity") + section.add "SpotFleetRequestConfig.InstanceInterruptionBehavior", valid_626184 + var valid_626185 = query.getOrDefault("SpotFleetRequestConfig.OnDemandAllocationStrategy") valid_626185 = validateParameter(valid_626185, JString, required = false, default = nil) if valid_626185 != nil: - section.add "SpotFleetRequestConfig.TargetCapacity", valid_626185 - var valid_626186 = query.getOrDefault("SpotFleetRequestConfig.ValidFrom") + section.add "SpotFleetRequestConfig.OnDemandAllocationStrategy", valid_626185 + var valid_626186 = query.getOrDefault("SpotFleetRequestConfig.IamFleetRole") valid_626186 = validateParameter(valid_626186, JString, required = false, default = nil) if valid_626186 != nil: - section.add "SpotFleetRequestConfig.ValidFrom", valid_626186 - var valid_626187 = query.getOrDefault("SpotFleetRequestConfig.ClientToken") + section.add "SpotFleetRequestConfig.IamFleetRole", valid_626186 + var valid_626187 = query.getOrDefault("SpotFleetRequestConfig.TargetCapacity") valid_626187 = validateParameter(valid_626187, JString, required = false, default = nil) if valid_626187 != nil: - section.add "SpotFleetRequestConfig.ClientToken", valid_626187 - var valid_626188 = query.getOrDefault("SpotFleetRequestConfig.ReplaceUnhealthyInstances") + section.add "SpotFleetRequestConfig.TargetCapacity", valid_626187 + var valid_626188 = query.getOrDefault("SpotFleetRequestConfig.ValidFrom") valid_626188 = validateParameter(valid_626188, JString, required = false, default = nil) if valid_626188 != nil: - section.add "SpotFleetRequestConfig.ReplaceUnhealthyInstances", valid_626188 - var valid_626189 = query.getOrDefault("SpotFleetRequestConfig.LoadBalancersConfig") + section.add "SpotFleetRequestConfig.ValidFrom", valid_626188 + var valid_626189 = query.getOrDefault("SpotFleetRequestConfig.ClientToken") valid_626189 = validateParameter(valid_626189, JString, required = false, default = nil) if valid_626189 != nil: - section.add "SpotFleetRequestConfig.LoadBalancersConfig", valid_626189 - var valid_626190 = query.getOrDefault("Action") - valid_626190 = validateParameter(valid_626190, JString, required = true, - default = newJString("RequestSpotFleet")) + section.add "SpotFleetRequestConfig.ClientToken", valid_626189 + var valid_626190 = query.getOrDefault("SpotFleetRequestConfig.ReplaceUnhealthyInstances") + valid_626190 = validateParameter(valid_626190, JString, required = false, + default = nil) if valid_626190 != nil: - section.add "Action", valid_626190 - var valid_626191 = query.getOrDefault("SpotFleetRequestConfig.ValidUntil") + section.add "SpotFleetRequestConfig.ReplaceUnhealthyInstances", valid_626190 + var valid_626191 = query.getOrDefault("SpotFleetRequestConfig.LoadBalancersConfig") valid_626191 = validateParameter(valid_626191, JString, required = false, default = nil) if valid_626191 != nil: - section.add "SpotFleetRequestConfig.ValidUntil", valid_626191 - var valid_626192 = query.getOrDefault("SpotFleetRequestConfig.TerminateInstancesWithExpiration") - valid_626192 = validateParameter(valid_626192, JString, required = false, - default = nil) + section.add "SpotFleetRequestConfig.LoadBalancersConfig", valid_626191 + var valid_626192 = query.getOrDefault("Action") + valid_626192 = validateParameter(valid_626192, JString, required = true, + default = newJString("RequestSpotFleet")) if valid_626192 != nil: - section.add "SpotFleetRequestConfig.TerminateInstancesWithExpiration", valid_626192 - var valid_626193 = query.getOrDefault("SpotFleetRequestConfig.FulfilledCapacity") + section.add "Action", valid_626192 + var valid_626193 = query.getOrDefault("SpotFleetRequestConfig.ValidUntil") valid_626193 = validateParameter(valid_626193, JString, required = false, default = nil) if valid_626193 != nil: - section.add "SpotFleetRequestConfig.FulfilledCapacity", valid_626193 - var valid_626194 = query.getOrDefault("SpotFleetRequestConfig.OnDemandMaxTotalPrice") + section.add "SpotFleetRequestConfig.ValidUntil", valid_626193 + var valid_626194 = query.getOrDefault("SpotFleetRequestConfig.TerminateInstancesWithExpiration") valid_626194 = validateParameter(valid_626194, JString, required = false, default = nil) if valid_626194 != nil: - section.add "SpotFleetRequestConfig.OnDemandMaxTotalPrice", valid_626194 - var valid_626195 = query.getOrDefault("SpotFleetRequestConfig.InstancePoolsToUseCount") + section.add "SpotFleetRequestConfig.TerminateInstancesWithExpiration", valid_626194 + var valid_626195 = query.getOrDefault("SpotFleetRequestConfig.FulfilledCapacity") valid_626195 = validateParameter(valid_626195, JString, required = false, default = nil) if valid_626195 != nil: - section.add "SpotFleetRequestConfig.InstancePoolsToUseCount", valid_626195 - var valid_626196 = query.getOrDefault("SpotFleetRequestConfig.AllocationStrategy") + section.add "SpotFleetRequestConfig.FulfilledCapacity", valid_626195 + var valid_626196 = query.getOrDefault("SpotFleetRequestConfig.OnDemandMaxTotalPrice") valid_626196 = validateParameter(valid_626196, JString, required = false, default = nil) if valid_626196 != nil: - section.add "SpotFleetRequestConfig.AllocationStrategy", valid_626196 - var valid_626197 = query.getOrDefault("Version") - valid_626197 = validateParameter(valid_626197, JString, required = true, - default = newJString("2016-11-15")) + section.add "SpotFleetRequestConfig.OnDemandMaxTotalPrice", valid_626196 + var valid_626197 = query.getOrDefault("SpotFleetRequestConfig.InstancePoolsToUseCount") + valid_626197 = validateParameter(valid_626197, JString, required = false, + default = nil) if valid_626197 != nil: - section.add "Version", valid_626197 - var valid_626198 = query.getOrDefault("SpotFleetRequestConfig.Type") + section.add "SpotFleetRequestConfig.InstancePoolsToUseCount", valid_626197 + var valid_626198 = query.getOrDefault("SpotFleetRequestConfig.AllocationStrategy") valid_626198 = validateParameter(valid_626198, JString, required = false, default = nil) if valid_626198 != nil: - section.add "SpotFleetRequestConfig.Type", valid_626198 - var valid_626199 = query.getOrDefault("SpotFleetRequestConfig.OnDemandFulfilledCapacity") - valid_626199 = validateParameter(valid_626199, JString, required = false, - default = nil) + section.add "SpotFleetRequestConfig.AllocationStrategy", valid_626198 + var valid_626199 = query.getOrDefault("Version") + valid_626199 = validateParameter(valid_626199, JString, required = true, + default = newJString("2016-11-15")) if valid_626199 != nil: - section.add "SpotFleetRequestConfig.OnDemandFulfilledCapacity", valid_626199 + section.add "Version", valid_626199 + var valid_626200 = query.getOrDefault("SpotFleetRequestConfig.Type") + valid_626200 = validateParameter(valid_626200, JString, required = false, + default = nil) + if valid_626200 != nil: + section.add "SpotFleetRequestConfig.Type", valid_626200 + var valid_626201 = query.getOrDefault("SpotFleetRequestConfig.OnDemandFulfilledCapacity") + valid_626201 = validateParameter(valid_626201, JString, required = false, + default = nil) + if valid_626201 != nil: + section.add "SpotFleetRequestConfig.OnDemandFulfilledCapacity", valid_626201 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -125489,61 +125516,61 @@ proc validate_GetRequestSpotFleet_626172(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626200 = header.getOrDefault("X-Amz-Signature") - valid_626200 = validateParameter(valid_626200, JString, required = false, - default = nil) - if valid_626200 != nil: - section.add "X-Amz-Signature", valid_626200 - var valid_626201 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626201 = validateParameter(valid_626201, JString, required = false, - default = nil) - if valid_626201 != nil: - section.add "X-Amz-Content-Sha256", valid_626201 - var valid_626202 = header.getOrDefault("X-Amz-Date") + var valid_626202 = header.getOrDefault("X-Amz-Signature") valid_626202 = validateParameter(valid_626202, JString, required = false, default = nil) if valid_626202 != nil: - section.add "X-Amz-Date", valid_626202 - var valid_626203 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626202 + var valid_626203 = header.getOrDefault("X-Amz-Content-Sha256") valid_626203 = validateParameter(valid_626203, JString, required = false, default = nil) if valid_626203 != nil: - section.add "X-Amz-Credential", valid_626203 - var valid_626204 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626203 + var valid_626204 = header.getOrDefault("X-Amz-Date") valid_626204 = validateParameter(valid_626204, JString, required = false, default = nil) if valid_626204 != nil: - section.add "X-Amz-Security-Token", valid_626204 - var valid_626205 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626204 + var valid_626205 = header.getOrDefault("X-Amz-Credential") valid_626205 = validateParameter(valid_626205, JString, required = false, default = nil) if valid_626205 != nil: - section.add "X-Amz-Algorithm", valid_626205 - var valid_626206 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626205 + var valid_626206 = header.getOrDefault("X-Amz-Security-Token") valid_626206 = validateParameter(valid_626206, JString, required = false, default = nil) if valid_626206 != nil: - section.add "X-Amz-SignedHeaders", valid_626206 + section.add "X-Amz-Security-Token", valid_626206 + var valid_626207 = header.getOrDefault("X-Amz-Algorithm") + valid_626207 = validateParameter(valid_626207, JString, required = false, + default = nil) + if valid_626207 != nil: + section.add "X-Amz-Algorithm", valid_626207 + var valid_626208 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626208 = validateParameter(valid_626208, JString, required = false, + default = nil) + if valid_626208 != nil: + section.add "X-Amz-SignedHeaders", valid_626208 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626207: Call_GetRequestSpotFleet_626171; path: JsonNode; +proc call*(call_626209: Call_GetRequestSpotFleet_626173; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Creates a Spot Fleet request.

    The Spot Fleet request specifies the total target capacity and the On-Demand target capacity. Amazon EC2 calculates the difference between the total capacity and On-Demand capacity, and launches the difference as Spot capacity.

    You can submit a single request that includes multiple launch specifications that vary by instance type, AMI, Availability Zone, or subnet.

    By default, the Spot Fleet requests Spot Instances in the Spot Instance pool where the price per unit is the lowest. Each launch specification can include its own instance weighting that reflects the value of the instance type to your application workload.

    Alternatively, you can specify that the Spot Fleet distribute the target capacity across the Spot pools included in its launch specifications. By ensuring that the Spot Instances in your Spot Fleet are in different Spot pools, you can improve the availability of your fleet.

    You can specify tags for the Spot Fleet and Spot Instances. You cannot tag other resource types in a Spot Fleet request because only the spot-fleet-request and instance resource types are supported.

    For more information, see Spot Fleet Requests in the Amazon EC2 User Guide for Linux Instances.

    ## - let valid = call_626207.validator(path, query, header, formData, body) - let scheme = call_626207.pickScheme + let valid = call_626209.validator(path, query, header, formData, body) + let scheme = call_626209.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626207.url(scheme.get, call_626207.host, call_626207.base, - call_626207.route, valid.getOrDefault("path"), + let url = call_626209.url(scheme.get, call_626209.host, call_626209.base, + call_626209.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626207, url, valid) + result = atozHook(call_626209, url, valid) -proc call*(call_626208: Call_GetRequestSpotFleet_626171; +proc call*(call_626210: Call_GetRequestSpotFleet_626173; SpotFleetRequestConfigLaunchTemplateConfigs: JsonNode = nil; SpotFleetRequestConfigTagSpecifications: JsonNode = nil; DryRun: bool = false; @@ -125648,69 +125675,69 @@ proc call*(call_626208: Call_GetRequestSpotFleet_626171; ## SpotFleetRequestConfigOnDemandFulfilledCapacity: string ## : Describes the configuration of a Spot Fleet request. ## The number of On-Demand units fulfilled by this request compared to the set target On-Demand capacity. - var query_626209 = newJObject() + var query_626211 = newJObject() if SpotFleetRequestConfigLaunchTemplateConfigs != nil: - query_626209.add "SpotFleetRequestConfig.LaunchTemplateConfigs", + query_626211.add "SpotFleetRequestConfig.LaunchTemplateConfigs", SpotFleetRequestConfigLaunchTemplateConfigs if SpotFleetRequestConfigTagSpecifications != nil: - query_626209.add "SpotFleetRequestConfig.TagSpecifications", + query_626211.add "SpotFleetRequestConfig.TagSpecifications", SpotFleetRequestConfigTagSpecifications - add(query_626209, "DryRun", newJBool(DryRun)) - add(query_626209, "SpotFleetRequestConfig.SpotMaxTotalPrice", + add(query_626211, "DryRun", newJBool(DryRun)) + add(query_626211, "SpotFleetRequestConfig.SpotMaxTotalPrice", newJString(SpotFleetRequestConfigSpotMaxTotalPrice)) if SpotFleetRequestConfigLaunchSpecifications != nil: - query_626209.add "SpotFleetRequestConfig.LaunchSpecifications", + query_626211.add "SpotFleetRequestConfig.LaunchSpecifications", SpotFleetRequestConfigLaunchSpecifications - add(query_626209, "SpotFleetRequestConfig.ExcessCapacityTerminationPolicy", + add(query_626211, "SpotFleetRequestConfig.ExcessCapacityTerminationPolicy", newJString(SpotFleetRequestConfigExcessCapacityTerminationPolicy)) - add(query_626209, "SpotFleetRequestConfig.SpotPrice", + add(query_626211, "SpotFleetRequestConfig.SpotPrice", newJString(SpotFleetRequestConfigSpotPrice)) - add(query_626209, "SpotFleetRequestConfig.OnDemandTargetCapacity", + add(query_626211, "SpotFleetRequestConfig.OnDemandTargetCapacity", newJString(SpotFleetRequestConfigOnDemandTargetCapacity)) - add(query_626209, "SpotFleetRequestConfig.InstanceInterruptionBehavior", + add(query_626211, "SpotFleetRequestConfig.InstanceInterruptionBehavior", newJString(SpotFleetRequestConfigInstanceInterruptionBehavior)) - add(query_626209, "SpotFleetRequestConfig.OnDemandAllocationStrategy", + add(query_626211, "SpotFleetRequestConfig.OnDemandAllocationStrategy", newJString(SpotFleetRequestConfigOnDemandAllocationStrategy)) - add(query_626209, "SpotFleetRequestConfig.IamFleetRole", + add(query_626211, "SpotFleetRequestConfig.IamFleetRole", newJString(SpotFleetRequestConfigIamFleetRole)) - add(query_626209, "SpotFleetRequestConfig.TargetCapacity", + add(query_626211, "SpotFleetRequestConfig.TargetCapacity", newJString(SpotFleetRequestConfigTargetCapacity)) - add(query_626209, "SpotFleetRequestConfig.ValidFrom", + add(query_626211, "SpotFleetRequestConfig.ValidFrom", newJString(SpotFleetRequestConfigValidFrom)) - add(query_626209, "SpotFleetRequestConfig.ClientToken", + add(query_626211, "SpotFleetRequestConfig.ClientToken", newJString(SpotFleetRequestConfigClientToken)) - add(query_626209, "SpotFleetRequestConfig.ReplaceUnhealthyInstances", + add(query_626211, "SpotFleetRequestConfig.ReplaceUnhealthyInstances", newJString(SpotFleetRequestConfigReplaceUnhealthyInstances)) - add(query_626209, "SpotFleetRequestConfig.LoadBalancersConfig", + add(query_626211, "SpotFleetRequestConfig.LoadBalancersConfig", newJString(SpotFleetRequestConfigLoadBalancersConfig)) - add(query_626209, "Action", newJString(Action)) - add(query_626209, "SpotFleetRequestConfig.ValidUntil", + add(query_626211, "Action", newJString(Action)) + add(query_626211, "SpotFleetRequestConfig.ValidUntil", newJString(SpotFleetRequestConfigValidUntil)) - add(query_626209, "SpotFleetRequestConfig.TerminateInstancesWithExpiration", + add(query_626211, "SpotFleetRequestConfig.TerminateInstancesWithExpiration", newJString(SpotFleetRequestConfigTerminateInstancesWithExpiration)) - add(query_626209, "SpotFleetRequestConfig.FulfilledCapacity", + add(query_626211, "SpotFleetRequestConfig.FulfilledCapacity", newJString(SpotFleetRequestConfigFulfilledCapacity)) - add(query_626209, "SpotFleetRequestConfig.OnDemandMaxTotalPrice", + add(query_626211, "SpotFleetRequestConfig.OnDemandMaxTotalPrice", newJString(SpotFleetRequestConfigOnDemandMaxTotalPrice)) - add(query_626209, "SpotFleetRequestConfig.InstancePoolsToUseCount", + add(query_626211, "SpotFleetRequestConfig.InstancePoolsToUseCount", newJString(SpotFleetRequestConfigInstancePoolsToUseCount)) - add(query_626209, "SpotFleetRequestConfig.AllocationStrategy", + add(query_626211, "SpotFleetRequestConfig.AllocationStrategy", newJString(SpotFleetRequestConfigAllocationStrategy)) - add(query_626209, "Version", newJString(Version)) - add(query_626209, "SpotFleetRequestConfig.Type", + add(query_626211, "Version", newJString(Version)) + add(query_626211, "SpotFleetRequestConfig.Type", newJString(SpotFleetRequestConfigType)) - add(query_626209, "SpotFleetRequestConfig.OnDemandFulfilledCapacity", + add(query_626211, "SpotFleetRequestConfig.OnDemandFulfilledCapacity", newJString(SpotFleetRequestConfigOnDemandFulfilledCapacity)) - result = call_626208.call(nil, query_626209, nil, nil, nil) + result = call_626210.call(nil, query_626211, nil, nil, nil) -var getRequestSpotFleet* = Call_GetRequestSpotFleet_626171( +var getRequestSpotFleet* = Call_GetRequestSpotFleet_626173( name: "getRequestSpotFleet", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=RequestSpotFleet", - validator: validate_GetRequestSpotFleet_626172, base: "/", - url: url_GetRequestSpotFleet_626173, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetRequestSpotFleet_626174, base: "/", + url: url_GetRequestSpotFleet_626175, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostRequestSpotInstances_626292 = ref object of OpenApiRestCall_610658 -proc url_PostRequestSpotInstances_626294(protocol: Scheme; host: string; + Call_PostRequestSpotInstances_626294 = ref object of OpenApiRestCall_610658 +proc url_PostRequestSpotInstances_626296(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -125721,7 +125748,7 @@ proc url_PostRequestSpotInstances_626294(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostRequestSpotInstances_626293(path: JsonNode; query: JsonNode; +proc validate_PostRequestSpotInstances_626295(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Creates a Spot Instance request.

    For more information, see Spot Instance Requests in the Amazon EC2 User Guide for Linux Instances.

    ## @@ -125733,16 +125760,16 @@ proc validate_PostRequestSpotInstances_626293(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_626295 = query.getOrDefault("Action") - valid_626295 = validateParameter(valid_626295, JString, required = true, + var valid_626297 = query.getOrDefault("Action") + valid_626297 = validateParameter(valid_626297, JString, required = true, default = newJString("RequestSpotInstances")) - if valid_626295 != nil: - section.add "Action", valid_626295 - var valid_626296 = query.getOrDefault("Version") - valid_626296 = validateParameter(valid_626296, JString, required = true, + if valid_626297 != nil: + section.add "Action", valid_626297 + var valid_626298 = query.getOrDefault("Version") + valid_626298 = validateParameter(valid_626298, JString, required = true, default = newJString("2016-11-15")) - if valid_626296 != nil: - section.add "Version", valid_626296 + if valid_626298 != nil: + section.add "Version", valid_626298 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -125753,41 +125780,41 @@ proc validate_PostRequestSpotInstances_626293(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626297 = header.getOrDefault("X-Amz-Signature") - valid_626297 = validateParameter(valid_626297, JString, required = false, - default = nil) - if valid_626297 != nil: - section.add "X-Amz-Signature", valid_626297 - var valid_626298 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626298 = validateParameter(valid_626298, JString, required = false, - default = nil) - if valid_626298 != nil: - section.add "X-Amz-Content-Sha256", valid_626298 - var valid_626299 = header.getOrDefault("X-Amz-Date") + var valid_626299 = header.getOrDefault("X-Amz-Signature") valid_626299 = validateParameter(valid_626299, JString, required = false, default = nil) if valid_626299 != nil: - section.add "X-Amz-Date", valid_626299 - var valid_626300 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626299 + var valid_626300 = header.getOrDefault("X-Amz-Content-Sha256") valid_626300 = validateParameter(valid_626300, JString, required = false, default = nil) if valid_626300 != nil: - section.add "X-Amz-Credential", valid_626300 - var valid_626301 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626300 + var valid_626301 = header.getOrDefault("X-Amz-Date") valid_626301 = validateParameter(valid_626301, JString, required = false, default = nil) if valid_626301 != nil: - section.add "X-Amz-Security-Token", valid_626301 - var valid_626302 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626301 + var valid_626302 = header.getOrDefault("X-Amz-Credential") valid_626302 = validateParameter(valid_626302, JString, required = false, default = nil) if valid_626302 != nil: - section.add "X-Amz-Algorithm", valid_626302 - var valid_626303 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626302 + var valid_626303 = header.getOrDefault("X-Amz-Security-Token") valid_626303 = validateParameter(valid_626303, JString, required = false, default = nil) if valid_626303 != nil: - section.add "X-Amz-SignedHeaders", valid_626303 + section.add "X-Amz-Security-Token", valid_626303 + var valid_626304 = header.getOrDefault("X-Amz-Algorithm") + valid_626304 = validateParameter(valid_626304, JString, required = false, + default = nil) + if valid_626304 != nil: + section.add "X-Amz-Algorithm", valid_626304 + var valid_626305 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626305 = validateParameter(valid_626305, JString, required = false, + default = nil) + if valid_626305 != nil: + section.add "X-Amz-SignedHeaders", valid_626305 result.add "header", section ## parameters in `formData` object: ## LaunchSpecification.BlockDeviceMappings: JArray @@ -125862,156 +125889,156 @@ proc validate_PostRequestSpotInstances_626293(path: JsonNode; query: JsonNode; ## ValidFrom: JString ## :

    The start date of the request. If this is a one-time request, the request becomes active at this date and time and remains active until all instances launch, the request expires, or the request is canceled. If the request is persistent, the request becomes active at this date and time and remains active until it expires or is canceled.

    The specified start date and time cannot be equal to the current date and time. You must specify a start date and time that occurs after the current date and time.

    section = newJObject() - var valid_626304 = formData.getOrDefault("LaunchSpecification.BlockDeviceMappings") - valid_626304 = validateParameter(valid_626304, JArray, required = false, + var valid_626306 = formData.getOrDefault("LaunchSpecification.BlockDeviceMappings") + valid_626306 = validateParameter(valid_626306, JArray, required = false, default = nil) - if valid_626304 != nil: - section.add "LaunchSpecification.BlockDeviceMappings", valid_626304 - var valid_626305 = formData.getOrDefault("LaunchSpecification.Monitoring") - valid_626305 = validateParameter(valid_626305, JString, required = false, - default = nil) - if valid_626305 != nil: - section.add "LaunchSpecification.Monitoring", valid_626305 - var valid_626306 = formData.getOrDefault("InstanceInterruptionBehavior") - valid_626306 = validateParameter(valid_626306, JString, required = false, - default = newJString("hibernate")) if valid_626306 != nil: - section.add "InstanceInterruptionBehavior", valid_626306 - var valid_626307 = formData.getOrDefault("AvailabilityZoneGroup") + section.add "LaunchSpecification.BlockDeviceMappings", valid_626306 + var valid_626307 = formData.getOrDefault("LaunchSpecification.Monitoring") valid_626307 = validateParameter(valid_626307, JString, required = false, default = nil) if valid_626307 != nil: - section.add "AvailabilityZoneGroup", valid_626307 - var valid_626308 = formData.getOrDefault("LaunchSpecification.SubnetId") + section.add "LaunchSpecification.Monitoring", valid_626307 + var valid_626308 = formData.getOrDefault("InstanceInterruptionBehavior") valid_626308 = validateParameter(valid_626308, JString, required = false, - default = nil) + default = newJString("hibernate")) if valid_626308 != nil: - section.add "LaunchSpecification.SubnetId", valid_626308 - var valid_626309 = formData.getOrDefault("LaunchSpecification.KernelId") + section.add "InstanceInterruptionBehavior", valid_626308 + var valid_626309 = formData.getOrDefault("AvailabilityZoneGroup") valid_626309 = validateParameter(valid_626309, JString, required = false, default = nil) if valid_626309 != nil: - section.add "LaunchSpecification.KernelId", valid_626309 - var valid_626310 = formData.getOrDefault("LaunchSpecification.IamInstanceProfile") + section.add "AvailabilityZoneGroup", valid_626309 + var valid_626310 = formData.getOrDefault("LaunchSpecification.SubnetId") valid_626310 = validateParameter(valid_626310, JString, required = false, default = nil) if valid_626310 != nil: - section.add "LaunchSpecification.IamInstanceProfile", valid_626310 - var valid_626311 = formData.getOrDefault("LaunchSpecification.UserData") + section.add "LaunchSpecification.SubnetId", valid_626310 + var valid_626311 = formData.getOrDefault("LaunchSpecification.KernelId") valid_626311 = validateParameter(valid_626311, JString, required = false, default = nil) if valid_626311 != nil: - section.add "LaunchSpecification.UserData", valid_626311 - var valid_626312 = formData.getOrDefault("BlockDurationMinutes") - valid_626312 = validateParameter(valid_626312, JInt, required = false, default = nil) + section.add "LaunchSpecification.KernelId", valid_626311 + var valid_626312 = formData.getOrDefault("LaunchSpecification.IamInstanceProfile") + valid_626312 = validateParameter(valid_626312, JString, required = false, + default = nil) if valid_626312 != nil: - section.add "BlockDurationMinutes", valid_626312 - var valid_626313 = formData.getOrDefault("LaunchSpecification.ImageId") + section.add "LaunchSpecification.IamInstanceProfile", valid_626312 + var valid_626313 = formData.getOrDefault("LaunchSpecification.UserData") valid_626313 = validateParameter(valid_626313, JString, required = false, default = nil) if valid_626313 != nil: - section.add "LaunchSpecification.ImageId", valid_626313 - var valid_626314 = formData.getOrDefault("ValidUntil") - valid_626314 = validateParameter(valid_626314, JString, required = false, - default = nil) + section.add "LaunchSpecification.UserData", valid_626313 + var valid_626314 = formData.getOrDefault("BlockDurationMinutes") + valid_626314 = validateParameter(valid_626314, JInt, required = false, default = nil) if valid_626314 != nil: - section.add "ValidUntil", valid_626314 - var valid_626315 = formData.getOrDefault("SpotPrice") + section.add "BlockDurationMinutes", valid_626314 + var valid_626315 = formData.getOrDefault("LaunchSpecification.ImageId") valid_626315 = validateParameter(valid_626315, JString, required = false, default = nil) if valid_626315 != nil: - section.add "SpotPrice", valid_626315 - var valid_626316 = formData.getOrDefault("InstanceCount") - valid_626316 = validateParameter(valid_626316, JInt, required = false, default = nil) + section.add "LaunchSpecification.ImageId", valid_626315 + var valid_626316 = formData.getOrDefault("ValidUntil") + valid_626316 = validateParameter(valid_626316, JString, required = false, + default = nil) if valid_626316 != nil: - section.add "InstanceCount", valid_626316 - var valid_626317 = formData.getOrDefault("LaunchSpecification.KeyName") + section.add "ValidUntil", valid_626316 + var valid_626317 = formData.getOrDefault("SpotPrice") valid_626317 = validateParameter(valid_626317, JString, required = false, default = nil) if valid_626317 != nil: - section.add "LaunchSpecification.KeyName", valid_626317 - var valid_626318 = formData.getOrDefault("LaunchSpecification.EbsOptimized") - valid_626318 = validateParameter(valid_626318, JString, required = false, - default = nil) + section.add "SpotPrice", valid_626317 + var valid_626318 = formData.getOrDefault("InstanceCount") + valid_626318 = validateParameter(valid_626318, JInt, required = false, default = nil) if valid_626318 != nil: - section.add "LaunchSpecification.EbsOptimized", valid_626318 - var valid_626319 = formData.getOrDefault("DryRun") - valid_626319 = validateParameter(valid_626319, JBool, required = false, default = nil) + section.add "InstanceCount", valid_626318 + var valid_626319 = formData.getOrDefault("LaunchSpecification.KeyName") + valid_626319 = validateParameter(valid_626319, JString, required = false, + default = nil) if valid_626319 != nil: - section.add "DryRun", valid_626319 - var valid_626320 = formData.getOrDefault("LaunchSpecification.Placement") + section.add "LaunchSpecification.KeyName", valid_626319 + var valid_626320 = formData.getOrDefault("LaunchSpecification.EbsOptimized") valid_626320 = validateParameter(valid_626320, JString, required = false, default = nil) if valid_626320 != nil: - section.add "LaunchSpecification.Placement", valid_626320 - var valid_626321 = formData.getOrDefault("LaunchSpecification.InstanceType") - valid_626321 = validateParameter(valid_626321, JString, required = false, - default = nil) + section.add "LaunchSpecification.EbsOptimized", valid_626320 + var valid_626321 = formData.getOrDefault("DryRun") + valid_626321 = validateParameter(valid_626321, JBool, required = false, default = nil) if valid_626321 != nil: - section.add "LaunchSpecification.InstanceType", valid_626321 - var valid_626322 = formData.getOrDefault("Type") + section.add "DryRun", valid_626321 + var valid_626322 = formData.getOrDefault("LaunchSpecification.Placement") valid_626322 = validateParameter(valid_626322, JString, required = false, - default = newJString("one-time")) + default = nil) if valid_626322 != nil: - section.add "Type", valid_626322 - var valid_626323 = formData.getOrDefault("LaunchSpecification.SecurityGroupIds") - valid_626323 = validateParameter(valid_626323, JArray, required = false, + section.add "LaunchSpecification.Placement", valid_626322 + var valid_626323 = formData.getOrDefault("LaunchSpecification.InstanceType") + valid_626323 = validateParameter(valid_626323, JString, required = false, default = nil) if valid_626323 != nil: - section.add "LaunchSpecification.SecurityGroupIds", valid_626323 - var valid_626324 = formData.getOrDefault("LaunchSpecification.SecurityGroups") - valid_626324 = validateParameter(valid_626324, JArray, required = false, - default = nil) + section.add "LaunchSpecification.InstanceType", valid_626323 + var valid_626324 = formData.getOrDefault("Type") + valid_626324 = validateParameter(valid_626324, JString, required = false, + default = newJString("one-time")) if valid_626324 != nil: - section.add "LaunchSpecification.SecurityGroups", valid_626324 - var valid_626325 = formData.getOrDefault("LaunchSpecification.RamdiskId") - valid_626325 = validateParameter(valid_626325, JString, required = false, + section.add "Type", valid_626324 + var valid_626325 = formData.getOrDefault("LaunchSpecification.SecurityGroupIds") + valid_626325 = validateParameter(valid_626325, JArray, required = false, default = nil) if valid_626325 != nil: - section.add "LaunchSpecification.RamdiskId", valid_626325 - var valid_626326 = formData.getOrDefault("ClientToken") - valid_626326 = validateParameter(valid_626326, JString, required = false, + section.add "LaunchSpecification.SecurityGroupIds", valid_626325 + var valid_626326 = formData.getOrDefault("LaunchSpecification.SecurityGroups") + valid_626326 = validateParameter(valid_626326, JArray, required = false, default = nil) if valid_626326 != nil: - section.add "ClientToken", valid_626326 - var valid_626327 = formData.getOrDefault("LaunchGroup") + section.add "LaunchSpecification.SecurityGroups", valid_626326 + var valid_626327 = formData.getOrDefault("LaunchSpecification.RamdiskId") valid_626327 = validateParameter(valid_626327, JString, required = false, default = nil) if valid_626327 != nil: - section.add "LaunchGroup", valid_626327 - var valid_626328 = formData.getOrDefault("LaunchSpecification.AddressingType") + section.add "LaunchSpecification.RamdiskId", valid_626327 + var valid_626328 = formData.getOrDefault("ClientToken") valid_626328 = validateParameter(valid_626328, JString, required = false, default = nil) if valid_626328 != nil: - section.add "LaunchSpecification.AddressingType", valid_626328 - var valid_626329 = formData.getOrDefault("LaunchSpecification.NetworkInterfaces") - valid_626329 = validateParameter(valid_626329, JArray, required = false, + section.add "ClientToken", valid_626328 + var valid_626329 = formData.getOrDefault("LaunchGroup") + valid_626329 = validateParameter(valid_626329, JString, required = false, default = nil) if valid_626329 != nil: - section.add "LaunchSpecification.NetworkInterfaces", valid_626329 - var valid_626330 = formData.getOrDefault("ValidFrom") + section.add "LaunchGroup", valid_626329 + var valid_626330 = formData.getOrDefault("LaunchSpecification.AddressingType") valid_626330 = validateParameter(valid_626330, JString, required = false, default = nil) if valid_626330 != nil: - section.add "ValidFrom", valid_626330 + section.add "LaunchSpecification.AddressingType", valid_626330 + var valid_626331 = formData.getOrDefault("LaunchSpecification.NetworkInterfaces") + valid_626331 = validateParameter(valid_626331, JArray, required = false, + default = nil) + if valid_626331 != nil: + section.add "LaunchSpecification.NetworkInterfaces", valid_626331 + var valid_626332 = formData.getOrDefault("ValidFrom") + valid_626332 = validateParameter(valid_626332, JString, required = false, + default = nil) + if valid_626332 != nil: + section.add "ValidFrom", valid_626332 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626331: Call_PostRequestSpotInstances_626292; path: JsonNode; +proc call*(call_626333: Call_PostRequestSpotInstances_626294; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Creates a Spot Instance request.

    For more information, see Spot Instance Requests in the Amazon EC2 User Guide for Linux Instances.

    ## - let valid = call_626331.validator(path, query, header, formData, body) - let scheme = call_626331.pickScheme + let valid = call_626333.validator(path, query, header, formData, body) + let scheme = call_626333.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626331.url(scheme.get, call_626331.host, call_626331.base, - call_626331.route, valid.getOrDefault("path"), + let url = call_626333.url(scheme.get, call_626333.host, call_626333.base, + call_626333.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626331, url, valid) + result = atozHook(call_626333, url, valid) -proc call*(call_626332: Call_PostRequestSpotInstances_626292; +proc call*(call_626334: Call_PostRequestSpotInstances_626294; LaunchSpecificationBlockDeviceMappings: JsonNode = nil; LaunchSpecificationMonitoring: string = ""; InstanceInterruptionBehavior: string = "hibernate"; @@ -126109,68 +126136,68 @@ proc call*(call_626332: Call_PostRequestSpotInstances_626292; ## One or more network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface. ## ValidFrom: string ## :

    The start date of the request. If this is a one-time request, the request becomes active at this date and time and remains active until all instances launch, the request expires, or the request is canceled. If the request is persistent, the request becomes active at this date and time and remains active until it expires or is canceled.

    The specified start date and time cannot be equal to the current date and time. You must specify a start date and time that occurs after the current date and time.

    - var query_626333 = newJObject() - var formData_626334 = newJObject() + var query_626335 = newJObject() + var formData_626336 = newJObject() if LaunchSpecificationBlockDeviceMappings != nil: - formData_626334.add "LaunchSpecification.BlockDeviceMappings", + formData_626336.add "LaunchSpecification.BlockDeviceMappings", LaunchSpecificationBlockDeviceMappings - add(formData_626334, "LaunchSpecification.Monitoring", + add(formData_626336, "LaunchSpecification.Monitoring", newJString(LaunchSpecificationMonitoring)) - add(formData_626334, "InstanceInterruptionBehavior", + add(formData_626336, "InstanceInterruptionBehavior", newJString(InstanceInterruptionBehavior)) - add(formData_626334, "AvailabilityZoneGroup", newJString(AvailabilityZoneGroup)) - add(formData_626334, "LaunchSpecification.SubnetId", + add(formData_626336, "AvailabilityZoneGroup", newJString(AvailabilityZoneGroup)) + add(formData_626336, "LaunchSpecification.SubnetId", newJString(LaunchSpecificationSubnetId)) - add(formData_626334, "LaunchSpecification.KernelId", + add(formData_626336, "LaunchSpecification.KernelId", newJString(LaunchSpecificationKernelId)) - add(formData_626334, "LaunchSpecification.IamInstanceProfile", + add(formData_626336, "LaunchSpecification.IamInstanceProfile", newJString(LaunchSpecificationIamInstanceProfile)) - add(formData_626334, "LaunchSpecification.UserData", + add(formData_626336, "LaunchSpecification.UserData", newJString(LaunchSpecificationUserData)) - add(formData_626334, "BlockDurationMinutes", newJInt(BlockDurationMinutes)) - add(formData_626334, "LaunchSpecification.ImageId", + add(formData_626336, "BlockDurationMinutes", newJInt(BlockDurationMinutes)) + add(formData_626336, "LaunchSpecification.ImageId", newJString(LaunchSpecificationImageId)) - add(formData_626334, "ValidUntil", newJString(ValidUntil)) - add(formData_626334, "SpotPrice", newJString(SpotPrice)) - add(formData_626334, "InstanceCount", newJInt(InstanceCount)) - add(formData_626334, "LaunchSpecification.KeyName", + add(formData_626336, "ValidUntil", newJString(ValidUntil)) + add(formData_626336, "SpotPrice", newJString(SpotPrice)) + add(formData_626336, "InstanceCount", newJInt(InstanceCount)) + add(formData_626336, "LaunchSpecification.KeyName", newJString(LaunchSpecificationKeyName)) - add(formData_626334, "LaunchSpecification.EbsOptimized", + add(formData_626336, "LaunchSpecification.EbsOptimized", newJString(LaunchSpecificationEbsOptimized)) - add(formData_626334, "DryRun", newJBool(DryRun)) - add(formData_626334, "LaunchSpecification.Placement", + add(formData_626336, "DryRun", newJBool(DryRun)) + add(formData_626336, "LaunchSpecification.Placement", newJString(LaunchSpecificationPlacement)) - add(formData_626334, "LaunchSpecification.InstanceType", + add(formData_626336, "LaunchSpecification.InstanceType", newJString(LaunchSpecificationInstanceType)) - add(formData_626334, "Type", newJString(Type)) - add(query_626333, "Action", newJString(Action)) + add(formData_626336, "Type", newJString(Type)) + add(query_626335, "Action", newJString(Action)) if LaunchSpecificationSecurityGroupIds != nil: - formData_626334.add "LaunchSpecification.SecurityGroupIds", + formData_626336.add "LaunchSpecification.SecurityGroupIds", LaunchSpecificationSecurityGroupIds if LaunchSpecificationSecurityGroups != nil: - formData_626334.add "LaunchSpecification.SecurityGroups", + formData_626336.add "LaunchSpecification.SecurityGroups", LaunchSpecificationSecurityGroups - add(formData_626334, "LaunchSpecification.RamdiskId", + add(formData_626336, "LaunchSpecification.RamdiskId", newJString(LaunchSpecificationRamdiskId)) - add(query_626333, "Version", newJString(Version)) - add(formData_626334, "ClientToken", newJString(ClientToken)) - add(formData_626334, "LaunchGroup", newJString(LaunchGroup)) - add(formData_626334, "LaunchSpecification.AddressingType", + add(query_626335, "Version", newJString(Version)) + add(formData_626336, "ClientToken", newJString(ClientToken)) + add(formData_626336, "LaunchGroup", newJString(LaunchGroup)) + add(formData_626336, "LaunchSpecification.AddressingType", newJString(LaunchSpecificationAddressingType)) if LaunchSpecificationNetworkInterfaces != nil: - formData_626334.add "LaunchSpecification.NetworkInterfaces", + formData_626336.add "LaunchSpecification.NetworkInterfaces", LaunchSpecificationNetworkInterfaces - add(formData_626334, "ValidFrom", newJString(ValidFrom)) - result = call_626332.call(nil, query_626333, nil, formData_626334, nil) + add(formData_626336, "ValidFrom", newJString(ValidFrom)) + result = call_626334.call(nil, query_626335, nil, formData_626336, nil) -var postRequestSpotInstances* = Call_PostRequestSpotInstances_626292( +var postRequestSpotInstances* = Call_PostRequestSpotInstances_626294( name: "postRequestSpotInstances", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=RequestSpotInstances", - validator: validate_PostRequestSpotInstances_626293, base: "/", - url: url_PostRequestSpotInstances_626294, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostRequestSpotInstances_626295, base: "/", + url: url_PostRequestSpotInstances_626296, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetRequestSpotInstances_626250 = ref object of OpenApiRestCall_610658 -proc url_GetRequestSpotInstances_626252(protocol: Scheme; host: string; base: string; + Call_GetRequestSpotInstances_626252 = ref object of OpenApiRestCall_610658 +proc url_GetRequestSpotInstances_626254(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -126181,7 +126208,7 @@ proc url_GetRequestSpotInstances_626252(protocol: Scheme; host: string; base: st else: result.path = base & route -proc validate_GetRequestSpotInstances_626251(path: JsonNode; query: JsonNode; +proc validate_GetRequestSpotInstances_626253(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Creates a Spot Instance request.

    For more information, see Spot Instance Requests in the Amazon EC2 User Guide for Linux Instances.

    ## @@ -126264,148 +126291,148 @@ proc validate_GetRequestSpotInstances_626251(path: JsonNode; query: JsonNode; ## InstanceCount: JInt ## :

    The maximum number of Spot Instances to launch.

    Default: 1

    section = newJObject() - var valid_626253 = query.getOrDefault("ClientToken") - valid_626253 = validateParameter(valid_626253, JString, required = false, - default = nil) - if valid_626253 != nil: - section.add "ClientToken", valid_626253 - var valid_626254 = query.getOrDefault("LaunchSpecification.InstanceType") - valid_626254 = validateParameter(valid_626254, JString, required = false, - default = nil) - if valid_626254 != nil: - section.add "LaunchSpecification.InstanceType", valid_626254 - var valid_626255 = query.getOrDefault("LaunchSpecification.RamdiskId") + var valid_626255 = query.getOrDefault("ClientToken") valid_626255 = validateParameter(valid_626255, JString, required = false, default = nil) if valid_626255 != nil: - section.add "LaunchSpecification.RamdiskId", valid_626255 - var valid_626256 = query.getOrDefault("LaunchSpecification.SubnetId") + section.add "ClientToken", valid_626255 + var valid_626256 = query.getOrDefault("LaunchSpecification.InstanceType") valid_626256 = validateParameter(valid_626256, JString, required = false, default = nil) if valid_626256 != nil: - section.add "LaunchSpecification.SubnetId", valid_626256 - var valid_626257 = query.getOrDefault("LaunchSpecification.SecurityGroups") - valid_626257 = validateParameter(valid_626257, JArray, required = false, + section.add "LaunchSpecification.InstanceType", valid_626256 + var valid_626257 = query.getOrDefault("LaunchSpecification.RamdiskId") + valid_626257 = validateParameter(valid_626257, JString, required = false, default = nil) if valid_626257 != nil: - section.add "LaunchSpecification.SecurityGroups", valid_626257 - var valid_626258 = query.getOrDefault("Type") + section.add "LaunchSpecification.RamdiskId", valid_626257 + var valid_626258 = query.getOrDefault("LaunchSpecification.SubnetId") valid_626258 = validateParameter(valid_626258, JString, required = false, - default = newJString("one-time")) + default = nil) if valid_626258 != nil: - section.add "Type", valid_626258 - var valid_626259 = query.getOrDefault("DryRun") - valid_626259 = validateParameter(valid_626259, JBool, required = false, default = nil) + section.add "LaunchSpecification.SubnetId", valid_626258 + var valid_626259 = query.getOrDefault("LaunchSpecification.SecurityGroups") + valid_626259 = validateParameter(valid_626259, JArray, required = false, + default = nil) if valid_626259 != nil: - section.add "DryRun", valid_626259 - var valid_626260 = query.getOrDefault("LaunchGroup") + section.add "LaunchSpecification.SecurityGroups", valid_626259 + var valid_626260 = query.getOrDefault("Type") valid_626260 = validateParameter(valid_626260, JString, required = false, - default = nil) + default = newJString("one-time")) if valid_626260 != nil: - section.add "LaunchGroup", valid_626260 - var valid_626261 = query.getOrDefault("LaunchSpecification.SecurityGroupIds") - valid_626261 = validateParameter(valid_626261, JArray, required = false, - default = nil) + section.add "Type", valid_626260 + var valid_626261 = query.getOrDefault("DryRun") + valid_626261 = validateParameter(valid_626261, JBool, required = false, default = nil) if valid_626261 != nil: - section.add "LaunchSpecification.SecurityGroupIds", valid_626261 - var valid_626262 = query.getOrDefault("LaunchSpecification.KernelId") + section.add "DryRun", valid_626261 + var valid_626262 = query.getOrDefault("LaunchGroup") valid_626262 = validateParameter(valid_626262, JString, required = false, default = nil) if valid_626262 != nil: - section.add "LaunchSpecification.KernelId", valid_626262 - var valid_626263 = query.getOrDefault("AvailabilityZoneGroup") - valid_626263 = validateParameter(valid_626263, JString, required = false, + section.add "LaunchGroup", valid_626262 + var valid_626263 = query.getOrDefault("LaunchSpecification.SecurityGroupIds") + valid_626263 = validateParameter(valid_626263, JArray, required = false, default = nil) if valid_626263 != nil: - section.add "AvailabilityZoneGroup", valid_626263 - var valid_626264 = query.getOrDefault("LaunchSpecification.AddressingType") + section.add "LaunchSpecification.SecurityGroupIds", valid_626263 + var valid_626264 = query.getOrDefault("LaunchSpecification.KernelId") valid_626264 = validateParameter(valid_626264, JString, required = false, default = nil) if valid_626264 != nil: - section.add "LaunchSpecification.AddressingType", valid_626264 - var valid_626265 = query.getOrDefault("BlockDurationMinutes") - valid_626265 = validateParameter(valid_626265, JInt, required = false, default = nil) + section.add "LaunchSpecification.KernelId", valid_626264 + var valid_626265 = query.getOrDefault("AvailabilityZoneGroup") + valid_626265 = validateParameter(valid_626265, JString, required = false, + default = nil) if valid_626265 != nil: - section.add "BlockDurationMinutes", valid_626265 - var valid_626266 = query.getOrDefault("LaunchSpecification.ImageId") + section.add "AvailabilityZoneGroup", valid_626265 + var valid_626266 = query.getOrDefault("LaunchSpecification.AddressingType") valid_626266 = validateParameter(valid_626266, JString, required = false, default = nil) if valid_626266 != nil: - section.add "LaunchSpecification.ImageId", valid_626266 - var valid_626267 = query.getOrDefault("LaunchSpecification.IamInstanceProfile") - valid_626267 = validateParameter(valid_626267, JString, required = false, - default = nil) + section.add "LaunchSpecification.AddressingType", valid_626266 + var valid_626267 = query.getOrDefault("BlockDurationMinutes") + valid_626267 = validateParameter(valid_626267, JInt, required = false, default = nil) if valid_626267 != nil: - section.add "LaunchSpecification.IamInstanceProfile", valid_626267 - var valid_626268 = query.getOrDefault("LaunchSpecification.UserData") + section.add "BlockDurationMinutes", valid_626267 + var valid_626268 = query.getOrDefault("LaunchSpecification.ImageId") valid_626268 = validateParameter(valid_626268, JString, required = false, default = nil) if valid_626268 != nil: - section.add "LaunchSpecification.UserData", valid_626268 - var valid_626269 = query.getOrDefault("LaunchSpecification.EbsOptimized") + section.add "LaunchSpecification.ImageId", valid_626268 + var valid_626269 = query.getOrDefault("LaunchSpecification.IamInstanceProfile") valid_626269 = validateParameter(valid_626269, JString, required = false, default = nil) if valid_626269 != nil: - section.add "LaunchSpecification.EbsOptimized", valid_626269 - var valid_626270 = query.getOrDefault("ValidUntil") + section.add "LaunchSpecification.IamInstanceProfile", valid_626269 + var valid_626270 = query.getOrDefault("LaunchSpecification.UserData") valid_626270 = validateParameter(valid_626270, JString, required = false, default = nil) if valid_626270 != nil: - section.add "ValidUntil", valid_626270 - var valid_626271 = query.getOrDefault("LaunchSpecification.BlockDeviceMappings") - valid_626271 = validateParameter(valid_626271, JArray, required = false, + section.add "LaunchSpecification.UserData", valid_626270 + var valid_626271 = query.getOrDefault("LaunchSpecification.EbsOptimized") + valid_626271 = validateParameter(valid_626271, JString, required = false, default = nil) if valid_626271 != nil: - section.add "LaunchSpecification.BlockDeviceMappings", valid_626271 - var valid_626272 = query.getOrDefault("LaunchSpecification.NetworkInterfaces") - valid_626272 = validateParameter(valid_626272, JArray, required = false, + section.add "LaunchSpecification.EbsOptimized", valid_626271 + var valid_626272 = query.getOrDefault("ValidUntil") + valid_626272 = validateParameter(valid_626272, JString, required = false, default = nil) if valid_626272 != nil: - section.add "LaunchSpecification.NetworkInterfaces", valid_626272 - var valid_626273 = query.getOrDefault("Action") - valid_626273 = validateParameter(valid_626273, JString, required = true, - default = newJString("RequestSpotInstances")) + section.add "ValidUntil", valid_626272 + var valid_626273 = query.getOrDefault("LaunchSpecification.BlockDeviceMappings") + valid_626273 = validateParameter(valid_626273, JArray, required = false, + default = nil) if valid_626273 != nil: - section.add "Action", valid_626273 - var valid_626274 = query.getOrDefault("LaunchSpecification.Monitoring") - valid_626274 = validateParameter(valid_626274, JString, required = false, + section.add "LaunchSpecification.BlockDeviceMappings", valid_626273 + var valid_626274 = query.getOrDefault("LaunchSpecification.NetworkInterfaces") + valid_626274 = validateParameter(valid_626274, JArray, required = false, default = nil) if valid_626274 != nil: - section.add "LaunchSpecification.Monitoring", valid_626274 - var valid_626275 = query.getOrDefault("LaunchSpecification.KeyName") - valid_626275 = validateParameter(valid_626275, JString, required = false, - default = nil) + section.add "LaunchSpecification.NetworkInterfaces", valid_626274 + var valid_626275 = query.getOrDefault("Action") + valid_626275 = validateParameter(valid_626275, JString, required = true, + default = newJString("RequestSpotInstances")) if valid_626275 != nil: - section.add "LaunchSpecification.KeyName", valid_626275 - var valid_626276 = query.getOrDefault("LaunchSpecification.Placement") + section.add "Action", valid_626275 + var valid_626276 = query.getOrDefault("LaunchSpecification.Monitoring") valid_626276 = validateParameter(valid_626276, JString, required = false, default = nil) if valid_626276 != nil: - section.add "LaunchSpecification.Placement", valid_626276 - var valid_626277 = query.getOrDefault("ValidFrom") + section.add "LaunchSpecification.Monitoring", valid_626276 + var valid_626277 = query.getOrDefault("LaunchSpecification.KeyName") valid_626277 = validateParameter(valid_626277, JString, required = false, default = nil) if valid_626277 != nil: - section.add "ValidFrom", valid_626277 - var valid_626278 = query.getOrDefault("InstanceInterruptionBehavior") + section.add "LaunchSpecification.KeyName", valid_626277 + var valid_626278 = query.getOrDefault("LaunchSpecification.Placement") valid_626278 = validateParameter(valid_626278, JString, required = false, - default = newJString("hibernate")) + default = nil) if valid_626278 != nil: - section.add "InstanceInterruptionBehavior", valid_626278 - var valid_626279 = query.getOrDefault("Version") - valid_626279 = validateParameter(valid_626279, JString, required = true, - default = newJString("2016-11-15")) + section.add "LaunchSpecification.Placement", valid_626278 + var valid_626279 = query.getOrDefault("ValidFrom") + valid_626279 = validateParameter(valid_626279, JString, required = false, + default = nil) if valid_626279 != nil: - section.add "Version", valid_626279 - var valid_626280 = query.getOrDefault("SpotPrice") + section.add "ValidFrom", valid_626279 + var valid_626280 = query.getOrDefault("InstanceInterruptionBehavior") valid_626280 = validateParameter(valid_626280, JString, required = false, - default = nil) + default = newJString("hibernate")) if valid_626280 != nil: - section.add "SpotPrice", valid_626280 - var valid_626281 = query.getOrDefault("InstanceCount") - valid_626281 = validateParameter(valid_626281, JInt, required = false, default = nil) + section.add "InstanceInterruptionBehavior", valid_626280 + var valid_626281 = query.getOrDefault("Version") + valid_626281 = validateParameter(valid_626281, JString, required = true, + default = newJString("2016-11-15")) if valid_626281 != nil: - section.add "InstanceCount", valid_626281 + section.add "Version", valid_626281 + var valid_626282 = query.getOrDefault("SpotPrice") + valid_626282 = validateParameter(valid_626282, JString, required = false, + default = nil) + if valid_626282 != nil: + section.add "SpotPrice", valid_626282 + var valid_626283 = query.getOrDefault("InstanceCount") + valid_626283 = validateParameter(valid_626283, JInt, required = false, default = nil) + if valid_626283 != nil: + section.add "InstanceCount", valid_626283 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -126416,61 +126443,61 @@ proc validate_GetRequestSpotInstances_626251(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626282 = header.getOrDefault("X-Amz-Signature") - valid_626282 = validateParameter(valid_626282, JString, required = false, - default = nil) - if valid_626282 != nil: - section.add "X-Amz-Signature", valid_626282 - var valid_626283 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626283 = validateParameter(valid_626283, JString, required = false, - default = nil) - if valid_626283 != nil: - section.add "X-Amz-Content-Sha256", valid_626283 - var valid_626284 = header.getOrDefault("X-Amz-Date") + var valid_626284 = header.getOrDefault("X-Amz-Signature") valid_626284 = validateParameter(valid_626284, JString, required = false, default = nil) if valid_626284 != nil: - section.add "X-Amz-Date", valid_626284 - var valid_626285 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626284 + var valid_626285 = header.getOrDefault("X-Amz-Content-Sha256") valid_626285 = validateParameter(valid_626285, JString, required = false, default = nil) if valid_626285 != nil: - section.add "X-Amz-Credential", valid_626285 - var valid_626286 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626285 + var valid_626286 = header.getOrDefault("X-Amz-Date") valid_626286 = validateParameter(valid_626286, JString, required = false, default = nil) if valid_626286 != nil: - section.add "X-Amz-Security-Token", valid_626286 - var valid_626287 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626286 + var valid_626287 = header.getOrDefault("X-Amz-Credential") valid_626287 = validateParameter(valid_626287, JString, required = false, default = nil) if valid_626287 != nil: - section.add "X-Amz-Algorithm", valid_626287 - var valid_626288 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626287 + var valid_626288 = header.getOrDefault("X-Amz-Security-Token") valid_626288 = validateParameter(valid_626288, JString, required = false, default = nil) if valid_626288 != nil: - section.add "X-Amz-SignedHeaders", valid_626288 + section.add "X-Amz-Security-Token", valid_626288 + var valid_626289 = header.getOrDefault("X-Amz-Algorithm") + valid_626289 = validateParameter(valid_626289, JString, required = false, + default = nil) + if valid_626289 != nil: + section.add "X-Amz-Algorithm", valid_626289 + var valid_626290 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626290 = validateParameter(valid_626290, JString, required = false, + default = nil) + if valid_626290 != nil: + section.add "X-Amz-SignedHeaders", valid_626290 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626289: Call_GetRequestSpotInstances_626250; path: JsonNode; +proc call*(call_626291: Call_GetRequestSpotInstances_626252; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Creates a Spot Instance request.

    For more information, see Spot Instance Requests in the Amazon EC2 User Guide for Linux Instances.

    ## - let valid = call_626289.validator(path, query, header, formData, body) - let scheme = call_626289.pickScheme + let valid = call_626291.validator(path, query, header, formData, body) + let scheme = call_626291.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626289.url(scheme.get, call_626289.host, call_626289.base, - call_626289.route, valid.getOrDefault("path"), + let url = call_626291.url(scheme.get, call_626291.host, call_626291.base, + call_626291.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626289, url, valid) + result = atozHook(call_626291, url, valid) -proc call*(call_626290: Call_GetRequestSpotInstances_626250; +proc call*(call_626292: Call_GetRequestSpotInstances_626252; ClientToken: string = ""; LaunchSpecificationInstanceType: string = ""; LaunchSpecificationRamdiskId: string = ""; LaunchSpecificationSubnetId: string = ""; @@ -126567,67 +126594,67 @@ proc call*(call_626290: Call_GetRequestSpotInstances_626250; ## : The maximum price per hour that you are willing to pay for a Spot Instance. The default is the On-Demand price. ## InstanceCount: int ## :

    The maximum number of Spot Instances to launch.

    Default: 1

    - var query_626291 = newJObject() - add(query_626291, "ClientToken", newJString(ClientToken)) - add(query_626291, "LaunchSpecification.InstanceType", + var query_626293 = newJObject() + add(query_626293, "ClientToken", newJString(ClientToken)) + add(query_626293, "LaunchSpecification.InstanceType", newJString(LaunchSpecificationInstanceType)) - add(query_626291, "LaunchSpecification.RamdiskId", + add(query_626293, "LaunchSpecification.RamdiskId", newJString(LaunchSpecificationRamdiskId)) - add(query_626291, "LaunchSpecification.SubnetId", + add(query_626293, "LaunchSpecification.SubnetId", newJString(LaunchSpecificationSubnetId)) if LaunchSpecificationSecurityGroups != nil: - query_626291.add "LaunchSpecification.SecurityGroups", + query_626293.add "LaunchSpecification.SecurityGroups", LaunchSpecificationSecurityGroups - add(query_626291, "Type", newJString(Type)) - add(query_626291, "DryRun", newJBool(DryRun)) - add(query_626291, "LaunchGroup", newJString(LaunchGroup)) + add(query_626293, "Type", newJString(Type)) + add(query_626293, "DryRun", newJBool(DryRun)) + add(query_626293, "LaunchGroup", newJString(LaunchGroup)) if LaunchSpecificationSecurityGroupIds != nil: - query_626291.add "LaunchSpecification.SecurityGroupIds", + query_626293.add "LaunchSpecification.SecurityGroupIds", LaunchSpecificationSecurityGroupIds - add(query_626291, "LaunchSpecification.KernelId", + add(query_626293, "LaunchSpecification.KernelId", newJString(LaunchSpecificationKernelId)) - add(query_626291, "AvailabilityZoneGroup", newJString(AvailabilityZoneGroup)) - add(query_626291, "LaunchSpecification.AddressingType", + add(query_626293, "AvailabilityZoneGroup", newJString(AvailabilityZoneGroup)) + add(query_626293, "LaunchSpecification.AddressingType", newJString(LaunchSpecificationAddressingType)) - add(query_626291, "BlockDurationMinutes", newJInt(BlockDurationMinutes)) - add(query_626291, "LaunchSpecification.ImageId", + add(query_626293, "BlockDurationMinutes", newJInt(BlockDurationMinutes)) + add(query_626293, "LaunchSpecification.ImageId", newJString(LaunchSpecificationImageId)) - add(query_626291, "LaunchSpecification.IamInstanceProfile", + add(query_626293, "LaunchSpecification.IamInstanceProfile", newJString(LaunchSpecificationIamInstanceProfile)) - add(query_626291, "LaunchSpecification.UserData", + add(query_626293, "LaunchSpecification.UserData", newJString(LaunchSpecificationUserData)) - add(query_626291, "LaunchSpecification.EbsOptimized", + add(query_626293, "LaunchSpecification.EbsOptimized", newJString(LaunchSpecificationEbsOptimized)) - add(query_626291, "ValidUntil", newJString(ValidUntil)) + add(query_626293, "ValidUntil", newJString(ValidUntil)) if LaunchSpecificationBlockDeviceMappings != nil: - query_626291.add "LaunchSpecification.BlockDeviceMappings", + query_626293.add "LaunchSpecification.BlockDeviceMappings", LaunchSpecificationBlockDeviceMappings if LaunchSpecificationNetworkInterfaces != nil: - query_626291.add "LaunchSpecification.NetworkInterfaces", + query_626293.add "LaunchSpecification.NetworkInterfaces", LaunchSpecificationNetworkInterfaces - add(query_626291, "Action", newJString(Action)) - add(query_626291, "LaunchSpecification.Monitoring", + add(query_626293, "Action", newJString(Action)) + add(query_626293, "LaunchSpecification.Monitoring", newJString(LaunchSpecificationMonitoring)) - add(query_626291, "LaunchSpecification.KeyName", + add(query_626293, "LaunchSpecification.KeyName", newJString(LaunchSpecificationKeyName)) - add(query_626291, "LaunchSpecification.Placement", + add(query_626293, "LaunchSpecification.Placement", newJString(LaunchSpecificationPlacement)) - add(query_626291, "ValidFrom", newJString(ValidFrom)) - add(query_626291, "InstanceInterruptionBehavior", + add(query_626293, "ValidFrom", newJString(ValidFrom)) + add(query_626293, "InstanceInterruptionBehavior", newJString(InstanceInterruptionBehavior)) - add(query_626291, "Version", newJString(Version)) - add(query_626291, "SpotPrice", newJString(SpotPrice)) - add(query_626291, "InstanceCount", newJInt(InstanceCount)) - result = call_626290.call(nil, query_626291, nil, nil, nil) + add(query_626293, "Version", newJString(Version)) + add(query_626293, "SpotPrice", newJString(SpotPrice)) + add(query_626293, "InstanceCount", newJInt(InstanceCount)) + result = call_626292.call(nil, query_626293, nil, nil, nil) -var getRequestSpotInstances* = Call_GetRequestSpotInstances_626250( +var getRequestSpotInstances* = Call_GetRequestSpotInstances_626252( name: "getRequestSpotInstances", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=RequestSpotInstances", - validator: validate_GetRequestSpotInstances_626251, base: "/", - url: url_GetRequestSpotInstances_626252, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetRequestSpotInstances_626253, base: "/", + url: url_GetRequestSpotInstances_626254, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostResetEbsDefaultKmsKeyId_626351 = ref object of OpenApiRestCall_610658 -proc url_PostResetEbsDefaultKmsKeyId_626353(protocol: Scheme; host: string; + Call_PostResetEbsDefaultKmsKeyId_626353 = ref object of OpenApiRestCall_610658 +proc url_PostResetEbsDefaultKmsKeyId_626355(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -126637,7 +126664,7 @@ proc url_PostResetEbsDefaultKmsKeyId_626353(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostResetEbsDefaultKmsKeyId_626352(path: JsonNode; query: JsonNode; +proc validate_PostResetEbsDefaultKmsKeyId_626354(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Resets the default customer master key (CMK) for EBS encryption for your account in this Region to the AWS managed CMK for EBS.

    After resetting the default CMK to the AWS managed CMK, you can continue to encrypt by a customer managed CMK by specifying it when you create the volume. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -126649,16 +126676,16 @@ proc validate_PostResetEbsDefaultKmsKeyId_626352(path: JsonNode; query: JsonNode ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_626354 = query.getOrDefault("Action") - valid_626354 = validateParameter(valid_626354, JString, required = true, default = newJString( + var valid_626356 = query.getOrDefault("Action") + valid_626356 = validateParameter(valid_626356, JString, required = true, default = newJString( "ResetEbsDefaultKmsKeyId")) - if valid_626354 != nil: - section.add "Action", valid_626354 - var valid_626355 = query.getOrDefault("Version") - valid_626355 = validateParameter(valid_626355, JString, required = true, + if valid_626356 != nil: + section.add "Action", valid_626356 + var valid_626357 = query.getOrDefault("Version") + valid_626357 = validateParameter(valid_626357, JString, required = true, default = newJString("2016-11-15")) - if valid_626355 != nil: - section.add "Version", valid_626355 + if valid_626357 != nil: + section.add "Version", valid_626357 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -126669,68 +126696,68 @@ proc validate_PostResetEbsDefaultKmsKeyId_626352(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626356 = header.getOrDefault("X-Amz-Signature") - valid_626356 = validateParameter(valid_626356, JString, required = false, - default = nil) - if valid_626356 != nil: - section.add "X-Amz-Signature", valid_626356 - var valid_626357 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626357 = validateParameter(valid_626357, JString, required = false, - default = nil) - if valid_626357 != nil: - section.add "X-Amz-Content-Sha256", valid_626357 - var valid_626358 = header.getOrDefault("X-Amz-Date") + var valid_626358 = header.getOrDefault("X-Amz-Signature") valid_626358 = validateParameter(valid_626358, JString, required = false, default = nil) if valid_626358 != nil: - section.add "X-Amz-Date", valid_626358 - var valid_626359 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626358 + var valid_626359 = header.getOrDefault("X-Amz-Content-Sha256") valid_626359 = validateParameter(valid_626359, JString, required = false, default = nil) if valid_626359 != nil: - section.add "X-Amz-Credential", valid_626359 - var valid_626360 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626359 + var valid_626360 = header.getOrDefault("X-Amz-Date") valid_626360 = validateParameter(valid_626360, JString, required = false, default = nil) if valid_626360 != nil: - section.add "X-Amz-Security-Token", valid_626360 - var valid_626361 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626360 + var valid_626361 = header.getOrDefault("X-Amz-Credential") valid_626361 = validateParameter(valid_626361, JString, required = false, default = nil) if valid_626361 != nil: - section.add "X-Amz-Algorithm", valid_626361 - var valid_626362 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626361 + var valid_626362 = header.getOrDefault("X-Amz-Security-Token") valid_626362 = validateParameter(valid_626362, JString, required = false, default = nil) if valid_626362 != nil: - section.add "X-Amz-SignedHeaders", valid_626362 + section.add "X-Amz-Security-Token", valid_626362 + var valid_626363 = header.getOrDefault("X-Amz-Algorithm") + valid_626363 = validateParameter(valid_626363, JString, required = false, + default = nil) + if valid_626363 != nil: + section.add "X-Amz-Algorithm", valid_626363 + var valid_626364 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626364 = validateParameter(valid_626364, JString, required = false, + default = nil) + if valid_626364 != nil: + section.add "X-Amz-SignedHeaders", valid_626364 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool ## : 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. section = newJObject() - var valid_626363 = formData.getOrDefault("DryRun") - valid_626363 = validateParameter(valid_626363, JBool, required = false, default = nil) - if valid_626363 != nil: - section.add "DryRun", valid_626363 + var valid_626365 = formData.getOrDefault("DryRun") + valid_626365 = validateParameter(valid_626365, JBool, required = false, default = nil) + if valid_626365 != nil: + section.add "DryRun", valid_626365 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626364: Call_PostResetEbsDefaultKmsKeyId_626351; path: JsonNode; +proc call*(call_626366: Call_PostResetEbsDefaultKmsKeyId_626353; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Resets the default customer master key (CMK) for EBS encryption for your account in this Region to the AWS managed CMK for EBS.

    After resetting the default CMK to the AWS managed CMK, you can continue to encrypt by a customer managed CMK by specifying it when you create the volume. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_626364.validator(path, query, header, formData, body) - let scheme = call_626364.pickScheme + let valid = call_626366.validator(path, query, header, formData, body) + let scheme = call_626366.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626364.url(scheme.get, call_626364.host, call_626364.base, - call_626364.route, valid.getOrDefault("path"), + let url = call_626366.url(scheme.get, call_626366.host, call_626366.base, + call_626366.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626364, url, valid) + result = atozHook(call_626366, url, valid) -proc call*(call_626365: Call_PostResetEbsDefaultKmsKeyId_626351; +proc call*(call_626367: Call_PostResetEbsDefaultKmsKeyId_626353; DryRun: bool = false; Action: string = "ResetEbsDefaultKmsKeyId"; Version: string = "2016-11-15"): Recallable = ## postResetEbsDefaultKmsKeyId @@ -126739,22 +126766,22 @@ proc call*(call_626365: Call_PostResetEbsDefaultKmsKeyId_626351; ## : 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. ## Action: string (required) ## Version: string (required) - var query_626366 = newJObject() - var formData_626367 = newJObject() - add(formData_626367, "DryRun", newJBool(DryRun)) - add(query_626366, "Action", newJString(Action)) - add(query_626366, "Version", newJString(Version)) - result = call_626365.call(nil, query_626366, nil, formData_626367, nil) + var query_626368 = newJObject() + var formData_626369 = newJObject() + add(formData_626369, "DryRun", newJBool(DryRun)) + add(query_626368, "Action", newJString(Action)) + add(query_626368, "Version", newJString(Version)) + result = call_626367.call(nil, query_626368, nil, formData_626369, nil) -var postResetEbsDefaultKmsKeyId* = Call_PostResetEbsDefaultKmsKeyId_626351( +var postResetEbsDefaultKmsKeyId* = Call_PostResetEbsDefaultKmsKeyId_626353( name: "postResetEbsDefaultKmsKeyId", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ResetEbsDefaultKmsKeyId", - validator: validate_PostResetEbsDefaultKmsKeyId_626352, base: "/", - url: url_PostResetEbsDefaultKmsKeyId_626353, + validator: validate_PostResetEbsDefaultKmsKeyId_626354, base: "/", + url: url_PostResetEbsDefaultKmsKeyId_626355, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetResetEbsDefaultKmsKeyId_626335 = ref object of OpenApiRestCall_610658 -proc url_GetResetEbsDefaultKmsKeyId_626337(protocol: Scheme; host: string; + Call_GetResetEbsDefaultKmsKeyId_626337 = ref object of OpenApiRestCall_610658 +proc url_GetResetEbsDefaultKmsKeyId_626339(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -126764,7 +126791,7 @@ proc url_GetResetEbsDefaultKmsKeyId_626337(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetResetEbsDefaultKmsKeyId_626336(path: JsonNode; query: JsonNode; +proc validate_GetResetEbsDefaultKmsKeyId_626338(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Resets the default customer master key (CMK) for EBS encryption for your account in this Region to the AWS managed CMK for EBS.

    After resetting the default CMK to the AWS managed CMK, you can continue to encrypt by a customer managed CMK by specifying it when you create the volume. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -126778,20 +126805,20 @@ proc validate_GetResetEbsDefaultKmsKeyId_626336(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_626338 = query.getOrDefault("DryRun") - valid_626338 = validateParameter(valid_626338, JBool, required = false, default = nil) - if valid_626338 != nil: - section.add "DryRun", valid_626338 - var valid_626339 = query.getOrDefault("Action") - valid_626339 = validateParameter(valid_626339, JString, required = true, default = newJString( + var valid_626340 = query.getOrDefault("DryRun") + valid_626340 = validateParameter(valid_626340, JBool, required = false, default = nil) + if valid_626340 != nil: + section.add "DryRun", valid_626340 + var valid_626341 = query.getOrDefault("Action") + valid_626341 = validateParameter(valid_626341, JString, required = true, default = newJString( "ResetEbsDefaultKmsKeyId")) - if valid_626339 != nil: - section.add "Action", valid_626339 - var valid_626340 = query.getOrDefault("Version") - valid_626340 = validateParameter(valid_626340, JString, required = true, + if valid_626341 != nil: + section.add "Action", valid_626341 + var valid_626342 = query.getOrDefault("Version") + valid_626342 = validateParameter(valid_626342, JString, required = true, default = newJString("2016-11-15")) - if valid_626340 != nil: - section.add "Version", valid_626340 + if valid_626342 != nil: + section.add "Version", valid_626342 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -126802,61 +126829,61 @@ proc validate_GetResetEbsDefaultKmsKeyId_626336(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626341 = header.getOrDefault("X-Amz-Signature") - valid_626341 = validateParameter(valid_626341, JString, required = false, - default = nil) - if valid_626341 != nil: - section.add "X-Amz-Signature", valid_626341 - var valid_626342 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626342 = validateParameter(valid_626342, JString, required = false, - default = nil) - if valid_626342 != nil: - section.add "X-Amz-Content-Sha256", valid_626342 - var valid_626343 = header.getOrDefault("X-Amz-Date") + var valid_626343 = header.getOrDefault("X-Amz-Signature") valid_626343 = validateParameter(valid_626343, JString, required = false, default = nil) if valid_626343 != nil: - section.add "X-Amz-Date", valid_626343 - var valid_626344 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626343 + var valid_626344 = header.getOrDefault("X-Amz-Content-Sha256") valid_626344 = validateParameter(valid_626344, JString, required = false, default = nil) if valid_626344 != nil: - section.add "X-Amz-Credential", valid_626344 - var valid_626345 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626344 + var valid_626345 = header.getOrDefault("X-Amz-Date") valid_626345 = validateParameter(valid_626345, JString, required = false, default = nil) if valid_626345 != nil: - section.add "X-Amz-Security-Token", valid_626345 - var valid_626346 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626345 + var valid_626346 = header.getOrDefault("X-Amz-Credential") valid_626346 = validateParameter(valid_626346, JString, required = false, default = nil) if valid_626346 != nil: - section.add "X-Amz-Algorithm", valid_626346 - var valid_626347 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626346 + var valid_626347 = header.getOrDefault("X-Amz-Security-Token") valid_626347 = validateParameter(valid_626347, JString, required = false, default = nil) if valid_626347 != nil: - section.add "X-Amz-SignedHeaders", valid_626347 + section.add "X-Amz-Security-Token", valid_626347 + var valid_626348 = header.getOrDefault("X-Amz-Algorithm") + valid_626348 = validateParameter(valid_626348, JString, required = false, + default = nil) + if valid_626348 != nil: + section.add "X-Amz-Algorithm", valid_626348 + var valid_626349 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626349 = validateParameter(valid_626349, JString, required = false, + default = nil) + if valid_626349 != nil: + section.add "X-Amz-SignedHeaders", valid_626349 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626348: Call_GetResetEbsDefaultKmsKeyId_626335; path: JsonNode; +proc call*(call_626350: Call_GetResetEbsDefaultKmsKeyId_626337; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Resets the default customer master key (CMK) for EBS encryption for your account in this Region to the AWS managed CMK for EBS.

    After resetting the default CMK to the AWS managed CMK, you can continue to encrypt by a customer managed CMK by specifying it when you create the volume. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_626348.validator(path, query, header, formData, body) - let scheme = call_626348.pickScheme + let valid = call_626350.validator(path, query, header, formData, body) + let scheme = call_626350.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626348.url(scheme.get, call_626348.host, call_626348.base, - call_626348.route, valid.getOrDefault("path"), + let url = call_626350.url(scheme.get, call_626350.host, call_626350.base, + call_626350.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626348, url, valid) + result = atozHook(call_626350, url, valid) -proc call*(call_626349: Call_GetResetEbsDefaultKmsKeyId_626335; +proc call*(call_626351: Call_GetResetEbsDefaultKmsKeyId_626337; DryRun: bool = false; Action: string = "ResetEbsDefaultKmsKeyId"; Version: string = "2016-11-15"): Recallable = ## getResetEbsDefaultKmsKeyId @@ -126865,21 +126892,21 @@ proc call*(call_626349: Call_GetResetEbsDefaultKmsKeyId_626335; ## : 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. ## Action: string (required) ## Version: string (required) - var query_626350 = newJObject() - add(query_626350, "DryRun", newJBool(DryRun)) - add(query_626350, "Action", newJString(Action)) - add(query_626350, "Version", newJString(Version)) - result = call_626349.call(nil, query_626350, nil, nil, nil) + var query_626352 = newJObject() + add(query_626352, "DryRun", newJBool(DryRun)) + add(query_626352, "Action", newJString(Action)) + add(query_626352, "Version", newJString(Version)) + result = call_626351.call(nil, query_626352, nil, nil, nil) -var getResetEbsDefaultKmsKeyId* = Call_GetResetEbsDefaultKmsKeyId_626335( +var getResetEbsDefaultKmsKeyId* = Call_GetResetEbsDefaultKmsKeyId_626337( name: "getResetEbsDefaultKmsKeyId", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ResetEbsDefaultKmsKeyId", - validator: validate_GetResetEbsDefaultKmsKeyId_626336, base: "/", - url: url_GetResetEbsDefaultKmsKeyId_626337, + validator: validate_GetResetEbsDefaultKmsKeyId_626338, base: "/", + url: url_GetResetEbsDefaultKmsKeyId_626339, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostResetFpgaImageAttribute_626386 = ref object of OpenApiRestCall_610658 -proc url_PostResetFpgaImageAttribute_626388(protocol: Scheme; host: string; + Call_PostResetFpgaImageAttribute_626388 = ref object of OpenApiRestCall_610658 +proc url_PostResetFpgaImageAttribute_626390(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -126889,7 +126916,7 @@ proc url_PostResetFpgaImageAttribute_626388(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostResetFpgaImageAttribute_626387(path: JsonNode; query: JsonNode; +proc validate_PostResetFpgaImageAttribute_626389(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Resets the specified attribute of the specified Amazon FPGA Image (AFI) to its default value. You can only reset the load permission attribute. ## @@ -126901,16 +126928,16 @@ proc validate_PostResetFpgaImageAttribute_626387(path: JsonNode; query: JsonNode ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_626389 = query.getOrDefault("Action") - valid_626389 = validateParameter(valid_626389, JString, required = true, default = newJString( + var valid_626391 = query.getOrDefault("Action") + valid_626391 = validateParameter(valid_626391, JString, required = true, default = newJString( "ResetFpgaImageAttribute")) - if valid_626389 != nil: - section.add "Action", valid_626389 - var valid_626390 = query.getOrDefault("Version") - valid_626390 = validateParameter(valid_626390, JString, required = true, + if valid_626391 != nil: + section.add "Action", valid_626391 + var valid_626392 = query.getOrDefault("Version") + valid_626392 = validateParameter(valid_626392, JString, required = true, default = newJString("2016-11-15")) - if valid_626390 != nil: - section.add "Version", valid_626390 + if valid_626392 != nil: + section.add "Version", valid_626392 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -126921,41 +126948,41 @@ proc validate_PostResetFpgaImageAttribute_626387(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626391 = header.getOrDefault("X-Amz-Signature") - valid_626391 = validateParameter(valid_626391, JString, required = false, - default = nil) - if valid_626391 != nil: - section.add "X-Amz-Signature", valid_626391 - var valid_626392 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626392 = validateParameter(valid_626392, JString, required = false, - default = nil) - if valid_626392 != nil: - section.add "X-Amz-Content-Sha256", valid_626392 - var valid_626393 = header.getOrDefault("X-Amz-Date") + var valid_626393 = header.getOrDefault("X-Amz-Signature") valid_626393 = validateParameter(valid_626393, JString, required = false, default = nil) if valid_626393 != nil: - section.add "X-Amz-Date", valid_626393 - var valid_626394 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626393 + var valid_626394 = header.getOrDefault("X-Amz-Content-Sha256") valid_626394 = validateParameter(valid_626394, JString, required = false, default = nil) if valid_626394 != nil: - section.add "X-Amz-Credential", valid_626394 - var valid_626395 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626394 + var valid_626395 = header.getOrDefault("X-Amz-Date") valid_626395 = validateParameter(valid_626395, JString, required = false, default = nil) if valid_626395 != nil: - section.add "X-Amz-Security-Token", valid_626395 - var valid_626396 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626395 + var valid_626396 = header.getOrDefault("X-Amz-Credential") valid_626396 = validateParameter(valid_626396, JString, required = false, default = nil) if valid_626396 != nil: - section.add "X-Amz-Algorithm", valid_626396 - var valid_626397 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626396 + var valid_626397 = header.getOrDefault("X-Amz-Security-Token") valid_626397 = validateParameter(valid_626397, JString, required = false, default = nil) if valid_626397 != nil: - section.add "X-Amz-SignedHeaders", valid_626397 + section.add "X-Amz-Security-Token", valid_626397 + var valid_626398 = header.getOrDefault("X-Amz-Algorithm") + valid_626398 = validateParameter(valid_626398, JString, required = false, + default = nil) + if valid_626398 != nil: + section.add "X-Amz-Algorithm", valid_626398 + var valid_626399 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626399 = validateParameter(valid_626399, JString, required = false, + default = nil) + if valid_626399 != nil: + section.add "X-Amz-SignedHeaders", valid_626399 result.add "header", section ## parameters in `formData` object: ## Attribute: JString @@ -126965,40 +126992,40 @@ proc validate_PostResetFpgaImageAttribute_626387(path: JsonNode; query: JsonNode ## FpgaImageId: JString (required) ## : The ID of the AFI. section = newJObject() - var valid_626398 = formData.getOrDefault("Attribute") - valid_626398 = validateParameter(valid_626398, JString, required = false, + var valid_626400 = formData.getOrDefault("Attribute") + valid_626400 = validateParameter(valid_626400, JString, required = false, default = newJString("loadPermission")) - if valid_626398 != nil: - section.add "Attribute", valid_626398 - var valid_626399 = formData.getOrDefault("DryRun") - valid_626399 = validateParameter(valid_626399, JBool, required = false, default = nil) - if valid_626399 != nil: - section.add "DryRun", valid_626399 + if valid_626400 != nil: + section.add "Attribute", valid_626400 + var valid_626401 = formData.getOrDefault("DryRun") + valid_626401 = validateParameter(valid_626401, JBool, required = false, default = nil) + if valid_626401 != nil: + section.add "DryRun", valid_626401 assert formData != nil, "formData argument is necessary due to required `FpgaImageId` field" - var valid_626400 = formData.getOrDefault("FpgaImageId") - valid_626400 = validateParameter(valid_626400, JString, required = true, + var valid_626402 = formData.getOrDefault("FpgaImageId") + valid_626402 = validateParameter(valid_626402, JString, required = true, default = nil) - if valid_626400 != nil: - section.add "FpgaImageId", valid_626400 + if valid_626402 != nil: + section.add "FpgaImageId", valid_626402 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626401: Call_PostResetFpgaImageAttribute_626386; path: JsonNode; +proc call*(call_626403: Call_PostResetFpgaImageAttribute_626388; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Resets the specified attribute of the specified Amazon FPGA Image (AFI) to its default value. You can only reset the load permission attribute. ## - let valid = call_626401.validator(path, query, header, formData, body) - let scheme = call_626401.pickScheme + let valid = call_626403.validator(path, query, header, formData, body) + let scheme = call_626403.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626401.url(scheme.get, call_626401.host, call_626401.base, - call_626401.route, valid.getOrDefault("path"), + let url = call_626403.url(scheme.get, call_626403.host, call_626403.base, + call_626403.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626401, url, valid) + result = atozHook(call_626403, url, valid) -proc call*(call_626402: Call_PostResetFpgaImageAttribute_626386; +proc call*(call_626404: Call_PostResetFpgaImageAttribute_626388; FpgaImageId: string; Attribute: string = "loadPermission"; DryRun: bool = false; Action: string = "ResetFpgaImageAttribute"; Version: string = "2016-11-15"): Recallable = @@ -127012,24 +127039,24 @@ proc call*(call_626402: Call_PostResetFpgaImageAttribute_626386; ## : The ID of the AFI. ## Action: string (required) ## Version: string (required) - var query_626403 = newJObject() - var formData_626404 = newJObject() - add(formData_626404, "Attribute", newJString(Attribute)) - add(formData_626404, "DryRun", newJBool(DryRun)) - add(formData_626404, "FpgaImageId", newJString(FpgaImageId)) - add(query_626403, "Action", newJString(Action)) - add(query_626403, "Version", newJString(Version)) - result = call_626402.call(nil, query_626403, nil, formData_626404, nil) + var query_626405 = newJObject() + var formData_626406 = newJObject() + add(formData_626406, "Attribute", newJString(Attribute)) + add(formData_626406, "DryRun", newJBool(DryRun)) + add(formData_626406, "FpgaImageId", newJString(FpgaImageId)) + add(query_626405, "Action", newJString(Action)) + add(query_626405, "Version", newJString(Version)) + result = call_626404.call(nil, query_626405, nil, formData_626406, nil) -var postResetFpgaImageAttribute* = Call_PostResetFpgaImageAttribute_626386( +var postResetFpgaImageAttribute* = Call_PostResetFpgaImageAttribute_626388( name: "postResetFpgaImageAttribute", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ResetFpgaImageAttribute", - validator: validate_PostResetFpgaImageAttribute_626387, base: "/", - url: url_PostResetFpgaImageAttribute_626388, + validator: validate_PostResetFpgaImageAttribute_626389, base: "/", + url: url_PostResetFpgaImageAttribute_626390, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetResetFpgaImageAttribute_626368 = ref object of OpenApiRestCall_610658 -proc url_GetResetFpgaImageAttribute_626370(protocol: Scheme; host: string; + Call_GetResetFpgaImageAttribute_626370 = ref object of OpenApiRestCall_610658 +proc url_GetResetFpgaImageAttribute_626372(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -127039,7 +127066,7 @@ proc url_GetResetFpgaImageAttribute_626370(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetResetFpgaImageAttribute_626369(path: JsonNode; query: JsonNode; +proc validate_GetResetFpgaImageAttribute_626371(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Resets the specified attribute of the specified Amazon FPGA Image (AFI) to its default value. You can only reset the load permission attribute. ## @@ -127057,30 +127084,30 @@ proc validate_GetResetFpgaImageAttribute_626369(path: JsonNode; query: JsonNode; ## Attribute: JString ## : The attribute. section = newJObject() - var valid_626371 = query.getOrDefault("DryRun") - valid_626371 = validateParameter(valid_626371, JBool, required = false, default = nil) - if valid_626371 != nil: - section.add "DryRun", valid_626371 - var valid_626372 = query.getOrDefault("Action") - valid_626372 = validateParameter(valid_626372, JString, required = true, default = newJString( + var valid_626373 = query.getOrDefault("DryRun") + valid_626373 = validateParameter(valid_626373, JBool, required = false, default = nil) + if valid_626373 != nil: + section.add "DryRun", valid_626373 + var valid_626374 = query.getOrDefault("Action") + valid_626374 = validateParameter(valid_626374, JString, required = true, default = newJString( "ResetFpgaImageAttribute")) - if valid_626372 != nil: - section.add "Action", valid_626372 - var valid_626373 = query.getOrDefault("FpgaImageId") - valid_626373 = validateParameter(valid_626373, JString, required = true, + if valid_626374 != nil: + section.add "Action", valid_626374 + var valid_626375 = query.getOrDefault("FpgaImageId") + valid_626375 = validateParameter(valid_626375, JString, required = true, default = nil) - if valid_626373 != nil: - section.add "FpgaImageId", valid_626373 - var valid_626374 = query.getOrDefault("Version") - valid_626374 = validateParameter(valid_626374, JString, required = true, + if valid_626375 != nil: + section.add "FpgaImageId", valid_626375 + var valid_626376 = query.getOrDefault("Version") + valid_626376 = validateParameter(valid_626376, JString, required = true, default = newJString("2016-11-15")) - if valid_626374 != nil: - section.add "Version", valid_626374 - var valid_626375 = query.getOrDefault("Attribute") - valid_626375 = validateParameter(valid_626375, JString, required = false, + if valid_626376 != nil: + section.add "Version", valid_626376 + var valid_626377 = query.getOrDefault("Attribute") + valid_626377 = validateParameter(valid_626377, JString, required = false, default = newJString("loadPermission")) - if valid_626375 != nil: - section.add "Attribute", valid_626375 + if valid_626377 != nil: + section.add "Attribute", valid_626377 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -127091,61 +127118,61 @@ proc validate_GetResetFpgaImageAttribute_626369(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626376 = header.getOrDefault("X-Amz-Signature") - valid_626376 = validateParameter(valid_626376, JString, required = false, - default = nil) - if valid_626376 != nil: - section.add "X-Amz-Signature", valid_626376 - var valid_626377 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626377 = validateParameter(valid_626377, JString, required = false, - default = nil) - if valid_626377 != nil: - section.add "X-Amz-Content-Sha256", valid_626377 - var valid_626378 = header.getOrDefault("X-Amz-Date") + var valid_626378 = header.getOrDefault("X-Amz-Signature") valid_626378 = validateParameter(valid_626378, JString, required = false, default = nil) if valid_626378 != nil: - section.add "X-Amz-Date", valid_626378 - var valid_626379 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626378 + var valid_626379 = header.getOrDefault("X-Amz-Content-Sha256") valid_626379 = validateParameter(valid_626379, JString, required = false, default = nil) if valid_626379 != nil: - section.add "X-Amz-Credential", valid_626379 - var valid_626380 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626379 + var valid_626380 = header.getOrDefault("X-Amz-Date") valid_626380 = validateParameter(valid_626380, JString, required = false, default = nil) if valid_626380 != nil: - section.add "X-Amz-Security-Token", valid_626380 - var valid_626381 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626380 + var valid_626381 = header.getOrDefault("X-Amz-Credential") valid_626381 = validateParameter(valid_626381, JString, required = false, default = nil) if valid_626381 != nil: - section.add "X-Amz-Algorithm", valid_626381 - var valid_626382 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626381 + var valid_626382 = header.getOrDefault("X-Amz-Security-Token") valid_626382 = validateParameter(valid_626382, JString, required = false, default = nil) if valid_626382 != nil: - section.add "X-Amz-SignedHeaders", valid_626382 + section.add "X-Amz-Security-Token", valid_626382 + var valid_626383 = header.getOrDefault("X-Amz-Algorithm") + valid_626383 = validateParameter(valid_626383, JString, required = false, + default = nil) + if valid_626383 != nil: + section.add "X-Amz-Algorithm", valid_626383 + var valid_626384 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626384 = validateParameter(valid_626384, JString, required = false, + default = nil) + if valid_626384 != nil: + section.add "X-Amz-SignedHeaders", valid_626384 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626383: Call_GetResetFpgaImageAttribute_626368; path: JsonNode; +proc call*(call_626385: Call_GetResetFpgaImageAttribute_626370; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Resets the specified attribute of the specified Amazon FPGA Image (AFI) to its default value. You can only reset the load permission attribute. ## - let valid = call_626383.validator(path, query, header, formData, body) - let scheme = call_626383.pickScheme + let valid = call_626385.validator(path, query, header, formData, body) + let scheme = call_626385.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626383.url(scheme.get, call_626383.host, call_626383.base, - call_626383.route, valid.getOrDefault("path"), + let url = call_626385.url(scheme.get, call_626385.host, call_626385.base, + call_626385.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626383, url, valid) + result = atozHook(call_626385, url, valid) -proc call*(call_626384: Call_GetResetFpgaImageAttribute_626368; +proc call*(call_626386: Call_GetResetFpgaImageAttribute_626370; FpgaImageId: string; DryRun: bool = false; Action: string = "ResetFpgaImageAttribute"; Version: string = "2016-11-15"; Attribute: string = "loadPermission"): Recallable = @@ -127159,23 +127186,23 @@ proc call*(call_626384: Call_GetResetFpgaImageAttribute_626368; ## Version: string (required) ## Attribute: string ## : The attribute. - var query_626385 = newJObject() - add(query_626385, "DryRun", newJBool(DryRun)) - add(query_626385, "Action", newJString(Action)) - add(query_626385, "FpgaImageId", newJString(FpgaImageId)) - add(query_626385, "Version", newJString(Version)) - add(query_626385, "Attribute", newJString(Attribute)) - result = call_626384.call(nil, query_626385, nil, nil, nil) - -var getResetFpgaImageAttribute* = Call_GetResetFpgaImageAttribute_626368( + var query_626387 = newJObject() + add(query_626387, "DryRun", newJBool(DryRun)) + add(query_626387, "Action", newJString(Action)) + add(query_626387, "FpgaImageId", newJString(FpgaImageId)) + add(query_626387, "Version", newJString(Version)) + add(query_626387, "Attribute", newJString(Attribute)) + result = call_626386.call(nil, query_626387, nil, nil, nil) + +var getResetFpgaImageAttribute* = Call_GetResetFpgaImageAttribute_626370( name: "getResetFpgaImageAttribute", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ResetFpgaImageAttribute", - validator: validate_GetResetFpgaImageAttribute_626369, base: "/", - url: url_GetResetFpgaImageAttribute_626370, + validator: validate_GetResetFpgaImageAttribute_626371, base: "/", + url: url_GetResetFpgaImageAttribute_626372, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostResetImageAttribute_626423 = ref object of OpenApiRestCall_610658 -proc url_PostResetImageAttribute_626425(protocol: Scheme; host: string; base: string; + Call_PostResetImageAttribute_626425 = ref object of OpenApiRestCall_610658 +proc url_PostResetImageAttribute_626427(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -127186,7 +127213,7 @@ proc url_PostResetImageAttribute_626425(protocol: Scheme; host: string; base: st else: result.path = base & route -proc validate_PostResetImageAttribute_626424(path: JsonNode; query: JsonNode; +proc validate_PostResetImageAttribute_626426(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Resets an attribute of an AMI to its default value.

    The productCodes attribute can't be reset.

    ## @@ -127198,16 +127225,16 @@ proc validate_PostResetImageAttribute_626424(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_626426 = query.getOrDefault("Action") - valid_626426 = validateParameter(valid_626426, JString, required = true, + var valid_626428 = query.getOrDefault("Action") + valid_626428 = validateParameter(valid_626428, JString, required = true, default = newJString("ResetImageAttribute")) - if valid_626426 != nil: - section.add "Action", valid_626426 - var valid_626427 = query.getOrDefault("Version") - valid_626427 = validateParameter(valid_626427, JString, required = true, + if valid_626428 != nil: + section.add "Action", valid_626428 + var valid_626429 = query.getOrDefault("Version") + valid_626429 = validateParameter(valid_626429, JString, required = true, default = newJString("2016-11-15")) - if valid_626427 != nil: - section.add "Version", valid_626427 + if valid_626429 != nil: + section.add "Version", valid_626429 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -127218,41 +127245,41 @@ proc validate_PostResetImageAttribute_626424(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626428 = header.getOrDefault("X-Amz-Signature") - valid_626428 = validateParameter(valid_626428, JString, required = false, - default = nil) - if valid_626428 != nil: - section.add "X-Amz-Signature", valid_626428 - var valid_626429 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626429 = validateParameter(valid_626429, JString, required = false, - default = nil) - if valid_626429 != nil: - section.add "X-Amz-Content-Sha256", valid_626429 - var valid_626430 = header.getOrDefault("X-Amz-Date") + var valid_626430 = header.getOrDefault("X-Amz-Signature") valid_626430 = validateParameter(valid_626430, JString, required = false, default = nil) if valid_626430 != nil: - section.add "X-Amz-Date", valid_626430 - var valid_626431 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626430 + var valid_626431 = header.getOrDefault("X-Amz-Content-Sha256") valid_626431 = validateParameter(valid_626431, JString, required = false, default = nil) if valid_626431 != nil: - section.add "X-Amz-Credential", valid_626431 - var valid_626432 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626431 + var valid_626432 = header.getOrDefault("X-Amz-Date") valid_626432 = validateParameter(valid_626432, JString, required = false, default = nil) if valid_626432 != nil: - section.add "X-Amz-Security-Token", valid_626432 - var valid_626433 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626432 + var valid_626433 = header.getOrDefault("X-Amz-Credential") valid_626433 = validateParameter(valid_626433, JString, required = false, default = nil) if valid_626433 != nil: - section.add "X-Amz-Algorithm", valid_626433 - var valid_626434 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626433 + var valid_626434 = header.getOrDefault("X-Amz-Security-Token") valid_626434 = validateParameter(valid_626434, JString, required = false, default = nil) if valid_626434 != nil: - section.add "X-Amz-SignedHeaders", valid_626434 + section.add "X-Amz-Security-Token", valid_626434 + var valid_626435 = header.getOrDefault("X-Amz-Algorithm") + valid_626435 = validateParameter(valid_626435, JString, required = false, + default = nil) + if valid_626435 != nil: + section.add "X-Amz-Algorithm", valid_626435 + var valid_626436 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626436 = validateParameter(valid_626436, JString, required = false, + default = nil) + if valid_626436 != nil: + section.add "X-Amz-SignedHeaders", valid_626436 result.add "header", section ## parameters in `formData` object: ## Attribute: JString (required) @@ -127262,38 +127289,38 @@ proc validate_PostResetImageAttribute_626424(path: JsonNode; query: JsonNode; ## ImageId: JString (required) ## : The ID of the AMI. section = newJObject() - var valid_626435 = formData.getOrDefault("Attribute") - valid_626435 = validateParameter(valid_626435, JString, required = true, - default = newJString("launchPermission")) - if valid_626435 != nil: - section.add "Attribute", valid_626435 - var valid_626436 = formData.getOrDefault("DryRun") - valid_626436 = validateParameter(valid_626436, JBool, required = false, default = nil) - if valid_626436 != nil: - section.add "DryRun", valid_626436 - var valid_626437 = formData.getOrDefault("ImageId") + var valid_626437 = formData.getOrDefault("Attribute") valid_626437 = validateParameter(valid_626437, JString, required = true, - default = nil) + default = newJString("launchPermission")) if valid_626437 != nil: - section.add "ImageId", valid_626437 + section.add "Attribute", valid_626437 + var valid_626438 = formData.getOrDefault("DryRun") + valid_626438 = validateParameter(valid_626438, JBool, required = false, default = nil) + if valid_626438 != nil: + section.add "DryRun", valid_626438 + var valid_626439 = formData.getOrDefault("ImageId") + valid_626439 = validateParameter(valid_626439, JString, required = true, + default = nil) + if valid_626439 != nil: + section.add "ImageId", valid_626439 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626438: Call_PostResetImageAttribute_626423; path: JsonNode; +proc call*(call_626440: Call_PostResetImageAttribute_626425; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Resets an attribute of an AMI to its default value.

    The productCodes attribute can't be reset.

    ## - let valid = call_626438.validator(path, query, header, formData, body) - let scheme = call_626438.pickScheme + let valid = call_626440.validator(path, query, header, formData, body) + let scheme = call_626440.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626438.url(scheme.get, call_626438.host, call_626438.base, - call_626438.route, valid.getOrDefault("path"), + let url = call_626440.url(scheme.get, call_626440.host, call_626440.base, + call_626440.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626438, url, valid) + result = atozHook(call_626440, url, valid) -proc call*(call_626439: Call_PostResetImageAttribute_626423; ImageId: string; +proc call*(call_626441: Call_PostResetImageAttribute_626425; ImageId: string; Attribute: string = "launchPermission"; DryRun: bool = false; Action: string = "ResetImageAttribute"; Version: string = "2016-11-15"): Recallable = ## postResetImageAttribute @@ -127306,23 +127333,23 @@ proc call*(call_626439: Call_PostResetImageAttribute_626423; ImageId: string; ## ImageId: string (required) ## : The ID of the AMI. ## Version: string (required) - var query_626440 = newJObject() - var formData_626441 = newJObject() - add(formData_626441, "Attribute", newJString(Attribute)) - add(formData_626441, "DryRun", newJBool(DryRun)) - add(query_626440, "Action", newJString(Action)) - add(formData_626441, "ImageId", newJString(ImageId)) - add(query_626440, "Version", newJString(Version)) - result = call_626439.call(nil, query_626440, nil, formData_626441, nil) + var query_626442 = newJObject() + var formData_626443 = newJObject() + add(formData_626443, "Attribute", newJString(Attribute)) + add(formData_626443, "DryRun", newJBool(DryRun)) + add(query_626442, "Action", newJString(Action)) + add(formData_626443, "ImageId", newJString(ImageId)) + add(query_626442, "Version", newJString(Version)) + result = call_626441.call(nil, query_626442, nil, formData_626443, nil) -var postResetImageAttribute* = Call_PostResetImageAttribute_626423( +var postResetImageAttribute* = Call_PostResetImageAttribute_626425( name: "postResetImageAttribute", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ResetImageAttribute", - validator: validate_PostResetImageAttribute_626424, base: "/", - url: url_PostResetImageAttribute_626425, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostResetImageAttribute_626426, base: "/", + url: url_PostResetImageAttribute_626427, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetResetImageAttribute_626405 = ref object of OpenApiRestCall_610658 -proc url_GetResetImageAttribute_626407(protocol: Scheme; host: string; base: string; + Call_GetResetImageAttribute_626407 = ref object of OpenApiRestCall_610658 +proc url_GetResetImageAttribute_626409(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -127332,7 +127359,7 @@ proc url_GetResetImageAttribute_626407(protocol: Scheme; host: string; base: str else: result.path = base & route -proc validate_GetResetImageAttribute_626406(path: JsonNode; query: JsonNode; +proc validate_GetResetImageAttribute_626408(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Resets an attribute of an AMI to its default value.

    The productCodes attribute can't be reset.

    ## @@ -127351,30 +127378,30 @@ proc validate_GetResetImageAttribute_626406(path: JsonNode; query: JsonNode; ## : The attribute to reset (currently you can only reset the launch permission attribute). section = newJObject() assert query != nil, "query argument is necessary due to required `ImageId` field" - var valid_626408 = query.getOrDefault("ImageId") - valid_626408 = validateParameter(valid_626408, JString, required = true, - default = nil) - if valid_626408 != nil: - section.add "ImageId", valid_626408 - var valid_626409 = query.getOrDefault("DryRun") - valid_626409 = validateParameter(valid_626409, JBool, required = false, default = nil) - if valid_626409 != nil: - section.add "DryRun", valid_626409 - var valid_626410 = query.getOrDefault("Action") + var valid_626410 = query.getOrDefault("ImageId") valid_626410 = validateParameter(valid_626410, JString, required = true, - default = newJString("ResetImageAttribute")) + default = nil) if valid_626410 != nil: - section.add "Action", valid_626410 - var valid_626411 = query.getOrDefault("Version") - valid_626411 = validateParameter(valid_626411, JString, required = true, - default = newJString("2016-11-15")) + section.add "ImageId", valid_626410 + var valid_626411 = query.getOrDefault("DryRun") + valid_626411 = validateParameter(valid_626411, JBool, required = false, default = nil) if valid_626411 != nil: - section.add "Version", valid_626411 - var valid_626412 = query.getOrDefault("Attribute") + section.add "DryRun", valid_626411 + var valid_626412 = query.getOrDefault("Action") valid_626412 = validateParameter(valid_626412, JString, required = true, - default = newJString("launchPermission")) + default = newJString("ResetImageAttribute")) if valid_626412 != nil: - section.add "Attribute", valid_626412 + section.add "Action", valid_626412 + var valid_626413 = query.getOrDefault("Version") + valid_626413 = validateParameter(valid_626413, JString, required = true, + default = newJString("2016-11-15")) + if valid_626413 != nil: + section.add "Version", valid_626413 + var valid_626414 = query.getOrDefault("Attribute") + valid_626414 = validateParameter(valid_626414, JString, required = true, + default = newJString("launchPermission")) + if valid_626414 != nil: + section.add "Attribute", valid_626414 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -127385,61 +127412,61 @@ proc validate_GetResetImageAttribute_626406(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626413 = header.getOrDefault("X-Amz-Signature") - valid_626413 = validateParameter(valid_626413, JString, required = false, - default = nil) - if valid_626413 != nil: - section.add "X-Amz-Signature", valid_626413 - var valid_626414 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626414 = validateParameter(valid_626414, JString, required = false, - default = nil) - if valid_626414 != nil: - section.add "X-Amz-Content-Sha256", valid_626414 - var valid_626415 = header.getOrDefault("X-Amz-Date") + var valid_626415 = header.getOrDefault("X-Amz-Signature") valid_626415 = validateParameter(valid_626415, JString, required = false, default = nil) if valid_626415 != nil: - section.add "X-Amz-Date", valid_626415 - var valid_626416 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626415 + var valid_626416 = header.getOrDefault("X-Amz-Content-Sha256") valid_626416 = validateParameter(valid_626416, JString, required = false, default = nil) if valid_626416 != nil: - section.add "X-Amz-Credential", valid_626416 - var valid_626417 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626416 + var valid_626417 = header.getOrDefault("X-Amz-Date") valid_626417 = validateParameter(valid_626417, JString, required = false, default = nil) if valid_626417 != nil: - section.add "X-Amz-Security-Token", valid_626417 - var valid_626418 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626417 + var valid_626418 = header.getOrDefault("X-Amz-Credential") valid_626418 = validateParameter(valid_626418, JString, required = false, default = nil) if valid_626418 != nil: - section.add "X-Amz-Algorithm", valid_626418 - var valid_626419 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626418 + var valid_626419 = header.getOrDefault("X-Amz-Security-Token") valid_626419 = validateParameter(valid_626419, JString, required = false, default = nil) if valid_626419 != nil: - section.add "X-Amz-SignedHeaders", valid_626419 + section.add "X-Amz-Security-Token", valid_626419 + var valid_626420 = header.getOrDefault("X-Amz-Algorithm") + valid_626420 = validateParameter(valid_626420, JString, required = false, + default = nil) + if valid_626420 != nil: + section.add "X-Amz-Algorithm", valid_626420 + var valid_626421 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626421 = validateParameter(valid_626421, JString, required = false, + default = nil) + if valid_626421 != nil: + section.add "X-Amz-SignedHeaders", valid_626421 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626420: Call_GetResetImageAttribute_626405; path: JsonNode; +proc call*(call_626422: Call_GetResetImageAttribute_626407; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Resets an attribute of an AMI to its default value.

    The productCodes attribute can't be reset.

    ## - let valid = call_626420.validator(path, query, header, formData, body) - let scheme = call_626420.pickScheme + let valid = call_626422.validator(path, query, header, formData, body) + let scheme = call_626422.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626420.url(scheme.get, call_626420.host, call_626420.base, - call_626420.route, valid.getOrDefault("path"), + let url = call_626422.url(scheme.get, call_626422.host, call_626422.base, + call_626422.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626420, url, valid) + result = atozHook(call_626422, url, valid) -proc call*(call_626421: Call_GetResetImageAttribute_626405; ImageId: string; +proc call*(call_626423: Call_GetResetImageAttribute_626407; ImageId: string; DryRun: bool = false; Action: string = "ResetImageAttribute"; Version: string = "2016-11-15"; Attribute: string = "launchPermission"): Recallable = ## getResetImageAttribute @@ -127452,22 +127479,22 @@ proc call*(call_626421: Call_GetResetImageAttribute_626405; ImageId: string; ## Version: string (required) ## Attribute: string (required) ## : The attribute to reset (currently you can only reset the launch permission attribute). - var query_626422 = newJObject() - add(query_626422, "ImageId", newJString(ImageId)) - add(query_626422, "DryRun", newJBool(DryRun)) - add(query_626422, "Action", newJString(Action)) - add(query_626422, "Version", newJString(Version)) - add(query_626422, "Attribute", newJString(Attribute)) - result = call_626421.call(nil, query_626422, nil, nil, nil) - -var getResetImageAttribute* = Call_GetResetImageAttribute_626405( + var query_626424 = newJObject() + add(query_626424, "ImageId", newJString(ImageId)) + add(query_626424, "DryRun", newJBool(DryRun)) + add(query_626424, "Action", newJString(Action)) + add(query_626424, "Version", newJString(Version)) + add(query_626424, "Attribute", newJString(Attribute)) + result = call_626423.call(nil, query_626424, nil, nil, nil) + +var getResetImageAttribute* = Call_GetResetImageAttribute_626407( name: "getResetImageAttribute", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ResetImageAttribute", - validator: validate_GetResetImageAttribute_626406, base: "/", - url: url_GetResetImageAttribute_626407, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetResetImageAttribute_626408, base: "/", + url: url_GetResetImageAttribute_626409, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostResetInstanceAttribute_626460 = ref object of OpenApiRestCall_610658 -proc url_PostResetInstanceAttribute_626462(protocol: Scheme; host: string; + Call_PostResetInstanceAttribute_626462 = ref object of OpenApiRestCall_610658 +proc url_PostResetInstanceAttribute_626464(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -127477,7 +127504,7 @@ proc url_PostResetInstanceAttribute_626462(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostResetInstanceAttribute_626461(path: JsonNode; query: JsonNode; +proc validate_PostResetInstanceAttribute_626463(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Resets an attribute of an instance to its default value. To reset the kernel or ramdisk, the instance must be in a stopped state. To reset the sourceDestCheck, the instance can be either running or stopped.

    The sourceDestCheck attribute controls whether source/destination checking is enabled. The default value is true, which means checking is enabled. This value must be false for a NAT instance to perform NAT. For more information, see NAT Instances in the Amazon Virtual Private Cloud User Guide.

    ## @@ -127489,16 +127516,16 @@ proc validate_PostResetInstanceAttribute_626461(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_626463 = query.getOrDefault("Action") - valid_626463 = validateParameter(valid_626463, JString, required = true, + var valid_626465 = query.getOrDefault("Action") + valid_626465 = validateParameter(valid_626465, JString, required = true, default = newJString("ResetInstanceAttribute")) - if valid_626463 != nil: - section.add "Action", valid_626463 - var valid_626464 = query.getOrDefault("Version") - valid_626464 = validateParameter(valid_626464, JString, required = true, + if valid_626465 != nil: + section.add "Action", valid_626465 + var valid_626466 = query.getOrDefault("Version") + valid_626466 = validateParameter(valid_626466, JString, required = true, default = newJString("2016-11-15")) - if valid_626464 != nil: - section.add "Version", valid_626464 + if valid_626466 != nil: + section.add "Version", valid_626466 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -127509,41 +127536,41 @@ proc validate_PostResetInstanceAttribute_626461(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626465 = header.getOrDefault("X-Amz-Signature") - valid_626465 = validateParameter(valid_626465, JString, required = false, - default = nil) - if valid_626465 != nil: - section.add "X-Amz-Signature", valid_626465 - var valid_626466 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626466 = validateParameter(valid_626466, JString, required = false, - default = nil) - if valid_626466 != nil: - section.add "X-Amz-Content-Sha256", valid_626466 - var valid_626467 = header.getOrDefault("X-Amz-Date") + var valid_626467 = header.getOrDefault("X-Amz-Signature") valid_626467 = validateParameter(valid_626467, JString, required = false, default = nil) if valid_626467 != nil: - section.add "X-Amz-Date", valid_626467 - var valid_626468 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626467 + var valid_626468 = header.getOrDefault("X-Amz-Content-Sha256") valid_626468 = validateParameter(valid_626468, JString, required = false, default = nil) if valid_626468 != nil: - section.add "X-Amz-Credential", valid_626468 - var valid_626469 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626468 + var valid_626469 = header.getOrDefault("X-Amz-Date") valid_626469 = validateParameter(valid_626469, JString, required = false, default = nil) if valid_626469 != nil: - section.add "X-Amz-Security-Token", valid_626469 - var valid_626470 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626469 + var valid_626470 = header.getOrDefault("X-Amz-Credential") valid_626470 = validateParameter(valid_626470, JString, required = false, default = nil) if valid_626470 != nil: - section.add "X-Amz-Algorithm", valid_626470 - var valid_626471 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626470 + var valid_626471 = header.getOrDefault("X-Amz-Security-Token") valid_626471 = validateParameter(valid_626471, JString, required = false, default = nil) if valid_626471 != nil: - section.add "X-Amz-SignedHeaders", valid_626471 + section.add "X-Amz-Security-Token", valid_626471 + var valid_626472 = header.getOrDefault("X-Amz-Algorithm") + valid_626472 = validateParameter(valid_626472, JString, required = false, + default = nil) + if valid_626472 != nil: + section.add "X-Amz-Algorithm", valid_626472 + var valid_626473 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626473 = validateParameter(valid_626473, JString, required = false, + default = nil) + if valid_626473 != nil: + section.add "X-Amz-SignedHeaders", valid_626473 result.add "header", section ## parameters in `formData` object: ## Attribute: JString (required) @@ -127553,38 +127580,38 @@ proc validate_PostResetInstanceAttribute_626461(path: JsonNode; query: JsonNode; ## InstanceId: JString (required) ## : The ID of the instance. section = newJObject() - var valid_626472 = formData.getOrDefault("Attribute") - valid_626472 = validateParameter(valid_626472, JString, required = true, - default = newJString("instanceType")) - if valid_626472 != nil: - section.add "Attribute", valid_626472 - var valid_626473 = formData.getOrDefault("DryRun") - valid_626473 = validateParameter(valid_626473, JBool, required = false, default = nil) - if valid_626473 != nil: - section.add "DryRun", valid_626473 - var valid_626474 = formData.getOrDefault("InstanceId") + var valid_626474 = formData.getOrDefault("Attribute") valid_626474 = validateParameter(valid_626474, JString, required = true, - default = nil) + default = newJString("instanceType")) if valid_626474 != nil: - section.add "InstanceId", valid_626474 + section.add "Attribute", valid_626474 + var valid_626475 = formData.getOrDefault("DryRun") + valid_626475 = validateParameter(valid_626475, JBool, required = false, default = nil) + if valid_626475 != nil: + section.add "DryRun", valid_626475 + var valid_626476 = formData.getOrDefault("InstanceId") + valid_626476 = validateParameter(valid_626476, JString, required = true, + default = nil) + if valid_626476 != nil: + section.add "InstanceId", valid_626476 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626475: Call_PostResetInstanceAttribute_626460; path: JsonNode; +proc call*(call_626477: Call_PostResetInstanceAttribute_626462; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Resets an attribute of an instance to its default value. To reset the kernel or ramdisk, the instance must be in a stopped state. To reset the sourceDestCheck, the instance can be either running or stopped.

    The sourceDestCheck attribute controls whether source/destination checking is enabled. The default value is true, which means checking is enabled. This value must be false for a NAT instance to perform NAT. For more information, see NAT Instances in the Amazon Virtual Private Cloud User Guide.

    ## - let valid = call_626475.validator(path, query, header, formData, body) - let scheme = call_626475.pickScheme + let valid = call_626477.validator(path, query, header, formData, body) + let scheme = call_626477.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626475.url(scheme.get, call_626475.host, call_626475.base, - call_626475.route, valid.getOrDefault("path"), + let url = call_626477.url(scheme.get, call_626477.host, call_626477.base, + call_626477.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626475, url, valid) + result = atozHook(call_626477, url, valid) -proc call*(call_626476: Call_PostResetInstanceAttribute_626460; InstanceId: string; +proc call*(call_626478: Call_PostResetInstanceAttribute_626462; InstanceId: string; Attribute: string = "instanceType"; DryRun: bool = false; Action: string = "ResetInstanceAttribute"; Version: string = "2016-11-15"): Recallable = ## postResetInstanceAttribute @@ -127597,24 +127624,24 @@ proc call*(call_626476: Call_PostResetInstanceAttribute_626460; InstanceId: stri ## : The ID of the instance. ## Action: string (required) ## Version: string (required) - var query_626477 = newJObject() - var formData_626478 = newJObject() - add(formData_626478, "Attribute", newJString(Attribute)) - add(formData_626478, "DryRun", newJBool(DryRun)) - add(formData_626478, "InstanceId", newJString(InstanceId)) - add(query_626477, "Action", newJString(Action)) - add(query_626477, "Version", newJString(Version)) - result = call_626476.call(nil, query_626477, nil, formData_626478, nil) + var query_626479 = newJObject() + var formData_626480 = newJObject() + add(formData_626480, "Attribute", newJString(Attribute)) + add(formData_626480, "DryRun", newJBool(DryRun)) + add(formData_626480, "InstanceId", newJString(InstanceId)) + add(query_626479, "Action", newJString(Action)) + add(query_626479, "Version", newJString(Version)) + result = call_626478.call(nil, query_626479, nil, formData_626480, nil) -var postResetInstanceAttribute* = Call_PostResetInstanceAttribute_626460( +var postResetInstanceAttribute* = Call_PostResetInstanceAttribute_626462( name: "postResetInstanceAttribute", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ResetInstanceAttribute", - validator: validate_PostResetInstanceAttribute_626461, base: "/", - url: url_PostResetInstanceAttribute_626462, + validator: validate_PostResetInstanceAttribute_626463, base: "/", + url: url_PostResetInstanceAttribute_626464, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetResetInstanceAttribute_626442 = ref object of OpenApiRestCall_610658 -proc url_GetResetInstanceAttribute_626444(protocol: Scheme; host: string; + Call_GetResetInstanceAttribute_626444 = ref object of OpenApiRestCall_610658 +proc url_GetResetInstanceAttribute_626446(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -127624,7 +127651,7 @@ proc url_GetResetInstanceAttribute_626444(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetResetInstanceAttribute_626443(path: JsonNode; query: JsonNode; +proc validate_GetResetInstanceAttribute_626445(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Resets an attribute of an instance to its default value. To reset the kernel or ramdisk, the instance must be in a stopped state. To reset the sourceDestCheck, the instance can be either running or stopped.

    The sourceDestCheck attribute controls whether source/destination checking is enabled. The default value is true, which means checking is enabled. This value must be false for a NAT instance to perform NAT. For more information, see NAT Instances in the Amazon Virtual Private Cloud User Guide.

    ## @@ -127642,32 +127669,32 @@ proc validate_GetResetInstanceAttribute_626443(path: JsonNode; query: JsonNode; ## Attribute: JString (required) ## :

    The attribute to reset.

    You can only reset the following attributes: kernel | ramdisk | sourceDestCheck. To change an instance attribute, use ModifyInstanceAttribute.

    section = newJObject() - var valid_626445 = query.getOrDefault("DryRun") - valid_626445 = validateParameter(valid_626445, JBool, required = false, default = nil) - if valid_626445 != nil: - section.add "DryRun", valid_626445 + var valid_626447 = query.getOrDefault("DryRun") + valid_626447 = validateParameter(valid_626447, JBool, required = false, default = nil) + if valid_626447 != nil: + section.add "DryRun", valid_626447 assert query != nil, "query argument is necessary due to required `InstanceId` field" - var valid_626446 = query.getOrDefault("InstanceId") - valid_626446 = validateParameter(valid_626446, JString, required = true, - default = nil) - if valid_626446 != nil: - section.add "InstanceId", valid_626446 - var valid_626447 = query.getOrDefault("Action") - valid_626447 = validateParameter(valid_626447, JString, required = true, - default = newJString("ResetInstanceAttribute")) - if valid_626447 != nil: - section.add "Action", valid_626447 - var valid_626448 = query.getOrDefault("Version") + var valid_626448 = query.getOrDefault("InstanceId") valid_626448 = validateParameter(valid_626448, JString, required = true, - default = newJString("2016-11-15")) + default = nil) if valid_626448 != nil: - section.add "Version", valid_626448 - var valid_626449 = query.getOrDefault("Attribute") + section.add "InstanceId", valid_626448 + var valid_626449 = query.getOrDefault("Action") valid_626449 = validateParameter(valid_626449, JString, required = true, - default = newJString("instanceType")) + default = newJString("ResetInstanceAttribute")) if valid_626449 != nil: - section.add "Attribute", valid_626449 + section.add "Action", valid_626449 + var valid_626450 = query.getOrDefault("Version") + valid_626450 = validateParameter(valid_626450, JString, required = true, + default = newJString("2016-11-15")) + if valid_626450 != nil: + section.add "Version", valid_626450 + var valid_626451 = query.getOrDefault("Attribute") + valid_626451 = validateParameter(valid_626451, JString, required = true, + default = newJString("instanceType")) + if valid_626451 != nil: + section.add "Attribute", valid_626451 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -127678,61 +127705,61 @@ proc validate_GetResetInstanceAttribute_626443(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626450 = header.getOrDefault("X-Amz-Signature") - valid_626450 = validateParameter(valid_626450, JString, required = false, - default = nil) - if valid_626450 != nil: - section.add "X-Amz-Signature", valid_626450 - var valid_626451 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626451 = validateParameter(valid_626451, JString, required = false, - default = nil) - if valid_626451 != nil: - section.add "X-Amz-Content-Sha256", valid_626451 - var valid_626452 = header.getOrDefault("X-Amz-Date") + var valid_626452 = header.getOrDefault("X-Amz-Signature") valid_626452 = validateParameter(valid_626452, JString, required = false, default = nil) if valid_626452 != nil: - section.add "X-Amz-Date", valid_626452 - var valid_626453 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626452 + var valid_626453 = header.getOrDefault("X-Amz-Content-Sha256") valid_626453 = validateParameter(valid_626453, JString, required = false, default = nil) if valid_626453 != nil: - section.add "X-Amz-Credential", valid_626453 - var valid_626454 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626453 + var valid_626454 = header.getOrDefault("X-Amz-Date") valid_626454 = validateParameter(valid_626454, JString, required = false, default = nil) if valid_626454 != nil: - section.add "X-Amz-Security-Token", valid_626454 - var valid_626455 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626454 + var valid_626455 = header.getOrDefault("X-Amz-Credential") valid_626455 = validateParameter(valid_626455, JString, required = false, default = nil) if valid_626455 != nil: - section.add "X-Amz-Algorithm", valid_626455 - var valid_626456 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626455 + var valid_626456 = header.getOrDefault("X-Amz-Security-Token") valid_626456 = validateParameter(valid_626456, JString, required = false, default = nil) if valid_626456 != nil: - section.add "X-Amz-SignedHeaders", valid_626456 + section.add "X-Amz-Security-Token", valid_626456 + var valid_626457 = header.getOrDefault("X-Amz-Algorithm") + valid_626457 = validateParameter(valid_626457, JString, required = false, + default = nil) + if valid_626457 != nil: + section.add "X-Amz-Algorithm", valid_626457 + var valid_626458 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626458 = validateParameter(valid_626458, JString, required = false, + default = nil) + if valid_626458 != nil: + section.add "X-Amz-SignedHeaders", valid_626458 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626457: Call_GetResetInstanceAttribute_626442; path: JsonNode; +proc call*(call_626459: Call_GetResetInstanceAttribute_626444; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Resets an attribute of an instance to its default value. To reset the kernel or ramdisk, the instance must be in a stopped state. To reset the sourceDestCheck, the instance can be either running or stopped.

    The sourceDestCheck attribute controls whether source/destination checking is enabled. The default value is true, which means checking is enabled. This value must be false for a NAT instance to perform NAT. For more information, see NAT Instances in the Amazon Virtual Private Cloud User Guide.

    ## - let valid = call_626457.validator(path, query, header, formData, body) - let scheme = call_626457.pickScheme + let valid = call_626459.validator(path, query, header, formData, body) + let scheme = call_626459.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626457.url(scheme.get, call_626457.host, call_626457.base, - call_626457.route, valid.getOrDefault("path"), + let url = call_626459.url(scheme.get, call_626459.host, call_626459.base, + call_626459.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626457, url, valid) + result = atozHook(call_626459, url, valid) -proc call*(call_626458: Call_GetResetInstanceAttribute_626442; InstanceId: string; +proc call*(call_626460: Call_GetResetInstanceAttribute_626444; InstanceId: string; DryRun: bool = false; Action: string = "ResetInstanceAttribute"; Version: string = "2016-11-15"; Attribute: string = "instanceType"): Recallable = ## getResetInstanceAttribute @@ -127745,23 +127772,23 @@ proc call*(call_626458: Call_GetResetInstanceAttribute_626442; InstanceId: strin ## Version: string (required) ## Attribute: string (required) ## :

    The attribute to reset.

    You can only reset the following attributes: kernel | ramdisk | sourceDestCheck. To change an instance attribute, use ModifyInstanceAttribute.

    - var query_626459 = newJObject() - add(query_626459, "DryRun", newJBool(DryRun)) - add(query_626459, "InstanceId", newJString(InstanceId)) - add(query_626459, "Action", newJString(Action)) - add(query_626459, "Version", newJString(Version)) - add(query_626459, "Attribute", newJString(Attribute)) - result = call_626458.call(nil, query_626459, nil, nil, nil) - -var getResetInstanceAttribute* = Call_GetResetInstanceAttribute_626442( + var query_626461 = newJObject() + add(query_626461, "DryRun", newJBool(DryRun)) + add(query_626461, "InstanceId", newJString(InstanceId)) + add(query_626461, "Action", newJString(Action)) + add(query_626461, "Version", newJString(Version)) + add(query_626461, "Attribute", newJString(Attribute)) + result = call_626460.call(nil, query_626461, nil, nil, nil) + +var getResetInstanceAttribute* = Call_GetResetInstanceAttribute_626444( name: "getResetInstanceAttribute", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ResetInstanceAttribute", - validator: validate_GetResetInstanceAttribute_626443, base: "/", - url: url_GetResetInstanceAttribute_626444, + validator: validate_GetResetInstanceAttribute_626445, base: "/", + url: url_GetResetInstanceAttribute_626446, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostResetNetworkInterfaceAttribute_626497 = ref object of OpenApiRestCall_610658 -proc url_PostResetNetworkInterfaceAttribute_626499(protocol: Scheme; host: string; + Call_PostResetNetworkInterfaceAttribute_626499 = ref object of OpenApiRestCall_610658 +proc url_PostResetNetworkInterfaceAttribute_626501(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -127771,7 +127798,7 @@ proc url_PostResetNetworkInterfaceAttribute_626499(protocol: Scheme; host: strin else: result.path = base & route -proc validate_PostResetNetworkInterfaceAttribute_626498(path: JsonNode; +proc validate_PostResetNetworkInterfaceAttribute_626500(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Resets a network interface attribute. You can specify only one attribute at a time. ## @@ -127783,16 +127810,16 @@ proc validate_PostResetNetworkInterfaceAttribute_626498(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_626500 = query.getOrDefault("Action") - valid_626500 = validateParameter(valid_626500, JString, required = true, default = newJString( + var valid_626502 = query.getOrDefault("Action") + valid_626502 = validateParameter(valid_626502, JString, required = true, default = newJString( "ResetNetworkInterfaceAttribute")) - if valid_626500 != nil: - section.add "Action", valid_626500 - var valid_626501 = query.getOrDefault("Version") - valid_626501 = validateParameter(valid_626501, JString, required = true, + if valid_626502 != nil: + section.add "Action", valid_626502 + var valid_626503 = query.getOrDefault("Version") + valid_626503 = validateParameter(valid_626503, JString, required = true, default = newJString("2016-11-15")) - if valid_626501 != nil: - section.add "Version", valid_626501 + if valid_626503 != nil: + section.add "Version", valid_626503 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -127803,41 +127830,41 @@ proc validate_PostResetNetworkInterfaceAttribute_626498(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626502 = header.getOrDefault("X-Amz-Signature") - valid_626502 = validateParameter(valid_626502, JString, required = false, - default = nil) - if valid_626502 != nil: - section.add "X-Amz-Signature", valid_626502 - var valid_626503 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626503 = validateParameter(valid_626503, JString, required = false, - default = nil) - if valid_626503 != nil: - section.add "X-Amz-Content-Sha256", valid_626503 - var valid_626504 = header.getOrDefault("X-Amz-Date") + var valid_626504 = header.getOrDefault("X-Amz-Signature") valid_626504 = validateParameter(valid_626504, JString, required = false, default = nil) if valid_626504 != nil: - section.add "X-Amz-Date", valid_626504 - var valid_626505 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626504 + var valid_626505 = header.getOrDefault("X-Amz-Content-Sha256") valid_626505 = validateParameter(valid_626505, JString, required = false, default = nil) if valid_626505 != nil: - section.add "X-Amz-Credential", valid_626505 - var valid_626506 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626505 + var valid_626506 = header.getOrDefault("X-Amz-Date") valid_626506 = validateParameter(valid_626506, JString, required = false, default = nil) if valid_626506 != nil: - section.add "X-Amz-Security-Token", valid_626506 - var valid_626507 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626506 + var valid_626507 = header.getOrDefault("X-Amz-Credential") valid_626507 = validateParameter(valid_626507, JString, required = false, default = nil) if valid_626507 != nil: - section.add "X-Amz-Algorithm", valid_626507 - var valid_626508 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626507 + var valid_626508 = header.getOrDefault("X-Amz-Security-Token") valid_626508 = validateParameter(valid_626508, JString, required = false, default = nil) if valid_626508 != nil: - section.add "X-Amz-SignedHeaders", valid_626508 + section.add "X-Amz-Security-Token", valid_626508 + var valid_626509 = header.getOrDefault("X-Amz-Algorithm") + valid_626509 = validateParameter(valid_626509, JString, required = false, + default = nil) + if valid_626509 != nil: + section.add "X-Amz-Algorithm", valid_626509 + var valid_626510 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626510 = validateParameter(valid_626510, JString, required = false, + default = nil) + if valid_626510 != nil: + section.add "X-Amz-SignedHeaders", valid_626510 result.add "header", section ## parameters in `formData` object: ## NetworkInterfaceId: JString (required) @@ -127848,39 +127875,39 @@ proc validate_PostResetNetworkInterfaceAttribute_626498(path: JsonNode; ## : 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. section = newJObject() assert formData != nil, "formData argument is necessary due to required `NetworkInterfaceId` field" - var valid_626509 = formData.getOrDefault("NetworkInterfaceId") - valid_626509 = validateParameter(valid_626509, JString, required = true, - default = nil) - if valid_626509 != nil: - section.add "NetworkInterfaceId", valid_626509 - var valid_626510 = formData.getOrDefault("SourceDestCheck") - valid_626510 = validateParameter(valid_626510, JString, required = false, + var valid_626511 = formData.getOrDefault("NetworkInterfaceId") + valid_626511 = validateParameter(valid_626511, JString, required = true, default = nil) - if valid_626510 != nil: - section.add "SourceDestCheck", valid_626510 - var valid_626511 = formData.getOrDefault("DryRun") - valid_626511 = validateParameter(valid_626511, JBool, required = false, default = nil) if valid_626511 != nil: - section.add "DryRun", valid_626511 + section.add "NetworkInterfaceId", valid_626511 + var valid_626512 = formData.getOrDefault("SourceDestCheck") + valid_626512 = validateParameter(valid_626512, JString, required = false, + default = nil) + if valid_626512 != nil: + section.add "SourceDestCheck", valid_626512 + var valid_626513 = formData.getOrDefault("DryRun") + valid_626513 = validateParameter(valid_626513, JBool, required = false, default = nil) + if valid_626513 != nil: + section.add "DryRun", valid_626513 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626512: Call_PostResetNetworkInterfaceAttribute_626497; +proc call*(call_626514: Call_PostResetNetworkInterfaceAttribute_626499; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Resets a network interface attribute. You can specify only one attribute at a time. ## - let valid = call_626512.validator(path, query, header, formData, body) - let scheme = call_626512.pickScheme + let valid = call_626514.validator(path, query, header, formData, body) + let scheme = call_626514.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626512.url(scheme.get, call_626512.host, call_626512.base, - call_626512.route, valid.getOrDefault("path"), + let url = call_626514.url(scheme.get, call_626514.host, call_626514.base, + call_626514.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626512, url, valid) + result = atozHook(call_626514, url, valid) -proc call*(call_626513: Call_PostResetNetworkInterfaceAttribute_626497; +proc call*(call_626515: Call_PostResetNetworkInterfaceAttribute_626499; NetworkInterfaceId: string; SourceDestCheck: string = ""; DryRun: bool = false; Action: string = "ResetNetworkInterfaceAttribute"; Version: string = "2016-11-15"): Recallable = @@ -127894,24 +127921,24 @@ proc call*(call_626513: Call_PostResetNetworkInterfaceAttribute_626497; ## : 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. ## Action: string (required) ## Version: string (required) - var query_626514 = newJObject() - var formData_626515 = newJObject() - add(formData_626515, "NetworkInterfaceId", newJString(NetworkInterfaceId)) - add(formData_626515, "SourceDestCheck", newJString(SourceDestCheck)) - add(formData_626515, "DryRun", newJBool(DryRun)) - add(query_626514, "Action", newJString(Action)) - add(query_626514, "Version", newJString(Version)) - result = call_626513.call(nil, query_626514, nil, formData_626515, nil) + var query_626516 = newJObject() + var formData_626517 = newJObject() + add(formData_626517, "NetworkInterfaceId", newJString(NetworkInterfaceId)) + add(formData_626517, "SourceDestCheck", newJString(SourceDestCheck)) + add(formData_626517, "DryRun", newJBool(DryRun)) + add(query_626516, "Action", newJString(Action)) + add(query_626516, "Version", newJString(Version)) + result = call_626515.call(nil, query_626516, nil, formData_626517, nil) -var postResetNetworkInterfaceAttribute* = Call_PostResetNetworkInterfaceAttribute_626497( +var postResetNetworkInterfaceAttribute* = Call_PostResetNetworkInterfaceAttribute_626499( name: "postResetNetworkInterfaceAttribute", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ResetNetworkInterfaceAttribute", - validator: validate_PostResetNetworkInterfaceAttribute_626498, base: "/", - url: url_PostResetNetworkInterfaceAttribute_626499, + validator: validate_PostResetNetworkInterfaceAttribute_626500, base: "/", + url: url_PostResetNetworkInterfaceAttribute_626501, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetResetNetworkInterfaceAttribute_626479 = ref object of OpenApiRestCall_610658 -proc url_GetResetNetworkInterfaceAttribute_626481(protocol: Scheme; host: string; + Call_GetResetNetworkInterfaceAttribute_626481 = ref object of OpenApiRestCall_610658 +proc url_GetResetNetworkInterfaceAttribute_626483(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -127921,7 +127948,7 @@ proc url_GetResetNetworkInterfaceAttribute_626481(protocol: Scheme; host: string else: result.path = base & route -proc validate_GetResetNetworkInterfaceAttribute_626480(path: JsonNode; +proc validate_GetResetNetworkInterfaceAttribute_626482(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Resets a network interface attribute. You can specify only one attribute at a time. ## @@ -127940,30 +127967,30 @@ proc validate_GetResetNetworkInterfaceAttribute_626480(path: JsonNode; ## Version: JString (required) section = newJObject() assert query != nil, "query argument is necessary due to required `NetworkInterfaceId` field" - var valid_626482 = query.getOrDefault("NetworkInterfaceId") - valid_626482 = validateParameter(valid_626482, JString, required = true, - default = nil) - if valid_626482 != nil: - section.add "NetworkInterfaceId", valid_626482 - var valid_626483 = query.getOrDefault("DryRun") - valid_626483 = validateParameter(valid_626483, JBool, required = false, default = nil) - if valid_626483 != nil: - section.add "DryRun", valid_626483 - var valid_626484 = query.getOrDefault("SourceDestCheck") - valid_626484 = validateParameter(valid_626484, JString, required = false, + var valid_626484 = query.getOrDefault("NetworkInterfaceId") + valid_626484 = validateParameter(valid_626484, JString, required = true, default = nil) if valid_626484 != nil: - section.add "SourceDestCheck", valid_626484 - var valid_626485 = query.getOrDefault("Action") - valid_626485 = validateParameter(valid_626485, JString, required = true, default = newJString( - "ResetNetworkInterfaceAttribute")) + section.add "NetworkInterfaceId", valid_626484 + var valid_626485 = query.getOrDefault("DryRun") + valid_626485 = validateParameter(valid_626485, JBool, required = false, default = nil) if valid_626485 != nil: - section.add "Action", valid_626485 - var valid_626486 = query.getOrDefault("Version") - valid_626486 = validateParameter(valid_626486, JString, required = true, - default = newJString("2016-11-15")) + section.add "DryRun", valid_626485 + var valid_626486 = query.getOrDefault("SourceDestCheck") + valid_626486 = validateParameter(valid_626486, JString, required = false, + default = nil) if valid_626486 != nil: - section.add "Version", valid_626486 + section.add "SourceDestCheck", valid_626486 + var valid_626487 = query.getOrDefault("Action") + valid_626487 = validateParameter(valid_626487, JString, required = true, default = newJString( + "ResetNetworkInterfaceAttribute")) + if valid_626487 != nil: + section.add "Action", valid_626487 + var valid_626488 = query.getOrDefault("Version") + valid_626488 = validateParameter(valid_626488, JString, required = true, + default = newJString("2016-11-15")) + if valid_626488 != nil: + section.add "Version", valid_626488 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -127974,62 +128001,62 @@ proc validate_GetResetNetworkInterfaceAttribute_626480(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626487 = header.getOrDefault("X-Amz-Signature") - valid_626487 = validateParameter(valid_626487, JString, required = false, - default = nil) - if valid_626487 != nil: - section.add "X-Amz-Signature", valid_626487 - var valid_626488 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626488 = validateParameter(valid_626488, JString, required = false, - default = nil) - if valid_626488 != nil: - section.add "X-Amz-Content-Sha256", valid_626488 - var valid_626489 = header.getOrDefault("X-Amz-Date") + var valid_626489 = header.getOrDefault("X-Amz-Signature") valid_626489 = validateParameter(valid_626489, JString, required = false, default = nil) if valid_626489 != nil: - section.add "X-Amz-Date", valid_626489 - var valid_626490 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626489 + var valid_626490 = header.getOrDefault("X-Amz-Content-Sha256") valid_626490 = validateParameter(valid_626490, JString, required = false, default = nil) if valid_626490 != nil: - section.add "X-Amz-Credential", valid_626490 - var valid_626491 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626490 + var valid_626491 = header.getOrDefault("X-Amz-Date") valid_626491 = validateParameter(valid_626491, JString, required = false, default = nil) if valid_626491 != nil: - section.add "X-Amz-Security-Token", valid_626491 - var valid_626492 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626491 + var valid_626492 = header.getOrDefault("X-Amz-Credential") valid_626492 = validateParameter(valid_626492, JString, required = false, default = nil) if valid_626492 != nil: - section.add "X-Amz-Algorithm", valid_626492 - var valid_626493 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626492 + var valid_626493 = header.getOrDefault("X-Amz-Security-Token") valid_626493 = validateParameter(valid_626493, JString, required = false, default = nil) if valid_626493 != nil: - section.add "X-Amz-SignedHeaders", valid_626493 + section.add "X-Amz-Security-Token", valid_626493 + var valid_626494 = header.getOrDefault("X-Amz-Algorithm") + valid_626494 = validateParameter(valid_626494, JString, required = false, + default = nil) + if valid_626494 != nil: + section.add "X-Amz-Algorithm", valid_626494 + var valid_626495 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626495 = validateParameter(valid_626495, JString, required = false, + default = nil) + if valid_626495 != nil: + section.add "X-Amz-SignedHeaders", valid_626495 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626494: Call_GetResetNetworkInterfaceAttribute_626479; +proc call*(call_626496: Call_GetResetNetworkInterfaceAttribute_626481; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Resets a network interface attribute. You can specify only one attribute at a time. ## - let valid = call_626494.validator(path, query, header, formData, body) - let scheme = call_626494.pickScheme + let valid = call_626496.validator(path, query, header, formData, body) + let scheme = call_626496.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626494.url(scheme.get, call_626494.host, call_626494.base, - call_626494.route, valid.getOrDefault("path"), + let url = call_626496.url(scheme.get, call_626496.host, call_626496.base, + call_626496.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626494, url, valid) + result = atozHook(call_626496, url, valid) -proc call*(call_626495: Call_GetResetNetworkInterfaceAttribute_626479; +proc call*(call_626497: Call_GetResetNetworkInterfaceAttribute_626481; NetworkInterfaceId: string; DryRun: bool = false; SourceDestCheck: string = ""; Action: string = "ResetNetworkInterfaceAttribute"; @@ -128044,23 +128071,23 @@ proc call*(call_626495: Call_GetResetNetworkInterfaceAttribute_626479; ## : The source/destination checking attribute. Resets the value to true. ## Action: string (required) ## Version: string (required) - var query_626496 = newJObject() - add(query_626496, "NetworkInterfaceId", newJString(NetworkInterfaceId)) - add(query_626496, "DryRun", newJBool(DryRun)) - add(query_626496, "SourceDestCheck", newJString(SourceDestCheck)) - add(query_626496, "Action", newJString(Action)) - add(query_626496, "Version", newJString(Version)) - result = call_626495.call(nil, query_626496, nil, nil, nil) + var query_626498 = newJObject() + add(query_626498, "NetworkInterfaceId", newJString(NetworkInterfaceId)) + add(query_626498, "DryRun", newJBool(DryRun)) + add(query_626498, "SourceDestCheck", newJString(SourceDestCheck)) + add(query_626498, "Action", newJString(Action)) + add(query_626498, "Version", newJString(Version)) + result = call_626497.call(nil, query_626498, nil, nil, nil) -var getResetNetworkInterfaceAttribute* = Call_GetResetNetworkInterfaceAttribute_626479( +var getResetNetworkInterfaceAttribute* = Call_GetResetNetworkInterfaceAttribute_626481( name: "getResetNetworkInterfaceAttribute", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ResetNetworkInterfaceAttribute", - validator: validate_GetResetNetworkInterfaceAttribute_626480, base: "/", - url: url_GetResetNetworkInterfaceAttribute_626481, + validator: validate_GetResetNetworkInterfaceAttribute_626482, base: "/", + url: url_GetResetNetworkInterfaceAttribute_626483, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostResetSnapshotAttribute_626534 = ref object of OpenApiRestCall_610658 -proc url_PostResetSnapshotAttribute_626536(protocol: Scheme; host: string; + Call_PostResetSnapshotAttribute_626536 = ref object of OpenApiRestCall_610658 +proc url_PostResetSnapshotAttribute_626538(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -128070,7 +128097,7 @@ proc url_PostResetSnapshotAttribute_626536(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostResetSnapshotAttribute_626535(path: JsonNode; query: JsonNode; +proc validate_PostResetSnapshotAttribute_626537(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Resets permission settings for the specified snapshot.

    For more information about modifying snapshot permissions, see Sharing Snapshots in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -128082,16 +128109,16 @@ proc validate_PostResetSnapshotAttribute_626535(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_626537 = query.getOrDefault("Action") - valid_626537 = validateParameter(valid_626537, JString, required = true, + var valid_626539 = query.getOrDefault("Action") + valid_626539 = validateParameter(valid_626539, JString, required = true, default = newJString("ResetSnapshotAttribute")) - if valid_626537 != nil: - section.add "Action", valid_626537 - var valid_626538 = query.getOrDefault("Version") - valid_626538 = validateParameter(valid_626538, JString, required = true, + if valid_626539 != nil: + section.add "Action", valid_626539 + var valid_626540 = query.getOrDefault("Version") + valid_626540 = validateParameter(valid_626540, JString, required = true, default = newJString("2016-11-15")) - if valid_626538 != nil: - section.add "Version", valid_626538 + if valid_626540 != nil: + section.add "Version", valid_626540 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -128102,41 +128129,41 @@ proc validate_PostResetSnapshotAttribute_626535(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626539 = header.getOrDefault("X-Amz-Signature") - valid_626539 = validateParameter(valid_626539, JString, required = false, - default = nil) - if valid_626539 != nil: - section.add "X-Amz-Signature", valid_626539 - var valid_626540 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626540 = validateParameter(valid_626540, JString, required = false, - default = nil) - if valid_626540 != nil: - section.add "X-Amz-Content-Sha256", valid_626540 - var valid_626541 = header.getOrDefault("X-Amz-Date") + var valid_626541 = header.getOrDefault("X-Amz-Signature") valid_626541 = validateParameter(valid_626541, JString, required = false, default = nil) if valid_626541 != nil: - section.add "X-Amz-Date", valid_626541 - var valid_626542 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626541 + var valid_626542 = header.getOrDefault("X-Amz-Content-Sha256") valid_626542 = validateParameter(valid_626542, JString, required = false, default = nil) if valid_626542 != nil: - section.add "X-Amz-Credential", valid_626542 - var valid_626543 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626542 + var valid_626543 = header.getOrDefault("X-Amz-Date") valid_626543 = validateParameter(valid_626543, JString, required = false, default = nil) if valid_626543 != nil: - section.add "X-Amz-Security-Token", valid_626543 - var valid_626544 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626543 + var valid_626544 = header.getOrDefault("X-Amz-Credential") valid_626544 = validateParameter(valid_626544, JString, required = false, default = nil) if valid_626544 != nil: - section.add "X-Amz-Algorithm", valid_626544 - var valid_626545 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626544 + var valid_626545 = header.getOrDefault("X-Amz-Security-Token") valid_626545 = validateParameter(valid_626545, JString, required = false, default = nil) if valid_626545 != nil: - section.add "X-Amz-SignedHeaders", valid_626545 + section.add "X-Amz-Security-Token", valid_626545 + var valid_626546 = header.getOrDefault("X-Amz-Algorithm") + valid_626546 = validateParameter(valid_626546, JString, required = false, + default = nil) + if valid_626546 != nil: + section.add "X-Amz-Algorithm", valid_626546 + var valid_626547 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626547 = validateParameter(valid_626547, JString, required = false, + default = nil) + if valid_626547 != nil: + section.add "X-Amz-SignedHeaders", valid_626547 result.add "header", section ## parameters in `formData` object: ## Attribute: JString (required) @@ -128146,38 +128173,38 @@ proc validate_PostResetSnapshotAttribute_626535(path: JsonNode; query: JsonNode; ## DryRun: JBool ## : 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. section = newJObject() - var valid_626546 = formData.getOrDefault("Attribute") - valid_626546 = validateParameter(valid_626546, JString, required = true, + var valid_626548 = formData.getOrDefault("Attribute") + valid_626548 = validateParameter(valid_626548, JString, required = true, default = newJString("productCodes")) - if valid_626546 != nil: - section.add "Attribute", valid_626546 - var valid_626547 = formData.getOrDefault("SnapshotId") - valid_626547 = validateParameter(valid_626547, JString, required = true, - default = nil) - if valid_626547 != nil: - section.add "SnapshotId", valid_626547 - var valid_626548 = formData.getOrDefault("DryRun") - valid_626548 = validateParameter(valid_626548, JBool, required = false, default = nil) if valid_626548 != nil: - section.add "DryRun", valid_626548 + section.add "Attribute", valid_626548 + var valid_626549 = formData.getOrDefault("SnapshotId") + valid_626549 = validateParameter(valid_626549, JString, required = true, + default = nil) + if valid_626549 != nil: + section.add "SnapshotId", valid_626549 + var valid_626550 = formData.getOrDefault("DryRun") + valid_626550 = validateParameter(valid_626550, JBool, required = false, default = nil) + if valid_626550 != nil: + section.add "DryRun", valid_626550 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626549: Call_PostResetSnapshotAttribute_626534; path: JsonNode; +proc call*(call_626551: Call_PostResetSnapshotAttribute_626536; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Resets permission settings for the specified snapshot.

    For more information about modifying snapshot permissions, see Sharing Snapshots in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_626549.validator(path, query, header, formData, body) - let scheme = call_626549.pickScheme + let valid = call_626551.validator(path, query, header, formData, body) + let scheme = call_626551.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626549.url(scheme.get, call_626549.host, call_626549.base, - call_626549.route, valid.getOrDefault("path"), + let url = call_626551.url(scheme.get, call_626551.host, call_626551.base, + call_626551.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626549, url, valid) + result = atozHook(call_626551, url, valid) -proc call*(call_626550: Call_PostResetSnapshotAttribute_626534; SnapshotId: string; +proc call*(call_626552: Call_PostResetSnapshotAttribute_626536; SnapshotId: string; Attribute: string = "productCodes"; DryRun: bool = false; Action: string = "ResetSnapshotAttribute"; Version: string = "2016-11-15"): Recallable = ## postResetSnapshotAttribute @@ -128190,24 +128217,24 @@ proc call*(call_626550: Call_PostResetSnapshotAttribute_626534; SnapshotId: stri ## : 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. ## Action: string (required) ## Version: string (required) - var query_626551 = newJObject() - var formData_626552 = newJObject() - add(formData_626552, "Attribute", newJString(Attribute)) - add(formData_626552, "SnapshotId", newJString(SnapshotId)) - add(formData_626552, "DryRun", newJBool(DryRun)) - add(query_626551, "Action", newJString(Action)) - add(query_626551, "Version", newJString(Version)) - result = call_626550.call(nil, query_626551, nil, formData_626552, nil) + var query_626553 = newJObject() + var formData_626554 = newJObject() + add(formData_626554, "Attribute", newJString(Attribute)) + add(formData_626554, "SnapshotId", newJString(SnapshotId)) + add(formData_626554, "DryRun", newJBool(DryRun)) + add(query_626553, "Action", newJString(Action)) + add(query_626553, "Version", newJString(Version)) + result = call_626552.call(nil, query_626553, nil, formData_626554, nil) -var postResetSnapshotAttribute* = Call_PostResetSnapshotAttribute_626534( +var postResetSnapshotAttribute* = Call_PostResetSnapshotAttribute_626536( name: "postResetSnapshotAttribute", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=ResetSnapshotAttribute", - validator: validate_PostResetSnapshotAttribute_626535, base: "/", - url: url_PostResetSnapshotAttribute_626536, + validator: validate_PostResetSnapshotAttribute_626537, base: "/", + url: url_PostResetSnapshotAttribute_626538, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetResetSnapshotAttribute_626516 = ref object of OpenApiRestCall_610658 -proc url_GetResetSnapshotAttribute_626518(protocol: Scheme; host: string; + Call_GetResetSnapshotAttribute_626518 = ref object of OpenApiRestCall_610658 +proc url_GetResetSnapshotAttribute_626520(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -128217,7 +128244,7 @@ proc url_GetResetSnapshotAttribute_626518(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetResetSnapshotAttribute_626517(path: JsonNode; query: JsonNode; +proc validate_GetResetSnapshotAttribute_626519(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Resets permission settings for the specified snapshot.

    For more information about modifying snapshot permissions, see Sharing Snapshots in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -128235,30 +128262,30 @@ proc validate_GetResetSnapshotAttribute_626517(path: JsonNode; query: JsonNode; ## Attribute: JString (required) ## : The attribute to reset. Currently, only the attribute for permission to create volumes can be reset. section = newJObject() - var valid_626519 = query.getOrDefault("DryRun") - valid_626519 = validateParameter(valid_626519, JBool, required = false, default = nil) - if valid_626519 != nil: - section.add "DryRun", valid_626519 - var valid_626520 = query.getOrDefault("Action") - valid_626520 = validateParameter(valid_626520, JString, required = true, - default = newJString("ResetSnapshotAttribute")) - if valid_626520 != nil: - section.add "Action", valid_626520 - var valid_626521 = query.getOrDefault("Version") - valid_626521 = validateParameter(valid_626521, JString, required = true, - default = newJString("2016-11-15")) + var valid_626521 = query.getOrDefault("DryRun") + valid_626521 = validateParameter(valid_626521, JBool, required = false, default = nil) if valid_626521 != nil: - section.add "Version", valid_626521 - var valid_626522 = query.getOrDefault("SnapshotId") + section.add "DryRun", valid_626521 + var valid_626522 = query.getOrDefault("Action") valid_626522 = validateParameter(valid_626522, JString, required = true, - default = nil) + default = newJString("ResetSnapshotAttribute")) if valid_626522 != nil: - section.add "SnapshotId", valid_626522 - var valid_626523 = query.getOrDefault("Attribute") + section.add "Action", valid_626522 + var valid_626523 = query.getOrDefault("Version") valid_626523 = validateParameter(valid_626523, JString, required = true, - default = newJString("productCodes")) + default = newJString("2016-11-15")) if valid_626523 != nil: - section.add "Attribute", valid_626523 + section.add "Version", valid_626523 + var valid_626524 = query.getOrDefault("SnapshotId") + valid_626524 = validateParameter(valid_626524, JString, required = true, + default = nil) + if valid_626524 != nil: + section.add "SnapshotId", valid_626524 + var valid_626525 = query.getOrDefault("Attribute") + valid_626525 = validateParameter(valid_626525, JString, required = true, + default = newJString("productCodes")) + if valid_626525 != nil: + section.add "Attribute", valid_626525 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -128269,61 +128296,61 @@ proc validate_GetResetSnapshotAttribute_626517(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626524 = header.getOrDefault("X-Amz-Signature") - valid_626524 = validateParameter(valid_626524, JString, required = false, - default = nil) - if valid_626524 != nil: - section.add "X-Amz-Signature", valid_626524 - var valid_626525 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626525 = validateParameter(valid_626525, JString, required = false, - default = nil) - if valid_626525 != nil: - section.add "X-Amz-Content-Sha256", valid_626525 - var valid_626526 = header.getOrDefault("X-Amz-Date") + var valid_626526 = header.getOrDefault("X-Amz-Signature") valid_626526 = validateParameter(valid_626526, JString, required = false, default = nil) if valid_626526 != nil: - section.add "X-Amz-Date", valid_626526 - var valid_626527 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626526 + var valid_626527 = header.getOrDefault("X-Amz-Content-Sha256") valid_626527 = validateParameter(valid_626527, JString, required = false, default = nil) if valid_626527 != nil: - section.add "X-Amz-Credential", valid_626527 - var valid_626528 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626527 + var valid_626528 = header.getOrDefault("X-Amz-Date") valid_626528 = validateParameter(valid_626528, JString, required = false, default = nil) if valid_626528 != nil: - section.add "X-Amz-Security-Token", valid_626528 - var valid_626529 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626528 + var valid_626529 = header.getOrDefault("X-Amz-Credential") valid_626529 = validateParameter(valid_626529, JString, required = false, default = nil) if valid_626529 != nil: - section.add "X-Amz-Algorithm", valid_626529 - var valid_626530 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626529 + var valid_626530 = header.getOrDefault("X-Amz-Security-Token") valid_626530 = validateParameter(valid_626530, JString, required = false, default = nil) if valid_626530 != nil: - section.add "X-Amz-SignedHeaders", valid_626530 + section.add "X-Amz-Security-Token", valid_626530 + var valid_626531 = header.getOrDefault("X-Amz-Algorithm") + valid_626531 = validateParameter(valid_626531, JString, required = false, + default = nil) + if valid_626531 != nil: + section.add "X-Amz-Algorithm", valid_626531 + var valid_626532 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626532 = validateParameter(valid_626532, JString, required = false, + default = nil) + if valid_626532 != nil: + section.add "X-Amz-SignedHeaders", valid_626532 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626531: Call_GetResetSnapshotAttribute_626516; path: JsonNode; +proc call*(call_626533: Call_GetResetSnapshotAttribute_626518; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Resets permission settings for the specified snapshot.

    For more information about modifying snapshot permissions, see Sharing Snapshots in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_626531.validator(path, query, header, formData, body) - let scheme = call_626531.pickScheme + let valid = call_626533.validator(path, query, header, formData, body) + let scheme = call_626533.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626531.url(scheme.get, call_626531.host, call_626531.base, - call_626531.route, valid.getOrDefault("path"), + let url = call_626533.url(scheme.get, call_626533.host, call_626533.base, + call_626533.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626531, url, valid) + result = atozHook(call_626533, url, valid) -proc call*(call_626532: Call_GetResetSnapshotAttribute_626516; SnapshotId: string; +proc call*(call_626534: Call_GetResetSnapshotAttribute_626518; SnapshotId: string; DryRun: bool = false; Action: string = "ResetSnapshotAttribute"; Version: string = "2016-11-15"; Attribute: string = "productCodes"): Recallable = ## getResetSnapshotAttribute @@ -128336,23 +128363,23 @@ proc call*(call_626532: Call_GetResetSnapshotAttribute_626516; SnapshotId: strin ## : The ID of the snapshot. ## Attribute: string (required) ## : The attribute to reset. Currently, only the attribute for permission to create volumes can be reset. - var query_626533 = newJObject() - add(query_626533, "DryRun", newJBool(DryRun)) - add(query_626533, "Action", newJString(Action)) - add(query_626533, "Version", newJString(Version)) - add(query_626533, "SnapshotId", newJString(SnapshotId)) - add(query_626533, "Attribute", newJString(Attribute)) - result = call_626532.call(nil, query_626533, nil, nil, nil) - -var getResetSnapshotAttribute* = Call_GetResetSnapshotAttribute_626516( + var query_626535 = newJObject() + add(query_626535, "DryRun", newJBool(DryRun)) + add(query_626535, "Action", newJString(Action)) + add(query_626535, "Version", newJString(Version)) + add(query_626535, "SnapshotId", newJString(SnapshotId)) + add(query_626535, "Attribute", newJString(Attribute)) + result = call_626534.call(nil, query_626535, nil, nil, nil) + +var getResetSnapshotAttribute* = Call_GetResetSnapshotAttribute_626518( name: "getResetSnapshotAttribute", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=ResetSnapshotAttribute", - validator: validate_GetResetSnapshotAttribute_626517, base: "/", - url: url_GetResetSnapshotAttribute_626518, + validator: validate_GetResetSnapshotAttribute_626519, base: "/", + url: url_GetResetSnapshotAttribute_626520, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostRestoreAddressToClassic_626570 = ref object of OpenApiRestCall_610658 -proc url_PostRestoreAddressToClassic_626572(protocol: Scheme; host: string; + Call_PostRestoreAddressToClassic_626572 = ref object of OpenApiRestCall_610658 +proc url_PostRestoreAddressToClassic_626574(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -128362,7 +128389,7 @@ proc url_PostRestoreAddressToClassic_626572(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostRestoreAddressToClassic_626571(path: JsonNode; query: JsonNode; +proc validate_PostRestoreAddressToClassic_626573(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Restores an Elastic IP address that was previously moved to the EC2-VPC platform back to the EC2-Classic platform. You cannot move an Elastic IP address that was originally allocated for use in EC2-VPC. The Elastic IP address must not be associated with an instance or network interface. ## @@ -128374,16 +128401,16 @@ proc validate_PostRestoreAddressToClassic_626571(path: JsonNode; query: JsonNode ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_626573 = query.getOrDefault("Action") - valid_626573 = validateParameter(valid_626573, JString, required = true, default = newJString( + var valid_626575 = query.getOrDefault("Action") + valid_626575 = validateParameter(valid_626575, JString, required = true, default = newJString( "RestoreAddressToClassic")) - if valid_626573 != nil: - section.add "Action", valid_626573 - var valid_626574 = query.getOrDefault("Version") - valid_626574 = validateParameter(valid_626574, JString, required = true, + if valid_626575 != nil: + section.add "Action", valid_626575 + var valid_626576 = query.getOrDefault("Version") + valid_626576 = validateParameter(valid_626576, JString, required = true, default = newJString("2016-11-15")) - if valid_626574 != nil: - section.add "Version", valid_626574 + if valid_626576 != nil: + section.add "Version", valid_626576 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -128394,41 +128421,41 @@ proc validate_PostRestoreAddressToClassic_626571(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626575 = header.getOrDefault("X-Amz-Signature") - valid_626575 = validateParameter(valid_626575, JString, required = false, - default = nil) - if valid_626575 != nil: - section.add "X-Amz-Signature", valid_626575 - var valid_626576 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626576 = validateParameter(valid_626576, JString, required = false, - default = nil) - if valid_626576 != nil: - section.add "X-Amz-Content-Sha256", valid_626576 - var valid_626577 = header.getOrDefault("X-Amz-Date") + var valid_626577 = header.getOrDefault("X-Amz-Signature") valid_626577 = validateParameter(valid_626577, JString, required = false, default = nil) if valid_626577 != nil: - section.add "X-Amz-Date", valid_626577 - var valid_626578 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626577 + var valid_626578 = header.getOrDefault("X-Amz-Content-Sha256") valid_626578 = validateParameter(valid_626578, JString, required = false, default = nil) if valid_626578 != nil: - section.add "X-Amz-Credential", valid_626578 - var valid_626579 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626578 + var valid_626579 = header.getOrDefault("X-Amz-Date") valid_626579 = validateParameter(valid_626579, JString, required = false, default = nil) if valid_626579 != nil: - section.add "X-Amz-Security-Token", valid_626579 - var valid_626580 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626579 + var valid_626580 = header.getOrDefault("X-Amz-Credential") valid_626580 = validateParameter(valid_626580, JString, required = false, default = nil) if valid_626580 != nil: - section.add "X-Amz-Algorithm", valid_626580 - var valid_626581 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626580 + var valid_626581 = header.getOrDefault("X-Amz-Security-Token") valid_626581 = validateParameter(valid_626581, JString, required = false, default = nil) if valid_626581 != nil: - section.add "X-Amz-SignedHeaders", valid_626581 + section.add "X-Amz-Security-Token", valid_626581 + var valid_626582 = header.getOrDefault("X-Amz-Algorithm") + valid_626582 = validateParameter(valid_626582, JString, required = false, + default = nil) + if valid_626582 != nil: + section.add "X-Amz-Algorithm", valid_626582 + var valid_626583 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626583 = validateParameter(valid_626583, JString, required = false, + default = nil) + if valid_626583 != nil: + section.add "X-Amz-SignedHeaders", valid_626583 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -128436,35 +128463,35 @@ proc validate_PostRestoreAddressToClassic_626571(path: JsonNode; query: JsonNode ## PublicIp: JString (required) ## : The Elastic IP address. section = newJObject() - var valid_626582 = formData.getOrDefault("DryRun") - valid_626582 = validateParameter(valid_626582, JBool, required = false, default = nil) - if valid_626582 != nil: - section.add "DryRun", valid_626582 + var valid_626584 = formData.getOrDefault("DryRun") + valid_626584 = validateParameter(valid_626584, JBool, required = false, default = nil) + if valid_626584 != nil: + section.add "DryRun", valid_626584 assert formData != nil, "formData argument is necessary due to required `PublicIp` field" - var valid_626583 = formData.getOrDefault("PublicIp") - valid_626583 = validateParameter(valid_626583, JString, required = true, + var valid_626585 = formData.getOrDefault("PublicIp") + valid_626585 = validateParameter(valid_626585, JString, required = true, default = nil) - if valid_626583 != nil: - section.add "PublicIp", valid_626583 + if valid_626585 != nil: + section.add "PublicIp", valid_626585 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626584: Call_PostRestoreAddressToClassic_626570; path: JsonNode; +proc call*(call_626586: Call_PostRestoreAddressToClassic_626572; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Restores an Elastic IP address that was previously moved to the EC2-VPC platform back to the EC2-Classic platform. You cannot move an Elastic IP address that was originally allocated for use in EC2-VPC. The Elastic IP address must not be associated with an instance or network interface. ## - let valid = call_626584.validator(path, query, header, formData, body) - let scheme = call_626584.pickScheme + let valid = call_626586.validator(path, query, header, formData, body) + let scheme = call_626586.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626584.url(scheme.get, call_626584.host, call_626584.base, - call_626584.route, valid.getOrDefault("path"), + let url = call_626586.url(scheme.get, call_626586.host, call_626586.base, + call_626586.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626584, url, valid) + result = atozHook(call_626586, url, valid) -proc call*(call_626585: Call_PostRestoreAddressToClassic_626570; PublicIp: string; +proc call*(call_626587: Call_PostRestoreAddressToClassic_626572; PublicIp: string; DryRun: bool = false; Action: string = "RestoreAddressToClassic"; Version: string = "2016-11-15"): Recallable = ## postRestoreAddressToClassic @@ -128475,23 +128502,23 @@ proc call*(call_626585: Call_PostRestoreAddressToClassic_626570; PublicIp: strin ## PublicIp: string (required) ## : The Elastic IP address. ## Version: string (required) - var query_626586 = newJObject() - var formData_626587 = newJObject() - add(formData_626587, "DryRun", newJBool(DryRun)) - add(query_626586, "Action", newJString(Action)) - add(formData_626587, "PublicIp", newJString(PublicIp)) - add(query_626586, "Version", newJString(Version)) - result = call_626585.call(nil, query_626586, nil, formData_626587, nil) + var query_626588 = newJObject() + var formData_626589 = newJObject() + add(formData_626589, "DryRun", newJBool(DryRun)) + add(query_626588, "Action", newJString(Action)) + add(formData_626589, "PublicIp", newJString(PublicIp)) + add(query_626588, "Version", newJString(Version)) + result = call_626587.call(nil, query_626588, nil, formData_626589, nil) -var postRestoreAddressToClassic* = Call_PostRestoreAddressToClassic_626570( +var postRestoreAddressToClassic* = Call_PostRestoreAddressToClassic_626572( name: "postRestoreAddressToClassic", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=RestoreAddressToClassic", - validator: validate_PostRestoreAddressToClassic_626571, base: "/", - url: url_PostRestoreAddressToClassic_626572, + validator: validate_PostRestoreAddressToClassic_626573, base: "/", + url: url_PostRestoreAddressToClassic_626574, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetRestoreAddressToClassic_626553 = ref object of OpenApiRestCall_610658 -proc url_GetRestoreAddressToClassic_626555(protocol: Scheme; host: string; + Call_GetRestoreAddressToClassic_626555 = ref object of OpenApiRestCall_610658 +proc url_GetRestoreAddressToClassic_626557(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -128501,7 +128528,7 @@ proc url_GetRestoreAddressToClassic_626555(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetRestoreAddressToClassic_626554(path: JsonNode; query: JsonNode; +proc validate_GetRestoreAddressToClassic_626556(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Restores an Elastic IP address that was previously moved to the EC2-VPC platform back to the EC2-Classic platform. You cannot move an Elastic IP address that was originally allocated for use in EC2-VPC. The Elastic IP address must not be associated with an instance or network interface. ## @@ -128517,27 +128544,27 @@ proc validate_GetRestoreAddressToClassic_626554(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_626556 = query.getOrDefault("DryRun") - valid_626556 = validateParameter(valid_626556, JBool, required = false, default = nil) - if valid_626556 != nil: - section.add "DryRun", valid_626556 + var valid_626558 = query.getOrDefault("DryRun") + valid_626558 = validateParameter(valid_626558, JBool, required = false, default = nil) + if valid_626558 != nil: + section.add "DryRun", valid_626558 assert query != nil, "query argument is necessary due to required `PublicIp` field" - var valid_626557 = query.getOrDefault("PublicIp") - valid_626557 = validateParameter(valid_626557, JString, required = true, + var valid_626559 = query.getOrDefault("PublicIp") + valid_626559 = validateParameter(valid_626559, JString, required = true, default = nil) - if valid_626557 != nil: - section.add "PublicIp", valid_626557 - var valid_626558 = query.getOrDefault("Action") - valid_626558 = validateParameter(valid_626558, JString, required = true, default = newJString( + if valid_626559 != nil: + section.add "PublicIp", valid_626559 + var valid_626560 = query.getOrDefault("Action") + valid_626560 = validateParameter(valid_626560, JString, required = true, default = newJString( "RestoreAddressToClassic")) - if valid_626558 != nil: - section.add "Action", valid_626558 - var valid_626559 = query.getOrDefault("Version") - valid_626559 = validateParameter(valid_626559, JString, required = true, + if valid_626560 != nil: + section.add "Action", valid_626560 + var valid_626561 = query.getOrDefault("Version") + valid_626561 = validateParameter(valid_626561, JString, required = true, default = newJString("2016-11-15")) - if valid_626559 != nil: - section.add "Version", valid_626559 + if valid_626561 != nil: + section.add "Version", valid_626561 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -128548,61 +128575,61 @@ proc validate_GetRestoreAddressToClassic_626554(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626560 = header.getOrDefault("X-Amz-Signature") - valid_626560 = validateParameter(valid_626560, JString, required = false, - default = nil) - if valid_626560 != nil: - section.add "X-Amz-Signature", valid_626560 - var valid_626561 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626561 = validateParameter(valid_626561, JString, required = false, - default = nil) - if valid_626561 != nil: - section.add "X-Amz-Content-Sha256", valid_626561 - var valid_626562 = header.getOrDefault("X-Amz-Date") + var valid_626562 = header.getOrDefault("X-Amz-Signature") valid_626562 = validateParameter(valid_626562, JString, required = false, default = nil) if valid_626562 != nil: - section.add "X-Amz-Date", valid_626562 - var valid_626563 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626562 + var valid_626563 = header.getOrDefault("X-Amz-Content-Sha256") valid_626563 = validateParameter(valid_626563, JString, required = false, default = nil) if valid_626563 != nil: - section.add "X-Amz-Credential", valid_626563 - var valid_626564 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626563 + var valid_626564 = header.getOrDefault("X-Amz-Date") valid_626564 = validateParameter(valid_626564, JString, required = false, default = nil) if valid_626564 != nil: - section.add "X-Amz-Security-Token", valid_626564 - var valid_626565 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626564 + var valid_626565 = header.getOrDefault("X-Amz-Credential") valid_626565 = validateParameter(valid_626565, JString, required = false, default = nil) if valid_626565 != nil: - section.add "X-Amz-Algorithm", valid_626565 - var valid_626566 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626565 + var valid_626566 = header.getOrDefault("X-Amz-Security-Token") valid_626566 = validateParameter(valid_626566, JString, required = false, default = nil) if valid_626566 != nil: - section.add "X-Amz-SignedHeaders", valid_626566 + section.add "X-Amz-Security-Token", valid_626566 + var valid_626567 = header.getOrDefault("X-Amz-Algorithm") + valid_626567 = validateParameter(valid_626567, JString, required = false, + default = nil) + if valid_626567 != nil: + section.add "X-Amz-Algorithm", valid_626567 + var valid_626568 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626568 = validateParameter(valid_626568, JString, required = false, + default = nil) + if valid_626568 != nil: + section.add "X-Amz-SignedHeaders", valid_626568 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626567: Call_GetRestoreAddressToClassic_626553; path: JsonNode; +proc call*(call_626569: Call_GetRestoreAddressToClassic_626555; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Restores an Elastic IP address that was previously moved to the EC2-VPC platform back to the EC2-Classic platform. You cannot move an Elastic IP address that was originally allocated for use in EC2-VPC. The Elastic IP address must not be associated with an instance or network interface. ## - let valid = call_626567.validator(path, query, header, formData, body) - let scheme = call_626567.pickScheme + let valid = call_626569.validator(path, query, header, formData, body) + let scheme = call_626569.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626567.url(scheme.get, call_626567.host, call_626567.base, - call_626567.route, valid.getOrDefault("path"), + let url = call_626569.url(scheme.get, call_626569.host, call_626569.base, + call_626569.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626567, url, valid) + result = atozHook(call_626569, url, valid) -proc call*(call_626568: Call_GetRestoreAddressToClassic_626553; PublicIp: string; +proc call*(call_626570: Call_GetRestoreAddressToClassic_626555; PublicIp: string; DryRun: bool = false; Action: string = "RestoreAddressToClassic"; Version: string = "2016-11-15"): Recallable = ## getRestoreAddressToClassic @@ -128613,22 +128640,22 @@ proc call*(call_626568: Call_GetRestoreAddressToClassic_626553; PublicIp: string ## : The Elastic IP address. ## Action: string (required) ## Version: string (required) - var query_626569 = newJObject() - add(query_626569, "DryRun", newJBool(DryRun)) - add(query_626569, "PublicIp", newJString(PublicIp)) - add(query_626569, "Action", newJString(Action)) - add(query_626569, "Version", newJString(Version)) - result = call_626568.call(nil, query_626569, nil, nil, nil) + var query_626571 = newJObject() + add(query_626571, "DryRun", newJBool(DryRun)) + add(query_626571, "PublicIp", newJString(PublicIp)) + add(query_626571, "Action", newJString(Action)) + add(query_626571, "Version", newJString(Version)) + result = call_626570.call(nil, query_626571, nil, nil, nil) -var getRestoreAddressToClassic* = Call_GetRestoreAddressToClassic_626553( +var getRestoreAddressToClassic* = Call_GetRestoreAddressToClassic_626555( name: "getRestoreAddressToClassic", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=RestoreAddressToClassic", - validator: validate_GetRestoreAddressToClassic_626554, base: "/", - url: url_GetRestoreAddressToClassic_626555, + validator: validate_GetRestoreAddressToClassic_626556, base: "/", + url: url_GetRestoreAddressToClassic_626557, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostRevokeClientVpnIngress_626608 = ref object of OpenApiRestCall_610658 -proc url_PostRevokeClientVpnIngress_626610(protocol: Scheme; host: string; + Call_PostRevokeClientVpnIngress_626610 = ref object of OpenApiRestCall_610658 +proc url_PostRevokeClientVpnIngress_626612(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -128638,7 +128665,7 @@ proc url_PostRevokeClientVpnIngress_626610(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostRevokeClientVpnIngress_626609(path: JsonNode; query: JsonNode; +proc validate_PostRevokeClientVpnIngress_626611(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Removes an ingress authorization rule from a Client VPN endpoint. ## @@ -128650,16 +128677,16 @@ proc validate_PostRevokeClientVpnIngress_626609(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_626611 = query.getOrDefault("Action") - valid_626611 = validateParameter(valid_626611, JString, required = true, + var valid_626613 = query.getOrDefault("Action") + valid_626613 = validateParameter(valid_626613, JString, required = true, default = newJString("RevokeClientVpnIngress")) - if valid_626611 != nil: - section.add "Action", valid_626611 - var valid_626612 = query.getOrDefault("Version") - valid_626612 = validateParameter(valid_626612, JString, required = true, + if valid_626613 != nil: + section.add "Action", valid_626613 + var valid_626614 = query.getOrDefault("Version") + valid_626614 = validateParameter(valid_626614, JString, required = true, default = newJString("2016-11-15")) - if valid_626612 != nil: - section.add "Version", valid_626612 + if valid_626614 != nil: + section.add "Version", valid_626614 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -128670,41 +128697,41 @@ proc validate_PostRevokeClientVpnIngress_626609(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626613 = header.getOrDefault("X-Amz-Signature") - valid_626613 = validateParameter(valid_626613, JString, required = false, - default = nil) - if valid_626613 != nil: - section.add "X-Amz-Signature", valid_626613 - var valid_626614 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626614 = validateParameter(valid_626614, JString, required = false, - default = nil) - if valid_626614 != nil: - section.add "X-Amz-Content-Sha256", valid_626614 - var valid_626615 = header.getOrDefault("X-Amz-Date") + var valid_626615 = header.getOrDefault("X-Amz-Signature") valid_626615 = validateParameter(valid_626615, JString, required = false, default = nil) if valid_626615 != nil: - section.add "X-Amz-Date", valid_626615 - var valid_626616 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626615 + var valid_626616 = header.getOrDefault("X-Amz-Content-Sha256") valid_626616 = validateParameter(valid_626616, JString, required = false, default = nil) if valid_626616 != nil: - section.add "X-Amz-Credential", valid_626616 - var valid_626617 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626616 + var valid_626617 = header.getOrDefault("X-Amz-Date") valid_626617 = validateParameter(valid_626617, JString, required = false, default = nil) if valid_626617 != nil: - section.add "X-Amz-Security-Token", valid_626617 - var valid_626618 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626617 + var valid_626618 = header.getOrDefault("X-Amz-Credential") valid_626618 = validateParameter(valid_626618, JString, required = false, default = nil) if valid_626618 != nil: - section.add "X-Amz-Algorithm", valid_626618 - var valid_626619 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626618 + var valid_626619 = header.getOrDefault("X-Amz-Security-Token") valid_626619 = validateParameter(valid_626619, JString, required = false, default = nil) if valid_626619 != nil: - section.add "X-Amz-SignedHeaders", valid_626619 + section.add "X-Amz-Security-Token", valid_626619 + var valid_626620 = header.getOrDefault("X-Amz-Algorithm") + valid_626620 = validateParameter(valid_626620, JString, required = false, + default = nil) + if valid_626620 != nil: + section.add "X-Amz-Algorithm", valid_626620 + var valid_626621 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626621 = validateParameter(valid_626621, JString, required = false, + default = nil) + if valid_626621 != nil: + section.add "X-Amz-SignedHeaders", valid_626621 result.add "header", section ## parameters in `formData` object: ## TargetNetworkCidr: JString (required) @@ -128719,47 +128746,47 @@ proc validate_PostRevokeClientVpnIngress_626609(path: JsonNode; query: JsonNode; ## : The ID of the Client VPN endpoint with which the authorization rule is associated. section = newJObject() assert formData != nil, "formData argument is necessary due to required `TargetNetworkCidr` field" - var valid_626620 = formData.getOrDefault("TargetNetworkCidr") - valid_626620 = validateParameter(valid_626620, JString, required = true, + var valid_626622 = formData.getOrDefault("TargetNetworkCidr") + valid_626622 = validateParameter(valid_626622, JString, required = true, default = nil) - if valid_626620 != nil: - section.add "TargetNetworkCidr", valid_626620 - var valid_626621 = formData.getOrDefault("AccessGroupId") - valid_626621 = validateParameter(valid_626621, JString, required = false, - default = nil) - if valid_626621 != nil: - section.add "AccessGroupId", valid_626621 - var valid_626622 = formData.getOrDefault("DryRun") - valid_626622 = validateParameter(valid_626622, JBool, required = false, default = nil) if valid_626622 != nil: - section.add "DryRun", valid_626622 - var valid_626623 = formData.getOrDefault("RevokeAllGroups") - valid_626623 = validateParameter(valid_626623, JBool, required = false, default = nil) - if valid_626623 != nil: - section.add "RevokeAllGroups", valid_626623 - var valid_626624 = formData.getOrDefault("ClientVpnEndpointId") - valid_626624 = validateParameter(valid_626624, JString, required = true, + section.add "TargetNetworkCidr", valid_626622 + var valid_626623 = formData.getOrDefault("AccessGroupId") + valid_626623 = validateParameter(valid_626623, JString, required = false, default = nil) + if valid_626623 != nil: + section.add "AccessGroupId", valid_626623 + var valid_626624 = formData.getOrDefault("DryRun") + valid_626624 = validateParameter(valid_626624, JBool, required = false, default = nil) if valid_626624 != nil: - section.add "ClientVpnEndpointId", valid_626624 + section.add "DryRun", valid_626624 + var valid_626625 = formData.getOrDefault("RevokeAllGroups") + valid_626625 = validateParameter(valid_626625, JBool, required = false, default = nil) + if valid_626625 != nil: + section.add "RevokeAllGroups", valid_626625 + var valid_626626 = formData.getOrDefault("ClientVpnEndpointId") + valid_626626 = validateParameter(valid_626626, JString, required = true, + default = nil) + if valid_626626 != nil: + section.add "ClientVpnEndpointId", valid_626626 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626625: Call_PostRevokeClientVpnIngress_626608; path: JsonNode; +proc call*(call_626627: Call_PostRevokeClientVpnIngress_626610; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Removes an ingress authorization rule from a Client VPN endpoint. ## - let valid = call_626625.validator(path, query, header, formData, body) - let scheme = call_626625.pickScheme + let valid = call_626627.validator(path, query, header, formData, body) + let scheme = call_626627.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626625.url(scheme.get, call_626625.host, call_626625.base, - call_626625.route, valid.getOrDefault("path"), + let url = call_626627.url(scheme.get, call_626627.host, call_626627.base, + call_626627.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626625, url, valid) + result = atozHook(call_626627, url, valid) -proc call*(call_626626: Call_PostRevokeClientVpnIngress_626608; +proc call*(call_626628: Call_PostRevokeClientVpnIngress_626610; TargetNetworkCidr: string; ClientVpnEndpointId: string; AccessGroupId: string = ""; DryRun: bool = false; Action: string = "RevokeClientVpnIngress"; RevokeAllGroups: bool = false; @@ -128778,26 +128805,26 @@ proc call*(call_626626: Call_PostRevokeClientVpnIngress_626608; ## Version: string (required) ## ClientVpnEndpointId: string (required) ## : The ID of the Client VPN endpoint with which the authorization rule is associated. - var query_626627 = newJObject() - var formData_626628 = newJObject() - add(formData_626628, "TargetNetworkCidr", newJString(TargetNetworkCidr)) - add(formData_626628, "AccessGroupId", newJString(AccessGroupId)) - add(formData_626628, "DryRun", newJBool(DryRun)) - add(query_626627, "Action", newJString(Action)) - add(formData_626628, "RevokeAllGroups", newJBool(RevokeAllGroups)) - add(query_626627, "Version", newJString(Version)) - add(formData_626628, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) - result = call_626626.call(nil, query_626627, nil, formData_626628, nil) - -var postRevokeClientVpnIngress* = Call_PostRevokeClientVpnIngress_626608( + var query_626629 = newJObject() + var formData_626630 = newJObject() + add(formData_626630, "TargetNetworkCidr", newJString(TargetNetworkCidr)) + add(formData_626630, "AccessGroupId", newJString(AccessGroupId)) + add(formData_626630, "DryRun", newJBool(DryRun)) + add(query_626629, "Action", newJString(Action)) + add(formData_626630, "RevokeAllGroups", newJBool(RevokeAllGroups)) + add(query_626629, "Version", newJString(Version)) + add(formData_626630, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) + result = call_626628.call(nil, query_626629, nil, formData_626630, nil) + +var postRevokeClientVpnIngress* = Call_PostRevokeClientVpnIngress_626610( name: "postRevokeClientVpnIngress", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=RevokeClientVpnIngress", - validator: validate_PostRevokeClientVpnIngress_626609, base: "/", - url: url_PostRevokeClientVpnIngress_626610, + validator: validate_PostRevokeClientVpnIngress_626611, base: "/", + url: url_PostRevokeClientVpnIngress_626612, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetRevokeClientVpnIngress_626588 = ref object of OpenApiRestCall_610658 -proc url_GetRevokeClientVpnIngress_626590(protocol: Scheme; host: string; + Call_GetRevokeClientVpnIngress_626590 = ref object of OpenApiRestCall_610658 +proc url_GetRevokeClientVpnIngress_626592(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -128807,7 +128834,7 @@ proc url_GetRevokeClientVpnIngress_626590(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetRevokeClientVpnIngress_626589(path: JsonNode; query: JsonNode; +proc validate_GetRevokeClientVpnIngress_626591(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Removes an ingress authorization rule from a Client VPN endpoint. ## @@ -128829,40 +128856,40 @@ proc validate_GetRevokeClientVpnIngress_626589(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_626591 = query.getOrDefault("AccessGroupId") - valid_626591 = validateParameter(valid_626591, JString, required = false, - default = nil) - if valid_626591 != nil: - section.add "AccessGroupId", valid_626591 - var valid_626592 = query.getOrDefault("DryRun") - valid_626592 = validateParameter(valid_626592, JBool, required = false, default = nil) - if valid_626592 != nil: - section.add "DryRun", valid_626592 - assert query != nil, "query argument is necessary due to required `ClientVpnEndpointId` field" - var valid_626593 = query.getOrDefault("ClientVpnEndpointId") - valid_626593 = validateParameter(valid_626593, JString, required = true, + var valid_626593 = query.getOrDefault("AccessGroupId") + valid_626593 = validateParameter(valid_626593, JString, required = false, default = nil) if valid_626593 != nil: - section.add "ClientVpnEndpointId", valid_626593 - var valid_626594 = query.getOrDefault("TargetNetworkCidr") - valid_626594 = validateParameter(valid_626594, JString, required = true, - default = nil) + section.add "AccessGroupId", valid_626593 + var valid_626594 = query.getOrDefault("DryRun") + valid_626594 = validateParameter(valid_626594, JBool, required = false, default = nil) if valid_626594 != nil: - section.add "TargetNetworkCidr", valid_626594 - var valid_626595 = query.getOrDefault("RevokeAllGroups") - valid_626595 = validateParameter(valid_626595, JBool, required = false, default = nil) + section.add "DryRun", valid_626594 + assert query != nil, "query argument is necessary due to required `ClientVpnEndpointId` field" + var valid_626595 = query.getOrDefault("ClientVpnEndpointId") + valid_626595 = validateParameter(valid_626595, JString, required = true, + default = nil) if valid_626595 != nil: - section.add "RevokeAllGroups", valid_626595 - var valid_626596 = query.getOrDefault("Action") + section.add "ClientVpnEndpointId", valid_626595 + var valid_626596 = query.getOrDefault("TargetNetworkCidr") valid_626596 = validateParameter(valid_626596, JString, required = true, - default = newJString("RevokeClientVpnIngress")) + default = nil) if valid_626596 != nil: - section.add "Action", valid_626596 - var valid_626597 = query.getOrDefault("Version") - valid_626597 = validateParameter(valid_626597, JString, required = true, - default = newJString("2016-11-15")) + section.add "TargetNetworkCidr", valid_626596 + var valid_626597 = query.getOrDefault("RevokeAllGroups") + valid_626597 = validateParameter(valid_626597, JBool, required = false, default = nil) if valid_626597 != nil: - section.add "Version", valid_626597 + section.add "RevokeAllGroups", valid_626597 + var valid_626598 = query.getOrDefault("Action") + valid_626598 = validateParameter(valid_626598, JString, required = true, + default = newJString("RevokeClientVpnIngress")) + if valid_626598 != nil: + section.add "Action", valid_626598 + var valid_626599 = query.getOrDefault("Version") + valid_626599 = validateParameter(valid_626599, JString, required = true, + default = newJString("2016-11-15")) + if valid_626599 != nil: + section.add "Version", valid_626599 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -128873,61 +128900,61 @@ proc validate_GetRevokeClientVpnIngress_626589(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626598 = header.getOrDefault("X-Amz-Signature") - valid_626598 = validateParameter(valid_626598, JString, required = false, - default = nil) - if valid_626598 != nil: - section.add "X-Amz-Signature", valid_626598 - var valid_626599 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626599 = validateParameter(valid_626599, JString, required = false, - default = nil) - if valid_626599 != nil: - section.add "X-Amz-Content-Sha256", valid_626599 - var valid_626600 = header.getOrDefault("X-Amz-Date") + var valid_626600 = header.getOrDefault("X-Amz-Signature") valid_626600 = validateParameter(valid_626600, JString, required = false, default = nil) if valid_626600 != nil: - section.add "X-Amz-Date", valid_626600 - var valid_626601 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626600 + var valid_626601 = header.getOrDefault("X-Amz-Content-Sha256") valid_626601 = validateParameter(valid_626601, JString, required = false, default = nil) if valid_626601 != nil: - section.add "X-Amz-Credential", valid_626601 - var valid_626602 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626601 + var valid_626602 = header.getOrDefault("X-Amz-Date") valid_626602 = validateParameter(valid_626602, JString, required = false, default = nil) if valid_626602 != nil: - section.add "X-Amz-Security-Token", valid_626602 - var valid_626603 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626602 + var valid_626603 = header.getOrDefault("X-Amz-Credential") valid_626603 = validateParameter(valid_626603, JString, required = false, default = nil) if valid_626603 != nil: - section.add "X-Amz-Algorithm", valid_626603 - var valid_626604 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626603 + var valid_626604 = header.getOrDefault("X-Amz-Security-Token") valid_626604 = validateParameter(valid_626604, JString, required = false, default = nil) if valid_626604 != nil: - section.add "X-Amz-SignedHeaders", valid_626604 + section.add "X-Amz-Security-Token", valid_626604 + var valid_626605 = header.getOrDefault("X-Amz-Algorithm") + valid_626605 = validateParameter(valid_626605, JString, required = false, + default = nil) + if valid_626605 != nil: + section.add "X-Amz-Algorithm", valid_626605 + var valid_626606 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626606 = validateParameter(valid_626606, JString, required = false, + default = nil) + if valid_626606 != nil: + section.add "X-Amz-SignedHeaders", valid_626606 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626605: Call_GetRevokeClientVpnIngress_626588; path: JsonNode; +proc call*(call_626607: Call_GetRevokeClientVpnIngress_626590; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Removes an ingress authorization rule from a Client VPN endpoint. ## - let valid = call_626605.validator(path, query, header, formData, body) - let scheme = call_626605.pickScheme + let valid = call_626607.validator(path, query, header, formData, body) + let scheme = call_626607.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626605.url(scheme.get, call_626605.host, call_626605.base, - call_626605.route, valid.getOrDefault("path"), + let url = call_626607.url(scheme.get, call_626607.host, call_626607.base, + call_626607.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626605, url, valid) + result = atozHook(call_626607, url, valid) -proc call*(call_626606: Call_GetRevokeClientVpnIngress_626588; +proc call*(call_626608: Call_GetRevokeClientVpnIngress_626590; ClientVpnEndpointId: string; TargetNetworkCidr: string; AccessGroupId: string = ""; DryRun: bool = false; RevokeAllGroups: bool = false; Action: string = "RevokeClientVpnIngress"; @@ -128946,25 +128973,25 @@ proc call*(call_626606: Call_GetRevokeClientVpnIngress_626588; ## : Indicates whether access should be revoked for all clients. ## Action: string (required) ## Version: string (required) - var query_626607 = newJObject() - add(query_626607, "AccessGroupId", newJString(AccessGroupId)) - add(query_626607, "DryRun", newJBool(DryRun)) - add(query_626607, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) - add(query_626607, "TargetNetworkCidr", newJString(TargetNetworkCidr)) - add(query_626607, "RevokeAllGroups", newJBool(RevokeAllGroups)) - add(query_626607, "Action", newJString(Action)) - add(query_626607, "Version", newJString(Version)) - result = call_626606.call(nil, query_626607, nil, nil, nil) + var query_626609 = newJObject() + add(query_626609, "AccessGroupId", newJString(AccessGroupId)) + add(query_626609, "DryRun", newJBool(DryRun)) + add(query_626609, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) + add(query_626609, "TargetNetworkCidr", newJString(TargetNetworkCidr)) + add(query_626609, "RevokeAllGroups", newJBool(RevokeAllGroups)) + add(query_626609, "Action", newJString(Action)) + add(query_626609, "Version", newJString(Version)) + result = call_626608.call(nil, query_626609, nil, nil, nil) -var getRevokeClientVpnIngress* = Call_GetRevokeClientVpnIngress_626588( +var getRevokeClientVpnIngress* = Call_GetRevokeClientVpnIngress_626590( name: "getRevokeClientVpnIngress", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=RevokeClientVpnIngress", - validator: validate_GetRevokeClientVpnIngress_626589, base: "/", - url: url_GetRevokeClientVpnIngress_626590, + validator: validate_GetRevokeClientVpnIngress_626591, base: "/", + url: url_GetRevokeClientVpnIngress_626592, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostRevokeSecurityGroupEgress_626653 = ref object of OpenApiRestCall_610658 -proc url_PostRevokeSecurityGroupEgress_626655(protocol: Scheme; host: string; + Call_PostRevokeSecurityGroupEgress_626655 = ref object of OpenApiRestCall_610658 +proc url_PostRevokeSecurityGroupEgress_626657(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -128974,7 +129001,7 @@ proc url_PostRevokeSecurityGroupEgress_626655(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostRevokeSecurityGroupEgress_626654(path: JsonNode; query: JsonNode; +proc validate_PostRevokeSecurityGroupEgress_626656(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    [VPC only] Removes the specified egress rules from a security group for EC2-VPC. This action doesn't apply to security groups for use in EC2-Classic. To remove a rule, the values that you specify (for example, ports) must match the existing rule's values exactly.

    Each rule consists of the protocol and the IPv4 or IPv6 CIDR range or source security group. For the TCP and UDP protocols, you must also specify the destination port or range of ports. For the ICMP protocol, you must also specify the ICMP type and code. If the security group rule has a description, you do not have to specify the description to revoke the rule.

    Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.

    ## @@ -128986,16 +129013,16 @@ proc validate_PostRevokeSecurityGroupEgress_626654(path: JsonNode; query: JsonNo ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_626656 = query.getOrDefault("Action") - valid_626656 = validateParameter(valid_626656, JString, required = true, default = newJString( + var valid_626658 = query.getOrDefault("Action") + valid_626658 = validateParameter(valid_626658, JString, required = true, default = newJString( "RevokeSecurityGroupEgress")) - if valid_626656 != nil: - section.add "Action", valid_626656 - var valid_626657 = query.getOrDefault("Version") - valid_626657 = validateParameter(valid_626657, JString, required = true, + if valid_626658 != nil: + section.add "Action", valid_626658 + var valid_626659 = query.getOrDefault("Version") + valid_626659 = validateParameter(valid_626659, JString, required = true, default = newJString("2016-11-15")) - if valid_626657 != nil: - section.add "Version", valid_626657 + if valid_626659 != nil: + section.add "Version", valid_626659 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -129006,41 +129033,41 @@ proc validate_PostRevokeSecurityGroupEgress_626654(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626658 = header.getOrDefault("X-Amz-Signature") - valid_626658 = validateParameter(valid_626658, JString, required = false, - default = nil) - if valid_626658 != nil: - section.add "X-Amz-Signature", valid_626658 - var valid_626659 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626659 = validateParameter(valid_626659, JString, required = false, - default = nil) - if valid_626659 != nil: - section.add "X-Amz-Content-Sha256", valid_626659 - var valid_626660 = header.getOrDefault("X-Amz-Date") + var valid_626660 = header.getOrDefault("X-Amz-Signature") valid_626660 = validateParameter(valid_626660, JString, required = false, default = nil) if valid_626660 != nil: - section.add "X-Amz-Date", valid_626660 - var valid_626661 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626660 + var valid_626661 = header.getOrDefault("X-Amz-Content-Sha256") valid_626661 = validateParameter(valid_626661, JString, required = false, default = nil) if valid_626661 != nil: - section.add "X-Amz-Credential", valid_626661 - var valid_626662 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626661 + var valid_626662 = header.getOrDefault("X-Amz-Date") valid_626662 = validateParameter(valid_626662, JString, required = false, default = nil) if valid_626662 != nil: - section.add "X-Amz-Security-Token", valid_626662 - var valid_626663 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626662 + var valid_626663 = header.getOrDefault("X-Amz-Credential") valid_626663 = validateParameter(valid_626663, JString, required = false, default = nil) if valid_626663 != nil: - section.add "X-Amz-Algorithm", valid_626663 - var valid_626664 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626663 + var valid_626664 = header.getOrDefault("X-Amz-Security-Token") valid_626664 = validateParameter(valid_626664, JString, required = false, default = nil) if valid_626664 != nil: - section.add "X-Amz-SignedHeaders", valid_626664 + section.add "X-Amz-Security-Token", valid_626664 + var valid_626665 = header.getOrDefault("X-Amz-Algorithm") + valid_626665 = validateParameter(valid_626665, JString, required = false, + default = nil) + if valid_626665 != nil: + section.add "X-Amz-Algorithm", valid_626665 + var valid_626666 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626666 = validateParameter(valid_626666, JString, required = false, + default = nil) + if valid_626666 != nil: + section.add "X-Amz-SignedHeaders", valid_626666 result.add "header", section ## parameters in `formData` object: ## GroupId: JString (required) @@ -129064,66 +129091,66 @@ proc validate_PostRevokeSecurityGroupEgress_626654(path: JsonNode; query: JsonNo section = newJObject() assert formData != nil, "formData argument is necessary due to required `GroupId` field" - var valid_626665 = formData.getOrDefault("GroupId") - valid_626665 = validateParameter(valid_626665, JString, required = true, - default = nil) - if valid_626665 != nil: - section.add "GroupId", valid_626665 - var valid_626666 = formData.getOrDefault("ToPort") - valid_626666 = validateParameter(valid_626666, JInt, required = false, default = nil) - if valid_626666 != nil: - section.add "ToPort", valid_626666 - var valid_626667 = formData.getOrDefault("IpProtocol") - valid_626667 = validateParameter(valid_626667, JString, required = false, + var valid_626667 = formData.getOrDefault("GroupId") + valid_626667 = validateParameter(valid_626667, JString, required = true, default = nil) if valid_626667 != nil: - section.add "IpProtocol", valid_626667 - var valid_626668 = formData.getOrDefault("SourceSecurityGroupName") - valid_626668 = validateParameter(valid_626668, JString, required = false, - default = nil) + section.add "GroupId", valid_626667 + var valid_626668 = formData.getOrDefault("ToPort") + valid_626668 = validateParameter(valid_626668, JInt, required = false, default = nil) if valid_626668 != nil: - section.add "SourceSecurityGroupName", valid_626668 - var valid_626669 = formData.getOrDefault("CidrIp") + section.add "ToPort", valid_626668 + var valid_626669 = formData.getOrDefault("IpProtocol") valid_626669 = validateParameter(valid_626669, JString, required = false, default = nil) if valid_626669 != nil: - section.add "CidrIp", valid_626669 - var valid_626670 = formData.getOrDefault("DryRun") - valid_626670 = validateParameter(valid_626670, JBool, required = false, default = nil) + section.add "IpProtocol", valid_626669 + var valid_626670 = formData.getOrDefault("SourceSecurityGroupName") + valid_626670 = validateParameter(valid_626670, JString, required = false, + default = nil) if valid_626670 != nil: - section.add "DryRun", valid_626670 - var valid_626671 = formData.getOrDefault("SourceSecurityGroupOwnerId") + section.add "SourceSecurityGroupName", valid_626670 + var valid_626671 = formData.getOrDefault("CidrIp") valid_626671 = validateParameter(valid_626671, JString, required = false, default = nil) if valid_626671 != nil: - section.add "SourceSecurityGroupOwnerId", valid_626671 - var valid_626672 = formData.getOrDefault("FromPort") - valid_626672 = validateParameter(valid_626672, JInt, required = false, default = nil) + section.add "CidrIp", valid_626671 + var valid_626672 = formData.getOrDefault("DryRun") + valid_626672 = validateParameter(valid_626672, JBool, required = false, default = nil) if valid_626672 != nil: - section.add "FromPort", valid_626672 - var valid_626673 = formData.getOrDefault("IpPermissions") - valid_626673 = validateParameter(valid_626673, JArray, required = false, + section.add "DryRun", valid_626672 + var valid_626673 = formData.getOrDefault("SourceSecurityGroupOwnerId") + valid_626673 = validateParameter(valid_626673, JString, required = false, default = nil) if valid_626673 != nil: - section.add "IpPermissions", valid_626673 + section.add "SourceSecurityGroupOwnerId", valid_626673 + var valid_626674 = formData.getOrDefault("FromPort") + valid_626674 = validateParameter(valid_626674, JInt, required = false, default = nil) + if valid_626674 != nil: + section.add "FromPort", valid_626674 + var valid_626675 = formData.getOrDefault("IpPermissions") + valid_626675 = validateParameter(valid_626675, JArray, required = false, + default = nil) + if valid_626675 != nil: + section.add "IpPermissions", valid_626675 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626674: Call_PostRevokeSecurityGroupEgress_626653; path: JsonNode; +proc call*(call_626676: Call_PostRevokeSecurityGroupEgress_626655; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    [VPC only] Removes the specified egress rules from a security group for EC2-VPC. This action doesn't apply to security groups for use in EC2-Classic. To remove a rule, the values that you specify (for example, ports) must match the existing rule's values exactly.

    Each rule consists of the protocol and the IPv4 or IPv6 CIDR range or source security group. For the TCP and UDP protocols, you must also specify the destination port or range of ports. For the ICMP protocol, you must also specify the ICMP type and code. If the security group rule has a description, you do not have to specify the description to revoke the rule.

    Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.

    ## - let valid = call_626674.validator(path, query, header, formData, body) - let scheme = call_626674.pickScheme + let valid = call_626676.validator(path, query, header, formData, body) + let scheme = call_626676.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626674.url(scheme.get, call_626674.host, call_626674.base, - call_626674.route, valid.getOrDefault("path"), + let url = call_626676.url(scheme.get, call_626676.host, call_626676.base, + call_626676.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626674, url, valid) + result = atozHook(call_626676, url, valid) -proc call*(call_626675: Call_PostRevokeSecurityGroupEgress_626653; GroupId: string; +proc call*(call_626677: Call_PostRevokeSecurityGroupEgress_626655; GroupId: string; ToPort: int = 0; IpProtocol: string = ""; SourceSecurityGroupName: string = ""; CidrIp: string = ""; DryRun: bool = false; Action: string = "RevokeSecurityGroupEgress"; @@ -129151,33 +129178,33 @@ proc call*(call_626675: Call_PostRevokeSecurityGroupEgress_626653; GroupId: stri ## Version: string (required) ## IpPermissions: JArray ## : The sets of IP permissions. You can't specify a destination security group and a CIDR IP address range in the same set of permissions. - var query_626676 = newJObject() - var formData_626677 = newJObject() - add(formData_626677, "GroupId", newJString(GroupId)) - add(formData_626677, "ToPort", newJInt(ToPort)) - add(formData_626677, "IpProtocol", newJString(IpProtocol)) - add(formData_626677, "SourceSecurityGroupName", + var query_626678 = newJObject() + var formData_626679 = newJObject() + add(formData_626679, "GroupId", newJString(GroupId)) + add(formData_626679, "ToPort", newJInt(ToPort)) + add(formData_626679, "IpProtocol", newJString(IpProtocol)) + add(formData_626679, "SourceSecurityGroupName", newJString(SourceSecurityGroupName)) - add(formData_626677, "CidrIp", newJString(CidrIp)) - add(formData_626677, "DryRun", newJBool(DryRun)) - add(query_626676, "Action", newJString(Action)) - add(formData_626677, "SourceSecurityGroupOwnerId", + add(formData_626679, "CidrIp", newJString(CidrIp)) + add(formData_626679, "DryRun", newJBool(DryRun)) + add(query_626678, "Action", newJString(Action)) + add(formData_626679, "SourceSecurityGroupOwnerId", newJString(SourceSecurityGroupOwnerId)) - add(formData_626677, "FromPort", newJInt(FromPort)) - add(query_626676, "Version", newJString(Version)) + add(formData_626679, "FromPort", newJInt(FromPort)) + add(query_626678, "Version", newJString(Version)) if IpPermissions != nil: - formData_626677.add "IpPermissions", IpPermissions - result = call_626675.call(nil, query_626676, nil, formData_626677, nil) + formData_626679.add "IpPermissions", IpPermissions + result = call_626677.call(nil, query_626678, nil, formData_626679, nil) -var postRevokeSecurityGroupEgress* = Call_PostRevokeSecurityGroupEgress_626653( +var postRevokeSecurityGroupEgress* = Call_PostRevokeSecurityGroupEgress_626655( name: "postRevokeSecurityGroupEgress", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=RevokeSecurityGroupEgress", - validator: validate_PostRevokeSecurityGroupEgress_626654, base: "/", - url: url_PostRevokeSecurityGroupEgress_626655, + validator: validate_PostRevokeSecurityGroupEgress_626656, base: "/", + url: url_PostRevokeSecurityGroupEgress_626657, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetRevokeSecurityGroupEgress_626629 = ref object of OpenApiRestCall_610658 -proc url_GetRevokeSecurityGroupEgress_626631(protocol: Scheme; host: string; + Call_GetRevokeSecurityGroupEgress_626631 = ref object of OpenApiRestCall_610658 +proc url_GetRevokeSecurityGroupEgress_626633(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -129187,7 +129214,7 @@ proc url_GetRevokeSecurityGroupEgress_626631(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetRevokeSecurityGroupEgress_626630(path: JsonNode; query: JsonNode; +proc validate_GetRevokeSecurityGroupEgress_626632(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    [VPC only] Removes the specified egress rules from a security group for EC2-VPC. This action doesn't apply to security groups for use in EC2-Classic. To remove a rule, the values that you specify (for example, ports) must match the existing rule's values exactly.

    Each rule consists of the protocol and the IPv4 or IPv6 CIDR range or source security group. For the TCP and UDP protocols, you must also specify the destination port or range of ports. For the ICMP protocol, you must also specify the ICMP type and code. If the security group rule has a description, you do not have to specify the description to revoke the rule.

    Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.

    ## @@ -129217,58 +129244,58 @@ proc validate_GetRevokeSecurityGroupEgress_626630(path: JsonNode; query: JsonNod ## CidrIp: JString ## : Not supported. Use a set of IP permissions to specify the CIDR. section = newJObject() - var valid_626632 = query.getOrDefault("IpProtocol") - valid_626632 = validateParameter(valid_626632, JString, required = false, - default = nil) - if valid_626632 != nil: - section.add "IpProtocol", valid_626632 - var valid_626633 = query.getOrDefault("DryRun") - valid_626633 = validateParameter(valid_626633, JBool, required = false, default = nil) - if valid_626633 != nil: - section.add "DryRun", valid_626633 - var valid_626634 = query.getOrDefault("SourceSecurityGroupOwnerId") + var valid_626634 = query.getOrDefault("IpProtocol") valid_626634 = validateParameter(valid_626634, JString, required = false, default = nil) if valid_626634 != nil: - section.add "SourceSecurityGroupOwnerId", valid_626634 - var valid_626635 = query.getOrDefault("FromPort") - valid_626635 = validateParameter(valid_626635, JInt, required = false, default = nil) + section.add "IpProtocol", valid_626634 + var valid_626635 = query.getOrDefault("DryRun") + valid_626635 = validateParameter(valid_626635, JBool, required = false, default = nil) if valid_626635 != nil: - section.add "FromPort", valid_626635 - var valid_626636 = query.getOrDefault("SourceSecurityGroupName") + section.add "DryRun", valid_626635 + var valid_626636 = query.getOrDefault("SourceSecurityGroupOwnerId") valid_626636 = validateParameter(valid_626636, JString, required = false, default = nil) if valid_626636 != nil: - section.add "SourceSecurityGroupName", valid_626636 - var valid_626637 = query.getOrDefault("ToPort") + section.add "SourceSecurityGroupOwnerId", valid_626636 + var valid_626637 = query.getOrDefault("FromPort") valid_626637 = validateParameter(valid_626637, JInt, required = false, default = nil) if valid_626637 != nil: - section.add "ToPort", valid_626637 - var valid_626638 = query.getOrDefault("IpPermissions") - valid_626638 = validateParameter(valid_626638, JArray, required = false, + section.add "FromPort", valid_626637 + var valid_626638 = query.getOrDefault("SourceSecurityGroupName") + valid_626638 = validateParameter(valid_626638, JString, required = false, default = nil) if valid_626638 != nil: - section.add "IpPermissions", valid_626638 - var valid_626639 = query.getOrDefault("Action") - valid_626639 = validateParameter(valid_626639, JString, required = true, default = newJString( - "RevokeSecurityGroupEgress")) + section.add "SourceSecurityGroupName", valid_626638 + var valid_626639 = query.getOrDefault("ToPort") + valid_626639 = validateParameter(valid_626639, JInt, required = false, default = nil) if valid_626639 != nil: - section.add "Action", valid_626639 - var valid_626640 = query.getOrDefault("GroupId") - valid_626640 = validateParameter(valid_626640, JString, required = true, + section.add "ToPort", valid_626639 + var valid_626640 = query.getOrDefault("IpPermissions") + valid_626640 = validateParameter(valid_626640, JArray, required = false, default = nil) if valid_626640 != nil: - section.add "GroupId", valid_626640 - var valid_626641 = query.getOrDefault("Version") - valid_626641 = validateParameter(valid_626641, JString, required = true, - default = newJString("2016-11-15")) + section.add "IpPermissions", valid_626640 + var valid_626641 = query.getOrDefault("Action") + valid_626641 = validateParameter(valid_626641, JString, required = true, default = newJString( + "RevokeSecurityGroupEgress")) if valid_626641 != nil: - section.add "Version", valid_626641 - var valid_626642 = query.getOrDefault("CidrIp") - valid_626642 = validateParameter(valid_626642, JString, required = false, + section.add "Action", valid_626641 + var valid_626642 = query.getOrDefault("GroupId") + valid_626642 = validateParameter(valid_626642, JString, required = true, default = nil) if valid_626642 != nil: - section.add "CidrIp", valid_626642 + section.add "GroupId", valid_626642 + var valid_626643 = query.getOrDefault("Version") + valid_626643 = validateParameter(valid_626643, JString, required = true, + default = newJString("2016-11-15")) + if valid_626643 != nil: + section.add "Version", valid_626643 + var valid_626644 = query.getOrDefault("CidrIp") + valid_626644 = validateParameter(valid_626644, JString, required = false, + default = nil) + if valid_626644 != nil: + section.add "CidrIp", valid_626644 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -129279,61 +129306,61 @@ proc validate_GetRevokeSecurityGroupEgress_626630(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626643 = header.getOrDefault("X-Amz-Signature") - valid_626643 = validateParameter(valid_626643, JString, required = false, - default = nil) - if valid_626643 != nil: - section.add "X-Amz-Signature", valid_626643 - var valid_626644 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626644 = validateParameter(valid_626644, JString, required = false, - default = nil) - if valid_626644 != nil: - section.add "X-Amz-Content-Sha256", valid_626644 - var valid_626645 = header.getOrDefault("X-Amz-Date") + var valid_626645 = header.getOrDefault("X-Amz-Signature") valid_626645 = validateParameter(valid_626645, JString, required = false, default = nil) if valid_626645 != nil: - section.add "X-Amz-Date", valid_626645 - var valid_626646 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626645 + var valid_626646 = header.getOrDefault("X-Amz-Content-Sha256") valid_626646 = validateParameter(valid_626646, JString, required = false, default = nil) if valid_626646 != nil: - section.add "X-Amz-Credential", valid_626646 - var valid_626647 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626646 + var valid_626647 = header.getOrDefault("X-Amz-Date") valid_626647 = validateParameter(valid_626647, JString, required = false, default = nil) if valid_626647 != nil: - section.add "X-Amz-Security-Token", valid_626647 - var valid_626648 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626647 + var valid_626648 = header.getOrDefault("X-Amz-Credential") valid_626648 = validateParameter(valid_626648, JString, required = false, default = nil) if valid_626648 != nil: - section.add "X-Amz-Algorithm", valid_626648 - var valid_626649 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626648 + var valid_626649 = header.getOrDefault("X-Amz-Security-Token") valid_626649 = validateParameter(valid_626649, JString, required = false, default = nil) if valid_626649 != nil: - section.add "X-Amz-SignedHeaders", valid_626649 + section.add "X-Amz-Security-Token", valid_626649 + var valid_626650 = header.getOrDefault("X-Amz-Algorithm") + valid_626650 = validateParameter(valid_626650, JString, required = false, + default = nil) + if valid_626650 != nil: + section.add "X-Amz-Algorithm", valid_626650 + var valid_626651 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626651 = validateParameter(valid_626651, JString, required = false, + default = nil) + if valid_626651 != nil: + section.add "X-Amz-SignedHeaders", valid_626651 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626650: Call_GetRevokeSecurityGroupEgress_626629; path: JsonNode; +proc call*(call_626652: Call_GetRevokeSecurityGroupEgress_626631; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    [VPC only] Removes the specified egress rules from a security group for EC2-VPC. This action doesn't apply to security groups for use in EC2-Classic. To remove a rule, the values that you specify (for example, ports) must match the existing rule's values exactly.

    Each rule consists of the protocol and the IPv4 or IPv6 CIDR range or source security group. For the TCP and UDP protocols, you must also specify the destination port or range of ports. For the ICMP protocol, you must also specify the ICMP type and code. If the security group rule has a description, you do not have to specify the description to revoke the rule.

    Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.

    ## - let valid = call_626650.validator(path, query, header, formData, body) - let scheme = call_626650.pickScheme + let valid = call_626652.validator(path, query, header, formData, body) + let scheme = call_626652.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626650.url(scheme.get, call_626650.host, call_626650.base, - call_626650.route, valid.getOrDefault("path"), + let url = call_626652.url(scheme.get, call_626652.host, call_626652.base, + call_626652.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626650, url, valid) + result = atozHook(call_626652, url, valid) -proc call*(call_626651: Call_GetRevokeSecurityGroupEgress_626629; GroupId: string; +proc call*(call_626653: Call_GetRevokeSecurityGroupEgress_626631; GroupId: string; IpProtocol: string = ""; DryRun: bool = false; SourceSecurityGroupOwnerId: string = ""; FromPort: int = 0; SourceSecurityGroupName: string = ""; ToPort: int = 0; @@ -129362,31 +129389,31 @@ proc call*(call_626651: Call_GetRevokeSecurityGroupEgress_626629; GroupId: strin ## Version: string (required) ## CidrIp: string ## : Not supported. Use a set of IP permissions to specify the CIDR. - var query_626652 = newJObject() - add(query_626652, "IpProtocol", newJString(IpProtocol)) - add(query_626652, "DryRun", newJBool(DryRun)) - add(query_626652, "SourceSecurityGroupOwnerId", + var query_626654 = newJObject() + add(query_626654, "IpProtocol", newJString(IpProtocol)) + add(query_626654, "DryRun", newJBool(DryRun)) + add(query_626654, "SourceSecurityGroupOwnerId", newJString(SourceSecurityGroupOwnerId)) - add(query_626652, "FromPort", newJInt(FromPort)) - add(query_626652, "SourceSecurityGroupName", newJString(SourceSecurityGroupName)) - add(query_626652, "ToPort", newJInt(ToPort)) + add(query_626654, "FromPort", newJInt(FromPort)) + add(query_626654, "SourceSecurityGroupName", newJString(SourceSecurityGroupName)) + add(query_626654, "ToPort", newJInt(ToPort)) if IpPermissions != nil: - query_626652.add "IpPermissions", IpPermissions - add(query_626652, "Action", newJString(Action)) - add(query_626652, "GroupId", newJString(GroupId)) - add(query_626652, "Version", newJString(Version)) - add(query_626652, "CidrIp", newJString(CidrIp)) - result = call_626651.call(nil, query_626652, nil, nil, nil) - -var getRevokeSecurityGroupEgress* = Call_GetRevokeSecurityGroupEgress_626629( + query_626654.add "IpPermissions", IpPermissions + add(query_626654, "Action", newJString(Action)) + add(query_626654, "GroupId", newJString(GroupId)) + add(query_626654, "Version", newJString(Version)) + add(query_626654, "CidrIp", newJString(CidrIp)) + result = call_626653.call(nil, query_626654, nil, nil, nil) + +var getRevokeSecurityGroupEgress* = Call_GetRevokeSecurityGroupEgress_626631( name: "getRevokeSecurityGroupEgress", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=RevokeSecurityGroupEgress", - validator: validate_GetRevokeSecurityGroupEgress_626630, base: "/", - url: url_GetRevokeSecurityGroupEgress_626631, + validator: validate_GetRevokeSecurityGroupEgress_626632, base: "/", + url: url_GetRevokeSecurityGroupEgress_626633, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostRevokeSecurityGroupIngress_626703 = ref object of OpenApiRestCall_610658 -proc url_PostRevokeSecurityGroupIngress_626705(protocol: Scheme; host: string; + Call_PostRevokeSecurityGroupIngress_626705 = ref object of OpenApiRestCall_610658 +proc url_PostRevokeSecurityGroupIngress_626707(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -129396,7 +129423,7 @@ proc url_PostRevokeSecurityGroupIngress_626705(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostRevokeSecurityGroupIngress_626704(path: JsonNode; +proc validate_PostRevokeSecurityGroupIngress_626706(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Removes the specified ingress rules from a security group. To remove a rule, the values that you specify (for example, ports) must match the existing rule's values exactly.

    [EC2-Classic only] If the values you specify do not match the existing rule's values, no error is returned. Use DescribeSecurityGroups to verify that the rule has been removed.

    Each rule consists of the protocol and the CIDR range or source security group. For the TCP and UDP protocols, you must also specify the destination port or range of ports. For the ICMP protocol, you must also specify the ICMP type and code. If the security group rule has a description, you do not have to specify the description to revoke the rule.

    Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.

    ## @@ -129408,16 +129435,16 @@ proc validate_PostRevokeSecurityGroupIngress_626704(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_626706 = query.getOrDefault("Action") - valid_626706 = validateParameter(valid_626706, JString, required = true, default = newJString( + var valid_626708 = query.getOrDefault("Action") + valid_626708 = validateParameter(valid_626708, JString, required = true, default = newJString( "RevokeSecurityGroupIngress")) - if valid_626706 != nil: - section.add "Action", valid_626706 - var valid_626707 = query.getOrDefault("Version") - valid_626707 = validateParameter(valid_626707, JString, required = true, + if valid_626708 != nil: + section.add "Action", valid_626708 + var valid_626709 = query.getOrDefault("Version") + valid_626709 = validateParameter(valid_626709, JString, required = true, default = newJString("2016-11-15")) - if valid_626707 != nil: - section.add "Version", valid_626707 + if valid_626709 != nil: + section.add "Version", valid_626709 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -129428,41 +129455,41 @@ proc validate_PostRevokeSecurityGroupIngress_626704(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626708 = header.getOrDefault("X-Amz-Signature") - valid_626708 = validateParameter(valid_626708, JString, required = false, - default = nil) - if valid_626708 != nil: - section.add "X-Amz-Signature", valid_626708 - var valid_626709 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626709 = validateParameter(valid_626709, JString, required = false, - default = nil) - if valid_626709 != nil: - section.add "X-Amz-Content-Sha256", valid_626709 - var valid_626710 = header.getOrDefault("X-Amz-Date") + var valid_626710 = header.getOrDefault("X-Amz-Signature") valid_626710 = validateParameter(valid_626710, JString, required = false, default = nil) if valid_626710 != nil: - section.add "X-Amz-Date", valid_626710 - var valid_626711 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626710 + var valid_626711 = header.getOrDefault("X-Amz-Content-Sha256") valid_626711 = validateParameter(valid_626711, JString, required = false, default = nil) if valid_626711 != nil: - section.add "X-Amz-Credential", valid_626711 - var valid_626712 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626711 + var valid_626712 = header.getOrDefault("X-Amz-Date") valid_626712 = validateParameter(valid_626712, JString, required = false, default = nil) if valid_626712 != nil: - section.add "X-Amz-Security-Token", valid_626712 - var valid_626713 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626712 + var valid_626713 = header.getOrDefault("X-Amz-Credential") valid_626713 = validateParameter(valid_626713, JString, required = false, default = nil) if valid_626713 != nil: - section.add "X-Amz-Algorithm", valid_626713 - var valid_626714 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626713 + var valid_626714 = header.getOrDefault("X-Amz-Security-Token") valid_626714 = validateParameter(valid_626714, JString, required = false, default = nil) if valid_626714 != nil: - section.add "X-Amz-SignedHeaders", valid_626714 + section.add "X-Amz-Security-Token", valid_626714 + var valid_626715 = header.getOrDefault("X-Amz-Algorithm") + valid_626715 = validateParameter(valid_626715, JString, required = false, + default = nil) + if valid_626715 != nil: + section.add "X-Amz-Algorithm", valid_626715 + var valid_626716 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626716 = validateParameter(valid_626716, JString, required = false, + default = nil) + if valid_626716 != nil: + section.add "X-Amz-SignedHeaders", valid_626716 result.add "header", section ## parameters in `formData` object: ## GroupId: JString @@ -129487,71 +129514,71 @@ proc validate_PostRevokeSecurityGroupIngress_626704(path: JsonNode; ## IpPermissions: JArray ## : The sets of IP permissions. You can't specify a source security group and a CIDR IP address range in the same set of permissions. section = newJObject() - var valid_626715 = formData.getOrDefault("GroupId") - valid_626715 = validateParameter(valid_626715, JString, required = false, - default = nil) - if valid_626715 != nil: - section.add "GroupId", valid_626715 - var valid_626716 = formData.getOrDefault("ToPort") - valid_626716 = validateParameter(valid_626716, JInt, required = false, default = nil) - if valid_626716 != nil: - section.add "ToPort", valid_626716 - var valid_626717 = formData.getOrDefault("IpProtocol") + var valid_626717 = formData.getOrDefault("GroupId") valid_626717 = validateParameter(valid_626717, JString, required = false, default = nil) if valid_626717 != nil: - section.add "IpProtocol", valid_626717 - var valid_626718 = formData.getOrDefault("SourceSecurityGroupName") - valid_626718 = validateParameter(valid_626718, JString, required = false, - default = nil) + section.add "GroupId", valid_626717 + var valid_626718 = formData.getOrDefault("ToPort") + valid_626718 = validateParameter(valid_626718, JInt, required = false, default = nil) if valid_626718 != nil: - section.add "SourceSecurityGroupName", valid_626718 - var valid_626719 = formData.getOrDefault("CidrIp") + section.add "ToPort", valid_626718 + var valid_626719 = formData.getOrDefault("IpProtocol") valid_626719 = validateParameter(valid_626719, JString, required = false, default = nil) if valid_626719 != nil: - section.add "CidrIp", valid_626719 - var valid_626720 = formData.getOrDefault("GroupName") + section.add "IpProtocol", valid_626719 + var valid_626720 = formData.getOrDefault("SourceSecurityGroupName") valid_626720 = validateParameter(valid_626720, JString, required = false, default = nil) if valid_626720 != nil: - section.add "GroupName", valid_626720 - var valid_626721 = formData.getOrDefault("DryRun") - valid_626721 = validateParameter(valid_626721, JBool, required = false, default = nil) + section.add "SourceSecurityGroupName", valid_626720 + var valid_626721 = formData.getOrDefault("CidrIp") + valid_626721 = validateParameter(valid_626721, JString, required = false, + default = nil) if valid_626721 != nil: - section.add "DryRun", valid_626721 - var valid_626722 = formData.getOrDefault("SourceSecurityGroupOwnerId") + section.add "CidrIp", valid_626721 + var valid_626722 = formData.getOrDefault("GroupName") valid_626722 = validateParameter(valid_626722, JString, required = false, default = nil) if valid_626722 != nil: - section.add "SourceSecurityGroupOwnerId", valid_626722 - var valid_626723 = formData.getOrDefault("FromPort") - valid_626723 = validateParameter(valid_626723, JInt, required = false, default = nil) + section.add "GroupName", valid_626722 + var valid_626723 = formData.getOrDefault("DryRun") + valid_626723 = validateParameter(valid_626723, JBool, required = false, default = nil) if valid_626723 != nil: - section.add "FromPort", valid_626723 - var valid_626724 = formData.getOrDefault("IpPermissions") - valid_626724 = validateParameter(valid_626724, JArray, required = false, + section.add "DryRun", valid_626723 + var valid_626724 = formData.getOrDefault("SourceSecurityGroupOwnerId") + valid_626724 = validateParameter(valid_626724, JString, required = false, default = nil) if valid_626724 != nil: - section.add "IpPermissions", valid_626724 + section.add "SourceSecurityGroupOwnerId", valid_626724 + var valid_626725 = formData.getOrDefault("FromPort") + valid_626725 = validateParameter(valid_626725, JInt, required = false, default = nil) + if valid_626725 != nil: + section.add "FromPort", valid_626725 + var valid_626726 = formData.getOrDefault("IpPermissions") + valid_626726 = validateParameter(valid_626726, JArray, required = false, + default = nil) + if valid_626726 != nil: + section.add "IpPermissions", valid_626726 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626725: Call_PostRevokeSecurityGroupIngress_626703; path: JsonNode; +proc call*(call_626727: Call_PostRevokeSecurityGroupIngress_626705; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Removes the specified ingress rules from a security group. To remove a rule, the values that you specify (for example, ports) must match the existing rule's values exactly.

    [EC2-Classic only] If the values you specify do not match the existing rule's values, no error is returned. Use DescribeSecurityGroups to verify that the rule has been removed.

    Each rule consists of the protocol and the CIDR range or source security group. For the TCP and UDP protocols, you must also specify the destination port or range of ports. For the ICMP protocol, you must also specify the ICMP type and code. If the security group rule has a description, you do not have to specify the description to revoke the rule.

    Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.

    ## - let valid = call_626725.validator(path, query, header, formData, body) - let scheme = call_626725.pickScheme + let valid = call_626727.validator(path, query, header, formData, body) + let scheme = call_626727.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626725.url(scheme.get, call_626725.host, call_626725.base, - call_626725.route, valid.getOrDefault("path"), + let url = call_626727.url(scheme.get, call_626727.host, call_626727.base, + call_626727.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626725, url, valid) + result = atozHook(call_626727, url, valid) -proc call*(call_626726: Call_PostRevokeSecurityGroupIngress_626703; +proc call*(call_626728: Call_PostRevokeSecurityGroupIngress_626705; GroupId: string = ""; ToPort: int = 0; IpProtocol: string = ""; SourceSecurityGroupName: string = ""; CidrIp: string = ""; GroupName: string = ""; DryRun: bool = false; @@ -129583,34 +129610,34 @@ proc call*(call_626726: Call_PostRevokeSecurityGroupIngress_626703; ## Version: string (required) ## IpPermissions: JArray ## : The sets of IP permissions. You can't specify a source security group and a CIDR IP address range in the same set of permissions. - var query_626727 = newJObject() - var formData_626728 = newJObject() - add(formData_626728, "GroupId", newJString(GroupId)) - add(formData_626728, "ToPort", newJInt(ToPort)) - add(formData_626728, "IpProtocol", newJString(IpProtocol)) - add(formData_626728, "SourceSecurityGroupName", + var query_626729 = newJObject() + var formData_626730 = newJObject() + add(formData_626730, "GroupId", newJString(GroupId)) + add(formData_626730, "ToPort", newJInt(ToPort)) + add(formData_626730, "IpProtocol", newJString(IpProtocol)) + add(formData_626730, "SourceSecurityGroupName", newJString(SourceSecurityGroupName)) - add(formData_626728, "CidrIp", newJString(CidrIp)) - add(formData_626728, "GroupName", newJString(GroupName)) - add(formData_626728, "DryRun", newJBool(DryRun)) - add(query_626727, "Action", newJString(Action)) - add(formData_626728, "SourceSecurityGroupOwnerId", + add(formData_626730, "CidrIp", newJString(CidrIp)) + add(formData_626730, "GroupName", newJString(GroupName)) + add(formData_626730, "DryRun", newJBool(DryRun)) + add(query_626729, "Action", newJString(Action)) + add(formData_626730, "SourceSecurityGroupOwnerId", newJString(SourceSecurityGroupOwnerId)) - add(formData_626728, "FromPort", newJInt(FromPort)) - add(query_626727, "Version", newJString(Version)) + add(formData_626730, "FromPort", newJInt(FromPort)) + add(query_626729, "Version", newJString(Version)) if IpPermissions != nil: - formData_626728.add "IpPermissions", IpPermissions - result = call_626726.call(nil, query_626727, nil, formData_626728, nil) + formData_626730.add "IpPermissions", IpPermissions + result = call_626728.call(nil, query_626729, nil, formData_626730, nil) -var postRevokeSecurityGroupIngress* = Call_PostRevokeSecurityGroupIngress_626703( +var postRevokeSecurityGroupIngress* = Call_PostRevokeSecurityGroupIngress_626705( name: "postRevokeSecurityGroupIngress", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=RevokeSecurityGroupIngress", - validator: validate_PostRevokeSecurityGroupIngress_626704, base: "/", - url: url_PostRevokeSecurityGroupIngress_626705, + validator: validate_PostRevokeSecurityGroupIngress_626706, base: "/", + url: url_PostRevokeSecurityGroupIngress_626707, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetRevokeSecurityGroupIngress_626678 = ref object of OpenApiRestCall_610658 -proc url_GetRevokeSecurityGroupIngress_626680(protocol: Scheme; host: string; + Call_GetRevokeSecurityGroupIngress_626680 = ref object of OpenApiRestCall_610658 +proc url_GetRevokeSecurityGroupIngress_626682(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -129620,7 +129647,7 @@ proc url_GetRevokeSecurityGroupIngress_626680(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetRevokeSecurityGroupIngress_626679(path: JsonNode; query: JsonNode; +proc validate_GetRevokeSecurityGroupIngress_626681(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Removes the specified ingress rules from a security group. To remove a rule, the values that you specify (for example, ports) must match the existing rule's values exactly.

    [EC2-Classic only] If the values you specify do not match the existing rule's values, no error is returned. Use DescribeSecurityGroups to verify that the rule has been removed.

    Each rule consists of the protocol and the CIDR range or source security group. For the TCP and UDP protocols, you must also specify the destination port or range of ports. For the ICMP protocol, you must also specify the ICMP type and code. If the security group rule has a description, you do not have to specify the description to revoke the rule.

    Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.

    ## @@ -129653,63 +129680,63 @@ proc validate_GetRevokeSecurityGroupIngress_626679(path: JsonNode; query: JsonNo ## CidrIp: JString ## : The CIDR IP address range. You can't specify this parameter when specifying a source security group. section = newJObject() - var valid_626681 = query.getOrDefault("IpProtocol") - valid_626681 = validateParameter(valid_626681, JString, required = false, - default = nil) - if valid_626681 != nil: - section.add "IpProtocol", valid_626681 - var valid_626682 = query.getOrDefault("GroupName") - valid_626682 = validateParameter(valid_626682, JString, required = false, + var valid_626683 = query.getOrDefault("IpProtocol") + valid_626683 = validateParameter(valid_626683, JString, required = false, default = nil) - if valid_626682 != nil: - section.add "GroupName", valid_626682 - var valid_626683 = query.getOrDefault("DryRun") - valid_626683 = validateParameter(valid_626683, JBool, required = false, default = nil) if valid_626683 != nil: - section.add "DryRun", valid_626683 - var valid_626684 = query.getOrDefault("SourceSecurityGroupOwnerId") + section.add "IpProtocol", valid_626683 + var valid_626684 = query.getOrDefault("GroupName") valid_626684 = validateParameter(valid_626684, JString, required = false, default = nil) if valid_626684 != nil: - section.add "SourceSecurityGroupOwnerId", valid_626684 - var valid_626685 = query.getOrDefault("FromPort") - valid_626685 = validateParameter(valid_626685, JInt, required = false, default = nil) + section.add "GroupName", valid_626684 + var valid_626685 = query.getOrDefault("DryRun") + valid_626685 = validateParameter(valid_626685, JBool, required = false, default = nil) if valid_626685 != nil: - section.add "FromPort", valid_626685 - var valid_626686 = query.getOrDefault("SourceSecurityGroupName") + section.add "DryRun", valid_626685 + var valid_626686 = query.getOrDefault("SourceSecurityGroupOwnerId") valid_626686 = validateParameter(valid_626686, JString, required = false, default = nil) if valid_626686 != nil: - section.add "SourceSecurityGroupName", valid_626686 - var valid_626687 = query.getOrDefault("ToPort") + section.add "SourceSecurityGroupOwnerId", valid_626686 + var valid_626687 = query.getOrDefault("FromPort") valid_626687 = validateParameter(valid_626687, JInt, required = false, default = nil) if valid_626687 != nil: - section.add "ToPort", valid_626687 - var valid_626688 = query.getOrDefault("IpPermissions") - valid_626688 = validateParameter(valid_626688, JArray, required = false, + section.add "FromPort", valid_626687 + var valid_626688 = query.getOrDefault("SourceSecurityGroupName") + valid_626688 = validateParameter(valid_626688, JString, required = false, default = nil) if valid_626688 != nil: - section.add "IpPermissions", valid_626688 - var valid_626689 = query.getOrDefault("Action") - valid_626689 = validateParameter(valid_626689, JString, required = true, default = newJString( - "RevokeSecurityGroupIngress")) + section.add "SourceSecurityGroupName", valid_626688 + var valid_626689 = query.getOrDefault("ToPort") + valid_626689 = validateParameter(valid_626689, JInt, required = false, default = nil) if valid_626689 != nil: - section.add "Action", valid_626689 - var valid_626690 = query.getOrDefault("GroupId") - valid_626690 = validateParameter(valid_626690, JString, required = false, + section.add "ToPort", valid_626689 + var valid_626690 = query.getOrDefault("IpPermissions") + valid_626690 = validateParameter(valid_626690, JArray, required = false, default = nil) if valid_626690 != nil: - section.add "GroupId", valid_626690 - var valid_626691 = query.getOrDefault("Version") - valid_626691 = validateParameter(valid_626691, JString, required = true, - default = newJString("2016-11-15")) + section.add "IpPermissions", valid_626690 + var valid_626691 = query.getOrDefault("Action") + valid_626691 = validateParameter(valid_626691, JString, required = true, default = newJString( + "RevokeSecurityGroupIngress")) if valid_626691 != nil: - section.add "Version", valid_626691 - var valid_626692 = query.getOrDefault("CidrIp") + section.add "Action", valid_626691 + var valid_626692 = query.getOrDefault("GroupId") valid_626692 = validateParameter(valid_626692, JString, required = false, default = nil) if valid_626692 != nil: - section.add "CidrIp", valid_626692 + section.add "GroupId", valid_626692 + var valid_626693 = query.getOrDefault("Version") + valid_626693 = validateParameter(valid_626693, JString, required = true, + default = newJString("2016-11-15")) + if valid_626693 != nil: + section.add "Version", valid_626693 + var valid_626694 = query.getOrDefault("CidrIp") + valid_626694 = validateParameter(valid_626694, JString, required = false, + default = nil) + if valid_626694 != nil: + section.add "CidrIp", valid_626694 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -129720,61 +129747,61 @@ proc validate_GetRevokeSecurityGroupIngress_626679(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626693 = header.getOrDefault("X-Amz-Signature") - valid_626693 = validateParameter(valid_626693, JString, required = false, - default = nil) - if valid_626693 != nil: - section.add "X-Amz-Signature", valid_626693 - var valid_626694 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626694 = validateParameter(valid_626694, JString, required = false, - default = nil) - if valid_626694 != nil: - section.add "X-Amz-Content-Sha256", valid_626694 - var valid_626695 = header.getOrDefault("X-Amz-Date") + var valid_626695 = header.getOrDefault("X-Amz-Signature") valid_626695 = validateParameter(valid_626695, JString, required = false, default = nil) if valid_626695 != nil: - section.add "X-Amz-Date", valid_626695 - var valid_626696 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626695 + var valid_626696 = header.getOrDefault("X-Amz-Content-Sha256") valid_626696 = validateParameter(valid_626696, JString, required = false, default = nil) if valid_626696 != nil: - section.add "X-Amz-Credential", valid_626696 - var valid_626697 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626696 + var valid_626697 = header.getOrDefault("X-Amz-Date") valid_626697 = validateParameter(valid_626697, JString, required = false, default = nil) if valid_626697 != nil: - section.add "X-Amz-Security-Token", valid_626697 - var valid_626698 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626697 + var valid_626698 = header.getOrDefault("X-Amz-Credential") valid_626698 = validateParameter(valid_626698, JString, required = false, default = nil) if valid_626698 != nil: - section.add "X-Amz-Algorithm", valid_626698 - var valid_626699 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626698 + var valid_626699 = header.getOrDefault("X-Amz-Security-Token") valid_626699 = validateParameter(valid_626699, JString, required = false, default = nil) if valid_626699 != nil: - section.add "X-Amz-SignedHeaders", valid_626699 + section.add "X-Amz-Security-Token", valid_626699 + var valid_626700 = header.getOrDefault("X-Amz-Algorithm") + valid_626700 = validateParameter(valid_626700, JString, required = false, + default = nil) + if valid_626700 != nil: + section.add "X-Amz-Algorithm", valid_626700 + var valid_626701 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626701 = validateParameter(valid_626701, JString, required = false, + default = nil) + if valid_626701 != nil: + section.add "X-Amz-SignedHeaders", valid_626701 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626700: Call_GetRevokeSecurityGroupIngress_626678; path: JsonNode; +proc call*(call_626702: Call_GetRevokeSecurityGroupIngress_626680; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Removes the specified ingress rules from a security group. To remove a rule, the values that you specify (for example, ports) must match the existing rule's values exactly.

    [EC2-Classic only] If the values you specify do not match the existing rule's values, no error is returned. Use DescribeSecurityGroups to verify that the rule has been removed.

    Each rule consists of the protocol and the CIDR range or source security group. For the TCP and UDP protocols, you must also specify the destination port or range of ports. For the ICMP protocol, you must also specify the ICMP type and code. If the security group rule has a description, you do not have to specify the description to revoke the rule.

    Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.

    ## - let valid = call_626700.validator(path, query, header, formData, body) - let scheme = call_626700.pickScheme + let valid = call_626702.validator(path, query, header, formData, body) + let scheme = call_626702.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626700.url(scheme.get, call_626700.host, call_626700.base, - call_626700.route, valid.getOrDefault("path"), + let url = call_626702.url(scheme.get, call_626702.host, call_626702.base, + call_626702.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626700, url, valid) + result = atozHook(call_626702, url, valid) -proc call*(call_626701: Call_GetRevokeSecurityGroupIngress_626678; +proc call*(call_626703: Call_GetRevokeSecurityGroupIngress_626680; IpProtocol: string = ""; GroupName: string = ""; DryRun: bool = false; SourceSecurityGroupOwnerId: string = ""; FromPort: int = 0; SourceSecurityGroupName: string = ""; ToPort: int = 0; @@ -129806,32 +129833,32 @@ proc call*(call_626701: Call_GetRevokeSecurityGroupIngress_626678; ## Version: string (required) ## CidrIp: string ## : The CIDR IP address range. You can't specify this parameter when specifying a source security group. - var query_626702 = newJObject() - add(query_626702, "IpProtocol", newJString(IpProtocol)) - add(query_626702, "GroupName", newJString(GroupName)) - add(query_626702, "DryRun", newJBool(DryRun)) - add(query_626702, "SourceSecurityGroupOwnerId", + var query_626704 = newJObject() + add(query_626704, "IpProtocol", newJString(IpProtocol)) + add(query_626704, "GroupName", newJString(GroupName)) + add(query_626704, "DryRun", newJBool(DryRun)) + add(query_626704, "SourceSecurityGroupOwnerId", newJString(SourceSecurityGroupOwnerId)) - add(query_626702, "FromPort", newJInt(FromPort)) - add(query_626702, "SourceSecurityGroupName", newJString(SourceSecurityGroupName)) - add(query_626702, "ToPort", newJInt(ToPort)) + add(query_626704, "FromPort", newJInt(FromPort)) + add(query_626704, "SourceSecurityGroupName", newJString(SourceSecurityGroupName)) + add(query_626704, "ToPort", newJInt(ToPort)) if IpPermissions != nil: - query_626702.add "IpPermissions", IpPermissions - add(query_626702, "Action", newJString(Action)) - add(query_626702, "GroupId", newJString(GroupId)) - add(query_626702, "Version", newJString(Version)) - add(query_626702, "CidrIp", newJString(CidrIp)) - result = call_626701.call(nil, query_626702, nil, nil, nil) - -var getRevokeSecurityGroupIngress* = Call_GetRevokeSecurityGroupIngress_626678( + query_626704.add "IpPermissions", IpPermissions + add(query_626704, "Action", newJString(Action)) + add(query_626704, "GroupId", newJString(GroupId)) + add(query_626704, "Version", newJString(Version)) + add(query_626704, "CidrIp", newJString(CidrIp)) + result = call_626703.call(nil, query_626704, nil, nil, nil) + +var getRevokeSecurityGroupIngress* = Call_GetRevokeSecurityGroupIngress_626680( name: "getRevokeSecurityGroupIngress", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=RevokeSecurityGroupIngress", - validator: validate_GetRevokeSecurityGroupIngress_626679, base: "/", - url: url_GetRevokeSecurityGroupIngress_626680, + validator: validate_GetRevokeSecurityGroupIngress_626681, base: "/", + url: url_GetRevokeSecurityGroupIngress_626682, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostRunInstances_626813 = ref object of OpenApiRestCall_610658 -proc url_PostRunInstances_626815(protocol: Scheme; host: string; base: string; + Call_PostRunInstances_626815 = ref object of OpenApiRestCall_610658 +proc url_PostRunInstances_626817(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -129841,7 +129868,7 @@ proc url_PostRunInstances_626815(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostRunInstances_626814(path: JsonNode; query: JsonNode; +proc validate_PostRunInstances_626816(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Launches the specified number of instances using an AMI for which you have permissions.

    You can specify a number of options, or leave the default options. The following rules apply:

    You can create a launch template, which is a resource that contains the parameters to launch an instance. When you launch an instance using RunInstances, you can specify the launch template instead of specifying the launch parameters.

    To ensure faster instance launches, break up large requests into smaller batches. For example, create five separate launch requests for 100 instances each instead of one launch request for 500 instances.

    An instance is ready for you to use when it's in the running state. You can check the state of your instance using DescribeInstances. You can tag instances and EBS volumes during launch, after launch, or both. For more information, see CreateTags and Tagging Your Amazon EC2 Resources.

    Linux instances have access to the public key of the key pair at boot. You can use this key to provide secure access to the instance. Amazon EC2 public images use this feature to provide secure access without passwords. For more information, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.

    For troubleshooting, see What To Do If An Instance Immediately Terminates, and Troubleshooting Connecting to Your Instance in the Amazon Elastic Compute Cloud User Guide.

    @@ -129854,16 +129881,16 @@ proc validate_PostRunInstances_626814(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_626816 = query.getOrDefault("Action") - valid_626816 = validateParameter(valid_626816, JString, required = true, + var valid_626818 = query.getOrDefault("Action") + valid_626818 = validateParameter(valid_626818, JString, required = true, default = newJString("RunInstances")) - if valid_626816 != nil: - section.add "Action", valid_626816 - var valid_626817 = query.getOrDefault("Version") - valid_626817 = validateParameter(valid_626817, JString, required = true, + if valid_626818 != nil: + section.add "Action", valid_626818 + var valid_626819 = query.getOrDefault("Version") + valid_626819 = validateParameter(valid_626819, JString, required = true, default = newJString("2016-11-15")) - if valid_626817 != nil: - section.add "Version", valid_626817 + if valid_626819 != nil: + section.add "Version", valid_626819 result.add "query", section ## parameters in `header` object: ## X-Amz-Security-Token: JString @@ -129874,41 +129901,41 @@ proc validate_PostRunInstances_626814(path: JsonNode; query: JsonNode; ## X-Amz-Credential: JString ## X-Amz-Algorithm: JString section = newJObject() - var valid_626818 = header.getOrDefault("X-Amz-Security-Token") - valid_626818 = validateParameter(valid_626818, JString, required = false, - default = nil) - if valid_626818 != nil: - section.add "X-Amz-Security-Token", valid_626818 - var valid_626819 = header.getOrDefault("X-Amz-SignedHeaders") - valid_626819 = validateParameter(valid_626819, JString, required = false, - default = nil) - if valid_626819 != nil: - section.add "X-Amz-SignedHeaders", valid_626819 - var valid_626820 = header.getOrDefault("X-Amz-Signature") + var valid_626820 = header.getOrDefault("X-Amz-Security-Token") valid_626820 = validateParameter(valid_626820, JString, required = false, default = nil) if valid_626820 != nil: - section.add "X-Amz-Signature", valid_626820 - var valid_626821 = header.getOrDefault("X-Amz-Content-Sha256") + section.add "X-Amz-Security-Token", valid_626820 + var valid_626821 = header.getOrDefault("X-Amz-SignedHeaders") valid_626821 = validateParameter(valid_626821, JString, required = false, default = nil) if valid_626821 != nil: - section.add "X-Amz-Content-Sha256", valid_626821 - var valid_626822 = header.getOrDefault("X-Amz-Date") + section.add "X-Amz-SignedHeaders", valid_626821 + var valid_626822 = header.getOrDefault("X-Amz-Signature") valid_626822 = validateParameter(valid_626822, JString, required = false, default = nil) if valid_626822 != nil: - section.add "X-Amz-Date", valid_626822 - var valid_626823 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626822 + var valid_626823 = header.getOrDefault("X-Amz-Content-Sha256") valid_626823 = validateParameter(valid_626823, JString, required = false, default = nil) if valid_626823 != nil: - section.add "X-Amz-Credential", valid_626823 - var valid_626824 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Content-Sha256", valid_626823 + var valid_626824 = header.getOrDefault("X-Amz-Date") valid_626824 = validateParameter(valid_626824, JString, required = false, default = nil) if valid_626824 != nil: - section.add "X-Amz-Algorithm", valid_626824 + section.add "X-Amz-Date", valid_626824 + var valid_626825 = header.getOrDefault("X-Amz-Credential") + valid_626825 = validateParameter(valid_626825, JString, required = false, + default = nil) + if valid_626825 != nil: + section.add "X-Amz-Credential", valid_626825 + var valid_626826 = header.getOrDefault("X-Amz-Algorithm") + valid_626826 = validateParameter(valid_626826, JString, required = false, + default = nil) + if valid_626826 != nil: + section.add "X-Amz-Algorithm", valid_626826 result.add "header", section ## parameters in `formData` object: ## InstanceType: JString @@ -130055,277 +130082,277 @@ proc validate_PostRunInstances_626814(path: JsonNode; query: JsonNode; ## LicenseSpecification: JArray ## : The license configurations. section = newJObject() - var valid_626825 = formData.getOrDefault("InstanceType") - valid_626825 = validateParameter(valid_626825, JString, required = false, - default = newJString("t1.micro")) - if valid_626825 != nil: - section.add "InstanceType", valid_626825 - var valid_626826 = formData.getOrDefault("Placement.Tenancy") - valid_626826 = validateParameter(valid_626826, JString, required = false, - default = nil) - if valid_626826 != nil: - section.add "Placement.Tenancy", valid_626826 - var valid_626827 = formData.getOrDefault("Placement.HostResourceGroupArn") + var valid_626827 = formData.getOrDefault("InstanceType") valid_626827 = validateParameter(valid_626827, JString, required = false, - default = nil) + default = newJString("t1.micro")) if valid_626827 != nil: - section.add "Placement.HostResourceGroupArn", valid_626827 - var valid_626828 = formData.getOrDefault("SecurityGroupId") - valid_626828 = validateParameter(valid_626828, JArray, required = false, + section.add "InstanceType", valid_626827 + var valid_626828 = formData.getOrDefault("Placement.Tenancy") + valid_626828 = validateParameter(valid_626828, JString, required = false, default = nil) if valid_626828 != nil: - section.add "SecurityGroupId", valid_626828 - var valid_626829 = formData.getOrDefault("MetadataOptions.HttpEndpoint") + section.add "Placement.Tenancy", valid_626828 + var valid_626829 = formData.getOrDefault("Placement.HostResourceGroupArn") valid_626829 = validateParameter(valid_626829, JString, required = false, default = nil) if valid_626829 != nil: - section.add "MetadataOptions.HttpEndpoint", valid_626829 - var valid_626830 = formData.getOrDefault("Placement.HostId") - valid_626830 = validateParameter(valid_626830, JString, required = false, + section.add "Placement.HostResourceGroupArn", valid_626829 + var valid_626830 = formData.getOrDefault("SecurityGroupId") + valid_626830 = validateParameter(valid_626830, JArray, required = false, default = nil) if valid_626830 != nil: - section.add "Placement.HostId", valid_626830 - var valid_626831 = formData.getOrDefault("DisableApiTermination") - valid_626831 = validateParameter(valid_626831, JBool, required = false, default = nil) + section.add "SecurityGroupId", valid_626830 + var valid_626831 = formData.getOrDefault("MetadataOptions.HttpEndpoint") + valid_626831 = validateParameter(valid_626831, JString, required = false, + default = nil) if valid_626831 != nil: - section.add "DisableApiTermination", valid_626831 - var valid_626832 = formData.getOrDefault("LaunchTemplate.Version") + section.add "MetadataOptions.HttpEndpoint", valid_626831 + var valid_626832 = formData.getOrDefault("Placement.HostId") valid_626832 = validateParameter(valid_626832, JString, required = false, default = nil) if valid_626832 != nil: - section.add "LaunchTemplate.Version", valid_626832 - var valid_626833 = formData.getOrDefault("Placement.SpreadDomain") - valid_626833 = validateParameter(valid_626833, JString, required = false, - default = nil) + section.add "Placement.HostId", valid_626832 + var valid_626833 = formData.getOrDefault("DisableApiTermination") + valid_626833 = validateParameter(valid_626833, JBool, required = false, default = nil) if valid_626833 != nil: - section.add "Placement.SpreadDomain", valid_626833 - var valid_626834 = formData.getOrDefault("InstanceInitiatedShutdownBehavior") + section.add "DisableApiTermination", valid_626833 + var valid_626834 = formData.getOrDefault("LaunchTemplate.Version") valid_626834 = validateParameter(valid_626834, JString, required = false, - default = newJString("stop")) + default = nil) if valid_626834 != nil: - section.add "InstanceInitiatedShutdownBehavior", valid_626834 - var valid_626835 = formData.getOrDefault("CpuOptions.CoreCount") + section.add "LaunchTemplate.Version", valid_626834 + var valid_626835 = formData.getOrDefault("Placement.SpreadDomain") valid_626835 = validateParameter(valid_626835, JString, required = false, default = nil) if valid_626835 != nil: - section.add "CpuOptions.CoreCount", valid_626835 - var valid_626836 = formData.getOrDefault("ElasticGpuSpecification") - valid_626836 = validateParameter(valid_626836, JArray, required = false, - default = nil) + section.add "Placement.SpreadDomain", valid_626835 + var valid_626836 = formData.getOrDefault("InstanceInitiatedShutdownBehavior") + valid_626836 = validateParameter(valid_626836, JString, required = false, + default = newJString("stop")) if valid_626836 != nil: - section.add "ElasticGpuSpecification", valid_626836 - var valid_626837 = formData.getOrDefault("LaunchTemplate.LaunchTemplateId") + section.add "InstanceInitiatedShutdownBehavior", valid_626836 + var valid_626837 = formData.getOrDefault("CpuOptions.CoreCount") valid_626837 = validateParameter(valid_626837, JString, required = false, default = nil) if valid_626837 != nil: - section.add "LaunchTemplate.LaunchTemplateId", valid_626837 - var valid_626838 = formData.getOrDefault("ElasticInferenceAccelerator") + section.add "CpuOptions.CoreCount", valid_626837 + var valid_626838 = formData.getOrDefault("ElasticGpuSpecification") valid_626838 = validateParameter(valid_626838, JArray, required = false, default = nil) if valid_626838 != nil: - section.add "ElasticInferenceAccelerator", valid_626838 - var valid_626839 = formData.getOrDefault("Placement.PartitionNumber") + section.add "ElasticGpuSpecification", valid_626838 + var valid_626839 = formData.getOrDefault("LaunchTemplate.LaunchTemplateId") valid_626839 = validateParameter(valid_626839, JString, required = false, default = nil) if valid_626839 != nil: - section.add "Placement.PartitionNumber", valid_626839 - var valid_626840 = formData.getOrDefault("InstanceMarketOptions.MarketType") - valid_626840 = validateParameter(valid_626840, JString, required = false, + section.add "LaunchTemplate.LaunchTemplateId", valid_626839 + var valid_626840 = formData.getOrDefault("ElasticInferenceAccelerator") + valid_626840 = validateParameter(valid_626840, JArray, required = false, default = nil) if valid_626840 != nil: - section.add "InstanceMarketOptions.MarketType", valid_626840 - var valid_626841 = formData.getOrDefault("RamdiskId") + section.add "ElasticInferenceAccelerator", valid_626840 + var valid_626841 = formData.getOrDefault("Placement.PartitionNumber") valid_626841 = validateParameter(valid_626841, JString, required = false, default = nil) if valid_626841 != nil: - section.add "RamdiskId", valid_626841 - var valid_626842 = formData.getOrDefault("AdditionalInfo") + section.add "Placement.PartitionNumber", valid_626841 + var valid_626842 = formData.getOrDefault("InstanceMarketOptions.MarketType") valid_626842 = validateParameter(valid_626842, JString, required = false, default = nil) if valid_626842 != nil: - section.add "AdditionalInfo", valid_626842 - var valid_626843 = formData.getOrDefault("NetworkInterface") - valid_626843 = validateParameter(valid_626843, JArray, required = false, + section.add "InstanceMarketOptions.MarketType", valid_626842 + var valid_626843 = formData.getOrDefault("RamdiskId") + valid_626843 = validateParameter(valid_626843, JString, required = false, default = nil) if valid_626843 != nil: - section.add "NetworkInterface", valid_626843 - var valid_626844 = formData.getOrDefault("ClientToken") + section.add "RamdiskId", valid_626843 + var valid_626844 = formData.getOrDefault("AdditionalInfo") valid_626844 = validateParameter(valid_626844, JString, required = false, default = nil) if valid_626844 != nil: - section.add "ClientToken", valid_626844 - var valid_626845 = formData.getOrDefault("CreditSpecification.CpuCredits") - valid_626845 = validateParameter(valid_626845, JString, required = false, + section.add "AdditionalInfo", valid_626844 + var valid_626845 = formData.getOrDefault("NetworkInterface") + valid_626845 = validateParameter(valid_626845, JArray, required = false, default = nil) if valid_626845 != nil: - section.add "CreditSpecification.CpuCredits", valid_626845 - var valid_626846 = formData.getOrDefault("HibernationOptions.Configured") + section.add "NetworkInterface", valid_626845 + var valid_626846 = formData.getOrDefault("ClientToken") valid_626846 = validateParameter(valid_626846, JString, required = false, default = nil) if valid_626846 != nil: - section.add "HibernationOptions.Configured", valid_626846 - assert formData != nil, - "formData argument is necessary due to required `MinCount` field" - var valid_626847 = formData.getOrDefault("MinCount") - valid_626847 = validateParameter(valid_626847, JInt, required = true, default = nil) + section.add "ClientToken", valid_626846 + var valid_626847 = formData.getOrDefault("CreditSpecification.CpuCredits") + valid_626847 = validateParameter(valid_626847, JString, required = false, + default = nil) if valid_626847 != nil: - section.add "MinCount", valid_626847 - var valid_626848 = formData.getOrDefault("IamInstanceProfile.Arn") + section.add "CreditSpecification.CpuCredits", valid_626847 + var valid_626848 = formData.getOrDefault("HibernationOptions.Configured") valid_626848 = validateParameter(valid_626848, JString, required = false, default = nil) if valid_626848 != nil: - section.add "IamInstanceProfile.Arn", valid_626848 - var valid_626849 = formData.getOrDefault("UserData") - valid_626849 = validateParameter(valid_626849, JString, required = false, - default = nil) + section.add "HibernationOptions.Configured", valid_626848 + assert formData != nil, + "formData argument is necessary due to required `MinCount` field" + var valid_626849 = formData.getOrDefault("MinCount") + valid_626849 = validateParameter(valid_626849, JInt, required = true, default = nil) if valid_626849 != nil: - section.add "UserData", valid_626849 - var valid_626850 = formData.getOrDefault("CpuOptions.ThreadsPerCore") + section.add "MinCount", valid_626849 + var valid_626850 = formData.getOrDefault("IamInstanceProfile.Arn") valid_626850 = validateParameter(valid_626850, JString, required = false, default = nil) if valid_626850 != nil: - section.add "CpuOptions.ThreadsPerCore", valid_626850 - var valid_626851 = formData.getOrDefault("MetadataOptions.HttpPutResponseHopLimit") + section.add "IamInstanceProfile.Arn", valid_626850 + var valid_626851 = formData.getOrDefault("UserData") valid_626851 = validateParameter(valid_626851, JString, required = false, default = nil) if valid_626851 != nil: - section.add "MetadataOptions.HttpPutResponseHopLimit", valid_626851 - var valid_626852 = formData.getOrDefault("BlockDeviceMapping") - valid_626852 = validateParameter(valid_626852, JArray, required = false, + section.add "UserData", valid_626851 + var valid_626852 = formData.getOrDefault("CpuOptions.ThreadsPerCore") + valid_626852 = validateParameter(valid_626852, JString, required = false, default = nil) if valid_626852 != nil: - section.add "BlockDeviceMapping", valid_626852 - var valid_626853 = formData.getOrDefault("KeyName") + section.add "CpuOptions.ThreadsPerCore", valid_626852 + var valid_626853 = formData.getOrDefault("MetadataOptions.HttpPutResponseHopLimit") valid_626853 = validateParameter(valid_626853, JString, required = false, default = nil) if valid_626853 != nil: - section.add "KeyName", valid_626853 - var valid_626854 = formData.getOrDefault("Placement.Affinity") - valid_626854 = validateParameter(valid_626854, JString, required = false, + section.add "MetadataOptions.HttpPutResponseHopLimit", valid_626853 + var valid_626854 = formData.getOrDefault("BlockDeviceMapping") + valid_626854 = validateParameter(valid_626854, JArray, required = false, default = nil) if valid_626854 != nil: - section.add "Placement.Affinity", valid_626854 - var valid_626855 = formData.getOrDefault("Ipv6AddressCount") - valid_626855 = validateParameter(valid_626855, JInt, required = false, default = nil) + section.add "BlockDeviceMapping", valid_626854 + var valid_626855 = formData.getOrDefault("KeyName") + valid_626855 = validateParameter(valid_626855, JString, required = false, + default = nil) if valid_626855 != nil: - section.add "Ipv6AddressCount", valid_626855 - var valid_626856 = formData.getOrDefault("Placement.GroupName") + section.add "KeyName", valid_626855 + var valid_626856 = formData.getOrDefault("Placement.Affinity") valid_626856 = validateParameter(valid_626856, JString, required = false, default = nil) if valid_626856 != nil: - section.add "Placement.GroupName", valid_626856 - var valid_626857 = formData.getOrDefault("IamInstanceProfile.Name") - valid_626857 = validateParameter(valid_626857, JString, required = false, - default = nil) + section.add "Placement.Affinity", valid_626856 + var valid_626857 = formData.getOrDefault("Ipv6AddressCount") + valid_626857 = validateParameter(valid_626857, JInt, required = false, default = nil) if valid_626857 != nil: - section.add "IamInstanceProfile.Name", valid_626857 - var valid_626858 = formData.getOrDefault("CapacityReservationSpecification.CapacityReservationPreference") + section.add "Ipv6AddressCount", valid_626857 + var valid_626858 = formData.getOrDefault("Placement.GroupName") valid_626858 = validateParameter(valid_626858, JString, required = false, default = nil) if valid_626858 != nil: - section.add "CapacityReservationSpecification.CapacityReservationPreference", - valid_626858 - var valid_626859 = formData.getOrDefault("Monitoring.Enabled") + section.add "Placement.GroupName", valid_626858 + var valid_626859 = formData.getOrDefault("IamInstanceProfile.Name") valid_626859 = validateParameter(valid_626859, JString, required = false, default = nil) if valid_626859 != nil: - section.add "Monitoring.Enabled", valid_626859 - var valid_626860 = formData.getOrDefault("KernelId") + section.add "IamInstanceProfile.Name", valid_626859 + var valid_626860 = formData.getOrDefault("CapacityReservationSpecification.CapacityReservationPreference") valid_626860 = validateParameter(valid_626860, JString, required = false, default = nil) if valid_626860 != nil: - section.add "KernelId", valid_626860 - var valid_626861 = formData.getOrDefault("SecurityGroup") - valid_626861 = validateParameter(valid_626861, JArray, required = false, + section.add "CapacityReservationSpecification.CapacityReservationPreference", + valid_626860 + var valid_626861 = formData.getOrDefault("Monitoring.Enabled") + valid_626861 = validateParameter(valid_626861, JString, required = false, default = nil) if valid_626861 != nil: - section.add "SecurityGroup", valid_626861 - var valid_626862 = formData.getOrDefault("SubnetId") + section.add "Monitoring.Enabled", valid_626861 + var valid_626862 = formData.getOrDefault("KernelId") valid_626862 = validateParameter(valid_626862, JString, required = false, default = nil) if valid_626862 != nil: - section.add "SubnetId", valid_626862 - var valid_626863 = formData.getOrDefault("PrivateIpAddress") - valid_626863 = validateParameter(valid_626863, JString, required = false, + section.add "KernelId", valid_626862 + var valid_626863 = formData.getOrDefault("SecurityGroup") + valid_626863 = validateParameter(valid_626863, JArray, required = false, default = nil) if valid_626863 != nil: - section.add "PrivateIpAddress", valid_626863 - var valid_626864 = formData.getOrDefault("CapacityReservationSpecification.CapacityReservationTarget") + section.add "SecurityGroup", valid_626863 + var valid_626864 = formData.getOrDefault("SubnetId") valid_626864 = validateParameter(valid_626864, JString, required = false, default = nil) if valid_626864 != nil: - section.add "CapacityReservationSpecification.CapacityReservationTarget", - valid_626864 - var valid_626865 = formData.getOrDefault("Ipv6Address") - valid_626865 = validateParameter(valid_626865, JArray, required = false, + section.add "SubnetId", valid_626864 + var valid_626865 = formData.getOrDefault("PrivateIpAddress") + valid_626865 = validateParameter(valid_626865, JString, required = false, default = nil) if valid_626865 != nil: - section.add "Ipv6Address", valid_626865 - var valid_626866 = formData.getOrDefault("Placement.AvailabilityZone") + section.add "PrivateIpAddress", valid_626865 + var valid_626866 = formData.getOrDefault("CapacityReservationSpecification.CapacityReservationTarget") valid_626866 = validateParameter(valid_626866, JString, required = false, default = nil) if valid_626866 != nil: - section.add "Placement.AvailabilityZone", valid_626866 - var valid_626867 = formData.getOrDefault("DryRun") - valid_626867 = validateParameter(valid_626867, JBool, required = false, default = nil) + section.add "CapacityReservationSpecification.CapacityReservationTarget", + valid_626866 + var valid_626867 = formData.getOrDefault("Ipv6Address") + valid_626867 = validateParameter(valid_626867, JArray, required = false, + default = nil) if valid_626867 != nil: - section.add "DryRun", valid_626867 - var valid_626868 = formData.getOrDefault("MaxCount") - valid_626868 = validateParameter(valid_626868, JInt, required = true, default = nil) - if valid_626868 != nil: - section.add "MaxCount", valid_626868 - var valid_626869 = formData.getOrDefault("LaunchTemplate.LaunchTemplateName") - valid_626869 = validateParameter(valid_626869, JString, required = false, + section.add "Ipv6Address", valid_626867 + var valid_626868 = formData.getOrDefault("Placement.AvailabilityZone") + valid_626868 = validateParameter(valid_626868, JString, required = false, default = nil) + if valid_626868 != nil: + section.add "Placement.AvailabilityZone", valid_626868 + var valid_626869 = formData.getOrDefault("DryRun") + valid_626869 = validateParameter(valid_626869, JBool, required = false, default = nil) if valid_626869 != nil: - section.add "LaunchTemplate.LaunchTemplateName", valid_626869 - var valid_626870 = formData.getOrDefault("TagSpecification") - valid_626870 = validateParameter(valid_626870, JArray, required = false, - default = nil) + section.add "DryRun", valid_626869 + var valid_626870 = formData.getOrDefault("MaxCount") + valid_626870 = validateParameter(valid_626870, JInt, required = true, default = nil) if valid_626870 != nil: - section.add "TagSpecification", valid_626870 - var valid_626871 = formData.getOrDefault("EbsOptimized") - valid_626871 = validateParameter(valid_626871, JBool, required = false, default = nil) + section.add "MaxCount", valid_626870 + var valid_626871 = formData.getOrDefault("LaunchTemplate.LaunchTemplateName") + valid_626871 = validateParameter(valid_626871, JString, required = false, + default = nil) if valid_626871 != nil: - section.add "EbsOptimized", valid_626871 - var valid_626872 = formData.getOrDefault("InstanceMarketOptions.SpotOptions") - valid_626872 = validateParameter(valid_626872, JString, required = false, + section.add "LaunchTemplate.LaunchTemplateName", valid_626871 + var valid_626872 = formData.getOrDefault("TagSpecification") + valid_626872 = validateParameter(valid_626872, JArray, required = false, default = nil) if valid_626872 != nil: - section.add "InstanceMarketOptions.SpotOptions", valid_626872 - var valid_626873 = formData.getOrDefault("ImageId") - valid_626873 = validateParameter(valid_626873, JString, required = false, - default = nil) + section.add "TagSpecification", valid_626872 + var valid_626873 = formData.getOrDefault("EbsOptimized") + valid_626873 = validateParameter(valid_626873, JBool, required = false, default = nil) if valid_626873 != nil: - section.add "ImageId", valid_626873 - var valid_626874 = formData.getOrDefault("MetadataOptions.HttpTokens") + section.add "EbsOptimized", valid_626873 + var valid_626874 = formData.getOrDefault("InstanceMarketOptions.SpotOptions") valid_626874 = validateParameter(valid_626874, JString, required = false, default = nil) if valid_626874 != nil: - section.add "MetadataOptions.HttpTokens", valid_626874 - var valid_626875 = formData.getOrDefault("LicenseSpecification") - valid_626875 = validateParameter(valid_626875, JArray, required = false, + section.add "InstanceMarketOptions.SpotOptions", valid_626874 + var valid_626875 = formData.getOrDefault("ImageId") + valid_626875 = validateParameter(valid_626875, JString, required = false, default = nil) if valid_626875 != nil: - section.add "LicenseSpecification", valid_626875 + section.add "ImageId", valid_626875 + var valid_626876 = formData.getOrDefault("MetadataOptions.HttpTokens") + valid_626876 = validateParameter(valid_626876, JString, required = false, + default = nil) + if valid_626876 != nil: + section.add "MetadataOptions.HttpTokens", valid_626876 + var valid_626877 = formData.getOrDefault("LicenseSpecification") + valid_626877 = validateParameter(valid_626877, JArray, required = false, + default = nil) + if valid_626877 != nil: + section.add "LicenseSpecification", valid_626877 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626876: Call_PostRunInstances_626813; path: JsonNode; +proc call*(call_626878: Call_PostRunInstances_626815; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Launches the specified number of instances using an AMI for which you have permissions.

    You can specify a number of options, or leave the default options. The following rules apply:

    You can create a launch template, which is a resource that contains the parameters to launch an instance. When you launch an instance using RunInstances, you can specify the launch template instead of specifying the launch parameters.

    To ensure faster instance launches, break up large requests into smaller batches. For example, create five separate launch requests for 100 instances each instead of one launch request for 500 instances.

    An instance is ready for you to use when it's in the running state. You can check the state of your instance using DescribeInstances. You can tag instances and EBS volumes during launch, after launch, or both. For more information, see CreateTags and Tagging Your Amazon EC2 Resources.

    Linux instances have access to the public key of the key pair at boot. You can use this key to provide secure access to the instance. Amazon EC2 public images use this feature to provide secure access without passwords. For more information, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.

    For troubleshooting, see What To Do If An Instance Immediately Terminates, and Troubleshooting Connecting to Your Instance in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_626876.validator(path, query, header, formData, body) - let scheme = call_626876.pickScheme + let valid = call_626878.validator(path, query, header, formData, body) + let scheme = call_626878.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626876.url(scheme.get, call_626876.host, call_626876.base, - call_626876.route, valid.getOrDefault("path"), + let url = call_626878.url(scheme.get, call_626878.host, call_626878.base, + call_626878.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626876, url, valid) + result = atozHook(call_626878, url, valid) -proc call*(call_626877: Call_PostRunInstances_626813; MinCount: int; MaxCount: int; +proc call*(call_626879: Call_PostRunInstances_626815; MinCount: int; MaxCount: int; InstanceType: string = "t1.micro"; PlacementTenancy: string = ""; PlacementHostResourceGroupArn: string = ""; SecurityGroupId: JsonNode = nil; MetadataOptionsHttpEndpoint: string = ""; @@ -130504,99 +130531,99 @@ proc call*(call_626877: Call_PostRunInstances_626813; MinCount: int; MaxCount: i ## Version: string (required) ## LicenseSpecification: JArray ## : The license configurations. - var query_626878 = newJObject() - var formData_626879 = newJObject() - add(formData_626879, "InstanceType", newJString(InstanceType)) - add(formData_626879, "Placement.Tenancy", newJString(PlacementTenancy)) - add(formData_626879, "Placement.HostResourceGroupArn", + var query_626880 = newJObject() + var formData_626881 = newJObject() + add(formData_626881, "InstanceType", newJString(InstanceType)) + add(formData_626881, "Placement.Tenancy", newJString(PlacementTenancy)) + add(formData_626881, "Placement.HostResourceGroupArn", newJString(PlacementHostResourceGroupArn)) if SecurityGroupId != nil: - formData_626879.add "SecurityGroupId", SecurityGroupId - add(formData_626879, "MetadataOptions.HttpEndpoint", + formData_626881.add "SecurityGroupId", SecurityGroupId + add(formData_626881, "MetadataOptions.HttpEndpoint", newJString(MetadataOptionsHttpEndpoint)) - add(formData_626879, "Placement.HostId", newJString(PlacementHostId)) - add(formData_626879, "DisableApiTermination", newJBool(DisableApiTermination)) - add(formData_626879, "LaunchTemplate.Version", newJString(LaunchTemplateVersion)) - add(formData_626879, "Placement.SpreadDomain", newJString(PlacementSpreadDomain)) - add(formData_626879, "InstanceInitiatedShutdownBehavior", + add(formData_626881, "Placement.HostId", newJString(PlacementHostId)) + add(formData_626881, "DisableApiTermination", newJBool(DisableApiTermination)) + add(formData_626881, "LaunchTemplate.Version", newJString(LaunchTemplateVersion)) + add(formData_626881, "Placement.SpreadDomain", newJString(PlacementSpreadDomain)) + add(formData_626881, "InstanceInitiatedShutdownBehavior", newJString(InstanceInitiatedShutdownBehavior)) - add(formData_626879, "CpuOptions.CoreCount", newJString(CpuOptionsCoreCount)) + add(formData_626881, "CpuOptions.CoreCount", newJString(CpuOptionsCoreCount)) if ElasticGpuSpecification != nil: - formData_626879.add "ElasticGpuSpecification", ElasticGpuSpecification - add(query_626878, "Action", newJString(Action)) - add(formData_626879, "LaunchTemplate.LaunchTemplateId", + formData_626881.add "ElasticGpuSpecification", ElasticGpuSpecification + add(query_626880, "Action", newJString(Action)) + add(formData_626881, "LaunchTemplate.LaunchTemplateId", newJString(LaunchTemplateLaunchTemplateId)) if ElasticInferenceAccelerator != nil: - formData_626879.add "ElasticInferenceAccelerator", ElasticInferenceAccelerator - add(formData_626879, "Placement.PartitionNumber", + formData_626881.add "ElasticInferenceAccelerator", ElasticInferenceAccelerator + add(formData_626881, "Placement.PartitionNumber", newJString(PlacementPartitionNumber)) - add(formData_626879, "InstanceMarketOptions.MarketType", + add(formData_626881, "InstanceMarketOptions.MarketType", newJString(InstanceMarketOptionsMarketType)) - add(formData_626879, "RamdiskId", newJString(RamdiskId)) - add(formData_626879, "AdditionalInfo", newJString(AdditionalInfo)) + add(formData_626881, "RamdiskId", newJString(RamdiskId)) + add(formData_626881, "AdditionalInfo", newJString(AdditionalInfo)) if NetworkInterface != nil: - formData_626879.add "NetworkInterface", NetworkInterface - add(formData_626879, "ClientToken", newJString(ClientToken)) - add(formData_626879, "CreditSpecification.CpuCredits", + formData_626881.add "NetworkInterface", NetworkInterface + add(formData_626881, "ClientToken", newJString(ClientToken)) + add(formData_626881, "CreditSpecification.CpuCredits", newJString(CreditSpecificationCpuCredits)) - add(formData_626879, "HibernationOptions.Configured", + add(formData_626881, "HibernationOptions.Configured", newJString(HibernationOptionsConfigured)) - add(formData_626879, "MinCount", newJInt(MinCount)) - add(formData_626879, "IamInstanceProfile.Arn", newJString(IamInstanceProfileArn)) - add(formData_626879, "UserData", newJString(UserData)) - add(formData_626879, "CpuOptions.ThreadsPerCore", + add(formData_626881, "MinCount", newJInt(MinCount)) + add(formData_626881, "IamInstanceProfile.Arn", newJString(IamInstanceProfileArn)) + add(formData_626881, "UserData", newJString(UserData)) + add(formData_626881, "CpuOptions.ThreadsPerCore", newJString(CpuOptionsThreadsPerCore)) - add(formData_626879, "MetadataOptions.HttpPutResponseHopLimit", + add(formData_626881, "MetadataOptions.HttpPutResponseHopLimit", newJString(MetadataOptionsHttpPutResponseHopLimit)) if BlockDeviceMapping != nil: - formData_626879.add "BlockDeviceMapping", BlockDeviceMapping - add(formData_626879, "KeyName", newJString(KeyName)) - add(formData_626879, "Placement.Affinity", newJString(PlacementAffinity)) - add(formData_626879, "Ipv6AddressCount", newJInt(Ipv6AddressCount)) - add(formData_626879, "Placement.GroupName", newJString(PlacementGroupName)) - add(formData_626879, "IamInstanceProfile.Name", + formData_626881.add "BlockDeviceMapping", BlockDeviceMapping + add(formData_626881, "KeyName", newJString(KeyName)) + add(formData_626881, "Placement.Affinity", newJString(PlacementAffinity)) + add(formData_626881, "Ipv6AddressCount", newJInt(Ipv6AddressCount)) + add(formData_626881, "Placement.GroupName", newJString(PlacementGroupName)) + add(formData_626881, "IamInstanceProfile.Name", newJString(IamInstanceProfileName)) - add(formData_626879, + add(formData_626881, "CapacityReservationSpecification.CapacityReservationPreference", newJString(CapacityReservationSpecificationCapacityReservationPreference)) - add(formData_626879, "Monitoring.Enabled", newJString(MonitoringEnabled)) - add(formData_626879, "KernelId", newJString(KernelId)) + add(formData_626881, "Monitoring.Enabled", newJString(MonitoringEnabled)) + add(formData_626881, "KernelId", newJString(KernelId)) if SecurityGroup != nil: - formData_626879.add "SecurityGroup", SecurityGroup - add(formData_626879, "SubnetId", newJString(SubnetId)) - add(formData_626879, "PrivateIpAddress", newJString(PrivateIpAddress)) - add(formData_626879, + formData_626881.add "SecurityGroup", SecurityGroup + add(formData_626881, "SubnetId", newJString(SubnetId)) + add(formData_626881, "PrivateIpAddress", newJString(PrivateIpAddress)) + add(formData_626881, "CapacityReservationSpecification.CapacityReservationTarget", newJString(CapacityReservationSpecificationCapacityReservationTarget)) if Ipv6Address != nil: - formData_626879.add "Ipv6Address", Ipv6Address - add(formData_626879, "Placement.AvailabilityZone", + formData_626881.add "Ipv6Address", Ipv6Address + add(formData_626881, "Placement.AvailabilityZone", newJString(PlacementAvailabilityZone)) - add(formData_626879, "DryRun", newJBool(DryRun)) - add(formData_626879, "MaxCount", newJInt(MaxCount)) - add(formData_626879, "LaunchTemplate.LaunchTemplateName", + add(formData_626881, "DryRun", newJBool(DryRun)) + add(formData_626881, "MaxCount", newJInt(MaxCount)) + add(formData_626881, "LaunchTemplate.LaunchTemplateName", newJString(LaunchTemplateLaunchTemplateName)) if TagSpecification != nil: - formData_626879.add "TagSpecification", TagSpecification - add(formData_626879, "EbsOptimized", newJBool(EbsOptimized)) - add(formData_626879, "InstanceMarketOptions.SpotOptions", + formData_626881.add "TagSpecification", TagSpecification + add(formData_626881, "EbsOptimized", newJBool(EbsOptimized)) + add(formData_626881, "InstanceMarketOptions.SpotOptions", newJString(InstanceMarketOptionsSpotOptions)) - add(formData_626879, "ImageId", newJString(ImageId)) - add(formData_626879, "MetadataOptions.HttpTokens", + add(formData_626881, "ImageId", newJString(ImageId)) + add(formData_626881, "MetadataOptions.HttpTokens", newJString(MetadataOptionsHttpTokens)) - add(query_626878, "Version", newJString(Version)) + add(query_626880, "Version", newJString(Version)) if LicenseSpecification != nil: - formData_626879.add "LicenseSpecification", LicenseSpecification - result = call_626877.call(nil, query_626878, nil, formData_626879, nil) + formData_626881.add "LicenseSpecification", LicenseSpecification + result = call_626879.call(nil, query_626880, nil, formData_626881, nil) -var postRunInstances* = Call_PostRunInstances_626813(name: "postRunInstances", +var postRunInstances* = Call_PostRunInstances_626815(name: "postRunInstances", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", - route: "/#Action=RunInstances", validator: validate_PostRunInstances_626814, - base: "/", url: url_PostRunInstances_626815, + route: "/#Action=RunInstances", validator: validate_PostRunInstances_626816, + base: "/", url: url_PostRunInstances_626817, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetRunInstances_626729 = ref object of OpenApiRestCall_610658 -proc url_GetRunInstances_626731(protocol: Scheme; host: string; base: string; + Call_GetRunInstances_626731 = ref object of OpenApiRestCall_610658 +proc url_GetRunInstances_626733(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -130606,7 +130633,7 @@ proc url_GetRunInstances_626731(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetRunInstances_626730(path: JsonNode; query: JsonNode; +proc validate_GetRunInstances_626732(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Launches the specified number of instances using an AMI for which you have permissions.

    You can specify a number of options, or leave the default options. The following rules apply:

    You can create a launch template, which is a resource that contains the parameters to launch an instance. When you launch an instance using RunInstances, you can specify the launch template instead of specifying the launch parameters.

    To ensure faster instance launches, break up large requests into smaller batches. For example, create five separate launch requests for 100 instances each instead of one launch request for 500 instances.

    An instance is ready for you to use when it's in the running state. You can check the state of your instance using DescribeInstances. You can tag instances and EBS volumes during launch, after launch, or both. For more information, see CreateTags and Tagging Your Amazon EC2 Resources.

    Linux instances have access to the public key of the key pair at boot. You can use this key to provide secure access to the instance. Amazon EC2 public images use this feature to provide secure access without passwords. For more information, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.

    For troubleshooting, see What To Do If An Instance Immediately Terminates, and Troubleshooting Connecting to Your Instance in the Amazon Elastic Compute Cloud User Guide.

    @@ -130762,269 +130789,269 @@ proc validate_GetRunInstances_626730(path: JsonNode; query: JsonNode; ## : The launch template to use. You must specify either the launch template ID or launch template name in the request, but not both. ## The ID of the launch template. section = newJObject() - var valid_626750 = query.getOrDefault("ClientToken") - valid_626750 = validateParameter(valid_626750, JString, required = false, - default = nil) - if valid_626750 != nil: - section.add "ClientToken", valid_626750 - var valid_626751 = query.getOrDefault("KeyName") - valid_626751 = validateParameter(valid_626751, JString, required = false, - default = nil) - if valid_626751 != nil: - section.add "KeyName", valid_626751 - var valid_626752 = query.getOrDefault("InstanceInitiatedShutdownBehavior") + var valid_626752 = query.getOrDefault("ClientToken") valid_626752 = validateParameter(valid_626752, JString, required = false, - default = newJString("stop")) + default = nil) if valid_626752 != nil: - section.add "InstanceInitiatedShutdownBehavior", valid_626752 - var valid_626753 = query.getOrDefault("SecurityGroupId") - valid_626753 = validateParameter(valid_626753, JArray, required = false, + section.add "ClientToken", valid_626752 + var valid_626753 = query.getOrDefault("KeyName") + valid_626753 = validateParameter(valid_626753, JString, required = false, default = nil) if valid_626753 != nil: - section.add "SecurityGroupId", valid_626753 - var valid_626754 = query.getOrDefault("LaunchTemplate.LaunchTemplateName") + section.add "KeyName", valid_626753 + var valid_626754 = query.getOrDefault("InstanceInitiatedShutdownBehavior") valid_626754 = validateParameter(valid_626754, JString, required = false, - default = nil) + default = newJString("stop")) if valid_626754 != nil: - section.add "LaunchTemplate.LaunchTemplateName", valid_626754 - var valid_626755 = query.getOrDefault("MetadataOptions.HttpTokens") - valid_626755 = validateParameter(valid_626755, JString, required = false, + section.add "InstanceInitiatedShutdownBehavior", valid_626754 + var valid_626755 = query.getOrDefault("SecurityGroupId") + valid_626755 = validateParameter(valid_626755, JArray, required = false, default = nil) if valid_626755 != nil: - section.add "MetadataOptions.HttpTokens", valid_626755 - var valid_626756 = query.getOrDefault("DryRun") - valid_626756 = validateParameter(valid_626756, JBool, required = false, default = nil) + section.add "SecurityGroupId", valid_626755 + var valid_626756 = query.getOrDefault("LaunchTemplate.LaunchTemplateName") + valid_626756 = validateParameter(valid_626756, JString, required = false, + default = nil) if valid_626756 != nil: - section.add "DryRun", valid_626756 - var valid_626757 = query.getOrDefault("CreditSpecification.CpuCredits") + section.add "LaunchTemplate.LaunchTemplateName", valid_626756 + var valid_626757 = query.getOrDefault("MetadataOptions.HttpTokens") valid_626757 = validateParameter(valid_626757, JString, required = false, default = nil) if valid_626757 != nil: - section.add "CreditSpecification.CpuCredits", valid_626757 - var valid_626758 = query.getOrDefault("LicenseSpecification") - valid_626758 = validateParameter(valid_626758, JArray, required = false, - default = nil) + section.add "MetadataOptions.HttpTokens", valid_626757 + var valid_626758 = query.getOrDefault("DryRun") + valid_626758 = validateParameter(valid_626758, JBool, required = false, default = nil) if valid_626758 != nil: - section.add "LicenseSpecification", valid_626758 - var valid_626759 = query.getOrDefault("Placement.HostResourceGroupArn") + section.add "DryRun", valid_626758 + var valid_626759 = query.getOrDefault("CreditSpecification.CpuCredits") valid_626759 = validateParameter(valid_626759, JString, required = false, default = nil) if valid_626759 != nil: - section.add "Placement.HostResourceGroupArn", valid_626759 - var valid_626760 = query.getOrDefault("AdditionalInfo") - valid_626760 = validateParameter(valid_626760, JString, required = false, + section.add "CreditSpecification.CpuCredits", valid_626759 + var valid_626760 = query.getOrDefault("LicenseSpecification") + valid_626760 = validateParameter(valid_626760, JArray, required = false, default = nil) if valid_626760 != nil: - section.add "AdditionalInfo", valid_626760 - var valid_626761 = query.getOrDefault("RamdiskId") + section.add "LicenseSpecification", valid_626760 + var valid_626761 = query.getOrDefault("Placement.HostResourceGroupArn") valid_626761 = validateParameter(valid_626761, JString, required = false, default = nil) if valid_626761 != nil: - section.add "RamdiskId", valid_626761 - var valid_626762 = query.getOrDefault("Ipv6AddressCount") - valid_626762 = validateParameter(valid_626762, JInt, required = false, default = nil) + section.add "Placement.HostResourceGroupArn", valid_626761 + var valid_626762 = query.getOrDefault("AdditionalInfo") + valid_626762 = validateParameter(valid_626762, JString, required = false, + default = nil) if valid_626762 != nil: - section.add "Ipv6AddressCount", valid_626762 - assert query != nil, - "query argument is necessary due to required `MaxCount` field" - var valid_626763 = query.getOrDefault("MaxCount") - valid_626763 = validateParameter(valid_626763, JInt, required = true, default = nil) - if valid_626763 != nil: - section.add "MaxCount", valid_626763 - var valid_626764 = query.getOrDefault("PrivateIpAddress") - valid_626764 = validateParameter(valid_626764, JString, required = false, + section.add "AdditionalInfo", valid_626762 + var valid_626763 = query.getOrDefault("RamdiskId") + valid_626763 = validateParameter(valid_626763, JString, required = false, default = nil) + if valid_626763 != nil: + section.add "RamdiskId", valid_626763 + var valid_626764 = query.getOrDefault("Ipv6AddressCount") + valid_626764 = validateParameter(valid_626764, JInt, required = false, default = nil) if valid_626764 != nil: - section.add "PrivateIpAddress", valid_626764 - var valid_626765 = query.getOrDefault("InstanceMarketOptions.SpotOptions") - valid_626765 = validateParameter(valid_626765, JString, required = false, - default = nil) + section.add "Ipv6AddressCount", valid_626764 + assert query != nil, + "query argument is necessary due to required `MaxCount` field" + var valid_626765 = query.getOrDefault("MaxCount") + valid_626765 = validateParameter(valid_626765, JInt, required = true, default = nil) if valid_626765 != nil: - section.add "InstanceMarketOptions.SpotOptions", valid_626765 - var valid_626766 = query.getOrDefault("CapacityReservationSpecification.CapacityReservationTarget") + section.add "MaxCount", valid_626765 + var valid_626766 = query.getOrDefault("PrivateIpAddress") valid_626766 = validateParameter(valid_626766, JString, required = false, default = nil) if valid_626766 != nil: - section.add "CapacityReservationSpecification.CapacityReservationTarget", - valid_626766 - var valid_626767 = query.getOrDefault("SubnetId") + section.add "PrivateIpAddress", valid_626766 + var valid_626767 = query.getOrDefault("InstanceMarketOptions.SpotOptions") valid_626767 = validateParameter(valid_626767, JString, required = false, default = nil) if valid_626767 != nil: - section.add "SubnetId", valid_626767 - var valid_626768 = query.getOrDefault("CpuOptions.ThreadsPerCore") + section.add "InstanceMarketOptions.SpotOptions", valid_626767 + var valid_626768 = query.getOrDefault("CapacityReservationSpecification.CapacityReservationTarget") valid_626768 = validateParameter(valid_626768, JString, required = false, default = nil) if valid_626768 != nil: - section.add "CpuOptions.ThreadsPerCore", valid_626768 - var valid_626769 = query.getOrDefault("Placement.SpreadDomain") + section.add "CapacityReservationSpecification.CapacityReservationTarget", + valid_626768 + var valid_626769 = query.getOrDefault("SubnetId") valid_626769 = validateParameter(valid_626769, JString, required = false, default = nil) if valid_626769 != nil: - section.add "Placement.SpreadDomain", valid_626769 - var valid_626770 = query.getOrDefault("CapacityReservationSpecification.CapacityReservationPreference") + section.add "SubnetId", valid_626769 + var valid_626770 = query.getOrDefault("CpuOptions.ThreadsPerCore") valid_626770 = validateParameter(valid_626770, JString, required = false, default = nil) if valid_626770 != nil: - section.add "CapacityReservationSpecification.CapacityReservationPreference", - valid_626770 - var valid_626771 = query.getOrDefault("Action") - valid_626771 = validateParameter(valid_626771, JString, required = true, - default = newJString("RunInstances")) + section.add "CpuOptions.ThreadsPerCore", valid_626770 + var valid_626771 = query.getOrDefault("Placement.SpreadDomain") + valid_626771 = validateParameter(valid_626771, JString, required = false, + default = nil) if valid_626771 != nil: - section.add "Action", valid_626771 - var valid_626772 = query.getOrDefault("BlockDeviceMapping") - valid_626772 = validateParameter(valid_626772, JArray, required = false, + section.add "Placement.SpreadDomain", valid_626771 + var valid_626772 = query.getOrDefault("CapacityReservationSpecification.CapacityReservationPreference") + valid_626772 = validateParameter(valid_626772, JString, required = false, default = nil) if valid_626772 != nil: - section.add "BlockDeviceMapping", valid_626772 - var valid_626773 = query.getOrDefault("LaunchTemplate.Version") - valid_626773 = validateParameter(valid_626773, JString, required = false, - default = nil) + section.add "CapacityReservationSpecification.CapacityReservationPreference", + valid_626772 + var valid_626773 = query.getOrDefault("Action") + valid_626773 = validateParameter(valid_626773, JString, required = true, + default = newJString("RunInstances")) if valid_626773 != nil: - section.add "LaunchTemplate.Version", valid_626773 - var valid_626774 = query.getOrDefault("Placement.Affinity") - valid_626774 = validateParameter(valid_626774, JString, required = false, + section.add "Action", valid_626773 + var valid_626774 = query.getOrDefault("BlockDeviceMapping") + valid_626774 = validateParameter(valid_626774, JArray, required = false, default = nil) if valid_626774 != nil: - section.add "Placement.Affinity", valid_626774 - var valid_626775 = query.getOrDefault("InstanceMarketOptions.MarketType") + section.add "BlockDeviceMapping", valid_626774 + var valid_626775 = query.getOrDefault("LaunchTemplate.Version") valid_626775 = validateParameter(valid_626775, JString, required = false, default = nil) if valid_626775 != nil: - section.add "InstanceMarketOptions.MarketType", valid_626775 - var valid_626776 = query.getOrDefault("Placement.GroupName") + section.add "LaunchTemplate.Version", valid_626775 + var valid_626776 = query.getOrDefault("Placement.Affinity") valid_626776 = validateParameter(valid_626776, JString, required = false, default = nil) if valid_626776 != nil: - section.add "Placement.GroupName", valid_626776 - var valid_626777 = query.getOrDefault("Ipv6Address") - valid_626777 = validateParameter(valid_626777, JArray, required = false, + section.add "Placement.Affinity", valid_626776 + var valid_626777 = query.getOrDefault("InstanceMarketOptions.MarketType") + valid_626777 = validateParameter(valid_626777, JString, required = false, default = nil) if valid_626777 != nil: - section.add "Ipv6Address", valid_626777 - var valid_626778 = query.getOrDefault("NetworkInterface") - valid_626778 = validateParameter(valid_626778, JArray, required = false, + section.add "InstanceMarketOptions.MarketType", valid_626777 + var valid_626778 = query.getOrDefault("Placement.GroupName") + valid_626778 = validateParameter(valid_626778, JString, required = false, default = nil) if valid_626778 != nil: - section.add "NetworkInterface", valid_626778 - var valid_626779 = query.getOrDefault("ElasticInferenceAccelerator") + section.add "Placement.GroupName", valid_626778 + var valid_626779 = query.getOrDefault("Ipv6Address") valid_626779 = validateParameter(valid_626779, JArray, required = false, default = nil) if valid_626779 != nil: - section.add "ElasticInferenceAccelerator", valid_626779 - var valid_626780 = query.getOrDefault("MinCount") - valid_626780 = validateParameter(valid_626780, JInt, required = true, default = nil) + section.add "Ipv6Address", valid_626779 + var valid_626780 = query.getOrDefault("NetworkInterface") + valid_626780 = validateParameter(valid_626780, JArray, required = false, + default = nil) if valid_626780 != nil: - section.add "MinCount", valid_626780 - var valid_626781 = query.getOrDefault("Placement.PartitionNumber") - valid_626781 = validateParameter(valid_626781, JString, required = false, + section.add "NetworkInterface", valid_626780 + var valid_626781 = query.getOrDefault("ElasticInferenceAccelerator") + valid_626781 = validateParameter(valid_626781, JArray, required = false, default = nil) if valid_626781 != nil: - section.add "Placement.PartitionNumber", valid_626781 - var valid_626782 = query.getOrDefault("SecurityGroup") - valid_626782 = validateParameter(valid_626782, JArray, required = false, - default = nil) + section.add "ElasticInferenceAccelerator", valid_626781 + var valid_626782 = query.getOrDefault("MinCount") + valid_626782 = validateParameter(valid_626782, JInt, required = true, default = nil) if valid_626782 != nil: - section.add "SecurityGroup", valid_626782 - var valid_626783 = query.getOrDefault("ImageId") + section.add "MinCount", valid_626782 + var valid_626783 = query.getOrDefault("Placement.PartitionNumber") valid_626783 = validateParameter(valid_626783, JString, required = false, default = nil) if valid_626783 != nil: - section.add "ImageId", valid_626783 - var valid_626784 = query.getOrDefault("CpuOptions.CoreCount") - valid_626784 = validateParameter(valid_626784, JString, required = false, + section.add "Placement.PartitionNumber", valid_626783 + var valid_626784 = query.getOrDefault("SecurityGroup") + valid_626784 = validateParameter(valid_626784, JArray, required = false, default = nil) if valid_626784 != nil: - section.add "CpuOptions.CoreCount", valid_626784 - var valid_626785 = query.getOrDefault("MetadataOptions.HttpEndpoint") + section.add "SecurityGroup", valid_626784 + var valid_626785 = query.getOrDefault("ImageId") valid_626785 = validateParameter(valid_626785, JString, required = false, default = nil) if valid_626785 != nil: - section.add "MetadataOptions.HttpEndpoint", valid_626785 - var valid_626786 = query.getOrDefault("EbsOptimized") - valid_626786 = validateParameter(valid_626786, JBool, required = false, default = nil) + section.add "ImageId", valid_626785 + var valid_626786 = query.getOrDefault("CpuOptions.CoreCount") + valid_626786 = validateParameter(valid_626786, JString, required = false, + default = nil) if valid_626786 != nil: - section.add "EbsOptimized", valid_626786 - var valid_626787 = query.getOrDefault("UserData") + section.add "CpuOptions.CoreCount", valid_626786 + var valid_626787 = query.getOrDefault("MetadataOptions.HttpEndpoint") valid_626787 = validateParameter(valid_626787, JString, required = false, default = nil) if valid_626787 != nil: - section.add "UserData", valid_626787 - var valid_626788 = query.getOrDefault("DisableApiTermination") + section.add "MetadataOptions.HttpEndpoint", valid_626787 + var valid_626788 = query.getOrDefault("EbsOptimized") valid_626788 = validateParameter(valid_626788, JBool, required = false, default = nil) if valid_626788 != nil: - section.add "DisableApiTermination", valid_626788 - var valid_626789 = query.getOrDefault("KernelId") + section.add "EbsOptimized", valid_626788 + var valid_626789 = query.getOrDefault("UserData") valid_626789 = validateParameter(valid_626789, JString, required = false, default = nil) if valid_626789 != nil: - section.add "KernelId", valid_626789 - var valid_626790 = query.getOrDefault("HibernationOptions.Configured") - valid_626790 = validateParameter(valid_626790, JString, required = false, - default = nil) + section.add "UserData", valid_626789 + var valid_626790 = query.getOrDefault("DisableApiTermination") + valid_626790 = validateParameter(valid_626790, JBool, required = false, default = nil) if valid_626790 != nil: - section.add "HibernationOptions.Configured", valid_626790 - var valid_626791 = query.getOrDefault("InstanceType") + section.add "DisableApiTermination", valid_626790 + var valid_626791 = query.getOrDefault("KernelId") valid_626791 = validateParameter(valid_626791, JString, required = false, - default = newJString("t1.micro")) + default = nil) if valid_626791 != nil: - section.add "InstanceType", valid_626791 - var valid_626792 = query.getOrDefault("ElasticGpuSpecification") - valid_626792 = validateParameter(valid_626792, JArray, required = false, + section.add "KernelId", valid_626791 + var valid_626792 = query.getOrDefault("HibernationOptions.Configured") + valid_626792 = validateParameter(valid_626792, JString, required = false, default = nil) if valid_626792 != nil: - section.add "ElasticGpuSpecification", valid_626792 - var valid_626793 = query.getOrDefault("TagSpecification") - valid_626793 = validateParameter(valid_626793, JArray, required = false, - default = nil) + section.add "HibernationOptions.Configured", valid_626792 + var valid_626793 = query.getOrDefault("InstanceType") + valid_626793 = validateParameter(valid_626793, JString, required = false, + default = newJString("t1.micro")) if valid_626793 != nil: - section.add "TagSpecification", valid_626793 - var valid_626794 = query.getOrDefault("Placement.AvailabilityZone") - valid_626794 = validateParameter(valid_626794, JString, required = false, + section.add "InstanceType", valid_626793 + var valid_626794 = query.getOrDefault("ElasticGpuSpecification") + valid_626794 = validateParameter(valid_626794, JArray, required = false, default = nil) if valid_626794 != nil: - section.add "Placement.AvailabilityZone", valid_626794 - var valid_626795 = query.getOrDefault("Placement.Tenancy") - valid_626795 = validateParameter(valid_626795, JString, required = false, + section.add "ElasticGpuSpecification", valid_626794 + var valid_626795 = query.getOrDefault("TagSpecification") + valid_626795 = validateParameter(valid_626795, JArray, required = false, default = nil) if valid_626795 != nil: - section.add "Placement.Tenancy", valid_626795 - var valid_626796 = query.getOrDefault("IamInstanceProfile.Arn") + section.add "TagSpecification", valid_626795 + var valid_626796 = query.getOrDefault("Placement.AvailabilityZone") valid_626796 = validateParameter(valid_626796, JString, required = false, default = nil) if valid_626796 != nil: - section.add "IamInstanceProfile.Arn", valid_626796 - var valid_626797 = query.getOrDefault("Version") - valid_626797 = validateParameter(valid_626797, JString, required = true, - default = newJString("2016-11-15")) + section.add "Placement.AvailabilityZone", valid_626796 + var valid_626797 = query.getOrDefault("Placement.Tenancy") + valid_626797 = validateParameter(valid_626797, JString, required = false, + default = nil) if valid_626797 != nil: - section.add "Version", valid_626797 - var valid_626798 = query.getOrDefault("Monitoring.Enabled") + section.add "Placement.Tenancy", valid_626797 + var valid_626798 = query.getOrDefault("IamInstanceProfile.Arn") valid_626798 = validateParameter(valid_626798, JString, required = false, default = nil) if valid_626798 != nil: - section.add "Monitoring.Enabled", valid_626798 - var valid_626799 = query.getOrDefault("IamInstanceProfile.Name") - valid_626799 = validateParameter(valid_626799, JString, required = false, - default = nil) + section.add "IamInstanceProfile.Arn", valid_626798 + var valid_626799 = query.getOrDefault("Version") + valid_626799 = validateParameter(valid_626799, JString, required = true, + default = newJString("2016-11-15")) if valid_626799 != nil: - section.add "IamInstanceProfile.Name", valid_626799 - var valid_626800 = query.getOrDefault("MetadataOptions.HttpPutResponseHopLimit") + section.add "Version", valid_626799 + var valid_626800 = query.getOrDefault("Monitoring.Enabled") valid_626800 = validateParameter(valid_626800, JString, required = false, default = nil) if valid_626800 != nil: - section.add "MetadataOptions.HttpPutResponseHopLimit", valid_626800 - var valid_626801 = query.getOrDefault("Placement.HostId") + section.add "Monitoring.Enabled", valid_626800 + var valid_626801 = query.getOrDefault("IamInstanceProfile.Name") valid_626801 = validateParameter(valid_626801, JString, required = false, default = nil) if valid_626801 != nil: - section.add "Placement.HostId", valid_626801 - var valid_626802 = query.getOrDefault("LaunchTemplate.LaunchTemplateId") + section.add "IamInstanceProfile.Name", valid_626801 + var valid_626802 = query.getOrDefault("MetadataOptions.HttpPutResponseHopLimit") valid_626802 = validateParameter(valid_626802, JString, required = false, default = nil) if valid_626802 != nil: - section.add "LaunchTemplate.LaunchTemplateId", valid_626802 + section.add "MetadataOptions.HttpPutResponseHopLimit", valid_626802 + var valid_626803 = query.getOrDefault("Placement.HostId") + valid_626803 = validateParameter(valid_626803, JString, required = false, + default = nil) + if valid_626803 != nil: + section.add "Placement.HostId", valid_626803 + var valid_626804 = query.getOrDefault("LaunchTemplate.LaunchTemplateId") + valid_626804 = validateParameter(valid_626804, JString, required = false, + default = nil) + if valid_626804 != nil: + section.add "LaunchTemplate.LaunchTemplateId", valid_626804 result.add "query", section ## parameters in `header` object: ## X-Amz-Security-Token: JString @@ -131035,61 +131062,61 @@ proc validate_GetRunInstances_626730(path: JsonNode; query: JsonNode; ## X-Amz-Credential: JString ## X-Amz-Algorithm: JString section = newJObject() - var valid_626803 = header.getOrDefault("X-Amz-Security-Token") - valid_626803 = validateParameter(valid_626803, JString, required = false, - default = nil) - if valid_626803 != nil: - section.add "X-Amz-Security-Token", valid_626803 - var valid_626804 = header.getOrDefault("X-Amz-SignedHeaders") - valid_626804 = validateParameter(valid_626804, JString, required = false, - default = nil) - if valid_626804 != nil: - section.add "X-Amz-SignedHeaders", valid_626804 - var valid_626805 = header.getOrDefault("X-Amz-Signature") + var valid_626805 = header.getOrDefault("X-Amz-Security-Token") valid_626805 = validateParameter(valid_626805, JString, required = false, default = nil) if valid_626805 != nil: - section.add "X-Amz-Signature", valid_626805 - var valid_626806 = header.getOrDefault("X-Amz-Content-Sha256") + section.add "X-Amz-Security-Token", valid_626805 + var valid_626806 = header.getOrDefault("X-Amz-SignedHeaders") valid_626806 = validateParameter(valid_626806, JString, required = false, default = nil) if valid_626806 != nil: - section.add "X-Amz-Content-Sha256", valid_626806 - var valid_626807 = header.getOrDefault("X-Amz-Date") + section.add "X-Amz-SignedHeaders", valid_626806 + var valid_626807 = header.getOrDefault("X-Amz-Signature") valid_626807 = validateParameter(valid_626807, JString, required = false, default = nil) if valid_626807 != nil: - section.add "X-Amz-Date", valid_626807 - var valid_626808 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626807 + var valid_626808 = header.getOrDefault("X-Amz-Content-Sha256") valid_626808 = validateParameter(valid_626808, JString, required = false, default = nil) if valid_626808 != nil: - section.add "X-Amz-Credential", valid_626808 - var valid_626809 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Content-Sha256", valid_626808 + var valid_626809 = header.getOrDefault("X-Amz-Date") valid_626809 = validateParameter(valid_626809, JString, required = false, default = nil) if valid_626809 != nil: - section.add "X-Amz-Algorithm", valid_626809 + section.add "X-Amz-Date", valid_626809 + var valid_626810 = header.getOrDefault("X-Amz-Credential") + valid_626810 = validateParameter(valid_626810, JString, required = false, + default = nil) + if valid_626810 != nil: + section.add "X-Amz-Credential", valid_626810 + var valid_626811 = header.getOrDefault("X-Amz-Algorithm") + valid_626811 = validateParameter(valid_626811, JString, required = false, + default = nil) + if valid_626811 != nil: + section.add "X-Amz-Algorithm", valid_626811 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626810: Call_GetRunInstances_626729; path: JsonNode; query: JsonNode; +proc call*(call_626812: Call_GetRunInstances_626731; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Launches the specified number of instances using an AMI for which you have permissions.

    You can specify a number of options, or leave the default options. The following rules apply:

    You can create a launch template, which is a resource that contains the parameters to launch an instance. When you launch an instance using RunInstances, you can specify the launch template instead of specifying the launch parameters.

    To ensure faster instance launches, break up large requests into smaller batches. For example, create five separate launch requests for 100 instances each instead of one launch request for 500 instances.

    An instance is ready for you to use when it's in the running state. You can check the state of your instance using DescribeInstances. You can tag instances and EBS volumes during launch, after launch, or both. For more information, see CreateTags and Tagging Your Amazon EC2 Resources.

    Linux instances have access to the public key of the key pair at boot. You can use this key to provide secure access to the instance. Amazon EC2 public images use this feature to provide secure access without passwords. For more information, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.

    For troubleshooting, see What To Do If An Instance Immediately Terminates, and Troubleshooting Connecting to Your Instance in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_626810.validator(path, query, header, formData, body) - let scheme = call_626810.pickScheme + let valid = call_626812.validator(path, query, header, formData, body) + let scheme = call_626812.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626810.url(scheme.get, call_626810.host, call_626810.base, - call_626810.route, valid.getOrDefault("path"), + let url = call_626812.url(scheme.get, call_626812.host, call_626812.base, + call_626812.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626810, url, valid) + result = atozHook(call_626812, url, valid) -proc call*(call_626811: Call_GetRunInstances_626729; MaxCount: int; MinCount: int; +proc call*(call_626813: Call_GetRunInstances_626731; MaxCount: int; MinCount: int; ClientToken: string = ""; KeyName: string = ""; InstanceInitiatedShutdownBehavior: string = "stop"; SecurityGroupId: JsonNode = nil; @@ -131270,95 +131297,95 @@ proc call*(call_626811: Call_GetRunInstances_626729; MaxCount: int; MinCount: in ## LaunchTemplateLaunchTemplateId: string ## : The launch template to use. You must specify either the launch template ID or launch template name in the request, but not both. ## The ID of the launch template. - var query_626812 = newJObject() - add(query_626812, "ClientToken", newJString(ClientToken)) - add(query_626812, "KeyName", newJString(KeyName)) - add(query_626812, "InstanceInitiatedShutdownBehavior", + var query_626814 = newJObject() + add(query_626814, "ClientToken", newJString(ClientToken)) + add(query_626814, "KeyName", newJString(KeyName)) + add(query_626814, "InstanceInitiatedShutdownBehavior", newJString(InstanceInitiatedShutdownBehavior)) if SecurityGroupId != nil: - query_626812.add "SecurityGroupId", SecurityGroupId - add(query_626812, "LaunchTemplate.LaunchTemplateName", + query_626814.add "SecurityGroupId", SecurityGroupId + add(query_626814, "LaunchTemplate.LaunchTemplateName", newJString(LaunchTemplateLaunchTemplateName)) - add(query_626812, "MetadataOptions.HttpTokens", + add(query_626814, "MetadataOptions.HttpTokens", newJString(MetadataOptionsHttpTokens)) - add(query_626812, "DryRun", newJBool(DryRun)) - add(query_626812, "CreditSpecification.CpuCredits", + add(query_626814, "DryRun", newJBool(DryRun)) + add(query_626814, "CreditSpecification.CpuCredits", newJString(CreditSpecificationCpuCredits)) if LicenseSpecification != nil: - query_626812.add "LicenseSpecification", LicenseSpecification - add(query_626812, "Placement.HostResourceGroupArn", + query_626814.add "LicenseSpecification", LicenseSpecification + add(query_626814, "Placement.HostResourceGroupArn", newJString(PlacementHostResourceGroupArn)) - add(query_626812, "AdditionalInfo", newJString(AdditionalInfo)) - add(query_626812, "RamdiskId", newJString(RamdiskId)) - add(query_626812, "Ipv6AddressCount", newJInt(Ipv6AddressCount)) - add(query_626812, "MaxCount", newJInt(MaxCount)) - add(query_626812, "PrivateIpAddress", newJString(PrivateIpAddress)) - add(query_626812, "InstanceMarketOptions.SpotOptions", + add(query_626814, "AdditionalInfo", newJString(AdditionalInfo)) + add(query_626814, "RamdiskId", newJString(RamdiskId)) + add(query_626814, "Ipv6AddressCount", newJInt(Ipv6AddressCount)) + add(query_626814, "MaxCount", newJInt(MaxCount)) + add(query_626814, "PrivateIpAddress", newJString(PrivateIpAddress)) + add(query_626814, "InstanceMarketOptions.SpotOptions", newJString(InstanceMarketOptionsSpotOptions)) - add(query_626812, "CapacityReservationSpecification.CapacityReservationTarget", + add(query_626814, "CapacityReservationSpecification.CapacityReservationTarget", newJString(CapacityReservationSpecificationCapacityReservationTarget)) - add(query_626812, "SubnetId", newJString(SubnetId)) - add(query_626812, "CpuOptions.ThreadsPerCore", + add(query_626814, "SubnetId", newJString(SubnetId)) + add(query_626814, "CpuOptions.ThreadsPerCore", newJString(CpuOptionsThreadsPerCore)) - add(query_626812, "Placement.SpreadDomain", newJString(PlacementSpreadDomain)) - add(query_626812, + add(query_626814, "Placement.SpreadDomain", newJString(PlacementSpreadDomain)) + add(query_626814, "CapacityReservationSpecification.CapacityReservationPreference", newJString(CapacityReservationSpecificationCapacityReservationPreference)) - add(query_626812, "Action", newJString(Action)) + add(query_626814, "Action", newJString(Action)) if BlockDeviceMapping != nil: - query_626812.add "BlockDeviceMapping", BlockDeviceMapping - add(query_626812, "LaunchTemplate.Version", newJString(LaunchTemplateVersion)) - add(query_626812, "Placement.Affinity", newJString(PlacementAffinity)) - add(query_626812, "InstanceMarketOptions.MarketType", + query_626814.add "BlockDeviceMapping", BlockDeviceMapping + add(query_626814, "LaunchTemplate.Version", newJString(LaunchTemplateVersion)) + add(query_626814, "Placement.Affinity", newJString(PlacementAffinity)) + add(query_626814, "InstanceMarketOptions.MarketType", newJString(InstanceMarketOptionsMarketType)) - add(query_626812, "Placement.GroupName", newJString(PlacementGroupName)) + add(query_626814, "Placement.GroupName", newJString(PlacementGroupName)) if Ipv6Address != nil: - query_626812.add "Ipv6Address", Ipv6Address + query_626814.add "Ipv6Address", Ipv6Address if NetworkInterface != nil: - query_626812.add "NetworkInterface", NetworkInterface + query_626814.add "NetworkInterface", NetworkInterface if ElasticInferenceAccelerator != nil: - query_626812.add "ElasticInferenceAccelerator", ElasticInferenceAccelerator - add(query_626812, "MinCount", newJInt(MinCount)) - add(query_626812, "Placement.PartitionNumber", + query_626814.add "ElasticInferenceAccelerator", ElasticInferenceAccelerator + add(query_626814, "MinCount", newJInt(MinCount)) + add(query_626814, "Placement.PartitionNumber", newJString(PlacementPartitionNumber)) if SecurityGroup != nil: - query_626812.add "SecurityGroup", SecurityGroup - add(query_626812, "ImageId", newJString(ImageId)) - add(query_626812, "CpuOptions.CoreCount", newJString(CpuOptionsCoreCount)) - add(query_626812, "MetadataOptions.HttpEndpoint", + query_626814.add "SecurityGroup", SecurityGroup + add(query_626814, "ImageId", newJString(ImageId)) + add(query_626814, "CpuOptions.CoreCount", newJString(CpuOptionsCoreCount)) + add(query_626814, "MetadataOptions.HttpEndpoint", newJString(MetadataOptionsHttpEndpoint)) - add(query_626812, "EbsOptimized", newJBool(EbsOptimized)) - add(query_626812, "UserData", newJString(UserData)) - add(query_626812, "DisableApiTermination", newJBool(DisableApiTermination)) - add(query_626812, "KernelId", newJString(KernelId)) - add(query_626812, "HibernationOptions.Configured", + add(query_626814, "EbsOptimized", newJBool(EbsOptimized)) + add(query_626814, "UserData", newJString(UserData)) + add(query_626814, "DisableApiTermination", newJBool(DisableApiTermination)) + add(query_626814, "KernelId", newJString(KernelId)) + add(query_626814, "HibernationOptions.Configured", newJString(HibernationOptionsConfigured)) - add(query_626812, "InstanceType", newJString(InstanceType)) + add(query_626814, "InstanceType", newJString(InstanceType)) if ElasticGpuSpecification != nil: - query_626812.add "ElasticGpuSpecification", ElasticGpuSpecification + query_626814.add "ElasticGpuSpecification", ElasticGpuSpecification if TagSpecification != nil: - query_626812.add "TagSpecification", TagSpecification - add(query_626812, "Placement.AvailabilityZone", + query_626814.add "TagSpecification", TagSpecification + add(query_626814, "Placement.AvailabilityZone", newJString(PlacementAvailabilityZone)) - add(query_626812, "Placement.Tenancy", newJString(PlacementTenancy)) - add(query_626812, "IamInstanceProfile.Arn", newJString(IamInstanceProfileArn)) - add(query_626812, "Version", newJString(Version)) - add(query_626812, "Monitoring.Enabled", newJString(MonitoringEnabled)) - add(query_626812, "IamInstanceProfile.Name", newJString(IamInstanceProfileName)) - add(query_626812, "MetadataOptions.HttpPutResponseHopLimit", + add(query_626814, "Placement.Tenancy", newJString(PlacementTenancy)) + add(query_626814, "IamInstanceProfile.Arn", newJString(IamInstanceProfileArn)) + add(query_626814, "Version", newJString(Version)) + add(query_626814, "Monitoring.Enabled", newJString(MonitoringEnabled)) + add(query_626814, "IamInstanceProfile.Name", newJString(IamInstanceProfileName)) + add(query_626814, "MetadataOptions.HttpPutResponseHopLimit", newJString(MetadataOptionsHttpPutResponseHopLimit)) - add(query_626812, "Placement.HostId", newJString(PlacementHostId)) - add(query_626812, "LaunchTemplate.LaunchTemplateId", + add(query_626814, "Placement.HostId", newJString(PlacementHostId)) + add(query_626814, "LaunchTemplate.LaunchTemplateId", newJString(LaunchTemplateLaunchTemplateId)) - result = call_626811.call(nil, query_626812, nil, nil, nil) + result = call_626813.call(nil, query_626814, nil, nil, nil) -var getRunInstances* = Call_GetRunInstances_626729(name: "getRunInstances", +var getRunInstances* = Call_GetRunInstances_626731(name: "getRunInstances", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=RunInstances", validator: validate_GetRunInstances_626730, - base: "/", url: url_GetRunInstances_626731, schemes: {Scheme.Https, Scheme.Http}) + route: "/#Action=RunInstances", validator: validate_GetRunInstances_626732, + base: "/", url: url_GetRunInstances_626733, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostRunScheduledInstances_626913 = ref object of OpenApiRestCall_610658 -proc url_PostRunScheduledInstances_626915(protocol: Scheme; host: string; + Call_PostRunScheduledInstances_626915 = ref object of OpenApiRestCall_610658 +proc url_PostRunScheduledInstances_626917(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -131368,7 +131395,7 @@ proc url_PostRunScheduledInstances_626915(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostRunScheduledInstances_626914(path: JsonNode; query: JsonNode; +proc validate_PostRunScheduledInstances_626916(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Launches the specified Scheduled Instances.

    Before you can launch a Scheduled Instance, you must purchase it and obtain an identifier using PurchaseScheduledInstances.

    You must launch a Scheduled Instance during its scheduled time period. You can't stop or reboot a Scheduled Instance, but you can terminate it as needed. If you terminate a Scheduled Instance before the current scheduled time period ends, you can launch it again after a few minutes. For more information, see Scheduled Instances in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -131380,16 +131407,16 @@ proc validate_PostRunScheduledInstances_626914(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_626916 = query.getOrDefault("Action") - valid_626916 = validateParameter(valid_626916, JString, required = true, + var valid_626918 = query.getOrDefault("Action") + valid_626918 = validateParameter(valid_626918, JString, required = true, default = newJString("RunScheduledInstances")) - if valid_626916 != nil: - section.add "Action", valid_626916 - var valid_626917 = query.getOrDefault("Version") - valid_626917 = validateParameter(valid_626917, JString, required = true, + if valid_626918 != nil: + section.add "Action", valid_626918 + var valid_626919 = query.getOrDefault("Version") + valid_626919 = validateParameter(valid_626919, JString, required = true, default = newJString("2016-11-15")) - if valid_626917 != nil: - section.add "Version", valid_626917 + if valid_626919 != nil: + section.add "Version", valid_626919 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -131400,41 +131427,41 @@ proc validate_PostRunScheduledInstances_626914(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626918 = header.getOrDefault("X-Amz-Signature") - valid_626918 = validateParameter(valid_626918, JString, required = false, - default = nil) - if valid_626918 != nil: - section.add "X-Amz-Signature", valid_626918 - var valid_626919 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626919 = validateParameter(valid_626919, JString, required = false, - default = nil) - if valid_626919 != nil: - section.add "X-Amz-Content-Sha256", valid_626919 - var valid_626920 = header.getOrDefault("X-Amz-Date") + var valid_626920 = header.getOrDefault("X-Amz-Signature") valid_626920 = validateParameter(valid_626920, JString, required = false, default = nil) if valid_626920 != nil: - section.add "X-Amz-Date", valid_626920 - var valid_626921 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626920 + var valid_626921 = header.getOrDefault("X-Amz-Content-Sha256") valid_626921 = validateParameter(valid_626921, JString, required = false, default = nil) if valid_626921 != nil: - section.add "X-Amz-Credential", valid_626921 - var valid_626922 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626921 + var valid_626922 = header.getOrDefault("X-Amz-Date") valid_626922 = validateParameter(valid_626922, JString, required = false, default = nil) if valid_626922 != nil: - section.add "X-Amz-Security-Token", valid_626922 - var valid_626923 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626922 + var valid_626923 = header.getOrDefault("X-Amz-Credential") valid_626923 = validateParameter(valid_626923, JString, required = false, default = nil) if valid_626923 != nil: - section.add "X-Amz-Algorithm", valid_626923 - var valid_626924 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626923 + var valid_626924 = header.getOrDefault("X-Amz-Security-Token") valid_626924 = validateParameter(valid_626924, JString, required = false, default = nil) if valid_626924 != nil: - section.add "X-Amz-SignedHeaders", valid_626924 + section.add "X-Amz-Security-Token", valid_626924 + var valid_626925 = header.getOrDefault("X-Amz-Algorithm") + valid_626925 = validateParameter(valid_626925, JString, required = false, + default = nil) + if valid_626925 != nil: + section.add "X-Amz-Algorithm", valid_626925 + var valid_626926 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626926 = validateParameter(valid_626926, JString, required = false, + default = nil) + if valid_626926 != nil: + section.add "X-Amz-SignedHeaders", valid_626926 result.add "header", section ## parameters in `formData` object: ## LaunchSpecification.Monitoring: JString @@ -131489,113 +131516,113 @@ proc validate_PostRunScheduledInstances_626914(path: JsonNode; query: JsonNode; ## :

    Describes the launch specification for a Scheduled Instance.

    If you are launching the Scheduled Instance in EC2-VPC, you must specify the ID of the subnet. You can specify the subnet using either SubnetId or NetworkInterface.

    ## The block device mapping entries. section = newJObject() - var valid_626925 = formData.getOrDefault("LaunchSpecification.Monitoring") - valid_626925 = validateParameter(valid_626925, JString, required = false, - default = nil) - if valid_626925 != nil: - section.add "LaunchSpecification.Monitoring", valid_626925 - var valid_626926 = formData.getOrDefault("LaunchSpecification.SubnetId") - valid_626926 = validateParameter(valid_626926, JString, required = false, - default = nil) - if valid_626926 != nil: - section.add "LaunchSpecification.SubnetId", valid_626926 - var valid_626927 = formData.getOrDefault("LaunchSpecification.KernelId") + var valid_626927 = formData.getOrDefault("LaunchSpecification.Monitoring") valid_626927 = validateParameter(valid_626927, JString, required = false, default = nil) if valid_626927 != nil: - section.add "LaunchSpecification.KernelId", valid_626927 - var valid_626928 = formData.getOrDefault("LaunchSpecification.IamInstanceProfile") + section.add "LaunchSpecification.Monitoring", valid_626927 + var valid_626928 = formData.getOrDefault("LaunchSpecification.SubnetId") valid_626928 = validateParameter(valid_626928, JString, required = false, default = nil) if valid_626928 != nil: - section.add "LaunchSpecification.IamInstanceProfile", valid_626928 - var valid_626929 = formData.getOrDefault("LaunchSpecification.UserData") + section.add "LaunchSpecification.SubnetId", valid_626928 + var valid_626929 = formData.getOrDefault("LaunchSpecification.KernelId") valid_626929 = validateParameter(valid_626929, JString, required = false, default = nil) if valid_626929 != nil: - section.add "LaunchSpecification.UserData", valid_626929 - var valid_626930 = formData.getOrDefault("LaunchSpecification.ImageId") + section.add "LaunchSpecification.KernelId", valid_626929 + var valid_626930 = formData.getOrDefault("LaunchSpecification.IamInstanceProfile") valid_626930 = validateParameter(valid_626930, JString, required = false, default = nil) if valid_626930 != nil: - section.add "LaunchSpecification.ImageId", valid_626930 - var valid_626931 = formData.getOrDefault("InstanceCount") - valid_626931 = validateParameter(valid_626931, JInt, required = false, default = nil) + section.add "LaunchSpecification.IamInstanceProfile", valid_626930 + var valid_626931 = formData.getOrDefault("LaunchSpecification.UserData") + valid_626931 = validateParameter(valid_626931, JString, required = false, + default = nil) if valid_626931 != nil: - section.add "InstanceCount", valid_626931 - var valid_626932 = formData.getOrDefault("LaunchSpecification.KeyName") + section.add "LaunchSpecification.UserData", valid_626931 + var valid_626932 = formData.getOrDefault("LaunchSpecification.ImageId") valid_626932 = validateParameter(valid_626932, JString, required = false, default = nil) if valid_626932 != nil: - section.add "LaunchSpecification.KeyName", valid_626932 - var valid_626933 = formData.getOrDefault("LaunchSpecification.EbsOptimized") - valid_626933 = validateParameter(valid_626933, JString, required = false, - default = nil) + section.add "LaunchSpecification.ImageId", valid_626932 + var valid_626933 = formData.getOrDefault("InstanceCount") + valid_626933 = validateParameter(valid_626933, JInt, required = false, default = nil) if valid_626933 != nil: - section.add "LaunchSpecification.EbsOptimized", valid_626933 - var valid_626934 = formData.getOrDefault("DryRun") - valid_626934 = validateParameter(valid_626934, JBool, required = false, default = nil) + section.add "InstanceCount", valid_626933 + var valid_626934 = formData.getOrDefault("LaunchSpecification.KeyName") + valid_626934 = validateParameter(valid_626934, JString, required = false, + default = nil) if valid_626934 != nil: - section.add "DryRun", valid_626934 - var valid_626935 = formData.getOrDefault("LaunchSpecification.Placement") + section.add "LaunchSpecification.KeyName", valid_626934 + var valid_626935 = formData.getOrDefault("LaunchSpecification.EbsOptimized") valid_626935 = validateParameter(valid_626935, JString, required = false, default = nil) if valid_626935 != nil: - section.add "LaunchSpecification.Placement", valid_626935 - var valid_626936 = formData.getOrDefault("LaunchSpecification.InstanceType") - valid_626936 = validateParameter(valid_626936, JString, required = false, - default = nil) + section.add "LaunchSpecification.EbsOptimized", valid_626935 + var valid_626936 = formData.getOrDefault("DryRun") + valid_626936 = validateParameter(valid_626936, JBool, required = false, default = nil) if valid_626936 != nil: - section.add "LaunchSpecification.InstanceType", valid_626936 - var valid_626937 = formData.getOrDefault("LaunchSpecification.SecurityGroupIds") - valid_626937 = validateParameter(valid_626937, JArray, required = false, + section.add "DryRun", valid_626936 + var valid_626937 = formData.getOrDefault("LaunchSpecification.Placement") + valid_626937 = validateParameter(valid_626937, JString, required = false, default = nil) if valid_626937 != nil: - section.add "LaunchSpecification.SecurityGroupIds", valid_626937 - var valid_626938 = formData.getOrDefault("LaunchSpecification.RamdiskId") + section.add "LaunchSpecification.Placement", valid_626937 + var valid_626938 = formData.getOrDefault("LaunchSpecification.InstanceType") valid_626938 = validateParameter(valid_626938, JString, required = false, default = nil) if valid_626938 != nil: - section.add "LaunchSpecification.RamdiskId", valid_626938 - var valid_626939 = formData.getOrDefault("ClientToken") - valid_626939 = validateParameter(valid_626939, JString, required = false, + section.add "LaunchSpecification.InstanceType", valid_626938 + var valid_626939 = formData.getOrDefault("LaunchSpecification.SecurityGroupIds") + valid_626939 = validateParameter(valid_626939, JArray, required = false, default = nil) if valid_626939 != nil: - section.add "ClientToken", valid_626939 - assert formData != nil, "formData argument is necessary due to required `ScheduledInstanceId` field" - var valid_626940 = formData.getOrDefault("ScheduledInstanceId") - valid_626940 = validateParameter(valid_626940, JString, required = true, + section.add "LaunchSpecification.SecurityGroupIds", valid_626939 + var valid_626940 = formData.getOrDefault("LaunchSpecification.RamdiskId") + valid_626940 = validateParameter(valid_626940, JString, required = false, default = nil) if valid_626940 != nil: - section.add "ScheduledInstanceId", valid_626940 - var valid_626941 = formData.getOrDefault("LaunchSpecification.NetworkInterfaces") - valid_626941 = validateParameter(valid_626941, JArray, required = false, + section.add "LaunchSpecification.RamdiskId", valid_626940 + var valid_626941 = formData.getOrDefault("ClientToken") + valid_626941 = validateParameter(valid_626941, JString, required = false, default = nil) if valid_626941 != nil: - section.add "LaunchSpecification.NetworkInterfaces", valid_626941 - var valid_626942 = formData.getOrDefault("LaunchSpecification.BlockDeviceMappings") - valid_626942 = validateParameter(valid_626942, JArray, required = false, + section.add "ClientToken", valid_626941 + assert formData != nil, "formData argument is necessary due to required `ScheduledInstanceId` field" + var valid_626942 = formData.getOrDefault("ScheduledInstanceId") + valid_626942 = validateParameter(valid_626942, JString, required = true, default = nil) if valid_626942 != nil: - section.add "LaunchSpecification.BlockDeviceMappings", valid_626942 + section.add "ScheduledInstanceId", valid_626942 + var valid_626943 = formData.getOrDefault("LaunchSpecification.NetworkInterfaces") + valid_626943 = validateParameter(valid_626943, JArray, required = false, + default = nil) + if valid_626943 != nil: + section.add "LaunchSpecification.NetworkInterfaces", valid_626943 + var valid_626944 = formData.getOrDefault("LaunchSpecification.BlockDeviceMappings") + valid_626944 = validateParameter(valid_626944, JArray, required = false, + default = nil) + if valid_626944 != nil: + section.add "LaunchSpecification.BlockDeviceMappings", valid_626944 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626943: Call_PostRunScheduledInstances_626913; path: JsonNode; +proc call*(call_626945: Call_PostRunScheduledInstances_626915; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Launches the specified Scheduled Instances.

    Before you can launch a Scheduled Instance, you must purchase it and obtain an identifier using PurchaseScheduledInstances.

    You must launch a Scheduled Instance during its scheduled time period. You can't stop or reboot a Scheduled Instance, but you can terminate it as needed. If you terminate a Scheduled Instance before the current scheduled time period ends, you can launch it again after a few minutes. For more information, see Scheduled Instances in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_626943.validator(path, query, header, formData, body) - let scheme = call_626943.pickScheme + let valid = call_626945.validator(path, query, header, formData, body) + let scheme = call_626945.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626943.url(scheme.get, call_626943.host, call_626943.base, - call_626943.route, valid.getOrDefault("path"), + let url = call_626945.url(scheme.get, call_626945.host, call_626945.base, + call_626945.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626943, url, valid) + result = atozHook(call_626945, url, valid) -proc call*(call_626944: Call_PostRunScheduledInstances_626913; +proc call*(call_626946: Call_PostRunScheduledInstances_626915; ScheduledInstanceId: string; LaunchSpecificationMonitoring: string = ""; LaunchSpecificationSubnetId: string = ""; LaunchSpecificationKernelId: string = ""; @@ -131667,56 +131694,56 @@ proc call*(call_626944: Call_PostRunScheduledInstances_626913; ## LaunchSpecificationBlockDeviceMappings: JArray ## :

    Describes the launch specification for a Scheduled Instance.

    If you are launching the Scheduled Instance in EC2-VPC, you must specify the ID of the subnet. You can specify the subnet using either SubnetId or NetworkInterface.

    ## The block device mapping entries. - var query_626945 = newJObject() - var formData_626946 = newJObject() - add(formData_626946, "LaunchSpecification.Monitoring", + var query_626947 = newJObject() + var formData_626948 = newJObject() + add(formData_626948, "LaunchSpecification.Monitoring", newJString(LaunchSpecificationMonitoring)) - add(formData_626946, "LaunchSpecification.SubnetId", + add(formData_626948, "LaunchSpecification.SubnetId", newJString(LaunchSpecificationSubnetId)) - add(formData_626946, "LaunchSpecification.KernelId", + add(formData_626948, "LaunchSpecification.KernelId", newJString(LaunchSpecificationKernelId)) - add(formData_626946, "LaunchSpecification.IamInstanceProfile", + add(formData_626948, "LaunchSpecification.IamInstanceProfile", newJString(LaunchSpecificationIamInstanceProfile)) - add(formData_626946, "LaunchSpecification.UserData", + add(formData_626948, "LaunchSpecification.UserData", newJString(LaunchSpecificationUserData)) - add(formData_626946, "LaunchSpecification.ImageId", + add(formData_626948, "LaunchSpecification.ImageId", newJString(LaunchSpecificationImageId)) - add(formData_626946, "InstanceCount", newJInt(InstanceCount)) - add(formData_626946, "LaunchSpecification.KeyName", + add(formData_626948, "InstanceCount", newJInt(InstanceCount)) + add(formData_626948, "LaunchSpecification.KeyName", newJString(LaunchSpecificationKeyName)) - add(formData_626946, "LaunchSpecification.EbsOptimized", + add(formData_626948, "LaunchSpecification.EbsOptimized", newJString(LaunchSpecificationEbsOptimized)) - add(formData_626946, "DryRun", newJBool(DryRun)) - add(formData_626946, "LaunchSpecification.Placement", + add(formData_626948, "DryRun", newJBool(DryRun)) + add(formData_626948, "LaunchSpecification.Placement", newJString(LaunchSpecificationPlacement)) - add(formData_626946, "LaunchSpecification.InstanceType", + add(formData_626948, "LaunchSpecification.InstanceType", newJString(LaunchSpecificationInstanceType)) - add(query_626945, "Action", newJString(Action)) + add(query_626947, "Action", newJString(Action)) if LaunchSpecificationSecurityGroupIds != nil: - formData_626946.add "LaunchSpecification.SecurityGroupIds", + formData_626948.add "LaunchSpecification.SecurityGroupIds", LaunchSpecificationSecurityGroupIds - add(formData_626946, "LaunchSpecification.RamdiskId", + add(formData_626948, "LaunchSpecification.RamdiskId", newJString(LaunchSpecificationRamdiskId)) - add(query_626945, "Version", newJString(Version)) - add(formData_626946, "ClientToken", newJString(ClientToken)) - add(formData_626946, "ScheduledInstanceId", newJString(ScheduledInstanceId)) + add(query_626947, "Version", newJString(Version)) + add(formData_626948, "ClientToken", newJString(ClientToken)) + add(formData_626948, "ScheduledInstanceId", newJString(ScheduledInstanceId)) if LaunchSpecificationNetworkInterfaces != nil: - formData_626946.add "LaunchSpecification.NetworkInterfaces", + formData_626948.add "LaunchSpecification.NetworkInterfaces", LaunchSpecificationNetworkInterfaces if LaunchSpecificationBlockDeviceMappings != nil: - formData_626946.add "LaunchSpecification.BlockDeviceMappings", + formData_626948.add "LaunchSpecification.BlockDeviceMappings", LaunchSpecificationBlockDeviceMappings - result = call_626944.call(nil, query_626945, nil, formData_626946, nil) + result = call_626946.call(nil, query_626947, nil, formData_626948, nil) -var postRunScheduledInstances* = Call_PostRunScheduledInstances_626913( +var postRunScheduledInstances* = Call_PostRunScheduledInstances_626915( name: "postRunScheduledInstances", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=RunScheduledInstances", - validator: validate_PostRunScheduledInstances_626914, base: "/", - url: url_PostRunScheduledInstances_626915, + validator: validate_PostRunScheduledInstances_626916, base: "/", + url: url_PostRunScheduledInstances_626917, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetRunScheduledInstances_626880 = ref object of OpenApiRestCall_610658 -proc url_GetRunScheduledInstances_626882(protocol: Scheme; host: string; + Call_GetRunScheduledInstances_626882 = ref object of OpenApiRestCall_610658 +proc url_GetRunScheduledInstances_626884(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -131727,7 +131754,7 @@ proc url_GetRunScheduledInstances_626882(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetRunScheduledInstances_626881(path: JsonNode; query: JsonNode; +proc validate_GetRunScheduledInstances_626883(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Launches the specified Scheduled Instances.

    Before you can launch a Scheduled Instance, you must purchase it and obtain an identifier using PurchaseScheduledInstances.

    You must launch a Scheduled Instance during its scheduled time period. You can't stop or reboot a Scheduled Instance, but you can terminate it as needed. If you terminate a Scheduled Instance before the current scheduled time period ends, you can launch it again after a few minutes. For more information, see Scheduled Instances in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -131790,104 +131817,104 @@ proc validate_GetRunScheduledInstances_626881(path: JsonNode; query: JsonNode; ## InstanceCount: JInt ## :

    The number of instances.

    Default: 1

    section = newJObject() - var valid_626883 = query.getOrDefault("ClientToken") - valid_626883 = validateParameter(valid_626883, JString, required = false, - default = nil) - if valid_626883 != nil: - section.add "ClientToken", valid_626883 - var valid_626884 = query.getOrDefault("LaunchSpecification.InstanceType") - valid_626884 = validateParameter(valid_626884, JString, required = false, - default = nil) - if valid_626884 != nil: - section.add "LaunchSpecification.InstanceType", valid_626884 - var valid_626885 = query.getOrDefault("LaunchSpecification.RamdiskId") + var valid_626885 = query.getOrDefault("ClientToken") valid_626885 = validateParameter(valid_626885, JString, required = false, default = nil) if valid_626885 != nil: - section.add "LaunchSpecification.RamdiskId", valid_626885 - var valid_626886 = query.getOrDefault("LaunchSpecification.SubnetId") + section.add "ClientToken", valid_626885 + var valid_626886 = query.getOrDefault("LaunchSpecification.InstanceType") valid_626886 = validateParameter(valid_626886, JString, required = false, default = nil) if valid_626886 != nil: - section.add "LaunchSpecification.SubnetId", valid_626886 - var valid_626887 = query.getOrDefault("DryRun") - valid_626887 = validateParameter(valid_626887, JBool, required = false, default = nil) + section.add "LaunchSpecification.InstanceType", valid_626886 + var valid_626887 = query.getOrDefault("LaunchSpecification.RamdiskId") + valid_626887 = validateParameter(valid_626887, JString, required = false, + default = nil) if valid_626887 != nil: - section.add "DryRun", valid_626887 - var valid_626888 = query.getOrDefault("LaunchSpecification.KernelId") + section.add "LaunchSpecification.RamdiskId", valid_626887 + var valid_626888 = query.getOrDefault("LaunchSpecification.SubnetId") valid_626888 = validateParameter(valid_626888, JString, required = false, default = nil) if valid_626888 != nil: - section.add "LaunchSpecification.KernelId", valid_626888 - var valid_626889 = query.getOrDefault("LaunchSpecification.SecurityGroupIds") - valid_626889 = validateParameter(valid_626889, JArray, required = false, - default = nil) + section.add "LaunchSpecification.SubnetId", valid_626888 + var valid_626889 = query.getOrDefault("DryRun") + valid_626889 = validateParameter(valid_626889, JBool, required = false, default = nil) if valid_626889 != nil: - section.add "LaunchSpecification.SecurityGroupIds", valid_626889 - var valid_626890 = query.getOrDefault("LaunchSpecification.ImageId") + section.add "DryRun", valid_626889 + var valid_626890 = query.getOrDefault("LaunchSpecification.KernelId") valid_626890 = validateParameter(valid_626890, JString, required = false, default = nil) if valid_626890 != nil: - section.add "LaunchSpecification.ImageId", valid_626890 - var valid_626891 = query.getOrDefault("LaunchSpecification.IamInstanceProfile") - valid_626891 = validateParameter(valid_626891, JString, required = false, + section.add "LaunchSpecification.KernelId", valid_626890 + var valid_626891 = query.getOrDefault("LaunchSpecification.SecurityGroupIds") + valid_626891 = validateParameter(valid_626891, JArray, required = false, default = nil) if valid_626891 != nil: - section.add "LaunchSpecification.IamInstanceProfile", valid_626891 - var valid_626892 = query.getOrDefault("LaunchSpecification.UserData") + section.add "LaunchSpecification.SecurityGroupIds", valid_626891 + var valid_626892 = query.getOrDefault("LaunchSpecification.ImageId") valid_626892 = validateParameter(valid_626892, JString, required = false, default = nil) if valid_626892 != nil: - section.add "LaunchSpecification.UserData", valid_626892 - var valid_626893 = query.getOrDefault("LaunchSpecification.EbsOptimized") + section.add "LaunchSpecification.ImageId", valid_626892 + var valid_626893 = query.getOrDefault("LaunchSpecification.IamInstanceProfile") valid_626893 = validateParameter(valid_626893, JString, required = false, default = nil) if valid_626893 != nil: - section.add "LaunchSpecification.EbsOptimized", valid_626893 - var valid_626894 = query.getOrDefault("LaunchSpecification.BlockDeviceMappings") - valid_626894 = validateParameter(valid_626894, JArray, required = false, + section.add "LaunchSpecification.IamInstanceProfile", valid_626893 + var valid_626894 = query.getOrDefault("LaunchSpecification.UserData") + valid_626894 = validateParameter(valid_626894, JString, required = false, default = nil) if valid_626894 != nil: - section.add "LaunchSpecification.BlockDeviceMappings", valid_626894 - var valid_626895 = query.getOrDefault("LaunchSpecification.NetworkInterfaces") - valid_626895 = validateParameter(valid_626895, JArray, required = false, + section.add "LaunchSpecification.UserData", valid_626894 + var valid_626895 = query.getOrDefault("LaunchSpecification.EbsOptimized") + valid_626895 = validateParameter(valid_626895, JString, required = false, default = nil) if valid_626895 != nil: - section.add "LaunchSpecification.NetworkInterfaces", valid_626895 - var valid_626896 = query.getOrDefault("Action") - valid_626896 = validateParameter(valid_626896, JString, required = true, - default = newJString("RunScheduledInstances")) + section.add "LaunchSpecification.EbsOptimized", valid_626895 + var valid_626896 = query.getOrDefault("LaunchSpecification.BlockDeviceMappings") + valid_626896 = validateParameter(valid_626896, JArray, required = false, + default = nil) if valid_626896 != nil: - section.add "Action", valid_626896 - var valid_626897 = query.getOrDefault("LaunchSpecification.Monitoring") - valid_626897 = validateParameter(valid_626897, JString, required = false, + section.add "LaunchSpecification.BlockDeviceMappings", valid_626896 + var valid_626897 = query.getOrDefault("LaunchSpecification.NetworkInterfaces") + valid_626897 = validateParameter(valid_626897, JArray, required = false, default = nil) if valid_626897 != nil: - section.add "LaunchSpecification.Monitoring", valid_626897 - var valid_626898 = query.getOrDefault("LaunchSpecification.KeyName") - valid_626898 = validateParameter(valid_626898, JString, required = false, - default = nil) + section.add "LaunchSpecification.NetworkInterfaces", valid_626897 + var valid_626898 = query.getOrDefault("Action") + valid_626898 = validateParameter(valid_626898, JString, required = true, + default = newJString("RunScheduledInstances")) if valid_626898 != nil: - section.add "LaunchSpecification.KeyName", valid_626898 - var valid_626899 = query.getOrDefault("LaunchSpecification.Placement") + section.add "Action", valid_626898 + var valid_626899 = query.getOrDefault("LaunchSpecification.Monitoring") valid_626899 = validateParameter(valid_626899, JString, required = false, default = nil) if valid_626899 != nil: - section.add "LaunchSpecification.Placement", valid_626899 - var valid_626900 = query.getOrDefault("ScheduledInstanceId") - valid_626900 = validateParameter(valid_626900, JString, required = true, + section.add "LaunchSpecification.Monitoring", valid_626899 + var valid_626900 = query.getOrDefault("LaunchSpecification.KeyName") + valid_626900 = validateParameter(valid_626900, JString, required = false, default = nil) if valid_626900 != nil: - section.add "ScheduledInstanceId", valid_626900 - var valid_626901 = query.getOrDefault("Version") - valid_626901 = validateParameter(valid_626901, JString, required = true, - default = newJString("2016-11-15")) + section.add "LaunchSpecification.KeyName", valid_626900 + var valid_626901 = query.getOrDefault("LaunchSpecification.Placement") + valid_626901 = validateParameter(valid_626901, JString, required = false, + default = nil) if valid_626901 != nil: - section.add "Version", valid_626901 - var valid_626902 = query.getOrDefault("InstanceCount") - valid_626902 = validateParameter(valid_626902, JInt, required = false, default = nil) + section.add "LaunchSpecification.Placement", valid_626901 + var valid_626902 = query.getOrDefault("ScheduledInstanceId") + valid_626902 = validateParameter(valid_626902, JString, required = true, + default = nil) if valid_626902 != nil: - section.add "InstanceCount", valid_626902 + section.add "ScheduledInstanceId", valid_626902 + var valid_626903 = query.getOrDefault("Version") + valid_626903 = validateParameter(valid_626903, JString, required = true, + default = newJString("2016-11-15")) + if valid_626903 != nil: + section.add "Version", valid_626903 + var valid_626904 = query.getOrDefault("InstanceCount") + valid_626904 = validateParameter(valid_626904, JInt, required = false, default = nil) + if valid_626904 != nil: + section.add "InstanceCount", valid_626904 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -131898,61 +131925,61 @@ proc validate_GetRunScheduledInstances_626881(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626903 = header.getOrDefault("X-Amz-Signature") - valid_626903 = validateParameter(valid_626903, JString, required = false, - default = nil) - if valid_626903 != nil: - section.add "X-Amz-Signature", valid_626903 - var valid_626904 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626904 = validateParameter(valid_626904, JString, required = false, - default = nil) - if valid_626904 != nil: - section.add "X-Amz-Content-Sha256", valid_626904 - var valid_626905 = header.getOrDefault("X-Amz-Date") + var valid_626905 = header.getOrDefault("X-Amz-Signature") valid_626905 = validateParameter(valid_626905, JString, required = false, default = nil) if valid_626905 != nil: - section.add "X-Amz-Date", valid_626905 - var valid_626906 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626905 + var valid_626906 = header.getOrDefault("X-Amz-Content-Sha256") valid_626906 = validateParameter(valid_626906, JString, required = false, default = nil) if valid_626906 != nil: - section.add "X-Amz-Credential", valid_626906 - var valid_626907 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626906 + var valid_626907 = header.getOrDefault("X-Amz-Date") valid_626907 = validateParameter(valid_626907, JString, required = false, default = nil) if valid_626907 != nil: - section.add "X-Amz-Security-Token", valid_626907 - var valid_626908 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626907 + var valid_626908 = header.getOrDefault("X-Amz-Credential") valid_626908 = validateParameter(valid_626908, JString, required = false, default = nil) if valid_626908 != nil: - section.add "X-Amz-Algorithm", valid_626908 - var valid_626909 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626908 + var valid_626909 = header.getOrDefault("X-Amz-Security-Token") valid_626909 = validateParameter(valid_626909, JString, required = false, default = nil) if valid_626909 != nil: - section.add "X-Amz-SignedHeaders", valid_626909 + section.add "X-Amz-Security-Token", valid_626909 + var valid_626910 = header.getOrDefault("X-Amz-Algorithm") + valid_626910 = validateParameter(valid_626910, JString, required = false, + default = nil) + if valid_626910 != nil: + section.add "X-Amz-Algorithm", valid_626910 + var valid_626911 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626911 = validateParameter(valid_626911, JString, required = false, + default = nil) + if valid_626911 != nil: + section.add "X-Amz-SignedHeaders", valid_626911 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626910: Call_GetRunScheduledInstances_626880; path: JsonNode; +proc call*(call_626912: Call_GetRunScheduledInstances_626882; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Launches the specified Scheduled Instances.

    Before you can launch a Scheduled Instance, you must purchase it and obtain an identifier using PurchaseScheduledInstances.

    You must launch a Scheduled Instance during its scheduled time period. You can't stop or reboot a Scheduled Instance, but you can terminate it as needed. If you terminate a Scheduled Instance before the current scheduled time period ends, you can launch it again after a few minutes. For more information, see Scheduled Instances in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_626910.validator(path, query, header, formData, body) - let scheme = call_626910.pickScheme + let valid = call_626912.validator(path, query, header, formData, body) + let scheme = call_626912.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626910.url(scheme.get, call_626910.host, call_626910.base, - call_626910.route, valid.getOrDefault("path"), + let url = call_626912.url(scheme.get, call_626912.host, call_626912.base, + call_626912.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626910, url, valid) + result = atozHook(call_626912, url, valid) -proc call*(call_626911: Call_GetRunScheduledInstances_626880; +proc call*(call_626913: Call_GetRunScheduledInstances_626882; ScheduledInstanceId: string; ClientToken: string = ""; LaunchSpecificationInstanceType: string = ""; LaunchSpecificationRamdiskId: string = ""; @@ -132025,54 +132052,54 @@ proc call*(call_626911: Call_GetRunScheduledInstances_626880; ## Version: string (required) ## InstanceCount: int ## :

    The number of instances.

    Default: 1

    - var query_626912 = newJObject() - add(query_626912, "ClientToken", newJString(ClientToken)) - add(query_626912, "LaunchSpecification.InstanceType", + var query_626914 = newJObject() + add(query_626914, "ClientToken", newJString(ClientToken)) + add(query_626914, "LaunchSpecification.InstanceType", newJString(LaunchSpecificationInstanceType)) - add(query_626912, "LaunchSpecification.RamdiskId", + add(query_626914, "LaunchSpecification.RamdiskId", newJString(LaunchSpecificationRamdiskId)) - add(query_626912, "LaunchSpecification.SubnetId", + add(query_626914, "LaunchSpecification.SubnetId", newJString(LaunchSpecificationSubnetId)) - add(query_626912, "DryRun", newJBool(DryRun)) - add(query_626912, "LaunchSpecification.KernelId", + add(query_626914, "DryRun", newJBool(DryRun)) + add(query_626914, "LaunchSpecification.KernelId", newJString(LaunchSpecificationKernelId)) if LaunchSpecificationSecurityGroupIds != nil: - query_626912.add "LaunchSpecification.SecurityGroupIds", + query_626914.add "LaunchSpecification.SecurityGroupIds", LaunchSpecificationSecurityGroupIds - add(query_626912, "LaunchSpecification.ImageId", + add(query_626914, "LaunchSpecification.ImageId", newJString(LaunchSpecificationImageId)) - add(query_626912, "LaunchSpecification.IamInstanceProfile", + add(query_626914, "LaunchSpecification.IamInstanceProfile", newJString(LaunchSpecificationIamInstanceProfile)) - add(query_626912, "LaunchSpecification.UserData", + add(query_626914, "LaunchSpecification.UserData", newJString(LaunchSpecificationUserData)) - add(query_626912, "LaunchSpecification.EbsOptimized", + add(query_626914, "LaunchSpecification.EbsOptimized", newJString(LaunchSpecificationEbsOptimized)) if LaunchSpecificationBlockDeviceMappings != nil: - query_626912.add "LaunchSpecification.BlockDeviceMappings", + query_626914.add "LaunchSpecification.BlockDeviceMappings", LaunchSpecificationBlockDeviceMappings if LaunchSpecificationNetworkInterfaces != nil: - query_626912.add "LaunchSpecification.NetworkInterfaces", + query_626914.add "LaunchSpecification.NetworkInterfaces", LaunchSpecificationNetworkInterfaces - add(query_626912, "Action", newJString(Action)) - add(query_626912, "LaunchSpecification.Monitoring", + add(query_626914, "Action", newJString(Action)) + add(query_626914, "LaunchSpecification.Monitoring", newJString(LaunchSpecificationMonitoring)) - add(query_626912, "LaunchSpecification.KeyName", + add(query_626914, "LaunchSpecification.KeyName", newJString(LaunchSpecificationKeyName)) - add(query_626912, "LaunchSpecification.Placement", + add(query_626914, "LaunchSpecification.Placement", newJString(LaunchSpecificationPlacement)) - add(query_626912, "ScheduledInstanceId", newJString(ScheduledInstanceId)) - add(query_626912, "Version", newJString(Version)) - add(query_626912, "InstanceCount", newJInt(InstanceCount)) - result = call_626911.call(nil, query_626912, nil, nil, nil) + add(query_626914, "ScheduledInstanceId", newJString(ScheduledInstanceId)) + add(query_626914, "Version", newJString(Version)) + add(query_626914, "InstanceCount", newJInt(InstanceCount)) + result = call_626913.call(nil, query_626914, nil, nil, nil) -var getRunScheduledInstances* = Call_GetRunScheduledInstances_626880( +var getRunScheduledInstances* = Call_GetRunScheduledInstances_626882( name: "getRunScheduledInstances", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=RunScheduledInstances", - validator: validate_GetRunScheduledInstances_626881, base: "/", - url: url_GetRunScheduledInstances_626882, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetRunScheduledInstances_626883, base: "/", + url: url_GetRunScheduledInstances_626884, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostSearchLocalGatewayRoutes_626967 = ref object of OpenApiRestCall_610658 -proc url_PostSearchLocalGatewayRoutes_626969(protocol: Scheme; host: string; + Call_PostSearchLocalGatewayRoutes_626969 = ref object of OpenApiRestCall_610658 +proc url_PostSearchLocalGatewayRoutes_626971(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -132082,7 +132109,7 @@ proc url_PostSearchLocalGatewayRoutes_626969(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostSearchLocalGatewayRoutes_626968(path: JsonNode; query: JsonNode; +proc validate_PostSearchLocalGatewayRoutes_626970(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Searches for routes in the specified local gateway route table. ## @@ -132094,16 +132121,16 @@ proc validate_PostSearchLocalGatewayRoutes_626968(path: JsonNode; query: JsonNod ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_626970 = query.getOrDefault("Action") - valid_626970 = validateParameter(valid_626970, JString, required = true, default = newJString( + var valid_626972 = query.getOrDefault("Action") + valid_626972 = validateParameter(valid_626972, JString, required = true, default = newJString( "SearchLocalGatewayRoutes")) - if valid_626970 != nil: - section.add "Action", valid_626970 - var valid_626971 = query.getOrDefault("Version") - valid_626971 = validateParameter(valid_626971, JString, required = true, + if valid_626972 != nil: + section.add "Action", valid_626972 + var valid_626973 = query.getOrDefault("Version") + valid_626973 = validateParameter(valid_626973, JString, required = true, default = newJString("2016-11-15")) - if valid_626971 != nil: - section.add "Version", valid_626971 + if valid_626973 != nil: + section.add "Version", valid_626973 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -132114,41 +132141,41 @@ proc validate_PostSearchLocalGatewayRoutes_626968(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626972 = header.getOrDefault("X-Amz-Signature") - valid_626972 = validateParameter(valid_626972, JString, required = false, - default = nil) - if valid_626972 != nil: - section.add "X-Amz-Signature", valid_626972 - var valid_626973 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626973 = validateParameter(valid_626973, JString, required = false, - default = nil) - if valid_626973 != nil: - section.add "X-Amz-Content-Sha256", valid_626973 - var valid_626974 = header.getOrDefault("X-Amz-Date") + var valid_626974 = header.getOrDefault("X-Amz-Signature") valid_626974 = validateParameter(valid_626974, JString, required = false, default = nil) if valid_626974 != nil: - section.add "X-Amz-Date", valid_626974 - var valid_626975 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626974 + var valid_626975 = header.getOrDefault("X-Amz-Content-Sha256") valid_626975 = validateParameter(valid_626975, JString, required = false, default = nil) if valid_626975 != nil: - section.add "X-Amz-Credential", valid_626975 - var valid_626976 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626975 + var valid_626976 = header.getOrDefault("X-Amz-Date") valid_626976 = validateParameter(valid_626976, JString, required = false, default = nil) if valid_626976 != nil: - section.add "X-Amz-Security-Token", valid_626976 - var valid_626977 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626976 + var valid_626977 = header.getOrDefault("X-Amz-Credential") valid_626977 = validateParameter(valid_626977, JString, required = false, default = nil) if valid_626977 != nil: - section.add "X-Amz-Algorithm", valid_626977 - var valid_626978 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626977 + var valid_626978 = header.getOrDefault("X-Amz-Security-Token") valid_626978 = validateParameter(valid_626978, JString, required = false, default = nil) if valid_626978 != nil: - section.add "X-Amz-SignedHeaders", valid_626978 + section.add "X-Amz-Security-Token", valid_626978 + var valid_626979 = header.getOrDefault("X-Amz-Algorithm") + valid_626979 = validateParameter(valid_626979, JString, required = false, + default = nil) + if valid_626979 != nil: + section.add "X-Amz-Algorithm", valid_626979 + var valid_626980 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626980 = validateParameter(valid_626980, JString, required = false, + default = nil) + if valid_626980 != nil: + section.add "X-Amz-SignedHeaders", valid_626980 result.add "header", section ## parameters in `formData` object: ## LocalGatewayRouteTableId: JString (required) @@ -132163,46 +132190,46 @@ proc validate_PostSearchLocalGatewayRoutes_626968(path: JsonNode; query: JsonNod ## : One or more filters. section = newJObject() assert formData != nil, "formData argument is necessary due to required `LocalGatewayRouteTableId` field" - var valid_626979 = formData.getOrDefault("LocalGatewayRouteTableId") - valid_626979 = validateParameter(valid_626979, JString, required = true, - default = nil) - if valid_626979 != nil: - section.add "LocalGatewayRouteTableId", valid_626979 - var valid_626980 = formData.getOrDefault("NextToken") - valid_626980 = validateParameter(valid_626980, JString, required = false, + var valid_626981 = formData.getOrDefault("LocalGatewayRouteTableId") + valid_626981 = validateParameter(valid_626981, JString, required = true, default = nil) - if valid_626980 != nil: - section.add "NextToken", valid_626980 - var valid_626981 = formData.getOrDefault("DryRun") - valid_626981 = validateParameter(valid_626981, JBool, required = false, default = nil) if valid_626981 != nil: - section.add "DryRun", valid_626981 - var valid_626982 = formData.getOrDefault("MaxResults") - valid_626982 = validateParameter(valid_626982, JInt, required = false, default = nil) + section.add "LocalGatewayRouteTableId", valid_626981 + var valid_626982 = formData.getOrDefault("NextToken") + valid_626982 = validateParameter(valid_626982, JString, required = false, + default = nil) if valid_626982 != nil: - section.add "MaxResults", valid_626982 - var valid_626983 = formData.getOrDefault("Filter") - valid_626983 = validateParameter(valid_626983, JArray, required = true, default = nil) + section.add "NextToken", valid_626982 + var valid_626983 = formData.getOrDefault("DryRun") + valid_626983 = validateParameter(valid_626983, JBool, required = false, default = nil) if valid_626983 != nil: - section.add "Filter", valid_626983 + section.add "DryRun", valid_626983 + var valid_626984 = formData.getOrDefault("MaxResults") + valid_626984 = validateParameter(valid_626984, JInt, required = false, default = nil) + if valid_626984 != nil: + section.add "MaxResults", valid_626984 + var valid_626985 = formData.getOrDefault("Filter") + valid_626985 = validateParameter(valid_626985, JArray, required = true, default = nil) + if valid_626985 != nil: + section.add "Filter", valid_626985 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626984: Call_PostSearchLocalGatewayRoutes_626967; path: JsonNode; +proc call*(call_626986: Call_PostSearchLocalGatewayRoutes_626969; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Searches for routes in the specified local gateway route table. ## - let valid = call_626984.validator(path, query, header, formData, body) - let scheme = call_626984.pickScheme + let valid = call_626986.validator(path, query, header, formData, body) + let scheme = call_626986.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626984.url(scheme.get, call_626984.host, call_626984.base, - call_626984.route, valid.getOrDefault("path"), + let url = call_626986.url(scheme.get, call_626986.host, call_626986.base, + call_626986.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626984, url, valid) + result = atozHook(call_626986, url, valid) -proc call*(call_626985: Call_PostSearchLocalGatewayRoutes_626967; +proc call*(call_626987: Call_PostSearchLocalGatewayRoutes_626969; LocalGatewayRouteTableId: string; Filter: JsonNode; NextToken: string = ""; DryRun: bool = false; Action: string = "SearchLocalGatewayRoutes"; @@ -132221,28 +132248,28 @@ proc call*(call_626985: Call_PostSearchLocalGatewayRoutes_626967; ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## Filter: JArray (required) ## : One or more filters. - var query_626986 = newJObject() - var formData_626987 = newJObject() - add(formData_626987, "LocalGatewayRouteTableId", + var query_626988 = newJObject() + var formData_626989 = newJObject() + add(formData_626989, "LocalGatewayRouteTableId", newJString(LocalGatewayRouteTableId)) - add(formData_626987, "NextToken", newJString(NextToken)) - add(formData_626987, "DryRun", newJBool(DryRun)) - add(query_626986, "Action", newJString(Action)) - add(query_626986, "Version", newJString(Version)) - add(formData_626987, "MaxResults", newJInt(MaxResults)) + add(formData_626989, "NextToken", newJString(NextToken)) + add(formData_626989, "DryRun", newJBool(DryRun)) + add(query_626988, "Action", newJString(Action)) + add(query_626988, "Version", newJString(Version)) + add(formData_626989, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_626987.add "Filter", Filter - result = call_626985.call(nil, query_626986, nil, formData_626987, nil) + formData_626989.add "Filter", Filter + result = call_626987.call(nil, query_626988, nil, formData_626989, nil) -var postSearchLocalGatewayRoutes* = Call_PostSearchLocalGatewayRoutes_626967( +var postSearchLocalGatewayRoutes* = Call_PostSearchLocalGatewayRoutes_626969( name: "postSearchLocalGatewayRoutes", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=SearchLocalGatewayRoutes", - validator: validate_PostSearchLocalGatewayRoutes_626968, base: "/", - url: url_PostSearchLocalGatewayRoutes_626969, + validator: validate_PostSearchLocalGatewayRoutes_626970, base: "/", + url: url_PostSearchLocalGatewayRoutes_626971, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetSearchLocalGatewayRoutes_626947 = ref object of OpenApiRestCall_610658 -proc url_GetSearchLocalGatewayRoutes_626949(protocol: Scheme; host: string; + Call_GetSearchLocalGatewayRoutes_626949 = ref object of OpenApiRestCall_610658 +proc url_GetSearchLocalGatewayRoutes_626951(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -132252,7 +132279,7 @@ proc url_GetSearchLocalGatewayRoutes_626949(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetSearchLocalGatewayRoutes_626948(path: JsonNode; query: JsonNode; +proc validate_GetSearchLocalGatewayRoutes_626950(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Searches for routes in the specified local gateway route table. ## @@ -132275,38 +132302,38 @@ proc validate_GetSearchLocalGatewayRoutes_626948(path: JsonNode; query: JsonNode ## Version: JString (required) section = newJObject() assert query != nil, "query argument is necessary due to required `LocalGatewayRouteTableId` field" - var valid_626950 = query.getOrDefault("LocalGatewayRouteTableId") - valid_626950 = validateParameter(valid_626950, JString, required = true, - default = nil) - if valid_626950 != nil: - section.add "LocalGatewayRouteTableId", valid_626950 - var valid_626951 = query.getOrDefault("MaxResults") - valid_626951 = validateParameter(valid_626951, JInt, required = false, default = nil) - if valid_626951 != nil: - section.add "MaxResults", valid_626951 - var valid_626952 = query.getOrDefault("DryRun") - valid_626952 = validateParameter(valid_626952, JBool, required = false, default = nil) - if valid_626952 != nil: - section.add "DryRun", valid_626952 - var valid_626953 = query.getOrDefault("NextToken") - valid_626953 = validateParameter(valid_626953, JString, required = false, + var valid_626952 = query.getOrDefault("LocalGatewayRouteTableId") + valid_626952 = validateParameter(valid_626952, JString, required = true, default = nil) + if valid_626952 != nil: + section.add "LocalGatewayRouteTableId", valid_626952 + var valid_626953 = query.getOrDefault("MaxResults") + valid_626953 = validateParameter(valid_626953, JInt, required = false, default = nil) if valid_626953 != nil: - section.add "NextToken", valid_626953 - var valid_626954 = query.getOrDefault("Filter") - valid_626954 = validateParameter(valid_626954, JArray, required = true, default = nil) + section.add "MaxResults", valid_626953 + var valid_626954 = query.getOrDefault("DryRun") + valid_626954 = validateParameter(valid_626954, JBool, required = false, default = nil) if valid_626954 != nil: - section.add "Filter", valid_626954 - var valid_626955 = query.getOrDefault("Action") - valid_626955 = validateParameter(valid_626955, JString, required = true, default = newJString( - "SearchLocalGatewayRoutes")) + section.add "DryRun", valid_626954 + var valid_626955 = query.getOrDefault("NextToken") + valid_626955 = validateParameter(valid_626955, JString, required = false, + default = nil) if valid_626955 != nil: - section.add "Action", valid_626955 - var valid_626956 = query.getOrDefault("Version") - valid_626956 = validateParameter(valid_626956, JString, required = true, - default = newJString("2016-11-15")) + section.add "NextToken", valid_626955 + var valid_626956 = query.getOrDefault("Filter") + valid_626956 = validateParameter(valid_626956, JArray, required = true, default = nil) if valid_626956 != nil: - section.add "Version", valid_626956 + section.add "Filter", valid_626956 + var valid_626957 = query.getOrDefault("Action") + valid_626957 = validateParameter(valid_626957, JString, required = true, default = newJString( + "SearchLocalGatewayRoutes")) + if valid_626957 != nil: + section.add "Action", valid_626957 + var valid_626958 = query.getOrDefault("Version") + valid_626958 = validateParameter(valid_626958, JString, required = true, + default = newJString("2016-11-15")) + if valid_626958 != nil: + section.add "Version", valid_626958 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -132317,61 +132344,61 @@ proc validate_GetSearchLocalGatewayRoutes_626948(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626957 = header.getOrDefault("X-Amz-Signature") - valid_626957 = validateParameter(valid_626957, JString, required = false, - default = nil) - if valid_626957 != nil: - section.add "X-Amz-Signature", valid_626957 - var valid_626958 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626958 = validateParameter(valid_626958, JString, required = false, - default = nil) - if valid_626958 != nil: - section.add "X-Amz-Content-Sha256", valid_626958 - var valid_626959 = header.getOrDefault("X-Amz-Date") + var valid_626959 = header.getOrDefault("X-Amz-Signature") valid_626959 = validateParameter(valid_626959, JString, required = false, default = nil) if valid_626959 != nil: - section.add "X-Amz-Date", valid_626959 - var valid_626960 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_626959 + var valid_626960 = header.getOrDefault("X-Amz-Content-Sha256") valid_626960 = validateParameter(valid_626960, JString, required = false, default = nil) if valid_626960 != nil: - section.add "X-Amz-Credential", valid_626960 - var valid_626961 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_626960 + var valid_626961 = header.getOrDefault("X-Amz-Date") valid_626961 = validateParameter(valid_626961, JString, required = false, default = nil) if valid_626961 != nil: - section.add "X-Amz-Security-Token", valid_626961 - var valid_626962 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_626961 + var valid_626962 = header.getOrDefault("X-Amz-Credential") valid_626962 = validateParameter(valid_626962, JString, required = false, default = nil) if valid_626962 != nil: - section.add "X-Amz-Algorithm", valid_626962 - var valid_626963 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_626962 + var valid_626963 = header.getOrDefault("X-Amz-Security-Token") valid_626963 = validateParameter(valid_626963, JString, required = false, default = nil) if valid_626963 != nil: - section.add "X-Amz-SignedHeaders", valid_626963 + section.add "X-Amz-Security-Token", valid_626963 + var valid_626964 = header.getOrDefault("X-Amz-Algorithm") + valid_626964 = validateParameter(valid_626964, JString, required = false, + default = nil) + if valid_626964 != nil: + section.add "X-Amz-Algorithm", valid_626964 + var valid_626965 = header.getOrDefault("X-Amz-SignedHeaders") + valid_626965 = validateParameter(valid_626965, JString, required = false, + default = nil) + if valid_626965 != nil: + section.add "X-Amz-SignedHeaders", valid_626965 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_626964: Call_GetSearchLocalGatewayRoutes_626947; path: JsonNode; +proc call*(call_626966: Call_GetSearchLocalGatewayRoutes_626949; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Searches for routes in the specified local gateway route table. ## - let valid = call_626964.validator(path, query, header, formData, body) - let scheme = call_626964.pickScheme + let valid = call_626966.validator(path, query, header, formData, body) + let scheme = call_626966.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_626964.url(scheme.get, call_626964.host, call_626964.base, - call_626964.route, valid.getOrDefault("path"), + let url = call_626966.url(scheme.get, call_626966.host, call_626966.base, + call_626966.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_626964, url, valid) + result = atozHook(call_626966, url, valid) -proc call*(call_626965: Call_GetSearchLocalGatewayRoutes_626947; +proc call*(call_626967: Call_GetSearchLocalGatewayRoutes_626949; LocalGatewayRouteTableId: string; Filter: JsonNode; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; Action: string = "SearchLocalGatewayRoutes"; @@ -132390,27 +132417,27 @@ proc call*(call_626965: Call_GetSearchLocalGatewayRoutes_626947; ## : One or more filters. ## Action: string (required) ## Version: string (required) - var query_626966 = newJObject() - add(query_626966, "LocalGatewayRouteTableId", + var query_626968 = newJObject() + add(query_626968, "LocalGatewayRouteTableId", newJString(LocalGatewayRouteTableId)) - add(query_626966, "MaxResults", newJInt(MaxResults)) - add(query_626966, "DryRun", newJBool(DryRun)) - add(query_626966, "NextToken", newJString(NextToken)) + add(query_626968, "MaxResults", newJInt(MaxResults)) + add(query_626968, "DryRun", newJBool(DryRun)) + add(query_626968, "NextToken", newJString(NextToken)) if Filter != nil: - query_626966.add "Filter", Filter - add(query_626966, "Action", newJString(Action)) - add(query_626966, "Version", newJString(Version)) - result = call_626965.call(nil, query_626966, nil, nil, nil) + query_626968.add "Filter", Filter + add(query_626968, "Action", newJString(Action)) + add(query_626968, "Version", newJString(Version)) + result = call_626967.call(nil, query_626968, nil, nil, nil) -var getSearchLocalGatewayRoutes* = Call_GetSearchLocalGatewayRoutes_626947( +var getSearchLocalGatewayRoutes* = Call_GetSearchLocalGatewayRoutes_626949( name: "getSearchLocalGatewayRoutes", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=SearchLocalGatewayRoutes", - validator: validate_GetSearchLocalGatewayRoutes_626948, base: "/", - url: url_GetSearchLocalGatewayRoutes_626949, + validator: validate_GetSearchLocalGatewayRoutes_626950, base: "/", + url: url_GetSearchLocalGatewayRoutes_626951, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostSearchTransitGatewayMulticastGroups_627008 = ref object of OpenApiRestCall_610658 -proc url_PostSearchTransitGatewayMulticastGroups_627010(protocol: Scheme; + Call_PostSearchTransitGatewayMulticastGroups_627010 = ref object of OpenApiRestCall_610658 +proc url_PostSearchTransitGatewayMulticastGroups_627012(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -132420,7 +132447,7 @@ proc url_PostSearchTransitGatewayMulticastGroups_627010(protocol: Scheme; else: result.path = base & route -proc validate_PostSearchTransitGatewayMulticastGroups_627009(path: JsonNode; +proc validate_PostSearchTransitGatewayMulticastGroups_627011(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Searches one or more transit gateway multicast groups and returns the group membership information. ## @@ -132432,16 +132459,16 @@ proc validate_PostSearchTransitGatewayMulticastGroups_627009(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_627011 = query.getOrDefault("Action") - valid_627011 = validateParameter(valid_627011, JString, required = true, default = newJString( + var valid_627013 = query.getOrDefault("Action") + valid_627013 = validateParameter(valid_627013, JString, required = true, default = newJString( "SearchTransitGatewayMulticastGroups")) - if valid_627011 != nil: - section.add "Action", valid_627011 - var valid_627012 = query.getOrDefault("Version") - valid_627012 = validateParameter(valid_627012, JString, required = true, + if valid_627013 != nil: + section.add "Action", valid_627013 + var valid_627014 = query.getOrDefault("Version") + valid_627014 = validateParameter(valid_627014, JString, required = true, default = newJString("2016-11-15")) - if valid_627012 != nil: - section.add "Version", valid_627012 + if valid_627014 != nil: + section.add "Version", valid_627014 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -132452,41 +132479,41 @@ proc validate_PostSearchTransitGatewayMulticastGroups_627009(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_627013 = header.getOrDefault("X-Amz-Signature") - valid_627013 = validateParameter(valid_627013, JString, required = false, - default = nil) - if valid_627013 != nil: - section.add "X-Amz-Signature", valid_627013 - var valid_627014 = header.getOrDefault("X-Amz-Content-Sha256") - valid_627014 = validateParameter(valid_627014, JString, required = false, - default = nil) - if valid_627014 != nil: - section.add "X-Amz-Content-Sha256", valid_627014 - var valid_627015 = header.getOrDefault("X-Amz-Date") + var valid_627015 = header.getOrDefault("X-Amz-Signature") valid_627015 = validateParameter(valid_627015, JString, required = false, default = nil) if valid_627015 != nil: - section.add "X-Amz-Date", valid_627015 - var valid_627016 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_627015 + var valid_627016 = header.getOrDefault("X-Amz-Content-Sha256") valid_627016 = validateParameter(valid_627016, JString, required = false, default = nil) if valid_627016 != nil: - section.add "X-Amz-Credential", valid_627016 - var valid_627017 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_627016 + var valid_627017 = header.getOrDefault("X-Amz-Date") valid_627017 = validateParameter(valid_627017, JString, required = false, default = nil) if valid_627017 != nil: - section.add "X-Amz-Security-Token", valid_627017 - var valid_627018 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_627017 + var valid_627018 = header.getOrDefault("X-Amz-Credential") valid_627018 = validateParameter(valid_627018, JString, required = false, default = nil) if valid_627018 != nil: - section.add "X-Amz-Algorithm", valid_627018 - var valid_627019 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_627018 + var valid_627019 = header.getOrDefault("X-Amz-Security-Token") valid_627019 = validateParameter(valid_627019, JString, required = false, default = nil) if valid_627019 != nil: - section.add "X-Amz-SignedHeaders", valid_627019 + section.add "X-Amz-Security-Token", valid_627019 + var valid_627020 = header.getOrDefault("X-Amz-Algorithm") + valid_627020 = validateParameter(valid_627020, JString, required = false, + default = nil) + if valid_627020 != nil: + section.add "X-Amz-Algorithm", valid_627020 + var valid_627021 = header.getOrDefault("X-Amz-SignedHeaders") + valid_627021 = validateParameter(valid_627021, JString, required = false, + default = nil) + if valid_627021 != nil: + section.add "X-Amz-SignedHeaders", valid_627021 result.add "header", section ## parameters in `formData` object: ## NextToken: JString @@ -132500,48 +132527,48 @@ proc validate_PostSearchTransitGatewayMulticastGroups_627009(path: JsonNode; ## Filter: JArray ## :

    One or more filters. The possible values are:

    section = newJObject() - var valid_627020 = formData.getOrDefault("NextToken") - valid_627020 = validateParameter(valid_627020, JString, required = false, - default = nil) - if valid_627020 != nil: - section.add "NextToken", valid_627020 - var valid_627021 = formData.getOrDefault("DryRun") - valid_627021 = validateParameter(valid_627021, JBool, required = false, default = nil) - if valid_627021 != nil: - section.add "DryRun", valid_627021 - var valid_627022 = formData.getOrDefault("TransitGatewayMulticastDomainId") + var valid_627022 = formData.getOrDefault("NextToken") valid_627022 = validateParameter(valid_627022, JString, required = false, default = nil) if valid_627022 != nil: - section.add "TransitGatewayMulticastDomainId", valid_627022 - var valid_627023 = formData.getOrDefault("MaxResults") - valid_627023 = validateParameter(valid_627023, JInt, required = false, default = nil) + section.add "NextToken", valid_627022 + var valid_627023 = formData.getOrDefault("DryRun") + valid_627023 = validateParameter(valid_627023, JBool, required = false, default = nil) if valid_627023 != nil: - section.add "MaxResults", valid_627023 - var valid_627024 = formData.getOrDefault("Filter") - valid_627024 = validateParameter(valid_627024, JArray, required = false, + section.add "DryRun", valid_627023 + var valid_627024 = formData.getOrDefault("TransitGatewayMulticastDomainId") + valid_627024 = validateParameter(valid_627024, JString, required = false, default = nil) if valid_627024 != nil: - section.add "Filter", valid_627024 + section.add "TransitGatewayMulticastDomainId", valid_627024 + var valid_627025 = formData.getOrDefault("MaxResults") + valid_627025 = validateParameter(valid_627025, JInt, required = false, default = nil) + if valid_627025 != nil: + section.add "MaxResults", valid_627025 + var valid_627026 = formData.getOrDefault("Filter") + valid_627026 = validateParameter(valid_627026, JArray, required = false, + default = nil) + if valid_627026 != nil: + section.add "Filter", valid_627026 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_627025: Call_PostSearchTransitGatewayMulticastGroups_627008; +proc call*(call_627027: Call_PostSearchTransitGatewayMulticastGroups_627010; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Searches one or more transit gateway multicast groups and returns the group membership information. ## - let valid = call_627025.validator(path, query, header, formData, body) - let scheme = call_627025.pickScheme + let valid = call_627027.validator(path, query, header, formData, body) + let scheme = call_627027.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_627025.url(scheme.get, call_627025.host, call_627025.base, - call_627025.route, valid.getOrDefault("path"), + let url = call_627027.url(scheme.get, call_627027.host, call_627027.base, + call_627027.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_627025, url, valid) + result = atozHook(call_627027, url, valid) -proc call*(call_627026: Call_PostSearchTransitGatewayMulticastGroups_627008; +proc call*(call_627028: Call_PostSearchTransitGatewayMulticastGroups_627010; NextToken: string = ""; DryRun: bool = false; Action: string = "SearchTransitGatewayMulticastGroups"; TransitGatewayMulticastDomainId: string = ""; @@ -132560,29 +132587,29 @@ proc call*(call_627026: Call_PostSearchTransitGatewayMulticastGroups_627008; ## : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. ## Filter: JArray ## :

    One or more filters. The possible values are:

    - var query_627027 = newJObject() - var formData_627028 = newJObject() - add(formData_627028, "NextToken", newJString(NextToken)) - add(formData_627028, "DryRun", newJBool(DryRun)) - add(query_627027, "Action", newJString(Action)) - add(formData_627028, "TransitGatewayMulticastDomainId", + var query_627029 = newJObject() + var formData_627030 = newJObject() + add(formData_627030, "NextToken", newJString(NextToken)) + add(formData_627030, "DryRun", newJBool(DryRun)) + add(query_627029, "Action", newJString(Action)) + add(formData_627030, "TransitGatewayMulticastDomainId", newJString(TransitGatewayMulticastDomainId)) - add(query_627027, "Version", newJString(Version)) - add(formData_627028, "MaxResults", newJInt(MaxResults)) + add(query_627029, "Version", newJString(Version)) + add(formData_627030, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_627028.add "Filter", Filter - result = call_627026.call(nil, query_627027, nil, formData_627028, nil) + formData_627030.add "Filter", Filter + result = call_627028.call(nil, query_627029, nil, formData_627030, nil) -var postSearchTransitGatewayMulticastGroups* = Call_PostSearchTransitGatewayMulticastGroups_627008( +var postSearchTransitGatewayMulticastGroups* = Call_PostSearchTransitGatewayMulticastGroups_627010( name: "postSearchTransitGatewayMulticastGroups", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=SearchTransitGatewayMulticastGroups", - validator: validate_PostSearchTransitGatewayMulticastGroups_627009, base: "/", - url: url_PostSearchTransitGatewayMulticastGroups_627010, + validator: validate_PostSearchTransitGatewayMulticastGroups_627011, base: "/", + url: url_PostSearchTransitGatewayMulticastGroups_627012, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetSearchTransitGatewayMulticastGroups_626988 = ref object of OpenApiRestCall_610658 -proc url_GetSearchTransitGatewayMulticastGroups_626990(protocol: Scheme; + Call_GetSearchTransitGatewayMulticastGroups_626990 = ref object of OpenApiRestCall_610658 +proc url_GetSearchTransitGatewayMulticastGroups_626992(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -132592,7 +132619,7 @@ proc url_GetSearchTransitGatewayMulticastGroups_626990(protocol: Scheme; else: result.path = base & route -proc validate_GetSearchTransitGatewayMulticastGroups_626989(path: JsonNode; +proc validate_GetSearchTransitGatewayMulticastGroups_626991(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Searches one or more transit gateway multicast groups and returns the group membership information. ## @@ -132614,39 +132641,39 @@ proc validate_GetSearchTransitGatewayMulticastGroups_626989(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_626991 = query.getOrDefault("MaxResults") - valid_626991 = validateParameter(valid_626991, JInt, required = false, default = nil) - if valid_626991 != nil: - section.add "MaxResults", valid_626991 - var valid_626992 = query.getOrDefault("DryRun") - valid_626992 = validateParameter(valid_626992, JBool, required = false, default = nil) - if valid_626992 != nil: - section.add "DryRun", valid_626992 - var valid_626993 = query.getOrDefault("NextToken") - valid_626993 = validateParameter(valid_626993, JString, required = false, - default = nil) + var valid_626993 = query.getOrDefault("MaxResults") + valid_626993 = validateParameter(valid_626993, JInt, required = false, default = nil) if valid_626993 != nil: - section.add "NextToken", valid_626993 - var valid_626994 = query.getOrDefault("TransitGatewayMulticastDomainId") - valid_626994 = validateParameter(valid_626994, JString, required = false, - default = nil) + section.add "MaxResults", valid_626993 + var valid_626994 = query.getOrDefault("DryRun") + valid_626994 = validateParameter(valid_626994, JBool, required = false, default = nil) if valid_626994 != nil: - section.add "TransitGatewayMulticastDomainId", valid_626994 - var valid_626995 = query.getOrDefault("Filter") - valid_626995 = validateParameter(valid_626995, JArray, required = false, + section.add "DryRun", valid_626994 + var valid_626995 = query.getOrDefault("NextToken") + valid_626995 = validateParameter(valid_626995, JString, required = false, default = nil) if valid_626995 != nil: - section.add "Filter", valid_626995 - var valid_626996 = query.getOrDefault("Action") - valid_626996 = validateParameter(valid_626996, JString, required = true, default = newJString( - "SearchTransitGatewayMulticastGroups")) + section.add "NextToken", valid_626995 + var valid_626996 = query.getOrDefault("TransitGatewayMulticastDomainId") + valid_626996 = validateParameter(valid_626996, JString, required = false, + default = nil) if valid_626996 != nil: - section.add "Action", valid_626996 - var valid_626997 = query.getOrDefault("Version") - valid_626997 = validateParameter(valid_626997, JString, required = true, - default = newJString("2016-11-15")) + section.add "TransitGatewayMulticastDomainId", valid_626996 + var valid_626997 = query.getOrDefault("Filter") + valid_626997 = validateParameter(valid_626997, JArray, required = false, + default = nil) if valid_626997 != nil: - section.add "Version", valid_626997 + section.add "Filter", valid_626997 + var valid_626998 = query.getOrDefault("Action") + valid_626998 = validateParameter(valid_626998, JString, required = true, default = newJString( + "SearchTransitGatewayMulticastGroups")) + if valid_626998 != nil: + section.add "Action", valid_626998 + var valid_626999 = query.getOrDefault("Version") + valid_626999 = validateParameter(valid_626999, JString, required = true, + default = newJString("2016-11-15")) + if valid_626999 != nil: + section.add "Version", valid_626999 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -132657,62 +132684,62 @@ proc validate_GetSearchTransitGatewayMulticastGroups_626989(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_626998 = header.getOrDefault("X-Amz-Signature") - valid_626998 = validateParameter(valid_626998, JString, required = false, - default = nil) - if valid_626998 != nil: - section.add "X-Amz-Signature", valid_626998 - var valid_626999 = header.getOrDefault("X-Amz-Content-Sha256") - valid_626999 = validateParameter(valid_626999, JString, required = false, - default = nil) - if valid_626999 != nil: - section.add "X-Amz-Content-Sha256", valid_626999 - var valid_627000 = header.getOrDefault("X-Amz-Date") + var valid_627000 = header.getOrDefault("X-Amz-Signature") valid_627000 = validateParameter(valid_627000, JString, required = false, default = nil) if valid_627000 != nil: - section.add "X-Amz-Date", valid_627000 - var valid_627001 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_627000 + var valid_627001 = header.getOrDefault("X-Amz-Content-Sha256") valid_627001 = validateParameter(valid_627001, JString, required = false, default = nil) if valid_627001 != nil: - section.add "X-Amz-Credential", valid_627001 - var valid_627002 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_627001 + var valid_627002 = header.getOrDefault("X-Amz-Date") valid_627002 = validateParameter(valid_627002, JString, required = false, default = nil) if valid_627002 != nil: - section.add "X-Amz-Security-Token", valid_627002 - var valid_627003 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_627002 + var valid_627003 = header.getOrDefault("X-Amz-Credential") valid_627003 = validateParameter(valid_627003, JString, required = false, default = nil) if valid_627003 != nil: - section.add "X-Amz-Algorithm", valid_627003 - var valid_627004 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_627003 + var valid_627004 = header.getOrDefault("X-Amz-Security-Token") valid_627004 = validateParameter(valid_627004, JString, required = false, default = nil) if valid_627004 != nil: - section.add "X-Amz-SignedHeaders", valid_627004 + section.add "X-Amz-Security-Token", valid_627004 + var valid_627005 = header.getOrDefault("X-Amz-Algorithm") + valid_627005 = validateParameter(valid_627005, JString, required = false, + default = nil) + if valid_627005 != nil: + section.add "X-Amz-Algorithm", valid_627005 + var valid_627006 = header.getOrDefault("X-Amz-SignedHeaders") + valid_627006 = validateParameter(valid_627006, JString, required = false, + default = nil) + if valid_627006 != nil: + section.add "X-Amz-SignedHeaders", valid_627006 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_627005: Call_GetSearchTransitGatewayMulticastGroups_626988; +proc call*(call_627007: Call_GetSearchTransitGatewayMulticastGroups_626990; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Searches one or more transit gateway multicast groups and returns the group membership information. ## - let valid = call_627005.validator(path, query, header, formData, body) - let scheme = call_627005.pickScheme + let valid = call_627007.validator(path, query, header, formData, body) + let scheme = call_627007.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_627005.url(scheme.get, call_627005.host, call_627005.base, - call_627005.route, valid.getOrDefault("path"), + let url = call_627007.url(scheme.get, call_627007.host, call_627007.base, + call_627007.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_627005, url, valid) + result = atozHook(call_627007, url, valid) -proc call*(call_627006: Call_GetSearchTransitGatewayMulticastGroups_626988; +proc call*(call_627008: Call_GetSearchTransitGatewayMulticastGroups_626990; MaxResults: int = 0; DryRun: bool = false; NextToken: string = ""; TransitGatewayMulticastDomainId: string = ""; Filter: JsonNode = nil; Action: string = "SearchTransitGatewayMulticastGroups"; @@ -132731,28 +132758,28 @@ proc call*(call_627006: Call_GetSearchTransitGatewayMulticastGroups_626988; ## :

    One or more filters. The possible values are:

    ## Action: string (required) ## Version: string (required) - var query_627007 = newJObject() - add(query_627007, "MaxResults", newJInt(MaxResults)) - add(query_627007, "DryRun", newJBool(DryRun)) - add(query_627007, "NextToken", newJString(NextToken)) - add(query_627007, "TransitGatewayMulticastDomainId", + var query_627009 = newJObject() + add(query_627009, "MaxResults", newJInt(MaxResults)) + add(query_627009, "DryRun", newJBool(DryRun)) + add(query_627009, "NextToken", newJString(NextToken)) + add(query_627009, "TransitGatewayMulticastDomainId", newJString(TransitGatewayMulticastDomainId)) if Filter != nil: - query_627007.add "Filter", Filter - add(query_627007, "Action", newJString(Action)) - add(query_627007, "Version", newJString(Version)) - result = call_627006.call(nil, query_627007, nil, nil, nil) + query_627009.add "Filter", Filter + add(query_627009, "Action", newJString(Action)) + add(query_627009, "Version", newJString(Version)) + result = call_627008.call(nil, query_627009, nil, nil, nil) -var getSearchTransitGatewayMulticastGroups* = Call_GetSearchTransitGatewayMulticastGroups_626988( +var getSearchTransitGatewayMulticastGroups* = Call_GetSearchTransitGatewayMulticastGroups_626990( name: "getSearchTransitGatewayMulticastGroups", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=SearchTransitGatewayMulticastGroups", - validator: validate_GetSearchTransitGatewayMulticastGroups_626989, base: "/", - url: url_GetSearchTransitGatewayMulticastGroups_626990, + validator: validate_GetSearchTransitGatewayMulticastGroups_626991, base: "/", + url: url_GetSearchTransitGatewayMulticastGroups_626992, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostSearchTransitGatewayRoutes_627048 = ref object of OpenApiRestCall_610658 -proc url_PostSearchTransitGatewayRoutes_627050(protocol: Scheme; host: string; + Call_PostSearchTransitGatewayRoutes_627050 = ref object of OpenApiRestCall_610658 +proc url_PostSearchTransitGatewayRoutes_627052(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -132762,7 +132789,7 @@ proc url_PostSearchTransitGatewayRoutes_627050(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostSearchTransitGatewayRoutes_627049(path: JsonNode; +proc validate_PostSearchTransitGatewayRoutes_627051(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Searches for routes in the specified transit gateway route table. ## @@ -132774,16 +132801,16 @@ proc validate_PostSearchTransitGatewayRoutes_627049(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_627051 = query.getOrDefault("Action") - valid_627051 = validateParameter(valid_627051, JString, required = true, default = newJString( + var valid_627053 = query.getOrDefault("Action") + valid_627053 = validateParameter(valid_627053, JString, required = true, default = newJString( "SearchTransitGatewayRoutes")) - if valid_627051 != nil: - section.add "Action", valid_627051 - var valid_627052 = query.getOrDefault("Version") - valid_627052 = validateParameter(valid_627052, JString, required = true, + if valid_627053 != nil: + section.add "Action", valid_627053 + var valid_627054 = query.getOrDefault("Version") + valid_627054 = validateParameter(valid_627054, JString, required = true, default = newJString("2016-11-15")) - if valid_627052 != nil: - section.add "Version", valid_627052 + if valid_627054 != nil: + section.add "Version", valid_627054 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -132794,41 +132821,41 @@ proc validate_PostSearchTransitGatewayRoutes_627049(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_627053 = header.getOrDefault("X-Amz-Signature") - valid_627053 = validateParameter(valid_627053, JString, required = false, - default = nil) - if valid_627053 != nil: - section.add "X-Amz-Signature", valid_627053 - var valid_627054 = header.getOrDefault("X-Amz-Content-Sha256") - valid_627054 = validateParameter(valid_627054, JString, required = false, - default = nil) - if valid_627054 != nil: - section.add "X-Amz-Content-Sha256", valid_627054 - var valid_627055 = header.getOrDefault("X-Amz-Date") + var valid_627055 = header.getOrDefault("X-Amz-Signature") valid_627055 = validateParameter(valid_627055, JString, required = false, default = nil) if valid_627055 != nil: - section.add "X-Amz-Date", valid_627055 - var valid_627056 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_627055 + var valid_627056 = header.getOrDefault("X-Amz-Content-Sha256") valid_627056 = validateParameter(valid_627056, JString, required = false, default = nil) if valid_627056 != nil: - section.add "X-Amz-Credential", valid_627056 - var valid_627057 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_627056 + var valid_627057 = header.getOrDefault("X-Amz-Date") valid_627057 = validateParameter(valid_627057, JString, required = false, default = nil) if valid_627057 != nil: - section.add "X-Amz-Security-Token", valid_627057 - var valid_627058 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_627057 + var valid_627058 = header.getOrDefault("X-Amz-Credential") valid_627058 = validateParameter(valid_627058, JString, required = false, default = nil) if valid_627058 != nil: - section.add "X-Amz-Algorithm", valid_627058 - var valid_627059 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_627058 + var valid_627059 = header.getOrDefault("X-Amz-Security-Token") valid_627059 = validateParameter(valid_627059, JString, required = false, default = nil) if valid_627059 != nil: - section.add "X-Amz-SignedHeaders", valid_627059 + section.add "X-Amz-Security-Token", valid_627059 + var valid_627060 = header.getOrDefault("X-Amz-Algorithm") + valid_627060 = validateParameter(valid_627060, JString, required = false, + default = nil) + if valid_627060 != nil: + section.add "X-Amz-Algorithm", valid_627060 + var valid_627061 = header.getOrDefault("X-Amz-SignedHeaders") + valid_627061 = validateParameter(valid_627061, JString, required = false, + default = nil) + if valid_627061 != nil: + section.add "X-Amz-SignedHeaders", valid_627061 result.add "header", section ## parameters in `formData` object: ## TransitGatewayRouteTableId: JString (required) @@ -132841,41 +132868,41 @@ proc validate_PostSearchTransitGatewayRoutes_627049(path: JsonNode; ## :

    One or more filters. The possible values are:

    section = newJObject() assert formData != nil, "formData argument is necessary due to required `TransitGatewayRouteTableId` field" - var valid_627060 = formData.getOrDefault("TransitGatewayRouteTableId") - valid_627060 = validateParameter(valid_627060, JString, required = true, + var valid_627062 = formData.getOrDefault("TransitGatewayRouteTableId") + valid_627062 = validateParameter(valid_627062, JString, required = true, default = nil) - if valid_627060 != nil: - section.add "TransitGatewayRouteTableId", valid_627060 - var valid_627061 = formData.getOrDefault("DryRun") - valid_627061 = validateParameter(valid_627061, JBool, required = false, default = nil) - if valid_627061 != nil: - section.add "DryRun", valid_627061 - var valid_627062 = formData.getOrDefault("MaxResults") - valid_627062 = validateParameter(valid_627062, JInt, required = false, default = nil) if valid_627062 != nil: - section.add "MaxResults", valid_627062 - var valid_627063 = formData.getOrDefault("Filter") - valid_627063 = validateParameter(valid_627063, JArray, required = true, default = nil) + section.add "TransitGatewayRouteTableId", valid_627062 + var valid_627063 = formData.getOrDefault("DryRun") + valid_627063 = validateParameter(valid_627063, JBool, required = false, default = nil) if valid_627063 != nil: - section.add "Filter", valid_627063 + section.add "DryRun", valid_627063 + var valid_627064 = formData.getOrDefault("MaxResults") + valid_627064 = validateParameter(valid_627064, JInt, required = false, default = nil) + if valid_627064 != nil: + section.add "MaxResults", valid_627064 + var valid_627065 = formData.getOrDefault("Filter") + valid_627065 = validateParameter(valid_627065, JArray, required = true, default = nil) + if valid_627065 != nil: + section.add "Filter", valid_627065 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_627064: Call_PostSearchTransitGatewayRoutes_627048; path: JsonNode; +proc call*(call_627066: Call_PostSearchTransitGatewayRoutes_627050; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Searches for routes in the specified transit gateway route table. ## - let valid = call_627064.validator(path, query, header, formData, body) - let scheme = call_627064.pickScheme + let valid = call_627066.validator(path, query, header, formData, body) + let scheme = call_627066.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_627064.url(scheme.get, call_627064.host, call_627064.base, - call_627064.route, valid.getOrDefault("path"), + let url = call_627066.url(scheme.get, call_627066.host, call_627066.base, + call_627066.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_627064, url, valid) + result = atozHook(call_627066, url, valid) -proc call*(call_627065: Call_PostSearchTransitGatewayRoutes_627048; +proc call*(call_627067: Call_PostSearchTransitGatewayRoutes_627050; TransitGatewayRouteTableId: string; Filter: JsonNode; DryRun: bool = false; Action: string = "SearchTransitGatewayRoutes"; Version: string = "2016-11-15"; MaxResults: int = 0): Recallable = @@ -132891,27 +132918,27 @@ proc call*(call_627065: Call_PostSearchTransitGatewayRoutes_627048; ## : The maximum number of routes to return. ## Filter: JArray (required) ## :

    One or more filters. The possible values are:

    - var query_627066 = newJObject() - var formData_627067 = newJObject() - add(formData_627067, "TransitGatewayRouteTableId", + var query_627068 = newJObject() + var formData_627069 = newJObject() + add(formData_627069, "TransitGatewayRouteTableId", newJString(TransitGatewayRouteTableId)) - add(formData_627067, "DryRun", newJBool(DryRun)) - add(query_627066, "Action", newJString(Action)) - add(query_627066, "Version", newJString(Version)) - add(formData_627067, "MaxResults", newJInt(MaxResults)) + add(formData_627069, "DryRun", newJBool(DryRun)) + add(query_627068, "Action", newJString(Action)) + add(query_627068, "Version", newJString(Version)) + add(formData_627069, "MaxResults", newJInt(MaxResults)) if Filter != nil: - formData_627067.add "Filter", Filter - result = call_627065.call(nil, query_627066, nil, formData_627067, nil) + formData_627069.add "Filter", Filter + result = call_627067.call(nil, query_627068, nil, formData_627069, nil) -var postSearchTransitGatewayRoutes* = Call_PostSearchTransitGatewayRoutes_627048( +var postSearchTransitGatewayRoutes* = Call_PostSearchTransitGatewayRoutes_627050( name: "postSearchTransitGatewayRoutes", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=SearchTransitGatewayRoutes", - validator: validate_PostSearchTransitGatewayRoutes_627049, base: "/", - url: url_PostSearchTransitGatewayRoutes_627050, + validator: validate_PostSearchTransitGatewayRoutes_627051, base: "/", + url: url_PostSearchTransitGatewayRoutes_627052, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetSearchTransitGatewayRoutes_627029 = ref object of OpenApiRestCall_610658 -proc url_GetSearchTransitGatewayRoutes_627031(protocol: Scheme; host: string; + Call_GetSearchTransitGatewayRoutes_627031 = ref object of OpenApiRestCall_610658 +proc url_GetSearchTransitGatewayRoutes_627033(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -132921,7 +132948,7 @@ proc url_GetSearchTransitGatewayRoutes_627031(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetSearchTransitGatewayRoutes_627030(path: JsonNode; query: JsonNode; +proc validate_GetSearchTransitGatewayRoutes_627032(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Searches for routes in the specified transit gateway route table. ## @@ -132941,34 +132968,34 @@ proc validate_GetSearchTransitGatewayRoutes_627030(path: JsonNode; query: JsonNo ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_627032 = query.getOrDefault("MaxResults") - valid_627032 = validateParameter(valid_627032, JInt, required = false, default = nil) - if valid_627032 != nil: - section.add "MaxResults", valid_627032 - var valid_627033 = query.getOrDefault("DryRun") - valid_627033 = validateParameter(valid_627033, JBool, required = false, default = nil) - if valid_627033 != nil: - section.add "DryRun", valid_627033 - assert query != nil, "query argument is necessary due to required `TransitGatewayRouteTableId` field" - var valid_627034 = query.getOrDefault("TransitGatewayRouteTableId") - valid_627034 = validateParameter(valid_627034, JString, required = true, - default = nil) + var valid_627034 = query.getOrDefault("MaxResults") + valid_627034 = validateParameter(valid_627034, JInt, required = false, default = nil) if valid_627034 != nil: - section.add "TransitGatewayRouteTableId", valid_627034 - var valid_627035 = query.getOrDefault("Filter") - valid_627035 = validateParameter(valid_627035, JArray, required = true, default = nil) + section.add "MaxResults", valid_627034 + var valid_627035 = query.getOrDefault("DryRun") + valid_627035 = validateParameter(valid_627035, JBool, required = false, default = nil) if valid_627035 != nil: - section.add "Filter", valid_627035 - var valid_627036 = query.getOrDefault("Action") - valid_627036 = validateParameter(valid_627036, JString, required = true, default = newJString( - "SearchTransitGatewayRoutes")) + section.add "DryRun", valid_627035 + assert query != nil, "query argument is necessary due to required `TransitGatewayRouteTableId` field" + var valid_627036 = query.getOrDefault("TransitGatewayRouteTableId") + valid_627036 = validateParameter(valid_627036, JString, required = true, + default = nil) if valid_627036 != nil: - section.add "Action", valid_627036 - var valid_627037 = query.getOrDefault("Version") - valid_627037 = validateParameter(valid_627037, JString, required = true, - default = newJString("2016-11-15")) + section.add "TransitGatewayRouteTableId", valid_627036 + var valid_627037 = query.getOrDefault("Filter") + valid_627037 = validateParameter(valid_627037, JArray, required = true, default = nil) if valid_627037 != nil: - section.add "Version", valid_627037 + section.add "Filter", valid_627037 + var valid_627038 = query.getOrDefault("Action") + valid_627038 = validateParameter(valid_627038, JString, required = true, default = newJString( + "SearchTransitGatewayRoutes")) + if valid_627038 != nil: + section.add "Action", valid_627038 + var valid_627039 = query.getOrDefault("Version") + valid_627039 = validateParameter(valid_627039, JString, required = true, + default = newJString("2016-11-15")) + if valid_627039 != nil: + section.add "Version", valid_627039 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -132979,61 +133006,61 @@ proc validate_GetSearchTransitGatewayRoutes_627030(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_627038 = header.getOrDefault("X-Amz-Signature") - valid_627038 = validateParameter(valid_627038, JString, required = false, - default = nil) - if valid_627038 != nil: - section.add "X-Amz-Signature", valid_627038 - var valid_627039 = header.getOrDefault("X-Amz-Content-Sha256") - valid_627039 = validateParameter(valid_627039, JString, required = false, - default = nil) - if valid_627039 != nil: - section.add "X-Amz-Content-Sha256", valid_627039 - var valid_627040 = header.getOrDefault("X-Amz-Date") + var valid_627040 = header.getOrDefault("X-Amz-Signature") valid_627040 = validateParameter(valid_627040, JString, required = false, default = nil) if valid_627040 != nil: - section.add "X-Amz-Date", valid_627040 - var valid_627041 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_627040 + var valid_627041 = header.getOrDefault("X-Amz-Content-Sha256") valid_627041 = validateParameter(valid_627041, JString, required = false, default = nil) if valid_627041 != nil: - section.add "X-Amz-Credential", valid_627041 - var valid_627042 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_627041 + var valid_627042 = header.getOrDefault("X-Amz-Date") valid_627042 = validateParameter(valid_627042, JString, required = false, default = nil) if valid_627042 != nil: - section.add "X-Amz-Security-Token", valid_627042 - var valid_627043 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_627042 + var valid_627043 = header.getOrDefault("X-Amz-Credential") valid_627043 = validateParameter(valid_627043, JString, required = false, default = nil) if valid_627043 != nil: - section.add "X-Amz-Algorithm", valid_627043 - var valid_627044 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_627043 + var valid_627044 = header.getOrDefault("X-Amz-Security-Token") valid_627044 = validateParameter(valid_627044, JString, required = false, default = nil) if valid_627044 != nil: - section.add "X-Amz-SignedHeaders", valid_627044 + section.add "X-Amz-Security-Token", valid_627044 + var valid_627045 = header.getOrDefault("X-Amz-Algorithm") + valid_627045 = validateParameter(valid_627045, JString, required = false, + default = nil) + if valid_627045 != nil: + section.add "X-Amz-Algorithm", valid_627045 + var valid_627046 = header.getOrDefault("X-Amz-SignedHeaders") + valid_627046 = validateParameter(valid_627046, JString, required = false, + default = nil) + if valid_627046 != nil: + section.add "X-Amz-SignedHeaders", valid_627046 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_627045: Call_GetSearchTransitGatewayRoutes_627029; path: JsonNode; +proc call*(call_627047: Call_GetSearchTransitGatewayRoutes_627031; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Searches for routes in the specified transit gateway route table. ## - let valid = call_627045.validator(path, query, header, formData, body) - let scheme = call_627045.pickScheme + let valid = call_627047.validator(path, query, header, formData, body) + let scheme = call_627047.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_627045.url(scheme.get, call_627045.host, call_627045.base, - call_627045.route, valid.getOrDefault("path"), + let url = call_627047.url(scheme.get, call_627047.host, call_627047.base, + call_627047.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_627045, url, valid) + result = atozHook(call_627047, url, valid) -proc call*(call_627046: Call_GetSearchTransitGatewayRoutes_627029; +proc call*(call_627048: Call_GetSearchTransitGatewayRoutes_627031; TransitGatewayRouteTableId: string; Filter: JsonNode; MaxResults: int = 0; DryRun: bool = false; Action: string = "SearchTransitGatewayRoutes"; Version: string = "2016-11-15"): Recallable = @@ -133049,26 +133076,26 @@ proc call*(call_627046: Call_GetSearchTransitGatewayRoutes_627029; ## :

    One or more filters. The possible values are:

    ## Action: string (required) ## Version: string (required) - var query_627047 = newJObject() - add(query_627047, "MaxResults", newJInt(MaxResults)) - add(query_627047, "DryRun", newJBool(DryRun)) - add(query_627047, "TransitGatewayRouteTableId", + var query_627049 = newJObject() + add(query_627049, "MaxResults", newJInt(MaxResults)) + add(query_627049, "DryRun", newJBool(DryRun)) + add(query_627049, "TransitGatewayRouteTableId", newJString(TransitGatewayRouteTableId)) if Filter != nil: - query_627047.add "Filter", Filter - add(query_627047, "Action", newJString(Action)) - add(query_627047, "Version", newJString(Version)) - result = call_627046.call(nil, query_627047, nil, nil, nil) + query_627049.add "Filter", Filter + add(query_627049, "Action", newJString(Action)) + add(query_627049, "Version", newJString(Version)) + result = call_627048.call(nil, query_627049, nil, nil, nil) -var getSearchTransitGatewayRoutes* = Call_GetSearchTransitGatewayRoutes_627029( +var getSearchTransitGatewayRoutes* = Call_GetSearchTransitGatewayRoutes_627031( name: "getSearchTransitGatewayRoutes", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=SearchTransitGatewayRoutes", - validator: validate_GetSearchTransitGatewayRoutes_627030, base: "/", - url: url_GetSearchTransitGatewayRoutes_627031, + validator: validate_GetSearchTransitGatewayRoutes_627032, base: "/", + url: url_GetSearchTransitGatewayRoutes_627033, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostSendDiagnosticInterrupt_627085 = ref object of OpenApiRestCall_610658 -proc url_PostSendDiagnosticInterrupt_627087(protocol: Scheme; host: string; + Call_PostSendDiagnosticInterrupt_627087 = ref object of OpenApiRestCall_610658 +proc url_PostSendDiagnosticInterrupt_627089(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -133078,7 +133105,7 @@ proc url_PostSendDiagnosticInterrupt_627087(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostSendDiagnosticInterrupt_627086(path: JsonNode; query: JsonNode; +proc validate_PostSendDiagnosticInterrupt_627088(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Sends a diagnostic interrupt to the specified Amazon EC2 instance to trigger a kernel panic (on Linux instances), or a blue screen/stop error (on Windows instances). For instances based on Intel and AMD processors, the interrupt is received as a non-maskable interrupt (NMI).

    In general, the operating system crashes and reboots when a kernel panic or stop error is triggered. The operating system can also be configured to perform diagnostic tasks, such as generating a memory dump file, loading a secondary kernel, or obtaining a call trace.

    Before sending a diagnostic interrupt to your instance, ensure that its operating system is configured to perform the required diagnostic tasks.

    For more information about configuring your operating system to generate a crash dump when a kernel panic or stop error occurs, see Send a Diagnostic Interrupt (Linux instances) or Send a Diagnostic Interrupt (Windows instances).

    ## @@ -133090,16 +133117,16 @@ proc validate_PostSendDiagnosticInterrupt_627086(path: JsonNode; query: JsonNode ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_627088 = query.getOrDefault("Action") - valid_627088 = validateParameter(valid_627088, JString, required = true, default = newJString( + var valid_627090 = query.getOrDefault("Action") + valid_627090 = validateParameter(valid_627090, JString, required = true, default = newJString( "SendDiagnosticInterrupt")) - if valid_627088 != nil: - section.add "Action", valid_627088 - var valid_627089 = query.getOrDefault("Version") - valid_627089 = validateParameter(valid_627089, JString, required = true, + if valid_627090 != nil: + section.add "Action", valid_627090 + var valid_627091 = query.getOrDefault("Version") + valid_627091 = validateParameter(valid_627091, JString, required = true, default = newJString("2016-11-15")) - if valid_627089 != nil: - section.add "Version", valid_627089 + if valid_627091 != nil: + section.add "Version", valid_627091 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -133110,41 +133137,41 @@ proc validate_PostSendDiagnosticInterrupt_627086(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_627090 = header.getOrDefault("X-Amz-Signature") - valid_627090 = validateParameter(valid_627090, JString, required = false, - default = nil) - if valid_627090 != nil: - section.add "X-Amz-Signature", valid_627090 - var valid_627091 = header.getOrDefault("X-Amz-Content-Sha256") - valid_627091 = validateParameter(valid_627091, JString, required = false, - default = nil) - if valid_627091 != nil: - section.add "X-Amz-Content-Sha256", valid_627091 - var valid_627092 = header.getOrDefault("X-Amz-Date") + var valid_627092 = header.getOrDefault("X-Amz-Signature") valid_627092 = validateParameter(valid_627092, JString, required = false, default = nil) if valid_627092 != nil: - section.add "X-Amz-Date", valid_627092 - var valid_627093 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_627092 + var valid_627093 = header.getOrDefault("X-Amz-Content-Sha256") valid_627093 = validateParameter(valid_627093, JString, required = false, default = nil) if valid_627093 != nil: - section.add "X-Amz-Credential", valid_627093 - var valid_627094 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_627093 + var valid_627094 = header.getOrDefault("X-Amz-Date") valid_627094 = validateParameter(valid_627094, JString, required = false, default = nil) if valid_627094 != nil: - section.add "X-Amz-Security-Token", valid_627094 - var valid_627095 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_627094 + var valid_627095 = header.getOrDefault("X-Amz-Credential") valid_627095 = validateParameter(valid_627095, JString, required = false, default = nil) if valid_627095 != nil: - section.add "X-Amz-Algorithm", valid_627095 - var valid_627096 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_627095 + var valid_627096 = header.getOrDefault("X-Amz-Security-Token") valid_627096 = validateParameter(valid_627096, JString, required = false, default = nil) if valid_627096 != nil: - section.add "X-Amz-SignedHeaders", valid_627096 + section.add "X-Amz-Security-Token", valid_627096 + var valid_627097 = header.getOrDefault("X-Amz-Algorithm") + valid_627097 = validateParameter(valid_627097, JString, required = false, + default = nil) + if valid_627097 != nil: + section.add "X-Amz-Algorithm", valid_627097 + var valid_627098 = header.getOrDefault("X-Amz-SignedHeaders") + valid_627098 = validateParameter(valid_627098, JString, required = false, + default = nil) + if valid_627098 != nil: + section.add "X-Amz-SignedHeaders", valid_627098 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -133152,35 +133179,35 @@ proc validate_PostSendDiagnosticInterrupt_627086(path: JsonNode; query: JsonNode ## InstanceId: JString (required) ## : The ID of the instance. section = newJObject() - var valid_627097 = formData.getOrDefault("DryRun") - valid_627097 = validateParameter(valid_627097, JBool, required = false, default = nil) - if valid_627097 != nil: - section.add "DryRun", valid_627097 + var valid_627099 = formData.getOrDefault("DryRun") + valid_627099 = validateParameter(valid_627099, JBool, required = false, default = nil) + if valid_627099 != nil: + section.add "DryRun", valid_627099 assert formData != nil, "formData argument is necessary due to required `InstanceId` field" - var valid_627098 = formData.getOrDefault("InstanceId") - valid_627098 = validateParameter(valid_627098, JString, required = true, + var valid_627100 = formData.getOrDefault("InstanceId") + valid_627100 = validateParameter(valid_627100, JString, required = true, default = nil) - if valid_627098 != nil: - section.add "InstanceId", valid_627098 + if valid_627100 != nil: + section.add "InstanceId", valid_627100 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_627099: Call_PostSendDiagnosticInterrupt_627085; path: JsonNode; +proc call*(call_627101: Call_PostSendDiagnosticInterrupt_627087; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Sends a diagnostic interrupt to the specified Amazon EC2 instance to trigger a kernel panic (on Linux instances), or a blue screen/stop error (on Windows instances). For instances based on Intel and AMD processors, the interrupt is received as a non-maskable interrupt (NMI).

    In general, the operating system crashes and reboots when a kernel panic or stop error is triggered. The operating system can also be configured to perform diagnostic tasks, such as generating a memory dump file, loading a secondary kernel, or obtaining a call trace.

    Before sending a diagnostic interrupt to your instance, ensure that its operating system is configured to perform the required diagnostic tasks.

    For more information about configuring your operating system to generate a crash dump when a kernel panic or stop error occurs, see Send a Diagnostic Interrupt (Linux instances) or Send a Diagnostic Interrupt (Windows instances).

    ## - let valid = call_627099.validator(path, query, header, formData, body) - let scheme = call_627099.pickScheme + let valid = call_627101.validator(path, query, header, formData, body) + let scheme = call_627101.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_627099.url(scheme.get, call_627099.host, call_627099.base, - call_627099.route, valid.getOrDefault("path"), + let url = call_627101.url(scheme.get, call_627101.host, call_627101.base, + call_627101.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_627099, url, valid) + result = atozHook(call_627101, url, valid) -proc call*(call_627100: Call_PostSendDiagnosticInterrupt_627085; +proc call*(call_627102: Call_PostSendDiagnosticInterrupt_627087; InstanceId: string; DryRun: bool = false; Action: string = "SendDiagnosticInterrupt"; Version: string = "2016-11-15"): Recallable = ## postSendDiagnosticInterrupt @@ -133191,23 +133218,23 @@ proc call*(call_627100: Call_PostSendDiagnosticInterrupt_627085; ## : The ID of the instance. ## Action: string (required) ## Version: string (required) - var query_627101 = newJObject() - var formData_627102 = newJObject() - add(formData_627102, "DryRun", newJBool(DryRun)) - add(formData_627102, "InstanceId", newJString(InstanceId)) - add(query_627101, "Action", newJString(Action)) - add(query_627101, "Version", newJString(Version)) - result = call_627100.call(nil, query_627101, nil, formData_627102, nil) + var query_627103 = newJObject() + var formData_627104 = newJObject() + add(formData_627104, "DryRun", newJBool(DryRun)) + add(formData_627104, "InstanceId", newJString(InstanceId)) + add(query_627103, "Action", newJString(Action)) + add(query_627103, "Version", newJString(Version)) + result = call_627102.call(nil, query_627103, nil, formData_627104, nil) -var postSendDiagnosticInterrupt* = Call_PostSendDiagnosticInterrupt_627085( +var postSendDiagnosticInterrupt* = Call_PostSendDiagnosticInterrupt_627087( name: "postSendDiagnosticInterrupt", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=SendDiagnosticInterrupt", - validator: validate_PostSendDiagnosticInterrupt_627086, base: "/", - url: url_PostSendDiagnosticInterrupt_627087, + validator: validate_PostSendDiagnosticInterrupt_627088, base: "/", + url: url_PostSendDiagnosticInterrupt_627089, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetSendDiagnosticInterrupt_627068 = ref object of OpenApiRestCall_610658 -proc url_GetSendDiagnosticInterrupt_627070(protocol: Scheme; host: string; + Call_GetSendDiagnosticInterrupt_627070 = ref object of OpenApiRestCall_610658 +proc url_GetSendDiagnosticInterrupt_627072(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -133217,7 +133244,7 @@ proc url_GetSendDiagnosticInterrupt_627070(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetSendDiagnosticInterrupt_627069(path: JsonNode; query: JsonNode; +proc validate_GetSendDiagnosticInterrupt_627071(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Sends a diagnostic interrupt to the specified Amazon EC2 instance to trigger a kernel panic (on Linux instances), or a blue screen/stop error (on Windows instances). For instances based on Intel and AMD processors, the interrupt is received as a non-maskable interrupt (NMI).

    In general, the operating system crashes and reboots when a kernel panic or stop error is triggered. The operating system can also be configured to perform diagnostic tasks, such as generating a memory dump file, loading a secondary kernel, or obtaining a call trace.

    Before sending a diagnostic interrupt to your instance, ensure that its operating system is configured to perform the required diagnostic tasks.

    For more information about configuring your operating system to generate a crash dump when a kernel panic or stop error occurs, see Send a Diagnostic Interrupt (Linux instances) or Send a Diagnostic Interrupt (Windows instances).

    ## @@ -133233,27 +133260,27 @@ proc validate_GetSendDiagnosticInterrupt_627069(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_627071 = query.getOrDefault("DryRun") - valid_627071 = validateParameter(valid_627071, JBool, required = false, default = nil) - if valid_627071 != nil: - section.add "DryRun", valid_627071 + var valid_627073 = query.getOrDefault("DryRun") + valid_627073 = validateParameter(valid_627073, JBool, required = false, default = nil) + if valid_627073 != nil: + section.add "DryRun", valid_627073 assert query != nil, "query argument is necessary due to required `InstanceId` field" - var valid_627072 = query.getOrDefault("InstanceId") - valid_627072 = validateParameter(valid_627072, JString, required = true, + var valid_627074 = query.getOrDefault("InstanceId") + valid_627074 = validateParameter(valid_627074, JString, required = true, default = nil) - if valid_627072 != nil: - section.add "InstanceId", valid_627072 - var valid_627073 = query.getOrDefault("Action") - valid_627073 = validateParameter(valid_627073, JString, required = true, default = newJString( + if valid_627074 != nil: + section.add "InstanceId", valid_627074 + var valid_627075 = query.getOrDefault("Action") + valid_627075 = validateParameter(valid_627075, JString, required = true, default = newJString( "SendDiagnosticInterrupt")) - if valid_627073 != nil: - section.add "Action", valid_627073 - var valid_627074 = query.getOrDefault("Version") - valid_627074 = validateParameter(valid_627074, JString, required = true, + if valid_627075 != nil: + section.add "Action", valid_627075 + var valid_627076 = query.getOrDefault("Version") + valid_627076 = validateParameter(valid_627076, JString, required = true, default = newJString("2016-11-15")) - if valid_627074 != nil: - section.add "Version", valid_627074 + if valid_627076 != nil: + section.add "Version", valid_627076 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -133264,61 +133291,61 @@ proc validate_GetSendDiagnosticInterrupt_627069(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_627075 = header.getOrDefault("X-Amz-Signature") - valid_627075 = validateParameter(valid_627075, JString, required = false, - default = nil) - if valid_627075 != nil: - section.add "X-Amz-Signature", valid_627075 - var valid_627076 = header.getOrDefault("X-Amz-Content-Sha256") - valid_627076 = validateParameter(valid_627076, JString, required = false, - default = nil) - if valid_627076 != nil: - section.add "X-Amz-Content-Sha256", valid_627076 - var valid_627077 = header.getOrDefault("X-Amz-Date") + var valid_627077 = header.getOrDefault("X-Amz-Signature") valid_627077 = validateParameter(valid_627077, JString, required = false, default = nil) if valid_627077 != nil: - section.add "X-Amz-Date", valid_627077 - var valid_627078 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_627077 + var valid_627078 = header.getOrDefault("X-Amz-Content-Sha256") valid_627078 = validateParameter(valid_627078, JString, required = false, default = nil) if valid_627078 != nil: - section.add "X-Amz-Credential", valid_627078 - var valid_627079 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_627078 + var valid_627079 = header.getOrDefault("X-Amz-Date") valid_627079 = validateParameter(valid_627079, JString, required = false, default = nil) if valid_627079 != nil: - section.add "X-Amz-Security-Token", valid_627079 - var valid_627080 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_627079 + var valid_627080 = header.getOrDefault("X-Amz-Credential") valid_627080 = validateParameter(valid_627080, JString, required = false, default = nil) if valid_627080 != nil: - section.add "X-Amz-Algorithm", valid_627080 - var valid_627081 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_627080 + var valid_627081 = header.getOrDefault("X-Amz-Security-Token") valid_627081 = validateParameter(valid_627081, JString, required = false, default = nil) if valid_627081 != nil: - section.add "X-Amz-SignedHeaders", valid_627081 + section.add "X-Amz-Security-Token", valid_627081 + var valid_627082 = header.getOrDefault("X-Amz-Algorithm") + valid_627082 = validateParameter(valid_627082, JString, required = false, + default = nil) + if valid_627082 != nil: + section.add "X-Amz-Algorithm", valid_627082 + var valid_627083 = header.getOrDefault("X-Amz-SignedHeaders") + valid_627083 = validateParameter(valid_627083, JString, required = false, + default = nil) + if valid_627083 != nil: + section.add "X-Amz-SignedHeaders", valid_627083 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_627082: Call_GetSendDiagnosticInterrupt_627068; path: JsonNode; +proc call*(call_627084: Call_GetSendDiagnosticInterrupt_627070; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Sends a diagnostic interrupt to the specified Amazon EC2 instance to trigger a kernel panic (on Linux instances), or a blue screen/stop error (on Windows instances). For instances based on Intel and AMD processors, the interrupt is received as a non-maskable interrupt (NMI).

    In general, the operating system crashes and reboots when a kernel panic or stop error is triggered. The operating system can also be configured to perform diagnostic tasks, such as generating a memory dump file, loading a secondary kernel, or obtaining a call trace.

    Before sending a diagnostic interrupt to your instance, ensure that its operating system is configured to perform the required diagnostic tasks.

    For more information about configuring your operating system to generate a crash dump when a kernel panic or stop error occurs, see Send a Diagnostic Interrupt (Linux instances) or Send a Diagnostic Interrupt (Windows instances).

    ## - let valid = call_627082.validator(path, query, header, formData, body) - let scheme = call_627082.pickScheme + let valid = call_627084.validator(path, query, header, formData, body) + let scheme = call_627084.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_627082.url(scheme.get, call_627082.host, call_627082.base, - call_627082.route, valid.getOrDefault("path"), + let url = call_627084.url(scheme.get, call_627084.host, call_627084.base, + call_627084.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_627082, url, valid) + result = atozHook(call_627084, url, valid) -proc call*(call_627083: Call_GetSendDiagnosticInterrupt_627068; InstanceId: string; +proc call*(call_627085: Call_GetSendDiagnosticInterrupt_627070; InstanceId: string; DryRun: bool = false; Action: string = "SendDiagnosticInterrupt"; Version: string = "2016-11-15"): Recallable = ## getSendDiagnosticInterrupt @@ -133329,22 +133356,22 @@ proc call*(call_627083: Call_GetSendDiagnosticInterrupt_627068; InstanceId: stri ## : The ID of the instance. ## Action: string (required) ## Version: string (required) - var query_627084 = newJObject() - add(query_627084, "DryRun", newJBool(DryRun)) - add(query_627084, "InstanceId", newJString(InstanceId)) - add(query_627084, "Action", newJString(Action)) - add(query_627084, "Version", newJString(Version)) - result = call_627083.call(nil, query_627084, nil, nil, nil) + var query_627086 = newJObject() + add(query_627086, "DryRun", newJBool(DryRun)) + add(query_627086, "InstanceId", newJString(InstanceId)) + add(query_627086, "Action", newJString(Action)) + add(query_627086, "Version", newJString(Version)) + result = call_627085.call(nil, query_627086, nil, nil, nil) -var getSendDiagnosticInterrupt* = Call_GetSendDiagnosticInterrupt_627068( +var getSendDiagnosticInterrupt* = Call_GetSendDiagnosticInterrupt_627070( name: "getSendDiagnosticInterrupt", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=SendDiagnosticInterrupt", - validator: validate_GetSendDiagnosticInterrupt_627069, base: "/", - url: url_GetSendDiagnosticInterrupt_627070, + validator: validate_GetSendDiagnosticInterrupt_627071, base: "/", + url: url_GetSendDiagnosticInterrupt_627072, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostStartInstances_627121 = ref object of OpenApiRestCall_610658 -proc url_PostStartInstances_627123(protocol: Scheme; host: string; base: string; + Call_PostStartInstances_627123 = ref object of OpenApiRestCall_610658 +proc url_PostStartInstances_627125(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -133354,7 +133381,7 @@ proc url_PostStartInstances_627123(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostStartInstances_627122(path: JsonNode; query: JsonNode; +proc validate_PostStartInstances_627124(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Starts an Amazon EBS-backed instance that you've previously stopped.

    Instances that use Amazon EBS volumes as their root devices can be quickly stopped and started. When an instance is stopped, the compute resources are released and you are not billed for instance usage. However, your root partition Amazon EBS volume remains and continues to persist your data, and you are charged for Amazon EBS volume usage. You can restart your instance at any time. Every time you start your Windows instance, Amazon EC2 charges you for a full instance hour. If you stop and restart your Windows instance, a new instance hour begins and Amazon EC2 charges you for another full instance hour even if you are still within the same 60-minute period when it was stopped. Every time you start your Linux instance, Amazon EC2 charges a one-minute minimum for instance usage, and thereafter charges per second for instance usage.

    Before stopping an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM.

    Performing this operation on an instance that uses an instance store as its root device returns an error.

    For more information, see Stopping Instances in the Amazon Elastic Compute Cloud User Guide.

    @@ -133367,16 +133394,16 @@ proc validate_PostStartInstances_627122(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_627124 = query.getOrDefault("Action") - valid_627124 = validateParameter(valid_627124, JString, required = true, + var valid_627126 = query.getOrDefault("Action") + valid_627126 = validateParameter(valid_627126, JString, required = true, default = newJString("StartInstances")) - if valid_627124 != nil: - section.add "Action", valid_627124 - var valid_627125 = query.getOrDefault("Version") - valid_627125 = validateParameter(valid_627125, JString, required = true, + if valid_627126 != nil: + section.add "Action", valid_627126 + var valid_627127 = query.getOrDefault("Version") + valid_627127 = validateParameter(valid_627127, JString, required = true, default = newJString("2016-11-15")) - if valid_627125 != nil: - section.add "Version", valid_627125 + if valid_627127 != nil: + section.add "Version", valid_627127 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -133387,41 +133414,41 @@ proc validate_PostStartInstances_627122(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_627126 = header.getOrDefault("X-Amz-Signature") - valid_627126 = validateParameter(valid_627126, JString, required = false, - default = nil) - if valid_627126 != nil: - section.add "X-Amz-Signature", valid_627126 - var valid_627127 = header.getOrDefault("X-Amz-Content-Sha256") - valid_627127 = validateParameter(valid_627127, JString, required = false, - default = nil) - if valid_627127 != nil: - section.add "X-Amz-Content-Sha256", valid_627127 - var valid_627128 = header.getOrDefault("X-Amz-Date") + var valid_627128 = header.getOrDefault("X-Amz-Signature") valid_627128 = validateParameter(valid_627128, JString, required = false, default = nil) if valid_627128 != nil: - section.add "X-Amz-Date", valid_627128 - var valid_627129 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_627128 + var valid_627129 = header.getOrDefault("X-Amz-Content-Sha256") valid_627129 = validateParameter(valid_627129, JString, required = false, default = nil) if valid_627129 != nil: - section.add "X-Amz-Credential", valid_627129 - var valid_627130 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_627129 + var valid_627130 = header.getOrDefault("X-Amz-Date") valid_627130 = validateParameter(valid_627130, JString, required = false, default = nil) if valid_627130 != nil: - section.add "X-Amz-Security-Token", valid_627130 - var valid_627131 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_627130 + var valid_627131 = header.getOrDefault("X-Amz-Credential") valid_627131 = validateParameter(valid_627131, JString, required = false, default = nil) if valid_627131 != nil: - section.add "X-Amz-Algorithm", valid_627131 - var valid_627132 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_627131 + var valid_627132 = header.getOrDefault("X-Amz-Security-Token") valid_627132 = validateParameter(valid_627132, JString, required = false, default = nil) if valid_627132 != nil: - section.add "X-Amz-SignedHeaders", valid_627132 + section.add "X-Amz-Security-Token", valid_627132 + var valid_627133 = header.getOrDefault("X-Amz-Algorithm") + valid_627133 = validateParameter(valid_627133, JString, required = false, + default = nil) + if valid_627133 != nil: + section.add "X-Amz-Algorithm", valid_627133 + var valid_627134 = header.getOrDefault("X-Amz-SignedHeaders") + valid_627134 = validateParameter(valid_627134, JString, required = false, + default = nil) + if valid_627134 != nil: + section.add "X-Amz-SignedHeaders", valid_627134 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -133431,39 +133458,39 @@ proc validate_PostStartInstances_627122(path: JsonNode; query: JsonNode; ## AdditionalInfo: JString ## : Reserved. section = newJObject() - var valid_627133 = formData.getOrDefault("DryRun") - valid_627133 = validateParameter(valid_627133, JBool, required = false, default = nil) - if valid_627133 != nil: - section.add "DryRun", valid_627133 + var valid_627135 = formData.getOrDefault("DryRun") + valid_627135 = validateParameter(valid_627135, JBool, required = false, default = nil) + if valid_627135 != nil: + section.add "DryRun", valid_627135 assert formData != nil, "formData argument is necessary due to required `InstanceId` field" - var valid_627134 = formData.getOrDefault("InstanceId") - valid_627134 = validateParameter(valid_627134, JArray, required = true, default = nil) - if valid_627134 != nil: - section.add "InstanceId", valid_627134 - var valid_627135 = formData.getOrDefault("AdditionalInfo") - valid_627135 = validateParameter(valid_627135, JString, required = false, + var valid_627136 = formData.getOrDefault("InstanceId") + valid_627136 = validateParameter(valid_627136, JArray, required = true, default = nil) + if valid_627136 != nil: + section.add "InstanceId", valid_627136 + var valid_627137 = formData.getOrDefault("AdditionalInfo") + valid_627137 = validateParameter(valid_627137, JString, required = false, default = nil) - if valid_627135 != nil: - section.add "AdditionalInfo", valid_627135 + if valid_627137 != nil: + section.add "AdditionalInfo", valid_627137 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_627136: Call_PostStartInstances_627121; path: JsonNode; +proc call*(call_627138: Call_PostStartInstances_627123; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Starts an Amazon EBS-backed instance that you've previously stopped.

    Instances that use Amazon EBS volumes as their root devices can be quickly stopped and started. When an instance is stopped, the compute resources are released and you are not billed for instance usage. However, your root partition Amazon EBS volume remains and continues to persist your data, and you are charged for Amazon EBS volume usage. You can restart your instance at any time. Every time you start your Windows instance, Amazon EC2 charges you for a full instance hour. If you stop and restart your Windows instance, a new instance hour begins and Amazon EC2 charges you for another full instance hour even if you are still within the same 60-minute period when it was stopped. Every time you start your Linux instance, Amazon EC2 charges a one-minute minimum for instance usage, and thereafter charges per second for instance usage.

    Before stopping an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM.

    Performing this operation on an instance that uses an instance store as its root device returns an error.

    For more information, see Stopping Instances in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_627136.validator(path, query, header, formData, body) - let scheme = call_627136.pickScheme + let valid = call_627138.validator(path, query, header, formData, body) + let scheme = call_627138.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_627136.url(scheme.get, call_627136.host, call_627136.base, - call_627136.route, valid.getOrDefault("path"), + let url = call_627138.url(scheme.get, call_627138.host, call_627138.base, + call_627138.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_627136, url, valid) + result = atozHook(call_627138, url, valid) -proc call*(call_627137: Call_PostStartInstances_627121; InstanceId: JsonNode; +proc call*(call_627139: Call_PostStartInstances_627123; InstanceId: JsonNode; DryRun: bool = false; Action: string = "StartInstances"; AdditionalInfo: string = ""; Version: string = "2016-11-15"): Recallable = ## postStartInstances @@ -133476,24 +133503,24 @@ proc call*(call_627137: Call_PostStartInstances_627121; InstanceId: JsonNode; ## AdditionalInfo: string ## : Reserved. ## Version: string (required) - var query_627138 = newJObject() - var formData_627139 = newJObject() - add(formData_627139, "DryRun", newJBool(DryRun)) + var query_627140 = newJObject() + var formData_627141 = newJObject() + add(formData_627141, "DryRun", newJBool(DryRun)) if InstanceId != nil: - formData_627139.add "InstanceId", InstanceId - add(query_627138, "Action", newJString(Action)) - add(formData_627139, "AdditionalInfo", newJString(AdditionalInfo)) - add(query_627138, "Version", newJString(Version)) - result = call_627137.call(nil, query_627138, nil, formData_627139, nil) + formData_627141.add "InstanceId", InstanceId + add(query_627140, "Action", newJString(Action)) + add(formData_627141, "AdditionalInfo", newJString(AdditionalInfo)) + add(query_627140, "Version", newJString(Version)) + result = call_627139.call(nil, query_627140, nil, formData_627141, nil) -var postStartInstances* = Call_PostStartInstances_627121( +var postStartInstances* = Call_PostStartInstances_627123( name: "postStartInstances", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=StartInstances", - validator: validate_PostStartInstances_627122, base: "/", - url: url_PostStartInstances_627123, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostStartInstances_627124, base: "/", + url: url_PostStartInstances_627125, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetStartInstances_627103 = ref object of OpenApiRestCall_610658 -proc url_GetStartInstances_627105(protocol: Scheme; host: string; base: string; + Call_GetStartInstances_627105 = ref object of OpenApiRestCall_610658 +proc url_GetStartInstances_627107(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -133503,7 +133530,7 @@ proc url_GetStartInstances_627105(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetStartInstances_627104(path: JsonNode; query: JsonNode; +proc validate_GetStartInstances_627106(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Starts an Amazon EBS-backed instance that you've previously stopped.

    Instances that use Amazon EBS volumes as their root devices can be quickly stopped and started. When an instance is stopped, the compute resources are released and you are not billed for instance usage. However, your root partition Amazon EBS volume remains and continues to persist your data, and you are charged for Amazon EBS volume usage. You can restart your instance at any time. Every time you start your Windows instance, Amazon EC2 charges you for a full instance hour. If you stop and restart your Windows instance, a new instance hour begins and Amazon EC2 charges you for another full instance hour even if you are still within the same 60-minute period when it was stopped. Every time you start your Linux instance, Amazon EC2 charges a one-minute minimum for instance usage, and thereafter charges per second for instance usage.

    Before stopping an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM.

    Performing this operation on an instance that uses an instance store as its root device returns an error.

    For more information, see Stopping Instances in the Amazon Elastic Compute Cloud User Guide.

    @@ -133522,31 +133549,31 @@ proc validate_GetStartInstances_627104(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_627106 = query.getOrDefault("DryRun") - valid_627106 = validateParameter(valid_627106, JBool, required = false, default = nil) - if valid_627106 != nil: - section.add "DryRun", valid_627106 + var valid_627108 = query.getOrDefault("DryRun") + valid_627108 = validateParameter(valid_627108, JBool, required = false, default = nil) + if valid_627108 != nil: + section.add "DryRun", valid_627108 assert query != nil, "query argument is necessary due to required `InstanceId` field" - var valid_627107 = query.getOrDefault("InstanceId") - valid_627107 = validateParameter(valid_627107, JArray, required = true, default = nil) - if valid_627107 != nil: - section.add "InstanceId", valid_627107 - var valid_627108 = query.getOrDefault("AdditionalInfo") - valid_627108 = validateParameter(valid_627108, JString, required = false, + var valid_627109 = query.getOrDefault("InstanceId") + valid_627109 = validateParameter(valid_627109, JArray, required = true, default = nil) + if valid_627109 != nil: + section.add "InstanceId", valid_627109 + var valid_627110 = query.getOrDefault("AdditionalInfo") + valid_627110 = validateParameter(valid_627110, JString, required = false, default = nil) - if valid_627108 != nil: - section.add "AdditionalInfo", valid_627108 - var valid_627109 = query.getOrDefault("Action") - valid_627109 = validateParameter(valid_627109, JString, required = true, + if valid_627110 != nil: + section.add "AdditionalInfo", valid_627110 + var valid_627111 = query.getOrDefault("Action") + valid_627111 = validateParameter(valid_627111, JString, required = true, default = newJString("StartInstances")) - if valid_627109 != nil: - section.add "Action", valid_627109 - var valid_627110 = query.getOrDefault("Version") - valid_627110 = validateParameter(valid_627110, JString, required = true, + if valid_627111 != nil: + section.add "Action", valid_627111 + var valid_627112 = query.getOrDefault("Version") + valid_627112 = validateParameter(valid_627112, JString, required = true, default = newJString("2016-11-15")) - if valid_627110 != nil: - section.add "Version", valid_627110 + if valid_627112 != nil: + section.add "Version", valid_627112 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -133557,61 +133584,61 @@ proc validate_GetStartInstances_627104(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_627111 = header.getOrDefault("X-Amz-Signature") - valid_627111 = validateParameter(valid_627111, JString, required = false, - default = nil) - if valid_627111 != nil: - section.add "X-Amz-Signature", valid_627111 - var valid_627112 = header.getOrDefault("X-Amz-Content-Sha256") - valid_627112 = validateParameter(valid_627112, JString, required = false, - default = nil) - if valid_627112 != nil: - section.add "X-Amz-Content-Sha256", valid_627112 - var valid_627113 = header.getOrDefault("X-Amz-Date") + var valid_627113 = header.getOrDefault("X-Amz-Signature") valid_627113 = validateParameter(valid_627113, JString, required = false, default = nil) if valid_627113 != nil: - section.add "X-Amz-Date", valid_627113 - var valid_627114 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_627113 + var valid_627114 = header.getOrDefault("X-Amz-Content-Sha256") valid_627114 = validateParameter(valid_627114, JString, required = false, default = nil) if valid_627114 != nil: - section.add "X-Amz-Credential", valid_627114 - var valid_627115 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_627114 + var valid_627115 = header.getOrDefault("X-Amz-Date") valid_627115 = validateParameter(valid_627115, JString, required = false, default = nil) if valid_627115 != nil: - section.add "X-Amz-Security-Token", valid_627115 - var valid_627116 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_627115 + var valid_627116 = header.getOrDefault("X-Amz-Credential") valid_627116 = validateParameter(valid_627116, JString, required = false, default = nil) if valid_627116 != nil: - section.add "X-Amz-Algorithm", valid_627116 - var valid_627117 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_627116 + var valid_627117 = header.getOrDefault("X-Amz-Security-Token") valid_627117 = validateParameter(valid_627117, JString, required = false, default = nil) if valid_627117 != nil: - section.add "X-Amz-SignedHeaders", valid_627117 + section.add "X-Amz-Security-Token", valid_627117 + var valid_627118 = header.getOrDefault("X-Amz-Algorithm") + valid_627118 = validateParameter(valid_627118, JString, required = false, + default = nil) + if valid_627118 != nil: + section.add "X-Amz-Algorithm", valid_627118 + var valid_627119 = header.getOrDefault("X-Amz-SignedHeaders") + valid_627119 = validateParameter(valid_627119, JString, required = false, + default = nil) + if valid_627119 != nil: + section.add "X-Amz-SignedHeaders", valid_627119 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_627118: Call_GetStartInstances_627103; path: JsonNode; +proc call*(call_627120: Call_GetStartInstances_627105; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Starts an Amazon EBS-backed instance that you've previously stopped.

    Instances that use Amazon EBS volumes as their root devices can be quickly stopped and started. When an instance is stopped, the compute resources are released and you are not billed for instance usage. However, your root partition Amazon EBS volume remains and continues to persist your data, and you are charged for Amazon EBS volume usage. You can restart your instance at any time. Every time you start your Windows instance, Amazon EC2 charges you for a full instance hour. If you stop and restart your Windows instance, a new instance hour begins and Amazon EC2 charges you for another full instance hour even if you are still within the same 60-minute period when it was stopped. Every time you start your Linux instance, Amazon EC2 charges a one-minute minimum for instance usage, and thereafter charges per second for instance usage.

    Before stopping an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM.

    Performing this operation on an instance that uses an instance store as its root device returns an error.

    For more information, see Stopping Instances in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_627118.validator(path, query, header, formData, body) - let scheme = call_627118.pickScheme + let valid = call_627120.validator(path, query, header, formData, body) + let scheme = call_627120.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_627118.url(scheme.get, call_627118.host, call_627118.base, - call_627118.route, valid.getOrDefault("path"), + let url = call_627120.url(scheme.get, call_627120.host, call_627120.base, + call_627120.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_627118, url, valid) + result = atozHook(call_627120, url, valid) -proc call*(call_627119: Call_GetStartInstances_627103; InstanceId: JsonNode; +proc call*(call_627121: Call_GetStartInstances_627105; InstanceId: JsonNode; DryRun: bool = false; AdditionalInfo: string = ""; Action: string = "StartInstances"; Version: string = "2016-11-15"): Recallable = ## getStartInstances @@ -133624,23 +133651,23 @@ proc call*(call_627119: Call_GetStartInstances_627103; InstanceId: JsonNode; ## : Reserved. ## Action: string (required) ## Version: string (required) - var query_627120 = newJObject() - add(query_627120, "DryRun", newJBool(DryRun)) + var query_627122 = newJObject() + add(query_627122, "DryRun", newJBool(DryRun)) if InstanceId != nil: - query_627120.add "InstanceId", InstanceId - add(query_627120, "AdditionalInfo", newJString(AdditionalInfo)) - add(query_627120, "Action", newJString(Action)) - add(query_627120, "Version", newJString(Version)) - result = call_627119.call(nil, query_627120, nil, nil, nil) + query_627122.add "InstanceId", InstanceId + add(query_627122, "AdditionalInfo", newJString(AdditionalInfo)) + add(query_627122, "Action", newJString(Action)) + add(query_627122, "Version", newJString(Version)) + result = call_627121.call(nil, query_627122, nil, nil, nil) -var getStartInstances* = Call_GetStartInstances_627103(name: "getStartInstances", +var getStartInstances* = Call_GetStartInstances_627105(name: "getStartInstances", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=StartInstances", validator: validate_GetStartInstances_627104, - base: "/", url: url_GetStartInstances_627105, + route: "/#Action=StartInstances", validator: validate_GetStartInstances_627106, + base: "/", url: url_GetStartInstances_627107, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostStartVpcEndpointServicePrivateDnsVerification_627157 = ref object of OpenApiRestCall_610658 -proc url_PostStartVpcEndpointServicePrivateDnsVerification_627159( + Call_PostStartVpcEndpointServicePrivateDnsVerification_627159 = ref object of OpenApiRestCall_610658 +proc url_PostStartVpcEndpointServicePrivateDnsVerification_627161( protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -133651,7 +133678,7 @@ proc url_PostStartVpcEndpointServicePrivateDnsVerification_627159( else: result.path = base & route -proc validate_PostStartVpcEndpointServicePrivateDnsVerification_627158( +proc validate_PostStartVpcEndpointServicePrivateDnsVerification_627160( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Initiates the verification process to prove that the service provider owns the private DNS name domain for the endpoint service.

    The service provider must successfully perform the verification before the consumer can use the name to access the service.

    Before the service provider runs this command, they must add a record to the DNS server. For more information, see Adding a TXT Record to Your Domain's DNS Server in the Amazon VPC User Guide.

    @@ -133664,16 +133691,16 @@ proc validate_PostStartVpcEndpointServicePrivateDnsVerification_627158( ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_627160 = query.getOrDefault("Action") - valid_627160 = validateParameter(valid_627160, JString, required = true, default = newJString( + var valid_627162 = query.getOrDefault("Action") + valid_627162 = validateParameter(valid_627162, JString, required = true, default = newJString( "StartVpcEndpointServicePrivateDnsVerification")) - if valid_627160 != nil: - section.add "Action", valid_627160 - var valid_627161 = query.getOrDefault("Version") - valid_627161 = validateParameter(valid_627161, JString, required = true, + if valid_627162 != nil: + section.add "Action", valid_627162 + var valid_627163 = query.getOrDefault("Version") + valid_627163 = validateParameter(valid_627163, JString, required = true, default = newJString("2016-11-15")) - if valid_627161 != nil: - section.add "Version", valid_627161 + if valid_627163 != nil: + section.add "Version", valid_627163 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -133684,41 +133711,41 @@ proc validate_PostStartVpcEndpointServicePrivateDnsVerification_627158( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_627162 = header.getOrDefault("X-Amz-Signature") - valid_627162 = validateParameter(valid_627162, JString, required = false, - default = nil) - if valid_627162 != nil: - section.add "X-Amz-Signature", valid_627162 - var valid_627163 = header.getOrDefault("X-Amz-Content-Sha256") - valid_627163 = validateParameter(valid_627163, JString, required = false, - default = nil) - if valid_627163 != nil: - section.add "X-Amz-Content-Sha256", valid_627163 - var valid_627164 = header.getOrDefault("X-Amz-Date") + var valid_627164 = header.getOrDefault("X-Amz-Signature") valid_627164 = validateParameter(valid_627164, JString, required = false, default = nil) if valid_627164 != nil: - section.add "X-Amz-Date", valid_627164 - var valid_627165 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_627164 + var valid_627165 = header.getOrDefault("X-Amz-Content-Sha256") valid_627165 = validateParameter(valid_627165, JString, required = false, default = nil) if valid_627165 != nil: - section.add "X-Amz-Credential", valid_627165 - var valid_627166 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_627165 + var valid_627166 = header.getOrDefault("X-Amz-Date") valid_627166 = validateParameter(valid_627166, JString, required = false, default = nil) if valid_627166 != nil: - section.add "X-Amz-Security-Token", valid_627166 - var valid_627167 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_627166 + var valid_627167 = header.getOrDefault("X-Amz-Credential") valid_627167 = validateParameter(valid_627167, JString, required = false, default = nil) if valid_627167 != nil: - section.add "X-Amz-Algorithm", valid_627167 - var valid_627168 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_627167 + var valid_627168 = header.getOrDefault("X-Amz-Security-Token") valid_627168 = validateParameter(valid_627168, JString, required = false, default = nil) if valid_627168 != nil: - section.add "X-Amz-SignedHeaders", valid_627168 + section.add "X-Amz-Security-Token", valid_627168 + var valid_627169 = header.getOrDefault("X-Amz-Algorithm") + valid_627169 = validateParameter(valid_627169, JString, required = false, + default = nil) + if valid_627169 != nil: + section.add "X-Amz-Algorithm", valid_627169 + var valid_627170 = header.getOrDefault("X-Amz-SignedHeaders") + valid_627170 = validateParameter(valid_627170, JString, required = false, + default = nil) + if valid_627170 != nil: + section.add "X-Amz-SignedHeaders", valid_627170 result.add "header", section ## parameters in `formData` object: ## ServiceId: JString (required) @@ -133728,34 +133755,34 @@ proc validate_PostStartVpcEndpointServicePrivateDnsVerification_627158( section = newJObject() assert formData != nil, "formData argument is necessary due to required `ServiceId` field" - var valid_627169 = formData.getOrDefault("ServiceId") - valid_627169 = validateParameter(valid_627169, JString, required = true, + var valid_627171 = formData.getOrDefault("ServiceId") + valid_627171 = validateParameter(valid_627171, JString, required = true, default = nil) - if valid_627169 != nil: - section.add "ServiceId", valid_627169 - var valid_627170 = formData.getOrDefault("DryRun") - valid_627170 = validateParameter(valid_627170, JBool, required = false, default = nil) - if valid_627170 != nil: - section.add "DryRun", valid_627170 + if valid_627171 != nil: + section.add "ServiceId", valid_627171 + var valid_627172 = formData.getOrDefault("DryRun") + valid_627172 = validateParameter(valid_627172, JBool, required = false, default = nil) + if valid_627172 != nil: + section.add "DryRun", valid_627172 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_627171: Call_PostStartVpcEndpointServicePrivateDnsVerification_627157; +proc call*(call_627173: Call_PostStartVpcEndpointServicePrivateDnsVerification_627159; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Initiates the verification process to prove that the service provider owns the private DNS name domain for the endpoint service.

    The service provider must successfully perform the verification before the consumer can use the name to access the service.

    Before the service provider runs this command, they must add a record to the DNS server. For more information, see Adding a TXT Record to Your Domain's DNS Server in the Amazon VPC User Guide.

    ## - let valid = call_627171.validator(path, query, header, formData, body) - let scheme = call_627171.pickScheme + let valid = call_627173.validator(path, query, header, formData, body) + let scheme = call_627173.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_627171.url(scheme.get, call_627171.host, call_627171.base, - call_627171.route, valid.getOrDefault("path"), + let url = call_627173.url(scheme.get, call_627173.host, call_627173.base, + call_627173.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_627171, url, valid) + result = atozHook(call_627173, url, valid) -proc call*(call_627172: Call_PostStartVpcEndpointServicePrivateDnsVerification_627157; +proc call*(call_627174: Call_PostStartVpcEndpointServicePrivateDnsVerification_627159; ServiceId: string; DryRun: bool = false; Action: string = "StartVpcEndpointServicePrivateDnsVerification"; Version: string = "2016-11-15"): Recallable = @@ -133767,24 +133794,24 @@ proc call*(call_627172: Call_PostStartVpcEndpointServicePrivateDnsVerification_6 ## : 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. ## Action: string (required) ## Version: string (required) - var query_627173 = newJObject() - var formData_627174 = newJObject() - add(formData_627174, "ServiceId", newJString(ServiceId)) - add(formData_627174, "DryRun", newJBool(DryRun)) - add(query_627173, "Action", newJString(Action)) - add(query_627173, "Version", newJString(Version)) - result = call_627172.call(nil, query_627173, nil, formData_627174, nil) + var query_627175 = newJObject() + var formData_627176 = newJObject() + add(formData_627176, "ServiceId", newJString(ServiceId)) + add(formData_627176, "DryRun", newJBool(DryRun)) + add(query_627175, "Action", newJString(Action)) + add(query_627175, "Version", newJString(Version)) + result = call_627174.call(nil, query_627175, nil, formData_627176, nil) -var postStartVpcEndpointServicePrivateDnsVerification* = Call_PostStartVpcEndpointServicePrivateDnsVerification_627157( +var postStartVpcEndpointServicePrivateDnsVerification* = Call_PostStartVpcEndpointServicePrivateDnsVerification_627159( name: "postStartVpcEndpointServicePrivateDnsVerification", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=StartVpcEndpointServicePrivateDnsVerification", - validator: validate_PostStartVpcEndpointServicePrivateDnsVerification_627158, - base: "/", url: url_PostStartVpcEndpointServicePrivateDnsVerification_627159, + validator: validate_PostStartVpcEndpointServicePrivateDnsVerification_627160, + base: "/", url: url_PostStartVpcEndpointServicePrivateDnsVerification_627161, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetStartVpcEndpointServicePrivateDnsVerification_627140 = ref object of OpenApiRestCall_610658 -proc url_GetStartVpcEndpointServicePrivateDnsVerification_627142( + Call_GetStartVpcEndpointServicePrivateDnsVerification_627142 = ref object of OpenApiRestCall_610658 +proc url_GetStartVpcEndpointServicePrivateDnsVerification_627144( protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -133795,7 +133822,7 @@ proc url_GetStartVpcEndpointServicePrivateDnsVerification_627142( else: result.path = base & route -proc validate_GetStartVpcEndpointServicePrivateDnsVerification_627141( +proc validate_GetStartVpcEndpointServicePrivateDnsVerification_627143( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Initiates the verification process to prove that the service provider owns the private DNS name domain for the endpoint service.

    The service provider must successfully perform the verification before the consumer can use the name to access the service.

    Before the service provider runs this command, they must add a record to the DNS server. For more information, see Adding a TXT Record to Your Domain's DNS Server in the Amazon VPC User Guide.

    @@ -133812,27 +133839,27 @@ proc validate_GetStartVpcEndpointServicePrivateDnsVerification_627141( ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_627143 = query.getOrDefault("DryRun") - valid_627143 = validateParameter(valid_627143, JBool, required = false, default = nil) - if valid_627143 != nil: - section.add "DryRun", valid_627143 + var valid_627145 = query.getOrDefault("DryRun") + valid_627145 = validateParameter(valid_627145, JBool, required = false, default = nil) + if valid_627145 != nil: + section.add "DryRun", valid_627145 assert query != nil, "query argument is necessary due to required `ServiceId` field" - var valid_627144 = query.getOrDefault("ServiceId") - valid_627144 = validateParameter(valid_627144, JString, required = true, + var valid_627146 = query.getOrDefault("ServiceId") + valid_627146 = validateParameter(valid_627146, JString, required = true, default = nil) - if valid_627144 != nil: - section.add "ServiceId", valid_627144 - var valid_627145 = query.getOrDefault("Action") - valid_627145 = validateParameter(valid_627145, JString, required = true, default = newJString( + if valid_627146 != nil: + section.add "ServiceId", valid_627146 + var valid_627147 = query.getOrDefault("Action") + valid_627147 = validateParameter(valid_627147, JString, required = true, default = newJString( "StartVpcEndpointServicePrivateDnsVerification")) - if valid_627145 != nil: - section.add "Action", valid_627145 - var valid_627146 = query.getOrDefault("Version") - valid_627146 = validateParameter(valid_627146, JString, required = true, + if valid_627147 != nil: + section.add "Action", valid_627147 + var valid_627148 = query.getOrDefault("Version") + valid_627148 = validateParameter(valid_627148, JString, required = true, default = newJString("2016-11-15")) - if valid_627146 != nil: - section.add "Version", valid_627146 + if valid_627148 != nil: + section.add "Version", valid_627148 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -133843,62 +133870,62 @@ proc validate_GetStartVpcEndpointServicePrivateDnsVerification_627141( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_627147 = header.getOrDefault("X-Amz-Signature") - valid_627147 = validateParameter(valid_627147, JString, required = false, - default = nil) - if valid_627147 != nil: - section.add "X-Amz-Signature", valid_627147 - var valid_627148 = header.getOrDefault("X-Amz-Content-Sha256") - valid_627148 = validateParameter(valid_627148, JString, required = false, - default = nil) - if valid_627148 != nil: - section.add "X-Amz-Content-Sha256", valid_627148 - var valid_627149 = header.getOrDefault("X-Amz-Date") + var valid_627149 = header.getOrDefault("X-Amz-Signature") valid_627149 = validateParameter(valid_627149, JString, required = false, default = nil) if valid_627149 != nil: - section.add "X-Amz-Date", valid_627149 - var valid_627150 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_627149 + var valid_627150 = header.getOrDefault("X-Amz-Content-Sha256") valid_627150 = validateParameter(valid_627150, JString, required = false, default = nil) if valid_627150 != nil: - section.add "X-Amz-Credential", valid_627150 - var valid_627151 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_627150 + var valid_627151 = header.getOrDefault("X-Amz-Date") valid_627151 = validateParameter(valid_627151, JString, required = false, default = nil) if valid_627151 != nil: - section.add "X-Amz-Security-Token", valid_627151 - var valid_627152 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_627151 + var valid_627152 = header.getOrDefault("X-Amz-Credential") valid_627152 = validateParameter(valid_627152, JString, required = false, default = nil) if valid_627152 != nil: - section.add "X-Amz-Algorithm", valid_627152 - var valid_627153 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_627152 + var valid_627153 = header.getOrDefault("X-Amz-Security-Token") valid_627153 = validateParameter(valid_627153, JString, required = false, default = nil) if valid_627153 != nil: - section.add "X-Amz-SignedHeaders", valid_627153 + section.add "X-Amz-Security-Token", valid_627153 + var valid_627154 = header.getOrDefault("X-Amz-Algorithm") + valid_627154 = validateParameter(valid_627154, JString, required = false, + default = nil) + if valid_627154 != nil: + section.add "X-Amz-Algorithm", valid_627154 + var valid_627155 = header.getOrDefault("X-Amz-SignedHeaders") + valid_627155 = validateParameter(valid_627155, JString, required = false, + default = nil) + if valid_627155 != nil: + section.add "X-Amz-SignedHeaders", valid_627155 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_627154: Call_GetStartVpcEndpointServicePrivateDnsVerification_627140; +proc call*(call_627156: Call_GetStartVpcEndpointServicePrivateDnsVerification_627142; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Initiates the verification process to prove that the service provider owns the private DNS name domain for the endpoint service.

    The service provider must successfully perform the verification before the consumer can use the name to access the service.

    Before the service provider runs this command, they must add a record to the DNS server. For more information, see Adding a TXT Record to Your Domain's DNS Server in the Amazon VPC User Guide.

    ## - let valid = call_627154.validator(path, query, header, formData, body) - let scheme = call_627154.pickScheme + let valid = call_627156.validator(path, query, header, formData, body) + let scheme = call_627156.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_627154.url(scheme.get, call_627154.host, call_627154.base, - call_627154.route, valid.getOrDefault("path"), + let url = call_627156.url(scheme.get, call_627156.host, call_627156.base, + call_627156.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_627154, url, valid) + result = atozHook(call_627156, url, valid) -proc call*(call_627155: Call_GetStartVpcEndpointServicePrivateDnsVerification_627140; +proc call*(call_627157: Call_GetStartVpcEndpointServicePrivateDnsVerification_627142; ServiceId: string; DryRun: bool = false; Action: string = "StartVpcEndpointServicePrivateDnsVerification"; Version: string = "2016-11-15"): Recallable = @@ -133910,23 +133937,23 @@ proc call*(call_627155: Call_GetStartVpcEndpointServicePrivateDnsVerification_62 ## : The ID of the endpoint service. ## Action: string (required) ## Version: string (required) - var query_627156 = newJObject() - add(query_627156, "DryRun", newJBool(DryRun)) - add(query_627156, "ServiceId", newJString(ServiceId)) - add(query_627156, "Action", newJString(Action)) - add(query_627156, "Version", newJString(Version)) - result = call_627155.call(nil, query_627156, nil, nil, nil) + var query_627158 = newJObject() + add(query_627158, "DryRun", newJBool(DryRun)) + add(query_627158, "ServiceId", newJString(ServiceId)) + add(query_627158, "Action", newJString(Action)) + add(query_627158, "Version", newJString(Version)) + result = call_627157.call(nil, query_627158, nil, nil, nil) -var getStartVpcEndpointServicePrivateDnsVerification* = Call_GetStartVpcEndpointServicePrivateDnsVerification_627140( +var getStartVpcEndpointServicePrivateDnsVerification* = Call_GetStartVpcEndpointServicePrivateDnsVerification_627142( name: "getStartVpcEndpointServicePrivateDnsVerification", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=StartVpcEndpointServicePrivateDnsVerification", - validator: validate_GetStartVpcEndpointServicePrivateDnsVerification_627141, - base: "/", url: url_GetStartVpcEndpointServicePrivateDnsVerification_627142, + validator: validate_GetStartVpcEndpointServicePrivateDnsVerification_627143, + base: "/", url: url_GetStartVpcEndpointServicePrivateDnsVerification_627144, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostStopInstances_627194 = ref object of OpenApiRestCall_610658 -proc url_PostStopInstances_627196(protocol: Scheme; host: string; base: string; + Call_PostStopInstances_627196 = ref object of OpenApiRestCall_610658 +proc url_PostStopInstances_627198(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -133936,7 +133963,7 @@ proc url_PostStopInstances_627196(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_PostStopInstances_627195(path: JsonNode; query: JsonNode; +proc validate_PostStopInstances_627197(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Stops an Amazon EBS-backed instance.

    You can use the Stop action to hibernate an instance if the instance is enabled for hibernation and it meets the hibernation prerequisites. For more information, see Hibernate Your Instance in the Amazon Elastic Compute Cloud User Guide.

    We don't charge usage for a stopped instance, or data transfer fees; however, your root partition Amazon EBS volume remains and continues to persist your data, and you are charged for Amazon EBS volume usage. Every time you start your Windows instance, Amazon EC2 charges you for a full instance hour. If you stop and restart your Windows instance, a new instance hour begins and Amazon EC2 charges you for another full instance hour even if you are still within the same 60-minute period when it was stopped. Every time you start your Linux instance, Amazon EC2 charges a one-minute minimum for instance usage, and thereafter charges per second for instance usage.

    You can't hibernate Spot Instances, and you can't stop or hibernate instance store-backed instances. For information about using hibernation for Spot Instances, see Hibernating Interrupted Spot Instances in the Amazon Elastic Compute Cloud User Guide.

    When you stop or hibernate an instance, we shut it down. You can restart your instance at any time. Before stopping or hibernating an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM, but hibernating an instance does preserve data stored in RAM. If an instance cannot hibernate successfully, a normal shutdown occurs.

    Stopping and hibernating an instance is different to rebooting or terminating it. For example, when you stop or hibernate an instance, the root device and any other devices attached to the instance persist. When you terminate an instance, the root device and any other devices attached during the instance launch are automatically deleted. For more information about the differences between rebooting, stopping, hibernating, and terminating instances, see Instance Lifecycle in the Amazon Elastic Compute Cloud User Guide.

    When you stop an instance, we attempt to shut it down forcibly after a short while. If your instance appears stuck in the stopping state after a period of time, there may be an issue with the underlying host computer. For more information, see Troubleshooting Stopping Your Instance in the Amazon Elastic Compute Cloud User Guide.

    @@ -133949,16 +133976,16 @@ proc validate_PostStopInstances_627195(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_627197 = query.getOrDefault("Action") - valid_627197 = validateParameter(valid_627197, JString, required = true, + var valid_627199 = query.getOrDefault("Action") + valid_627199 = validateParameter(valid_627199, JString, required = true, default = newJString("StopInstances")) - if valid_627197 != nil: - section.add "Action", valid_627197 - var valid_627198 = query.getOrDefault("Version") - valid_627198 = validateParameter(valid_627198, JString, required = true, + if valid_627199 != nil: + section.add "Action", valid_627199 + var valid_627200 = query.getOrDefault("Version") + valid_627200 = validateParameter(valid_627200, JString, required = true, default = newJString("2016-11-15")) - if valid_627198 != nil: - section.add "Version", valid_627198 + if valid_627200 != nil: + section.add "Version", valid_627200 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -133969,41 +133996,41 @@ proc validate_PostStopInstances_627195(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_627199 = header.getOrDefault("X-Amz-Signature") - valid_627199 = validateParameter(valid_627199, JString, required = false, - default = nil) - if valid_627199 != nil: - section.add "X-Amz-Signature", valid_627199 - var valid_627200 = header.getOrDefault("X-Amz-Content-Sha256") - valid_627200 = validateParameter(valid_627200, JString, required = false, - default = nil) - if valid_627200 != nil: - section.add "X-Amz-Content-Sha256", valid_627200 - var valid_627201 = header.getOrDefault("X-Amz-Date") + var valid_627201 = header.getOrDefault("X-Amz-Signature") valid_627201 = validateParameter(valid_627201, JString, required = false, default = nil) if valid_627201 != nil: - section.add "X-Amz-Date", valid_627201 - var valid_627202 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_627201 + var valid_627202 = header.getOrDefault("X-Amz-Content-Sha256") valid_627202 = validateParameter(valid_627202, JString, required = false, default = nil) if valid_627202 != nil: - section.add "X-Amz-Credential", valid_627202 - var valid_627203 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_627202 + var valid_627203 = header.getOrDefault("X-Amz-Date") valid_627203 = validateParameter(valid_627203, JString, required = false, default = nil) if valid_627203 != nil: - section.add "X-Amz-Security-Token", valid_627203 - var valid_627204 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_627203 + var valid_627204 = header.getOrDefault("X-Amz-Credential") valid_627204 = validateParameter(valid_627204, JString, required = false, default = nil) if valid_627204 != nil: - section.add "X-Amz-Algorithm", valid_627204 - var valid_627205 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_627204 + var valid_627205 = header.getOrDefault("X-Amz-Security-Token") valid_627205 = validateParameter(valid_627205, JString, required = false, default = nil) if valid_627205 != nil: - section.add "X-Amz-SignedHeaders", valid_627205 + section.add "X-Amz-Security-Token", valid_627205 + var valid_627206 = header.getOrDefault("X-Amz-Algorithm") + valid_627206 = validateParameter(valid_627206, JString, required = false, + default = nil) + if valid_627206 != nil: + section.add "X-Amz-Algorithm", valid_627206 + var valid_627207 = header.getOrDefault("X-Amz-SignedHeaders") + valid_627207 = validateParameter(valid_627207, JString, required = false, + default = nil) + if valid_627207 != nil: + section.add "X-Amz-SignedHeaders", valid_627207 result.add "header", section ## parameters in `formData` object: ## Force: JBool @@ -134016,42 +134043,42 @@ proc validate_PostStopInstances_627195(path: JsonNode; query: JsonNode; ## InstanceId: JArray (required) ## : The IDs of the instances. section = newJObject() - var valid_627206 = formData.getOrDefault("Force") - valid_627206 = validateParameter(valid_627206, JBool, required = false, default = nil) - if valid_627206 != nil: - section.add "Force", valid_627206 - var valid_627207 = formData.getOrDefault("Hibernate") - valid_627207 = validateParameter(valid_627207, JBool, required = false, default = nil) - if valid_627207 != nil: - section.add "Hibernate", valid_627207 - var valid_627208 = formData.getOrDefault("DryRun") + var valid_627208 = formData.getOrDefault("Force") valid_627208 = validateParameter(valid_627208, JBool, required = false, default = nil) if valid_627208 != nil: - section.add "DryRun", valid_627208 + section.add "Force", valid_627208 + var valid_627209 = formData.getOrDefault("Hibernate") + valid_627209 = validateParameter(valid_627209, JBool, required = false, default = nil) + if valid_627209 != nil: + section.add "Hibernate", valid_627209 + var valid_627210 = formData.getOrDefault("DryRun") + valid_627210 = validateParameter(valid_627210, JBool, required = false, default = nil) + if valid_627210 != nil: + section.add "DryRun", valid_627210 assert formData != nil, "formData argument is necessary due to required `InstanceId` field" - var valid_627209 = formData.getOrDefault("InstanceId") - valid_627209 = validateParameter(valid_627209, JArray, required = true, default = nil) - if valid_627209 != nil: - section.add "InstanceId", valid_627209 + var valid_627211 = formData.getOrDefault("InstanceId") + valid_627211 = validateParameter(valid_627211, JArray, required = true, default = nil) + if valid_627211 != nil: + section.add "InstanceId", valid_627211 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_627210: Call_PostStopInstances_627194; path: JsonNode; +proc call*(call_627212: Call_PostStopInstances_627196; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Stops an Amazon EBS-backed instance.

    You can use the Stop action to hibernate an instance if the instance is enabled for hibernation and it meets the hibernation prerequisites. For more information, see Hibernate Your Instance in the Amazon Elastic Compute Cloud User Guide.

    We don't charge usage for a stopped instance, or data transfer fees; however, your root partition Amazon EBS volume remains and continues to persist your data, and you are charged for Amazon EBS volume usage. Every time you start your Windows instance, Amazon EC2 charges you for a full instance hour. If you stop and restart your Windows instance, a new instance hour begins and Amazon EC2 charges you for another full instance hour even if you are still within the same 60-minute period when it was stopped. Every time you start your Linux instance, Amazon EC2 charges a one-minute minimum for instance usage, and thereafter charges per second for instance usage.

    You can't hibernate Spot Instances, and you can't stop or hibernate instance store-backed instances. For information about using hibernation for Spot Instances, see Hibernating Interrupted Spot Instances in the Amazon Elastic Compute Cloud User Guide.

    When you stop or hibernate an instance, we shut it down. You can restart your instance at any time. Before stopping or hibernating an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM, but hibernating an instance does preserve data stored in RAM. If an instance cannot hibernate successfully, a normal shutdown occurs.

    Stopping and hibernating an instance is different to rebooting or terminating it. For example, when you stop or hibernate an instance, the root device and any other devices attached to the instance persist. When you terminate an instance, the root device and any other devices attached during the instance launch are automatically deleted. For more information about the differences between rebooting, stopping, hibernating, and terminating instances, see Instance Lifecycle in the Amazon Elastic Compute Cloud User Guide.

    When you stop an instance, we attempt to shut it down forcibly after a short while. If your instance appears stuck in the stopping state after a period of time, there may be an issue with the underlying host computer. For more information, see Troubleshooting Stopping Your Instance in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_627210.validator(path, query, header, formData, body) - let scheme = call_627210.pickScheme + let valid = call_627212.validator(path, query, header, formData, body) + let scheme = call_627212.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_627210.url(scheme.get, call_627210.host, call_627210.base, - call_627210.route, valid.getOrDefault("path"), + let url = call_627212.url(scheme.get, call_627212.host, call_627212.base, + call_627212.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_627210, url, valid) + result = atozHook(call_627212, url, valid) -proc call*(call_627211: Call_PostStopInstances_627194; InstanceId: JsonNode; +proc call*(call_627213: Call_PostStopInstances_627196; InstanceId: JsonNode; Force: bool = false; Hibernate: bool = false; DryRun: bool = false; Action: string = "StopInstances"; Version: string = "2016-11-15"): Recallable = ## postStopInstances @@ -134067,25 +134094,25 @@ proc call*(call_627211: Call_PostStopInstances_627194; InstanceId: JsonNode; ## : The IDs of the instances. ## Action: string (required) ## Version: string (required) - var query_627212 = newJObject() - var formData_627213 = newJObject() - add(formData_627213, "Force", newJBool(Force)) - add(formData_627213, "Hibernate", newJBool(Hibernate)) - add(formData_627213, "DryRun", newJBool(DryRun)) + var query_627214 = newJObject() + var formData_627215 = newJObject() + add(formData_627215, "Force", newJBool(Force)) + add(formData_627215, "Hibernate", newJBool(Hibernate)) + add(formData_627215, "DryRun", newJBool(DryRun)) if InstanceId != nil: - formData_627213.add "InstanceId", InstanceId - add(query_627212, "Action", newJString(Action)) - add(query_627212, "Version", newJString(Version)) - result = call_627211.call(nil, query_627212, nil, formData_627213, nil) + formData_627215.add "InstanceId", InstanceId + add(query_627214, "Action", newJString(Action)) + add(query_627214, "Version", newJString(Version)) + result = call_627213.call(nil, query_627214, nil, formData_627215, nil) -var postStopInstances* = Call_PostStopInstances_627194(name: "postStopInstances", +var postStopInstances* = Call_PostStopInstances_627196(name: "postStopInstances", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", - route: "/#Action=StopInstances", validator: validate_PostStopInstances_627195, - base: "/", url: url_PostStopInstances_627196, + route: "/#Action=StopInstances", validator: validate_PostStopInstances_627197, + base: "/", url: url_PostStopInstances_627198, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetStopInstances_627175 = ref object of OpenApiRestCall_610658 -proc url_GetStopInstances_627177(protocol: Scheme; host: string; base: string; + Call_GetStopInstances_627177 = ref object of OpenApiRestCall_610658 +proc url_GetStopInstances_627179(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -134095,7 +134122,7 @@ proc url_GetStopInstances_627177(protocol: Scheme; host: string; base: string; else: result.path = base & route -proc validate_GetStopInstances_627176(path: JsonNode; query: JsonNode; +proc validate_GetStopInstances_627178(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Stops an Amazon EBS-backed instance.

    You can use the Stop action to hibernate an instance if the instance is enabled for hibernation and it meets the hibernation prerequisites. For more information, see Hibernate Your Instance in the Amazon Elastic Compute Cloud User Guide.

    We don't charge usage for a stopped instance, or data transfer fees; however, your root partition Amazon EBS volume remains and continues to persist your data, and you are charged for Amazon EBS volume usage. Every time you start your Windows instance, Amazon EC2 charges you for a full instance hour. If you stop and restart your Windows instance, a new instance hour begins and Amazon EC2 charges you for another full instance hour even if you are still within the same 60-minute period when it was stopped. Every time you start your Linux instance, Amazon EC2 charges a one-minute minimum for instance usage, and thereafter charges per second for instance usage.

    You can't hibernate Spot Instances, and you can't stop or hibernate instance store-backed instances. For information about using hibernation for Spot Instances, see Hibernating Interrupted Spot Instances in the Amazon Elastic Compute Cloud User Guide.

    When you stop or hibernate an instance, we shut it down. You can restart your instance at any time. Before stopping or hibernating an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM, but hibernating an instance does preserve data stored in RAM. If an instance cannot hibernate successfully, a normal shutdown occurs.

    Stopping and hibernating an instance is different to rebooting or terminating it. For example, when you stop or hibernate an instance, the root device and any other devices attached to the instance persist. When you terminate an instance, the root device and any other devices attached during the instance launch are automatically deleted. For more information about the differences between rebooting, stopping, hibernating, and terminating instances, see Instance Lifecycle in the Amazon Elastic Compute Cloud User Guide.

    When you stop an instance, we attempt to shut it down forcibly after a short while. If your instance appears stuck in the stopping state after a period of time, there may be an issue with the underlying host computer. For more information, see Troubleshooting Stopping Your Instance in the Amazon Elastic Compute Cloud User Guide.

    @@ -134117,34 +134144,34 @@ proc validate_GetStopInstances_627176(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_627178 = query.getOrDefault("DryRun") - valid_627178 = validateParameter(valid_627178, JBool, required = false, default = nil) - if valid_627178 != nil: - section.add "DryRun", valid_627178 - var valid_627179 = query.getOrDefault("Hibernate") - valid_627179 = validateParameter(valid_627179, JBool, required = false, default = nil) - if valid_627179 != nil: - section.add "Hibernate", valid_627179 - assert query != nil, - "query argument is necessary due to required `InstanceId` field" - var valid_627180 = query.getOrDefault("InstanceId") - valid_627180 = validateParameter(valid_627180, JArray, required = true, default = nil) + var valid_627180 = query.getOrDefault("DryRun") + valid_627180 = validateParameter(valid_627180, JBool, required = false, default = nil) if valid_627180 != nil: - section.add "InstanceId", valid_627180 - var valid_627181 = query.getOrDefault("Force") + section.add "DryRun", valid_627180 + var valid_627181 = query.getOrDefault("Hibernate") valid_627181 = validateParameter(valid_627181, JBool, required = false, default = nil) if valid_627181 != nil: - section.add "Force", valid_627181 - var valid_627182 = query.getOrDefault("Action") - valid_627182 = validateParameter(valid_627182, JString, required = true, - default = newJString("StopInstances")) + section.add "Hibernate", valid_627181 + assert query != nil, + "query argument is necessary due to required `InstanceId` field" + var valid_627182 = query.getOrDefault("InstanceId") + valid_627182 = validateParameter(valid_627182, JArray, required = true, default = nil) if valid_627182 != nil: - section.add "Action", valid_627182 - var valid_627183 = query.getOrDefault("Version") - valid_627183 = validateParameter(valid_627183, JString, required = true, - default = newJString("2016-11-15")) + section.add "InstanceId", valid_627182 + var valid_627183 = query.getOrDefault("Force") + valid_627183 = validateParameter(valid_627183, JBool, required = false, default = nil) if valid_627183 != nil: - section.add "Version", valid_627183 + section.add "Force", valid_627183 + var valid_627184 = query.getOrDefault("Action") + valid_627184 = validateParameter(valid_627184, JString, required = true, + default = newJString("StopInstances")) + if valid_627184 != nil: + section.add "Action", valid_627184 + var valid_627185 = query.getOrDefault("Version") + valid_627185 = validateParameter(valid_627185, JString, required = true, + default = newJString("2016-11-15")) + if valid_627185 != nil: + section.add "Version", valid_627185 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -134155,61 +134182,61 @@ proc validate_GetStopInstances_627176(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_627184 = header.getOrDefault("X-Amz-Signature") - valid_627184 = validateParameter(valid_627184, JString, required = false, - default = nil) - if valid_627184 != nil: - section.add "X-Amz-Signature", valid_627184 - var valid_627185 = header.getOrDefault("X-Amz-Content-Sha256") - valid_627185 = validateParameter(valid_627185, JString, required = false, - default = nil) - if valid_627185 != nil: - section.add "X-Amz-Content-Sha256", valid_627185 - var valid_627186 = header.getOrDefault("X-Amz-Date") + var valid_627186 = header.getOrDefault("X-Amz-Signature") valid_627186 = validateParameter(valid_627186, JString, required = false, default = nil) if valid_627186 != nil: - section.add "X-Amz-Date", valid_627186 - var valid_627187 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_627186 + var valid_627187 = header.getOrDefault("X-Amz-Content-Sha256") valid_627187 = validateParameter(valid_627187, JString, required = false, default = nil) if valid_627187 != nil: - section.add "X-Amz-Credential", valid_627187 - var valid_627188 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_627187 + var valid_627188 = header.getOrDefault("X-Amz-Date") valid_627188 = validateParameter(valid_627188, JString, required = false, default = nil) if valid_627188 != nil: - section.add "X-Amz-Security-Token", valid_627188 - var valid_627189 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_627188 + var valid_627189 = header.getOrDefault("X-Amz-Credential") valid_627189 = validateParameter(valid_627189, JString, required = false, default = nil) if valid_627189 != nil: - section.add "X-Amz-Algorithm", valid_627189 - var valid_627190 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_627189 + var valid_627190 = header.getOrDefault("X-Amz-Security-Token") valid_627190 = validateParameter(valid_627190, JString, required = false, default = nil) if valid_627190 != nil: - section.add "X-Amz-SignedHeaders", valid_627190 + section.add "X-Amz-Security-Token", valid_627190 + var valid_627191 = header.getOrDefault("X-Amz-Algorithm") + valid_627191 = validateParameter(valid_627191, JString, required = false, + default = nil) + if valid_627191 != nil: + section.add "X-Amz-Algorithm", valid_627191 + var valid_627192 = header.getOrDefault("X-Amz-SignedHeaders") + valid_627192 = validateParameter(valid_627192, JString, required = false, + default = nil) + if valid_627192 != nil: + section.add "X-Amz-SignedHeaders", valid_627192 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_627191: Call_GetStopInstances_627175; path: JsonNode; +proc call*(call_627193: Call_GetStopInstances_627177; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Stops an Amazon EBS-backed instance.

    You can use the Stop action to hibernate an instance if the instance is enabled for hibernation and it meets the hibernation prerequisites. For more information, see Hibernate Your Instance in the Amazon Elastic Compute Cloud User Guide.

    We don't charge usage for a stopped instance, or data transfer fees; however, your root partition Amazon EBS volume remains and continues to persist your data, and you are charged for Amazon EBS volume usage. Every time you start your Windows instance, Amazon EC2 charges you for a full instance hour. If you stop and restart your Windows instance, a new instance hour begins and Amazon EC2 charges you for another full instance hour even if you are still within the same 60-minute period when it was stopped. Every time you start your Linux instance, Amazon EC2 charges a one-minute minimum for instance usage, and thereafter charges per second for instance usage.

    You can't hibernate Spot Instances, and you can't stop or hibernate instance store-backed instances. For information about using hibernation for Spot Instances, see Hibernating Interrupted Spot Instances in the Amazon Elastic Compute Cloud User Guide.

    When you stop or hibernate an instance, we shut it down. You can restart your instance at any time. Before stopping or hibernating an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM, but hibernating an instance does preserve data stored in RAM. If an instance cannot hibernate successfully, a normal shutdown occurs.

    Stopping and hibernating an instance is different to rebooting or terminating it. For example, when you stop or hibernate an instance, the root device and any other devices attached to the instance persist. When you terminate an instance, the root device and any other devices attached during the instance launch are automatically deleted. For more information about the differences between rebooting, stopping, hibernating, and terminating instances, see Instance Lifecycle in the Amazon Elastic Compute Cloud User Guide.

    When you stop an instance, we attempt to shut it down forcibly after a short while. If your instance appears stuck in the stopping state after a period of time, there may be an issue with the underlying host computer. For more information, see Troubleshooting Stopping Your Instance in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_627191.validator(path, query, header, formData, body) - let scheme = call_627191.pickScheme + let valid = call_627193.validator(path, query, header, formData, body) + let scheme = call_627193.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_627191.url(scheme.get, call_627191.host, call_627191.base, - call_627191.route, valid.getOrDefault("path"), + let url = call_627193.url(scheme.get, call_627193.host, call_627193.base, + call_627193.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_627191, url, valid) + result = atozHook(call_627193, url, valid) -proc call*(call_627192: Call_GetStopInstances_627175; InstanceId: JsonNode; +proc call*(call_627194: Call_GetStopInstances_627177; InstanceId: JsonNode; DryRun: bool = false; Hibernate: bool = false; Force: bool = false; Action: string = "StopInstances"; Version: string = "2016-11-15"): Recallable = ## getStopInstances @@ -134225,24 +134252,24 @@ proc call*(call_627192: Call_GetStopInstances_627175; InstanceId: JsonNode; ## :

    Forces the instances to stop. The instances do not have an opportunity to flush file system caches or file system metadata. If you use this option, you must perform file system check and repair procedures. This option is not recommended for Windows instances.

    Default: false

    ## Action: string (required) ## Version: string (required) - var query_627193 = newJObject() - add(query_627193, "DryRun", newJBool(DryRun)) - add(query_627193, "Hibernate", newJBool(Hibernate)) + var query_627195 = newJObject() + add(query_627195, "DryRun", newJBool(DryRun)) + add(query_627195, "Hibernate", newJBool(Hibernate)) if InstanceId != nil: - query_627193.add "InstanceId", InstanceId - add(query_627193, "Force", newJBool(Force)) - add(query_627193, "Action", newJString(Action)) - add(query_627193, "Version", newJString(Version)) - result = call_627192.call(nil, query_627193, nil, nil, nil) + query_627195.add "InstanceId", InstanceId + add(query_627195, "Force", newJBool(Force)) + add(query_627195, "Action", newJString(Action)) + add(query_627195, "Version", newJString(Version)) + result = call_627194.call(nil, query_627195, nil, nil, nil) -var getStopInstances* = Call_GetStopInstances_627175(name: "getStopInstances", +var getStopInstances* = Call_GetStopInstances_627177(name: "getStopInstances", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", - route: "/#Action=StopInstances", validator: validate_GetStopInstances_627176, - base: "/", url: url_GetStopInstances_627177, + route: "/#Action=StopInstances", validator: validate_GetStopInstances_627178, + base: "/", url: url_GetStopInstances_627179, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostTerminateClientVpnConnections_627233 = ref object of OpenApiRestCall_610658 -proc url_PostTerminateClientVpnConnections_627235(protocol: Scheme; host: string; + Call_PostTerminateClientVpnConnections_627235 = ref object of OpenApiRestCall_610658 +proc url_PostTerminateClientVpnConnections_627237(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -134252,7 +134279,7 @@ proc url_PostTerminateClientVpnConnections_627235(protocol: Scheme; host: string else: result.path = base & route -proc validate_PostTerminateClientVpnConnections_627234(path: JsonNode; +proc validate_PostTerminateClientVpnConnections_627236(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Terminates active Client VPN endpoint connections. This action can be used to terminate a specific client connection, or up to five connections established by a specific user. ## @@ -134264,16 +134291,16 @@ proc validate_PostTerminateClientVpnConnections_627234(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_627236 = query.getOrDefault("Action") - valid_627236 = validateParameter(valid_627236, JString, required = true, default = newJString( + var valid_627238 = query.getOrDefault("Action") + valid_627238 = validateParameter(valid_627238, JString, required = true, default = newJString( "TerminateClientVpnConnections")) - if valid_627236 != nil: - section.add "Action", valid_627236 - var valid_627237 = query.getOrDefault("Version") - valid_627237 = validateParameter(valid_627237, JString, required = true, + if valid_627238 != nil: + section.add "Action", valid_627238 + var valid_627239 = query.getOrDefault("Version") + valid_627239 = validateParameter(valid_627239, JString, required = true, default = newJString("2016-11-15")) - if valid_627237 != nil: - section.add "Version", valid_627237 + if valid_627239 != nil: + section.add "Version", valid_627239 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -134284,41 +134311,41 @@ proc validate_PostTerminateClientVpnConnections_627234(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_627238 = header.getOrDefault("X-Amz-Signature") - valid_627238 = validateParameter(valid_627238, JString, required = false, - default = nil) - if valid_627238 != nil: - section.add "X-Amz-Signature", valid_627238 - var valid_627239 = header.getOrDefault("X-Amz-Content-Sha256") - valid_627239 = validateParameter(valid_627239, JString, required = false, - default = nil) - if valid_627239 != nil: - section.add "X-Amz-Content-Sha256", valid_627239 - var valid_627240 = header.getOrDefault("X-Amz-Date") + var valid_627240 = header.getOrDefault("X-Amz-Signature") valid_627240 = validateParameter(valid_627240, JString, required = false, default = nil) if valid_627240 != nil: - section.add "X-Amz-Date", valid_627240 - var valid_627241 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_627240 + var valid_627241 = header.getOrDefault("X-Amz-Content-Sha256") valid_627241 = validateParameter(valid_627241, JString, required = false, default = nil) if valid_627241 != nil: - section.add "X-Amz-Credential", valid_627241 - var valid_627242 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_627241 + var valid_627242 = header.getOrDefault("X-Amz-Date") valid_627242 = validateParameter(valid_627242, JString, required = false, default = nil) if valid_627242 != nil: - section.add "X-Amz-Security-Token", valid_627242 - var valid_627243 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_627242 + var valid_627243 = header.getOrDefault("X-Amz-Credential") valid_627243 = validateParameter(valid_627243, JString, required = false, default = nil) if valid_627243 != nil: - section.add "X-Amz-Algorithm", valid_627243 - var valid_627244 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_627243 + var valid_627244 = header.getOrDefault("X-Amz-Security-Token") valid_627244 = validateParameter(valid_627244, JString, required = false, default = nil) if valid_627244 != nil: - section.add "X-Amz-SignedHeaders", valid_627244 + section.add "X-Amz-Security-Token", valid_627244 + var valid_627245 = header.getOrDefault("X-Amz-Algorithm") + valid_627245 = validateParameter(valid_627245, JString, required = false, + default = nil) + if valid_627245 != nil: + section.add "X-Amz-Algorithm", valid_627245 + var valid_627246 = header.getOrDefault("X-Amz-SignedHeaders") + valid_627246 = validateParameter(valid_627246, JString, required = false, + default = nil) + if valid_627246 != nil: + section.add "X-Amz-SignedHeaders", valid_627246 result.add "header", section ## parameters in `formData` object: ## Username: JString @@ -134330,45 +134357,45 @@ proc validate_PostTerminateClientVpnConnections_627234(path: JsonNode; ## ClientVpnEndpointId: JString (required) ## : The ID of the Client VPN endpoint to which the client is connected. section = newJObject() - var valid_627245 = formData.getOrDefault("Username") - valid_627245 = validateParameter(valid_627245, JString, required = false, + var valid_627247 = formData.getOrDefault("Username") + valid_627247 = validateParameter(valid_627247, JString, required = false, default = nil) - if valid_627245 != nil: - section.add "Username", valid_627245 - var valid_627246 = formData.getOrDefault("ConnectionId") - valid_627246 = validateParameter(valid_627246, JString, required = false, - default = nil) - if valid_627246 != nil: - section.add "ConnectionId", valid_627246 - var valid_627247 = formData.getOrDefault("DryRun") - valid_627247 = validateParameter(valid_627247, JBool, required = false, default = nil) if valid_627247 != nil: - section.add "DryRun", valid_627247 - assert formData != nil, "formData argument is necessary due to required `ClientVpnEndpointId` field" - var valid_627248 = formData.getOrDefault("ClientVpnEndpointId") - valid_627248 = validateParameter(valid_627248, JString, required = true, + section.add "Username", valid_627247 + var valid_627248 = formData.getOrDefault("ConnectionId") + valid_627248 = validateParameter(valid_627248, JString, required = false, default = nil) if valid_627248 != nil: - section.add "ClientVpnEndpointId", valid_627248 + section.add "ConnectionId", valid_627248 + var valid_627249 = formData.getOrDefault("DryRun") + valid_627249 = validateParameter(valid_627249, JBool, required = false, default = nil) + if valid_627249 != nil: + section.add "DryRun", valid_627249 + assert formData != nil, "formData argument is necessary due to required `ClientVpnEndpointId` field" + var valid_627250 = formData.getOrDefault("ClientVpnEndpointId") + valid_627250 = validateParameter(valid_627250, JString, required = true, + default = nil) + if valid_627250 != nil: + section.add "ClientVpnEndpointId", valid_627250 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_627249: Call_PostTerminateClientVpnConnections_627233; +proc call*(call_627251: Call_PostTerminateClientVpnConnections_627235; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Terminates active Client VPN endpoint connections. This action can be used to terminate a specific client connection, or up to five connections established by a specific user. ## - let valid = call_627249.validator(path, query, header, formData, body) - let scheme = call_627249.pickScheme + let valid = call_627251.validator(path, query, header, formData, body) + let scheme = call_627251.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_627249.url(scheme.get, call_627249.host, call_627249.base, - call_627249.route, valid.getOrDefault("path"), + let url = call_627251.url(scheme.get, call_627251.host, call_627251.base, + call_627251.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_627249, url, valid) + result = atozHook(call_627251, url, valid) -proc call*(call_627250: Call_PostTerminateClientVpnConnections_627233; +proc call*(call_627252: Call_PostTerminateClientVpnConnections_627235; ClientVpnEndpointId: string; Username: string = ""; ConnectionId: string = ""; DryRun: bool = false; Action: string = "TerminateClientVpnConnections"; @@ -134385,25 +134412,25 @@ proc call*(call_627250: Call_PostTerminateClientVpnConnections_627233; ## Version: string (required) ## ClientVpnEndpointId: string (required) ## : The ID of the Client VPN endpoint to which the client is connected. - var query_627251 = newJObject() - var formData_627252 = newJObject() - add(formData_627252, "Username", newJString(Username)) - add(formData_627252, "ConnectionId", newJString(ConnectionId)) - add(formData_627252, "DryRun", newJBool(DryRun)) - add(query_627251, "Action", newJString(Action)) - add(query_627251, "Version", newJString(Version)) - add(formData_627252, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) - result = call_627250.call(nil, query_627251, nil, formData_627252, nil) - -var postTerminateClientVpnConnections* = Call_PostTerminateClientVpnConnections_627233( + var query_627253 = newJObject() + var formData_627254 = newJObject() + add(formData_627254, "Username", newJString(Username)) + add(formData_627254, "ConnectionId", newJString(ConnectionId)) + add(formData_627254, "DryRun", newJBool(DryRun)) + add(query_627253, "Action", newJString(Action)) + add(query_627253, "Version", newJString(Version)) + add(formData_627254, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) + result = call_627252.call(nil, query_627253, nil, formData_627254, nil) + +var postTerminateClientVpnConnections* = Call_PostTerminateClientVpnConnections_627235( name: "postTerminateClientVpnConnections", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=TerminateClientVpnConnections", - validator: validate_PostTerminateClientVpnConnections_627234, base: "/", - url: url_PostTerminateClientVpnConnections_627235, + validator: validate_PostTerminateClientVpnConnections_627236, base: "/", + url: url_PostTerminateClientVpnConnections_627237, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetTerminateClientVpnConnections_627214 = ref object of OpenApiRestCall_610658 -proc url_GetTerminateClientVpnConnections_627216(protocol: Scheme; host: string; + Call_GetTerminateClientVpnConnections_627216 = ref object of OpenApiRestCall_610658 +proc url_GetTerminateClientVpnConnections_627218(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -134413,7 +134440,7 @@ proc url_GetTerminateClientVpnConnections_627216(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetTerminateClientVpnConnections_627215(path: JsonNode; +proc validate_GetTerminateClientVpnConnections_627217(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Terminates active Client VPN endpoint connections. This action can be used to terminate a specific client connection, or up to five connections established by a specific user. ## @@ -134433,36 +134460,36 @@ proc validate_GetTerminateClientVpnConnections_627215(path: JsonNode; ## : The ID of the client connection to be terminated. ## Version: JString (required) section = newJObject() - var valid_627217 = query.getOrDefault("DryRun") - valid_627217 = validateParameter(valid_627217, JBool, required = false, default = nil) - if valid_627217 != nil: - section.add "DryRun", valid_627217 + var valid_627219 = query.getOrDefault("DryRun") + valid_627219 = validateParameter(valid_627219, JBool, required = false, default = nil) + if valid_627219 != nil: + section.add "DryRun", valid_627219 assert query != nil, "query argument is necessary due to required `ClientVpnEndpointId` field" - var valid_627218 = query.getOrDefault("ClientVpnEndpointId") - valid_627218 = validateParameter(valid_627218, JString, required = true, + var valid_627220 = query.getOrDefault("ClientVpnEndpointId") + valid_627220 = validateParameter(valid_627220, JString, required = true, default = nil) - if valid_627218 != nil: - section.add "ClientVpnEndpointId", valid_627218 - var valid_627219 = query.getOrDefault("Username") - valid_627219 = validateParameter(valid_627219, JString, required = false, - default = nil) - if valid_627219 != nil: - section.add "Username", valid_627219 - var valid_627220 = query.getOrDefault("Action") - valid_627220 = validateParameter(valid_627220, JString, required = true, default = newJString( - "TerminateClientVpnConnections")) if valid_627220 != nil: - section.add "Action", valid_627220 - var valid_627221 = query.getOrDefault("ConnectionId") + section.add "ClientVpnEndpointId", valid_627220 + var valid_627221 = query.getOrDefault("Username") valid_627221 = validateParameter(valid_627221, JString, required = false, default = nil) if valid_627221 != nil: - section.add "ConnectionId", valid_627221 - var valid_627222 = query.getOrDefault("Version") - valid_627222 = validateParameter(valid_627222, JString, required = true, - default = newJString("2016-11-15")) + section.add "Username", valid_627221 + var valid_627222 = query.getOrDefault("Action") + valid_627222 = validateParameter(valid_627222, JString, required = true, default = newJString( + "TerminateClientVpnConnections")) if valid_627222 != nil: - section.add "Version", valid_627222 + section.add "Action", valid_627222 + var valid_627223 = query.getOrDefault("ConnectionId") + valid_627223 = validateParameter(valid_627223, JString, required = false, + default = nil) + if valid_627223 != nil: + section.add "ConnectionId", valid_627223 + var valid_627224 = query.getOrDefault("Version") + valid_627224 = validateParameter(valid_627224, JString, required = true, + default = newJString("2016-11-15")) + if valid_627224 != nil: + section.add "Version", valid_627224 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -134473,62 +134500,62 @@ proc validate_GetTerminateClientVpnConnections_627215(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_627223 = header.getOrDefault("X-Amz-Signature") - valid_627223 = validateParameter(valid_627223, JString, required = false, - default = nil) - if valid_627223 != nil: - section.add "X-Amz-Signature", valid_627223 - var valid_627224 = header.getOrDefault("X-Amz-Content-Sha256") - valid_627224 = validateParameter(valid_627224, JString, required = false, - default = nil) - if valid_627224 != nil: - section.add "X-Amz-Content-Sha256", valid_627224 - var valid_627225 = header.getOrDefault("X-Amz-Date") + var valid_627225 = header.getOrDefault("X-Amz-Signature") valid_627225 = validateParameter(valid_627225, JString, required = false, default = nil) if valid_627225 != nil: - section.add "X-Amz-Date", valid_627225 - var valid_627226 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_627225 + var valid_627226 = header.getOrDefault("X-Amz-Content-Sha256") valid_627226 = validateParameter(valid_627226, JString, required = false, default = nil) if valid_627226 != nil: - section.add "X-Amz-Credential", valid_627226 - var valid_627227 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_627226 + var valid_627227 = header.getOrDefault("X-Amz-Date") valid_627227 = validateParameter(valid_627227, JString, required = false, default = nil) if valid_627227 != nil: - section.add "X-Amz-Security-Token", valid_627227 - var valid_627228 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_627227 + var valid_627228 = header.getOrDefault("X-Amz-Credential") valid_627228 = validateParameter(valid_627228, JString, required = false, default = nil) if valid_627228 != nil: - section.add "X-Amz-Algorithm", valid_627228 - var valid_627229 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_627228 + var valid_627229 = header.getOrDefault("X-Amz-Security-Token") valid_627229 = validateParameter(valid_627229, JString, required = false, default = nil) if valid_627229 != nil: - section.add "X-Amz-SignedHeaders", valid_627229 + section.add "X-Amz-Security-Token", valid_627229 + var valid_627230 = header.getOrDefault("X-Amz-Algorithm") + valid_627230 = validateParameter(valid_627230, JString, required = false, + default = nil) + if valid_627230 != nil: + section.add "X-Amz-Algorithm", valid_627230 + var valid_627231 = header.getOrDefault("X-Amz-SignedHeaders") + valid_627231 = validateParameter(valid_627231, JString, required = false, + default = nil) + if valid_627231 != nil: + section.add "X-Amz-SignedHeaders", valid_627231 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_627230: Call_GetTerminateClientVpnConnections_627214; +proc call*(call_627232: Call_GetTerminateClientVpnConnections_627216; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Terminates active Client VPN endpoint connections. This action can be used to terminate a specific client connection, or up to five connections established by a specific user. ## - let valid = call_627230.validator(path, query, header, formData, body) - let scheme = call_627230.pickScheme + let valid = call_627232.validator(path, query, header, formData, body) + let scheme = call_627232.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_627230.url(scheme.get, call_627230.host, call_627230.base, - call_627230.route, valid.getOrDefault("path"), + let url = call_627232.url(scheme.get, call_627232.host, call_627232.base, + call_627232.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_627230, url, valid) + result = atozHook(call_627232, url, valid) -proc call*(call_627231: Call_GetTerminateClientVpnConnections_627214; +proc call*(call_627233: Call_GetTerminateClientVpnConnections_627216; ClientVpnEndpointId: string; DryRun: bool = false; Username: string = ""; Action: string = "TerminateClientVpnConnections"; ConnectionId: string = ""; Version: string = "2016-11-15"): Recallable = @@ -134544,24 +134571,24 @@ proc call*(call_627231: Call_GetTerminateClientVpnConnections_627214; ## ConnectionId: string ## : The ID of the client connection to be terminated. ## Version: string (required) - var query_627232 = newJObject() - add(query_627232, "DryRun", newJBool(DryRun)) - add(query_627232, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) - add(query_627232, "Username", newJString(Username)) - add(query_627232, "Action", newJString(Action)) - add(query_627232, "ConnectionId", newJString(ConnectionId)) - add(query_627232, "Version", newJString(Version)) - result = call_627231.call(nil, query_627232, nil, nil, nil) + var query_627234 = newJObject() + add(query_627234, "DryRun", newJBool(DryRun)) + add(query_627234, "ClientVpnEndpointId", newJString(ClientVpnEndpointId)) + add(query_627234, "Username", newJString(Username)) + add(query_627234, "Action", newJString(Action)) + add(query_627234, "ConnectionId", newJString(ConnectionId)) + add(query_627234, "Version", newJString(Version)) + result = call_627233.call(nil, query_627234, nil, nil, nil) -var getTerminateClientVpnConnections* = Call_GetTerminateClientVpnConnections_627214( +var getTerminateClientVpnConnections* = Call_GetTerminateClientVpnConnections_627216( name: "getTerminateClientVpnConnections", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=TerminateClientVpnConnections", - validator: validate_GetTerminateClientVpnConnections_627215, base: "/", - url: url_GetTerminateClientVpnConnections_627216, + validator: validate_GetTerminateClientVpnConnections_627217, base: "/", + url: url_GetTerminateClientVpnConnections_627218, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostTerminateInstances_627270 = ref object of OpenApiRestCall_610658 -proc url_PostTerminateInstances_627272(protocol: Scheme; host: string; base: string; + Call_PostTerminateInstances_627272 = ref object of OpenApiRestCall_610658 +proc url_PostTerminateInstances_627274(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -134571,7 +134598,7 @@ proc url_PostTerminateInstances_627272(protocol: Scheme; host: string; base: str else: result.path = base & route -proc validate_PostTerminateInstances_627271(path: JsonNode; query: JsonNode; +proc validate_PostTerminateInstances_627273(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Shuts down the specified instances. This operation is idempotent; if you terminate an instance more than once, each call succeeds.

    If you specify multiple instances and the request fails (for example, because of a single incorrect instance ID), none of the instances are terminated.

    Terminated instances remain visible after termination (for approximately one hour).

    By default, Amazon EC2 deletes all EBS volumes that were attached when the instance launched. Volumes attached after instance launch continue running.

    You can stop, start, and terminate EBS-backed instances. You can only terminate instance store-backed instances. What happens to an instance differs if you stop it or terminate it. For example, when you stop an instance, the root device and any other devices attached to the instance persist. When you terminate an instance, any attached EBS volumes with the DeleteOnTermination block device mapping parameter set to true are automatically deleted. For more information about the differences between stopping and terminating instances, see Instance Lifecycle in the Amazon Elastic Compute Cloud User Guide.

    For more information about troubleshooting, see Troubleshooting Terminating Your Instance in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -134583,16 +134610,16 @@ proc validate_PostTerminateInstances_627271(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_627273 = query.getOrDefault("Action") - valid_627273 = validateParameter(valid_627273, JString, required = true, + var valid_627275 = query.getOrDefault("Action") + valid_627275 = validateParameter(valid_627275, JString, required = true, default = newJString("TerminateInstances")) - if valid_627273 != nil: - section.add "Action", valid_627273 - var valid_627274 = query.getOrDefault("Version") - valid_627274 = validateParameter(valid_627274, JString, required = true, + if valid_627275 != nil: + section.add "Action", valid_627275 + var valid_627276 = query.getOrDefault("Version") + valid_627276 = validateParameter(valid_627276, JString, required = true, default = newJString("2016-11-15")) - if valid_627274 != nil: - section.add "Version", valid_627274 + if valid_627276 != nil: + section.add "Version", valid_627276 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -134603,41 +134630,41 @@ proc validate_PostTerminateInstances_627271(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_627275 = header.getOrDefault("X-Amz-Signature") - valid_627275 = validateParameter(valid_627275, JString, required = false, - default = nil) - if valid_627275 != nil: - section.add "X-Amz-Signature", valid_627275 - var valid_627276 = header.getOrDefault("X-Amz-Content-Sha256") - valid_627276 = validateParameter(valid_627276, JString, required = false, - default = nil) - if valid_627276 != nil: - section.add "X-Amz-Content-Sha256", valid_627276 - var valid_627277 = header.getOrDefault("X-Amz-Date") + var valid_627277 = header.getOrDefault("X-Amz-Signature") valid_627277 = validateParameter(valid_627277, JString, required = false, default = nil) if valid_627277 != nil: - section.add "X-Amz-Date", valid_627277 - var valid_627278 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_627277 + var valid_627278 = header.getOrDefault("X-Amz-Content-Sha256") valid_627278 = validateParameter(valid_627278, JString, required = false, default = nil) if valid_627278 != nil: - section.add "X-Amz-Credential", valid_627278 - var valid_627279 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_627278 + var valid_627279 = header.getOrDefault("X-Amz-Date") valid_627279 = validateParameter(valid_627279, JString, required = false, default = nil) if valid_627279 != nil: - section.add "X-Amz-Security-Token", valid_627279 - var valid_627280 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_627279 + var valid_627280 = header.getOrDefault("X-Amz-Credential") valid_627280 = validateParameter(valid_627280, JString, required = false, default = nil) if valid_627280 != nil: - section.add "X-Amz-Algorithm", valid_627280 - var valid_627281 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_627280 + var valid_627281 = header.getOrDefault("X-Amz-Security-Token") valid_627281 = validateParameter(valid_627281, JString, required = false, default = nil) if valid_627281 != nil: - section.add "X-Amz-SignedHeaders", valid_627281 + section.add "X-Amz-Security-Token", valid_627281 + var valid_627282 = header.getOrDefault("X-Amz-Algorithm") + valid_627282 = validateParameter(valid_627282, JString, required = false, + default = nil) + if valid_627282 != nil: + section.add "X-Amz-Algorithm", valid_627282 + var valid_627283 = header.getOrDefault("X-Amz-SignedHeaders") + valid_627283 = validateParameter(valid_627283, JString, required = false, + default = nil) + if valid_627283 != nil: + section.add "X-Amz-SignedHeaders", valid_627283 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -134645,34 +134672,34 @@ proc validate_PostTerminateInstances_627271(path: JsonNode; query: JsonNode; ## InstanceId: JArray (required) ## :

    The IDs of the instances.

    Constraints: Up to 1000 instance IDs. We recommend breaking up this request into smaller batches.

    section = newJObject() - var valid_627282 = formData.getOrDefault("DryRun") - valid_627282 = validateParameter(valid_627282, JBool, required = false, default = nil) - if valid_627282 != nil: - section.add "DryRun", valid_627282 + var valid_627284 = formData.getOrDefault("DryRun") + valid_627284 = validateParameter(valid_627284, JBool, required = false, default = nil) + if valid_627284 != nil: + section.add "DryRun", valid_627284 assert formData != nil, "formData argument is necessary due to required `InstanceId` field" - var valid_627283 = formData.getOrDefault("InstanceId") - valid_627283 = validateParameter(valid_627283, JArray, required = true, default = nil) - if valid_627283 != nil: - section.add "InstanceId", valid_627283 + var valid_627285 = formData.getOrDefault("InstanceId") + valid_627285 = validateParameter(valid_627285, JArray, required = true, default = nil) + if valid_627285 != nil: + section.add "InstanceId", valid_627285 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_627284: Call_PostTerminateInstances_627270; path: JsonNode; +proc call*(call_627286: Call_PostTerminateInstances_627272; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Shuts down the specified instances. This operation is idempotent; if you terminate an instance more than once, each call succeeds.

    If you specify multiple instances and the request fails (for example, because of a single incorrect instance ID), none of the instances are terminated.

    Terminated instances remain visible after termination (for approximately one hour).

    By default, Amazon EC2 deletes all EBS volumes that were attached when the instance launched. Volumes attached after instance launch continue running.

    You can stop, start, and terminate EBS-backed instances. You can only terminate instance store-backed instances. What happens to an instance differs if you stop it or terminate it. For example, when you stop an instance, the root device and any other devices attached to the instance persist. When you terminate an instance, any attached EBS volumes with the DeleteOnTermination block device mapping parameter set to true are automatically deleted. For more information about the differences between stopping and terminating instances, see Instance Lifecycle in the Amazon Elastic Compute Cloud User Guide.

    For more information about troubleshooting, see Troubleshooting Terminating Your Instance in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_627284.validator(path, query, header, formData, body) - let scheme = call_627284.pickScheme + let valid = call_627286.validator(path, query, header, formData, body) + let scheme = call_627286.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_627284.url(scheme.get, call_627284.host, call_627284.base, - call_627284.route, valid.getOrDefault("path"), + let url = call_627286.url(scheme.get, call_627286.host, call_627286.base, + call_627286.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_627284, url, valid) + result = atozHook(call_627286, url, valid) -proc call*(call_627285: Call_PostTerminateInstances_627270; InstanceId: JsonNode; +proc call*(call_627287: Call_PostTerminateInstances_627272; InstanceId: JsonNode; DryRun: bool = false; Action: string = "TerminateInstances"; Version: string = "2016-11-15"): Recallable = ## postTerminateInstances @@ -134683,23 +134710,23 @@ proc call*(call_627285: Call_PostTerminateInstances_627270; InstanceId: JsonNode ## :

    The IDs of the instances.

    Constraints: Up to 1000 instance IDs. We recommend breaking up this request into smaller batches.

    ## Action: string (required) ## Version: string (required) - var query_627286 = newJObject() - var formData_627287 = newJObject() - add(formData_627287, "DryRun", newJBool(DryRun)) + var query_627288 = newJObject() + var formData_627289 = newJObject() + add(formData_627289, "DryRun", newJBool(DryRun)) if InstanceId != nil: - formData_627287.add "InstanceId", InstanceId - add(query_627286, "Action", newJString(Action)) - add(query_627286, "Version", newJString(Version)) - result = call_627285.call(nil, query_627286, nil, formData_627287, nil) + formData_627289.add "InstanceId", InstanceId + add(query_627288, "Action", newJString(Action)) + add(query_627288, "Version", newJString(Version)) + result = call_627287.call(nil, query_627288, nil, formData_627289, nil) -var postTerminateInstances* = Call_PostTerminateInstances_627270( +var postTerminateInstances* = Call_PostTerminateInstances_627272( name: "postTerminateInstances", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=TerminateInstances", - validator: validate_PostTerminateInstances_627271, base: "/", - url: url_PostTerminateInstances_627272, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostTerminateInstances_627273, base: "/", + url: url_PostTerminateInstances_627274, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetTerminateInstances_627253 = ref object of OpenApiRestCall_610658 -proc url_GetTerminateInstances_627255(protocol: Scheme; host: string; base: string; + Call_GetTerminateInstances_627255 = ref object of OpenApiRestCall_610658 +proc url_GetTerminateInstances_627257(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -134709,7 +134736,7 @@ proc url_GetTerminateInstances_627255(protocol: Scheme; host: string; base: stri else: result.path = base & route -proc validate_GetTerminateInstances_627254(path: JsonNode; query: JsonNode; +proc validate_GetTerminateInstances_627256(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Shuts down the specified instances. This operation is idempotent; if you terminate an instance more than once, each call succeeds.

    If you specify multiple instances and the request fails (for example, because of a single incorrect instance ID), none of the instances are terminated.

    Terminated instances remain visible after termination (for approximately one hour).

    By default, Amazon EC2 deletes all EBS volumes that were attached when the instance launched. Volumes attached after instance launch continue running.

    You can stop, start, and terminate EBS-backed instances. You can only terminate instance store-backed instances. What happens to an instance differs if you stop it or terminate it. For example, when you stop an instance, the root device and any other devices attached to the instance persist. When you terminate an instance, any attached EBS volumes with the DeleteOnTermination block device mapping parameter set to true are automatically deleted. For more information about the differences between stopping and terminating instances, see Instance Lifecycle in the Amazon Elastic Compute Cloud User Guide.

    For more information about troubleshooting, see Troubleshooting Terminating Your Instance in the Amazon Elastic Compute Cloud User Guide.

    ## @@ -134725,26 +134752,26 @@ proc validate_GetTerminateInstances_627254(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_627256 = query.getOrDefault("DryRun") - valid_627256 = validateParameter(valid_627256, JBool, required = false, default = nil) - if valid_627256 != nil: - section.add "DryRun", valid_627256 + var valid_627258 = query.getOrDefault("DryRun") + valid_627258 = validateParameter(valid_627258, JBool, required = false, default = nil) + if valid_627258 != nil: + section.add "DryRun", valid_627258 assert query != nil, "query argument is necessary due to required `InstanceId` field" - var valid_627257 = query.getOrDefault("InstanceId") - valid_627257 = validateParameter(valid_627257, JArray, required = true, default = nil) - if valid_627257 != nil: - section.add "InstanceId", valid_627257 - var valid_627258 = query.getOrDefault("Action") - valid_627258 = validateParameter(valid_627258, JString, required = true, + var valid_627259 = query.getOrDefault("InstanceId") + valid_627259 = validateParameter(valid_627259, JArray, required = true, default = nil) + if valid_627259 != nil: + section.add "InstanceId", valid_627259 + var valid_627260 = query.getOrDefault("Action") + valid_627260 = validateParameter(valid_627260, JString, required = true, default = newJString("TerminateInstances")) - if valid_627258 != nil: - section.add "Action", valid_627258 - var valid_627259 = query.getOrDefault("Version") - valid_627259 = validateParameter(valid_627259, JString, required = true, + if valid_627260 != nil: + section.add "Action", valid_627260 + var valid_627261 = query.getOrDefault("Version") + valid_627261 = validateParameter(valid_627261, JString, required = true, default = newJString("2016-11-15")) - if valid_627259 != nil: - section.add "Version", valid_627259 + if valid_627261 != nil: + section.add "Version", valid_627261 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -134755,61 +134782,61 @@ proc validate_GetTerminateInstances_627254(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_627260 = header.getOrDefault("X-Amz-Signature") - valid_627260 = validateParameter(valid_627260, JString, required = false, - default = nil) - if valid_627260 != nil: - section.add "X-Amz-Signature", valid_627260 - var valid_627261 = header.getOrDefault("X-Amz-Content-Sha256") - valid_627261 = validateParameter(valid_627261, JString, required = false, - default = nil) - if valid_627261 != nil: - section.add "X-Amz-Content-Sha256", valid_627261 - var valid_627262 = header.getOrDefault("X-Amz-Date") + var valid_627262 = header.getOrDefault("X-Amz-Signature") valid_627262 = validateParameter(valid_627262, JString, required = false, default = nil) if valid_627262 != nil: - section.add "X-Amz-Date", valid_627262 - var valid_627263 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_627262 + var valid_627263 = header.getOrDefault("X-Amz-Content-Sha256") valid_627263 = validateParameter(valid_627263, JString, required = false, default = nil) if valid_627263 != nil: - section.add "X-Amz-Credential", valid_627263 - var valid_627264 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_627263 + var valid_627264 = header.getOrDefault("X-Amz-Date") valid_627264 = validateParameter(valid_627264, JString, required = false, default = nil) if valid_627264 != nil: - section.add "X-Amz-Security-Token", valid_627264 - var valid_627265 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_627264 + var valid_627265 = header.getOrDefault("X-Amz-Credential") valid_627265 = validateParameter(valid_627265, JString, required = false, default = nil) if valid_627265 != nil: - section.add "X-Amz-Algorithm", valid_627265 - var valid_627266 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_627265 + var valid_627266 = header.getOrDefault("X-Amz-Security-Token") valid_627266 = validateParameter(valid_627266, JString, required = false, default = nil) if valid_627266 != nil: - section.add "X-Amz-SignedHeaders", valid_627266 + section.add "X-Amz-Security-Token", valid_627266 + var valid_627267 = header.getOrDefault("X-Amz-Algorithm") + valid_627267 = validateParameter(valid_627267, JString, required = false, + default = nil) + if valid_627267 != nil: + section.add "X-Amz-Algorithm", valid_627267 + var valid_627268 = header.getOrDefault("X-Amz-SignedHeaders") + valid_627268 = validateParameter(valid_627268, JString, required = false, + default = nil) + if valid_627268 != nil: + section.add "X-Amz-SignedHeaders", valid_627268 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_627267: Call_GetTerminateInstances_627253; path: JsonNode; +proc call*(call_627269: Call_GetTerminateInstances_627255; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Shuts down the specified instances. This operation is idempotent; if you terminate an instance more than once, each call succeeds.

    If you specify multiple instances and the request fails (for example, because of a single incorrect instance ID), none of the instances are terminated.

    Terminated instances remain visible after termination (for approximately one hour).

    By default, Amazon EC2 deletes all EBS volumes that were attached when the instance launched. Volumes attached after instance launch continue running.

    You can stop, start, and terminate EBS-backed instances. You can only terminate instance store-backed instances. What happens to an instance differs if you stop it or terminate it. For example, when you stop an instance, the root device and any other devices attached to the instance persist. When you terminate an instance, any attached EBS volumes with the DeleteOnTermination block device mapping parameter set to true are automatically deleted. For more information about the differences between stopping and terminating instances, see Instance Lifecycle in the Amazon Elastic Compute Cloud User Guide.

    For more information about troubleshooting, see Troubleshooting Terminating Your Instance in the Amazon Elastic Compute Cloud User Guide.

    ## - let valid = call_627267.validator(path, query, header, formData, body) - let scheme = call_627267.pickScheme + let valid = call_627269.validator(path, query, header, formData, body) + let scheme = call_627269.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_627267.url(scheme.get, call_627267.host, call_627267.base, - call_627267.route, valid.getOrDefault("path"), + let url = call_627269.url(scheme.get, call_627269.host, call_627269.base, + call_627269.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_627267, url, valid) + result = atozHook(call_627269, url, valid) -proc call*(call_627268: Call_GetTerminateInstances_627253; InstanceId: JsonNode; +proc call*(call_627270: Call_GetTerminateInstances_627255; InstanceId: JsonNode; DryRun: bool = false; Action: string = "TerminateInstances"; Version: string = "2016-11-15"): Recallable = ## getTerminateInstances @@ -134820,22 +134847,22 @@ proc call*(call_627268: Call_GetTerminateInstances_627253; InstanceId: JsonNode; ## :

    The IDs of the instances.

    Constraints: Up to 1000 instance IDs. We recommend breaking up this request into smaller batches.

    ## Action: string (required) ## Version: string (required) - var query_627269 = newJObject() - add(query_627269, "DryRun", newJBool(DryRun)) + var query_627271 = newJObject() + add(query_627271, "DryRun", newJBool(DryRun)) if InstanceId != nil: - query_627269.add "InstanceId", InstanceId - add(query_627269, "Action", newJString(Action)) - add(query_627269, "Version", newJString(Version)) - result = call_627268.call(nil, query_627269, nil, nil, nil) + query_627271.add "InstanceId", InstanceId + add(query_627271, "Action", newJString(Action)) + add(query_627271, "Version", newJString(Version)) + result = call_627270.call(nil, query_627271, nil, nil, nil) -var getTerminateInstances* = Call_GetTerminateInstances_627253( +var getTerminateInstances* = Call_GetTerminateInstances_627255( name: "getTerminateInstances", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=TerminateInstances", - validator: validate_GetTerminateInstances_627254, base: "/", - url: url_GetTerminateInstances_627255, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetTerminateInstances_627256, base: "/", + url: url_GetTerminateInstances_627257, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostUnassignIpv6Addresses_627305 = ref object of OpenApiRestCall_610658 -proc url_PostUnassignIpv6Addresses_627307(protocol: Scheme; host: string; + Call_PostUnassignIpv6Addresses_627307 = ref object of OpenApiRestCall_610658 +proc url_PostUnassignIpv6Addresses_627309(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -134845,7 +134872,7 @@ proc url_PostUnassignIpv6Addresses_627307(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostUnassignIpv6Addresses_627306(path: JsonNode; query: JsonNode; +proc validate_PostUnassignIpv6Addresses_627308(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Unassigns one or more IPv6 addresses from a network interface. ## @@ -134857,16 +134884,16 @@ proc validate_PostUnassignIpv6Addresses_627306(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_627308 = query.getOrDefault("Action") - valid_627308 = validateParameter(valid_627308, JString, required = true, + var valid_627310 = query.getOrDefault("Action") + valid_627310 = validateParameter(valid_627310, JString, required = true, default = newJString("UnassignIpv6Addresses")) - if valid_627308 != nil: - section.add "Action", valid_627308 - var valid_627309 = query.getOrDefault("Version") - valid_627309 = validateParameter(valid_627309, JString, required = true, + if valid_627310 != nil: + section.add "Action", valid_627310 + var valid_627311 = query.getOrDefault("Version") + valid_627311 = validateParameter(valid_627311, JString, required = true, default = newJString("2016-11-15")) - if valid_627309 != nil: - section.add "Version", valid_627309 + if valid_627311 != nil: + section.add "Version", valid_627311 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -134877,41 +134904,41 @@ proc validate_PostUnassignIpv6Addresses_627306(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_627310 = header.getOrDefault("X-Amz-Signature") - valid_627310 = validateParameter(valid_627310, JString, required = false, - default = nil) - if valid_627310 != nil: - section.add "X-Amz-Signature", valid_627310 - var valid_627311 = header.getOrDefault("X-Amz-Content-Sha256") - valid_627311 = validateParameter(valid_627311, JString, required = false, - default = nil) - if valid_627311 != nil: - section.add "X-Amz-Content-Sha256", valid_627311 - var valid_627312 = header.getOrDefault("X-Amz-Date") + var valid_627312 = header.getOrDefault("X-Amz-Signature") valid_627312 = validateParameter(valid_627312, JString, required = false, default = nil) if valid_627312 != nil: - section.add "X-Amz-Date", valid_627312 - var valid_627313 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_627312 + var valid_627313 = header.getOrDefault("X-Amz-Content-Sha256") valid_627313 = validateParameter(valid_627313, JString, required = false, default = nil) if valid_627313 != nil: - section.add "X-Amz-Credential", valid_627313 - var valid_627314 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_627313 + var valid_627314 = header.getOrDefault("X-Amz-Date") valid_627314 = validateParameter(valid_627314, JString, required = false, default = nil) if valid_627314 != nil: - section.add "X-Amz-Security-Token", valid_627314 - var valid_627315 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_627314 + var valid_627315 = header.getOrDefault("X-Amz-Credential") valid_627315 = validateParameter(valid_627315, JString, required = false, default = nil) if valid_627315 != nil: - section.add "X-Amz-Algorithm", valid_627315 - var valid_627316 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_627315 + var valid_627316 = header.getOrDefault("X-Amz-Security-Token") valid_627316 = validateParameter(valid_627316, JString, required = false, default = nil) if valid_627316 != nil: - section.add "X-Amz-SignedHeaders", valid_627316 + section.add "X-Amz-Security-Token", valid_627316 + var valid_627317 = header.getOrDefault("X-Amz-Algorithm") + valid_627317 = validateParameter(valid_627317, JString, required = false, + default = nil) + if valid_627317 != nil: + section.add "X-Amz-Algorithm", valid_627317 + var valid_627318 = header.getOrDefault("X-Amz-SignedHeaders") + valid_627318 = validateParameter(valid_627318, JString, required = false, + default = nil) + if valid_627318 != nil: + section.add "X-Amz-SignedHeaders", valid_627318 result.add "header", section ## parameters in `formData` object: ## Ipv6Addresses: JArray (required) @@ -134921,33 +134948,33 @@ proc validate_PostUnassignIpv6Addresses_627306(path: JsonNode; query: JsonNode; section = newJObject() assert formData != nil, "formData argument is necessary due to required `Ipv6Addresses` field" - var valid_627317 = formData.getOrDefault("Ipv6Addresses") - valid_627317 = validateParameter(valid_627317, JArray, required = true, default = nil) - if valid_627317 != nil: - section.add "Ipv6Addresses", valid_627317 - var valid_627318 = formData.getOrDefault("NetworkInterfaceId") - valid_627318 = validateParameter(valid_627318, JString, required = true, + var valid_627319 = formData.getOrDefault("Ipv6Addresses") + valid_627319 = validateParameter(valid_627319, JArray, required = true, default = nil) + if valid_627319 != nil: + section.add "Ipv6Addresses", valid_627319 + var valid_627320 = formData.getOrDefault("NetworkInterfaceId") + valid_627320 = validateParameter(valid_627320, JString, required = true, default = nil) - if valid_627318 != nil: - section.add "NetworkInterfaceId", valid_627318 + if valid_627320 != nil: + section.add "NetworkInterfaceId", valid_627320 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_627319: Call_PostUnassignIpv6Addresses_627305; path: JsonNode; +proc call*(call_627321: Call_PostUnassignIpv6Addresses_627307; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Unassigns one or more IPv6 addresses from a network interface. ## - let valid = call_627319.validator(path, query, header, formData, body) - let scheme = call_627319.pickScheme + let valid = call_627321.validator(path, query, header, formData, body) + let scheme = call_627321.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_627319.url(scheme.get, call_627319.host, call_627319.base, - call_627319.route, valid.getOrDefault("path"), + let url = call_627321.url(scheme.get, call_627321.host, call_627321.base, + call_627321.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_627319, url, valid) + result = atozHook(call_627321, url, valid) -proc call*(call_627320: Call_PostUnassignIpv6Addresses_627305; +proc call*(call_627322: Call_PostUnassignIpv6Addresses_627307; Ipv6Addresses: JsonNode; NetworkInterfaceId: string; Action: string = "UnassignIpv6Addresses"; Version: string = "2016-11-15"): Recallable = ## postUnassignIpv6Addresses @@ -134958,24 +134985,24 @@ proc call*(call_627320: Call_PostUnassignIpv6Addresses_627305; ## : The ID of the network interface. ## Action: string (required) ## Version: string (required) - var query_627321 = newJObject() - var formData_627322 = newJObject() + var query_627323 = newJObject() + var formData_627324 = newJObject() if Ipv6Addresses != nil: - formData_627322.add "Ipv6Addresses", Ipv6Addresses - add(formData_627322, "NetworkInterfaceId", newJString(NetworkInterfaceId)) - add(query_627321, "Action", newJString(Action)) - add(query_627321, "Version", newJString(Version)) - result = call_627320.call(nil, query_627321, nil, formData_627322, nil) + formData_627324.add "Ipv6Addresses", Ipv6Addresses + add(formData_627324, "NetworkInterfaceId", newJString(NetworkInterfaceId)) + add(query_627323, "Action", newJString(Action)) + add(query_627323, "Version", newJString(Version)) + result = call_627322.call(nil, query_627323, nil, formData_627324, nil) -var postUnassignIpv6Addresses* = Call_PostUnassignIpv6Addresses_627305( +var postUnassignIpv6Addresses* = Call_PostUnassignIpv6Addresses_627307( name: "postUnassignIpv6Addresses", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=UnassignIpv6Addresses", - validator: validate_PostUnassignIpv6Addresses_627306, base: "/", - url: url_PostUnassignIpv6Addresses_627307, + validator: validate_PostUnassignIpv6Addresses_627308, base: "/", + url: url_PostUnassignIpv6Addresses_627309, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetUnassignIpv6Addresses_627288 = ref object of OpenApiRestCall_610658 -proc url_GetUnassignIpv6Addresses_627290(protocol: Scheme; host: string; + Call_GetUnassignIpv6Addresses_627290 = ref object of OpenApiRestCall_610658 +proc url_GetUnassignIpv6Addresses_627292(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -134986,7 +135013,7 @@ proc url_GetUnassignIpv6Addresses_627290(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetUnassignIpv6Addresses_627289(path: JsonNode; query: JsonNode; +proc validate_GetUnassignIpv6Addresses_627291(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Unassigns one or more IPv6 addresses from a network interface. ## @@ -135003,25 +135030,25 @@ proc validate_GetUnassignIpv6Addresses_627289(path: JsonNode; query: JsonNode; ## Version: JString (required) section = newJObject() assert query != nil, "query argument is necessary due to required `NetworkInterfaceId` field" - var valid_627291 = query.getOrDefault("NetworkInterfaceId") - valid_627291 = validateParameter(valid_627291, JString, required = true, - default = nil) - if valid_627291 != nil: - section.add "NetworkInterfaceId", valid_627291 - var valid_627292 = query.getOrDefault("Ipv6Addresses") - valid_627292 = validateParameter(valid_627292, JArray, required = true, default = nil) - if valid_627292 != nil: - section.add "Ipv6Addresses", valid_627292 - var valid_627293 = query.getOrDefault("Action") + var valid_627293 = query.getOrDefault("NetworkInterfaceId") valid_627293 = validateParameter(valid_627293, JString, required = true, - default = newJString("UnassignIpv6Addresses")) + default = nil) if valid_627293 != nil: - section.add "Action", valid_627293 - var valid_627294 = query.getOrDefault("Version") - valid_627294 = validateParameter(valid_627294, JString, required = true, - default = newJString("2016-11-15")) + section.add "NetworkInterfaceId", valid_627293 + var valid_627294 = query.getOrDefault("Ipv6Addresses") + valid_627294 = validateParameter(valid_627294, JArray, required = true, default = nil) if valid_627294 != nil: - section.add "Version", valid_627294 + section.add "Ipv6Addresses", valid_627294 + var valid_627295 = query.getOrDefault("Action") + valid_627295 = validateParameter(valid_627295, JString, required = true, + default = newJString("UnassignIpv6Addresses")) + if valid_627295 != nil: + section.add "Action", valid_627295 + var valid_627296 = query.getOrDefault("Version") + valid_627296 = validateParameter(valid_627296, JString, required = true, + default = newJString("2016-11-15")) + if valid_627296 != nil: + section.add "Version", valid_627296 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -135032,61 +135059,61 @@ proc validate_GetUnassignIpv6Addresses_627289(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_627295 = header.getOrDefault("X-Amz-Signature") - valid_627295 = validateParameter(valid_627295, JString, required = false, - default = nil) - if valid_627295 != nil: - section.add "X-Amz-Signature", valid_627295 - var valid_627296 = header.getOrDefault("X-Amz-Content-Sha256") - valid_627296 = validateParameter(valid_627296, JString, required = false, - default = nil) - if valid_627296 != nil: - section.add "X-Amz-Content-Sha256", valid_627296 - var valid_627297 = header.getOrDefault("X-Amz-Date") + var valid_627297 = header.getOrDefault("X-Amz-Signature") valid_627297 = validateParameter(valid_627297, JString, required = false, default = nil) if valid_627297 != nil: - section.add "X-Amz-Date", valid_627297 - var valid_627298 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_627297 + var valid_627298 = header.getOrDefault("X-Amz-Content-Sha256") valid_627298 = validateParameter(valid_627298, JString, required = false, default = nil) if valid_627298 != nil: - section.add "X-Amz-Credential", valid_627298 - var valid_627299 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_627298 + var valid_627299 = header.getOrDefault("X-Amz-Date") valid_627299 = validateParameter(valid_627299, JString, required = false, default = nil) if valid_627299 != nil: - section.add "X-Amz-Security-Token", valid_627299 - var valid_627300 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_627299 + var valid_627300 = header.getOrDefault("X-Amz-Credential") valid_627300 = validateParameter(valid_627300, JString, required = false, default = nil) if valid_627300 != nil: - section.add "X-Amz-Algorithm", valid_627300 - var valid_627301 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_627300 + var valid_627301 = header.getOrDefault("X-Amz-Security-Token") valid_627301 = validateParameter(valid_627301, JString, required = false, default = nil) if valid_627301 != nil: - section.add "X-Amz-SignedHeaders", valid_627301 + section.add "X-Amz-Security-Token", valid_627301 + var valid_627302 = header.getOrDefault("X-Amz-Algorithm") + valid_627302 = validateParameter(valid_627302, JString, required = false, + default = nil) + if valid_627302 != nil: + section.add "X-Amz-Algorithm", valid_627302 + var valid_627303 = header.getOrDefault("X-Amz-SignedHeaders") + valid_627303 = validateParameter(valid_627303, JString, required = false, + default = nil) + if valid_627303 != nil: + section.add "X-Amz-SignedHeaders", valid_627303 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_627302: Call_GetUnassignIpv6Addresses_627288; path: JsonNode; +proc call*(call_627304: Call_GetUnassignIpv6Addresses_627290; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Unassigns one or more IPv6 addresses from a network interface. ## - let valid = call_627302.validator(path, query, header, formData, body) - let scheme = call_627302.pickScheme + let valid = call_627304.validator(path, query, header, formData, body) + let scheme = call_627304.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_627302.url(scheme.get, call_627302.host, call_627302.base, - call_627302.route, valid.getOrDefault("path"), + let url = call_627304.url(scheme.get, call_627304.host, call_627304.base, + call_627304.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_627302, url, valid) + result = atozHook(call_627304, url, valid) -proc call*(call_627303: Call_GetUnassignIpv6Addresses_627288; +proc call*(call_627305: Call_GetUnassignIpv6Addresses_627290; NetworkInterfaceId: string; Ipv6Addresses: JsonNode; Action: string = "UnassignIpv6Addresses"; Version: string = "2016-11-15"): Recallable = ## getUnassignIpv6Addresses @@ -135097,22 +135124,22 @@ proc call*(call_627303: Call_GetUnassignIpv6Addresses_627288; ## : The IPv6 addresses to unassign from the network interface. ## Action: string (required) ## Version: string (required) - var query_627304 = newJObject() - add(query_627304, "NetworkInterfaceId", newJString(NetworkInterfaceId)) + var query_627306 = newJObject() + add(query_627306, "NetworkInterfaceId", newJString(NetworkInterfaceId)) if Ipv6Addresses != nil: - query_627304.add "Ipv6Addresses", Ipv6Addresses - add(query_627304, "Action", newJString(Action)) - add(query_627304, "Version", newJString(Version)) - result = call_627303.call(nil, query_627304, nil, nil, nil) + query_627306.add "Ipv6Addresses", Ipv6Addresses + add(query_627306, "Action", newJString(Action)) + add(query_627306, "Version", newJString(Version)) + result = call_627305.call(nil, query_627306, nil, nil, nil) -var getUnassignIpv6Addresses* = Call_GetUnassignIpv6Addresses_627288( +var getUnassignIpv6Addresses* = Call_GetUnassignIpv6Addresses_627290( name: "getUnassignIpv6Addresses", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=UnassignIpv6Addresses", - validator: validate_GetUnassignIpv6Addresses_627289, base: "/", - url: url_GetUnassignIpv6Addresses_627290, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetUnassignIpv6Addresses_627291, base: "/", + url: url_GetUnassignIpv6Addresses_627292, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostUnassignPrivateIpAddresses_627340 = ref object of OpenApiRestCall_610658 -proc url_PostUnassignPrivateIpAddresses_627342(protocol: Scheme; host: string; + Call_PostUnassignPrivateIpAddresses_627342 = ref object of OpenApiRestCall_610658 +proc url_PostUnassignPrivateIpAddresses_627344(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -135122,7 +135149,7 @@ proc url_PostUnassignPrivateIpAddresses_627342(protocol: Scheme; host: string; else: result.path = base & route -proc validate_PostUnassignPrivateIpAddresses_627341(path: JsonNode; +proc validate_PostUnassignPrivateIpAddresses_627343(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Unassigns one or more secondary private IP addresses from a network interface. ## @@ -135134,16 +135161,16 @@ proc validate_PostUnassignPrivateIpAddresses_627341(path: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_627343 = query.getOrDefault("Action") - valid_627343 = validateParameter(valid_627343, JString, required = true, default = newJString( + var valid_627345 = query.getOrDefault("Action") + valid_627345 = validateParameter(valid_627345, JString, required = true, default = newJString( "UnassignPrivateIpAddresses")) - if valid_627343 != nil: - section.add "Action", valid_627343 - var valid_627344 = query.getOrDefault("Version") - valid_627344 = validateParameter(valid_627344, JString, required = true, + if valid_627345 != nil: + section.add "Action", valid_627345 + var valid_627346 = query.getOrDefault("Version") + valid_627346 = validateParameter(valid_627346, JString, required = true, default = newJString("2016-11-15")) - if valid_627344 != nil: - section.add "Version", valid_627344 + if valid_627346 != nil: + section.add "Version", valid_627346 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -135154,41 +135181,41 @@ proc validate_PostUnassignPrivateIpAddresses_627341(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_627345 = header.getOrDefault("X-Amz-Signature") - valid_627345 = validateParameter(valid_627345, JString, required = false, - default = nil) - if valid_627345 != nil: - section.add "X-Amz-Signature", valid_627345 - var valid_627346 = header.getOrDefault("X-Amz-Content-Sha256") - valid_627346 = validateParameter(valid_627346, JString, required = false, - default = nil) - if valid_627346 != nil: - section.add "X-Amz-Content-Sha256", valid_627346 - var valid_627347 = header.getOrDefault("X-Amz-Date") + var valid_627347 = header.getOrDefault("X-Amz-Signature") valid_627347 = validateParameter(valid_627347, JString, required = false, default = nil) if valid_627347 != nil: - section.add "X-Amz-Date", valid_627347 - var valid_627348 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_627347 + var valid_627348 = header.getOrDefault("X-Amz-Content-Sha256") valid_627348 = validateParameter(valid_627348, JString, required = false, default = nil) if valid_627348 != nil: - section.add "X-Amz-Credential", valid_627348 - var valid_627349 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_627348 + var valid_627349 = header.getOrDefault("X-Amz-Date") valid_627349 = validateParameter(valid_627349, JString, required = false, default = nil) if valid_627349 != nil: - section.add "X-Amz-Security-Token", valid_627349 - var valid_627350 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_627349 + var valid_627350 = header.getOrDefault("X-Amz-Credential") valid_627350 = validateParameter(valid_627350, JString, required = false, default = nil) if valid_627350 != nil: - section.add "X-Amz-Algorithm", valid_627350 - var valid_627351 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_627350 + var valid_627351 = header.getOrDefault("X-Amz-Security-Token") valid_627351 = validateParameter(valid_627351, JString, required = false, default = nil) if valid_627351 != nil: - section.add "X-Amz-SignedHeaders", valid_627351 + section.add "X-Amz-Security-Token", valid_627351 + var valid_627352 = header.getOrDefault("X-Amz-Algorithm") + valid_627352 = validateParameter(valid_627352, JString, required = false, + default = nil) + if valid_627352 != nil: + section.add "X-Amz-Algorithm", valid_627352 + var valid_627353 = header.getOrDefault("X-Amz-SignedHeaders") + valid_627353 = validateParameter(valid_627353, JString, required = false, + default = nil) + if valid_627353 != nil: + section.add "X-Amz-SignedHeaders", valid_627353 result.add "header", section ## parameters in `formData` object: ## NetworkInterfaceId: JString (required) @@ -135197,33 +135224,33 @@ proc validate_PostUnassignPrivateIpAddresses_627341(path: JsonNode; ## : The secondary private IP addresses to unassign from the network interface. You can specify this option multiple times to unassign more than one IP address. section = newJObject() assert formData != nil, "formData argument is necessary due to required `NetworkInterfaceId` field" - var valid_627352 = formData.getOrDefault("NetworkInterfaceId") - valid_627352 = validateParameter(valid_627352, JString, required = true, + var valid_627354 = formData.getOrDefault("NetworkInterfaceId") + valid_627354 = validateParameter(valid_627354, JString, required = true, default = nil) - if valid_627352 != nil: - section.add "NetworkInterfaceId", valid_627352 - var valid_627353 = formData.getOrDefault("PrivateIpAddress") - valid_627353 = validateParameter(valid_627353, JArray, required = true, default = nil) - if valid_627353 != nil: - section.add "PrivateIpAddress", valid_627353 + if valid_627354 != nil: + section.add "NetworkInterfaceId", valid_627354 + var valid_627355 = formData.getOrDefault("PrivateIpAddress") + valid_627355 = validateParameter(valid_627355, JArray, required = true, default = nil) + if valid_627355 != nil: + section.add "PrivateIpAddress", valid_627355 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_627354: Call_PostUnassignPrivateIpAddresses_627340; path: JsonNode; +proc call*(call_627356: Call_PostUnassignPrivateIpAddresses_627342; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Unassigns one or more secondary private IP addresses from a network interface. ## - let valid = call_627354.validator(path, query, header, formData, body) - let scheme = call_627354.pickScheme + let valid = call_627356.validator(path, query, header, formData, body) + let scheme = call_627356.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_627354.url(scheme.get, call_627354.host, call_627354.base, - call_627354.route, valid.getOrDefault("path"), + let url = call_627356.url(scheme.get, call_627356.host, call_627356.base, + call_627356.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_627354, url, valid) + result = atozHook(call_627356, url, valid) -proc call*(call_627355: Call_PostUnassignPrivateIpAddresses_627340; +proc call*(call_627357: Call_PostUnassignPrivateIpAddresses_627342; NetworkInterfaceId: string; PrivateIpAddress: JsonNode; Action: string = "UnassignPrivateIpAddresses"; Version: string = "2016-11-15"): Recallable = @@ -135235,24 +135262,24 @@ proc call*(call_627355: Call_PostUnassignPrivateIpAddresses_627340; ## : The secondary private IP addresses to unassign from the network interface. You can specify this option multiple times to unassign more than one IP address. ## Action: string (required) ## Version: string (required) - var query_627356 = newJObject() - var formData_627357 = newJObject() - add(formData_627357, "NetworkInterfaceId", newJString(NetworkInterfaceId)) + var query_627358 = newJObject() + var formData_627359 = newJObject() + add(formData_627359, "NetworkInterfaceId", newJString(NetworkInterfaceId)) if PrivateIpAddress != nil: - formData_627357.add "PrivateIpAddress", PrivateIpAddress - add(query_627356, "Action", newJString(Action)) - add(query_627356, "Version", newJString(Version)) - result = call_627355.call(nil, query_627356, nil, formData_627357, nil) + formData_627359.add "PrivateIpAddress", PrivateIpAddress + add(query_627358, "Action", newJString(Action)) + add(query_627358, "Version", newJString(Version)) + result = call_627357.call(nil, query_627358, nil, formData_627359, nil) -var postUnassignPrivateIpAddresses* = Call_PostUnassignPrivateIpAddresses_627340( +var postUnassignPrivateIpAddresses* = Call_PostUnassignPrivateIpAddresses_627342( name: "postUnassignPrivateIpAddresses", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=UnassignPrivateIpAddresses", - validator: validate_PostUnassignPrivateIpAddresses_627341, base: "/", - url: url_PostUnassignPrivateIpAddresses_627342, + validator: validate_PostUnassignPrivateIpAddresses_627343, base: "/", + url: url_PostUnassignPrivateIpAddresses_627344, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetUnassignPrivateIpAddresses_627323 = ref object of OpenApiRestCall_610658 -proc url_GetUnassignPrivateIpAddresses_627325(protocol: Scheme; host: string; + Call_GetUnassignPrivateIpAddresses_627325 = ref object of OpenApiRestCall_610658 +proc url_GetUnassignPrivateIpAddresses_627327(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -135262,7 +135289,7 @@ proc url_GetUnassignPrivateIpAddresses_627325(protocol: Scheme; host: string; else: result.path = base & route -proc validate_GetUnassignPrivateIpAddresses_627324(path: JsonNode; query: JsonNode; +proc validate_GetUnassignPrivateIpAddresses_627326(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Unassigns one or more secondary private IP addresses from a network interface. ## @@ -135279,25 +135306,25 @@ proc validate_GetUnassignPrivateIpAddresses_627324(path: JsonNode; query: JsonNo ## Version: JString (required) section = newJObject() assert query != nil, "query argument is necessary due to required `NetworkInterfaceId` field" - var valid_627326 = query.getOrDefault("NetworkInterfaceId") - valid_627326 = validateParameter(valid_627326, JString, required = true, - default = nil) - if valid_627326 != nil: - section.add "NetworkInterfaceId", valid_627326 - var valid_627327 = query.getOrDefault("PrivateIpAddress") - valid_627327 = validateParameter(valid_627327, JArray, required = true, default = nil) - if valid_627327 != nil: - section.add "PrivateIpAddress", valid_627327 - var valid_627328 = query.getOrDefault("Action") - valid_627328 = validateParameter(valid_627328, JString, required = true, default = newJString( - "UnassignPrivateIpAddresses")) + var valid_627328 = query.getOrDefault("NetworkInterfaceId") + valid_627328 = validateParameter(valid_627328, JString, required = true, + default = nil) if valid_627328 != nil: - section.add "Action", valid_627328 - var valid_627329 = query.getOrDefault("Version") - valid_627329 = validateParameter(valid_627329, JString, required = true, - default = newJString("2016-11-15")) + section.add "NetworkInterfaceId", valid_627328 + var valid_627329 = query.getOrDefault("PrivateIpAddress") + valid_627329 = validateParameter(valid_627329, JArray, required = true, default = nil) if valid_627329 != nil: - section.add "Version", valid_627329 + section.add "PrivateIpAddress", valid_627329 + var valid_627330 = query.getOrDefault("Action") + valid_627330 = validateParameter(valid_627330, JString, required = true, default = newJString( + "UnassignPrivateIpAddresses")) + if valid_627330 != nil: + section.add "Action", valid_627330 + var valid_627331 = query.getOrDefault("Version") + valid_627331 = validateParameter(valid_627331, JString, required = true, + default = newJString("2016-11-15")) + if valid_627331 != nil: + section.add "Version", valid_627331 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -135308,61 +135335,61 @@ proc validate_GetUnassignPrivateIpAddresses_627324(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_627330 = header.getOrDefault("X-Amz-Signature") - valid_627330 = validateParameter(valid_627330, JString, required = false, - default = nil) - if valid_627330 != nil: - section.add "X-Amz-Signature", valid_627330 - var valid_627331 = header.getOrDefault("X-Amz-Content-Sha256") - valid_627331 = validateParameter(valid_627331, JString, required = false, - default = nil) - if valid_627331 != nil: - section.add "X-Amz-Content-Sha256", valid_627331 - var valid_627332 = header.getOrDefault("X-Amz-Date") + var valid_627332 = header.getOrDefault("X-Amz-Signature") valid_627332 = validateParameter(valid_627332, JString, required = false, default = nil) if valid_627332 != nil: - section.add "X-Amz-Date", valid_627332 - var valid_627333 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_627332 + var valid_627333 = header.getOrDefault("X-Amz-Content-Sha256") valid_627333 = validateParameter(valid_627333, JString, required = false, default = nil) if valid_627333 != nil: - section.add "X-Amz-Credential", valid_627333 - var valid_627334 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_627333 + var valid_627334 = header.getOrDefault("X-Amz-Date") valid_627334 = validateParameter(valid_627334, JString, required = false, default = nil) if valid_627334 != nil: - section.add "X-Amz-Security-Token", valid_627334 - var valid_627335 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_627334 + var valid_627335 = header.getOrDefault("X-Amz-Credential") valid_627335 = validateParameter(valid_627335, JString, required = false, default = nil) if valid_627335 != nil: - section.add "X-Amz-Algorithm", valid_627335 - var valid_627336 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_627335 + var valid_627336 = header.getOrDefault("X-Amz-Security-Token") valid_627336 = validateParameter(valid_627336, JString, required = false, default = nil) if valid_627336 != nil: - section.add "X-Amz-SignedHeaders", valid_627336 + section.add "X-Amz-Security-Token", valid_627336 + var valid_627337 = header.getOrDefault("X-Amz-Algorithm") + valid_627337 = validateParameter(valid_627337, JString, required = false, + default = nil) + if valid_627337 != nil: + section.add "X-Amz-Algorithm", valid_627337 + var valid_627338 = header.getOrDefault("X-Amz-SignedHeaders") + valid_627338 = validateParameter(valid_627338, JString, required = false, + default = nil) + if valid_627338 != nil: + section.add "X-Amz-SignedHeaders", valid_627338 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_627337: Call_GetUnassignPrivateIpAddresses_627323; path: JsonNode; +proc call*(call_627339: Call_GetUnassignPrivateIpAddresses_627325; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Unassigns one or more secondary private IP addresses from a network interface. ## - let valid = call_627337.validator(path, query, header, formData, body) - let scheme = call_627337.pickScheme + let valid = call_627339.validator(path, query, header, formData, body) + let scheme = call_627339.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_627337.url(scheme.get, call_627337.host, call_627337.base, - call_627337.route, valid.getOrDefault("path"), + let url = call_627339.url(scheme.get, call_627339.host, call_627339.base, + call_627339.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_627337, url, valid) + result = atozHook(call_627339, url, valid) -proc call*(call_627338: Call_GetUnassignPrivateIpAddresses_627323; +proc call*(call_627340: Call_GetUnassignPrivateIpAddresses_627325; NetworkInterfaceId: string; PrivateIpAddress: JsonNode; Action: string = "UnassignPrivateIpAddresses"; Version: string = "2016-11-15"): Recallable = @@ -135374,23 +135401,23 @@ proc call*(call_627338: Call_GetUnassignPrivateIpAddresses_627323; ## : The secondary private IP addresses to unassign from the network interface. You can specify this option multiple times to unassign more than one IP address. ## Action: string (required) ## Version: string (required) - var query_627339 = newJObject() - add(query_627339, "NetworkInterfaceId", newJString(NetworkInterfaceId)) + var query_627341 = newJObject() + add(query_627341, "NetworkInterfaceId", newJString(NetworkInterfaceId)) if PrivateIpAddress != nil: - query_627339.add "PrivateIpAddress", PrivateIpAddress - add(query_627339, "Action", newJString(Action)) - add(query_627339, "Version", newJString(Version)) - result = call_627338.call(nil, query_627339, nil, nil, nil) + query_627341.add "PrivateIpAddress", PrivateIpAddress + add(query_627341, "Action", newJString(Action)) + add(query_627341, "Version", newJString(Version)) + result = call_627340.call(nil, query_627341, nil, nil, nil) -var getUnassignPrivateIpAddresses* = Call_GetUnassignPrivateIpAddresses_627323( +var getUnassignPrivateIpAddresses* = Call_GetUnassignPrivateIpAddresses_627325( name: "getUnassignPrivateIpAddresses", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=UnassignPrivateIpAddresses", - validator: validate_GetUnassignPrivateIpAddresses_627324, base: "/", - url: url_GetUnassignPrivateIpAddresses_627325, + validator: validate_GetUnassignPrivateIpAddresses_627326, base: "/", + url: url_GetUnassignPrivateIpAddresses_627327, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostUnmonitorInstances_627375 = ref object of OpenApiRestCall_610658 -proc url_PostUnmonitorInstances_627377(protocol: Scheme; host: string; base: string; + Call_PostUnmonitorInstances_627377 = ref object of OpenApiRestCall_610658 +proc url_PostUnmonitorInstances_627379(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -135400,7 +135427,7 @@ proc url_PostUnmonitorInstances_627377(protocol: Scheme; host: string; base: str else: result.path = base & route -proc validate_PostUnmonitorInstances_627376(path: JsonNode; query: JsonNode; +proc validate_PostUnmonitorInstances_627378(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Disables detailed monitoring for a running instance. For more information, see Monitoring Your Instances and Volumes in the Amazon Elastic Compute Cloud User Guide. ## @@ -135412,16 +135439,16 @@ proc validate_PostUnmonitorInstances_627376(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_627378 = query.getOrDefault("Action") - valid_627378 = validateParameter(valid_627378, JString, required = true, + var valid_627380 = query.getOrDefault("Action") + valid_627380 = validateParameter(valid_627380, JString, required = true, default = newJString("UnmonitorInstances")) - if valid_627378 != nil: - section.add "Action", valid_627378 - var valid_627379 = query.getOrDefault("Version") - valid_627379 = validateParameter(valid_627379, JString, required = true, + if valid_627380 != nil: + section.add "Action", valid_627380 + var valid_627381 = query.getOrDefault("Version") + valid_627381 = validateParameter(valid_627381, JString, required = true, default = newJString("2016-11-15")) - if valid_627379 != nil: - section.add "Version", valid_627379 + if valid_627381 != nil: + section.add "Version", valid_627381 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -135432,41 +135459,41 @@ proc validate_PostUnmonitorInstances_627376(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_627380 = header.getOrDefault("X-Amz-Signature") - valid_627380 = validateParameter(valid_627380, JString, required = false, - default = nil) - if valid_627380 != nil: - section.add "X-Amz-Signature", valid_627380 - var valid_627381 = header.getOrDefault("X-Amz-Content-Sha256") - valid_627381 = validateParameter(valid_627381, JString, required = false, - default = nil) - if valid_627381 != nil: - section.add "X-Amz-Content-Sha256", valid_627381 - var valid_627382 = header.getOrDefault("X-Amz-Date") + var valid_627382 = header.getOrDefault("X-Amz-Signature") valid_627382 = validateParameter(valid_627382, JString, required = false, default = nil) if valid_627382 != nil: - section.add "X-Amz-Date", valid_627382 - var valid_627383 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_627382 + var valid_627383 = header.getOrDefault("X-Amz-Content-Sha256") valid_627383 = validateParameter(valid_627383, JString, required = false, default = nil) if valid_627383 != nil: - section.add "X-Amz-Credential", valid_627383 - var valid_627384 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_627383 + var valid_627384 = header.getOrDefault("X-Amz-Date") valid_627384 = validateParameter(valid_627384, JString, required = false, default = nil) if valid_627384 != nil: - section.add "X-Amz-Security-Token", valid_627384 - var valid_627385 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_627384 + var valid_627385 = header.getOrDefault("X-Amz-Credential") valid_627385 = validateParameter(valid_627385, JString, required = false, default = nil) if valid_627385 != nil: - section.add "X-Amz-Algorithm", valid_627385 - var valid_627386 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_627385 + var valid_627386 = header.getOrDefault("X-Amz-Security-Token") valid_627386 = validateParameter(valid_627386, JString, required = false, default = nil) if valid_627386 != nil: - section.add "X-Amz-SignedHeaders", valid_627386 + section.add "X-Amz-Security-Token", valid_627386 + var valid_627387 = header.getOrDefault("X-Amz-Algorithm") + valid_627387 = validateParameter(valid_627387, JString, required = false, + default = nil) + if valid_627387 != nil: + section.add "X-Amz-Algorithm", valid_627387 + var valid_627388 = header.getOrDefault("X-Amz-SignedHeaders") + valid_627388 = validateParameter(valid_627388, JString, required = false, + default = nil) + if valid_627388 != nil: + section.add "X-Amz-SignedHeaders", valid_627388 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -135474,34 +135501,34 @@ proc validate_PostUnmonitorInstances_627376(path: JsonNode; query: JsonNode; ## InstanceId: JArray (required) ## : The IDs of the instances. section = newJObject() - var valid_627387 = formData.getOrDefault("DryRun") - valid_627387 = validateParameter(valid_627387, JBool, required = false, default = nil) - if valid_627387 != nil: - section.add "DryRun", valid_627387 + var valid_627389 = formData.getOrDefault("DryRun") + valid_627389 = validateParameter(valid_627389, JBool, required = false, default = nil) + if valid_627389 != nil: + section.add "DryRun", valid_627389 assert formData != nil, "formData argument is necessary due to required `InstanceId` field" - var valid_627388 = formData.getOrDefault("InstanceId") - valid_627388 = validateParameter(valid_627388, JArray, required = true, default = nil) - if valid_627388 != nil: - section.add "InstanceId", valid_627388 + var valid_627390 = formData.getOrDefault("InstanceId") + valid_627390 = validateParameter(valid_627390, JArray, required = true, default = nil) + if valid_627390 != nil: + section.add "InstanceId", valid_627390 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_627389: Call_PostUnmonitorInstances_627375; path: JsonNode; +proc call*(call_627391: Call_PostUnmonitorInstances_627377; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Disables detailed monitoring for a running instance. For more information, see Monitoring Your Instances and Volumes in the Amazon Elastic Compute Cloud User Guide. ## - let valid = call_627389.validator(path, query, header, formData, body) - let scheme = call_627389.pickScheme + let valid = call_627391.validator(path, query, header, formData, body) + let scheme = call_627391.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_627389.url(scheme.get, call_627389.host, call_627389.base, - call_627389.route, valid.getOrDefault("path"), + let url = call_627391.url(scheme.get, call_627391.host, call_627391.base, + call_627391.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_627389, url, valid) + result = atozHook(call_627391, url, valid) -proc call*(call_627390: Call_PostUnmonitorInstances_627375; InstanceId: JsonNode; +proc call*(call_627392: Call_PostUnmonitorInstances_627377; InstanceId: JsonNode; DryRun: bool = false; Action: string = "UnmonitorInstances"; Version: string = "2016-11-15"): Recallable = ## postUnmonitorInstances @@ -135512,23 +135539,23 @@ proc call*(call_627390: Call_PostUnmonitorInstances_627375; InstanceId: JsonNode ## : The IDs of the instances. ## Action: string (required) ## Version: string (required) - var query_627391 = newJObject() - var formData_627392 = newJObject() - add(formData_627392, "DryRun", newJBool(DryRun)) + var query_627393 = newJObject() + var formData_627394 = newJObject() + add(formData_627394, "DryRun", newJBool(DryRun)) if InstanceId != nil: - formData_627392.add "InstanceId", InstanceId - add(query_627391, "Action", newJString(Action)) - add(query_627391, "Version", newJString(Version)) - result = call_627390.call(nil, query_627391, nil, formData_627392, nil) + formData_627394.add "InstanceId", InstanceId + add(query_627393, "Action", newJString(Action)) + add(query_627393, "Version", newJString(Version)) + result = call_627392.call(nil, query_627393, nil, formData_627394, nil) -var postUnmonitorInstances* = Call_PostUnmonitorInstances_627375( +var postUnmonitorInstances* = Call_PostUnmonitorInstances_627377( name: "postUnmonitorInstances", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=UnmonitorInstances", - validator: validate_PostUnmonitorInstances_627376, base: "/", - url: url_PostUnmonitorInstances_627377, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostUnmonitorInstances_627378, base: "/", + url: url_PostUnmonitorInstances_627379, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetUnmonitorInstances_627358 = ref object of OpenApiRestCall_610658 -proc url_GetUnmonitorInstances_627360(protocol: Scheme; host: string; base: string; + Call_GetUnmonitorInstances_627360 = ref object of OpenApiRestCall_610658 +proc url_GetUnmonitorInstances_627362(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -135538,7 +135565,7 @@ proc url_GetUnmonitorInstances_627360(protocol: Scheme; host: string; base: stri else: result.path = base & route -proc validate_GetUnmonitorInstances_627359(path: JsonNode; query: JsonNode; +proc validate_GetUnmonitorInstances_627361(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Disables detailed monitoring for a running instance. For more information, see Monitoring Your Instances and Volumes in the Amazon Elastic Compute Cloud User Guide. ## @@ -135554,26 +135581,26 @@ proc validate_GetUnmonitorInstances_627359(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_627361 = query.getOrDefault("DryRun") - valid_627361 = validateParameter(valid_627361, JBool, required = false, default = nil) - if valid_627361 != nil: - section.add "DryRun", valid_627361 + var valid_627363 = query.getOrDefault("DryRun") + valid_627363 = validateParameter(valid_627363, JBool, required = false, default = nil) + if valid_627363 != nil: + section.add "DryRun", valid_627363 assert query != nil, "query argument is necessary due to required `InstanceId` field" - var valid_627362 = query.getOrDefault("InstanceId") - valid_627362 = validateParameter(valid_627362, JArray, required = true, default = nil) - if valid_627362 != nil: - section.add "InstanceId", valid_627362 - var valid_627363 = query.getOrDefault("Action") - valid_627363 = validateParameter(valid_627363, JString, required = true, + var valid_627364 = query.getOrDefault("InstanceId") + valid_627364 = validateParameter(valid_627364, JArray, required = true, default = nil) + if valid_627364 != nil: + section.add "InstanceId", valid_627364 + var valid_627365 = query.getOrDefault("Action") + valid_627365 = validateParameter(valid_627365, JString, required = true, default = newJString("UnmonitorInstances")) - if valid_627363 != nil: - section.add "Action", valid_627363 - var valid_627364 = query.getOrDefault("Version") - valid_627364 = validateParameter(valid_627364, JString, required = true, + if valid_627365 != nil: + section.add "Action", valid_627365 + var valid_627366 = query.getOrDefault("Version") + valid_627366 = validateParameter(valid_627366, JString, required = true, default = newJString("2016-11-15")) - if valid_627364 != nil: - section.add "Version", valid_627364 + if valid_627366 != nil: + section.add "Version", valid_627366 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -135584,61 +135611,61 @@ proc validate_GetUnmonitorInstances_627359(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_627365 = header.getOrDefault("X-Amz-Signature") - valid_627365 = validateParameter(valid_627365, JString, required = false, - default = nil) - if valid_627365 != nil: - section.add "X-Amz-Signature", valid_627365 - var valid_627366 = header.getOrDefault("X-Amz-Content-Sha256") - valid_627366 = validateParameter(valid_627366, JString, required = false, - default = nil) - if valid_627366 != nil: - section.add "X-Amz-Content-Sha256", valid_627366 - var valid_627367 = header.getOrDefault("X-Amz-Date") + var valid_627367 = header.getOrDefault("X-Amz-Signature") valid_627367 = validateParameter(valid_627367, JString, required = false, default = nil) if valid_627367 != nil: - section.add "X-Amz-Date", valid_627367 - var valid_627368 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_627367 + var valid_627368 = header.getOrDefault("X-Amz-Content-Sha256") valid_627368 = validateParameter(valid_627368, JString, required = false, default = nil) if valid_627368 != nil: - section.add "X-Amz-Credential", valid_627368 - var valid_627369 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_627368 + var valid_627369 = header.getOrDefault("X-Amz-Date") valid_627369 = validateParameter(valid_627369, JString, required = false, default = nil) if valid_627369 != nil: - section.add "X-Amz-Security-Token", valid_627369 - var valid_627370 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_627369 + var valid_627370 = header.getOrDefault("X-Amz-Credential") valid_627370 = validateParameter(valid_627370, JString, required = false, default = nil) if valid_627370 != nil: - section.add "X-Amz-Algorithm", valid_627370 - var valid_627371 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_627370 + var valid_627371 = header.getOrDefault("X-Amz-Security-Token") valid_627371 = validateParameter(valid_627371, JString, required = false, default = nil) if valid_627371 != nil: - section.add "X-Amz-SignedHeaders", valid_627371 + section.add "X-Amz-Security-Token", valid_627371 + var valid_627372 = header.getOrDefault("X-Amz-Algorithm") + valid_627372 = validateParameter(valid_627372, JString, required = false, + default = nil) + if valid_627372 != nil: + section.add "X-Amz-Algorithm", valid_627372 + var valid_627373 = header.getOrDefault("X-Amz-SignedHeaders") + valid_627373 = validateParameter(valid_627373, JString, required = false, + default = nil) + if valid_627373 != nil: + section.add "X-Amz-SignedHeaders", valid_627373 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_627372: Call_GetUnmonitorInstances_627358; path: JsonNode; +proc call*(call_627374: Call_GetUnmonitorInstances_627360; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Disables detailed monitoring for a running instance. For more information, see Monitoring Your Instances and Volumes in the Amazon Elastic Compute Cloud User Guide. ## - let valid = call_627372.validator(path, query, header, formData, body) - let scheme = call_627372.pickScheme + let valid = call_627374.validator(path, query, header, formData, body) + let scheme = call_627374.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_627372.url(scheme.get, call_627372.host, call_627372.base, - call_627372.route, valid.getOrDefault("path"), + let url = call_627374.url(scheme.get, call_627374.host, call_627374.base, + call_627374.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_627372, url, valid) + result = atozHook(call_627374, url, valid) -proc call*(call_627373: Call_GetUnmonitorInstances_627358; InstanceId: JsonNode; +proc call*(call_627375: Call_GetUnmonitorInstances_627360; InstanceId: JsonNode; DryRun: bool = false; Action: string = "UnmonitorInstances"; Version: string = "2016-11-15"): Recallable = ## getUnmonitorInstances @@ -135649,22 +135676,22 @@ proc call*(call_627373: Call_GetUnmonitorInstances_627358; InstanceId: JsonNode; ## : The IDs of the instances. ## Action: string (required) ## Version: string (required) - var query_627374 = newJObject() - add(query_627374, "DryRun", newJBool(DryRun)) + var query_627376 = newJObject() + add(query_627376, "DryRun", newJBool(DryRun)) if InstanceId != nil: - query_627374.add "InstanceId", InstanceId - add(query_627374, "Action", newJString(Action)) - add(query_627374, "Version", newJString(Version)) - result = call_627373.call(nil, query_627374, nil, nil, nil) + query_627376.add "InstanceId", InstanceId + add(query_627376, "Action", newJString(Action)) + add(query_627376, "Version", newJString(Version)) + result = call_627375.call(nil, query_627376, nil, nil, nil) -var getUnmonitorInstances* = Call_GetUnmonitorInstances_627358( +var getUnmonitorInstances* = Call_GetUnmonitorInstances_627360( name: "getUnmonitorInstances", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=UnmonitorInstances", - validator: validate_GetUnmonitorInstances_627359, base: "/", - url: url_GetUnmonitorInstances_627360, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetUnmonitorInstances_627361, base: "/", + url: url_GetUnmonitorInstances_627362, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostUpdateSecurityGroupRuleDescriptionsEgress_627412 = ref object of OpenApiRestCall_610658 -proc url_PostUpdateSecurityGroupRuleDescriptionsEgress_627414(protocol: Scheme; + Call_PostUpdateSecurityGroupRuleDescriptionsEgress_627414 = ref object of OpenApiRestCall_610658 +proc url_PostUpdateSecurityGroupRuleDescriptionsEgress_627416(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -135674,7 +135701,7 @@ proc url_PostUpdateSecurityGroupRuleDescriptionsEgress_627414(protocol: Scheme; else: result.path = base & route -proc validate_PostUpdateSecurityGroupRuleDescriptionsEgress_627413( +proc validate_PostUpdateSecurityGroupRuleDescriptionsEgress_627415( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    [VPC only] Updates the description of an egress (outbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously.

    You specify the description as part of the IP permissions structure. You can remove a description for a security group rule by omitting the description parameter in the request.

    @@ -135687,16 +135714,16 @@ proc validate_PostUpdateSecurityGroupRuleDescriptionsEgress_627413( ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_627415 = query.getOrDefault("Action") - valid_627415 = validateParameter(valid_627415, JString, required = true, default = newJString( + var valid_627417 = query.getOrDefault("Action") + valid_627417 = validateParameter(valid_627417, JString, required = true, default = newJString( "UpdateSecurityGroupRuleDescriptionsEgress")) - if valid_627415 != nil: - section.add "Action", valid_627415 - var valid_627416 = query.getOrDefault("Version") - valid_627416 = validateParameter(valid_627416, JString, required = true, + if valid_627417 != nil: + section.add "Action", valid_627417 + var valid_627418 = query.getOrDefault("Version") + valid_627418 = validateParameter(valid_627418, JString, required = true, default = newJString("2016-11-15")) - if valid_627416 != nil: - section.add "Version", valid_627416 + if valid_627418 != nil: + section.add "Version", valid_627418 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -135707,41 +135734,41 @@ proc validate_PostUpdateSecurityGroupRuleDescriptionsEgress_627413( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_627417 = header.getOrDefault("X-Amz-Signature") - valid_627417 = validateParameter(valid_627417, JString, required = false, - default = nil) - if valid_627417 != nil: - section.add "X-Amz-Signature", valid_627417 - var valid_627418 = header.getOrDefault("X-Amz-Content-Sha256") - valid_627418 = validateParameter(valid_627418, JString, required = false, - default = nil) - if valid_627418 != nil: - section.add "X-Amz-Content-Sha256", valid_627418 - var valid_627419 = header.getOrDefault("X-Amz-Date") + var valid_627419 = header.getOrDefault("X-Amz-Signature") valid_627419 = validateParameter(valid_627419, JString, required = false, default = nil) if valid_627419 != nil: - section.add "X-Amz-Date", valid_627419 - var valid_627420 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_627419 + var valid_627420 = header.getOrDefault("X-Amz-Content-Sha256") valid_627420 = validateParameter(valid_627420, JString, required = false, default = nil) if valid_627420 != nil: - section.add "X-Amz-Credential", valid_627420 - var valid_627421 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_627420 + var valid_627421 = header.getOrDefault("X-Amz-Date") valid_627421 = validateParameter(valid_627421, JString, required = false, default = nil) if valid_627421 != nil: - section.add "X-Amz-Security-Token", valid_627421 - var valid_627422 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_627421 + var valid_627422 = header.getOrDefault("X-Amz-Credential") valid_627422 = validateParameter(valid_627422, JString, required = false, default = nil) if valid_627422 != nil: - section.add "X-Amz-Algorithm", valid_627422 - var valid_627423 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_627422 + var valid_627423 = header.getOrDefault("X-Amz-Security-Token") valid_627423 = validateParameter(valid_627423, JString, required = false, default = nil) if valid_627423 != nil: - section.add "X-Amz-SignedHeaders", valid_627423 + section.add "X-Amz-Security-Token", valid_627423 + var valid_627424 = header.getOrDefault("X-Amz-Algorithm") + valid_627424 = validateParameter(valid_627424, JString, required = false, + default = nil) + if valid_627424 != nil: + section.add "X-Amz-Algorithm", valid_627424 + var valid_627425 = header.getOrDefault("X-Amz-SignedHeaders") + valid_627425 = validateParameter(valid_627425, JString, required = false, + default = nil) + if valid_627425 != nil: + section.add "X-Amz-SignedHeaders", valid_627425 result.add "header", section ## parameters in `formData` object: ## GroupId: JString @@ -135753,45 +135780,45 @@ proc validate_PostUpdateSecurityGroupRuleDescriptionsEgress_627413( ## IpPermissions: JArray (required) ## : The IP permissions for the security group rule. section = newJObject() - var valid_627424 = formData.getOrDefault("GroupId") - valid_627424 = validateParameter(valid_627424, JString, required = false, - default = nil) - if valid_627424 != nil: - section.add "GroupId", valid_627424 - var valid_627425 = formData.getOrDefault("GroupName") - valid_627425 = validateParameter(valid_627425, JString, required = false, + var valid_627426 = formData.getOrDefault("GroupId") + valid_627426 = validateParameter(valid_627426, JString, required = false, default = nil) - if valid_627425 != nil: - section.add "GroupName", valid_627425 - var valid_627426 = formData.getOrDefault("DryRun") - valid_627426 = validateParameter(valid_627426, JBool, required = false, default = nil) if valid_627426 != nil: - section.add "DryRun", valid_627426 + section.add "GroupId", valid_627426 + var valid_627427 = formData.getOrDefault("GroupName") + valid_627427 = validateParameter(valid_627427, JString, required = false, + default = nil) + if valid_627427 != nil: + section.add "GroupName", valid_627427 + var valid_627428 = formData.getOrDefault("DryRun") + valid_627428 = validateParameter(valid_627428, JBool, required = false, default = nil) + if valid_627428 != nil: + section.add "DryRun", valid_627428 assert formData != nil, "formData argument is necessary due to required `IpPermissions` field" - var valid_627427 = formData.getOrDefault("IpPermissions") - valid_627427 = validateParameter(valid_627427, JArray, required = true, default = nil) - if valid_627427 != nil: - section.add "IpPermissions", valid_627427 + var valid_627429 = formData.getOrDefault("IpPermissions") + valid_627429 = validateParameter(valid_627429, JArray, required = true, default = nil) + if valid_627429 != nil: + section.add "IpPermissions", valid_627429 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_627428: Call_PostUpdateSecurityGroupRuleDescriptionsEgress_627412; +proc call*(call_627430: Call_PostUpdateSecurityGroupRuleDescriptionsEgress_627414; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    [VPC only] Updates the description of an egress (outbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously.

    You specify the description as part of the IP permissions structure. You can remove a description for a security group rule by omitting the description parameter in the request.

    ## - let valid = call_627428.validator(path, query, header, formData, body) - let scheme = call_627428.pickScheme + let valid = call_627430.validator(path, query, header, formData, body) + let scheme = call_627430.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_627428.url(scheme.get, call_627428.host, call_627428.base, - call_627428.route, valid.getOrDefault("path"), + let url = call_627430.url(scheme.get, call_627430.host, call_627430.base, + call_627430.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_627428, url, valid) + result = atozHook(call_627430, url, valid) -proc call*(call_627429: Call_PostUpdateSecurityGroupRuleDescriptionsEgress_627412; +proc call*(call_627431: Call_PostUpdateSecurityGroupRuleDescriptionsEgress_627414; IpPermissions: JsonNode; GroupId: string = ""; GroupName: string = ""; DryRun: bool = false; Action: string = "UpdateSecurityGroupRuleDescriptionsEgress"; @@ -135808,27 +135835,27 @@ proc call*(call_627429: Call_PostUpdateSecurityGroupRuleDescriptionsEgress_62741 ## Version: string (required) ## IpPermissions: JArray (required) ## : The IP permissions for the security group rule. - var query_627430 = newJObject() - var formData_627431 = newJObject() - add(formData_627431, "GroupId", newJString(GroupId)) - add(formData_627431, "GroupName", newJString(GroupName)) - add(formData_627431, "DryRun", newJBool(DryRun)) - add(query_627430, "Action", newJString(Action)) - add(query_627430, "Version", newJString(Version)) + var query_627432 = newJObject() + var formData_627433 = newJObject() + add(formData_627433, "GroupId", newJString(GroupId)) + add(formData_627433, "GroupName", newJString(GroupName)) + add(formData_627433, "DryRun", newJBool(DryRun)) + add(query_627432, "Action", newJString(Action)) + add(query_627432, "Version", newJString(Version)) if IpPermissions != nil: - formData_627431.add "IpPermissions", IpPermissions - result = call_627429.call(nil, query_627430, nil, formData_627431, nil) + formData_627433.add "IpPermissions", IpPermissions + result = call_627431.call(nil, query_627432, nil, formData_627433, nil) -var postUpdateSecurityGroupRuleDescriptionsEgress* = Call_PostUpdateSecurityGroupRuleDescriptionsEgress_627412( +var postUpdateSecurityGroupRuleDescriptionsEgress* = Call_PostUpdateSecurityGroupRuleDescriptionsEgress_627414( name: "postUpdateSecurityGroupRuleDescriptionsEgress", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=UpdateSecurityGroupRuleDescriptionsEgress", - validator: validate_PostUpdateSecurityGroupRuleDescriptionsEgress_627413, - base: "/", url: url_PostUpdateSecurityGroupRuleDescriptionsEgress_627414, + validator: validate_PostUpdateSecurityGroupRuleDescriptionsEgress_627415, + base: "/", url: url_PostUpdateSecurityGroupRuleDescriptionsEgress_627416, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetUpdateSecurityGroupRuleDescriptionsEgress_627393 = ref object of OpenApiRestCall_610658 -proc url_GetUpdateSecurityGroupRuleDescriptionsEgress_627395(protocol: Scheme; + Call_GetUpdateSecurityGroupRuleDescriptionsEgress_627395 = ref object of OpenApiRestCall_610658 +proc url_GetUpdateSecurityGroupRuleDescriptionsEgress_627397(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -135838,7 +135865,7 @@ proc url_GetUpdateSecurityGroupRuleDescriptionsEgress_627395(protocol: Scheme; else: result.path = base & route -proc validate_GetUpdateSecurityGroupRuleDescriptionsEgress_627394(path: JsonNode; +proc validate_GetUpdateSecurityGroupRuleDescriptionsEgress_627396(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    [VPC only] Updates the description of an egress (outbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously.

    You specify the description as part of the IP permissions structure. You can remove a description for a security group rule by omitting the description parameter in the request.

    ## @@ -135858,36 +135885,36 @@ proc validate_GetUpdateSecurityGroupRuleDescriptionsEgress_627394(path: JsonNode ## : The ID of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID. ## Version: JString (required) section = newJObject() - var valid_627396 = query.getOrDefault("GroupName") - valid_627396 = validateParameter(valid_627396, JString, required = false, + var valid_627398 = query.getOrDefault("GroupName") + valid_627398 = validateParameter(valid_627398, JString, required = false, default = nil) - if valid_627396 != nil: - section.add "GroupName", valid_627396 - var valid_627397 = query.getOrDefault("DryRun") - valid_627397 = validateParameter(valid_627397, JBool, required = false, default = nil) - if valid_627397 != nil: - section.add "DryRun", valid_627397 + if valid_627398 != nil: + section.add "GroupName", valid_627398 + var valid_627399 = query.getOrDefault("DryRun") + valid_627399 = validateParameter(valid_627399, JBool, required = false, default = nil) + if valid_627399 != nil: + section.add "DryRun", valid_627399 assert query != nil, "query argument is necessary due to required `IpPermissions` field" - var valid_627398 = query.getOrDefault("IpPermissions") - valid_627398 = validateParameter(valid_627398, JArray, required = true, default = nil) - if valid_627398 != nil: - section.add "IpPermissions", valid_627398 - var valid_627399 = query.getOrDefault("Action") - valid_627399 = validateParameter(valid_627399, JString, required = true, default = newJString( + var valid_627400 = query.getOrDefault("IpPermissions") + valid_627400 = validateParameter(valid_627400, JArray, required = true, default = nil) + if valid_627400 != nil: + section.add "IpPermissions", valid_627400 + var valid_627401 = query.getOrDefault("Action") + valid_627401 = validateParameter(valid_627401, JString, required = true, default = newJString( "UpdateSecurityGroupRuleDescriptionsEgress")) - if valid_627399 != nil: - section.add "Action", valid_627399 - var valid_627400 = query.getOrDefault("GroupId") - valid_627400 = validateParameter(valid_627400, JString, required = false, + if valid_627401 != nil: + section.add "Action", valid_627401 + var valid_627402 = query.getOrDefault("GroupId") + valid_627402 = validateParameter(valid_627402, JString, required = false, default = nil) - if valid_627400 != nil: - section.add "GroupId", valid_627400 - var valid_627401 = query.getOrDefault("Version") - valid_627401 = validateParameter(valid_627401, JString, required = true, + if valid_627402 != nil: + section.add "GroupId", valid_627402 + var valid_627403 = query.getOrDefault("Version") + valid_627403 = validateParameter(valid_627403, JString, required = true, default = newJString("2016-11-15")) - if valid_627401 != nil: - section.add "Version", valid_627401 + if valid_627403 != nil: + section.add "Version", valid_627403 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -135898,62 +135925,62 @@ proc validate_GetUpdateSecurityGroupRuleDescriptionsEgress_627394(path: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_627402 = header.getOrDefault("X-Amz-Signature") - valid_627402 = validateParameter(valid_627402, JString, required = false, - default = nil) - if valid_627402 != nil: - section.add "X-Amz-Signature", valid_627402 - var valid_627403 = header.getOrDefault("X-Amz-Content-Sha256") - valid_627403 = validateParameter(valid_627403, JString, required = false, - default = nil) - if valid_627403 != nil: - section.add "X-Amz-Content-Sha256", valid_627403 - var valid_627404 = header.getOrDefault("X-Amz-Date") + var valid_627404 = header.getOrDefault("X-Amz-Signature") valid_627404 = validateParameter(valid_627404, JString, required = false, default = nil) if valid_627404 != nil: - section.add "X-Amz-Date", valid_627404 - var valid_627405 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_627404 + var valid_627405 = header.getOrDefault("X-Amz-Content-Sha256") valid_627405 = validateParameter(valid_627405, JString, required = false, default = nil) if valid_627405 != nil: - section.add "X-Amz-Credential", valid_627405 - var valid_627406 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_627405 + var valid_627406 = header.getOrDefault("X-Amz-Date") valid_627406 = validateParameter(valid_627406, JString, required = false, default = nil) if valid_627406 != nil: - section.add "X-Amz-Security-Token", valid_627406 - var valid_627407 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_627406 + var valid_627407 = header.getOrDefault("X-Amz-Credential") valid_627407 = validateParameter(valid_627407, JString, required = false, default = nil) if valid_627407 != nil: - section.add "X-Amz-Algorithm", valid_627407 - var valid_627408 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_627407 + var valid_627408 = header.getOrDefault("X-Amz-Security-Token") valid_627408 = validateParameter(valid_627408, JString, required = false, default = nil) if valid_627408 != nil: - section.add "X-Amz-SignedHeaders", valid_627408 + section.add "X-Amz-Security-Token", valid_627408 + var valid_627409 = header.getOrDefault("X-Amz-Algorithm") + valid_627409 = validateParameter(valid_627409, JString, required = false, + default = nil) + if valid_627409 != nil: + section.add "X-Amz-Algorithm", valid_627409 + var valid_627410 = header.getOrDefault("X-Amz-SignedHeaders") + valid_627410 = validateParameter(valid_627410, JString, required = false, + default = nil) + if valid_627410 != nil: + section.add "X-Amz-SignedHeaders", valid_627410 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_627409: Call_GetUpdateSecurityGroupRuleDescriptionsEgress_627393; +proc call*(call_627411: Call_GetUpdateSecurityGroupRuleDescriptionsEgress_627395; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    [VPC only] Updates the description of an egress (outbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously.

    You specify the description as part of the IP permissions structure. You can remove a description for a security group rule by omitting the description parameter in the request.

    ## - let valid = call_627409.validator(path, query, header, formData, body) - let scheme = call_627409.pickScheme + let valid = call_627411.validator(path, query, header, formData, body) + let scheme = call_627411.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_627409.url(scheme.get, call_627409.host, call_627409.base, - call_627409.route, valid.getOrDefault("path"), + let url = call_627411.url(scheme.get, call_627411.host, call_627411.base, + call_627411.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_627409, url, valid) + result = atozHook(call_627411, url, valid) -proc call*(call_627410: Call_GetUpdateSecurityGroupRuleDescriptionsEgress_627393; +proc call*(call_627412: Call_GetUpdateSecurityGroupRuleDescriptionsEgress_627395; IpPermissions: JsonNode; GroupName: string = ""; DryRun: bool = false; Action: string = "UpdateSecurityGroupRuleDescriptionsEgress"; GroupId: string = ""; Version: string = "2016-11-15"): Recallable = @@ -135969,26 +135996,26 @@ proc call*(call_627410: Call_GetUpdateSecurityGroupRuleDescriptionsEgress_627393 ## GroupId: string ## : The ID of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID. ## Version: string (required) - var query_627411 = newJObject() - add(query_627411, "GroupName", newJString(GroupName)) - add(query_627411, "DryRun", newJBool(DryRun)) + var query_627413 = newJObject() + add(query_627413, "GroupName", newJString(GroupName)) + add(query_627413, "DryRun", newJBool(DryRun)) if IpPermissions != nil: - query_627411.add "IpPermissions", IpPermissions - add(query_627411, "Action", newJString(Action)) - add(query_627411, "GroupId", newJString(GroupId)) - add(query_627411, "Version", newJString(Version)) - result = call_627410.call(nil, query_627411, nil, nil, nil) + query_627413.add "IpPermissions", IpPermissions + add(query_627413, "Action", newJString(Action)) + add(query_627413, "GroupId", newJString(GroupId)) + add(query_627413, "Version", newJString(Version)) + result = call_627412.call(nil, query_627413, nil, nil, nil) -var getUpdateSecurityGroupRuleDescriptionsEgress* = Call_GetUpdateSecurityGroupRuleDescriptionsEgress_627393( +var getUpdateSecurityGroupRuleDescriptionsEgress* = Call_GetUpdateSecurityGroupRuleDescriptionsEgress_627395( name: "getUpdateSecurityGroupRuleDescriptionsEgress", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=UpdateSecurityGroupRuleDescriptionsEgress", - validator: validate_GetUpdateSecurityGroupRuleDescriptionsEgress_627394, - base: "/", url: url_GetUpdateSecurityGroupRuleDescriptionsEgress_627395, + validator: validate_GetUpdateSecurityGroupRuleDescriptionsEgress_627396, + base: "/", url: url_GetUpdateSecurityGroupRuleDescriptionsEgress_627397, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostUpdateSecurityGroupRuleDescriptionsIngress_627451 = ref object of OpenApiRestCall_610658 -proc url_PostUpdateSecurityGroupRuleDescriptionsIngress_627453(protocol: Scheme; + Call_PostUpdateSecurityGroupRuleDescriptionsIngress_627453 = ref object of OpenApiRestCall_610658 +proc url_PostUpdateSecurityGroupRuleDescriptionsIngress_627455(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -135998,7 +136025,7 @@ proc url_PostUpdateSecurityGroupRuleDescriptionsIngress_627453(protocol: Scheme; else: result.path = base & route -proc validate_PostUpdateSecurityGroupRuleDescriptionsIngress_627452( +proc validate_PostUpdateSecurityGroupRuleDescriptionsIngress_627454( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Updates the description of an ingress (inbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously.

    You specify the description as part of the IP permissions structure. You can remove a description for a security group rule by omitting the description parameter in the request.

    @@ -136011,16 +136038,16 @@ proc validate_PostUpdateSecurityGroupRuleDescriptionsIngress_627452( ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_627454 = query.getOrDefault("Action") - valid_627454 = validateParameter(valid_627454, JString, required = true, default = newJString( + var valid_627456 = query.getOrDefault("Action") + valid_627456 = validateParameter(valid_627456, JString, required = true, default = newJString( "UpdateSecurityGroupRuleDescriptionsIngress")) - if valid_627454 != nil: - section.add "Action", valid_627454 - var valid_627455 = query.getOrDefault("Version") - valid_627455 = validateParameter(valid_627455, JString, required = true, + if valid_627456 != nil: + section.add "Action", valid_627456 + var valid_627457 = query.getOrDefault("Version") + valid_627457 = validateParameter(valid_627457, JString, required = true, default = newJString("2016-11-15")) - if valid_627455 != nil: - section.add "Version", valid_627455 + if valid_627457 != nil: + section.add "Version", valid_627457 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -136031,41 +136058,41 @@ proc validate_PostUpdateSecurityGroupRuleDescriptionsIngress_627452( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_627456 = header.getOrDefault("X-Amz-Signature") - valid_627456 = validateParameter(valid_627456, JString, required = false, - default = nil) - if valid_627456 != nil: - section.add "X-Amz-Signature", valid_627456 - var valid_627457 = header.getOrDefault("X-Amz-Content-Sha256") - valid_627457 = validateParameter(valid_627457, JString, required = false, - default = nil) - if valid_627457 != nil: - section.add "X-Amz-Content-Sha256", valid_627457 - var valid_627458 = header.getOrDefault("X-Amz-Date") + var valid_627458 = header.getOrDefault("X-Amz-Signature") valid_627458 = validateParameter(valid_627458, JString, required = false, default = nil) if valid_627458 != nil: - section.add "X-Amz-Date", valid_627458 - var valid_627459 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_627458 + var valid_627459 = header.getOrDefault("X-Amz-Content-Sha256") valid_627459 = validateParameter(valid_627459, JString, required = false, default = nil) if valid_627459 != nil: - section.add "X-Amz-Credential", valid_627459 - var valid_627460 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_627459 + var valid_627460 = header.getOrDefault("X-Amz-Date") valid_627460 = validateParameter(valid_627460, JString, required = false, default = nil) if valid_627460 != nil: - section.add "X-Amz-Security-Token", valid_627460 - var valid_627461 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_627460 + var valid_627461 = header.getOrDefault("X-Amz-Credential") valid_627461 = validateParameter(valid_627461, JString, required = false, default = nil) if valid_627461 != nil: - section.add "X-Amz-Algorithm", valid_627461 - var valid_627462 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_627461 + var valid_627462 = header.getOrDefault("X-Amz-Security-Token") valid_627462 = validateParameter(valid_627462, JString, required = false, default = nil) if valid_627462 != nil: - section.add "X-Amz-SignedHeaders", valid_627462 + section.add "X-Amz-Security-Token", valid_627462 + var valid_627463 = header.getOrDefault("X-Amz-Algorithm") + valid_627463 = validateParameter(valid_627463, JString, required = false, + default = nil) + if valid_627463 != nil: + section.add "X-Amz-Algorithm", valid_627463 + var valid_627464 = header.getOrDefault("X-Amz-SignedHeaders") + valid_627464 = validateParameter(valid_627464, JString, required = false, + default = nil) + if valid_627464 != nil: + section.add "X-Amz-SignedHeaders", valid_627464 result.add "header", section ## parameters in `formData` object: ## GroupId: JString @@ -136077,45 +136104,45 @@ proc validate_PostUpdateSecurityGroupRuleDescriptionsIngress_627452( ## IpPermissions: JArray (required) ## : The IP permissions for the security group rule. section = newJObject() - var valid_627463 = formData.getOrDefault("GroupId") - valid_627463 = validateParameter(valid_627463, JString, required = false, - default = nil) - if valid_627463 != nil: - section.add "GroupId", valid_627463 - var valid_627464 = formData.getOrDefault("GroupName") - valid_627464 = validateParameter(valid_627464, JString, required = false, + var valid_627465 = formData.getOrDefault("GroupId") + valid_627465 = validateParameter(valid_627465, JString, required = false, default = nil) - if valid_627464 != nil: - section.add "GroupName", valid_627464 - var valid_627465 = formData.getOrDefault("DryRun") - valid_627465 = validateParameter(valid_627465, JBool, required = false, default = nil) if valid_627465 != nil: - section.add "DryRun", valid_627465 + section.add "GroupId", valid_627465 + var valid_627466 = formData.getOrDefault("GroupName") + valid_627466 = validateParameter(valid_627466, JString, required = false, + default = nil) + if valid_627466 != nil: + section.add "GroupName", valid_627466 + var valid_627467 = formData.getOrDefault("DryRun") + valid_627467 = validateParameter(valid_627467, JBool, required = false, default = nil) + if valid_627467 != nil: + section.add "DryRun", valid_627467 assert formData != nil, "formData argument is necessary due to required `IpPermissions` field" - var valid_627466 = formData.getOrDefault("IpPermissions") - valid_627466 = validateParameter(valid_627466, JArray, required = true, default = nil) - if valid_627466 != nil: - section.add "IpPermissions", valid_627466 + var valid_627468 = formData.getOrDefault("IpPermissions") + valid_627468 = validateParameter(valid_627468, JArray, required = true, default = nil) + if valid_627468 != nil: + section.add "IpPermissions", valid_627468 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_627467: Call_PostUpdateSecurityGroupRuleDescriptionsIngress_627451; +proc call*(call_627469: Call_PostUpdateSecurityGroupRuleDescriptionsIngress_627453; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Updates the description of an ingress (inbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously.

    You specify the description as part of the IP permissions structure. You can remove a description for a security group rule by omitting the description parameter in the request.

    ## - let valid = call_627467.validator(path, query, header, formData, body) - let scheme = call_627467.pickScheme + let valid = call_627469.validator(path, query, header, formData, body) + let scheme = call_627469.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_627467.url(scheme.get, call_627467.host, call_627467.base, - call_627467.route, valid.getOrDefault("path"), + let url = call_627469.url(scheme.get, call_627469.host, call_627469.base, + call_627469.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_627467, url, valid) + result = atozHook(call_627469, url, valid) -proc call*(call_627468: Call_PostUpdateSecurityGroupRuleDescriptionsIngress_627451; +proc call*(call_627470: Call_PostUpdateSecurityGroupRuleDescriptionsIngress_627453; IpPermissions: JsonNode; GroupId: string = ""; GroupName: string = ""; DryRun: bool = false; Action: string = "UpdateSecurityGroupRuleDescriptionsIngress"; @@ -136132,27 +136159,27 @@ proc call*(call_627468: Call_PostUpdateSecurityGroupRuleDescriptionsIngress_6274 ## Version: string (required) ## IpPermissions: JArray (required) ## : The IP permissions for the security group rule. - var query_627469 = newJObject() - var formData_627470 = newJObject() - add(formData_627470, "GroupId", newJString(GroupId)) - add(formData_627470, "GroupName", newJString(GroupName)) - add(formData_627470, "DryRun", newJBool(DryRun)) - add(query_627469, "Action", newJString(Action)) - add(query_627469, "Version", newJString(Version)) + var query_627471 = newJObject() + var formData_627472 = newJObject() + add(formData_627472, "GroupId", newJString(GroupId)) + add(formData_627472, "GroupName", newJString(GroupName)) + add(formData_627472, "DryRun", newJBool(DryRun)) + add(query_627471, "Action", newJString(Action)) + add(query_627471, "Version", newJString(Version)) if IpPermissions != nil: - formData_627470.add "IpPermissions", IpPermissions - result = call_627468.call(nil, query_627469, nil, formData_627470, nil) + formData_627472.add "IpPermissions", IpPermissions + result = call_627470.call(nil, query_627471, nil, formData_627472, nil) -var postUpdateSecurityGroupRuleDescriptionsIngress* = Call_PostUpdateSecurityGroupRuleDescriptionsIngress_627451( +var postUpdateSecurityGroupRuleDescriptionsIngress* = Call_PostUpdateSecurityGroupRuleDescriptionsIngress_627453( name: "postUpdateSecurityGroupRuleDescriptionsIngress", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=UpdateSecurityGroupRuleDescriptionsIngress", - validator: validate_PostUpdateSecurityGroupRuleDescriptionsIngress_627452, - base: "/", url: url_PostUpdateSecurityGroupRuleDescriptionsIngress_627453, + validator: validate_PostUpdateSecurityGroupRuleDescriptionsIngress_627454, + base: "/", url: url_PostUpdateSecurityGroupRuleDescriptionsIngress_627455, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetUpdateSecurityGroupRuleDescriptionsIngress_627432 = ref object of OpenApiRestCall_610658 -proc url_GetUpdateSecurityGroupRuleDescriptionsIngress_627434(protocol: Scheme; + Call_GetUpdateSecurityGroupRuleDescriptionsIngress_627434 = ref object of OpenApiRestCall_610658 +proc url_GetUpdateSecurityGroupRuleDescriptionsIngress_627436(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -136162,7 +136189,7 @@ proc url_GetUpdateSecurityGroupRuleDescriptionsIngress_627434(protocol: Scheme; else: result.path = base & route -proc validate_GetUpdateSecurityGroupRuleDescriptionsIngress_627433( +proc validate_GetUpdateSecurityGroupRuleDescriptionsIngress_627435( path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Updates the description of an ingress (inbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously.

    You specify the description as part of the IP permissions structure. You can remove a description for a security group rule by omitting the description parameter in the request.

    @@ -136183,36 +136210,36 @@ proc validate_GetUpdateSecurityGroupRuleDescriptionsIngress_627433( ## : The ID of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID. ## Version: JString (required) section = newJObject() - var valid_627435 = query.getOrDefault("GroupName") - valid_627435 = validateParameter(valid_627435, JString, required = false, + var valid_627437 = query.getOrDefault("GroupName") + valid_627437 = validateParameter(valid_627437, JString, required = false, default = nil) - if valid_627435 != nil: - section.add "GroupName", valid_627435 - var valid_627436 = query.getOrDefault("DryRun") - valid_627436 = validateParameter(valid_627436, JBool, required = false, default = nil) - if valid_627436 != nil: - section.add "DryRun", valid_627436 + if valid_627437 != nil: + section.add "GroupName", valid_627437 + var valid_627438 = query.getOrDefault("DryRun") + valid_627438 = validateParameter(valid_627438, JBool, required = false, default = nil) + if valid_627438 != nil: + section.add "DryRun", valid_627438 assert query != nil, "query argument is necessary due to required `IpPermissions` field" - var valid_627437 = query.getOrDefault("IpPermissions") - valid_627437 = validateParameter(valid_627437, JArray, required = true, default = nil) - if valid_627437 != nil: - section.add "IpPermissions", valid_627437 - var valid_627438 = query.getOrDefault("Action") - valid_627438 = validateParameter(valid_627438, JString, required = true, default = newJString( + var valid_627439 = query.getOrDefault("IpPermissions") + valid_627439 = validateParameter(valid_627439, JArray, required = true, default = nil) + if valid_627439 != nil: + section.add "IpPermissions", valid_627439 + var valid_627440 = query.getOrDefault("Action") + valid_627440 = validateParameter(valid_627440, JString, required = true, default = newJString( "UpdateSecurityGroupRuleDescriptionsIngress")) - if valid_627438 != nil: - section.add "Action", valid_627438 - var valid_627439 = query.getOrDefault("GroupId") - valid_627439 = validateParameter(valid_627439, JString, required = false, + if valid_627440 != nil: + section.add "Action", valid_627440 + var valid_627441 = query.getOrDefault("GroupId") + valid_627441 = validateParameter(valid_627441, JString, required = false, default = nil) - if valid_627439 != nil: - section.add "GroupId", valid_627439 - var valid_627440 = query.getOrDefault("Version") - valid_627440 = validateParameter(valid_627440, JString, required = true, + if valid_627441 != nil: + section.add "GroupId", valid_627441 + var valid_627442 = query.getOrDefault("Version") + valid_627442 = validateParameter(valid_627442, JString, required = true, default = newJString("2016-11-15")) - if valid_627440 != nil: - section.add "Version", valid_627440 + if valid_627442 != nil: + section.add "Version", valid_627442 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -136223,62 +136250,62 @@ proc validate_GetUpdateSecurityGroupRuleDescriptionsIngress_627433( ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_627441 = header.getOrDefault("X-Amz-Signature") - valid_627441 = validateParameter(valid_627441, JString, required = false, - default = nil) - if valid_627441 != nil: - section.add "X-Amz-Signature", valid_627441 - var valid_627442 = header.getOrDefault("X-Amz-Content-Sha256") - valid_627442 = validateParameter(valid_627442, JString, required = false, - default = nil) - if valid_627442 != nil: - section.add "X-Amz-Content-Sha256", valid_627442 - var valid_627443 = header.getOrDefault("X-Amz-Date") + var valid_627443 = header.getOrDefault("X-Amz-Signature") valid_627443 = validateParameter(valid_627443, JString, required = false, default = nil) if valid_627443 != nil: - section.add "X-Amz-Date", valid_627443 - var valid_627444 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_627443 + var valid_627444 = header.getOrDefault("X-Amz-Content-Sha256") valid_627444 = validateParameter(valid_627444, JString, required = false, default = nil) if valid_627444 != nil: - section.add "X-Amz-Credential", valid_627444 - var valid_627445 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_627444 + var valid_627445 = header.getOrDefault("X-Amz-Date") valid_627445 = validateParameter(valid_627445, JString, required = false, default = nil) if valid_627445 != nil: - section.add "X-Amz-Security-Token", valid_627445 - var valid_627446 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_627445 + var valid_627446 = header.getOrDefault("X-Amz-Credential") valid_627446 = validateParameter(valid_627446, JString, required = false, default = nil) if valid_627446 != nil: - section.add "X-Amz-Algorithm", valid_627446 - var valid_627447 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_627446 + var valid_627447 = header.getOrDefault("X-Amz-Security-Token") valid_627447 = validateParameter(valid_627447, JString, required = false, default = nil) if valid_627447 != nil: - section.add "X-Amz-SignedHeaders", valid_627447 + section.add "X-Amz-Security-Token", valid_627447 + var valid_627448 = header.getOrDefault("X-Amz-Algorithm") + valid_627448 = validateParameter(valid_627448, JString, required = false, + default = nil) + if valid_627448 != nil: + section.add "X-Amz-Algorithm", valid_627448 + var valid_627449 = header.getOrDefault("X-Amz-SignedHeaders") + valid_627449 = validateParameter(valid_627449, JString, required = false, + default = nil) + if valid_627449 != nil: + section.add "X-Amz-SignedHeaders", valid_627449 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_627448: Call_GetUpdateSecurityGroupRuleDescriptionsIngress_627432; +proc call*(call_627450: Call_GetUpdateSecurityGroupRuleDescriptionsIngress_627434; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Updates the description of an ingress (inbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously.

    You specify the description as part of the IP permissions structure. You can remove a description for a security group rule by omitting the description parameter in the request.

    ## - let valid = call_627448.validator(path, query, header, formData, body) - let scheme = call_627448.pickScheme + let valid = call_627450.validator(path, query, header, formData, body) + let scheme = call_627450.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_627448.url(scheme.get, call_627448.host, call_627448.base, - call_627448.route, valid.getOrDefault("path"), + let url = call_627450.url(scheme.get, call_627450.host, call_627450.base, + call_627450.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_627448, url, valid) + result = atozHook(call_627450, url, valid) -proc call*(call_627449: Call_GetUpdateSecurityGroupRuleDescriptionsIngress_627432; +proc call*(call_627451: Call_GetUpdateSecurityGroupRuleDescriptionsIngress_627434; IpPermissions: JsonNode; GroupName: string = ""; DryRun: bool = false; Action: string = "UpdateSecurityGroupRuleDescriptionsIngress"; GroupId: string = ""; Version: string = "2016-11-15"): Recallable = @@ -136294,26 +136321,26 @@ proc call*(call_627449: Call_GetUpdateSecurityGroupRuleDescriptionsIngress_62743 ## GroupId: string ## : The ID of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID. ## Version: string (required) - var query_627450 = newJObject() - add(query_627450, "GroupName", newJString(GroupName)) - add(query_627450, "DryRun", newJBool(DryRun)) + var query_627452 = newJObject() + add(query_627452, "GroupName", newJString(GroupName)) + add(query_627452, "DryRun", newJBool(DryRun)) if IpPermissions != nil: - query_627450.add "IpPermissions", IpPermissions - add(query_627450, "Action", newJString(Action)) - add(query_627450, "GroupId", newJString(GroupId)) - add(query_627450, "Version", newJString(Version)) - result = call_627449.call(nil, query_627450, nil, nil, nil) + query_627452.add "IpPermissions", IpPermissions + add(query_627452, "Action", newJString(Action)) + add(query_627452, "GroupId", newJString(GroupId)) + add(query_627452, "Version", newJString(Version)) + result = call_627451.call(nil, query_627452, nil, nil, nil) -var getUpdateSecurityGroupRuleDescriptionsIngress* = Call_GetUpdateSecurityGroupRuleDescriptionsIngress_627432( +var getUpdateSecurityGroupRuleDescriptionsIngress* = Call_GetUpdateSecurityGroupRuleDescriptionsIngress_627434( name: "getUpdateSecurityGroupRuleDescriptionsIngress", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=UpdateSecurityGroupRuleDescriptionsIngress", - validator: validate_GetUpdateSecurityGroupRuleDescriptionsIngress_627433, - base: "/", url: url_GetUpdateSecurityGroupRuleDescriptionsIngress_627434, + validator: validate_GetUpdateSecurityGroupRuleDescriptionsIngress_627435, + base: "/", url: url_GetUpdateSecurityGroupRuleDescriptionsIngress_627436, schemes: {Scheme.Https, Scheme.Http}) type - Call_PostWithdrawByoipCidr_627488 = ref object of OpenApiRestCall_610658 -proc url_PostWithdrawByoipCidr_627490(protocol: Scheme; host: string; base: string; + Call_PostWithdrawByoipCidr_627490 = ref object of OpenApiRestCall_610658 +proc url_PostWithdrawByoipCidr_627492(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -136323,7 +136350,7 @@ proc url_PostWithdrawByoipCidr_627490(protocol: Scheme; host: string; base: stri else: result.path = base & route -proc validate_PostWithdrawByoipCidr_627489(path: JsonNode; query: JsonNode; +proc validate_PostWithdrawByoipCidr_627491(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Stops advertising an address range that is provisioned as an address pool.

    You can perform this operation at most once every 10 seconds, even if you specify different address ranges each time.

    It can take a few minutes before traffic to the specified addresses stops routing to AWS because of BGP propagation delays.

    ## @@ -136335,16 +136362,16 @@ proc validate_PostWithdrawByoipCidr_627489(path: JsonNode; query: JsonNode; ## Action: JString (required) ## Version: JString (required) section = newJObject() - var valid_627491 = query.getOrDefault("Action") - valid_627491 = validateParameter(valid_627491, JString, required = true, + var valid_627493 = query.getOrDefault("Action") + valid_627493 = validateParameter(valid_627493, JString, required = true, default = newJString("WithdrawByoipCidr")) - if valid_627491 != nil: - section.add "Action", valid_627491 - var valid_627492 = query.getOrDefault("Version") - valid_627492 = validateParameter(valid_627492, JString, required = true, + if valid_627493 != nil: + section.add "Action", valid_627493 + var valid_627494 = query.getOrDefault("Version") + valid_627494 = validateParameter(valid_627494, JString, required = true, default = newJString("2016-11-15")) - if valid_627492 != nil: - section.add "Version", valid_627492 + if valid_627494 != nil: + section.add "Version", valid_627494 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -136355,41 +136382,41 @@ proc validate_PostWithdrawByoipCidr_627489(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_627493 = header.getOrDefault("X-Amz-Signature") - valid_627493 = validateParameter(valid_627493, JString, required = false, - default = nil) - if valid_627493 != nil: - section.add "X-Amz-Signature", valid_627493 - var valid_627494 = header.getOrDefault("X-Amz-Content-Sha256") - valid_627494 = validateParameter(valid_627494, JString, required = false, - default = nil) - if valid_627494 != nil: - section.add "X-Amz-Content-Sha256", valid_627494 - var valid_627495 = header.getOrDefault("X-Amz-Date") + var valid_627495 = header.getOrDefault("X-Amz-Signature") valid_627495 = validateParameter(valid_627495, JString, required = false, default = nil) if valid_627495 != nil: - section.add "X-Amz-Date", valid_627495 - var valid_627496 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_627495 + var valid_627496 = header.getOrDefault("X-Amz-Content-Sha256") valid_627496 = validateParameter(valid_627496, JString, required = false, default = nil) if valid_627496 != nil: - section.add "X-Amz-Credential", valid_627496 - var valid_627497 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_627496 + var valid_627497 = header.getOrDefault("X-Amz-Date") valid_627497 = validateParameter(valid_627497, JString, required = false, default = nil) if valid_627497 != nil: - section.add "X-Amz-Security-Token", valid_627497 - var valid_627498 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_627497 + var valid_627498 = header.getOrDefault("X-Amz-Credential") valid_627498 = validateParameter(valid_627498, JString, required = false, default = nil) if valid_627498 != nil: - section.add "X-Amz-Algorithm", valid_627498 - var valid_627499 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_627498 + var valid_627499 = header.getOrDefault("X-Amz-Security-Token") valid_627499 = validateParameter(valid_627499, JString, required = false, default = nil) if valid_627499 != nil: - section.add "X-Amz-SignedHeaders", valid_627499 + section.add "X-Amz-Security-Token", valid_627499 + var valid_627500 = header.getOrDefault("X-Amz-Algorithm") + valid_627500 = validateParameter(valid_627500, JString, required = false, + default = nil) + if valid_627500 != nil: + section.add "X-Amz-Algorithm", valid_627500 + var valid_627501 = header.getOrDefault("X-Amz-SignedHeaders") + valid_627501 = validateParameter(valid_627501, JString, required = false, + default = nil) + if valid_627501 != nil: + section.add "X-Amz-SignedHeaders", valid_627501 result.add "header", section ## parameters in `formData` object: ## DryRun: JBool @@ -136397,35 +136424,35 @@ proc validate_PostWithdrawByoipCidr_627489(path: JsonNode; query: JsonNode; ## Cidr: JString (required) ## : The address range, in CIDR notation. section = newJObject() - var valid_627500 = formData.getOrDefault("DryRun") - valid_627500 = validateParameter(valid_627500, JBool, required = false, default = nil) - if valid_627500 != nil: - section.add "DryRun", valid_627500 + var valid_627502 = formData.getOrDefault("DryRun") + valid_627502 = validateParameter(valid_627502, JBool, required = false, default = nil) + if valid_627502 != nil: + section.add "DryRun", valid_627502 assert formData != nil, "formData argument is necessary due to required `Cidr` field" - var valid_627501 = formData.getOrDefault("Cidr") - valid_627501 = validateParameter(valid_627501, JString, required = true, + var valid_627503 = formData.getOrDefault("Cidr") + valid_627503 = validateParameter(valid_627503, JString, required = true, default = nil) - if valid_627501 != nil: - section.add "Cidr", valid_627501 + if valid_627503 != nil: + section.add "Cidr", valid_627503 result.add "formData", section if body != nil: result.add "body", body -proc call*(call_627502: Call_PostWithdrawByoipCidr_627488; path: JsonNode; +proc call*(call_627504: Call_PostWithdrawByoipCidr_627490; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Stops advertising an address range that is provisioned as an address pool.

    You can perform this operation at most once every 10 seconds, even if you specify different address ranges each time.

    It can take a few minutes before traffic to the specified addresses stops routing to AWS because of BGP propagation delays.

    ## - let valid = call_627502.validator(path, query, header, formData, body) - let scheme = call_627502.pickScheme + let valid = call_627504.validator(path, query, header, formData, body) + let scheme = call_627504.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_627502.url(scheme.get, call_627502.host, call_627502.base, - call_627502.route, valid.getOrDefault("path"), + let url = call_627504.url(scheme.get, call_627504.host, call_627504.base, + call_627504.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_627502, url, valid) + result = atozHook(call_627504, url, valid) -proc call*(call_627503: Call_PostWithdrawByoipCidr_627488; Cidr: string; +proc call*(call_627505: Call_PostWithdrawByoipCidr_627490; Cidr: string; DryRun: bool = false; Action: string = "WithdrawByoipCidr"; Version: string = "2016-11-15"): Recallable = ## postWithdrawByoipCidr @@ -136436,22 +136463,22 @@ proc call*(call_627503: Call_PostWithdrawByoipCidr_627488; Cidr: string; ## : The address range, in CIDR notation. ## Action: string (required) ## Version: string (required) - var query_627504 = newJObject() - var formData_627505 = newJObject() - add(formData_627505, "DryRun", newJBool(DryRun)) - add(formData_627505, "Cidr", newJString(Cidr)) - add(query_627504, "Action", newJString(Action)) - add(query_627504, "Version", newJString(Version)) - result = call_627503.call(nil, query_627504, nil, formData_627505, nil) + var query_627506 = newJObject() + var formData_627507 = newJObject() + add(formData_627507, "DryRun", newJBool(DryRun)) + add(formData_627507, "Cidr", newJString(Cidr)) + add(query_627506, "Action", newJString(Action)) + add(query_627506, "Version", newJString(Version)) + result = call_627505.call(nil, query_627506, nil, formData_627507, nil) -var postWithdrawByoipCidr* = Call_PostWithdrawByoipCidr_627488( +var postWithdrawByoipCidr* = Call_PostWithdrawByoipCidr_627490( name: "postWithdrawByoipCidr", meth: HttpMethod.HttpPost, host: "ec2.amazonaws.com", route: "/#Action=WithdrawByoipCidr", - validator: validate_PostWithdrawByoipCidr_627489, base: "/", - url: url_PostWithdrawByoipCidr_627490, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PostWithdrawByoipCidr_627491, base: "/", + url: url_PostWithdrawByoipCidr_627492, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetWithdrawByoipCidr_627471 = ref object of OpenApiRestCall_610658 -proc url_GetWithdrawByoipCidr_627473(protocol: Scheme; host: string; base: string; + Call_GetWithdrawByoipCidr_627473 = ref object of OpenApiRestCall_610658 +proc url_GetWithdrawByoipCidr_627475(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -136461,7 +136488,7 @@ proc url_GetWithdrawByoipCidr_627473(protocol: Scheme; host: string; base: strin else: result.path = base & route -proc validate_GetWithdrawByoipCidr_627472(path: JsonNode; query: JsonNode; +proc validate_GetWithdrawByoipCidr_627474(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Stops advertising an address range that is provisioned as an address pool.

    You can perform this operation at most once every 10 seconds, even if you specify different address ranges each time.

    It can take a few minutes before traffic to the specified addresses stops routing to AWS because of BGP propagation delays.

    ## @@ -136477,25 +136504,25 @@ proc validate_GetWithdrawByoipCidr_627472(path: JsonNode; query: JsonNode; ## Cidr: JString (required) ## : The address range, in CIDR notation. section = newJObject() - var valid_627474 = query.getOrDefault("DryRun") - valid_627474 = validateParameter(valid_627474, JBool, required = false, default = nil) - if valid_627474 != nil: - section.add "DryRun", valid_627474 - var valid_627475 = query.getOrDefault("Action") - valid_627475 = validateParameter(valid_627475, JString, required = true, - default = newJString("WithdrawByoipCidr")) - if valid_627475 != nil: - section.add "Action", valid_627475 - var valid_627476 = query.getOrDefault("Version") - valid_627476 = validateParameter(valid_627476, JString, required = true, - default = newJString("2016-11-15")) + var valid_627476 = query.getOrDefault("DryRun") + valid_627476 = validateParameter(valid_627476, JBool, required = false, default = nil) if valid_627476 != nil: - section.add "Version", valid_627476 - var valid_627477 = query.getOrDefault("Cidr") + section.add "DryRun", valid_627476 + var valid_627477 = query.getOrDefault("Action") valid_627477 = validateParameter(valid_627477, JString, required = true, - default = nil) + default = newJString("WithdrawByoipCidr")) if valid_627477 != nil: - section.add "Cidr", valid_627477 + section.add "Action", valid_627477 + var valid_627478 = query.getOrDefault("Version") + valid_627478 = validateParameter(valid_627478, JString, required = true, + default = newJString("2016-11-15")) + if valid_627478 != nil: + section.add "Version", valid_627478 + var valid_627479 = query.getOrDefault("Cidr") + valid_627479 = validateParameter(valid_627479, JString, required = true, + default = nil) + if valid_627479 != nil: + section.add "Cidr", valid_627479 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -136506,61 +136533,61 @@ proc validate_GetWithdrawByoipCidr_627472(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_627478 = header.getOrDefault("X-Amz-Signature") - valid_627478 = validateParameter(valid_627478, JString, required = false, - default = nil) - if valid_627478 != nil: - section.add "X-Amz-Signature", valid_627478 - var valid_627479 = header.getOrDefault("X-Amz-Content-Sha256") - valid_627479 = validateParameter(valid_627479, JString, required = false, - default = nil) - if valid_627479 != nil: - section.add "X-Amz-Content-Sha256", valid_627479 - var valid_627480 = header.getOrDefault("X-Amz-Date") + var valid_627480 = header.getOrDefault("X-Amz-Signature") valid_627480 = validateParameter(valid_627480, JString, required = false, default = nil) if valid_627480 != nil: - section.add "X-Amz-Date", valid_627480 - var valid_627481 = header.getOrDefault("X-Amz-Credential") + section.add "X-Amz-Signature", valid_627480 + var valid_627481 = header.getOrDefault("X-Amz-Content-Sha256") valid_627481 = validateParameter(valid_627481, JString, required = false, default = nil) if valid_627481 != nil: - section.add "X-Amz-Credential", valid_627481 - var valid_627482 = header.getOrDefault("X-Amz-Security-Token") + section.add "X-Amz-Content-Sha256", valid_627481 + var valid_627482 = header.getOrDefault("X-Amz-Date") valid_627482 = validateParameter(valid_627482, JString, required = false, default = nil) if valid_627482 != nil: - section.add "X-Amz-Security-Token", valid_627482 - var valid_627483 = header.getOrDefault("X-Amz-Algorithm") + section.add "X-Amz-Date", valid_627482 + var valid_627483 = header.getOrDefault("X-Amz-Credential") valid_627483 = validateParameter(valid_627483, JString, required = false, default = nil) if valid_627483 != nil: - section.add "X-Amz-Algorithm", valid_627483 - var valid_627484 = header.getOrDefault("X-Amz-SignedHeaders") + section.add "X-Amz-Credential", valid_627483 + var valid_627484 = header.getOrDefault("X-Amz-Security-Token") valid_627484 = validateParameter(valid_627484, JString, required = false, default = nil) if valid_627484 != nil: - section.add "X-Amz-SignedHeaders", valid_627484 + section.add "X-Amz-Security-Token", valid_627484 + var valid_627485 = header.getOrDefault("X-Amz-Algorithm") + valid_627485 = validateParameter(valid_627485, JString, required = false, + default = nil) + if valid_627485 != nil: + section.add "X-Amz-Algorithm", valid_627485 + var valid_627486 = header.getOrDefault("X-Amz-SignedHeaders") + valid_627486 = validateParameter(valid_627486, JString, required = false, + default = nil) + if valid_627486 != nil: + section.add "X-Amz-SignedHeaders", valid_627486 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_627485: Call_GetWithdrawByoipCidr_627471; path: JsonNode; +proc call*(call_627487: Call_GetWithdrawByoipCidr_627473; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Stops advertising an address range that is provisioned as an address pool.

    You can perform this operation at most once every 10 seconds, even if you specify different address ranges each time.

    It can take a few minutes before traffic to the specified addresses stops routing to AWS because of BGP propagation delays.

    ## - let valid = call_627485.validator(path, query, header, formData, body) - let scheme = call_627485.pickScheme + let valid = call_627487.validator(path, query, header, formData, body) + let scheme = call_627487.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_627485.url(scheme.get, call_627485.host, call_627485.base, - call_627485.route, valid.getOrDefault("path"), + let url = call_627487.url(scheme.get, call_627487.host, call_627487.base, + call_627487.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_627485, url, valid) + result = atozHook(call_627487, url, valid) -proc call*(call_627486: Call_GetWithdrawByoipCidr_627471; Cidr: string; +proc call*(call_627488: Call_GetWithdrawByoipCidr_627473; Cidr: string; DryRun: bool = false; Action: string = "WithdrawByoipCidr"; Version: string = "2016-11-15"): Recallable = ## getWithdrawByoipCidr @@ -136571,18 +136598,18 @@ proc call*(call_627486: Call_GetWithdrawByoipCidr_627471; Cidr: string; ## Version: string (required) ## Cidr: string (required) ## : The address range, in CIDR notation. - var query_627487 = newJObject() - add(query_627487, "DryRun", newJBool(DryRun)) - add(query_627487, "Action", newJString(Action)) - add(query_627487, "Version", newJString(Version)) - add(query_627487, "Cidr", newJString(Cidr)) - result = call_627486.call(nil, query_627487, nil, nil, nil) - -var getWithdrawByoipCidr* = Call_GetWithdrawByoipCidr_627471( + var query_627489 = newJObject() + add(query_627489, "DryRun", newJBool(DryRun)) + add(query_627489, "Action", newJString(Action)) + add(query_627489, "Version", newJString(Version)) + add(query_627489, "Cidr", newJString(Cidr)) + result = call_627488.call(nil, query_627489, nil, nil, nil) + +var getWithdrawByoipCidr* = Call_GetWithdrawByoipCidr_627473( name: "getWithdrawByoipCidr", meth: HttpMethod.HttpGet, host: "ec2.amazonaws.com", route: "/#Action=WithdrawByoipCidr", - validator: validate_GetWithdrawByoipCidr_627472, base: "/", - url: url_GetWithdrawByoipCidr_627473, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetWithdrawByoipCidr_627474, base: "/", + url: url_GetWithdrawByoipCidr_627475, schemes: {Scheme.Https, Scheme.Http}) export rest diff --git a/src/atoz/mediatailor_20180423.nim b/src/atoz/mediatailor_20180423.nim index 47c84c5..4c66720 100644 --- a/src/atoz/mediatailor_20180423.nim +++ b/src/atoz/mediatailor_20180423.nim @@ -29,18 +29,17 @@ type url*: proc (protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri - OpenApiRestCall_612649 = ref object of OpenApiRestCall + OpenApiRestCall_610649 = ref object of OpenApiRestCall proc hash(scheme: Scheme): Hash {.used.} = result = hash(ord(scheme)) -proc clone[T: OpenApiRestCall_612649](t: T): T {.used.} = +proc clone[T: OpenApiRestCall_610649](t: T): T {.used.} = result = T(name: t.name, meth: t.meth, host: t.host, base: t.base, route: t.route, schemes: t.schemes, validator: t.validator, url: t.url) -proc pickScheme(t: OpenApiRestCall_612649): Option[Scheme] {.used.} = +proc pickScheme(t: OpenApiRestCall_610649): Option[Scheme] {.used.} = ## select a supported scheme from a set of candidates - for scheme in Scheme.low .. - Scheme.high: + for scheme in Scheme.low .. Scheme.high: if scheme notin t.schemes: continue if scheme in [Scheme.Https, Scheme.Wss]: @@ -54,20 +53,16 @@ proc validateParameter(js: JsonNode; kind: JsonNodeKind; required: bool; default: JsonNode = nil): JsonNode = ## ensure an input is of the correct json type and yield ## a suitable default value when appropriate - if js == - nil: + if js == nil: if default != nil: return validateParameter(default, kind, required = required) result = js - if result == - nil: + if result == nil: assert not required, $kind & " expected; received nil" if required: result = newJNull() else: - assert js.kind == - kind, $kind & " expected; received " & - $js.kind + assert js.kind == kind, $kind & " expected; received " & $js.kind type KeyVal {.used.} = tuple[key: string, val: string] @@ -134,8 +129,8 @@ const awsServiceName = "mediatailor" method atozHook(call: OpenApiRestCall; url: Uri; input: JsonNode): Recallable {.base.} type - Call_GetPlaybackConfiguration_612987 = ref object of OpenApiRestCall_612649 -proc url_GetPlaybackConfiguration_612989(protocol: Scheme; host: string; + Call_GetPlaybackConfiguration_610987 = ref object of OpenApiRestCall_610649 +proc url_GetPlaybackConfiguration_610989(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol @@ -149,14 +144,12 @@ proc url_GetPlaybackConfiguration_612989(protocol: Scheme; host: string; var hydrated = hydratePath(path, segments) if hydrated.isNone: raise newException(ValueError, "unable to fully hydrate path") - if base == - "/" and - hydrated.get.startsWith "/": + if base == "/" and hydrated.get.startsWith "/": result.path = hydrated.get else: result.path = base & hydrated.get -proc validate_GetPlaybackConfiguration_612988(path: JsonNode; query: JsonNode; +proc validate_GetPlaybackConfiguration_610988(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Returns the playback configuration for the specified name. ## @@ -167,11 +160,11 @@ proc validate_GetPlaybackConfiguration_612988(path: JsonNode; query: JsonNode; ## : The identifier for the playback configuration. section = newJObject() assert path != nil, "path argument is necessary due to required `Name` field" - var valid_613115 = path.getOrDefault("Name") - valid_613115 = validateParameter(valid_613115, JString, required = true, + var valid_611115 = path.getOrDefault("Name") + valid_611115 = validateParameter(valid_611115, JString, required = true, default = nil) - if valid_613115 != nil: - section.add "Name", valid_613115 + if valid_611115 != nil: + section.add "Name", valid_611115 result.add "path", section section = newJObject() result.add "query", section @@ -184,77 +177,77 @@ proc validate_GetPlaybackConfiguration_612988(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613116 = header.getOrDefault("X-Amz-Signature") - valid_613116 = validateParameter(valid_613116, JString, required = false, + var valid_611116 = header.getOrDefault("X-Amz-Signature") + valid_611116 = validateParameter(valid_611116, JString, required = false, default = nil) - if valid_613116 != nil: - section.add "X-Amz-Signature", valid_613116 - var valid_613117 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613117 = validateParameter(valid_613117, JString, required = false, + if valid_611116 != nil: + section.add "X-Amz-Signature", valid_611116 + var valid_611117 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611117 = validateParameter(valid_611117, JString, required = false, default = nil) - if valid_613117 != nil: - section.add "X-Amz-Content-Sha256", valid_613117 - var valid_613118 = header.getOrDefault("X-Amz-Date") - valid_613118 = validateParameter(valid_613118, JString, required = false, + if valid_611117 != nil: + section.add "X-Amz-Content-Sha256", valid_611117 + var valid_611118 = header.getOrDefault("X-Amz-Date") + valid_611118 = validateParameter(valid_611118, JString, required = false, default = nil) - if valid_613118 != nil: - section.add "X-Amz-Date", valid_613118 - var valid_613119 = header.getOrDefault("X-Amz-Credential") - valid_613119 = validateParameter(valid_613119, JString, required = false, + if valid_611118 != nil: + section.add "X-Amz-Date", valid_611118 + var valid_611119 = header.getOrDefault("X-Amz-Credential") + valid_611119 = validateParameter(valid_611119, JString, required = false, default = nil) - if valid_613119 != nil: - section.add "X-Amz-Credential", valid_613119 - var valid_613120 = header.getOrDefault("X-Amz-Security-Token") - valid_613120 = validateParameter(valid_613120, JString, required = false, + if valid_611119 != nil: + section.add "X-Amz-Credential", valid_611119 + var valid_611120 = header.getOrDefault("X-Amz-Security-Token") + valid_611120 = validateParameter(valid_611120, JString, required = false, default = nil) - if valid_613120 != nil: - section.add "X-Amz-Security-Token", valid_613120 - var valid_613121 = header.getOrDefault("X-Amz-Algorithm") - valid_613121 = validateParameter(valid_613121, JString, required = false, + if valid_611120 != nil: + section.add "X-Amz-Security-Token", valid_611120 + var valid_611121 = header.getOrDefault("X-Amz-Algorithm") + valid_611121 = validateParameter(valid_611121, JString, required = false, default = nil) - if valid_613121 != nil: - section.add "X-Amz-Algorithm", valid_613121 - var valid_613122 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613122 = validateParameter(valid_613122, JString, required = false, + if valid_611121 != nil: + section.add "X-Amz-Algorithm", valid_611121 + var valid_611122 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611122 = validateParameter(valid_611122, JString, required = false, default = nil) - if valid_613122 != nil: - section.add "X-Amz-SignedHeaders", valid_613122 + if valid_611122 != nil: + section.add "X-Amz-SignedHeaders", valid_611122 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_613145: Call_GetPlaybackConfiguration_612987; path: JsonNode; +proc call*(call_611145: Call_GetPlaybackConfiguration_610987; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Returns the playback configuration for the specified name. ## - let valid = call_613145.validator(path, query, header, formData, body) - let scheme = call_613145.pickScheme + let valid = call_611145.validator(path, query, header, formData, body) + let scheme = call_611145.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613145.url(scheme.get, call_613145.host, call_613145.base, - call_613145.route, valid.getOrDefault("path"), + let url = call_611145.url(scheme.get, call_611145.host, call_611145.base, + call_611145.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613145, url, valid) + result = atozHook(call_611145, url, valid) -proc call*(call_613216: Call_GetPlaybackConfiguration_612987; Name: string): Recallable = +proc call*(call_611216: Call_GetPlaybackConfiguration_610987; Name: string): Recallable = ## getPlaybackConfiguration ## Returns the playback configuration for the specified name. ## Name: string (required) ## : The identifier for the playback configuration. - var path_613217 = newJObject() - add(path_613217, "Name", newJString(Name)) - result = call_613216.call(path_613217, nil, nil, nil, nil) + var path_611217 = newJObject() + add(path_611217, "Name", newJString(Name)) + result = call_611216.call(path_611217, nil, nil, nil, nil) -var getPlaybackConfiguration* = Call_GetPlaybackConfiguration_612987( +var getPlaybackConfiguration* = Call_GetPlaybackConfiguration_610987( name: "getPlaybackConfiguration", meth: HttpMethod.HttpGet, host: "api.mediatailor.amazonaws.com", route: "/playbackConfiguration/{Name}", - validator: validate_GetPlaybackConfiguration_612988, base: "/", - url: url_GetPlaybackConfiguration_612989, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetPlaybackConfiguration_610988, base: "/", + url: url_GetPlaybackConfiguration_610989, schemes: {Scheme.Https, Scheme.Http}) type - Call_DeletePlaybackConfiguration_613257 = ref object of OpenApiRestCall_612649 -proc url_DeletePlaybackConfiguration_613259(protocol: Scheme; host: string; + Call_DeletePlaybackConfiguration_611257 = ref object of OpenApiRestCall_610649 +proc url_DeletePlaybackConfiguration_611259(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -267,14 +260,12 @@ proc url_DeletePlaybackConfiguration_613259(protocol: Scheme; host: string; var hydrated = hydratePath(path, segments) if hydrated.isNone: raise newException(ValueError, "unable to fully hydrate path") - if base == - "/" and - hydrated.get.startsWith "/": + if base == "/" and hydrated.get.startsWith "/": result.path = hydrated.get else: result.path = base & hydrated.get -proc validate_DeletePlaybackConfiguration_613258(path: JsonNode; query: JsonNode; +proc validate_DeletePlaybackConfiguration_611258(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the playback configuration for the specified name. ## @@ -285,11 +276,11 @@ proc validate_DeletePlaybackConfiguration_613258(path: JsonNode; query: JsonNode ## : The identifier for the playback configuration. section = newJObject() assert path != nil, "path argument is necessary due to required `Name` field" - var valid_613260 = path.getOrDefault("Name") - valid_613260 = validateParameter(valid_613260, JString, required = true, + var valid_611260 = path.getOrDefault("Name") + valid_611260 = validateParameter(valid_611260, JString, required = true, default = nil) - if valid_613260 != nil: - section.add "Name", valid_613260 + if valid_611260 != nil: + section.add "Name", valid_611260 result.add "path", section section = newJObject() result.add "query", section @@ -302,90 +293,88 @@ proc validate_DeletePlaybackConfiguration_613258(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613261 = header.getOrDefault("X-Amz-Signature") - valid_613261 = validateParameter(valid_613261, JString, required = false, + var valid_611261 = header.getOrDefault("X-Amz-Signature") + valid_611261 = validateParameter(valid_611261, JString, required = false, default = nil) - if valid_613261 != nil: - section.add "X-Amz-Signature", valid_613261 - var valid_613262 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613262 = validateParameter(valid_613262, JString, required = false, + if valid_611261 != nil: + section.add "X-Amz-Signature", valid_611261 + var valid_611262 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611262 = validateParameter(valid_611262, JString, required = false, default = nil) - if valid_613262 != nil: - section.add "X-Amz-Content-Sha256", valid_613262 - var valid_613263 = header.getOrDefault("X-Amz-Date") - valid_613263 = validateParameter(valid_613263, JString, required = false, + if valid_611262 != nil: + section.add "X-Amz-Content-Sha256", valid_611262 + var valid_611263 = header.getOrDefault("X-Amz-Date") + valid_611263 = validateParameter(valid_611263, JString, required = false, default = nil) - if valid_613263 != nil: - section.add "X-Amz-Date", valid_613263 - var valid_613264 = header.getOrDefault("X-Amz-Credential") - valid_613264 = validateParameter(valid_613264, JString, required = false, + if valid_611263 != nil: + section.add "X-Amz-Date", valid_611263 + var valid_611264 = header.getOrDefault("X-Amz-Credential") + valid_611264 = validateParameter(valid_611264, JString, required = false, default = nil) - if valid_613264 != nil: - section.add "X-Amz-Credential", valid_613264 - var valid_613265 = header.getOrDefault("X-Amz-Security-Token") - valid_613265 = validateParameter(valid_613265, JString, required = false, + if valid_611264 != nil: + section.add "X-Amz-Credential", valid_611264 + var valid_611265 = header.getOrDefault("X-Amz-Security-Token") + valid_611265 = validateParameter(valid_611265, JString, required = false, default = nil) - if valid_613265 != nil: - section.add "X-Amz-Security-Token", valid_613265 - var valid_613266 = header.getOrDefault("X-Amz-Algorithm") - valid_613266 = validateParameter(valid_613266, JString, required = false, + if valid_611265 != nil: + section.add "X-Amz-Security-Token", valid_611265 + var valid_611266 = header.getOrDefault("X-Amz-Algorithm") + valid_611266 = validateParameter(valid_611266, JString, required = false, default = nil) - if valid_613266 != nil: - section.add "X-Amz-Algorithm", valid_613266 - var valid_613267 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613267 = validateParameter(valid_613267, JString, required = false, + if valid_611266 != nil: + section.add "X-Amz-Algorithm", valid_611266 + var valid_611267 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611267 = validateParameter(valid_611267, JString, required = false, default = nil) - if valid_613267 != nil: - section.add "X-Amz-SignedHeaders", valid_613267 + if valid_611267 != nil: + section.add "X-Amz-SignedHeaders", valid_611267 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_613268: Call_DeletePlaybackConfiguration_613257; path: JsonNode; +proc call*(call_611268: Call_DeletePlaybackConfiguration_611257; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the playback configuration for the specified name. ## - let valid = call_613268.validator(path, query, header, formData, body) - let scheme = call_613268.pickScheme + let valid = call_611268.validator(path, query, header, formData, body) + let scheme = call_611268.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613268.url(scheme.get, call_613268.host, call_613268.base, - call_613268.route, valid.getOrDefault("path"), + let url = call_611268.url(scheme.get, call_611268.host, call_611268.base, + call_611268.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613268, url, valid) + result = atozHook(call_611268, url, valid) -proc call*(call_613269: Call_DeletePlaybackConfiguration_613257; Name: string): Recallable = +proc call*(call_611269: Call_DeletePlaybackConfiguration_611257; Name: string): Recallable = ## deletePlaybackConfiguration ## Deletes the playback configuration for the specified name. ## Name: string (required) ## : The identifier for the playback configuration. - var path_613270 = newJObject() - add(path_613270, "Name", newJString(Name)) - result = call_613269.call(path_613270, nil, nil, nil, nil) + var path_611270 = newJObject() + add(path_611270, "Name", newJString(Name)) + result = call_611269.call(path_611270, nil, nil, nil, nil) -var deletePlaybackConfiguration* = Call_DeletePlaybackConfiguration_613257( +var deletePlaybackConfiguration* = Call_DeletePlaybackConfiguration_611257( name: "deletePlaybackConfiguration", meth: HttpMethod.HttpDelete, host: "api.mediatailor.amazonaws.com", route: "/playbackConfiguration/{Name}", - validator: validate_DeletePlaybackConfiguration_613258, base: "/", - url: url_DeletePlaybackConfiguration_613259, + validator: validate_DeletePlaybackConfiguration_611258, base: "/", + url: url_DeletePlaybackConfiguration_611259, schemes: {Scheme.Https, Scheme.Http}) type - Call_ListPlaybackConfigurations_613271 = ref object of OpenApiRestCall_612649 -proc url_ListPlaybackConfigurations_613273(protocol: Scheme; host: string; + Call_ListPlaybackConfigurations_611271 = ref object of OpenApiRestCall_610649 +proc url_ListPlaybackConfigurations_611273(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_ListPlaybackConfigurations_613272(path: JsonNode; query: JsonNode; +proc validate_ListPlaybackConfigurations_611272(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Returns a list of the playback configurations defined in AWS Elemental MediaTailor. You can specify a maximum number of configurations to return at a time. The default maximum is 50. Results are returned in pagefuls. If MediaTailor has more configurations than the specified maximum, it provides parameters in the response that you can use to retrieve the next pageful. ## @@ -399,15 +388,15 @@ proc validate_ListPlaybackConfigurations_613272(path: JsonNode; query: JsonNode; ## NextToken: JString ## : Pagination token returned by the GET list request when results exceed the maximum allowed. Use the token to fetch the next page of results. section = newJObject() - var valid_613274 = query.getOrDefault("MaxResults") - valid_613274 = validateParameter(valid_613274, JInt, required = false, default = nil) - if valid_613274 != nil: - section.add "MaxResults", valid_613274 - var valid_613275 = query.getOrDefault("NextToken") - valid_613275 = validateParameter(valid_613275, JString, required = false, + var valid_611274 = query.getOrDefault("MaxResults") + valid_611274 = validateParameter(valid_611274, JInt, required = false, default = nil) + if valid_611274 != nil: + section.add "MaxResults", valid_611274 + var valid_611275 = query.getOrDefault("NextToken") + valid_611275 = validateParameter(valid_611275, JString, required = false, default = nil) - if valid_613275 != nil: - section.add "NextToken", valid_613275 + if valid_611275 != nil: + section.add "NextToken", valid_611275 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -418,61 +407,61 @@ proc validate_ListPlaybackConfigurations_613272(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613276 = header.getOrDefault("X-Amz-Signature") - valid_613276 = validateParameter(valid_613276, JString, required = false, + var valid_611276 = header.getOrDefault("X-Amz-Signature") + valid_611276 = validateParameter(valid_611276, JString, required = false, default = nil) - if valid_613276 != nil: - section.add "X-Amz-Signature", valid_613276 - var valid_613277 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613277 = validateParameter(valid_613277, JString, required = false, + if valid_611276 != nil: + section.add "X-Amz-Signature", valid_611276 + var valid_611277 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611277 = validateParameter(valid_611277, JString, required = false, default = nil) - if valid_613277 != nil: - section.add "X-Amz-Content-Sha256", valid_613277 - var valid_613278 = header.getOrDefault("X-Amz-Date") - valid_613278 = validateParameter(valid_613278, JString, required = false, + if valid_611277 != nil: + section.add "X-Amz-Content-Sha256", valid_611277 + var valid_611278 = header.getOrDefault("X-Amz-Date") + valid_611278 = validateParameter(valid_611278, JString, required = false, default = nil) - if valid_613278 != nil: - section.add "X-Amz-Date", valid_613278 - var valid_613279 = header.getOrDefault("X-Amz-Credential") - valid_613279 = validateParameter(valid_613279, JString, required = false, + if valid_611278 != nil: + section.add "X-Amz-Date", valid_611278 + var valid_611279 = header.getOrDefault("X-Amz-Credential") + valid_611279 = validateParameter(valid_611279, JString, required = false, default = nil) - if valid_613279 != nil: - section.add "X-Amz-Credential", valid_613279 - var valid_613280 = header.getOrDefault("X-Amz-Security-Token") - valid_613280 = validateParameter(valid_613280, JString, required = false, + if valid_611279 != nil: + section.add "X-Amz-Credential", valid_611279 + var valid_611280 = header.getOrDefault("X-Amz-Security-Token") + valid_611280 = validateParameter(valid_611280, JString, required = false, default = nil) - if valid_613280 != nil: - section.add "X-Amz-Security-Token", valid_613280 - var valid_613281 = header.getOrDefault("X-Amz-Algorithm") - valid_613281 = validateParameter(valid_613281, JString, required = false, + if valid_611280 != nil: + section.add "X-Amz-Security-Token", valid_611280 + var valid_611281 = header.getOrDefault("X-Amz-Algorithm") + valid_611281 = validateParameter(valid_611281, JString, required = false, default = nil) - if valid_613281 != nil: - section.add "X-Amz-Algorithm", valid_613281 - var valid_613282 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613282 = validateParameter(valid_613282, JString, required = false, + if valid_611281 != nil: + section.add "X-Amz-Algorithm", valid_611281 + var valid_611282 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611282 = validateParameter(valid_611282, JString, required = false, default = nil) - if valid_613282 != nil: - section.add "X-Amz-SignedHeaders", valid_613282 + if valid_611282 != nil: + section.add "X-Amz-SignedHeaders", valid_611282 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_613283: Call_ListPlaybackConfigurations_613271; path: JsonNode; +proc call*(call_611283: Call_ListPlaybackConfigurations_611271; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Returns a list of the playback configurations defined in AWS Elemental MediaTailor. You can specify a maximum number of configurations to return at a time. The default maximum is 50. Results are returned in pagefuls. If MediaTailor has more configurations than the specified maximum, it provides parameters in the response that you can use to retrieve the next pageful. ## - let valid = call_613283.validator(path, query, header, formData, body) - let scheme = call_613283.pickScheme + let valid = call_611283.validator(path, query, header, formData, body) + let scheme = call_611283.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613283.url(scheme.get, call_613283.host, call_613283.base, - call_613283.route, valid.getOrDefault("path"), + let url = call_611283.url(scheme.get, call_611283.host, call_611283.base, + call_611283.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613283, url, valid) + result = atozHook(call_611283, url, valid) -proc call*(call_613284: Call_ListPlaybackConfigurations_613271; +proc call*(call_611284: Call_ListPlaybackConfigurations_611271; MaxResults: int = 0; NextToken: string = ""): Recallable = ## listPlaybackConfigurations ## Returns a list of the playback configurations defined in AWS Elemental MediaTailor. You can specify a maximum number of configurations to return at a time. The default maximum is 50. Results are returned in pagefuls. If MediaTailor has more configurations than the specified maximum, it provides parameters in the response that you can use to retrieve the next pageful. @@ -480,20 +469,20 @@ proc call*(call_613284: Call_ListPlaybackConfigurations_613271; ## : Maximum number of records to return. ## NextToken: string ## : Pagination token returned by the GET list request when results exceed the maximum allowed. Use the token to fetch the next page of results. - var query_613285 = newJObject() - add(query_613285, "MaxResults", newJInt(MaxResults)) - add(query_613285, "NextToken", newJString(NextToken)) - result = call_613284.call(nil, query_613285, nil, nil, nil) + var query_611285 = newJObject() + add(query_611285, "MaxResults", newJInt(MaxResults)) + add(query_611285, "NextToken", newJString(NextToken)) + result = call_611284.call(nil, query_611285, nil, nil, nil) -var listPlaybackConfigurations* = Call_ListPlaybackConfigurations_613271( +var listPlaybackConfigurations* = Call_ListPlaybackConfigurations_611271( name: "listPlaybackConfigurations", meth: HttpMethod.HttpGet, host: "api.mediatailor.amazonaws.com", route: "/playbackConfigurations", - validator: validate_ListPlaybackConfigurations_613272, base: "/", - url: url_ListPlaybackConfigurations_613273, + validator: validate_ListPlaybackConfigurations_611272, base: "/", + url: url_ListPlaybackConfigurations_611273, schemes: {Scheme.Https, Scheme.Http}) type - Call_TagResource_613300 = ref object of OpenApiRestCall_612649 -proc url_TagResource_613302(protocol: Scheme; host: string; base: string; + Call_TagResource_611300 = ref object of OpenApiRestCall_610649 +proc url_TagResource_611302(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -506,14 +495,12 @@ proc url_TagResource_613302(protocol: Scheme; host: string; base: string; var hydrated = hydratePath(path, segments) if hydrated.isNone: raise newException(ValueError, "unable to fully hydrate path") - if base == - "/" and - hydrated.get.startsWith "/": + if base == "/" and hydrated.get.startsWith "/": result.path = hydrated.get else: result.path = base & hydrated.get -proc validate_TagResource_613301(path: JsonNode; query: JsonNode; header: JsonNode; +proc validate_TagResource_611301(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Adds tags to the specified playback configuration resource. You can specify one or more tags to add. ## @@ -525,11 +512,11 @@ proc validate_TagResource_613301(path: JsonNode; query: JsonNode; header: JsonNo section = newJObject() assert path != nil, "path argument is necessary due to required `ResourceArn` field" - var valid_613303 = path.getOrDefault("ResourceArn") - valid_613303 = validateParameter(valid_613303, JString, required = true, + var valid_611303 = path.getOrDefault("ResourceArn") + valid_611303 = validateParameter(valid_611303, JString, required = true, default = nil) - if valid_613303 != nil: - section.add "ResourceArn", valid_613303 + if valid_611303 != nil: + section.add "ResourceArn", valid_611303 result.add "path", section section = newJObject() result.add "query", section @@ -542,41 +529,41 @@ proc validate_TagResource_613301(path: JsonNode; query: JsonNode; header: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613304 = header.getOrDefault("X-Amz-Signature") - valid_613304 = validateParameter(valid_613304, JString, required = false, + var valid_611304 = header.getOrDefault("X-Amz-Signature") + valid_611304 = validateParameter(valid_611304, JString, required = false, default = nil) - if valid_613304 != nil: - section.add "X-Amz-Signature", valid_613304 - var valid_613305 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613305 = validateParameter(valid_613305, JString, required = false, + if valid_611304 != nil: + section.add "X-Amz-Signature", valid_611304 + var valid_611305 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611305 = validateParameter(valid_611305, JString, required = false, default = nil) - if valid_613305 != nil: - section.add "X-Amz-Content-Sha256", valid_613305 - var valid_613306 = header.getOrDefault("X-Amz-Date") - valid_613306 = validateParameter(valid_613306, JString, required = false, + if valid_611305 != nil: + section.add "X-Amz-Content-Sha256", valid_611305 + var valid_611306 = header.getOrDefault("X-Amz-Date") + valid_611306 = validateParameter(valid_611306, JString, required = false, default = nil) - if valid_613306 != nil: - section.add "X-Amz-Date", valid_613306 - var valid_613307 = header.getOrDefault("X-Amz-Credential") - valid_613307 = validateParameter(valid_613307, JString, required = false, + if valid_611306 != nil: + section.add "X-Amz-Date", valid_611306 + var valid_611307 = header.getOrDefault("X-Amz-Credential") + valid_611307 = validateParameter(valid_611307, JString, required = false, default = nil) - if valid_613307 != nil: - section.add "X-Amz-Credential", valid_613307 - var valid_613308 = header.getOrDefault("X-Amz-Security-Token") - valid_613308 = validateParameter(valid_613308, JString, required = false, + if valid_611307 != nil: + section.add "X-Amz-Credential", valid_611307 + var valid_611308 = header.getOrDefault("X-Amz-Security-Token") + valid_611308 = validateParameter(valid_611308, JString, required = false, default = nil) - if valid_613308 != nil: - section.add "X-Amz-Security-Token", valid_613308 - var valid_613309 = header.getOrDefault("X-Amz-Algorithm") - valid_613309 = validateParameter(valid_613309, JString, required = false, + if valid_611308 != nil: + section.add "X-Amz-Security-Token", valid_611308 + var valid_611309 = header.getOrDefault("X-Amz-Algorithm") + valid_611309 = validateParameter(valid_611309, JString, required = false, default = nil) - if valid_613309 != nil: - section.add "X-Amz-Algorithm", valid_613309 - var valid_613310 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613310 = validateParameter(valid_613310, JString, required = false, + if valid_611309 != nil: + section.add "X-Amz-Algorithm", valid_611309 + var valid_611310 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611310 = validateParameter(valid_611310, JString, required = false, default = nil) - if valid_613310 != nil: - section.add "X-Amz-SignedHeaders", valid_613310 + if valid_611310 != nil: + section.add "X-Amz-SignedHeaders", valid_611310 result.add "header", section section = newJObject() result.add "formData", section @@ -587,42 +574,42 @@ proc validate_TagResource_613301(path: JsonNode; query: JsonNode; header: JsonNo if body != nil: result.add "body", body -proc call*(call_613312: Call_TagResource_613300; path: JsonNode; query: JsonNode; +proc call*(call_611312: Call_TagResource_611300; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Adds tags to the specified playback configuration resource. You can specify one or more tags to add. ## - let valid = call_613312.validator(path, query, header, formData, body) - let scheme = call_613312.pickScheme + let valid = call_611312.validator(path, query, header, formData, body) + let scheme = call_611312.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613312.url(scheme.get, call_613312.host, call_613312.base, - call_613312.route, valid.getOrDefault("path"), + let url = call_611312.url(scheme.get, call_611312.host, call_611312.base, + call_611312.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613312, url, valid) + result = atozHook(call_611312, url, valid) -proc call*(call_613313: Call_TagResource_613300; ResourceArn: string; body: JsonNode): Recallable = +proc call*(call_611313: Call_TagResource_611300; ResourceArn: string; body: JsonNode): Recallable = ## tagResource ## Adds tags to the specified playback configuration resource. You can specify one or more tags to add. ## ResourceArn: string (required) ## : The Amazon Resource Name (ARN) for the playback configuration. You can get this from the response to any playback configuration request. ## body: JObject (required) - var path_613314 = newJObject() - var body_613315 = newJObject() - add(path_613314, "ResourceArn", newJString(ResourceArn)) + var path_611314 = newJObject() + var body_611315 = newJObject() + add(path_611314, "ResourceArn", newJString(ResourceArn)) if body != nil: - body_613315 = body - result = call_613313.call(path_613314, nil, nil, nil, body_613315) + body_611315 = body + result = call_611313.call(path_611314, nil, nil, nil, body_611315) -var tagResource* = Call_TagResource_613300(name: "tagResource", +var tagResource* = Call_TagResource_611300(name: "tagResource", meth: HttpMethod.HttpPost, host: "api.mediatailor.amazonaws.com", route: "/tags/{ResourceArn}", - validator: validate_TagResource_613301, - base: "/", url: url_TagResource_613302, + validator: validate_TagResource_611301, + base: "/", url: url_TagResource_611302, schemes: {Scheme.Https, Scheme.Http}) type - Call_ListTagsForResource_613286 = ref object of OpenApiRestCall_612649 -proc url_ListTagsForResource_613288(protocol: Scheme; host: string; base: string; + Call_ListTagsForResource_611286 = ref object of OpenApiRestCall_610649 +proc url_ListTagsForResource_611288(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -635,14 +622,12 @@ proc url_ListTagsForResource_613288(protocol: Scheme; host: string; base: string var hydrated = hydratePath(path, segments) if hydrated.isNone: raise newException(ValueError, "unable to fully hydrate path") - if base == - "/" and - hydrated.get.startsWith "/": + if base == "/" and hydrated.get.startsWith "/": result.path = hydrated.get else: result.path = base & hydrated.get -proc validate_ListTagsForResource_613287(path: JsonNode; query: JsonNode; +proc validate_ListTagsForResource_611287(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Returns a list of the tags assigned to the specified playback configuration resource. @@ -655,11 +640,11 @@ proc validate_ListTagsForResource_613287(path: JsonNode; query: JsonNode; section = newJObject() assert path != nil, "path argument is necessary due to required `ResourceArn` field" - var valid_613289 = path.getOrDefault("ResourceArn") - valid_613289 = validateParameter(valid_613289, JString, required = true, + var valid_611289 = path.getOrDefault("ResourceArn") + valid_611289 = validateParameter(valid_611289, JString, required = true, default = nil) - if valid_613289 != nil: - section.add "ResourceArn", valid_613289 + if valid_611289 != nil: + section.add "ResourceArn", valid_611289 result.add "path", section section = newJObject() result.add "query", section @@ -672,90 +657,88 @@ proc validate_ListTagsForResource_613287(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613290 = header.getOrDefault("X-Amz-Signature") - valid_613290 = validateParameter(valid_613290, JString, required = false, + var valid_611290 = header.getOrDefault("X-Amz-Signature") + valid_611290 = validateParameter(valid_611290, JString, required = false, default = nil) - if valid_613290 != nil: - section.add "X-Amz-Signature", valid_613290 - var valid_613291 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613291 = validateParameter(valid_613291, JString, required = false, + if valid_611290 != nil: + section.add "X-Amz-Signature", valid_611290 + var valid_611291 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611291 = validateParameter(valid_611291, JString, required = false, default = nil) - if valid_613291 != nil: - section.add "X-Amz-Content-Sha256", valid_613291 - var valid_613292 = header.getOrDefault("X-Amz-Date") - valid_613292 = validateParameter(valid_613292, JString, required = false, + if valid_611291 != nil: + section.add "X-Amz-Content-Sha256", valid_611291 + var valid_611292 = header.getOrDefault("X-Amz-Date") + valid_611292 = validateParameter(valid_611292, JString, required = false, default = nil) - if valid_613292 != nil: - section.add "X-Amz-Date", valid_613292 - var valid_613293 = header.getOrDefault("X-Amz-Credential") - valid_613293 = validateParameter(valid_613293, JString, required = false, + if valid_611292 != nil: + section.add "X-Amz-Date", valid_611292 + var valid_611293 = header.getOrDefault("X-Amz-Credential") + valid_611293 = validateParameter(valid_611293, JString, required = false, default = nil) - if valid_613293 != nil: - section.add "X-Amz-Credential", valid_613293 - var valid_613294 = header.getOrDefault("X-Amz-Security-Token") - valid_613294 = validateParameter(valid_613294, JString, required = false, + if valid_611293 != nil: + section.add "X-Amz-Credential", valid_611293 + var valid_611294 = header.getOrDefault("X-Amz-Security-Token") + valid_611294 = validateParameter(valid_611294, JString, required = false, default = nil) - if valid_613294 != nil: - section.add "X-Amz-Security-Token", valid_613294 - var valid_613295 = header.getOrDefault("X-Amz-Algorithm") - valid_613295 = validateParameter(valid_613295, JString, required = false, + if valid_611294 != nil: + section.add "X-Amz-Security-Token", valid_611294 + var valid_611295 = header.getOrDefault("X-Amz-Algorithm") + valid_611295 = validateParameter(valid_611295, JString, required = false, default = nil) - if valid_613295 != nil: - section.add "X-Amz-Algorithm", valid_613295 - var valid_613296 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613296 = validateParameter(valid_613296, JString, required = false, + if valid_611295 != nil: + section.add "X-Amz-Algorithm", valid_611295 + var valid_611296 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611296 = validateParameter(valid_611296, JString, required = false, default = nil) - if valid_613296 != nil: - section.add "X-Amz-SignedHeaders", valid_613296 + if valid_611296 != nil: + section.add "X-Amz-SignedHeaders", valid_611296 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_613297: Call_ListTagsForResource_613286; path: JsonNode; +proc call*(call_611297: Call_ListTagsForResource_611286; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Returns a list of the tags assigned to the specified playback configuration resource. ## - let valid = call_613297.validator(path, query, header, formData, body) - let scheme = call_613297.pickScheme + let valid = call_611297.validator(path, query, header, formData, body) + let scheme = call_611297.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613297.url(scheme.get, call_613297.host, call_613297.base, - call_613297.route, valid.getOrDefault("path"), + let url = call_611297.url(scheme.get, call_611297.host, call_611297.base, + call_611297.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613297, url, valid) + result = atozHook(call_611297, url, valid) -proc call*(call_613298: Call_ListTagsForResource_613286; ResourceArn: string): Recallable = +proc call*(call_611298: Call_ListTagsForResource_611286; ResourceArn: string): Recallable = ## listTagsForResource ## Returns a list of the tags assigned to the specified playback configuration resource. ## ResourceArn: string (required) ## : The Amazon Resource Name (ARN) for the playback configuration. You can get this from the response to any playback configuration request. - var path_613299 = newJObject() - add(path_613299, "ResourceArn", newJString(ResourceArn)) - result = call_613298.call(path_613299, nil, nil, nil, nil) + var path_611299 = newJObject() + add(path_611299, "ResourceArn", newJString(ResourceArn)) + result = call_611298.call(path_611299, nil, nil, nil, nil) -var listTagsForResource* = Call_ListTagsForResource_613286( +var listTagsForResource* = Call_ListTagsForResource_611286( name: "listTagsForResource", meth: HttpMethod.HttpGet, host: "api.mediatailor.amazonaws.com", route: "/tags/{ResourceArn}", - validator: validate_ListTagsForResource_613287, base: "/", - url: url_ListTagsForResource_613288, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_ListTagsForResource_611287, base: "/", + url: url_ListTagsForResource_611288, schemes: {Scheme.Https, Scheme.Http}) type - Call_PutPlaybackConfiguration_613316 = ref object of OpenApiRestCall_612649 -proc url_PutPlaybackConfiguration_613318(protocol: Scheme; host: string; + Call_PutPlaybackConfiguration_611316 = ref object of OpenApiRestCall_610649 +proc url_PutPlaybackConfiguration_611318(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_PutPlaybackConfiguration_613317(path: JsonNode; query: JsonNode; +proc validate_PutPlaybackConfiguration_611317(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Adds a new playback configuration to AWS Elemental MediaTailor. ## @@ -774,41 +757,41 @@ proc validate_PutPlaybackConfiguration_613317(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613319 = header.getOrDefault("X-Amz-Signature") - valid_613319 = validateParameter(valid_613319, JString, required = false, + var valid_611319 = header.getOrDefault("X-Amz-Signature") + valid_611319 = validateParameter(valid_611319, JString, required = false, default = nil) - if valid_613319 != nil: - section.add "X-Amz-Signature", valid_613319 - var valid_613320 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613320 = validateParameter(valid_613320, JString, required = false, + if valid_611319 != nil: + section.add "X-Amz-Signature", valid_611319 + var valid_611320 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611320 = validateParameter(valid_611320, JString, required = false, default = nil) - if valid_613320 != nil: - section.add "X-Amz-Content-Sha256", valid_613320 - var valid_613321 = header.getOrDefault("X-Amz-Date") - valid_613321 = validateParameter(valid_613321, JString, required = false, + if valid_611320 != nil: + section.add "X-Amz-Content-Sha256", valid_611320 + var valid_611321 = header.getOrDefault("X-Amz-Date") + valid_611321 = validateParameter(valid_611321, JString, required = false, default = nil) - if valid_613321 != nil: - section.add "X-Amz-Date", valid_613321 - var valid_613322 = header.getOrDefault("X-Amz-Credential") - valid_613322 = validateParameter(valid_613322, JString, required = false, + if valid_611321 != nil: + section.add "X-Amz-Date", valid_611321 + var valid_611322 = header.getOrDefault("X-Amz-Credential") + valid_611322 = validateParameter(valid_611322, JString, required = false, default = nil) - if valid_613322 != nil: - section.add "X-Amz-Credential", valid_613322 - var valid_613323 = header.getOrDefault("X-Amz-Security-Token") - valid_613323 = validateParameter(valid_613323, JString, required = false, + if valid_611322 != nil: + section.add "X-Amz-Credential", valid_611322 + var valid_611323 = header.getOrDefault("X-Amz-Security-Token") + valid_611323 = validateParameter(valid_611323, JString, required = false, default = nil) - if valid_613323 != nil: - section.add "X-Amz-Security-Token", valid_613323 - var valid_613324 = header.getOrDefault("X-Amz-Algorithm") - valid_613324 = validateParameter(valid_613324, JString, required = false, + if valid_611323 != nil: + section.add "X-Amz-Security-Token", valid_611323 + var valid_611324 = header.getOrDefault("X-Amz-Algorithm") + valid_611324 = validateParameter(valid_611324, JString, required = false, default = nil) - if valid_613324 != nil: - section.add "X-Amz-Algorithm", valid_613324 - var valid_613325 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613325 = validateParameter(valid_613325, JString, required = false, + if valid_611324 != nil: + section.add "X-Amz-Algorithm", valid_611324 + var valid_611325 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611325 = validateParameter(valid_611325, JString, required = false, default = nil) - if valid_613325 != nil: - section.add "X-Amz-SignedHeaders", valid_613325 + if valid_611325 != nil: + section.add "X-Amz-SignedHeaders", valid_611325 result.add "header", section section = newJObject() result.add "formData", section @@ -819,36 +802,36 @@ proc validate_PutPlaybackConfiguration_613317(path: JsonNode; query: JsonNode; if body != nil: result.add "body", body -proc call*(call_613327: Call_PutPlaybackConfiguration_613316; path: JsonNode; +proc call*(call_611327: Call_PutPlaybackConfiguration_611316; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Adds a new playback configuration to AWS Elemental MediaTailor. ## - let valid = call_613327.validator(path, query, header, formData, body) - let scheme = call_613327.pickScheme + let valid = call_611327.validator(path, query, header, formData, body) + let scheme = call_611327.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613327.url(scheme.get, call_613327.host, call_613327.base, - call_613327.route, valid.getOrDefault("path"), + let url = call_611327.url(scheme.get, call_611327.host, call_611327.base, + call_611327.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613327, url, valid) + result = atozHook(call_611327, url, valid) -proc call*(call_613328: Call_PutPlaybackConfiguration_613316; body: JsonNode): Recallable = +proc call*(call_611328: Call_PutPlaybackConfiguration_611316; body: JsonNode): Recallable = ## putPlaybackConfiguration ## Adds a new playback configuration to AWS Elemental MediaTailor. ## body: JObject (required) - var body_613329 = newJObject() + var body_611329 = newJObject() if body != nil: - body_613329 = body - result = call_613328.call(nil, nil, nil, nil, body_613329) + body_611329 = body + result = call_611328.call(nil, nil, nil, nil, body_611329) -var putPlaybackConfiguration* = Call_PutPlaybackConfiguration_613316( +var putPlaybackConfiguration* = Call_PutPlaybackConfiguration_611316( name: "putPlaybackConfiguration", meth: HttpMethod.HttpPut, host: "api.mediatailor.amazonaws.com", route: "/playbackConfiguration", - validator: validate_PutPlaybackConfiguration_613317, base: "/", - url: url_PutPlaybackConfiguration_613318, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_PutPlaybackConfiguration_611317, base: "/", + url: url_PutPlaybackConfiguration_611318, schemes: {Scheme.Https, Scheme.Http}) type - Call_UntagResource_613330 = ref object of OpenApiRestCall_612649 -proc url_UntagResource_613332(protocol: Scheme; host: string; base: string; + Call_UntagResource_611330 = ref object of OpenApiRestCall_610649 +proc url_UntagResource_611332(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -862,14 +845,12 @@ proc url_UntagResource_613332(protocol: Scheme; host: string; base: string; var hydrated = hydratePath(path, segments) if hydrated.isNone: raise newException(ValueError, "unable to fully hydrate path") - if base == - "/" and - hydrated.get.startsWith "/": + if base == "/" and hydrated.get.startsWith "/": result.path = hydrated.get else: result.path = base & hydrated.get -proc validate_UntagResource_613331(path: JsonNode; query: JsonNode; header: JsonNode; +proc validate_UntagResource_611331(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Removes tags from the specified playback configuration resource. You can specify one or more tags to remove. ## @@ -881,21 +862,21 @@ proc validate_UntagResource_613331(path: JsonNode; query: JsonNode; header: Json section = newJObject() assert path != nil, "path argument is necessary due to required `ResourceArn` field" - var valid_613333 = path.getOrDefault("ResourceArn") - valid_613333 = validateParameter(valid_613333, JString, required = true, + var valid_611333 = path.getOrDefault("ResourceArn") + valid_611333 = validateParameter(valid_611333, JString, required = true, default = nil) - if valid_613333 != nil: - section.add "ResourceArn", valid_613333 + if valid_611333 != nil: + section.add "ResourceArn", valid_611333 result.add "path", section ## parameters in `query` object: ## tagKeys: JArray (required) ## : A comma-separated list of the tag keys to remove from the playback configuration. section = newJObject() assert query != nil, "query argument is necessary due to required `tagKeys` field" - var valid_613334 = query.getOrDefault("tagKeys") - valid_613334 = validateParameter(valid_613334, JArray, required = true, default = nil) - if valid_613334 != nil: - section.add "tagKeys", valid_613334 + var valid_611334 = query.getOrDefault("tagKeys") + valid_611334 = validateParameter(valid_611334, JArray, required = true, default = nil) + if valid_611334 != nil: + section.add "tagKeys", valid_611334 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -906,61 +887,61 @@ proc validate_UntagResource_613331(path: JsonNode; query: JsonNode; header: Json ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613335 = header.getOrDefault("X-Amz-Signature") - valid_613335 = validateParameter(valid_613335, JString, required = false, + var valid_611335 = header.getOrDefault("X-Amz-Signature") + valid_611335 = validateParameter(valid_611335, JString, required = false, default = nil) - if valid_613335 != nil: - section.add "X-Amz-Signature", valid_613335 - var valid_613336 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613336 = validateParameter(valid_613336, JString, required = false, + if valid_611335 != nil: + section.add "X-Amz-Signature", valid_611335 + var valid_611336 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611336 = validateParameter(valid_611336, JString, required = false, default = nil) - if valid_613336 != nil: - section.add "X-Amz-Content-Sha256", valid_613336 - var valid_613337 = header.getOrDefault("X-Amz-Date") - valid_613337 = validateParameter(valid_613337, JString, required = false, + if valid_611336 != nil: + section.add "X-Amz-Content-Sha256", valid_611336 + var valid_611337 = header.getOrDefault("X-Amz-Date") + valid_611337 = validateParameter(valid_611337, JString, required = false, default = nil) - if valid_613337 != nil: - section.add "X-Amz-Date", valid_613337 - var valid_613338 = header.getOrDefault("X-Amz-Credential") - valid_613338 = validateParameter(valid_613338, JString, required = false, + if valid_611337 != nil: + section.add "X-Amz-Date", valid_611337 + var valid_611338 = header.getOrDefault("X-Amz-Credential") + valid_611338 = validateParameter(valid_611338, JString, required = false, default = nil) - if valid_613338 != nil: - section.add "X-Amz-Credential", valid_613338 - var valid_613339 = header.getOrDefault("X-Amz-Security-Token") - valid_613339 = validateParameter(valid_613339, JString, required = false, + if valid_611338 != nil: + section.add "X-Amz-Credential", valid_611338 + var valid_611339 = header.getOrDefault("X-Amz-Security-Token") + valid_611339 = validateParameter(valid_611339, JString, required = false, default = nil) - if valid_613339 != nil: - section.add "X-Amz-Security-Token", valid_613339 - var valid_613340 = header.getOrDefault("X-Amz-Algorithm") - valid_613340 = validateParameter(valid_613340, JString, required = false, + if valid_611339 != nil: + section.add "X-Amz-Security-Token", valid_611339 + var valid_611340 = header.getOrDefault("X-Amz-Algorithm") + valid_611340 = validateParameter(valid_611340, JString, required = false, default = nil) - if valid_613340 != nil: - section.add "X-Amz-Algorithm", valid_613340 - var valid_613341 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613341 = validateParameter(valid_613341, JString, required = false, + if valid_611340 != nil: + section.add "X-Amz-Algorithm", valid_611340 + var valid_611341 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611341 = validateParameter(valid_611341, JString, required = false, default = nil) - if valid_613341 != nil: - section.add "X-Amz-SignedHeaders", valid_613341 + if valid_611341 != nil: + section.add "X-Amz-SignedHeaders", valid_611341 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_613342: Call_UntagResource_613330; path: JsonNode; query: JsonNode; +proc call*(call_611342: Call_UntagResource_611330; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Removes tags from the specified playback configuration resource. You can specify one or more tags to remove. ## - let valid = call_613342.validator(path, query, header, formData, body) - let scheme = call_613342.pickScheme + let valid = call_611342.validator(path, query, header, formData, body) + let scheme = call_611342.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613342.url(scheme.get, call_613342.host, call_613342.base, - call_613342.route, valid.getOrDefault("path"), + let url = call_611342.url(scheme.get, call_611342.host, call_611342.base, + call_611342.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613342, url, valid) + result = atozHook(call_611342, url, valid) -proc call*(call_613343: Call_UntagResource_613330; ResourceArn: string; +proc call*(call_611343: Call_UntagResource_611330; ResourceArn: string; tagKeys: JsonNode): Recallable = ## untagResource ## Removes tags from the specified playback configuration resource. You can specify one or more tags to remove. @@ -968,17 +949,17 @@ proc call*(call_613343: Call_UntagResource_613330; ResourceArn: string; ## : The Amazon Resource Name (ARN) for the playback configuration. You can get this from the response to any playback configuration request. ## tagKeys: JArray (required) ## : A comma-separated list of the tag keys to remove from the playback configuration. - var path_613344 = newJObject() - var query_613345 = newJObject() - add(path_613344, "ResourceArn", newJString(ResourceArn)) + var path_611344 = newJObject() + var query_611345 = newJObject() + add(path_611344, "ResourceArn", newJString(ResourceArn)) if tagKeys != nil: - query_613345.add "tagKeys", tagKeys - result = call_613343.call(path_613344, query_613345, nil, nil, nil) + query_611345.add "tagKeys", tagKeys + result = call_611343.call(path_611344, query_611345, nil, nil, nil) -var untagResource* = Call_UntagResource_613330(name: "untagResource", +var untagResource* = Call_UntagResource_611330(name: "untagResource", meth: HttpMethod.HttpDelete, host: "api.mediatailor.amazonaws.com", - route: "/tags/{ResourceArn}#tagKeys", validator: validate_UntagResource_613331, - base: "/", url: url_UntagResource_613332, schemes: {Scheme.Https, Scheme.Http}) + route: "/tags/{ResourceArn}#tagKeys", validator: validate_UntagResource_611331, + base: "/", url: url_UntagResource_611332, schemes: {Scheme.Https, Scheme.Http}) export rest diff --git a/src/atoz/securityhub_20181026.nim b/src/atoz/securityhub_20181026.nim index f0cbefc..87cfa0b 100644 --- a/src/atoz/securityhub_20181026.nim +++ b/src/atoz/securityhub_20181026.nim @@ -10,7 +10,7 @@ import ## name: Apache 2.0 License ## url: http://www.apache.org/licenses/ ## -##

    Security Hub provides you with a comprehensive view of the security state of your AWS environment and resources. It also provides you with the compliance status of your environment based on CIS AWS Foundations compliance checks. Security Hub collects security data from AWS accounts, services, and integrated third-party products and helps you analyze security trends in your environment to identify the highest priority security issues. For more information about Security Hub, see the AWS Security Hub User Guide .

    When you use operations in the Security Hub API, the requests are executed only in the AWS Region that is currently active or in the specific AWS Region that you specify in your request. Any configuration or settings change that results from the operation is applied only to that Region. To make the same change in other Regions, execute the same command for each Region to apply the change to.

    For example, if your Region is set to us-west-2, when you use CreateMembers to add a member account to Security Hub, the association of the member account with the master account is created only in the us-west-2 Region. Security Hub must be enabled for the member account in the same Region that the invitation was sent from.

    The following throttling limits apply to using Security Hub API operations.

    +##

    Security Hub provides you with a comprehensive view of the security state of your AWS environment and resources. It also provides you with the compliance status of your environment based on controls from supported standards. Security Hub collects security data from AWS accounts, services, and integrated third-party products and helps you analyze security trends in your environment to identify the highest priority security issues. For more information about Security Hub, see the AWS Security Hub User Guide .

    When you use operations in the Security Hub API, the requests are executed only in the AWS Region that is currently active or in the specific AWS Region that you specify in your request. Any configuration or settings change that results from the operation is applied only to that Region. To make the same change in other Regions, execute the same command for each Region to apply the change to.

    For example, if your Region is set to us-west-2, when you use CreateMembers to add a member account to Security Hub, the association of the member account with the master account is created only in the us-west-2 Region. Security Hub must be enabled for the member account in the same Region that the invitation was sent from.

    The following throttling limits apply to using Security Hub API operations.

    ## ## Amazon Web Services documentation ## https://docs.aws.amazon.com/securityhub/ @@ -29,18 +29,17 @@ type url*: proc (protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri - OpenApiRestCall_612658 = ref object of OpenApiRestCall + OpenApiRestCall_610658 = ref object of OpenApiRestCall proc hash(scheme: Scheme): Hash {.used.} = result = hash(ord(scheme)) -proc clone[T: OpenApiRestCall_612658](t: T): T {.used.} = +proc clone[T: OpenApiRestCall_610658](t: T): T {.used.} = result = T(name: t.name, meth: t.meth, host: t.host, base: t.base, route: t.route, schemes: t.schemes, validator: t.validator, url: t.url) -proc pickScheme(t: OpenApiRestCall_612658): Option[Scheme] {.used.} = +proc pickScheme(t: OpenApiRestCall_610658): Option[Scheme] {.used.} = ## select a supported scheme from a set of candidates - for scheme in Scheme.low .. - Scheme.high: + for scheme in Scheme.low .. Scheme.high: if scheme notin t.schemes: continue if scheme in [Scheme.Https, Scheme.Wss]: @@ -54,20 +53,16 @@ proc validateParameter(js: JsonNode; kind: JsonNodeKind; required: bool; default: JsonNode = nil): JsonNode = ## ensure an input is of the correct json type and yield ## a suitable default value when appropriate - if js == - nil: + if js == nil: if default != nil: return validateParameter(default, kind, required = required) result = js - if result == - nil: + if result == nil: assert not required, $kind & " expected; received nil" if required: result = newJNull() else: - assert js.kind == - kind, $kind & " expected; received " & - $js.kind + assert js.kind == kind, $kind & " expected; received " & $js.kind type KeyVal {.used.} = tuple[key: string, val: string] @@ -142,20 +137,18 @@ const awsServiceName = "securityhub" method atozHook(call: OpenApiRestCall; url: Uri; input: JsonNode): Recallable {.base.} type - Call_AcceptInvitation_613248 = ref object of OpenApiRestCall_612658 -proc url_AcceptInvitation_613250(protocol: Scheme; host: string; base: string; + Call_AcceptInvitation_611248 = ref object of OpenApiRestCall_610658 +proc url_AcceptInvitation_611250(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_AcceptInvitation_613249(path: JsonNode; query: JsonNode; +proc validate_AcceptInvitation_611249(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Accepts the invitation to be a member account and be monitored by the Security Hub master account that the invitation was sent from.

    When the member account accepts the invitation, permission is granted to the master account to view findings generated in the member account.

    @@ -175,41 +168,41 @@ proc validate_AcceptInvitation_613249(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613251 = header.getOrDefault("X-Amz-Signature") - valid_613251 = validateParameter(valid_613251, JString, required = false, - default = nil) - if valid_613251 != nil: - section.add "X-Amz-Signature", valid_613251 - var valid_613252 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613252 = validateParameter(valid_613252, JString, required = false, - default = nil) - if valid_613252 != nil: - section.add "X-Amz-Content-Sha256", valid_613252 - var valid_613253 = header.getOrDefault("X-Amz-Date") - valid_613253 = validateParameter(valid_613253, JString, required = false, - default = nil) - if valid_613253 != nil: - section.add "X-Amz-Date", valid_613253 - var valid_613254 = header.getOrDefault("X-Amz-Credential") - valid_613254 = validateParameter(valid_613254, JString, required = false, - default = nil) - if valid_613254 != nil: - section.add "X-Amz-Credential", valid_613254 - var valid_613255 = header.getOrDefault("X-Amz-Security-Token") - valid_613255 = validateParameter(valid_613255, JString, required = false, - default = nil) - if valid_613255 != nil: - section.add "X-Amz-Security-Token", valid_613255 - var valid_613256 = header.getOrDefault("X-Amz-Algorithm") - valid_613256 = validateParameter(valid_613256, JString, required = false, - default = nil) - if valid_613256 != nil: - section.add "X-Amz-Algorithm", valid_613256 - var valid_613257 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613257 = validateParameter(valid_613257, JString, required = false, - default = nil) - if valid_613257 != nil: - section.add "X-Amz-SignedHeaders", valid_613257 + var valid_611251 = header.getOrDefault("X-Amz-Signature") + valid_611251 = validateParameter(valid_611251, JString, required = false, + default = nil) + if valid_611251 != nil: + section.add "X-Amz-Signature", valid_611251 + var valid_611252 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611252 = validateParameter(valid_611252, JString, required = false, + default = nil) + if valid_611252 != nil: + section.add "X-Amz-Content-Sha256", valid_611252 + var valid_611253 = header.getOrDefault("X-Amz-Date") + valid_611253 = validateParameter(valid_611253, JString, required = false, + default = nil) + if valid_611253 != nil: + section.add "X-Amz-Date", valid_611253 + var valid_611254 = header.getOrDefault("X-Amz-Credential") + valid_611254 = validateParameter(valid_611254, JString, required = false, + default = nil) + if valid_611254 != nil: + section.add "X-Amz-Credential", valid_611254 + var valid_611255 = header.getOrDefault("X-Amz-Security-Token") + valid_611255 = validateParameter(valid_611255, JString, required = false, + default = nil) + if valid_611255 != nil: + section.add "X-Amz-Security-Token", valid_611255 + var valid_611256 = header.getOrDefault("X-Amz-Algorithm") + valid_611256 = validateParameter(valid_611256, JString, required = false, + default = nil) + if valid_611256 != nil: + section.add "X-Amz-Algorithm", valid_611256 + var valid_611257 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611257 = validateParameter(valid_611257, JString, required = false, + default = nil) + if valid_611257 != nil: + section.add "X-Amz-SignedHeaders", valid_611257 result.add "header", section section = newJObject() result.add "formData", section @@ -220,47 +213,45 @@ proc validate_AcceptInvitation_613249(path: JsonNode; query: JsonNode; if body != nil: result.add "body", body -proc call*(call_613259: Call_AcceptInvitation_613248; path: JsonNode; +proc call*(call_611259: Call_AcceptInvitation_611248; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Accepts the invitation to be a member account and be monitored by the Security Hub master account that the invitation was sent from.

    When the member account accepts the invitation, permission is granted to the master account to view findings generated in the member account.

    ## - let valid = call_613259.validator(path, query, header, formData, body) - let scheme = call_613259.pickScheme + let valid = call_611259.validator(path, query, header, formData, body) + let scheme = call_611259.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613259.url(scheme.get, call_613259.host, call_613259.base, - call_613259.route, valid.getOrDefault("path"), + let url = call_611259.url(scheme.get, call_611259.host, call_611259.base, + call_611259.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613259, url, valid) + result = atozHook(call_611259, url, valid) -proc call*(call_613260: Call_AcceptInvitation_613248; body: JsonNode): Recallable = +proc call*(call_611260: Call_AcceptInvitation_611248; body: JsonNode): Recallable = ## acceptInvitation ##

    Accepts the invitation to be a member account and be monitored by the Security Hub master account that the invitation was sent from.

    When the member account accepts the invitation, permission is granted to the master account to view findings generated in the member account.

    ## body: JObject (required) - var body_613261 = newJObject() + var body_611261 = newJObject() if body != nil: - body_613261 = body - result = call_613260.call(nil, nil, nil, nil, body_613261) + body_611261 = body + result = call_611260.call(nil, nil, nil, nil, body_611261) -var acceptInvitation* = Call_AcceptInvitation_613248(name: "acceptInvitation", +var acceptInvitation* = Call_AcceptInvitation_611248(name: "acceptInvitation", meth: HttpMethod.HttpPost, host: "securityhub.amazonaws.com", route: "/master", - validator: validate_AcceptInvitation_613249, base: "/", - url: url_AcceptInvitation_613250, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_AcceptInvitation_611249, base: "/", + url: url_AcceptInvitation_611250, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetMasterAccount_612996 = ref object of OpenApiRestCall_612658 -proc url_GetMasterAccount_612998(protocol: Scheme; host: string; base: string; + Call_GetMasterAccount_610996 = ref object of OpenApiRestCall_610658 +proc url_GetMasterAccount_610998(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_GetMasterAccount_612997(path: JsonNode; query: JsonNode; +proc validate_GetMasterAccount_610997(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Provides the details for the Security Hub master account for the current member account. @@ -280,86 +271,84 @@ proc validate_GetMasterAccount_612997(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613110 = header.getOrDefault("X-Amz-Signature") - valid_613110 = validateParameter(valid_613110, JString, required = false, - default = nil) - if valid_613110 != nil: - section.add "X-Amz-Signature", valid_613110 - var valid_613111 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613111 = validateParameter(valid_613111, JString, required = false, - default = nil) - if valid_613111 != nil: - section.add "X-Amz-Content-Sha256", valid_613111 - var valid_613112 = header.getOrDefault("X-Amz-Date") - valid_613112 = validateParameter(valid_613112, JString, required = false, - default = nil) - if valid_613112 != nil: - section.add "X-Amz-Date", valid_613112 - var valid_613113 = header.getOrDefault("X-Amz-Credential") - valid_613113 = validateParameter(valid_613113, JString, required = false, - default = nil) - if valid_613113 != nil: - section.add "X-Amz-Credential", valid_613113 - var valid_613114 = header.getOrDefault("X-Amz-Security-Token") - valid_613114 = validateParameter(valid_613114, JString, required = false, - default = nil) - if valid_613114 != nil: - section.add "X-Amz-Security-Token", valid_613114 - var valid_613115 = header.getOrDefault("X-Amz-Algorithm") - valid_613115 = validateParameter(valid_613115, JString, required = false, - default = nil) - if valid_613115 != nil: - section.add "X-Amz-Algorithm", valid_613115 - var valid_613116 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613116 = validateParameter(valid_613116, JString, required = false, - default = nil) - if valid_613116 != nil: - section.add "X-Amz-SignedHeaders", valid_613116 + var valid_611110 = header.getOrDefault("X-Amz-Signature") + valid_611110 = validateParameter(valid_611110, JString, required = false, + default = nil) + if valid_611110 != nil: + section.add "X-Amz-Signature", valid_611110 + var valid_611111 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611111 = validateParameter(valid_611111, JString, required = false, + default = nil) + if valid_611111 != nil: + section.add "X-Amz-Content-Sha256", valid_611111 + var valid_611112 = header.getOrDefault("X-Amz-Date") + valid_611112 = validateParameter(valid_611112, JString, required = false, + default = nil) + if valid_611112 != nil: + section.add "X-Amz-Date", valid_611112 + var valid_611113 = header.getOrDefault("X-Amz-Credential") + valid_611113 = validateParameter(valid_611113, JString, required = false, + default = nil) + if valid_611113 != nil: + section.add "X-Amz-Credential", valid_611113 + var valid_611114 = header.getOrDefault("X-Amz-Security-Token") + valid_611114 = validateParameter(valid_611114, JString, required = false, + default = nil) + if valid_611114 != nil: + section.add "X-Amz-Security-Token", valid_611114 + var valid_611115 = header.getOrDefault("X-Amz-Algorithm") + valid_611115 = validateParameter(valid_611115, JString, required = false, + default = nil) + if valid_611115 != nil: + section.add "X-Amz-Algorithm", valid_611115 + var valid_611116 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611116 = validateParameter(valid_611116, JString, required = false, + default = nil) + if valid_611116 != nil: + section.add "X-Amz-SignedHeaders", valid_611116 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_613139: Call_GetMasterAccount_612996; path: JsonNode; +proc call*(call_611139: Call_GetMasterAccount_610996; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Provides the details for the Security Hub master account for the current member account. ## - let valid = call_613139.validator(path, query, header, formData, body) - let scheme = call_613139.pickScheme + let valid = call_611139.validator(path, query, header, formData, body) + let scheme = call_611139.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613139.url(scheme.get, call_613139.host, call_613139.base, - call_613139.route, valid.getOrDefault("path"), + let url = call_611139.url(scheme.get, call_611139.host, call_611139.base, + call_611139.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613139, url, valid) + result = atozHook(call_611139, url, valid) -proc call*(call_613210: Call_GetMasterAccount_612996): Recallable = +proc call*(call_611210: Call_GetMasterAccount_610996): Recallable = ## getMasterAccount ## Provides the details for the Security Hub master account for the current member account. - result = call_613210.call(nil, nil, nil, nil, nil) + result = call_611210.call(nil, nil, nil, nil, nil) -var getMasterAccount* = Call_GetMasterAccount_612996(name: "getMasterAccount", +var getMasterAccount* = Call_GetMasterAccount_610996(name: "getMasterAccount", meth: HttpMethod.HttpGet, host: "securityhub.amazonaws.com", route: "/master", - validator: validate_GetMasterAccount_612997, base: "/", - url: url_GetMasterAccount_612998, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetMasterAccount_610997, base: "/", + url: url_GetMasterAccount_610998, schemes: {Scheme.Https, Scheme.Http}) type - Call_BatchDisableStandards_613263 = ref object of OpenApiRestCall_612658 -proc url_BatchDisableStandards_613265(protocol: Scheme; host: string; base: string; + Call_BatchDisableStandards_611263 = ref object of OpenApiRestCall_610658 +proc url_BatchDisableStandards_611265(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_BatchDisableStandards_613264(path: JsonNode; query: JsonNode; +proc validate_BatchDisableStandards_611264(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = - ##

    Disables the standards specified by the provided StandardsSubscriptionArns.

    For more information, see Standards Supported in AWS Security Hub.

    + ##

    Disables the standards specified by the provided StandardsSubscriptionArns.

    For more information, see Compliance Standards section of the AWS Security Hub User Guide.

    ## var section: JsonNode result = newJObject() @@ -376,41 +365,41 @@ proc validate_BatchDisableStandards_613264(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613266 = header.getOrDefault("X-Amz-Signature") - valid_613266 = validateParameter(valid_613266, JString, required = false, - default = nil) - if valid_613266 != nil: - section.add "X-Amz-Signature", valid_613266 - var valid_613267 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613267 = validateParameter(valid_613267, JString, required = false, - default = nil) - if valid_613267 != nil: - section.add "X-Amz-Content-Sha256", valid_613267 - var valid_613268 = header.getOrDefault("X-Amz-Date") - valid_613268 = validateParameter(valid_613268, JString, required = false, - default = nil) - if valid_613268 != nil: - section.add "X-Amz-Date", valid_613268 - var valid_613269 = header.getOrDefault("X-Amz-Credential") - valid_613269 = validateParameter(valid_613269, JString, required = false, - default = nil) - if valid_613269 != nil: - section.add "X-Amz-Credential", valid_613269 - var valid_613270 = header.getOrDefault("X-Amz-Security-Token") - valid_613270 = validateParameter(valid_613270, JString, required = false, - default = nil) - if valid_613270 != nil: - section.add "X-Amz-Security-Token", valid_613270 - var valid_613271 = header.getOrDefault("X-Amz-Algorithm") - valid_613271 = validateParameter(valid_613271, JString, required = false, - default = nil) - if valid_613271 != nil: - section.add "X-Amz-Algorithm", valid_613271 - var valid_613272 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613272 = validateParameter(valid_613272, JString, required = false, - default = nil) - if valid_613272 != nil: - section.add "X-Amz-SignedHeaders", valid_613272 + var valid_611266 = header.getOrDefault("X-Amz-Signature") + valid_611266 = validateParameter(valid_611266, JString, required = false, + default = nil) + if valid_611266 != nil: + section.add "X-Amz-Signature", valid_611266 + var valid_611267 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611267 = validateParameter(valid_611267, JString, required = false, + default = nil) + if valid_611267 != nil: + section.add "X-Amz-Content-Sha256", valid_611267 + var valid_611268 = header.getOrDefault("X-Amz-Date") + valid_611268 = validateParameter(valid_611268, JString, required = false, + default = nil) + if valid_611268 != nil: + section.add "X-Amz-Date", valid_611268 + var valid_611269 = header.getOrDefault("X-Amz-Credential") + valid_611269 = validateParameter(valid_611269, JString, required = false, + default = nil) + if valid_611269 != nil: + section.add "X-Amz-Credential", valid_611269 + var valid_611270 = header.getOrDefault("X-Amz-Security-Token") + valid_611270 = validateParameter(valid_611270, JString, required = false, + default = nil) + if valid_611270 != nil: + section.add "X-Amz-Security-Token", valid_611270 + var valid_611271 = header.getOrDefault("X-Amz-Algorithm") + valid_611271 = validateParameter(valid_611271, JString, required = false, + default = nil) + if valid_611271 != nil: + section.add "X-Amz-Algorithm", valid_611271 + var valid_611272 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611272 = validateParameter(valid_611272, JString, required = false, + default = nil) + if valid_611272 != nil: + section.add "X-Amz-SignedHeaders", valid_611272 result.add "header", section section = newJObject() result.add "formData", section @@ -421,50 +410,48 @@ proc validate_BatchDisableStandards_613264(path: JsonNode; query: JsonNode; if body != nil: result.add "body", body -proc call*(call_613274: Call_BatchDisableStandards_613263; path: JsonNode; +proc call*(call_611274: Call_BatchDisableStandards_611263; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = - ##

    Disables the standards specified by the provided StandardsSubscriptionArns.

    For more information, see Standards Supported in AWS Security Hub.

    + ##

    Disables the standards specified by the provided StandardsSubscriptionArns.

    For more information, see Compliance Standards section of the AWS Security Hub User Guide.

    ## - let valid = call_613274.validator(path, query, header, formData, body) - let scheme = call_613274.pickScheme + let valid = call_611274.validator(path, query, header, formData, body) + let scheme = call_611274.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613274.url(scheme.get, call_613274.host, call_613274.base, - call_613274.route, valid.getOrDefault("path"), + let url = call_611274.url(scheme.get, call_611274.host, call_611274.base, + call_611274.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613274, url, valid) + result = atozHook(call_611274, url, valid) -proc call*(call_613275: Call_BatchDisableStandards_613263; body: JsonNode): Recallable = +proc call*(call_611275: Call_BatchDisableStandards_611263; body: JsonNode): Recallable = ## batchDisableStandards - ##

    Disables the standards specified by the provided StandardsSubscriptionArns.

    For more information, see Standards Supported in AWS Security Hub.

    + ##

    Disables the standards specified by the provided StandardsSubscriptionArns.

    For more information, see Compliance Standards section of the AWS Security Hub User Guide.

    ## body: JObject (required) - var body_613276 = newJObject() + var body_611276 = newJObject() if body != nil: - body_613276 = body - result = call_613275.call(nil, nil, nil, nil, body_613276) + body_611276 = body + result = call_611275.call(nil, nil, nil, nil, body_611276) -var batchDisableStandards* = Call_BatchDisableStandards_613263( +var batchDisableStandards* = Call_BatchDisableStandards_611263( name: "batchDisableStandards", meth: HttpMethod.HttpPost, host: "securityhub.amazonaws.com", route: "/standards/deregister", - validator: validate_BatchDisableStandards_613264, base: "/", - url: url_BatchDisableStandards_613265, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_BatchDisableStandards_611264, base: "/", + url: url_BatchDisableStandards_611265, schemes: {Scheme.Https, Scheme.Http}) type - Call_BatchEnableStandards_613277 = ref object of OpenApiRestCall_612658 -proc url_BatchEnableStandards_613279(protocol: Scheme; host: string; base: string; + Call_BatchEnableStandards_611277 = ref object of OpenApiRestCall_610658 +proc url_BatchEnableStandards_611279(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_BatchEnableStandards_613278(path: JsonNode; query: JsonNode; +proc validate_BatchEnableStandards_611278(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = - ##

    Enables the standards specified by the provided standardsArn.

    In this release, only CIS AWS Foundations standards are supported.

    For more information, see Standards Supported in AWS Security Hub.

    + ##

    Enables the standards specified by the provided StandardsArn. To obtain the ARN for a standard, use the DescribeStandards operation.

    For more information, see the Compliance Standards section of the AWS Security Hub User Guide.

    ## var section: JsonNode result = newJObject() @@ -481,41 +468,41 @@ proc validate_BatchEnableStandards_613278(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613280 = header.getOrDefault("X-Amz-Signature") - valid_613280 = validateParameter(valid_613280, JString, required = false, - default = nil) - if valid_613280 != nil: - section.add "X-Amz-Signature", valid_613280 - var valid_613281 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613281 = validateParameter(valid_613281, JString, required = false, - default = nil) - if valid_613281 != nil: - section.add "X-Amz-Content-Sha256", valid_613281 - var valid_613282 = header.getOrDefault("X-Amz-Date") - valid_613282 = validateParameter(valid_613282, JString, required = false, - default = nil) - if valid_613282 != nil: - section.add "X-Amz-Date", valid_613282 - var valid_613283 = header.getOrDefault("X-Amz-Credential") - valid_613283 = validateParameter(valid_613283, JString, required = false, - default = nil) - if valid_613283 != nil: - section.add "X-Amz-Credential", valid_613283 - var valid_613284 = header.getOrDefault("X-Amz-Security-Token") - valid_613284 = validateParameter(valid_613284, JString, required = false, - default = nil) - if valid_613284 != nil: - section.add "X-Amz-Security-Token", valid_613284 - var valid_613285 = header.getOrDefault("X-Amz-Algorithm") - valid_613285 = validateParameter(valid_613285, JString, required = false, - default = nil) - if valid_613285 != nil: - section.add "X-Amz-Algorithm", valid_613285 - var valid_613286 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613286 = validateParameter(valid_613286, JString, required = false, - default = nil) - if valid_613286 != nil: - section.add "X-Amz-SignedHeaders", valid_613286 + var valid_611280 = header.getOrDefault("X-Amz-Signature") + valid_611280 = validateParameter(valid_611280, JString, required = false, + default = nil) + if valid_611280 != nil: + section.add "X-Amz-Signature", valid_611280 + var valid_611281 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611281 = validateParameter(valid_611281, JString, required = false, + default = nil) + if valid_611281 != nil: + section.add "X-Amz-Content-Sha256", valid_611281 + var valid_611282 = header.getOrDefault("X-Amz-Date") + valid_611282 = validateParameter(valid_611282, JString, required = false, + default = nil) + if valid_611282 != nil: + section.add "X-Amz-Date", valid_611282 + var valid_611283 = header.getOrDefault("X-Amz-Credential") + valid_611283 = validateParameter(valid_611283, JString, required = false, + default = nil) + if valid_611283 != nil: + section.add "X-Amz-Credential", valid_611283 + var valid_611284 = header.getOrDefault("X-Amz-Security-Token") + valid_611284 = validateParameter(valid_611284, JString, required = false, + default = nil) + if valid_611284 != nil: + section.add "X-Amz-Security-Token", valid_611284 + var valid_611285 = header.getOrDefault("X-Amz-Algorithm") + valid_611285 = validateParameter(valid_611285, JString, required = false, + default = nil) + if valid_611285 != nil: + section.add "X-Amz-Algorithm", valid_611285 + var valid_611286 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611286 = validateParameter(valid_611286, JString, required = false, + default = nil) + if valid_611286 != nil: + section.add "X-Amz-SignedHeaders", valid_611286 result.add "header", section section = newJObject() result.add "formData", section @@ -526,48 +513,46 @@ proc validate_BatchEnableStandards_613278(path: JsonNode; query: JsonNode; if body != nil: result.add "body", body -proc call*(call_613288: Call_BatchEnableStandards_613277; path: JsonNode; +proc call*(call_611288: Call_BatchEnableStandards_611277; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = - ##

    Enables the standards specified by the provided standardsArn.

    In this release, only CIS AWS Foundations standards are supported.

    For more information, see Standards Supported in AWS Security Hub.

    + ##

    Enables the standards specified by the provided StandardsArn. To obtain the ARN for a standard, use the DescribeStandards operation.

    For more information, see the Compliance Standards section of the AWS Security Hub User Guide.

    ## - let valid = call_613288.validator(path, query, header, formData, body) - let scheme = call_613288.pickScheme + let valid = call_611288.validator(path, query, header, formData, body) + let scheme = call_611288.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613288.url(scheme.get, call_613288.host, call_613288.base, - call_613288.route, valid.getOrDefault("path"), + let url = call_611288.url(scheme.get, call_611288.host, call_611288.base, + call_611288.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613288, url, valid) + result = atozHook(call_611288, url, valid) -proc call*(call_613289: Call_BatchEnableStandards_613277; body: JsonNode): Recallable = +proc call*(call_611289: Call_BatchEnableStandards_611277; body: JsonNode): Recallable = ## batchEnableStandards - ##

    Enables the standards specified by the provided standardsArn.

    In this release, only CIS AWS Foundations standards are supported.

    For more information, see Standards Supported in AWS Security Hub.

    + ##

    Enables the standards specified by the provided StandardsArn. To obtain the ARN for a standard, use the DescribeStandards operation.

    For more information, see the Compliance Standards section of the AWS Security Hub User Guide.

    ## body: JObject (required) - var body_613290 = newJObject() + var body_611290 = newJObject() if body != nil: - body_613290 = body - result = call_613289.call(nil, nil, nil, nil, body_613290) + body_611290 = body + result = call_611289.call(nil, nil, nil, nil, body_611290) -var batchEnableStandards* = Call_BatchEnableStandards_613277( +var batchEnableStandards* = Call_BatchEnableStandards_611277( name: "batchEnableStandards", meth: HttpMethod.HttpPost, host: "securityhub.amazonaws.com", route: "/standards/register", - validator: validate_BatchEnableStandards_613278, base: "/", - url: url_BatchEnableStandards_613279, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_BatchEnableStandards_611278, base: "/", + url: url_BatchEnableStandards_611279, schemes: {Scheme.Https, Scheme.Http}) type - Call_BatchImportFindings_613291 = ref object of OpenApiRestCall_612658 -proc url_BatchImportFindings_613293(protocol: Scheme; host: string; base: string; + Call_BatchImportFindings_611291 = ref object of OpenApiRestCall_610658 +proc url_BatchImportFindings_611293(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_BatchImportFindings_613292(path: JsonNode; query: JsonNode; +proc validate_BatchImportFindings_611292(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Imports security findings generated from an integrated third-party product into Security Hub. This action is requested by the integrated product to import its findings into Security Hub.

    The maximum allowed size for a finding is 240 Kb. An error is returned for any finding larger than 240 Kb.

    @@ -587,41 +572,41 @@ proc validate_BatchImportFindings_613292(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613294 = header.getOrDefault("X-Amz-Signature") - valid_613294 = validateParameter(valid_613294, JString, required = false, - default = nil) - if valid_613294 != nil: - section.add "X-Amz-Signature", valid_613294 - var valid_613295 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613295 = validateParameter(valid_613295, JString, required = false, - default = nil) - if valid_613295 != nil: - section.add "X-Amz-Content-Sha256", valid_613295 - var valid_613296 = header.getOrDefault("X-Amz-Date") - valid_613296 = validateParameter(valid_613296, JString, required = false, - default = nil) - if valid_613296 != nil: - section.add "X-Amz-Date", valid_613296 - var valid_613297 = header.getOrDefault("X-Amz-Credential") - valid_613297 = validateParameter(valid_613297, JString, required = false, - default = nil) - if valid_613297 != nil: - section.add "X-Amz-Credential", valid_613297 - var valid_613298 = header.getOrDefault("X-Amz-Security-Token") - valid_613298 = validateParameter(valid_613298, JString, required = false, - default = nil) - if valid_613298 != nil: - section.add "X-Amz-Security-Token", valid_613298 - var valid_613299 = header.getOrDefault("X-Amz-Algorithm") - valid_613299 = validateParameter(valid_613299, JString, required = false, - default = nil) - if valid_613299 != nil: - section.add "X-Amz-Algorithm", valid_613299 - var valid_613300 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613300 = validateParameter(valid_613300, JString, required = false, - default = nil) - if valid_613300 != nil: - section.add "X-Amz-SignedHeaders", valid_613300 + var valid_611294 = header.getOrDefault("X-Amz-Signature") + valid_611294 = validateParameter(valid_611294, JString, required = false, + default = nil) + if valid_611294 != nil: + section.add "X-Amz-Signature", valid_611294 + var valid_611295 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611295 = validateParameter(valid_611295, JString, required = false, + default = nil) + if valid_611295 != nil: + section.add "X-Amz-Content-Sha256", valid_611295 + var valid_611296 = header.getOrDefault("X-Amz-Date") + valid_611296 = validateParameter(valid_611296, JString, required = false, + default = nil) + if valid_611296 != nil: + section.add "X-Amz-Date", valid_611296 + var valid_611297 = header.getOrDefault("X-Amz-Credential") + valid_611297 = validateParameter(valid_611297, JString, required = false, + default = nil) + if valid_611297 != nil: + section.add "X-Amz-Credential", valid_611297 + var valid_611298 = header.getOrDefault("X-Amz-Security-Token") + valid_611298 = validateParameter(valid_611298, JString, required = false, + default = nil) + if valid_611298 != nil: + section.add "X-Amz-Security-Token", valid_611298 + var valid_611299 = header.getOrDefault("X-Amz-Algorithm") + valid_611299 = validateParameter(valid_611299, JString, required = false, + default = nil) + if valid_611299 != nil: + section.add "X-Amz-Algorithm", valid_611299 + var valid_611300 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611300 = validateParameter(valid_611300, JString, required = false, + default = nil) + if valid_611300 != nil: + section.add "X-Amz-SignedHeaders", valid_611300 result.add "header", section section = newJObject() result.add "formData", section @@ -632,48 +617,46 @@ proc validate_BatchImportFindings_613292(path: JsonNode; query: JsonNode; if body != nil: result.add "body", body -proc call*(call_613302: Call_BatchImportFindings_613291; path: JsonNode; +proc call*(call_611302: Call_BatchImportFindings_611291; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Imports security findings generated from an integrated third-party product into Security Hub. This action is requested by the integrated product to import its findings into Security Hub.

    The maximum allowed size for a finding is 240 Kb. An error is returned for any finding larger than 240 Kb.

    ## - let valid = call_613302.validator(path, query, header, formData, body) - let scheme = call_613302.pickScheme + let valid = call_611302.validator(path, query, header, formData, body) + let scheme = call_611302.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613302.url(scheme.get, call_613302.host, call_613302.base, - call_613302.route, valid.getOrDefault("path"), + let url = call_611302.url(scheme.get, call_611302.host, call_611302.base, + call_611302.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613302, url, valid) + result = atozHook(call_611302, url, valid) -proc call*(call_613303: Call_BatchImportFindings_613291; body: JsonNode): Recallable = +proc call*(call_611303: Call_BatchImportFindings_611291; body: JsonNode): Recallable = ## batchImportFindings ##

    Imports security findings generated from an integrated third-party product into Security Hub. This action is requested by the integrated product to import its findings into Security Hub.

    The maximum allowed size for a finding is 240 Kb. An error is returned for any finding larger than 240 Kb.

    ## body: JObject (required) - var body_613304 = newJObject() + var body_611304 = newJObject() if body != nil: - body_613304 = body - result = call_613303.call(nil, nil, nil, nil, body_613304) + body_611304 = body + result = call_611303.call(nil, nil, nil, nil, body_611304) -var batchImportFindings* = Call_BatchImportFindings_613291( +var batchImportFindings* = Call_BatchImportFindings_611291( name: "batchImportFindings", meth: HttpMethod.HttpPost, host: "securityhub.amazonaws.com", route: "/findings/import", - validator: validate_BatchImportFindings_613292, base: "/", - url: url_BatchImportFindings_613293, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_BatchImportFindings_611292, base: "/", + url: url_BatchImportFindings_611293, schemes: {Scheme.Https, Scheme.Http}) type - Call_CreateActionTarget_613305 = ref object of OpenApiRestCall_612658 -proc url_CreateActionTarget_613307(protocol: Scheme; host: string; base: string; + Call_CreateActionTarget_611305 = ref object of OpenApiRestCall_610658 +proc url_CreateActionTarget_611307(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_CreateActionTarget_613306(path: JsonNode; query: JsonNode; +proc validate_CreateActionTarget_611306(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Creates a custom action target in Security Hub.

    You can use custom actions on findings and insights in Security Hub to trigger target actions in Amazon CloudWatch Events.

    @@ -693,41 +676,41 @@ proc validate_CreateActionTarget_613306(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613308 = header.getOrDefault("X-Amz-Signature") - valid_613308 = validateParameter(valid_613308, JString, required = false, - default = nil) - if valid_613308 != nil: - section.add "X-Amz-Signature", valid_613308 - var valid_613309 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613309 = validateParameter(valid_613309, JString, required = false, - default = nil) - if valid_613309 != nil: - section.add "X-Amz-Content-Sha256", valid_613309 - var valid_613310 = header.getOrDefault("X-Amz-Date") - valid_613310 = validateParameter(valid_613310, JString, required = false, - default = nil) - if valid_613310 != nil: - section.add "X-Amz-Date", valid_613310 - var valid_613311 = header.getOrDefault("X-Amz-Credential") - valid_613311 = validateParameter(valid_613311, JString, required = false, - default = nil) - if valid_613311 != nil: - section.add "X-Amz-Credential", valid_613311 - var valid_613312 = header.getOrDefault("X-Amz-Security-Token") - valid_613312 = validateParameter(valid_613312, JString, required = false, - default = nil) - if valid_613312 != nil: - section.add "X-Amz-Security-Token", valid_613312 - var valid_613313 = header.getOrDefault("X-Amz-Algorithm") - valid_613313 = validateParameter(valid_613313, JString, required = false, - default = nil) - if valid_613313 != nil: - section.add "X-Amz-Algorithm", valid_613313 - var valid_613314 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613314 = validateParameter(valid_613314, JString, required = false, - default = nil) - if valid_613314 != nil: - section.add "X-Amz-SignedHeaders", valid_613314 + var valid_611308 = header.getOrDefault("X-Amz-Signature") + valid_611308 = validateParameter(valid_611308, JString, required = false, + default = nil) + if valid_611308 != nil: + section.add "X-Amz-Signature", valid_611308 + var valid_611309 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611309 = validateParameter(valid_611309, JString, required = false, + default = nil) + if valid_611309 != nil: + section.add "X-Amz-Content-Sha256", valid_611309 + var valid_611310 = header.getOrDefault("X-Amz-Date") + valid_611310 = validateParameter(valid_611310, JString, required = false, + default = nil) + if valid_611310 != nil: + section.add "X-Amz-Date", valid_611310 + var valid_611311 = header.getOrDefault("X-Amz-Credential") + valid_611311 = validateParameter(valid_611311, JString, required = false, + default = nil) + if valid_611311 != nil: + section.add "X-Amz-Credential", valid_611311 + var valid_611312 = header.getOrDefault("X-Amz-Security-Token") + valid_611312 = validateParameter(valid_611312, JString, required = false, + default = nil) + if valid_611312 != nil: + section.add "X-Amz-Security-Token", valid_611312 + var valid_611313 = header.getOrDefault("X-Amz-Algorithm") + valid_611313 = validateParameter(valid_611313, JString, required = false, + default = nil) + if valid_611313 != nil: + section.add "X-Amz-Algorithm", valid_611313 + var valid_611314 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611314 = validateParameter(valid_611314, JString, required = false, + default = nil) + if valid_611314 != nil: + section.add "X-Amz-SignedHeaders", valid_611314 result.add "header", section section = newJObject() result.add "formData", section @@ -738,48 +721,46 @@ proc validate_CreateActionTarget_613306(path: JsonNode; query: JsonNode; if body != nil: result.add "body", body -proc call*(call_613316: Call_CreateActionTarget_613305; path: JsonNode; +proc call*(call_611316: Call_CreateActionTarget_611305; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Creates a custom action target in Security Hub.

    You can use custom actions on findings and insights in Security Hub to trigger target actions in Amazon CloudWatch Events.

    ## - let valid = call_613316.validator(path, query, header, formData, body) - let scheme = call_613316.pickScheme + let valid = call_611316.validator(path, query, header, formData, body) + let scheme = call_611316.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613316.url(scheme.get, call_613316.host, call_613316.base, - call_613316.route, valid.getOrDefault("path"), + let url = call_611316.url(scheme.get, call_611316.host, call_611316.base, + call_611316.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613316, url, valid) + result = atozHook(call_611316, url, valid) -proc call*(call_613317: Call_CreateActionTarget_613305; body: JsonNode): Recallable = +proc call*(call_611317: Call_CreateActionTarget_611305; body: JsonNode): Recallable = ## createActionTarget ##

    Creates a custom action target in Security Hub.

    You can use custom actions on findings and insights in Security Hub to trigger target actions in Amazon CloudWatch Events.

    ## body: JObject (required) - var body_613318 = newJObject() + var body_611318 = newJObject() if body != nil: - body_613318 = body - result = call_613317.call(nil, nil, nil, nil, body_613318) + body_611318 = body + result = call_611317.call(nil, nil, nil, nil, body_611318) -var createActionTarget* = Call_CreateActionTarget_613305( +var createActionTarget* = Call_CreateActionTarget_611305( name: "createActionTarget", meth: HttpMethod.HttpPost, host: "securityhub.amazonaws.com", route: "/actionTargets", - validator: validate_CreateActionTarget_613306, base: "/", - url: url_CreateActionTarget_613307, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_CreateActionTarget_611306, base: "/", + url: url_CreateActionTarget_611307, schemes: {Scheme.Https, Scheme.Http}) type - Call_CreateInsight_613319 = ref object of OpenApiRestCall_612658 -proc url_CreateInsight_613321(protocol: Scheme; host: string; base: string; + Call_CreateInsight_611319 = ref object of OpenApiRestCall_610658 +proc url_CreateInsight_611321(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_CreateInsight_613320(path: JsonNode; query: JsonNode; header: JsonNode; +proc validate_CreateInsight_611320(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Creates a custom insight in Security Hub. An insight is a consolidation of findings that relate to a security issue that requires attention or remediation.

    To group the related findings in the insight, use the GroupByAttribute.

    ## @@ -798,41 +779,41 @@ proc validate_CreateInsight_613320(path: JsonNode; query: JsonNode; header: Json ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613322 = header.getOrDefault("X-Amz-Signature") - valid_613322 = validateParameter(valid_613322, JString, required = false, - default = nil) - if valid_613322 != nil: - section.add "X-Amz-Signature", valid_613322 - var valid_613323 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613323 = validateParameter(valid_613323, JString, required = false, - default = nil) - if valid_613323 != nil: - section.add "X-Amz-Content-Sha256", valid_613323 - var valid_613324 = header.getOrDefault("X-Amz-Date") - valid_613324 = validateParameter(valid_613324, JString, required = false, - default = nil) - if valid_613324 != nil: - section.add "X-Amz-Date", valid_613324 - var valid_613325 = header.getOrDefault("X-Amz-Credential") - valid_613325 = validateParameter(valid_613325, JString, required = false, - default = nil) - if valid_613325 != nil: - section.add "X-Amz-Credential", valid_613325 - var valid_613326 = header.getOrDefault("X-Amz-Security-Token") - valid_613326 = validateParameter(valid_613326, JString, required = false, - default = nil) - if valid_613326 != nil: - section.add "X-Amz-Security-Token", valid_613326 - var valid_613327 = header.getOrDefault("X-Amz-Algorithm") - valid_613327 = validateParameter(valid_613327, JString, required = false, - default = nil) - if valid_613327 != nil: - section.add "X-Amz-Algorithm", valid_613327 - var valid_613328 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613328 = validateParameter(valid_613328, JString, required = false, - default = nil) - if valid_613328 != nil: - section.add "X-Amz-SignedHeaders", valid_613328 + var valid_611322 = header.getOrDefault("X-Amz-Signature") + valid_611322 = validateParameter(valid_611322, JString, required = false, + default = nil) + if valid_611322 != nil: + section.add "X-Amz-Signature", valid_611322 + var valid_611323 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611323 = validateParameter(valid_611323, JString, required = false, + default = nil) + if valid_611323 != nil: + section.add "X-Amz-Content-Sha256", valid_611323 + var valid_611324 = header.getOrDefault("X-Amz-Date") + valid_611324 = validateParameter(valid_611324, JString, required = false, + default = nil) + if valid_611324 != nil: + section.add "X-Amz-Date", valid_611324 + var valid_611325 = header.getOrDefault("X-Amz-Credential") + valid_611325 = validateParameter(valid_611325, JString, required = false, + default = nil) + if valid_611325 != nil: + section.add "X-Amz-Credential", valid_611325 + var valid_611326 = header.getOrDefault("X-Amz-Security-Token") + valid_611326 = validateParameter(valid_611326, JString, required = false, + default = nil) + if valid_611326 != nil: + section.add "X-Amz-Security-Token", valid_611326 + var valid_611327 = header.getOrDefault("X-Amz-Algorithm") + valid_611327 = validateParameter(valid_611327, JString, required = false, + default = nil) + if valid_611327 != nil: + section.add "X-Amz-Algorithm", valid_611327 + var valid_611328 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611328 = validateParameter(valid_611328, JString, required = false, + default = nil) + if valid_611328 != nil: + section.add "X-Amz-SignedHeaders", valid_611328 result.add "header", section section = newJObject() result.add "formData", section @@ -843,49 +824,47 @@ proc validate_CreateInsight_613320(path: JsonNode; query: JsonNode; header: Json if body != nil: result.add "body", body -proc call*(call_613330: Call_CreateInsight_613319; path: JsonNode; query: JsonNode; +proc call*(call_611330: Call_CreateInsight_611319; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Creates a custom insight in Security Hub. An insight is a consolidation of findings that relate to a security issue that requires attention or remediation.

    To group the related findings in the insight, use the GroupByAttribute.

    ## - let valid = call_613330.validator(path, query, header, formData, body) - let scheme = call_613330.pickScheme + let valid = call_611330.validator(path, query, header, formData, body) + let scheme = call_611330.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613330.url(scheme.get, call_613330.host, call_613330.base, - call_613330.route, valid.getOrDefault("path"), + let url = call_611330.url(scheme.get, call_611330.host, call_611330.base, + call_611330.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613330, url, valid) + result = atozHook(call_611330, url, valid) -proc call*(call_613331: Call_CreateInsight_613319; body: JsonNode): Recallable = +proc call*(call_611331: Call_CreateInsight_611319; body: JsonNode): Recallable = ## createInsight ##

    Creates a custom insight in Security Hub. An insight is a consolidation of findings that relate to a security issue that requires attention or remediation.

    To group the related findings in the insight, use the GroupByAttribute.

    ## body: JObject (required) - var body_613332 = newJObject() + var body_611332 = newJObject() if body != nil: - body_613332 = body - result = call_613331.call(nil, nil, nil, nil, body_613332) + body_611332 = body + result = call_611331.call(nil, nil, nil, nil, body_611332) -var createInsight* = Call_CreateInsight_613319(name: "createInsight", +var createInsight* = Call_CreateInsight_611319(name: "createInsight", meth: HttpMethod.HttpPost, host: "securityhub.amazonaws.com", - route: "/insights", validator: validate_CreateInsight_613320, base: "/", - url: url_CreateInsight_613321, schemes: {Scheme.Https, Scheme.Http}) + route: "/insights", validator: validate_CreateInsight_611320, base: "/", + url: url_CreateInsight_611321, schemes: {Scheme.Https, Scheme.Http}) type - Call_CreateMembers_613350 = ref object of OpenApiRestCall_612658 -proc url_CreateMembers_613352(protocol: Scheme; host: string; base: string; + Call_CreateMembers_611350 = ref object of OpenApiRestCall_610658 +proc url_CreateMembers_611352(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_CreateMembers_613351(path: JsonNode; query: JsonNode; header: JsonNode; +proc validate_CreateMembers_611351(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = - ##

    Creates a member association in Security Hub between the specified accounts and the account used to make the request, which is the master account. To successfully create a member, you must use this action from an account that already has Security Hub enabled. To enable Security Hub, you can use the EnableSecurityHub operation.

    After you use CreateMembers to create member account associations in Security Hub, you must use the InviteMembers operation to invite the accounts to enable Security Hub and become member accounts in Security Hub.

    If the account owner accepts the invitation, the account becomes a member account in Security Hub, and a permission policy is added that permits the master account to view the findings generated in the member account. When Security Hub is enabled in the invited account, findings start to be sent to both the member and master accounts.

    To remove the association between the master and member accounts, use the DisassociateFromMasterAccount or DisassociateMembers operation.

    + ##

    Creates a member association in Security Hub between the specified accounts and the account used to make the request, which is the master account. To successfully create a member, you must use this action from an account that already has Security Hub enabled. To enable Security Hub, you can use the EnableSecurityHub operation.

    After you use CreateMembers to create member account associations in Security Hub, you must use the InviteMembers operation to invite the accounts to enable Security Hub and become member accounts in Security Hub.

    If the account owner accepts the invitation, the account becomes a member account in Security Hub, and a permission policy is added that permits the master account to view the findings generated in the member account. When Security Hub is enabled in the invited account, findings start to be sent to both the member and master accounts.

    To remove the association between the master and member accounts, use the DisassociateFromMasterAccount or DisassociateMembers operation.

    ## var section: JsonNode result = newJObject() @@ -902,41 +881,41 @@ proc validate_CreateMembers_613351(path: JsonNode; query: JsonNode; header: Json ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613353 = header.getOrDefault("X-Amz-Signature") - valid_613353 = validateParameter(valid_613353, JString, required = false, - default = nil) - if valid_613353 != nil: - section.add "X-Amz-Signature", valid_613353 - var valid_613354 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613354 = validateParameter(valid_613354, JString, required = false, - default = nil) - if valid_613354 != nil: - section.add "X-Amz-Content-Sha256", valid_613354 - var valid_613355 = header.getOrDefault("X-Amz-Date") - valid_613355 = validateParameter(valid_613355, JString, required = false, - default = nil) - if valid_613355 != nil: - section.add "X-Amz-Date", valid_613355 - var valid_613356 = header.getOrDefault("X-Amz-Credential") - valid_613356 = validateParameter(valid_613356, JString, required = false, - default = nil) - if valid_613356 != nil: - section.add "X-Amz-Credential", valid_613356 - var valid_613357 = header.getOrDefault("X-Amz-Security-Token") - valid_613357 = validateParameter(valid_613357, JString, required = false, - default = nil) - if valid_613357 != nil: - section.add "X-Amz-Security-Token", valid_613357 - var valid_613358 = header.getOrDefault("X-Amz-Algorithm") - valid_613358 = validateParameter(valid_613358, JString, required = false, - default = nil) - if valid_613358 != nil: - section.add "X-Amz-Algorithm", valid_613358 - var valid_613359 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613359 = validateParameter(valid_613359, JString, required = false, - default = nil) - if valid_613359 != nil: - section.add "X-Amz-SignedHeaders", valid_613359 + var valid_611353 = header.getOrDefault("X-Amz-Signature") + valid_611353 = validateParameter(valid_611353, JString, required = false, + default = nil) + if valid_611353 != nil: + section.add "X-Amz-Signature", valid_611353 + var valid_611354 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611354 = validateParameter(valid_611354, JString, required = false, + default = nil) + if valid_611354 != nil: + section.add "X-Amz-Content-Sha256", valid_611354 + var valid_611355 = header.getOrDefault("X-Amz-Date") + valid_611355 = validateParameter(valid_611355, JString, required = false, + default = nil) + if valid_611355 != nil: + section.add "X-Amz-Date", valid_611355 + var valid_611356 = header.getOrDefault("X-Amz-Credential") + valid_611356 = validateParameter(valid_611356, JString, required = false, + default = nil) + if valid_611356 != nil: + section.add "X-Amz-Credential", valid_611356 + var valid_611357 = header.getOrDefault("X-Amz-Security-Token") + valid_611357 = validateParameter(valid_611357, JString, required = false, + default = nil) + if valid_611357 != nil: + section.add "X-Amz-Security-Token", valid_611357 + var valid_611358 = header.getOrDefault("X-Amz-Algorithm") + valid_611358 = validateParameter(valid_611358, JString, required = false, + default = nil) + if valid_611358 != nil: + section.add "X-Amz-Algorithm", valid_611358 + var valid_611359 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611359 = validateParameter(valid_611359, JString, required = false, + default = nil) + if valid_611359 != nil: + section.add "X-Amz-SignedHeaders", valid_611359 result.add "header", section section = newJObject() result.add "formData", section @@ -947,47 +926,45 @@ proc validate_CreateMembers_613351(path: JsonNode; query: JsonNode; header: Json if body != nil: result.add "body", body -proc call*(call_613361: Call_CreateMembers_613350; path: JsonNode; query: JsonNode; +proc call*(call_611361: Call_CreateMembers_611350; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = - ##

    Creates a member association in Security Hub between the specified accounts and the account used to make the request, which is the master account. To successfully create a member, you must use this action from an account that already has Security Hub enabled. To enable Security Hub, you can use the EnableSecurityHub operation.

    After you use CreateMembers to create member account associations in Security Hub, you must use the InviteMembers operation to invite the accounts to enable Security Hub and become member accounts in Security Hub.

    If the account owner accepts the invitation, the account becomes a member account in Security Hub, and a permission policy is added that permits the master account to view the findings generated in the member account. When Security Hub is enabled in the invited account, findings start to be sent to both the member and master accounts.

    To remove the association between the master and member accounts, use the DisassociateFromMasterAccount or DisassociateMembers operation.

    + ##

    Creates a member association in Security Hub between the specified accounts and the account used to make the request, which is the master account. To successfully create a member, you must use this action from an account that already has Security Hub enabled. To enable Security Hub, you can use the EnableSecurityHub operation.

    After you use CreateMembers to create member account associations in Security Hub, you must use the InviteMembers operation to invite the accounts to enable Security Hub and become member accounts in Security Hub.

    If the account owner accepts the invitation, the account becomes a member account in Security Hub, and a permission policy is added that permits the master account to view the findings generated in the member account. When Security Hub is enabled in the invited account, findings start to be sent to both the member and master accounts.

    To remove the association between the master and member accounts, use the DisassociateFromMasterAccount or DisassociateMembers operation.

    ## - let valid = call_613361.validator(path, query, header, formData, body) - let scheme = call_613361.pickScheme + let valid = call_611361.validator(path, query, header, formData, body) + let scheme = call_611361.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613361.url(scheme.get, call_613361.host, call_613361.base, - call_613361.route, valid.getOrDefault("path"), + let url = call_611361.url(scheme.get, call_611361.host, call_611361.base, + call_611361.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613361, url, valid) + result = atozHook(call_611361, url, valid) -proc call*(call_613362: Call_CreateMembers_613350; body: JsonNode): Recallable = +proc call*(call_611362: Call_CreateMembers_611350; body: JsonNode): Recallable = ## createMembers - ##

    Creates a member association in Security Hub between the specified accounts and the account used to make the request, which is the master account. To successfully create a member, you must use this action from an account that already has Security Hub enabled. To enable Security Hub, you can use the EnableSecurityHub operation.

    After you use CreateMembers to create member account associations in Security Hub, you must use the InviteMembers operation to invite the accounts to enable Security Hub and become member accounts in Security Hub.

    If the account owner accepts the invitation, the account becomes a member account in Security Hub, and a permission policy is added that permits the master account to view the findings generated in the member account. When Security Hub is enabled in the invited account, findings start to be sent to both the member and master accounts.

    To remove the association between the master and member accounts, use the DisassociateFromMasterAccount or DisassociateMembers operation.

    + ##

    Creates a member association in Security Hub between the specified accounts and the account used to make the request, which is the master account. To successfully create a member, you must use this action from an account that already has Security Hub enabled. To enable Security Hub, you can use the EnableSecurityHub operation.

    After you use CreateMembers to create member account associations in Security Hub, you must use the InviteMembers operation to invite the accounts to enable Security Hub and become member accounts in Security Hub.

    If the account owner accepts the invitation, the account becomes a member account in Security Hub, and a permission policy is added that permits the master account to view the findings generated in the member account. When Security Hub is enabled in the invited account, findings start to be sent to both the member and master accounts.

    To remove the association between the master and member accounts, use the DisassociateFromMasterAccount or DisassociateMembers operation.

    ## body: JObject (required) - var body_613363 = newJObject() + var body_611363 = newJObject() if body != nil: - body_613363 = body - result = call_613362.call(nil, nil, nil, nil, body_613363) + body_611363 = body + result = call_611362.call(nil, nil, nil, nil, body_611363) -var createMembers* = Call_CreateMembers_613350(name: "createMembers", +var createMembers* = Call_CreateMembers_611350(name: "createMembers", meth: HttpMethod.HttpPost, host: "securityhub.amazonaws.com", route: "/members", - validator: validate_CreateMembers_613351, base: "/", url: url_CreateMembers_613352, + validator: validate_CreateMembers_611351, base: "/", url: url_CreateMembers_611352, schemes: {Scheme.Https, Scheme.Http}) type - Call_ListMembers_613333 = ref object of OpenApiRestCall_612658 -proc url_ListMembers_613335(protocol: Scheme; host: string; base: string; + Call_ListMembers_611333 = ref object of OpenApiRestCall_610658 +proc url_ListMembers_611335(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_ListMembers_613334(path: JsonNode; query: JsonNode; header: JsonNode; +proc validate_ListMembers_611334(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Lists details about all member accounts for the current Security Hub master account. ## @@ -999,23 +976,23 @@ proc validate_ListMembers_613334(path: JsonNode; query: JsonNode; header: JsonNo ## MaxResults: JInt ## : The maximum number of items to return in the response. ## NextToken: JString - ## : Paginates results. On your first call to the ListMembers operation, set the value of this parameter to NULL. For subsequent calls to the operation, to continue listing data, set nextToken in the request to the value of nextToken from the previous response. + ## :

    The token that is required for pagination. On your first call to the ListMembers operation, set the value of this parameter to NULL.

    For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.

    ## OnlyAssociated: JBool - ## :

    Specifies which member accounts to include in the response based on their relationship status with the master account. The default value is TRUE.

    If onlyAssociated is set to TRUE, the response includes member accounts whose relationship status with the master is set to ENABLED or DISABLED.

    If onlyAssociated is set to FALSE, the response includes all existing member accounts.

    - section = newJObject() - var valid_613336 = query.getOrDefault("MaxResults") - valid_613336 = validateParameter(valid_613336, JInt, required = false, default = nil) - if valid_613336 != nil: - section.add "MaxResults", valid_613336 - var valid_613337 = query.getOrDefault("NextToken") - valid_613337 = validateParameter(valid_613337, JString, required = false, - default = nil) - if valid_613337 != nil: - section.add "NextToken", valid_613337 - var valid_613338 = query.getOrDefault("OnlyAssociated") - valid_613338 = validateParameter(valid_613338, JBool, required = false, default = nil) - if valid_613338 != nil: - section.add "OnlyAssociated", valid_613338 + ## :

    Specifies which member accounts to include in the response based on their relationship status with the master account. The default value is TRUE.

    If OnlyAssociated is set to TRUE, the response includes member accounts whose relationship status with the master is set to ENABLED or DISABLED.

    If OnlyAssociated is set to FALSE, the response includes all existing member accounts.

    + section = newJObject() + var valid_611336 = query.getOrDefault("MaxResults") + valid_611336 = validateParameter(valid_611336, JInt, required = false, default = nil) + if valid_611336 != nil: + section.add "MaxResults", valid_611336 + var valid_611337 = query.getOrDefault("NextToken") + valid_611337 = validateParameter(valid_611337, JString, required = false, + default = nil) + if valid_611337 != nil: + section.add "NextToken", valid_611337 + var valid_611338 = query.getOrDefault("OnlyAssociated") + valid_611338 = validateParameter(valid_611338, JBool, required = false, default = nil) + if valid_611338 != nil: + section.add "OnlyAssociated", valid_611338 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -1026,98 +1003,96 @@ proc validate_ListMembers_613334(path: JsonNode; query: JsonNode; header: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613339 = header.getOrDefault("X-Amz-Signature") - valid_613339 = validateParameter(valid_613339, JString, required = false, - default = nil) - if valid_613339 != nil: - section.add "X-Amz-Signature", valid_613339 - var valid_613340 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613340 = validateParameter(valid_613340, JString, required = false, - default = nil) - if valid_613340 != nil: - section.add "X-Amz-Content-Sha256", valid_613340 - var valid_613341 = header.getOrDefault("X-Amz-Date") - valid_613341 = validateParameter(valid_613341, JString, required = false, - default = nil) - if valid_613341 != nil: - section.add "X-Amz-Date", valid_613341 - var valid_613342 = header.getOrDefault("X-Amz-Credential") - valid_613342 = validateParameter(valid_613342, JString, required = false, - default = nil) - if valid_613342 != nil: - section.add "X-Amz-Credential", valid_613342 - var valid_613343 = header.getOrDefault("X-Amz-Security-Token") - valid_613343 = validateParameter(valid_613343, JString, required = false, - default = nil) - if valid_613343 != nil: - section.add "X-Amz-Security-Token", valid_613343 - var valid_613344 = header.getOrDefault("X-Amz-Algorithm") - valid_613344 = validateParameter(valid_613344, JString, required = false, - default = nil) - if valid_613344 != nil: - section.add "X-Amz-Algorithm", valid_613344 - var valid_613345 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613345 = validateParameter(valid_613345, JString, required = false, - default = nil) - if valid_613345 != nil: - section.add "X-Amz-SignedHeaders", valid_613345 + var valid_611339 = header.getOrDefault("X-Amz-Signature") + valid_611339 = validateParameter(valid_611339, JString, required = false, + default = nil) + if valid_611339 != nil: + section.add "X-Amz-Signature", valid_611339 + var valid_611340 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611340 = validateParameter(valid_611340, JString, required = false, + default = nil) + if valid_611340 != nil: + section.add "X-Amz-Content-Sha256", valid_611340 + var valid_611341 = header.getOrDefault("X-Amz-Date") + valid_611341 = validateParameter(valid_611341, JString, required = false, + default = nil) + if valid_611341 != nil: + section.add "X-Amz-Date", valid_611341 + var valid_611342 = header.getOrDefault("X-Amz-Credential") + valid_611342 = validateParameter(valid_611342, JString, required = false, + default = nil) + if valid_611342 != nil: + section.add "X-Amz-Credential", valid_611342 + var valid_611343 = header.getOrDefault("X-Amz-Security-Token") + valid_611343 = validateParameter(valid_611343, JString, required = false, + default = nil) + if valid_611343 != nil: + section.add "X-Amz-Security-Token", valid_611343 + var valid_611344 = header.getOrDefault("X-Amz-Algorithm") + valid_611344 = validateParameter(valid_611344, JString, required = false, + default = nil) + if valid_611344 != nil: + section.add "X-Amz-Algorithm", valid_611344 + var valid_611345 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611345 = validateParameter(valid_611345, JString, required = false, + default = nil) + if valid_611345 != nil: + section.add "X-Amz-SignedHeaders", valid_611345 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_613346: Call_ListMembers_613333; path: JsonNode; query: JsonNode; +proc call*(call_611346: Call_ListMembers_611333; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Lists details about all member accounts for the current Security Hub master account. ## - let valid = call_613346.validator(path, query, header, formData, body) - let scheme = call_613346.pickScheme + let valid = call_611346.validator(path, query, header, formData, body) + let scheme = call_611346.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613346.url(scheme.get, call_613346.host, call_613346.base, - call_613346.route, valid.getOrDefault("path"), + let url = call_611346.url(scheme.get, call_611346.host, call_611346.base, + call_611346.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613346, url, valid) + result = atozHook(call_611346, url, valid) -proc call*(call_613347: Call_ListMembers_613333; MaxResults: int = 0; +proc call*(call_611347: Call_ListMembers_611333; MaxResults: int = 0; NextToken: string = ""; OnlyAssociated: bool = false): Recallable = ## listMembers ## Lists details about all member accounts for the current Security Hub master account. ## MaxResults: int ## : The maximum number of items to return in the response. ## NextToken: string - ## : Paginates results. On your first call to the ListMembers operation, set the value of this parameter to NULL. For subsequent calls to the operation, to continue listing data, set nextToken in the request to the value of nextToken from the previous response. + ## :

    The token that is required for pagination. On your first call to the ListMembers operation, set the value of this parameter to NULL.

    For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.

    ## OnlyAssociated: bool - ## :

    Specifies which member accounts to include in the response based on their relationship status with the master account. The default value is TRUE.

    If onlyAssociated is set to TRUE, the response includes member accounts whose relationship status with the master is set to ENABLED or DISABLED.

    If onlyAssociated is set to FALSE, the response includes all existing member accounts.

    - var query_613348 = newJObject() - add(query_613348, "MaxResults", newJInt(MaxResults)) - add(query_613348, "NextToken", newJString(NextToken)) - add(query_613348, "OnlyAssociated", newJBool(OnlyAssociated)) - result = call_613347.call(nil, query_613348, nil, nil, nil) - -var listMembers* = Call_ListMembers_613333(name: "listMembers", + ## :

    Specifies which member accounts to include in the response based on their relationship status with the master account. The default value is TRUE.

    If OnlyAssociated is set to TRUE, the response includes member accounts whose relationship status with the master is set to ENABLED or DISABLED.

    If OnlyAssociated is set to FALSE, the response includes all existing member accounts.

    + var query_611348 = newJObject() + add(query_611348, "MaxResults", newJInt(MaxResults)) + add(query_611348, "NextToken", newJString(NextToken)) + add(query_611348, "OnlyAssociated", newJBool(OnlyAssociated)) + result = call_611347.call(nil, query_611348, nil, nil, nil) + +var listMembers* = Call_ListMembers_611333(name: "listMembers", meth: HttpMethod.HttpGet, host: "securityhub.amazonaws.com", route: "/members", - validator: validate_ListMembers_613334, - base: "/", url: url_ListMembers_613335, + validator: validate_ListMembers_611334, + base: "/", url: url_ListMembers_611335, schemes: {Scheme.Https, Scheme.Http}) type - Call_DeclineInvitations_613364 = ref object of OpenApiRestCall_612658 -proc url_DeclineInvitations_613366(protocol: Scheme; host: string; base: string; + Call_DeclineInvitations_611364 = ref object of OpenApiRestCall_610658 +proc url_DeclineInvitations_611366(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_DeclineInvitations_613365(path: JsonNode; query: JsonNode; +proc validate_DeclineInvitations_611365(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Declines invitations to become a member account. @@ -1137,41 +1112,41 @@ proc validate_DeclineInvitations_613365(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613367 = header.getOrDefault("X-Amz-Signature") - valid_613367 = validateParameter(valid_613367, JString, required = false, - default = nil) - if valid_613367 != nil: - section.add "X-Amz-Signature", valid_613367 - var valid_613368 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613368 = validateParameter(valid_613368, JString, required = false, - default = nil) - if valid_613368 != nil: - section.add "X-Amz-Content-Sha256", valid_613368 - var valid_613369 = header.getOrDefault("X-Amz-Date") - valid_613369 = validateParameter(valid_613369, JString, required = false, - default = nil) - if valid_613369 != nil: - section.add "X-Amz-Date", valid_613369 - var valid_613370 = header.getOrDefault("X-Amz-Credential") - valid_613370 = validateParameter(valid_613370, JString, required = false, - default = nil) - if valid_613370 != nil: - section.add "X-Amz-Credential", valid_613370 - var valid_613371 = header.getOrDefault("X-Amz-Security-Token") - valid_613371 = validateParameter(valid_613371, JString, required = false, - default = nil) - if valid_613371 != nil: - section.add "X-Amz-Security-Token", valid_613371 - var valid_613372 = header.getOrDefault("X-Amz-Algorithm") - valid_613372 = validateParameter(valid_613372, JString, required = false, - default = nil) - if valid_613372 != nil: - section.add "X-Amz-Algorithm", valid_613372 - var valid_613373 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613373 = validateParameter(valid_613373, JString, required = false, - default = nil) - if valid_613373 != nil: - section.add "X-Amz-SignedHeaders", valid_613373 + var valid_611367 = header.getOrDefault("X-Amz-Signature") + valid_611367 = validateParameter(valid_611367, JString, required = false, + default = nil) + if valid_611367 != nil: + section.add "X-Amz-Signature", valid_611367 + var valid_611368 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611368 = validateParameter(valid_611368, JString, required = false, + default = nil) + if valid_611368 != nil: + section.add "X-Amz-Content-Sha256", valid_611368 + var valid_611369 = header.getOrDefault("X-Amz-Date") + valid_611369 = validateParameter(valid_611369, JString, required = false, + default = nil) + if valid_611369 != nil: + section.add "X-Amz-Date", valid_611369 + var valid_611370 = header.getOrDefault("X-Amz-Credential") + valid_611370 = validateParameter(valid_611370, JString, required = false, + default = nil) + if valid_611370 != nil: + section.add "X-Amz-Credential", valid_611370 + var valid_611371 = header.getOrDefault("X-Amz-Security-Token") + valid_611371 = validateParameter(valid_611371, JString, required = false, + default = nil) + if valid_611371 != nil: + section.add "X-Amz-Security-Token", valid_611371 + var valid_611372 = header.getOrDefault("X-Amz-Algorithm") + valid_611372 = validateParameter(valid_611372, JString, required = false, + default = nil) + if valid_611372 != nil: + section.add "X-Amz-Algorithm", valid_611372 + var valid_611373 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611373 = validateParameter(valid_611373, JString, required = false, + default = nil) + if valid_611373 != nil: + section.add "X-Amz-SignedHeaders", valid_611373 result.add "header", section section = newJObject() result.add "formData", section @@ -1182,36 +1157,36 @@ proc validate_DeclineInvitations_613365(path: JsonNode; query: JsonNode; if body != nil: result.add "body", body -proc call*(call_613375: Call_DeclineInvitations_613364; path: JsonNode; +proc call*(call_611375: Call_DeclineInvitations_611364; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Declines invitations to become a member account. ## - let valid = call_613375.validator(path, query, header, formData, body) - let scheme = call_613375.pickScheme + let valid = call_611375.validator(path, query, header, formData, body) + let scheme = call_611375.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613375.url(scheme.get, call_613375.host, call_613375.base, - call_613375.route, valid.getOrDefault("path"), + let url = call_611375.url(scheme.get, call_611375.host, call_611375.base, + call_611375.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613375, url, valid) + result = atozHook(call_611375, url, valid) -proc call*(call_613376: Call_DeclineInvitations_613364; body: JsonNode): Recallable = +proc call*(call_611376: Call_DeclineInvitations_611364; body: JsonNode): Recallable = ## declineInvitations ## Declines invitations to become a member account. ## body: JObject (required) - var body_613377 = newJObject() + var body_611377 = newJObject() if body != nil: - body_613377 = body - result = call_613376.call(nil, nil, nil, nil, body_613377) + body_611377 = body + result = call_611376.call(nil, nil, nil, nil, body_611377) -var declineInvitations* = Call_DeclineInvitations_613364( +var declineInvitations* = Call_DeclineInvitations_611364( name: "declineInvitations", meth: HttpMethod.HttpPost, host: "securityhub.amazonaws.com", route: "/invitations/decline", - validator: validate_DeclineInvitations_613365, base: "/", - url: url_DeclineInvitations_613366, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_DeclineInvitations_611365, base: "/", + url: url_DeclineInvitations_611366, schemes: {Scheme.Https, Scheme.Http}) type - Call_UpdateActionTarget_613406 = ref object of OpenApiRestCall_612658 -proc url_UpdateActionTarget_613408(protocol: Scheme; host: string; base: string; + Call_UpdateActionTarget_611406 = ref object of OpenApiRestCall_610658 +proc url_UpdateActionTarget_611408(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -1224,14 +1199,12 @@ proc url_UpdateActionTarget_613408(protocol: Scheme; host: string; base: string; var hydrated = hydratePath(path, segments) if hydrated.isNone: raise newException(ValueError, "unable to fully hydrate path") - if base == - "/" and - hydrated.get.startsWith "/": + if base == "/" and hydrated.get.startsWith "/": result.path = hydrated.get else: result.path = base & hydrated.get -proc validate_UpdateActionTarget_613407(path: JsonNode; query: JsonNode; +proc validate_UpdateActionTarget_611407(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Updates the name and description of a custom action target in Security Hub. @@ -1244,11 +1217,11 @@ proc validate_UpdateActionTarget_613407(path: JsonNode; query: JsonNode; section = newJObject() assert path != nil, "path argument is necessary due to required `ActionTargetArn` field" - var valid_613409 = path.getOrDefault("ActionTargetArn") - valid_613409 = validateParameter(valid_613409, JString, required = true, + var valid_611409 = path.getOrDefault("ActionTargetArn") + valid_611409 = validateParameter(valid_611409, JString, required = true, default = nil) - if valid_613409 != nil: - section.add "ActionTargetArn", valid_613409 + if valid_611409 != nil: + section.add "ActionTargetArn", valid_611409 result.add "path", section section = newJObject() result.add "query", section @@ -1261,41 +1234,41 @@ proc validate_UpdateActionTarget_613407(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613410 = header.getOrDefault("X-Amz-Signature") - valid_613410 = validateParameter(valid_613410, JString, required = false, - default = nil) - if valid_613410 != nil: - section.add "X-Amz-Signature", valid_613410 - var valid_613411 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613411 = validateParameter(valid_613411, JString, required = false, - default = nil) - if valid_613411 != nil: - section.add "X-Amz-Content-Sha256", valid_613411 - var valid_613412 = header.getOrDefault("X-Amz-Date") - valid_613412 = validateParameter(valid_613412, JString, required = false, - default = nil) - if valid_613412 != nil: - section.add "X-Amz-Date", valid_613412 - var valid_613413 = header.getOrDefault("X-Amz-Credential") - valid_613413 = validateParameter(valid_613413, JString, required = false, - default = nil) - if valid_613413 != nil: - section.add "X-Amz-Credential", valid_613413 - var valid_613414 = header.getOrDefault("X-Amz-Security-Token") - valid_613414 = validateParameter(valid_613414, JString, required = false, - default = nil) - if valid_613414 != nil: - section.add "X-Amz-Security-Token", valid_613414 - var valid_613415 = header.getOrDefault("X-Amz-Algorithm") - valid_613415 = validateParameter(valid_613415, JString, required = false, - default = nil) - if valid_613415 != nil: - section.add "X-Amz-Algorithm", valid_613415 - var valid_613416 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613416 = validateParameter(valid_613416, JString, required = false, - default = nil) - if valid_613416 != nil: - section.add "X-Amz-SignedHeaders", valid_613416 + var valid_611410 = header.getOrDefault("X-Amz-Signature") + valid_611410 = validateParameter(valid_611410, JString, required = false, + default = nil) + if valid_611410 != nil: + section.add "X-Amz-Signature", valid_611410 + var valid_611411 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611411 = validateParameter(valid_611411, JString, required = false, + default = nil) + if valid_611411 != nil: + section.add "X-Amz-Content-Sha256", valid_611411 + var valid_611412 = header.getOrDefault("X-Amz-Date") + valid_611412 = validateParameter(valid_611412, JString, required = false, + default = nil) + if valid_611412 != nil: + section.add "X-Amz-Date", valid_611412 + var valid_611413 = header.getOrDefault("X-Amz-Credential") + valid_611413 = validateParameter(valid_611413, JString, required = false, + default = nil) + if valid_611413 != nil: + section.add "X-Amz-Credential", valid_611413 + var valid_611414 = header.getOrDefault("X-Amz-Security-Token") + valid_611414 = validateParameter(valid_611414, JString, required = false, + default = nil) + if valid_611414 != nil: + section.add "X-Amz-Security-Token", valid_611414 + var valid_611415 = header.getOrDefault("X-Amz-Algorithm") + valid_611415 = validateParameter(valid_611415, JString, required = false, + default = nil) + if valid_611415 != nil: + section.add "X-Amz-Algorithm", valid_611415 + var valid_611416 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611416 = validateParameter(valid_611416, JString, required = false, + default = nil) + if valid_611416 != nil: + section.add "X-Amz-SignedHeaders", valid_611416 result.add "header", section section = newJObject() result.add "formData", section @@ -1306,41 +1279,41 @@ proc validate_UpdateActionTarget_613407(path: JsonNode; query: JsonNode; if body != nil: result.add "body", body -proc call*(call_613418: Call_UpdateActionTarget_613406; path: JsonNode; +proc call*(call_611418: Call_UpdateActionTarget_611406; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Updates the name and description of a custom action target in Security Hub. ## - let valid = call_613418.validator(path, query, header, formData, body) - let scheme = call_613418.pickScheme + let valid = call_611418.validator(path, query, header, formData, body) + let scheme = call_611418.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613418.url(scheme.get, call_613418.host, call_613418.base, - call_613418.route, valid.getOrDefault("path"), + let url = call_611418.url(scheme.get, call_611418.host, call_611418.base, + call_611418.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613418, url, valid) + result = atozHook(call_611418, url, valid) -proc call*(call_613419: Call_UpdateActionTarget_613406; ActionTargetArn: string; +proc call*(call_611419: Call_UpdateActionTarget_611406; ActionTargetArn: string; body: JsonNode): Recallable = ## updateActionTarget ## Updates the name and description of a custom action target in Security Hub. ## ActionTargetArn: string (required) ## : The ARN of the custom action target to update. ## body: JObject (required) - var path_613420 = newJObject() - var body_613421 = newJObject() - add(path_613420, "ActionTargetArn", newJString(ActionTargetArn)) + var path_611420 = newJObject() + var body_611421 = newJObject() + add(path_611420, "ActionTargetArn", newJString(ActionTargetArn)) if body != nil: - body_613421 = body - result = call_613419.call(path_613420, nil, nil, nil, body_613421) + body_611421 = body + result = call_611419.call(path_611420, nil, nil, nil, body_611421) -var updateActionTarget* = Call_UpdateActionTarget_613406( +var updateActionTarget* = Call_UpdateActionTarget_611406( name: "updateActionTarget", meth: HttpMethod.HttpPatch, host: "securityhub.amazonaws.com", route: "/actionTargets/{ActionTargetArn}", - validator: validate_UpdateActionTarget_613407, base: "/", - url: url_UpdateActionTarget_613408, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_UpdateActionTarget_611407, base: "/", + url: url_UpdateActionTarget_611408, schemes: {Scheme.Https, Scheme.Http}) type - Call_DeleteActionTarget_613378 = ref object of OpenApiRestCall_612658 -proc url_DeleteActionTarget_613380(protocol: Scheme; host: string; base: string; + Call_DeleteActionTarget_611378 = ref object of OpenApiRestCall_610658 +proc url_DeleteActionTarget_611380(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -1353,14 +1326,12 @@ proc url_DeleteActionTarget_613380(protocol: Scheme; host: string; base: string; var hydrated = hydratePath(path, segments) if hydrated.isNone: raise newException(ValueError, "unable to fully hydrate path") - if base == - "/" and - hydrated.get.startsWith "/": + if base == "/" and hydrated.get.startsWith "/": result.path = hydrated.get else: result.path = base & hydrated.get -proc validate_DeleteActionTarget_613379(path: JsonNode; query: JsonNode; +proc validate_DeleteActionTarget_611379(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Deletes a custom action target from Security Hub.

    Deleting a custom action target does not affect any findings or insights that were already sent to Amazon CloudWatch Events using the custom action.

    @@ -1373,11 +1344,11 @@ proc validate_DeleteActionTarget_613379(path: JsonNode; query: JsonNode; section = newJObject() assert path != nil, "path argument is necessary due to required `ActionTargetArn` field" - var valid_613395 = path.getOrDefault("ActionTargetArn") - valid_613395 = validateParameter(valid_613395, JString, required = true, + var valid_611395 = path.getOrDefault("ActionTargetArn") + valid_611395 = validateParameter(valid_611395, JString, required = true, default = nil) - if valid_613395 != nil: - section.add "ActionTargetArn", valid_613395 + if valid_611395 != nil: + section.add "ActionTargetArn", valid_611395 result.add "path", section section = newJObject() result.add "query", section @@ -1390,77 +1361,77 @@ proc validate_DeleteActionTarget_613379(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613396 = header.getOrDefault("X-Amz-Signature") - valid_613396 = validateParameter(valid_613396, JString, required = false, - default = nil) - if valid_613396 != nil: - section.add "X-Amz-Signature", valid_613396 - var valid_613397 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613397 = validateParameter(valid_613397, JString, required = false, - default = nil) - if valid_613397 != nil: - section.add "X-Amz-Content-Sha256", valid_613397 - var valid_613398 = header.getOrDefault("X-Amz-Date") - valid_613398 = validateParameter(valid_613398, JString, required = false, - default = nil) - if valid_613398 != nil: - section.add "X-Amz-Date", valid_613398 - var valid_613399 = header.getOrDefault("X-Amz-Credential") - valid_613399 = validateParameter(valid_613399, JString, required = false, - default = nil) - if valid_613399 != nil: - section.add "X-Amz-Credential", valid_613399 - var valid_613400 = header.getOrDefault("X-Amz-Security-Token") - valid_613400 = validateParameter(valid_613400, JString, required = false, - default = nil) - if valid_613400 != nil: - section.add "X-Amz-Security-Token", valid_613400 - var valid_613401 = header.getOrDefault("X-Amz-Algorithm") - valid_613401 = validateParameter(valid_613401, JString, required = false, - default = nil) - if valid_613401 != nil: - section.add "X-Amz-Algorithm", valid_613401 - var valid_613402 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613402 = validateParameter(valid_613402, JString, required = false, - default = nil) - if valid_613402 != nil: - section.add "X-Amz-SignedHeaders", valid_613402 + var valid_611396 = header.getOrDefault("X-Amz-Signature") + valid_611396 = validateParameter(valid_611396, JString, required = false, + default = nil) + if valid_611396 != nil: + section.add "X-Amz-Signature", valid_611396 + var valid_611397 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611397 = validateParameter(valid_611397, JString, required = false, + default = nil) + if valid_611397 != nil: + section.add "X-Amz-Content-Sha256", valid_611397 + var valid_611398 = header.getOrDefault("X-Amz-Date") + valid_611398 = validateParameter(valid_611398, JString, required = false, + default = nil) + if valid_611398 != nil: + section.add "X-Amz-Date", valid_611398 + var valid_611399 = header.getOrDefault("X-Amz-Credential") + valid_611399 = validateParameter(valid_611399, JString, required = false, + default = nil) + if valid_611399 != nil: + section.add "X-Amz-Credential", valid_611399 + var valid_611400 = header.getOrDefault("X-Amz-Security-Token") + valid_611400 = validateParameter(valid_611400, JString, required = false, + default = nil) + if valid_611400 != nil: + section.add "X-Amz-Security-Token", valid_611400 + var valid_611401 = header.getOrDefault("X-Amz-Algorithm") + valid_611401 = validateParameter(valid_611401, JString, required = false, + default = nil) + if valid_611401 != nil: + section.add "X-Amz-Algorithm", valid_611401 + var valid_611402 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611402 = validateParameter(valid_611402, JString, required = false, + default = nil) + if valid_611402 != nil: + section.add "X-Amz-SignedHeaders", valid_611402 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_613403: Call_DeleteActionTarget_613378; path: JsonNode; +proc call*(call_611403: Call_DeleteActionTarget_611378; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Deletes a custom action target from Security Hub.

    Deleting a custom action target does not affect any findings or insights that were already sent to Amazon CloudWatch Events using the custom action.

    ## - let valid = call_613403.validator(path, query, header, formData, body) - let scheme = call_613403.pickScheme + let valid = call_611403.validator(path, query, header, formData, body) + let scheme = call_611403.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613403.url(scheme.get, call_613403.host, call_613403.base, - call_613403.route, valid.getOrDefault("path"), + let url = call_611403.url(scheme.get, call_611403.host, call_611403.base, + call_611403.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613403, url, valid) + result = atozHook(call_611403, url, valid) -proc call*(call_613404: Call_DeleteActionTarget_613378; ActionTargetArn: string): Recallable = +proc call*(call_611404: Call_DeleteActionTarget_611378; ActionTargetArn: string): Recallable = ## deleteActionTarget ##

    Deletes a custom action target from Security Hub.

    Deleting a custom action target does not affect any findings or insights that were already sent to Amazon CloudWatch Events using the custom action.

    ## ActionTargetArn: string (required) ## : The ARN of the custom action target to delete. - var path_613405 = newJObject() - add(path_613405, "ActionTargetArn", newJString(ActionTargetArn)) - result = call_613404.call(path_613405, nil, nil, nil, nil) + var path_611405 = newJObject() + add(path_611405, "ActionTargetArn", newJString(ActionTargetArn)) + result = call_611404.call(path_611405, nil, nil, nil, nil) -var deleteActionTarget* = Call_DeleteActionTarget_613378( +var deleteActionTarget* = Call_DeleteActionTarget_611378( name: "deleteActionTarget", meth: HttpMethod.HttpDelete, host: "securityhub.amazonaws.com", route: "/actionTargets/{ActionTargetArn}", - validator: validate_DeleteActionTarget_613379, base: "/", - url: url_DeleteActionTarget_613380, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_DeleteActionTarget_611379, base: "/", + url: url_DeleteActionTarget_611380, schemes: {Scheme.Https, Scheme.Http}) type - Call_UpdateInsight_613436 = ref object of OpenApiRestCall_612658 -proc url_UpdateInsight_613438(protocol: Scheme; host: string; base: string; + Call_UpdateInsight_611436 = ref object of OpenApiRestCall_610658 +proc url_UpdateInsight_611438(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -1473,14 +1444,12 @@ proc url_UpdateInsight_613438(protocol: Scheme; host: string; base: string; var hydrated = hydratePath(path, segments) if hydrated.isNone: raise newException(ValueError, "unable to fully hydrate path") - if base == - "/" and - hydrated.get.startsWith "/": + if base == "/" and hydrated.get.startsWith "/": result.path = hydrated.get else: result.path = base & hydrated.get -proc validate_UpdateInsight_613437(path: JsonNode; query: JsonNode; header: JsonNode; +proc validate_UpdateInsight_611437(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Updates the Security Hub insight identified by the specified insight ARN. ## @@ -1492,11 +1461,11 @@ proc validate_UpdateInsight_613437(path: JsonNode; query: JsonNode; header: Json section = newJObject() assert path != nil, "path argument is necessary due to required `InsightArn` field" - var valid_613439 = path.getOrDefault("InsightArn") - valid_613439 = validateParameter(valid_613439, JString, required = true, + var valid_611439 = path.getOrDefault("InsightArn") + valid_611439 = validateParameter(valid_611439, JString, required = true, default = nil) - if valid_613439 != nil: - section.add "InsightArn", valid_613439 + if valid_611439 != nil: + section.add "InsightArn", valid_611439 result.add "path", section section = newJObject() result.add "query", section @@ -1509,41 +1478,41 @@ proc validate_UpdateInsight_613437(path: JsonNode; query: JsonNode; header: Json ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613440 = header.getOrDefault("X-Amz-Signature") - valid_613440 = validateParameter(valid_613440, JString, required = false, - default = nil) - if valid_613440 != nil: - section.add "X-Amz-Signature", valid_613440 - var valid_613441 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613441 = validateParameter(valid_613441, JString, required = false, - default = nil) - if valid_613441 != nil: - section.add "X-Amz-Content-Sha256", valid_613441 - var valid_613442 = header.getOrDefault("X-Amz-Date") - valid_613442 = validateParameter(valid_613442, JString, required = false, - default = nil) - if valid_613442 != nil: - section.add "X-Amz-Date", valid_613442 - var valid_613443 = header.getOrDefault("X-Amz-Credential") - valid_613443 = validateParameter(valid_613443, JString, required = false, - default = nil) - if valid_613443 != nil: - section.add "X-Amz-Credential", valid_613443 - var valid_613444 = header.getOrDefault("X-Amz-Security-Token") - valid_613444 = validateParameter(valid_613444, JString, required = false, - default = nil) - if valid_613444 != nil: - section.add "X-Amz-Security-Token", valid_613444 - var valid_613445 = header.getOrDefault("X-Amz-Algorithm") - valid_613445 = validateParameter(valid_613445, JString, required = false, - default = nil) - if valid_613445 != nil: - section.add "X-Amz-Algorithm", valid_613445 - var valid_613446 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613446 = validateParameter(valid_613446, JString, required = false, - default = nil) - if valid_613446 != nil: - section.add "X-Amz-SignedHeaders", valid_613446 + var valid_611440 = header.getOrDefault("X-Amz-Signature") + valid_611440 = validateParameter(valid_611440, JString, required = false, + default = nil) + if valid_611440 != nil: + section.add "X-Amz-Signature", valid_611440 + var valid_611441 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611441 = validateParameter(valid_611441, JString, required = false, + default = nil) + if valid_611441 != nil: + section.add "X-Amz-Content-Sha256", valid_611441 + var valid_611442 = header.getOrDefault("X-Amz-Date") + valid_611442 = validateParameter(valid_611442, JString, required = false, + default = nil) + if valid_611442 != nil: + section.add "X-Amz-Date", valid_611442 + var valid_611443 = header.getOrDefault("X-Amz-Credential") + valid_611443 = validateParameter(valid_611443, JString, required = false, + default = nil) + if valid_611443 != nil: + section.add "X-Amz-Credential", valid_611443 + var valid_611444 = header.getOrDefault("X-Amz-Security-Token") + valid_611444 = validateParameter(valid_611444, JString, required = false, + default = nil) + if valid_611444 != nil: + section.add "X-Amz-Security-Token", valid_611444 + var valid_611445 = header.getOrDefault("X-Amz-Algorithm") + valid_611445 = validateParameter(valid_611445, JString, required = false, + default = nil) + if valid_611445 != nil: + section.add "X-Amz-Algorithm", valid_611445 + var valid_611446 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611446 = validateParameter(valid_611446, JString, required = false, + default = nil) + if valid_611446 != nil: + section.add "X-Amz-SignedHeaders", valid_611446 result.add "header", section section = newJObject() result.add "formData", section @@ -1554,39 +1523,39 @@ proc validate_UpdateInsight_613437(path: JsonNode; query: JsonNode; header: Json if body != nil: result.add "body", body -proc call*(call_613448: Call_UpdateInsight_613436; path: JsonNode; query: JsonNode; +proc call*(call_611448: Call_UpdateInsight_611436; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Updates the Security Hub insight identified by the specified insight ARN. ## - let valid = call_613448.validator(path, query, header, formData, body) - let scheme = call_613448.pickScheme + let valid = call_611448.validator(path, query, header, formData, body) + let scheme = call_611448.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613448.url(scheme.get, call_613448.host, call_613448.base, - call_613448.route, valid.getOrDefault("path"), + let url = call_611448.url(scheme.get, call_611448.host, call_611448.base, + call_611448.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613448, url, valid) + result = atozHook(call_611448, url, valid) -proc call*(call_613449: Call_UpdateInsight_613436; InsightArn: string; body: JsonNode): Recallable = +proc call*(call_611449: Call_UpdateInsight_611436; InsightArn: string; body: JsonNode): Recallable = ## updateInsight ## Updates the Security Hub insight identified by the specified insight ARN. ## InsightArn: string (required) ## : The ARN of the insight that you want to update. ## body: JObject (required) - var path_613450 = newJObject() - var body_613451 = newJObject() - add(path_613450, "InsightArn", newJString(InsightArn)) + var path_611450 = newJObject() + var body_611451 = newJObject() + add(path_611450, "InsightArn", newJString(InsightArn)) if body != nil: - body_613451 = body - result = call_613449.call(path_613450, nil, nil, nil, body_613451) + body_611451 = body + result = call_611449.call(path_611450, nil, nil, nil, body_611451) -var updateInsight* = Call_UpdateInsight_613436(name: "updateInsight", +var updateInsight* = Call_UpdateInsight_611436(name: "updateInsight", meth: HttpMethod.HttpPatch, host: "securityhub.amazonaws.com", - route: "/insights/{InsightArn}", validator: validate_UpdateInsight_613437, - base: "/", url: url_UpdateInsight_613438, schemes: {Scheme.Https, Scheme.Http}) + route: "/insights/{InsightArn}", validator: validate_UpdateInsight_611437, + base: "/", url: url_UpdateInsight_611438, schemes: {Scheme.Https, Scheme.Http}) type - Call_DeleteInsight_613422 = ref object of OpenApiRestCall_612658 -proc url_DeleteInsight_613424(protocol: Scheme; host: string; base: string; + Call_DeleteInsight_611422 = ref object of OpenApiRestCall_610658 +proc url_DeleteInsight_611424(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -1599,14 +1568,12 @@ proc url_DeleteInsight_613424(protocol: Scheme; host: string; base: string; var hydrated = hydratePath(path, segments) if hydrated.isNone: raise newException(ValueError, "unable to fully hydrate path") - if base == - "/" and - hydrated.get.startsWith "/": + if base == "/" and hydrated.get.startsWith "/": result.path = hydrated.get else: result.path = base & hydrated.get -proc validate_DeleteInsight_613423(path: JsonNode; query: JsonNode; header: JsonNode; +proc validate_DeleteInsight_611423(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the insight specified by the InsightArn. ## @@ -1618,11 +1585,11 @@ proc validate_DeleteInsight_613423(path: JsonNode; query: JsonNode; header: Json section = newJObject() assert path != nil, "path argument is necessary due to required `InsightArn` field" - var valid_613425 = path.getOrDefault("InsightArn") - valid_613425 = validateParameter(valid_613425, JString, required = true, + var valid_611425 = path.getOrDefault("InsightArn") + valid_611425 = validateParameter(valid_611425, JString, required = true, default = nil) - if valid_613425 != nil: - section.add "InsightArn", valid_613425 + if valid_611425 != nil: + section.add "InsightArn", valid_611425 result.add "path", section section = newJObject() result.add "query", section @@ -1635,88 +1602,86 @@ proc validate_DeleteInsight_613423(path: JsonNode; query: JsonNode; header: Json ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613426 = header.getOrDefault("X-Amz-Signature") - valid_613426 = validateParameter(valid_613426, JString, required = false, - default = nil) - if valid_613426 != nil: - section.add "X-Amz-Signature", valid_613426 - var valid_613427 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613427 = validateParameter(valid_613427, JString, required = false, - default = nil) - if valid_613427 != nil: - section.add "X-Amz-Content-Sha256", valid_613427 - var valid_613428 = header.getOrDefault("X-Amz-Date") - valid_613428 = validateParameter(valid_613428, JString, required = false, - default = nil) - if valid_613428 != nil: - section.add "X-Amz-Date", valid_613428 - var valid_613429 = header.getOrDefault("X-Amz-Credential") - valid_613429 = validateParameter(valid_613429, JString, required = false, - default = nil) - if valid_613429 != nil: - section.add "X-Amz-Credential", valid_613429 - var valid_613430 = header.getOrDefault("X-Amz-Security-Token") - valid_613430 = validateParameter(valid_613430, JString, required = false, - default = nil) - if valid_613430 != nil: - section.add "X-Amz-Security-Token", valid_613430 - var valid_613431 = header.getOrDefault("X-Amz-Algorithm") - valid_613431 = validateParameter(valid_613431, JString, required = false, - default = nil) - if valid_613431 != nil: - section.add "X-Amz-Algorithm", valid_613431 - var valid_613432 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613432 = validateParameter(valid_613432, JString, required = false, - default = nil) - if valid_613432 != nil: - section.add "X-Amz-SignedHeaders", valid_613432 + var valid_611426 = header.getOrDefault("X-Amz-Signature") + valid_611426 = validateParameter(valid_611426, JString, required = false, + default = nil) + if valid_611426 != nil: + section.add "X-Amz-Signature", valid_611426 + var valid_611427 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611427 = validateParameter(valid_611427, JString, required = false, + default = nil) + if valid_611427 != nil: + section.add "X-Amz-Content-Sha256", valid_611427 + var valid_611428 = header.getOrDefault("X-Amz-Date") + valid_611428 = validateParameter(valid_611428, JString, required = false, + default = nil) + if valid_611428 != nil: + section.add "X-Amz-Date", valid_611428 + var valid_611429 = header.getOrDefault("X-Amz-Credential") + valid_611429 = validateParameter(valid_611429, JString, required = false, + default = nil) + if valid_611429 != nil: + section.add "X-Amz-Credential", valid_611429 + var valid_611430 = header.getOrDefault("X-Amz-Security-Token") + valid_611430 = validateParameter(valid_611430, JString, required = false, + default = nil) + if valid_611430 != nil: + section.add "X-Amz-Security-Token", valid_611430 + var valid_611431 = header.getOrDefault("X-Amz-Algorithm") + valid_611431 = validateParameter(valid_611431, JString, required = false, + default = nil) + if valid_611431 != nil: + section.add "X-Amz-Algorithm", valid_611431 + var valid_611432 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611432 = validateParameter(valid_611432, JString, required = false, + default = nil) + if valid_611432 != nil: + section.add "X-Amz-SignedHeaders", valid_611432 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_613433: Call_DeleteInsight_613422; path: JsonNode; query: JsonNode; +proc call*(call_611433: Call_DeleteInsight_611422; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the insight specified by the InsightArn. ## - let valid = call_613433.validator(path, query, header, formData, body) - let scheme = call_613433.pickScheme + let valid = call_611433.validator(path, query, header, formData, body) + let scheme = call_611433.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613433.url(scheme.get, call_613433.host, call_613433.base, - call_613433.route, valid.getOrDefault("path"), + let url = call_611433.url(scheme.get, call_611433.host, call_611433.base, + call_611433.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613433, url, valid) + result = atozHook(call_611433, url, valid) -proc call*(call_613434: Call_DeleteInsight_613422; InsightArn: string): Recallable = +proc call*(call_611434: Call_DeleteInsight_611422; InsightArn: string): Recallable = ## deleteInsight ## Deletes the insight specified by the InsightArn. ## InsightArn: string (required) ## : The ARN of the insight to delete. - var path_613435 = newJObject() - add(path_613435, "InsightArn", newJString(InsightArn)) - result = call_613434.call(path_613435, nil, nil, nil, nil) + var path_611435 = newJObject() + add(path_611435, "InsightArn", newJString(InsightArn)) + result = call_611434.call(path_611435, nil, nil, nil, nil) -var deleteInsight* = Call_DeleteInsight_613422(name: "deleteInsight", +var deleteInsight* = Call_DeleteInsight_611422(name: "deleteInsight", meth: HttpMethod.HttpDelete, host: "securityhub.amazonaws.com", - route: "/insights/{InsightArn}", validator: validate_DeleteInsight_613423, - base: "/", url: url_DeleteInsight_613424, schemes: {Scheme.Https, Scheme.Http}) + route: "/insights/{InsightArn}", validator: validate_DeleteInsight_611423, + base: "/", url: url_DeleteInsight_611424, schemes: {Scheme.Https, Scheme.Http}) type - Call_DeleteInvitations_613452 = ref object of OpenApiRestCall_612658 -proc url_DeleteInvitations_613454(protocol: Scheme; host: string; base: string; + Call_DeleteInvitations_611452 = ref object of OpenApiRestCall_610658 +proc url_DeleteInvitations_611454(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_DeleteInvitations_613453(path: JsonNode; query: JsonNode; +proc validate_DeleteInvitations_611453(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes invitations received by the AWS account to become a member account. @@ -1736,41 +1701,41 @@ proc validate_DeleteInvitations_613453(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613455 = header.getOrDefault("X-Amz-Signature") - valid_613455 = validateParameter(valid_613455, JString, required = false, - default = nil) - if valid_613455 != nil: - section.add "X-Amz-Signature", valid_613455 - var valid_613456 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613456 = validateParameter(valid_613456, JString, required = false, - default = nil) - if valid_613456 != nil: - section.add "X-Amz-Content-Sha256", valid_613456 - var valid_613457 = header.getOrDefault("X-Amz-Date") - valid_613457 = validateParameter(valid_613457, JString, required = false, - default = nil) - if valid_613457 != nil: - section.add "X-Amz-Date", valid_613457 - var valid_613458 = header.getOrDefault("X-Amz-Credential") - valid_613458 = validateParameter(valid_613458, JString, required = false, - default = nil) - if valid_613458 != nil: - section.add "X-Amz-Credential", valid_613458 - var valid_613459 = header.getOrDefault("X-Amz-Security-Token") - valid_613459 = validateParameter(valid_613459, JString, required = false, - default = nil) - if valid_613459 != nil: - section.add "X-Amz-Security-Token", valid_613459 - var valid_613460 = header.getOrDefault("X-Amz-Algorithm") - valid_613460 = validateParameter(valid_613460, JString, required = false, - default = nil) - if valid_613460 != nil: - section.add "X-Amz-Algorithm", valid_613460 - var valid_613461 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613461 = validateParameter(valid_613461, JString, required = false, - default = nil) - if valid_613461 != nil: - section.add "X-Amz-SignedHeaders", valid_613461 + var valid_611455 = header.getOrDefault("X-Amz-Signature") + valid_611455 = validateParameter(valid_611455, JString, required = false, + default = nil) + if valid_611455 != nil: + section.add "X-Amz-Signature", valid_611455 + var valid_611456 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611456 = validateParameter(valid_611456, JString, required = false, + default = nil) + if valid_611456 != nil: + section.add "X-Amz-Content-Sha256", valid_611456 + var valid_611457 = header.getOrDefault("X-Amz-Date") + valid_611457 = validateParameter(valid_611457, JString, required = false, + default = nil) + if valid_611457 != nil: + section.add "X-Amz-Date", valid_611457 + var valid_611458 = header.getOrDefault("X-Amz-Credential") + valid_611458 = validateParameter(valid_611458, JString, required = false, + default = nil) + if valid_611458 != nil: + section.add "X-Amz-Credential", valid_611458 + var valid_611459 = header.getOrDefault("X-Amz-Security-Token") + valid_611459 = validateParameter(valid_611459, JString, required = false, + default = nil) + if valid_611459 != nil: + section.add "X-Amz-Security-Token", valid_611459 + var valid_611460 = header.getOrDefault("X-Amz-Algorithm") + valid_611460 = validateParameter(valid_611460, JString, required = false, + default = nil) + if valid_611460 != nil: + section.add "X-Amz-Algorithm", valid_611460 + var valid_611461 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611461 = validateParameter(valid_611461, JString, required = false, + default = nil) + if valid_611461 != nil: + section.add "X-Amz-SignedHeaders", valid_611461 result.add "header", section section = newJObject() result.add "formData", section @@ -1781,48 +1746,46 @@ proc validate_DeleteInvitations_613453(path: JsonNode; query: JsonNode; if body != nil: result.add "body", body -proc call*(call_613463: Call_DeleteInvitations_613452; path: JsonNode; +proc call*(call_611463: Call_DeleteInvitations_611452; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes invitations received by the AWS account to become a member account. ## - let valid = call_613463.validator(path, query, header, formData, body) - let scheme = call_613463.pickScheme + let valid = call_611463.validator(path, query, header, formData, body) + let scheme = call_611463.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613463.url(scheme.get, call_613463.host, call_613463.base, - call_613463.route, valid.getOrDefault("path"), + let url = call_611463.url(scheme.get, call_611463.host, call_611463.base, + call_611463.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613463, url, valid) + result = atozHook(call_611463, url, valid) -proc call*(call_613464: Call_DeleteInvitations_613452; body: JsonNode): Recallable = +proc call*(call_611464: Call_DeleteInvitations_611452; body: JsonNode): Recallable = ## deleteInvitations ## Deletes invitations received by the AWS account to become a member account. ## body: JObject (required) - var body_613465 = newJObject() + var body_611465 = newJObject() if body != nil: - body_613465 = body - result = call_613464.call(nil, nil, nil, nil, body_613465) + body_611465 = body + result = call_611464.call(nil, nil, nil, nil, body_611465) -var deleteInvitations* = Call_DeleteInvitations_613452(name: "deleteInvitations", +var deleteInvitations* = Call_DeleteInvitations_611452(name: "deleteInvitations", meth: HttpMethod.HttpPost, host: "securityhub.amazonaws.com", - route: "/invitations/delete", validator: validate_DeleteInvitations_613453, - base: "/", url: url_DeleteInvitations_613454, + route: "/invitations/delete", validator: validate_DeleteInvitations_611453, + base: "/", url: url_DeleteInvitations_611454, schemes: {Scheme.Https, Scheme.Http}) type - Call_DeleteMembers_613466 = ref object of OpenApiRestCall_612658 -proc url_DeleteMembers_613468(protocol: Scheme; host: string; base: string; + Call_DeleteMembers_611466 = ref object of OpenApiRestCall_610658 +proc url_DeleteMembers_611468(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_DeleteMembers_613467(path: JsonNode; query: JsonNode; header: JsonNode; +proc validate_DeleteMembers_611467(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes the specified member accounts from Security Hub. ## @@ -1841,41 +1804,41 @@ proc validate_DeleteMembers_613467(path: JsonNode; query: JsonNode; header: Json ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613469 = header.getOrDefault("X-Amz-Signature") - valid_613469 = validateParameter(valid_613469, JString, required = false, - default = nil) - if valid_613469 != nil: - section.add "X-Amz-Signature", valid_613469 - var valid_613470 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613470 = validateParameter(valid_613470, JString, required = false, - default = nil) - if valid_613470 != nil: - section.add "X-Amz-Content-Sha256", valid_613470 - var valid_613471 = header.getOrDefault("X-Amz-Date") - valid_613471 = validateParameter(valid_613471, JString, required = false, - default = nil) - if valid_613471 != nil: - section.add "X-Amz-Date", valid_613471 - var valid_613472 = header.getOrDefault("X-Amz-Credential") - valid_613472 = validateParameter(valid_613472, JString, required = false, - default = nil) - if valid_613472 != nil: - section.add "X-Amz-Credential", valid_613472 - var valid_613473 = header.getOrDefault("X-Amz-Security-Token") - valid_613473 = validateParameter(valid_613473, JString, required = false, - default = nil) - if valid_613473 != nil: - section.add "X-Amz-Security-Token", valid_613473 - var valid_613474 = header.getOrDefault("X-Amz-Algorithm") - valid_613474 = validateParameter(valid_613474, JString, required = false, - default = nil) - if valid_613474 != nil: - section.add "X-Amz-Algorithm", valid_613474 - var valid_613475 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613475 = validateParameter(valid_613475, JString, required = false, - default = nil) - if valid_613475 != nil: - section.add "X-Amz-SignedHeaders", valid_613475 + var valid_611469 = header.getOrDefault("X-Amz-Signature") + valid_611469 = validateParameter(valid_611469, JString, required = false, + default = nil) + if valid_611469 != nil: + section.add "X-Amz-Signature", valid_611469 + var valid_611470 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611470 = validateParameter(valid_611470, JString, required = false, + default = nil) + if valid_611470 != nil: + section.add "X-Amz-Content-Sha256", valid_611470 + var valid_611471 = header.getOrDefault("X-Amz-Date") + valid_611471 = validateParameter(valid_611471, JString, required = false, + default = nil) + if valid_611471 != nil: + section.add "X-Amz-Date", valid_611471 + var valid_611472 = header.getOrDefault("X-Amz-Credential") + valid_611472 = validateParameter(valid_611472, JString, required = false, + default = nil) + if valid_611472 != nil: + section.add "X-Amz-Credential", valid_611472 + var valid_611473 = header.getOrDefault("X-Amz-Security-Token") + valid_611473 = validateParameter(valid_611473, JString, required = false, + default = nil) + if valid_611473 != nil: + section.add "X-Amz-Security-Token", valid_611473 + var valid_611474 = header.getOrDefault("X-Amz-Algorithm") + valid_611474 = validateParameter(valid_611474, JString, required = false, + default = nil) + if valid_611474 != nil: + section.add "X-Amz-Algorithm", valid_611474 + var valid_611475 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611475 = validateParameter(valid_611475, JString, required = false, + default = nil) + if valid_611475 != nil: + section.add "X-Amz-SignedHeaders", valid_611475 result.add "header", section section = newJObject() result.add "formData", section @@ -1886,47 +1849,45 @@ proc validate_DeleteMembers_613467(path: JsonNode; query: JsonNode; header: Json if body != nil: result.add "body", body -proc call*(call_613477: Call_DeleteMembers_613466; path: JsonNode; query: JsonNode; +proc call*(call_611477: Call_DeleteMembers_611466; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes the specified member accounts from Security Hub. ## - let valid = call_613477.validator(path, query, header, formData, body) - let scheme = call_613477.pickScheme + let valid = call_611477.validator(path, query, header, formData, body) + let scheme = call_611477.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613477.url(scheme.get, call_613477.host, call_613477.base, - call_613477.route, valid.getOrDefault("path"), + let url = call_611477.url(scheme.get, call_611477.host, call_611477.base, + call_611477.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613477, url, valid) + result = atozHook(call_611477, url, valid) -proc call*(call_613478: Call_DeleteMembers_613466; body: JsonNode): Recallable = +proc call*(call_611478: Call_DeleteMembers_611466; body: JsonNode): Recallable = ## deleteMembers ## Deletes the specified member accounts from Security Hub. ## body: JObject (required) - var body_613479 = newJObject() + var body_611479 = newJObject() if body != nil: - body_613479 = body - result = call_613478.call(nil, nil, nil, nil, body_613479) + body_611479 = body + result = call_611478.call(nil, nil, nil, nil, body_611479) -var deleteMembers* = Call_DeleteMembers_613466(name: "deleteMembers", +var deleteMembers* = Call_DeleteMembers_611466(name: "deleteMembers", meth: HttpMethod.HttpPost, host: "securityhub.amazonaws.com", - route: "/members/delete", validator: validate_DeleteMembers_613467, base: "/", - url: url_DeleteMembers_613468, schemes: {Scheme.Https, Scheme.Http}) + route: "/members/delete", validator: validate_DeleteMembers_611467, base: "/", + url: url_DeleteMembers_611468, schemes: {Scheme.Https, Scheme.Http}) type - Call_DescribeActionTargets_613480 = ref object of OpenApiRestCall_612658 -proc url_DescribeActionTargets_613482(protocol: Scheme; host: string; base: string; + Call_DescribeActionTargets_611480 = ref object of OpenApiRestCall_610658 +proc url_DescribeActionTargets_611482(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_DescribeActionTargets_613481(path: JsonNode; query: JsonNode; +proc validate_DescribeActionTargets_611481(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Returns a list of the custom action targets in Security Hub in your account. ## @@ -1940,16 +1901,16 @@ proc validate_DescribeActionTargets_613481(path: JsonNode; query: JsonNode; ## NextToken: JString ## : Pagination token section = newJObject() - var valid_613483 = query.getOrDefault("MaxResults") - valid_613483 = validateParameter(valid_613483, JString, required = false, + var valid_611483 = query.getOrDefault("MaxResults") + valid_611483 = validateParameter(valid_611483, JString, required = false, default = nil) - if valid_613483 != nil: - section.add "MaxResults", valid_613483 - var valid_613484 = query.getOrDefault("NextToken") - valid_613484 = validateParameter(valid_613484, JString, required = false, + if valid_611483 != nil: + section.add "MaxResults", valid_611483 + var valid_611484 = query.getOrDefault("NextToken") + valid_611484 = validateParameter(valid_611484, JString, required = false, default = nil) - if valid_613484 != nil: - section.add "NextToken", valid_613484 + if valid_611484 != nil: + section.add "NextToken", valid_611484 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -1960,41 +1921,41 @@ proc validate_DescribeActionTargets_613481(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613485 = header.getOrDefault("X-Amz-Signature") - valid_613485 = validateParameter(valid_613485, JString, required = false, - default = nil) - if valid_613485 != nil: - section.add "X-Amz-Signature", valid_613485 - var valid_613486 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613486 = validateParameter(valid_613486, JString, required = false, - default = nil) - if valid_613486 != nil: - section.add "X-Amz-Content-Sha256", valid_613486 - var valid_613487 = header.getOrDefault("X-Amz-Date") - valid_613487 = validateParameter(valid_613487, JString, required = false, - default = nil) - if valid_613487 != nil: - section.add "X-Amz-Date", valid_613487 - var valid_613488 = header.getOrDefault("X-Amz-Credential") - valid_613488 = validateParameter(valid_613488, JString, required = false, - default = nil) - if valid_613488 != nil: - section.add "X-Amz-Credential", valid_613488 - var valid_613489 = header.getOrDefault("X-Amz-Security-Token") - valid_613489 = validateParameter(valid_613489, JString, required = false, - default = nil) - if valid_613489 != nil: - section.add "X-Amz-Security-Token", valid_613489 - var valid_613490 = header.getOrDefault("X-Amz-Algorithm") - valid_613490 = validateParameter(valid_613490, JString, required = false, - default = nil) - if valid_613490 != nil: - section.add "X-Amz-Algorithm", valid_613490 - var valid_613491 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613491 = validateParameter(valid_613491, JString, required = false, - default = nil) - if valid_613491 != nil: - section.add "X-Amz-SignedHeaders", valid_613491 + var valid_611485 = header.getOrDefault("X-Amz-Signature") + valid_611485 = validateParameter(valid_611485, JString, required = false, + default = nil) + if valid_611485 != nil: + section.add "X-Amz-Signature", valid_611485 + var valid_611486 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611486 = validateParameter(valid_611486, JString, required = false, + default = nil) + if valid_611486 != nil: + section.add "X-Amz-Content-Sha256", valid_611486 + var valid_611487 = header.getOrDefault("X-Amz-Date") + valid_611487 = validateParameter(valid_611487, JString, required = false, + default = nil) + if valid_611487 != nil: + section.add "X-Amz-Date", valid_611487 + var valid_611488 = header.getOrDefault("X-Amz-Credential") + valid_611488 = validateParameter(valid_611488, JString, required = false, + default = nil) + if valid_611488 != nil: + section.add "X-Amz-Credential", valid_611488 + var valid_611489 = header.getOrDefault("X-Amz-Security-Token") + valid_611489 = validateParameter(valid_611489, JString, required = false, + default = nil) + if valid_611489 != nil: + section.add "X-Amz-Security-Token", valid_611489 + var valid_611490 = header.getOrDefault("X-Amz-Algorithm") + valid_611490 = validateParameter(valid_611490, JString, required = false, + default = nil) + if valid_611490 != nil: + section.add "X-Amz-Algorithm", valid_611490 + var valid_611491 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611491 = validateParameter(valid_611491, JString, required = false, + default = nil) + if valid_611491 != nil: + section.add "X-Amz-SignedHeaders", valid_611491 result.add "header", section section = newJObject() result.add "formData", section @@ -2005,20 +1966,20 @@ proc validate_DescribeActionTargets_613481(path: JsonNode; query: JsonNode; if body != nil: result.add "body", body -proc call*(call_613493: Call_DescribeActionTargets_613480; path: JsonNode; +proc call*(call_611493: Call_DescribeActionTargets_611480; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Returns a list of the custom action targets in Security Hub in your account. ## - let valid = call_613493.validator(path, query, header, formData, body) - let scheme = call_613493.pickScheme + let valid = call_611493.validator(path, query, header, formData, body) + let scheme = call_611493.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613493.url(scheme.get, call_613493.host, call_613493.base, - call_613493.route, valid.getOrDefault("path"), + let url = call_611493.url(scheme.get, call_611493.host, call_611493.base, + call_611493.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613493, url, valid) + result = atozHook(call_611493, url, valid) -proc call*(call_613494: Call_DescribeActionTargets_613480; body: JsonNode; +proc call*(call_611494: Call_DescribeActionTargets_611480; body: JsonNode; MaxResults: string = ""; NextToken: string = ""): Recallable = ## describeActionTargets ## Returns a list of the custom action targets in Security Hub in your account. @@ -2027,37 +1988,35 @@ proc call*(call_613494: Call_DescribeActionTargets_613480; body: JsonNode; ## NextToken: string ## : Pagination token ## body: JObject (required) - var query_613495 = newJObject() - var body_613496 = newJObject() - add(query_613495, "MaxResults", newJString(MaxResults)) - add(query_613495, "NextToken", newJString(NextToken)) + var query_611495 = newJObject() + var body_611496 = newJObject() + add(query_611495, "MaxResults", newJString(MaxResults)) + add(query_611495, "NextToken", newJString(NextToken)) if body != nil: - body_613496 = body - result = call_613494.call(nil, query_613495, nil, nil, body_613496) + body_611496 = body + result = call_611494.call(nil, query_611495, nil, nil, body_611496) -var describeActionTargets* = Call_DescribeActionTargets_613480( +var describeActionTargets* = Call_DescribeActionTargets_611480( name: "describeActionTargets", meth: HttpMethod.HttpPost, host: "securityhub.amazonaws.com", route: "/actionTargets/get", - validator: validate_DescribeActionTargets_613481, base: "/", - url: url_DescribeActionTargets_613482, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_DescribeActionTargets_611481, base: "/", + url: url_DescribeActionTargets_611482, schemes: {Scheme.Https, Scheme.Http}) type - Call_EnableSecurityHub_613511 = ref object of OpenApiRestCall_612658 -proc url_EnableSecurityHub_613513(protocol: Scheme; host: string; base: string; + Call_EnableSecurityHub_611511 = ref object of OpenApiRestCall_610658 +proc url_EnableSecurityHub_611513(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_EnableSecurityHub_613512(path: JsonNode; query: JsonNode; +proc validate_EnableSecurityHub_611512(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = - ##

    Enables Security Hub for your account in the current Region or the Region you specify in the request.

    Enabling Security Hub also enables the CIS AWS Foundations standard.

    When you enable Security Hub, you grant to Security Hub the permissions necessary to gather findings from AWS Config, Amazon GuardDuty, Amazon Inspector, and Amazon Macie.

    To learn more, see Setting Up AWS Security Hub.

    + ##

    Enables Security Hub for your account in the current Region or the Region you specify in the request.

    When you enable Security Hub, you grant to Security Hub the permissions necessary to gather findings from AWS Config, Amazon GuardDuty, Amazon Inspector, and Amazon Macie.

    When you use the EnableSecurityHub operation to enable Security Hub, you also automatically enable the CIS AWS Foundations standard. You do not enable the Payment Card Industry Data Security Standard (PCI DSS) standard. To enable a standard, use the BatchEnableStandards operation. To disable a standard, use the BatchDisableStandards operation.

    To learn more, see Setting Up AWS Security Hub in the AWS Security Hub User Guide.

    ## var section: JsonNode result = newJObject() @@ -2074,41 +2033,41 @@ proc validate_EnableSecurityHub_613512(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613514 = header.getOrDefault("X-Amz-Signature") - valid_613514 = validateParameter(valid_613514, JString, required = false, - default = nil) - if valid_613514 != nil: - section.add "X-Amz-Signature", valid_613514 - var valid_613515 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613515 = validateParameter(valid_613515, JString, required = false, - default = nil) - if valid_613515 != nil: - section.add "X-Amz-Content-Sha256", valid_613515 - var valid_613516 = header.getOrDefault("X-Amz-Date") - valid_613516 = validateParameter(valid_613516, JString, required = false, - default = nil) - if valid_613516 != nil: - section.add "X-Amz-Date", valid_613516 - var valid_613517 = header.getOrDefault("X-Amz-Credential") - valid_613517 = validateParameter(valid_613517, JString, required = false, - default = nil) - if valid_613517 != nil: - section.add "X-Amz-Credential", valid_613517 - var valid_613518 = header.getOrDefault("X-Amz-Security-Token") - valid_613518 = validateParameter(valid_613518, JString, required = false, - default = nil) - if valid_613518 != nil: - section.add "X-Amz-Security-Token", valid_613518 - var valid_613519 = header.getOrDefault("X-Amz-Algorithm") - valid_613519 = validateParameter(valid_613519, JString, required = false, - default = nil) - if valid_613519 != nil: - section.add "X-Amz-Algorithm", valid_613519 - var valid_613520 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613520 = validateParameter(valid_613520, JString, required = false, - default = nil) - if valid_613520 != nil: - section.add "X-Amz-SignedHeaders", valid_613520 + var valid_611514 = header.getOrDefault("X-Amz-Signature") + valid_611514 = validateParameter(valid_611514, JString, required = false, + default = nil) + if valid_611514 != nil: + section.add "X-Amz-Signature", valid_611514 + var valid_611515 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611515 = validateParameter(valid_611515, JString, required = false, + default = nil) + if valid_611515 != nil: + section.add "X-Amz-Content-Sha256", valid_611515 + var valid_611516 = header.getOrDefault("X-Amz-Date") + valid_611516 = validateParameter(valid_611516, JString, required = false, + default = nil) + if valid_611516 != nil: + section.add "X-Amz-Date", valid_611516 + var valid_611517 = header.getOrDefault("X-Amz-Credential") + valid_611517 = validateParameter(valid_611517, JString, required = false, + default = nil) + if valid_611517 != nil: + section.add "X-Amz-Credential", valid_611517 + var valid_611518 = header.getOrDefault("X-Amz-Security-Token") + valid_611518 = validateParameter(valid_611518, JString, required = false, + default = nil) + if valid_611518 != nil: + section.add "X-Amz-Security-Token", valid_611518 + var valid_611519 = header.getOrDefault("X-Amz-Algorithm") + valid_611519 = validateParameter(valid_611519, JString, required = false, + default = nil) + if valid_611519 != nil: + section.add "X-Amz-Algorithm", valid_611519 + var valid_611520 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611520 = validateParameter(valid_611520, JString, required = false, + default = nil) + if valid_611520 != nil: + section.add "X-Amz-SignedHeaders", valid_611520 result.add "header", section section = newJObject() result.add "formData", section @@ -2119,47 +2078,45 @@ proc validate_EnableSecurityHub_613512(path: JsonNode; query: JsonNode; if body != nil: result.add "body", body -proc call*(call_613522: Call_EnableSecurityHub_613511; path: JsonNode; +proc call*(call_611522: Call_EnableSecurityHub_611511; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = - ##

    Enables Security Hub for your account in the current Region or the Region you specify in the request.

    Enabling Security Hub also enables the CIS AWS Foundations standard.

    When you enable Security Hub, you grant to Security Hub the permissions necessary to gather findings from AWS Config, Amazon GuardDuty, Amazon Inspector, and Amazon Macie.

    To learn more, see Setting Up AWS Security Hub.

    + ##

    Enables Security Hub for your account in the current Region or the Region you specify in the request.

    When you enable Security Hub, you grant to Security Hub the permissions necessary to gather findings from AWS Config, Amazon GuardDuty, Amazon Inspector, and Amazon Macie.

    When you use the EnableSecurityHub operation to enable Security Hub, you also automatically enable the CIS AWS Foundations standard. You do not enable the Payment Card Industry Data Security Standard (PCI DSS) standard. To enable a standard, use the BatchEnableStandards operation. To disable a standard, use the BatchDisableStandards operation.

    To learn more, see Setting Up AWS Security Hub in the AWS Security Hub User Guide.

    ## - let valid = call_613522.validator(path, query, header, formData, body) - let scheme = call_613522.pickScheme + let valid = call_611522.validator(path, query, header, formData, body) + let scheme = call_611522.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613522.url(scheme.get, call_613522.host, call_613522.base, - call_613522.route, valid.getOrDefault("path"), + let url = call_611522.url(scheme.get, call_611522.host, call_611522.base, + call_611522.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613522, url, valid) + result = atozHook(call_611522, url, valid) -proc call*(call_613523: Call_EnableSecurityHub_613511; body: JsonNode): Recallable = +proc call*(call_611523: Call_EnableSecurityHub_611511; body: JsonNode): Recallable = ## enableSecurityHub - ##

    Enables Security Hub for your account in the current Region or the Region you specify in the request.

    Enabling Security Hub also enables the CIS AWS Foundations standard.

    When you enable Security Hub, you grant to Security Hub the permissions necessary to gather findings from AWS Config, Amazon GuardDuty, Amazon Inspector, and Amazon Macie.

    To learn more, see Setting Up AWS Security Hub.

    + ##

    Enables Security Hub for your account in the current Region or the Region you specify in the request.

    When you enable Security Hub, you grant to Security Hub the permissions necessary to gather findings from AWS Config, Amazon GuardDuty, Amazon Inspector, and Amazon Macie.

    When you use the EnableSecurityHub operation to enable Security Hub, you also automatically enable the CIS AWS Foundations standard. You do not enable the Payment Card Industry Data Security Standard (PCI DSS) standard. To enable a standard, use the BatchEnableStandards operation. To disable a standard, use the BatchDisableStandards operation.

    To learn more, see Setting Up AWS Security Hub in the AWS Security Hub User Guide.

    ## body: JObject (required) - var body_613524 = newJObject() + var body_611524 = newJObject() if body != nil: - body_613524 = body - result = call_613523.call(nil, nil, nil, nil, body_613524) + body_611524 = body + result = call_611523.call(nil, nil, nil, nil, body_611524) -var enableSecurityHub* = Call_EnableSecurityHub_613511(name: "enableSecurityHub", +var enableSecurityHub* = Call_EnableSecurityHub_611511(name: "enableSecurityHub", meth: HttpMethod.HttpPost, host: "securityhub.amazonaws.com", - route: "/accounts", validator: validate_EnableSecurityHub_613512, base: "/", - url: url_EnableSecurityHub_613513, schemes: {Scheme.Https, Scheme.Http}) + route: "/accounts", validator: validate_EnableSecurityHub_611512, base: "/", + url: url_EnableSecurityHub_611513, schemes: {Scheme.Https, Scheme.Http}) type - Call_DescribeHub_613497 = ref object of OpenApiRestCall_612658 -proc url_DescribeHub_613499(protocol: Scheme; host: string; base: string; + Call_DescribeHub_611497 = ref object of OpenApiRestCall_610658 +proc url_DescribeHub_611499(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_DescribeHub_613498(path: JsonNode; query: JsonNode; header: JsonNode; +proc validate_DescribeHub_611498(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Returns details about the Hub resource in your account, including the HubArn and the time when you enabled Security Hub. ## @@ -2171,11 +2128,11 @@ proc validate_DescribeHub_613498(path: JsonNode; query: JsonNode; header: JsonNo ## HubArn: JString ## : The ARN of the Hub resource to retrieve. section = newJObject() - var valid_613500 = query.getOrDefault("HubArn") - valid_613500 = validateParameter(valid_613500, JString, required = false, + var valid_611500 = query.getOrDefault("HubArn") + valid_611500 = validateParameter(valid_611500, JString, required = false, default = nil) - if valid_613500 != nil: - section.add "HubArn", valid_613500 + if valid_611500 != nil: + section.add "HubArn", valid_611500 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -2186,91 +2143,89 @@ proc validate_DescribeHub_613498(path: JsonNode; query: JsonNode; header: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613501 = header.getOrDefault("X-Amz-Signature") - valid_613501 = validateParameter(valid_613501, JString, required = false, - default = nil) - if valid_613501 != nil: - section.add "X-Amz-Signature", valid_613501 - var valid_613502 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613502 = validateParameter(valid_613502, JString, required = false, - default = nil) - if valid_613502 != nil: - section.add "X-Amz-Content-Sha256", valid_613502 - var valid_613503 = header.getOrDefault("X-Amz-Date") - valid_613503 = validateParameter(valid_613503, JString, required = false, - default = nil) - if valid_613503 != nil: - section.add "X-Amz-Date", valid_613503 - var valid_613504 = header.getOrDefault("X-Amz-Credential") - valid_613504 = validateParameter(valid_613504, JString, required = false, - default = nil) - if valid_613504 != nil: - section.add "X-Amz-Credential", valid_613504 - var valid_613505 = header.getOrDefault("X-Amz-Security-Token") - valid_613505 = validateParameter(valid_613505, JString, required = false, - default = nil) - if valid_613505 != nil: - section.add "X-Amz-Security-Token", valid_613505 - var valid_613506 = header.getOrDefault("X-Amz-Algorithm") - valid_613506 = validateParameter(valid_613506, JString, required = false, - default = nil) - if valid_613506 != nil: - section.add "X-Amz-Algorithm", valid_613506 - var valid_613507 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613507 = validateParameter(valid_613507, JString, required = false, - default = nil) - if valid_613507 != nil: - section.add "X-Amz-SignedHeaders", valid_613507 + var valid_611501 = header.getOrDefault("X-Amz-Signature") + valid_611501 = validateParameter(valid_611501, JString, required = false, + default = nil) + if valid_611501 != nil: + section.add "X-Amz-Signature", valid_611501 + var valid_611502 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611502 = validateParameter(valid_611502, JString, required = false, + default = nil) + if valid_611502 != nil: + section.add "X-Amz-Content-Sha256", valid_611502 + var valid_611503 = header.getOrDefault("X-Amz-Date") + valid_611503 = validateParameter(valid_611503, JString, required = false, + default = nil) + if valid_611503 != nil: + section.add "X-Amz-Date", valid_611503 + var valid_611504 = header.getOrDefault("X-Amz-Credential") + valid_611504 = validateParameter(valid_611504, JString, required = false, + default = nil) + if valid_611504 != nil: + section.add "X-Amz-Credential", valid_611504 + var valid_611505 = header.getOrDefault("X-Amz-Security-Token") + valid_611505 = validateParameter(valid_611505, JString, required = false, + default = nil) + if valid_611505 != nil: + section.add "X-Amz-Security-Token", valid_611505 + var valid_611506 = header.getOrDefault("X-Amz-Algorithm") + valid_611506 = validateParameter(valid_611506, JString, required = false, + default = nil) + if valid_611506 != nil: + section.add "X-Amz-Algorithm", valid_611506 + var valid_611507 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611507 = validateParameter(valid_611507, JString, required = false, + default = nil) + if valid_611507 != nil: + section.add "X-Amz-SignedHeaders", valid_611507 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_613508: Call_DescribeHub_613497; path: JsonNode; query: JsonNode; +proc call*(call_611508: Call_DescribeHub_611497; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Returns details about the Hub resource in your account, including the HubArn and the time when you enabled Security Hub. ## - let valid = call_613508.validator(path, query, header, formData, body) - let scheme = call_613508.pickScheme + let valid = call_611508.validator(path, query, header, formData, body) + let scheme = call_611508.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613508.url(scheme.get, call_613508.host, call_613508.base, - call_613508.route, valid.getOrDefault("path"), + let url = call_611508.url(scheme.get, call_611508.host, call_611508.base, + call_611508.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613508, url, valid) + result = atozHook(call_611508, url, valid) -proc call*(call_613509: Call_DescribeHub_613497; HubArn: string = ""): Recallable = +proc call*(call_611509: Call_DescribeHub_611497; HubArn: string = ""): Recallable = ## describeHub ## Returns details about the Hub resource in your account, including the HubArn and the time when you enabled Security Hub. ## HubArn: string ## : The ARN of the Hub resource to retrieve. - var query_613510 = newJObject() - add(query_613510, "HubArn", newJString(HubArn)) - result = call_613509.call(nil, query_613510, nil, nil, nil) + var query_611510 = newJObject() + add(query_611510, "HubArn", newJString(HubArn)) + result = call_611509.call(nil, query_611510, nil, nil, nil) -var describeHub* = Call_DescribeHub_613497(name: "describeHub", +var describeHub* = Call_DescribeHub_611497(name: "describeHub", meth: HttpMethod.HttpGet, host: "securityhub.amazonaws.com", route: "/accounts", - validator: validate_DescribeHub_613498, - base: "/", url: url_DescribeHub_613499, + validator: validate_DescribeHub_611498, + base: "/", url: url_DescribeHub_611499, schemes: {Scheme.Https, Scheme.Http}) type - Call_DisableSecurityHub_613525 = ref object of OpenApiRestCall_612658 -proc url_DisableSecurityHub_613527(protocol: Scheme; host: string; base: string; + Call_DisableSecurityHub_611525 = ref object of OpenApiRestCall_610658 +proc url_DisableSecurityHub_611527(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_DisableSecurityHub_613526(path: JsonNode; query: JsonNode; +proc validate_DisableSecurityHub_611526(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Disables Security Hub in your account only in the current Region. To disable Security Hub in all Regions, you must submit one request per Region where you have enabled Security Hub.

    When you disable Security Hub for a master account, it doesn't disable Security Hub for any associated member accounts.

    When you disable Security Hub, your existing findings and insights and any Security Hub configuration settings are deleted after 90 days and cannot be recovered. Any standards that were enabled are disabled, and your master and member account associations are removed.

    If you want to save your existing findings, you must export them before you disable Security Hub.

    @@ -2290,85 +2245,83 @@ proc validate_DisableSecurityHub_613526(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613528 = header.getOrDefault("X-Amz-Signature") - valid_613528 = validateParameter(valid_613528, JString, required = false, - default = nil) - if valid_613528 != nil: - section.add "X-Amz-Signature", valid_613528 - var valid_613529 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613529 = validateParameter(valid_613529, JString, required = false, - default = nil) - if valid_613529 != nil: - section.add "X-Amz-Content-Sha256", valid_613529 - var valid_613530 = header.getOrDefault("X-Amz-Date") - valid_613530 = validateParameter(valid_613530, JString, required = false, - default = nil) - if valid_613530 != nil: - section.add "X-Amz-Date", valid_613530 - var valid_613531 = header.getOrDefault("X-Amz-Credential") - valid_613531 = validateParameter(valid_613531, JString, required = false, - default = nil) - if valid_613531 != nil: - section.add "X-Amz-Credential", valid_613531 - var valid_613532 = header.getOrDefault("X-Amz-Security-Token") - valid_613532 = validateParameter(valid_613532, JString, required = false, - default = nil) - if valid_613532 != nil: - section.add "X-Amz-Security-Token", valid_613532 - var valid_613533 = header.getOrDefault("X-Amz-Algorithm") - valid_613533 = validateParameter(valid_613533, JString, required = false, - default = nil) - if valid_613533 != nil: - section.add "X-Amz-Algorithm", valid_613533 - var valid_613534 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613534 = validateParameter(valid_613534, JString, required = false, - default = nil) - if valid_613534 != nil: - section.add "X-Amz-SignedHeaders", valid_613534 + var valid_611528 = header.getOrDefault("X-Amz-Signature") + valid_611528 = validateParameter(valid_611528, JString, required = false, + default = nil) + if valid_611528 != nil: + section.add "X-Amz-Signature", valid_611528 + var valid_611529 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611529 = validateParameter(valid_611529, JString, required = false, + default = nil) + if valid_611529 != nil: + section.add "X-Amz-Content-Sha256", valid_611529 + var valid_611530 = header.getOrDefault("X-Amz-Date") + valid_611530 = validateParameter(valid_611530, JString, required = false, + default = nil) + if valid_611530 != nil: + section.add "X-Amz-Date", valid_611530 + var valid_611531 = header.getOrDefault("X-Amz-Credential") + valid_611531 = validateParameter(valid_611531, JString, required = false, + default = nil) + if valid_611531 != nil: + section.add "X-Amz-Credential", valid_611531 + var valid_611532 = header.getOrDefault("X-Amz-Security-Token") + valid_611532 = validateParameter(valid_611532, JString, required = false, + default = nil) + if valid_611532 != nil: + section.add "X-Amz-Security-Token", valid_611532 + var valid_611533 = header.getOrDefault("X-Amz-Algorithm") + valid_611533 = validateParameter(valid_611533, JString, required = false, + default = nil) + if valid_611533 != nil: + section.add "X-Amz-Algorithm", valid_611533 + var valid_611534 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611534 = validateParameter(valid_611534, JString, required = false, + default = nil) + if valid_611534 != nil: + section.add "X-Amz-SignedHeaders", valid_611534 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_613535: Call_DisableSecurityHub_613525; path: JsonNode; +proc call*(call_611535: Call_DisableSecurityHub_611525; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Disables Security Hub in your account only in the current Region. To disable Security Hub in all Regions, you must submit one request per Region where you have enabled Security Hub.

    When you disable Security Hub for a master account, it doesn't disable Security Hub for any associated member accounts.

    When you disable Security Hub, your existing findings and insights and any Security Hub configuration settings are deleted after 90 days and cannot be recovered. Any standards that were enabled are disabled, and your master and member account associations are removed.

    If you want to save your existing findings, you must export them before you disable Security Hub.

    ## - let valid = call_613535.validator(path, query, header, formData, body) - let scheme = call_613535.pickScheme + let valid = call_611535.validator(path, query, header, formData, body) + let scheme = call_611535.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613535.url(scheme.get, call_613535.host, call_613535.base, - call_613535.route, valid.getOrDefault("path"), + let url = call_611535.url(scheme.get, call_611535.host, call_611535.base, + call_611535.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613535, url, valid) + result = atozHook(call_611535, url, valid) -proc call*(call_613536: Call_DisableSecurityHub_613525): Recallable = +proc call*(call_611536: Call_DisableSecurityHub_611525): Recallable = ## disableSecurityHub ##

    Disables Security Hub in your account only in the current Region. To disable Security Hub in all Regions, you must submit one request per Region where you have enabled Security Hub.

    When you disable Security Hub for a master account, it doesn't disable Security Hub for any associated member accounts.

    When you disable Security Hub, your existing findings and insights and any Security Hub configuration settings are deleted after 90 days and cannot be recovered. Any standards that were enabled are disabled, and your master and member account associations are removed.

    If you want to save your existing findings, you must export them before you disable Security Hub.

    - result = call_613536.call(nil, nil, nil, nil, nil) + result = call_611536.call(nil, nil, nil, nil, nil) -var disableSecurityHub* = Call_DisableSecurityHub_613525( +var disableSecurityHub* = Call_DisableSecurityHub_611525( name: "disableSecurityHub", meth: HttpMethod.HttpDelete, host: "securityhub.amazonaws.com", route: "/accounts", - validator: validate_DisableSecurityHub_613526, base: "/", - url: url_DisableSecurityHub_613527, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_DisableSecurityHub_611526, base: "/", + url: url_DisableSecurityHub_611527, schemes: {Scheme.Https, Scheme.Http}) type - Call_DescribeProducts_613537 = ref object of OpenApiRestCall_612658 -proc url_DescribeProducts_613539(protocol: Scheme; host: string; base: string; + Call_DescribeProducts_611537 = ref object of OpenApiRestCall_610658 +proc url_DescribeProducts_611539(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_DescribeProducts_613538(path: JsonNode; query: JsonNode; +proc validate_DescribeProducts_611538(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Returns information about the available products that you can subscribe to and integrate with Security Hub in order to consolidate findings. @@ -2381,17 +2334,17 @@ proc validate_DescribeProducts_613538(path: JsonNode; query: JsonNode; ## MaxResults: JInt ## : The maximum number of results to return. ## NextToken: JString - ## : The token that is required for pagination. + ## :

    The token that is required for pagination. On your first call to the DescribeProducts operation, set the value of this parameter to NULL.

    For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.

    section = newJObject() - var valid_613540 = query.getOrDefault("MaxResults") - valid_613540 = validateParameter(valid_613540, JInt, required = false, default = nil) - if valid_613540 != nil: - section.add "MaxResults", valid_613540 - var valid_613541 = query.getOrDefault("NextToken") - valid_613541 = validateParameter(valid_613541, JString, required = false, + var valid_611540 = query.getOrDefault("MaxResults") + valid_611540 = validateParameter(valid_611540, JInt, required = false, default = nil) + if valid_611540 != nil: + section.add "MaxResults", valid_611540 + var valid_611541 = query.getOrDefault("NextToken") + valid_611541 = validateParameter(valid_611541, JString, required = false, default = nil) - if valid_613541 != nil: - section.add "NextToken", valid_613541 + if valid_611541 != nil: + section.add "NextToken", valid_611541 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -2402,80 +2355,197 @@ proc validate_DescribeProducts_613538(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613542 = header.getOrDefault("X-Amz-Signature") - valid_613542 = validateParameter(valid_613542, JString, required = false, - default = nil) - if valid_613542 != nil: - section.add "X-Amz-Signature", valid_613542 - var valid_613543 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613543 = validateParameter(valid_613543, JString, required = false, - default = nil) - if valid_613543 != nil: - section.add "X-Amz-Content-Sha256", valid_613543 - var valid_613544 = header.getOrDefault("X-Amz-Date") - valid_613544 = validateParameter(valid_613544, JString, required = false, - default = nil) - if valid_613544 != nil: - section.add "X-Amz-Date", valid_613544 - var valid_613545 = header.getOrDefault("X-Amz-Credential") - valid_613545 = validateParameter(valid_613545, JString, required = false, - default = nil) - if valid_613545 != nil: - section.add "X-Amz-Credential", valid_613545 - var valid_613546 = header.getOrDefault("X-Amz-Security-Token") - valid_613546 = validateParameter(valid_613546, JString, required = false, - default = nil) - if valid_613546 != nil: - section.add "X-Amz-Security-Token", valid_613546 - var valid_613547 = header.getOrDefault("X-Amz-Algorithm") - valid_613547 = validateParameter(valid_613547, JString, required = false, - default = nil) - if valid_613547 != nil: - section.add "X-Amz-Algorithm", valid_613547 - var valid_613548 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613548 = validateParameter(valid_613548, JString, required = false, - default = nil) - if valid_613548 != nil: - section.add "X-Amz-SignedHeaders", valid_613548 + var valid_611542 = header.getOrDefault("X-Amz-Signature") + valid_611542 = validateParameter(valid_611542, JString, required = false, + default = nil) + if valid_611542 != nil: + section.add "X-Amz-Signature", valid_611542 + var valid_611543 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611543 = validateParameter(valid_611543, JString, required = false, + default = nil) + if valid_611543 != nil: + section.add "X-Amz-Content-Sha256", valid_611543 + var valid_611544 = header.getOrDefault("X-Amz-Date") + valid_611544 = validateParameter(valid_611544, JString, required = false, + default = nil) + if valid_611544 != nil: + section.add "X-Amz-Date", valid_611544 + var valid_611545 = header.getOrDefault("X-Amz-Credential") + valid_611545 = validateParameter(valid_611545, JString, required = false, + default = nil) + if valid_611545 != nil: + section.add "X-Amz-Credential", valid_611545 + var valid_611546 = header.getOrDefault("X-Amz-Security-Token") + valid_611546 = validateParameter(valid_611546, JString, required = false, + default = nil) + if valid_611546 != nil: + section.add "X-Amz-Security-Token", valid_611546 + var valid_611547 = header.getOrDefault("X-Amz-Algorithm") + valid_611547 = validateParameter(valid_611547, JString, required = false, + default = nil) + if valid_611547 != nil: + section.add "X-Amz-Algorithm", valid_611547 + var valid_611548 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611548 = validateParameter(valid_611548, JString, required = false, + default = nil) + if valid_611548 != nil: + section.add "X-Amz-SignedHeaders", valid_611548 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_613549: Call_DescribeProducts_613537; path: JsonNode; +proc call*(call_611549: Call_DescribeProducts_611537; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Returns information about the available products that you can subscribe to and integrate with Security Hub in order to consolidate findings. ## - let valid = call_613549.validator(path, query, header, formData, body) - let scheme = call_613549.pickScheme + let valid = call_611549.validator(path, query, header, formData, body) + let scheme = call_611549.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613549.url(scheme.get, call_613549.host, call_613549.base, - call_613549.route, valid.getOrDefault("path"), + let url = call_611549.url(scheme.get, call_611549.host, call_611549.base, + call_611549.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613549, url, valid) + result = atozHook(call_611549, url, valid) -proc call*(call_613550: Call_DescribeProducts_613537; MaxResults: int = 0; +proc call*(call_611550: Call_DescribeProducts_611537; MaxResults: int = 0; NextToken: string = ""): Recallable = ## describeProducts ## Returns information about the available products that you can subscribe to and integrate with Security Hub in order to consolidate findings. ## MaxResults: int ## : The maximum number of results to return. ## NextToken: string - ## : The token that is required for pagination. - var query_613551 = newJObject() - add(query_613551, "MaxResults", newJInt(MaxResults)) - add(query_613551, "NextToken", newJString(NextToken)) - result = call_613550.call(nil, query_613551, nil, nil, nil) + ## :

    The token that is required for pagination. On your first call to the DescribeProducts operation, set the value of this parameter to NULL.

    For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.

    + var query_611551 = newJObject() + add(query_611551, "MaxResults", newJInt(MaxResults)) + add(query_611551, "NextToken", newJString(NextToken)) + result = call_611550.call(nil, query_611551, nil, nil, nil) -var describeProducts* = Call_DescribeProducts_613537(name: "describeProducts", +var describeProducts* = Call_DescribeProducts_611537(name: "describeProducts", meth: HttpMethod.HttpGet, host: "securityhub.amazonaws.com", route: "/products", - validator: validate_DescribeProducts_613538, base: "/", - url: url_DescribeProducts_613539, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_DescribeProducts_611538, base: "/", + url: url_DescribeProducts_611539, schemes: {Scheme.Https, Scheme.Http}) type - Call_DescribeStandardsControls_613552 = ref object of OpenApiRestCall_612658 -proc url_DescribeStandardsControls_613554(protocol: Scheme; host: string; + Call_DescribeStandards_611552 = ref object of OpenApiRestCall_610658 +proc url_DescribeStandards_611554(protocol: Scheme; host: string; base: string; + route: string; path: JsonNode; query: JsonNode): Uri = + result.scheme = $protocol + result.hostname = host + result.query = $queryString(query) + if base == "/" and route.startsWith "/": + result.path = route + else: + result.path = base & route + +proc validate_DescribeStandards_611553(path: JsonNode; query: JsonNode; + header: JsonNode; formData: JsonNode; + body: JsonNode): JsonNode = + ##

    Returns a list of the available standards in Security Hub.

    For each standard, the results include the standard ARN, the name, and a description.

    + ## + var section: JsonNode + result = newJObject() + section = newJObject() + result.add "path", section + ## parameters in `query` object: + ## MaxResults: JInt + ## : The maximum number of standards to return. + ## NextToken: JString + ## :

    The token that is required for pagination. On your first call to the DescribeStandards operation, set the value of this parameter to NULL.

    For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.

    + section = newJObject() + var valid_611555 = query.getOrDefault("MaxResults") + valid_611555 = validateParameter(valid_611555, JInt, required = false, default = nil) + if valid_611555 != nil: + section.add "MaxResults", valid_611555 + var valid_611556 = query.getOrDefault("NextToken") + valid_611556 = validateParameter(valid_611556, JString, required = false, + default = nil) + if valid_611556 != nil: + section.add "NextToken", valid_611556 + result.add "query", section + ## parameters in `header` object: + ## X-Amz-Signature: JString + ## X-Amz-Content-Sha256: JString + ## X-Amz-Date: JString + ## X-Amz-Credential: JString + ## X-Amz-Security-Token: JString + ## X-Amz-Algorithm: JString + ## X-Amz-SignedHeaders: JString + section = newJObject() + var valid_611557 = header.getOrDefault("X-Amz-Signature") + valid_611557 = validateParameter(valid_611557, JString, required = false, + default = nil) + if valid_611557 != nil: + section.add "X-Amz-Signature", valid_611557 + var valid_611558 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611558 = validateParameter(valid_611558, JString, required = false, + default = nil) + if valid_611558 != nil: + section.add "X-Amz-Content-Sha256", valid_611558 + var valid_611559 = header.getOrDefault("X-Amz-Date") + valid_611559 = validateParameter(valid_611559, JString, required = false, + default = nil) + if valid_611559 != nil: + section.add "X-Amz-Date", valid_611559 + var valid_611560 = header.getOrDefault("X-Amz-Credential") + valid_611560 = validateParameter(valid_611560, JString, required = false, + default = nil) + if valid_611560 != nil: + section.add "X-Amz-Credential", valid_611560 + var valid_611561 = header.getOrDefault("X-Amz-Security-Token") + valid_611561 = validateParameter(valid_611561, JString, required = false, + default = nil) + if valid_611561 != nil: + section.add "X-Amz-Security-Token", valid_611561 + var valid_611562 = header.getOrDefault("X-Amz-Algorithm") + valid_611562 = validateParameter(valid_611562, JString, required = false, + default = nil) + if valid_611562 != nil: + section.add "X-Amz-Algorithm", valid_611562 + var valid_611563 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611563 = validateParameter(valid_611563, JString, required = false, + default = nil) + if valid_611563 != nil: + section.add "X-Amz-SignedHeaders", valid_611563 + result.add "header", section + section = newJObject() + result.add "formData", section + if body != nil: + result.add "body", body + +proc call*(call_611564: Call_DescribeStandards_611552; path: JsonNode; + query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = + ##

    Returns a list of the available standards in Security Hub.

    For each standard, the results include the standard ARN, the name, and a description.

    + ## + let valid = call_611564.validator(path, query, header, formData, body) + let scheme = call_611564.pickScheme + if scheme.isNone: + raise newException(IOError, "unable to find a supported scheme") + let url = call_611564.url(scheme.get, call_611564.host, call_611564.base, + call_611564.route, valid.getOrDefault("path"), + valid.getOrDefault("query")) + result = atozHook(call_611564, url, valid) + +proc call*(call_611565: Call_DescribeStandards_611552; MaxResults: int = 0; + NextToken: string = ""): Recallable = + ## describeStandards + ##

    Returns a list of the available standards in Security Hub.

    For each standard, the results include the standard ARN, the name, and a description.

    + ## MaxResults: int + ## : The maximum number of standards to return. + ## NextToken: string + ## :

    The token that is required for pagination. On your first call to the DescribeStandards operation, set the value of this parameter to NULL.

    For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.

    + var query_611566 = newJObject() + add(query_611566, "MaxResults", newJInt(MaxResults)) + add(query_611566, "NextToken", newJString(NextToken)) + result = call_611565.call(nil, query_611566, nil, nil, nil) + +var describeStandards* = Call_DescribeStandards_611552(name: "describeStandards", + meth: HttpMethod.HttpGet, host: "securityhub.amazonaws.com", + route: "/standards", validator: validate_DescribeStandards_611553, base: "/", + url: url_DescribeStandards_611554, schemes: {Scheme.Https, Scheme.Http}) +type + Call_DescribeStandardsControls_611567 = ref object of OpenApiRestCall_610658 +proc url_DescribeStandardsControls_611569(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -2489,14 +2559,12 @@ proc url_DescribeStandardsControls_613554(protocol: Scheme; host: string; var hydrated = hydratePath(path, segments) if hydrated.isNone: raise newException(ValueError, "unable to fully hydrate path") - if base == - "/" and - hydrated.get.startsWith "/": + if base == "/" and hydrated.get.startsWith "/": result.path = hydrated.get else: result.path = base & hydrated.get -proc validate_DescribeStandardsControls_613553(path: JsonNode; query: JsonNode; +proc validate_DescribeStandardsControls_611568(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Returns a list of compliance standards controls.

    For each control, the results include information about whether it is currently enabled, the severity, and a link to remediation information.

    ## @@ -2507,27 +2575,27 @@ proc validate_DescribeStandardsControls_613553(path: JsonNode; query: JsonNode; ## : The ARN of a resource that represents your subscription to a supported standard. section = newJObject() assert path != nil, "path argument is necessary due to required `StandardsSubscriptionArn` field" - var valid_613555 = path.getOrDefault("StandardsSubscriptionArn") - valid_613555 = validateParameter(valid_613555, JString, required = true, + var valid_611570 = path.getOrDefault("StandardsSubscriptionArn") + valid_611570 = validateParameter(valid_611570, JString, required = true, default = nil) - if valid_613555 != nil: - section.add "StandardsSubscriptionArn", valid_613555 + if valid_611570 != nil: + section.add "StandardsSubscriptionArn", valid_611570 result.add "path", section ## parameters in `query` object: ## MaxResults: JInt ## : The maximum number of compliance standard controls to return. ## NextToken: JString - ## : For requests to get the next page of results, the pagination token that was returned with the previous set of results. The initial request does not include a pagination token. + ## :

    The token that is required for pagination. On your first call to the DescribeStandardsControls operation, set the value of this parameter to NULL.

    For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.

    section = newJObject() - var valid_613556 = query.getOrDefault("MaxResults") - valid_613556 = validateParameter(valid_613556, JInt, required = false, default = nil) - if valid_613556 != nil: - section.add "MaxResults", valid_613556 - var valid_613557 = query.getOrDefault("NextToken") - valid_613557 = validateParameter(valid_613557, JString, required = false, + var valid_611571 = query.getOrDefault("MaxResults") + valid_611571 = validateParameter(valid_611571, JInt, required = false, default = nil) + if valid_611571 != nil: + section.add "MaxResults", valid_611571 + var valid_611572 = query.getOrDefault("NextToken") + valid_611572 = validateParameter(valid_611572, JString, required = false, default = nil) - if valid_613557 != nil: - section.add "NextToken", valid_613557 + if valid_611572 != nil: + section.add "NextToken", valid_611572 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -2538,61 +2606,61 @@ proc validate_DescribeStandardsControls_613553(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613558 = header.getOrDefault("X-Amz-Signature") - valid_613558 = validateParameter(valid_613558, JString, required = false, - default = nil) - if valid_613558 != nil: - section.add "X-Amz-Signature", valid_613558 - var valid_613559 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613559 = validateParameter(valid_613559, JString, required = false, - default = nil) - if valid_613559 != nil: - section.add "X-Amz-Content-Sha256", valid_613559 - var valid_613560 = header.getOrDefault("X-Amz-Date") - valid_613560 = validateParameter(valid_613560, JString, required = false, - default = nil) - if valid_613560 != nil: - section.add "X-Amz-Date", valid_613560 - var valid_613561 = header.getOrDefault("X-Amz-Credential") - valid_613561 = validateParameter(valid_613561, JString, required = false, - default = nil) - if valid_613561 != nil: - section.add "X-Amz-Credential", valid_613561 - var valid_613562 = header.getOrDefault("X-Amz-Security-Token") - valid_613562 = validateParameter(valid_613562, JString, required = false, - default = nil) - if valid_613562 != nil: - section.add "X-Amz-Security-Token", valid_613562 - var valid_613563 = header.getOrDefault("X-Amz-Algorithm") - valid_613563 = validateParameter(valid_613563, JString, required = false, - default = nil) - if valid_613563 != nil: - section.add "X-Amz-Algorithm", valid_613563 - var valid_613564 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613564 = validateParameter(valid_613564, JString, required = false, - default = nil) - if valid_613564 != nil: - section.add "X-Amz-SignedHeaders", valid_613564 + var valid_611573 = header.getOrDefault("X-Amz-Signature") + valid_611573 = validateParameter(valid_611573, JString, required = false, + default = nil) + if valid_611573 != nil: + section.add "X-Amz-Signature", valid_611573 + var valid_611574 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611574 = validateParameter(valid_611574, JString, required = false, + default = nil) + if valid_611574 != nil: + section.add "X-Amz-Content-Sha256", valid_611574 + var valid_611575 = header.getOrDefault("X-Amz-Date") + valid_611575 = validateParameter(valid_611575, JString, required = false, + default = nil) + if valid_611575 != nil: + section.add "X-Amz-Date", valid_611575 + var valid_611576 = header.getOrDefault("X-Amz-Credential") + valid_611576 = validateParameter(valid_611576, JString, required = false, + default = nil) + if valid_611576 != nil: + section.add "X-Amz-Credential", valid_611576 + var valid_611577 = header.getOrDefault("X-Amz-Security-Token") + valid_611577 = validateParameter(valid_611577, JString, required = false, + default = nil) + if valid_611577 != nil: + section.add "X-Amz-Security-Token", valid_611577 + var valid_611578 = header.getOrDefault("X-Amz-Algorithm") + valid_611578 = validateParameter(valid_611578, JString, required = false, + default = nil) + if valid_611578 != nil: + section.add "X-Amz-Algorithm", valid_611578 + var valid_611579 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611579 = validateParameter(valid_611579, JString, required = false, + default = nil) + if valid_611579 != nil: + section.add "X-Amz-SignedHeaders", valid_611579 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_613565: Call_DescribeStandardsControls_613552; path: JsonNode; +proc call*(call_611580: Call_DescribeStandardsControls_611567; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Returns a list of compliance standards controls.

    For each control, the results include information about whether it is currently enabled, the severity, and a link to remediation information.

    ## - let valid = call_613565.validator(path, query, header, formData, body) - let scheme = call_613565.pickScheme + let valid = call_611580.validator(path, query, header, formData, body) + let scheme = call_611580.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613565.url(scheme.get, call_613565.host, call_613565.base, - call_613565.route, valid.getOrDefault("path"), + let url = call_611580.url(scheme.get, call_611580.host, call_611580.base, + call_611580.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613565, url, valid) + result = atozHook(call_611580, url, valid) -proc call*(call_613566: Call_DescribeStandardsControls_613552; +proc call*(call_611581: Call_DescribeStandardsControls_611567; StandardsSubscriptionArn: string; MaxResults: int = 0; NextToken: string = ""): Recallable = ## describeStandardsControls @@ -2602,25 +2670,25 @@ proc call*(call_613566: Call_DescribeStandardsControls_613552; ## StandardsSubscriptionArn: string (required) ## : The ARN of a resource that represents your subscription to a supported standard. ## NextToken: string - ## : For requests to get the next page of results, the pagination token that was returned with the previous set of results. The initial request does not include a pagination token. - var path_613567 = newJObject() - var query_613568 = newJObject() - add(query_613568, "MaxResults", newJInt(MaxResults)) - add(path_613567, "StandardsSubscriptionArn", + ## :

    The token that is required for pagination. On your first call to the DescribeStandardsControls operation, set the value of this parameter to NULL.

    For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.

    + var path_611582 = newJObject() + var query_611583 = newJObject() + add(query_611583, "MaxResults", newJInt(MaxResults)) + add(path_611582, "StandardsSubscriptionArn", newJString(StandardsSubscriptionArn)) - add(query_613568, "NextToken", newJString(NextToken)) - result = call_613566.call(path_613567, query_613568, nil, nil, nil) + add(query_611583, "NextToken", newJString(NextToken)) + result = call_611581.call(path_611582, query_611583, nil, nil, nil) -var describeStandardsControls* = Call_DescribeStandardsControls_613552( +var describeStandardsControls* = Call_DescribeStandardsControls_611567( name: "describeStandardsControls", meth: HttpMethod.HttpGet, host: "securityhub.amazonaws.com", route: "/standards/controls/{StandardsSubscriptionArn}", - validator: validate_DescribeStandardsControls_613553, base: "/", - url: url_DescribeStandardsControls_613554, + validator: validate_DescribeStandardsControls_611568, base: "/", + url: url_DescribeStandardsControls_611569, schemes: {Scheme.Https, Scheme.Http}) type - Call_DisableImportFindingsForProduct_613569 = ref object of OpenApiRestCall_612658 -proc url_DisableImportFindingsForProduct_613571(protocol: Scheme; host: string; + Call_DisableImportFindingsForProduct_611584 = ref object of OpenApiRestCall_610658 +proc url_DisableImportFindingsForProduct_611586(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -2634,14 +2702,12 @@ proc url_DisableImportFindingsForProduct_613571(protocol: Scheme; host: string; var hydrated = hydratePath(path, segments) if hydrated.isNone: raise newException(ValueError, "unable to fully hydrate path") - if base == - "/" and - hydrated.get.startsWith "/": + if base == "/" and hydrated.get.startsWith "/": result.path = hydrated.get else: result.path = base & hydrated.get -proc validate_DisableImportFindingsForProduct_613570(path: JsonNode; +proc validate_DisableImportFindingsForProduct_611585(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Disables the integration of the specified product with Security Hub. After the integration is disabled, findings from that product are no longer sent to Security Hub. ## @@ -2652,11 +2718,11 @@ proc validate_DisableImportFindingsForProduct_613570(path: JsonNode; ## : The ARN of the integrated product to disable the integration for. section = newJObject() assert path != nil, "path argument is necessary due to required `ProductSubscriptionArn` field" - var valid_613572 = path.getOrDefault("ProductSubscriptionArn") - valid_613572 = validateParameter(valid_613572, JString, required = true, + var valid_611587 = path.getOrDefault("ProductSubscriptionArn") + valid_611587 = validateParameter(valid_611587, JString, required = true, default = nil) - if valid_613572 != nil: - section.add "ProductSubscriptionArn", valid_613572 + if valid_611587 != nil: + section.add "ProductSubscriptionArn", valid_611587 result.add "path", section section = newJObject() result.add "query", section @@ -2669,93 +2735,91 @@ proc validate_DisableImportFindingsForProduct_613570(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613573 = header.getOrDefault("X-Amz-Signature") - valid_613573 = validateParameter(valid_613573, JString, required = false, - default = nil) - if valid_613573 != nil: - section.add "X-Amz-Signature", valid_613573 - var valid_613574 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613574 = validateParameter(valid_613574, JString, required = false, - default = nil) - if valid_613574 != nil: - section.add "X-Amz-Content-Sha256", valid_613574 - var valid_613575 = header.getOrDefault("X-Amz-Date") - valid_613575 = validateParameter(valid_613575, JString, required = false, - default = nil) - if valid_613575 != nil: - section.add "X-Amz-Date", valid_613575 - var valid_613576 = header.getOrDefault("X-Amz-Credential") - valid_613576 = validateParameter(valid_613576, JString, required = false, - default = nil) - if valid_613576 != nil: - section.add "X-Amz-Credential", valid_613576 - var valid_613577 = header.getOrDefault("X-Amz-Security-Token") - valid_613577 = validateParameter(valid_613577, JString, required = false, - default = nil) - if valid_613577 != nil: - section.add "X-Amz-Security-Token", valid_613577 - var valid_613578 = header.getOrDefault("X-Amz-Algorithm") - valid_613578 = validateParameter(valid_613578, JString, required = false, - default = nil) - if valid_613578 != nil: - section.add "X-Amz-Algorithm", valid_613578 - var valid_613579 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613579 = validateParameter(valid_613579, JString, required = false, - default = nil) - if valid_613579 != nil: - section.add "X-Amz-SignedHeaders", valid_613579 + var valid_611588 = header.getOrDefault("X-Amz-Signature") + valid_611588 = validateParameter(valid_611588, JString, required = false, + default = nil) + if valid_611588 != nil: + section.add "X-Amz-Signature", valid_611588 + var valid_611589 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611589 = validateParameter(valid_611589, JString, required = false, + default = nil) + if valid_611589 != nil: + section.add "X-Amz-Content-Sha256", valid_611589 + var valid_611590 = header.getOrDefault("X-Amz-Date") + valid_611590 = validateParameter(valid_611590, JString, required = false, + default = nil) + if valid_611590 != nil: + section.add "X-Amz-Date", valid_611590 + var valid_611591 = header.getOrDefault("X-Amz-Credential") + valid_611591 = validateParameter(valid_611591, JString, required = false, + default = nil) + if valid_611591 != nil: + section.add "X-Amz-Credential", valid_611591 + var valid_611592 = header.getOrDefault("X-Amz-Security-Token") + valid_611592 = validateParameter(valid_611592, JString, required = false, + default = nil) + if valid_611592 != nil: + section.add "X-Amz-Security-Token", valid_611592 + var valid_611593 = header.getOrDefault("X-Amz-Algorithm") + valid_611593 = validateParameter(valid_611593, JString, required = false, + default = nil) + if valid_611593 != nil: + section.add "X-Amz-Algorithm", valid_611593 + var valid_611594 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611594 = validateParameter(valid_611594, JString, required = false, + default = nil) + if valid_611594 != nil: + section.add "X-Amz-SignedHeaders", valid_611594 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_613580: Call_DisableImportFindingsForProduct_613569; +proc call*(call_611595: Call_DisableImportFindingsForProduct_611584; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Disables the integration of the specified product with Security Hub. After the integration is disabled, findings from that product are no longer sent to Security Hub. ## - let valid = call_613580.validator(path, query, header, formData, body) - let scheme = call_613580.pickScheme + let valid = call_611595.validator(path, query, header, formData, body) + let scheme = call_611595.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613580.url(scheme.get, call_613580.host, call_613580.base, - call_613580.route, valid.getOrDefault("path"), + let url = call_611595.url(scheme.get, call_611595.host, call_611595.base, + call_611595.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613580, url, valid) + result = atozHook(call_611595, url, valid) -proc call*(call_613581: Call_DisableImportFindingsForProduct_613569; +proc call*(call_611596: Call_DisableImportFindingsForProduct_611584; ProductSubscriptionArn: string): Recallable = ## disableImportFindingsForProduct ## Disables the integration of the specified product with Security Hub. After the integration is disabled, findings from that product are no longer sent to Security Hub. ## ProductSubscriptionArn: string (required) ## : The ARN of the integrated product to disable the integration for. - var path_613582 = newJObject() - add(path_613582, "ProductSubscriptionArn", newJString(ProductSubscriptionArn)) - result = call_613581.call(path_613582, nil, nil, nil, nil) + var path_611597 = newJObject() + add(path_611597, "ProductSubscriptionArn", newJString(ProductSubscriptionArn)) + result = call_611596.call(path_611597, nil, nil, nil, nil) -var disableImportFindingsForProduct* = Call_DisableImportFindingsForProduct_613569( +var disableImportFindingsForProduct* = Call_DisableImportFindingsForProduct_611584( name: "disableImportFindingsForProduct", meth: HttpMethod.HttpDelete, host: "securityhub.amazonaws.com", route: "/productSubscriptions/{ProductSubscriptionArn}", - validator: validate_DisableImportFindingsForProduct_613570, base: "/", - url: url_DisableImportFindingsForProduct_613571, + validator: validate_DisableImportFindingsForProduct_611585, base: "/", + url: url_DisableImportFindingsForProduct_611586, schemes: {Scheme.Https, Scheme.Http}) type - Call_DisassociateFromMasterAccount_613583 = ref object of OpenApiRestCall_612658 -proc url_DisassociateFromMasterAccount_613585(protocol: Scheme; host: string; + Call_DisassociateFromMasterAccount_611598 = ref object of OpenApiRestCall_610658 +proc url_DisassociateFromMasterAccount_611600(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_DisassociateFromMasterAccount_613584(path: JsonNode; query: JsonNode; +proc validate_DisassociateFromMasterAccount_611599(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Disassociates the current Security Hub member account from the associated master account. ## @@ -2774,86 +2838,84 @@ proc validate_DisassociateFromMasterAccount_613584(path: JsonNode; query: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613586 = header.getOrDefault("X-Amz-Signature") - valid_613586 = validateParameter(valid_613586, JString, required = false, - default = nil) - if valid_613586 != nil: - section.add "X-Amz-Signature", valid_613586 - var valid_613587 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613587 = validateParameter(valid_613587, JString, required = false, - default = nil) - if valid_613587 != nil: - section.add "X-Amz-Content-Sha256", valid_613587 - var valid_613588 = header.getOrDefault("X-Amz-Date") - valid_613588 = validateParameter(valid_613588, JString, required = false, - default = nil) - if valid_613588 != nil: - section.add "X-Amz-Date", valid_613588 - var valid_613589 = header.getOrDefault("X-Amz-Credential") - valid_613589 = validateParameter(valid_613589, JString, required = false, - default = nil) - if valid_613589 != nil: - section.add "X-Amz-Credential", valid_613589 - var valid_613590 = header.getOrDefault("X-Amz-Security-Token") - valid_613590 = validateParameter(valid_613590, JString, required = false, - default = nil) - if valid_613590 != nil: - section.add "X-Amz-Security-Token", valid_613590 - var valid_613591 = header.getOrDefault("X-Amz-Algorithm") - valid_613591 = validateParameter(valid_613591, JString, required = false, - default = nil) - if valid_613591 != nil: - section.add "X-Amz-Algorithm", valid_613591 - var valid_613592 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613592 = validateParameter(valid_613592, JString, required = false, - default = nil) - if valid_613592 != nil: - section.add "X-Amz-SignedHeaders", valid_613592 + var valid_611601 = header.getOrDefault("X-Amz-Signature") + valid_611601 = validateParameter(valid_611601, JString, required = false, + default = nil) + if valid_611601 != nil: + section.add "X-Amz-Signature", valid_611601 + var valid_611602 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611602 = validateParameter(valid_611602, JString, required = false, + default = nil) + if valid_611602 != nil: + section.add "X-Amz-Content-Sha256", valid_611602 + var valid_611603 = header.getOrDefault("X-Amz-Date") + valid_611603 = validateParameter(valid_611603, JString, required = false, + default = nil) + if valid_611603 != nil: + section.add "X-Amz-Date", valid_611603 + var valid_611604 = header.getOrDefault("X-Amz-Credential") + valid_611604 = validateParameter(valid_611604, JString, required = false, + default = nil) + if valid_611604 != nil: + section.add "X-Amz-Credential", valid_611604 + var valid_611605 = header.getOrDefault("X-Amz-Security-Token") + valid_611605 = validateParameter(valid_611605, JString, required = false, + default = nil) + if valid_611605 != nil: + section.add "X-Amz-Security-Token", valid_611605 + var valid_611606 = header.getOrDefault("X-Amz-Algorithm") + valid_611606 = validateParameter(valid_611606, JString, required = false, + default = nil) + if valid_611606 != nil: + section.add "X-Amz-Algorithm", valid_611606 + var valid_611607 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611607 = validateParameter(valid_611607, JString, required = false, + default = nil) + if valid_611607 != nil: + section.add "X-Amz-SignedHeaders", valid_611607 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_613593: Call_DisassociateFromMasterAccount_613583; path: JsonNode; +proc call*(call_611608: Call_DisassociateFromMasterAccount_611598; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Disassociates the current Security Hub member account from the associated master account. ## - let valid = call_613593.validator(path, query, header, formData, body) - let scheme = call_613593.pickScheme + let valid = call_611608.validator(path, query, header, formData, body) + let scheme = call_611608.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613593.url(scheme.get, call_613593.host, call_613593.base, - call_613593.route, valid.getOrDefault("path"), + let url = call_611608.url(scheme.get, call_611608.host, call_611608.base, + call_611608.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613593, url, valid) + result = atozHook(call_611608, url, valid) -proc call*(call_613594: Call_DisassociateFromMasterAccount_613583): Recallable = +proc call*(call_611609: Call_DisassociateFromMasterAccount_611598): Recallable = ## disassociateFromMasterAccount ## Disassociates the current Security Hub member account from the associated master account. - result = call_613594.call(nil, nil, nil, nil, nil) + result = call_611609.call(nil, nil, nil, nil, nil) -var disassociateFromMasterAccount* = Call_DisassociateFromMasterAccount_613583( +var disassociateFromMasterAccount* = Call_DisassociateFromMasterAccount_611598( name: "disassociateFromMasterAccount", meth: HttpMethod.HttpPost, host: "securityhub.amazonaws.com", route: "/master/disassociate", - validator: validate_DisassociateFromMasterAccount_613584, base: "/", - url: url_DisassociateFromMasterAccount_613585, + validator: validate_DisassociateFromMasterAccount_611599, base: "/", + url: url_DisassociateFromMasterAccount_611600, schemes: {Scheme.Https, Scheme.Http}) type - Call_DisassociateMembers_613595 = ref object of OpenApiRestCall_612658 -proc url_DisassociateMembers_613597(protocol: Scheme; host: string; base: string; + Call_DisassociateMembers_611610 = ref object of OpenApiRestCall_610658 +proc url_DisassociateMembers_611612(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_DisassociateMembers_613596(path: JsonNode; query: JsonNode; +proc validate_DisassociateMembers_611611(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Disassociates the specified member accounts from the associated master account. @@ -2873,41 +2935,41 @@ proc validate_DisassociateMembers_613596(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613598 = header.getOrDefault("X-Amz-Signature") - valid_613598 = validateParameter(valid_613598, JString, required = false, - default = nil) - if valid_613598 != nil: - section.add "X-Amz-Signature", valid_613598 - var valid_613599 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613599 = validateParameter(valid_613599, JString, required = false, - default = nil) - if valid_613599 != nil: - section.add "X-Amz-Content-Sha256", valid_613599 - var valid_613600 = header.getOrDefault("X-Amz-Date") - valid_613600 = validateParameter(valid_613600, JString, required = false, - default = nil) - if valid_613600 != nil: - section.add "X-Amz-Date", valid_613600 - var valid_613601 = header.getOrDefault("X-Amz-Credential") - valid_613601 = validateParameter(valid_613601, JString, required = false, - default = nil) - if valid_613601 != nil: - section.add "X-Amz-Credential", valid_613601 - var valid_613602 = header.getOrDefault("X-Amz-Security-Token") - valid_613602 = validateParameter(valid_613602, JString, required = false, - default = nil) - if valid_613602 != nil: - section.add "X-Amz-Security-Token", valid_613602 - var valid_613603 = header.getOrDefault("X-Amz-Algorithm") - valid_613603 = validateParameter(valid_613603, JString, required = false, - default = nil) - if valid_613603 != nil: - section.add "X-Amz-Algorithm", valid_613603 - var valid_613604 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613604 = validateParameter(valid_613604, JString, required = false, - default = nil) - if valid_613604 != nil: - section.add "X-Amz-SignedHeaders", valid_613604 + var valid_611613 = header.getOrDefault("X-Amz-Signature") + valid_611613 = validateParameter(valid_611613, JString, required = false, + default = nil) + if valid_611613 != nil: + section.add "X-Amz-Signature", valid_611613 + var valid_611614 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611614 = validateParameter(valid_611614, JString, required = false, + default = nil) + if valid_611614 != nil: + section.add "X-Amz-Content-Sha256", valid_611614 + var valid_611615 = header.getOrDefault("X-Amz-Date") + valid_611615 = validateParameter(valid_611615, JString, required = false, + default = nil) + if valid_611615 != nil: + section.add "X-Amz-Date", valid_611615 + var valid_611616 = header.getOrDefault("X-Amz-Credential") + valid_611616 = validateParameter(valid_611616, JString, required = false, + default = nil) + if valid_611616 != nil: + section.add "X-Amz-Credential", valid_611616 + var valid_611617 = header.getOrDefault("X-Amz-Security-Token") + valid_611617 = validateParameter(valid_611617, JString, required = false, + default = nil) + if valid_611617 != nil: + section.add "X-Amz-Security-Token", valid_611617 + var valid_611618 = header.getOrDefault("X-Amz-Algorithm") + valid_611618 = validateParameter(valid_611618, JString, required = false, + default = nil) + if valid_611618 != nil: + section.add "X-Amz-Algorithm", valid_611618 + var valid_611619 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611619 = validateParameter(valid_611619, JString, required = false, + default = nil) + if valid_611619 != nil: + section.add "X-Amz-SignedHeaders", valid_611619 result.add "header", section section = newJObject() result.add "formData", section @@ -2918,48 +2980,46 @@ proc validate_DisassociateMembers_613596(path: JsonNode; query: JsonNode; if body != nil: result.add "body", body -proc call*(call_613606: Call_DisassociateMembers_613595; path: JsonNode; +proc call*(call_611621: Call_DisassociateMembers_611610; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Disassociates the specified member accounts from the associated master account. ## - let valid = call_613606.validator(path, query, header, formData, body) - let scheme = call_613606.pickScheme + let valid = call_611621.validator(path, query, header, formData, body) + let scheme = call_611621.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613606.url(scheme.get, call_613606.host, call_613606.base, - call_613606.route, valid.getOrDefault("path"), + let url = call_611621.url(scheme.get, call_611621.host, call_611621.base, + call_611621.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613606, url, valid) + result = atozHook(call_611621, url, valid) -proc call*(call_613607: Call_DisassociateMembers_613595; body: JsonNode): Recallable = +proc call*(call_611622: Call_DisassociateMembers_611610; body: JsonNode): Recallable = ## disassociateMembers ## Disassociates the specified member accounts from the associated master account. ## body: JObject (required) - var body_613608 = newJObject() + var body_611623 = newJObject() if body != nil: - body_613608 = body - result = call_613607.call(nil, nil, nil, nil, body_613608) + body_611623 = body + result = call_611622.call(nil, nil, nil, nil, body_611623) -var disassociateMembers* = Call_DisassociateMembers_613595( +var disassociateMembers* = Call_DisassociateMembers_611610( name: "disassociateMembers", meth: HttpMethod.HttpPost, host: "securityhub.amazonaws.com", route: "/members/disassociate", - validator: validate_DisassociateMembers_613596, base: "/", - url: url_DisassociateMembers_613597, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_DisassociateMembers_611611, base: "/", + url: url_DisassociateMembers_611612, schemes: {Scheme.Https, Scheme.Http}) type - Call_EnableImportFindingsForProduct_613624 = ref object of OpenApiRestCall_612658 -proc url_EnableImportFindingsForProduct_613626(protocol: Scheme; host: string; + Call_EnableImportFindingsForProduct_611639 = ref object of OpenApiRestCall_610658 +proc url_EnableImportFindingsForProduct_611641(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_EnableImportFindingsForProduct_613625(path: JsonNode; +proc validate_EnableImportFindingsForProduct_611640(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Enables the integration of a partner product with Security Hub. Integrated products send findings to Security Hub.

    When you enable a product integration, a permission policy that grants permission for the product to send findings to Security Hub is applied.

    ## @@ -2978,41 +3038,41 @@ proc validate_EnableImportFindingsForProduct_613625(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613627 = header.getOrDefault("X-Amz-Signature") - valid_613627 = validateParameter(valid_613627, JString, required = false, - default = nil) - if valid_613627 != nil: - section.add "X-Amz-Signature", valid_613627 - var valid_613628 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613628 = validateParameter(valid_613628, JString, required = false, - default = nil) - if valid_613628 != nil: - section.add "X-Amz-Content-Sha256", valid_613628 - var valid_613629 = header.getOrDefault("X-Amz-Date") - valid_613629 = validateParameter(valid_613629, JString, required = false, - default = nil) - if valid_613629 != nil: - section.add "X-Amz-Date", valid_613629 - var valid_613630 = header.getOrDefault("X-Amz-Credential") - valid_613630 = validateParameter(valid_613630, JString, required = false, - default = nil) - if valid_613630 != nil: - section.add "X-Amz-Credential", valid_613630 - var valid_613631 = header.getOrDefault("X-Amz-Security-Token") - valid_613631 = validateParameter(valid_613631, JString, required = false, - default = nil) - if valid_613631 != nil: - section.add "X-Amz-Security-Token", valid_613631 - var valid_613632 = header.getOrDefault("X-Amz-Algorithm") - valid_613632 = validateParameter(valid_613632, JString, required = false, - default = nil) - if valid_613632 != nil: - section.add "X-Amz-Algorithm", valid_613632 - var valid_613633 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613633 = validateParameter(valid_613633, JString, required = false, - default = nil) - if valid_613633 != nil: - section.add "X-Amz-SignedHeaders", valid_613633 + var valid_611642 = header.getOrDefault("X-Amz-Signature") + valid_611642 = validateParameter(valid_611642, JString, required = false, + default = nil) + if valid_611642 != nil: + section.add "X-Amz-Signature", valid_611642 + var valid_611643 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611643 = validateParameter(valid_611643, JString, required = false, + default = nil) + if valid_611643 != nil: + section.add "X-Amz-Content-Sha256", valid_611643 + var valid_611644 = header.getOrDefault("X-Amz-Date") + valid_611644 = validateParameter(valid_611644, JString, required = false, + default = nil) + if valid_611644 != nil: + section.add "X-Amz-Date", valid_611644 + var valid_611645 = header.getOrDefault("X-Amz-Credential") + valid_611645 = validateParameter(valid_611645, JString, required = false, + default = nil) + if valid_611645 != nil: + section.add "X-Amz-Credential", valid_611645 + var valid_611646 = header.getOrDefault("X-Amz-Security-Token") + valid_611646 = validateParameter(valid_611646, JString, required = false, + default = nil) + if valid_611646 != nil: + section.add "X-Amz-Security-Token", valid_611646 + var valid_611647 = header.getOrDefault("X-Amz-Algorithm") + valid_611647 = validateParameter(valid_611647, JString, required = false, + default = nil) + if valid_611647 != nil: + section.add "X-Amz-Algorithm", valid_611647 + var valid_611648 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611648 = validateParameter(valid_611648, JString, required = false, + default = nil) + if valid_611648 != nil: + section.add "X-Amz-SignedHeaders", valid_611648 result.add "header", section section = newJObject() result.add "formData", section @@ -3023,49 +3083,47 @@ proc validate_EnableImportFindingsForProduct_613625(path: JsonNode; if body != nil: result.add "body", body -proc call*(call_613635: Call_EnableImportFindingsForProduct_613624; path: JsonNode; +proc call*(call_611650: Call_EnableImportFindingsForProduct_611639; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Enables the integration of a partner product with Security Hub. Integrated products send findings to Security Hub.

    When you enable a product integration, a permission policy that grants permission for the product to send findings to Security Hub is applied.

    ## - let valid = call_613635.validator(path, query, header, formData, body) - let scheme = call_613635.pickScheme + let valid = call_611650.validator(path, query, header, formData, body) + let scheme = call_611650.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613635.url(scheme.get, call_613635.host, call_613635.base, - call_613635.route, valid.getOrDefault("path"), + let url = call_611650.url(scheme.get, call_611650.host, call_611650.base, + call_611650.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613635, url, valid) + result = atozHook(call_611650, url, valid) -proc call*(call_613636: Call_EnableImportFindingsForProduct_613624; body: JsonNode): Recallable = +proc call*(call_611651: Call_EnableImportFindingsForProduct_611639; body: JsonNode): Recallable = ## enableImportFindingsForProduct ##

    Enables the integration of a partner product with Security Hub. Integrated products send findings to Security Hub.

    When you enable a product integration, a permission policy that grants permission for the product to send findings to Security Hub is applied.

    ## body: JObject (required) - var body_613637 = newJObject() + var body_611652 = newJObject() if body != nil: - body_613637 = body - result = call_613636.call(nil, nil, nil, nil, body_613637) + body_611652 = body + result = call_611651.call(nil, nil, nil, nil, body_611652) -var enableImportFindingsForProduct* = Call_EnableImportFindingsForProduct_613624( +var enableImportFindingsForProduct* = Call_EnableImportFindingsForProduct_611639( name: "enableImportFindingsForProduct", meth: HttpMethod.HttpPost, host: "securityhub.amazonaws.com", route: "/productSubscriptions", - validator: validate_EnableImportFindingsForProduct_613625, base: "/", - url: url_EnableImportFindingsForProduct_613626, + validator: validate_EnableImportFindingsForProduct_611640, base: "/", + url: url_EnableImportFindingsForProduct_611641, schemes: {Scheme.Https, Scheme.Http}) type - Call_ListEnabledProductsForImport_613609 = ref object of OpenApiRestCall_612658 -proc url_ListEnabledProductsForImport_613611(protocol: Scheme; host: string; + Call_ListEnabledProductsForImport_611624 = ref object of OpenApiRestCall_610658 +proc url_ListEnabledProductsForImport_611626(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_ListEnabledProductsForImport_613610(path: JsonNode; query: JsonNode; +proc validate_ListEnabledProductsForImport_611625(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security Hub. ## @@ -3077,17 +3135,17 @@ proc validate_ListEnabledProductsForImport_613610(path: JsonNode; query: JsonNod ## MaxResults: JInt ## : The maximum number of items to return in the response. ## NextToken: JString - ## : Paginates results. On your first call to the ListEnabledProductsForImport operation, set the value of this parameter to NULL. For subsequent calls to the operation, to continue listing data, set nextToken in the request to the value of NextToken from the previous response. + ## :

    The token that is required for pagination. On your first call to the ListEnabledProductsForImport operation, set the value of this parameter to NULL.

    For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.

    section = newJObject() - var valid_613612 = query.getOrDefault("MaxResults") - valid_613612 = validateParameter(valid_613612, JInt, required = false, default = nil) - if valid_613612 != nil: - section.add "MaxResults", valid_613612 - var valid_613613 = query.getOrDefault("NextToken") - valid_613613 = validateParameter(valid_613613, JString, required = false, + var valid_611627 = query.getOrDefault("MaxResults") + valid_611627 = validateParameter(valid_611627, JInt, required = false, default = nil) + if valid_611627 != nil: + section.add "MaxResults", valid_611627 + var valid_611628 = query.getOrDefault("NextToken") + valid_611628 = validateParameter(valid_611628, JString, required = false, default = nil) - if valid_613613 != nil: - section.add "NextToken", valid_613613 + if valid_611628 != nil: + section.add "NextToken", valid_611628 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -3098,94 +3156,92 @@ proc validate_ListEnabledProductsForImport_613610(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613614 = header.getOrDefault("X-Amz-Signature") - valid_613614 = validateParameter(valid_613614, JString, required = false, - default = nil) - if valid_613614 != nil: - section.add "X-Amz-Signature", valid_613614 - var valid_613615 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613615 = validateParameter(valid_613615, JString, required = false, - default = nil) - if valid_613615 != nil: - section.add "X-Amz-Content-Sha256", valid_613615 - var valid_613616 = header.getOrDefault("X-Amz-Date") - valid_613616 = validateParameter(valid_613616, JString, required = false, - default = nil) - if valid_613616 != nil: - section.add "X-Amz-Date", valid_613616 - var valid_613617 = header.getOrDefault("X-Amz-Credential") - valid_613617 = validateParameter(valid_613617, JString, required = false, - default = nil) - if valid_613617 != nil: - section.add "X-Amz-Credential", valid_613617 - var valid_613618 = header.getOrDefault("X-Amz-Security-Token") - valid_613618 = validateParameter(valid_613618, JString, required = false, - default = nil) - if valid_613618 != nil: - section.add "X-Amz-Security-Token", valid_613618 - var valid_613619 = header.getOrDefault("X-Amz-Algorithm") - valid_613619 = validateParameter(valid_613619, JString, required = false, - default = nil) - if valid_613619 != nil: - section.add "X-Amz-Algorithm", valid_613619 - var valid_613620 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613620 = validateParameter(valid_613620, JString, required = false, - default = nil) - if valid_613620 != nil: - section.add "X-Amz-SignedHeaders", valid_613620 + var valid_611629 = header.getOrDefault("X-Amz-Signature") + valid_611629 = validateParameter(valid_611629, JString, required = false, + default = nil) + if valid_611629 != nil: + section.add "X-Amz-Signature", valid_611629 + var valid_611630 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611630 = validateParameter(valid_611630, JString, required = false, + default = nil) + if valid_611630 != nil: + section.add "X-Amz-Content-Sha256", valid_611630 + var valid_611631 = header.getOrDefault("X-Amz-Date") + valid_611631 = validateParameter(valid_611631, JString, required = false, + default = nil) + if valid_611631 != nil: + section.add "X-Amz-Date", valid_611631 + var valid_611632 = header.getOrDefault("X-Amz-Credential") + valid_611632 = validateParameter(valid_611632, JString, required = false, + default = nil) + if valid_611632 != nil: + section.add "X-Amz-Credential", valid_611632 + var valid_611633 = header.getOrDefault("X-Amz-Security-Token") + valid_611633 = validateParameter(valid_611633, JString, required = false, + default = nil) + if valid_611633 != nil: + section.add "X-Amz-Security-Token", valid_611633 + var valid_611634 = header.getOrDefault("X-Amz-Algorithm") + valid_611634 = validateParameter(valid_611634, JString, required = false, + default = nil) + if valid_611634 != nil: + section.add "X-Amz-Algorithm", valid_611634 + var valid_611635 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611635 = validateParameter(valid_611635, JString, required = false, + default = nil) + if valid_611635 != nil: + section.add "X-Amz-SignedHeaders", valid_611635 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_613621: Call_ListEnabledProductsForImport_613609; path: JsonNode; +proc call*(call_611636: Call_ListEnabledProductsForImport_611624; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security Hub. ## - let valid = call_613621.validator(path, query, header, formData, body) - let scheme = call_613621.pickScheme + let valid = call_611636.validator(path, query, header, formData, body) + let scheme = call_611636.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613621.url(scheme.get, call_613621.host, call_613621.base, - call_613621.route, valid.getOrDefault("path"), + let url = call_611636.url(scheme.get, call_611636.host, call_611636.base, + call_611636.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613621, url, valid) + result = atozHook(call_611636, url, valid) -proc call*(call_613622: Call_ListEnabledProductsForImport_613609; +proc call*(call_611637: Call_ListEnabledProductsForImport_611624; MaxResults: int = 0; NextToken: string = ""): Recallable = ## listEnabledProductsForImport ## Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security Hub. ## MaxResults: int ## : The maximum number of items to return in the response. ## NextToken: string - ## : Paginates results. On your first call to the ListEnabledProductsForImport operation, set the value of this parameter to NULL. For subsequent calls to the operation, to continue listing data, set nextToken in the request to the value of NextToken from the previous response. - var query_613623 = newJObject() - add(query_613623, "MaxResults", newJInt(MaxResults)) - add(query_613623, "NextToken", newJString(NextToken)) - result = call_613622.call(nil, query_613623, nil, nil, nil) + ## :

    The token that is required for pagination. On your first call to the ListEnabledProductsForImport operation, set the value of this parameter to NULL.

    For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.

    + var query_611638 = newJObject() + add(query_611638, "MaxResults", newJInt(MaxResults)) + add(query_611638, "NextToken", newJString(NextToken)) + result = call_611637.call(nil, query_611638, nil, nil, nil) -var listEnabledProductsForImport* = Call_ListEnabledProductsForImport_613609( +var listEnabledProductsForImport* = Call_ListEnabledProductsForImport_611624( name: "listEnabledProductsForImport", meth: HttpMethod.HttpGet, host: "securityhub.amazonaws.com", route: "/productSubscriptions", - validator: validate_ListEnabledProductsForImport_613610, base: "/", - url: url_ListEnabledProductsForImport_613611, + validator: validate_ListEnabledProductsForImport_611625, base: "/", + url: url_ListEnabledProductsForImport_611626, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetEnabledStandards_613638 = ref object of OpenApiRestCall_612658 -proc url_GetEnabledStandards_613640(protocol: Scheme; host: string; base: string; + Call_GetEnabledStandards_611653 = ref object of OpenApiRestCall_610658 +proc url_GetEnabledStandards_611655(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_GetEnabledStandards_613639(path: JsonNode; query: JsonNode; +proc validate_GetEnabledStandards_611654(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Returns a list of the standards that are currently enabled. @@ -3194,7 +3250,22 @@ proc validate_GetEnabledStandards_613639(path: JsonNode; query: JsonNode; result = newJObject() section = newJObject() result.add "path", section + ## parameters in `query` object: + ## MaxResults: JString + ## : Pagination limit + ## NextToken: JString + ## : Pagination token section = newJObject() + var valid_611656 = query.getOrDefault("MaxResults") + valid_611656 = validateParameter(valid_611656, JString, required = false, + default = nil) + if valid_611656 != nil: + section.add "MaxResults", valid_611656 + var valid_611657 = query.getOrDefault("NextToken") + valid_611657 = validateParameter(valid_611657, JString, required = false, + default = nil) + if valid_611657 != nil: + section.add "NextToken", valid_611657 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -3205,41 +3276,41 @@ proc validate_GetEnabledStandards_613639(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613641 = header.getOrDefault("X-Amz-Signature") - valid_613641 = validateParameter(valid_613641, JString, required = false, - default = nil) - if valid_613641 != nil: - section.add "X-Amz-Signature", valid_613641 - var valid_613642 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613642 = validateParameter(valid_613642, JString, required = false, - default = nil) - if valid_613642 != nil: - section.add "X-Amz-Content-Sha256", valid_613642 - var valid_613643 = header.getOrDefault("X-Amz-Date") - valid_613643 = validateParameter(valid_613643, JString, required = false, - default = nil) - if valid_613643 != nil: - section.add "X-Amz-Date", valid_613643 - var valid_613644 = header.getOrDefault("X-Amz-Credential") - valid_613644 = validateParameter(valid_613644, JString, required = false, - default = nil) - if valid_613644 != nil: - section.add "X-Amz-Credential", valid_613644 - var valid_613645 = header.getOrDefault("X-Amz-Security-Token") - valid_613645 = validateParameter(valid_613645, JString, required = false, - default = nil) - if valid_613645 != nil: - section.add "X-Amz-Security-Token", valid_613645 - var valid_613646 = header.getOrDefault("X-Amz-Algorithm") - valid_613646 = validateParameter(valid_613646, JString, required = false, - default = nil) - if valid_613646 != nil: - section.add "X-Amz-Algorithm", valid_613646 - var valid_613647 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613647 = validateParameter(valid_613647, JString, required = false, - default = nil) - if valid_613647 != nil: - section.add "X-Amz-SignedHeaders", valid_613647 + var valid_611658 = header.getOrDefault("X-Amz-Signature") + valid_611658 = validateParameter(valid_611658, JString, required = false, + default = nil) + if valid_611658 != nil: + section.add "X-Amz-Signature", valid_611658 + var valid_611659 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611659 = validateParameter(valid_611659, JString, required = false, + default = nil) + if valid_611659 != nil: + section.add "X-Amz-Content-Sha256", valid_611659 + var valid_611660 = header.getOrDefault("X-Amz-Date") + valid_611660 = validateParameter(valid_611660, JString, required = false, + default = nil) + if valid_611660 != nil: + section.add "X-Amz-Date", valid_611660 + var valid_611661 = header.getOrDefault("X-Amz-Credential") + valid_611661 = validateParameter(valid_611661, JString, required = false, + default = nil) + if valid_611661 != nil: + section.add "X-Amz-Credential", valid_611661 + var valid_611662 = header.getOrDefault("X-Amz-Security-Token") + valid_611662 = validateParameter(valid_611662, JString, required = false, + default = nil) + if valid_611662 != nil: + section.add "X-Amz-Security-Token", valid_611662 + var valid_611663 = header.getOrDefault("X-Amz-Algorithm") + valid_611663 = validateParameter(valid_611663, JString, required = false, + default = nil) + if valid_611663 != nil: + section.add "X-Amz-Algorithm", valid_611663 + var valid_611664 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611664 = validateParameter(valid_611664, JString, required = false, + default = nil) + if valid_611664 != nil: + section.add "X-Amz-SignedHeaders", valid_611664 result.add "header", section section = newJObject() result.add "formData", section @@ -3250,48 +3321,54 @@ proc validate_GetEnabledStandards_613639(path: JsonNode; query: JsonNode; if body != nil: result.add "body", body -proc call*(call_613649: Call_GetEnabledStandards_613638; path: JsonNode; +proc call*(call_611666: Call_GetEnabledStandards_611653; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Returns a list of the standards that are currently enabled. ## - let valid = call_613649.validator(path, query, header, formData, body) - let scheme = call_613649.pickScheme + let valid = call_611666.validator(path, query, header, formData, body) + let scheme = call_611666.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613649.url(scheme.get, call_613649.host, call_613649.base, - call_613649.route, valid.getOrDefault("path"), + let url = call_611666.url(scheme.get, call_611666.host, call_611666.base, + call_611666.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613649, url, valid) + result = atozHook(call_611666, url, valid) -proc call*(call_613650: Call_GetEnabledStandards_613638; body: JsonNode): Recallable = +proc call*(call_611667: Call_GetEnabledStandards_611653; body: JsonNode; + MaxResults: string = ""; NextToken: string = ""): Recallable = ## getEnabledStandards ## Returns a list of the standards that are currently enabled. + ## MaxResults: string + ## : Pagination limit + ## NextToken: string + ## : Pagination token ## body: JObject (required) - var body_613651 = newJObject() + var query_611668 = newJObject() + var body_611669 = newJObject() + add(query_611668, "MaxResults", newJString(MaxResults)) + add(query_611668, "NextToken", newJString(NextToken)) if body != nil: - body_613651 = body - result = call_613650.call(nil, nil, nil, nil, body_613651) + body_611669 = body + result = call_611667.call(nil, query_611668, nil, nil, body_611669) -var getEnabledStandards* = Call_GetEnabledStandards_613638( +var getEnabledStandards* = Call_GetEnabledStandards_611653( name: "getEnabledStandards", meth: HttpMethod.HttpPost, host: "securityhub.amazonaws.com", route: "/standards/get", - validator: validate_GetEnabledStandards_613639, base: "/", - url: url_GetEnabledStandards_613640, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetEnabledStandards_611654, base: "/", + url: url_GetEnabledStandards_611655, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetFindings_613652 = ref object of OpenApiRestCall_612658 -proc url_GetFindings_613654(protocol: Scheme; host: string; base: string; + Call_GetFindings_611670 = ref object of OpenApiRestCall_610658 +proc url_GetFindings_611672(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_GetFindings_613653(path: JsonNode; query: JsonNode; header: JsonNode; +proc validate_GetFindings_611671(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Returns a list of findings that match the specified criteria. ## @@ -3305,16 +3382,16 @@ proc validate_GetFindings_613653(path: JsonNode; query: JsonNode; header: JsonNo ## NextToken: JString ## : Pagination token section = newJObject() - var valid_613655 = query.getOrDefault("MaxResults") - valid_613655 = validateParameter(valid_613655, JString, required = false, + var valid_611673 = query.getOrDefault("MaxResults") + valid_611673 = validateParameter(valid_611673, JString, required = false, default = nil) - if valid_613655 != nil: - section.add "MaxResults", valid_613655 - var valid_613656 = query.getOrDefault("NextToken") - valid_613656 = validateParameter(valid_613656, JString, required = false, + if valid_611673 != nil: + section.add "MaxResults", valid_611673 + var valid_611674 = query.getOrDefault("NextToken") + valid_611674 = validateParameter(valid_611674, JString, required = false, default = nil) - if valid_613656 != nil: - section.add "NextToken", valid_613656 + if valid_611674 != nil: + section.add "NextToken", valid_611674 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -3325,41 +3402,41 @@ proc validate_GetFindings_613653(path: JsonNode; query: JsonNode; header: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613657 = header.getOrDefault("X-Amz-Signature") - valid_613657 = validateParameter(valid_613657, JString, required = false, - default = nil) - if valid_613657 != nil: - section.add "X-Amz-Signature", valid_613657 - var valid_613658 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613658 = validateParameter(valid_613658, JString, required = false, - default = nil) - if valid_613658 != nil: - section.add "X-Amz-Content-Sha256", valid_613658 - var valid_613659 = header.getOrDefault("X-Amz-Date") - valid_613659 = validateParameter(valid_613659, JString, required = false, - default = nil) - if valid_613659 != nil: - section.add "X-Amz-Date", valid_613659 - var valid_613660 = header.getOrDefault("X-Amz-Credential") - valid_613660 = validateParameter(valid_613660, JString, required = false, - default = nil) - if valid_613660 != nil: - section.add "X-Amz-Credential", valid_613660 - var valid_613661 = header.getOrDefault("X-Amz-Security-Token") - valid_613661 = validateParameter(valid_613661, JString, required = false, - default = nil) - if valid_613661 != nil: - section.add "X-Amz-Security-Token", valid_613661 - var valid_613662 = header.getOrDefault("X-Amz-Algorithm") - valid_613662 = validateParameter(valid_613662, JString, required = false, - default = nil) - if valid_613662 != nil: - section.add "X-Amz-Algorithm", valid_613662 - var valid_613663 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613663 = validateParameter(valid_613663, JString, required = false, - default = nil) - if valid_613663 != nil: - section.add "X-Amz-SignedHeaders", valid_613663 + var valid_611675 = header.getOrDefault("X-Amz-Signature") + valid_611675 = validateParameter(valid_611675, JString, required = false, + default = nil) + if valid_611675 != nil: + section.add "X-Amz-Signature", valid_611675 + var valid_611676 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611676 = validateParameter(valid_611676, JString, required = false, + default = nil) + if valid_611676 != nil: + section.add "X-Amz-Content-Sha256", valid_611676 + var valid_611677 = header.getOrDefault("X-Amz-Date") + valid_611677 = validateParameter(valid_611677, JString, required = false, + default = nil) + if valid_611677 != nil: + section.add "X-Amz-Date", valid_611677 + var valid_611678 = header.getOrDefault("X-Amz-Credential") + valid_611678 = validateParameter(valid_611678, JString, required = false, + default = nil) + if valid_611678 != nil: + section.add "X-Amz-Credential", valid_611678 + var valid_611679 = header.getOrDefault("X-Amz-Security-Token") + valid_611679 = validateParameter(valid_611679, JString, required = false, + default = nil) + if valid_611679 != nil: + section.add "X-Amz-Security-Token", valid_611679 + var valid_611680 = header.getOrDefault("X-Amz-Algorithm") + valid_611680 = validateParameter(valid_611680, JString, required = false, + default = nil) + if valid_611680 != nil: + section.add "X-Amz-Algorithm", valid_611680 + var valid_611681 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611681 = validateParameter(valid_611681, JString, required = false, + default = nil) + if valid_611681 != nil: + section.add "X-Amz-SignedHeaders", valid_611681 result.add "header", section section = newJObject() result.add "formData", section @@ -3370,20 +3447,20 @@ proc validate_GetFindings_613653(path: JsonNode; query: JsonNode; header: JsonNo if body != nil: result.add "body", body -proc call*(call_613665: Call_GetFindings_613652; path: JsonNode; query: JsonNode; +proc call*(call_611683: Call_GetFindings_611670; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Returns a list of findings that match the specified criteria. ## - let valid = call_613665.validator(path, query, header, formData, body) - let scheme = call_613665.pickScheme + let valid = call_611683.validator(path, query, header, formData, body) + let scheme = call_611683.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613665.url(scheme.get, call_613665.host, call_613665.base, - call_613665.route, valid.getOrDefault("path"), + let url = call_611683.url(scheme.get, call_611683.host, call_611683.base, + call_611683.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613665, url, valid) + result = atozHook(call_611683, url, valid) -proc call*(call_613666: Call_GetFindings_613652; body: JsonNode; +proc call*(call_611684: Call_GetFindings_611670; body: JsonNode; MaxResults: string = ""; NextToken: string = ""): Recallable = ## getFindings ## Returns a list of findings that match the specified criteria. @@ -3392,36 +3469,34 @@ proc call*(call_613666: Call_GetFindings_613652; body: JsonNode; ## NextToken: string ## : Pagination token ## body: JObject (required) - var query_613667 = newJObject() - var body_613668 = newJObject() - add(query_613667, "MaxResults", newJString(MaxResults)) - add(query_613667, "NextToken", newJString(NextToken)) + var query_611685 = newJObject() + var body_611686 = newJObject() + add(query_611685, "MaxResults", newJString(MaxResults)) + add(query_611685, "NextToken", newJString(NextToken)) if body != nil: - body_613668 = body - result = call_613666.call(nil, query_613667, nil, nil, body_613668) + body_611686 = body + result = call_611684.call(nil, query_611685, nil, nil, body_611686) -var getFindings* = Call_GetFindings_613652(name: "getFindings", +var getFindings* = Call_GetFindings_611670(name: "getFindings", meth: HttpMethod.HttpPost, host: "securityhub.amazonaws.com", route: "/findings", - validator: validate_GetFindings_613653, - base: "/", url: url_GetFindings_613654, + validator: validate_GetFindings_611671, + base: "/", url: url_GetFindings_611672, schemes: {Scheme.Https, Scheme.Http}) type - Call_UpdateFindings_613669 = ref object of OpenApiRestCall_612658 -proc url_UpdateFindings_613671(protocol: Scheme; host: string; base: string; + Call_UpdateFindings_611687 = ref object of OpenApiRestCall_610658 +proc url_UpdateFindings_611689(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_UpdateFindings_613670(path: JsonNode; query: JsonNode; +proc validate_UpdateFindings_611688(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Updates the Note and RecordState of the Security Hub-aggregated findings that the filter attributes specify. Any member account that can view the finding also sees the update to the finding. @@ -3441,41 +3516,41 @@ proc validate_UpdateFindings_613670(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613672 = header.getOrDefault("X-Amz-Signature") - valid_613672 = validateParameter(valid_613672, JString, required = false, - default = nil) - if valid_613672 != nil: - section.add "X-Amz-Signature", valid_613672 - var valid_613673 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613673 = validateParameter(valid_613673, JString, required = false, - default = nil) - if valid_613673 != nil: - section.add "X-Amz-Content-Sha256", valid_613673 - var valid_613674 = header.getOrDefault("X-Amz-Date") - valid_613674 = validateParameter(valid_613674, JString, required = false, - default = nil) - if valid_613674 != nil: - section.add "X-Amz-Date", valid_613674 - var valid_613675 = header.getOrDefault("X-Amz-Credential") - valid_613675 = validateParameter(valid_613675, JString, required = false, - default = nil) - if valid_613675 != nil: - section.add "X-Amz-Credential", valid_613675 - var valid_613676 = header.getOrDefault("X-Amz-Security-Token") - valid_613676 = validateParameter(valid_613676, JString, required = false, - default = nil) - if valid_613676 != nil: - section.add "X-Amz-Security-Token", valid_613676 - var valid_613677 = header.getOrDefault("X-Amz-Algorithm") - valid_613677 = validateParameter(valid_613677, JString, required = false, - default = nil) - if valid_613677 != nil: - section.add "X-Amz-Algorithm", valid_613677 - var valid_613678 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613678 = validateParameter(valid_613678, JString, required = false, - default = nil) - if valid_613678 != nil: - section.add "X-Amz-SignedHeaders", valid_613678 + var valid_611690 = header.getOrDefault("X-Amz-Signature") + valid_611690 = validateParameter(valid_611690, JString, required = false, + default = nil) + if valid_611690 != nil: + section.add "X-Amz-Signature", valid_611690 + var valid_611691 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611691 = validateParameter(valid_611691, JString, required = false, + default = nil) + if valid_611691 != nil: + section.add "X-Amz-Content-Sha256", valid_611691 + var valid_611692 = header.getOrDefault("X-Amz-Date") + valid_611692 = validateParameter(valid_611692, JString, required = false, + default = nil) + if valid_611692 != nil: + section.add "X-Amz-Date", valid_611692 + var valid_611693 = header.getOrDefault("X-Amz-Credential") + valid_611693 = validateParameter(valid_611693, JString, required = false, + default = nil) + if valid_611693 != nil: + section.add "X-Amz-Credential", valid_611693 + var valid_611694 = header.getOrDefault("X-Amz-Security-Token") + valid_611694 = validateParameter(valid_611694, JString, required = false, + default = nil) + if valid_611694 != nil: + section.add "X-Amz-Security-Token", valid_611694 + var valid_611695 = header.getOrDefault("X-Amz-Algorithm") + valid_611695 = validateParameter(valid_611695, JString, required = false, + default = nil) + if valid_611695 != nil: + section.add "X-Amz-Algorithm", valid_611695 + var valid_611696 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611696 = validateParameter(valid_611696, JString, required = false, + default = nil) + if valid_611696 != nil: + section.add "X-Amz-SignedHeaders", valid_611696 result.add "header", section section = newJObject() result.add "formData", section @@ -3486,35 +3561,35 @@ proc validate_UpdateFindings_613670(path: JsonNode; query: JsonNode; if body != nil: result.add "body", body -proc call*(call_613680: Call_UpdateFindings_613669; path: JsonNode; query: JsonNode; +proc call*(call_611698: Call_UpdateFindings_611687; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Updates the Note and RecordState of the Security Hub-aggregated findings that the filter attributes specify. Any member account that can view the finding also sees the update to the finding. ## - let valid = call_613680.validator(path, query, header, formData, body) - let scheme = call_613680.pickScheme + let valid = call_611698.validator(path, query, header, formData, body) + let scheme = call_611698.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613680.url(scheme.get, call_613680.host, call_613680.base, - call_613680.route, valid.getOrDefault("path"), + let url = call_611698.url(scheme.get, call_611698.host, call_611698.base, + call_611698.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613680, url, valid) + result = atozHook(call_611698, url, valid) -proc call*(call_613681: Call_UpdateFindings_613669; body: JsonNode): Recallable = +proc call*(call_611699: Call_UpdateFindings_611687; body: JsonNode): Recallable = ## updateFindings ## Updates the Note and RecordState of the Security Hub-aggregated findings that the filter attributes specify. Any member account that can view the finding also sees the update to the finding. ## body: JObject (required) - var body_613682 = newJObject() + var body_611700 = newJObject() if body != nil: - body_613682 = body - result = call_613681.call(nil, nil, nil, nil, body_613682) + body_611700 = body + result = call_611699.call(nil, nil, nil, nil, body_611700) -var updateFindings* = Call_UpdateFindings_613669(name: "updateFindings", +var updateFindings* = Call_UpdateFindings_611687(name: "updateFindings", meth: HttpMethod.HttpPatch, host: "securityhub.amazonaws.com", - route: "/findings", validator: validate_UpdateFindings_613670, base: "/", - url: url_UpdateFindings_613671, schemes: {Scheme.Https, Scheme.Http}) + route: "/findings", validator: validate_UpdateFindings_611688, base: "/", + url: url_UpdateFindings_611689, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetInsightResults_613683 = ref object of OpenApiRestCall_612658 -proc url_GetInsightResults_613685(protocol: Scheme; host: string; base: string; + Call_GetInsightResults_611701 = ref object of OpenApiRestCall_610658 +proc url_GetInsightResults_611703(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -3527,14 +3602,12 @@ proc url_GetInsightResults_613685(protocol: Scheme; host: string; base: string; var hydrated = hydratePath(path, segments) if hydrated.isNone: raise newException(ValueError, "unable to fully hydrate path") - if base == - "/" and - hydrated.get.startsWith "/": + if base == "/" and hydrated.get.startsWith "/": result.path = hydrated.get else: result.path = base & hydrated.get -proc validate_GetInsightResults_613684(path: JsonNode; query: JsonNode; +proc validate_GetInsightResults_611702(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Lists the results of the Security Hub insight specified by the insight ARN. @@ -3547,11 +3620,11 @@ proc validate_GetInsightResults_613684(path: JsonNode; query: JsonNode; section = newJObject() assert path != nil, "path argument is necessary due to required `InsightArn` field" - var valid_613686 = path.getOrDefault("InsightArn") - valid_613686 = validateParameter(valid_613686, JString, required = true, + var valid_611704 = path.getOrDefault("InsightArn") + valid_611704 = validateParameter(valid_611704, JString, required = true, default = nil) - if valid_613686 != nil: - section.add "InsightArn", valid_613686 + if valid_611704 != nil: + section.add "InsightArn", valid_611704 result.add "path", section section = newJObject() result.add "query", section @@ -3564,89 +3637,87 @@ proc validate_GetInsightResults_613684(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613687 = header.getOrDefault("X-Amz-Signature") - valid_613687 = validateParameter(valid_613687, JString, required = false, - default = nil) - if valid_613687 != nil: - section.add "X-Amz-Signature", valid_613687 - var valid_613688 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613688 = validateParameter(valid_613688, JString, required = false, - default = nil) - if valid_613688 != nil: - section.add "X-Amz-Content-Sha256", valid_613688 - var valid_613689 = header.getOrDefault("X-Amz-Date") - valid_613689 = validateParameter(valid_613689, JString, required = false, - default = nil) - if valid_613689 != nil: - section.add "X-Amz-Date", valid_613689 - var valid_613690 = header.getOrDefault("X-Amz-Credential") - valid_613690 = validateParameter(valid_613690, JString, required = false, - default = nil) - if valid_613690 != nil: - section.add "X-Amz-Credential", valid_613690 - var valid_613691 = header.getOrDefault("X-Amz-Security-Token") - valid_613691 = validateParameter(valid_613691, JString, required = false, - default = nil) - if valid_613691 != nil: - section.add "X-Amz-Security-Token", valid_613691 - var valid_613692 = header.getOrDefault("X-Amz-Algorithm") - valid_613692 = validateParameter(valid_613692, JString, required = false, - default = nil) - if valid_613692 != nil: - section.add "X-Amz-Algorithm", valid_613692 - var valid_613693 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613693 = validateParameter(valid_613693, JString, required = false, - default = nil) - if valid_613693 != nil: - section.add "X-Amz-SignedHeaders", valid_613693 + var valid_611705 = header.getOrDefault("X-Amz-Signature") + valid_611705 = validateParameter(valid_611705, JString, required = false, + default = nil) + if valid_611705 != nil: + section.add "X-Amz-Signature", valid_611705 + var valid_611706 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611706 = validateParameter(valid_611706, JString, required = false, + default = nil) + if valid_611706 != nil: + section.add "X-Amz-Content-Sha256", valid_611706 + var valid_611707 = header.getOrDefault("X-Amz-Date") + valid_611707 = validateParameter(valid_611707, JString, required = false, + default = nil) + if valid_611707 != nil: + section.add "X-Amz-Date", valid_611707 + var valid_611708 = header.getOrDefault("X-Amz-Credential") + valid_611708 = validateParameter(valid_611708, JString, required = false, + default = nil) + if valid_611708 != nil: + section.add "X-Amz-Credential", valid_611708 + var valid_611709 = header.getOrDefault("X-Amz-Security-Token") + valid_611709 = validateParameter(valid_611709, JString, required = false, + default = nil) + if valid_611709 != nil: + section.add "X-Amz-Security-Token", valid_611709 + var valid_611710 = header.getOrDefault("X-Amz-Algorithm") + valid_611710 = validateParameter(valid_611710, JString, required = false, + default = nil) + if valid_611710 != nil: + section.add "X-Amz-Algorithm", valid_611710 + var valid_611711 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611711 = validateParameter(valid_611711, JString, required = false, + default = nil) + if valid_611711 != nil: + section.add "X-Amz-SignedHeaders", valid_611711 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_613694: Call_GetInsightResults_613683; path: JsonNode; +proc call*(call_611712: Call_GetInsightResults_611701; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Lists the results of the Security Hub insight specified by the insight ARN. ## - let valid = call_613694.validator(path, query, header, formData, body) - let scheme = call_613694.pickScheme + let valid = call_611712.validator(path, query, header, formData, body) + let scheme = call_611712.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613694.url(scheme.get, call_613694.host, call_613694.base, - call_613694.route, valid.getOrDefault("path"), + let url = call_611712.url(scheme.get, call_611712.host, call_611712.base, + call_611712.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613694, url, valid) + result = atozHook(call_611712, url, valid) -proc call*(call_613695: Call_GetInsightResults_613683; InsightArn: string): Recallable = +proc call*(call_611713: Call_GetInsightResults_611701; InsightArn: string): Recallable = ## getInsightResults ## Lists the results of the Security Hub insight specified by the insight ARN. ## InsightArn: string (required) ## : The ARN of the insight for which to return results. - var path_613696 = newJObject() - add(path_613696, "InsightArn", newJString(InsightArn)) - result = call_613695.call(path_613696, nil, nil, nil, nil) + var path_611714 = newJObject() + add(path_611714, "InsightArn", newJString(InsightArn)) + result = call_611713.call(path_611714, nil, nil, nil, nil) -var getInsightResults* = Call_GetInsightResults_613683(name: "getInsightResults", +var getInsightResults* = Call_GetInsightResults_611701(name: "getInsightResults", meth: HttpMethod.HttpGet, host: "securityhub.amazonaws.com", route: "/insights/results/{InsightArn}", - validator: validate_GetInsightResults_613684, base: "/", - url: url_GetInsightResults_613685, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetInsightResults_611702, base: "/", + url: url_GetInsightResults_611703, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetInsights_613697 = ref object of OpenApiRestCall_612658 -proc url_GetInsights_613699(protocol: Scheme; host: string; base: string; + Call_GetInsights_611715 = ref object of OpenApiRestCall_610658 +proc url_GetInsights_611717(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_GetInsights_613698(path: JsonNode; query: JsonNode; header: JsonNode; +proc validate_GetInsights_611716(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Lists and describes insights for the specified insight ARNs. ## @@ -3660,16 +3731,16 @@ proc validate_GetInsights_613698(path: JsonNode; query: JsonNode; header: JsonNo ## NextToken: JString ## : Pagination token section = newJObject() - var valid_613700 = query.getOrDefault("MaxResults") - valid_613700 = validateParameter(valid_613700, JString, required = false, + var valid_611718 = query.getOrDefault("MaxResults") + valid_611718 = validateParameter(valid_611718, JString, required = false, default = nil) - if valid_613700 != nil: - section.add "MaxResults", valid_613700 - var valid_613701 = query.getOrDefault("NextToken") - valid_613701 = validateParameter(valid_613701, JString, required = false, + if valid_611718 != nil: + section.add "MaxResults", valid_611718 + var valid_611719 = query.getOrDefault("NextToken") + valid_611719 = validateParameter(valid_611719, JString, required = false, default = nil) - if valid_613701 != nil: - section.add "NextToken", valid_613701 + if valid_611719 != nil: + section.add "NextToken", valid_611719 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -3680,41 +3751,41 @@ proc validate_GetInsights_613698(path: JsonNode; query: JsonNode; header: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613702 = header.getOrDefault("X-Amz-Signature") - valid_613702 = validateParameter(valid_613702, JString, required = false, - default = nil) - if valid_613702 != nil: - section.add "X-Amz-Signature", valid_613702 - var valid_613703 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613703 = validateParameter(valid_613703, JString, required = false, - default = nil) - if valid_613703 != nil: - section.add "X-Amz-Content-Sha256", valid_613703 - var valid_613704 = header.getOrDefault("X-Amz-Date") - valid_613704 = validateParameter(valid_613704, JString, required = false, - default = nil) - if valid_613704 != nil: - section.add "X-Amz-Date", valid_613704 - var valid_613705 = header.getOrDefault("X-Amz-Credential") - valid_613705 = validateParameter(valid_613705, JString, required = false, - default = nil) - if valid_613705 != nil: - section.add "X-Amz-Credential", valid_613705 - var valid_613706 = header.getOrDefault("X-Amz-Security-Token") - valid_613706 = validateParameter(valid_613706, JString, required = false, - default = nil) - if valid_613706 != nil: - section.add "X-Amz-Security-Token", valid_613706 - var valid_613707 = header.getOrDefault("X-Amz-Algorithm") - valid_613707 = validateParameter(valid_613707, JString, required = false, - default = nil) - if valid_613707 != nil: - section.add "X-Amz-Algorithm", valid_613707 - var valid_613708 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613708 = validateParameter(valid_613708, JString, required = false, - default = nil) - if valid_613708 != nil: - section.add "X-Amz-SignedHeaders", valid_613708 + var valid_611720 = header.getOrDefault("X-Amz-Signature") + valid_611720 = validateParameter(valid_611720, JString, required = false, + default = nil) + if valid_611720 != nil: + section.add "X-Amz-Signature", valid_611720 + var valid_611721 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611721 = validateParameter(valid_611721, JString, required = false, + default = nil) + if valid_611721 != nil: + section.add "X-Amz-Content-Sha256", valid_611721 + var valid_611722 = header.getOrDefault("X-Amz-Date") + valid_611722 = validateParameter(valid_611722, JString, required = false, + default = nil) + if valid_611722 != nil: + section.add "X-Amz-Date", valid_611722 + var valid_611723 = header.getOrDefault("X-Amz-Credential") + valid_611723 = validateParameter(valid_611723, JString, required = false, + default = nil) + if valid_611723 != nil: + section.add "X-Amz-Credential", valid_611723 + var valid_611724 = header.getOrDefault("X-Amz-Security-Token") + valid_611724 = validateParameter(valid_611724, JString, required = false, + default = nil) + if valid_611724 != nil: + section.add "X-Amz-Security-Token", valid_611724 + var valid_611725 = header.getOrDefault("X-Amz-Algorithm") + valid_611725 = validateParameter(valid_611725, JString, required = false, + default = nil) + if valid_611725 != nil: + section.add "X-Amz-Algorithm", valid_611725 + var valid_611726 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611726 = validateParameter(valid_611726, JString, required = false, + default = nil) + if valid_611726 != nil: + section.add "X-Amz-SignedHeaders", valid_611726 result.add "header", section section = newJObject() result.add "formData", section @@ -3725,20 +3796,20 @@ proc validate_GetInsights_613698(path: JsonNode; query: JsonNode; header: JsonNo if body != nil: result.add "body", body -proc call*(call_613710: Call_GetInsights_613697; path: JsonNode; query: JsonNode; +proc call*(call_611728: Call_GetInsights_611715; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Lists and describes insights for the specified insight ARNs. ## - let valid = call_613710.validator(path, query, header, formData, body) - let scheme = call_613710.pickScheme + let valid = call_611728.validator(path, query, header, formData, body) + let scheme = call_611728.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613710.url(scheme.get, call_613710.host, call_613710.base, - call_613710.route, valid.getOrDefault("path"), + let url = call_611728.url(scheme.get, call_611728.host, call_611728.base, + call_611728.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613710, url, valid) + result = atozHook(call_611728, url, valid) -proc call*(call_613711: Call_GetInsights_613697; body: JsonNode; +proc call*(call_611729: Call_GetInsights_611715; body: JsonNode; MaxResults: string = ""; NextToken: string = ""): Recallable = ## getInsights ## Lists and describes insights for the specified insight ARNs. @@ -3747,36 +3818,34 @@ proc call*(call_613711: Call_GetInsights_613697; body: JsonNode; ## NextToken: string ## : Pagination token ## body: JObject (required) - var query_613712 = newJObject() - var body_613713 = newJObject() - add(query_613712, "MaxResults", newJString(MaxResults)) - add(query_613712, "NextToken", newJString(NextToken)) + var query_611730 = newJObject() + var body_611731 = newJObject() + add(query_611730, "MaxResults", newJString(MaxResults)) + add(query_611730, "NextToken", newJString(NextToken)) if body != nil: - body_613713 = body - result = call_613711.call(nil, query_613712, nil, nil, body_613713) + body_611731 = body + result = call_611729.call(nil, query_611730, nil, nil, body_611731) -var getInsights* = Call_GetInsights_613697(name: "getInsights", +var getInsights* = Call_GetInsights_611715(name: "getInsights", meth: HttpMethod.HttpPost, host: "securityhub.amazonaws.com", route: "/insights/get", - validator: validate_GetInsights_613698, - base: "/", url: url_GetInsights_613699, + validator: validate_GetInsights_611716, + base: "/", url: url_GetInsights_611717, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetInvitationsCount_613714 = ref object of OpenApiRestCall_612658 -proc url_GetInvitationsCount_613716(protocol: Scheme; host: string; base: string; + Call_GetInvitationsCount_611732 = ref object of OpenApiRestCall_610658 +proc url_GetInvitationsCount_611734(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_GetInvitationsCount_613715(path: JsonNode; query: JsonNode; +proc validate_GetInvitationsCount_611733(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Returns the count of all Security Hub membership invitations that were sent to the current member account, not including the currently accepted invitation. @@ -3796,85 +3865,83 @@ proc validate_GetInvitationsCount_613715(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613717 = header.getOrDefault("X-Amz-Signature") - valid_613717 = validateParameter(valid_613717, JString, required = false, - default = nil) - if valid_613717 != nil: - section.add "X-Amz-Signature", valid_613717 - var valid_613718 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613718 = validateParameter(valid_613718, JString, required = false, - default = nil) - if valid_613718 != nil: - section.add "X-Amz-Content-Sha256", valid_613718 - var valid_613719 = header.getOrDefault("X-Amz-Date") - valid_613719 = validateParameter(valid_613719, JString, required = false, - default = nil) - if valid_613719 != nil: - section.add "X-Amz-Date", valid_613719 - var valid_613720 = header.getOrDefault("X-Amz-Credential") - valid_613720 = validateParameter(valid_613720, JString, required = false, - default = nil) - if valid_613720 != nil: - section.add "X-Amz-Credential", valid_613720 - var valid_613721 = header.getOrDefault("X-Amz-Security-Token") - valid_613721 = validateParameter(valid_613721, JString, required = false, - default = nil) - if valid_613721 != nil: - section.add "X-Amz-Security-Token", valid_613721 - var valid_613722 = header.getOrDefault("X-Amz-Algorithm") - valid_613722 = validateParameter(valid_613722, JString, required = false, - default = nil) - if valid_613722 != nil: - section.add "X-Amz-Algorithm", valid_613722 - var valid_613723 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613723 = validateParameter(valid_613723, JString, required = false, - default = nil) - if valid_613723 != nil: - section.add "X-Amz-SignedHeaders", valid_613723 + var valid_611735 = header.getOrDefault("X-Amz-Signature") + valid_611735 = validateParameter(valid_611735, JString, required = false, + default = nil) + if valid_611735 != nil: + section.add "X-Amz-Signature", valid_611735 + var valid_611736 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611736 = validateParameter(valid_611736, JString, required = false, + default = nil) + if valid_611736 != nil: + section.add "X-Amz-Content-Sha256", valid_611736 + var valid_611737 = header.getOrDefault("X-Amz-Date") + valid_611737 = validateParameter(valid_611737, JString, required = false, + default = nil) + if valid_611737 != nil: + section.add "X-Amz-Date", valid_611737 + var valid_611738 = header.getOrDefault("X-Amz-Credential") + valid_611738 = validateParameter(valid_611738, JString, required = false, + default = nil) + if valid_611738 != nil: + section.add "X-Amz-Credential", valid_611738 + var valid_611739 = header.getOrDefault("X-Amz-Security-Token") + valid_611739 = validateParameter(valid_611739, JString, required = false, + default = nil) + if valid_611739 != nil: + section.add "X-Amz-Security-Token", valid_611739 + var valid_611740 = header.getOrDefault("X-Amz-Algorithm") + valid_611740 = validateParameter(valid_611740, JString, required = false, + default = nil) + if valid_611740 != nil: + section.add "X-Amz-Algorithm", valid_611740 + var valid_611741 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611741 = validateParameter(valid_611741, JString, required = false, + default = nil) + if valid_611741 != nil: + section.add "X-Amz-SignedHeaders", valid_611741 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_613724: Call_GetInvitationsCount_613714; path: JsonNode; +proc call*(call_611742: Call_GetInvitationsCount_611732; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Returns the count of all Security Hub membership invitations that were sent to the current member account, not including the currently accepted invitation. ## - let valid = call_613724.validator(path, query, header, formData, body) - let scheme = call_613724.pickScheme + let valid = call_611742.validator(path, query, header, formData, body) + let scheme = call_611742.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613724.url(scheme.get, call_613724.host, call_613724.base, - call_613724.route, valid.getOrDefault("path"), + let url = call_611742.url(scheme.get, call_611742.host, call_611742.base, + call_611742.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613724, url, valid) + result = atozHook(call_611742, url, valid) -proc call*(call_613725: Call_GetInvitationsCount_613714): Recallable = +proc call*(call_611743: Call_GetInvitationsCount_611732): Recallable = ## getInvitationsCount ## Returns the count of all Security Hub membership invitations that were sent to the current member account, not including the currently accepted invitation. - result = call_613725.call(nil, nil, nil, nil, nil) + result = call_611743.call(nil, nil, nil, nil, nil) -var getInvitationsCount* = Call_GetInvitationsCount_613714( +var getInvitationsCount* = Call_GetInvitationsCount_611732( name: "getInvitationsCount", meth: HttpMethod.HttpGet, host: "securityhub.amazonaws.com", route: "/invitations/count", - validator: validate_GetInvitationsCount_613715, base: "/", - url: url_GetInvitationsCount_613716, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetInvitationsCount_611733, base: "/", + url: url_GetInvitationsCount_611734, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetMembers_613726 = ref object of OpenApiRestCall_612658 -proc url_GetMembers_613728(protocol: Scheme; host: string; base: string; route: string; + Call_GetMembers_611744 = ref object of OpenApiRestCall_610658 +proc url_GetMembers_611746(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_GetMembers_613727(path: JsonNode; query: JsonNode; header: JsonNode; +proc validate_GetMembers_611745(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Returns the details for the Security Hub member accounts for the specified account IDs. ## @@ -3893,41 +3960,41 @@ proc validate_GetMembers_613727(path: JsonNode; query: JsonNode; header: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613729 = header.getOrDefault("X-Amz-Signature") - valid_613729 = validateParameter(valid_613729, JString, required = false, - default = nil) - if valid_613729 != nil: - section.add "X-Amz-Signature", valid_613729 - var valid_613730 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613730 = validateParameter(valid_613730, JString, required = false, - default = nil) - if valid_613730 != nil: - section.add "X-Amz-Content-Sha256", valid_613730 - var valid_613731 = header.getOrDefault("X-Amz-Date") - valid_613731 = validateParameter(valid_613731, JString, required = false, - default = nil) - if valid_613731 != nil: - section.add "X-Amz-Date", valid_613731 - var valid_613732 = header.getOrDefault("X-Amz-Credential") - valid_613732 = validateParameter(valid_613732, JString, required = false, - default = nil) - if valid_613732 != nil: - section.add "X-Amz-Credential", valid_613732 - var valid_613733 = header.getOrDefault("X-Amz-Security-Token") - valid_613733 = validateParameter(valid_613733, JString, required = false, - default = nil) - if valid_613733 != nil: - section.add "X-Amz-Security-Token", valid_613733 - var valid_613734 = header.getOrDefault("X-Amz-Algorithm") - valid_613734 = validateParameter(valid_613734, JString, required = false, - default = nil) - if valid_613734 != nil: - section.add "X-Amz-Algorithm", valid_613734 - var valid_613735 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613735 = validateParameter(valid_613735, JString, required = false, - default = nil) - if valid_613735 != nil: - section.add "X-Amz-SignedHeaders", valid_613735 + var valid_611747 = header.getOrDefault("X-Amz-Signature") + valid_611747 = validateParameter(valid_611747, JString, required = false, + default = nil) + if valid_611747 != nil: + section.add "X-Amz-Signature", valid_611747 + var valid_611748 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611748 = validateParameter(valid_611748, JString, required = false, + default = nil) + if valid_611748 != nil: + section.add "X-Amz-Content-Sha256", valid_611748 + var valid_611749 = header.getOrDefault("X-Amz-Date") + valid_611749 = validateParameter(valid_611749, JString, required = false, + default = nil) + if valid_611749 != nil: + section.add "X-Amz-Date", valid_611749 + var valid_611750 = header.getOrDefault("X-Amz-Credential") + valid_611750 = validateParameter(valid_611750, JString, required = false, + default = nil) + if valid_611750 != nil: + section.add "X-Amz-Credential", valid_611750 + var valid_611751 = header.getOrDefault("X-Amz-Security-Token") + valid_611751 = validateParameter(valid_611751, JString, required = false, + default = nil) + if valid_611751 != nil: + section.add "X-Amz-Security-Token", valid_611751 + var valid_611752 = header.getOrDefault("X-Amz-Algorithm") + valid_611752 = validateParameter(valid_611752, JString, required = false, + default = nil) + if valid_611752 != nil: + section.add "X-Amz-Algorithm", valid_611752 + var valid_611753 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611753 = validateParameter(valid_611753, JString, required = false, + default = nil) + if valid_611753 != nil: + section.add "X-Amz-SignedHeaders", valid_611753 result.add "header", section section = newJObject() result.add "formData", section @@ -3938,52 +4005,50 @@ proc validate_GetMembers_613727(path: JsonNode; query: JsonNode; header: JsonNod if body != nil: result.add "body", body -proc call*(call_613737: Call_GetMembers_613726; path: JsonNode; query: JsonNode; +proc call*(call_611755: Call_GetMembers_611744; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Returns the details for the Security Hub member accounts for the specified account IDs. ## - let valid = call_613737.validator(path, query, header, formData, body) - let scheme = call_613737.pickScheme + let valid = call_611755.validator(path, query, header, formData, body) + let scheme = call_611755.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613737.url(scheme.get, call_613737.host, call_613737.base, - call_613737.route, valid.getOrDefault("path"), + let url = call_611755.url(scheme.get, call_611755.host, call_611755.base, + call_611755.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613737, url, valid) + result = atozHook(call_611755, url, valid) -proc call*(call_613738: Call_GetMembers_613726; body: JsonNode): Recallable = +proc call*(call_611756: Call_GetMembers_611744; body: JsonNode): Recallable = ## getMembers ## Returns the details for the Security Hub member accounts for the specified account IDs. ## body: JObject (required) - var body_613739 = newJObject() + var body_611757 = newJObject() if body != nil: - body_613739 = body - result = call_613738.call(nil, nil, nil, nil, body_613739) + body_611757 = body + result = call_611756.call(nil, nil, nil, nil, body_611757) -var getMembers* = Call_GetMembers_613726(name: "getMembers", +var getMembers* = Call_GetMembers_611744(name: "getMembers", meth: HttpMethod.HttpPost, host: "securityhub.amazonaws.com", route: "/members/get", - validator: validate_GetMembers_613727, - base: "/", url: url_GetMembers_613728, + validator: validate_GetMembers_611745, + base: "/", url: url_GetMembers_611746, schemes: {Scheme.Https, Scheme.Http}) type - Call_InviteMembers_613740 = ref object of OpenApiRestCall_612658 -proc url_InviteMembers_613742(protocol: Scheme; host: string; base: string; + Call_InviteMembers_611758 = ref object of OpenApiRestCall_610658 +proc url_InviteMembers_611760(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_InviteMembers_613741(path: JsonNode; query: JsonNode; header: JsonNode; +proc validate_InviteMembers_611759(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = - ##

    Invites other AWS accounts to become member accounts for the Security Hub master account that the invitation is sent from.

    Before you can use this action to invite a member, you must first use the CreateMembers action to create the member account in Security Hub.

    When the account owner accepts the invitation to become a member account and enables Security Hub, the master account can view the findings generated from the member account.

    + ##

    Invites other AWS accounts to become member accounts for the Security Hub master account that the invitation is sent from.

    Before you can use this action to invite a member, you must first use the CreateMembers action to create the member account in Security Hub.

    When the account owner accepts the invitation to become a member account and enables Security Hub, the master account can view the findings generated from the member account.

    ## var section: JsonNode result = newJObject() @@ -4000,41 +4065,41 @@ proc validate_InviteMembers_613741(path: JsonNode; query: JsonNode; header: Json ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613743 = header.getOrDefault("X-Amz-Signature") - valid_613743 = validateParameter(valid_613743, JString, required = false, - default = nil) - if valid_613743 != nil: - section.add "X-Amz-Signature", valid_613743 - var valid_613744 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613744 = validateParameter(valid_613744, JString, required = false, - default = nil) - if valid_613744 != nil: - section.add "X-Amz-Content-Sha256", valid_613744 - var valid_613745 = header.getOrDefault("X-Amz-Date") - valid_613745 = validateParameter(valid_613745, JString, required = false, - default = nil) - if valid_613745 != nil: - section.add "X-Amz-Date", valid_613745 - var valid_613746 = header.getOrDefault("X-Amz-Credential") - valid_613746 = validateParameter(valid_613746, JString, required = false, - default = nil) - if valid_613746 != nil: - section.add "X-Amz-Credential", valid_613746 - var valid_613747 = header.getOrDefault("X-Amz-Security-Token") - valid_613747 = validateParameter(valid_613747, JString, required = false, - default = nil) - if valid_613747 != nil: - section.add "X-Amz-Security-Token", valid_613747 - var valid_613748 = header.getOrDefault("X-Amz-Algorithm") - valid_613748 = validateParameter(valid_613748, JString, required = false, - default = nil) - if valid_613748 != nil: - section.add "X-Amz-Algorithm", valid_613748 - var valid_613749 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613749 = validateParameter(valid_613749, JString, required = false, - default = nil) - if valid_613749 != nil: - section.add "X-Amz-SignedHeaders", valid_613749 + var valid_611761 = header.getOrDefault("X-Amz-Signature") + valid_611761 = validateParameter(valid_611761, JString, required = false, + default = nil) + if valid_611761 != nil: + section.add "X-Amz-Signature", valid_611761 + var valid_611762 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611762 = validateParameter(valid_611762, JString, required = false, + default = nil) + if valid_611762 != nil: + section.add "X-Amz-Content-Sha256", valid_611762 + var valid_611763 = header.getOrDefault("X-Amz-Date") + valid_611763 = validateParameter(valid_611763, JString, required = false, + default = nil) + if valid_611763 != nil: + section.add "X-Amz-Date", valid_611763 + var valid_611764 = header.getOrDefault("X-Amz-Credential") + valid_611764 = validateParameter(valid_611764, JString, required = false, + default = nil) + if valid_611764 != nil: + section.add "X-Amz-Credential", valid_611764 + var valid_611765 = header.getOrDefault("X-Amz-Security-Token") + valid_611765 = validateParameter(valid_611765, JString, required = false, + default = nil) + if valid_611765 != nil: + section.add "X-Amz-Security-Token", valid_611765 + var valid_611766 = header.getOrDefault("X-Amz-Algorithm") + valid_611766 = validateParameter(valid_611766, JString, required = false, + default = nil) + if valid_611766 != nil: + section.add "X-Amz-Algorithm", valid_611766 + var valid_611767 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611767 = validateParameter(valid_611767, JString, required = false, + default = nil) + if valid_611767 != nil: + section.add "X-Amz-SignedHeaders", valid_611767 result.add "header", section section = newJObject() result.add "formData", section @@ -4045,47 +4110,45 @@ proc validate_InviteMembers_613741(path: JsonNode; query: JsonNode; header: Json if body != nil: result.add "body", body -proc call*(call_613751: Call_InviteMembers_613740; path: JsonNode; query: JsonNode; +proc call*(call_611769: Call_InviteMembers_611758; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = - ##

    Invites other AWS accounts to become member accounts for the Security Hub master account that the invitation is sent from.

    Before you can use this action to invite a member, you must first use the CreateMembers action to create the member account in Security Hub.

    When the account owner accepts the invitation to become a member account and enables Security Hub, the master account can view the findings generated from the member account.

    + ##

    Invites other AWS accounts to become member accounts for the Security Hub master account that the invitation is sent from.

    Before you can use this action to invite a member, you must first use the CreateMembers action to create the member account in Security Hub.

    When the account owner accepts the invitation to become a member account and enables Security Hub, the master account can view the findings generated from the member account.

    ## - let valid = call_613751.validator(path, query, header, formData, body) - let scheme = call_613751.pickScheme + let valid = call_611769.validator(path, query, header, formData, body) + let scheme = call_611769.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613751.url(scheme.get, call_613751.host, call_613751.base, - call_613751.route, valid.getOrDefault("path"), + let url = call_611769.url(scheme.get, call_611769.host, call_611769.base, + call_611769.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613751, url, valid) + result = atozHook(call_611769, url, valid) -proc call*(call_613752: Call_InviteMembers_613740; body: JsonNode): Recallable = +proc call*(call_611770: Call_InviteMembers_611758; body: JsonNode): Recallable = ## inviteMembers - ##

    Invites other AWS accounts to become member accounts for the Security Hub master account that the invitation is sent from.

    Before you can use this action to invite a member, you must first use the CreateMembers action to create the member account in Security Hub.

    When the account owner accepts the invitation to become a member account and enables Security Hub, the master account can view the findings generated from the member account.

    + ##

    Invites other AWS accounts to become member accounts for the Security Hub master account that the invitation is sent from.

    Before you can use this action to invite a member, you must first use the CreateMembers action to create the member account in Security Hub.

    When the account owner accepts the invitation to become a member account and enables Security Hub, the master account can view the findings generated from the member account.

    ## body: JObject (required) - var body_613753 = newJObject() + var body_611771 = newJObject() if body != nil: - body_613753 = body - result = call_613752.call(nil, nil, nil, nil, body_613753) + body_611771 = body + result = call_611770.call(nil, nil, nil, nil, body_611771) -var inviteMembers* = Call_InviteMembers_613740(name: "inviteMembers", +var inviteMembers* = Call_InviteMembers_611758(name: "inviteMembers", meth: HttpMethod.HttpPost, host: "securityhub.amazonaws.com", - route: "/members/invite", validator: validate_InviteMembers_613741, base: "/", - url: url_InviteMembers_613742, schemes: {Scheme.Https, Scheme.Http}) + route: "/members/invite", validator: validate_InviteMembers_611759, base: "/", + url: url_InviteMembers_611760, schemes: {Scheme.Https, Scheme.Http}) type - Call_ListInvitations_613754 = ref object of OpenApiRestCall_612658 -proc url_ListInvitations_613756(protocol: Scheme; host: string; base: string; + Call_ListInvitations_611772 = ref object of OpenApiRestCall_610658 +proc url_ListInvitations_611774(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_ListInvitations_613755(path: JsonNode; query: JsonNode; +proc validate_ListInvitations_611773(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Lists all Security Hub membership invitations that were sent to the current AWS account. @@ -4098,17 +4161,17 @@ proc validate_ListInvitations_613755(path: JsonNode; query: JsonNode; ## MaxResults: JInt ## : The maximum number of items to return in the response. ## NextToken: JString - ## : Paginates results. On your first call to the ListInvitations operation, set the value of this parameter to NULL. For subsequent calls to the operation, to continue listing data, set nextToken in the request to the value of NextToken from the previous response. + ## :

    The token that is required for pagination. On your first call to the ListInvitations operation, set the value of this parameter to NULL.

    For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.

    section = newJObject() - var valid_613757 = query.getOrDefault("MaxResults") - valid_613757 = validateParameter(valid_613757, JInt, required = false, default = nil) - if valid_613757 != nil: - section.add "MaxResults", valid_613757 - var valid_613758 = query.getOrDefault("NextToken") - valid_613758 = validateParameter(valid_613758, JString, required = false, + var valid_611775 = query.getOrDefault("MaxResults") + valid_611775 = validateParameter(valid_611775, JInt, required = false, default = nil) + if valid_611775 != nil: + section.add "MaxResults", valid_611775 + var valid_611776 = query.getOrDefault("NextToken") + valid_611776 = validateParameter(valid_611776, JString, required = false, default = nil) - if valid_613758 != nil: - section.add "NextToken", valid_613758 + if valid_611776 != nil: + section.add "NextToken", valid_611776 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -4119,80 +4182,80 @@ proc validate_ListInvitations_613755(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613759 = header.getOrDefault("X-Amz-Signature") - valid_613759 = validateParameter(valid_613759, JString, required = false, - default = nil) - if valid_613759 != nil: - section.add "X-Amz-Signature", valid_613759 - var valid_613760 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613760 = validateParameter(valid_613760, JString, required = false, - default = nil) - if valid_613760 != nil: - section.add "X-Amz-Content-Sha256", valid_613760 - var valid_613761 = header.getOrDefault("X-Amz-Date") - valid_613761 = validateParameter(valid_613761, JString, required = false, - default = nil) - if valid_613761 != nil: - section.add "X-Amz-Date", valid_613761 - var valid_613762 = header.getOrDefault("X-Amz-Credential") - valid_613762 = validateParameter(valid_613762, JString, required = false, - default = nil) - if valid_613762 != nil: - section.add "X-Amz-Credential", valid_613762 - var valid_613763 = header.getOrDefault("X-Amz-Security-Token") - valid_613763 = validateParameter(valid_613763, JString, required = false, - default = nil) - if valid_613763 != nil: - section.add "X-Amz-Security-Token", valid_613763 - var valid_613764 = header.getOrDefault("X-Amz-Algorithm") - valid_613764 = validateParameter(valid_613764, JString, required = false, - default = nil) - if valid_613764 != nil: - section.add "X-Amz-Algorithm", valid_613764 - var valid_613765 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613765 = validateParameter(valid_613765, JString, required = false, - default = nil) - if valid_613765 != nil: - section.add "X-Amz-SignedHeaders", valid_613765 + var valid_611777 = header.getOrDefault("X-Amz-Signature") + valid_611777 = validateParameter(valid_611777, JString, required = false, + default = nil) + if valid_611777 != nil: + section.add "X-Amz-Signature", valid_611777 + var valid_611778 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611778 = validateParameter(valid_611778, JString, required = false, + default = nil) + if valid_611778 != nil: + section.add "X-Amz-Content-Sha256", valid_611778 + var valid_611779 = header.getOrDefault("X-Amz-Date") + valid_611779 = validateParameter(valid_611779, JString, required = false, + default = nil) + if valid_611779 != nil: + section.add "X-Amz-Date", valid_611779 + var valid_611780 = header.getOrDefault("X-Amz-Credential") + valid_611780 = validateParameter(valid_611780, JString, required = false, + default = nil) + if valid_611780 != nil: + section.add "X-Amz-Credential", valid_611780 + var valid_611781 = header.getOrDefault("X-Amz-Security-Token") + valid_611781 = validateParameter(valid_611781, JString, required = false, + default = nil) + if valid_611781 != nil: + section.add "X-Amz-Security-Token", valid_611781 + var valid_611782 = header.getOrDefault("X-Amz-Algorithm") + valid_611782 = validateParameter(valid_611782, JString, required = false, + default = nil) + if valid_611782 != nil: + section.add "X-Amz-Algorithm", valid_611782 + var valid_611783 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611783 = validateParameter(valid_611783, JString, required = false, + default = nil) + if valid_611783 != nil: + section.add "X-Amz-SignedHeaders", valid_611783 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_613766: Call_ListInvitations_613754; path: JsonNode; query: JsonNode; +proc call*(call_611784: Call_ListInvitations_611772; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Lists all Security Hub membership invitations that were sent to the current AWS account. ## - let valid = call_613766.validator(path, query, header, formData, body) - let scheme = call_613766.pickScheme + let valid = call_611784.validator(path, query, header, formData, body) + let scheme = call_611784.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613766.url(scheme.get, call_613766.host, call_613766.base, - call_613766.route, valid.getOrDefault("path"), + let url = call_611784.url(scheme.get, call_611784.host, call_611784.base, + call_611784.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613766, url, valid) + result = atozHook(call_611784, url, valid) -proc call*(call_613767: Call_ListInvitations_613754; MaxResults: int = 0; +proc call*(call_611785: Call_ListInvitations_611772; MaxResults: int = 0; NextToken: string = ""): Recallable = ## listInvitations ## Lists all Security Hub membership invitations that were sent to the current AWS account. ## MaxResults: int ## : The maximum number of items to return in the response. ## NextToken: string - ## : Paginates results. On your first call to the ListInvitations operation, set the value of this parameter to NULL. For subsequent calls to the operation, to continue listing data, set nextToken in the request to the value of NextToken from the previous response. - var query_613768 = newJObject() - add(query_613768, "MaxResults", newJInt(MaxResults)) - add(query_613768, "NextToken", newJString(NextToken)) - result = call_613767.call(nil, query_613768, nil, nil, nil) + ## :

    The token that is required for pagination. On your first call to the ListInvitations operation, set the value of this parameter to NULL.

    For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.

    + var query_611786 = newJObject() + add(query_611786, "MaxResults", newJInt(MaxResults)) + add(query_611786, "NextToken", newJString(NextToken)) + result = call_611785.call(nil, query_611786, nil, nil, nil) -var listInvitations* = Call_ListInvitations_613754(name: "listInvitations", +var listInvitations* = Call_ListInvitations_611772(name: "listInvitations", meth: HttpMethod.HttpGet, host: "securityhub.amazonaws.com", - route: "/invitations", validator: validate_ListInvitations_613755, base: "/", - url: url_ListInvitations_613756, schemes: {Scheme.Https, Scheme.Http}) + route: "/invitations", validator: validate_ListInvitations_611773, base: "/", + url: url_ListInvitations_611774, schemes: {Scheme.Https, Scheme.Http}) type - Call_TagResource_613783 = ref object of OpenApiRestCall_612658 -proc url_TagResource_613785(protocol: Scheme; host: string; base: string; + Call_TagResource_611801 = ref object of OpenApiRestCall_610658 +proc url_TagResource_611803(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -4205,14 +4268,12 @@ proc url_TagResource_613785(protocol: Scheme; host: string; base: string; var hydrated = hydratePath(path, segments) if hydrated.isNone: raise newException(ValueError, "unable to fully hydrate path") - if base == - "/" and - hydrated.get.startsWith "/": + if base == "/" and hydrated.get.startsWith "/": result.path = hydrated.get else: result.path = base & hydrated.get -proc validate_TagResource_613784(path: JsonNode; query: JsonNode; header: JsonNode; +proc validate_TagResource_611802(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Adds one or more tags to a resource. ## @@ -4224,11 +4285,11 @@ proc validate_TagResource_613784(path: JsonNode; query: JsonNode; header: JsonNo section = newJObject() assert path != nil, "path argument is necessary due to required `ResourceArn` field" - var valid_613786 = path.getOrDefault("ResourceArn") - valid_613786 = validateParameter(valid_613786, JString, required = true, + var valid_611804 = path.getOrDefault("ResourceArn") + valid_611804 = validateParameter(valid_611804, JString, required = true, default = nil) - if valid_613786 != nil: - section.add "ResourceArn", valid_613786 + if valid_611804 != nil: + section.add "ResourceArn", valid_611804 result.add "path", section section = newJObject() result.add "query", section @@ -4241,41 +4302,41 @@ proc validate_TagResource_613784(path: JsonNode; query: JsonNode; header: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613787 = header.getOrDefault("X-Amz-Signature") - valid_613787 = validateParameter(valid_613787, JString, required = false, - default = nil) - if valid_613787 != nil: - section.add "X-Amz-Signature", valid_613787 - var valid_613788 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613788 = validateParameter(valid_613788, JString, required = false, - default = nil) - if valid_613788 != nil: - section.add "X-Amz-Content-Sha256", valid_613788 - var valid_613789 = header.getOrDefault("X-Amz-Date") - valid_613789 = validateParameter(valid_613789, JString, required = false, - default = nil) - if valid_613789 != nil: - section.add "X-Amz-Date", valid_613789 - var valid_613790 = header.getOrDefault("X-Amz-Credential") - valid_613790 = validateParameter(valid_613790, JString, required = false, - default = nil) - if valid_613790 != nil: - section.add "X-Amz-Credential", valid_613790 - var valid_613791 = header.getOrDefault("X-Amz-Security-Token") - valid_613791 = validateParameter(valid_613791, JString, required = false, - default = nil) - if valid_613791 != nil: - section.add "X-Amz-Security-Token", valid_613791 - var valid_613792 = header.getOrDefault("X-Amz-Algorithm") - valid_613792 = validateParameter(valid_613792, JString, required = false, - default = nil) - if valid_613792 != nil: - section.add "X-Amz-Algorithm", valid_613792 - var valid_613793 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613793 = validateParameter(valid_613793, JString, required = false, - default = nil) - if valid_613793 != nil: - section.add "X-Amz-SignedHeaders", valid_613793 + var valid_611805 = header.getOrDefault("X-Amz-Signature") + valid_611805 = validateParameter(valid_611805, JString, required = false, + default = nil) + if valid_611805 != nil: + section.add "X-Amz-Signature", valid_611805 + var valid_611806 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611806 = validateParameter(valid_611806, JString, required = false, + default = nil) + if valid_611806 != nil: + section.add "X-Amz-Content-Sha256", valid_611806 + var valid_611807 = header.getOrDefault("X-Amz-Date") + valid_611807 = validateParameter(valid_611807, JString, required = false, + default = nil) + if valid_611807 != nil: + section.add "X-Amz-Date", valid_611807 + var valid_611808 = header.getOrDefault("X-Amz-Credential") + valid_611808 = validateParameter(valid_611808, JString, required = false, + default = nil) + if valid_611808 != nil: + section.add "X-Amz-Credential", valid_611808 + var valid_611809 = header.getOrDefault("X-Amz-Security-Token") + valid_611809 = validateParameter(valid_611809, JString, required = false, + default = nil) + if valid_611809 != nil: + section.add "X-Amz-Security-Token", valid_611809 + var valid_611810 = header.getOrDefault("X-Amz-Algorithm") + valid_611810 = validateParameter(valid_611810, JString, required = false, + default = nil) + if valid_611810 != nil: + section.add "X-Amz-Algorithm", valid_611810 + var valid_611811 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611811 = validateParameter(valid_611811, JString, required = false, + default = nil) + if valid_611811 != nil: + section.add "X-Amz-SignedHeaders", valid_611811 result.add "header", section section = newJObject() result.add "formData", section @@ -4286,42 +4347,42 @@ proc validate_TagResource_613784(path: JsonNode; query: JsonNode; header: JsonNo if body != nil: result.add "body", body -proc call*(call_613795: Call_TagResource_613783; path: JsonNode; query: JsonNode; +proc call*(call_611813: Call_TagResource_611801; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Adds one or more tags to a resource. ## - let valid = call_613795.validator(path, query, header, formData, body) - let scheme = call_613795.pickScheme + let valid = call_611813.validator(path, query, header, formData, body) + let scheme = call_611813.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613795.url(scheme.get, call_613795.host, call_613795.base, - call_613795.route, valid.getOrDefault("path"), + let url = call_611813.url(scheme.get, call_611813.host, call_611813.base, + call_611813.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613795, url, valid) + result = atozHook(call_611813, url, valid) -proc call*(call_613796: Call_TagResource_613783; ResourceArn: string; body: JsonNode): Recallable = +proc call*(call_611814: Call_TagResource_611801; ResourceArn: string; body: JsonNode): Recallable = ## tagResource ## Adds one or more tags to a resource. ## ResourceArn: string (required) ## : The ARN of the resource to apply the tags to. ## body: JObject (required) - var path_613797 = newJObject() - var body_613798 = newJObject() - add(path_613797, "ResourceArn", newJString(ResourceArn)) + var path_611815 = newJObject() + var body_611816 = newJObject() + add(path_611815, "ResourceArn", newJString(ResourceArn)) if body != nil: - body_613798 = body - result = call_613796.call(path_613797, nil, nil, nil, body_613798) + body_611816 = body + result = call_611814.call(path_611815, nil, nil, nil, body_611816) -var tagResource* = Call_TagResource_613783(name: "tagResource", +var tagResource* = Call_TagResource_611801(name: "tagResource", meth: HttpMethod.HttpPost, host: "securityhub.amazonaws.com", route: "/tags/{ResourceArn}", - validator: validate_TagResource_613784, - base: "/", url: url_TagResource_613785, + validator: validate_TagResource_611802, + base: "/", url: url_TagResource_611803, schemes: {Scheme.Https, Scheme.Http}) type - Call_ListTagsForResource_613769 = ref object of OpenApiRestCall_612658 -proc url_ListTagsForResource_613771(protocol: Scheme; host: string; base: string; + Call_ListTagsForResource_611787 = ref object of OpenApiRestCall_610658 +proc url_ListTagsForResource_611789(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -4334,14 +4395,12 @@ proc url_ListTagsForResource_613771(protocol: Scheme; host: string; base: string var hydrated = hydratePath(path, segments) if hydrated.isNone: raise newException(ValueError, "unable to fully hydrate path") - if base == - "/" and - hydrated.get.startsWith "/": + if base == "/" and hydrated.get.startsWith "/": result.path = hydrated.get else: result.path = base & hydrated.get -proc validate_ListTagsForResource_613770(path: JsonNode; query: JsonNode; +proc validate_ListTagsForResource_611788(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Returns a list of tags associated with a resource. @@ -4354,11 +4413,11 @@ proc validate_ListTagsForResource_613770(path: JsonNode; query: JsonNode; section = newJObject() assert path != nil, "path argument is necessary due to required `ResourceArn` field" - var valid_613772 = path.getOrDefault("ResourceArn") - valid_613772 = validateParameter(valid_613772, JString, required = true, + var valid_611790 = path.getOrDefault("ResourceArn") + valid_611790 = validateParameter(valid_611790, JString, required = true, default = nil) - if valid_613772 != nil: - section.add "ResourceArn", valid_613772 + if valid_611790 != nil: + section.add "ResourceArn", valid_611790 result.add "path", section section = newJObject() result.add "query", section @@ -4371,77 +4430,77 @@ proc validate_ListTagsForResource_613770(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613773 = header.getOrDefault("X-Amz-Signature") - valid_613773 = validateParameter(valid_613773, JString, required = false, - default = nil) - if valid_613773 != nil: - section.add "X-Amz-Signature", valid_613773 - var valid_613774 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613774 = validateParameter(valid_613774, JString, required = false, - default = nil) - if valid_613774 != nil: - section.add "X-Amz-Content-Sha256", valid_613774 - var valid_613775 = header.getOrDefault("X-Amz-Date") - valid_613775 = validateParameter(valid_613775, JString, required = false, - default = nil) - if valid_613775 != nil: - section.add "X-Amz-Date", valid_613775 - var valid_613776 = header.getOrDefault("X-Amz-Credential") - valid_613776 = validateParameter(valid_613776, JString, required = false, - default = nil) - if valid_613776 != nil: - section.add "X-Amz-Credential", valid_613776 - var valid_613777 = header.getOrDefault("X-Amz-Security-Token") - valid_613777 = validateParameter(valid_613777, JString, required = false, - default = nil) - if valid_613777 != nil: - section.add "X-Amz-Security-Token", valid_613777 - var valid_613778 = header.getOrDefault("X-Amz-Algorithm") - valid_613778 = validateParameter(valid_613778, JString, required = false, - default = nil) - if valid_613778 != nil: - section.add "X-Amz-Algorithm", valid_613778 - var valid_613779 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613779 = validateParameter(valid_613779, JString, required = false, - default = nil) - if valid_613779 != nil: - section.add "X-Amz-SignedHeaders", valid_613779 + var valid_611791 = header.getOrDefault("X-Amz-Signature") + valid_611791 = validateParameter(valid_611791, JString, required = false, + default = nil) + if valid_611791 != nil: + section.add "X-Amz-Signature", valid_611791 + var valid_611792 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611792 = validateParameter(valid_611792, JString, required = false, + default = nil) + if valid_611792 != nil: + section.add "X-Amz-Content-Sha256", valid_611792 + var valid_611793 = header.getOrDefault("X-Amz-Date") + valid_611793 = validateParameter(valid_611793, JString, required = false, + default = nil) + if valid_611793 != nil: + section.add "X-Amz-Date", valid_611793 + var valid_611794 = header.getOrDefault("X-Amz-Credential") + valid_611794 = validateParameter(valid_611794, JString, required = false, + default = nil) + if valid_611794 != nil: + section.add "X-Amz-Credential", valid_611794 + var valid_611795 = header.getOrDefault("X-Amz-Security-Token") + valid_611795 = validateParameter(valid_611795, JString, required = false, + default = nil) + if valid_611795 != nil: + section.add "X-Amz-Security-Token", valid_611795 + var valid_611796 = header.getOrDefault("X-Amz-Algorithm") + valid_611796 = validateParameter(valid_611796, JString, required = false, + default = nil) + if valid_611796 != nil: + section.add "X-Amz-Algorithm", valid_611796 + var valid_611797 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611797 = validateParameter(valid_611797, JString, required = false, + default = nil) + if valid_611797 != nil: + section.add "X-Amz-SignedHeaders", valid_611797 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_613780: Call_ListTagsForResource_613769; path: JsonNode; +proc call*(call_611798: Call_ListTagsForResource_611787; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Returns a list of tags associated with a resource. ## - let valid = call_613780.validator(path, query, header, formData, body) - let scheme = call_613780.pickScheme + let valid = call_611798.validator(path, query, header, formData, body) + let scheme = call_611798.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613780.url(scheme.get, call_613780.host, call_613780.base, - call_613780.route, valid.getOrDefault("path"), + let url = call_611798.url(scheme.get, call_611798.host, call_611798.base, + call_611798.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613780, url, valid) + result = atozHook(call_611798, url, valid) -proc call*(call_613781: Call_ListTagsForResource_613769; ResourceArn: string): Recallable = +proc call*(call_611799: Call_ListTagsForResource_611787; ResourceArn: string): Recallable = ## listTagsForResource ## Returns a list of tags associated with a resource. ## ResourceArn: string (required) ## : The ARN of the resource to retrieve tags for. - var path_613782 = newJObject() - add(path_613782, "ResourceArn", newJString(ResourceArn)) - result = call_613781.call(path_613782, nil, nil, nil, nil) + var path_611800 = newJObject() + add(path_611800, "ResourceArn", newJString(ResourceArn)) + result = call_611799.call(path_611800, nil, nil, nil, nil) -var listTagsForResource* = Call_ListTagsForResource_613769( +var listTagsForResource* = Call_ListTagsForResource_611787( name: "listTagsForResource", meth: HttpMethod.HttpGet, host: "securityhub.amazonaws.com", route: "/tags/{ResourceArn}", - validator: validate_ListTagsForResource_613770, base: "/", - url: url_ListTagsForResource_613771, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_ListTagsForResource_611788, base: "/", + url: url_ListTagsForResource_611789, schemes: {Scheme.Https, Scheme.Http}) type - Call_UntagResource_613799 = ref object of OpenApiRestCall_612658 -proc url_UntagResource_613801(protocol: Scheme; host: string; base: string; + Call_UntagResource_611817 = ref object of OpenApiRestCall_610658 +proc url_UntagResource_611819(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -4455,14 +4514,12 @@ proc url_UntagResource_613801(protocol: Scheme; host: string; base: string; var hydrated = hydratePath(path, segments) if hydrated.isNone: raise newException(ValueError, "unable to fully hydrate path") - if base == - "/" and - hydrated.get.startsWith "/": + if base == "/" and hydrated.get.startsWith "/": result.path = hydrated.get else: result.path = base & hydrated.get -proc validate_UntagResource_613800(path: JsonNode; query: JsonNode; header: JsonNode; +proc validate_UntagResource_611818(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Removes one or more tags from a resource. ## @@ -4474,21 +4531,21 @@ proc validate_UntagResource_613800(path: JsonNode; query: JsonNode; header: Json section = newJObject() assert path != nil, "path argument is necessary due to required `ResourceArn` field" - var valid_613802 = path.getOrDefault("ResourceArn") - valid_613802 = validateParameter(valid_613802, JString, required = true, + var valid_611820 = path.getOrDefault("ResourceArn") + valid_611820 = validateParameter(valid_611820, JString, required = true, default = nil) - if valid_613802 != nil: - section.add "ResourceArn", valid_613802 + if valid_611820 != nil: + section.add "ResourceArn", valid_611820 result.add "path", section ## parameters in `query` object: ## tagKeys: JArray (required) ## : The tag keys associated with the tags to remove from the resource. section = newJObject() assert query != nil, "query argument is necessary due to required `tagKeys` field" - var valid_613803 = query.getOrDefault("tagKeys") - valid_613803 = validateParameter(valid_613803, JArray, required = true, default = nil) - if valid_613803 != nil: - section.add "tagKeys", valid_613803 + var valid_611821 = query.getOrDefault("tagKeys") + valid_611821 = validateParameter(valid_611821, JArray, required = true, default = nil) + if valid_611821 != nil: + section.add "tagKeys", valid_611821 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -4499,61 +4556,61 @@ proc validate_UntagResource_613800(path: JsonNode; query: JsonNode; header: Json ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613804 = header.getOrDefault("X-Amz-Signature") - valid_613804 = validateParameter(valid_613804, JString, required = false, - default = nil) - if valid_613804 != nil: - section.add "X-Amz-Signature", valid_613804 - var valid_613805 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613805 = validateParameter(valid_613805, JString, required = false, - default = nil) - if valid_613805 != nil: - section.add "X-Amz-Content-Sha256", valid_613805 - var valid_613806 = header.getOrDefault("X-Amz-Date") - valid_613806 = validateParameter(valid_613806, JString, required = false, - default = nil) - if valid_613806 != nil: - section.add "X-Amz-Date", valid_613806 - var valid_613807 = header.getOrDefault("X-Amz-Credential") - valid_613807 = validateParameter(valid_613807, JString, required = false, - default = nil) - if valid_613807 != nil: - section.add "X-Amz-Credential", valid_613807 - var valid_613808 = header.getOrDefault("X-Amz-Security-Token") - valid_613808 = validateParameter(valid_613808, JString, required = false, - default = nil) - if valid_613808 != nil: - section.add "X-Amz-Security-Token", valid_613808 - var valid_613809 = header.getOrDefault("X-Amz-Algorithm") - valid_613809 = validateParameter(valid_613809, JString, required = false, - default = nil) - if valid_613809 != nil: - section.add "X-Amz-Algorithm", valid_613809 - var valid_613810 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613810 = validateParameter(valid_613810, JString, required = false, - default = nil) - if valid_613810 != nil: - section.add "X-Amz-SignedHeaders", valid_613810 + var valid_611822 = header.getOrDefault("X-Amz-Signature") + valid_611822 = validateParameter(valid_611822, JString, required = false, + default = nil) + if valid_611822 != nil: + section.add "X-Amz-Signature", valid_611822 + var valid_611823 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611823 = validateParameter(valid_611823, JString, required = false, + default = nil) + if valid_611823 != nil: + section.add "X-Amz-Content-Sha256", valid_611823 + var valid_611824 = header.getOrDefault("X-Amz-Date") + valid_611824 = validateParameter(valid_611824, JString, required = false, + default = nil) + if valid_611824 != nil: + section.add "X-Amz-Date", valid_611824 + var valid_611825 = header.getOrDefault("X-Amz-Credential") + valid_611825 = validateParameter(valid_611825, JString, required = false, + default = nil) + if valid_611825 != nil: + section.add "X-Amz-Credential", valid_611825 + var valid_611826 = header.getOrDefault("X-Amz-Security-Token") + valid_611826 = validateParameter(valid_611826, JString, required = false, + default = nil) + if valid_611826 != nil: + section.add "X-Amz-Security-Token", valid_611826 + var valid_611827 = header.getOrDefault("X-Amz-Algorithm") + valid_611827 = validateParameter(valid_611827, JString, required = false, + default = nil) + if valid_611827 != nil: + section.add "X-Amz-Algorithm", valid_611827 + var valid_611828 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611828 = validateParameter(valid_611828, JString, required = false, + default = nil) + if valid_611828 != nil: + section.add "X-Amz-SignedHeaders", valid_611828 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_613811: Call_UntagResource_613799; path: JsonNode; query: JsonNode; +proc call*(call_611829: Call_UntagResource_611817; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Removes one or more tags from a resource. ## - let valid = call_613811.validator(path, query, header, formData, body) - let scheme = call_613811.pickScheme + let valid = call_611829.validator(path, query, header, formData, body) + let scheme = call_611829.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613811.url(scheme.get, call_613811.host, call_613811.base, - call_613811.route, valid.getOrDefault("path"), + let url = call_611829.url(scheme.get, call_611829.host, call_611829.base, + call_611829.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613811, url, valid) + result = atozHook(call_611829, url, valid) -proc call*(call_613812: Call_UntagResource_613799; ResourceArn: string; +proc call*(call_611830: Call_UntagResource_611817; ResourceArn: string; tagKeys: JsonNode): Recallable = ## untagResource ## Removes one or more tags from a resource. @@ -4561,20 +4618,20 @@ proc call*(call_613812: Call_UntagResource_613799; ResourceArn: string; ## : The ARN of the resource to remove the tags from. ## tagKeys: JArray (required) ## : The tag keys associated with the tags to remove from the resource. - var path_613813 = newJObject() - var query_613814 = newJObject() - add(path_613813, "ResourceArn", newJString(ResourceArn)) + var path_611831 = newJObject() + var query_611832 = newJObject() + add(path_611831, "ResourceArn", newJString(ResourceArn)) if tagKeys != nil: - query_613814.add "tagKeys", tagKeys - result = call_613812.call(path_613813, query_613814, nil, nil, nil) + query_611832.add "tagKeys", tagKeys + result = call_611830.call(path_611831, query_611832, nil, nil, nil) -var untagResource* = Call_UntagResource_613799(name: "untagResource", +var untagResource* = Call_UntagResource_611817(name: "untagResource", meth: HttpMethod.HttpDelete, host: "securityhub.amazonaws.com", - route: "/tags/{ResourceArn}#tagKeys", validator: validate_UntagResource_613800, - base: "/", url: url_UntagResource_613801, schemes: {Scheme.Https, Scheme.Http}) + route: "/tags/{ResourceArn}#tagKeys", validator: validate_UntagResource_611818, + base: "/", url: url_UntagResource_611819, schemes: {Scheme.Https, Scheme.Http}) type - Call_UpdateStandardsControl_613815 = ref object of OpenApiRestCall_612658 -proc url_UpdateStandardsControl_613817(protocol: Scheme; host: string; base: string; + Call_UpdateStandardsControl_611833 = ref object of OpenApiRestCall_610658 +proc url_UpdateStandardsControl_611835(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -4588,14 +4645,12 @@ proc url_UpdateStandardsControl_613817(protocol: Scheme; host: string; base: str var hydrated = hydratePath(path, segments) if hydrated.isNone: raise newException(ValueError, "unable to fully hydrate path") - if base == - "/" and - hydrated.get.startsWith "/": + if base == "/" and hydrated.get.startsWith "/": result.path = hydrated.get else: result.path = base & hydrated.get -proc validate_UpdateStandardsControl_613816(path: JsonNode; query: JsonNode; +proc validate_UpdateStandardsControl_611834(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Used to control whether an individual compliance standard control is enabled or disabled. ## @@ -4606,11 +4661,11 @@ proc validate_UpdateStandardsControl_613816(path: JsonNode; query: JsonNode; ## : The ARN of the compliance standard control to enable or disable. section = newJObject() assert path != nil, "path argument is necessary due to required `StandardsControlArn` field" - var valid_613818 = path.getOrDefault("StandardsControlArn") - valid_613818 = validateParameter(valid_613818, JString, required = true, + var valid_611836 = path.getOrDefault("StandardsControlArn") + valid_611836 = validateParameter(valid_611836, JString, required = true, default = nil) - if valid_613818 != nil: - section.add "StandardsControlArn", valid_613818 + if valid_611836 != nil: + section.add "StandardsControlArn", valid_611836 result.add "path", section section = newJObject() result.add "query", section @@ -4623,41 +4678,41 @@ proc validate_UpdateStandardsControl_613816(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613819 = header.getOrDefault("X-Amz-Signature") - valid_613819 = validateParameter(valid_613819, JString, required = false, - default = nil) - if valid_613819 != nil: - section.add "X-Amz-Signature", valid_613819 - var valid_613820 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613820 = validateParameter(valid_613820, JString, required = false, - default = nil) - if valid_613820 != nil: - section.add "X-Amz-Content-Sha256", valid_613820 - var valid_613821 = header.getOrDefault("X-Amz-Date") - valid_613821 = validateParameter(valid_613821, JString, required = false, - default = nil) - if valid_613821 != nil: - section.add "X-Amz-Date", valid_613821 - var valid_613822 = header.getOrDefault("X-Amz-Credential") - valid_613822 = validateParameter(valid_613822, JString, required = false, - default = nil) - if valid_613822 != nil: - section.add "X-Amz-Credential", valid_613822 - var valid_613823 = header.getOrDefault("X-Amz-Security-Token") - valid_613823 = validateParameter(valid_613823, JString, required = false, - default = nil) - if valid_613823 != nil: - section.add "X-Amz-Security-Token", valid_613823 - var valid_613824 = header.getOrDefault("X-Amz-Algorithm") - valid_613824 = validateParameter(valid_613824, JString, required = false, - default = nil) - if valid_613824 != nil: - section.add "X-Amz-Algorithm", valid_613824 - var valid_613825 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613825 = validateParameter(valid_613825, JString, required = false, - default = nil) - if valid_613825 != nil: - section.add "X-Amz-SignedHeaders", valid_613825 + var valid_611837 = header.getOrDefault("X-Amz-Signature") + valid_611837 = validateParameter(valid_611837, JString, required = false, + default = nil) + if valid_611837 != nil: + section.add "X-Amz-Signature", valid_611837 + var valid_611838 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611838 = validateParameter(valid_611838, JString, required = false, + default = nil) + if valid_611838 != nil: + section.add "X-Amz-Content-Sha256", valid_611838 + var valid_611839 = header.getOrDefault("X-Amz-Date") + valid_611839 = validateParameter(valid_611839, JString, required = false, + default = nil) + if valid_611839 != nil: + section.add "X-Amz-Date", valid_611839 + var valid_611840 = header.getOrDefault("X-Amz-Credential") + valid_611840 = validateParameter(valid_611840, JString, required = false, + default = nil) + if valid_611840 != nil: + section.add "X-Amz-Credential", valid_611840 + var valid_611841 = header.getOrDefault("X-Amz-Security-Token") + valid_611841 = validateParameter(valid_611841, JString, required = false, + default = nil) + if valid_611841 != nil: + section.add "X-Amz-Security-Token", valid_611841 + var valid_611842 = header.getOrDefault("X-Amz-Algorithm") + valid_611842 = validateParameter(valid_611842, JString, required = false, + default = nil) + if valid_611842 != nil: + section.add "X-Amz-Algorithm", valid_611842 + var valid_611843 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611843 = validateParameter(valid_611843, JString, required = false, + default = nil) + if valid_611843 != nil: + section.add "X-Amz-SignedHeaders", valid_611843 result.add "header", section section = newJObject() result.add "formData", section @@ -4668,39 +4723,39 @@ proc validate_UpdateStandardsControl_613816(path: JsonNode; query: JsonNode; if body != nil: result.add "body", body -proc call*(call_613827: Call_UpdateStandardsControl_613815; path: JsonNode; +proc call*(call_611845: Call_UpdateStandardsControl_611833; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Used to control whether an individual compliance standard control is enabled or disabled. ## - let valid = call_613827.validator(path, query, header, formData, body) - let scheme = call_613827.pickScheme + let valid = call_611845.validator(path, query, header, formData, body) + let scheme = call_611845.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613827.url(scheme.get, call_613827.host, call_613827.base, - call_613827.route, valid.getOrDefault("path"), + let url = call_611845.url(scheme.get, call_611845.host, call_611845.base, + call_611845.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613827, url, valid) + result = atozHook(call_611845, url, valid) -proc call*(call_613828: Call_UpdateStandardsControl_613815; +proc call*(call_611846: Call_UpdateStandardsControl_611833; StandardsControlArn: string; body: JsonNode): Recallable = ## updateStandardsControl ## Used to control whether an individual compliance standard control is enabled or disabled. ## StandardsControlArn: string (required) ## : The ARN of the compliance standard control to enable or disable. ## body: JObject (required) - var path_613829 = newJObject() - var body_613830 = newJObject() - add(path_613829, "StandardsControlArn", newJString(StandardsControlArn)) + var path_611847 = newJObject() + var body_611848 = newJObject() + add(path_611847, "StandardsControlArn", newJString(StandardsControlArn)) if body != nil: - body_613830 = body - result = call_613828.call(path_613829, nil, nil, nil, body_613830) + body_611848 = body + result = call_611846.call(path_611847, nil, nil, nil, body_611848) -var updateStandardsControl* = Call_UpdateStandardsControl_613815( +var updateStandardsControl* = Call_UpdateStandardsControl_611833( name: "updateStandardsControl", meth: HttpMethod.HttpPatch, host: "securityhub.amazonaws.com", route: "/standards/control/{StandardsControlArn}", - validator: validate_UpdateStandardsControl_613816, base: "/", - url: url_UpdateStandardsControl_613817, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_UpdateStandardsControl_611834, base: "/", + url: url_UpdateStandardsControl_611835, schemes: {Scheme.Https, Scheme.Http}) export rest diff --git a/src/atoz/shield_20160602.nim b/src/atoz/shield_20160602.nim index cae8175..555dc5d 100644 --- a/src/atoz/shield_20160602.nim +++ b/src/atoz/shield_20160602.nim @@ -29,18 +29,17 @@ type url*: proc (protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri - OpenApiRestCall_612658 = ref object of OpenApiRestCall + OpenApiRestCall_610658 = ref object of OpenApiRestCall proc hash(scheme: Scheme): Hash {.used.} = result = hash(ord(scheme)) -proc clone[T: OpenApiRestCall_612658](t: T): T {.used.} = +proc clone[T: OpenApiRestCall_610658](t: T): T {.used.} = result = T(name: t.name, meth: t.meth, host: t.host, base: t.base, route: t.route, schemes: t.schemes, validator: t.validator, url: t.url) -proc pickScheme(t: OpenApiRestCall_612658): Option[Scheme] {.used.} = +proc pickScheme(t: OpenApiRestCall_610658): Option[Scheme] {.used.} = ## select a supported scheme from a set of candidates - for scheme in Scheme.low .. - Scheme.high: + for scheme in Scheme.low .. Scheme.high: if scheme notin t.schemes: continue if scheme in [Scheme.Https, Scheme.Wss]: @@ -54,20 +53,16 @@ proc validateParameter(js: JsonNode; kind: JsonNodeKind; required: bool; default: JsonNode = nil): JsonNode = ## ensure an input is of the correct json type and yield ## a suitable default value when appropriate - if js == - nil: + if js == nil: if default != nil: return validateParameter(default, kind, required = required) result = js - if result == - nil: + if result == nil: assert not required, $kind & " expected; received nil" if required: result = newJNull() else: - assert js.kind == - kind, $kind & " expected; received " & - $js.kind + assert js.kind == kind, $kind & " expected; received " & $js.kind type KeyVal {.used.} = tuple[key: string, val: string] @@ -147,20 +142,18 @@ const awsServiceName = "shield" method atozHook(call: OpenApiRestCall; url: Uri; input: JsonNode): Recallable {.base.} type - Call_AssociateDRTLogBucket_612996 = ref object of OpenApiRestCall_612658 -proc url_AssociateDRTLogBucket_612998(protocol: Scheme; host: string; base: string; + Call_AssociateDRTLogBucket_610996 = ref object of OpenApiRestCall_610658 +proc url_AssociateDRTLogBucket_610998(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_AssociateDRTLogBucket_612997(path: JsonNode; query: JsonNode; +proc validate_AssociateDRTLogBucket_610997(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Authorizes the DDoS Response team (DRT) to access the specified Amazon S3 bucket containing your AWS WAF logs. You can associate up to 10 Amazon S3 buckets with your subscription.

    To use the services of the DRT and make an AssociateDRTLogBucket request, you must be subscribed to the Business Support plan or the Enterprise Support plan.

    ## @@ -180,46 +173,46 @@ proc validate_AssociateDRTLogBucket_612997(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613123 = header.getOrDefault("X-Amz-Target") - valid_613123 = validateParameter(valid_613123, JString, required = true, default = newJString( + var valid_611123 = header.getOrDefault("X-Amz-Target") + valid_611123 = validateParameter(valid_611123, JString, required = true, default = newJString( "AWSShield_20160616.AssociateDRTLogBucket")) - if valid_613123 != nil: - section.add "X-Amz-Target", valid_613123 - var valid_613124 = header.getOrDefault("X-Amz-Signature") - valid_613124 = validateParameter(valid_613124, JString, required = false, - default = nil) - if valid_613124 != nil: - section.add "X-Amz-Signature", valid_613124 - var valid_613125 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613125 = validateParameter(valid_613125, JString, required = false, - default = nil) - if valid_613125 != nil: - section.add "X-Amz-Content-Sha256", valid_613125 - var valid_613126 = header.getOrDefault("X-Amz-Date") - valid_613126 = validateParameter(valid_613126, JString, required = false, - default = nil) - if valid_613126 != nil: - section.add "X-Amz-Date", valid_613126 - var valid_613127 = header.getOrDefault("X-Amz-Credential") - valid_613127 = validateParameter(valid_613127, JString, required = false, - default = nil) - if valid_613127 != nil: - section.add "X-Amz-Credential", valid_613127 - var valid_613128 = header.getOrDefault("X-Amz-Security-Token") - valid_613128 = validateParameter(valid_613128, JString, required = false, - default = nil) - if valid_613128 != nil: - section.add "X-Amz-Security-Token", valid_613128 - var valid_613129 = header.getOrDefault("X-Amz-Algorithm") - valid_613129 = validateParameter(valid_613129, JString, required = false, - default = nil) - if valid_613129 != nil: - section.add "X-Amz-Algorithm", valid_613129 - var valid_613130 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613130 = validateParameter(valid_613130, JString, required = false, - default = nil) - if valid_613130 != nil: - section.add "X-Amz-SignedHeaders", valid_613130 + if valid_611123 != nil: + section.add "X-Amz-Target", valid_611123 + var valid_611124 = header.getOrDefault("X-Amz-Signature") + valid_611124 = validateParameter(valid_611124, JString, required = false, + default = nil) + if valid_611124 != nil: + section.add "X-Amz-Signature", valid_611124 + var valid_611125 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611125 = validateParameter(valid_611125, JString, required = false, + default = nil) + if valid_611125 != nil: + section.add "X-Amz-Content-Sha256", valid_611125 + var valid_611126 = header.getOrDefault("X-Amz-Date") + valid_611126 = validateParameter(valid_611126, JString, required = false, + default = nil) + if valid_611126 != nil: + section.add "X-Amz-Date", valid_611126 + var valid_611127 = header.getOrDefault("X-Amz-Credential") + valid_611127 = validateParameter(valid_611127, JString, required = false, + default = nil) + if valid_611127 != nil: + section.add "X-Amz-Credential", valid_611127 + var valid_611128 = header.getOrDefault("X-Amz-Security-Token") + valid_611128 = validateParameter(valid_611128, JString, required = false, + default = nil) + if valid_611128 != nil: + section.add "X-Amz-Security-Token", valid_611128 + var valid_611129 = header.getOrDefault("X-Amz-Algorithm") + valid_611129 = validateParameter(valid_611129, JString, required = false, + default = nil) + if valid_611129 != nil: + section.add "X-Amz-Algorithm", valid_611129 + var valid_611130 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611130 = validateParameter(valid_611130, JString, required = false, + default = nil) + if valid_611130 != nil: + section.add "X-Amz-SignedHeaders", valid_611130 result.add "header", section section = newJObject() result.add "formData", section @@ -230,49 +223,47 @@ proc validate_AssociateDRTLogBucket_612997(path: JsonNode; query: JsonNode; if body != nil: result.add "body", body -proc call*(call_613154: Call_AssociateDRTLogBucket_612996; path: JsonNode; +proc call*(call_611154: Call_AssociateDRTLogBucket_610996; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Authorizes the DDoS Response team (DRT) to access the specified Amazon S3 bucket containing your AWS WAF logs. You can associate up to 10 Amazon S3 buckets with your subscription.

    To use the services of the DRT and make an AssociateDRTLogBucket request, you must be subscribed to the Business Support plan or the Enterprise Support plan.

    ## - let valid = call_613154.validator(path, query, header, formData, body) - let scheme = call_613154.pickScheme + let valid = call_611154.validator(path, query, header, formData, body) + let scheme = call_611154.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613154.url(scheme.get, call_613154.host, call_613154.base, - call_613154.route, valid.getOrDefault("path"), + let url = call_611154.url(scheme.get, call_611154.host, call_611154.base, + call_611154.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613154, url, valid) + result = atozHook(call_611154, url, valid) -proc call*(call_613225: Call_AssociateDRTLogBucket_612996; body: JsonNode): Recallable = +proc call*(call_611225: Call_AssociateDRTLogBucket_610996; body: JsonNode): Recallable = ## associateDRTLogBucket ##

    Authorizes the DDoS Response team (DRT) to access the specified Amazon S3 bucket containing your AWS WAF logs. You can associate up to 10 Amazon S3 buckets with your subscription.

    To use the services of the DRT and make an AssociateDRTLogBucket request, you must be subscribed to the Business Support plan or the Enterprise Support plan.

    ## body: JObject (required) - var body_613226 = newJObject() + var body_611226 = newJObject() if body != nil: - body_613226 = body - result = call_613225.call(nil, nil, nil, nil, body_613226) + body_611226 = body + result = call_611225.call(nil, nil, nil, nil, body_611226) -var associateDRTLogBucket* = Call_AssociateDRTLogBucket_612996( +var associateDRTLogBucket* = Call_AssociateDRTLogBucket_610996( name: "associateDRTLogBucket", meth: HttpMethod.HttpPost, host: "shield.amazonaws.com", route: "/#X-Amz-Target=AWSShield_20160616.AssociateDRTLogBucket", - validator: validate_AssociateDRTLogBucket_612997, base: "/", - url: url_AssociateDRTLogBucket_612998, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_AssociateDRTLogBucket_610997, base: "/", + url: url_AssociateDRTLogBucket_610998, schemes: {Scheme.Https, Scheme.Http}) type - Call_AssociateDRTRole_613265 = ref object of OpenApiRestCall_612658 -proc url_AssociateDRTRole_613267(protocol: Scheme; host: string; base: string; + Call_AssociateDRTRole_611265 = ref object of OpenApiRestCall_610658 +proc url_AssociateDRTRole_611267(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_AssociateDRTRole_613266(path: JsonNode; query: JsonNode; +proc validate_AssociateDRTRole_611266(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Authorizes the DDoS Response team (DRT), using the specified role, to access your AWS account to assist with DDoS attack mitigation during potential attacks. This enables the DRT to inspect your AWS WAF configuration and create or update AWS WAF rules and web ACLs.

    You can associate only one RoleArn with your subscription. If you submit an AssociateDRTRole request for an account that already has an associated role, the new RoleArn will replace the existing RoleArn.

    Prior to making the AssociateDRTRole request, you must attach the AWSShieldDRTAccessPolicy managed policy to the role you will specify in the request. For more information see Attaching and Detaching IAM Policies. The role must also trust the service principal drt.shield.amazonaws.com. For more information, see IAM JSON Policy Elements: Principal.

    The DRT will have access only to your AWS WAF and Shield resources. By submitting this request, you authorize the DRT to inspect your AWS WAF and Shield configuration and create and update AWS WAF rules and web ACLs on your behalf. The DRT takes these actions only if explicitly authorized by you.

    You must have the iam:PassRole permission to make an AssociateDRTRole request. For more information, see Granting a User Permissions to Pass a Role to an AWS Service.

    To use the services of the DRT and make an AssociateDRTRole request, you must be subscribed to the Business Support plan or the Enterprise Support plan.

    @@ -293,46 +284,46 @@ proc validate_AssociateDRTRole_613266(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613268 = header.getOrDefault("X-Amz-Target") - valid_613268 = validateParameter(valid_613268, JString, required = true, default = newJString( + var valid_611268 = header.getOrDefault("X-Amz-Target") + valid_611268 = validateParameter(valid_611268, JString, required = true, default = newJString( "AWSShield_20160616.AssociateDRTRole")) - if valid_613268 != nil: - section.add "X-Amz-Target", valid_613268 - var valid_613269 = header.getOrDefault("X-Amz-Signature") - valid_613269 = validateParameter(valid_613269, JString, required = false, - default = nil) - if valid_613269 != nil: - section.add "X-Amz-Signature", valid_613269 - var valid_613270 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613270 = validateParameter(valid_613270, JString, required = false, - default = nil) - if valid_613270 != nil: - section.add "X-Amz-Content-Sha256", valid_613270 - var valid_613271 = header.getOrDefault("X-Amz-Date") - valid_613271 = validateParameter(valid_613271, JString, required = false, - default = nil) - if valid_613271 != nil: - section.add "X-Amz-Date", valid_613271 - var valid_613272 = header.getOrDefault("X-Amz-Credential") - valid_613272 = validateParameter(valid_613272, JString, required = false, - default = nil) - if valid_613272 != nil: - section.add "X-Amz-Credential", valid_613272 - var valid_613273 = header.getOrDefault("X-Amz-Security-Token") - valid_613273 = validateParameter(valid_613273, JString, required = false, - default = nil) - if valid_613273 != nil: - section.add "X-Amz-Security-Token", valid_613273 - var valid_613274 = header.getOrDefault("X-Amz-Algorithm") - valid_613274 = validateParameter(valid_613274, JString, required = false, - default = nil) - if valid_613274 != nil: - section.add "X-Amz-Algorithm", valid_613274 - var valid_613275 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613275 = validateParameter(valid_613275, JString, required = false, - default = nil) - if valid_613275 != nil: - section.add "X-Amz-SignedHeaders", valid_613275 + if valid_611268 != nil: + section.add "X-Amz-Target", valid_611268 + var valid_611269 = header.getOrDefault("X-Amz-Signature") + valid_611269 = validateParameter(valid_611269, JString, required = false, + default = nil) + if valid_611269 != nil: + section.add "X-Amz-Signature", valid_611269 + var valid_611270 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611270 = validateParameter(valid_611270, JString, required = false, + default = nil) + if valid_611270 != nil: + section.add "X-Amz-Content-Sha256", valid_611270 + var valid_611271 = header.getOrDefault("X-Amz-Date") + valid_611271 = validateParameter(valid_611271, JString, required = false, + default = nil) + if valid_611271 != nil: + section.add "X-Amz-Date", valid_611271 + var valid_611272 = header.getOrDefault("X-Amz-Credential") + valid_611272 = validateParameter(valid_611272, JString, required = false, + default = nil) + if valid_611272 != nil: + section.add "X-Amz-Credential", valid_611272 + var valid_611273 = header.getOrDefault("X-Amz-Security-Token") + valid_611273 = validateParameter(valid_611273, JString, required = false, + default = nil) + if valid_611273 != nil: + section.add "X-Amz-Security-Token", valid_611273 + var valid_611274 = header.getOrDefault("X-Amz-Algorithm") + valid_611274 = validateParameter(valid_611274, JString, required = false, + default = nil) + if valid_611274 != nil: + section.add "X-Amz-Algorithm", valid_611274 + var valid_611275 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611275 = validateParameter(valid_611275, JString, required = false, + default = nil) + if valid_611275 != nil: + section.add "X-Amz-SignedHeaders", valid_611275 result.add "header", section section = newJObject() result.add "formData", section @@ -343,48 +334,156 @@ proc validate_AssociateDRTRole_613266(path: JsonNode; query: JsonNode; if body != nil: result.add "body", body -proc call*(call_613277: Call_AssociateDRTRole_613265; path: JsonNode; +proc call*(call_611277: Call_AssociateDRTRole_611265; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Authorizes the DDoS Response team (DRT), using the specified role, to access your AWS account to assist with DDoS attack mitigation during potential attacks. This enables the DRT to inspect your AWS WAF configuration and create or update AWS WAF rules and web ACLs.

    You can associate only one RoleArn with your subscription. If you submit an AssociateDRTRole request for an account that already has an associated role, the new RoleArn will replace the existing RoleArn.

    Prior to making the AssociateDRTRole request, you must attach the AWSShieldDRTAccessPolicy managed policy to the role you will specify in the request. For more information see Attaching and Detaching IAM Policies. The role must also trust the service principal drt.shield.amazonaws.com. For more information, see IAM JSON Policy Elements: Principal.

    The DRT will have access only to your AWS WAF and Shield resources. By submitting this request, you authorize the DRT to inspect your AWS WAF and Shield configuration and create and update AWS WAF rules and web ACLs on your behalf. The DRT takes these actions only if explicitly authorized by you.

    You must have the iam:PassRole permission to make an AssociateDRTRole request. For more information, see Granting a User Permissions to Pass a Role to an AWS Service.

    To use the services of the DRT and make an AssociateDRTRole request, you must be subscribed to the Business Support plan or the Enterprise Support plan.

    ## - let valid = call_613277.validator(path, query, header, formData, body) - let scheme = call_613277.pickScheme + let valid = call_611277.validator(path, query, header, formData, body) + let scheme = call_611277.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613277.url(scheme.get, call_613277.host, call_613277.base, - call_613277.route, valid.getOrDefault("path"), + let url = call_611277.url(scheme.get, call_611277.host, call_611277.base, + call_611277.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613277, url, valid) + result = atozHook(call_611277, url, valid) -proc call*(call_613278: Call_AssociateDRTRole_613265; body: JsonNode): Recallable = +proc call*(call_611278: Call_AssociateDRTRole_611265; body: JsonNode): Recallable = ## associateDRTRole ##

    Authorizes the DDoS Response team (DRT), using the specified role, to access your AWS account to assist with DDoS attack mitigation during potential attacks. This enables the DRT to inspect your AWS WAF configuration and create or update AWS WAF rules and web ACLs.

    You can associate only one RoleArn with your subscription. If you submit an AssociateDRTRole request for an account that already has an associated role, the new RoleArn will replace the existing RoleArn.

    Prior to making the AssociateDRTRole request, you must attach the AWSShieldDRTAccessPolicy managed policy to the role you will specify in the request. For more information see Attaching and Detaching IAM Policies. The role must also trust the service principal drt.shield.amazonaws.com. For more information, see IAM JSON Policy Elements: Principal.

    The DRT will have access only to your AWS WAF and Shield resources. By submitting this request, you authorize the DRT to inspect your AWS WAF and Shield configuration and create and update AWS WAF rules and web ACLs on your behalf. The DRT takes these actions only if explicitly authorized by you.

    You must have the iam:PassRole permission to make an AssociateDRTRole request. For more information, see Granting a User Permissions to Pass a Role to an AWS Service.

    To use the services of the DRT and make an AssociateDRTRole request, you must be subscribed to the Business Support plan or the Enterprise Support plan.

    ## body: JObject (required) - var body_613279 = newJObject() + var body_611279 = newJObject() if body != nil: - body_613279 = body - result = call_613278.call(nil, nil, nil, nil, body_613279) + body_611279 = body + result = call_611278.call(nil, nil, nil, nil, body_611279) -var associateDRTRole* = Call_AssociateDRTRole_613265(name: "associateDRTRole", +var associateDRTRole* = Call_AssociateDRTRole_611265(name: "associateDRTRole", meth: HttpMethod.HttpPost, host: "shield.amazonaws.com", route: "/#X-Amz-Target=AWSShield_20160616.AssociateDRTRole", - validator: validate_AssociateDRTRole_613266, base: "/", - url: url_AssociateDRTRole_613267, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_AssociateDRTRole_611266, base: "/", + url: url_AssociateDRTRole_611267, schemes: {Scheme.Https, Scheme.Http}) type - Call_CreateProtection_613280 = ref object of OpenApiRestCall_612658 -proc url_CreateProtection_613282(protocol: Scheme; host: string; base: string; + Call_AssociateHealthCheck_611280 = ref object of OpenApiRestCall_610658 +proc url_AssociateHealthCheck_611282(protocol: Scheme; host: string; base: string; + route: string; path: JsonNode; query: JsonNode): Uri = + result.scheme = $protocol + result.hostname = host + result.query = $queryString(query) + if base == "/" and route.startsWith "/": + result.path = route + else: + result.path = base & route + +proc validate_AssociateHealthCheck_611281(path: JsonNode; query: JsonNode; + header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = + ##

    Adds health-based detection to the Shield Advanced protection for a resource. Shield Advanced health-based detection uses the health of your AWS resource to improve responsiveness and accuracy in attack detection and mitigation.

    You define the health check in Route 53 and then associate it with your Shield Advanced protection. For more information, see Shield Advanced Health-Based Detection in the AWS WAF and AWS Shield Developer Guide.

    + ## + var section: JsonNode + result = newJObject() + section = newJObject() + result.add "path", section + section = newJObject() + result.add "query", section + ## parameters in `header` object: + ## X-Amz-Target: JString (required) + ## X-Amz-Signature: JString + ## X-Amz-Content-Sha256: JString + ## X-Amz-Date: JString + ## X-Amz-Credential: JString + ## X-Amz-Security-Token: JString + ## X-Amz-Algorithm: JString + ## X-Amz-SignedHeaders: JString + section = newJObject() + var valid_611283 = header.getOrDefault("X-Amz-Target") + valid_611283 = validateParameter(valid_611283, JString, required = true, default = newJString( + "AWSShield_20160616.AssociateHealthCheck")) + if valid_611283 != nil: + section.add "X-Amz-Target", valid_611283 + var valid_611284 = header.getOrDefault("X-Amz-Signature") + valid_611284 = validateParameter(valid_611284, JString, required = false, + default = nil) + if valid_611284 != nil: + section.add "X-Amz-Signature", valid_611284 + var valid_611285 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611285 = validateParameter(valid_611285, JString, required = false, + default = nil) + if valid_611285 != nil: + section.add "X-Amz-Content-Sha256", valid_611285 + var valid_611286 = header.getOrDefault("X-Amz-Date") + valid_611286 = validateParameter(valid_611286, JString, required = false, + default = nil) + if valid_611286 != nil: + section.add "X-Amz-Date", valid_611286 + var valid_611287 = header.getOrDefault("X-Amz-Credential") + valid_611287 = validateParameter(valid_611287, JString, required = false, + default = nil) + if valid_611287 != nil: + section.add "X-Amz-Credential", valid_611287 + var valid_611288 = header.getOrDefault("X-Amz-Security-Token") + valid_611288 = validateParameter(valid_611288, JString, required = false, + default = nil) + if valid_611288 != nil: + section.add "X-Amz-Security-Token", valid_611288 + var valid_611289 = header.getOrDefault("X-Amz-Algorithm") + valid_611289 = validateParameter(valid_611289, JString, required = false, + default = nil) + if valid_611289 != nil: + section.add "X-Amz-Algorithm", valid_611289 + var valid_611290 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611290 = validateParameter(valid_611290, JString, required = false, + default = nil) + if valid_611290 != nil: + section.add "X-Amz-SignedHeaders", valid_611290 + result.add "header", section + section = newJObject() + result.add "formData", section + ## parameters in `body` object: + ## body: JObject (required) + assert body != nil, "body argument is necessary" + section = validateParameter(body, JObject, required = true, default = nil) + if body != nil: + result.add "body", body + +proc call*(call_611292: Call_AssociateHealthCheck_611280; path: JsonNode; + query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = + ##

    Adds health-based detection to the Shield Advanced protection for a resource. Shield Advanced health-based detection uses the health of your AWS resource to improve responsiveness and accuracy in attack detection and mitigation.

    You define the health check in Route 53 and then associate it with your Shield Advanced protection. For more information, see Shield Advanced Health-Based Detection in the AWS WAF and AWS Shield Developer Guide.

    + ## + let valid = call_611292.validator(path, query, header, formData, body) + let scheme = call_611292.pickScheme + if scheme.isNone: + raise newException(IOError, "unable to find a supported scheme") + let url = call_611292.url(scheme.get, call_611292.host, call_611292.base, + call_611292.route, valid.getOrDefault("path"), + valid.getOrDefault("query")) + result = atozHook(call_611292, url, valid) + +proc call*(call_611293: Call_AssociateHealthCheck_611280; body: JsonNode): Recallable = + ## associateHealthCheck + ##

    Adds health-based detection to the Shield Advanced protection for a resource. Shield Advanced health-based detection uses the health of your AWS resource to improve responsiveness and accuracy in attack detection and mitigation.

    You define the health check in Route 53 and then associate it with your Shield Advanced protection. For more information, see Shield Advanced Health-Based Detection in the AWS WAF and AWS Shield Developer Guide.

    + ## body: JObject (required) + var body_611294 = newJObject() + if body != nil: + body_611294 = body + result = call_611293.call(nil, nil, nil, nil, body_611294) + +var associateHealthCheck* = Call_AssociateHealthCheck_611280( + name: "associateHealthCheck", meth: HttpMethod.HttpPost, + host: "shield.amazonaws.com", + route: "/#X-Amz-Target=AWSShield_20160616.AssociateHealthCheck", + validator: validate_AssociateHealthCheck_611281, base: "/", + url: url_AssociateHealthCheck_611282, schemes: {Scheme.Https, Scheme.Http}) +type + Call_CreateProtection_611295 = ref object of OpenApiRestCall_610658 +proc url_CreateProtection_611297(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_CreateProtection_613281(path: JsonNode; query: JsonNode; +proc validate_CreateProtection_611296(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Enables AWS Shield Advanced for a specific AWS resource. The resource can be an Amazon CloudFront distribution, Elastic Load Balancing load balancer, AWS Global Accelerator accelerator, Elastic IP Address, or an Amazon Route 53 hosted zone.

    You can add protection to only a single resource with each CreateProtection request. If you want to add protection to multiple resources at once, use the AWS WAF console. For more information see Getting Started with AWS Shield Advanced and Add AWS Shield Advanced Protection to more AWS Resources.

    @@ -405,46 +504,46 @@ proc validate_CreateProtection_613281(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613283 = header.getOrDefault("X-Amz-Target") - valid_613283 = validateParameter(valid_613283, JString, required = true, default = newJString( + var valid_611298 = header.getOrDefault("X-Amz-Target") + valid_611298 = validateParameter(valid_611298, JString, required = true, default = newJString( "AWSShield_20160616.CreateProtection")) - if valid_613283 != nil: - section.add "X-Amz-Target", valid_613283 - var valid_613284 = header.getOrDefault("X-Amz-Signature") - valid_613284 = validateParameter(valid_613284, JString, required = false, - default = nil) - if valid_613284 != nil: - section.add "X-Amz-Signature", valid_613284 - var valid_613285 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613285 = validateParameter(valid_613285, JString, required = false, - default = nil) - if valid_613285 != nil: - section.add "X-Amz-Content-Sha256", valid_613285 - var valid_613286 = header.getOrDefault("X-Amz-Date") - valid_613286 = validateParameter(valid_613286, JString, required = false, - default = nil) - if valid_613286 != nil: - section.add "X-Amz-Date", valid_613286 - var valid_613287 = header.getOrDefault("X-Amz-Credential") - valid_613287 = validateParameter(valid_613287, JString, required = false, - default = nil) - if valid_613287 != nil: - section.add "X-Amz-Credential", valid_613287 - var valid_613288 = header.getOrDefault("X-Amz-Security-Token") - valid_613288 = validateParameter(valid_613288, JString, required = false, - default = nil) - if valid_613288 != nil: - section.add "X-Amz-Security-Token", valid_613288 - var valid_613289 = header.getOrDefault("X-Amz-Algorithm") - valid_613289 = validateParameter(valid_613289, JString, required = false, - default = nil) - if valid_613289 != nil: - section.add "X-Amz-Algorithm", valid_613289 - var valid_613290 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613290 = validateParameter(valid_613290, JString, required = false, - default = nil) - if valid_613290 != nil: - section.add "X-Amz-SignedHeaders", valid_613290 + if valid_611298 != nil: + section.add "X-Amz-Target", valid_611298 + var valid_611299 = header.getOrDefault("X-Amz-Signature") + valid_611299 = validateParameter(valid_611299, JString, required = false, + default = nil) + if valid_611299 != nil: + section.add "X-Amz-Signature", valid_611299 + var valid_611300 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611300 = validateParameter(valid_611300, JString, required = false, + default = nil) + if valid_611300 != nil: + section.add "X-Amz-Content-Sha256", valid_611300 + var valid_611301 = header.getOrDefault("X-Amz-Date") + valid_611301 = validateParameter(valid_611301, JString, required = false, + default = nil) + if valid_611301 != nil: + section.add "X-Amz-Date", valid_611301 + var valid_611302 = header.getOrDefault("X-Amz-Credential") + valid_611302 = validateParameter(valid_611302, JString, required = false, + default = nil) + if valid_611302 != nil: + section.add "X-Amz-Credential", valid_611302 + var valid_611303 = header.getOrDefault("X-Amz-Security-Token") + valid_611303 = validateParameter(valid_611303, JString, required = false, + default = nil) + if valid_611303 != nil: + section.add "X-Amz-Security-Token", valid_611303 + var valid_611304 = header.getOrDefault("X-Amz-Algorithm") + valid_611304 = validateParameter(valid_611304, JString, required = false, + default = nil) + if valid_611304 != nil: + section.add "X-Amz-Algorithm", valid_611304 + var valid_611305 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611305 = validateParameter(valid_611305, JString, required = false, + default = nil) + if valid_611305 != nil: + section.add "X-Amz-SignedHeaders", valid_611305 result.add "header", section section = newJObject() result.add "formData", section @@ -455,48 +554,46 @@ proc validate_CreateProtection_613281(path: JsonNode; query: JsonNode; if body != nil: result.add "body", body -proc call*(call_613292: Call_CreateProtection_613280; path: JsonNode; +proc call*(call_611307: Call_CreateProtection_611295; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Enables AWS Shield Advanced for a specific AWS resource. The resource can be an Amazon CloudFront distribution, Elastic Load Balancing load balancer, AWS Global Accelerator accelerator, Elastic IP Address, or an Amazon Route 53 hosted zone.

    You can add protection to only a single resource with each CreateProtection request. If you want to add protection to multiple resources at once, use the AWS WAF console. For more information see Getting Started with AWS Shield Advanced and Add AWS Shield Advanced Protection to more AWS Resources.

    ## - let valid = call_613292.validator(path, query, header, formData, body) - let scheme = call_613292.pickScheme + let valid = call_611307.validator(path, query, header, formData, body) + let scheme = call_611307.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613292.url(scheme.get, call_613292.host, call_613292.base, - call_613292.route, valid.getOrDefault("path"), + let url = call_611307.url(scheme.get, call_611307.host, call_611307.base, + call_611307.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613292, url, valid) + result = atozHook(call_611307, url, valid) -proc call*(call_613293: Call_CreateProtection_613280; body: JsonNode): Recallable = +proc call*(call_611308: Call_CreateProtection_611295; body: JsonNode): Recallable = ## createProtection ##

    Enables AWS Shield Advanced for a specific AWS resource. The resource can be an Amazon CloudFront distribution, Elastic Load Balancing load balancer, AWS Global Accelerator accelerator, Elastic IP Address, or an Amazon Route 53 hosted zone.

    You can add protection to only a single resource with each CreateProtection request. If you want to add protection to multiple resources at once, use the AWS WAF console. For more information see Getting Started with AWS Shield Advanced and Add AWS Shield Advanced Protection to more AWS Resources.

    ## body: JObject (required) - var body_613294 = newJObject() + var body_611309 = newJObject() if body != nil: - body_613294 = body - result = call_613293.call(nil, nil, nil, nil, body_613294) + body_611309 = body + result = call_611308.call(nil, nil, nil, nil, body_611309) -var createProtection* = Call_CreateProtection_613280(name: "createProtection", +var createProtection* = Call_CreateProtection_611295(name: "createProtection", meth: HttpMethod.HttpPost, host: "shield.amazonaws.com", route: "/#X-Amz-Target=AWSShield_20160616.CreateProtection", - validator: validate_CreateProtection_613281, base: "/", - url: url_CreateProtection_613282, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_CreateProtection_611296, base: "/", + url: url_CreateProtection_611297, schemes: {Scheme.Https, Scheme.Http}) type - Call_CreateSubscription_613295 = ref object of OpenApiRestCall_612658 -proc url_CreateSubscription_613297(protocol: Scheme; host: string; base: string; + Call_CreateSubscription_611310 = ref object of OpenApiRestCall_610658 +proc url_CreateSubscription_611312(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_CreateSubscription_613296(path: JsonNode; query: JsonNode; +proc validate_CreateSubscription_611311(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Activates AWS Shield Advanced for an account.

    As part of this request you can specify EmergencySettings that automaticaly grant the DDoS response team (DRT) needed permissions to assist you during a suspected DDoS attack. For more information see Authorize the DDoS Response Team to Create Rules and Web ACLs on Your Behalf.

    To use the services of the DRT, you must be subscribed to the Business Support plan or the Enterprise Support plan.

    When you initally create a subscription, your subscription is set to be automatically renewed at the end of the existing subscription period. You can change this by submitting an UpdateSubscription request.

    @@ -517,46 +614,46 @@ proc validate_CreateSubscription_613296(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613298 = header.getOrDefault("X-Amz-Target") - valid_613298 = validateParameter(valid_613298, JString, required = true, default = newJString( + var valid_611313 = header.getOrDefault("X-Amz-Target") + valid_611313 = validateParameter(valid_611313, JString, required = true, default = newJString( "AWSShield_20160616.CreateSubscription")) - if valid_613298 != nil: - section.add "X-Amz-Target", valid_613298 - var valid_613299 = header.getOrDefault("X-Amz-Signature") - valid_613299 = validateParameter(valid_613299, JString, required = false, - default = nil) - if valid_613299 != nil: - section.add "X-Amz-Signature", valid_613299 - var valid_613300 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613300 = validateParameter(valid_613300, JString, required = false, - default = nil) - if valid_613300 != nil: - section.add "X-Amz-Content-Sha256", valid_613300 - var valid_613301 = header.getOrDefault("X-Amz-Date") - valid_613301 = validateParameter(valid_613301, JString, required = false, - default = nil) - if valid_613301 != nil: - section.add "X-Amz-Date", valid_613301 - var valid_613302 = header.getOrDefault("X-Amz-Credential") - valid_613302 = validateParameter(valid_613302, JString, required = false, - default = nil) - if valid_613302 != nil: - section.add "X-Amz-Credential", valid_613302 - var valid_613303 = header.getOrDefault("X-Amz-Security-Token") - valid_613303 = validateParameter(valid_613303, JString, required = false, - default = nil) - if valid_613303 != nil: - section.add "X-Amz-Security-Token", valid_613303 - var valid_613304 = header.getOrDefault("X-Amz-Algorithm") - valid_613304 = validateParameter(valid_613304, JString, required = false, - default = nil) - if valid_613304 != nil: - section.add "X-Amz-Algorithm", valid_613304 - var valid_613305 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613305 = validateParameter(valid_613305, JString, required = false, - default = nil) - if valid_613305 != nil: - section.add "X-Amz-SignedHeaders", valid_613305 + if valid_611313 != nil: + section.add "X-Amz-Target", valid_611313 + var valid_611314 = header.getOrDefault("X-Amz-Signature") + valid_611314 = validateParameter(valid_611314, JString, required = false, + default = nil) + if valid_611314 != nil: + section.add "X-Amz-Signature", valid_611314 + var valid_611315 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611315 = validateParameter(valid_611315, JString, required = false, + default = nil) + if valid_611315 != nil: + section.add "X-Amz-Content-Sha256", valid_611315 + var valid_611316 = header.getOrDefault("X-Amz-Date") + valid_611316 = validateParameter(valid_611316, JString, required = false, + default = nil) + if valid_611316 != nil: + section.add "X-Amz-Date", valid_611316 + var valid_611317 = header.getOrDefault("X-Amz-Credential") + valid_611317 = validateParameter(valid_611317, JString, required = false, + default = nil) + if valid_611317 != nil: + section.add "X-Amz-Credential", valid_611317 + var valid_611318 = header.getOrDefault("X-Amz-Security-Token") + valid_611318 = validateParameter(valid_611318, JString, required = false, + default = nil) + if valid_611318 != nil: + section.add "X-Amz-Security-Token", valid_611318 + var valid_611319 = header.getOrDefault("X-Amz-Algorithm") + valid_611319 = validateParameter(valid_611319, JString, required = false, + default = nil) + if valid_611319 != nil: + section.add "X-Amz-Algorithm", valid_611319 + var valid_611320 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611320 = validateParameter(valid_611320, JString, required = false, + default = nil) + if valid_611320 != nil: + section.add "X-Amz-SignedHeaders", valid_611320 result.add "header", section section = newJObject() result.add "formData", section @@ -567,49 +664,47 @@ proc validate_CreateSubscription_613296(path: JsonNode; query: JsonNode; if body != nil: result.add "body", body -proc call*(call_613307: Call_CreateSubscription_613295; path: JsonNode; +proc call*(call_611322: Call_CreateSubscription_611310; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Activates AWS Shield Advanced for an account.

    As part of this request you can specify EmergencySettings that automaticaly grant the DDoS response team (DRT) needed permissions to assist you during a suspected DDoS attack. For more information see Authorize the DDoS Response Team to Create Rules and Web ACLs on Your Behalf.

    To use the services of the DRT, you must be subscribed to the Business Support plan or the Enterprise Support plan.

    When you initally create a subscription, your subscription is set to be automatically renewed at the end of the existing subscription period. You can change this by submitting an UpdateSubscription request.

    ## - let valid = call_613307.validator(path, query, header, formData, body) - let scheme = call_613307.pickScheme + let valid = call_611322.validator(path, query, header, formData, body) + let scheme = call_611322.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613307.url(scheme.get, call_613307.host, call_613307.base, - call_613307.route, valid.getOrDefault("path"), + let url = call_611322.url(scheme.get, call_611322.host, call_611322.base, + call_611322.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613307, url, valid) + result = atozHook(call_611322, url, valid) -proc call*(call_613308: Call_CreateSubscription_613295; body: JsonNode): Recallable = +proc call*(call_611323: Call_CreateSubscription_611310; body: JsonNode): Recallable = ## createSubscription ##

    Activates AWS Shield Advanced for an account.

    As part of this request you can specify EmergencySettings that automaticaly grant the DDoS response team (DRT) needed permissions to assist you during a suspected DDoS attack. For more information see Authorize the DDoS Response Team to Create Rules and Web ACLs on Your Behalf.

    To use the services of the DRT, you must be subscribed to the Business Support plan or the Enterprise Support plan.

    When you initally create a subscription, your subscription is set to be automatically renewed at the end of the existing subscription period. You can change this by submitting an UpdateSubscription request.

    ## body: JObject (required) - var body_613309 = newJObject() + var body_611324 = newJObject() if body != nil: - body_613309 = body - result = call_613308.call(nil, nil, nil, nil, body_613309) + body_611324 = body + result = call_611323.call(nil, nil, nil, nil, body_611324) -var createSubscription* = Call_CreateSubscription_613295( +var createSubscription* = Call_CreateSubscription_611310( name: "createSubscription", meth: HttpMethod.HttpPost, host: "shield.amazonaws.com", route: "/#X-Amz-Target=AWSShield_20160616.CreateSubscription", - validator: validate_CreateSubscription_613296, base: "/", - url: url_CreateSubscription_613297, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_CreateSubscription_611311, base: "/", + url: url_CreateSubscription_611312, schemes: {Scheme.Https, Scheme.Http}) type - Call_DeleteProtection_613310 = ref object of OpenApiRestCall_612658 -proc url_DeleteProtection_613312(protocol: Scheme; host: string; base: string; + Call_DeleteProtection_611325 = ref object of OpenApiRestCall_610658 +proc url_DeleteProtection_611327(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_DeleteProtection_613311(path: JsonNode; query: JsonNode; +proc validate_DeleteProtection_611326(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes an AWS Shield Advanced Protection. @@ -630,46 +725,46 @@ proc validate_DeleteProtection_613311(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613313 = header.getOrDefault("X-Amz-Target") - valid_613313 = validateParameter(valid_613313, JString, required = true, default = newJString( + var valid_611328 = header.getOrDefault("X-Amz-Target") + valid_611328 = validateParameter(valid_611328, JString, required = true, default = newJString( "AWSShield_20160616.DeleteProtection")) - if valid_613313 != nil: - section.add "X-Amz-Target", valid_613313 - var valid_613314 = header.getOrDefault("X-Amz-Signature") - valid_613314 = validateParameter(valid_613314, JString, required = false, - default = nil) - if valid_613314 != nil: - section.add "X-Amz-Signature", valid_613314 - var valid_613315 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613315 = validateParameter(valid_613315, JString, required = false, - default = nil) - if valid_613315 != nil: - section.add "X-Amz-Content-Sha256", valid_613315 - var valid_613316 = header.getOrDefault("X-Amz-Date") - valid_613316 = validateParameter(valid_613316, JString, required = false, - default = nil) - if valid_613316 != nil: - section.add "X-Amz-Date", valid_613316 - var valid_613317 = header.getOrDefault("X-Amz-Credential") - valid_613317 = validateParameter(valid_613317, JString, required = false, - default = nil) - if valid_613317 != nil: - section.add "X-Amz-Credential", valid_613317 - var valid_613318 = header.getOrDefault("X-Amz-Security-Token") - valid_613318 = validateParameter(valid_613318, JString, required = false, - default = nil) - if valid_613318 != nil: - section.add "X-Amz-Security-Token", valid_613318 - var valid_613319 = header.getOrDefault("X-Amz-Algorithm") - valid_613319 = validateParameter(valid_613319, JString, required = false, - default = nil) - if valid_613319 != nil: - section.add "X-Amz-Algorithm", valid_613319 - var valid_613320 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613320 = validateParameter(valid_613320, JString, required = false, - default = nil) - if valid_613320 != nil: - section.add "X-Amz-SignedHeaders", valid_613320 + if valid_611328 != nil: + section.add "X-Amz-Target", valid_611328 + var valid_611329 = header.getOrDefault("X-Amz-Signature") + valid_611329 = validateParameter(valid_611329, JString, required = false, + default = nil) + if valid_611329 != nil: + section.add "X-Amz-Signature", valid_611329 + var valid_611330 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611330 = validateParameter(valid_611330, JString, required = false, + default = nil) + if valid_611330 != nil: + section.add "X-Amz-Content-Sha256", valid_611330 + var valid_611331 = header.getOrDefault("X-Amz-Date") + valid_611331 = validateParameter(valid_611331, JString, required = false, + default = nil) + if valid_611331 != nil: + section.add "X-Amz-Date", valid_611331 + var valid_611332 = header.getOrDefault("X-Amz-Credential") + valid_611332 = validateParameter(valid_611332, JString, required = false, + default = nil) + if valid_611332 != nil: + section.add "X-Amz-Credential", valid_611332 + var valid_611333 = header.getOrDefault("X-Amz-Security-Token") + valid_611333 = validateParameter(valid_611333, JString, required = false, + default = nil) + if valid_611333 != nil: + section.add "X-Amz-Security-Token", valid_611333 + var valid_611334 = header.getOrDefault("X-Amz-Algorithm") + valid_611334 = validateParameter(valid_611334, JString, required = false, + default = nil) + if valid_611334 != nil: + section.add "X-Amz-Algorithm", valid_611334 + var valid_611335 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611335 = validateParameter(valid_611335, JString, required = false, + default = nil) + if valid_611335 != nil: + section.add "X-Amz-SignedHeaders", valid_611335 result.add "header", section section = newJObject() result.add "formData", section @@ -680,48 +775,46 @@ proc validate_DeleteProtection_613311(path: JsonNode; query: JsonNode; if body != nil: result.add "body", body -proc call*(call_613322: Call_DeleteProtection_613310; path: JsonNode; +proc call*(call_611337: Call_DeleteProtection_611325; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes an AWS Shield Advanced Protection. ## - let valid = call_613322.validator(path, query, header, formData, body) - let scheme = call_613322.pickScheme + let valid = call_611337.validator(path, query, header, formData, body) + let scheme = call_611337.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613322.url(scheme.get, call_613322.host, call_613322.base, - call_613322.route, valid.getOrDefault("path"), + let url = call_611337.url(scheme.get, call_611337.host, call_611337.base, + call_611337.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613322, url, valid) + result = atozHook(call_611337, url, valid) -proc call*(call_613323: Call_DeleteProtection_613310; body: JsonNode): Recallable = +proc call*(call_611338: Call_DeleteProtection_611325; body: JsonNode): Recallable = ## deleteProtection ## Deletes an AWS Shield Advanced Protection. ## body: JObject (required) - var body_613324 = newJObject() + var body_611339 = newJObject() if body != nil: - body_613324 = body - result = call_613323.call(nil, nil, nil, nil, body_613324) + body_611339 = body + result = call_611338.call(nil, nil, nil, nil, body_611339) -var deleteProtection* = Call_DeleteProtection_613310(name: "deleteProtection", +var deleteProtection* = Call_DeleteProtection_611325(name: "deleteProtection", meth: HttpMethod.HttpPost, host: "shield.amazonaws.com", route: "/#X-Amz-Target=AWSShield_20160616.DeleteProtection", - validator: validate_DeleteProtection_613311, base: "/", - url: url_DeleteProtection_613312, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_DeleteProtection_611326, base: "/", + url: url_DeleteProtection_611327, schemes: {Scheme.Https, Scheme.Http}) type - Call_DeleteSubscription_613325 = ref object of OpenApiRestCall_612658 -proc url_DeleteSubscription_613327(protocol: Scheme; host: string; base: string; + Call_DeleteSubscription_611340 = ref object of OpenApiRestCall_610658 +proc url_DeleteSubscription_611342(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_DeleteSubscription_613326(path: JsonNode; query: JsonNode; +proc validate_DeleteSubscription_611341(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Removes AWS Shield Advanced from an account. AWS Shield Advanced requires a 1-year subscription commitment. You cannot delete a subscription prior to the completion of that commitment. @@ -742,46 +835,46 @@ proc validate_DeleteSubscription_613326(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613328 = header.getOrDefault("X-Amz-Target") - valid_613328 = validateParameter(valid_613328, JString, required = true, default = newJString( + var valid_611343 = header.getOrDefault("X-Amz-Target") + valid_611343 = validateParameter(valid_611343, JString, required = true, default = newJString( "AWSShield_20160616.DeleteSubscription")) - if valid_613328 != nil: - section.add "X-Amz-Target", valid_613328 - var valid_613329 = header.getOrDefault("X-Amz-Signature") - valid_613329 = validateParameter(valid_613329, JString, required = false, - default = nil) - if valid_613329 != nil: - section.add "X-Amz-Signature", valid_613329 - var valid_613330 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613330 = validateParameter(valid_613330, JString, required = false, - default = nil) - if valid_613330 != nil: - section.add "X-Amz-Content-Sha256", valid_613330 - var valid_613331 = header.getOrDefault("X-Amz-Date") - valid_613331 = validateParameter(valid_613331, JString, required = false, - default = nil) - if valid_613331 != nil: - section.add "X-Amz-Date", valid_613331 - var valid_613332 = header.getOrDefault("X-Amz-Credential") - valid_613332 = validateParameter(valid_613332, JString, required = false, - default = nil) - if valid_613332 != nil: - section.add "X-Amz-Credential", valid_613332 - var valid_613333 = header.getOrDefault("X-Amz-Security-Token") - valid_613333 = validateParameter(valid_613333, JString, required = false, - default = nil) - if valid_613333 != nil: - section.add "X-Amz-Security-Token", valid_613333 - var valid_613334 = header.getOrDefault("X-Amz-Algorithm") - valid_613334 = validateParameter(valid_613334, JString, required = false, - default = nil) - if valid_613334 != nil: - section.add "X-Amz-Algorithm", valid_613334 - var valid_613335 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613335 = validateParameter(valid_613335, JString, required = false, - default = nil) - if valid_613335 != nil: - section.add "X-Amz-SignedHeaders", valid_613335 + if valid_611343 != nil: + section.add "X-Amz-Target", valid_611343 + var valid_611344 = header.getOrDefault("X-Amz-Signature") + valid_611344 = validateParameter(valid_611344, JString, required = false, + default = nil) + if valid_611344 != nil: + section.add "X-Amz-Signature", valid_611344 + var valid_611345 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611345 = validateParameter(valid_611345, JString, required = false, + default = nil) + if valid_611345 != nil: + section.add "X-Amz-Content-Sha256", valid_611345 + var valid_611346 = header.getOrDefault("X-Amz-Date") + valid_611346 = validateParameter(valid_611346, JString, required = false, + default = nil) + if valid_611346 != nil: + section.add "X-Amz-Date", valid_611346 + var valid_611347 = header.getOrDefault("X-Amz-Credential") + valid_611347 = validateParameter(valid_611347, JString, required = false, + default = nil) + if valid_611347 != nil: + section.add "X-Amz-Credential", valid_611347 + var valid_611348 = header.getOrDefault("X-Amz-Security-Token") + valid_611348 = validateParameter(valid_611348, JString, required = false, + default = nil) + if valid_611348 != nil: + section.add "X-Amz-Security-Token", valid_611348 + var valid_611349 = header.getOrDefault("X-Amz-Algorithm") + valid_611349 = validateParameter(valid_611349, JString, required = false, + default = nil) + if valid_611349 != nil: + section.add "X-Amz-Algorithm", valid_611349 + var valid_611350 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611350 = validateParameter(valid_611350, JString, required = false, + default = nil) + if valid_611350 != nil: + section.add "X-Amz-SignedHeaders", valid_611350 result.add "header", section section = newJObject() result.add "formData", section @@ -792,49 +885,47 @@ proc validate_DeleteSubscription_613326(path: JsonNode; query: JsonNode; if body != nil: result.add "body", body -proc call*(call_613337: Call_DeleteSubscription_613325; path: JsonNode; +proc call*(call_611352: Call_DeleteSubscription_611340; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Removes AWS Shield Advanced from an account. AWS Shield Advanced requires a 1-year subscription commitment. You cannot delete a subscription prior to the completion of that commitment. ## - let valid = call_613337.validator(path, query, header, formData, body) - let scheme = call_613337.pickScheme + let valid = call_611352.validator(path, query, header, formData, body) + let scheme = call_611352.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613337.url(scheme.get, call_613337.host, call_613337.base, - call_613337.route, valid.getOrDefault("path"), + let url = call_611352.url(scheme.get, call_611352.host, call_611352.base, + call_611352.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613337, url, valid) + result = atozHook(call_611352, url, valid) -proc call*(call_613338: Call_DeleteSubscription_613325; body: JsonNode): Recallable = +proc call*(call_611353: Call_DeleteSubscription_611340; body: JsonNode): Recallable = ## deleteSubscription ## Removes AWS Shield Advanced from an account. AWS Shield Advanced requires a 1-year subscription commitment. You cannot delete a subscription prior to the completion of that commitment. ## body: JObject (required) - var body_613339 = newJObject() + var body_611354 = newJObject() if body != nil: - body_613339 = body - result = call_613338.call(nil, nil, nil, nil, body_613339) + body_611354 = body + result = call_611353.call(nil, nil, nil, nil, body_611354) -var deleteSubscription* = Call_DeleteSubscription_613325( +var deleteSubscription* = Call_DeleteSubscription_611340( name: "deleteSubscription", meth: HttpMethod.HttpPost, host: "shield.amazonaws.com", route: "/#X-Amz-Target=AWSShield_20160616.DeleteSubscription", - validator: validate_DeleteSubscription_613326, base: "/", - url: url_DeleteSubscription_613327, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_DeleteSubscription_611341, base: "/", + url: url_DeleteSubscription_611342, schemes: {Scheme.Https, Scheme.Http}) type - Call_DescribeAttack_613340 = ref object of OpenApiRestCall_612658 -proc url_DescribeAttack_613342(protocol: Scheme; host: string; base: string; + Call_DescribeAttack_611355 = ref object of OpenApiRestCall_610658 +proc url_DescribeAttack_611357(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_DescribeAttack_613341(path: JsonNode; query: JsonNode; +proc validate_DescribeAttack_611356(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Describes the details of a DDoS attack. @@ -855,46 +946,46 @@ proc validate_DescribeAttack_613341(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613343 = header.getOrDefault("X-Amz-Target") - valid_613343 = validateParameter(valid_613343, JString, required = true, default = newJString( + var valid_611358 = header.getOrDefault("X-Amz-Target") + valid_611358 = validateParameter(valid_611358, JString, required = true, default = newJString( "AWSShield_20160616.DescribeAttack")) - if valid_613343 != nil: - section.add "X-Amz-Target", valid_613343 - var valid_613344 = header.getOrDefault("X-Amz-Signature") - valid_613344 = validateParameter(valid_613344, JString, required = false, - default = nil) - if valid_613344 != nil: - section.add "X-Amz-Signature", valid_613344 - var valid_613345 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613345 = validateParameter(valid_613345, JString, required = false, - default = nil) - if valid_613345 != nil: - section.add "X-Amz-Content-Sha256", valid_613345 - var valid_613346 = header.getOrDefault("X-Amz-Date") - valid_613346 = validateParameter(valid_613346, JString, required = false, - default = nil) - if valid_613346 != nil: - section.add "X-Amz-Date", valid_613346 - var valid_613347 = header.getOrDefault("X-Amz-Credential") - valid_613347 = validateParameter(valid_613347, JString, required = false, - default = nil) - if valid_613347 != nil: - section.add "X-Amz-Credential", valid_613347 - var valid_613348 = header.getOrDefault("X-Amz-Security-Token") - valid_613348 = validateParameter(valid_613348, JString, required = false, - default = nil) - if valid_613348 != nil: - section.add "X-Amz-Security-Token", valid_613348 - var valid_613349 = header.getOrDefault("X-Amz-Algorithm") - valid_613349 = validateParameter(valid_613349, JString, required = false, - default = nil) - if valid_613349 != nil: - section.add "X-Amz-Algorithm", valid_613349 - var valid_613350 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613350 = validateParameter(valid_613350, JString, required = false, - default = nil) - if valid_613350 != nil: - section.add "X-Amz-SignedHeaders", valid_613350 + if valid_611358 != nil: + section.add "X-Amz-Target", valid_611358 + var valid_611359 = header.getOrDefault("X-Amz-Signature") + valid_611359 = validateParameter(valid_611359, JString, required = false, + default = nil) + if valid_611359 != nil: + section.add "X-Amz-Signature", valid_611359 + var valid_611360 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611360 = validateParameter(valid_611360, JString, required = false, + default = nil) + if valid_611360 != nil: + section.add "X-Amz-Content-Sha256", valid_611360 + var valid_611361 = header.getOrDefault("X-Amz-Date") + valid_611361 = validateParameter(valid_611361, JString, required = false, + default = nil) + if valid_611361 != nil: + section.add "X-Amz-Date", valid_611361 + var valid_611362 = header.getOrDefault("X-Amz-Credential") + valid_611362 = validateParameter(valid_611362, JString, required = false, + default = nil) + if valid_611362 != nil: + section.add "X-Amz-Credential", valid_611362 + var valid_611363 = header.getOrDefault("X-Amz-Security-Token") + valid_611363 = validateParameter(valid_611363, JString, required = false, + default = nil) + if valid_611363 != nil: + section.add "X-Amz-Security-Token", valid_611363 + var valid_611364 = header.getOrDefault("X-Amz-Algorithm") + valid_611364 = validateParameter(valid_611364, JString, required = false, + default = nil) + if valid_611364 != nil: + section.add "X-Amz-Algorithm", valid_611364 + var valid_611365 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611365 = validateParameter(valid_611365, JString, required = false, + default = nil) + if valid_611365 != nil: + section.add "X-Amz-SignedHeaders", valid_611365 result.add "header", section section = newJObject() result.add "formData", section @@ -905,48 +996,46 @@ proc validate_DescribeAttack_613341(path: JsonNode; query: JsonNode; if body != nil: result.add "body", body -proc call*(call_613352: Call_DescribeAttack_613340; path: JsonNode; query: JsonNode; +proc call*(call_611367: Call_DescribeAttack_611355; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Describes the details of a DDoS attack. ## - let valid = call_613352.validator(path, query, header, formData, body) - let scheme = call_613352.pickScheme + let valid = call_611367.validator(path, query, header, formData, body) + let scheme = call_611367.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613352.url(scheme.get, call_613352.host, call_613352.base, - call_613352.route, valid.getOrDefault("path"), + let url = call_611367.url(scheme.get, call_611367.host, call_611367.base, + call_611367.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613352, url, valid) + result = atozHook(call_611367, url, valid) -proc call*(call_613353: Call_DescribeAttack_613340; body: JsonNode): Recallable = +proc call*(call_611368: Call_DescribeAttack_611355; body: JsonNode): Recallable = ## describeAttack ## Describes the details of a DDoS attack. ## body: JObject (required) - var body_613354 = newJObject() + var body_611369 = newJObject() if body != nil: - body_613354 = body - result = call_613353.call(nil, nil, nil, nil, body_613354) + body_611369 = body + result = call_611368.call(nil, nil, nil, nil, body_611369) -var describeAttack* = Call_DescribeAttack_613340(name: "describeAttack", +var describeAttack* = Call_DescribeAttack_611355(name: "describeAttack", meth: HttpMethod.HttpPost, host: "shield.amazonaws.com", route: "/#X-Amz-Target=AWSShield_20160616.DescribeAttack", - validator: validate_DescribeAttack_613341, base: "/", url: url_DescribeAttack_613342, + validator: validate_DescribeAttack_611356, base: "/", url: url_DescribeAttack_611357, schemes: {Scheme.Https, Scheme.Http}) type - Call_DescribeDRTAccess_613355 = ref object of OpenApiRestCall_612658 -proc url_DescribeDRTAccess_613357(protocol: Scheme; host: string; base: string; + Call_DescribeDRTAccess_611370 = ref object of OpenApiRestCall_610658 +proc url_DescribeDRTAccess_611372(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_DescribeDRTAccess_613356(path: JsonNode; query: JsonNode; +proc validate_DescribeDRTAccess_611371(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Returns the current role and list of Amazon S3 log buckets used by the DDoS Response team (DRT) to access your AWS account while assisting with attack mitigation. @@ -967,46 +1056,46 @@ proc validate_DescribeDRTAccess_613356(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613358 = header.getOrDefault("X-Amz-Target") - valid_613358 = validateParameter(valid_613358, JString, required = true, default = newJString( + var valid_611373 = header.getOrDefault("X-Amz-Target") + valid_611373 = validateParameter(valid_611373, JString, required = true, default = newJString( "AWSShield_20160616.DescribeDRTAccess")) - if valid_613358 != nil: - section.add "X-Amz-Target", valid_613358 - var valid_613359 = header.getOrDefault("X-Amz-Signature") - valid_613359 = validateParameter(valid_613359, JString, required = false, - default = nil) - if valid_613359 != nil: - section.add "X-Amz-Signature", valid_613359 - var valid_613360 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613360 = validateParameter(valid_613360, JString, required = false, - default = nil) - if valid_613360 != nil: - section.add "X-Amz-Content-Sha256", valid_613360 - var valid_613361 = header.getOrDefault("X-Amz-Date") - valid_613361 = validateParameter(valid_613361, JString, required = false, - default = nil) - if valid_613361 != nil: - section.add "X-Amz-Date", valid_613361 - var valid_613362 = header.getOrDefault("X-Amz-Credential") - valid_613362 = validateParameter(valid_613362, JString, required = false, - default = nil) - if valid_613362 != nil: - section.add "X-Amz-Credential", valid_613362 - var valid_613363 = header.getOrDefault("X-Amz-Security-Token") - valid_613363 = validateParameter(valid_613363, JString, required = false, - default = nil) - if valid_613363 != nil: - section.add "X-Amz-Security-Token", valid_613363 - var valid_613364 = header.getOrDefault("X-Amz-Algorithm") - valid_613364 = validateParameter(valid_613364, JString, required = false, - default = nil) - if valid_613364 != nil: - section.add "X-Amz-Algorithm", valid_613364 - var valid_613365 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613365 = validateParameter(valid_613365, JString, required = false, - default = nil) - if valid_613365 != nil: - section.add "X-Amz-SignedHeaders", valid_613365 + if valid_611373 != nil: + section.add "X-Amz-Target", valid_611373 + var valid_611374 = header.getOrDefault("X-Amz-Signature") + valid_611374 = validateParameter(valid_611374, JString, required = false, + default = nil) + if valid_611374 != nil: + section.add "X-Amz-Signature", valid_611374 + var valid_611375 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611375 = validateParameter(valid_611375, JString, required = false, + default = nil) + if valid_611375 != nil: + section.add "X-Amz-Content-Sha256", valid_611375 + var valid_611376 = header.getOrDefault("X-Amz-Date") + valid_611376 = validateParameter(valid_611376, JString, required = false, + default = nil) + if valid_611376 != nil: + section.add "X-Amz-Date", valid_611376 + var valid_611377 = header.getOrDefault("X-Amz-Credential") + valid_611377 = validateParameter(valid_611377, JString, required = false, + default = nil) + if valid_611377 != nil: + section.add "X-Amz-Credential", valid_611377 + var valid_611378 = header.getOrDefault("X-Amz-Security-Token") + valid_611378 = validateParameter(valid_611378, JString, required = false, + default = nil) + if valid_611378 != nil: + section.add "X-Amz-Security-Token", valid_611378 + var valid_611379 = header.getOrDefault("X-Amz-Algorithm") + valid_611379 = validateParameter(valid_611379, JString, required = false, + default = nil) + if valid_611379 != nil: + section.add "X-Amz-Algorithm", valid_611379 + var valid_611380 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611380 = validateParameter(valid_611380, JString, required = false, + default = nil) + if valid_611380 != nil: + section.add "X-Amz-SignedHeaders", valid_611380 result.add "header", section section = newJObject() result.add "formData", section @@ -1017,48 +1106,46 @@ proc validate_DescribeDRTAccess_613356(path: JsonNode; query: JsonNode; if body != nil: result.add "body", body -proc call*(call_613367: Call_DescribeDRTAccess_613355; path: JsonNode; +proc call*(call_611382: Call_DescribeDRTAccess_611370; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Returns the current role and list of Amazon S3 log buckets used by the DDoS Response team (DRT) to access your AWS account while assisting with attack mitigation. ## - let valid = call_613367.validator(path, query, header, formData, body) - let scheme = call_613367.pickScheme + let valid = call_611382.validator(path, query, header, formData, body) + let scheme = call_611382.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613367.url(scheme.get, call_613367.host, call_613367.base, - call_613367.route, valid.getOrDefault("path"), + let url = call_611382.url(scheme.get, call_611382.host, call_611382.base, + call_611382.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613367, url, valid) + result = atozHook(call_611382, url, valid) -proc call*(call_613368: Call_DescribeDRTAccess_613355; body: JsonNode): Recallable = +proc call*(call_611383: Call_DescribeDRTAccess_611370; body: JsonNode): Recallable = ## describeDRTAccess ## Returns the current role and list of Amazon S3 log buckets used by the DDoS Response team (DRT) to access your AWS account while assisting with attack mitigation. ## body: JObject (required) - var body_613369 = newJObject() + var body_611384 = newJObject() if body != nil: - body_613369 = body - result = call_613368.call(nil, nil, nil, nil, body_613369) + body_611384 = body + result = call_611383.call(nil, nil, nil, nil, body_611384) -var describeDRTAccess* = Call_DescribeDRTAccess_613355(name: "describeDRTAccess", +var describeDRTAccess* = Call_DescribeDRTAccess_611370(name: "describeDRTAccess", meth: HttpMethod.HttpPost, host: "shield.amazonaws.com", route: "/#X-Amz-Target=AWSShield_20160616.DescribeDRTAccess", - validator: validate_DescribeDRTAccess_613356, base: "/", - url: url_DescribeDRTAccess_613357, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_DescribeDRTAccess_611371, base: "/", + url: url_DescribeDRTAccess_611372, schemes: {Scheme.Https, Scheme.Http}) type - Call_DescribeEmergencyContactSettings_613370 = ref object of OpenApiRestCall_612658 -proc url_DescribeEmergencyContactSettings_613372(protocol: Scheme; host: string; + Call_DescribeEmergencyContactSettings_611385 = ref object of OpenApiRestCall_610658 +proc url_DescribeEmergencyContactSettings_611387(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_DescribeEmergencyContactSettings_613371(path: JsonNode; +proc validate_DescribeEmergencyContactSettings_611386(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Lists the email addresses that the DRT can use to contact you during a suspected attack. ## @@ -1078,46 +1165,46 @@ proc validate_DescribeEmergencyContactSettings_613371(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613373 = header.getOrDefault("X-Amz-Target") - valid_613373 = validateParameter(valid_613373, JString, required = true, default = newJString( + var valid_611388 = header.getOrDefault("X-Amz-Target") + valid_611388 = validateParameter(valid_611388, JString, required = true, default = newJString( "AWSShield_20160616.DescribeEmergencyContactSettings")) - if valid_613373 != nil: - section.add "X-Amz-Target", valid_613373 - var valid_613374 = header.getOrDefault("X-Amz-Signature") - valid_613374 = validateParameter(valid_613374, JString, required = false, - default = nil) - if valid_613374 != nil: - section.add "X-Amz-Signature", valid_613374 - var valid_613375 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613375 = validateParameter(valid_613375, JString, required = false, - default = nil) - if valid_613375 != nil: - section.add "X-Amz-Content-Sha256", valid_613375 - var valid_613376 = header.getOrDefault("X-Amz-Date") - valid_613376 = validateParameter(valid_613376, JString, required = false, - default = nil) - if valid_613376 != nil: - section.add "X-Amz-Date", valid_613376 - var valid_613377 = header.getOrDefault("X-Amz-Credential") - valid_613377 = validateParameter(valid_613377, JString, required = false, - default = nil) - if valid_613377 != nil: - section.add "X-Amz-Credential", valid_613377 - var valid_613378 = header.getOrDefault("X-Amz-Security-Token") - valid_613378 = validateParameter(valid_613378, JString, required = false, - default = nil) - if valid_613378 != nil: - section.add "X-Amz-Security-Token", valid_613378 - var valid_613379 = header.getOrDefault("X-Amz-Algorithm") - valid_613379 = validateParameter(valid_613379, JString, required = false, - default = nil) - if valid_613379 != nil: - section.add "X-Amz-Algorithm", valid_613379 - var valid_613380 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613380 = validateParameter(valid_613380, JString, required = false, - default = nil) - if valid_613380 != nil: - section.add "X-Amz-SignedHeaders", valid_613380 + if valid_611388 != nil: + section.add "X-Amz-Target", valid_611388 + var valid_611389 = header.getOrDefault("X-Amz-Signature") + valid_611389 = validateParameter(valid_611389, JString, required = false, + default = nil) + if valid_611389 != nil: + section.add "X-Amz-Signature", valid_611389 + var valid_611390 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611390 = validateParameter(valid_611390, JString, required = false, + default = nil) + if valid_611390 != nil: + section.add "X-Amz-Content-Sha256", valid_611390 + var valid_611391 = header.getOrDefault("X-Amz-Date") + valid_611391 = validateParameter(valid_611391, JString, required = false, + default = nil) + if valid_611391 != nil: + section.add "X-Amz-Date", valid_611391 + var valid_611392 = header.getOrDefault("X-Amz-Credential") + valid_611392 = validateParameter(valid_611392, JString, required = false, + default = nil) + if valid_611392 != nil: + section.add "X-Amz-Credential", valid_611392 + var valid_611393 = header.getOrDefault("X-Amz-Security-Token") + valid_611393 = validateParameter(valid_611393, JString, required = false, + default = nil) + if valid_611393 != nil: + section.add "X-Amz-Security-Token", valid_611393 + var valid_611394 = header.getOrDefault("X-Amz-Algorithm") + valid_611394 = validateParameter(valid_611394, JString, required = false, + default = nil) + if valid_611394 != nil: + section.add "X-Amz-Algorithm", valid_611394 + var valid_611395 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611395 = validateParameter(valid_611395, JString, required = false, + default = nil) + if valid_611395 != nil: + section.add "X-Amz-SignedHeaders", valid_611395 result.add "header", section section = newJObject() result.add "formData", section @@ -1128,51 +1215,49 @@ proc validate_DescribeEmergencyContactSettings_613371(path: JsonNode; if body != nil: result.add "body", body -proc call*(call_613382: Call_DescribeEmergencyContactSettings_613370; +proc call*(call_611397: Call_DescribeEmergencyContactSettings_611385; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Lists the email addresses that the DRT can use to contact you during a suspected attack. ## - let valid = call_613382.validator(path, query, header, formData, body) - let scheme = call_613382.pickScheme + let valid = call_611397.validator(path, query, header, formData, body) + let scheme = call_611397.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613382.url(scheme.get, call_613382.host, call_613382.base, - call_613382.route, valid.getOrDefault("path"), + let url = call_611397.url(scheme.get, call_611397.host, call_611397.base, + call_611397.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613382, url, valid) + result = atozHook(call_611397, url, valid) -proc call*(call_613383: Call_DescribeEmergencyContactSettings_613370; +proc call*(call_611398: Call_DescribeEmergencyContactSettings_611385; body: JsonNode): Recallable = ## describeEmergencyContactSettings ## Lists the email addresses that the DRT can use to contact you during a suspected attack. ## body: JObject (required) - var body_613384 = newJObject() + var body_611399 = newJObject() if body != nil: - body_613384 = body - result = call_613383.call(nil, nil, nil, nil, body_613384) + body_611399 = body + result = call_611398.call(nil, nil, nil, nil, body_611399) -var describeEmergencyContactSettings* = Call_DescribeEmergencyContactSettings_613370( +var describeEmergencyContactSettings* = Call_DescribeEmergencyContactSettings_611385( name: "describeEmergencyContactSettings", meth: HttpMethod.HttpPost, host: "shield.amazonaws.com", route: "/#X-Amz-Target=AWSShield_20160616.DescribeEmergencyContactSettings", - validator: validate_DescribeEmergencyContactSettings_613371, base: "/", - url: url_DescribeEmergencyContactSettings_613372, + validator: validate_DescribeEmergencyContactSettings_611386, base: "/", + url: url_DescribeEmergencyContactSettings_611387, schemes: {Scheme.Https, Scheme.Http}) type - Call_DescribeProtection_613385 = ref object of OpenApiRestCall_612658 -proc url_DescribeProtection_613387(protocol: Scheme; host: string; base: string; + Call_DescribeProtection_611400 = ref object of OpenApiRestCall_610658 +proc url_DescribeProtection_611402(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_DescribeProtection_613386(path: JsonNode; query: JsonNode; +proc validate_DescribeProtection_611401(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Lists the details of a Protection object. @@ -1193,46 +1278,46 @@ proc validate_DescribeProtection_613386(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613388 = header.getOrDefault("X-Amz-Target") - valid_613388 = validateParameter(valid_613388, JString, required = true, default = newJString( + var valid_611403 = header.getOrDefault("X-Amz-Target") + valid_611403 = validateParameter(valid_611403, JString, required = true, default = newJString( "AWSShield_20160616.DescribeProtection")) - if valid_613388 != nil: - section.add "X-Amz-Target", valid_613388 - var valid_613389 = header.getOrDefault("X-Amz-Signature") - valid_613389 = validateParameter(valid_613389, JString, required = false, - default = nil) - if valid_613389 != nil: - section.add "X-Amz-Signature", valid_613389 - var valid_613390 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613390 = validateParameter(valid_613390, JString, required = false, - default = nil) - if valid_613390 != nil: - section.add "X-Amz-Content-Sha256", valid_613390 - var valid_613391 = header.getOrDefault("X-Amz-Date") - valid_613391 = validateParameter(valid_613391, JString, required = false, - default = nil) - if valid_613391 != nil: - section.add "X-Amz-Date", valid_613391 - var valid_613392 = header.getOrDefault("X-Amz-Credential") - valid_613392 = validateParameter(valid_613392, JString, required = false, - default = nil) - if valid_613392 != nil: - section.add "X-Amz-Credential", valid_613392 - var valid_613393 = header.getOrDefault("X-Amz-Security-Token") - valid_613393 = validateParameter(valid_613393, JString, required = false, - default = nil) - if valid_613393 != nil: - section.add "X-Amz-Security-Token", valid_613393 - var valid_613394 = header.getOrDefault("X-Amz-Algorithm") - valid_613394 = validateParameter(valid_613394, JString, required = false, - default = nil) - if valid_613394 != nil: - section.add "X-Amz-Algorithm", valid_613394 - var valid_613395 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613395 = validateParameter(valid_613395, JString, required = false, - default = nil) - if valid_613395 != nil: - section.add "X-Amz-SignedHeaders", valid_613395 + if valid_611403 != nil: + section.add "X-Amz-Target", valid_611403 + var valid_611404 = header.getOrDefault("X-Amz-Signature") + valid_611404 = validateParameter(valid_611404, JString, required = false, + default = nil) + if valid_611404 != nil: + section.add "X-Amz-Signature", valid_611404 + var valid_611405 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611405 = validateParameter(valid_611405, JString, required = false, + default = nil) + if valid_611405 != nil: + section.add "X-Amz-Content-Sha256", valid_611405 + var valid_611406 = header.getOrDefault("X-Amz-Date") + valid_611406 = validateParameter(valid_611406, JString, required = false, + default = nil) + if valid_611406 != nil: + section.add "X-Amz-Date", valid_611406 + var valid_611407 = header.getOrDefault("X-Amz-Credential") + valid_611407 = validateParameter(valid_611407, JString, required = false, + default = nil) + if valid_611407 != nil: + section.add "X-Amz-Credential", valid_611407 + var valid_611408 = header.getOrDefault("X-Amz-Security-Token") + valid_611408 = validateParameter(valid_611408, JString, required = false, + default = nil) + if valid_611408 != nil: + section.add "X-Amz-Security-Token", valid_611408 + var valid_611409 = header.getOrDefault("X-Amz-Algorithm") + valid_611409 = validateParameter(valid_611409, JString, required = false, + default = nil) + if valid_611409 != nil: + section.add "X-Amz-Algorithm", valid_611409 + var valid_611410 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611410 = validateParameter(valid_611410, JString, required = false, + default = nil) + if valid_611410 != nil: + section.add "X-Amz-SignedHeaders", valid_611410 result.add "header", section section = newJObject() result.add "formData", section @@ -1243,49 +1328,47 @@ proc validate_DescribeProtection_613386(path: JsonNode; query: JsonNode; if body != nil: result.add "body", body -proc call*(call_613397: Call_DescribeProtection_613385; path: JsonNode; +proc call*(call_611412: Call_DescribeProtection_611400; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Lists the details of a Protection object. ## - let valid = call_613397.validator(path, query, header, formData, body) - let scheme = call_613397.pickScheme + let valid = call_611412.validator(path, query, header, formData, body) + let scheme = call_611412.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613397.url(scheme.get, call_613397.host, call_613397.base, - call_613397.route, valid.getOrDefault("path"), + let url = call_611412.url(scheme.get, call_611412.host, call_611412.base, + call_611412.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613397, url, valid) + result = atozHook(call_611412, url, valid) -proc call*(call_613398: Call_DescribeProtection_613385; body: JsonNode): Recallable = +proc call*(call_611413: Call_DescribeProtection_611400; body: JsonNode): Recallable = ## describeProtection ## Lists the details of a Protection object. ## body: JObject (required) - var body_613399 = newJObject() + var body_611414 = newJObject() if body != nil: - body_613399 = body - result = call_613398.call(nil, nil, nil, nil, body_613399) + body_611414 = body + result = call_611413.call(nil, nil, nil, nil, body_611414) -var describeProtection* = Call_DescribeProtection_613385( +var describeProtection* = Call_DescribeProtection_611400( name: "describeProtection", meth: HttpMethod.HttpPost, host: "shield.amazonaws.com", route: "/#X-Amz-Target=AWSShield_20160616.DescribeProtection", - validator: validate_DescribeProtection_613386, base: "/", - url: url_DescribeProtection_613387, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_DescribeProtection_611401, base: "/", + url: url_DescribeProtection_611402, schemes: {Scheme.Https, Scheme.Http}) type - Call_DescribeSubscription_613400 = ref object of OpenApiRestCall_612658 -proc url_DescribeSubscription_613402(protocol: Scheme; host: string; base: string; + Call_DescribeSubscription_611415 = ref object of OpenApiRestCall_610658 +proc url_DescribeSubscription_611417(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_DescribeSubscription_613401(path: JsonNode; query: JsonNode; +proc validate_DescribeSubscription_611416(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Provides details about the AWS Shield Advanced subscription for an account. ## @@ -1305,46 +1388,46 @@ proc validate_DescribeSubscription_613401(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613403 = header.getOrDefault("X-Amz-Target") - valid_613403 = validateParameter(valid_613403, JString, required = true, default = newJString( + var valid_611418 = header.getOrDefault("X-Amz-Target") + valid_611418 = validateParameter(valid_611418, JString, required = true, default = newJString( "AWSShield_20160616.DescribeSubscription")) - if valid_613403 != nil: - section.add "X-Amz-Target", valid_613403 - var valid_613404 = header.getOrDefault("X-Amz-Signature") - valid_613404 = validateParameter(valid_613404, JString, required = false, - default = nil) - if valid_613404 != nil: - section.add "X-Amz-Signature", valid_613404 - var valid_613405 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613405 = validateParameter(valid_613405, JString, required = false, - default = nil) - if valid_613405 != nil: - section.add "X-Amz-Content-Sha256", valid_613405 - var valid_613406 = header.getOrDefault("X-Amz-Date") - valid_613406 = validateParameter(valid_613406, JString, required = false, - default = nil) - if valid_613406 != nil: - section.add "X-Amz-Date", valid_613406 - var valid_613407 = header.getOrDefault("X-Amz-Credential") - valid_613407 = validateParameter(valid_613407, JString, required = false, - default = nil) - if valid_613407 != nil: - section.add "X-Amz-Credential", valid_613407 - var valid_613408 = header.getOrDefault("X-Amz-Security-Token") - valid_613408 = validateParameter(valid_613408, JString, required = false, - default = nil) - if valid_613408 != nil: - section.add "X-Amz-Security-Token", valid_613408 - var valid_613409 = header.getOrDefault("X-Amz-Algorithm") - valid_613409 = validateParameter(valid_613409, JString, required = false, - default = nil) - if valid_613409 != nil: - section.add "X-Amz-Algorithm", valid_613409 - var valid_613410 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613410 = validateParameter(valid_613410, JString, required = false, - default = nil) - if valid_613410 != nil: - section.add "X-Amz-SignedHeaders", valid_613410 + if valid_611418 != nil: + section.add "X-Amz-Target", valid_611418 + var valid_611419 = header.getOrDefault("X-Amz-Signature") + valid_611419 = validateParameter(valid_611419, JString, required = false, + default = nil) + if valid_611419 != nil: + section.add "X-Amz-Signature", valid_611419 + var valid_611420 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611420 = validateParameter(valid_611420, JString, required = false, + default = nil) + if valid_611420 != nil: + section.add "X-Amz-Content-Sha256", valid_611420 + var valid_611421 = header.getOrDefault("X-Amz-Date") + valid_611421 = validateParameter(valid_611421, JString, required = false, + default = nil) + if valid_611421 != nil: + section.add "X-Amz-Date", valid_611421 + var valid_611422 = header.getOrDefault("X-Amz-Credential") + valid_611422 = validateParameter(valid_611422, JString, required = false, + default = nil) + if valid_611422 != nil: + section.add "X-Amz-Credential", valid_611422 + var valid_611423 = header.getOrDefault("X-Amz-Security-Token") + valid_611423 = validateParameter(valid_611423, JString, required = false, + default = nil) + if valid_611423 != nil: + section.add "X-Amz-Security-Token", valid_611423 + var valid_611424 = header.getOrDefault("X-Amz-Algorithm") + valid_611424 = validateParameter(valid_611424, JString, required = false, + default = nil) + if valid_611424 != nil: + section.add "X-Amz-Algorithm", valid_611424 + var valid_611425 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611425 = validateParameter(valid_611425, JString, required = false, + default = nil) + if valid_611425 != nil: + section.add "X-Amz-SignedHeaders", valid_611425 result.add "header", section section = newJObject() result.add "formData", section @@ -1355,50 +1438,48 @@ proc validate_DescribeSubscription_613401(path: JsonNode; query: JsonNode; if body != nil: result.add "body", body -proc call*(call_613412: Call_DescribeSubscription_613400; path: JsonNode; +proc call*(call_611427: Call_DescribeSubscription_611415; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Provides details about the AWS Shield Advanced subscription for an account. ## - let valid = call_613412.validator(path, query, header, formData, body) - let scheme = call_613412.pickScheme + let valid = call_611427.validator(path, query, header, formData, body) + let scheme = call_611427.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613412.url(scheme.get, call_613412.host, call_613412.base, - call_613412.route, valid.getOrDefault("path"), + let url = call_611427.url(scheme.get, call_611427.host, call_611427.base, + call_611427.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613412, url, valid) + result = atozHook(call_611427, url, valid) -proc call*(call_613413: Call_DescribeSubscription_613400; body: JsonNode): Recallable = +proc call*(call_611428: Call_DescribeSubscription_611415; body: JsonNode): Recallable = ## describeSubscription ## Provides details about the AWS Shield Advanced subscription for an account. ## body: JObject (required) - var body_613414 = newJObject() + var body_611429 = newJObject() if body != nil: - body_613414 = body - result = call_613413.call(nil, nil, nil, nil, body_613414) + body_611429 = body + result = call_611428.call(nil, nil, nil, nil, body_611429) -var describeSubscription* = Call_DescribeSubscription_613400( +var describeSubscription* = Call_DescribeSubscription_611415( name: "describeSubscription", meth: HttpMethod.HttpPost, host: "shield.amazonaws.com", route: "/#X-Amz-Target=AWSShield_20160616.DescribeSubscription", - validator: validate_DescribeSubscription_613401, base: "/", - url: url_DescribeSubscription_613402, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_DescribeSubscription_611416, base: "/", + url: url_DescribeSubscription_611417, schemes: {Scheme.Https, Scheme.Http}) type - Call_DisassociateDRTLogBucket_613415 = ref object of OpenApiRestCall_612658 -proc url_DisassociateDRTLogBucket_613417(protocol: Scheme; host: string; + Call_DisassociateDRTLogBucket_611430 = ref object of OpenApiRestCall_610658 +proc url_DisassociateDRTLogBucket_611432(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_DisassociateDRTLogBucket_613416(path: JsonNode; query: JsonNode; +proc validate_DisassociateDRTLogBucket_611431(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Removes the DDoS Response team's (DRT) access to the specified Amazon S3 bucket containing your AWS WAF logs.

    To make a DisassociateDRTLogBucket request, you must be subscribed to the Business Support plan or the Enterprise Support plan. However, if you are not subscribed to one of these support plans, but had been previously and had granted the DRT access to your account, you can submit a DisassociateDRTLogBucket request to remove this access.

    ## @@ -1418,46 +1499,46 @@ proc validate_DisassociateDRTLogBucket_613416(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613418 = header.getOrDefault("X-Amz-Target") - valid_613418 = validateParameter(valid_613418, JString, required = true, default = newJString( + var valid_611433 = header.getOrDefault("X-Amz-Target") + valid_611433 = validateParameter(valid_611433, JString, required = true, default = newJString( "AWSShield_20160616.DisassociateDRTLogBucket")) - if valid_613418 != nil: - section.add "X-Amz-Target", valid_613418 - var valid_613419 = header.getOrDefault("X-Amz-Signature") - valid_613419 = validateParameter(valid_613419, JString, required = false, - default = nil) - if valid_613419 != nil: - section.add "X-Amz-Signature", valid_613419 - var valid_613420 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613420 = validateParameter(valid_613420, JString, required = false, - default = nil) - if valid_613420 != nil: - section.add "X-Amz-Content-Sha256", valid_613420 - var valid_613421 = header.getOrDefault("X-Amz-Date") - valid_613421 = validateParameter(valid_613421, JString, required = false, - default = nil) - if valid_613421 != nil: - section.add "X-Amz-Date", valid_613421 - var valid_613422 = header.getOrDefault("X-Amz-Credential") - valid_613422 = validateParameter(valid_613422, JString, required = false, - default = nil) - if valid_613422 != nil: - section.add "X-Amz-Credential", valid_613422 - var valid_613423 = header.getOrDefault("X-Amz-Security-Token") - valid_613423 = validateParameter(valid_613423, JString, required = false, - default = nil) - if valid_613423 != nil: - section.add "X-Amz-Security-Token", valid_613423 - var valid_613424 = header.getOrDefault("X-Amz-Algorithm") - valid_613424 = validateParameter(valid_613424, JString, required = false, - default = nil) - if valid_613424 != nil: - section.add "X-Amz-Algorithm", valid_613424 - var valid_613425 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613425 = validateParameter(valid_613425, JString, required = false, - default = nil) - if valid_613425 != nil: - section.add "X-Amz-SignedHeaders", valid_613425 + if valid_611433 != nil: + section.add "X-Amz-Target", valid_611433 + var valid_611434 = header.getOrDefault("X-Amz-Signature") + valid_611434 = validateParameter(valid_611434, JString, required = false, + default = nil) + if valid_611434 != nil: + section.add "X-Amz-Signature", valid_611434 + var valid_611435 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611435 = validateParameter(valid_611435, JString, required = false, + default = nil) + if valid_611435 != nil: + section.add "X-Amz-Content-Sha256", valid_611435 + var valid_611436 = header.getOrDefault("X-Amz-Date") + valid_611436 = validateParameter(valid_611436, JString, required = false, + default = nil) + if valid_611436 != nil: + section.add "X-Amz-Date", valid_611436 + var valid_611437 = header.getOrDefault("X-Amz-Credential") + valid_611437 = validateParameter(valid_611437, JString, required = false, + default = nil) + if valid_611437 != nil: + section.add "X-Amz-Credential", valid_611437 + var valid_611438 = header.getOrDefault("X-Amz-Security-Token") + valid_611438 = validateParameter(valid_611438, JString, required = false, + default = nil) + if valid_611438 != nil: + section.add "X-Amz-Security-Token", valid_611438 + var valid_611439 = header.getOrDefault("X-Amz-Algorithm") + valid_611439 = validateParameter(valid_611439, JString, required = false, + default = nil) + if valid_611439 != nil: + section.add "X-Amz-Algorithm", valid_611439 + var valid_611440 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611440 = validateParameter(valid_611440, JString, required = false, + default = nil) + if valid_611440 != nil: + section.add "X-Amz-SignedHeaders", valid_611440 result.add "header", section section = newJObject() result.add "formData", section @@ -1468,49 +1549,47 @@ proc validate_DisassociateDRTLogBucket_613416(path: JsonNode; query: JsonNode; if body != nil: result.add "body", body -proc call*(call_613427: Call_DisassociateDRTLogBucket_613415; path: JsonNode; +proc call*(call_611442: Call_DisassociateDRTLogBucket_611430; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Removes the DDoS Response team's (DRT) access to the specified Amazon S3 bucket containing your AWS WAF logs.

    To make a DisassociateDRTLogBucket request, you must be subscribed to the Business Support plan or the Enterprise Support plan. However, if you are not subscribed to one of these support plans, but had been previously and had granted the DRT access to your account, you can submit a DisassociateDRTLogBucket request to remove this access.

    ## - let valid = call_613427.validator(path, query, header, formData, body) - let scheme = call_613427.pickScheme + let valid = call_611442.validator(path, query, header, formData, body) + let scheme = call_611442.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613427.url(scheme.get, call_613427.host, call_613427.base, - call_613427.route, valid.getOrDefault("path"), + let url = call_611442.url(scheme.get, call_611442.host, call_611442.base, + call_611442.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613427, url, valid) + result = atozHook(call_611442, url, valid) -proc call*(call_613428: Call_DisassociateDRTLogBucket_613415; body: JsonNode): Recallable = +proc call*(call_611443: Call_DisassociateDRTLogBucket_611430; body: JsonNode): Recallable = ## disassociateDRTLogBucket ##

    Removes the DDoS Response team's (DRT) access to the specified Amazon S3 bucket containing your AWS WAF logs.

    To make a DisassociateDRTLogBucket request, you must be subscribed to the Business Support plan or the Enterprise Support plan. However, if you are not subscribed to one of these support plans, but had been previously and had granted the DRT access to your account, you can submit a DisassociateDRTLogBucket request to remove this access.

    ## body: JObject (required) - var body_613429 = newJObject() + var body_611444 = newJObject() if body != nil: - body_613429 = body - result = call_613428.call(nil, nil, nil, nil, body_613429) + body_611444 = body + result = call_611443.call(nil, nil, nil, nil, body_611444) -var disassociateDRTLogBucket* = Call_DisassociateDRTLogBucket_613415( +var disassociateDRTLogBucket* = Call_DisassociateDRTLogBucket_611430( name: "disassociateDRTLogBucket", meth: HttpMethod.HttpPost, host: "shield.amazonaws.com", route: "/#X-Amz-Target=AWSShield_20160616.DisassociateDRTLogBucket", - validator: validate_DisassociateDRTLogBucket_613416, base: "/", - url: url_DisassociateDRTLogBucket_613417, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_DisassociateDRTLogBucket_611431, base: "/", + url: url_DisassociateDRTLogBucket_611432, schemes: {Scheme.Https, Scheme.Http}) type - Call_DisassociateDRTRole_613430 = ref object of OpenApiRestCall_612658 -proc url_DisassociateDRTRole_613432(protocol: Scheme; host: string; base: string; + Call_DisassociateDRTRole_611445 = ref object of OpenApiRestCall_610658 +proc url_DisassociateDRTRole_611447(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_DisassociateDRTRole_613431(path: JsonNode; query: JsonNode; +proc validate_DisassociateDRTRole_611446(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ##

    Removes the DDoS Response team's (DRT) access to your AWS account.

    To make a DisassociateDRTRole request, you must be subscribed to the Business Support plan or the Enterprise Support plan. However, if you are not subscribed to one of these support plans, but had been previously and had granted the DRT access to your account, you can submit a DisassociateDRTRole request to remove this access.

    @@ -1531,46 +1610,46 @@ proc validate_DisassociateDRTRole_613431(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613433 = header.getOrDefault("X-Amz-Target") - valid_613433 = validateParameter(valid_613433, JString, required = true, default = newJString( + var valid_611448 = header.getOrDefault("X-Amz-Target") + valid_611448 = validateParameter(valid_611448, JString, required = true, default = newJString( "AWSShield_20160616.DisassociateDRTRole")) - if valid_613433 != nil: - section.add "X-Amz-Target", valid_613433 - var valid_613434 = header.getOrDefault("X-Amz-Signature") - valid_613434 = validateParameter(valid_613434, JString, required = false, - default = nil) - if valid_613434 != nil: - section.add "X-Amz-Signature", valid_613434 - var valid_613435 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613435 = validateParameter(valid_613435, JString, required = false, - default = nil) - if valid_613435 != nil: - section.add "X-Amz-Content-Sha256", valid_613435 - var valid_613436 = header.getOrDefault("X-Amz-Date") - valid_613436 = validateParameter(valid_613436, JString, required = false, - default = nil) - if valid_613436 != nil: - section.add "X-Amz-Date", valid_613436 - var valid_613437 = header.getOrDefault("X-Amz-Credential") - valid_613437 = validateParameter(valid_613437, JString, required = false, - default = nil) - if valid_613437 != nil: - section.add "X-Amz-Credential", valid_613437 - var valid_613438 = header.getOrDefault("X-Amz-Security-Token") - valid_613438 = validateParameter(valid_613438, JString, required = false, - default = nil) - if valid_613438 != nil: - section.add "X-Amz-Security-Token", valid_613438 - var valid_613439 = header.getOrDefault("X-Amz-Algorithm") - valid_613439 = validateParameter(valid_613439, JString, required = false, - default = nil) - if valid_613439 != nil: - section.add "X-Amz-Algorithm", valid_613439 - var valid_613440 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613440 = validateParameter(valid_613440, JString, required = false, - default = nil) - if valid_613440 != nil: - section.add "X-Amz-SignedHeaders", valid_613440 + if valid_611448 != nil: + section.add "X-Amz-Target", valid_611448 + var valid_611449 = header.getOrDefault("X-Amz-Signature") + valid_611449 = validateParameter(valid_611449, JString, required = false, + default = nil) + if valid_611449 != nil: + section.add "X-Amz-Signature", valid_611449 + var valid_611450 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611450 = validateParameter(valid_611450, JString, required = false, + default = nil) + if valid_611450 != nil: + section.add "X-Amz-Content-Sha256", valid_611450 + var valid_611451 = header.getOrDefault("X-Amz-Date") + valid_611451 = validateParameter(valid_611451, JString, required = false, + default = nil) + if valid_611451 != nil: + section.add "X-Amz-Date", valid_611451 + var valid_611452 = header.getOrDefault("X-Amz-Credential") + valid_611452 = validateParameter(valid_611452, JString, required = false, + default = nil) + if valid_611452 != nil: + section.add "X-Amz-Credential", valid_611452 + var valid_611453 = header.getOrDefault("X-Amz-Security-Token") + valid_611453 = validateParameter(valid_611453, JString, required = false, + default = nil) + if valid_611453 != nil: + section.add "X-Amz-Security-Token", valid_611453 + var valid_611454 = header.getOrDefault("X-Amz-Algorithm") + valid_611454 = validateParameter(valid_611454, JString, required = false, + default = nil) + if valid_611454 != nil: + section.add "X-Amz-Algorithm", valid_611454 + var valid_611455 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611455 = validateParameter(valid_611455, JString, required = false, + default = nil) + if valid_611455 != nil: + section.add "X-Amz-SignedHeaders", valid_611455 result.add "header", section section = newJObject() result.add "formData", section @@ -1581,49 +1660,158 @@ proc validate_DisassociateDRTRole_613431(path: JsonNode; query: JsonNode; if body != nil: result.add "body", body -proc call*(call_613442: Call_DisassociateDRTRole_613430; path: JsonNode; +proc call*(call_611457: Call_DisassociateDRTRole_611445; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ##

    Removes the DDoS Response team's (DRT) access to your AWS account.

    To make a DisassociateDRTRole request, you must be subscribed to the Business Support plan or the Enterprise Support plan. However, if you are not subscribed to one of these support plans, but had been previously and had granted the DRT access to your account, you can submit a DisassociateDRTRole request to remove this access.

    ## - let valid = call_613442.validator(path, query, header, formData, body) - let scheme = call_613442.pickScheme + let valid = call_611457.validator(path, query, header, formData, body) + let scheme = call_611457.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613442.url(scheme.get, call_613442.host, call_613442.base, - call_613442.route, valid.getOrDefault("path"), + let url = call_611457.url(scheme.get, call_611457.host, call_611457.base, + call_611457.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613442, url, valid) + result = atozHook(call_611457, url, valid) -proc call*(call_613443: Call_DisassociateDRTRole_613430; body: JsonNode): Recallable = +proc call*(call_611458: Call_DisassociateDRTRole_611445; body: JsonNode): Recallable = ## disassociateDRTRole ##

    Removes the DDoS Response team's (DRT) access to your AWS account.

    To make a DisassociateDRTRole request, you must be subscribed to the Business Support plan or the Enterprise Support plan. However, if you are not subscribed to one of these support plans, but had been previously and had granted the DRT access to your account, you can submit a DisassociateDRTRole request to remove this access.

    ## body: JObject (required) - var body_613444 = newJObject() + var body_611459 = newJObject() if body != nil: - body_613444 = body - result = call_613443.call(nil, nil, nil, nil, body_613444) + body_611459 = body + result = call_611458.call(nil, nil, nil, nil, body_611459) -var disassociateDRTRole* = Call_DisassociateDRTRole_613430( +var disassociateDRTRole* = Call_DisassociateDRTRole_611445( name: "disassociateDRTRole", meth: HttpMethod.HttpPost, host: "shield.amazonaws.com", route: "/#X-Amz-Target=AWSShield_20160616.DisassociateDRTRole", - validator: validate_DisassociateDRTRole_613431, base: "/", - url: url_DisassociateDRTRole_613432, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_DisassociateDRTRole_611446, base: "/", + url: url_DisassociateDRTRole_611447, schemes: {Scheme.Https, Scheme.Http}) +type + Call_DisassociateHealthCheck_611460 = ref object of OpenApiRestCall_610658 +proc url_DisassociateHealthCheck_611462(protocol: Scheme; host: string; base: string; + route: string; path: JsonNode; + query: JsonNode): Uri = + result.scheme = $protocol + result.hostname = host + result.query = $queryString(query) + if base == "/" and route.startsWith "/": + result.path = route + else: + result.path = base & route + +proc validate_DisassociateHealthCheck_611461(path: JsonNode; query: JsonNode; + header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = + ##

    Removes health-based detection from the Shield Advanced protection for a resource. Shield Advanced health-based detection uses the health of your AWS resource to improve responsiveness and accuracy in attack detection and mitigation.

    You define the health check in Route 53 and then associate or disassociate it with your Shield Advanced protection. For more information, see Shield Advanced Health-Based Detection in the AWS WAF and AWS Shield Developer Guide.

    + ## + var section: JsonNode + result = newJObject() + section = newJObject() + result.add "path", section + section = newJObject() + result.add "query", section + ## parameters in `header` object: + ## X-Amz-Target: JString (required) + ## X-Amz-Signature: JString + ## X-Amz-Content-Sha256: JString + ## X-Amz-Date: JString + ## X-Amz-Credential: JString + ## X-Amz-Security-Token: JString + ## X-Amz-Algorithm: JString + ## X-Amz-SignedHeaders: JString + section = newJObject() + var valid_611463 = header.getOrDefault("X-Amz-Target") + valid_611463 = validateParameter(valid_611463, JString, required = true, default = newJString( + "AWSShield_20160616.DisassociateHealthCheck")) + if valid_611463 != nil: + section.add "X-Amz-Target", valid_611463 + var valid_611464 = header.getOrDefault("X-Amz-Signature") + valid_611464 = validateParameter(valid_611464, JString, required = false, + default = nil) + if valid_611464 != nil: + section.add "X-Amz-Signature", valid_611464 + var valid_611465 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611465 = validateParameter(valid_611465, JString, required = false, + default = nil) + if valid_611465 != nil: + section.add "X-Amz-Content-Sha256", valid_611465 + var valid_611466 = header.getOrDefault("X-Amz-Date") + valid_611466 = validateParameter(valid_611466, JString, required = false, + default = nil) + if valid_611466 != nil: + section.add "X-Amz-Date", valid_611466 + var valid_611467 = header.getOrDefault("X-Amz-Credential") + valid_611467 = validateParameter(valid_611467, JString, required = false, + default = nil) + if valid_611467 != nil: + section.add "X-Amz-Credential", valid_611467 + var valid_611468 = header.getOrDefault("X-Amz-Security-Token") + valid_611468 = validateParameter(valid_611468, JString, required = false, + default = nil) + if valid_611468 != nil: + section.add "X-Amz-Security-Token", valid_611468 + var valid_611469 = header.getOrDefault("X-Amz-Algorithm") + valid_611469 = validateParameter(valid_611469, JString, required = false, + default = nil) + if valid_611469 != nil: + section.add "X-Amz-Algorithm", valid_611469 + var valid_611470 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611470 = validateParameter(valid_611470, JString, required = false, + default = nil) + if valid_611470 != nil: + section.add "X-Amz-SignedHeaders", valid_611470 + result.add "header", section + section = newJObject() + result.add "formData", section + ## parameters in `body` object: + ## body: JObject (required) + assert body != nil, "body argument is necessary" + section = validateParameter(body, JObject, required = true, default = nil) + if body != nil: + result.add "body", body + +proc call*(call_611472: Call_DisassociateHealthCheck_611460; path: JsonNode; + query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = + ##

    Removes health-based detection from the Shield Advanced protection for a resource. Shield Advanced health-based detection uses the health of your AWS resource to improve responsiveness and accuracy in attack detection and mitigation.

    You define the health check in Route 53 and then associate or disassociate it with your Shield Advanced protection. For more information, see Shield Advanced Health-Based Detection in the AWS WAF and AWS Shield Developer Guide.

    + ## + let valid = call_611472.validator(path, query, header, formData, body) + let scheme = call_611472.pickScheme + if scheme.isNone: + raise newException(IOError, "unable to find a supported scheme") + let url = call_611472.url(scheme.get, call_611472.host, call_611472.base, + call_611472.route, valid.getOrDefault("path"), + valid.getOrDefault("query")) + result = atozHook(call_611472, url, valid) + +proc call*(call_611473: Call_DisassociateHealthCheck_611460; body: JsonNode): Recallable = + ## disassociateHealthCheck + ##

    Removes health-based detection from the Shield Advanced protection for a resource. Shield Advanced health-based detection uses the health of your AWS resource to improve responsiveness and accuracy in attack detection and mitigation.

    You define the health check in Route 53 and then associate or disassociate it with your Shield Advanced protection. For more information, see Shield Advanced Health-Based Detection in the AWS WAF and AWS Shield Developer Guide.

    + ## body: JObject (required) + var body_611474 = newJObject() + if body != nil: + body_611474 = body + result = call_611473.call(nil, nil, nil, nil, body_611474) + +var disassociateHealthCheck* = Call_DisassociateHealthCheck_611460( + name: "disassociateHealthCheck", meth: HttpMethod.HttpPost, + host: "shield.amazonaws.com", + route: "/#X-Amz-Target=AWSShield_20160616.DisassociateHealthCheck", + validator: validate_DisassociateHealthCheck_611461, base: "/", + url: url_DisassociateHealthCheck_611462, schemes: {Scheme.Https, Scheme.Http}) type - Call_GetSubscriptionState_613445 = ref object of OpenApiRestCall_612658 -proc url_GetSubscriptionState_613447(protocol: Scheme; host: string; base: string; + Call_GetSubscriptionState_611475 = ref object of OpenApiRestCall_610658 +proc url_GetSubscriptionState_611477(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_GetSubscriptionState_613446(path: JsonNode; query: JsonNode; +proc validate_GetSubscriptionState_611476(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Returns the SubscriptionState, either Active or Inactive. ## @@ -1643,46 +1831,46 @@ proc validate_GetSubscriptionState_613446(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613448 = header.getOrDefault("X-Amz-Target") - valid_613448 = validateParameter(valid_613448, JString, required = true, default = newJString( + var valid_611478 = header.getOrDefault("X-Amz-Target") + valid_611478 = validateParameter(valid_611478, JString, required = true, default = newJString( "AWSShield_20160616.GetSubscriptionState")) - if valid_613448 != nil: - section.add "X-Amz-Target", valid_613448 - var valid_613449 = header.getOrDefault("X-Amz-Signature") - valid_613449 = validateParameter(valid_613449, JString, required = false, - default = nil) - if valid_613449 != nil: - section.add "X-Amz-Signature", valid_613449 - var valid_613450 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613450 = validateParameter(valid_613450, JString, required = false, - default = nil) - if valid_613450 != nil: - section.add "X-Amz-Content-Sha256", valid_613450 - var valid_613451 = header.getOrDefault("X-Amz-Date") - valid_613451 = validateParameter(valid_613451, JString, required = false, - default = nil) - if valid_613451 != nil: - section.add "X-Amz-Date", valid_613451 - var valid_613452 = header.getOrDefault("X-Amz-Credential") - valid_613452 = validateParameter(valid_613452, JString, required = false, - default = nil) - if valid_613452 != nil: - section.add "X-Amz-Credential", valid_613452 - var valid_613453 = header.getOrDefault("X-Amz-Security-Token") - valid_613453 = validateParameter(valid_613453, JString, required = false, - default = nil) - if valid_613453 != nil: - section.add "X-Amz-Security-Token", valid_613453 - var valid_613454 = header.getOrDefault("X-Amz-Algorithm") - valid_613454 = validateParameter(valid_613454, JString, required = false, - default = nil) - if valid_613454 != nil: - section.add "X-Amz-Algorithm", valid_613454 - var valid_613455 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613455 = validateParameter(valid_613455, JString, required = false, - default = nil) - if valid_613455 != nil: - section.add "X-Amz-SignedHeaders", valid_613455 + if valid_611478 != nil: + section.add "X-Amz-Target", valid_611478 + var valid_611479 = header.getOrDefault("X-Amz-Signature") + valid_611479 = validateParameter(valid_611479, JString, required = false, + default = nil) + if valid_611479 != nil: + section.add "X-Amz-Signature", valid_611479 + var valid_611480 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611480 = validateParameter(valid_611480, JString, required = false, + default = nil) + if valid_611480 != nil: + section.add "X-Amz-Content-Sha256", valid_611480 + var valid_611481 = header.getOrDefault("X-Amz-Date") + valid_611481 = validateParameter(valid_611481, JString, required = false, + default = nil) + if valid_611481 != nil: + section.add "X-Amz-Date", valid_611481 + var valid_611482 = header.getOrDefault("X-Amz-Credential") + valid_611482 = validateParameter(valid_611482, JString, required = false, + default = nil) + if valid_611482 != nil: + section.add "X-Amz-Credential", valid_611482 + var valid_611483 = header.getOrDefault("X-Amz-Security-Token") + valid_611483 = validateParameter(valid_611483, JString, required = false, + default = nil) + if valid_611483 != nil: + section.add "X-Amz-Security-Token", valid_611483 + var valid_611484 = header.getOrDefault("X-Amz-Algorithm") + valid_611484 = validateParameter(valid_611484, JString, required = false, + default = nil) + if valid_611484 != nil: + section.add "X-Amz-Algorithm", valid_611484 + var valid_611485 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611485 = validateParameter(valid_611485, JString, required = false, + default = nil) + if valid_611485 != nil: + section.add "X-Amz-SignedHeaders", valid_611485 result.add "header", section section = newJObject() result.add "formData", section @@ -1693,49 +1881,47 @@ proc validate_GetSubscriptionState_613446(path: JsonNode; query: JsonNode; if body != nil: result.add "body", body -proc call*(call_613457: Call_GetSubscriptionState_613445; path: JsonNode; +proc call*(call_611487: Call_GetSubscriptionState_611475; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Returns the SubscriptionState, either Active or Inactive. ## - let valid = call_613457.validator(path, query, header, formData, body) - let scheme = call_613457.pickScheme + let valid = call_611487.validator(path, query, header, formData, body) + let scheme = call_611487.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613457.url(scheme.get, call_613457.host, call_613457.base, - call_613457.route, valid.getOrDefault("path"), + let url = call_611487.url(scheme.get, call_611487.host, call_611487.base, + call_611487.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613457, url, valid) + result = atozHook(call_611487, url, valid) -proc call*(call_613458: Call_GetSubscriptionState_613445; body: JsonNode): Recallable = +proc call*(call_611488: Call_GetSubscriptionState_611475; body: JsonNode): Recallable = ## getSubscriptionState ## Returns the SubscriptionState, either Active or Inactive. ## body: JObject (required) - var body_613459 = newJObject() + var body_611489 = newJObject() if body != nil: - body_613459 = body - result = call_613458.call(nil, nil, nil, nil, body_613459) + body_611489 = body + result = call_611488.call(nil, nil, nil, nil, body_611489) -var getSubscriptionState* = Call_GetSubscriptionState_613445( +var getSubscriptionState* = Call_GetSubscriptionState_611475( name: "getSubscriptionState", meth: HttpMethod.HttpPost, host: "shield.amazonaws.com", route: "/#X-Amz-Target=AWSShield_20160616.GetSubscriptionState", - validator: validate_GetSubscriptionState_613446, base: "/", - url: url_GetSubscriptionState_613447, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_GetSubscriptionState_611476, base: "/", + url: url_GetSubscriptionState_611477, schemes: {Scheme.Https, Scheme.Http}) type - Call_ListAttacks_613460 = ref object of OpenApiRestCall_612658 -proc url_ListAttacks_613462(protocol: Scheme; host: string; base: string; + Call_ListAttacks_611490 = ref object of OpenApiRestCall_610658 +proc url_ListAttacks_611492(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_ListAttacks_613461(path: JsonNode; query: JsonNode; header: JsonNode; +proc validate_ListAttacks_611491(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Returns all ongoing DDoS attacks or all DDoS attacks during a specified time period. ## @@ -1755,46 +1941,46 @@ proc validate_ListAttacks_613461(path: JsonNode; query: JsonNode; header: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613463 = header.getOrDefault("X-Amz-Target") - valid_613463 = validateParameter(valid_613463, JString, required = true, default = newJString( + var valid_611493 = header.getOrDefault("X-Amz-Target") + valid_611493 = validateParameter(valid_611493, JString, required = true, default = newJString( "AWSShield_20160616.ListAttacks")) - if valid_613463 != nil: - section.add "X-Amz-Target", valid_613463 - var valid_613464 = header.getOrDefault("X-Amz-Signature") - valid_613464 = validateParameter(valid_613464, JString, required = false, - default = nil) - if valid_613464 != nil: - section.add "X-Amz-Signature", valid_613464 - var valid_613465 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613465 = validateParameter(valid_613465, JString, required = false, - default = nil) - if valid_613465 != nil: - section.add "X-Amz-Content-Sha256", valid_613465 - var valid_613466 = header.getOrDefault("X-Amz-Date") - valid_613466 = validateParameter(valid_613466, JString, required = false, - default = nil) - if valid_613466 != nil: - section.add "X-Amz-Date", valid_613466 - var valid_613467 = header.getOrDefault("X-Amz-Credential") - valid_613467 = validateParameter(valid_613467, JString, required = false, - default = nil) - if valid_613467 != nil: - section.add "X-Amz-Credential", valid_613467 - var valid_613468 = header.getOrDefault("X-Amz-Security-Token") - valid_613468 = validateParameter(valid_613468, JString, required = false, - default = nil) - if valid_613468 != nil: - section.add "X-Amz-Security-Token", valid_613468 - var valid_613469 = header.getOrDefault("X-Amz-Algorithm") - valid_613469 = validateParameter(valid_613469, JString, required = false, - default = nil) - if valid_613469 != nil: - section.add "X-Amz-Algorithm", valid_613469 - var valid_613470 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613470 = validateParameter(valid_613470, JString, required = false, - default = nil) - if valid_613470 != nil: - section.add "X-Amz-SignedHeaders", valid_613470 + if valid_611493 != nil: + section.add "X-Amz-Target", valid_611493 + var valid_611494 = header.getOrDefault("X-Amz-Signature") + valid_611494 = validateParameter(valid_611494, JString, required = false, + default = nil) + if valid_611494 != nil: + section.add "X-Amz-Signature", valid_611494 + var valid_611495 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611495 = validateParameter(valid_611495, JString, required = false, + default = nil) + if valid_611495 != nil: + section.add "X-Amz-Content-Sha256", valid_611495 + var valid_611496 = header.getOrDefault("X-Amz-Date") + valid_611496 = validateParameter(valid_611496, JString, required = false, + default = nil) + if valid_611496 != nil: + section.add "X-Amz-Date", valid_611496 + var valid_611497 = header.getOrDefault("X-Amz-Credential") + valid_611497 = validateParameter(valid_611497, JString, required = false, + default = nil) + if valid_611497 != nil: + section.add "X-Amz-Credential", valid_611497 + var valid_611498 = header.getOrDefault("X-Amz-Security-Token") + valid_611498 = validateParameter(valid_611498, JString, required = false, + default = nil) + if valid_611498 != nil: + section.add "X-Amz-Security-Token", valid_611498 + var valid_611499 = header.getOrDefault("X-Amz-Algorithm") + valid_611499 = validateParameter(valid_611499, JString, required = false, + default = nil) + if valid_611499 != nil: + section.add "X-Amz-Algorithm", valid_611499 + var valid_611500 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611500 = validateParameter(valid_611500, JString, required = false, + default = nil) + if valid_611500 != nil: + section.add "X-Amz-SignedHeaders", valid_611500 result.add "header", section section = newJObject() result.add "formData", section @@ -1805,49 +1991,47 @@ proc validate_ListAttacks_613461(path: JsonNode; query: JsonNode; header: JsonNo if body != nil: result.add "body", body -proc call*(call_613472: Call_ListAttacks_613460; path: JsonNode; query: JsonNode; +proc call*(call_611502: Call_ListAttacks_611490; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Returns all ongoing DDoS attacks or all DDoS attacks during a specified time period. ## - let valid = call_613472.validator(path, query, header, formData, body) - let scheme = call_613472.pickScheme + let valid = call_611502.validator(path, query, header, formData, body) + let scheme = call_611502.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613472.url(scheme.get, call_613472.host, call_613472.base, - call_613472.route, valid.getOrDefault("path"), + let url = call_611502.url(scheme.get, call_611502.host, call_611502.base, + call_611502.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613472, url, valid) + result = atozHook(call_611502, url, valid) -proc call*(call_613473: Call_ListAttacks_613460; body: JsonNode): Recallable = +proc call*(call_611503: Call_ListAttacks_611490; body: JsonNode): Recallable = ## listAttacks ## Returns all ongoing DDoS attacks or all DDoS attacks during a specified time period. ## body: JObject (required) - var body_613474 = newJObject() + var body_611504 = newJObject() if body != nil: - body_613474 = body - result = call_613473.call(nil, nil, nil, nil, body_613474) + body_611504 = body + result = call_611503.call(nil, nil, nil, nil, body_611504) -var listAttacks* = Call_ListAttacks_613460(name: "listAttacks", +var listAttacks* = Call_ListAttacks_611490(name: "listAttacks", meth: HttpMethod.HttpPost, host: "shield.amazonaws.com", route: "/#X-Amz-Target=AWSShield_20160616.ListAttacks", - validator: validate_ListAttacks_613461, - base: "/", url: url_ListAttacks_613462, + validator: validate_ListAttacks_611491, + base: "/", url: url_ListAttacks_611492, schemes: {Scheme.Https, Scheme.Http}) type - Call_ListProtections_613475 = ref object of OpenApiRestCall_612658 -proc url_ListProtections_613477(protocol: Scheme; host: string; base: string; + Call_ListProtections_611505 = ref object of OpenApiRestCall_610658 +proc url_ListProtections_611507(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_ListProtections_613476(path: JsonNode; query: JsonNode; +proc validate_ListProtections_611506(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Lists all Protection objects for the account. @@ -1868,46 +2052,46 @@ proc validate_ListProtections_613476(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613478 = header.getOrDefault("X-Amz-Target") - valid_613478 = validateParameter(valid_613478, JString, required = true, default = newJString( + var valid_611508 = header.getOrDefault("X-Amz-Target") + valid_611508 = validateParameter(valid_611508, JString, required = true, default = newJString( "AWSShield_20160616.ListProtections")) - if valid_613478 != nil: - section.add "X-Amz-Target", valid_613478 - var valid_613479 = header.getOrDefault("X-Amz-Signature") - valid_613479 = validateParameter(valid_613479, JString, required = false, - default = nil) - if valid_613479 != nil: - section.add "X-Amz-Signature", valid_613479 - var valid_613480 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613480 = validateParameter(valid_613480, JString, required = false, - default = nil) - if valid_613480 != nil: - section.add "X-Amz-Content-Sha256", valid_613480 - var valid_613481 = header.getOrDefault("X-Amz-Date") - valid_613481 = validateParameter(valid_613481, JString, required = false, - default = nil) - if valid_613481 != nil: - section.add "X-Amz-Date", valid_613481 - var valid_613482 = header.getOrDefault("X-Amz-Credential") - valid_613482 = validateParameter(valid_613482, JString, required = false, - default = nil) - if valid_613482 != nil: - section.add "X-Amz-Credential", valid_613482 - var valid_613483 = header.getOrDefault("X-Amz-Security-Token") - valid_613483 = validateParameter(valid_613483, JString, required = false, - default = nil) - if valid_613483 != nil: - section.add "X-Amz-Security-Token", valid_613483 - var valid_613484 = header.getOrDefault("X-Amz-Algorithm") - valid_613484 = validateParameter(valid_613484, JString, required = false, - default = nil) - if valid_613484 != nil: - section.add "X-Amz-Algorithm", valid_613484 - var valid_613485 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613485 = validateParameter(valid_613485, JString, required = false, - default = nil) - if valid_613485 != nil: - section.add "X-Amz-SignedHeaders", valid_613485 + if valid_611508 != nil: + section.add "X-Amz-Target", valid_611508 + var valid_611509 = header.getOrDefault("X-Amz-Signature") + valid_611509 = validateParameter(valid_611509, JString, required = false, + default = nil) + if valid_611509 != nil: + section.add "X-Amz-Signature", valid_611509 + var valid_611510 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611510 = validateParameter(valid_611510, JString, required = false, + default = nil) + if valid_611510 != nil: + section.add "X-Amz-Content-Sha256", valid_611510 + var valid_611511 = header.getOrDefault("X-Amz-Date") + valid_611511 = validateParameter(valid_611511, JString, required = false, + default = nil) + if valid_611511 != nil: + section.add "X-Amz-Date", valid_611511 + var valid_611512 = header.getOrDefault("X-Amz-Credential") + valid_611512 = validateParameter(valid_611512, JString, required = false, + default = nil) + if valid_611512 != nil: + section.add "X-Amz-Credential", valid_611512 + var valid_611513 = header.getOrDefault("X-Amz-Security-Token") + valid_611513 = validateParameter(valid_611513, JString, required = false, + default = nil) + if valid_611513 != nil: + section.add "X-Amz-Security-Token", valid_611513 + var valid_611514 = header.getOrDefault("X-Amz-Algorithm") + valid_611514 = validateParameter(valid_611514, JString, required = false, + default = nil) + if valid_611514 != nil: + section.add "X-Amz-Algorithm", valid_611514 + var valid_611515 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611515 = validateParameter(valid_611515, JString, required = false, + default = nil) + if valid_611515 != nil: + section.add "X-Amz-SignedHeaders", valid_611515 result.add "header", section section = newJObject() result.add "formData", section @@ -1918,48 +2102,46 @@ proc validate_ListProtections_613476(path: JsonNode; query: JsonNode; if body != nil: result.add "body", body -proc call*(call_613487: Call_ListProtections_613475; path: JsonNode; query: JsonNode; +proc call*(call_611517: Call_ListProtections_611505; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Lists all Protection objects for the account. ## - let valid = call_613487.validator(path, query, header, formData, body) - let scheme = call_613487.pickScheme + let valid = call_611517.validator(path, query, header, formData, body) + let scheme = call_611517.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613487.url(scheme.get, call_613487.host, call_613487.base, - call_613487.route, valid.getOrDefault("path"), + let url = call_611517.url(scheme.get, call_611517.host, call_611517.base, + call_611517.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613487, url, valid) + result = atozHook(call_611517, url, valid) -proc call*(call_613488: Call_ListProtections_613475; body: JsonNode): Recallable = +proc call*(call_611518: Call_ListProtections_611505; body: JsonNode): Recallable = ## listProtections ## Lists all Protection objects for the account. ## body: JObject (required) - var body_613489 = newJObject() + var body_611519 = newJObject() if body != nil: - body_613489 = body - result = call_613488.call(nil, nil, nil, nil, body_613489) + body_611519 = body + result = call_611518.call(nil, nil, nil, nil, body_611519) -var listProtections* = Call_ListProtections_613475(name: "listProtections", +var listProtections* = Call_ListProtections_611505(name: "listProtections", meth: HttpMethod.HttpPost, host: "shield.amazonaws.com", route: "/#X-Amz-Target=AWSShield_20160616.ListProtections", - validator: validate_ListProtections_613476, base: "/", url: url_ListProtections_613477, + validator: validate_ListProtections_611506, base: "/", url: url_ListProtections_611507, schemes: {Scheme.Https, Scheme.Http}) type - Call_UpdateEmergencyContactSettings_613490 = ref object of OpenApiRestCall_612658 -proc url_UpdateEmergencyContactSettings_613492(protocol: Scheme; host: string; + Call_UpdateEmergencyContactSettings_611520 = ref object of OpenApiRestCall_610658 +proc url_UpdateEmergencyContactSettings_611522(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_UpdateEmergencyContactSettings_613491(path: JsonNode; +proc validate_UpdateEmergencyContactSettings_611521(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Updates the details of the list of email addresses that the DRT can use to contact you during a suspected attack. ## @@ -1979,46 +2161,46 @@ proc validate_UpdateEmergencyContactSettings_613491(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613493 = header.getOrDefault("X-Amz-Target") - valid_613493 = validateParameter(valid_613493, JString, required = true, default = newJString( + var valid_611523 = header.getOrDefault("X-Amz-Target") + valid_611523 = validateParameter(valid_611523, JString, required = true, default = newJString( "AWSShield_20160616.UpdateEmergencyContactSettings")) - if valid_613493 != nil: - section.add "X-Amz-Target", valid_613493 - var valid_613494 = header.getOrDefault("X-Amz-Signature") - valid_613494 = validateParameter(valid_613494, JString, required = false, - default = nil) - if valid_613494 != nil: - section.add "X-Amz-Signature", valid_613494 - var valid_613495 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613495 = validateParameter(valid_613495, JString, required = false, - default = nil) - if valid_613495 != nil: - section.add "X-Amz-Content-Sha256", valid_613495 - var valid_613496 = header.getOrDefault("X-Amz-Date") - valid_613496 = validateParameter(valid_613496, JString, required = false, - default = nil) - if valid_613496 != nil: - section.add "X-Amz-Date", valid_613496 - var valid_613497 = header.getOrDefault("X-Amz-Credential") - valid_613497 = validateParameter(valid_613497, JString, required = false, - default = nil) - if valid_613497 != nil: - section.add "X-Amz-Credential", valid_613497 - var valid_613498 = header.getOrDefault("X-Amz-Security-Token") - valid_613498 = validateParameter(valid_613498, JString, required = false, - default = nil) - if valid_613498 != nil: - section.add "X-Amz-Security-Token", valid_613498 - var valid_613499 = header.getOrDefault("X-Amz-Algorithm") - valid_613499 = validateParameter(valid_613499, JString, required = false, - default = nil) - if valid_613499 != nil: - section.add "X-Amz-Algorithm", valid_613499 - var valid_613500 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613500 = validateParameter(valid_613500, JString, required = false, - default = nil) - if valid_613500 != nil: - section.add "X-Amz-SignedHeaders", valid_613500 + if valid_611523 != nil: + section.add "X-Amz-Target", valid_611523 + var valid_611524 = header.getOrDefault("X-Amz-Signature") + valid_611524 = validateParameter(valid_611524, JString, required = false, + default = nil) + if valid_611524 != nil: + section.add "X-Amz-Signature", valid_611524 + var valid_611525 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611525 = validateParameter(valid_611525, JString, required = false, + default = nil) + if valid_611525 != nil: + section.add "X-Amz-Content-Sha256", valid_611525 + var valid_611526 = header.getOrDefault("X-Amz-Date") + valid_611526 = validateParameter(valid_611526, JString, required = false, + default = nil) + if valid_611526 != nil: + section.add "X-Amz-Date", valid_611526 + var valid_611527 = header.getOrDefault("X-Amz-Credential") + valid_611527 = validateParameter(valid_611527, JString, required = false, + default = nil) + if valid_611527 != nil: + section.add "X-Amz-Credential", valid_611527 + var valid_611528 = header.getOrDefault("X-Amz-Security-Token") + valid_611528 = validateParameter(valid_611528, JString, required = false, + default = nil) + if valid_611528 != nil: + section.add "X-Amz-Security-Token", valid_611528 + var valid_611529 = header.getOrDefault("X-Amz-Algorithm") + valid_611529 = validateParameter(valid_611529, JString, required = false, + default = nil) + if valid_611529 != nil: + section.add "X-Amz-Algorithm", valid_611529 + var valid_611530 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611530 = validateParameter(valid_611530, JString, required = false, + default = nil) + if valid_611530 != nil: + section.add "X-Amz-SignedHeaders", valid_611530 result.add "header", section section = newJObject() result.add "formData", section @@ -2029,50 +2211,48 @@ proc validate_UpdateEmergencyContactSettings_613491(path: JsonNode; if body != nil: result.add "body", body -proc call*(call_613502: Call_UpdateEmergencyContactSettings_613490; path: JsonNode; +proc call*(call_611532: Call_UpdateEmergencyContactSettings_611520; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Updates the details of the list of email addresses that the DRT can use to contact you during a suspected attack. ## - let valid = call_613502.validator(path, query, header, formData, body) - let scheme = call_613502.pickScheme + let valid = call_611532.validator(path, query, header, formData, body) + let scheme = call_611532.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613502.url(scheme.get, call_613502.host, call_613502.base, - call_613502.route, valid.getOrDefault("path"), + let url = call_611532.url(scheme.get, call_611532.host, call_611532.base, + call_611532.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613502, url, valid) + result = atozHook(call_611532, url, valid) -proc call*(call_613503: Call_UpdateEmergencyContactSettings_613490; body: JsonNode): Recallable = +proc call*(call_611533: Call_UpdateEmergencyContactSettings_611520; body: JsonNode): Recallable = ## updateEmergencyContactSettings ## Updates the details of the list of email addresses that the DRT can use to contact you during a suspected attack. ## body: JObject (required) - var body_613504 = newJObject() + var body_611534 = newJObject() if body != nil: - body_613504 = body - result = call_613503.call(nil, nil, nil, nil, body_613504) + body_611534 = body + result = call_611533.call(nil, nil, nil, nil, body_611534) -var updateEmergencyContactSettings* = Call_UpdateEmergencyContactSettings_613490( +var updateEmergencyContactSettings* = Call_UpdateEmergencyContactSettings_611520( name: "updateEmergencyContactSettings", meth: HttpMethod.HttpPost, host: "shield.amazonaws.com", route: "/#X-Amz-Target=AWSShield_20160616.UpdateEmergencyContactSettings", - validator: validate_UpdateEmergencyContactSettings_613491, base: "/", - url: url_UpdateEmergencyContactSettings_613492, + validator: validate_UpdateEmergencyContactSettings_611521, base: "/", + url: url_UpdateEmergencyContactSettings_611522, schemes: {Scheme.Https, Scheme.Http}) type - Call_UpdateSubscription_613505 = ref object of OpenApiRestCall_612658 -proc url_UpdateSubscription_613507(protocol: Scheme; host: string; base: string; + Call_UpdateSubscription_611535 = ref object of OpenApiRestCall_610658 +proc url_UpdateSubscription_611537(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_UpdateSubscription_613506(path: JsonNode; query: JsonNode; +proc validate_UpdateSubscription_611536(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Updates the details of an existing subscription. Only enter values for parameters you want to change. Empty parameters are not updated. @@ -2093,46 +2273,46 @@ proc validate_UpdateSubscription_613506(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613508 = header.getOrDefault("X-Amz-Target") - valid_613508 = validateParameter(valid_613508, JString, required = true, default = newJString( + var valid_611538 = header.getOrDefault("X-Amz-Target") + valid_611538 = validateParameter(valid_611538, JString, required = true, default = newJString( "AWSShield_20160616.UpdateSubscription")) - if valid_613508 != nil: - section.add "X-Amz-Target", valid_613508 - var valid_613509 = header.getOrDefault("X-Amz-Signature") - valid_613509 = validateParameter(valid_613509, JString, required = false, - default = nil) - if valid_613509 != nil: - section.add "X-Amz-Signature", valid_613509 - var valid_613510 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613510 = validateParameter(valid_613510, JString, required = false, - default = nil) - if valid_613510 != nil: - section.add "X-Amz-Content-Sha256", valid_613510 - var valid_613511 = header.getOrDefault("X-Amz-Date") - valid_613511 = validateParameter(valid_613511, JString, required = false, - default = nil) - if valid_613511 != nil: - section.add "X-Amz-Date", valid_613511 - var valid_613512 = header.getOrDefault("X-Amz-Credential") - valid_613512 = validateParameter(valid_613512, JString, required = false, - default = nil) - if valid_613512 != nil: - section.add "X-Amz-Credential", valid_613512 - var valid_613513 = header.getOrDefault("X-Amz-Security-Token") - valid_613513 = validateParameter(valid_613513, JString, required = false, - default = nil) - if valid_613513 != nil: - section.add "X-Amz-Security-Token", valid_613513 - var valid_613514 = header.getOrDefault("X-Amz-Algorithm") - valid_613514 = validateParameter(valid_613514, JString, required = false, - default = nil) - if valid_613514 != nil: - section.add "X-Amz-Algorithm", valid_613514 - var valid_613515 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613515 = validateParameter(valid_613515, JString, required = false, - default = nil) - if valid_613515 != nil: - section.add "X-Amz-SignedHeaders", valid_613515 + if valid_611538 != nil: + section.add "X-Amz-Target", valid_611538 + var valid_611539 = header.getOrDefault("X-Amz-Signature") + valid_611539 = validateParameter(valid_611539, JString, required = false, + default = nil) + if valid_611539 != nil: + section.add "X-Amz-Signature", valid_611539 + var valid_611540 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611540 = validateParameter(valid_611540, JString, required = false, + default = nil) + if valid_611540 != nil: + section.add "X-Amz-Content-Sha256", valid_611540 + var valid_611541 = header.getOrDefault("X-Amz-Date") + valid_611541 = validateParameter(valid_611541, JString, required = false, + default = nil) + if valid_611541 != nil: + section.add "X-Amz-Date", valid_611541 + var valid_611542 = header.getOrDefault("X-Amz-Credential") + valid_611542 = validateParameter(valid_611542, JString, required = false, + default = nil) + if valid_611542 != nil: + section.add "X-Amz-Credential", valid_611542 + var valid_611543 = header.getOrDefault("X-Amz-Security-Token") + valid_611543 = validateParameter(valid_611543, JString, required = false, + default = nil) + if valid_611543 != nil: + section.add "X-Amz-Security-Token", valid_611543 + var valid_611544 = header.getOrDefault("X-Amz-Algorithm") + valid_611544 = validateParameter(valid_611544, JString, required = false, + default = nil) + if valid_611544 != nil: + section.add "X-Amz-Algorithm", valid_611544 + var valid_611545 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611545 = validateParameter(valid_611545, JString, required = false, + default = nil) + if valid_611545 != nil: + section.add "X-Amz-SignedHeaders", valid_611545 result.add "header", section section = newJObject() result.add "formData", section @@ -2143,34 +2323,34 @@ proc validate_UpdateSubscription_613506(path: JsonNode; query: JsonNode; if body != nil: result.add "body", body -proc call*(call_613517: Call_UpdateSubscription_613505; path: JsonNode; +proc call*(call_611547: Call_UpdateSubscription_611535; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Updates the details of an existing subscription. Only enter values for parameters you want to change. Empty parameters are not updated. ## - let valid = call_613517.validator(path, query, header, formData, body) - let scheme = call_613517.pickScheme + let valid = call_611547.validator(path, query, header, formData, body) + let scheme = call_611547.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613517.url(scheme.get, call_613517.host, call_613517.base, - call_613517.route, valid.getOrDefault("path"), + let url = call_611547.url(scheme.get, call_611547.host, call_611547.base, + call_611547.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613517, url, valid) + result = atozHook(call_611547, url, valid) -proc call*(call_613518: Call_UpdateSubscription_613505; body: JsonNode): Recallable = +proc call*(call_611548: Call_UpdateSubscription_611535; body: JsonNode): Recallable = ## updateSubscription ## Updates the details of an existing subscription. Only enter values for parameters you want to change. Empty parameters are not updated. ## body: JObject (required) - var body_613519 = newJObject() + var body_611549 = newJObject() if body != nil: - body_613519 = body - result = call_613518.call(nil, nil, nil, nil, body_613519) + body_611549 = body + result = call_611548.call(nil, nil, nil, nil, body_611549) -var updateSubscription* = Call_UpdateSubscription_613505( +var updateSubscription* = Call_UpdateSubscription_611535( name: "updateSubscription", meth: HttpMethod.HttpPost, host: "shield.amazonaws.com", route: "/#X-Amz-Target=AWSShield_20160616.UpdateSubscription", - validator: validate_UpdateSubscription_613506, base: "/", - url: url_UpdateSubscription_613507, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_UpdateSubscription_611536, base: "/", + url: url_UpdateSubscription_611537, schemes: {Scheme.Https, Scheme.Http}) export rest