diff --git a/generator/ServiceModels/ec2/ec2-2016-11-15.api.json b/generator/ServiceModels/ec2/ec2-2016-11-15.api.json index 6dadccd08d26..ae0fe4d156d8 100644 --- a/generator/ServiceModels/ec2/ec2-2016-11-15.api.json +++ b/generator/ServiceModels/ec2/ec2-2016-11-15.api.json @@ -377,6 +377,15 @@ }, "input":{"shape":"CancelExportTaskRequest"} }, + "CancelImageLaunchPermission":{ + "name":"CancelImageLaunchPermission", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CancelImageLaunchPermissionRequest"}, + "output":{"shape":"CancelImageLaunchPermissionResult"} + }, "CancelImportTask":{ "name":"CancelImportTask", "http":{ @@ -7406,6 +7415,23 @@ } } }, + "CancelImageLaunchPermissionRequest":{ + "type":"structure", + "required":["ImageId"], + "members":{ + "ImageId":{"shape":"ImageId"}, + "DryRun":{"shape":"Boolean"} + } + }, + "CancelImageLaunchPermissionResult":{ + "type":"structure", + "members":{ + "Return":{ + "shape":"Boolean", + "locationName":"return" + } + } + }, "CancelImportTaskRequest":{ "type":"structure", "members":{ diff --git a/generator/ServiceModels/ec2/ec2-2016-11-15.docs.json b/generator/ServiceModels/ec2/ec2-2016-11-15.docs.json index 229856c2c605..c492259e41da 100644 --- a/generator/ServiceModels/ec2/ec2-2016-11-15.docs.json +++ b/generator/ServiceModels/ec2/ec2-2016-11-15.docs.json @@ -43,6 +43,7 @@ "CancelCapacityReservationFleets": "

Cancels one or more Capacity Reservation Fleets. When you cancel a Capacity Reservation Fleet, the following happens:

", "CancelConversionTask": "

Cancels an active conversion task. The task can be the import of an instance or volume. The action removes all artifacts of the conversion, including a partially uploaded volume or instance. If the conversion is complete or is in the process of transferring the final disk image, the command fails and returns an exception.

For more information, see Importing a Virtual Machine Using the Amazon EC2 CLI.

", "CancelExportTask": "

Cancels an active export task. The request removes all artifacts of the export, including any partially-created Amazon S3 objects. If the export task is complete or is in the process of transferring the final disk image, the command fails and returns an error.

", + "CancelImageLaunchPermission": "

Removes your Amazon Web Services account from the launch permissions for the specified AMI. For more information, see Cancel sharing an AMI with your Amazon Web Services account in the Amazon Elastic Compute Cloud User Guide.

", "CancelImportTask": "

Cancels an in-process import virtual machine or import snapshot task.

", "CancelReservedInstancesListing": "

Cancels the specified Reserved Instance listing in the Reserved Instance Marketplace.

For more information, see Reserved Instance Marketplace in the Amazon EC2 User Guide.

", "CancelSpotFleetRequests": "

Cancels the specified Spot Fleet requests.

After you cancel a Spot Fleet request, the Spot Fleet launches no new Spot Instances. You must specify whether the Spot Fleet should also terminate its Spot Instances. If you terminate the instances, the Spot Fleet request enters the cancelled_terminating state. Otherwise, the Spot Fleet request enters the cancelled_running state and the instances continue to run until they are interrupted or you terminate them manually.

", @@ -1774,6 +1775,8 @@ "CancelCapacityReservationRequest$DryRun": "

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.

", "CancelCapacityReservationResult$Return": "

Returns true if the request succeeds; otherwise, it returns an error.

", "CancelConversionRequest$DryRun": "

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.

", + "CancelImageLaunchPermissionRequest$DryRun": "

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.

", + "CancelImageLaunchPermissionResult$Return": "

Returns true if the request succeeds; otherwise, it returns an error.

", "CancelImportTaskRequest$DryRun": "

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.

", "CancelSpotFleetRequestsRequest$DryRun": "

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.

", "CancelSpotFleetRequestsRequest$TerminateInstances": "

Indicates whether to terminate instances for a Spot Fleet request if it is canceled successfully.

", @@ -2718,6 +2721,16 @@ "refs": { } }, + "CancelImageLaunchPermissionRequest": { + "base": null, + "refs": { + } + }, + "CancelImageLaunchPermissionResult": { + "base": null, + "refs": { + } + }, "CancelImportTaskRequest": { "base": null, "refs": { @@ -9614,6 +9627,7 @@ "ImageId": { "base": null, "refs": { + "CancelImageLaunchPermissionRequest$ImageId": "

The ID of the AMI that was shared with your Amazon Web Services account.

", "CreateReplaceRootVolumeTaskRequest$ImageId": "

The ID of the AMI to use to restore the root volume. The specified AMI must have the same product code, billing information, architecture type, and virtualization type as that of the instance.

If you want to restore the replacement volume from a specific snapshot, or if you want to restore it to its launch state, omit this parameter.

", "CreateStoreImageTaskRequest$ImageId": "

The ID of the AMI.

", "DeregisterImageRequest$ImageId": "

The ID of the AMI.

", @@ -12787,7 +12801,7 @@ "EnableFastSnapshotRestoreSuccessItem$EnabledTime": "

The time at which fast snapshot restores entered the enabled state.

", "EnableFastSnapshotRestoreSuccessItem$DisablingTime": "

The time at which fast snapshot restores entered the disabling state.

", "EnableFastSnapshotRestoreSuccessItem$DisabledTime": "

The time at which fast snapshot restores entered the disabled state.

", - "EnableImageDeprecationRequest$DeprecateAt": "

The date and time to deprecate the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ. If you specify a value for seconds, Amazon EC2 rounds the seconds to the nearest minute.

You can’t specify a date in the past. The upper limit for DeprecateAt is 10 years from now.

", + "EnableImageDeprecationRequest$DeprecateAt": "

The date and time to deprecate the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ. If you specify a value for seconds, Amazon EC2 rounds the seconds to the nearest minute.

You can’t specify a date in the past. The upper limit for DeprecateAt is 10 years from now, except for public AMIs, where the upper limit is 2 years from the creation date.

", "FleetCapacityReservation$CreateDate": "

The date and time at which the Capacity Reservation was created.

", "FlowLog$CreationTime": "

The date and time the flow log was created.

", "GetIpamAddressHistoryRequest$StartTime": "

The start of the time period for which you are looking for history. If you omit this option, it will default to the value of EndTime.

", diff --git a/generator/ServiceModels/ec2/ec2-2016-11-15.endpoint-tests.json b/generator/ServiceModels/ec2/ec2-2016-11-15.endpoint-tests.json index 7f83e4d3ca81..96d0b0e0c6c2 100644 --- a/generator/ServiceModels/ec2/ec2-2016-11-15.endpoint-tests.json +++ b/generator/ServiceModels/ec2/ec2-2016-11-15.endpoint-tests.json @@ -8,8 +8,8 @@ } }, "params": { - "Region": "ap-south-2", "UseFIPS": true, + "Region": "ap-south-2", "UseDualStack": true } }, @@ -21,8 +21,8 @@ } }, "params": { - "Region": "ap-south-2", "UseFIPS": true, + "Region": "ap-south-2", "UseDualStack": false } }, @@ -34,8 +34,8 @@ } }, "params": { - "Region": "ap-south-2", "UseFIPS": false, + "Region": "ap-south-2", "UseDualStack": true } }, @@ -47,8 +47,8 @@ } }, "params": { - "Region": "ap-south-2", "UseFIPS": false, + "Region": "ap-south-2", "UseDualStack": false } }, @@ -60,8 +60,8 @@ } }, "params": { - "Region": "ap-south-1", "UseFIPS": true, + "Region": "ap-south-1", "UseDualStack": true } }, @@ -73,8 +73,8 @@ } }, "params": { - "Region": "ap-south-1", "UseFIPS": true, + "Region": "ap-south-1", "UseDualStack": false } }, @@ -86,8 +86,8 @@ } }, "params": { - "Region": "ap-south-1", "UseFIPS": false, + "Region": "ap-south-1", "UseDualStack": true } }, @@ -99,8 +99,8 @@ } }, "params": { - "Region": "ap-south-1", "UseFIPS": false, + "Region": "ap-south-1", "UseDualStack": false } }, @@ -112,8 +112,8 @@ } }, "params": { - "Region": "eu-south-1", "UseFIPS": true, + "Region": "eu-south-1", "UseDualStack": true } }, @@ -125,8 +125,8 @@ } }, "params": { - "Region": "eu-south-1", "UseFIPS": true, + "Region": "eu-south-1", "UseDualStack": false } }, @@ -138,8 +138,8 @@ } }, "params": { - "Region": "eu-south-1", "UseFIPS": false, + "Region": "eu-south-1", "UseDualStack": true } }, @@ -151,8 +151,8 @@ } }, "params": { - "Region": "eu-south-1", "UseFIPS": false, + "Region": "eu-south-1", "UseDualStack": false } }, @@ -164,8 +164,8 @@ } }, "params": { - "Region": "eu-south-2", "UseFIPS": true, + "Region": "eu-south-2", "UseDualStack": true } }, @@ -177,8 +177,8 @@ } }, "params": { - "Region": "eu-south-2", "UseFIPS": true, + "Region": "eu-south-2", "UseDualStack": false } }, @@ -190,8 +190,8 @@ } }, "params": { - "Region": "eu-south-2", "UseFIPS": false, + "Region": "eu-south-2", "UseDualStack": true } }, @@ -203,8 +203,8 @@ } }, "params": { - "Region": "eu-south-2", "UseFIPS": false, + "Region": "eu-south-2", "UseDualStack": false } }, @@ -216,8 +216,8 @@ } }, "params": { - "Region": "us-gov-east-1", "UseFIPS": true, + "Region": "us-gov-east-1", "UseDualStack": true } }, @@ -229,8 +229,8 @@ } }, "params": { - "Region": "us-gov-east-1", "UseFIPS": true, + "Region": "us-gov-east-1", "UseDualStack": false } }, @@ -242,8 +242,8 @@ } }, "params": { - "Region": "us-gov-east-1", "UseFIPS": false, + "Region": "us-gov-east-1", "UseDualStack": true } }, @@ -255,8 +255,8 @@ } }, "params": { - "Region": "us-gov-east-1", "UseFIPS": false, + "Region": "us-gov-east-1", "UseDualStack": false } }, @@ -268,8 +268,8 @@ } }, "params": { - "Region": "me-central-1", "UseFIPS": true, + "Region": "me-central-1", "UseDualStack": true } }, @@ -281,8 +281,8 @@ } }, "params": { - "Region": "me-central-1", "UseFIPS": true, + "Region": "me-central-1", "UseDualStack": false } }, @@ -294,8 +294,8 @@ } }, "params": { - "Region": "me-central-1", "UseFIPS": false, + "Region": "me-central-1", "UseDualStack": true } }, @@ -307,8 +307,8 @@ } }, "params": { - "Region": "me-central-1", "UseFIPS": false, + "Region": "me-central-1", "UseDualStack": false } }, @@ -320,8 +320,8 @@ } }, "params": { - "Region": "ca-central-1", "UseFIPS": true, + "Region": "ca-central-1", "UseDualStack": true } }, @@ -333,8 +333,8 @@ } }, "params": { - "Region": "ca-central-1", "UseFIPS": true, + "Region": "ca-central-1", "UseDualStack": false } }, @@ -346,8 +346,8 @@ } }, "params": { - "Region": "ca-central-1", "UseFIPS": false, + "Region": "ca-central-1", "UseDualStack": true } }, @@ -359,8 +359,8 @@ } }, "params": { - "Region": "ca-central-1", "UseFIPS": false, + "Region": "ca-central-1", "UseDualStack": false } }, @@ -372,8 +372,8 @@ } }, "params": { - "Region": "eu-central-1", "UseFIPS": true, + "Region": "eu-central-1", "UseDualStack": true } }, @@ -385,8 +385,8 @@ } }, "params": { - "Region": "eu-central-1", "UseFIPS": true, + "Region": "eu-central-1", "UseDualStack": false } }, @@ -398,8 +398,8 @@ } }, "params": { - "Region": "eu-central-1", "UseFIPS": false, + "Region": "eu-central-1", "UseDualStack": true } }, @@ -411,8 +411,8 @@ } }, "params": { - "Region": "eu-central-1", "UseFIPS": false, + "Region": "eu-central-1", "UseDualStack": false } }, @@ -422,8 +422,8 @@ "error": "FIPS and DualStack are enabled, but this partition does not support one or both" }, "params": { - "Region": "us-iso-west-1", "UseFIPS": true, + "Region": "us-iso-west-1", "UseDualStack": true } }, @@ -435,8 +435,8 @@ } }, "params": { - "Region": "us-iso-west-1", "UseFIPS": true, + "Region": "us-iso-west-1", "UseDualStack": false } }, @@ -446,8 +446,8 @@ "error": "DualStack is enabled but this partition does not support DualStack" }, "params": { - "Region": "us-iso-west-1", "UseFIPS": false, + "Region": "us-iso-west-1", "UseDualStack": true } }, @@ -459,8 +459,8 @@ } }, "params": { - "Region": "us-iso-west-1", "UseFIPS": false, + "Region": "us-iso-west-1", "UseDualStack": false } }, @@ -472,8 +472,8 @@ } }, "params": { - "Region": "eu-central-2", "UseFIPS": true, + "Region": "eu-central-2", "UseDualStack": true } }, @@ -485,8 +485,8 @@ } }, "params": { - "Region": "eu-central-2", "UseFIPS": true, + "Region": "eu-central-2", "UseDualStack": false } }, @@ -498,8 +498,8 @@ } }, "params": { - "Region": "eu-central-2", "UseFIPS": false, + "Region": "eu-central-2", "UseDualStack": true } }, @@ -511,8 +511,8 @@ } }, "params": { - "Region": "eu-central-2", "UseFIPS": false, + "Region": "eu-central-2", "UseDualStack": false } }, @@ -524,8 +524,8 @@ } }, "params": { - "Region": "us-west-1", "UseFIPS": true, + "Region": "us-west-1", "UseDualStack": true } }, @@ -537,8 +537,8 @@ } }, "params": { - "Region": "us-west-1", "UseFIPS": true, + "Region": "us-west-1", "UseDualStack": false } }, @@ -550,8 +550,8 @@ } }, "params": { - "Region": "us-west-1", "UseFIPS": false, + "Region": "us-west-1", "UseDualStack": true } }, @@ -563,8 +563,8 @@ } }, "params": { - "Region": "us-west-1", "UseFIPS": false, + "Region": "us-west-1", "UseDualStack": false } }, @@ -576,8 +576,8 @@ } }, "params": { - "Region": "us-west-2", "UseFIPS": true, + "Region": "us-west-2", "UseDualStack": true } }, @@ -589,8 +589,8 @@ } }, "params": { - "Region": "us-west-2", "UseFIPS": true, + "Region": "us-west-2", "UseDualStack": false } }, @@ -602,8 +602,8 @@ } }, "params": { - "Region": "us-west-2", "UseFIPS": false, + "Region": "us-west-2", "UseDualStack": true } }, @@ -615,8 +615,8 @@ } }, "params": { - "Region": "us-west-2", "UseFIPS": false, + "Region": "us-west-2", "UseDualStack": false } }, @@ -628,8 +628,8 @@ } }, "params": { - "Region": "af-south-1", "UseFIPS": true, + "Region": "af-south-1", "UseDualStack": true } }, @@ -641,8 +641,8 @@ } }, "params": { - "Region": "af-south-1", "UseFIPS": true, + "Region": "af-south-1", "UseDualStack": false } }, @@ -654,8 +654,8 @@ } }, "params": { - "Region": "af-south-1", "UseFIPS": false, + "Region": "af-south-1", "UseDualStack": true } }, @@ -667,8 +667,8 @@ } }, "params": { - "Region": "af-south-1", "UseFIPS": false, + "Region": "af-south-1", "UseDualStack": false } }, @@ -680,8 +680,8 @@ } }, "params": { - "Region": "eu-north-1", "UseFIPS": true, + "Region": "eu-north-1", "UseDualStack": true } }, @@ -693,8 +693,8 @@ } }, "params": { - "Region": "eu-north-1", "UseFIPS": true, + "Region": "eu-north-1", "UseDualStack": false } }, @@ -706,8 +706,8 @@ } }, "params": { - "Region": "eu-north-1", "UseFIPS": false, + "Region": "eu-north-1", "UseDualStack": true } }, @@ -719,8 +719,8 @@ } }, "params": { - "Region": "eu-north-1", "UseFIPS": false, + "Region": "eu-north-1", "UseDualStack": false } }, @@ -732,8 +732,8 @@ } }, "params": { - "Region": "eu-west-3", "UseFIPS": true, + "Region": "eu-west-3", "UseDualStack": true } }, @@ -745,8 +745,8 @@ } }, "params": { - "Region": "eu-west-3", "UseFIPS": true, + "Region": "eu-west-3", "UseDualStack": false } }, @@ -758,8 +758,8 @@ } }, "params": { - "Region": "eu-west-3", "UseFIPS": false, + "Region": "eu-west-3", "UseDualStack": true } }, @@ -771,8 +771,8 @@ } }, "params": { - "Region": "eu-west-3", "UseFIPS": false, + "Region": "eu-west-3", "UseDualStack": false } }, @@ -784,8 +784,8 @@ } }, "params": { - "Region": "eu-west-2", "UseFIPS": true, + "Region": "eu-west-2", "UseDualStack": true } }, @@ -797,8 +797,8 @@ } }, "params": { - "Region": "eu-west-2", "UseFIPS": true, + "Region": "eu-west-2", "UseDualStack": false } }, @@ -810,8 +810,8 @@ } }, "params": { - "Region": "eu-west-2", "UseFIPS": false, + "Region": "eu-west-2", "UseDualStack": true } }, @@ -823,8 +823,8 @@ } }, "params": { - "Region": "eu-west-2", "UseFIPS": false, + "Region": "eu-west-2", "UseDualStack": false } }, @@ -836,8 +836,8 @@ } }, "params": { - "Region": "eu-west-1", "UseFIPS": true, + "Region": "eu-west-1", "UseDualStack": true } }, @@ -849,8 +849,8 @@ } }, "params": { - "Region": "eu-west-1", "UseFIPS": true, + "Region": "eu-west-1", "UseDualStack": false } }, @@ -862,8 +862,8 @@ } }, "params": { - "Region": "eu-west-1", "UseFIPS": false, + "Region": "eu-west-1", "UseDualStack": true } }, @@ -875,8 +875,8 @@ } }, "params": { - "Region": "eu-west-1", "UseFIPS": false, + "Region": "eu-west-1", "UseDualStack": false } }, @@ -888,8 +888,8 @@ } }, "params": { - "Region": "ap-northeast-3", "UseFIPS": true, + "Region": "ap-northeast-3", "UseDualStack": true } }, @@ -901,8 +901,8 @@ } }, "params": { - "Region": "ap-northeast-3", "UseFIPS": true, + "Region": "ap-northeast-3", "UseDualStack": false } }, @@ -914,8 +914,8 @@ } }, "params": { - "Region": "ap-northeast-3", "UseFIPS": false, + "Region": "ap-northeast-3", "UseDualStack": true } }, @@ -927,8 +927,8 @@ } }, "params": { - "Region": "ap-northeast-3", "UseFIPS": false, + "Region": "ap-northeast-3", "UseDualStack": false } }, @@ -940,8 +940,8 @@ } }, "params": { - "Region": "ap-northeast-2", "UseFIPS": true, + "Region": "ap-northeast-2", "UseDualStack": true } }, @@ -953,8 +953,8 @@ } }, "params": { - "Region": "ap-northeast-2", "UseFIPS": true, + "Region": "ap-northeast-2", "UseDualStack": false } }, @@ -966,8 +966,8 @@ } }, "params": { - "Region": "ap-northeast-2", "UseFIPS": false, + "Region": "ap-northeast-2", "UseDualStack": true } }, @@ -979,8 +979,8 @@ } }, "params": { - "Region": "ap-northeast-2", "UseFIPS": false, + "Region": "ap-northeast-2", "UseDualStack": false } }, @@ -992,8 +992,8 @@ } }, "params": { - "Region": "ap-northeast-1", "UseFIPS": true, + "Region": "ap-northeast-1", "UseDualStack": true } }, @@ -1005,8 +1005,8 @@ } }, "params": { - "Region": "ap-northeast-1", "UseFIPS": true, + "Region": "ap-northeast-1", "UseDualStack": false } }, @@ -1018,8 +1018,8 @@ } }, "params": { - "Region": "ap-northeast-1", "UseFIPS": false, + "Region": "ap-northeast-1", "UseDualStack": true } }, @@ -1031,8 +1031,8 @@ } }, "params": { - "Region": "ap-northeast-1", "UseFIPS": false, + "Region": "ap-northeast-1", "UseDualStack": false } }, @@ -1044,8 +1044,8 @@ } }, "params": { - "Region": "me-south-1", "UseFIPS": true, + "Region": "me-south-1", "UseDualStack": true } }, @@ -1057,8 +1057,8 @@ } }, "params": { - "Region": "me-south-1", "UseFIPS": true, + "Region": "me-south-1", "UseDualStack": false } }, @@ -1070,8 +1070,8 @@ } }, "params": { - "Region": "me-south-1", "UseFIPS": false, + "Region": "me-south-1", "UseDualStack": true } }, @@ -1083,8 +1083,8 @@ } }, "params": { - "Region": "me-south-1", "UseFIPS": false, + "Region": "me-south-1", "UseDualStack": false } }, @@ -1096,8 +1096,8 @@ } }, "params": { - "Region": "sa-east-1", "UseFIPS": true, + "Region": "sa-east-1", "UseDualStack": true } }, @@ -1109,8 +1109,8 @@ } }, "params": { - "Region": "sa-east-1", "UseFIPS": true, + "Region": "sa-east-1", "UseDualStack": false } }, @@ -1122,8 +1122,8 @@ } }, "params": { - "Region": "sa-east-1", "UseFIPS": false, + "Region": "sa-east-1", "UseDualStack": true } }, @@ -1135,8 +1135,8 @@ } }, "params": { - "Region": "sa-east-1", "UseFIPS": false, + "Region": "sa-east-1", "UseDualStack": false } }, @@ -1148,8 +1148,8 @@ } }, "params": { - "Region": "ap-east-1", "UseFIPS": true, + "Region": "ap-east-1", "UseDualStack": true } }, @@ -1161,8 +1161,8 @@ } }, "params": { - "Region": "ap-east-1", "UseFIPS": true, + "Region": "ap-east-1", "UseDualStack": false } }, @@ -1174,8 +1174,8 @@ } }, "params": { - "Region": "ap-east-1", "UseFIPS": false, + "Region": "ap-east-1", "UseDualStack": true } }, @@ -1187,8 +1187,8 @@ } }, "params": { - "Region": "ap-east-1", "UseFIPS": false, + "Region": "ap-east-1", "UseDualStack": false } }, @@ -1200,8 +1200,8 @@ } }, "params": { - "Region": "cn-north-1", "UseFIPS": true, + "Region": "cn-north-1", "UseDualStack": true } }, @@ -1213,8 +1213,8 @@ } }, "params": { - "Region": "cn-north-1", "UseFIPS": true, + "Region": "cn-north-1", "UseDualStack": false } }, @@ -1226,8 +1226,8 @@ } }, "params": { - "Region": "cn-north-1", "UseFIPS": false, + "Region": "cn-north-1", "UseDualStack": true } }, @@ -1239,8 +1239,8 @@ } }, "params": { - "Region": "cn-north-1", "UseFIPS": false, + "Region": "cn-north-1", "UseDualStack": false } }, @@ -1252,8 +1252,8 @@ } }, "params": { - "Region": "ca-west-1", "UseFIPS": true, + "Region": "ca-west-1", "UseDualStack": true } }, @@ -1265,8 +1265,8 @@ } }, "params": { - "Region": "ca-west-1", "UseFIPS": true, + "Region": "ca-west-1", "UseDualStack": false } }, @@ -1278,8 +1278,8 @@ } }, "params": { - "Region": "ca-west-1", "UseFIPS": false, + "Region": "ca-west-1", "UseDualStack": true } }, @@ -1291,8 +1291,8 @@ } }, "params": { - "Region": "ca-west-1", "UseFIPS": false, + "Region": "ca-west-1", "UseDualStack": false } }, @@ -1304,8 +1304,8 @@ } }, "params": { - "Region": "us-gov-west-1", "UseFIPS": true, + "Region": "us-gov-west-1", "UseDualStack": true } }, @@ -1317,8 +1317,8 @@ } }, "params": { - "Region": "us-gov-west-1", "UseFIPS": true, + "Region": "us-gov-west-1", "UseDualStack": false } }, @@ -1330,8 +1330,8 @@ } }, "params": { - "Region": "us-gov-west-1", "UseFIPS": false, + "Region": "us-gov-west-1", "UseDualStack": true } }, @@ -1343,8 +1343,8 @@ } }, "params": { - "Region": "us-gov-west-1", "UseFIPS": false, + "Region": "us-gov-west-1", "UseDualStack": false } }, @@ -1356,8 +1356,8 @@ } }, "params": { - "Region": "ap-southeast-1", "UseFIPS": true, + "Region": "ap-southeast-1", "UseDualStack": true } }, @@ -1369,8 +1369,8 @@ } }, "params": { - "Region": "ap-southeast-1", "UseFIPS": true, + "Region": "ap-southeast-1", "UseDualStack": false } }, @@ -1382,8 +1382,8 @@ } }, "params": { - "Region": "ap-southeast-1", "UseFIPS": false, + "Region": "ap-southeast-1", "UseDualStack": true } }, @@ -1395,8 +1395,8 @@ } }, "params": { - "Region": "ap-southeast-1", "UseFIPS": false, + "Region": "ap-southeast-1", "UseDualStack": false } }, @@ -1408,8 +1408,8 @@ } }, "params": { - "Region": "ap-southeast-2", "UseFIPS": true, + "Region": "ap-southeast-2", "UseDualStack": true } }, @@ -1421,8 +1421,8 @@ } }, "params": { - "Region": "ap-southeast-2", "UseFIPS": true, + "Region": "ap-southeast-2", "UseDualStack": false } }, @@ -1434,8 +1434,8 @@ } }, "params": { - "Region": "ap-southeast-2", "UseFIPS": false, + "Region": "ap-southeast-2", "UseDualStack": true } }, @@ -1447,8 +1447,8 @@ } }, "params": { - "Region": "ap-southeast-2", "UseFIPS": false, + "Region": "ap-southeast-2", "UseDualStack": false } }, @@ -1458,8 +1458,8 @@ "error": "FIPS and DualStack are enabled, but this partition does not support one or both" }, "params": { - "Region": "us-iso-east-1", "UseFIPS": true, + "Region": "us-iso-east-1", "UseDualStack": true } }, @@ -1471,8 +1471,8 @@ } }, "params": { - "Region": "us-iso-east-1", "UseFIPS": true, + "Region": "us-iso-east-1", "UseDualStack": false } }, @@ -1482,8 +1482,8 @@ "error": "DualStack is enabled but this partition does not support DualStack" }, "params": { - "Region": "us-iso-east-1", "UseFIPS": false, + "Region": "us-iso-east-1", "UseDualStack": true } }, @@ -1495,8 +1495,8 @@ } }, "params": { - "Region": "us-iso-east-1", "UseFIPS": false, + "Region": "us-iso-east-1", "UseDualStack": false } }, @@ -1508,8 +1508,8 @@ } }, "params": { - "Region": "ap-southeast-3", "UseFIPS": true, + "Region": "ap-southeast-3", "UseDualStack": true } }, @@ -1521,8 +1521,8 @@ } }, "params": { - "Region": "ap-southeast-3", "UseFIPS": true, + "Region": "ap-southeast-3", "UseDualStack": false } }, @@ -1534,8 +1534,8 @@ } }, "params": { - "Region": "ap-southeast-3", "UseFIPS": false, + "Region": "ap-southeast-3", "UseDualStack": true } }, @@ -1547,8 +1547,8 @@ } }, "params": { - "Region": "ap-southeast-3", "UseFIPS": false, + "Region": "ap-southeast-3", "UseDualStack": false } }, @@ -1560,8 +1560,8 @@ } }, "params": { - "Region": "ap-southeast-4", "UseFIPS": true, + "Region": "ap-southeast-4", "UseDualStack": true } }, @@ -1573,8 +1573,8 @@ } }, "params": { - "Region": "ap-southeast-4", "UseFIPS": true, + "Region": "ap-southeast-4", "UseDualStack": false } }, @@ -1586,8 +1586,8 @@ } }, "params": { - "Region": "ap-southeast-4", "UseFIPS": false, + "Region": "ap-southeast-4", "UseDualStack": true } }, @@ -1599,8 +1599,8 @@ } }, "params": { - "Region": "ap-southeast-4", "UseFIPS": false, + "Region": "ap-southeast-4", "UseDualStack": false } }, @@ -1612,8 +1612,8 @@ } }, "params": { - "Region": "us-east-1", "UseFIPS": true, + "Region": "us-east-1", "UseDualStack": true } }, @@ -1625,8 +1625,8 @@ } }, "params": { - "Region": "us-east-1", "UseFIPS": true, + "Region": "us-east-1", "UseDualStack": false } }, @@ -1638,8 +1638,8 @@ } }, "params": { - "Region": "us-east-1", "UseFIPS": false, + "Region": "us-east-1", "UseDualStack": true } }, @@ -1651,8 +1651,8 @@ } }, "params": { - "Region": "us-east-1", "UseFIPS": false, + "Region": "us-east-1", "UseDualStack": false } }, @@ -1664,8 +1664,8 @@ } }, "params": { - "Region": "us-east-2", "UseFIPS": true, + "Region": "us-east-2", "UseDualStack": true } }, @@ -1677,8 +1677,8 @@ } }, "params": { - "Region": "us-east-2", "UseFIPS": true, + "Region": "us-east-2", "UseDualStack": false } }, @@ -1690,8 +1690,8 @@ } }, "params": { - "Region": "us-east-2", "UseFIPS": false, + "Region": "us-east-2", "UseDualStack": true } }, @@ -1703,8 +1703,8 @@ } }, "params": { - "Region": "us-east-2", "UseFIPS": false, + "Region": "us-east-2", "UseDualStack": false } }, @@ -1716,8 +1716,8 @@ } }, "params": { - "Region": "cn-northwest-1", "UseFIPS": true, + "Region": "cn-northwest-1", "UseDualStack": true } }, @@ -1729,8 +1729,8 @@ } }, "params": { - "Region": "cn-northwest-1", "UseFIPS": true, + "Region": "cn-northwest-1", "UseDualStack": false } }, @@ -1742,8 +1742,8 @@ } }, "params": { - "Region": "cn-northwest-1", "UseFIPS": false, + "Region": "cn-northwest-1", "UseDualStack": true } }, @@ -1755,8 +1755,8 @@ } }, "params": { - "Region": "cn-northwest-1", "UseFIPS": false, + "Region": "cn-northwest-1", "UseDualStack": false } }, @@ -1766,8 +1766,8 @@ "error": "FIPS and DualStack are enabled, but this partition does not support one or both" }, "params": { - "Region": "us-isob-east-1", "UseFIPS": true, + "Region": "us-isob-east-1", "UseDualStack": true } }, @@ -1779,8 +1779,8 @@ } }, "params": { - "Region": "us-isob-east-1", "UseFIPS": true, + "Region": "us-isob-east-1", "UseDualStack": false } }, @@ -1790,8 +1790,8 @@ "error": "DualStack is enabled but this partition does not support DualStack" }, "params": { - "Region": "us-isob-east-1", "UseFIPS": false, + "Region": "us-isob-east-1", "UseDualStack": true } }, @@ -1803,8 +1803,8 @@ } }, "params": { - "Region": "us-isob-east-1", "UseFIPS": false, + "Region": "us-isob-east-1", "UseDualStack": false } }, @@ -1816,8 +1816,8 @@ } }, "params": { - "Region": "us-east-1", "UseFIPS": false, + "Region": "us-east-1", "UseDualStack": false, "Endpoint": "https://example.com" } @@ -1828,8 +1828,8 @@ "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { - "Region": "us-east-1", "UseFIPS": true, + "Region": "us-east-1", "UseDualStack": false, "Endpoint": "https://example.com" } @@ -1840,8 +1840,8 @@ "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { - "Region": "us-east-1", "UseFIPS": false, + "Region": "us-east-1", "UseDualStack": true, "Endpoint": "https://example.com" } diff --git a/generator/ServiceModels/ec2/ec2-2016-11-15.normal.json b/generator/ServiceModels/ec2/ec2-2016-11-15.normal.json index 26bf954142b9..a30de709de7a 100644 --- a/generator/ServiceModels/ec2/ec2-2016-11-15.normal.json +++ b/generator/ServiceModels/ec2/ec2-2016-11-15.normal.json @@ -418,6 +418,16 @@ "input":{"shape":"CancelExportTaskRequest"}, "documentation":"

Cancels an active export task. The request removes all artifacts of the export, including any partially-created Amazon S3 objects. If the export task is complete or is in the process of transferring the final disk image, the command fails and returns an error.

" }, + "CancelImageLaunchPermission":{ + "name":"CancelImageLaunchPermission", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CancelImageLaunchPermissionRequest"}, + "output":{"shape":"CancelImageLaunchPermissionResult"}, + "documentation":"

Removes your Amazon Web Services account from the launch permissions for the specified AMI. For more information, see Cancel sharing an AMI with your Amazon Web Services account in the Amazon Elastic Compute Cloud User Guide.

" + }, "CancelImportTask":{ "name":"CancelImportTask", "http":{ @@ -8633,6 +8643,30 @@ } } }, + "CancelImageLaunchPermissionRequest":{ + "type":"structure", + "required":["ImageId"], + "members":{ + "ImageId":{ + "shape":"ImageId", + "documentation":"

The ID of the AMI that was shared with your Amazon Web Services account.

" + }, + "DryRun":{ + "shape":"Boolean", + "documentation":"

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.

" + } + } + }, + "CancelImageLaunchPermissionResult":{ + "type":"structure", + "members":{ + "Return":{ + "shape":"Boolean", + "documentation":"

Returns true if the request succeeds; otherwise, it returns an error.

", + "locationName":"return" + } + } + }, "CancelImportTaskRequest":{ "type":"structure", "members":{ @@ -24612,7 +24646,7 @@ }, "DeprecateAt":{ "shape":"MillisecondDateTime", - "documentation":"

The date and time to deprecate the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ. If you specify a value for seconds, Amazon EC2 rounds the seconds to the nearest minute.

You can’t specify a date in the past. The upper limit for DeprecateAt is 10 years from now.

" + "documentation":"

The date and time to deprecate the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ. If you specify a value for seconds, Amazon EC2 rounds the seconds to the nearest minute.

You can’t specify a date in the past. The upper limit for DeprecateAt is 10 years from now, except for public AMIs, where the upper limit is 2 years from the creation date.

" }, "DryRun":{ "shape":"Boolean", diff --git a/sdk/src/Services/EC2/Generated/Model/CancelImageLaunchPermissionRequest.cs b/sdk/src/Services/EC2/Generated/Model/CancelImageLaunchPermissionRequest.cs new file mode 100644 index 000000000000..a9a0692d5404 --- /dev/null +++ b/sdk/src/Services/EC2/Generated/Model/CancelImageLaunchPermissionRequest.cs @@ -0,0 +1,62 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the ec2-2016-11-15.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +namespace Amazon.EC2.Model +{ + /// + /// Container for the parameters to the CancelImageLaunchPermission operation. + /// Removes your Amazon Web Services account from the launch permissions for the specified + /// AMI. For more information, see Cancel sharing + /// an AMI with your Amazon Web Services account in the Amazon Elastic Compute + /// Cloud User Guide. + /// + public partial class CancelImageLaunchPermissionRequest : AmazonEC2Request + { + private string _imageId; + + /// + /// Gets and sets the property ImageId. + /// + /// The ID of the AMI that was shared with your Amazon Web Services account. + /// + /// + [AWSProperty(Required=true)] + public string ImageId + { + get { return this._imageId; } + set { this._imageId = value; } + } + + // Check to see if ImageId property is set + internal bool IsSetImageId() + { + return this._imageId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/EC2/Generated/Model/CancelImageLaunchPermissionResponse.cs b/sdk/src/Services/EC2/Generated/Model/CancelImageLaunchPermissionResponse.cs new file mode 100644 index 000000000000..2d25646afee5 --- /dev/null +++ b/sdk/src/Services/EC2/Generated/Model/CancelImageLaunchPermissionResponse.cs @@ -0,0 +1,57 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the ec2-2016-11-15.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +namespace Amazon.EC2.Model +{ + /// + /// This is the response object from the CancelImageLaunchPermission operation. + /// + public partial class CancelImageLaunchPermissionResponse : AmazonWebServiceResponse + { + private bool? _return; + + /// + /// Gets and sets the property Return. + /// + /// Returns true if the request succeeds; otherwise, it returns an error. + /// + /// + public bool Return + { + get { return this._return.GetValueOrDefault(); } + set { this._return = value; } + } + + // Check to see if Return property is set + internal bool IsSetReturn() + { + return this._return.HasValue; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/EC2/Generated/Model/EnableImageDeprecationRequest.cs b/sdk/src/Services/EC2/Generated/Model/EnableImageDeprecationRequest.cs index 64019a6eb456..b3459af2041e 100644 --- a/sdk/src/Services/EC2/Generated/Model/EnableImageDeprecationRequest.cs +++ b/sdk/src/Services/EC2/Generated/Model/EnableImageDeprecationRequest.cs @@ -52,7 +52,8 @@ public partial class EnableImageDeprecationRequest : AmazonEC2Request /// /// /// You can’t specify a date in the past. The upper limit for DeprecateAt - /// is 10 years from now. + /// is 10 years from now, except for public AMIs, where the upper limit is 2 years from + /// the creation date. /// /// [AWSProperty(Required=true)] diff --git a/sdk/src/Services/EC2/Generated/Model/Internal/MarshallTransformations/CancelImageLaunchPermissionRequestMarshaller.cs b/sdk/src/Services/EC2/Generated/Model/Internal/MarshallTransformations/CancelImageLaunchPermissionRequestMarshaller.cs new file mode 100644 index 000000000000..ac080e87519a --- /dev/null +++ b/sdk/src/Services/EC2/Generated/Model/Internal/MarshallTransformations/CancelImageLaunchPermissionRequestMarshaller.cs @@ -0,0 +1,87 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the ec2-2016-11-15.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.EC2.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +namespace Amazon.EC2.Model.Internal.MarshallTransformations +{ + /// + /// CancelImageLaunchPermission Request Marshaller + /// + public class CancelImageLaunchPermissionRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((CancelImageLaunchPermissionRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(CancelImageLaunchPermissionRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.EC2"); + request.Parameters.Add("Action", "CancelImageLaunchPermission"); + request.Parameters.Add("Version", "2016-11-15"); + + if(publicRequest != null) + { + if(publicRequest.IsSetImageId()) + { + request.Parameters.Add("ImageId", StringUtils.FromString(publicRequest.ImageId)); + } + } + return request; + } + private static CancelImageLaunchPermissionRequestMarshaller _instance = new CancelImageLaunchPermissionRequestMarshaller(); + + internal static CancelImageLaunchPermissionRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static CancelImageLaunchPermissionRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/EC2/Generated/Model/Internal/MarshallTransformations/CancelImageLaunchPermissionResponseUnmarshaller.cs b/sdk/src/Services/EC2/Generated/Model/Internal/MarshallTransformations/CancelImageLaunchPermissionResponseUnmarshaller.cs new file mode 100644 index 000000000000..8d572ad618d1 --- /dev/null +++ b/sdk/src/Services/EC2/Generated/Model/Internal/MarshallTransformations/CancelImageLaunchPermissionResponseUnmarshaller.cs @@ -0,0 +1,101 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the ec2-2016-11-15.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.EC2.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +namespace Amazon.EC2.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for CancelImageLaunchPermission operation + /// + public class CancelImageLaunchPermissionResponseUnmarshaller : EC2ResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) + { + CancelImageLaunchPermissionResponse response = new CancelImageLaunchPermissionResponse(); + + int originalDepth = context.CurrentDepth; + int targetDepth = originalDepth + 1; + if (context.IsStartOfDocument) + targetDepth = 2; + + while (context.ReadAtDepth(originalDepth)) + { + if (context.IsStartElement || context.IsAttribute) + { + + if (context.TestExpression("return", targetDepth)) + { + var unmarshaller = BoolUnmarshaller.Instance; + response.Return = unmarshaller.Unmarshall(context); + continue; + } + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + return new AmazonEC2Exception(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); + } + private static CancelImageLaunchPermissionResponseUnmarshaller _instance = new CancelImageLaunchPermissionResponseUnmarshaller(); + + internal static CancelImageLaunchPermissionResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static CancelImageLaunchPermissionResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/EC2/Generated/_bcl35/AmazonEC2Client.cs b/sdk/src/Services/EC2/Generated/_bcl35/AmazonEC2Client.cs index 8e61fa3b1ee1..afdf5df2739a 100644 --- a/sdk/src/Services/EC2/Generated/_bcl35/AmazonEC2Client.cs +++ b/sdk/src/Services/EC2/Generated/_bcl35/AmazonEC2Client.cs @@ -3074,6 +3074,63 @@ public virtual CancelExportTaskResponse EndCancelExportTask(IAsyncResult asyncRe #endregion + #region CancelImageLaunchPermission + + /// + /// Removes your Amazon Web Services account from the launch permissions for the specified + /// AMI. For more information, see Cancel sharing + /// an AMI with your Amazon Web Services account in the Amazon Elastic Compute + /// Cloud User Guide. + /// + /// Container for the necessary parameters to execute the CancelImageLaunchPermission service method. + /// + /// The response from the CancelImageLaunchPermission service method, as returned by EC2. + /// REST API Reference for CancelImageLaunchPermission Operation + public virtual CancelImageLaunchPermissionResponse CancelImageLaunchPermission(CancelImageLaunchPermissionRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CancelImageLaunchPermissionRequestMarshaller.Instance; + options.ResponseUnmarshaller = CancelImageLaunchPermissionResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the CancelImageLaunchPermission operation. + /// + /// + /// Container for the necessary parameters to execute the CancelImageLaunchPermission operation on AmazonEC2Client. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCancelImageLaunchPermission + /// operation. + /// REST API Reference for CancelImageLaunchPermission Operation + public virtual IAsyncResult BeginCancelImageLaunchPermission(CancelImageLaunchPermissionRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CancelImageLaunchPermissionRequestMarshaller.Instance; + options.ResponseUnmarshaller = CancelImageLaunchPermissionResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the CancelImageLaunchPermission operation. + /// + /// + /// The IAsyncResult returned by the call to BeginCancelImageLaunchPermission. + /// + /// Returns a CancelImageLaunchPermissionResult from EC2. + /// REST API Reference for CancelImageLaunchPermission Operation + public virtual CancelImageLaunchPermissionResponse EndCancelImageLaunchPermission(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + #region CancelImportTask /// diff --git a/sdk/src/Services/EC2/Generated/_bcl35/IAmazonEC2.cs b/sdk/src/Services/EC2/Generated/_bcl35/IAmazonEC2.cs index 5e2f67ac3676..ac8992cb8be9 100644 --- a/sdk/src/Services/EC2/Generated/_bcl35/IAmazonEC2.cs +++ b/sdk/src/Services/EC2/Generated/_bcl35/IAmazonEC2.cs @@ -2262,6 +2262,49 @@ public partial interface IAmazonEC2 : IAmazonService, IDisposable #endregion + #region CancelImageLaunchPermission + + + /// + /// Removes your Amazon Web Services account from the launch permissions for the specified + /// AMI. For more information, see Cancel sharing + /// an AMI with your Amazon Web Services account in the Amazon Elastic Compute + /// Cloud User Guide. + /// + /// Container for the necessary parameters to execute the CancelImageLaunchPermission service method. + /// + /// The response from the CancelImageLaunchPermission service method, as returned by EC2. + /// REST API Reference for CancelImageLaunchPermission Operation + CancelImageLaunchPermissionResponse CancelImageLaunchPermission(CancelImageLaunchPermissionRequest request); + + /// + /// Initiates the asynchronous execution of the CancelImageLaunchPermission operation. + /// + /// + /// Container for the necessary parameters to execute the CancelImageLaunchPermission operation on AmazonEC2Client. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCancelImageLaunchPermission + /// operation. + /// REST API Reference for CancelImageLaunchPermission Operation + IAsyncResult BeginCancelImageLaunchPermission(CancelImageLaunchPermissionRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the CancelImageLaunchPermission operation. + /// + /// + /// The IAsyncResult returned by the call to BeginCancelImageLaunchPermission. + /// + /// Returns a CancelImageLaunchPermissionResult from EC2. + /// REST API Reference for CancelImageLaunchPermission Operation + CancelImageLaunchPermissionResponse EndCancelImageLaunchPermission(IAsyncResult asyncResult); + + #endregion + #region CancelImportTask diff --git a/sdk/src/Services/EC2/Generated/_bcl45/AmazonEC2Client.cs b/sdk/src/Services/EC2/Generated/_bcl45/AmazonEC2Client.cs index 4e3dd5455127..348042a40762 100644 --- a/sdk/src/Services/EC2/Generated/_bcl45/AmazonEC2Client.cs +++ b/sdk/src/Services/EC2/Generated/_bcl45/AmazonEC2Client.cs @@ -3088,6 +3088,53 @@ public virtual CancelExportTaskResponse CancelExportTask(CancelExportTaskRequest #endregion + #region CancelImageLaunchPermission + + + /// + /// Removes your Amazon Web Services account from the launch permissions for the specified + /// AMI. For more information, see Cancel sharing + /// an AMI with your Amazon Web Services account in the Amazon Elastic Compute + /// Cloud User Guide. + /// + /// Container for the necessary parameters to execute the CancelImageLaunchPermission service method. + /// + /// The response from the CancelImageLaunchPermission service method, as returned by EC2. + /// REST API Reference for CancelImageLaunchPermission Operation + public virtual CancelImageLaunchPermissionResponse CancelImageLaunchPermission(CancelImageLaunchPermissionRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CancelImageLaunchPermissionRequestMarshaller.Instance; + options.ResponseUnmarshaller = CancelImageLaunchPermissionResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Removes your Amazon Web Services account from the launch permissions for the specified + /// AMI. For more information, see Cancel sharing + /// an AMI with your Amazon Web Services account in the Amazon Elastic Compute + /// Cloud User Guide. + /// + /// Container for the necessary parameters to execute the CancelImageLaunchPermission service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CancelImageLaunchPermission service method, as returned by EC2. + /// REST API Reference for CancelImageLaunchPermission Operation + public virtual Task CancelImageLaunchPermissionAsync(CancelImageLaunchPermissionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CancelImageLaunchPermissionRequestMarshaller.Instance; + options.ResponseUnmarshaller = CancelImageLaunchPermissionResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + #region CancelImportTask diff --git a/sdk/src/Services/EC2/Generated/_bcl45/IAmazonEC2.cs b/sdk/src/Services/EC2/Generated/_bcl45/IAmazonEC2.cs index 36cd7ae5a7f0..09d4e354e646 100644 --- a/sdk/src/Services/EC2/Generated/_bcl45/IAmazonEC2.cs +++ b/sdk/src/Services/EC2/Generated/_bcl45/IAmazonEC2.cs @@ -2314,6 +2314,40 @@ public partial interface IAmazonEC2 : IAmazonService, IDisposable #endregion + #region CancelImageLaunchPermission + + + /// + /// Removes your Amazon Web Services account from the launch permissions for the specified + /// AMI. For more information, see Cancel sharing + /// an AMI with your Amazon Web Services account in the Amazon Elastic Compute + /// Cloud User Guide. + /// + /// Container for the necessary parameters to execute the CancelImageLaunchPermission service method. + /// + /// The response from the CancelImageLaunchPermission service method, as returned by EC2. + /// REST API Reference for CancelImageLaunchPermission Operation + CancelImageLaunchPermissionResponse CancelImageLaunchPermission(CancelImageLaunchPermissionRequest request); + + + + /// + /// Removes your Amazon Web Services account from the launch permissions for the specified + /// AMI. For more information, see Cancel sharing + /// an AMI with your Amazon Web Services account in the Amazon Elastic Compute + /// Cloud User Guide. + /// + /// Container for the necessary parameters to execute the CancelImageLaunchPermission service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CancelImageLaunchPermission service method, as returned by EC2. + /// REST API Reference for CancelImageLaunchPermission Operation + Task CancelImageLaunchPermissionAsync(CancelImageLaunchPermissionRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + #region CancelImportTask diff --git a/sdk/src/Services/EC2/Generated/_netstandard/AmazonEC2Client.cs b/sdk/src/Services/EC2/Generated/_netstandard/AmazonEC2Client.cs index 39a05e5683e3..3fb765c49bc0 100644 --- a/sdk/src/Services/EC2/Generated/_netstandard/AmazonEC2Client.cs +++ b/sdk/src/Services/EC2/Generated/_netstandard/AmazonEC2Client.cs @@ -2265,6 +2265,43 @@ internal virtual CancelExportTaskResponse CancelExportTask(CancelExportTaskReque #endregion + #region CancelImageLaunchPermission + + internal virtual CancelImageLaunchPermissionResponse CancelImageLaunchPermission(CancelImageLaunchPermissionRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CancelImageLaunchPermissionRequestMarshaller.Instance; + options.ResponseUnmarshaller = CancelImageLaunchPermissionResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Removes your Amazon Web Services account from the launch permissions for the specified + /// AMI. For more information, see Cancel sharing + /// an AMI with your Amazon Web Services account in the Amazon Elastic Compute + /// Cloud User Guide. + /// + /// Container for the necessary parameters to execute the CancelImageLaunchPermission service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CancelImageLaunchPermission service method, as returned by EC2. + /// REST API Reference for CancelImageLaunchPermission Operation + public virtual Task CancelImageLaunchPermissionAsync(CancelImageLaunchPermissionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CancelImageLaunchPermissionRequestMarshaller.Instance; + options.ResponseUnmarshaller = CancelImageLaunchPermissionResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + #region CancelImportTask internal virtual CancelImportTaskResponse CancelImportTask(CancelImportTaskRequest request) diff --git a/sdk/src/Services/EC2/Generated/_netstandard/IAmazonEC2.cs b/sdk/src/Services/EC2/Generated/_netstandard/IAmazonEC2.cs index cd1a6f1ff007..3aa3b141de1e 100644 --- a/sdk/src/Services/EC2/Generated/_netstandard/IAmazonEC2.cs +++ b/sdk/src/Services/EC2/Generated/_netstandard/IAmazonEC2.cs @@ -1362,6 +1362,27 @@ public partial interface IAmazonEC2 : IAmazonService, IDisposable #endregion + #region CancelImageLaunchPermission + + + + /// + /// Removes your Amazon Web Services account from the launch permissions for the specified + /// AMI. For more information, see Cancel sharing + /// an AMI with your Amazon Web Services account in the Amazon Elastic Compute + /// Cloud User Guide. + /// + /// Container for the necessary parameters to execute the CancelImageLaunchPermission service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CancelImageLaunchPermission service method, as returned by EC2. + /// REST API Reference for CancelImageLaunchPermission Operation + Task CancelImageLaunchPermissionAsync(CancelImageLaunchPermissionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + #region CancelImportTask diff --git a/sdk/test/Services/EC2/UnitTests/Generated/Endpoints/EC2EndpointProviderTests.cs b/sdk/test/Services/EC2/UnitTests/Generated/Endpoints/EC2EndpointProviderTests.cs index 03cd3b19448a..184d77da06ad 100644 --- a/sdk/test/Services/EC2/UnitTests/Generated/Endpoints/EC2EndpointProviderTests.cs +++ b/sdk/test/Services/EC2/UnitTests/Generated/Endpoints/EC2EndpointProviderTests.cs @@ -35,8 +35,8 @@ public partial class EC2EndpointsTests public void For_region_apsouth2_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-south-2"; parameters["UseFIPS"] = true; + parameters["Region"] = "ap-south-2"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.ap-south-2.api.aws", endpoint.URL); @@ -50,8 +50,8 @@ public void For_region_apsouth2_with_FIPS_enabled_and_DualStack_enabled_Test() public void For_region_apsouth2_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-south-2"; parameters["UseFIPS"] = true; + parameters["Region"] = "ap-south-2"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.ap-south-2.amazonaws.com", endpoint.URL); @@ -65,8 +65,8 @@ public void For_region_apsouth2_with_FIPS_enabled_and_DualStack_disabled_Test() public void For_region_apsouth2_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-south-2"; parameters["UseFIPS"] = false; + parameters["Region"] = "ap-south-2"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.ap-south-2.api.aws", endpoint.URL); @@ -80,8 +80,8 @@ public void For_region_apsouth2_with_FIPS_disabled_and_DualStack_enabled_Test() public void For_region_apsouth2_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-south-2"; parameters["UseFIPS"] = false; + parameters["Region"] = "ap-south-2"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.ap-south-2.amazonaws.com", endpoint.URL); @@ -95,8 +95,8 @@ public void For_region_apsouth2_with_FIPS_disabled_and_DualStack_disabled_Test() public void For_region_apsouth1_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-south-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "ap-south-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.ap-south-1.api.aws", endpoint.URL); @@ -110,8 +110,8 @@ public void For_region_apsouth1_with_FIPS_enabled_and_DualStack_enabled_Test() public void For_region_apsouth1_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-south-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "ap-south-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.ap-south-1.amazonaws.com", endpoint.URL); @@ -125,8 +125,8 @@ public void For_region_apsouth1_with_FIPS_enabled_and_DualStack_disabled_Test() public void For_region_apsouth1_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-south-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "ap-south-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.ap-south-1.api.aws", endpoint.URL); @@ -140,8 +140,8 @@ public void For_region_apsouth1_with_FIPS_disabled_and_DualStack_enabled_Test() public void For_region_apsouth1_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-south-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "ap-south-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.ap-south-1.amazonaws.com", endpoint.URL); @@ -155,8 +155,8 @@ public void For_region_apsouth1_with_FIPS_disabled_and_DualStack_disabled_Test() public void For_region_eusouth1_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-south-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "eu-south-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.eu-south-1.api.aws", endpoint.URL); @@ -170,8 +170,8 @@ public void For_region_eusouth1_with_FIPS_enabled_and_DualStack_enabled_Test() public void For_region_eusouth1_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-south-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "eu-south-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.eu-south-1.amazonaws.com", endpoint.URL); @@ -185,8 +185,8 @@ public void For_region_eusouth1_with_FIPS_enabled_and_DualStack_disabled_Test() public void For_region_eusouth1_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-south-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "eu-south-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.eu-south-1.api.aws", endpoint.URL); @@ -200,8 +200,8 @@ public void For_region_eusouth1_with_FIPS_disabled_and_DualStack_enabled_Test() public void For_region_eusouth1_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-south-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "eu-south-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.eu-south-1.amazonaws.com", endpoint.URL); @@ -215,8 +215,8 @@ public void For_region_eusouth1_with_FIPS_disabled_and_DualStack_disabled_Test() public void For_region_eusouth2_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-south-2"; parameters["UseFIPS"] = true; + parameters["Region"] = "eu-south-2"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.eu-south-2.api.aws", endpoint.URL); @@ -230,8 +230,8 @@ public void For_region_eusouth2_with_FIPS_enabled_and_DualStack_enabled_Test() public void For_region_eusouth2_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-south-2"; parameters["UseFIPS"] = true; + parameters["Region"] = "eu-south-2"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.eu-south-2.amazonaws.com", endpoint.URL); @@ -245,8 +245,8 @@ public void For_region_eusouth2_with_FIPS_enabled_and_DualStack_disabled_Test() public void For_region_eusouth2_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-south-2"; parameters["UseFIPS"] = false; + parameters["Region"] = "eu-south-2"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.eu-south-2.api.aws", endpoint.URL); @@ -260,8 +260,8 @@ public void For_region_eusouth2_with_FIPS_disabled_and_DualStack_enabled_Test() public void For_region_eusouth2_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-south-2"; parameters["UseFIPS"] = false; + parameters["Region"] = "eu-south-2"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.eu-south-2.amazonaws.com", endpoint.URL); @@ -275,8 +275,8 @@ public void For_region_eusouth2_with_FIPS_disabled_and_DualStack_disabled_Test() public void For_region_usgoveast1_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-gov-east-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "us-gov-east-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.us-gov-east-1.api.aws", endpoint.URL); @@ -290,8 +290,8 @@ public void For_region_usgoveast1_with_FIPS_enabled_and_DualStack_enabled_Test() public void For_region_usgoveast1_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-gov-east-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "us-gov-east-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.us-gov-east-1.amazonaws.com", endpoint.URL); @@ -305,8 +305,8 @@ public void For_region_usgoveast1_with_FIPS_enabled_and_DualStack_disabled_Test( public void For_region_usgoveast1_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-gov-east-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "us-gov-east-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.us-gov-east-1.api.aws", endpoint.URL); @@ -320,8 +320,8 @@ public void For_region_usgoveast1_with_FIPS_disabled_and_DualStack_enabled_Test( public void For_region_usgoveast1_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-gov-east-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "us-gov-east-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.us-gov-east-1.amazonaws.com", endpoint.URL); @@ -335,8 +335,8 @@ public void For_region_usgoveast1_with_FIPS_disabled_and_DualStack_disabled_Test public void For_region_mecentral1_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "me-central-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "me-central-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.me-central-1.api.aws", endpoint.URL); @@ -350,8 +350,8 @@ public void For_region_mecentral1_with_FIPS_enabled_and_DualStack_enabled_Test() public void For_region_mecentral1_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "me-central-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "me-central-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.me-central-1.amazonaws.com", endpoint.URL); @@ -365,8 +365,8 @@ public void For_region_mecentral1_with_FIPS_enabled_and_DualStack_disabled_Test( public void For_region_mecentral1_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "me-central-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "me-central-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.me-central-1.api.aws", endpoint.URL); @@ -380,8 +380,8 @@ public void For_region_mecentral1_with_FIPS_disabled_and_DualStack_enabled_Test( public void For_region_mecentral1_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "me-central-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "me-central-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.me-central-1.amazonaws.com", endpoint.URL); @@ -395,8 +395,8 @@ public void For_region_mecentral1_with_FIPS_disabled_and_DualStack_disabled_Test public void For_region_cacentral1_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ca-central-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "ca-central-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.ca-central-1.api.aws", endpoint.URL); @@ -410,8 +410,8 @@ public void For_region_cacentral1_with_FIPS_enabled_and_DualStack_enabled_Test() public void For_region_cacentral1_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ca-central-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "ca-central-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.ca-central-1.amazonaws.com", endpoint.URL); @@ -425,8 +425,8 @@ public void For_region_cacentral1_with_FIPS_enabled_and_DualStack_disabled_Test( public void For_region_cacentral1_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ca-central-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "ca-central-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.ca-central-1.api.aws", endpoint.URL); @@ -440,8 +440,8 @@ public void For_region_cacentral1_with_FIPS_disabled_and_DualStack_enabled_Test( public void For_region_cacentral1_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ca-central-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "ca-central-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.ca-central-1.amazonaws.com", endpoint.URL); @@ -455,8 +455,8 @@ public void For_region_cacentral1_with_FIPS_disabled_and_DualStack_disabled_Test public void For_region_eucentral1_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-central-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "eu-central-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.eu-central-1.api.aws", endpoint.URL); @@ -470,8 +470,8 @@ public void For_region_eucentral1_with_FIPS_enabled_and_DualStack_enabled_Test() public void For_region_eucentral1_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-central-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "eu-central-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.eu-central-1.amazonaws.com", endpoint.URL); @@ -485,8 +485,8 @@ public void For_region_eucentral1_with_FIPS_enabled_and_DualStack_disabled_Test( public void For_region_eucentral1_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-central-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "eu-central-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.eu-central-1.api.aws", endpoint.URL); @@ -500,8 +500,8 @@ public void For_region_eucentral1_with_FIPS_disabled_and_DualStack_enabled_Test( public void For_region_eucentral1_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-central-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "eu-central-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.eu-central-1.amazonaws.com", endpoint.URL); @@ -516,8 +516,8 @@ public void For_region_eucentral1_with_FIPS_disabled_and_DualStack_disabled_Test public void For_region_usisowest1_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-iso-west-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "us-iso-west-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); } @@ -530,8 +530,8 @@ public void For_region_usisowest1_with_FIPS_enabled_and_DualStack_enabled_Test() public void For_region_usisowest1_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-iso-west-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "us-iso-west-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.us-iso-west-1.c2s.ic.gov", endpoint.URL); @@ -546,8 +546,8 @@ public void For_region_usisowest1_with_FIPS_enabled_and_DualStack_disabled_Test( public void For_region_usisowest1_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-iso-west-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "us-iso-west-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); } @@ -560,8 +560,8 @@ public void For_region_usisowest1_with_FIPS_disabled_and_DualStack_enabled_Test( public void For_region_usisowest1_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-iso-west-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "us-iso-west-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.us-iso-west-1.c2s.ic.gov", endpoint.URL); @@ -575,8 +575,8 @@ public void For_region_usisowest1_with_FIPS_disabled_and_DualStack_disabled_Test public void For_region_eucentral2_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-central-2"; parameters["UseFIPS"] = true; + parameters["Region"] = "eu-central-2"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.eu-central-2.api.aws", endpoint.URL); @@ -590,8 +590,8 @@ public void For_region_eucentral2_with_FIPS_enabled_and_DualStack_enabled_Test() public void For_region_eucentral2_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-central-2"; parameters["UseFIPS"] = true; + parameters["Region"] = "eu-central-2"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.eu-central-2.amazonaws.com", endpoint.URL); @@ -605,8 +605,8 @@ public void For_region_eucentral2_with_FIPS_enabled_and_DualStack_disabled_Test( public void For_region_eucentral2_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-central-2"; parameters["UseFIPS"] = false; + parameters["Region"] = "eu-central-2"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.eu-central-2.api.aws", endpoint.URL); @@ -620,8 +620,8 @@ public void For_region_eucentral2_with_FIPS_disabled_and_DualStack_enabled_Test( public void For_region_eucentral2_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-central-2"; parameters["UseFIPS"] = false; + parameters["Region"] = "eu-central-2"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.eu-central-2.amazonaws.com", endpoint.URL); @@ -635,8 +635,8 @@ public void For_region_eucentral2_with_FIPS_disabled_and_DualStack_disabled_Test public void For_region_uswest1_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-west-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "us-west-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.us-west-1.api.aws", endpoint.URL); @@ -650,8 +650,8 @@ public void For_region_uswest1_with_FIPS_enabled_and_DualStack_enabled_Test() public void For_region_uswest1_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-west-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "us-west-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.us-west-1.amazonaws.com", endpoint.URL); @@ -665,8 +665,8 @@ public void For_region_uswest1_with_FIPS_enabled_and_DualStack_disabled_Test() public void For_region_uswest1_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-west-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "us-west-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.us-west-1.api.aws", endpoint.URL); @@ -680,8 +680,8 @@ public void For_region_uswest1_with_FIPS_disabled_and_DualStack_enabled_Test() public void For_region_uswest1_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-west-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "us-west-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.us-west-1.amazonaws.com", endpoint.URL); @@ -695,8 +695,8 @@ public void For_region_uswest1_with_FIPS_disabled_and_DualStack_disabled_Test() public void For_region_uswest2_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-west-2"; parameters["UseFIPS"] = true; + parameters["Region"] = "us-west-2"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.us-west-2.api.aws", endpoint.URL); @@ -710,8 +710,8 @@ public void For_region_uswest2_with_FIPS_enabled_and_DualStack_enabled_Test() public void For_region_uswest2_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-west-2"; parameters["UseFIPS"] = true; + parameters["Region"] = "us-west-2"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.us-west-2.amazonaws.com", endpoint.URL); @@ -725,8 +725,8 @@ public void For_region_uswest2_with_FIPS_enabled_and_DualStack_disabled_Test() public void For_region_uswest2_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-west-2"; parameters["UseFIPS"] = false; + parameters["Region"] = "us-west-2"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.us-west-2.api.aws", endpoint.URL); @@ -740,8 +740,8 @@ public void For_region_uswest2_with_FIPS_disabled_and_DualStack_enabled_Test() public void For_region_uswest2_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-west-2"; parameters["UseFIPS"] = false; + parameters["Region"] = "us-west-2"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.us-west-2.amazonaws.com", endpoint.URL); @@ -755,8 +755,8 @@ public void For_region_uswest2_with_FIPS_disabled_and_DualStack_disabled_Test() public void For_region_afsouth1_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "af-south-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "af-south-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.af-south-1.api.aws", endpoint.URL); @@ -770,8 +770,8 @@ public void For_region_afsouth1_with_FIPS_enabled_and_DualStack_enabled_Test() public void For_region_afsouth1_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "af-south-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "af-south-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.af-south-1.amazonaws.com", endpoint.URL); @@ -785,8 +785,8 @@ public void For_region_afsouth1_with_FIPS_enabled_and_DualStack_disabled_Test() public void For_region_afsouth1_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "af-south-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "af-south-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.af-south-1.api.aws", endpoint.URL); @@ -800,8 +800,8 @@ public void For_region_afsouth1_with_FIPS_disabled_and_DualStack_enabled_Test() public void For_region_afsouth1_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "af-south-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "af-south-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.af-south-1.amazonaws.com", endpoint.URL); @@ -815,8 +815,8 @@ public void For_region_afsouth1_with_FIPS_disabled_and_DualStack_disabled_Test() public void For_region_eunorth1_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-north-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "eu-north-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.eu-north-1.api.aws", endpoint.URL); @@ -830,8 +830,8 @@ public void For_region_eunorth1_with_FIPS_enabled_and_DualStack_enabled_Test() public void For_region_eunorth1_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-north-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "eu-north-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.eu-north-1.amazonaws.com", endpoint.URL); @@ -845,8 +845,8 @@ public void For_region_eunorth1_with_FIPS_enabled_and_DualStack_disabled_Test() public void For_region_eunorth1_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-north-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "eu-north-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.eu-north-1.api.aws", endpoint.URL); @@ -860,8 +860,8 @@ public void For_region_eunorth1_with_FIPS_disabled_and_DualStack_enabled_Test() public void For_region_eunorth1_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-north-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "eu-north-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.eu-north-1.amazonaws.com", endpoint.URL); @@ -875,8 +875,8 @@ public void For_region_eunorth1_with_FIPS_disabled_and_DualStack_disabled_Test() public void For_region_euwest3_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-west-3"; parameters["UseFIPS"] = true; + parameters["Region"] = "eu-west-3"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.eu-west-3.api.aws", endpoint.URL); @@ -890,8 +890,8 @@ public void For_region_euwest3_with_FIPS_enabled_and_DualStack_enabled_Test() public void For_region_euwest3_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-west-3"; parameters["UseFIPS"] = true; + parameters["Region"] = "eu-west-3"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.eu-west-3.amazonaws.com", endpoint.URL); @@ -905,8 +905,8 @@ public void For_region_euwest3_with_FIPS_enabled_and_DualStack_disabled_Test() public void For_region_euwest3_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-west-3"; parameters["UseFIPS"] = false; + parameters["Region"] = "eu-west-3"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.eu-west-3.api.aws", endpoint.URL); @@ -920,8 +920,8 @@ public void For_region_euwest3_with_FIPS_disabled_and_DualStack_enabled_Test() public void For_region_euwest3_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-west-3"; parameters["UseFIPS"] = false; + parameters["Region"] = "eu-west-3"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.eu-west-3.amazonaws.com", endpoint.URL); @@ -935,8 +935,8 @@ public void For_region_euwest3_with_FIPS_disabled_and_DualStack_disabled_Test() public void For_region_euwest2_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-west-2"; parameters["UseFIPS"] = true; + parameters["Region"] = "eu-west-2"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.eu-west-2.api.aws", endpoint.URL); @@ -950,8 +950,8 @@ public void For_region_euwest2_with_FIPS_enabled_and_DualStack_enabled_Test() public void For_region_euwest2_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-west-2"; parameters["UseFIPS"] = true; + parameters["Region"] = "eu-west-2"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.eu-west-2.amazonaws.com", endpoint.URL); @@ -965,8 +965,8 @@ public void For_region_euwest2_with_FIPS_enabled_and_DualStack_disabled_Test() public void For_region_euwest2_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-west-2"; parameters["UseFIPS"] = false; + parameters["Region"] = "eu-west-2"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.eu-west-2.api.aws", endpoint.URL); @@ -980,8 +980,8 @@ public void For_region_euwest2_with_FIPS_disabled_and_DualStack_enabled_Test() public void For_region_euwest2_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-west-2"; parameters["UseFIPS"] = false; + parameters["Region"] = "eu-west-2"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.eu-west-2.amazonaws.com", endpoint.URL); @@ -995,8 +995,8 @@ public void For_region_euwest2_with_FIPS_disabled_and_DualStack_disabled_Test() public void For_region_euwest1_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-west-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "eu-west-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.eu-west-1.api.aws", endpoint.URL); @@ -1010,8 +1010,8 @@ public void For_region_euwest1_with_FIPS_enabled_and_DualStack_enabled_Test() public void For_region_euwest1_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-west-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "eu-west-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.eu-west-1.amazonaws.com", endpoint.URL); @@ -1025,8 +1025,8 @@ public void For_region_euwest1_with_FIPS_enabled_and_DualStack_disabled_Test() public void For_region_euwest1_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-west-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "eu-west-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.eu-west-1.api.aws", endpoint.URL); @@ -1040,8 +1040,8 @@ public void For_region_euwest1_with_FIPS_disabled_and_DualStack_enabled_Test() public void For_region_euwest1_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "eu-west-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "eu-west-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.eu-west-1.amazonaws.com", endpoint.URL); @@ -1055,8 +1055,8 @@ public void For_region_euwest1_with_FIPS_disabled_and_DualStack_disabled_Test() public void For_region_apnortheast3_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-northeast-3"; parameters["UseFIPS"] = true; + parameters["Region"] = "ap-northeast-3"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.ap-northeast-3.api.aws", endpoint.URL); @@ -1070,8 +1070,8 @@ public void For_region_apnortheast3_with_FIPS_enabled_and_DualStack_enabled_Test public void For_region_apnortheast3_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-northeast-3"; parameters["UseFIPS"] = true; + parameters["Region"] = "ap-northeast-3"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.ap-northeast-3.amazonaws.com", endpoint.URL); @@ -1085,8 +1085,8 @@ public void For_region_apnortheast3_with_FIPS_enabled_and_DualStack_disabled_Tes public void For_region_apnortheast3_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-northeast-3"; parameters["UseFIPS"] = false; + parameters["Region"] = "ap-northeast-3"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.ap-northeast-3.api.aws", endpoint.URL); @@ -1100,8 +1100,8 @@ public void For_region_apnortheast3_with_FIPS_disabled_and_DualStack_enabled_Tes public void For_region_apnortheast3_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-northeast-3"; parameters["UseFIPS"] = false; + parameters["Region"] = "ap-northeast-3"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.ap-northeast-3.amazonaws.com", endpoint.URL); @@ -1115,8 +1115,8 @@ public void For_region_apnortheast3_with_FIPS_disabled_and_DualStack_disabled_Te public void For_region_apnortheast2_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-northeast-2"; parameters["UseFIPS"] = true; + parameters["Region"] = "ap-northeast-2"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.ap-northeast-2.api.aws", endpoint.URL); @@ -1130,8 +1130,8 @@ public void For_region_apnortheast2_with_FIPS_enabled_and_DualStack_enabled_Test public void For_region_apnortheast2_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-northeast-2"; parameters["UseFIPS"] = true; + parameters["Region"] = "ap-northeast-2"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.ap-northeast-2.amazonaws.com", endpoint.URL); @@ -1145,8 +1145,8 @@ public void For_region_apnortheast2_with_FIPS_enabled_and_DualStack_disabled_Tes public void For_region_apnortheast2_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-northeast-2"; parameters["UseFIPS"] = false; + parameters["Region"] = "ap-northeast-2"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.ap-northeast-2.api.aws", endpoint.URL); @@ -1160,8 +1160,8 @@ public void For_region_apnortheast2_with_FIPS_disabled_and_DualStack_enabled_Tes public void For_region_apnortheast2_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-northeast-2"; parameters["UseFIPS"] = false; + parameters["Region"] = "ap-northeast-2"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.ap-northeast-2.amazonaws.com", endpoint.URL); @@ -1175,8 +1175,8 @@ public void For_region_apnortheast2_with_FIPS_disabled_and_DualStack_disabled_Te public void For_region_apnortheast1_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-northeast-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "ap-northeast-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.ap-northeast-1.api.aws", endpoint.URL); @@ -1190,8 +1190,8 @@ public void For_region_apnortheast1_with_FIPS_enabled_and_DualStack_enabled_Test public void For_region_apnortheast1_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-northeast-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "ap-northeast-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.ap-northeast-1.amazonaws.com", endpoint.URL); @@ -1205,8 +1205,8 @@ public void For_region_apnortheast1_with_FIPS_enabled_and_DualStack_disabled_Tes public void For_region_apnortheast1_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-northeast-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "ap-northeast-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.ap-northeast-1.api.aws", endpoint.URL); @@ -1220,8 +1220,8 @@ public void For_region_apnortheast1_with_FIPS_disabled_and_DualStack_enabled_Tes public void For_region_apnortheast1_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-northeast-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "ap-northeast-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.ap-northeast-1.amazonaws.com", endpoint.URL); @@ -1235,8 +1235,8 @@ public void For_region_apnortheast1_with_FIPS_disabled_and_DualStack_disabled_Te public void For_region_mesouth1_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "me-south-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "me-south-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.me-south-1.api.aws", endpoint.URL); @@ -1250,8 +1250,8 @@ public void For_region_mesouth1_with_FIPS_enabled_and_DualStack_enabled_Test() public void For_region_mesouth1_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "me-south-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "me-south-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.me-south-1.amazonaws.com", endpoint.URL); @@ -1265,8 +1265,8 @@ public void For_region_mesouth1_with_FIPS_enabled_and_DualStack_disabled_Test() public void For_region_mesouth1_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "me-south-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "me-south-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.me-south-1.api.aws", endpoint.URL); @@ -1280,8 +1280,8 @@ public void For_region_mesouth1_with_FIPS_disabled_and_DualStack_enabled_Test() public void For_region_mesouth1_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "me-south-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "me-south-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.me-south-1.amazonaws.com", endpoint.URL); @@ -1295,8 +1295,8 @@ public void For_region_mesouth1_with_FIPS_disabled_and_DualStack_disabled_Test() public void For_region_saeast1_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "sa-east-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "sa-east-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.sa-east-1.api.aws", endpoint.URL); @@ -1310,8 +1310,8 @@ public void For_region_saeast1_with_FIPS_enabled_and_DualStack_enabled_Test() public void For_region_saeast1_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "sa-east-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "sa-east-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.sa-east-1.amazonaws.com", endpoint.URL); @@ -1325,8 +1325,8 @@ public void For_region_saeast1_with_FIPS_enabled_and_DualStack_disabled_Test() public void For_region_saeast1_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "sa-east-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "sa-east-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.sa-east-1.api.aws", endpoint.URL); @@ -1340,8 +1340,8 @@ public void For_region_saeast1_with_FIPS_disabled_and_DualStack_enabled_Test() public void For_region_saeast1_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "sa-east-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "sa-east-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.sa-east-1.amazonaws.com", endpoint.URL); @@ -1355,8 +1355,8 @@ public void For_region_saeast1_with_FIPS_disabled_and_DualStack_disabled_Test() public void For_region_apeast1_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-east-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "ap-east-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.ap-east-1.api.aws", endpoint.URL); @@ -1370,8 +1370,8 @@ public void For_region_apeast1_with_FIPS_enabled_and_DualStack_enabled_Test() public void For_region_apeast1_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-east-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "ap-east-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.ap-east-1.amazonaws.com", endpoint.URL); @@ -1385,8 +1385,8 @@ public void For_region_apeast1_with_FIPS_enabled_and_DualStack_disabled_Test() public void For_region_apeast1_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-east-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "ap-east-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.ap-east-1.api.aws", endpoint.URL); @@ -1400,8 +1400,8 @@ public void For_region_apeast1_with_FIPS_disabled_and_DualStack_enabled_Test() public void For_region_apeast1_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-east-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "ap-east-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.ap-east-1.amazonaws.com", endpoint.URL); @@ -1415,8 +1415,8 @@ public void For_region_apeast1_with_FIPS_disabled_and_DualStack_disabled_Test() public void For_region_cnnorth1_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "cn-north-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "cn-north-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.cn-north-1.api.amazonwebservices.com.cn", endpoint.URL); @@ -1430,8 +1430,8 @@ public void For_region_cnnorth1_with_FIPS_enabled_and_DualStack_enabled_Test() public void For_region_cnnorth1_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "cn-north-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "cn-north-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.cn-north-1.amazonaws.com.cn", endpoint.URL); @@ -1445,8 +1445,8 @@ public void For_region_cnnorth1_with_FIPS_enabled_and_DualStack_disabled_Test() public void For_region_cnnorth1_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "cn-north-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "cn-north-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.cn-north-1.api.amazonwebservices.com.cn", endpoint.URL); @@ -1460,8 +1460,8 @@ public void For_region_cnnorth1_with_FIPS_disabled_and_DualStack_enabled_Test() public void For_region_cnnorth1_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "cn-north-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "cn-north-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.cn-north-1.amazonaws.com.cn", endpoint.URL); @@ -1475,8 +1475,8 @@ public void For_region_cnnorth1_with_FIPS_disabled_and_DualStack_disabled_Test() public void For_region_cawest1_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ca-west-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "ca-west-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.ca-west-1.api.aws", endpoint.URL); @@ -1490,8 +1490,8 @@ public void For_region_cawest1_with_FIPS_enabled_and_DualStack_enabled_Test() public void For_region_cawest1_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ca-west-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "ca-west-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.ca-west-1.amazonaws.com", endpoint.URL); @@ -1505,8 +1505,8 @@ public void For_region_cawest1_with_FIPS_enabled_and_DualStack_disabled_Test() public void For_region_cawest1_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ca-west-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "ca-west-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.ca-west-1.api.aws", endpoint.URL); @@ -1520,8 +1520,8 @@ public void For_region_cawest1_with_FIPS_disabled_and_DualStack_enabled_Test() public void For_region_cawest1_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ca-west-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "ca-west-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.ca-west-1.amazonaws.com", endpoint.URL); @@ -1535,8 +1535,8 @@ public void For_region_cawest1_with_FIPS_disabled_and_DualStack_disabled_Test() public void For_region_usgovwest1_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-gov-west-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "us-gov-west-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.us-gov-west-1.api.aws", endpoint.URL); @@ -1550,8 +1550,8 @@ public void For_region_usgovwest1_with_FIPS_enabled_and_DualStack_enabled_Test() public void For_region_usgovwest1_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-gov-west-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "us-gov-west-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.us-gov-west-1.amazonaws.com", endpoint.URL); @@ -1565,8 +1565,8 @@ public void For_region_usgovwest1_with_FIPS_enabled_and_DualStack_disabled_Test( public void For_region_usgovwest1_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-gov-west-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "us-gov-west-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.us-gov-west-1.api.aws", endpoint.URL); @@ -1580,8 +1580,8 @@ public void For_region_usgovwest1_with_FIPS_disabled_and_DualStack_enabled_Test( public void For_region_usgovwest1_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-gov-west-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "us-gov-west-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.us-gov-west-1.amazonaws.com", endpoint.URL); @@ -1595,8 +1595,8 @@ public void For_region_usgovwest1_with_FIPS_disabled_and_DualStack_disabled_Test public void For_region_apsoutheast1_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-southeast-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "ap-southeast-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.ap-southeast-1.api.aws", endpoint.URL); @@ -1610,8 +1610,8 @@ public void For_region_apsoutheast1_with_FIPS_enabled_and_DualStack_enabled_Test public void For_region_apsoutheast1_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-southeast-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "ap-southeast-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.ap-southeast-1.amazonaws.com", endpoint.URL); @@ -1625,8 +1625,8 @@ public void For_region_apsoutheast1_with_FIPS_enabled_and_DualStack_disabled_Tes public void For_region_apsoutheast1_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-southeast-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "ap-southeast-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.ap-southeast-1.api.aws", endpoint.URL); @@ -1640,8 +1640,8 @@ public void For_region_apsoutheast1_with_FIPS_disabled_and_DualStack_enabled_Tes public void For_region_apsoutheast1_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-southeast-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "ap-southeast-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.ap-southeast-1.amazonaws.com", endpoint.URL); @@ -1655,8 +1655,8 @@ public void For_region_apsoutheast1_with_FIPS_disabled_and_DualStack_disabled_Te public void For_region_apsoutheast2_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-southeast-2"; parameters["UseFIPS"] = true; + parameters["Region"] = "ap-southeast-2"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.ap-southeast-2.api.aws", endpoint.URL); @@ -1670,8 +1670,8 @@ public void For_region_apsoutheast2_with_FIPS_enabled_and_DualStack_enabled_Test public void For_region_apsoutheast2_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-southeast-2"; parameters["UseFIPS"] = true; + parameters["Region"] = "ap-southeast-2"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.ap-southeast-2.amazonaws.com", endpoint.URL); @@ -1685,8 +1685,8 @@ public void For_region_apsoutheast2_with_FIPS_enabled_and_DualStack_disabled_Tes public void For_region_apsoutheast2_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-southeast-2"; parameters["UseFIPS"] = false; + parameters["Region"] = "ap-southeast-2"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.ap-southeast-2.api.aws", endpoint.URL); @@ -1700,8 +1700,8 @@ public void For_region_apsoutheast2_with_FIPS_disabled_and_DualStack_enabled_Tes public void For_region_apsoutheast2_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-southeast-2"; parameters["UseFIPS"] = false; + parameters["Region"] = "ap-southeast-2"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.ap-southeast-2.amazonaws.com", endpoint.URL); @@ -1716,8 +1716,8 @@ public void For_region_apsoutheast2_with_FIPS_disabled_and_DualStack_disabled_Te public void For_region_usisoeast1_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-iso-east-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "us-iso-east-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); } @@ -1730,8 +1730,8 @@ public void For_region_usisoeast1_with_FIPS_enabled_and_DualStack_enabled_Test() public void For_region_usisoeast1_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-iso-east-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "us-iso-east-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.us-iso-east-1.c2s.ic.gov", endpoint.URL); @@ -1746,8 +1746,8 @@ public void For_region_usisoeast1_with_FIPS_enabled_and_DualStack_disabled_Test( public void For_region_usisoeast1_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-iso-east-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "us-iso-east-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); } @@ -1760,8 +1760,8 @@ public void For_region_usisoeast1_with_FIPS_disabled_and_DualStack_enabled_Test( public void For_region_usisoeast1_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-iso-east-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "us-iso-east-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.us-iso-east-1.c2s.ic.gov", endpoint.URL); @@ -1775,8 +1775,8 @@ public void For_region_usisoeast1_with_FIPS_disabled_and_DualStack_disabled_Test public void For_region_apsoutheast3_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-southeast-3"; parameters["UseFIPS"] = true; + parameters["Region"] = "ap-southeast-3"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.ap-southeast-3.api.aws", endpoint.URL); @@ -1790,8 +1790,8 @@ public void For_region_apsoutheast3_with_FIPS_enabled_and_DualStack_enabled_Test public void For_region_apsoutheast3_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-southeast-3"; parameters["UseFIPS"] = true; + parameters["Region"] = "ap-southeast-3"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.ap-southeast-3.amazonaws.com", endpoint.URL); @@ -1805,8 +1805,8 @@ public void For_region_apsoutheast3_with_FIPS_enabled_and_DualStack_disabled_Tes public void For_region_apsoutheast3_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-southeast-3"; parameters["UseFIPS"] = false; + parameters["Region"] = "ap-southeast-3"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.ap-southeast-3.api.aws", endpoint.URL); @@ -1820,8 +1820,8 @@ public void For_region_apsoutheast3_with_FIPS_disabled_and_DualStack_enabled_Tes public void For_region_apsoutheast3_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-southeast-3"; parameters["UseFIPS"] = false; + parameters["Region"] = "ap-southeast-3"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.ap-southeast-3.amazonaws.com", endpoint.URL); @@ -1835,8 +1835,8 @@ public void For_region_apsoutheast3_with_FIPS_disabled_and_DualStack_disabled_Te public void For_region_apsoutheast4_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-southeast-4"; parameters["UseFIPS"] = true; + parameters["Region"] = "ap-southeast-4"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.ap-southeast-4.api.aws", endpoint.URL); @@ -1850,8 +1850,8 @@ public void For_region_apsoutheast4_with_FIPS_enabled_and_DualStack_enabled_Test public void For_region_apsoutheast4_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-southeast-4"; parameters["UseFIPS"] = true; + parameters["Region"] = "ap-southeast-4"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.ap-southeast-4.amazonaws.com", endpoint.URL); @@ -1865,8 +1865,8 @@ public void For_region_apsoutheast4_with_FIPS_enabled_and_DualStack_disabled_Tes public void For_region_apsoutheast4_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-southeast-4"; parameters["UseFIPS"] = false; + parameters["Region"] = "ap-southeast-4"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.ap-southeast-4.api.aws", endpoint.URL); @@ -1880,8 +1880,8 @@ public void For_region_apsoutheast4_with_FIPS_disabled_and_DualStack_enabled_Tes public void For_region_apsoutheast4_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "ap-southeast-4"; parameters["UseFIPS"] = false; + parameters["Region"] = "ap-southeast-4"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.ap-southeast-4.amazonaws.com", endpoint.URL); @@ -1895,8 +1895,8 @@ public void For_region_apsoutheast4_with_FIPS_disabled_and_DualStack_disabled_Te public void For_region_useast1_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-east-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "us-east-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.us-east-1.api.aws", endpoint.URL); @@ -1910,8 +1910,8 @@ public void For_region_useast1_with_FIPS_enabled_and_DualStack_enabled_Test() public void For_region_useast1_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-east-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "us-east-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.us-east-1.amazonaws.com", endpoint.URL); @@ -1925,8 +1925,8 @@ public void For_region_useast1_with_FIPS_enabled_and_DualStack_disabled_Test() public void For_region_useast1_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-east-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "us-east-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.us-east-1.api.aws", endpoint.URL); @@ -1940,8 +1940,8 @@ public void For_region_useast1_with_FIPS_disabled_and_DualStack_enabled_Test() public void For_region_useast1_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-east-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "us-east-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.us-east-1.amazonaws.com", endpoint.URL); @@ -1955,8 +1955,8 @@ public void For_region_useast1_with_FIPS_disabled_and_DualStack_disabled_Test() public void For_region_useast2_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-east-2"; parameters["UseFIPS"] = true; + parameters["Region"] = "us-east-2"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.us-east-2.api.aws", endpoint.URL); @@ -1970,8 +1970,8 @@ public void For_region_useast2_with_FIPS_enabled_and_DualStack_enabled_Test() public void For_region_useast2_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-east-2"; parameters["UseFIPS"] = true; + parameters["Region"] = "us-east-2"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.us-east-2.amazonaws.com", endpoint.URL); @@ -1985,8 +1985,8 @@ public void For_region_useast2_with_FIPS_enabled_and_DualStack_disabled_Test() public void For_region_useast2_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-east-2"; parameters["UseFIPS"] = false; + parameters["Region"] = "us-east-2"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.us-east-2.api.aws", endpoint.URL); @@ -2000,8 +2000,8 @@ public void For_region_useast2_with_FIPS_disabled_and_DualStack_enabled_Test() public void For_region_useast2_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-east-2"; parameters["UseFIPS"] = false; + parameters["Region"] = "us-east-2"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.us-east-2.amazonaws.com", endpoint.URL); @@ -2015,8 +2015,8 @@ public void For_region_useast2_with_FIPS_disabled_and_DualStack_disabled_Test() public void For_region_cnnorthwest1_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "cn-northwest-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "cn-northwest-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.cn-northwest-1.api.amazonwebservices.com.cn", endpoint.URL); @@ -2030,8 +2030,8 @@ public void For_region_cnnorthwest1_with_FIPS_enabled_and_DualStack_enabled_Test public void For_region_cnnorthwest1_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "cn-northwest-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "cn-northwest-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.cn-northwest-1.amazonaws.com.cn", endpoint.URL); @@ -2045,8 +2045,8 @@ public void For_region_cnnorthwest1_with_FIPS_enabled_and_DualStack_disabled_Tes public void For_region_cnnorthwest1_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "cn-northwest-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "cn-northwest-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.cn-northwest-1.api.amazonwebservices.com.cn", endpoint.URL); @@ -2060,8 +2060,8 @@ public void For_region_cnnorthwest1_with_FIPS_disabled_and_DualStack_enabled_Tes public void For_region_cnnorthwest1_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "cn-northwest-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "cn-northwest-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.cn-northwest-1.amazonaws.com.cn", endpoint.URL); @@ -2076,8 +2076,8 @@ public void For_region_cnnorthwest1_with_FIPS_disabled_and_DualStack_disabled_Te public void For_region_usisobeast1_with_FIPS_enabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-isob-east-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "us-isob-east-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); } @@ -2090,8 +2090,8 @@ public void For_region_usisobeast1_with_FIPS_enabled_and_DualStack_enabled_Test( public void For_region_usisobeast1_with_FIPS_enabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-isob-east-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "us-isob-east-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2-fips.us-isob-east-1.sc2s.sgov.gov", endpoint.URL); @@ -2106,8 +2106,8 @@ public void For_region_usisobeast1_with_FIPS_enabled_and_DualStack_disabled_Test public void For_region_usisobeast1_with_FIPS_disabled_and_DualStack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-isob-east-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "us-isob-east-1"; parameters["UseDualStack"] = true; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); } @@ -2120,8 +2120,8 @@ public void For_region_usisobeast1_with_FIPS_disabled_and_DualStack_enabled_Test public void For_region_usisobeast1_with_FIPS_disabled_and_DualStack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-isob-east-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "us-isob-east-1"; parameters["UseDualStack"] = false; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); Assert.AreEqual("https://ec2.us-isob-east-1.sc2s.sgov.gov", endpoint.URL); @@ -2135,8 +2135,8 @@ public void For_region_usisobeast1_with_FIPS_disabled_and_DualStack_disabled_Tes public void For_custom_endpoint_with_fips_disabled_and_dualstack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-east-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "us-east-1"; parameters["UseDualStack"] = false; parameters["Endpoint"] = "https://example.com"; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); @@ -2152,8 +2152,8 @@ public void For_custom_endpoint_with_fips_disabled_and_dualstack_disabled_Test() public void For_custom_endpoint_with_fips_enabled_and_dualstack_disabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-east-1"; parameters["UseFIPS"] = true; + parameters["Region"] = "us-east-1"; parameters["UseDualStack"] = false; parameters["Endpoint"] = "https://example.com"; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); @@ -2168,8 +2168,8 @@ public void For_custom_endpoint_with_fips_enabled_and_dualstack_disabled_Test() public void For_custom_endpoint_with_fips_disabled_and_dualstack_enabled_Test() { var parameters = new EC2EndpointParameters(); - parameters["Region"] = "us-east-1"; parameters["UseFIPS"] = false; + parameters["Region"] = "us-east-1"; parameters["UseDualStack"] = true; parameters["Endpoint"] = "https://example.com"; var endpoint = new AmazonEC2EndpointProvider().ResolveEndpoint(parameters); diff --git a/sdk/test/Services/EC2/UnitTests/Generated/Marshalling/EC2MarshallingTests.cs b/sdk/test/Services/EC2/UnitTests/Generated/Marshalling/EC2MarshallingTests.cs index 736048d93075..46775835d1ca 100644 --- a/sdk/test/Services/EC2/UnitTests/Generated/Marshalling/EC2MarshallingTests.cs +++ b/sdk/test/Services/EC2/UnitTests/Generated/Marshalling/EC2MarshallingTests.cs @@ -1005,6 +1005,30 @@ public void CancelExportTaskMarshallTest() + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Query")] + [TestCategory("EC2")] + public void CancelImageLaunchPermissionMarshallTest() + { + var operation = service_model.FindOperation("CancelImageLaunchPermission"); + + var request = InstantiateClassGenerator.Execute(); + var marshaller = new CancelImageLaunchPermissionRequestMarshaller(); + var internalRequest = marshaller.Marshall(request); + var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); + validator.Validate(); + + + var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); + UnmarshallerContext context = new EC2UnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, new WebResponseData()); + var response = CancelImageLaunchPermissionResponseUnmarshaller.Instance.Unmarshall(context) + as CancelImageLaunchPermissionResponse; + InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); + } + + + [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")]